objectifyId only converting for _id field

Is there a reason why objectifyId() only converts an id if the id field is _id? This currently makes it impossible to use an ObjectID in another field as the primary key.

Can't the other fields be converted in a before hook?
app.service('myservice').before({
  find(hook) {
    hook.params.query.otherField = new ObjectId(hook.params.query.otherField);
  }
});

Possibly, I haven't tried that. I'd also prefer to not have to depend on hooks being enabled. (I'm writing a service that extends the default Mongo one, and I'd like it to just work.)
A better workaround IMO would be moving the utility functions into the service, so they could be overridden. That would make them cleaner overall, and would solve other problems as well.
Would that be considered? If so, I'll put together a PR...

Absolutely. Probably similar to your PR from #36. Then I can release both those PRs together.


Panic on LDAP auth against Active Directory with Auto User Provisioning enabled

Bug description
After configuring LDAP authentication against Active Directory, Portainer panics after creating the user but before allowing the user to log in.
Expected behavior
User gets created in Portainer and is allowed to log in.
Steps to reproduce the issue:

Configure Portainer to auth against LDAP, enable automatic user provisioning.
Test connectivity.
Try and log in through the web UI using known good credentials.
Observe that the UI returns an "Invalid Credentials" message.
Observe that the user will have been created in Portainer.
Observe the stack trace in the docker logs (pasted below)
Delete the user in Portainer
Create the user manually with the same name as an administrator, and disable automatic user provisioning in LDAP config.
Try and log in again
Observe that login is successful.

Technical details:
2018/08/16 10:06:30 http: panic serving <ip/port redacted>: runtime error: invalid memory address or nil pointer dereference
goroutine 544647 [running]:
net/http.(*conn).serve.func1(0xc4203c1220)
        /usr/local/go/src/net/http/server.go:1697 +0xd0
panic(0xc76680, 0x1283a10)
        /usr/local/go/src/runtime/panic.go:491 +0x283
github.com/portainer/portainer/http/security.authorizedEndpointAccess(0xc42039b2a0, 0x0, 0x3, 0x12c8188, 0x0, 0x0, 0xc42039b2f8)
        /go/src/github.com/portainer/portainer/http/security/authorization.go:173 +0x26
github.com/portainer/portainer/http/security.FilterEndpoints(0xc420232000, 0x35, 0x44, 0xc42041b440, 0x1, 0x1, 0xc42048ced0, 0x8, 0xc42039b710, 0x1)
        /go/src/github.com/portainer/portainer/http/security/filter.go:109 +0x1a5
github.com/portainer/portainer/http/handler/endpoints.(*Handler).endpointList(0xc4203b70e0, 0x123d5e0, 0xc4207f6540, 0xc4207e5d00, 0x73501b)
        /go/src/github.com/portainer/portainer/http/handler/endpoints/endpoint_list.go:28 +0x2ea
github.com/portainer/portainer/http/handler/endpoints.(*Handler).(github.com/portainer/portainer/http/handler/endpoints.endpointList)-fm(0x123d5e0, 0xc4207f6540, 0xc4207e5d00, 0xc42048cf00)
        /go/src/github.com/portainer/portainer/http/handler/endpoints/handler.go:49 +0x48
github.com/portainer/portainer/http/error.LoggerHandler.ServeHTTP(0xc420041d20, 0x123d5e0, 0xc4207f6540, 0xc4207e5d00)
        /go/src/github.com/portainer/portainer/http/error/error.go:24 +0x44
github.com/portainer/portainer/http/security.(*RequestBouncer).mwUpgradeToRestrictedRequest.func1(0x123d5e0, 0xc4207f6540, 0xc4207e5c00)
        /go/src/github.com/portainer/portainer/http/security/bouncer.go:140 +0x137
net/http.HandlerFunc.ServeHTTP(0xc4202fd380, 0x123d5e0, 0xc4207f6540, 0xc4207e5c00)
        /usr/local/go/src/net/http/server.go:1918 +0x44
github.com/portainer/portainer/http/security.(*RequestBouncer).mwCheckAuthentication.func1(0x123d5e0, 0xc4207f6540, 0xc4207e5b00)
        /go/src/github.com/portainer/portainer/http/security/bouncer.go:202 +0xd7
net/http.HandlerFunc.ServeHTTP(0xc4202fd3a0, 0x123d5e0, 0xc4207f6540, 0xc4207e5b00)
        /usr/local/go/src/net/http/server.go:1918 +0x44
github.com/portainer/portainer/http/security.mwSecureHeaders.func1(0x123d5e0, 0xc4207f6540, 0xc4207e5b00)
        /go/src/github.com/portainer/portainer/http/security/bouncer.go:119 +0xfd
net/http.HandlerFunc.ServeHTTP(0xc4202fd3c0, 0x123d5e0, 0xc4207f6540, 0xc4207e5b00)
        /usr/local/go/src/net/http/server.go:1918 +0x44
github.com/gorilla/mux.(*Router).ServeHTTP(0xc42049c620, 0x123d5e0, 0xc4207f6540, 0xc4207e5b00)
        /go/src/github.com/gorilla/mux/mux.go:162 +0xed
net/http.StripPrefix.func1(0x123d5e0, 0xc4207f6540, 0xc4207e5800)
        /usr/local/go/src/net/http/server.go:1957 +0x1a5
net/http.HandlerFunc.ServeHTTP(0xc42048cb40, 0x123d5e0, 0xc4207f6540, 0xc4207e5800)
        /usr/local/go/src/net/http/server.go:1918 +0x44
github.com/portainer/portainer/http/handler.(*Handler).ServeHTTP(0xc4205825a0, 0x123d5e0, 0xc4207f6540, 0xc4207e5800)
        /go/src/github.com/portainer/portainer/http/handler/handler.go:68 +0xc83
net/http.serverHandler.ServeHTTP(0xc420141e10, 0x123d5e0, 0xc4207f6540, 0xc4207e5800)
        /usr/local/go/src/net/http/server.go:2619 +0xb4
net/http.(*conn).serve(0xc4203c1220, 0x123e3a0, 0xc420500d80)
        /usr/local/go/src/net/http/server.go:1801 +0x71d
created by net/http.(*Server).Serve
        /usr/local/go/src/net/http/server.go:2720 +0x288

Portainer version: 1.19.1
Docker version (managed by Portainer):
Platform (windows/linux): Docker version 18.03.0-ce, build 0520e24
Command used to start Portainer (docker run -p 9000:9000 portainer/portainer):
Browser: Chrome

Hmm, not easily without telling you a bunch of stuff I'm not allowed to tell you :-)
Under the "LDAP Configuration" section, that's just our AD DNS name which could resolve to any DC. Reader DN and password is an account that has r/o access to AD. Clicking "Test Connectivity" (and being able to log in as above) confirms this bit is OK.
LDAP Security
Everything off
User Search Configuration
Base DN: DN to an AD OU that is the root of where all of our users live.
Username attribute: SAMAccountName
Filter: (objectClass=person)
Group Search configuration
Group Base DN: a DN to an AD OU where our groups live
Group Membership Attribute: member
Group Filter: blank
Hopefully this helps...

Having similiar issue. After setting up LDAP configuration I’m unable to change any configuration parameter, even switching to internal user DB isn’t working.
Details: I’ve deployed docker container with latest version of the portainer, setted up admin password, than I’ve moved to Setting - Authorization, switched to LDAP, typed in base DN, user for bind and his password, while setting this up I’ve typed user search dn and username and groups name attributes, after this I’ve saved those settings in oreer not to lose them, but wasn’t able to change them after this, each time when I’m typing in new parameters and clicking Save button I’m getting confirmation that settings have been saved but after page update all setting are getting back to first setup.

That doesn't sound like the same issue.
On Thu, 16 Aug 2018, 22:09 WW-build<EMAIL_ADDRESS>wrote:

Having similiar issue. After setting up LDAP configuration I’m unable to
change any configuration parameter, even switching to internal user DB
isn’t working.
Details: I’ve deployed docker container with latest version of the
portainer, setted up admin password, than I’ve moved to Setting -
Authorization, switched to LDAP, typed in base DN, user for bind and his
password, while setting this up I’ve typed user search dn and username and
groups name attributes, after this I’ve saved those settings in oreer not
to lose them, but wasn’t able to change them after this, each time when I’m
typing in new parameters and clicking Save button I’m getting confirmation
that settings have been saved but after page update all setting are getting
back to first setup.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/portainer/portainer/issues/2168#issuecomment-413685595,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAozMHNRzeP9NFdIXGJUs9ql26tTg-d7ks5uRd-FgaJpZM4V_llU
.

Issue auto-resolved, by just re-downloading container.

@ncresswell Any thoughts on this?

@davestephens are you able to reproduce this in 1.19.2 ?

@davestephens You should use sAMAccountName, not SAMAccountName (case sensitive)

I am unable to reproduce this on Portainer v 1.23.2. @davestephens are you able to reproduce this on v1.23.2 of Portainer with the change I suggest above?
Here were my settings:

I can reproduce this with 1.23.2. Our username attribute is uid and I spelled it correctly (case sensitive)

strange as AD doesnt support using “uid” as the user name attribute.
Has this ever worked for you?

Explanation for this I found on stackoverflow:
uid is a multi-value attribute. It's also not enforced as unique, so it's not appropriate as a unique identifier, unless you check for uniqueness before you set it. But that's your responsibility to maintain.
It is also not indexed, so it will be a little slower to search for an account by uid. And it cannot be used for logging in. So basically, use it for whatever you want to use it for, but you're responsible for what you put there. sAMAccountName on the other hand, is single-valued, enforced unique on the domain, indexed, and can be used for authentication.

@itsconquest that’s not what I’m talking about. I’m talking about the error that happens in Portainer randomly and if it might be caused by the non indexed uid? Again there is no error whatsoever in any other app we authenticate with ldap except for Portainer. And even in Portainer the bug only happens with automatic user provisioning enabled.
So please stop poking on the username Attribute only because the error this issue is about is pretty obviously not caused by that alone. Given that we have only 15 users in our database and every lookup I have ever done on the cli for testing purposes was done in milliseconds I doubt that the indexing is related at all. Plus except for that stack overflow response I didn’t found any other source that tells uid is unsupported so I’d be happy if someone has some official docs so I can convince the team (and me) that we need to do something about attribute.
Sent with GitHawk

Tobias,
We have some very large enterprises using Portainer at a global scale, and all using LDAP as their authentication mechanism. I am comfortable we don’t have a critical defect present in Portainer in regards to LDAP. These enterprises use a mix of native LDAP and also Microsoft AD, ranging from 2008 to 2012. We don’t have any reports (doesn’t mean no one using) of success against 2016/2019 AD though (and we haven’t tested that ourselves).
In order to progress this issue further, we need significantly more information from you so we can replicate the issue; as it stands now, we cannot replicate it at all, and issues that we cannot replicate are not addressed by us until we can replicate them.
At the very least, we need to know:
Your base DN config (are you reading the base of the AD, or are you reading from an OU or “Folder” within
How many users is Portainer having to search through to find the requested login user (ie how many users in your AD and/or the base DN path)
Are you doing any user search filtering
What is your AD version and domain functional level
Are you using TLS to connect to AD, or just straight LDAP with no TLS.
Are you using any special characters in your usernames (spaces, underscores, hyphens, umlauts, or anything non-US dictionary)
Also note that when I change my fully functioning Portainer LDAP config username attribute from saMAccountName to uid, I fail to authenticate against AD, so I have no idea how this is working for you.
I can see from an LDAP explorer view below, uid is not even shown as an available option for the selected user account. Can you please ask your AD admins what they needed to change in AD to allow the use of uid as a the user identifier. Or maybe you are using a newer version of AD where this is supported natively?
<EMAIL_ADDRESS>Also, see even Oracle don’t recommend uid for their LDAP configurations against AD (C2.2): https://docs.oracle.com/cd/E26217_01/E26214/html/ldap-filters-attrs-users.html
If you can please provide us with more information, we are happy to help once we can replicate the error. I also strongly recommend you try changing the username attribute to saMAccountName as part of your own self-diagnostic.
Neil

Also please provide the container logs on 1.23.2 as the panic error will probably be different and this will help us isolate the problematic piece of code. Thanks.

Ah it seems UID is available to be mapped on 2016 and newer.
https://www.ibm.com/support/knowledgecenter/en/STXKQY_5.0.3/com.ibm.spectrum.scale.v5r03.doc/bl1adm_confidmapaduc.htm
Rgds,

@ohcibi I have now deployed a Server 2019 Domain Controller, and enabled the uid advanced attribute for one of my user accounts; i then went into Portainer, reconfigured to use uid rather than saMAccountName for the username attribute, and was then able to login using the uid of my user. I did not see any panic.


Remove #ifs from Agent.Listener

Most of this was straightforward removal of #if. The RSAKeyManager swapped implementations at compile time (we use system services for encryption on Windows), which our service locator implementation doesn't have a way to express. So instead, I made the service a factory, and the factory offers the best implementation at runtime.
An alternate pattern that I considered was adding to the ServiceLocatorAttribute something like a PreferOnWindows parameter. (Really what you'd want is a Func<bool> with a lambda, but that's not allowed for an attribute parameter.) Since it would only be used in this one place, it didn't seem worth adding machinery to the service locator - but if we find other examples, I think that would be straightforward as well.

I went ahead and tried the "enlighten the service locator" pattern (see this commit) and it actually doesn't look too bad. @jtpetty thoughts on which design makes more sense?

I've found additional places where teaching the service locator about Windows makes sense. I'm going to revert the factory pattern and apply the other fix.


update 1.15.4

☆ Cornac 1.15.4 Update ☆
Jira Ticket
Upstream
Dependencies
Changes

Updated version number and sha256
Updated pinnings on dependencies
Added libgomp library for linux support
Updated About section

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_c48yc__rty/clone/recipe/meta.yaml:23: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_c48yc__rty/clone/recipe/meta.yaml:29: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_c48yc__rty/clone/recipe/meta.yaml:58: missing_license_family: The recipe is missing the about/license_family key.
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_f6bw0azah4/clone/recipe/meta.yaml:23: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_f6bw0azah4/clone/recipe/meta.yaml:29: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_f6bw0azah4/clone/recipe/meta.yaml:58: missing_license_family: The recipe is missing the about/license_family key.
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_44j4qua4n2/clone/recipe/meta.yaml:23: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_44j4qua4n2/clone/recipe/meta.yaml:29: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_44j4qua4n2/clone/recipe/meta.yaml:58: missing_license_family: The recipe is missing the about/license_family key.
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_d7h81nrvy7/clone/recipe/meta.yaml:23: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_d7h81nrvy7/clone/recipe/meta.yaml:29: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_d7h81nrvy7/clone/recipe/meta.yaml:58: missing_license_family: The recipe is missing the about/license_family key.
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_eb98xkctr6/clone/recipe/meta.yaml:22: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_eb98xkctr6/clone/recipe/meta.yaml:28: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_eb98xkctr6/clone/recipe/meta.yaml:31: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_eb98xkctr6/clone/recipe/meta.yaml:59: missing_license_family: The recipe is missing the about/license_family key.
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_73wdhnppak/clone/recipe/meta.yaml:22: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_73wdhnppak/clone/recipe/meta.yaml:28: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_73wdhnppak/clone/recipe/meta.yaml:31: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_bbdq7poqr5/clone/recipe/meta.yaml:23: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_bbdq7poqr5/clone/recipe/meta.yaml:29: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_bbdq7poqr5/clone/recipe/meta.yaml:32: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_7fivf7fkzm/clone/recipe/meta.yaml:23: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_7fivf7fkzm/clone/recipe/meta.yaml:29: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_7fivf7fkzm/clone/recipe/meta.yaml:32: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_9d130b3iem/clone/recipe/meta.yaml:23: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_9d130b3iem/clone/recipe/meta.yaml:32: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_e0a2gnk5tv/clone/recipe/meta.yaml:23: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_e0a2gnk5tv/clone/recipe/meta.yaml:32: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
Errors were found


V5.2 still "no adblock allowed"

Script version
5.2
Describe the bug
Still tells me adblocking isn't allowed
Expected behavior
I expected the video to play
Desktop (please complete the following information):
Windows 10 (latest)
Chrome (latest)
Additional context
F*** youtube, if they'd make premium a lot cheaper and removed the shitty music stuff i'd be willing to pay but they really only give us the choice of either ads (and adblocking) or pay a price most people just can't afford/justify these days.
Hell, perhaps remove the ads before video's but more ads around then, i'd be fine with that as people could still watch videos uninterrupted in that way

You should probably just switch out of Chrome given they're pushing Manifest V3 next week that blocks ad blocking

Im experiencing the same issue on firefox

Keep trying to bypass it Joel, you won't be winning this any time soon.

Keep trying to bypass it Joel, you won't be winning this any time soon.

ublock has bypassed it without an update, you're delusional

Oh I am deliousonal?
I can't live on my own as I have temper issues that are a serious threat to people.


Update scalatest to 3.1.1

Updates org.scalatest:scalatest from 3.0.8 to 3.1.1.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalatest", artifactId = "scalatest" } ]

Applied Migrations

https://raw.githubusercontent.com/scalatest/autofix/e4de53fa40fac423bd64d165ff36bde38ce52388/3.0.x/rules/src/main/scala/org/scalatest/autofix/v3_0_x/RenameDeprecatedPackage.scala
https://raw.githubusercontent.com/scalatest/autofix/e4de53fa40fac423bd64d165ff36bde38ce52388/3.1.x/rules/src/main/scala/org/scalatest/autofix/v3_1_x/RewriteDeprecatedNames.scala

labels: test-library-update, semver-minor, scalafix-migrations

You can close this as scalatest version is 3.1.2 https://github.com/profunktor/http4s-tracer/blob/master/project/Dependencies.scala#L16


Make automated testing under mono/linux possible

Test should not just be run on Windows, but also on mono/linux.
It should be possible to run the test suite under mono/linux. One simple command line should be enough (e.g., make test)

Green build on .NET Core on both Linux and Windows. Not using mono.


Balanced Binary Tree

File(s) Modified: 110-Balanced-Binary-Tree.swift
Language(s) Used: swift
Submission URL: _https://leetcode.com/submissions/detail/790662999/_

Thanks, @Mahim1997!


How to automate mouse click in (x,y) coordinates using pyautoit?

Using pyautoit, I am trying to click my mouse LEFT button, 2 times, in the (x=890 and y=574) coordinates.
I have tried the below codes or options:
OPTIONS 1:
autoit.mouse_click(" 'left', 890, 574, 2")
	sleep(2)

OPTIONS 1:
autoit.mouse_click(" left, 890, 574, 2")
	sleep(2)

OPTIONS 1:
autoit.mouse_click(" $MOUSE_CLICK_LEFT, 890, 574, 2")
	sleep(2)

But no success.
How to do this, any idea?

Is it only partially working or entirely broken? I notice an issue with your sleep command. It's gauged in milliseconds. Also, to use sleep, you must use 'autoit.sleep(param)'
Instead of "2", it should be "2000". Hope this helps. Keep me posted.

@Aareon Thanks for your answer.
Now I have tried with below code:
	autoit.mouse_click("$MOUSE_CLICK_LEFT, 890, 574, 2")
	autoit.sleep(2000)

But  same issue. I mean its not clicking the LEFT button.
Could you please help me with the format that I am using here. is it correct "autoit.mouse_click("$MOUSE_CLICK_LEFT, 890, 574, 2") ".
Thanks in advance.

@Aareon . I found the working code.
Its works with :
	autoit.mouse_click("",890, 574, 2)
	sleep(3)

NOTE : If I use autoit.sleep(2000), I am getting following error:
AttributeError: 'module' object has no attribute 'sleep'

I have referred following link "http://software-test-knowledge.blogspot.in/2014/01/automate-mouse-click-using-autoit.html". By default its choosing left button. That is why my code  autoit.mouse_click("",890, 574, 2) is working.
What if I want to press RIGHT mouse button here?
Please guide me how to send mouse key info in this code.
Thanks.

Got the answer for above question too... :)
autoit.mouse_click("left",890, 574, 2)

Glad you found what you were looking for. Is there an explanation for why
2000ms didn't work, but 2 or 3 does?
On Nov 9, 2015 5:53 AM, "balup34"<EMAIL_ADDRESS>wrote:

Got the answer for above question too... :)
autoit.mouse_click("left",890, 574, 2)
—
Reply to this email directly or view it on GitHub
https://github.com/jacexh/pyautoit/issues/10#issuecomment-155044054.

use time.sleep(2) instead of autoit.sleep()
I did not add sleep interface in pyautoit


Evaluate inspector API in Node 19

Problem Statement
Node 19 includes an experimental API that allows us to access the profiler, we need to evaluate if that can be used as it could mean we can get rid of our custom bindings https://nodejs.org/docs/latest-v19.x/api/inspector.html
Solution Brainstorm
N/A

The non-async version has been available since v14:
https://nodejs.org/docs/latest-v14.x/api/inspector.html
I'm currently using it to add stack local variables to the node SDK as per Kamil's demo:
https://github.com/kamilogorek/sentry-node-local-variables

@timfish One thing we need to evaluate is if we can pass options to the CPU profiler (I can see we can pass the sampling interval, but not specify the logging mode). We are also doing a fair bit of processing to convert to our sampled format which happens in c++ so maybe there is some benefit to keeping the bindings.

We need to conform to our sampled format and doing the conversion in c++ allows us to sequentially iterate over the samples (which is what our format expects), the returned value from the inspector does not allow us to do that as it returns the call graph directly https://chromedevtools.github.io/devtools-protocol/v8/Profiler/#type-Profile


Prevent 500 error when no significant data remains for feedback

Current pipeline has removed error handling from bit_stomach.student_t_cleaner
(#179)
Patch will add a status code 200 response when no performance data remains after cleaning, will return a response to the user giving them detail that the process was aborted and why

Console log when sending message where all performance data is empty:
CRITICAL:root: reading graph--- 0.002440929412841797 seconds ---
CRITICAL:root: reading graph--- 0.026979923248291016 seconds ---
INFO|  Calling BitStomach from main...
DEBUG|  Running bit_stomach.student_t_cleaner...
DEBUG|  Found rows with non-significant denominators, attempting removal...
DEBUG|  Cleaned dataframe is:
Empty DataFrame
Columns: [staff_number, measure, month, passed_count, flagged_count, denominator, peer_average_comparator, peer_75th_percentile_benchmark, peer_90th_percentile_benchmark, MPOG_goal]
Index: []
ERROR|  Not enough significant data detected in performance block, aborting feedback...
INFO:     <IP_ADDRESS>:50019 - "POST /createprecisionfeedback/ HTTP/1.1" 200 OK

API response looks like (received via Postman):
{
    "detail": "Insufficient significant data found for providing feedback, process aborted."
}

You might consider (or may have already) using the HTTP Problem Details spec, which I think we agreed to use in the pipeline a while ago. Ours is not really a REST API, so either a 200 or 400-level error could be returned. Adding in a bit more detail (e.g. message_id, date_time, an unambiguous IRI for the error type) could help and the problems detail rfc outlines a standard way to do that.

See the linked pull request, we are currently using a 200 error code when non-significant data is sent

Can be tested with this JSON file of synthetic data:
{
    "@context": {
      "@vocab": "http://schema.org/",
      "slowmo": "http://example.com/slowmo#",
      "csvw": "http://www.w3.org/ns/csvw#",
      "dc": "http://purl.org/dc/terms/",
      "psdo": "http://purl.obolibrary.org/obo/",
      "slowmo:Measure": "http://example.com/slowmo#Measure",
      "slowmo:IsAboutPerformer": "http://example.com/slowmo#IsAboutPerformer",
      "slowmo:ColumnUse": "http://example.com/slowmo#ColumnUse",
      "slowmo:IsAboutTemplate": "http://example.com/slowmo#IsAboutTemplate",
      "slowmo:spek": "http://example.com/slowmo#spek",
      "slowmo:IsAboutCausalPathway": "http://example.com/slowmo#IsAboutCausalPathway",
      "slowmo:IsAboutOrganization": "http://example.com/slowmo#IsAboutOrganization",
      "slowmo:IsAboutMeasure": "http://example.com/slowmo#IsAboutMeasure",
      "slowmo:InputTable": "http://example.com/slowmo#InputTable",
      "slowmo:WithComparator": "http://example.com/slowmo#WithComparator",
      "has_part": "http://purl.obolibrary.org/obo/bfo#BFO_0000051",
      "has_disposition": "http://purl.obolibrary.org/obo/RO_0000091"
    },
    "message_instance_id": "dd582d8c-0cf8-42fd-ad38-113a7a3cc9c8",
    "Performance_data": [
      [ "staff_number", "measure", "month", "passed_count", "flagged_count", "denominator", "peer_average_comparator", "peer_75th_percentile_benchmark", "peer_90th_percentile_benchmark", "MPOG_goal" ],
      [0, "BP02", "2022-12-01", 1, 0, 1, 1, 2, 3, 90.0 ],
      [0, "BP02", "2023-01-01", 4, 1, 5, 1, 2, 3, 90.0 ],
      [0, "BP02", "2023-02-01", 5, 3, 8, 1, 2, 3, 90.0 ],
      [0, "BP02", "2023-03-01", 6, 1, 7, 1, 2, 3, 90.0 ],
      [0, "BP02", "2023-04-01", 4, 1, 5, 1, 2, 3, 90.0 ],
      [0, "BP02", "2023-05-01", 9, 1, 10, 1, 2, 3, 90.0 ],
      [0, "BP02", "2023-06-01", 9, 1, 10, 1, 2, 3, 90.0 ],
      [0, "BP02", "2023-07-01", 7, 0, 7, 1, 2, 3, 90.0 ],
      [0, "BP02", "2023-08-01", 4, 3, 7, 1, 2, 3, 90.0 ],
      [0, "GLU03", "2023-03-01", 10, 0, 10, 1, 2, 3, 90.0 ],
      [0, "GLU03", "2023-04-01", 10, 1, 11, 1, 2, 3, 90.0 ],
      [0, "GLU03", "2023-05-01", 10, 0, 10, 1, 2, 3, 90.0 ],
      [0, "GLU03", "2023-06-01", 10, 0, 10, 1, 2, 3, 90.0 ],
      [0, "GLU03", "2023-07-01", 10, 0, 10, 1, 2, 3, 90.0 ],
      [0, "GLU11", "2023-03-01", 10, 0, 10, 1, 2, 3, 90.0 ],
      [0, "GLU11", "2023-04-01", 9, 1, 10, 1, 2, 3, 90.0 ],
      [0, "GLU11", "2023-05-01", 7, 3, 10, 1, 2, 3, 90.0 ],
      [0, "GLU11", "2023-06-01", 10, 0, 10, 1, 2, 3, 90.0 ],
      [0, "GLU11", "2023-07-01", 10, 0, 10, 1, 2, 3, 90.0 ]
    ],
    "History": {},
    "Preferences": {},
    "debug": "no"
  }

Output should look like this:
Headers are
{'date': 'Tue, 05 Dec 2023 21:04:44 GMT', 'server': 'uvicorn', '400-error': 'Invalid Input Error', 'content-length': '115', 'content-type': 'application/json'}

Content is
{
    "detail": "Insufficient significant data found for providing feedback, process aborted. Message_instance_id: XXX"
}


Adding support for pattern matching to notContain rulesets.

This opens up the notContain ruleset to support pattern matching.
Real world example:

Internally at Vimeo we refer to a video as a "clip". Externally, they should be referred to in our API documentation as a "video". With the normal notContain, we could only assert that "clip" didn't appear, and aside from creating a separate rule, we couldn't also assert that "Clip" didn't appear.

Coverage decreased (-0.007%) to 87.817% when pulling 78828f5251c4c6f3947be8cebcd07efbae4c47dc on erunion:notcontain-regex into a79e7b94ab2f41a8c7f5968c7724fb96ec7d0178 on wework:master.

Coverage decreased (-0.007%) to 87.817% when pulling 78828f5251c4c6f3947be8cebcd07efbae4c47dc on erunion:notcontain-regex into a79e7b94ab2f41a8c7f5968c7724fb96ec7d0178 on wework:master.

Coverage decreased (-0.007%) to 87.817% when pulling 78828f5251c4c6f3947be8cebcd07efbae4c47dc on erunion:notcontain-regex into a79e7b94ab2f41a8c7f5968c7724fb96ec7d0178 on wework:master.

Nice! Can you add this to CHANGELOG.md too?

Sure, you want it under 0.8.6 or 0.9.0?

Check out https://keepachangelog.com/ they say put it under a fake version "Unreleased" and then release branches assign numbers

@philsturgeon There you go!


Create Report page for post/user page

Do all work for this task in a branch called issue-06.

Created a page for reports of post and users.
The page is only accessible by admin account and shows all reports by registered users
Each report has:

types: Post or User
category: Spam, iligal stuff etc.
details: Explanation why you think the post(or user) is inappropriate
owner: Tells us which account filled out the form


it would be nice to point out where is the block attention code for experiments you mentioned in the talk

nice work and nice talk

hi, have you found out where the block-attention code is?

Apologies for the delay! The code can be found here and the mask is slightly modified again here in experiment_manager.py.
I've also now pushed up a modified version of the transformers code that accepts this strangely shaped attention mask. The way to run this is:

Make sure you're running transformers version 4.37.2
Replace the text of the library code file modeling_llama.py with the text of replacement_modeling_llama.py (this allows passing attention masks in this format-- the default code doesn't support 2d attention masks)
In your call to the script, set an examples-stride (i.e., a number of examples per block) smaller than the n-shots-per-window (i.e., the total number of examples). For instance, to run 500-shot ICL on banking77 with stride size 10:
python3 run_evaluation.py   --datasets banking77 --model "togethercomputer/LLaMA-2-7B-32K"   --n-windows 1 --n-runs 10 --output-dir $OUTPUT_DIR   --n-shots-per-window 500 --examples-stride 10  --cache-dir  $CACHE --subsample-test-set 250 --fp16 --random-seed 43

There are definitely more streamlined ways to implement this. I'm planning a more intuitive rewrite for the next few weeks, but I didn't want to delay this reply any longer. Thanks!


macros: Error out on unknown/invalid attributes

E.g. the following should fail
#[derive(Debug, Copy, Clone, PartialEq, Eq, glib::Enum)]
#[enum_type(name = "MyEnum", nullable)]

Only name is valid in that context.

I just released a new crate deluxe that should make this a lot easier. I'd like to port the macros over to that, if it looks good?

Sounds good to me, you want to send a PR?

Isn't this fixed? With the example above, nullable is flagged with an error message. It seems that #1096 made it mandatory to have attribute validation.


(PUP-6233) Only use smf restart -s flag in Solaris 11.2 and above

The synchronous -s flag for smf restart only exists in Solaris
11.2 and above. This commit ensures that we don't try to use it in
older Solaris versions.
See https://blogs.oracle.com/SolarisSMF/entry/synchronous_actions

This appveyor failure is puzzling - I'm not sure what happened there.

CLA signed by all contributors.

Looks good to me.


Update MainWindow.axaml.cs

fix crash after uncompressed u3d bundle

The secondary commit changed AssetsTools.NET, I will remake a commit later for this.


OpenAI Baselines GAIL

https://github.com/openai/baselines/tree/master/baselines/gail
#2

#13

Well maintained back up alternative with tensorflow 1 but for now we'll use https://github.com/keiohta/tf2rl


Registrar key password is never used

my_key_pw is never used:
https://github.com/keylime/keylime/blob/be4b874bf9bc232e6e1dcf747f4a8cd329a33858/keylime.conf#L185
https://github.com/keylime/keylime/blob/be4b874bf9bc232e6e1dcf747f4a8cd329a33858/keylime/registrar_client.py#L41

@maugustosilva and @lukehinds I don't see this config variable in the code anymore so I assume it was removed. It does however still exist in the keylime.conf in the repo, so I assume we can remove it, correct?


(performance) Faster loading of tasks (skip unused)

This has annoyed me forever. On my machine, calling the custom "task()" method takes roughly half a
second.
Depending on which gulp task you execute, there is no reason to load these tasks in the top of
the gulpfile. I wrap them in a function, which hides the underlying true problem.
The real problem is of course that the loading of tasks take a long time, and hides unused tasks so that we never delete them.
But that will be a separate problem requiring a bigger fix.

@jesperronn nice one! I'll take a look at merge today.


GLES3 Renderer fails on linux devices when testing browser exports.

Godot version
3.5.2 and 3.5.1 Both Don't Work
System information
Fedora / X11 Desktop Renderer / Chromium Latest / AMD GPU
Issue description
GLES3 Exports fail to render meshes on web exports running on linux machines, tested on mobile android devices and this issue is not present. Tested Godot versions 3.5.1 and 3.5.2 both seem to fail. Tested multiple projects with and without textures the issue persists and no meshes are rendered. I think the GLES3 Shader fails to compile when running in a web environment since the rendering is fine when done locally through the play/play scene buttons. Tested multiple browsers including chromium an

d opera.

Steps to reproduce
Create an empty project, add in any basic mesh instance and a camera to view it, export for HTML5 and test the game export in any browser on a linux machine (I'm running fedora but I assume they all have similar rendering pipelines) Other WEBGL 2.0 features work fine on the machine for the browser.
Minimal reproduction project
Any basic project will suffice.
This issue might be related -> https://github.com/godotengine/godot/issues/73799
This too if it uses a similar pipeline -> https://github.com/godotengine/godot/issues/75054

Capture1.webm
Above the project is running through the editor just fine.
Below is the corresponding web export.

Which graphics card model and driver version are you using?

Radeon RX6700 10GB
I have attached an image of the current drivers running on the machine.

The defines at the top of the shader look to be bogus:
#define MAX_LIGHT_DATA_STRUCTS -10066329
etc

+1
I have the same issue on my development machine, Radeon 6600XT (I'm currently on Desktop NixOS)
Found the exact same export works fine when hosted/ran on ChromeOS (Intel Celeron N3350, Integrated Graphics)

Godot 4.0.2

Please test this on 4.1.1, as 4.0.2 is no longer supported.

This might have been fixed in Godot 4.x OpenGL Compatibility renderer by https://github.com/godotengine/godot/pull/80909. The fix could be possibly ported to Godot 3.x as well.

Yes this looks like the same bug as #80909. :+1:

Should be fixed by #83031.


Honour the Grid Row and Column settings

If the child has Grid.Row or Grid.Column setting, then it should be placed on proper position. Indexing should start after the specified row/column. Then it would be possible to skip some grid cells instead of placing empty TextBlocks.

That's a good point. I'll take a look soon. Hopefully today sometime today.


device.language broken

Problem description
When device language is set to German and device region is set to Germany, tabris.device.language returns en-DE, which means "English as used in Germany".
Expected behavior
The returned string should be de-DE.
Environment

Tabris.js version: 2.6.1
Device: iPad Pro
OS: 12.0.1

Code snippet
tabris.device.language

Since iOS 11, device.language will only return languages declared in CFBundleLocalizations. See https://stackoverflow.com/a/46206511
Use following configuration in your app's config.xml to declare the app's supported languages:
<widget ...>
    <edit-config file="*-Info.plist" mode="merge" target="CFBundleLocalizations">
        <array>
            <string>de</string>
            <string>el</string>
            <string>en</string>
            ...
        </array>
    </edit-config>
</widget>


Feature request: add requireEnv, getEnvOrThrow, or similar

I wrote a package a while back to enforce the presence of an environment variable and throw otherwise so that when dealing with environment variables that must be defined, the developer never had to narrow down from undefined | string: https://github.com/knpwrs/envariant
I love the idea of @cross/env, and would love it even more if it included similar functionality so I could deprecate my package.

Nice that you like the idea. I could most certainly implement that unless you want to get your hands dirty and open a PR with the implementation. Let me know :)
I think I like the requireEnv name best. Close to the already implemented hasEnv function.


[feature request] add dark mode to follow prefers-color-scheme

https://caniuse.com/prefers-color-scheme is at 93% global. Would be nice to have a dark css theme checking this preference and following it.
Thanks for considering.

Hi @foss-, we already have an open issue in our Public Roadmap.
You can follow up on the status of this feature request there.
Feel free to add any feedback or comments you consider relevant.
Thank you!


Forcing Send on a guard when using genawaiter

This is more of a question rather than an issue, we're using parking_lot with genawaiter to get an iterator without lifetime from a struct.
    struct Example<T>(Arc<parking_lot::RwLock<Vec<T>>>);

    impl<T: Clone> Example<T> {
        fn iter(&self) -> impl Iterator<Item = T> {
            let tgshard = self.0.clone();
            let iter: GenBoxed<T> = GenBoxed::new_boxed(|co| async move {
                let g = tgshard.read();
                let iter = (*g).iter();
                for t in iter {
                    co.yield_(t.clone()).await;
                }
            });

            iter.into_iter()
        }
    }

this is not allowed by the rust compiler because the guard is not Send.
However, is forcing the guard in this scenario (using genawaiter ) to be Send an actual problem?
I don't think the guard will be moved onto another thread. (that being said I have no clue how genawaiter works)
Basically is this workable?
    struct MyLock<T>(parking_lot::RwLock<T>);
    struct MyGuard<'a, T>(parking_lot::RwLockReadGuard<'a, T>);

    impl<T: Clone> MyLock<T> {
        fn read(&self) -> MyGuard<T> {
            MyGuard(self.0.read())
        }
    }

    impl<T> Deref for MyGuard<'_, T> {
        type Target = T;
        fn deref(&self) -> &Self::Target {
            self.0.deref()
        }
    }

    unsafe impl<T> Send for MyGuard<'_, T> {}

    struct Example2<T>(Arc<MyLock<Vec<T>>>);

    impl<T: Clone + std::marker::Send + std::marker::Sync + 'static> Example2<T> {
        fn iter(&self) -> impl Iterator<Item = T> {
            let tgshard = self.0.clone();
            let iter: GenBoxed<T> = GenBoxed::new_boxed(|co| async move {
                let g = tgshard.read();
                let iter = (*g).iter();
                for t in iter {
                    co.yield_(t.clone()).await;
                }
            });

            iter.into_iter()
        }
    }

Thanks for the help


Add auto-parallelism to Jobs (0.8 branch)

Looks good. That way, we can help users by preventing them from running programs with the default degree of parallelism (=1) if more task slots are available.

Cool.
Lets merge this also to master and document it there.

The user has to enable the auto parallelism explicitly, right?

Right now, the user has to set the parallelism to ExecutionConfig.PARALLELISM_AUTO_MAX. Why not use all available task slots by default? I understand, that we shouldn't simply grab all resources but the auto parallelism will only grab the resources which were already granted to Flink.

Using max parallelism basically prohibits to run more than one program at a time. I don't think that would be a good default mode.

I agree with Fabian that it is not a good default behavior to grab everything that is possible.
It should be an explicit request by the user. For YARN single job sessions, we can make this the default, otherwise it is not very friendly.
getNumberOfAvailableSlots() changes very fast during multi user operation. Dusing single user operation between jobs (where I see the auto parallelism useful), it is the same as getTotalNumberOfSlots().

+1
I think setup via ExecutionConfig is the way to go.
I agree with @rmetzger that we should merge it to master as well. The important thing is to document it though. :-)

But currently the system does not support multi-user/multi-job scenarios so
well either. If I'm not mistaken, then the scheduler schedules the tasks
eagerly which means that two jobs could take required slots away from each
other. As a consequence, both will fail if not properly configured.
On Tue, Feb 17, 2015 at 11:01 AM, Fabian Hueske<EMAIL_ADDRESS>wrote:

Using max parallelism basically prohibits to run more than one program at
a time. I don't think that would be a good default mode.
—
Reply to this email directly or view it on GitHub
https://github.com/apache/flink/pull/410#issuecomment-74643360.

Are there any plans to merge this to master as well?
I need this feature to implement a testcase.

Ping ...

@rmetzger I don't see a reason why this should not go to master as well. After all, it's optional and quite useful if you want to run a job on the full cluster with as many available slots as possible.

Manually merged into release-0.8 in a6f9f9939ca03026baeefb3bd0876b90068b7682

Thank you for merging it!

Hi to all,
I was reading this interesting thread..is there any change that multi-user/multi-job scenarios will come into play sooner or later? Or do you just rely on YARN for it?

Hey,
Flink already supports running multiple jobs in parallel.
If you have 50 slots available, you can run two jobs requiring 25 slots.
The webfrontend is not really able to properly report the status of concurrent jobs, but thats only a visualization issue.

That's true but what if there's not enough resources? Is there any policy to retry the job submission automatically or give priority to waiting/queued ones?

At the moment, this is not supported yet. The easiest way to execute
multiple jobs concurrently is to start each job in a separate Flink cluster
running on YARN.
On Fri, Mar 6, 2015 at 10:52 AM, Flavio Pompermaier <
<EMAIL_ADDRESS>wrote:

That's true but what if there's not enough resources? Is there any policy
to retry the job submission automatically or give priority to
waiting/queued ones?
—
Reply to this email directly or view it on GitHub
https://github.com/apache/flink/pull/410#issuecomment-77533354.

I know that in stratosphere there was an effort to write a job scheduler, do you think that such a thing could be valuable for the future or are you going to rely only on hadoop-ecosytem stuff (like Oozie or Falcon upon YARN)?

I think it would be definitely good to have something like a job submission
queue, that accepts jobs and executes them as soon as enough as enough
resource become available.
That should not be too hard to do.
Also simple dependencies could be checked like "execute job Y only if job X
successfully completed".
However, I am not aware of any effort in that direction.
2015-03-06 11:26 GMT+01:00 Flavio Pompermaier<EMAIL_ADDRESS>
I know that in stratosphere there was an effort to write a job scheduler,
do you think that such a thing could be valuable for the future or are you
going to rely only on hadoop-ecosytem stuff (like Oozie or Falcon upon
YARN)?
—
Reply to this email directly or view it on GitHub
https://github.com/apache/flink/pull/410#issuecomment-77537609.

That would be awesome :)
I think you could talk with Markus about the Dopa scheduler..propably it's a closed project but it could be a source of inputs to create a ticket for contributors who wants to implement that!


MagicaVoxel crashes immediately with xraw

Is there an issue with 1.09 GiB xraw files? It may be necessary to emit a more compact voxel file type.

I've been working on making a writer for magicavoxel's native format. That will possibly work better.


Git tab with commit target information

Can you output before Message-field (between control buttons and input field) target of next commit - "project/folder name" + "branch name"?
Currently for re-check is target repository is right user have to look:

up, to the title bar of VSCode for re-check current project/folder name (in fullscreen mode invisible);
down, to the status bar of VSCode for re-check current branch name.

Sample: vscode | release/1.5
thank you.

@joaomoreno It very useful when VSCode use as Git client / secondary editor. (On my PC EditPlus is much faster)
But about "not many people suffer from this" - I think you right :)


cargo generate using ssh results in: Git Error: Failed to authenticate SSH session: ; class=Ssh (23)

Hello!
I'm currently struggling getting this tool to work properly with ssh.
Generating from github using https works fine.
I have no issues using git by itselve, but for some obscure reason cargo generate does not play nicely with it.
Here is the error I am presented with after trying to clone a simple template of mine:
cargo generate git@github.com:VirtualNonsense/rust_bluepill_minimal_template.git
 Using application config: C:\Users\VirtualNonsense\.cargo\cargo-generate.toml
 Using ssh-identity from application config: $HOME/.ssh/id_rsa
 Favorite git@github.com:VirtualNonsense/rust_bluepill_minimal_template.git not found in config, using it as a git repo url
 Using private key: `%userprofile%\.ssh\id_rsa` for git-ssh checkout
Error:  Git Error: Failed to authenticate SSH session: ; class=Ssh (23)

I've seen that there seems to be an issue with passphrase protected keys so I made sure mine does not have one. I also tied an ed25519 key but it did not change the result as well.
I feel like I'm missing something obvious and would appreciate some guidance😅

Thank you @sassman for your answer!
He does not try to compare it to the favorites but the cloning result is the same.
cargo generate --git git@github.com:VirtualNonsense/rust_bluepill_minimal_template.git
 Using application config: C:\Users\VirtualNonsense\.cargo\cargo-generate.toml
 Using ssh-identity from application config: $HOME/.ssh/id_rsa
 Using private key: `%userprofile%\.ssh\id_rsa` for git-ssh checkout
Error:  Git Error: Failed to authenticate SSH session: ; class=Ssh (23)

Interesting.
Is at the given path really your ssh key? And is it the correct one?

It's the one I use usually to clone stuff. At least it should be 😅
If I change it to something that does not exists it cargo genrate will complain about it:
cargo generate --git git@github.com:VirtualNonsense/rust_bluepill_minimal_template.git
 Using application config: C:\Users\VirtualNonsense\.cargo\cargo-generate.toml
 Using ssh-identity from application config: $HOME/.ssh/id_rsasdf
Error:  Git Error: path does not exist

So the path should be correct.

I realized that I did not use the most recent version do I upgrade but the issue persists
 cargo generate --git git@github.com:VirtualNonsense/rust_bluepill_minimal_template.git
 Using application config: C:\Users\anachtmann\.cargo\cargo-generate.toml
 Using private key: `\\?\%userprofile%\.ssh\id_rsa` for git-ssh checkout
Error: Please check if the Git user / repository exists.

Caused by:
    Failed to authenticate SSH session: ; class=Ssh (23)

I realized that i did not use the most recent version do I upgrade but the issue persists
cargo generate --git git@github.com:VirtualNonsense/rust_bluepill_minimal_template.git
 Using application config: C:\Users\VirtualNonsense\.cargo\cargo-generate.toml
 Using private key: `\\?\%userprofile%\.ssh\id_rsa` for git-ssh checkout
Error: Please check if the Git user / repository exists.

Caused by:
    Failed to authenticate SSH session: ; class=Ssh (23)

Exactly.
I use the default rust toolchain stable-x86_64-pc-windows-msvc within the powershell.
Even though the cmd or the gitbash results in the same output.

and the ssh key you've generated via git-bash then?

Yes
I tried rsa (ssh-keygen -t rsa -b 4096) and ed25519 (ssh-keygen -t ed25519) (I still feel like I did some sort of stupid rookie mistake that's why I try to be explicite on what I did)
Interestingly enough I got more debug information when using wsl.
When I tried to generate with an rsa key I got the following message:
⚠   Favorite `git@github.com:VirtualNonsense/rust_bluepill_minimal_template.git` not found in config, using it as a git repository: git@github.com:VirtualNonsense/rust_bluepill_minimal_template.git
💡   Using private key: `$HOME/.ssh/id_rsa` for git-ssh checkout
Error: Please check if the Git user / repository exists.

Caused by:
    ERROR: You're using an RSA key with SHA-1, which is no longer allowed. Please use a newer client or a different key type.
    Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.

    ; class=Ssh (23); code=Eof (-20)

I never got this while using the windows version

That might be the root cause.
Can you pls generate a fresh ssh key from your wsl ubuntu and register that on your GitHub account.
Then retry cargo generate with the new ssh key.

I think I found the root issue for this: rust-lang/git2-rs/issues/394


v4.1 changelog

Reviewed by SA

JB reviewed

Just made a few minor formatting tweaks: https://github.com/mattermost/docs/commit/21d21482809bb79ef17d61004a90550bbe8981f6


init create single startup for optional external sensors

Waiting on testing with @DonLakeFlyer and a few other boards. Some of the px4fmu-v2 changes are temporary and won't be merged.

I'm going to test this across px4fmu-v2, v3, v4, v4pro, v5.

@mcsauder FYI


No information provided with release of a new image

@drigz, or any of the guys who are creating the code for this project, is there a published list of changes made with each new image?  It's very difficult as an end-user to figure out what has changed from one image to the next, and knowing whether it's worth updating from one image to another.

+1 on this.
Some sort of release note, or at the very least an update of the issues for this GitHub project, would be great.  A simple update to close issues resolved in the latest image would be great.
My personal circumstance is that I'm on the previous (not the latest) image and have worked around a number of issues.  It would take at least half a day of my time to upgrade to the latest image and check whether the work arounds are still needed and get back to where I am now on the new image (assuming I didn't find something new that made me want to revert to the image I'm using today).  Whilst I think this project (and the wider Google AIY initiative) is great, I don't have half a day to burn every time a new image is released given that I have no way of knowing what I'm going to gain for the pain.  I'll even volunteer to pull a release note together if someone just pings me a list of issue #s that are resolved.

 The link from the releases is dated Jan3
I assume you are referring to something newer

The new image is at https://dl.google.com/dl/aiyprojects/aiyprojects-latest.img.xz
https://aiyprojects.withgoogle.com/help/#updating-your-sd-card

File CHANGES.md has been recently added.


fix: when not route is found, the gin operation name is "http.Method:", example: "GET:".

fix: when not route is found, the gin operation name is "http.Method:", example: "GET:".

What is URL path? If domain(ip) included?

@mrproliu do we use e2e tool here? If so, we need a fix.

@mrproliu do we use e2e tool here? If so, we need a fix.

Nope, we haven't used the e2e tool here. Just using mock OAP server for plugin testing.

@Hair1ossTeenager Could you help to add some example code to the plugin test?

What is URL path? If domain(ip) included?

View source code:
// FullPath returns a matched route full path. For not found routes
// returns an empty string.
//
//	router.GET("/user/:id", func(c *gin.Context) {
//	    c.FullPath() == "/user/:id" // true
//	})
func (c *Context) FullPath() string {
	return c.fullPath
}

@Hair1ossTeenager Could you help to add some example code to the plugin test? Also, the CHANGES.md should be updated.

Done.

CI Fails, need some fix.

It looks like it's the docker-compose issue, I will create another PR to fix it.


Choice of placeholder type during ONNX translation to onnx mlir dialect

During code review of https://github.com/onnx/onnx-mlir/pull/1110 there was a discussion on the meaning of tensor<*xf32>.
Currently that type is used as a placeholder for the output type of the onnx mlir dialect operators (during translation of a ONNX graph into the dialect), when the translator cannot determine the exact type of the output.  The placeholder type is used to indicate that the output tensor has no rank and also no known element type.
The MLIR documentation (https://mlir.llvm.org/docs/Dialects/Builtin/#unrankedtensortype) states:
tensor-type ::= `tensor` `<` `*` `x` type `>`

“An unranked tensor is a type of tensor in which the set of dimensions have unknown rank.”
Therefore, according to the MLIR documentation tensor<*xf32> indicates a tensor with unknown rank/extents, but with known element type f32.  Ideally we should have tensor<*> to represent an unranked tensor with unknown element type.  Unfortunately I believe that syntax to be illegal.
Fortunately the placeholder type is transient, because during shape inference the output type is replaced with the closest correct type. So, practically, things work fine and the inconsistency is benign.
Nevertheless it would be nice to use something different to indicate an unknown type.

The true solution is to use tensor<*> i.e. unknown shape and type. I'm not sure this is something that MLIR currently supports.
Whichever type we end up using, shape inference will be the first pass that runs and will infer every aspect of the type: shape and element type for the output of every ONNX Dialect operation.

Could we define an unknown element type, say any, and use tensor<*xany>?
Anyway, I found a thread related to this: https://llvm.discourse.group/t/rfc-tensors-with-unknown-element-types/1039/24


No string displays in the context view for one regular blob container

Storage Explorer Version: 1.25.0-dev
Build Number: 20220609.2
Branch: main
Platform/OS: Windows 10/Linux Ubuntu 20.04/MacOS Monterey 12.4 (Apple M1 Pro)
Architecture ia32\x64
How Found: From running test cases
Regression From: Previous release (1.24.2)
Steps to Reproduce

Expand one non-ADLS Gen2 storage account -> Blob Containers.
Create a blob container -> The blob container explorer is opened.
Check whether the string 'Active blobs (default)' displays in the context view.

Expected Experience
The string 'Active blobs (default)' displays in the context view.

Actual Experience
No string displays in the context view.

Verified this issue on the build main/20220610.4. Fixed. So close it.

Verified this issue on the build main/20220613.1. Fixed. So close it.


Improve DCAF Components Presentation

-Add nomenclature section.
-Add more animations to slides with a lot of text.
-Add more background in why the tab bus is needed.
-Add slide to illustrate how we configure the timing of the engine.
-Add slide to illustrate how we configure a module to run asynchronously.
-Add slide with more information on what the editor does.
-Add a quiz at the end.

Fixed with pull #94


CIMIT Stubs: Add DNS name for Stub API GW

Proposed changes
What changed
CIMIT Stubs: Add DNS name for Stub API GW
Why did it change
Add DNS name for Stub API GW
Issue tracking

PYIC-3343

Checklists
Environment variables or secrets

[ ] No environment variables or secrets were added or changed

[ ] Documented in the README
[ ] Added to deployment repository
[ ] Added to local startup repository

Other considerations

[ ] Update README with any new instructions or tasks

deployed and tested with Postman from my dev environment. Please find some Postman scripts here PYIC-3343


Build Error due to CompileSdkVersion

fix #198
Bumping up the compileSdkVersion

@fredfalcon What build error are we getting?

@just-ary27 We are not able to see the output of the CI/Flow

@fredfalcon My pr is to updrage the compile sdk version it anyways needs to be updated regularly


HEX2DEC Formula when implemented it does not work.

Following quick code implemented for above formula

case BuiltinFunctionNames.HEX2DEC_EN:
#region HEX2DEC
args = GetFunctionArgs(cell, funNode.Children, 1, 2);
if (args[0].type != FormulaValueType.Number)
{
throw new FormulaParameterMismatchException(cell);
}
return int.Parse(args[0], System.Globalization.NumberStyles.HexNumber);

But above HEX2DEC get wrongly truncated to HEX2 for cell value ,   may be it is following (?\$?[A-Z]+\$?[0-9]+)
But when we change above formula name to HEXTODEC it works.

Looks like the function name HEX2 was recognized as a cell address.

Consider change to parse cell address from an entire word to avoid this.


Position in Collection not supported by SectionList

Description
Position in Collection not supported by SectionList. No components can be set as any collection role. With support for "List" or "Grid" roles would these would likely work as expected.
This issue is covered in-depth by parent issue #30977, please check there for more details.
React Native version:
0.63

Hello @amarlette , I can take up this issue 👍

Thank you @vikene! Please tag this issue number in the PR when you make it, it makes it much easier to link the two.

Hey @amarlette  is this issue still open? If so i can have a go at it

TalkBack support for ScrollView accessibility announcements (list and grid) #33180 initially landed on 20th April 2022. Java API relanded with commit a7bb9664009. JavaScript API relanded with commit cbf53bcaf0c, but reverted with commit c2169c776e271ea.


Test lapi register

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

6 of 16 (37.5%)  changed or added relevant lines in 8 files are covered.
12 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.9%) to 63.605%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

cmd/crowdsec-cli/console.go
0
1
0.0%

cmd/crowdsec-cli/utils.go
0
1
0.0%

cmd/crowdsec/main.go
1
5
20.0%

pkg/cwhub/cwhub.go
0
4
0.0%

Files with Coverage Reduction
New Missed Lines
%

cmd/crowdsec/parse.go
12
28.13%

Totals

Change from base Build<PHONE_NUMBER>:
0.9%

Covered Lines:
9619

Relevant Lines:
15123

💛  - Coveralls


Feature request: add option not to make moves

Most chess engines have the "analyze" command, meaning the engine gives you all the variations it visits and the corresponding win%s, but it doesn't make a move on the board. That's very conveninent when analyzing games because you don't add nodes that you don't want to the game tree.
It'd be nice to have an option for leelasabaki to behave like that, so the F5 key calls genmove, but leelasabaki doesn't put the final stone on the board.

@yishn do you think such feature would be ok to add?

Is the 'suspend' command supposed to stop automatic moves?

FWIW Leela Zero supports lz-analyze and lz-genmove_analyze which should be the preferred way to handle this kind of interactive analysis.

Hi everyone, I didn't want to spoil anything, but now that even @gcp is chiming in: Now that I've integrated Shudan into Sabaki, I'm actually working on integrating lz-analyze into Sabaki along with an Analyze Mode where engines do not move automatically. So stay tuned!
BTW @gcp: When are the analyze commands going to be in an official release?

I'm working to stabilize v0.16 now so hopefully not too long.


/abp use NOT WORKING

Which version are you using when bug occurred
self-explanatory
<IP_ADDRESS>B-RELEASE
Describe the bug
A clear and concise description of what the bug is.
I have saved a profile on my main hunter.  I go to an alt hunter and set the profile, then try the /abp use command and the bars do not reset.
LUA Error
If applicable, add to help detail what error codes may exist.
To Reproduce
Steps to reproduce the behavior:

Log on to main of a class.
In options create a new profile.
/abp save profilename (says updated).
logoff
Log on to alt of the same class.
In options set the profile.
/abp use profilename (nothing happens).

Expected behavior
A clear and concise description of what you expected to happen.
The action bars should change.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

Have you tried the button within the character pane to save the profile on your first hunter and then the restoration "Use" button on your second hunter (while both being under the "Hunter" profile?

I used the save profile button on the character sheet on my main hunter, then used the use button on a alt hunter and that worked.
I have activated the minimap button on all 32 toons, only 3 of my 32 toons have the profile button on my character sheet.

selecting the spec from the minimap button works for restore on a toon without the profile button on the character sheet

after doing that they got the char sheet button

I tried saving with my main mage using the command line since they did not have a csheet btn.  It said it updated but when I thied to restore it to an alt using the mm btn it did not change

Okay so the button appeared just fine on your main and alt hunters, but when you went to your main mage the button wasn't present in the character pane - am I understanding correctly?
If so, are there any LUA errors associated with this on your mage? Do you have BugSack/BugGrabber addons to pull those errors (if they are being displayed)?
If I am indeed understanding could you provide screenshot of the character pane of your main mage where the button doesn't appear there?

I cleared the bug log and reconnected, there were no bugs reported.

now getting bug
1x ...rfaceActionBarProfiles/ActionBarProfiles.lua:187: Usage: GetSpecializationInfo(specIndex[, isInspect[, isPet[, inspectTarget[, sex]]]])
[string "=[C]"]: in function GetSpecializationInfo' [string "@ActionBarProfiles/ActionBarProfiles.lua"]:187: in function <...rfaceActionBarProfiles/ActionBarProfiles.lua:135> [string "=[C]"]: ? [string "@ActionBarProfiles/libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:66: in function <...ActionBarProfiles/libs/AceAddon-3.0/AceAddon-3.0.lua:61> [string "@ActionBarProfiles/libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:494: in function InitializeAddon'
[string "@ActionBarProfiles/libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:619: in function <...ActionBarProfiles/libs/AceAddon-3.0/AceAddon-3.0.lua:611>

Alright so a couple of questions.

First off, and backing up you mentioned that:

I have activated the minimap button on all 32 toons, only 3 of my 32 toons have the profile button on my character sheet.

Obviously your mage being one, what are the other two classes that are giving you trouble. Do you have any of these other three classes in duplicate (like a second mage, or whatever) that are not giving you trouble?

I see on your mage the epic 424 pieces and wonder if this is a boosted character that has an active specialization (I'd be surprised if it let you boost w/o a specialization, but it might answer some questions).

If you have a specialization (most likely the case), then activate only BugSack, BugGrabber and ActionBarProfiles. Zygor shouldn't have made a difference as it didn't with your hunter from what I see here, but still want to cover the bases for the weird compatibility issues that sometimes albeit rarely happen.
Log back in to your mage and see if you have the button.
If so, activate all of your usual add-ons with these mentioned three and see if the button is still there.
If this doesn't solve it on your mage, or if you didn't have an active specialization on your mage (again, unlikely, but never know), then swap/activate any spec of your choosing and see if the button appears then (you might need to relog after switching specs). Try with all three mage specs and see what happens.

Third and final question for now, is your DB profile for this add-on recently made for the first time (or have you had this file from long time past held over from Silencer2k's set up of the add-on? This is the file in your accountwide Saved Variables folder titled ActionBarProfiles.lua (NOT the file by the same name in your addon folder). Could you share this at least as a snippet of your mage and hunter so that I can compare these (you can make a txt document of the lua file and rename your toons in the profileKeys for your privacy if you wish)?

My working theories, so you don't think that I am having you spin your wheels needlessly:
1 and 3 are kind of tied together that something got corrupted in your DB file from when your hunter was saved vs mage was saved that is preventing some of the profiles from not restoring. This doesn't address why the button is missing from your character pane, but might shed some light on the underlying issue that brought you here. I only think of this because of the massive changes that took place between 10.0's talent tree that was largely unfixed resulted in changes to what the DB file may look like and look for in some of these profiles.

Possibly an issue with GetSpecialization (the LUA you shared) might be some error on my side has the specID wrong and it is preventing restore. Again, this wouldn't handle the missing button issue (that part I'm at more of a loss over as I haven't experienced that myself with the basic add-ons or my 100 or so together). What you can do is on your mage type in and run the following command:

/run GetMySpecAndConfig()
This should provide you with a plethora of information that might help in narrowing down the issue.
I hate to put you through all of this especially with TWW early release out (I haven't been out to the new area myself yet despite 2 days of near straight projects). If the ActionBarProfiles is causing you a headache, I can work on the issue on this end with the information provided, while you roll with the add-on disabled.

dygor Guides Viewer: 8226 guides are loaded.
Your current specialization index is: 2
Your current specialization ID is: 63
Your current trait tree ID is: 658
, Your active configuration ID is: 2276020
Current class profile in use: Mage
I have 13 toons to level before I will need to start my alts so I am not in a hurry.  Thanks

Apologies, didn't check the other open issues before posting.

Hey. I don't want to sound impatient or intrusive but is there an ETA on a possible update/fix? This addon is indeed a life saver for us altoholics with no real alternative. Thanks for all your work.

No estimate as I haven't been able to duplicate the errors that resulted in buttons not appearing on some of the profiles vs the other aside from the theory that the DB file became corrupted at some point. The more I look into it the more likely it seems that in order to solve these issues that I can't entirely duplicate, that it will require a complete re-write of the add-on from the original author's work. As I haven't been able to dedicate the hundreds of hours that would be required to get something basic going, I have no estimate.
I would recommend using BtwLoadouts as it does at least what ActionBarProfiles did (and more, except I don't think keybindings get saved with the BtwLoadouts, could be wrong). It won't be as lightweight as this will be (once that time can be dedicated), but that's the best alternative I can offer you if you are in a pinch.

Thanks for the heads up. Here's to hoping you can solve the issues, since this addon has been the best as far as action bar profiles saving go. It's lightweight and does exactly what is needed, no additional bells and whistles.
I'll give BtwLoadouts a try but may I point you to MySlot? It does more or less what ActionBarProfiles does and works with no issues as of the latest patch so this might give you an idea of what may be wrong with ActionBarProfiles. It's lack of easiness being  the only caveat (as far as I'm concerned).
Again, thanks for keeping this project alive!

I'm so glad to hear that! Also, glad I made the slightest of contributions to this wonderful and greatly helpful addon by introducing you to MySlot which I thought you knew about. Regardless, here's to hoping everything will go as planned!
Should you need any help with testing/bugs etc. please let me know. I'm more than happy to help in any way I can.


Application for MoveVM Substrate Pallet, part 2

Project Abstract
This application is a response to Move Smart Contract Pallet RFP and a follow-up to our previous work on the RFP. The deliverables were submitted with this PR.
Grant level

[ ] Level 1:  Up to $10,000, 2 approvals
[ ] Level 2:  Up to $30,000, 3 approvals
[x] Level 3:  Unlimited, 5 approvals (for >$100k: Web3 Foundation Council approval)

Application Checklist

[x] The application template has been copied and aptly renamed (project_name.md).
[x] I have read the application guidelines.
[x] Payment details have been provided (bank details via email or BTC, Ethereum (USDC/DAI) or Polkadot/Kusama (USDT) address in the application).
[x] The software delivered for this grant will be released under an open-source license specified in the application.
[ ] The initial PR contains only one commit (squash and force-push if needed).
[x] The grant will only be announced once the first milestone has been accepted (see the announcement guidelines).
[ ] I prefer the discussion of this application to take place in a private Element/Matrix channel. My username is: @_______:matrix.org (change the homeserver if you use a different one)

Thanks for the application. One quick feedback from the airport: The formatting of the milestone table seems to be off. Could you fix this?

Thanks for noticing, yeah there were some pesky newlines. Fixed!

Recheck

Sorry for the confusion, @MeerKatDev. I have updated the instructions for the CLA bot. Could you submit the text between the horizontal lines as a comment here, as a way of signing the CLA? Cheers!

I have read and hereby sign the Contributor License Agreement.

Hi @MeerKatDev just checking in, how is progress coming along?

Hi @MeerKatDev just checking in, how is progress coming along?

Hi @keeganquigley , great timing! We have just submitted the deliverables 👍


Cube printout should not compute lazy scalar coordinates

To address #5723
We've accepted in the discussion there that we really don't want complex lazy calculations performed each time you print a cube.
Nor would we like it to "realise" a scalar coordinate, so it only happens once, since you really wouldn't expect printing to modify a cube.
It seems reasonable instead to just print something like "complex_scalarvalue_coord: <lazy>" in this case.
The user could of course realize it, if + when the value is actually wanted.
Note: IMHO this is not a major change, and can just be done
-- we have changed printout format before without considering it a breaking change.
Also relevant here : most scalar coords, ones loaded from files, are not lazy, since #5229
( so in many/most cases, adopting this won't change the output )

Does this issue mean that there is consensus that this is the right approach? And if yes, is this is something @fnattino and I could help with implementing and/or reviewing?

Does this issue mean that there is consensus that this is the right approach? And if yes, is this is something @fnattino and I could help with implementing and/or reviewing?

Yes, and Yes, I think!
I wrote this after last week's Peloton meeting, so we did get to generally discuss the options + this was our choice.
N.B. I just edited the comment as I realised the "<lazy>" part didn't come out in markdown!

@SciTools/peloton Closed in #5896


Geo Location platform code clean up

Description:
This changes the level of integration of the geo_json_events and nsw_rural_fire_service_feed platforms to align them with https://github.com/home-assistant/home-assistant/pull/18207.

More entity management code has been moved into the third-party library.
Cleaned up unit tests.
Transformed geo_json_events tests to async.
Support for custom latitude/longitude.

Related issue (if applicable): n/a
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#<home-assistant.io PR number goes here>
Example entry for configuration.yaml (if applicable):
geo_location:
  - platform: nsw_rural_fire_service_feed
    latitude: -36.666667
    longitude: 149.833333

Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.

If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[x] New dependencies are only imported inside functions that use them (example).
[x] New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.

If the code does not interact with devices:

[x] Tests have been added to verify that the new code works.

The cov build fails with an AssertionError in tests/components/sensor/test_statistics.py:315 and underlying sqlite3.OperationalError which all does not seem to have anything to do with this PR.
Building from the same branch on my own Travis profile works fine without any errors.

Seems like some other PR has made a change where some device tracker tests are now failing.

Make sure to update the docs with the new options for coordinates too.


Deleting a tag with delete breaks focus handling

🐛 Bug report
When deleting a tag with the delete key, the remaining tags are no longer focusable with arrow keys. This resolves itself by pressing the down key.
💥 Steps to reproduce

Focus the input. Press left and then delete.
Focus is not moved to next tag. Left and right arrow keys no longer work.

💻 Link to reproduction
https://zagjs.com/components/react/tags-input
🧐 Expected behavior
Delete and backspace should have somewhat similar behavior w.r.t focus handling.
🌍 System information

Software
Version(s)

Zag Version
0.73.1

Browser
Firefox

Operating System
MacOS

I just pushed a fix for this. We'll release an update shortly.
If the issue persists after upgrading, I'll re-open it.


feat(coverartarchive-api): add getReleaseGroupCovers to complement getReleaseCovers

Noticed there was no function to get release group covers for which there is an available API endpoint.

Superseded by #874


Firewall inspect incoming public ip before NAT ?

does firewall inspect network-rules or application rules prior to public IP NAT ?
if not, will it defeat the purpose of having firewall to secure virtual machine behind the firewall ?

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

ID: 07b33cf5-3747-59b6-29b4-9aa076a6d271
Version Independent ID: ddd15c52-275e-68e6-513e-07d42292b059
Content: Integrate Azure Firewall with Azure Standard Load Balancer
Content Source: articles/firewall/integrate-lb.md
Service: firewall
GitHub Login: @vhorne
Microsoft Alias: victorh

@ranokarno , yes it does inspect Network rule and application rules. Do you have a setup where it is not working as expected?

@ranokarno , Do you have any update on this issue?

@ranokarno , Please tag me if you have any further questions.


Use ESpeak object from python-espeak instead of os.system commands

python-espeak and python3-espeak are available packages to install on raspbian via apt-get.
How to use the ESpeak object can be found here: https://github.com/relsi/python-espeak

Ill work on this tommorow, I will probably use talkey as it is on pip and supports espeak and festival tts.