Commands sequence shrinking not working (since scala 2.12 update)

I have been investigating the way command failures are reported because it seemed to me that shrinking was not working. I may have spotted a bug introduced with scala 2.12. Here is how to reproduce the behavior I observed:
Apply this diff to be able to see the failure:
diff --git a/jvm/src/test/scala/org/scalacheck/commands/CommandsSpecification.scala b/jvm/src/test/scala/org/scalacheck/commands/CommandsSpecification.scala
index c60e276..7e66cb1 100644
--- a/jvm/src/test/scala/org/scalacheck/commands/CommandsSpecification.scala
+++ b/jvm/src/test/scala/org/scalacheck/commands/CommandsSpecification.scala
@@ -13,13 +13,13 @@ import org.scalacheck._

 object CommandsSpecification extends Properties("Commands") {

-  property("commands") = TestCommands.property(threadCount = 4)
+  property("commands") = TestCommands.property(threadCount = 1)

   object TestCommands extends Commands {
     case class Counter(var n: Int) {
       val lock = new java.util.concurrent.locks.ReentrantLock
       def inc = { lock.lock; n += 1; lock.unlock; n }
-      def dec = { lock.lock; n -= 1; lock.unlock; n }
+      def dec = { lock.lock; if(n < 90) n -= 1; lock.unlock; n }
       //def inc = { n += 1; n }
       //def dec = { n -= 1; n }
       def get = n

In sbt run the following commands and notice the reported seqcmds:
scala 2.12.6
scalacheck >> ++ 2.12.6 jvm/testOnly org.scalacheck.commands.CommandsSpecification
[info] Setting Scala version to 2.12.6 on 3 projects.
[info] Excluded 1 projects, run ++ 2.12.6 -v for more details.
[info] Reapplying settings...
[info] Set current project to scalacheck (in build file:/C:/Users/dalexandre/dev/scalacheck/)
[info] ! Commands.commands: Falsified after 8 passed tests.
[info] > Labels of failing property:
[info] initialstate = 93
[info] seqcmds = (Inc => 94; Get => 94; Inc => 95; Inc => 96; Inc => 97; Inc => 98; Dec => 98; Inc => 99)
[info] > ARG_0: Actions(93,List(Inc, Get, Inc, Inc, Inc, Inc, Dec, Inc),List())
[info] Failed: Total 1, Failed 1, Errors 0, Passed 0
[error] Failed tests:
[error]         org.scalacheck.commands.CommandsSpecification
[error] (jvm / Test / testOnly) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 0 s, completed 2 janv. 2019 15:57:52

scala 2.11.12
scalacheck >> ++ 2.11.12 jvm/testOnly org.scalacheck.commands.CommandsSpecification
[info] Setting Scala version to 2.11.12 on 4 projects.
[info] Reapplying settings...
[info] Set current project to scalacheck (in build file:/C:/Users/dalexandre/dev/scalacheck/)
[info] ! Commands.commands: Falsified after 3 passed tests.
[info] > Labels of failing property:
[info] initialstate = 99
[info] seqcmds = (Dec => 99)
[info] > ARG_0: Actions(99,List(Dec),List())
[info] > ARG_0_ORIGINAL: Actions(99,List(Inc, Dec, Inc),List())
[info] Failed: Total 1, Failed 1, Errors 0, Passed 0
[error] Failed tests:
[error]         org.scalacheck.commands.CommandsSpecification
[error] (jvm / Test / testOnly) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 0 s, completed 2 janv. 2019 16:01:28

In 2.11.x sequence has been shrunk to one command whereas in 2.12.x the sequence is left untouched. This may be related to #426 concerns as well.

Can confirm that shriking is not occurring for me - I'm trying out the example from 2014 presentation:
package example

import org.scalacheck.{Gen, Prop, Shrink}
import org.scalacheck.commands.Commands
import org.scalatest.{FlatSpec, Matchers}
import org.scalatest.prop.Checkers
import org.scalacheck.Arbitrary.arbitrary
import org.scalacheck.Gen.oneOf

import scala.util.{Success, Try}

case class Counter(private var n: Int = 0) {
  def increment(): Int = {
    n = n + 1
    n
  }
  def get: Int = n
}

object StatefulCommands extends Commands {
  case class State(count: Long)

  override type Sut = Counter

  override def canCreateNewSut(newState: State, initSuts: Traversable[State], runningSuts: Traversable[Sut]): Boolean = true

  override def newSut(state: State): Sut = Counter(state.count.toInt)

  override def destroySut(sut: Sut): Unit = ()

  override def initialPreCondition(state: State): Boolean = true

  override def genInitialState: Gen[State] = arbitrary[Int].map(n => State.apply(n.toLong))

  override def genCommand(state: State): Gen[Command] = oneOf(Increment, Get)

  override def shrinkState: Shrink[State] = Shrink(x => implicitly[Shrink[Long]].shrink(x.count).map(State.apply))

  case object Increment extends Command {
    override type Result = Int

    override def run(counter: Counter): Result = counter.increment

    override def nextState(state: State): State = state.copy(count = state.count + 1)

    override def preCondition(state: State): Boolean = true

    override def postCondition(state: State, result: Try[Result]): Prop = result == Success(state.count + 1)
  }

  case object Get extends Command {
    override type Result = Int

    override def run(counter: Counter): Result = counter.get

    override def nextState(state: State): State = state

    override def preCondition(state: State): Boolean = true

    override def postCondition(state: State, result: Try[Result]): Prop =
      result == Success(state.count)
  }

}

class StatefulSpec extends FlatSpec with Matchers with Checkers {

  it should "successfully evaluate commands" in {
    check(StatefulCommands.property())
  }
}

This is the output:
  Occurred when passed generated values (
    arg0 = Actions(State(2147483647),List(Get, Increment, Increment, Increment, Increment, Increment, Increment, Get, Increment, Increment, Increment, Increment, Increment, Get, Increment, Increment, Get, Increment, Get, Increment, Increment, Get, Get, Increment, Get, Increment, Increment, Increment, Get, Increment),List())
  )
  Label of failing property:
    initialstate = State(2147483647)
seqcmds = (Get =><PHONE_NUMBER>; Increment => -2147483648; Increment => -2147483647; Increment => -2147483646; Increment => -2147483645; Increment => -2147483644; Increment => -2147483643; Get => -2147483643; Increment => -2147483642; Increment => -2147483641; Increment => -2147483640; Increment => -2147483639; Increment => -2147483638; Get => -2147483638; Increment => -2147483637; Increment => -2147483636; Get => -2147483636; Increment => -2147483635; Get => -2147483635; Increment => -2147483634; Increment => -2147483633; Get => -2147483633; Get => -2147483633; Increment => -2147483632; Get => -2147483632; Increment => -2147483631; Increment => -2147483630; Increment => -2147483629; Get => -2147483629; Increment => -2147483628)

The same example from presentation got shrunk to a single command.

This seems to be linked to implicit resolution rules changes between 2.11 and 2.12.
It's fixed by declaring shrinkActions before property in Commands, but it's not clear to me why that'd be the case. Happy to submit a PR for that, but can anyone explain why this fixes things?


Add back button and remove 2020 tracker from menu

Add Go to 2020 NDC Tracker in NDCs explore
Add back to explore NDC's Tracker in 2020 NDCs tracker
remove 2020 from commitments menu

I think these are different pages with different indicators so I don't think we should preserve the params. It's not a real back button for me but just a link between pages

That's fine, I see that we don't keep URL params in different places either, where we use Go to button. Let's merge it then!


Updated create code page and added new info to feature test

Purpose
Added text to the create access code page to give users information/examples of the organisation to enter
Fixes UML-403
Approach
Updated content to show the correct organisation information based on LPA type. Also added to. existing feature test to check correct text is shown
Checklist

[x] I have performed a self-review of my own code
[ ] I have added relevant logging with appropriate levels to my code
[ ] I have updated documentation (Confluence/GitHub wiki/tech debt doc) where relevant
[x] I have added tests to prove my work
[ ] The product team have tested these changes

Coverage remained the same at 75.622% when pulling 28fda667bfb01c0aa9347cc76877681c96c38c2d on UML-403-Organisation-information into 5634af897a837ddd1f455a0817a859c49677cfd1 on master.


Gitignore dist/

I just ran npm run build locally which resulted in untracked files flying around. I think this was a typo "public" <-> "dist"? :thinking:

Yup!


graph translate event never stops firing after pressing Alt Tab

Describe the bug

Subscribe to graph translate event.
 graph.on('translate', () => {  console.log('graph is translating'); });

Press Alt + Tab

The event will keep firing and this can be seen in the console logs that keep piling up.

Your Example Website or App
Internal tool which cannot be provided
Steps to Reproduce the Bug or Issue

Subscribe to graph translate event.
 graph.on('translate', () => {  console.log('graph is translating'); });

Press Alt + Tab

The event will keep firing and this can be seen in the console logs that keep piling up.

Expected behavior
As a user, I expected the graph translate event to fire only when i am translating the graph even after switching windows using Alt + Tab
Screenshots or Videos
No response
Platform

Windows 10 Pro 64-bit 10.0, Build 19045
Edge Version 129.0.2792.65 (Official build) (64-bit)
Chrome Version 129.0.6668.70 (Official Build) (64-bit)
Antv x6 version 2.15.1

Additional context
Bug occurs in both Chrome and Edge, not tested on Safari.

Resolved. It was caused by using RequestAnimationFrames() elsewhere and I just needed to add more checks to prevent this being called every frame.


Is it possible to get the reply object from the context?

Hey!
I'm using supertokens to make sure that my endpoint is protected. I want to migrate from apollo-server-fastify to this package.
Supertoken's verification and session handling function Session.getSession(req, res, opts) requires a response object to work properly (it sets response cookies).
Is there a way to inject the response object to my graphql context? (Before it was injected automatically)
Currently my code looks something like this:
fastifyApolloHandler(apolloServer, {
    context: async (params) => {
        return {
            request: params,
            reply: null, // <--- what should come here?
        };
    },
}),

Thanks in advance.

Found a solution (or a workaround)?
handler: function (req, res) {
    const binded = fastifyApolloHandler(apolloServer, {
        context: async (params) => {
            return {
                request: req,
                reply: res,
            };
        },
    }).bind(this);
    return binded((req as any), (res as any));
},

Hey mate!
Maybe the documentation isn't clear enough on how to use the context option so let me know if it's not.
You should be able to access the request (FastifyRequest) and reply (FastifyReply) objects from the function aarguments as shown below:
await fastify.register(fastifyApollo(apollo), {
  // context accepts two arguments
  context: async (request, reply) => {
     // ...
    return whatever;
  }
});

The return of the context function will be passed into the context argument of your graphql resolvers, where you can do whatever you like. You don't have to conform the return to { request, reply } it can be anything just make sure you type that into the ApolloServer class if you use typescript.

I tried that but typescript didn't like it. I tried it again and now it works without a problem.
I think if the documentation used the (request, reply) =>  syntax, I wouldn't have got confused, but maybe that's only me.
Thank you very much for the quick help ❤

Thanks for you're feedback. I have updated the documentation to include a full example of how to use the context option. #98


Poor initial width

The initial width of the gallery div is returning the 'wrong' value. I've asked about this on discourse

In b4e8cb0 I think this is fixed for now. It's basically forcing us to use a css fix, so that means dropping down to a Browser.element. For the moment this is fine, may pose some issues in the future though, I'm unsure.


Incompatible code unexpectedly compiles due to intersection with empty mapped type

TypeScript Version:  Version 2.7.0-dev.20171109
Code
type Args<S extends string, N extends string> = Record<S, string> & Record<N, number>

declare function f1<S extends string, N extends string>
    (strs: S[], nums: N[], fun: (args: Args<S, N>) => void): void

declare function takesNum(args: {a: number}): void
declare function takesOptionalNum(args: {a?: number}): void

f1(["a"], [], takesNum) // *** unexpectedly compiles despite incompatibility of "a" ***
f1(["a"], ["b"], takesNum) // Now correctly errors because of incompatibility of "a"

f1(["a"], [], takesOptionalNum) // *** unexpectedly compiles despite incompatibility of "a" ***
f1(["a"], ["b"], takesOptionalNum) // Now correctly errors because of incompatibility of "a"

Expected behavior:
All calls to f1 should error because takesNum and takesOptionalNum expect a to be a number but it will actually be a string.
Actual behavior:
It only errors if the second argument to f1 is not empty.
Also the first case shown above: f1(["a"], [], takesNum) actually errored as expected as recently as last week(I believe I was on 2.7.0-dev.20171031), it was only the optional case that unexpectedly compiled. I was about to open this for just the optional case when I checked the latest typescript version and noticed the first case started being affected also.

Also interesting is if you change takesNum:
declare function takesNum(args: number): void

f1(["a"], [], takesNum) // now errors of course but with the totally incorrect inferred type of Args:

// Error:(20, 15) TS2345: Argument of type '(args: number) => void' is not assignable to parameter of type
// '(args: Args<"a", "toString" | "toFixed" | "toExponential" | "toPrecision" | "valueOf" | "toLocaleString">) => void'.

FYI was looking through changes recently to guess what caused the behavior change and it seems almost certain to be #19745 so maybe this behavior is expected? Looking at the original bug(#19576) that was addressing I can see it'd be a very fine needle to thread to somehow both fail in my example and compile in the #19576 example.
I did discover that I can work around half of my problem by doing:
type Args<S extends string, N extends string> = Record<S, string> & Record<N, number>

declare function f2<S extends string, N extends string, F extends (args: Args<S, N>) => void>
(strs: S[], nums: N[], fun: F): void

declare function takesNum(args: {a: number}): void
declare function takesOptionalNum(args: {a?: number}): void

f2(["a"], [], takesNum) // Now correctly errors because of incompatibility of "a"

f2(["a"], [], takesOptionalNum) // *** Still unexpectedly compiles despite incompatibility of "a" ***
f2(["a"], ["b"], takesOptionalNum) // Now correctly errors because of incompatibility of "a"

But as the comments show, the optional case still works incorrectly even after that.

Should be addressed by https://github.com/Microsoft/TypeScript/pull/19912

I think this is working as intended and it isn't affected by #19912. In this call
f1(["a"], [], takesNum);

we make the inference "a" for S from the first argument and no inferences from the second argument (or, following #19912, a low priority inference of never for N). Then, from the third argument, we make the inference "a" for both S and N. All up this means we infer "a" for both type arguments. Once we instantiate with those inferences we get
f1(strs: "a"[], nums: "a"[], fun: (args: Args<"a", "a">) => void): void;

which is equivalent to
f1(strs: "a"[], nums: "a"[], fun: (args: { a: string } & { a: number }) => void): void;

which is a signature for which all of the arguments are compatible.


WIP Added staring and unstaring for courses

Fixes #81

I have finished likes, changed a structure a bit, finished the Sinks.


Homebirdge wont't run after raspi-config update

Hello,
I accidentally made update using default raspi configurator.
After this when I run hombirdge I have the fallowing issue:
Please help...
fs.js:745
return binding.writeBuffer(fd, buffer, offset, length, position);
^
Error: ENOSPC: no space left on device, write
at Object.fs.writeSync (fs.js:745:20)
at Object.fs.writeFileSync (fs.js:1326:24)
at LocalStorage.persistKeySync (/usr/local/lib/node_modules/homebridge/node_modules/node-persist/local-storage.js:457:12)
at LocalStorage.setItemSync (/usr/local/lib/node_modules/homebridge/node_modules/node-persist/local-storage.js:275:14)
at Object.nodePersist.setItemSync (/usr/local/lib/node_modules/homebridge/node_modules/node-persist/node-persist.js:99:29)
at AccessoryInfo.save (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/model/AccessoryInfo.js:161:11)
at Bridge.Accessory.publish (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:439:23)
at Server._publish (/usr/local/lib/node_modules/homebridge/lib/server.js:114:16)
at Server. (/usr/local/lib/node_modules/homebridge/lib/server.js:372:14)
at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:15:19

Error: ENOSPC: no space left on device, write

Your storage is full!!!

On Jun 8, 2017, at 4:52 PM, daniel4099<EMAIL_ADDRESS>wrote:
Hello,
I accidentally made update using default raspi configurator.
After this when I run hombirdge I have the fallowing issue:
Please help...
fs.js:745
return binding.writeBuffer(fd, buffer, offset, length, position);
^
Error: ENOSPC: no space left on device, write
at Object.fs.writeSync (fs.js:745:20)
at Object.fs.writeFileSync (fs.js:1326:24)
at LocalStorage.persistKeySync (/usr/local/lib/node_modules/homebridge/node_modules/node-persist/local-storage.js:457:12)
at LocalStorage.setItemSync (/usr/local/lib/node_modules/homebridge/node_modules/node-persist/local-storage.js:275:14)
at Object.nodePersist.setItemSync (/usr/local/lib/node_modules/homebridge/node_modules/node-persist/node-persist.js:99:29)
at AccessoryInfo.save (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/model/AccessoryInfo.js:161:11)
at Bridge.Accessory.publish (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:439:23)
at Server._publish (/usr/local/lib/node_modules/homebridge/lib/server.js:114:16)
at Server. (/usr/local/lib/node_modules/homebridge/lib/server.js:372:14)
at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:15:19
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/nfarina/homebridge/issues/1332, or mute the thread https://github.com/notifications/unsubscribe-auth/AS5CmNv40JanomiOhoSonn3uII3i9p3Rks5sCF8kgaJpZM4N0m9Q.

sudo apt-get autoclean

Please close this issue if you have your answer. Thanks


Simplify creating CustomBlockMappings

I removed the property type checking, so all properties are treated as strings.
I also moved the condition building and block state building into the same function,
so we're not passing around state -> value maps and parsing the state string twice.
Mapping changes:
You can omit minecraft: from the block mappings.
State overrides don't need [ and ].
Collision box & selection box accept floating point values.

Thanks. Looks much cleaner.


add: Deepesh Patil

Description

Related Issues

Changes Proposed

Checklist

[x] I have read and followed the Contribution Guidelines.
[x] All new and existing tests passed.
[x] I have updated the documentation to reflect the changes I've made.
[x] My code follows the code style of this project.
[x] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

Hi @LazyCodwr, thanks for your interest in contributing to DevDisplay!
Before we proceed, we noticed you adding your profile on #DevDisplay but forgot to star the repo. It's like making an amazing sandwich and forgetting to take a bite! -- I think our repo's feeling a little lonely without your 🤗 So, be sure to star the DevDisplay GitHub Repository. 🌟
💌 This is a mandatory step for all contributors. & It's is the first priority of contribution in DevDisplay 💌
🚀 We look forward to your contribution once these steps are completed. 🚀
Thanks 👍🏻

& one more things

& one more thing you changes 10 file in this
join our WhatsApp community
and share the details info of your 10 file changes in this apart from your profile add
https://chat.whatsapp.com/Dcl21sgGDIpHURESSuH0p4

& one more things

& one more thing you changes 10 file in this
join our WhatsApp community
and share the details info of your 10 file changes in this apart from your profile add
https://chat.whatsapp.com/Dcl21sgGDIpHURESSuH0p4

My bad, looks like i forgot to mention the folder .idea in the .gitignore.
It was added because I was using Intellij Idea
Lemme fix that..

Ooh, and one more thing I wanna ask. Do u mind if I add the Instagram block as well along the Twitter and LinkedIn block, in Profile.jsx

& one more things

& one more thing you changes 10 file in this
join our WhatsApp community
and share the details info of your 10 file changes in this apart from your profile add
https://chat.whatsapp.com/Dcl21sgGDIpHURESSuH0p4

My bad, looks like i forgot to mention the folder .idea in the .gitignore. It was added because I was using Pycharm
Lemme fix that..

I have fixed that issue

Ooh, and one more thing I wanna ask. Do u mind if I add the Instagram block as well along the Twitter and LinkedIn block, in Profile.jsx

hey yoo, what abt this ?


Bump Package Manager to version 2022.07.0-9 and merge non-root changes

Merging in changes from dev-rspm and bumping image to 2022.07.0-9

CI seems to be failing for a mysterious reason -- does the image seem to work correctly in your testing?

@atheriel Yup, we've been using the dev-rspm branch in our K8s cluster cc @rodrigobrim

Oh, also - y'all missed updating the Makefile (which currently drives the CI build version): https://github.com/rstudio/rstudio-docker-products/blob/main/RELEASE.md
Worth noting that make update-versions fails on certain OS's... 😓 Hence #321

And re: CI, the container is failing to start on this:
2022/07/20 16:27:40 Creating pypi directory: /var/lib/rstudio-pm/pypi
2022/07/20 16:27:40 Creating launcher directory: /data/launcher_internal
2022/07/20 16:27:40 Error: Unable to initialize the configuration: mkdir /data: permission denied

From here in the config:
LauncherDir = /data/launcher_internal


MissingTemplate upgrading to Rails 7

Hello. I'm performing an upgrade from Rails 6 -> <IP_ADDRESS>.
I think this is not the right way to do this, but we have an render block in the text that is getting a MissingTemplate error.
subject(:described_view) { render template: "notifications/slack/new_current_coverage_created.md.erb" }

I believe i'm up against some combination of not having the file extension in the file or template argument, using :formats and/or registering a custom handler but wanted to avoid rendering the template in a different way than it currently is so-as to keep the changeset as minimal as possible. Here is the stack trace I get with my code as-is.
     Failure/Error: subject(:described_view) { render template: "notifications/slack/new_current_coverage_created.md.erb" }

     ActionView::MissingTemplate:
       Missing template notifications/slack/new_current_coverage_created.md.erb with {:locale=>[:en], :formats=>[:html, :text, :js, :css, :ics, :csv, :vcf, :vtt, :png, :jpeg, :gif, :bmp, :tiff, :svg, :mpeg, :mp3, :ogg, :m4a, :webm, :mp4, :otf, :ttf, :woff, :woff2, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip, :gzip, :json, :xlsx], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby]}.

       Searched in:
         * "/Users/jhirn/src/tflow/core_api/app/views"
         * "/Users/jhirn/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/actionmailbox-<IP_ADDRESS>/app/views"

       Did you mean?  notifications/slack/new_current_coverage_created
                      notifications/slack/new_placement_event_created
                      notifications/slack/new_employer_created
                      notifications/slack/firm_quote_requested
                      notifications/slack/employer_disabled
                      rails/conductor/action_mailbox/inbound_emails/new

Here's an example handler I've done in an initializer which registers the handler, but does help with finding the template
Rails.application.config.to_prepare do
  class MarkdownTemplateHandler
    def call(template, source)
      markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML)

      compiled_source = erb.call(template, source)

      markdown.render(compiled_source).inspect.html_safe
    end

    private

    def erb
      @erb ||= ActionView::Template.registered_template_handler(:erb)
    end
  end

  ActionView::Template.register_template_handler(:md, MarkdownTemplateHandler.new)
end

Any insights are appreciated.

https://stackoverflow.com/a/71069848/511374 so you have to remove .md.erb from your partial reference.


How to use the model for only inference?

Assuming I don't have any labeled data (not even train or val), how to use the model only for inference?

It's going to be a pain since I didn't write the code for inference.  So, you would have to do some workarounds. You need to load:

The text transform (transforms the text to integers)
The model
The label transform (transforms the predictions back to code)

All the models except for PLM-ICD also need the text_encoder.  Sorry for not being more of a help, but this code was only intended for the reproducibility paper. Therefore, it's not as flexible as it could have been.


WinForms issue

VS Community 16.60
.net 4.8.03752
language: vb
Edge 81.0.416.77 64-bit
Added the control to the form, added the url to the control's source field
application throws an error when the form tries to load.
NullReferenceException: Object reference not set to an instance of an object.
This exception was originally thrown at this call stack:
Microsoft.Web.WebView2.WinForms.WebView2.OnVisibleChanged(System.EventArgs)
System.Windows.Forms.Control.AssignParent(System.Windows.Forms.Control)
System.Windows.Forms.Control.ControlCollection.Add(System.Windows.Forms.Control)
System.Windows.Forms.Form.ControlCollection.Add(System.Windows.Forms.Control)
CreateEpub.Form1.InitializeComponent() in Form1.Designer.vb
CreateEpub.Form1.Form1()
Documentation here and on today's build session (https://www.youtube.com/watch?v=1s47pOpL4_s) doesn't mention initializing or show how to do it.
I'm obviously doing something wrong or it's not supported in my setup.

Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: c82b4fb3-b1bd-ea62-5f3d-335caf143497
Version Independent ID: a0d2d661-8d09-126b-c60f-6a3fd36a4a03
Content: Microsoft Edge WebView2 Control - Microsoft Edge Development
Content Source: microsoft-edge/webview2/index.md
Product: microsoft-edge
Technology: webview
GitHub Login: @MSEdgeTeam
Microsoft Alias: msedgedevrel

I am having the same issue. If a fix is found I would like to see it.

Me too.

It worked after I installed the canary version

I'm sorry, "Canary" version? I have installed through NuGet. Is Canary a different method?

Canary is the beta or alpha ring of edge chromium

Here's a link to the insider's channel where you can download the canary or beta version: https://www.microsoftedgeinsider.com/en-us/

Also don't forget to allow prereleases when you install WebView2 from nuget.  Latest version as of today is v0.9.515-prerelease

@Oatmeal25 @CWCWOOD - I'm curious to know if you were using the code samples, or if you followed the get started topic. Thanks.

Neither here.  I'm trying to see if this will work for a vb.net project I'm working on.  I was trying to translate the talk from yesterday's build session into vb.
Are there any dependencies I'm missing?  Probably not as that's usually taken care of by nuget.

@Oatmeal25  I am building WPF version using this link Getting Started with WebView2 in WPF (Preview)  and do not get an error having the issue mentioned here 693
I am going to try using the canary version thanks @Reezaali

Oatmeal,
I am using the get started topic. I got it working once I downloaded the Canary version of Edge.

this.Controls.Add(this.webView21);
-> NullReferenceException
With any version of Edge (Chrome), including the latest beta and with any version of WebView2.
Steps:

Drop the control on a form, hit run.

If I create a brand new VB Desktop .net application (4.7.2), install webview2, added it to the form and add the url to source it works.  Can't add to my existing application though as it throws the same error mentioned previously.
I went back to my project and changed project settings on the compile tab to match the fresh app.  Changed Option Strict to Off and checked Prefer 32-bit.
Then it worked.
But when I close the form I'm getting "Microsoft.Web.WebView2.Core.pdb not loaded" when I close the form.
Tried clearing the symbol cache and reinstalling webview2 but problem persists.

I'll go ahead and close this issue now. Feel free to re-open a new issue if there are additional questions. Thanks.

Hi All,
If anyone is still facing this issue then, I have found a possible work-around (hope Microsoft solves this soon).
Try to follow the mentioned steps:

To let the WebView2 work, the Microsoft Edge (Chromium) Canary needs to be installed from here:
https://www.microsoftedgeinsider.com/en-us/download
Only the pre-release of WebView2 NuGet will work, for now.
Important: I had to downgrade the WebView2 NuGet pre-release version one level down.
WebView2 0.9.579-prerelease - working
WebView2 0.9.628-prerelease - not working

Hope that helps.
Thanks,
Kush Mishra


fix: server crash if "localized" is used as property name

This PR fixes a server crash at startup if "localized" is used as property name.
INTERNAL ERROR] TypeError: Cannot read properties of undefined (reading 'endsWith')
    at _isLocalized (XXX/node_modules/@cap-js/graphql/lib/schema/util/index.js:6:80)

@schwma I addressed your comments. Please review again.

@schwma Could you merge the PR? I am not authorized.


Add french translations for Android TTS

All is in the title ^^
@Jean-BaptisteC 👋
Related to organicmaps/organicmaps#8855

@Jean-BaptisteC This should be good ^^. I forgot to translate the titles x)

Merci ! A few comments.

Should be good ^^.

@Jean-BaptisteC PTAL


cosmit + IO bug fix on epochs annotations

follow up on Epochs annotations PR

Thanks for the quick fix @agramfort !


License?

Is there a license for mGstat?  Can we redistribute (parts of) the code?

Yes. The MIT license has been chosen for mGstat.


Add new tests to this test suite

The did key spec has no normative statements: https://w3c-ccg.github.io/did-method-key/
We need more tests for did key based off of underlying specifications.

closing as did key spec has normative statements.


Update tailwind.ex custom path instructions

I ran the commands npm install -g<EMAIL_ADDRESS>and npm install -g<EMAIL_ADDRESS>in both Ubuntu and Windows with nodejs v18.18.2 and v20.8.0. None of those combinations generated the bin file in the documented path, but I did find them from the root NPM_PREFIX directory.
Could someone confirm this is the case on Mac Intel and Apple Silicon?
Ubuntu shell: nodejs v20.8.0 tailwindcss v3.3.5

Windows PowerShell: nodejs v18.18.2 tailwindcss v2.2.16

We could also add instructions for setting the env variable?

To set the environment variable in your shell of choice, run one of the following commands:
Linux (bash/zsh)
export MIX_TAILWIND_PATH=$(npm prefix -g)/bin/tailwindcss

Windows (PowerShell)
$env:MIX_TAILWIND_PATH = "$(npm prefix -g)/tailwind.ps1"

Windows (cmd.exe)
FOR /F "tokens=*" %i IN ('npm prefix -g') DO SET MIX_TAILWIND_PATH=%i/tailwind.cmd


How to compile?

Hi martin,
I downloaded QtCreator today to try to build Hale. I couldn't compile the dependency oniguruma, due to missing headers, it seems (eg "regparse.h"). Do you have any tips? Should I go looking at the Twitch streams do find out how to configure it?
Cheers!

I will be making a non-Qt build with only a single .bat file. So only thing you will need is Windows SDK and MSVC compiler. But I can't focus on that right now, I will try hard to make that ready sometime around the end of the marathon (sunday / monday).

Hello Hugo, I just found a weird thing in my commits. I haven't commited any .h or .hpp files.  :) However, give it a try now, it should work.


Upgrade go.mod to 1.21.

Description
Context
Our current go version is 1.21. Bump this go mod file to 1.21
This Diff

Bumps the go mod file to be 1.21

Test Plan
Unit tests
Documentation
N/A

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#4
#3
#2  👈
#1
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @8gian and the rest of your teammates on  Graphite


fix: always calculate budget usage

App card (and app page) will show usage even if no budget is set.

This is a bit strange because the field is called budget usage. But the app effectively has an infinite budget.


docs: add cheat sheet

What:
A single page, printable cheat sheet.

Why:
Users can download the document and print it to keep it handy when writing tests 👍

How:
Hmm... with Sketch?

Checklist:

[ ] Documentation added to the docs site 🤔N/A?
[x] Tests N/A
[x] Typescript definitions updated N/A
[x] Ready to be merged

✅ ready for merge

Let's add a link to this to the docs site 👍

@all-contributors, please add @bcarroll22 for docs

:tada: This PR is included in version 7.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Try to disable jlink testing on PRs

This is again testing bors.

bors r+

bors r-

bors r+

bors r-

bors r+


[Calendar] Accept-Delete-Update and BookMeetingRoom

Purpose
What is the context of this pull request? Why is it being done?
An initial version for Accept/Delete/Update meeting and BookMeetingRoom.
Changes
Are there any changes that need to be called out as significant or particularly difficult to grasp? (Include illustrative screenshots for context if applicable.)
Tests
Is this covered by existing tests or new ones? If no, why not?
Feature Plan
Are there any remaining steps or dependencies before this issue can be fully resolved? If so, describe and link to any relevant pull requests or issues.
Checklist
General

[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added or updated the appropriate tests
[ ] I have updated related documentation

I think you could just discuss and test with @KayMKM and then merge this.
We don't have tests and we are in the process of fast try-and-implement, reviews are somehow difficult and slow


Use a websocket module that doesn't require native modules

ws package requires native modules. And it's a bit fragile while installing. Let's find a pure JS one

@amasad have you managed to get ws working at all? I would like to use it for Firebase.
Also, have you seen these: #579 #619 and this project: https://github.com/tptee/RCTWebSocket

This is about the server use of WS (for debugging). When you npm install it installs native extensions which slows down the install.

ah, gotcha, doh. thanks ;-)
On Tue, Apr 7, 2015 at 8:23 PM, Amjad Masad<EMAIL_ADDRESS>wrote:

This is about the server use of WS (for debugging). When you npm install
it installs native extensions which slows down the install.
—
Reply to this email directly or view it on GitHub
https://github.com/facebook/react-native/issues/277#issuecomment-90688990
.

ws package requires native modules

It doesn't, actually. Native deps are optional

@vkurchatkin great, how do we disable them?

I don't think we can. Being optional dependency means that if npm fails to install it, it still proceeds.

@amasad - Would this be a websocket polyfill that relies on polling? Is this still an issue that is worth following up on? It seems like the built in WebSocket Native Module works well :smile:

What I meant, is that it's easy to implement a websocket server without node c/c++ extensions. And I don't know why they have to be native. Anyways, I'm just being pedantic :P


No callback received to update the status of opener in home

Hi,
I read a lot regarding no status of opener or opener stay in unlocked mode (do not switch back to locked). Tried to configure everythink and even capture via wireshark if messages coming from opener (bridge / HW: v1 / FW:1.16.0 // Opener FW 1.4.6.).
If I reboot homebridge the status meets the real and get the status changes in Home. After I "unlock" the opener so the lock in home stay in unlock.
I capture via wireshark what is going to and coming from bridge, I see request from homebridge for unlocking and getting the "OK", but afterwards no callback is coming from the bridge.
Normal should be locked -> tap to unlock -> unlock (unlatching) -> info from bridge to homebridge (callback) -> lock in home change to locked. Is or should this be the normal behavior ?
The main problem is, that a switch should open the door in homekit automation. After a homebridge restart it works immediately, even via nuki app, but only sometimes after the first "unlock" in homekit after a restart of homebridge.
The "Callback registered." should be ok since the logs, but never receive a callback for switching back to "locked".
this is my config:
{
            "platform": "NukiPlatform",
            "hostNameOrIpAddress": "hass",
            "hostCallbackApiPort": 40506,
            "bridgeIpAddress": "<IP_ADDRESS>",
            "bridgeApiPort": 8080,
            "bridgeApiToken": "123456h",
            "bridgeRebootSwitch": false,
            "devices": [
                {
                    "nukiId": 99887766,
                    "isRingToOpenEnabled": false,
                    "isContinuousModeEnabled": false,
                    "isDoorbellEnabled": true
                }
            ]
        }

Configuration of opener is:
Phone/Generic/Doorbell: yes
Could it be that, there is a special behavior with the opener config ??
Log of Homebridge:
[8/17/2020, 9:07:11 PM] [NukiPlatform] Cached accessories loaded.
[8/17/2020, 9:07:11 PM] [NukiPlatform] Device with Nuki ID 4 and name Opener is an Opener.
[8/17/2020, 9:07:11 PM] [NukiPlatform] 4 - Updating lock state: SECURED/SECURED
[8/17/2020, 9:07:11 PM] [NukiPlatform] 4 - Updating critical battery: false
[8/17/2020, 9:07:11 PM] [NukiPlatform] Device with Nuki ID 3 and name Haustür is a SmartLock.
[8/17/2020, 9:07:11 PM] [NukiPlatform] No configuration provided for device with Nuki ID 3.
[8/17/2020, 9:07:11 PM] [NukiPlatform] Device with Nuki ID 34 and name Wohnungstür is a SmartLock.
[8/17/2020, 9:07:11 PM] [NukiPlatform] No configuration provided for device with Nuki ID 34.
[8/17/2020, 9:07:11 PM] [NukiPlatform] Got devices from the Nuki Bridge API.
[8/17/2020, 9:07:11 PM] [NukiPlatform] Callback server started.
[8/17/2020, 9:07:17 PM] [NukiPlatform] Callback registered.
[8/17/2020, 9:15:45 PM] [NukiPlatform] 4 - Unlock
[8/17/2020, 9:15:46 PM] [NukiPlatform] 4 - Unlock
[8/17/2020, 9:16:06 PM] [NukiPlatform] Error while communicating with the Nuki Bridge. Error: Error: socket hang up
[8/17/2020, 9:16:10 PM] [NukiPlatform] Error while communicating with the Nuki Bridge. Status Code: 503
[8/17/2020, 9:16:13 PM] [NukiPlatform] Error while communicating with the Nuki Bridge. Status Code: 503
[8/17/2020, 9:16:30 PM] [NukiPlatform] 4 - Unlock
[8/17/2020, 9:16:30 PM] [NukiPlatform] Error while communicating with the Nuki Bridge. Status Code: 503
[8/17/2020, 9:16:33 PM] [NukiPlatform] Error while communicating with the Nuki Bridge. Status Code: 503
[8/17/2020, 9:16:36 PM] [NukiPlatform] Error while communicating with the Nuki Bridge. Status Code: 503

It would be nice if we could find a solution for that...
Thanks in advance!

I tried this:
Checked which callback entrys are in the bridge:
List callback:
http://<IP_ADDRESS>:8080/callback/list?token=1234567
Remove wrong callback entry:
http://<IP_ADDRESS>:8080/callback/remove?id=0&token=1234567
http://<IP_ADDRESS>:8080/callback/remove?id=1&token=1234567
http://<IP_ADDRESS>:8080/callback/remove?id=3&token=1234567

Reboot homebridge, afterwards the homebridge ip with port should be configured:
http://<IP_ADDRESS>:8080/callback/list?token=1234567
result (but still not working):
{"callbacks": [{"id": 0, "url": "http://hass:40506"}]}
after I changed the hostname of homebridge to its ip-address it worked:
{"callbacks": [{"id": 0, "url": "http://<IP_ADDRESS>:40506"}]}
and get the right behavior:
[8/18/2020, 9:20:58 AM] [NukiPlatform] 4 - Unlock
[8/18/2020, 9:21:09 AM] [NukiPlatform] Callback received.
[8/18/2020, 9:21:09 AM] [NukiPlatform] 4 - Updating lock state: SECURED/SECURED
[8/18/2020, 9:21:09 AM] [NukiPlatform] 4 - Updating critical battery: false

afterwards it worked also with the hostNameOrIpAddress: hassio.fritz.box
Even I could resolve all hostnames with suffix or without, it didn't work.  So I assume there was in the bridge a old hostname to ip mapping, to the old ip of the homebridge hostname. And yes I rebooted bridge and homebridge hw many times...
I write this as information, if someone have a similar issue.


Indexing doesn't work for medium sized projects on Windows 10 (files don't show up in 'Search in file' and 'Go to file')

VSCode Version: 1.18.1
OS Version: Windows 10 Home Edition (64 bit)

Hi guys,
I have a problem with indexing for both my web(default support) and Python(with the official Python extension installed) projects (22k files & 30k files projects). For some of those(web projects) VSCode works fine but for the others I can't find any files in Go to file and Search in files, excluding those I already opened with the editor.
I deleted any cache/settings both for my user and folder and even uninstalled(then re-installed) VSCode but it still occurs in the same projects. I tried the Insiders build(1.19.0-insider) and it doesn't seem to be solved(yet) there. In addition, I double verified my user and folder "search.exclude" and "files.exclude" settings.
NOTE: I originally commented here(requested to open a new issue):
https://github.com/Microsoft/vscode/issues/39440#issuecomment-350900107
It seems to be the exact same problem, but for medium sized projects
Steps to Reproduce:

Open the problematic project

Reproduces without extensions: Yes
Thanks in advance,
Elran

Hi, try to add this to your settings: "files.useExperimentalFileWatcher": true
Try to exclude as much as possible stuff like tmp, temp, dist, build, node_modules, bower_components, etc. all stuff which is not needed for you in search/go to file, they still will be available in file explorer.

Hi, thanks very much for the help. It works now! @bsvipas
What made it work was to set the property "search.useRipgrep" to false. Or more accurately, what made the bug was the use of Ripgrep on Windows 10.
So the issue can be closed now :)
If you have the time for an optional question (I always have to know the whys and hows):
Except for the expected impact on performance, is there any other implication of setting this property to false? because I can't find any documentation on that.

Thanks for trying that, I'd rather get to the bottom of why it doesn't work with ripgrep, if you don't mind a little more trouble shooting.

In a folder where it doesn't work, can you show the output of the search output pane?

What's different between the folders where it works, and where it doesn't?

So to the point. That's the output for the folders where it doesn't work (and ripgrep is enabled, by default). There is no output when/for:

a project where the indexing worked initially
ripgrep is disabled

Because of that 'access denied' message, I thought it might worth the effort to try and run VSCode as an administrator, just in case.. but it didn't change anything.
Hope it helps! @roblourens

Is that folder tracked in OneDrive?

Nope. I'd used to sync my workspace with OneDrive a few months ago, but I already learned this lesson ;)

Hm... so what's different about that location? Is it all folders under Workspace that don't work?

Nope, some of them work and others don't. Though I only checked this for 4 folder (didn't work for 2 till I disabled 'ripgrep').

I wonder if you copied that folder out of OneDrive earlier and it brought some weird attributes along with it?

I copied the problematic folders our of OneDrive. Regards your question.. I didn't notice anything on git, so I don't think so, but the only think certain in this work is uncertainty :)
If you heard about similar cases with folders that carry some evil out of OneDrive I'll be happy to know what should I look for(?)
@roblourens

Well there is a bug around searching in some OneDrive folders - https://github.com/Microsoft/vscode/issues/35433, and it's suspicious that you get exactly the same symptoms and error message - (os error 5).
Is it possible to try re-cloning the project into a different location? OneDrive can use special filesystem nodes which don't really show up anywhere else.

I have the same issues as author have in main topic, but on MacOS
I have project with magento2 + couple of themes and the quick open option doesn't work for me (https://github.com/Microsoft/vscode/issues/40272)

Same issue here, disabling ripgrep seems to work.

VSCode Version: Code 1.19.0 (816be6780ca8bd0ab80314e11478c48c70d09383, 2017-12-14T12:06:43.492Z)
OS Version: Windows_NT x64 10.0.16299

Unfortunatelly it stop works for me even if I have "search.useRipgrep": false ....

@PixelT I asked you a question about your problem in #40272 earlier

Hi, sorry for the late response.
So.. I cloned the project folder(s) again from my remote repo and it seems to be working now.
I guess you were right, @roblourens , "OneDrive can use special filesystem nodes which don't really show up anywhere else.". Yes it does and this is why(I guess) it didn't work for me even though I moved our those folders from my One-Drive and why I didn't notice any change in my local git repo.
Thanks for the kind help, hope it will help others.

I'm having this issue in OSX with a big Drupal project (php). Disabling ripGrep fixed it.

Thanks for following up @ElranKadosh. I will file this under https://github.com/Microsoft/vscode/issues/35433 - it's surprising that the onedrive strangeness persists even when the folder isn't tracked by onedrive anymore.


Use underlying type instead of narrowed literals for type inferrance

Describe what's missing
As of version 1.4 the extension adds the inferred type to function parameters when using the Create Function action in typescript files. When the argument is a literal though like 3 (number) or "Hi" (string) it will generate the parameter declaration using this narrowed type instead of the general type (number or string).
I suggest to substitute the narrowed type with the general type in the cases of primitive literals (in particular string and enums).
How would it work
When analysing the argument types, the extension could special-case arguments of type NumericLiteral and StringLiteral and use number or string instead of the types received from the type checker.
Expected behavior
Instead of doSomething("hello") -> function doSomething(param1: "hello") we'd get function doSomething(param1: string).
Additional information

Version of the extension used: v1.4

Rationale
I'm thinking of use cases like this:
logError("Oops, something went wrong");

or
throw new TotallyNonExistingError("I'm sorry Dave");

(last use case would be Create Class, but it's not using the types yet). Surely here the general string type would be more appropriate than the narrowed one.

👍 I also thinks generic types are what you expect 99% of the time. Narrowed types are correct (TS inferred them) but they're not what we mean in general when we take this approach (using function before it's created, to craft the signature).

I did some magic to resolve the generic type instead of these. That seems to work. Let me know if you find issues 👍


Spectral Model mask & map

Data type of mask  -> just simple numpy array or object (e.g., containing name and also possibilities to perform transformations?)

One ore multiple maps (e.g. adding them together) using multiple signals in one FID (=multiple metabolites included)

MetabolicMap --> FIDs * concentration/map * mask --> is the concentration kind of a metabolic map? Or what is this scaling matrix? Difference to MetabolicMap in spatial module?

Mask -> no additional methods are necessary
MetabolicMap -> not necessary to sum it up, or other methods


SUBMARINE-582. [WEB] Implement frontend of environment page in workbench

What is this PR for?
Init environment page in workbench

Add environment in the sidebar
Add environment table (use mock data)
Add tests (environmentIT.java)

What type of PR is it?
[Feature]
Todos

[ ] - Task

What is the Jira issue?
https://issues.apache.org/jira/browse/SUBMARINE-582
How should this be tested?
https://travis-ci.org/github/pingsutw/hadoop-submarine/builds/712301554
Screenshots (if appropriate)

Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

@pingsutw Thank you contribution this feature.
Will merge if no more comments.


[Bug for Laraphense]: PHP Attributes are highlighted as comments

Bug description
hash # make a string as a comment but PHP attributes are also displayed as a comment

Plugin version
0.0.5
Operating system
None
Steps to reproduce
No response
Relevant log output
No response

fixed in v0.0.6


Environmental issues

Hello, when I was installing the environment, I found that many packages in the requirements.txt conflict with the environment, are the versions of the packages in there correct?

The requirements.txt is generated by the script under the environment. It may not be the same with the used environment. I think you could try installing torch-related with conda first and then other related libraries with pip (when you debug and use requirements.txt only as a reference).

Thanks for clearing that up.

The requirements.txt is generated by the script under the environment. It may not be the same with the used environment. I think you could try installing torch-related with conda first and then other related libraries with pip (when you debug and use requirements.txt only as a reference).


Need to add/change functions in psgeolang so that adding language packs would be easy

However, note that i have a design principle that psgeo overall should stay relatively compact and not have a ton of dependencies elsewhere.

There's a tradeoff.
We can make adding language packs possible from separate files etc. The positive is that is easier to do. The downside is that then it gets added on someone's file, and is not generally usable by other psgeo users.
I'm betting that there's not too many users and languages, and it would be better for us to keep all those translations inside our version control system and possibly even in the code. This means that we can for instance easily add new features, and all languages are easily accessible by anyone who uses them. I'd expect you to do Swedish, and maybe ... french/spanish at some point, depending on need.
I'd suggest not doing anything about this. I care more for the quality of the translations (and that they cover all features, including new ones) than the ease for someone else to add stuff.

Housekeeping: As this is a wontfix, I assume we can close this ticket.


MYRIAD-170 Myriad initialization fails with "parameter 5 of org.apach…

…e.myriad.scheduler.MyriadOperations.() is not @Nullable
Myriad State store is no longer passed using Guice
We now get state store from RMContext.
Tried using HA disabled in yarn and myriad. Was able to run CGS and FGS NM's
Tried using HA enabled in yarn and myriad. Was able to run CGS and FGS NM's

+1. Let's make sure it is tested though.

ship it! :rocket:


Terminal text vertically clipped

VSCode version:
Version 1.17.2
Commit b813d12980308015bcd2b3a2f6efa5c810c33ba5
Date 2017-10-16T13:57:00.652Z
Shell 1.7.7
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64

Using Ubuntu Xenial (16.04), installed fonts (using apt-get): fonts-noto, fonts-dejavu
Using "editor.fontFamily": "'Noto Mono'", "terminal.integrated.fontSize": 14, notice how the bottom of the letter g is clipped:

Using "editor.fontFamily": "'DejaVu Sans Mono'", "terminal.integrated.fontSize": 14, running echo ____, notice how the underscore character _ is completely invisible:

The problem only happens in the terminal panel but not in the file editing area, despite they're using the same font with the same font size. Adjusting "terminal.integrated.lineHeight" has no effect on the clipping issue.

Same issue on Fedora 25
Version 1.17.2
Commit b813d12980308015bcd2b3a2f6efa5c810c33ba5

Using "Source Code Pro" as the terminal font mitigates this issue though.

Duplicate https://github.com/Microsoft/vscode/issues/35901


Initial lint run

I'm so sorry we lost track of this @edmondop !  Would love to rerun and get us up to speed

I'm so sorry we lost track of this @edmondop !  Would love to rerun and get us up to speed

I can rebase and reimplement the fix if you feel like , shouldn't be hard

Thanks Edmondo
Niklas
On Thu, Nov 16 2023 at 1:34 PM, Edmondo Porcu @.***>
wrote:

I'm so sorry we lost track of this @edmondop https://github.com/edmondop
!  Would love to rerun and get us up to speed
I can rebase and reimplement the fix if you feel like , shouldn't be hard
—
Reply to this email directly, view it on GitHub
https://github.com/log10-io/log10/pull/54#issuecomment-1815350201, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAG3CXSEGMS5LEHP45AYRJDYE2BGDAVCNFSM6AAAAAA4FHIDV2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJVGM2TAMRQGE
.
You are receiving this because you commented.Message ID:
@.***>

Thanks Edmondo Niklas
…
On Thu, Nov 16 2023 at 1:34 PM, Edmondo Porcu @.> wrote: I'm so sorry we lost track of this @edmondop https://github.com/edmondop !  Would love to rerun and get us up to speed I can rebase and reimplement the fix if you feel like , shouldn't be hard — Reply to this email directly, view it on GitHub <#54 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG3CXSEGMS5LEHP45AYRJDYE2BGDAVCNFSM6AAAAAA4FHIDV2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJVGM2TAMRQGE . You are receiving this because you commented.Message ID: @.>

It's ready for merge

There are a lot of improvement that could be done, such as removing unused imports, getting the code length to 120, removing unused variables, etc. Can you check the current state and confirm you agree with the direction? There is still lot of work to do @nqn

@edmondop thanks for contributing!
I noticed you used flake8. There's a newer tool called ruff, which has been adopted by some Python libraries like Hugging Face, OpenAI, and Anthropic. It's often used alongside black and isort for formatting. E.g.

openai (anthropic has identical code): https://github.com/openai/openai-python/blob/90aa5eb3ed6b92d9a1de89c0ee063f4768f92256/pyproject.toml#L64-L76
HuggingFace: https://github.com/huggingface/transformers/pull/27144

I think it would be beneficial for us to adopt a similar approach. Have you had any experience with ruff? Would you be open to giving it a try and updating the PR with it?

@edmondop thanks for contributing! I noticed you used flake8. There's a newer tool called ruff, which has been adopted by some Python libraries like Hugging Face, OpenAI, and Anthropic. It's often used alongside black and isort for formatting. E.g.

openai (anthropic has identical code<EMAIL_ADDRESS>HuggingFace: [Styling] stylify using ruff huggingface/transformers#27144

I think it would be beneficial for us to adopt a similar approach. Have you had any experience with ruff? Would you be open to giving it a try and updating the PR with it?

I like the idea @wenzhe-log10 ! It looks there's quite a bit of work to be done to bring the code in line with styleguides, I just wanted to check there's buy-in to do this before I proceed further

@edmondop That's great! @nqn and I have discussed and we are on board to proceed with the update. I would recommend starting with something similar to the current openai-python practice.
Greatly appreciate your initiative. Let us know if you need any assistance.

@edmondop That's great! @nqn and I have discussed and we are on board to proceed with the update. I would recommend starting with something similar to the current openai-python practice.
Greatly appreciate your initiative. Let us know if you need any assistance.

Almost done, there's a lot of work to do with implicits optionals that are forbidden under PEP 484 and function/types , but I amgetting there

Is it possible for hparams to be not set, and for log10 config to be not set?

@edmondop yes, both could be not set.

Is it possible for hparams to be not set, and for log10 config to be not set?

@edmondop yes, both could be not set.

then you agree that L137 for example as above should check for it to be set. What's the expected behavior when the config is not set? NOOP? raise an Exception?

Generally speaking, it is NOOP, like return None here. https://github.com/log10-io/log10/blob/38f62f8c443f0720fe4856bd1e8d3da16d2bd53f/log10/llm.py#L175-L176
Do you see many places need adding the guard? In log10/llm.py, I see it's missing for func last_completion_url and we could return None.

@wenzhe-log10 after spending 2/3 hours there are still several hundreds of errors with py-right. It's probably easier to rewrite from scratch the code rather than fixing design problems and usage of problematic patterns, what do you think?

@edmondop thanks for the effort. I'm curious to see the errors. Could you please tell me the steps to reproduce the errors?

@edmondop thanks for the effort. I'm curious to see the errors. Could you please tell me the steps to reproduce the errors?

You can checkout the code and run make lint or make lint-pyright for example

@edmondop I didn't find lint-pyright in makefile. Wonder if the branch has your latest change. The last commit is from 5 days ago.

@edmondop I didn't find lint-pyright in makefile. Wonder if the branch has your latest change. The last commit is from 5 days ago.

Apologies, got a rejected push. Can you try now?

See your latest code now. Thank you.

@edmondop I used ruff for lint and format and created a PR #75. Currently opt out the pyright stuff. Do you mind if I close this PR? thanks.


Locale- Swahili Translation not proper

Describe the bug
Swahili locale relative translation and formatting is not correct
Expected behavior
The statement 7 days ago should be translated in swahili as siku 7 zilizopita and not tokea masiku 7
Also 3 hours ago should be Dakika 3 zilizopita

@fadsel thoughts?

I 've just saw this , even though the meanings are the same but it is a better translation , let me pull fix it

https://github.com/moment/moment/pull/5544

Closed that in favor of this one https://github.com/moment/moment/pull/5545


Tyler codes and Efile registration interview

Adds the proper Tyler codes to each court in the XLSX spreadsheet, and also adds an interview for efiling registration.

Decided that these changes should be in a different repo for now. Closing


Forward declaration "class DeviceCommissioner" in src/controller hides a build dependency

Why is the forward declaration required? I am concerned when these show up since it may hint that some circular dependencies or wrong build dependencies are being introduced (i.e. we can use this to bypass gn enforcement of library dependencies).
please include the header instead.
Originally posted by @andy31415 in https://github.com/project-chip/connectedhomeip/pull/9847#discussion_r713155061

Here is my reply from the original issue.

You are correct in the sense that CHIPDeviceController.h includes SetUpCodePairer.h and SetupCodePairer.h declares a member of type DeviceCommissioner which is defined into CHIPDeviceController.h.
As I mentioned in the initial comment of the issue, all the "mdns" operations are tied to CHIPDeviceController, and SetupCodePairer uses it... It is unclear that this mdns code needs to be tied to CHIPDeviceController directly.
As such I could have added a delegate to call back into DeviceCommissioner::PairDevice(NodeId remoteId, RendezvousParameters & params) instead of doing mCommissioner->PairDevice directly but since I do need to have a reference to an instance of the commissioner already for mdns operations I have used it...
I think the real fix here would be to move the mdns operations to a separate class, and have it beeing used from multiple classes.


Need a way to access Tuple elements and slice

I'm trying to read a block of tuples in and group them by a prefix. I need to be able to, for example, drop the first element of the tuple, then pass it on. It looks like you tried to prevent that unlike the other fdb apis? (e.g. java and golang).
I'm doing something like what is described here: https://forums.foundationdb.org/t/best-practice-of-storing-structs-should-i-pack-or-store-fields-separately/425/2?u=dongxineric
I'm storing the fields separately which means I need to be able to gather them by the "key" prefix.

I'm trying to read a block of tuples in and group them by a prefix. I need to be able to, for example, drop the first element of the tuple, then pass it on. It looks like you tried to prevent that unlike the other fdb apis? (e.g. java and golang).

Thanks for opening this issue.
If I understand your issue correctly, what you are asking for is to take a tuple value of the form (("name", "john"), ("age", 34),) and drop the first element to create a tuple of the form (("age", 34),).
If that is so, then currently there is no public API that can address it. I think this feature will be useful for layer development and I'll add it in the next release.
I'll outline my initial thoughts on how we could implement this in case you are interested in contributing a PR. :-)
Internally, Tuple elements are stored as a Vec<TupleValue>. If we want to implement this feature, we will need to change this to VecDeque<TupleValue>. With that change, we will get push_{back,front} and pop_{back,front} APIs, which we can use to implement this feature. We will also need to check for versionstamp status when we mutate a tuple.

Yes, I think what you are suggesting would work. Let me explain in detail.
If you think of a struct:
User {
first_name: String
last_name: String}
}
So I would have tuples (assuming the value is in the tuple)
(user, $userid-1, first_name, Sam)
(user, $userid-1, last_name, Burton)
(user, $userid-2, first_name, Charles)
(user, $userid-2, last_name, Barkley)
and I would drop the “user” prefix, then check the next level:
($userid-1, first_name, Sam)
($userid-1, last_name, Burton)
($userid-2, first_name, Charles)
($userid-2, last_name, Barkley)

Then find the common prefix, and create the user struct for each:
for User $userid-1:
    (first_name, Sam)
    (last_name, Burton

for User $userid-2:
(first_name, Charles)
(last_name, Barkley)
So you could think of it as a “slice” operation taking the everything after the first element. pop_front would work for this.
I have a work-around for insert(0) and push() using append().
But your solution would solve both problems.

On Jul 31, 2022, at 5:27 PM, Rajiv M Ranganath @.***> wrote:
I'm trying to read a block of tuples in and group them by a prefix. I need to be able to, for example, drop the first element of the tuple, then pass it on. It looks like you tried to prevent that unlike the other fdb apis? (e.g. java and golang).
Thanks for opening this issue.
If I understand your issue correctly, what you are asking for is to take a tuple value of the form (("name", "john"), ("age", 34),) and drop the first element to create a tuple of the form (("age", 34),).
If that is so, then currently there is no public API that can address it. I think this feature will be useful for layer development and I'll add it in the next release.
I'll outline my initial thoughts on how we could implement this in case you are interested in contributing a PR. :-)
Internally, Tuple elements are stored as a Vec. If we want to implement this feature, we will need to change this to VecDeque. With that change, we will get push_{back,front} and pop_{back,front} APIs, which we can use to implement this feature. We will also need to check for versionstamp status when we mutate a tuple.
—
Reply to this email directly, view it on GitHub https://github.com/fdb-rs/fdb/issues/30#issuecomment-1200543906, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXKK6I36OYKRIZCYA4CYELVW4KYZANCNFSM55FJ3FEQ.
You are receiving this because you authored the thread.

@ggilley I've pushed a new Tuple API modeled after Rust's VecDeque to a temporary repository here. The new API will land in 0.4.x release and should address your issue.
I don't know when I might do the next release as am currently busy with the layer crate. Feel free to use this repository in the meantime. Sorry for the delay!


This PR  makes the marker interface INotification optional.

INotification is an unnecessary constraint. It's absence does not prevent the correct functioning of INotificationHandler/INotificationPublisher.
This avoids the creation of a specific type for each notification type, and allows us to define handlers using value tuples:
public class Entity
{
}

public enum Operation
{
  Create,
  Update
}

public class EntityEventHandler : INotificationHandler<(Entity Entity, Operation Operation)>
{

    public Task Handle((Entity Entity, Operation Operation) notification, CancellationToken cancellationToken)
    {
    }
}

... and then call them using a syntax like:
        mediator.Publish((entity, Operation.Create));

The INotification interface is also there to prevent mistakes. Not publishing requests or sending notifications. I don't want to go back on that just to enable tuples.


llm server for lm-eval.

Description
init model with lm-eval https://github.com/opea-project/GenAIEval, which can support multi devices, and start a server with fastapi.

usage
export MODEL="hf"
export MODEL_ARGS="pretrained=Intel/neural-chat-7b-v3-3"
export DEVICE="cpu"
python llm_hf.py


generated yaml config has no underscores

eg base_dn is defined in https://github.com/owncloud/ocis/blob/master/glauth/pkg/config/config.go#L33 but rendere as basedn in https://owncloud.dev/extensions/glauth/configuration/#example-yaml-config

cc @dragonchaser

https://github.com/go-yaml/yaml/issues/424


Server playback mode doesn't use certificates from the saved response file

Certificates are being stored in the saved response file when initial recording traffic, but during server playback these certificates are not used (although they are loaded into the flow object).
I ran into this issue because a rogue server was sending back the wrong certificate, and thus I was getting the bad certificate even though I thought the certificates were being pulled from my saved response file.
--no-upstream-cert works around the issue, but I don't get the same altnames as the saved certificate.
I can't find exactly where in the code this is going wrong, but I did notice in libmproxy/proxy/server.py that find_cert() is always using the upstream cert even for server playback, since it seems to have a connection to the upstream server. That's unexpected too, I don't want my server playbacks to be connecting upstream, they should only be communicating with the client by returning responses from the saved response file.

Hi @macmantrl,
thanks for the report! A server replay may contain flows from multiple sources (served with different certs). The issue is that we can't look into the request to determine the correct cert to serve before establishing TLS. Thus, we need to rely on SNI (which may not be present), the upstream certificate (if not disabled) and possibly the server name from a CONNECT request (not in transparent mode).
One could of course connect the SSL layer with the HTTP protocol layer within mitmproxy and search for matching certificates - I wouldn't be too keen to interconnect these layers though. As a workaround, you can always use --cert and specify custom certificates for selected domains. Alternatively, I'd be happy to accept a patch that adds a inline script hook for find_cert.
Cheers,
Max


simplified new event edit endpoint

so we can edit the password field of the event.
added new password header extractor aswell.

client side flow mocked up:
https://github.com/liveask/liveask/assets/776816/fb94af5e-e83c-43c7-b214-953d1f834ac3

https://github.com/liveask/liveask/assets/776816/ffa4e8d1-1ee7-4053-9aa8-4e22e848c50e


[NEW ICON] SQL

Skill Name
SQL
Why?
A famous database language, please consider this and many will be able to put this on their resume.
Reference Image

The .png version in wikimedia is much better. i dont know why the S is that awful in the .svg version


Updating reader.py

In line 79 (ix_df = df.rdd.zipWithIndex().map(lambda (row, ix): row + (ix + 1,)).toDF()) we should specify the schema of the dataframe
Benefit: we will be sure that the dataframe has the correct schema
Cost: 15 minutes for the change and for testing

TODO: Week of 4/23


'Cannot define if should send all' - fix bug throwing this error

What's in this PR?
We have had about 350k error logs in the last 7 days in prod since the flag is returning false and treating that like an array.
Have checked its an array before trying to use .includes on it

@tavomaciel FYI


Auto-suggest the next command after completing the previous one

Is your feature request related to a problem? Please describe.
Nope
Describe the solution you'd like
I have noticed a bottleneck on my workflow when I began using this addon:
I generally have to chain multiple commands to do one thing, for example:
cd Workspace
cd Programming
cd Project
make
./build

It becomes quite cumbersome, because when I start to type cd, it auto-suggest the last command run, which in my case is useless.
What I'm proposing is a system that automatically suggest the next command recorded in the history, and is executed immediately if I press Enter. If I press Backspace or start typing something, this suggestion disappears.
Example:

I type cd Works, and it's already suggesting cd Workspace. I press the right arrow and Enter.
After cd Workspace is done running, the prompt is already suggesting cd Programming, which is the next command in the history. If I press Enter (without typing any character), it will run that command.
This continues indefinitely until the user no longer sees benefit on this mechanic (for example, suggesting a command that's no longer useful). At that time, the user either presses Backspace or starts manually typing, and the suggestion disappears until auto-suggestion is used again.

I would try to code this myself, but I looked at the source code and I have no experience with Shell/Ruby.
Describe alternatives you've considered
N/A
Additional context
N/A

What would be great is a way to navigate the history.  I find myself often in situations where I know the second best suggestion is what I'm looking for, but I have no way of navigating to that


[Program]: Convert binary to hexadecimal

Description
Write a program to convert binary to hexadecimal
Binary is a base-2 number system. It uses only two digits: 0 and 1. The digits are called bits. A bit is the smallest unit of information in a computer. A bit can be either 0 or 1. A bit can be used to represent a single value, such as 0 or 1, or it can be used to represent a single state, such as on or off.
Hexadecimal is a base-16 number system. It uses sixteen digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F. The digits are called hexits. A hexit is the smallest unit of information in a computer. A hexit can be used to represent a single value, such as 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, or F, or it can be used to represent a single state, such as on or off.
To convert a binary number to hexadecimal, we can use the following algorithm:

Convert the binary number to decimal.
Convert the decimal number to hexadecimal.

Input  : 1010
Output : A

Tracking Issues

[x] codinasion/codinasion#740
[ ] codinasion/codinasion#741
[x] codinasion/codinasion#742
[ ] codinasion/codinasion#743
[ ] codinasion/codinasion#744
[x] codinasion/codinasion#745
[x] codinasion/codinasion#746
[x] codinasion/codinasion#747
[x] codinasion/codinasion#748
[ ] codinasion/codinasion#749
[ ] codinasion/codinasion#750
[x] codinasion/codinasion#751
[x] codinasion/codinasion#752
[ ] codinasion/codinasion#753
[ ] codinasion/codinasion#754
[ ] codinasion/codinasion#755
[ ] codinasion/codinasion#756
[ ] codinasion/codinasion#757
[x] codinasion/codinasion#758

assign!


[Silabs] Update matter support submodule pointer

Description
PR updates the silabs/matter_support submodule pointer to pull in updated files.
PR also modifies efr32_sdk.gni paths to point to the right ones.
Tests
CI & Manual tests

@mkardous-silabs should this be draft or is it ready for review?


Database navigator view

System information:

Windows 10
DBeaver-7.2.0

Connection specification:

PostgreSQL

Describe your question:
How to toggles view in navigator pane? I might have changed without noticing, but cannot restore it!

Thanks in advance.

You should:

right-click on a connection in DB Navigator tree to see the context menu.
select Connection view>Advanced

Please ask if the issue will not be resolved


Resident Evil 2 crashes on start

Hello
When I try to start Resident Evil with this modification the game chrashes immediately when I put on my Headset.
I dont konw why can somebody help me?
re2_framework_log.txt
?
Thank you very much
NK

add SelfProtect=0 to steam_emu.ini
Should look like this:
Offline=0
SelfProtect=0
If you want to thank me, please take the time to tell others this fix when you encounter someone posting a similar issue. Cheers.


Can repeated values stay repeated after plan run?

Say a table has duplicate values in some rows.  Is there a way to retain that duplication across the rows while still randomizing them?  For example I want to randomize the names and badge number of people by using data from the Faker gem but I need to make sure they're not random for each matching row.
Granted, these should be normalized in a proper schema but for now they can't.
Is it possible to write a plan that will do this?
Original

id
name
badge number

1
Gypsy
1

2
Tom Servo
2

3
Crooooow
3

4
Tom Servo
2

5
Tom Servo
2

6
Crooooow
3

After plan run

id
name
badge number

1
C3-PO
50

2
R2-D2
42

3
Gonk Droid
900

4
R2-D2
42

5
R2-D2
42

6
Gonk Droid
900

(e)

Actually, it occurred to me that it's probably more about how I'm loading the records and passing them to the plan to execute.  I could query but group by the potentially repeated columns and use a Constant attribute strategy with a random value passed in.
Think that might work?

I actually ended up just up writing my own way of doing this.  I didn't create a Plan.
def update_similar(field:, value:)
  # load unique values for the field we want to update. loop over each unique value.
  Person.distinct.pluck(field).each do |retrieved_value|
    # get an initial value to set the field to
    new_value = value.call

    # if there is already a person with that value we can't update yet.  create a new value.
    while Person.where(field => new_value).exists? do
      puts '%s value of %s already exists. creating a new value.' % [field, new_value]
      new_value = value.call
    end

    # update all the people with the unique field value
    Person.where(field => retrieved_value).update_all(field => new_value)
  end
end

update_similar(field: :name, value: -> {Faker::Name.name})
update_similar(field: :employee_id, value: -> {rand(999999)})


11ty plugin (preliminary work to move docs to ux.redhat.com)

Goal
Move tokens docs site content to ux.redhat.com
Working Assumptions

Documentation content lives in tokens sources
existing njk Docs templates, shortcodes, env, etc should be modified for use on ux.redhat.com

Rough Plan

work first in this repo
update docs templates here over 2-3 PRs, use the existing netlify site to test ideas
create an 11ty plugin in this repo to output those docs templates
when satisfied, port that work over to the system repo by importing and apply the 11ty plugin

Closed by #55


Map does not render in version django 1.11.

After several tests, I realized that the map does not render in the version of django 1.11. Already in version 1.10 works perfectly.

Faced with exactly the same problem.
There is no js error, the map is not rendered, and there are no headings "latitude", "longitude"

Seeing the same

@marlonleite @narnikgamarnikus @wjdp I'm not currently using django-geoposition in a Django >1.9 project. Would one of you be able to provide a fix for this by any chance?

Happy to take a look

For those on 1.11 waiting for a release you can do pip install https://github.com/philippbosch/django-geoposition/archive/django-1.11.zip in the meantime

@philippbosch Is there any blocker for merging those fixes into master and releasing the package?

I am also facing the issue of map not rendering in admin page, django-1.11

@AkhilLabGlo I'm using the version from django-1.11 branch as @wjdp pointed out.
It would be nice to get a release, but it works as a temporary solution.
Seems like the author doesn't use 1.11, so it's not a critical issue in his use cases. However, for most of my projects, I keep actual version of Django via incremental upgrades (not a lot of updates are needed usually), so it was a blocker for me.

I also use django 1.11 and I'm having the same problem rendering the map, but I used the temporary solution above and it worked!

I still have the problem with django 1.11 and the wjdp package is not working

Hi. I am using pip-tools. How can I pin down the requirements.in?
https://github.com/jazzband/pip-tools/issues/593

Any updates about 1.11?

map not rendering in django 2.0 how can i correct this

@NgariC  https://github.com/philippbosch/django-geoposition/issues/100

Still not fixed. Django 1.11.6

I installed the django-1.11 branch and the map now renders, however input fields for latitude and longitude are no longer rendered in the html structure, only labels.

Any ETA for releasing a Django 1.11 compatible version? Thanks!

Guys, it's been more than a year and this is still not fixed...

As several others, I created a fork. My forks has support for Django 1.11 and 2.x from other forks and a minor fix to avoid django's Javascript global var conflicts: https://github.com/imdario/django-geoposition

@imdario Your fork throws errors in admin. Have you tested it in 1.11?

I upgraded it to Django 2.x and I use Python 3.7. That's why you
got this error. Maybe we can work out a compatible version with
both versions.
I'm sorry I forgot that this issue was about 1.11 compatibility.
Actually, I was on Django 1.11 but I ended upgrading to the last
version.
Dario Castañé
dario.im[1]
On Sat, Oct 27, 2018, at 02:43, Andrey Shipilov wrote:

@imdario[2] Your fork throws errors in admin. Have you tested it
in 1.11?> image 2018-10-27 11 12 50

— You are receiving this because you were mentioned. Reply to this
email directly, view it on GitHub[3], or mute the thread[4].
Links:

https://dario.im/
https://github.com/imdario
https://github.com/philippbosch/django-geoposition/issues/83#issuecomment-433576960
https://github.com/notifications/unsubscribe-auth/AAJ8wZ_uulY7hefAe9QUD_hloCsF09goks5uo6w6gaJpZM4NTKol

@imdario Absolutely.
If you change:
context = super().get_context(name, value, attrs)

to Py2 style:
context = super(GeopositionWidget, self).get_context(name, value, attrs)

then voila.

@andreyshipilov, fixed and released as v0.3.5.

@imdario Awesome! Cheers mate :)

Hi @imdario,
I'm using Django 2.0.9 and django-geoposition=0.3.0
and this widget doesn't work in Admin.
Can I ask you how can I install 0.3.5?

@jvorcak, it looks I forgot to update the README in order to point to my own PyPI package: django-geoposition-2.


Please invite me to the community

Name
Rui Kishimoto
Additional Context
Thank you in advance.

Invitation sent to join the GitHub Organization. Welcome to Infraform 🎉Please check your mail to accept the invitation sent by GitHub! 🤖About usInfraform is an open source solution for serverless platforms, it is designed for developing solutions and enhancing creators to create their infrastructure 💻 Great to have you in our community ✨ Looking forward to your valuable contributions! 🤓 You can also check our community ✨ Github ✨ LinkedIn 💜 You can also share our community with other folks who want to learn about development, DevOps, tech, and contribute together and with us 👉💜👈


Perspective transform raises error

I got the following error while matching two images.
OpenCV(4.1.2) /io/opencv/modules/core/src/matmul.dispatch.cpp:531: error: (-215:Assertion failed) scn + 1 == m.cols in function 'perspectiveTransform'

Hi @ChargedMonk, can you please attach your two images here so I can debug?

Here are the two images -
Image 1
Image 2

@ChargedMonk I can't exactly reproduce your error, but I have an idea of what is happening. Probably very few keypoints are generated for your images. When I run the matching script with your images on my computer, I only generate 9 keypoints, which is enough to generate a homography. However, possibly on your machine, there are fewer than 4 keypoints generated.
When you run template_matching_demo.py on your machine, what is the length of the list variable good? This is the number of keypoint matches. If there are too few points, I can suggest some threshold changes in the demo script for you.

I also realize you must have reduced the value of MIN_MATCH_COUNT at the top of the script. I've set this to 10 specifically to avoid this problem. You need at least 4 keypoints to generate a unique homography, and typically around 10 keypoints for the homography to be stable. If you can't generate enough keypoints, I suggest you try higher resolution images.
I'm going to close this issue because it's not an issue with the actual code -- it's just that not enough keypoints are generated for your particular images.


Missing prometheus metrics in wso2is-5.11

Hello Team,
we have noticed that below metrics which were seen in the 5.10 version of wso2is kubernetes pod are missing in the 5.11 version , even though we can see them in the documentation. Please could you clarify if we can use an alternate metrics for this purpose ,
org_wso2_carbon_serviceadmin_numberofactiveservices
org_wso2_carbon_serviceadmin_numberofinactiveservices
org_wso2_carbon_serviceadmin_numberoffaultyservices
https://is.docs.wso2.com/en/5.11.0/setup/jmx-based-monitoring/#using-the-serviceadmin-mbean
we use the above metrics in the grafana panel for alerts if wso2is application health is fine or not?
Please could you help,
Thanks,

@team,
please will it be possible to have a look and suggest an alternative ?
Thanks,

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


chore: refactor the github actions has-secrets logic

While working on https://github.com/apache/superset/pull/26772, I realized that the has-secret logic was broken for unclear reasons. Now after doing this fix, I looked and realized that there's similar logic across about a dozen other gh actions, and thought it'd be a good thing to refactor/fix this with a reusable action.
Now many of these workflows are set to trigger on push-on-master only meaning it's less of an issue since a false positive on has-secret dpesn't matter in that context since there's always a secret.
I still thought I should refactor this to something we can trust and build upon.
The solution introduces this new simple reusable action.
One minor note is in cases where we need multiple secrets, as in say DOCKERHUB_TOKEN and DOCKERHUB_USER, we simply look at one and assume that's clear-enough of an indicator.

closing/reopening from a branch on the main fork to test further


Add GeneratedDotEnv.m as an output file

Why
Locally I can build my app just fine, but when I do:
rm -rf node_modules && yarn install && yarn ios-install # (cocoapods)

the subsequent builds fail, and the only way they succeed again is if I clear the DerivedData folder before building.
This is the output when I build after nuking my node_modules folder:
The following build commands failed:
        CompileC /Users/abejfehr/Library/Developer/Xcode/DerivedData/MyApp-abcd1234/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-config.build/Objects-normal/x86_64/ReactNativeConfig.o /Users/abejfehr/my-app/node_modules/react-native-config/ios/ReactNativeConfig/ReactNativeConfig.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-config' from project 'Pods')

So this actually makes sense — the ruby script to produce GeneratedDotEnv.m doesn't get re-ran because its inputs/outputs didn't change, but that's because GeneratedDotEnv.m isn't part of the inputs or outputs.
What
This PR adds the GeneratedDotEnv.m to the outputs of the build script that produces it, so that it gets regenerated when necessary.

Confirmed that this fixes the issue on our end! Thanks @abejfehr!

Thank You @abejfehr

Published Version 1.5.1


cli.js getting copied by default.

? Do you need a CLI? No

But also I see cli.js I suspect L#60

Dup. of #17 - can you provide steps to replicate this? Or more details of environment (OS, Node version)?

❯ yo nm
? What do you want to name your module? temp
? What is your GitHub username? test
? What is the URL of your website? http://test.com
? Do you need a CLI? No
   create package.json
   create _package.json
   create editorconfig
   create gitattributes
   create gitignore
   create index.js
   create jshintrc
   create license
   create readme.md
   create test.js
   create travis.yml
   create .editorconfig
   create .gitattributes
   create .gitignore
   create .jshintrc
   create .travis.yml

$ uname -a
Darwin Laptop 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64

$ node -v
v2.3.4

Yep, I'm seeing this too it seems. Latest version of the generator. Thanks for reporting!

@arthurvr what version of yo installed?

1.4.7 (latest)

^ same.

Me too.
1.4.7, latest generator-nm and OS X.

Any progress?

Any progress?

No, this simply depends on https://github.com/SBoudrias/mem-fs-editor/issues/45.

This issue was resolved in<EMAIL_ADDRESS>It is fixed if you reinstall generator-nm because it pulls in that version.


JAX-numpy inconsistency: jnp.array interprets None as nan

Description
I expect jnp.array to raise a TypeError on inputs that numpy.array interprets as arrays with type not supported by JAX. None makes an exception, producing an object array on numpy, and a float nan on JAX:
import numpy
from jax import numpy as jnp
print(numpy.array(None))
print(jnp.array(None))
jnp.array('ciao')

None
nan
TypeError: Value 'ciao' with dtype <U4 is not a valid JAX array type. Only arrays of numeric types are supported by JAX.

What jax/jaxlib version are you using?
jax v0.4.3, jaxlib v0.4.3
Which accelerator(s) are you using?
CPU
Additional system info
Python 3.10.5 (v3.10.5:f377153967, Jun  6 2022, 12:36:10) [Clang 13.0.0 (clang-13<IP_ADDRESS>)]
NVIDIA GPU info
No response

Thanks for the report – I recall noticing this and looking into it before; it comes from the tree_map here: https://github.com/google/jax/blob/1b2a318fd12f6be12b0b9fdcb70e77a9e0c5df0f/jax/_src/numpy/lax_numpy.py#L2016-L2018
in tree_map, None is ignored rather than being considered a leaf.
import jax
x = [0, 1, None]
print(jax.tree_util.tree_leaves(x))

[0, 1]

Perhaps the fix would be as simple as modifying this call to make None be treated as a leaf?
print(jax.tree_util.tree_leaves(x, is_leaf=lambda x: x is None))

[0, 1, None]

Hi @Gattocrucco
I believe this issue can be considered as fixed, since the PR #18564 to deprecate passing of None to jax.numpy.array has already been merged. Currently, a  warning message is being displayed when None is passed to jax.numpy.array from Jax version 0.4.21 onwards.
import jax

print(jax.__version__)

import numpy
from jax import numpy as jnp
print(numpy.array(None))
print(jnp.array(None))

Output:
0.4.23
None
<ipython-input-1-205409f9ca0a>:8: FutureWarning: None encountered in jnp.array(); this is currently treated as NaN. In the future this will result in an error.
  print(jnp.array(None))
nan

Please find the gist for reference.
Thank you.

Hi - thanks for the followup. I'll close this bug when the deprecation period is finished. Until then it's useful to have it open for tracking purposes.


Add syntax highlighting for focus_follows_mouse option.

See section 4.22 of the i3 help.

Thanks @mitchpaulus


Setting headingBlockTitle  to empty generates extra asterisks

I am super happy about the headingBlockTitle setting and I immediately set it to empty. Unfortunately, the plugin now includes a lot of unnecessary asterisks in front of block text:

Hey @stephanmax, a new version v1.16.2 is released to address this issue.
Could you please upgrade your plugin, delete the above page in Logseq and resync the article again?
I hope it works!

Hey @sywhb, thanks for the swift response!
Unfortunately, I still get the same behavior with 1.16.2.

Weird. I couldn't replicate it

Nevermind—I got it to work! In my first attempt I left the first bullet point of the Omnivore import page in the page which seems to trigger the wrong bulleting. I removed the first bullet/paragraph (not just emptied it) and now it works like a charm. Should have done what you suggested and just deleted the whole page in the first place.
Thanks a mill for your work on this and this wonderful piece of software!

Hm, I think I need to re-open this. Newly imported items seem to struggle with the same behavior, see the attached screenshot. Can you replicate?

No, I could not replicate it and the asterisks seem to be generated by Logseq when I call bulkInsert API.
Let me check the code base and see if there is any thing I can do

Thanks for looking into this again, really appreciate it. Bear in mind that setting headingBlockTitle to empty and a non-empty import page (setting pageName) trigger that behavior for me.


limit common prefix in jaro-winkler

The paper for Jaro-Winkler only allows the common prefix to be boosted for the first 4 characters. This can be found in Winklers paper about the Jaro-Winkler similarity (https://files.eric.ed.gov/fulltext/ED325505.pdf). More specifically in

The new string comparator metric basically modifies the basic string comparator according to whether the first few
characters in the strings being compared agree. Specifically, for i=1,2,3,4,

Results still differ from the ones I get in RapidFuzz, since I only boost the score if the Jaro similarity is above 0.7. The paper mentions:

Weight adjustments are only performed for values of cD greater than 0.60. Values below 0.60 are generally associated with pairs of strings associated with nonmatches in U.

This suggests a limit of 0.7. However there is a C implementation from Winkler which only boosts them starting at 0.7 here: https://web.archive.org/web/19990822155334/http://www.census.gov/geo/msb/stand/strcmp.c
I think so far I have only seen implementations which either always boost, or boost starting at 0.7.

This fixes https://github.com/dguo/strsim-rs/issues/53

With the second commit it now has the same behaviour.


Running and reproducing results

My experience trying to follow the README:

What version of python do I need?

I am using 3.8 but my conda environment defaulted to 2.7

What type of performance should I expect on some typical hardware?

If I run the sample code, how long is this going to take? What should I expect?

Typo (extra closing bracket) in the README

predictions = model.predict(texts))

Once you have requirements (there are only 3 - see requirements.txt) installed, you can simply run:

what does 'run' mean?
how do I know if it worked?

Running
I followed the Installation and copied the Quickstart code into  a main.py in the top level directory. Then I ran python main.py and got a bunch of warnings:
site-packages/ktrain/text/preprocessor.py:216: UserWarning: List or array of two texts supplied, so task being treated as text classification. If this is a sentence pair classification task, please cast to tuple.
  warnings.warn('List or array of two texts supplied, so task being treated as text classification. ' +\

I think it worked but I'm not sure - What should I expect?

Other notes:

predict

This seems like the key part of the API
What does this function expect as a parameter?

What is this [SEP] thing doing?

What will the output be?

My experience trying to follow the README:

What version of python do I need?

I am using 3.8 but my conda environment defaulted to 2.7

What type of performance should I expect on some typical hardware?

If I run the sample code, how long is this going to take? What should I expect?

Typo (extra closing bracket) in the README

predictions = model.predict(texts))

Once you have requirements (there are only 3 - see requirements.txt) installed, you can simply run:

what does 'run' mean?
how do I know if it worked?

Running
I followed the Installation and copied the Quickstart code into a main.py in the top level directory. Then I ran python main.py and got a bunch of warnings:
site-packages/ktrain/text/preprocessor.py:216: UserWarning: List or array of two texts supplied, so task being treated as text classification. If this is a sentence pair classification task, please cast to tuple.
  warnings.warn('List or array of two texts supplied, so task being treated as text classification. ' +\

I think it worked but I'm not sure - What should I expect?

I'm using Python 3.9. When trying to make this a poetry package I believe that we were thinking anything over 3.7 should be fine. @JohnGiorgi thoughts here?

Good question. I will test this.

Nice catch, not sure how that happened and will change accordingly thanks!

Honestly that description was originally from when I had a three line quickstart, and feels a bit outdated and awkward now. I think I'm just going to delete it.

I get that warning too. Pretty sure it's fine and expected. Maybe @JohnGiorgi can confirm?

We discussed the [SEP] thing in the Slack a little while back. Basically it's just expected by BERT based models to separate the two parts of the input.

Output will be either 1 (article belongs in Biofactoid) or 0 (article does not belong in Biofactoid). In terms of input, I showed a variety of options in the tutorial that I am going to push later today, but for more detail I recommend you take a look at the Ktrain docs.

Hope this helps! 😄

Maybe think about updating the README for some of these . Also, here's an example of documenting important functions:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join

I used the test_model.py code (which the Quickstart is based off of) and runtime on my laptop is just over 20 seconds. My laptop has an Intel i7-1165G7 and 16 GB of RAM.

RE Python version: @Steven-Palayew Can we add this line right under Installation: "This repository requires Python 3.7 or later"
RE What does "run" mean: @jvwong This just means run the code in any python interpreter.
RE How do you know if its works: @jvwong This is what the assert statement is for. If it didn't work the assert statement will throw an error.
RE The warnings: These are unfortunately out of our control as they are being logged by our dependencies. We could add some boilerplate to remove them but IMO that would be even more confusing. Another option would to add a note in the readme under the code snippet in quickstart, something like:

ktrain may throw a UserWarning which you can safely ignore.

@JohnGiorgi I made a PR addressing #12 and by extension, the first few suggestions you brought up here. In terms of the last point, I added a tutorial which I linked in the ReadME which I believe addresses this. I still want to modify it based on your suggestion about the [SEP] tokens, and hopefully if @jvwong can package the code to go from UIDs-> titles+abstracts by end of week I can also include an example of how that pipeline (UIDs-> Classifications) would work.

Cool, I would add a colab link to the readme: https://colab.research.google.com/github/PathwayCommons/pathway-abstract-classifier/blob/main/Tutorial.ipynb. That way someone can try it out quickly in the browser. This is also a good place to show the installation process.


Suggestion: Pre-built binaries

I have a problem with 'opam' would it be possible to offer pre-built binaries?

I agree that would be pretty good

Dup of #34


Upgrade rancher-monitoring and rancher-logging addons

IMPORTANT: Please do not create a Pull Request without creating an issue first.
Problem:

Rancher-monitoring and rancher-logging charts are bumped in v1.3.0, the related addons are not processed in upgrade path
Solution:

Add related processing in upgrade path.
Related Issue:
https://github.com/harvester/harvester/issues/5003
Test plan:

Install v1.2.1 cluster
Upgrade to v1.3.0

@Mergifyio backport v1.2


Typo in !why commit leading to build failure

The !why commit introduced a build failure due to missing the closing bracket of the !why command definition and the comma needed between it and the !bitcoin definition. Produced a pull request to fix it and get travis builds back on track. #267

The relevant build failure can be found here:
https://travis-ci.com/lbryio/lbry-wunderbot/builds/130782835


i18n(es): Translated bun.mdx

What kind of changes does this PR include?

New or updated content
Translated content

Description

What does this PR change? Give us a brief description.
Translated bun.mdx

Gracias por la revisión 🤠