VUU-333: Implement layout server

Description
Adds a Spring Boot server to manage layouts remotely, and introduces an environment variable for the front end to determine whether layouts are saved locally or remotely. This also handles "application layouts", which refer to all open tabs visible to the user.
Change List

Implement layout server
Add tests for layout server
Connect UI to layouts server
Add resource for application layouts
Connect UI to application layouts resource
Fix layout IDs
Fix Dialog styling

When I try to save a layout, I also see an exception, look slike the data is too big
exception [Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.DataException: could not execute statement] with root cause

org.h2.jdbc.JdbcSQLDataException: Value too long for column "DEFINITION CHARACTER VARYING(255)": "'{""id"":""5WpjhdJwWI3ClI1XYzeJu"",""type"":""Flexbox"",""props"":{""active"":0,""splitterSiz... (3416)"; SQL statement:
insert into layout (definition, metadata_id, id) values (?, ?, ?) [22001-214]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:506) ~[h2-2.1.214.jar!/:na]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:477) ~[h2-2.1.214.jar!/:na]
	at org.h2.message.DbException.get(DbException.java:223) ~[h2-2.1.214.jar!/:na]
	at org.h2.message.DbException.getValueTooLongException(DbException.java:322) ~[h2-2.1.214.jar!/:na]
	at org.h2.value.Value.getValueTooLongException(Value.java:2573) ~[h2-2.1.214.jar!/:na]
	at org.h2.value.Value.convertToVarchar(Value.java:1261) ~[h2-2.1.214.jar!/:na]
	at org.h2.value.Value.convertTo(Value.java:1117) ~[h2-2.1.214.jar!/:na]

We have fixed this by using a different type to model the definition. This is something we were working on anyway, as it means the definition is fully embedded within the JSON of the request (providing implicit validation of the JSON structure). The fix was merged into the base branch under this PR.

The initial save for a new user saves application.json twice. I suspect this is unnecessary and could be reduced to a single call (its probably a longstanding issue)
However, it causes an exception on the server
exception [Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint ["PUBLIC.PRIMARY_KEY_2 ON PUBLIC.APPLICATION_LAYOUT(USERNAME) VALUES ( /* 1 */ 'vuu-user' )"; SQL statement:
insert into application_layout (definition, username) values (?, ?) [23505-214]]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement] with root cause

org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException: Unique index or primary key violation: "PUBLIC.PRIMARY_KEY_2 ON PUBLIC.APPLICATION_LAYOUT(USERNAME) VALUES ( /* 1 */ 'vuu-user' )"; SQL statement:
insert into application_layout (definition, username) values (?, ?) [23505-214]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:508) ~[h2-2.1.214.jar!/:na]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:477) ~[h2-2.1.214.jar!/:na]

We've not been able to reproduce this error. Can we discuss it together next week?


Set up errors

Need to raise errors

Not Authed
No Client Secret
Handle HTTP Errors (Not related to 401 responses from #5 )
Does not exist

undefined scope error (when unknown scope is passed into *kwargs


Cannot unit test Windows directory with rights

Take the following command to create a windows directory, assigning full control to the user 'ADMIN'
directory "c:\\foo\\bar" do
action :create
rights :full_control, ["ADMIN"], :applies_to_children => true
end
And the corresponding chefspec test:
it 'Grants Full control to the ADMIN user' do
expect(chef_run).to create_directory("c:\\foo\\bar").with_user('ADMIN')
end
Unfortunately chefspec returns the following error:
expected "directory[C:\foo\bar]" to have parameters:
user "ADMIN", was nil

Looks like my commands were way off. Closing this issue.
REF: https://github.com/sethvargo/chefspec/issues/621

Just tried to test it slightly differently:
it 'Grants Full control to the ADMIN user' do
expect(chef_run).to create_directory("c:\foo\bar").with(rights [{:permissions=>:full_control, :principals=>"ADMIN" }], :inherits=>true)
end
and am now getting:
NoMethodError:
undefined method `rights' for #RSpec::ExampleGroups::TestlibraryBuildDirectories:0x69a4d90
./spec/build_directories_spec.rb:52:in `block (2 levels) in <top (required)>'

Got it working. For those who want to know how this was achieved.
it 'Grants Full control to the ADMIN user' do
expect(chef_run).to create_directory("c:\foo\bar").with(rights: [:permissions=>:full_control, :principals=>["ADMIN"], :applies_to_children => true])
end


Mod Incompatibility Issue with Simply Swords Cultural Delights

Some people reported that touhou origins is not compatible with Cultural Delights.It will make the game can't start.

Duplicate of #30


unpackerr: 0.12.0 -> 0.13.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/davidnewhall/unpackerr/releases.
meta.description for unpackerr is: Extracts downloads for Radarr, Sonarr, Lidarr - Deletes extracted files after import
meta.homepage for unpackerr is: https://github.com/davidnewhall/unpackerr
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.13.0 with grep in /nix/store/q1xpqpqz3xzhym9vawsmlhq1sgc8g06x-unpackerr-0.13.0
found 0.13.0 in filename of file in /nix/store/q1xpqpqz3xzhym9vawsmlhq1sgc8g06x-unpackerr-0.13.0

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
unpackerr

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/q1xpqpqz3xzhym9vawsmlhq1sgc8g06x-unpackerr-0.13.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A unpackerr https://github.com/r-ryantm/nixpkgs/archive/609642606fd5cb9568ba9f0688972c678eaffe00.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/609642606fd5cb9568ba9f0688972c678eaffe00#unpackerr

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/q1xpqpqz3xzhym9vawsmlhq1sgc8g06x-unpackerr-0.13.0
ls -la /nix/store/q1xpqpqz3xzhym9vawsmlhq1sgc8g06x-unpackerr-0.13.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

unpackerr

Maintainer pings
cc @NULLx76 for testing.

Result of nixpkgs-review pr 282154 run on x86_64-darwin 1

1 package built:

unpackerr

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/davidnewhall/unpackerr/releases.
meta.description for unpackerr is: Extracts downloads for Radarr, Sonarr, Lidarr - Deletes extracted files after import
meta.homepage for unpackerr is: https://github.com/davidnewhall/unpackerr
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.13.1 with grep in /nix/store/3a2n11wcldjl1v2iwib4hb3wbxlx3zgf-unpackerr-0.13.1
found 0.13.1 in filename of file in /nix/store/3a2n11wcldjl1v2iwib4hb3wbxlx3zgf-unpackerr-0.13.1

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
unpackerr

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/3a2n11wcldjl1v2iwib4hb3wbxlx3zgf-unpackerr-0.13.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A unpackerr https://github.com/r-ryantm/nixpkgs/archive/e508f9e72712564ed8a5ed42b735444aa9009050.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/e508f9e72712564ed8a5ed42b735444aa9009050#unpackerr

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/3a2n11wcldjl1v2iwib4hb3wbxlx3zgf-unpackerr-0.13.1
ls -la /nix/store/3a2n11wcldjl1v2iwib4hb3wbxlx3zgf-unpackerr-0.13.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

unpackerr

Maintainer pings
cc @NULLx76 for testing.


Shoots are not labelled for globally enabled extensions

How to categorize this issue?

/area control-plane
/kind bug
What happened:
Shoots are labelled for their extensions.
For example, if you add the extension of type shoot-dns-service, the shoot gets the label extensions.extensions.gardener.cloud/shoot-dns-service: "true".
They same should be true for globally enabled extensions, but it does not.
As this label may be used to filter webhooks by an object selector, such webhooks are not executed anymore.
What you expected to happen:
Shoots should have labels for globally enabled extensions.
How to reproduce it (as minimally and precisely as possible):
Create a shoot cluster on a landscape with an globally enabled extension. The shoot should be augmented with the label for this extension, but it does not.
Anything else we need to know?:
Related to this code: https://github.com/gardener/gardener/blob/367f160cab063463dfd06d9ab488334fccf3414a/plugin/pkg/global/extensionlabels/admission.go#L203-L230
Environment:

Gardener version: v1.53.2
Kubernetes version (use kubectl version):
Cloud provider or hardware configuration:
Others:

/cc @shafeeqes

/assign

@MartinWeindel Thanks for reporting, nice issue description :)


Images showing the journey from one point to another at the start of each section

Done on google slides

Done!


Subset of E2E models for accuracy tests

We currently have a subset of models to test E2E performance. We need similar subset for E2E accuracy tests. If the E2E accuracy workflow started with the subset, it should check that all models in the subset passed the accuracy check.
Periodic E2E jobs (E2E accuracy, Try latest PyTorch) need to use the subset mode to catch regressions early.

@pbchekin this ticket partially duplicates

#2164

Let's align scope between two tickets.


Data Science with Python : Contrast Stretching using Matplotlib #7362

Description 📜
I have added the complete documentation tutorial on 'Contrast Stretching Using Matplotlib' alongwith its implementation in jupyter-notebook.
Fixes #7362

Type of change 📝

[ ] Au#dio (Should be in mp3 format Includes speech clarity, Concise ,Low distortion)
[ ] Vi#deo (Animations, screen-recordings, presentations and regular explanatory films are all possibilties etc)
[x] Doc#umentation (Content Creation in the form of codes or tutorials)
[ ] Other (If you choose other, Please mention changes below)

Domain of Contribution 📊

[ ] Android Dev #(Flutter)
[ ] Android Dev #(Java)
[ ] Android Dev #(Kotlin)
[ ] Backend Dev #(Java)
[ ] Backend Dev #(.NET)
[ ] Backend Dev #(PHP)
[ ] Backend Dev #(Python)
[ ] C/#CPP
[ ] Competitive #Programming
[ ] Cyber #Security
[ ] DS#A
[ ] Data#base
[x] Datascience with #Python
[ ] Datascience with #R
[ ] Frontend Dev #HTML/CSS/JS
[ ] Frontend Dev #React/Angular/Vue
[ ] Go#lang
[ ] Interview #Prep
[ ] Java_#Domain
[ ] JavaScript_#Domain
[ ] ME#RN
[ ] Machine #Learning
[ ] Open #Source
[ ] Python_#Domain
[ ] Ru#st
[ ] Statis#tics
[ ] UI/#UX

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

I had mistakenly created pull request through the wrong branch, so am closing it.


Swap out Google Artifact cache for GitHub cache

The egress cost for a Rust project is surprisingly expensive.

Actually, given GH is free for OSS projects, just remove the caching layer.


Speed Cameras

I would love to be able to place speed-cameras. They should cause people to drive too slow – far below the speed-limit – and some drivers should go too fast and be fined.

I don't think that's possible at the moment, there's no such feature in Cities Skylines yet. It's a matter of CS devs , not mod makers in this case for such a big feature.

TM:PE meint Blitze zu programmieren sei zu aufwändig.

Am 24.12.2020 um 01:09 schrieb BuiIdTheBuilder<EMAIL_ADDRESS>
I don't think that's possible at the moment, there's no such feature in Cities Skylines yet. It's a matter of CS devs , not mod makers in this case for such a big feature.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Tracked in: #67


Clean up image pull backoff error

Partial: https://github.com/aws/eks-anywhere/issues/4832

/lgtm


crash on start after upgrade to macos sequoia

Does this issue occur when all extensions are disabled?: Yes

VS Code Version:
OS Version:

Steps to Reproduce:

Upgrade MacOS to 15.0 (Sequoia)

Start VSCode from Dock

Closes immediately, no crash report

Alternate path to reproduce bug:

Open folder or file from command-line using code shell command
Closes after a short time, or immediately after trying to open any VSCode menu in the system menu bar

Looked through logs in $HOME/Library/Application Support/Code/logs, only anomaly I found was this in sharedprocess.log:
2024-09-23 17:37:27.439 [error] [uncaught exception in sharedProcess]: Event not found: onDidChange: CodeExpectedError: Event not found: onDidChange
    at Object.listen (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:45:4960)
    at E.t (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:44:251)
    at E.q (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:43:4371)
    at y.value (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:43:3602)
    at d.y (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:38:1902)
    at d.z (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:38:1972)
    at d.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:38:2188)
    at MessagePortMain.fe (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:36:30382)
    at MessagePortMain.emit (node:events:514:28)
    at Object.emit (node:electron/js2c/utility_init:2:2285)

Confirmed this is still happening after opening with --disable-extensions flag.
Don't see anyone else reporting this behavior yet so thought it was worth opening. I'm using latest version of Codium as an alternative and that's been working fine.
Other system details:

2023 14-inch MBP
Apple M2 Pro chip
16GB memory

This is a relatively untouched machine, it's a personal laptop with not much on it other than standard software development tools.

Exception in the shared process shouldn't bring down the application, looks like the issue might be something else. Can you provide the output of code --verbose. Also does the issue happen with latest insiders https://code.visualstudio.com/insiders

I have also been experiencing similar issues since upgrading to Sequoia yesterday...
running code --verbose return me these:
[main 2024-09-24T08:27:30.195Z] [File Watcher (node.js)] Request to start watching: /Users/xxx/Library/Application Support/Code/User (excludes: <none>, includes: <all>, correlationId: <none>),/Users/xxx/Library/Application Support/Code/User/settings.json (excludes: <none>, includes: <all>, correlationId: <none>) [main 2024-09-24T08:27:30.198Z] Sending env to running instance... [main 2024-09-24T08:27:30.200Z] [File Watcher (node.js)] Started watching: '/Users/xxx/Library/Application Support/Code/User' [main 2024-09-24T08:27:30.200Z] [File Watcher (node.js)] Started watching: '/Users/xxx/Library/Application Support/Code/User/settings.json' [main 2024-09-24T08:27:30.230Z] Sent env to running instance. Terminating... [main 2024-09-24T08:27:30.230Z] Lifecycle#kill() [main 2024-09-24T08:27:30.230Z] Lifecycle#onWillShutdown.fire()

@sylvia-liu-qinghua can you close all running VSCode processes and run the command again. The previous output shows there is an active instance of the application.

@deepak1556  should I first launch VS code or just write in my terminal code --verbose to launch it?

I got this output (which did not launch VS code)!!
But most of the time it does successfully launch the app normally as well
[main 2024-09-24T08:53:23.602Z] [File Watcher (node.js)] Request to start watching: /Users/xx/Library/Application Support/Code/User (excludes: <none>, includes: <all>, correlationId: <none>),/Users/xxx/Library/Application Support/Code/User/settings.json (excludes: <none>, includes: <all>, correlationId: <none>) [main 2024-09-24T08:53:23.611Z] Starting VS Code [main 2024-09-24T08:53:23.611Z] from: /Applications/Visual Studio Code.app/Contents/Resources/app [main 2024-09-24T08:53:23.611Z] args: {   _: [],   diff: false,   merge: false,   add: false,   goto: false,   'new-window': false,   'reuse-window': false,   wait: false,   help: false,   'list-extensions': false,   'show-versions': false,   'pre-release': false,   'update-extensions': false,   version: false,   verbose: true,   status: false,   'prof-startup': false,   'no-cached-data': false,   'prof-v8-extensions': false,   'disable-extensions': false,   'disable-gpu': false,   'disable-chromium-sandbox': false,   sandbox: false,   telemetry: false,   debugRenderer: false,   'enable-smoke-test-driver': false,   logExtensionHostCommunication: false,   'skip-release-notes': false,   'skip-welcome': false,   'disable-telemetry': false,   'disable-updates': false,   'use-inmemory-secretstorage': false,   'disable-workspace-trust': false,   'disable-crash-reporter': false,   'crash-reporter-id': '6e06c081-cd0e-4e62-a4a6-b1f4148a86aa',   'skip-add-to-recently-opened': false,   'unity-launch': false,   'open-url': false,   'file-write': false,   'file-chmod': false,   force: false,   'do-not-sync': false,   trace: false,   'preserve-env': false,   'force-user-env': false,   'force-disable-user-env': false,   'open-devtools': false,   'disable-gpu-sandbox': false,   '__enable-file-policy': false,   'enable-coi': false,   'no-proxy-server': false,   'no-sandbox': false,   nolazy: false,   'force-renderer-accessibility': false,   'ignore-certificate-errors': false,   'allow-insecure-localhost': false,   'disable-dev-shm-usage': false,   'profile-temp': false,   logsPath: '/Users/xxx/Library/Application Support/Code/logs/20240924T105323' } [main 2024-09-24T08:53:23.612Z] Resolving machine identifier... [main 2024-09-24T08:53:23.612Z] Resolved machine identifier: 5d3ee6c5bb15e281e3b2a3b99f7e88cd7276f05de4b7832e9c232cb62ec36ec9 [main 2024-09-24T08:53:23.612Z] Main->SharedProcess#connect [main 2024-09-24T08:53:23.613Z] StorageMainService: creating application storage [main 2024-09-24T08:53:23.615Z] ElectronURLListener: waiting for window to be ready to handle URLs... [main 2024-09-24T08:53:23.615Z] lifecycle (main): phase changed (value: 2) [main 2024-09-24T08:53:23.615Z] windowsManager#open [main 2024-09-24T08:53:23.617Z] windowsManager#open pathsToOpen [   {     workspace: { id: '4fcb0bf041acd7ab765c62b26ebb7a3f', uri: [v] },     type: 2,     exists: true   } ] [main 2024-09-24T08:53:23.617Z] windowsManager#doOpenFolderOrWorkspace {   folderOrWorkspace: {     workspace: { id: '4fcb0bf041acd7ab765c62b26ebb7a3f', uri: [v] },     type: 2,     exists: true   },   filesToOpen: undefined } [main 2024-09-24T08:53:23.617Z] IPC Object URL: Registered new channel vscode:de7e059e-60fe-416f-8f40-e672c36fe342. [main 2024-09-24T08:53:23.617Z] window#validateWindowState: validating window state on 2 display(s) { mode: 1, x: 2136, y: 156, width: 1122, height: 768 } [main 2024-09-24T08:53:23.638Z] window#validateWindowState: multi-monitor working area { x: 1920, y: 25, width: 1920, height: 1055 } [main 2024-09-24T08:53:23.638Z] window#ctor: using window state { mode: 1, x: 2136, y: 156, width: 1122, height: 768 } [main 2024-09-24T08:53:23.666Z] window#load: attempt to load window (id: 1) [main 2024-09-24T08:53:23.672Z] StorageMainService: creating workspace storage (4fcb0bf041acd7ab765c62b26ebb7a3f) [main 2024-09-24T08:53:23.672Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 1, emptyToRestore: 0, emptyToOpen: 0) [main 2024-09-24T08:53:23.673Z] lifecycle (main): phase changed (value: 3) [main 2024-09-24T08:53:23.673Z] resolveShellEnv(): skipped (VSCODE_CLI is set) [main 2024-09-24T08:53:23.673Z] update#setState disabled [main 2024-09-24T08:53:23.673Z] update#ctor - updates are disabled by user preference [0924/105323.901862:WARNING:in_range_cast.h(38)] value -634136515 out of range [0924/105323.911810:WARNING:crash_report_exception_handler.cc(235)] UniversalExceptionRaise: (os/kern) failure (5) [0924/105323.947894:ERROR:directory_reader_posix.cc(42)] opendir /Users/xxx/Library/Application Support/Code/Crashpad/attachments/9614511b-9649-4956-aa1a-50ca6beaa55a: No such file or directory (2)

Thanks , the logs confirm there is a crash. Can you attach the most recent *.dmp file from ~/Library/Application\ Support/Code/Crashpad/completed

Same issue, resolved by reinstalling vscode(v1.93.1)

confirmed resolved by reinstalling from https://code.visualstudio.com/download, thanks @jianbingfang

Upgraded mine to version 1.94.0 and the issue got solved.


Website Build

Hi,
Have u any plan to create a static website?
This website will preview all the templates.

Have u any plan to create a static website? This website will preview all the templates.
Yes, I was planning to have one. Come on discord we'll work on it together.

Have u any plan to create a static website? This website will preview all the templates.
Yes, I was planning to have one. Come on discord we'll work on it together.

??

@Programming-School-Pro-Coding Let's discuss it in our discord server

@Programming-School-Pro-Coding Let's discuss it in our discord server

No, In here or slack

@Programming-School-Pro-Coding Let's discuss it in our discord server

No, In here or slack

Okay, let's head over to the discussions tab.

This issue is moved to the discussions tab.
So, I'm closing it.


Can't turn off download/export permission?

Hi,
Referencing #6110 I turned off 'can csv on Superset' for a gamma user then logged in as them and they still successfully downloaded a csv of a table's results.
Adding data source access to their profile wouldn't have caused any issues, would it?

Happy to provide a login if its faster to see.
Thanks

There is also a 'can csv' under menu permissions but I don't see a way to turn this off; I assume its related to 'can csv on superset'

Yes i edited the gamma role by removing this permission. The gamma role was
attached to the user i tested.
On Tue, 16 Oct 2018, 20:28 Maxime Beauchemin<EMAIL_ADDRESS>wrote:

You have to compose permissions into Roles.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/apache/incubator-superset/issues/6116#issuecomment-430367669,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKBxd5EnBM0xUFNsiZGVajTTluXyZrrJks5uljNKgaJpZM4Xd6Mz
.

I noticed this too. I removed "can csv on Superset" from the Gamma role, and via the Explore tab the CSV could still be downloaded.

It doesn't work for me either.

I noticed this too. I removed "can csv on Superset" from the Gamma role, and via the chart/slice page the CSV could still be downloaded.

Do you find a way to solve it ? I met a similar situation.
I removed 'can csv on Superset' from the Gamma role so that they can not export to csv from sql_lab page.
But I found that the user can still type 'select * from tb' in sql_lab, explore it in chart, and finally export csv/json from the chart

I will provide detailed infomation on the permission of my custom role if needed. (Generally it is a combination of Gamma, sql_lab, Public)

Hello, @FrankScarlet : hope it's not too late. I encounter a similar issue and found the solution in reading the source code.
The linked permissions for this button is "can_download on SliceModelView". The reason is the following:

This button is linked to a can_download in the Front Code.
The corresponding permissions for the backend is "can_download on SliceModelView"

Not sure what is the rationale behind it though, it may be some legacy thing and could be a good idea to clarify it.
Hope it helps


chore(deps): upgrade configuration

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-configuration-k8s-30-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 4544

Questions ?
Please refer to the Backport tool documentation


Explain how to bind properties on Razor Pages GET requests

A customer was reading through the following section:
https://docs.microsoft.com/aspnet/core/mvc/razor-pages/#writing-a-basic-form
He wondered how to bind properties on GET requests. The current text says:

Razor Pages, by default, bind properties only with non-GET verbs.

A note should be added to explain how to bind properties on GET requests.

@Rick-Anderson shot this one down. https://github.com/aspnet/Docs/issues/4655


Now the newly created activities compile and build out of the box

Also the package of the MVP generation can now be different from the application package
It used to be that the activity was added in the manifest with incorrect package

Thank you @bstrandjev !


Storage Access issue with connection string

Unable to retrieve child resources.

{
  "name": "RestError",
  "message": "request to http://azurite:10000/devstoreaccount1?comp=list&include=metadata failed, reason: getaddrinfo ENOTFOUND azurite",
  "stack": "RestError: request to http://azurite:10000/devstoreaccount1?comp=list&include=metadata failed, reason: getaddrinfo ENOTFOUND azurite\n    at NodeFetchHttpClient.sendRequest (/Applications/Microsoft Azure Storage Explorer.app/Contents/Resources/app/node_modules/@azure/core-http/dist/index.js:2494:23)\n    at processTicksAndRejections (internal/process/task_queues.js:93:5)\n    at async CoreHttpLogHttpClient.sendRequest (/Applications/Microsoft Azure Storage Explorer.app/Contents/Resources/app/node_modules/@storage-explorer/azure-sdk-helpers/dist/src/HttpClients/CoreHttpLogHttpClient.js:31:34)\n    at async StorageRetryPolicy.attemptSendRequest (/Applications/Microsoft Azure Storage Explorer.app/Contents/Resources/app/node_modules/@azure/storage-blob/dist/index.js:14657:24)\n    at async StorageRetryPolicy.attemptSendRequest (/Applications/Microsoft Azure Storage Explorer.app/Contents/Resources/app/node_modules/@azure/storage-blob/dist/index.js:14670:16)\n    at async StorageRetryPolicy.attemptSendRequest (/Applications/Microsoft Azure Storage Explorer.app/Contents/Resources/app/node_modules/@azure/storage-blob/dist/index.js:14670:16)\n    at async StorageRetryPolicy.attemptSendRequest (/Applications/Microsoft Azure Storage Explorer.app/Contents/Resources/app/node_modules/@azure/storage-blob/dist/index.js:14670:16)\n    at async BlobApiVersionRequestPolicy.sendRequest (/Applications/Microsoft Azure Storage Explorer.app/Contents/Resources/app/node_modules/se-blob-extension/dist/src/Clients/BlobStorageClient.js:24:16)\n    at async StorageClientContext.sendOperationRequest (/Applications/Microsoft Azure Storage Explorer.app/Contents/Resources/app/node_modules/@azure/core-http/dist/index.js:4681:31)\n    at async BlobServiceClient.listContainersSegment (/Applications/Microsoft Azure Storage Explorer.app/Contents/Resources/app/node_modules/@azure/storage-blob/dist/index.js:23490:20)",
  "code": "REQUEST_SEND_ERROR",
  "request": {
    "streamResponseStatusCodes": {},
    "url": "http://azurite:10000/devstoreaccount1?comp=list&include=metadata",
    "method": "GET",
    "headers": {
      "_headersMap": {
        "x-ms-version": {
          "name": "x-ms-version",
          "value": "2019-07-07"
        },
        "accept": {
          "name": "accept",
          "value": "application/xml"
        },
        "user-agent": {
          "name": "user-agent",
          "value": "Microsoft Azure Storage Explorer, 1.21.0, darwin azsdk-js-storageblob/12.7.0 (NODE-VERSION v14.16.0; Darwin 20.6.0)"
        },
        "x-ms-client-request-id": {
          "name": "x-ms-client-request-id",
          "value": "aa0846fa-010c-4638-b21f-a5e8f9396f3d"
        },
        "x-ms-date": {
          "name": "x-ms-date",
          "value": "Wed, 15 Sep 2021 21:40:41 GMT"
        },
        "authorization": {
          "name": "Authorization",
          "value": "Signed SharedKey Redacted="
        },
        "cookie": {
          "name": "Cookie",
          "value": ""
        }
      }
    },
    "withCredentials": false,
    "timeout": 0,
    "keepAlive": true,
    "decompressResponse": false,
    "requestId": "aa0846fa-010c-4638-b21f-a5e8f9396f3d"

issue-details.txt

@mkakkireni I am going to paste the details into your 1st comment block to make it more obvious.
You are trying to access Azurite (a local Azure Storage emulator using hostname "azurite", which cannot be found. Did you setup a server with that hostname in your network? If it is running on your local machine, it would listen to your localhost by default (e.g. <IP_ADDRESS> or localhost).


Some question with the code

Dear sir:
I am a student from Communication University of China , i have read your paper about pensieve。 Your research is very charming, i have some question about the code ：
1.traditional method about ABR based on client,just pick the video bitrate within dash.all.min.js,it should not to connect to a local server to calculate the quality of next chunk.In your approach, even the traditional client-based ABR algorithm(BB,BOLA) also enabled the local server, but in fact the calculation process or in dash.all.min.js inside, why do so?
2.You provide the code inside video_server / dash.all.min.js is what generated, I directly use grunt to re-generate your dash.js and you provide the code is not the same.Why is this?
3.mahimahi is used to limit the speed of the local network tool, is it? But only in the use of non-root role, right? When running run_exp / run_all_traces.py, run to child process mm-delay 40 mm-link 12mbps trace python simple_server.py, google chrome prompt link localhost: 8333 refused, if the direct operation python simple_server.py, there is no error The Why is this?

Notice that the bitrate decision is made on the video client for traditional ABR algorithms. Specifically, BB and BOLA has native support in DASH, the simple_server only collect the log of those schemes for analysis, not involving in making the actual bitrate decisions.

dash.min.js is compiled from the source in dash.js folder. I think dash.min.js is more light-weighted than is supposed to be different with dash.js?

The communication between inside and outside mahimahi shell is emulated. So you need to run the web server and chrome/selenium across shell.

Hi all,
I'm facing the problem 2 as well. As far as I know, the Gruntfile doesn't have any rule to compile the dash.all.min.js file that is later used by myindex_*.html. Instead, it is generating separately a dash.min.js and dash.all.js files.  Might you have a more updated version of the Gruntfile? If so it would be great if you could upload it. :-)
Thanks!

Hi all again,
My bad, I was using the wrong HTML file. Using the 'myindex.hmtl' file in 'video_server' it perfectly works with the compiled dash.all.js file. :-D

Sounds good, @pablogil16. Would be nice if you post more details about your solution to the problem, so that others can learn from it. Thanks!

The thing is, although the setup.py script does deploy a client for each ABR algorithm (naming each of the myindex_*.html files and the dash.all.min.js), it might be a bit misleading when trying to compile and run the dash_client from source.
After compiling the dash_client, one should place the newly generated dash.all.js file, together with the myindex.html file in /video_server, into the /var/ww/html directory. The one can run this client on Chrome in http://localhost/myindex.html and it works! :-)
I must say I just tried this solution with Pensieve, the default in myindex.html. However, the other ABRs can be configured in myindex.html as well.
I hope this is helpful!

@pablogil16, thanks for the explanation. You are right that one should move the corresponding flies to /var/www/html. I think https://github.com/hongzimao/pensieve/blob/master/setup.py#L44-L47 has this setup too.

@lixiaoming0017 I have the same problem 3. When I run run_all_traces.py，It hints WebDriverException('unknown error: net::ERR_CONNECTION_REFUSED.
But when I delete mm-delay and mm-link, it succeed.
Could you tell me how you fix problem 3 ? Thanks!

Can you check doing a regular network connection test (e.g., ping some host, curl a webpage) inside mm-delay and mm-link? This is to check if mahimahi is configured correctly. You mentioned the web driver runs fine outside mahimahi shell indicates the other part of the experiments are probably working correctly. Thanks!

@hongzimao Thanks for you reply. I followed you suggestion and I find some error with respect to proxy setting. Ping/Curl works fine under mahimahi.
And now when  python run_video.py, it works fine. But under mahimahi environment, it outputs nothing and log file is empty . I don't know what's the reason.

Hey @chanpero, were you able to solve this problem, if so can you share the solution here. Once I remove mm-delay 40 mm-link 12mbps everything works fine, but once I add them, it generates empty log files. I have disabled my proxy too, but nothing seems to work.

@user432  Sorry, I haven't checked it for some reason. But I think it's due to the mismatch between mahimahi and dash.js.  If you find the solution please tell me. Thanks.

I got the same issue. I didn't use any proxy. When I run the code like python run_video.py <my_ip> BB 320 0 test_norway_tram.ljabru-jernbanetorget-report.2010-12-09_1244CET.log_720 7, I could find the result is recorded. But when I run the python run_traces.py ../cooked_traces/ BB 0 <my_ip>, I would get the Error of Message: unknown error: net::ERR_CONNECTION_REFUSED.
By the way, here is the result I got when I ran the python run_video.py <my_ip> BB 320 0 test_norway_tram.ljabru-jernbanetorget-report.2010-12-09_1244CET.log_720 7 .


Respect verify partial doubles config when verifying job/mailer arguments

Following on from #2745, this PR skips the job/mailer verification that arguments match the signature when:

RSpec Mocks is configured with verify_partial_doubles false
The examples/expectations are wrapped with #without_partial_double_verification

This direction was suggested by @JonRowe here:

I'm leaving this open because I think this should respect the existing configuration for verifying doubles, we should check to see if we should verify arguments.

Closes #2801.

FWIW I find a block-based helper superior when temporarily mutating global state because that interface guarantees the state is reset (like Timecop safe mode for example).

I've worked in many codebases which mutate global state in before hooks and don't have a corresponding after or around hook to reset said state, leading to order-dependent test failures. Appreciate this codebase is safeguarded with good code review with high standards... but to err is human and so on...

An around hook is essentially a block based helper, the problem I had with it is the implementation obscured the actual config setting that was being set, as our specs act as part of our documentation its less obvious whats being tweaked, an alternative would be to use the without_partial_double_verification block helper thats actually part of rspec-mocks if you prefer.

@JonRowe

An around hook is essentially a block based helper

Very true.

an alternative would be to use the without_partial_double_verification block helper

I do use this in the other specs - but it sets a distinct flag Mocks.configuration.temporarily_suppress_partial_double_verification rather than Mocks.configuration.verify_partial_doubles (it's a pity in a way there are two flags at play here).
Overall I think the PR is fine now; I'm happy to adopt the house style and appreciate the trade-offs you mention between obscuring the config setting vs safety.

Released in 7.1.0


VPC select in EKS create cluster UI always picks top option.

What kind of request is this (question/bug/enhancement/feature request):
Bug originally reported in https://github.com/rancher/rancher/issues/24372
Steps to reproduce (least amount of steps as possible):
Using a custom VPC a different VPC is selected in security groups step.
Enter Keys and select region us-east-2. Next
Select Rancher Service role and left k8s 1.14 selected. Next
VPC & Subnet choose custom and select the last vpc-* in the dropdown. Next
Make sure to choose custom (The previously selected VPC is not chosen).
Select the vpc-* selected previously and all its subnets. Next
Notice a different VPC and subnets are selected
Result:
Cluster error if the selected VPC is doesn't match the Security Groups.
 [ERROR] ClusterController c-xxxxx [cluster-provisioner-controller] failed with : error creating cluster: InvalidParameterException: Security group(s) [sg-xxxxxxxxxxx] are not in the same VPC as the subnets. Please specify a security group that is associated with the VPC: vpc-xxxxxx.	status code: 400, request id:  xxxx

Other details that may be helpful:
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): 2.4 master-head (12/09/2019
Installation option (single install/HA): single

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported): EKS
Machine type (cloud/VM/metal) and specifications (CPU/memory): cloud
Kubernetes version (use kubectl version):

v1.14.8-eks-b8860f

Validated in Rancher version e8fbc0c84 2.4-master-head (12/17/2019)


Context for tests

When I am writing tests for logic adapters, I get errors relating to the self.context variable being NoneType. @gunthercox Any ideas how to implement context in tests?

The self.context variable is typically the current instance of the ChatBot class or a subclass of Adaptation. What tests are you trying to write tests for that you are seeing these errors on?

I am writing tests for logic adapters I am creating, and I have to find a workaround because the code (which would work on all actual systems) breaks in testing. This is due to the context variable not being set for adapters in tests. An example of when this occurs is if I have "self.context.io.process(...)", it will throw an error because self.context is of NoneType.

An example of when this occurs is if I have "self.context.io.process(...)", it will throw an error because self.context is of NoneType.

This makes sense, since nothing has been assigned to self.context then it is None. By default, the context also doesn't have any adapters added to it so there is nothing to call the process() method on.
You have two options for setting up tests.

Create a mock object and add the adapters you want to test with to it.
You may be able to do this by doing something like:

context = Adaptation()
context.add_adapter(my_io_adapter)
context.add_adapter(my_storage_adapter)
...

Test at a higher level.
Create a test ChatBot() instance and specify only your adapter as a parameter.

I see what you are saying. I am going to close this issue then, because this will solve my problem.


:arrow_up<EMAIL_ADDRESS>

bumped AVA

Apparently Object.create(null).__proto__ returns null on node 0.10 and undefined on node 0.12+.

Weird, just use t.true(Object.create(null).__proto__ == null) with a comment then.

It's this test that's failing
t.is(fn.parse('__proto__=bar').__proto__, 'bar');

This returns [null, 'bar'] on node 0.10 which is really an edge case. So I can drop the test if you want.

Yeah, drop it.

Done. Don't think it needs other tweaks?

:+1: :fireworks:


Dev/new tokenomics

Description

Closes: #XXX
PR Checklist:

[ ] Have you read the CONTRIBUTING.md?
[ ] Does your PR follow the C4 patch requirements?
[ ] Have you rebased your work on top of the latest master?
[ ] Have you checked your code compiles? (make)
[ ] Have you included tests for any non-trivial functionality?
[ ] Have you checked your code passes the unit tests? (make test)
[ ] Have you checked your code formatting is correct? (go fmt)
[ ] Have you checked your basic code style is fine? (golangci-lint run)
[ ] If you added any dependencies, have you checked they do not contain any known vulnerabilities? (go list -json -m all | nancy sleuth)
[ ] If your changes affect the client infrastructure, have you run the integration test?
[ ] If your changes affect public APIs, does your PR follow the C4 evolution of public contracts?
[ ] If your code changes public APIs, have you incremented the crate version numbers and documented your changes in the CHANGELOG.md?

Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.
I have...

[ ] confirmed the correct type prefix in the PR title
[ ] confirmed all author checklist items have been addressed
[ ] confirmed that this PR does not change production code

Codecov Report

Merging #149 (ae5252c) into main (ebfe740) will increase coverage by 0.18%.
The diff coverage is 83.01%.

@@            Coverage Diff             @@
##             main     #149      +/-   ##
==========================================
+ Coverage   74.79%   74.98%   +0.18%
==========================================
  Files          22       23       +1
  Lines        1857     1971     +114
==========================================
+ Hits         1389     1478      +89
- Misses        428      444      +16
- Partials       40       49       +9

Impacted Files
Coverage Δ

x/inflation/keeper/epoch_mint_provisions.go
58.82% <ø> (ø)

x/inflation/keeper/inflation.go
75.86% <68.08%> (-11.10%)
:arrow_down:

x/inflation/keeper/total_mint_provision.go
76.47% <76.47%> (ø)

x/inflation/types/params.go
85.98% <88.46%> (+0.73%)
:arrow_up:

x/inflation/keeper/hooks.go
95.34% <92.85%> (+0.16%)
:arrow_up:

app/app.go
84.88% <100.00%> (ø)

x/inflation/keeper/grpc_query.go
93.02% <100.00%> (+0.71%)
:arrow_up:

x/inflation/keeper/keeper.go
89.47% <100.00%> (+0.58%)
:arrow_up:

x/inflation/types/inflation_calculation.go
100.00% <100.00%> (ø)

... and 1 more


Data fixes

Fixed issues with loading pressure level vars.

Here are some examples of DataModule parameters that throw an error on the main branch.

Forecasting/downscaling with pressure level variables in the input. Initializing climate_learn.data.DataModule with the following parameters
in_vars = [
    "geopotential",
    "2m_temperature",
],
out_vars = ["2m_temperature"]

should output
KeyError: '2m_temperature_50'

Forecasting/downscaling with pressure level variables in the output. Initializing climate_learn.data.DataModule with the following parameters
in_vars = ["geopotential"],
out_vars = ["geopotential_500"]

should output
KeyError: 'geopotential'


[OTel Plugin] Add custom span processor sample

Add a sample that demonstrates how users can filter out spans produced by our SDKs in order to limit what gets exported.
Ref: https://github.com/Azure/azure-sdk-for-python/issues/31292

API change check
API changes are not detected in this pull request.

/check-enforcer override


Remove gradlew.bat

We don't use it, and it's causing strange git problems.

r? @keybase/react-hackers


SSL certificate used on bam.nr-data.net will be distrusted soon

Details

Project URL: https://readthedocs.org

The admin interface for ReadTheDocs includes resources from the domain https://bam.nr-data.net
The domain https://bam.nr-data.net uses a SSL certificate which will be soon distrusted in most web browsers such as Chrome from M70 onwards. If you load the admin page currently and open the Chrome console you will get the following warning;
(index):1 The SSL certificate used to load resources from https://bam.nr-data.net will be distrusted in M70. Once distrusted, users will be prevented from loading these resources. See https://g.co/chrome/symantecpkicerts for more information.

From the page https://g.co/chrome/symantecpkicerts you get the following;

At the end of July, the Chrome team and the PKI community converged upon a plan to reduce, and ultimately remove, trust in Symantec’s infrastructure in order to uphold users’ security and privacy when browsing the web. This plan, arrived at after significant debate on the blink-dev forum, would allow reasonable time for a transition to new, independently-operated Managed Partner Infrastructure while Symantec modernizes and redesigns its infrastructure to adhere to industry standards. This post reiterates this plan and includes a timeline detailing when site operators may need to obtain new certificates.

Now that SSL certificates can be gotten for free from LetsEncrypt it would probably be a good idea to move sooner rather than later.
The bam.nr-data.net URL seems to come from some type of beacon or error reporting functionality?
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript">
...
NREUM.info={
 "beacon":"bam.nr-data.net",
 "queueTime":0,
 "licenseKey":"97a187b9fc",
 "agent":"",
 "transactionName":"Y1ZSNktWWkEDBUdbDVocdhdXVEBbDQgcQAdVV0QKXFNbURFIQ0ANXlZTFkoZQlsHEUAcEkZaRgNNUg5iEAlZVwFAZkAGWENRHAUDRw==",
 "applicationID":"2379096",
 "errorBeacon":"bam.nr-data.net",
 "applicationTime":140}
</script>

That URL is operated by New Relic, an error reporting provider. They appear to have updated their certificate. Shall I go ahead and close this?

@davidfischer If it's not a bug anymore, seems like you should. :D


manage ebextentions from terraform

hello people
is there any possibility to manage ebextentions using terraform because my needs is :

create resources with names for the elastic load balancer and autoscaling group and launch configuration, otherwise, they will get names using cloudformation stack name

I'd love for this to be implemented but it doesn't look like it's happening any time soon.
For me the full power of EB relies on its ebextensions to further customise the image.
As none of these options are available in the official AWS Terraform module I doubt this is happening any time soon.

Has there been any progress on this functionality?

any updates on this or workarounds?


run podNetwork with --all flag

Earlier --all flag used to run both podNetwork and hostNetwork tests. However, this was broken recently and this patch addresses this issue.
Type of change

[ ] Refactor
[ ] New feature
[x] Bug fix
[ ] Optimization
[ ] Documentation Update

Description

Related Tickets & Documents

Related Issue #
Closes #

Checklist before requesting a review

[ ] I have performed a self-review of my code.
[ ] If it is a core feature, I have added thorough tests.

Testing

Please describe the System Under Test.
Please provide detailed steps to perform tests related to this code change.
How were the fix/results from this change verified? Please provide relevant screenshots or results.

 $ ./bin/amd64/k8s-netperf --config examples/netperf-full.yml  --debug --all
INFO[2024-04-30 11:35:32] Starting k8s-netperf (141@b939249af9389f95d195eedcb47dce131a209342)
INFO[2024-04-30 11:35:32] 📒 Reading examples/netperf-full.yml file.
INFO[2024-04-30 11:35:32] 📒 Reading examples/netperf-full.yml file - using ConfigV2 Method.
INFO[2024-04-30 11:35:32] Cleaning resources created by k8s-netperf
INFO[2024-04-30 11:35:35] 🔬 prometheus discovered at openshift-monitoring
INFO[2024-04-30 11:35:36] 🔨 Creating namespace: netperf
INFO[2024-04-30 11:35:37] 🔨 Creating service account: netperf
WARN[2024-04-30 11:35:38] ⚠   Single node per zone and/or no zone labels                                                                                ]
 EBU[2024-04-30 11:35:38] Number of nodes with role worker: 3
DEBU[2024-04-30 11:35:38] Looking for service iperf-service in namespace netperf
INFO[2024-04-30 11:35:38] 🚀 Creating service for iperf-service in namespace netperf
DEBU[2024-04-30 11:35:39] Looking for service uperf-service in namespace netperf
INFO[2024-04-30 11:35:39] 🚀 Creating service for netperf-service in namespace netperf
INFO[2024-04-30 11:35:40] 🚀 Starting Deployment for: client-host in namespace: netperf
INFO[2024-04-30 11:35:40] ⏰ Checking for client-host Pods to become ready...
INFO[2024-04-30 11:35:42] 🚀 Starting Deployment for: client-across in namespace: netperf
INFO[2024-04-30 11:35:42] ⏰ Checking for client-across Pods to become ready...
INFO[2024-04-30 11:35:45] 🚀 Starting Deployment for: server-host in namespace: netperf
INFO[2024-04-30 11:35:46] ⏰ Checking for server-host Pods to become ready...
INFO[2024-04-30 11:35:50] 🚀 Starting Deployment for: server in namespace: netperf
INFO[2024-04-30 11:35:50] ⏰ Checking for server Pods to become ready...
DEBU[2024-04-30 11:35:55] server Running on ip-192-168-218-97.us-west-2.compute.internal with IP <IP_ADDRESS>
DEBU[2024-04-30 11:35:56] client-across Running on ip-192-168-217-224.us-west-2.compute.internal with IP <IP_ADDRESS>  #  <----- Host network
DEBU[2024-04-30 11:36:01] Executing workloads. hostNetwork is true, service is false
DEBU[2024-04-30 11:36:01] 🔥 Client (client-host-55b9bd9c4-h9mr5,<IP_ADDRESS>) starting netperf against server : <IP_ADDRESS>
DEBU[2024-04-30 11:36:01] 🔥 Client (client-host-55b9bd9c4-h9mr5,<IP_ADDRESS>) starting netperf against server : <IP_ADDRESS>
INFO[2024-04-30 11:36:01] 🗒   Running netperf TCP_STREAM (service false) for 5s
DEBU[2024-04-30 11:36:01] [super-netperf 1 42424 -H <IP_ADDRESS> -l 5 -t TCP_STREAM -- -k
......
DEBU[2024-04-30 11:38:15] Executing workloads. hostNetwork is false, service is false
DEBU[2024-04-30 11:38:15] 🔥 Client (client-across-64f9ddff6b-qmsp4,<IP_ADDRESS>) starting netperf against server : <IP_ADDRESS>
DEBU[2024-04-30 11:38:15] 🔥 Client (client-across-64f9ddff6b-qmsp4,<IP_ADDRESS>) starting netperf against server : <IP_ADDRESS> #  <----- Pod network
INFO[2024-04-30 11:38:15] 🗒   Running netperf TCP_STREAM (service false) for 5s
DEBU[2024-04-30 11:38:15] [super-netperf 1 42424 -H <IP_ADDRESS> -l 5 -t TCP_STREAM -- -k rt_latency,p99_latency,throughput,throughput_units,remote_recv_calls,local_send_calls,local_transport_retrans -m 64 -R 1]
DEBU[2024-04-30 11:38:24] MIGRATED TCP STREAM TEST from <IP_ADDRESS> (<IP_ADDRESS>) port 42424 AF_INET to <IP_ADDRESS> () port 42424 AF_INET : demo
RT_LATENCY=-1.000
P99_LATENCY=2
THROUGHPUT=1225.28
LOCAL_TRANSPORT_RETRANS=0
REMOTE_RECV_CALLS=90990
LOCAL_SEND_CALLS=11966562
THROUGHPUT_UNITS=10^6bits/s


FileNotFoundError: [Errno 2] No such file or directory

Hi,
When attempting to download a course, I encountered the following error:

Traceback (most recent call last):
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\gfc20\Documents\Python Projects\Coursera\venv\Scripts\dl_coursera.exe_main.py", line 9, in
File "c:\users\gfc20\documents\python projects\coursera\venv\lib\site-packages\dl_coursera_run.py", line 180, in main
dl_tasks = gather_dl_tasks(args['outdir'], soc)
File "c:\users\gfc20\documents\python projects\coursera\venv\lib\site-packages\dl_coursera_run.py", line 89, in gather_dl_tasks
dl_tasks = DLTaskGatherer(soc=soc, outdir=outdir).gather()
File "c:\users\gfc20\documents\python projects\coursera\venv\lib\site-packages\dl_coursera\DLTaskGatherer.py", line 48, in gather
with open(filename, 'wb') as ofs:
FileNotFoundError: [Errno 2] No such file or directory: 'path\machine-learning-asset-management-alternative-data\02@textual-analysis-for-financial-applicati\02@lab-sessions\04<EMAIL_ADDRESS>
I checked the directory and indeed found it empty. Below is the command used:
dl_coursera --cookies cookies.txt --slug machine-learning-asset-management-alternative-data --how builtin --outdir path
Please help and thank you in advance!

The error should not happen. I did not reproduce it. See if the following link is helpful.
https://stackoverflow.com/questions/55889219/os-makedirs-os-mkdir-on-windows-no-error-but-no-visible-folder-created


Add performance tests for dexing transforms with AGP 3.3

Performance tests seem to pass with AGP 3.3: https://builds.gradle.org/viewLog.html?buildId=15918961&buildTypeId=Gradle_Check_PerformanceExperimentCoordinator&tab=report_project941_Performance
and https://builds.gradle.org/viewLog.html?buildId=15911328&buildTypeId=Gradle_Check_PerformanceTestCoordinator&tab=report_project944_Performance.


Dossier Support

As the title suggests. I doubt its possible to import so it'd be separate from the web version

Hey, could you elaborate what you mean by "I doubt it's possible to import"? It seems that the API exposes the right shard to get dossier info

Oh, I wasn't entirely sure if the website's dossier could be imported. If it's possible, I'd like to see it built in the app.


uwazi can't contact elasticsearch

$ node run.js ./database/reindex_elastic.js
Deleting index... uwazi_development
{ FetchError: request to http://elasticsearch:9200/uwazi_development failed, reason: getaddrinfo ENOTFOUND elasticsearch elasticsearch:9200
    at ClientRequest.<anonymous> (/home/node/uwazi/node_modules/node-fetch/index.js:133:11)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at Socket.socketErrorListener (_http_client.js:314:9)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at connectErrorNT (net.js:1034:8)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)
  name: 'FetchError',
  message: 'request to http://elasticsearch:9200/uwazi_development failed, reason: getaddrinfo ENOTFOUND elasticsearch elasticsearch:9200',
  type: 'system',
  errno: 'ENOTFOUND',
  code: 'ENOTFOUND' }
Creating index... uwazi_development
{ FetchError: request to http://elasticsearch:9200/uwazi_development failed, reason: getaddrinfo ENOTFOUND elasticsearch elasticsearch:9200
    at ClientRequest.<anonymous> (/home/node/uwazi/node_modules/node-fetch/index.js:133:11)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at Socket.socketErrorListener (_http_client.js:314:9)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at connectErrorNT (net.js:1034:8)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)
  name: 'FetchError',
  message: 'request to http://elasticsearch:9200/uwazi_development failed, reason: getaddrinfo ENOTFOUND elasticsearch elasticsearch:9200',
  type: 'system',
  errno: 'ENOTFOUND',
  code: 'ENOTFOUND' }
Indexing documents and entities... - 0 indexed

Next try I got this:
$ node run.js ./database/reindex_elastic.js
Deleting index... uwazi_development
{ FetchError: request to http://elasticsearch:9200/uwazi_development failed, reason: connect ECONNREFUSED <IP_ADDRESS>:9200
    at ClientRequest.<anonymous> (/home/node/uwazi/node_modules/node-fetch/index.js:133:11)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at Socket.socketErrorListener (_http_client.js:314:9)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at emitErrorNT (net.js:1290:8)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)
  name: 'FetchError',
  message: 'request to http://elasticsearch:9200/uwazi_development failed, reason: connect ECONNREFUSED <IP_ADDRESS>:9200',
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED' }
Creating index... uwazi_development
{ FetchError: request to http://elasticsearch:9200/uwazi_development failed, reason: connect ECONNREFUSED <IP_ADDRESS>:9200
    at ClientRequest.<anonymous> (/home/node/uwazi/node_modules/node-fetch/index.js:133:11)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at Socket.socketErrorListener (_http_client.js:314:9)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at emitErrorNT (net.js:1290:8)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)
  name: 'FetchError',
  message: 'request to http://elasticsearch:9200/uwazi_development failed, reason: connect ECONNREFUSED <IP_ADDRESS>:9200',
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED' }
Indexing documents and entities... - 0 indexed
Done, took 0.174 seconds

Ah, ok. Maybe this is more about how the docker setup was done than the uwazi-docker itself, but lets go a bit deeper on this.

One thing that could maybe help, is you do a full unninstall and try again. See https://github.com/fititnt/uwazi-docker/blob/master/uninstall.md.
Each time you try something new, do a command, docker ps, to see if both mongo and elasticsearch are online running, if they for some reason are not online, this issue could happen. If not, maybe is problem with docker networking, but lets start by the simplest issue.
(optimal) If you do not have other serious applications running on the machine you are using docker, if the worst case scenario, a full reinstall of docker could be more simple than go very deep debug the networking problems.

As reference, a example of docker ps output :
$ docker ps
CONTAINER ID        IMAGE                                                 COMMAND                  CREATED             STATUS              PORTS                              NAMES
9a9f7463ad0e        uwazi-docker_uwazi                                    "/docker-entrypoint.…"   25 hours ago        Up 25 hours         <IP_ADDRESS>:3000->3000/tcp             uwazi-docker_uwazi_1
f23f72e4688b        docker.elastic.co/elasticsearch/elasticsearch:5.5.3   "elasticsearch -Expa…"   26 hours ago        Up 26 hours         <IP_ADDRESS>:9200->9200/tcp, 9300/tcp   uwazi-docker_elasticsearch_1
c4db72421df0        mongo:3.4                                             "docker-entrypoint.s…"   26 hours ago        Up 26 hours         <IP_ADDRESS>:27017->27017/tcp           uwazi-docker_mongo_1

``'

Trying again, now halfway through a docker course on Udemy.
Now that I have some basic understanding of how docker works, it won't be complete fumbling in the dark...

So the issue is still there, and docker ps shows that the elasticsearch container is somehow stuck in a state of restarting. That's why the elasticsearch engine can't be contacted.
I have extracted a log with docker container logs and uploaded it to https://gist.github.com/vasyugan/8d4e8f3915c18387d79a9887359a3b1d if you want do have a look.
but first, here is the output of docker container ls
jr@erwin:~$ docker container ls
CONTAINER ID        IMAGE                                                 COMMAND                  CREATED             STATUS                           PORTS                      NAMES
d751cf1cf632        mongo:3.4                                             "docker-entrypoint.s…"   43 minutes ago      Up 43 minutes                    <IP_ADDRESS>:27017->27017/tcp   uwazi-docker_mongo_1
4cb2e71fc7e1        docker.elastic.co/elasticsearch/elasticsearch:5.5.3   "elasticsearch -Expa…"   43 minutes ago      Restarting (78) 11 seconds ago                              uwazi-docker_elasticsearch_1

actually, in the logs it looks like java is complaining a lot about too little memory
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
Not sure if any parameter can be added to the docker-compose.yaml to fix this, or if would be possible to have an elasticsearch container with oracle's java instead. I know it is proprietary, but it behaves much better, especially with reagards to memory.

well, it seems this is the issue https://github.com/docker-library/elasticsearch/issues/111
Only, what to do about it? In my experience oracle java behaves much better than openjdk when it comes to memory, but that's proprietary

For now, how I got around it was by
adding vm.max_map_count=262144 to /etc/sysctl.con
removing -Ebootstrap.memory_lock=true
from the elasticsearch command line. Not sure what side effects this has, but this at least made elasticsearch run

@vasyugan can you please give more info about where are you running the docker? I mean, in special how much memory have and operational system.
And yes, ElasticSearch is specially complicated. I'm not sure if when I tested (outside of my machine, that have 16GB ram) some of these configurations where made for allow run with the minimum memory by default. But even if no change is need, at least we could document this behavior.

Am 16.10.2018 um 05:12 schrieb Emerson Rocha Luiz:

@vasyugan https://github.com/vasyugan can you please give more info
about where are you running the docker? I mean, in special how much
memory have and operational system.
And yes, ElasticSearch is specially complicated. I'm not sure if when
I tested (outside of my machine, that have 16GB ram) some of these
configurations where made for allow run with the minimum memory by
default. But even if no change is need, at least we could document
this behavior.

I have tested it in two environments, a laptop running Debian buster
with 16 Gb RAM and an Ubuntu server with 40 Gbyte RAM. On both, the
non-dockerized version runs just fine. (Also, I have run the
non-dockerized version with Oracle Java in a Virtualbox VM with just 4
GB RAM.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/fititnt/uwazi-docker/issues/19#issuecomment-430085834,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADKOOP7bnF00qmGWToVvLLRI2whpKTf_ks5ulU6TgaJpZM4XafBX.

I'm testing remove the removing -Ebootstrap.memory_lock=true from docker-compose-yml. If it runs will push to master.
About the "vm.max_map_count=262144" part, maybe just document this in some place. As reference here the documentation on this topic  https://www.elastic.co/guide/en/elasticsearch/reference/5.5/docker.html#docker-cli-run-prod-mode.

Ah, @vasyugan, since you have way more RAM (to a point of really deploy everything in one or more cluster) depending of changes we just make one aditional file (instead of changing the default one) as specified here https://docs.docker.com/compose/production/.
The final file does not need to be perfect, but at least could be a better baseline for later. At least for MongoDB and ElasticSearch is possible to find recommended configurations to run as production with these DBs in cluster.


Memory leak in method FaceLocations

Hi,
When I run my application within a continuous (camera) stream, eventually the application always runs into an overflow exception. I can see that the memory usage keeps increasing and that this is caused by doing the following method call: faceRecognition.FaceLocations(img, 0, model: Model.Cnn).
Can you please check for memory leaks in this method and fix them? Right now the application is not usable because of this issue. Thanks.

I'm running into a similar issue when I attempt looping through a series of images. I eventually run out of memory. Any ideas? I've tried setting the the locations object to null and also disposing the encoding object on each iteration. Code below.
using (var image1 = FaceRecognition.LoadImageFile(strFilePath))
{
                var faceLocations = _FaceRecognition.FaceLocations(image1).ToArray();

                var faceEncodings = _FaceRecognition.FaceEncodings(image1).ToArray();

                int FaceCounter = 0;

                foreach (var fencoding in faceEncodings)

                {

                    var bf = new BinaryFormatter();

                    SqlCommand command = new SqlCommand(commandText, sqlconnS);

                    using (var ms1 = new MemoryStream())
                    {
                        bf.Serialize(ms1, fencoding);
                        ms1.Flush();

                      var  bfArray = ms1.ToArray();

                        command.Parameters.Add("@BIN", SqlDbType.Binary, bfArray.Length).Value = bfArray;

                        rowsAffected = command.ExecuteNonQuery();
                        Console.WriteLine("RowsAffected: {0}", rowsAffected);

                        fencoding.Dispose();

                        ms1.Dispose();
                        Array.Clear(bfArray, 0, bfArray.Length);
                        bfArray = new byte[0];
                        bfArray = null;

                    }

                    command = null;
                    FaceCounter++;
                }//ends for

                faceLocations = null;
                sqlconnS.Close();
                sqlconnS.Dispose();
                return rowsAffected;

                //
            }//ends using

@gloednieuw @atabora1
hi, I tried to check memory leak on the sample unit test project .
        [TestMethod]
        public void Test()
        {
            for (var count = 0; count < 1000; count++)
                using (var img = FaceRecognition.LoadImageFile(Path.Combine("TestImages", "obama-1080p.jpg")))
                {
                    var detectedFaces = this._FaceRecognition.FaceLocations(img, 0, Model.Cnn).ToArray();
                    foreach (var detectedFace in detectedFaces)
                    {
                        Console.WriteLine(detectedFace);
                    }
                }
        }

I run as debug in visual studio.
And I checked diagonosis tool to watch memory usage.
But I was not able to see GC work and rising memory. It works fine.
NOTE: I used FaceRecognitionDotNet and latest version of DlibDotNet.CUDA101 and DlibDotNet.
Could you give the minimum sample project as zip file?

Hi @takuya-takeuchi ,
I created a minimal sample project which should show the memory leak. The program opens up your webcam and indefinitely sends webcam frames to the face locator method. Be sure to run it on GPU with CUDA.
Program can be downloaded here:
https://we.tl/t-K9CUWCfBe2
Thanks for looking into it!

Hi  @takuya-takeuchi
Thanks for including the test examples. I ran them and confirmed that there wasn't a memory leak in the "_FaceRecognition.FaceLocations" call. So I retraced my code and pinpointed the issue. I had the "FaceRecognition.Create" declaration statement within a function. This function was called several times in a loop. This is what caused the memory issue. I resolved the issue by moving it out of the function with the for loop and only declaring it once. This is the code that I moved.
FaceRecognition faceRecognition = null;
var tempModelDirectory = "Models";
faceRecognition = FaceRecognition.Create(tempModelDirectory);

@takuya-takeuchi ,
Thanks once again for your help. much appreciated.

@atabora1
It's my pleasure.
Please don't hesitate to report issue and request here!!
@gloednieuw
Thank you for publish sample.
I started to check it. Please give me a time.

@gloednieuw
Hi, I checked sample.
I have some question.

You should dispose object which be got from FaceRecognition.LoadImage
I comment out FRDN code. Then, GC is frequently called and memory usage is rising.

		private void ExtractEncodings(byte[] image)
		{
			byte[] imageByte;
			int row, column, size;

			(imageByte, row, column, size) = GetImageFromByteArray(image);

            //using (Image recImage = FaceRecognition.LoadImage(imageByte, row, column, size))
            //{

                //List<Location> locations = faceRecognition.FaceLocations(recImage, 0, model: Model.Cnn).ToList();
            //}
        }

I fount you use OpenCVSharp. OpenCVSharp.Mat has memory leak issue.
** https://github.com/shimat/opencvsharp/issues/559
** https://github.com/shimat/opencvsharp/issues/540

@atabora1 said the issue is resolved.
So could you show me the evidence that FRDN component cause memory leak.

@takuya-takeuchi thanks for looking into it. You're right in that it was the Image object that was causing the leak. I enclosed the object in a using statement and now everything seems to work fine, so for me the issue is solved. Thanks again!


x/image/tiff: add 32bit float grayscale support

Please add support for 32bit float grayscale tiff images. This is a common format in scientific and medical imaging.

This would be really nice! As it is, doing image manipulations with scientific data is basically impossible with Go from what I can tell.

I have created a small package to address this shortcoming until the feature is added. It has met all my requirements so far and is written in pure Go with no external dependencies. https://pkg.go.dev/github.com/rngoodner/gtiff

AFAICT there's not a great candidate to represent a 32 bit greyscale image today, I think image will need to introduce a new Gray32 type too here in addition to the decoding work.
My use case - trying to parse some GeoTIFF data.  I'm very hesitant to copypasta the entire tiff decoding logic and make the few tweaks to support 32 bit images in my local codebase, but I think that's the best path given all the very clever edge cases the existing code handles.


Fix typescript textobjects for nvim-treesitter/nvim-treesitter#1000

@fsouza Some parameter queries will stop to work for typescript

@theHamsta thanks for taking care of this!

If you have time you could look for the equivalent typscript nodes for the javascript nodes that stopped working.

@theHamsta I can take a look later today. Will let you know!

We have the same problem in core. I out-commented all parameter queries until someone sorts out (actually kyazdani42 or steelsojka wanted to that)

@theHamsta I may have to look into this later after merging. Can send a PR at some point :D


Context Menu

What feature or improvement do you think would benefit Files?
The context menu in Files 3.6 does not show all the options to click on like Microsoft's File Explorer context menu. See pics. The top pic is using Files 3.6.0.  The bottom pic is with Microsoft's File Explorer.

Requirements
Using Windows 11 24H2, Microsoft File Manager, Files 3.6.0.
Files Version
<IP_ADDRESS>
Windows Version
10.0.26100.1457
Comments
No response

Aside from Cast to device & Bitdefender, can you clarify which options are missing?

Image rotation and set as and properties are present in that main options. If the image related ones aren't there can you say what image file type your right clicking on

Give access to is also not supported yet by Files and is tracked here https://github.com/files-community/Files/issues/13761 . You can check there or click subscribe in the right sidebar for updates.

The option I need the most is for Bitdefender or any other Virus or Malware checking software.

I believe it requires implementing #8251. We're working hard on this but it's challenging due to the lack of documentation. You can subscribe to #8251 to get updates on our progress. Thanks for your patience!


During cuda config detection, make find_cuda_config strip spaces around versions

PiperOrigin-RevId: 246040939

according to the presubmit, the issue is still there.
I will keep investigating.


Create .exe .dmg .deb and .rpm packages?

This seems to not work properly at the moment, any third-party input is welcome on how to achieve this.


Example warehouse

An example warehouse with pseudonymous data for illustrative purposes, with lots and lots of text explaining what is there and why.

IP related objects should ether manage both IPv4 and IPv6 addresses, or be renamed to indicate their IPv4-onlyness.

Chassis objects are not very DRY, with basically the same information already present in the name being repeated in identity.yaml. I would suggest something along the lines of:
chassis/<vendor>:<dash-separated-model>:<serial>
- chassis.vendor:
  - synthesize_regexp:
      sources: &pallet_chassis
        chassis:
          key: "pallet.chassis"
          regexp: "^(?<vendor>[^:]*):((?<line>[^:-]*)-)?((?<series>[^:-]*)-)?(?<model>[^:]*):(?<serial>[^:]*)$"
      produce: "#[vendor]"
- chassis.model:
  - synthesize_regexp:
      sources: *pallet_chassis
      produce:
        - "#[line] #[series] #[model]"
        - "#[line] #[model]"
        - "#[model]"
- chassis.serial:
  - synthesize_regexp:
      sources: *pallet_chassis
      produce: "#[serial]"

The DRY source regexp YAML reference magic requires #9 to work.

Both valid points in the grand scheme of things, but out of scope for this pull request, which is about documenting the current state. Changes to the current state are better addressed in separate pull requests which change the code and the example warehouse simultaneously.

Fair enough, #12 #13.


Cannot test map with 'Filter' when third argument to compare is a string

Describe the Bug with repro steps
User tried to use the 'Filter' function with the third argument as "=mobile2" and got the error message
'500 - ActionFailed: An error occurred while transforming the given input with the provided map. Details: 'Axis step child::element(Q{}mobile) cannot be used here: the context item is absent. Found while atomizing the second operand of '=''.' when testing the map. The LML generates correctly.
Screenshots or Videos
No response
Version
v5.6.0
Additional context
No response

I believe that this issue is because there is an XPath syntax error. My first idea is that the 'mobile2' must be wrapped in single quotes. I tried doing this, but one of the single quotes in the LML is excluded. I added a second one and now see the proper quoting of the value in LML. After testing I still get an error. I think it is possible that we are not escaping the single quote properly, and the backend cannot read the string as expected.

Created a sample map with the LML:
$version: 1 $input: XML $output: XML $sourceSchema: Source.xsd $targetSchema: Target.xsd $sourceNamespaces:   ns0: http://tempuri.org/source.xsd   xs: http://www.w3.org/2001/XMLSchema $targetNamespaces:   ns0: http://tempuri.org/Target.xsd   td: http://tempuri.org/TypeDefinition.xsd   xs: http://www.w3.org/2001/XMLSchema ns0:Root:   CumulativeExpression:     PopulationSummary:       $for(filter(/ns0:Root/CumulativeExpression/Population/State, Name, "='Washington'")):         $for(/ns0:Root/CumulativeExpression/Population/State):           State:             Name: Name
but this becomes
          <xsl:for-each select="filter(/ns0_0:Root/CumulativeExpression/Population/State, function($item) { $item/Name =''Washington })">
in the xslt- notice misplaced quotations

I experimented with the call to generate XSLT by using the above LML content, and trying to escape the single quotes, and both had the same output of XSLT with the quotes at the front of the string. When I manually edited the XSLT to be { $item/Name ='Washington'} the 'test' call works. Looks like I'll need help from the backend team to see how to fix this one.

Filter Examples.zip


Better version compatibility with JWT 3.4.6

Hello,
The project suggests it will work with lower versions of PHP, however, cannot because of JWT 4.1.5 requirement.  I believe JWT 3.4.6 is not only an API compatibility layer with 4.x but also has requisite security fixes applied that were applied to 4.1.5.  Would it be possible to add 3.4.6 explicitly to the versions of JWT allowed?

I should add that despite the compatibility changes, this would require a reversion in the IdTokenResponse class to sniff out the available builder.  This was previously done here:  https://github.com/steverhoades/oauth2-openid-connect-server/commit/6c666441492878de3706c8dc236843f3ae64bf21
I've got a fork of this currently under a totally different package name which has re-employed some of this:  https://github.com/steverhoades/oauth2-openid-connect-server/compare/master...imarc:oauth2-openid-connect-server:master

@steverhoades as support for old PHP versions has been officially dropped in 3.0, I think this can be closed.


Graceful error handling

When the bot throws an error, it should not crash.
It should send the owner a message with the stack trace, what forced the error (if available), and stay running.
The most common error is
events.js:163
      throw er; // Unhandled 'error' event
      ^

Error: getaddrinfo ENOTFOUND gateway.discord.gg gateway.discord.gg:443
    at errnoException (dns.js:28:10)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:73:26)

per another developer..
Ah, yeah you can also put in a process.on('uncaughtException',function(){}) to catch all exceptions. Bad practice, but it could help
Something like that is sort of what I want, since I want uncaught exceptions to be caught and not be so catastrophic, but it is probably better to just try/catch around the Juan bot instance specifically and just have it restart if it crashes, to some limit (5x?)


AngularJS creating additional scopes on opening modal dialog multiple times

I've a simple problem. I'm using a ng-include directive inside a modal.
It's because a want to dynamically change the src for the include (the example however is with fixed src attribute).
<div class="modal" modal="theModal" close="closeModal()">
<div ng-include src="'form1.html'">
</div>
Every time I open the modal, a new scope is created (I can see it with batarang).
After opening the modal a dozen times, I've many scopes and the application is getting slow.
Is this a bug?
More Information is here:
http://stackoverflow.com/questions/16528634/angularjs-creating-additional-scopes-on-opening-modal-dialog-multiple-times
http://plnkr.co/Mbo9OaKA8MFJptwmI3PN

Hi, I can not able to view solution for this. @pkozlowski-opensource  could you please update the correct answer for topic?


hover run gives error

Example name:
Examples repository version:
Flutter version

Flutter 1.1.2 • channel dev • https://github.com/flutter/flutter.git
Framework • revision xxxxxxxxxx (x weeks ago) • xxxxxxxxxxxxxxxxxxxxxxxx
Engine • revision xxxxxxxxxx
Tools • Dart 2.2.1 (build xxxxxxxxxx)

Golang errors (Optional)

Golang's compiling errors

Steps to Reproduce

xxx

xxx

xxx

It looks like some install depdendencies steps for windows are still missing.. I'm not using windows daily, but will walk through the instructions on a fresh windows VM to see what's missing.
For now, looking at the error, it seems that gcc needs to be installed.

I'm reading installing mingw should fix the issue. https://mingw-w64.org/doku.php

This Issue had resolved may be due to  slow internet connection.
How can i navigate into text field through tab or how can i handle short cut keys

@maheshbhattaraai tabnavigation is not yet supported. Shortcut keys are implemented by default.


Add initial lock support (only current state work)

Need user to test.

Hi I was able to create a working lock accessory that utilizes the smart lock open service APIs. Can you include this in your code? I have tested  this using a jtmspro device which is a retrofit smart door lock that uses bluetooth. Here is my fork of your code. https://github.com/pfgimutao/homebridge-tuya-platform-lock

@pfgimutao thanks! I will merge it soon.

@pfgimutao released in 1.7.0-beta.29. if it's not working please let me know.

@0x5e thanks for the merge. I've tested it and it is working for me. By any chance, do you have any support for wnykq?

@0x5e thanks for the merge. I've tested it and it is working for me. By any chance, do you have any support for wnykq?

wnkyq is supported now, but only for IR device, RF device not supported by cloud api.

@0x5e
I've tested here and its workin now! Thank you very much!

@0x5e
I've tested here and its workin now!
I would like to share that I have been trying to use this smart lock  via my Zemismart HomeKit Hub but it never have worked... It only shows the smart lock status open or close on HomeKit. Now, I can control it!
Thank you very much!

Hello, I have the zigbee version with Zemismart Hub and another with Wifi chip (Product Category
ms) This plugin work with wifi version? I added to homebridge, this is the result:
[19/03/2023, 13:31:27] [@0x5e/homebridge-tuya-platform] [Acceso] Product Category: ms
[19/03/2023, 13:31:27] [@0x5e/homebridge-tuya-platform] [Acceso] Missing one of the required schema: [ 'lock_motor_state' ]
[19/03/2023, 13:31:27] [@0x5e/homebridge-tuya-platform] [Acceso] Please switch device control mode to "DP Insctrution", and set deviceOverrides manually.
[19/03/2023, 13:31:27] [@0x5e/homebridge-tuya-platform] [Acceso] Detail information: https://github.com/0x5e/homebridge-tuya-platform#faq
[19/03/2023, 13:31:27] [@0x5e/homebridge-tuya-platform] [Acceso] Existing schema: [
{
code: 'alarm_lock',
mode: 'ro',
type: 'Enum',
property: {
range: [
'wrong_finger',  'wrong_password',
'wrong_card',    'wrong_face',
'tongue_bad',    'too_hot',
'unclosed_time', 'tongue_not_out',
'pry',           'key_in',
'low_battery',   'power_off',
'shock',         [length]: 13
]
}
},
{
code: 'battery_state',
mode: 'ro',
type: 'Enum',
property: { range: [ 'high', 'medium', 'low', 'poweroff', [length]: 4 ] }
},
{ code: 'doorbell', mode: 'ro', type: 'Boolean', property: {} },
{ code: 'hijack', mode: 'ro', type: 'Boolean', property: {} },
{
code: 'reply_unlock_request',
mode: 'wo',
type: 'Boolean',
property: {}
},
{
code: 'unlock_app',
mode: 'ro',
type: 'Integer',
property: { min: 0, max: 999, scale: 0, step: 1 }
},
{
code: 'unlock_card',
mode: 'ro',
type: 'Integer',
property: { min: 0, max: 999, scale: 0, step: 1 }
},
{
code: 'unlock_dynamic',
mode: 'ro',
type: 'Integer',
property: { min: 0, max: 999, scale: 0, step: 1 }
},
{
code: 'unlock_fingerprint',
mode: 'ro',
type: 'Integer',
property: { min: 0, max: 999, scale: 0, step: 1 }
},
{
code: 'unlock_password',
mode: 'ro',
type: 'Integer',
property: { min: 0, max: 999, scale: 0, step: 1 }
},
{
code: 'unlock_request',
mode: 'ro',
type: 'Integer',
property: { min: 0, max: 90, scale: 0, step: 1 }
},
{
code: 'unlock_temporary',
mode: 'ro',
type: 'Integer',
property: { min: 0, max: 999, scale: 0, step: 1 }
},
[length]: 12

@gonzaechev please refer to readme, change device control mode and test if it solves your problem?

@gonzaechev please refer to readme, change device control mode and test if it solves your problem?

hey, i already change to DP Mode, and overrides the device via plugin but it didn't solve the problem, can you help me with this?


Keyvault Integration

We are integrating key vault in RM. Hence, in RM deployments we would not have auth required and tenant id as environment variables. Hence, a script has been added to call keyvault and set the necessary variables before in the EntryPoint of Docker container. The script is benign, as in, if Keyvault name, AppId, and AppSecret are available through environment variables, only then the script would execute.
Type of change?

[ ] Bug fix
[ ] New feature
[ ] Enhancement
[ ] Breaking change (breaks backward compatibility)

Description, Context, Motivation
...
Checklist:

[ ] All tests passed
[ ] The code follows the code style and conventions of this project
[ ] The change requires a change to the documentation
[ ] I have updated the documentation accordingly

This change is

@isaac-dasan Can you also take a look?


Verifying HashToCurve results

How can I verify that my HashToCurve results are correct as per these tests here: https://github.com/paulmillr/noble-curves/blob/main/test/hash-to-curve/edwards25519_XMD%3ASHA-512_ELL2_RO_.json ?
This is the code I've implemented:
import { hashToCurve, encodeToCurve } from '@noble/curves/ed25519';
import { numberToBytesLE, bytesToHex } from '@noble/curves/abstract/utils';

let str = "";
let encoder = new TextEncoder();
let arr = encoder.encode(str);

var x = numberToBytesLE(hashToCurve(arr).toAffine().y);
var y = bytesToHex(x);
console.log(y); //0301ab58b84523561c1e1db48a76bcfe74c92f9c32856f7dbb683ffbfd513a5f

I've tried finding the value of y in the test pages linked above but couldn't seem to find it. I'm sure that I'm comparing the wrong values, so any help would be great.

https://github.com/paulmillr/noble-curves/blob/79dd7d342636f421d36acbf3dbe2014ad7ba7ece/test/hash-to-curve.test.js#L44
https://github.com/paulmillr/noble-curves/blob/79dd7d342636f421d36acbf3dbe2014ad7ba7ece/test/hash-to-curve.test.js#LL143C20-L143C30
https://github.com/paulmillr/noble-curves/blob/79dd7d342636f421d36acbf3dbe2014ad7ba7ece/test/hash-to-curve.test.js#L106


[SDK] Integrate shannon-sdk w/ Grove's portal gateway

Objective
Integrate shannon-sdk into portal-middleware
Origin Document

The first independent iteration of the shannon-sdk is available here: https://github.com/pokt-network/shannon-sdk/pull/1
It's first usage in poktroll is found here: https://github.com/pokt-network/poktroll/pull/554
The first ieration of the documentation can be found here: https://dev.poktroll.com/develop/packages/sdk
The first integration of shannon into portal-middleware can be found here: https://github.com/pokt-foundation/portal-middleware/pull/603

Goals

Collect feedback on the new design of the Shannon SDK
Put the foundation in place for future iterations towards Shannon

Deliverables

[ ] Update https://github.com/pokt-foundation/portal-middleware/pull/603 using shannon-sdk
[ ] Test an E2E Relay

General deliverables

[ ] Comments: Add/update TODOs and comments alongside the source code so it is easier to follow.
[ ] Testing: Add new tests (unit and/or E2E) to the test suite.
[ ] Makefile: Add new targets to the Makefile to make the new functionality easier to use.
[ ] Documentation: Update architectural or development READMEs; use mermaid diagrams where appropriate.

Creator: @Olshansk
Co-Owners: @red-0ne @adshmh

Marking this as done because everything uses the shannon-sdk now.


Publish

Docs Build status updates of commit 4bb8baf:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/reference/objectmodel/preview-requirement-set/office.context.mailbox.item.md
:white_check_mark:Succeeded

docs/reference/objectmodel/requirement-set-1.1/office.context.mailbox.item.md
:white_check_mark:Succeeded

docs/reference/objectmodel/requirement-set-1.2/office.context.mailbox.item.md
:white_check_mark:Succeeded

docs/reference/objectmodel/requirement-set-1.3/office.context.mailbox.item.md
:white_check_mark:Succeeded

docs/reference/objectmodel/requirement-set-1.4/office.context.mailbox.item.md
:white_check_mark:Succeeded

docs/reference/objectmodel/requirement-set-1.5/office.context.mailbox.item.md
:white_check_mark:Succeeded

docs/reference/objectmodel/requirement-set-1.6/office.context.mailbox.item.md
:white_check_mark:Succeeded

docs/reference/objectmodel/requirement-set-1.7/office.context.mailbox.item.md
:white_check_mark:Succeeded

docs/reference/objectmodel/requirement-set-1.8/office.context.mailbox.item.md
:white_check_mark:Succeeded

docs/tutorials/share-data-and-events-between-custom-functions-and-the-task-pane-tutorial.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Use appropriate log level for errors

In the HttpForwarder, the log level for errors is Information. Can this be changed to Error? This may be an issue in other log messages in other files, but this is the main one I noticed.
https://github.com/microsoft/reverse-proxy/blob/5210218470a00ea5359dfefb71d193aacd60b646/src/ReverseProxy/Forwarder/HttpForwarder.cs#L757
Background:
I am using Serilog for logging and setting the MinimumLevel override for "Microsoft.AspNetCore" and "Yarp.ReverseProxy.Forwarder" to Warning. This accompanied with the "UseSerilogRequestLogging" option allows the service to omit one log line per request. In this setup, any errors are not being logged because they are set as Information, not Error.
I would gladly make the change myself and create a Pull Request, if that would be helpful.

The main concern here is that we don't want to log anything at the Error level that is caused by an external entity that you can't do anything about, that floods logs unnecessarily. Errors should be actionable within the current app. Timeouts, disconnects, etc. are all expected within normal proxy operations.
To look at the proxy results and decide which ones you want to react to check here:
https://github.com/microsoft/reverse-proxy/blob/029e731a95c08a77af37700b1ab6ecd99e694d83/docs/docfx/articles/middleware.md#error-handling
https://github.com/microsoft/reverse-proxy/blob/79a7b806688311fd2cca2ca67dc7cc418c7925ab/docs/docfx/articles/direct-forwarding.md#error-handling

Triage:

Error level should be only for YARP problems that are actionable - see list in code.
Warning level should be for any unsuccessful proxying, things YARP is able to recover from - e.g. destination going out, client-side problems with network

Note: Warn level is turned on by default by templates

Information/Verbose level should be for all successful log entries.

It is a one-line change in https://github.com/microsoft/reverse-proxy/blob/03a4d6a91b9b65f90e8c616bebc77e1338bec81a/src/ReverseProxy/Forwarder/HttpForwarder.cs#L992-L993
@kheardCB are you interested in submitting a PR for it?

@karelz Sure, I can submit a PR.


Magento1 vsbridge client.

@afirlejczyk coul You please create an issue for extracting Magento1Client into separate project / lib?

@afirlejczyk could You also add some docs on how to configure magento1-vsbridge to work with this proxy? I mean: in the magento1-vsbridge read me file


Add mapping for Dead Dead Dededede Destruction

There's too many additions & deletions in your pull request.  I just went ahead and added it:
https://github.com/varoOP/shinkro-mapping/pull/58


Invalid code gives bad request error

Invalid Code should not give an invalid_grant in field error but show an invalid_code
Current Response:-
{
    "error": "invalid_grant",
    "error_description": "Bad Request"
}

Ideal Response:-
{
    "error": "invalid code",
    "error_description": "Bad Request"
}

Steps to reproduce the error:

Generate code using auth URI
Use code once on the post request
use code again on the post request

@r-ush The error code isn't being set by this library. It's probably coming from the backend you are talking to. What auth URI are you using? and what post request are you making?

I am sending the request to https://oauth2.googleapis.com/token with the required body. My apologies if it is not because of this library


Update to jupyter-lsp 0.9.3

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[x] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender

Looking good, but yea, would bump the extension spec. We don't do much testing against different versions of in-house stuff.
Maybe not on this PR (but now's as good a time as any), we could also start expanding our stable of "other things known to work with this version":

jupyter-lsp-latex with tectonic, texlab, checktex
jupyter-lsp-r with r-language-server (anything else key?)

And even -python would now be supported by a number of addition plugins, e.g. pyls-mypy, -isort, -black, -memestra.... maybe -python-all? Unfortunately, a lot of them need client config that isn't easy to package (as it doesn't even persist between runs of the language server).
And one of these days, i'll get a darned robot kernel/lsp set up upstream with all the work folk have been doing!

would bump the extension spec

I'll do.
Regarding other variant, it will be safer to do it in another PR.

Note: I should have used a fork because a branch on this repo got publish directly... (conda-forge is already displaying 0.9.3 - sorry for that).

Yerp, that's why it's the first checklist item :blush: .
I highly recommend using an https URL for the conda-forge repo, locally and naming it somethign like conda-forge or upstream, and renaming the personal fork to origin so that there is at least time for a pause when it asks for a password (or better still, doesn't work at all because 2FA).
Since it's already shipped, i guess I'll just merge, and we can try again if we want to change anything.


Initial implementation of Throttle middleware

Feedback appreciated!
There is definitely room for more features, in a subsequent PR I'd like to make taking tokens a function of the Request so that throttling can be based on request sizes or IPs rather than just simply the number of requests.  I'd also like to enable customisation of the response to throttled requests.  If these are considered essential then I can add them to this PR however my preference would be to get this merged before iterating further.

Rebased on latest master, swapped to @rossabaker's solution for refilling bucket, added response customisation and retry-after set to when the bucket ought to be full.
I'm not totally convinced with the retry-after value, you could argue it should be when the next token will be available rather than when the bucket should be full, though in the real world if clients pay attention to that things will likely blow up, seems to me neither the next-token-time nor the bucket-full-time really make sense and it would be best to leave it up to the user as I think any value is either arbitrary or app-specific.

Per discussion in the Gitter channel, have changed behavior to not use the retry-after header by default, however time-to-next-token value is made available to the throttleRepose function should someone wish to use it, time-to-bucket-full should be derivable from this + refill rate.


no appearance at all

Hi,
can somebody give me a hint how to read the appearance from a device?
It looks like the advertised device should report it in the scan results, but so far, I had no device at all with a non-zero appearance.
Thx

You can call advertisedDevice-> haveAppearance(); to check if the device is advertising one and advertisedDevice-> getAppearance(); to get the value of it.
If it isn't being advertised then the value will be 0.

Yes, thanks, this is exactly what I did -- but none of ~50 responding devices around me report their appearance.
On the other hand, only 3 of these 50 use public addresses, I assume that there are mainly mobiles with rolling addresses -- but none reveals its appearance :-(

... or other way around: what are your experiences with the appearance?

It's rare to see a device advertising an appearance in my experience, usually only on HID devices.

That's strange - is there another way of telling device type then? Because my impression is scans on my phone etc normally do a good job of categorising devices.

That's strange - is there another way of telling device type then?

If the device doesn't advertise an appearance then you would need to investigate the advertised data to see what it's advertising, could have a name/service UUID/service data etc.. For instance, if it is advertising service UUID 0x181A, it's an environmental sensor. You can see all the assigned UUID's here.

Because my impression is scans on my phone etc normally do a good job of categorising devices.

The built in scanner on your phone only shows bluetooth classic devices, which almost always have appearances. BLE devices rarely do, usually only HID devices.

Thank you that's very helpful.

Closing this as a non-issue. Please reopen as a discussion if necessary.


General Info Page

Dob field while on editing mode, doesn't display the calendar - need to fix it
Weight in Kg -> General page it comes with no measure unity - need to fix it

Check color field - when on editing mode, the color entered disappears - Fixed

When editing gender, color, and weight the data doesn't change (on HTML or database)

When editing gender, color, and weight the data doesn't change (on HTML or database)
Yes, it changes.. changes on the app and on database. I just reconfirmed that changing with database open and it works.