Avoid creating new types each time in std lib extern implementations

Came across the following in the ExternRequest class:
https://github.com/ballerina-platform/ballerina-lang/blob/d865ebf978dc89545a6165a54ca5f38d0680665f/stdlib/http/src/main/java/org/ballerinalang/net/http/nativeimpl/ExternRequest.java#L62
If the type doesn't change, there is no need to create types for each value created. Some of the types can be referred to from the symbol table and those that are not there can be created as final variables.
This is just one instance I came across. Need to check and fix in other std lib modules as well.

The issue is by https://github.com/ballerina-platform/ballerina-lang/pull/22396, hence closing


Website automatically generates release plan

Pelican Service:

[ x] Other (please give the detail)

Describe the solution you'd like
Rather than have whoever is the release manager update the release plan every time (and sometimes forget to do so). The page should automatically get the dates from the milestones in GitHub, if possible.
The pre-release date is the date of the milestone, the release date is a week after.
We tend to keep a running list of 2-3 milestones at a time, so this might mean the page has multiple upcoming releases (which isn't a bad thing).

Was accidentally closed via a mistype I think.

@turetske Nope, just great work from Austin.
https://github.com/PelicanPlatform/PelicanPlatform.github.io/pull/43


serde_yaml should be updated

cargo-audit reports a vulnerability in the serde_yaml dependency:
ID:  RUSTSEC-2018-0005
Crate:   serde_yaml
Version: 0.7.5
Date:    2018-09-17
URL:     https://github.com/dtolnay/serde-yaml/pull/105
Title:   Uncontrolled recursion leads to abort in deserialization
Solution: upgrade to: >= 0.8.4

However simply bumping the dep to 0.8 causes a test failure:
---- config::tests::parse_config stdout ----
problem with config: invalid type: string "mouse", expected binding fields; Skipping value
problem with config: invalid type: string "key", expected binding fields; Skipping value
/*snip*/
problem with config: invalid type: string "key", expected binding fields; Skipping value
thread 'config::tests::parse_config' panicked at 'assertion failed: !config.mouse_bindings.is_empty()', src/config.rs:2095:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Thanks for reporting. Agree this should be fixed. Note that severity sounds low for us; the vuln sounds like a DoS attack, and everyone running Alacritty has control of the input.


lookup prefixes regardless of peer

some kind of way to input a prefix and get all possible paths from all peers would be useful (including that some paths might be rejected while others are not)

A comparison can be made with this type of looking glass: you input the prefix once, and you see it for all the neighbors that have the route with all their attributes http://lg.ring.nlnog.net/prefix_detail/lg01/ipv4?q=www.nlnog.net

I will implement that in the birdwatcher tomorrow. As for the UI part, that will probably have to wait until next week.

any update? :)

The UI part is still not designed and thus not implemented, sadly.

Working on it

Any update on this one since 575 days ago?

Development on this has been moved to alice LG. This repo should probably be archived.

+1
On Mon, 8 Oct 2018 at 09:19, Veit Heller<EMAIL_ADDRESS>wrote:

Development on this has been moved to alice LG
https://github.com/alice-lg/alice-lg. This repo should probably be
archived.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ecix/birdseye/issues/7#issuecomment-427740473, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AB2T1QawobhQUq0rATDLD1bh5sKhGgZiks5uivx3gaJpZM4MKXCh
.


update annotation file

hi, thanks for your awesome work!
I'm not sure if the image frames from the DFEW dataset you're using are original frames or manually cut frames from video.
When I attempted to replicate the code using the official original clip_224x224 path for image frames, I noticed an issue with the frame_num in the annotation file. Specifically, the number of some frames in that path should not exceed 16, but it is annotated as 16. This may cause some problems when running the code. If you run my preprocess_annotation.py code, you can see that I have made modifications to the annotation file to address this issue.

for 9829cd8 commit:
For videos with less than 16 frames, you only used the first frame indice 0. Although this is a minor adjustment, it can improve the overall consistency of the dataset, I think that it would be more reasonable to pad the last frame to make it 16 frames in total.

hi, thanks for your awesome work!
I'm not sure if the image frames from the DFEW dataset you're using are original frames or manually cut frames from video.
When I attempted to replicate the code using the official original clip_224x224 path for image frames, I noticed an issue with the frame_num in the annotation file. Specifically, the number of some frames in that path should not exceed 16, but it is annotated as 16. This may cause some problems when running the code. If you run my preprocess_annotation.py code, you can see that I have made modifications to the annotation file to address this issue.

Hi, thanks for your attention.
I used the original frames but I pre-processed the original frames. Concretely, for all the videos with less than 16 frames, the final frame was copied to achieve the full 16 frames. Sorry about not mentioning this and I will merge your modification.
Thanks for your contribution.
Cheers!


Feature/is node changed position

Add isNodeChangedPosition internal call. Prevents calls to moveNode and _updateContainerHeight when x, y, width, height have not changed in drag/resize.

Coverage increased (+0.2%) to 72.34% when pulling 64ea5c4cf6fcf229fdd2329fc64653178b64ff61 on radiolips:feature/isNodeChangedPosition into f1cdbe27c991b6eb96305df106d439ef0b322699 on troolee:master.


Added Email form group large

Solved issue #357

Good job @AmitDeka
Congrats 🎉, your PR got merged. To be eligible for the swags from ClueLess. Follow this steps.

Star this repository. ⭐
SignIn / SignUp in [ClueLess Website](https://www.clueless.tech/) .
Go to profile section from the top right hand corner.

Comment your profile URL under this comment tagging the person who merged your PR.

That’s it. Follow the leaderboard !
And don’t forget to share your achievement with your friends.


Why does this happen when moving around Bricks properties sheet?

v0.92

This is because the random seed depends on the node's position. There's a "lock" icon you can use somewhere to lock it, so it won't change when you move the node.

@RodZill4 This issue should probably be closed, unless we intend to lock nodes' seeds by default (which might be a good idea).

I don't think adjusting the UI should affect the object in anyway. There should be a button for that.

This discussion should be held in #79

This issue is a duplicate of #79

Duplicate of #79


Typo Update contribute.md

Description:
This pull request corrects a minor typo in the "Contribute" documentation.
Change:

"meerged" → "merged" in the "Pull requests" section.

Importance:
Correcting typos enhances the clarity and professionalism of our documentation. This fix ensures the text is easily understood and maintains a high standard of quality for community members and contributors who rely on this guide.
Thank you for considering this change!

jhaaaa thank you! please merge it

jhaaaa pls merge it :)


log more error information

Logs the error supplied to CALLGLOBALHANDLER
(e.g. websocket.onerror)

Thanks for the Pull Request!
Did you test this? What kind of information did you gain?
According to the WebSocket spec, the try-catch-block should never be invocated at all if the address is syntactically correct and there is no security exception: https://www.w3.org/TR/websockets/#the-websocket-interface
Also, websocket.onerror will only ever receive a simple event without an descriptive message: https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebS ocket_client_applications#Connection_errors

Actually, I was testing and having problems, but could not figure out why.
And you are right, it was the onclose that gave me more information. Turns out, I was supplying invalid tokens to the server (because of time drift) and in response it just terminates the tcp connection. Since that is not a clean websocket shutdown, the onclose gets called with a CloseEvent.code of 1006.


[BUG] Longhorn should not be allowed to be deployed more than once in a cluster

Describe the bug
Longhorn should not be allowed to be deployed more than once in a cluster
To Reproduce
Steps to reproduce the behavior:

From Rancher, deploy Longhorn app - longhorn1
Longhorn is deployed successfully
Redeploy longhorn app - longhorn2
No workloads in longhorn2 will be deployed but the app is seen Active
Delete longhorn2
Longhorn1 app's workloads get deleted.

Expected behavior
Longhorn should not be allowed to deploy/install multiple times in a cluster. It should be deployed only once.
Environment:

Longhorn version: 0.8.0
Kubernetes version: 1.17.4
Node OS type and version: RKE DO cluster

Tracking at Rancher using https://github.com/rancher/rancher/issues/26627

Trying to deploy longhorn through kubectl in a cluster, which already has Longhorn installed gives:
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/longhorn.yaml
namespace/longhorn-system unchanged
serviceaccount/longhorn-service-account unchanged
clusterrole.rbac.authorization.k8s.io/longhorn-role unchanged
clusterrolebinding.rbac.authorization.k8s.io/longhorn-bind unchanged
customresourcedefinition.apiextensions.k8s.io/engines.longhorn.io unchanged
customresourcedefinition.apiextensions.k8s.io/replicas.longhorn.io unchanged
customresourcedefinition.apiextensions.k8s.io/settings.longhorn.io unchanged
customresourcedefinition.apiextensions.k8s.io/volumes.longhorn.io unchanged
customresourcedefinition.apiextensions.k8s.io/engineimages.longhorn.io unchanged
customresourcedefinition.apiextensions.k8s.io/nodes.longhorn.io unchanged
customresourcedefinition.apiextensions.k8s.io/instancemanagers.longhorn.io unchanged
configmap/longhorn-default-setting unchanged
daemonset.apps/longhorn-manager unchanged
service/longhorn-backend unchanged
deployment.apps/longhorn-ui unchanged
service/longhorn-frontend configured
deployment.apps/longhorn-driver-deployer unchanged
storageclass.storage.k8s.io/longhorn unchanged

It seems was fixed in Rancher.

@sowmyav27 Can we close this bug?

Fixed in rancher - https://github.com/rancher/rancher/issues/26627


emoji_picker: Fix search input length.

This was probably a regression from our upgrade to bootstrap 2.3.2.

Testing Plan:
GIFs or Screenshots:
before:

after:

Merged, thanks @Gittenburg!


Updating requires for linux to support 32bit build

Description of the Change
Added logic from @progkix to support builds for 32bit linux.
Alternate Designs
N/A
Why Should This Be In Core?
Build scripts are in core.
Benefits
allows people to build on 32bit linux.
Possible Drawbacks
None so far. Will test this change before merging
Applicable Issues
https://github.com/atom/atom/issues/13788#issuecomment-279019713
/cc @progkix

This fix works for me in Fedora 24 TwentyFour, Kernel: i686 Linux 4.9.10-100.fc24.i686+PAE:
$ script/build --create-rpm-package
$ sudo dnf install ./out/atom.i686.rpm
$ atom --version
Atom    : 1.14.3
Electron: 1.3.13
Chrome  : 52.0.2743.82
Node    : 6.5.0

Thanks, @progkix, @ungb

This has been merged in https://github.com/atom/atom/pull/13842


Vulnearble verison of com.google.code.gson library upgrade

w.r.t issue  - https://github.ibm.com/kms/kmk/issues/1380
Upgrading "gson" along with supporting package "sdk-core" to fix CVE issue.

Integration test case results

Unit test case

Maven clean build

Maven validating the packages

Maven compiling the packages

Maven test

Depending packages

JDK-9 versions results
Clean

Validate

Compile

Test

Integration test cases

Unit test cases

JDK-11.0.15 results
Clean

Validate

Compile

Test

Integration test

Unit test


Screen Recorder Feature Request

Description of the new feature / enhancement
A easy to use screen recorder, maybe similar to that of the game bar, but allowing us to record the entire screen rather than one window.
Scenario when this would be used?
Screen recorders can make recording and presenting GUI applications in action much easier.
Supporting information
Not much. Maybe something like the game recorder on game bar. Thank you for reading!

/dup #143


RedisInsight blocks startup

When testing #6135, I noticed that shutdown was hanging. On further investigation, I found that the redis insight logic blocks startup and retries 5 times until it succeeds https://github.com/dotnet/aspire/blob/fb53a555ce245c253c823e3a0032809a9b183bcb/src/Aspire.Hosting.Redis/RedisBuilderExtensions.cs#L175-L180. This shouldn't block startup and should instead use the "ResourceReadyEvent" to do make these requests.

I will work on this.


New version: Malwarebytes.Malwarebytes version <IP_ADDRESS>6

[ ] Have you signed the Contributor License Agreement?
[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.6 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Possible duplicate package entry.
Similar installer SHA256 hash found in manifest:

InstallerSha256: 377ac497bdeb20e13ea84ca1eab709946535b77d4231007a7646509386a4af33

manifests\m\Malwarebytes\Malwarebytes\<IP_ADDRESS>1

Did the developer revert by a few patch versions?


Improve test output printing

Tests found in the src/lib.cairo (or other packages when multiple are allowed) should display a better message. Running X test(s) from src/lib.cairo may be confusing.

We could update the gif in our README when it's done


[Issue-2291] The default pool setting for Vara is SubWallet Official

Related issue(s)

#2291

Is your feature request related to a problem(s)? Please describe.

Add pool default for Vara

Describe the solution you'd like

Add pool default for Vara

Describe alternatives you've considered

No

Additional context

No

🚀 Deployed on https://pr-2292--sw-web-runner.netlify.app


[AutoPR hanaonazure/resource-manager] Lagalbra/add hanainstance set api

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/5945

(message created by the CI based on PR content)

Codecov Report

Merging #5215 into restapi_auto_hanaonazure/resource-manager will decrease coverage by <.01%.
The diff coverage is 34.88%.

@@                              Coverage Diff                              @@
##           restapi_auto_hanaonazure/resource-manager    #5215      +/-   ##
=============================================================================
- Coverage                                         49%   48.99%   -0.01%
=============================================================================
  Files                                           6509     6509
  Lines                                         182592   182634      +42
=============================================================================
+ Hits                                           89476    89490      +14
- Misses                                         93116    93144      +28

Impacted Files
Coverage Δ

...aonazure/azure/mgmt/hanaonazure/models/__init__.py
56.25% <ø> (ø)
:arrow_up:

...azure/mgmt/hanaonazure/models/hana_instance_py3.py
100% <100%> (ø)
:arrow_up:

...re/azure/mgmt/hanaonazure/models/os_profile_py3.py
100% <100%> (ø)
:arrow_up:

...mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py
100% <100%> (ø)
:arrow_up:

...hanaonazure/models/hana_management_client_enums.py
100% <100%> (ø)
:arrow_up:

...anaonazure/operations/hana_instances_operations.py
47.72% <9.67%> (-8.14%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d59f98e...a49de04. Read the comment docs.


Change global.json roll-forward policy from latestPatch to latestMinor

What does this PR do?
This pull request changes the roll forward policy from latestPatch to latestMinor.
Why is it important?
Contributors can work on Testcontainers with the latest dotnet SDK. Note that it's impossible to compile the projects with the latest SDK (version 8.0.303) and the latestPatch policy.
dotnet --version
The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application '--version' does not exist.
  * You intended to execute a .NET SDK command:
      A compatible .NET SDK was not found.

Requested SDK version: 8.0.200
global.json file: /Users/0xced/Projects/testcontainers-dotnet/global.json

Installed SDKs:
6.0.424 [/usr/local/share/dotnet/sdk]
8.0.303 [/usr/local/share/dotnet/sdk]

Install the [8.0.200] .NET SDK or update [~/testcontainers-dotnet/global.json] to match an installed SDK.

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found

Related issues
None

Wouldn't this lead to incompatibilities if developers use the latest SDK with features that aren't available in previous major versions?

Well, those are SDK features so that should not have any impact on the Testcontainers projects themselves.
But using latestPatch forces to use .NET SDK 8.0.2xx. If I have the latest SDK installed (8.0.303) then I won't be able to work on Testcontainers. Building on the command line will give me the error mentioned in the original post. (Using dotnet --version as an example was maybe unfortunate, but using dotnet build produces the same error). Building in a IDE won't work either and will yield many errors.

When working on #1231 I had to modify global.json locally to be able to compile the projects and run tests.

Locally, you can use the DOTNET_ROLL_FORWARD environment variable or set user-specific project settings.

The DOTNET_ROLL_FORWARD environment variable is for the dotnet runtime and is unrelated to the SDK. Andrew Lock gives a good explanation in his blog post Exploring the new rollForward and allowPrerelease settings in global.json. Although it was written in the .NET Core 2/3 era, the information is still applicable today with the recent SDKs.
Maintaining the global.json file is tricky, it's not the first time I submit pull request to fix it. 😉

https://github.com/nodatime/nodatime/pull/1490
https://github.com/nodatime/nodatime/pull/1638
https://github.com/xoofx/Tomlyn/pull/16

I even fixed the official documentation that was wrong! https://github.com/dotnet/docs/pull/35775


Registers channel ID for arguments when it cant send messages in channels.

So, the client saves the channel id to provide it args, but, when you use the bot in a channel where it cannot type, it sends a message to the user privately.
Now, it doesn't register this new channel to ask for args, which resulted in the command locking
Essentially, i did a command in a channel where the bot couldnt send a message, then the bot sent be a private dm with the question at hand, but did not respond since the channel that was supposed to be receiving those arguments (before it obv failed to send) was the listener, should be an easy fix. Sorry if i explained badly, i can take a video if you need the bug reproduced.

Yes, that's true. But there is no way (that I know of) to get the dm channel for another purpose of using the send() method. That means that the command should be cancelled when that happens, that's the only way we can solve this. Agreed?


Sample update - Kubernetes Azure Container Service

A new check was added recently when creating an Azure Container Service resource with Kubernetes orchestration which requires a valid service principal client ID and secret.
The updated sample takes advantage of a second environment variable which can be used to specify an additional service principal auth file or setting the client ID and secret in the local variables. If none then the main service principal client ID and secret are used; it was implemented as such to allow for the automation to run the sample as a test and should be avoided otherwise.

Can one of the admins verify this patch?


Tool Not Working On Mac OS Catalina

hs_err_pid908.log
Log file is attached.

I can't really do a thing when someone says "not working." Please, give a description of the problem. Does any window appear, for any amount of time? If you launch from Terminal.app using java -jar gdx-liftoff-<IP_ADDRESS>.jar , is anything printed?
I can tell from the log that this is using LWJGL3, but not much else because there isn't very much I can discover from just the log. I was thinking that the problem could be related to a mismatch between gdx-tools' dependency on LWJGL2 and the GUI's dependency on LWJGL3, so I made a bunch of changes to fix that, and I just released them:
https://github.com/tommyettinger/gdx-liftoff/releases/tag/v<IP_ADDRESS>
I don't have any Mac to test on, and I have no idea what problem you've experienced or if this release fixes it.

Closing after a month with no useful information.


⚠ ClamAV has degraded performance

In f0cc825, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 452 ms

Resolved: ClamAV performance has improved in db5b756.


Dehumidifier unavailable after setup: CapabilitiesFailed

HA core version
2024.7.1
Integration version
0.5
Device type and model
Dehumidifier 00000Q18 (0) (Ariston DEOS16s)
Used App
MSmartHome
The description of problem
After correctly setup the device, it appears as unavailable in Homeassistant.
The following exception is raised from the log (debug enabled as stated from the README): CapabilitiesFailed.
The logs
2024-07-09 12:27:10.026 ERROR (Deumidificatore) [midealocal.device] [31885837206704] Unknown error : /srv/homeassistant/lib/python3.12/site-packages/midealocal/device.py, 221
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.12/site-packages/midealocal/device.py", line 221, in connect
    self.get_capabilities(wait_response=True)
  File "/srv/homeassistant/lib/python3.12/site-packages/midealocal/device.py", line 329, in get_capabilities
    raise CapabilitiesFailed
midealocal.device.CapabilitiesFailed

Same here (Midea dehumidifiers):
Logger: midealocal.device
Quelle: /usr/local/lib/python3.12/site-packages/midealocal/device.py:239
Erstmals aufgetreten: 11:58:55 (1516 Vorkommnisse)
Zuletzt protokolliert: 13:09:10
[152832116353363] Unknown error : /usr/local/lib/python3.12/site-packages/midealocal/device.py, 221
[152832116339431] Unknown error : /usr/local/lib/python3.12/site-packages/midealocal/device.py, 221
[153931627967640] Unknown error : /usr/local/lib/python3.12/site-packages/midealocal/device.py, 221
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/midealocal/device.py", line 221, in connect
self.get_capabilities(wait_response=True)
File "/usr/local/lib/python3.12/site-packages/midealocal/device.py", line 329, in get_capabilities
raise CapabilitiesFailed
midealocal.device.CapabilitiesFailed

Hi all, please confirm the last working version ( if any ).
Also we need full debug log; so please add the following to configuration.yaml , restart HA, and post the log:
logger:
  default: warning
  logs:
    custom_components.midea_ac_lan: debug
    midealocal: debug

Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub.

Same here. 0.4.3 working fine.
_homeassistant_logs.txt

After updat to 0.5 same error
Logger: midealocal.device
Source: /usr/local/lib/python3.12/site-packages/midealocal/device.py:239
First occurred: 22:27:57 (1 occurrences)
Last logged: 22:27:57
[146235046613512] Unknown error : /usr/local/lib/python3.12/site-packages/midealocal/device.py, 219
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/midealocal/device.py", line 219, in connect
self.refresh_status(wait_response=True)
File "/usr/local/lib/python3.12/site-packages/midealocal/device.py", line 344, in refresh_status
raise SocketException
midealocal.exceptions.SocketException

https://github.com/rokam/midea-local/pull/212 fixes the capability issue

https://github.com/rokam/midea-local/pull/212 fixes the capability issue

I am sorry, but I still have 2 device malfunction
Logger: midealocal.device
Source: /usr/local/lib/python3.12/site-packages/midealocal/device.py:239
First occurred: 18:26:29 (1 occurrences)
Last logged: 18:26:29
[146235046613512] Unknown error : /usr/local/lib/python3.12/site-packages/midealocal/device.py, 219
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/midealocal/device.py", line 219, in connect
self.refresh_status(wait_response=True)
File "/usr/local/lib/python3.12/site-packages/midealocal/device.py", line 344, in refresh_status
raise SocketException
midealocal.exceptions.SocketException

This issue is about a different error. Please open a new one.


Offline mode

What happened?
Fetch IntelliJ SDK, switch wifi off and try to build a plugin or run tests. It's impossible right now and will be cool to have such support. BTW, it's a regression comparing to 1.xxx.
Relevant log output or stack trace
No response
Steps to reproduce
Turn wifi off
Gradle IntelliJ Plugin version
2
Gradle version
8
Operating System
macOS
Link to build, i.e. failing GitHub Action job
No response

Can you please provide more details on what exactly is failing when in offline mode?
Is this related to #1820?

yay! thanks a lot!

gradle is trying to fetch files from cache redirector and failed
I suppose gradle shouldn't do that

Is that the current state after upgrading to 2.2.0?

Build file '/Users/ignatov/src/mcp-server-plugin/build.gradle.kts' line: 10
An exception occurred applying plugin request [id: 'org.jetbrains.intellij.platform', version: '2.2.0']

Failed to apply plugin class 'org.jetbrains.intellij.platform.gradle.plugins.project.IntelliJPlatformBasePlugin'.
Could not get resource 'https://www.jetbrains.com/updates/updates.xml'.
Could not HEAD 'https://www.jetbrains.com/updates/updates.xml'.
www.jetbrains.com

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
BUILD FAILED in 579ms
Configuration cache entry stored.


Surround source model columns with double quotes

Overview
When generating source models, if the columns contain weird characters like ', the model cannot be run.
Surrounding the column names with double quotes resolves this issue.
I have no clue how vscode plugins work, so I didn't run this code yet. Please review carefully.

Checklist

[ ] I have run this code and it appears to resolve the stated issue
[ ] README.md updated and added information about my change

About "I'm also not really sure if every adapter out there uses double quotes? WDYT?"
I have very little experience with SQL, so no idea, but found this:
https://stackoverflow.com/a/1992392

Maybe it's better to use {{ adapter.quote('table_name') }} as in https://docs.getdbt.com/reference/dbt-jinja-functions/adapter#quote
That way we would take the adapter config instead of always using quotes.


Fix for #311024

Description of changes

Fixes https://github.com/NixOS/nixpkgs/issues/311024
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Please make sure your commit message conforms to the contributing guidelines.

@sternenseemann done, I think.

@sternenseemann it looks like you're much better fit to fix this. Could you take over? I just wanted to start the discussion to get this fixed.


Find an element in a browser in a WPF application

Hi, I'm not able to find an element (a textbox input control) inside a browser (IE) in a WPF application. Should it be technically possible?
Like with the RuntimeId, AutomationId or xpath?
Thank you

Hi, I found the problem, due to some kind of "splash screen" the lookups was not working. Then I collected some feedbacks from other threads and now it's working fine. I think I will have the same problem with modal dialogs, etc.
DesiredCapabilities appCapabilities = new DesiredCapabilities();
appCapabilities.SetCapability("app", "C:\your.exe");
session = new WindowsDriver(new Uri(WindowsApplicationDriverUrl), appCapabilities);
Assert.IsNotNull(session);
Thread.Sleep(5000);
session.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(5.0));
var currentWindowHandle = session.CurrentWindowHandle;
var allWindowHandles = session.WindowHandles;
session.SwitchTo().Window(allWindowHandles[0]);
Debug.Write(session.PageSource); <<-- nb. the first time, this is is dumping only a small part of the xml, I don't know why
I think that would be better - if it is possible - to improve the error messages when the main window/handle is changed. For newbies is pretty challenging to fix this behavior, it took to me some hours and a lot of googling, I was very close to give up. Maybe a specific test/example for this scenario could help, or put some notes in the main documentation... it looks like is a pretty common scenario...
When the main window/handle is invalid, the PageSource is raising an error too, so it's very difficult to understand what is going wrong. Just my 2 cents...
I hope this will help other people to automate their tests!

I think that would be better - if it is possible - to improve the error messages when the main window/handle is changed. For newbies is pretty challenging to fix this behavior, it took to me some hours and a lot of googling, I was very close to give up. Maybe a specific test/example for this scenario could help, or put some notes in the main documentation... it looks like is a pretty common scenario...

Thanks for the feedback @rallets, we'll look into this.


Could not resolve com.github.smarteist:autoimageslider:1.4.0

I am getting this error now, is it removed from jcenter repository?

could compile with com.github.smarteist:autoimageslider:1.3.9

I'm also receiving that error Could not HEAD 'https://jitpack.io/com/github/smarteist/autoimageslider/1.4.0/autoimageslider-1.4.0.pom'. Received status code 521 from server:

Solved
You have us jcenter() along with mavenCentral(). just like below👇👇
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
jcenter()
mavenCentral()
maven {
    url 'https://jitpack.io'
}

}
}

I am not using settings.gradle for repositories management
I have below in my build.gradle:app
repositories {
google()
mavenCentral()
jcenter()
    maven { url "https://maven.localazy.com/repository/release/" }
}

Still getting this error with jcenter(), maven { url 'https://jitpack.io' } added

these solution of these error 👎
Solution :- follow of this link
https://github.com/smarteist/Android-Image-Slider/issues/248#issuecomment-1403067934

I just used the below it solved the same error
maven { url = uri("https://maven.scijava.org/content/repositories/public/") }
instead of using
maven { url "https://maven.localazy.com/repository/release/" }

Use this library which provides same function like smarteist-autoImageSlider
https://github.com/antwhale/AntwhaleImageSlider

Add this to your gradel.properties
systemProp.http.proxyPort=
systemProp.http.proxyUser=
systemProp.http.proxyPassword=
systemProp.https.proxyPassword=
systemProp.https.proxyHost=
systemProp.http.proxyHost=
systemProp.https.proxyPort=
systemProp.https.proxyUser=

Also add this two line in your settings.gradel
maven { url = uri("https://maven.scijava.org/content/repositories/public/") }
 maven { url "https://maven.localazy.com/repository/release/" }

Like this
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        gradlePluginPortal()
        maven { url = uri("https://maven.scijava.org/content/repositories/public/") }
        maven { url "https://maven.localazy.com/repository/release/" }

        mavenCentral {
            url "https://jcenter.bintray.com/"
            allowInsecureProtocol = true
        }
        maven { url 'https://jitpack.io' }
    }
}


Crash when entering dimension

When attempting to enter the dimension, sometimes the game will crash. This happens to specific players.
Minecraft Version: 1.20.1
Fabric Version: 0.15.7
Eden Ring Version: 0.6.17
Sodium Version: 0.5.8
Fabric API Version: 0.92.0
Crash log: https://pastebin.com/sAb7J13f

New Found Bug, Feel Free To Make A Fork

Maybe An Incompatibility With Another Mod
Please Do Further Narrowing for The Incompatible Mods.

This issue also seems to only be reproduceable on a server environment from my experience. I will try narrowing down mods later to see if there is any culprit.

Find the culprit

This issue also seems to only be reproduceable on a server environment from my experience. I will try narrowing down mods later to see if there is any culprit.

have you found the culprit

I have not had the time to. I will not be able to help for much longer due to the movement away from 1.20.1. Sorry. (My modlist is incompatible with any version other than 1.20.1 at the moment)

I have not had the time to. I will not be able to help for much longer due to the movement away from 1.20.1. Sorry. (My modlist is incompatible with any version other than 1.20.1 at the moment)

What i meant is, Find the culprit in 1.20.1

i have the same problem and this is the clientside crash report
crash-2024-03-21_18.39.28-client.txt

Client Rendering issue, make a new issue

Client Rendering issue, make a new issue

ok

Still occuring, and the mod works fine in single player, here's my crashlog
Log.txt

Client Rendering issue, make a new issue

It's the same issue.
This is not a mod compat issue, it's a client crash that only happens when connecting to dedicated servers.

Use Version 20.1.20 👍


i18n(es): add adapter-reference.md

What kind of changes does this PR include?

Translated content

Description

add reference/adapter-reference.md in Spanish
add page to nav.ts

LGTM! 🥳


Extra pages

What do you think about having some extra pages like there is in mountain_view gem?
Could be nice to print some info like:

color palettes, fonts, styleguide details
some generic information about components

@nicolas-brousse yes that could definitely be a nice addition. Have you any thoughts on how you want to author the content for those pages, or where the content should live in the app? Markdown is probably a good option but is there any other functionality you'd like to see in there?
I've mostly been focusing on Lookbook as a development rather than a documentation tool up until now. But it would be nice if it could be expanded to support more of the docs side of things too, if we can find a nice, intuitive way too add and manage pages like you suggest.

@allmarkedup happy that the idea interest you.

Have you any thoughts on how you want to author the content for those pages, or where the content should live in the app?

Since previews path is part of ActionView paths, then maybe the best place could be inside previews folder (ex: test/previews/pages/colors.html.erb).

Markdown is probably a good option but is there any other functionality you'd like to see in there?

If we use normal views, then we let user do what he want.

I've mostly been focusing on Lookbook as a development rather than a documentation tool up until now. But it would be nice if it could be expanded to support more of the docs side of things too, if we can find a nice, intuitive way too add and manage pages like you suggest.

I understand your first approach. I used it recently for my existing components and write previews, and works perfectly 🙂.
I guess it could be useful for teams to share how to use components (notes already help for this) and generic css classes like utilities for example.
I'll explore a bit more and let you know.

This feature would be interesting to publish documentation and previews/examples using the same tool.
I agree with @nicolas-brousse's suggestion of using regular Rails views, so the user can write the pages with their favorite templating language.
Adding a page could be as simple as adding the view (test/previews/pages/colors.html.erb) then visiting /lookbook/pages/colors.
We could also define a convention for the homepage, such as test/previews/pages/index.html.erb that would be rendered when visiting /lookbook.
In terms of navigation, there could be "Pages" item at the top, that would include all existing Pages.

Hey @Spone, yes I agree that this could be a useful feature, and your approach is pretty much what I have been considering,(and what I've done in the past with a previous tool I developed).
There are a few decisions to make with regards to how the pages are actually rendered, with some nuances as to the benefits of each:

Render the page in an iframe, using the parent application layout (or an alternative specified via config). The advantage is that there is complete user control over styling, disadvantage is that there are no default styles or highlighting for text content, code samples etc and that it may look a bit odd to have different styling of the pages compared to the rest of the UI.

2) Render the page templates in a Lookbook layout that provides default styles for text content Advantage is that it's really quick and easy to add docs that look good and no whole page iframe is required. But the disadvantages are that it's hard(er) to customise the styling and if rendered components need to be embedded in the docs without styling issues then they need to be rendered in their own embedded iframes, with some javascript to enable the resizing to the height of the component etc.
There is probably some way that both options could be supported, and/or some helpers provided to work around the disadvantages of whichever route was chosen. But there are definitely a few nuances to consider about either approach.
@Spone @nicolas-brousse what would be your preference  out of the above options? Or any other suggestions?

Hey guys - I just wanted to update this to let you know that I just released v0.7.0 with support for pages :-)
You can see a few example pages in the demo repo here.
The pages feature is behind an "experimental" flag at the moment so will require feature opt-in as outlined in the docs.
I'd love to get your feedback on it if you get a chance to kick the tyres at any point. There are lots more features that could be added to it but hopefully there is enough there to get you started.
Thanks again for the suggestion - it was actually a fun feature to work on in the end and I think a lot of people might find it useful.
Let me know what you think!

@allmarkedup this look really nice! Thank you for this new pretty feature!
For now I only saw one small think missing. It's to be able to update pages layout <head/>, or maybe full layout.
For example if I would like to set a color palette from css I build for my app, then I can't use my css classes. Or maybe I miss the info.

Awesome!
Quick question about the docs:

hidden - If false the page will not appear in the navigation but will still be accessible at it's URL (useful for pages that are still in development) [default: true]

Shouldn't the option be named visible if it's true by default, and the false value make the page disappear?

@allmarkedup this look really nice! Thank you for this new pretty feature!
For now I only saw one small think missing. It's to be able to update pages layout <head/>, or maybe full layout. For example if I would like to set a color palette from css I build for my app, then I can't use my css classes. Or maybe I miss the info.

Is this possible now in some way? Couldn’t find anything in the docs about it?

@emilkarl actually I'm afraid at the moment there are not really any layout/color palette customisation options for pages. This is something that is on my radar for the future but right now you are pretty much stuck with the default styling I'm afraid :(


Float to chars

@pdimov I replaced the anonymous namespaces by templating the structs as you commented. Do you know of a workaround for the following error:
./boost/charconv/detail/floff.hpp:1504:49: error: cannot initialize aggregate of type 'const cache_entry_type [619] {aka const boost::charconv::detail::uint128 [619]}' with a compound literal
         {0xf70867153aa2db38, 0xb8cbee4fc66d1ea8}};

This only arises on GCC 4.8 and 4.9.

I don't, sorry. It's probably because uint128 is not an aggregate, but has a constructor. Why is GCC 4.x confused by that, I don't know.

I don't, sorry. It's probably because uint128 is not an aggregate, but has a constructor. Why is GCC 4.x confused by that, I don't know.

I guess maybe we can just remove the constructor and make it into an aggregate? Will that fixes the issue?
In Dragonbox/floff projects, that the corresponding struct has a constructor is more or less just a historical artifact, 'cause initially it had only one member if the compiler supports native 128-bit integers. I removed that and just made it to always hold a pair of 64-bits because native 128-bit integers didn't seem to produce good assemblies.

I guess maybe we can just remove the constructor and make it into an aggregate? Will that fixes the issue?

That seems to do it. Thanks.

@pdimov Do you have any further comments on this one? I addressed all of your existing comments along the way.

BOOST_CHARCONV_SAFEBUFFERS is defined twice.
Check your uses of _MSC_VER. It means "MSVC and compatible compilers", but most of the current uses seem to only apply to MSVC. Use BOOST_MSVC if you mean "MSVC".

Scientific format will be of the form +1.3e+3.

Does scientific include the plus sign for positive numbers?

Scientific format will be of the form +1.3e+3.

Does scientific include the plus sign for positive numbers?

It does not, and I was also missing the fact that in scientific format the exponent will have a minimum of 2 digits. Correctly represented is: 1.3e+03.


Remove unused CancellationToken

Deleted unused CancellationToken.
The CancellationToken in the google-cloud-pubsub subscriber is not changed in this PR.

Nice, LGTM!  This is what I had in mind when I reported #118.


change static file's CDN to cdn.bootcdn.net

close #70

cdn.bootcdn.net  seems to be only in China


Node size increasing on double click on node D3 v4

How to prevent increasing node size on double click on node. I disabled the double click zoom behaviour but node size still increasing. Here is my code for disable zoom behaviour on double click
`svg.call(d3.zoom().scaleExtent([0.3, 2]).on("zoom", function() {
    newTag.attr("transform", d3.event.transform)
})).on("dblclick.zoom", null)`

Also I tried to prevent from double click event on node.
var svg = d3.select("svg"),
width = +svg.attr("width"),
height = +svg.attr("height");

var newTag = svg.append("g");

var node = newTag.attr("class","nodes")
  .selectAll("circle")
  .data(graph.nodes).enter()
  .append("g").attr("class", "entity")
  .on("click", clicked)
  .on("dblclick", null)
  .call(d3.drag().on("start", dragstarted).on("drag",
   dragged).on("end", dragended));

How can i prevent increasing node size on node double click.

Which of these two problems are you experiencing?

Disabling double-click is having no effect.

Double-click is disabled, but the circles increase in radius when you zoom by other method (e.g.., wheel, touch).

Here’s an example of 1 demonstrating how to disable double-click:
https://bl.ocks.org/mbostock/ce228edc8ca691e2d6d00c98c9b20a74
Here’s an example of 2 demonstrating how to keep circles fixed size when zooming:
https://bl.ocks.org/mbostock/3680957
Please use Stack Overflow tag d3.js to ask for help. Although I make an effort to assist everyone that asks, I am not always available to provide help promptly or directly. Stack Overflow provides a better collaborative forum for self-help: tens of thousands of D3-related questions have already been asked there, and some answered questions may be relevant to you.
When asking for help, please include a link to a live example that demonstrates the issue, preferably on bl.ocks.org. It is often impossible to debug from code snippets alone. Isolate the issue and reduce your code as much as possible before asking for help. The less code you post, the easier it is for someone to debug, and the more likely you are to get a helpful response.
If you have a question about D3’s behavior and want to discuss it with other users, also consider the d3-js Google Group or joining the d3-js Slack.
Thank you! 🤗


Spectrum plot

PlutoDVB2 firmware has an interesting hidden module: a spectrum plot display of the Pluto's RX input.
Maybe, this could be a option for making DATV-Red independent of the BATC server... but I'm not competent in this area of programming.
Attached is a flow to be added to DATV-Red V3 to control this option as well as the web spectrum plot keyboard commands.
The files of this module are under /www on the pluto.
73 qro de michel, hb9dug
spectrum-plot-datv-red-v3.json
cmd-spectrum-plot.txt

Hi
Thank you for pointing this out
I shall investigate

Managed to include it into the project, as static html file.
This is a hack will, further play with it.
Changing TX SR changes RX symbol rates


[SUB-TASK][KPIP-4] Implement kyuubi rest sdk for batch job submission

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Search before asking

[X] I have searched in the issues and found no similar issues.

Describe the feature
sub task of #2240
We should introduce a new module for kyuubi rest sdk to submit batch job.
It should be written in java for better compatibilities.
Motivation
No response
Describe the solution
No response
Additional context
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Thanks @lightning-L  for taking this.


Slow performance when generating cells

When running a simple DCSFQ script the generation of the GDS file (nothing more) takes 2min. This is longer than the InductEx extraction which takes 40s.

The following takes 3s
import spira.all

The majority of this time is spent inside ABC internals (55%) and inspect:getmember (35%). Perhaps including more lazily would improve import performance since many features are optional.

When generating the DCSFQ 75% most of the time it's spent making deep copies (75%).


Wheel Container - Body getting through other body

Github : https://github.com/audifaxdev/WheelOfFate
I've tried to build a Wheel/Cylinder Container. The goals is to have a ball rolling inside when the user spins the wheel.
I've created the container with 2 planes acting like lids and a set of 120 bars around the wheel's center.
My problem is sometimes the ball gets through the bars. Even though those are so close there isn't really any gap, the ball seems too big to even slip through the tiniest gap.
I'm quite stuck at the moment and I would really appreciate any help, or maybe it's a bug?

Hi, have you tried to increase the timeStep (world.step(1/60) ?
If the ball velocity become too fast, sometimes there is no time between frames for engine to calculate the rebound...


test_trivial_g_mapping

The test test_trivial_g_mapping located in UnitTest.py fails with error:
ERROR: test_trivial_g_mapping (__main__.TestStates)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "UnitTests.py", line 68, in test_trivial_g_mapping
    [{}, {'rz': radians(90)}, {'rz': radians(90)}, {}])
  File "/usr/local/lib/python3.6/dist-packages/trip_kinematics/KinematicGroup.py", line 265, in set_virtual_state
    "Error: State not set! Keys do not match! Make sure that your state includes the same keys as your intial virtual transformations.")
ValueError: Error: State not set! Keys do not match! Make sure that your state includes the same keys as your intial virtual transformations.

----------------------------------------------------------------------

fixed since the test was removed


[release-4.12] OCPBUGS-20675: CVE-2023-44487: bump golang.org/x/net to v0.17.0

cc @openshift/storage

/retest

/retest

/lgtm

/label backport-risk-assessed

CI result looks good.
Verified with golang.org/x/net v0.17.0 in go.mod file
/label cherry-pick-approved
/label qe-approved

/jira refresh


Test "gleam check" (without OTP) failing

Check https://github.com/erlef/setup-beam/actions/runs/3671327560/jobs/6206457051#step:11:11.
It started happening when ubuntu-latest moved from 20.04 to 22.04; check this - 20.04 - out (not failing).
I'm not sure if gleam check is supposed to run without Erlang/OTP, but the reason it didn't fail before was because both Ubuntu 20.04 and 18.04, as bundled by GitHub, for the actions, include Erlang/OTP (at the moment, 25.0.4) which will include escript which will prevent the action from failing in those versions.
The failing test was potentially written without that in mind.

I installed Gleam 0.23.0-rc1 in a Ubuntu 22.04 vanilla container (thus no Erlang) and running gleam check on test-projects/gleam_gleam fails with ```
Downloading packages
Downloaded 2 packages in 0.11s
Compiling gleam_stdlib
error: Program not found
The program escript was not found. Is it installed?
Documentation for installing Erlang can be viewed here:
https://gleam.run/getting-started/

so I'm kinda convinced OTP is required for the check. I'm gonna go with `gleam format` for that specific (failing) test.

@lpil, if possible, could you confirm that gleam check requires OTP while gleam format does not? Does our change to the non-OTP test make sense? Thank you.

Neither gleam check or gleam format require OTP, so no, the change does not make sense to me.

gleam check sometimes requires OTP. It depends upon the dependencies and the target being used. Using format makes sense to me! Thanks


Palworld XGP Save Extractor Error

i get a error it worked once then i edit with save with save editor then imported and now i cant extract another save and now i get this error
Xbox Game Pass for PC savefile extractor
Installed supported games:
Palworld
Failed to extract saves:
Traceback (most recent call last):
File "\VBoxSvr\Share\main.py", line 422, in main
File "\VBoxSvr\Share\main.py", line 382, in get_save_paths
IndexError: list index out of range

Press enter to quit

i have latest exe and i even tried doing the source code way i am now trying reinstall game and also im gonna delete all save data from everywhere on xbox

i have latest exe and i even tried doing the source code way i am now trying reinstall game and also im gonna delete all save data from everywhere on xbox

Yes doing that has worked if anyone else has received this error thats the fix


How to use the pre-trained model of codebert?

I've run the demo.py of the Siamese-model. The log is
`Query: set a variable as hello world
Code: print('hello world')
Score: 2.4148944177682097e-08
Code: s = 'hello world'
Score: 0.999518632888794
Code: hello world
Score: 0.00048138442798517644
Query: Download an image and save the content in output_dir
Code:
def f(image_url, output_dir):
import requests
r = requests.get(image_url)
with open(output_dir, 'wb') as f:
f.write(r.content)
Score: 0.9694535732269287
Code:
def f(image, output_dir):
with open(output_dir, 'wb') as f:
f.write(image)
Score: 9.678478818386793e-05
Code:
def f(image_url, output_dir):
import requests
r = requests.get(image_url)
return r.content
Score: 0.03044973686337471`
But when I run the evaluation code:
python run.py \     --output_dir=./saved_models/python \     --config_name=microsoft/codebert-base \     --model_name_or_path=microsoft/codebert-base \     --tokenizer_name=microsoft/codebert-base \     --do_eval \     --do_test \     --train_data_file=dataset/python/train.jsonl \     --eval_data_file=dataset/python/valid.jsonl \     --test_data_file=dataset/python/test.jsonl \     --codebase_file=dataset/python/codebase.jsonl \     --num_train_epochs 10 \     --code_length 256 \     --nl_length 128 \     --train_batch_size 32 \     --eval_batch_size 64 \     --learning_rate 2e-5 \     --seed 123456 2>&1| tee saved_models/python/test.log
An error has occurred saved_models/python/test.log: No such file or directory.
I have a few questions:
1.Is the code tokenizer = RobertaTokenizer.from_pretrained("microsoft/codebert-base") in the demo.py used to load the word splitter? But the parameter microsoft/codebert-base does not exist in the Siamese-model file. Do I need to create it myself? What files do I need to store after I create them?
2.The run command for codebert also has the Microsoft /codebert-base parameter,for example:
python run_classifier.py \ --model_type roberta \ --model_name_or_path microsoft/codebert-base \ --task_name codesearch \ --do_predict \ --output_dir ./models/$lang \ --data_dir ../data/codesearch/test/$lang \ --max_seq_length 200 \ --per_gpu_train_batch_size 32 \ --per_gpu_eval_batch_size 32 \ --learning_rate 1e-5 \ --num_train_epochs 8 \ --test_file batch_${idx}.txt \ --pred_model_dir ./models/$lang/checkpoint-best/ \ --test_result_dir ./results/$lang/${idx}_batch_result.txt
And codes in Quick Tour:
device = torch.device("cuda" if torch.cuda.is_available() else "cpu") tokenizer = RobertaTokenizer.from_pretrained("microsoft/codebert-base") model = RobertaModel.from_pretrained("microsoft/codebert-base")
Do I need to create it myself? What files do I need to store after I create them?
3.I tried to evaluate the pre-training model, but got an error saved_models/python/test.log: No such file or directory. Do I need to retrain the model by myself?

For the error:
saved_models/python/test.log: No such file or directory.
Please follow the readme to fine-tune CodeBERT. We don't provide model for you.
tokenizer = RobertaTokenizer.from_pretrained("microsoft/codebert-base") is a word splitter.
You don't need to create microsoft/codebert-base. It will automatically download from huggingface.
You need to finetune the model described in Readme.md

For the error:
saved_models/python/test.log: No such file or directory.
Please follow the readme to fine-tune CodeBERT. We don't provide model for you.
tokenizer = RobertaTokenizer.from_pretrained("microsoft/codebert-base") is a word splitter.
You don't need to create microsoft/codebert-base. It will automatically download from huggingface.
You need to finetune the model described in Readme.md

Thanks for you answer. So if I want to do code search, I should fine-tune the pre-trained model pytorch_model.bin in the Siamese-model, right? But I don't fine-tune the pre-trained model, demo.py also worked. Do I need to fine-tune just before evaluating?
I have another question: The result of demo.py is Score: 0.9694535732269287. What does score stand for ? Is it as close to one as possible?

if you want to do code search, you should fine-tune the CodeBERT model to get model.bin since I have deleted saved_models/python/checkpoint-best-mrr/model.bin. If you want to use model in demo folder to evaluate, you can change microsoft/codebert-base to demo/python_model and then remove line 343-345 and line 353-355 in run.py

Yes, it's as close to one as possible in provided code candidates.

For the error:
saved_models/python/test.log: No such file or directory.
Please follow the readme to fine-tune CodeBERT. We don't provide model for you.
tokenizer = RobertaTokenizer.from_pretrained("microsoft/codebert-base") is a word splitter.
You don't need to create microsoft/codebert-base. It will automatically download from huggingface.
You need to finetune the model described in Readme.md

I mkdir saved_models/java and run the fine-tune command:
python run.py \     --output_dir=./saved_models/java \     --config_name=microsoft/codebert-base \     --model_name_or_path=microsoft/codebert-base \     --tokenizer_name=microsoft/codebert-base \     --do_train \     --train_data_file=dataset/java/train.jsonl \     --eval_data_file=dataset/java/valid.jsonl \     --test_data_file=dataset/java/test.jsonl \     --codebase_file=dataset/java/codebase.jsonl \     --num_train_epochs 10 \     --code_length 256 \     --nl_length 128 \     --train_batch_size 32 \     --eval_batch_size 64 \     --learning_rate 2e-5 \     --seed 123456 2>&1| tee saved_models/java/train.log
Still an error -bash:  tee saved_models/java/train.log: No such file or directory.

if you want to do code search, you should fine-tune the CodeBERT model to get model.bin since I have deleted saved_models/python/checkpoint-best-mrr/model.bin. If you want to use model in demo folder to evaluate, you can change microsoft/codebert-base to demo/python_model and then remove line 343-345 and line 353-355 in run.py
Yes, it's as close to one as possible in provided code candidates.

I'm a little confused. I see what you said in the comments, model in demo folder is the one you fine-tune for code search. Can't it be used directly for code search tasks?

For the error:
saved_models/python/test.log: No such file or directory.
Please follow the readme to fine-tune CodeBERT. We don't provide model for you.
tokenizer = RobertaTokenizer.from_pretrained("microsoft/codebert-base") is a word splitter.
You don't need to create microsoft/codebert-base. It will automatically download from huggingface.
 If you want to use model in demo folder to evaluate, you can change microsoft/codebert-base to demo/python_model and then remove line 343-345 and line 353-355 in run.py
Yes, it's as close to one as possible in provided code candidates.

I'm a little confused. I see what you said in the comments, model in demo folder is the one you fine-tune for code search. Can't it be used directly for code search tasks?

Yes, you can directly use it for python code search task. But the definition of model in demo.py and model.py is different, you can't directly load the saved model demo/python_model in run.py. This's why I tell that you need to "change microsoft/codebert-base to demo/python_model and then remove line 343-345 and line 353-355 in run.py", which can help successfully load the model.

if you want to do code search, you should fine-tune the CodeBERT model to get model.bin since I have deleted saved_models/python/checkpoint-best-mrr/model.bin. If you want to use model in demo folder to evaluate, you can change microsoft/codebert-base to demo/python_model and then remove line 343-345 and line 353-355 in run.py
Yes, it's as close to one as possible in provided code candidates.

I'm a little confused. I see what you said in the comments, model in demo folder is the one you fine-tune for code search. Can't it be used directly for code search tasks?

Yes, you can directly use it for python code search task. But the definition of model in demo.py and model.py is different, you can't directly load the saved model demo/python_model in run.py. This's why I tell that you need to "change microsoft/codebert-base to demo/python_model and then remove line 343-345 and line 353-355 in run.py", which can help successfully load the model.

Thank you  very much! You answer helped me a lot.  I see you said in the comments that you trained a model to work in six languages. Why do you emphasize Python code search? Can the model in demo folder also be used directly for Java code search?

Because the model is only trained on python corpus. For CodeBERT, it's indeed trained in six languages. But for downstream task like code search, we fine-tuned six models for six languages.

For the error:
saved_models/python/test.log: No such file or directory.
Please follow the readme to fine-tune CodeBERT. We don't provide model for you.
tokenizer = RobertaTokenizer.from_pretrained("microsoft/codebert-base") is a word splitter.
You don't need to create microsoft/codebert-base. It will automatically download from huggingface.
  Similar operations worked with fine tuning, I don't know why here.

I tried it several times and it worked. Thank you.


/usr/bin/ld: cannot find -lboost_python*-py3?

Hi - my python3.8 is in these places
python3: /usr/bin/python3 /usr/bin/python3.8-config /usr/bin/python3.8 /usr/lib/python3 /usr/lib/python3. 9 /usr/lib/python3.8 /etc/python3 /etc/python3.8 /usr/local/lib/python3.8 /usr/include/python3.8 /usr/sha re/python3 /usr/share/man/man1/python3.1.gz
I reinstalled python3.8 (thinking it would resolve -lboost error)
Then deleted pycuda tree and ran install_pycuda script again.
I got the error thrown at me again.
/usr/bin/ld: cannot find -lboost_python*-py3?
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-g++' failed with exit status 1
make: *** [Makefile:6: all] Error 1
Any suggestion would be great. Thanks foryour help

The real issue is I am not able to locate -lboost_python*-py3?

Could you do the following and see which .so files show up on your system?
$ ls /usr/lib/x86_64-linux-gnu/libboost_python*

Hi Jung
There were libboost_python38.so files and I tried to create soft link with libboost_python38-py3.so- that did not work
I used ln -s XXXXXX.so XXXXXX.so
I sorted it by removing your tree and just sudo apt install pycuda directly.
Thank you
From: JK Jung @.>
Sent: 28 June 2021 18:12
To: jkjung-avt/tensorrt_demos @.>
Cc: Rimmi Dhammi @.>; Author @.>
Subject: Re: [jkjung-avt/tensorrt_demos] /usr/bin/ld: cannot find -lboost_python*-py3? (#442)
This Message originated outside your organisation.

Could you do the following and see which .so files show up on your system?
$ ls /usr/lib/x86_64-linux-gnu/libboost_python*
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/jkjung-avt/tensorrt_demos/issues/442#issuecomment-869862159, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUAUDI34L55JEPJJQCL6NDLTVCUPDANCNFSM47N2QT7Q.
Emails and their contents may be monitored for the purposes of quality control, fact checking and training.
This email, together with any attachments, is confidential and may be privileged.  If you have received it in error, please notify the sender and delete it.
To view the TRL Privacy Notice please visit https://trl.co.uk/permanent-landing-pages/privacy-notice.
TRL Limited, registered in England, No. 3142272, registered office: Crowthorne House, Nine Mile Ride, Wokingham, RG40 3GA, UK. VAT Registration 664 625 321.

I sorted it by removing your tree and just sudo apt install pycuda directly.

That should work.


⚠ Bofrost.de has degraded performance

In d40afe6, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1142 ms

Resolved: Bofrost.de performance has improved in ae249ba.


java.lang.SecurityException: Need android.permission.BLUETOOTH_CONNECT permission for android.content.AttributionSource

Mobile Device Environment
Provide a list of operating systems on which this issue is relevant.

Device: Any Android device
OS: Android 12 or above

Application Environment
Provide information about your development environment:

React Native version:  v0.65.1
RN Bluetooth Classic version: 1.60.0-rc.28

Describe the bug
Your sample app doesnot work in Android 12 or above and gives below mentioned bug
Exception in native call
java.lang.SecurityException: Need android.permission.BLUETOOTH_CONNECT permission for android.content.AttributionSource@2b036070: AdapterService getBondedDevices
at com.android.bluetooth.Utils.checkPermissionForDataDelivery(Utils.java:482)
at com.android.bluetooth.Utils.checkConnectPermissionForDataDelivery(Utils.java:514)
at com.android.bluetooth.btservice.AdapterService$AdapterServiceBinder.getBondedDevices(AdapterService.java:2122)
at com.android.bluetooth.btservice.AdapterService$AdapterServiceBinder.getBondedDevices(AdapterService.java:2114)
at android.bluetooth.IBluetooth$Stub.onTransact(IBluetooth.java:642)
at android.os.Binder.execTransactInternal(Binder.java:1285)
at android.os.Binder.execTransact(Binder.java:1244)

Have you attempted to add the correct permissions to it?
I have not updated the sample app with Android 12 permission updates, so it's not surprising it's missing something.  Feel free to add them an open a PR.  Otherwise, I'll try to get to it at some point (next time I need to start the app to do some development).

I am facing same issue..

Same thing, feel free to update the Permissions in the app for Android 12 (hopefully in a specific manifest) and submit a PR.  It's been a while, and I'm not actively working with React/Native at this point.   But I'd gladly accept the PR.

Thanks, Buddy.!

We have found the issue of this problem. This may help you. In the latest Android update, a new app permission is introduced called "Nearby Devices". Please open the app permissions and allow it to run successfully.

There is a section in the Getting Started documentation https://kenjdavidson.com/react-native-bluetooth-classic/android/#android-permissions that shows how to request application permissions prior to using them.  Are you stating that:

the nearby devices permission must be requested this way?
OR that the nearby devices permission should be added to the manifest?
OR both?

 <uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
<uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-feature android:name="android.hardware.bluetooth" android:required="true"/>
<uses-feature android:name="android.hardware.bluetooth_le" android:required="false"/>
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
   <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

<application
  android:screenOrientation="portrait"
  android:name=".MainApplication"
  android:label="@string/app_name"
  android:icon="@mipmap/ic_launcher"
  android:roundIcon="@mipmap/ic_launcher_round"
  android:allowBackup="false"
  android:theme="@style/AppTheme">
  <activity
    android:name=".MainActivity"
    android:exported="true"
    android:label="@string/app_name"
    android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
    android:launchMode="singleTask"
    android:windowSoftInputMode="adjustResize">
    <intent-filter>
        <action android:name="android.intent.action.MAIN"/>
        <category android:name="android.intent.category.LAUNCHER" />

    </intent-filter>
  </activity>
</application>

android {
ndkVersion rootProject.ext.ndkVersion
compileSdkVersion rootProject.ext.compileSdkVersion
// compileSdkVersion 30 // You can use

defaultConfig {
    applicationId 'com.respicoz'
    minSdkVersion rootProject.ext.minSdkVersion
    targetSdk targetSdkVersion
    // targetSdkVersion 31
    versionCode 8
    versionName '2.1.0'
    multiDexEnabled true // <-- ADD THIS

export const requestBluetoothEnabledFun = async () => {
try {
const isRequestBluetoothEnabled =
await RNBluetoothClassic.requestBluetoothEnabled();
return isRequestBluetoothEnabled;

} catch (err) {
// Handle accordingly
return false;

}
};
this function is not executed in Android 13 and higher versions.
It seems like it needs the nearby devices permission.

Thanks for this, I'll update the:

Documentation
Sample app

Next time I have a chance.  I'll leave this open so that I don't forget and others can find it easily.

This issue has been solved for me by putting runtime permission of BLUETOOTH_CONNECT and BLUETOOTH_SCAN as below.
if (Platform.OS === 'android' && Platform.Version >= 23) {
        const granted = await PermissionsAndroid.request(
          PermissionsAndroid.PERMISSIONS.BLUETOOTH_SCAN && PermissionsAndroid.PERMISSIONS.BLUETOOTH_CONNECT,
          {
            title: 'permission required',
            message: 'permision is required to communicate',
            buttonPositive: 'ok',
          },
        );
        if (granted === PermissionsAndroid.RESULTS.GRANTED) {
          console.log('success scan');
        } else {
          console.log('scan not success');
        }
      }

It is working fine now... Thank You :)..!!!

It is working fine now... Thank You :)..!!!

are you able to send and receive messages with this library? are you doing for android only or for iOS as well?
your reply will be very helpful to solve my issues.

It is working fine now... Thank You :)..!!!

are you able to send and receive messages with this library? are you doing for android only or for iOS as well? your reply will be very helpful to solve my issues.

can you be more specific in what you're seeing wrong?  From your last comment you said that it as working.  IOS is a whole other beast, with a lot more hoops to jump through.  So if you're asking about IOS specifically, I suggest you take a look at the documentation and the MFi regulations for Apple bluetooth.

This issue has been solved for me by putting runtime permission of BLUETOOTH_CONNECT and BLUETOOTH_SCAN as below.
if (Platform.OS === 'android' && Platform.Version >= 23) {
        const granted = await PermissionsAndroid.request(
          PermissionsAndroid.PERMISSIONS.BLUETOOTH_SCAN && PermissionsAndroid.PERMISSIONS.BLUETOOTH_CONNECT,
          {
            title: 'permission required',
            message: 'permision is required to communicate',
            buttonPositive: 'ok',
          },
        );
        if (granted === PermissionsAndroid.RESULTS.GRANTED) {
          console.log('success scan');
        } else {
          console.log('scan not success');
        }
      }

It works fine, but I really can't pair services anymore, if I pair in the configs of the phone I can do easily, but I can't pair anymore like I was in dispositives who had android < 12

It is working fine now... Thank You :)..!!!

are you able to send and receive messages with this library? are you doing for android only or for iOS as well? your reply will be very helpful to solve my issues.

Yes. we do it only for Android. contact me if you need any help<EMAIL_ADDRESS>


[DO NOT MERGE] Auto PR to update dependencies of istio

This PR will be merged automatically once checks are successful.
none

@istio-testing: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-presubmit.sh
3fa9be1be56d77ffdbc50c21860646683d1dc242
link
/test istio-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


[Project Proposal]: UDUNITS javascript library

Project Description
This project would explore and pursue ways of offering UDUNITS functionality to front end applications. Depending on expertise and interest, a few methods could be looked at:

Ingest UDUNITS xml config files and create typescript application that replicates existing UDUNITS functionality. Could be deployed on front or back end
Extend existing typescript units library so that UDUNITS codes can be used for file conversion. Candidate libraries include: convert-units and js-quantities.
Compile existing library to web assembly and create helper methods. Note: wouldn’t

Expected Outcomes
A typescript library that can be included in an existing project using npm-install that would allow client side or server side on the fly conversion between units using udunit codes as unit identifiers.
Should include:

Proof of concept application that demonstrates conversions
Tests that can be run against different cases
Helper methods for getting/setting display labels
Possible inclusion within ERDDAP mobile app

Skills required
Any of:

Knowledge about UDUNITS, including compiling code; ideally someone that understands how configs are put together and is capable of compiling/running existing UDUNITS application
Experience or keen interest in creating web assembly from C
Typescript/Javascript

Expertise
Intermediate
Topic Lead(s)
akbstone
Relevant links

UDUNITS Documentation https://docs.unidata.ucar.edu/udunits/current/#Database
UDUNITS XML configs: https://docs.unidata.ucar.edu/udunits/current/#Database
Existing libraries:

convert-units
js-quantities

MDN: Compiling an existing C module to web assembly

We've built on top of convert-units for the NERACOOS Mariner's Dashboard. We weren't trying to match UDUNITS, but we'd be willing to upstream any of it's code that is useful to others.

BTW, in the Python world, it is quite hard to depend on anything related to the udunits2 library and/or any effort to re-write it exactly was abandoned. The most successful MetOcean library that requires units, metpy, uses pint.
TL;DR it may be easier to just reuse something that has the basic units than pursing the ideal 100% unit support in udunits.

Could there be some overlap here with #33?  The focus there is on CF standard names but I can imagine a combined library with front end components for CF, UDUNITS, GCMD keywords, NERC, etc.

@akbstone, @iwensu0313 For this year's Code Sprint, there wasn't a lot of interest in this topic. If it is something you'd still like to pursue during the event, does someone want to take the lead on this topic? If so, please identify who that lead will be. Will this be a topic to execute during the sprint or somewhere else?
Expectations for topic leads: Leads are expected to identify a plan for the code sprint topic, establish a team, and take the lead on executing said plan.
For more information on how topics will be selected see the contributing guide
Otherwise, let's mark it as wont fix 2024 and come back to it later.

@MathewBiddle - we can mark it as wont fix 2024 for this round. Thanks for checking in

Thanks @iwensu0313. We can always pivot day of.


false antiforgery exception

when testing and the captcha hostname is set to local host it throws on lione 34 of RecaptchaServices.cs because e.g. localhost != localhost:12345
looks like code should test against request.Host.Host.ToLower()

Hmm, interesting condition I'm not sure you can actually even use recaptcha from localhost anyway? It's fair to say anyone hosting on a none-standard port will have the same issue though. I also notice you put in a pull request for this.

I have merged your pull request. Thank you for the bug report, and the patch. Contributions are always appreciated!
https://github.com/TimothyMeadows/reCAPTCHA.AspNetCore/commit/6b76762e4a27a2a4a1f80efde281036c72fa8289
https://www.nuget.org/packages/reCAPTCHA.AspNetCore/2.1.2


[Q] No labels shown with default settings

Maybe I'm missing something but with default settings as in the examples I cannot get any labels (numbers) to show, no min/max no current value. Is this a bug or just some missing option?

I've also noticed that spans that suppose to show labels have visibility set to "hidden".

It appears that the simple case without options on the demo page works as expected and is using the latest version, 6.4. It is likely that you are missing something.
The best way to file an issue is to follow the issue template. It also provides a jsfiddle template so you can show exactly what you are trying and others can help debug etc.

Thank you, it seems to be a styling issue on my side, which will be hard to reproduce in a standalone way. Maybe you can give me some pointers as for the known or possible conflicts with bootrstrap styles? Also any idea why the labels will have style set to hidden? Like so:
24

It is a styling issue, something was setting a font size to 0px.

@peterlitvak : the labels are hidden when the slider pointer is above them.


fluxcd: 0.38.3 -> 0.39.0

fluxcd: 0.38.3 -> 0.39.0

Result of nixpkgs-review pr 214203 run on x86_64-linux 1

1 package built:

fluxcd

Result of nixpkgs-review pr 214203 run on aarch64-darwin 1

1 package built:

fluxcd

@superherointj could this be backported to release-22.11 by adding the backport: release-22.11 tag?

@superherointj could this be backported to release-22.11 by adding the backport: release-22.11 tag?

You can always add it as see how it goes. I personally only use unstable. (Nix has rollback in any issue.) IMO everyone should use it from unstable because using older versions is usually not desirable. Imagine, creating a cluster just to have to migrate it soon. I don't like that.

Backport failed for release-22.11, because it was unable to cherry-pick the commit(s).
Please cherry-pick the changes locally.
git fetch origin release-22.11
git worktree add -d .worktree/backport-214203-to-release-22.11 origin/release-22.11
cd .worktree/backport-214203-to-release-22.11
git checkout -b backport-214203-to-release-22.11
ancref=$(git merge-base b6f3d9cbeadb3b6364d479e848ca91cfd40b08f6 ec476eb0510a757297ac13ef66e49a459e0bfba2)
git cherry-pick -x $ancref..ec476eb0510a757297ac13ef66e49a459e0bfba2

Previous PRs would have to be backported too. In sequence.
I suggest you don't bother about this.


why reconstructed face is connected in mouth，while original BFM has a hole in mouth？

why reconstructed face is connected in mouth，while original BFM has a hole in mouth？

@KangolHsu the face(verdex indes) is fixed, so if you don't want the face of mouth, you can delete it.

verdex

How to delete it?

How to delete it?


Some anchor links scroll to the wrong place

Visit https://docs.konghq.com/0.13.x/lua-reference/modules/kong.tools.responses/#send - notice how the "Send" anchor you are looking for is hidden under the page header and you have to scroll a little to see it.

Yes it's kind of buggy - sometimes the url with #send at the end redirected me at the very top of the the page as if #send doesn't have an effect whatsoever, sometimes it behaves as you've mentioned above which is also a bummer :)

Same thing with all hashes #status_codes, #Functions etc.

Actually I know why this is happening. There is a div block with a class navbar which overlaps/hides the content since loading URL with appended #send will place the corresponding link relative to viewport. It's easy to notice by setting .navbar{display: none;}

It happens when wide of browser is more than 1100pixels.

@h3xar0n are you still seeing this somewhere?

@levfishbluefish I noticed it on Firefox, and @subnetmarco just saw it on Chrome for https://docs.konghq.com/1.0.x/configuration/#dns_stale_ttl (I cannot replicate it in Chrome, but have seen it elsewhere.) I happened to me when scrolling from navigation--not when visiting the link in a new window.

I confirm that I still have this problem.

Could you describe the issue?


centralize join logic for markets

This is a small change now, but I imagine one of the sorting options we're going to want to have is creationTime? (even though technically, creationBlockNumber will give same sort order)? And that would mean that join would have to happen in all getters, not just those that return full details. I imagine we'll join more tables and want to start following a similar pattern to prevent the join logic from spreading to every getter.

If you think this is a good idea, i'll change the other getters to grab the fully joined data to allow sorting/filtering on joined fields .

Agree that we should avoid duplicated join logic everywhere for creation time!  I do think that if we have functions for "get market data joined with market state" or "get market data joined with blocks" those should be separate (composable) getters, i.e. you shouldn't have to join with more tables than you need data from!

Sure, that makes sense.

I might try to abstract that, too, that's a lot of repeated code. i'll throw that into this PR, seems related-ish

That's a good point, that is a fair amount of boilerplate that goes into every getter function.  Made a new issue for the sortBy etc. stuff (4444 on CH) but if you want to address it as part of this PR, I'm all for that :sunglasses:

Do you have a preference for how to do it? Could wrap all the modifier parameters into a dictionary, so it's easy to pass them around to a helper function that modifies a QueryBuilder? Or construct a modifier function in the dispatch that gets passed in? Still getting the hang of how Javascript folk approach design. Could also just pass each of the 4 args in to the helper function

@pgebheim so i'm leaving incorrect sort behavior in getMarketsInfo (with incorrect tests that pass). to be addressed in a separate PR. I looked into some other solutions, like generating a function to do the modifiers, and rolling all values up into an object for cleaner function signatures, but it ended up either requiring more complexity in the tests or another layer between the dispatch and the getter


Maybe consider naming the next version EVA 0 for Rei Ayanami

Thank you for your excellent work, a ten year EVA fan here

Hi @jshilong, Rei Ayanami is coming soon with EVA-CLIP.


message_edit: Fix unmute of topic when topic name is edited.

When a user edits topic name then that topic is unmuted for the users who have muted it. This commit fixes such problem and ensures that orig_topic_name is removed from MutedTopic and new topic name is added to it.
Fixes #15210.

@timabbott updated!

I labeled this as a release goal, since I think it would solve #19916?

I made the following technical changes:

Swapped parameter order for get_users_muting_topic
Removed buggy use of user_profile as loop variable which corrupts user_profile in the parent function; muting_user was a good replacement.
Renamed function to get_users_muting_topic
Changed the function to return a QuerySet[UserProfile], and do a select_related on realm to avoid unnecessary database queries in a loop.
Added an assertion in the test to verify the number of database queries, given how many bugs this has had related to that.

I've pushed back here and marked this PR to merge once CI passes. Thanks for helping make this happen @akshatdalton and @amanagr!

Rebased following a CI failure due to networking issues, and tagged to merge once CI passes.


Make a product along axis?

Hello,
I would like to compute the solution of the following convex optimization problem:
\begin{equation}
\inf_{m \in \mathbb{R}^d} \left{ <m, 1> | \mathbb{E} ( f(X-m) ) \leq c \right}
\end{equation}
for some $c \in \mathbb{R}$, some function $f : \mathbb{R}^d \mapsto \mathbb{R}$ increasing convex.
The simplest way I found to use cvxpy is to compute my constraints by Monte-Carlo methods. The problem I found is that it is impossible for me to make some convex dependence of my random variables.
Indeed, the case where $f(x) = \sum_{1 \leq j <k \leq d} x_j^+ \times x_k^+$ seems to be non DCP. As product of monotonic and positive functions of my variable, I should expect it would work, am I wrong?
As I couldn't find a function which make a product along axis, I used the following snippet of code but couldn't make it work.
N = 2
Mu = numpy.zeros(N)
Sigma = numpy.array([[1., 0.], [0., 1.]])
alpha = 1.

rv = scipy.stats.multivariate_normal(mean=Mu, cov=Sigma)
X = rv.rvs(size=M)

m = cvx.Variable(N)

expr_x_minus_m = [X[:, i] - m[i] for i in range(N)]

correl_expr = []
for k in range(N):
    for j in range(k):
        expr_xk_minus_m_pos = cvx.pos(expr_x_minus_m[k])
        expr_xj_minus_m_pos = cvx.pos(expr_x_minus_m[j])

        # No "mult. along axis" operator
        expr_prod_vec = cvx.log(expr_xk_minus_m_pos) + cvx.log(expr_xj_minus_m_pos)
        expr_prod_vec = cvx.sum_entries(expr_prod_vec, axis=1)
        expr_prod_vec = cvx.exp(expr_prod_vec)

        expr_h_jk = cvx.sum_entries(expr_prod_vec) / M

        correl_expr.append(alpha * expr_h_jk)

expr = sum(correl_expr)

When solving, it says me that it is non DCP. How can I make it work?
Thanks,

Your function is not convex. You can see that $0 = 1/2 f(1,0) +1/2  f(0,1) < f(1/2,1/2) = 1/4$, which violates the definition of convexity. If you assume $x_1,..,x_n > 0$, your problem would be convex with the change of variables $y_i = \log x_i$. Then $f(x_1,...,x_n) = e^{y_1 + ... + y_n}$.

Good point... Thank you.


Invalid value for BYMINUTE in RRULE

I updated to the latest version (4.1.1), but this error still occurs:
https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/146

Sorry, I was in the wrong directory when updating. I did now:
composer update sabre/vobject

Removing sabre/vobject (4.1.0)
Installing sabre/vobject (4.1.1)
Loading from cache

It works now!


Fix isinstance(foo, str) in bng and kappa generation

This is a follow-up to the previous PR (#230) which made the corresponding fix in core.py, and fixes issue #233. We had found that while #230 allowed models to be created with unicode names/sites in Python 2, BNG and Kappa generation would fail due to unicode strings not being matched in the series of tests on site conditions. I've added corresponding tests in test_bng.py and test_kappa.py.
In the interest of completeness, I grepped all PySB source for other code containing type(foo) == str or isinstance(foo, str) and found cases only in bng.py and (_bng_param method) and render_reactions.py, which I also updated in this pull request.

Coverage decreased (-0.03%) to 76.026% when pulling d8dca1b63216be8892c98c468b8b3c28c226f5bf on johnbachman:unicode_fix2 into a7c6f2c38ac99d67268ff8fd2307efc29e56437e on pysb:master.

Updated the comments as suggested.

Coverage decreased (-0.01%) to 76.043% when pulling 9952e86f1f85dbbb626a9709928abc5be53a3b80 on johnbachman:unicode_fix2 into a7c6f2c38ac99d67268ff8fd2307efc29e56437e on pysb:master.


fix: fix wallet cant connect after disconnect

Description:
The snap not able to reconnect to the wallet ui after disconnected
Issue: https://consensyssoftware.atlassian.net/browse/SF-573
Resolution:
the root cause is the "ethereum" provider reset after disconnected, and there is no operation to re-init the provider, hence the screen freeze when try to use the provider to request snap connect
to address the problem, not to reset the provider even disconnect, as the provider is not part of the snap wallet, it is the permanent connection with metamask
Limitation:
a user disconnect the app and remove/disable the metamask, and try to click the re-connect button will not take effect

Hello I have a problem connecting to Starknet Snap I got a message to update but now when I want to sign with metamask I get the following message any idea how to rectify?    Thanks                                                                                Connection failed
The extraction of npm:@consensys/starknet-snap failed, please check your network connection and try again.
Failed to fetch snap "npm:@consensys/starknet-snap": No matching versions of the snap are on the allowlist


US 01.05.01: Player See Sum of QR Code Scores

As a player, I want to see the sum of scores of QR codes that I have scanned.
Acceptance Criteria

In home page, have (score sum) button as a number
If (score sum) button clicked, bring to library
In library, display score sum w/ highest + lowest scores
Data:

Database of player-personal codes

done


Exclusions Related Discussion

Version where bug was found:
e.g "5.1"
Describe the bug
Q1. Should we consider Segments related exclusions or Consistency related?
Q2. Should we remove the previous user “user1” from individualEnrolment? If Yes, this will impact the Individual Consistency. If we don't remove them then we would have the data collected from their logs, which we don’t want to collect.
Q3. When should we remove those old enrolled users? During the time of updating the segment or during the time of updating the experiment where we add the exclusion segment?
Q4. If we remove the users for that particular segment group & experiment “Experiment1” during updating of segments, we need to remove users for the same segment group that were enrolled in other experiments that have the same segment group “school1” on exclusion list.
To Reproduce
Steps to reproduce the behavior:

We have a group called “school1”.
We enroll a user “user1” having a group & workingGroup as “school1”.
So, we would store groupEnrolment & individualEnrolment documents in the DB.
We now add the group segment “school1” in the exclusion list of “Experiment1”.
We mark a user “user2” having a group & workingGroup as “school1”.
So, we would store groupExclusion & individualExclusion documents in the DB. Also, we would delete the old groupEnrolment document.
Also, if “user1” marks again after the group segment “school1” is on the exclusion list, we do store the individualExclusion document but don't remove the users’ individualEnrolment document. So the user seems to be both enrolled and excluded.

Expected behavior
We need more discussion on this.

Currently, when a user is excluded by a segment rule, we generate an Individual Exclusion document for that user. Additionally, in the case of a Group Experiment, if a user is excluded because they belong to the same group as the Group Experiment, we also create an exclusion document for the group. But might create a problem with the consistency rule.
cc @amurphy-cl

Will review on 09/26 how much time it will take for the last bit of this to be finished.


Optionally store keys in SEP

By popular demand, this PR adds the option to store keys in the SEP. This setting can be toggled by invoking the binary with --[en|dis]able-sep flags.
For those who are interested in this feature, I'm curious for feedback on the ACL options people would find most useful. The current setup is:
SecAccessControlCreateWithFlags(
  nil,
  kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly,
  [.privateKeyUsage, .touchIDCurrentSet],
  &err
)

This configuration is quite strict. If you temporarily remove your password or add any new fingerprints to your Touch ID enrollment, all your U2F keys will be deleted. This means that even if someone steals your laptop and gets your password, they still wont be able to access the U2F keys... It also increases risk though of you accidentally deleting your U2F registrations.
You can find docs for kSecAttrAccessible values in SecItem.h and docs for SecAccessControlCreateFlags values in SecAccessControl.h.
I don't have one of the new MacBooks handy at the moment, so this code probably doesn't work. I should be able to test this branch out in the next couple weeks though.

I got a TouchID equipped computer and got this branch working. I decided that it was confusing and unnecessary to have options for both using SEP-backed keys as well as Keychain-backed keys with TouchID for user presence checks. This PR now removes the option to use TouchID unless keys are stored with the SEP.
I still want to do a bit of testing to make sure that the ACLs I chose actually work the way they're supposed to. I'll try to get this merged sometime next week.

I'm not 100% convinced that wiping the U2F keys on changing touch-ID adds any useful extra security for most people, and is potentially dangerous. Would you mind justifying why you chose that ACL over e.g. touchIDAny?
The ACL you're proposing is possibly quite surprising, particularly if people have only registered SoftU2F - I would find losing all my 2FA access after changing the registered set of fingerprints somewhat unexpected.
In addition, the threat model this extra security is defending against seems fairly narrow - someone who has both physical access to your device and knows your password could do a lot of harm just by making use of the sessions you already have open. I do wish that Apple required using an already registered fingerprint to add more fingers to Touch ID though.
I would argue that a lesser security mode which is roughly equivalent to leaving a small U2F key inside the device at all times is probably perfectly adequate for most people, since most of the risk can be mitigated by choosing a strong, unique password for your Mac anyway.
But then, I'm not a security professional (and don't actually own a Mac either) so that's just my 2c. Take it or leave it :)

Thanks for your input @lukegb. My initial thought was also to use touchIDAny for the reasons you mention. I'm not planning on using this feature though, mostly because I spend my days working on an external monitor with my laptop closed and no easy access to the TouchID element. Also, I feel like the usability constraints around SEP-backed keys are pretty harsh, regardless of the ACL. For example, it's unclear if there's any way to backup SEP-backed keys, even if the backup will later be used on the same device (eg. when reinstalling the OS).
I see this as somewhat of a fringe feature for security enthusiasts or those who face a different set of threats than I do. For those groups, the extra assurance of touchIDCurrentSet might make sense. It mitigates against a (for me) super fringe scenario where an attacker has physical access to your device as well as your device password. With touchIDAny, such an attacker could unlock the device, add a fingerprint, use a SEP-backed U2F key, and remove the fingerprint, covering their tracks. Is this attack worth mitigating? I don't know.

I don't think macOS is designed to be secure against "evil maid"-style attacks where you lose physical control of the device, so I'm not sure that it adds any meaningful level of security for this use case. If an attacker has that level of access to your device, they could also install software on your Mac which snarfs up your cookies every time you authorise a login using U2F and sends them back to the attacker.
I do appreciate that it's potentially a bit of a fringe feature, and it's entirely possible I've overlooked an attack vector that touchIDCurrentSet would mitigate over touchIDAny.

To me the goal of U2F is to have an inextricable device-specific key, with
the idea being if we think a particular device is compromised, it can be
removed from an account.
In that regard, I would definitely prioritize UX over further hardening. If
someone steals your laptop with a Yubikey Nano permanently in its USB slot,
they can certainly still use it, and to me the proper response is to revoke
stolen tokens.
I would not look at the SEP as any sort of "Tinfoil Hat" feature, and would
suggest using touchIDAny. Biometric auth is somewhat weak to begin with, so
I'm not sure it makes any sense to harm UX in an attempt to defeat an
attacker who has physical control of a TouchID device.
Tony Arcieri

Biometric auth is somewhat weak to begin with, so
I'm not sure it makes any sense to harm UX in an attempt to defeat an
attacker who has physical control of a TouchID device.

That reasoning makes sense to me.

I cut a beta-release with these changes. After installing this release, SEP storage will still be disabled by default (that default may change eventually). There are new command line flags for enabling/disabling SEP storage, seeing the status of the setting, and listing registrations from the keychain.
$ /Applications/SoftU2F.app/Contents/MacOS/SoftU2F --show-sep
$ /Applications/SoftU2F.app/Contents/MacOS/SoftU2F --enable-sep
$ /Applications/SoftU2F.app/Contents/MacOS/SoftU2F --disable-sep
$ /Applications/SoftU2F.app/Contents/MacOS/SoftU2F --list

FWIW, the above commands didn't initially work for me, since I was running into https://github.com/github/SoftU2F/issues/39, and getting an error when it tried to connect to the kext.
$ /Applications/SoftU2F.app/Contents/MacOS/SoftU2F
Error connecting to SoftU2F.kext: -536870203
Error starting authenticator

The following worked:
$ launchctl unload ~/Library/LaunchAgents/com.github.SoftU2F.plist
$ /Applications/SoftU2F.app/Contents/MacOS/SoftU2F --enable-sep
$ launchctl load ~/Library/LaunchAgents/com.github.SoftU2F.plist

After that, Touch ID U2F works great.

I had this working on another mac, but it seems to have been broken :/

@exabrial Can you provide more details on what isn't working please?

Because this bit me, I'm commenting to add that SEP will not enable unless you have at least one fingerprint registered with Touch ID, even if it's disabled for all macOS capabilities, and the 'use-SEP' flag will un-set as soon as you remove the fingerprint.

@mastahyeti you asked for feedback on which ACLs would be useful. I think it would be handy to allow users to enter the device passcode instead of TouchID if they want – it's typical to allow users to use one or the other and I can't think of a reason not to allow passcode, plus it would provide a way for people to still use the SEP when the Macbook is docked & closed. It would also address what @dconnolly ran into above.
I think the ACL for that would be: [.privateKeyUsage, .touchIDAny, .or, .devicePasscode].
On the same note of using while the Macbook is docked, these days it's also possible to allow an authorised Apple Watch to unlock the SEP. I've been trying this out as an option as the TouchID sensor is useless for me, as my Macbook is docked 99% of the time. I think it would be great to allow that as well (as I understand the feature it'll only be an option if the user has enabled it in OS settings, so people who don't want it won't get it).
The option for that is .watch, although in my testing that seems to come along with the ride as well as touchID and passcode if you use: [.privateKeyUsage, .userPresence]
If there's a good reason to not allow passcode but it's still ok to enable the Apple Watch, that would be something like:
.touchIDAny, .or, .watch

I believe.
(The Apple documentation for userPresence says it's equivalent to "biometryAny, or, and devicePasscode" but in my testing it seems to also include "watch")
If any of these options sound good to you I'm happy writing up a PR for the change. Thanks!