VSCode 1.88.0 changed paths => nixos-vscode-server no longer functional

I just upgraded to VSCode 1.88.0 and it has broken nixos-vscode-server by moving the installation path of binaries. Logs reveal that there is a failure to execute /home/skainswo/.vscode-server/cli/servers/Stable-5c3e652f63e798a5ac2f31ffd0d863669328dc4c.staging/server/bin/code-server, which contains:
#!/usr/bin/env sh
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#

case "$1" in
	--inspect*) INSPECT="$1"; shift;;
esac

ROOT="$(dirname "$(dirname "$(readlink -f "$0")")")"

"$ROOT/node" ${INSPECT:-} "$ROOT/out/server-main.js" "$@"

"$ROOT/node" resolves to /home/skainswo/.vscode-server/cli/servers/Stable-5c3e652f63e798a5ac2f31ffd0d863669328dc4c.staging/server/node which differs from previous node installation locations AFAICT. This file is not patched:
❯ ldd /home/skainswo/.vscode-server/cli/servers/Stable-5c3e652f63e798a5ac2f31ffd0d863669328dc4c.staging/server/node
	linux-vdso.so.1 (0x0000ffffba48b000)
	libdl.so.2 => /nix/store/sk71q8mwavsax8piwjx4jjzy45vkrixr-glibc-2.38-44/lib/libdl.so.2 (0x0000ffffba420000)
	libstdc++.so.6 => not found
	libm.so.6 => /nix/store/sk71q8mwavsax8piwjx4jjzy45vkrixr-glibc-2.38-44/lib/libm.so.6 (0x0000ffffba370000)
	libgcc_s.so.1 => /nix/store/9cha78hyh74ys0q8cszrzggm49c69ixx-xgcc-12.3.0-libgcc/lib/libgcc_s.so.1 (0x0000ffffba330000)
	libpthread.so.0 => /nix/store/sk71q8mwavsax8piwjx4jjzy45vkrixr-glibc-2.38-44/lib/libpthread.so.0 (0x0000ffffba300000)
	libc.so.6 => /nix/store/sk71q8mwavsax8piwjx4jjzy45vkrixr-glibc-2.38-44/lib/libc.so.6 (0x0000ffffba150000)
	/lib/ld-linux-aarch64.so.1 => /nix/store/sk71q8mwavsax8piwjx4jjzy45vkrixr-glibc-2.38-44/lib/ld-linux-aarch64.so.1 (0x0000ffffba44e000)

IIUC adjustments to the installPath and bin_dir logic in https://github.com/nix-community/nixos-vscode-server/blob/master/pkgs/auto-fix-vscode-server.nix will be required.

Solution proposal: Scan for all binaries in the ~/.vscode-server directory tree, and patch each of them if they have not been patched already.

The script
#! /usr/bin/env nix-shell
#! nix-shell -i sh -p file patchelf

libpath=$(nix eval --raw --impure --expr 'with import <nixpkgs> {}; lib.makeLibraryPath [ stdenv.cc.libc stdenv.cc.cc curl icu libunwind libuuid lttng-ust openssl zlib krb5 ]')
files_to_patch=$(find ~/.vscode-server -type f -name '*node' -exec file {} + | grep 'ELF' | grep 'executable' | grep 'interpreter /lib/' | awk -F: '{print $1}')

interpreter="$(cat $(nix eval --raw --impure --expr '(import <nixpkgs> {}).stdenv.cc.outPath')/nix-support/dynamic-linker)"

for elf in $files_to_patch; do
  echo "patching $elf"
  patchelf --set-interpreter "$interpreter" --add-rpath "$libpath" "$elf"
done

succeeds in making the executables runnable, but it's not enough to satisfy VSCode 1.88.0 which is apparently not fooled by my patchelf shenanigans.

Update: running
cp -r /home/skainswo/.vscode-server/cli/servers/Stable-5c3e652f63e798a5ac2f31ffd0d863669328dc4c.staging/ /home/skainswo/.vscode-server/cli/servers/Stable-5c3e652f63e798a5ac2f31ffd0d863669328dc4c

along with the above script works.
Altogether now, my script is
#! /usr/bin/env nix-shell
#! nix-shell -i sh -p file patchelf

# Move the <foo>.staging directories to <foo>. Necessary since VSCode 1.88.0.
find ~/.vscode-server/cli/servers -type d -name '*.staging' -exec bash -c 'for dir; do mv "$dir" "${dir%.staging}"; done' bash {} +

libpath=$(nix eval --raw --impure --expr 'with import <nixpkgs> {}; lib.makeLibraryPath [ stdenv.cc.libc stdenv.cc.cc curl icu libunwind libuuid lttng-ust openssl zlib krb5 ]')
files_to_patch=$(find ~/.vscode-server -type f -name '*node' -exec file {} + | grep 'ELF' | grep 'executable' | grep 'interpreter /lib/' | awk -F: '{print $1}')
interpreter="$(cat $(nix eval --raw --impure --expr '(import <nixpkgs> {}).stdenv.cc.outPath')/nix-support/dynamic-linker)"

for elf in "$files_to_patch"; do
  echo "patching $elf"
  patchelf --set-interpreter "$interpreter" --add-rpath "$libpath" "$elf"
done

@samuela, thanks for looking into this.   I think I'm running into the same problem.  I just booted my little nixos machine last night for the first time in a few months and cannot get Remote Explorer to connect.  It seems to be stuck looping the "Downloading VS Code Server."
Unfortunately the above script doesn't seem to work.  I get a patchelf: getting info about '': No such file or directory error running from the home directory.  Can I run it as a simple shell script or does it need to be wired into something?  I'm a nixos novice so I might just be missing some context.  Thanks.

It seems to be stuck looping the "Downloading VS Code Server."

Yes, this is exactly the behavior I was experiencing as well.

Can I run it as a simple shell script or does it need to be wired into something?

It should run fine just as a shell script... What version of VSCode are you using?

thanks for the script @samuela. I changed the files_to_patch= line to files_to_patch=$(find ~/.vscode-server -type f -name '*node' -exec file {} + | grep 'ELF' | grep 'executable' | awk -F: '/interpreter \/lib64?\// {print $1}’) becuase /lib/ wasn’t giving me any results. @lucianthorr that might be your problem&fix too.

@n-hass That totally did it.  Thanks!
One slight typo in the above.  The last single quote got "auto-incorrected" to a ’.  It needs to be a '

With https://github.com/nix-community/nixos-vscode-server/pull/78 new binary paths are handled correctly. I've switched few nixos 23.11 machines to it, so far no problems.

I've upgraded my machine to use a version that I believe includes #78, but I'm still unable to connect on newer versions of VSCode. Downgrading VSCode to 1.86.2 works and I can connect as before.
Is there more that needs to be done?
My configuration is:
  services.vscode-server = {
    enable = true;
    installPath = "$HOME/.vscode-server";
   };

and in my lockfile:
 "vscode-server": {
      "inputs": {
        "flake-utils": "flake-utils_4",
        "nixpkgs": "nixpkgs_3"
      },
      "locked": {
        "lastModified":<PHONE_NUMBER>,
        "narHash": "sha256-8PDNi/dgoI2kyM7uSiU4eoLBqUKoA+3TXuz+VWmuCOc=",
        "owner": "nix-community",
        "repo": "nixos-vscode-server",
        "rev": "fc900c16efc6a5ed972fb6be87df018bcf3035bc",
        "type": "github"
      },
      "original": {
        "owner": "nix-community",
        "repo": "nixos-vscode-server",
        "type": "github"
      }
    }
    ```

I am also facing similar issues. When connecting with VS Code Version: 1.93.1 I get the error
Failed to connect to the remote extension host server (Error: WrappedError(WrappedError { message: "error checking server integrity", original: "failed to run command \"/home/ashkan/.vscode-server/cli/servers/Stable-38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40.staging/server/bin/code-server --version\" (code 127): Could not start dynamically linked executable: /home/ashkan/.vscode-server/cli/servers/Stable-38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40.staging/server/node\nNixOS cannot run dynamically linked executables intended for generic\nlinux environments out of the box. For more information, see:\nhttps://nix.dev/permalink/stub-ld\n" }))

Any advise on how to fix?

I've upgraded my machine to use a version that I believe includes #78, but I'm still unable to connect on newer versions of VSCode.

Can you try removing your .vscode-server/cli/servers/ folder and attempting to connect again? I fear that if the folder is left in a dirty state by incompatible versions it may not recover.

Sorry, i hadn't seen this! Deleting that folder didn't work, but deleting .vscode-server itself worked!


Introduce markdown on PyPi

Overview
Now PyPi support Markdown description (README) so you don't need to continue to use pandoc during deployments.
Changes

Define the content type to use on PyPi text/markdown
Upgrade setuptools before the package build
Update the documentation on README.md (remove the section about pandoc)

More informations
You can read Dustin Ingram (official PyPi maintainer) post about markdow introduction on PyPi:
https://dustingram.com/articles/2018/03/16/markdown-descriptions-on-pypi
Have fun!

Hi @owais! Can you review this pull request?


Photoshop: missed sync published version of workfile with workfile

Brief description
If Collect Version is enabled, everything published (image, review, even workfile) from workfile should carry its version number.
Testing notes:

check that you have project_settings/photoshop/publish/CollectVersion enabled
publish workfile from PS, check all published images, reviews and workfile version

Looks good


Added translations to some untranslated items (Simplified Chinese)

Hello, @tianz! Thank you for contributing.


"Powerful Build" Attribute not taken into account

Foundry VTT Version: 0.8.9
Operating System: MacOS 11.6
How Are You Using Foundry: Native Application, Chrome
Which Game System: dnd5e v1.4.3
Modules Enabled?: yes

Issue Description
I am using your mod, but when enabling the Special Trait --> Racial Trait --> Powerful Build, the character's carrying capacity is not changing -- it remains the same whether that box is checked or not. I have done enabling/disabling the mod, restarting FVTT, etc.

Make sure to check the box of powerbuil on your character then
if you know how to check the values of your character with the code make sure that the data "data.flags.dnd5e.powerfulBuild" is "true" which is what is checked.
if you don't know how to do the check do a simple json export of the character (github does not accept json files rename it with ".txt" extension and attach it to your answer) so I do a check for you.

Hello,
I have done those things…
"dnd5e": {
  "savageAttacks": false,
  "halflingLucky": true,
  "weaponCriticalThreshold": 20,
  "initiativeHalfProf": false,
  "powerfulBuild": true
},

—Douglas

On Sep 29, 2021, at 2:58 AM, 4535992 @.***> wrote:
Make sure to check the box of powerbuil on your character then
if you know how to check the values of your character with the code make sure that the data "data.flags.dnd5e.powerfulBuild" is "true" which is what is checked.
if you don't know how to do the check do a simple json export of the character (github does not accept json files rename it with ".txt" extension and attach it to your answer) so I do a check for you.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/VanirDev/VariantEncumbrance/issues/45#issuecomment-929932808, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV2VC4D6NY5UZXQBU5M2YOLUELBIXANCNFSM5E6RGX7A.
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

I figured it out! In the .json file, removed the flag for that “Burgertime” mod (which I no longer use), re-imported it, and now it looks correct…
Thank you for making this mod, i love it!
--Douglas

On Sep 29, 2021, at 9:02 AM, Douglas Ward @.***> wrote:
Hello,
I have done those things…
"dnd5e": {
  "savageAttacks": false,
  "halflingLucky": true,
  "weaponCriticalThreshold": 20,
  "initiativeHalfProf": false,
  "powerfulBuild": true
},

<Screen Shot 2021-09-29 at 8.58.36 AM.png>
<Screen Shot 2021-09-29 at 8.58.49 AM.png>
<fvtt-Actor-macsen-axeman.json>
—Douglas

On Sep 29, 2021, at 2:58 AM, 4535992 @.*** @.***>> wrote:
Make sure to check the box of powerbuil on your character then
if you know how to check the values of your character with the code make sure that the data "data.flags.dnd5e.powerfulBuild" is "true" which is what is checked.
if you don't know how to do the check do a simple json export of the character (github does not accept json files rename it with ".txt" extension and attach it to your answer) so I do a check for you.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/VanirDev/VariantEncumbrance/issues/45#issuecomment-929932808, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV2VC4D6NY5UZXQBU5M2YOLUELBIXANCNFSM5E6RGX7A.
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Glad you solved it, I'll check if there is any incompatibility with the burger time module.
I'll let you know if i solved the issue.


linking to root requires // instead of just /

basic scenario where I need to link to anchor tags in the homepage and, I had to use double forward slashes instead of one or else it would not work.

I have not come across this before. Do you have a failing example on codesandbox I can look at? Thanks.


Add access checks to actions

Fixes
https://issues.redhat.com/browse/HAC-3343

Description
Add access checks to buttons & actions and disable them if user does not have sufficient access.

Type of change

[x] Feature
[ ] Bugfix
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

Screen shots / Gifs for design review
(No design changes)

Browser conformance:

[ ] Chrome
[x] Firefox
[ ] Safari
[ ] Edge

@beaumorley please comment as to when actions should be hidden vs disabled because a user cannot perform the action due to permissions. Eg. a user visiting another workspace that they do not own.

We have these general conventions around RBAC: http://openshift.github.io/openshift-origin-design/designs/administrator/future-openshift/role-based-access-control/
Applying this to your example, if the user does not own the workspace but can read it, then the disable actions would be appropriate. If they do not have read access, the workspace can be hidden and we can use an empty state with a No Access message. LMK If you need messaging for any Empty States so they match the existing patterns. I can also work with Missy to provide more detailed guidance on specific screens or flows.

We could use a No Access empty state: https://www.patternfly.org/v4/components/empty-state/design-guidelines/#no-access

@beaumorley @Misjohns Access checks for full pages will be done in https://issues.redhat.com/browse/HAC-3430
For this PR, I have disabled buttons and links for all the actions that a user does not access to perform.

PipelineRunEmptyState's button is missing access check reviews.

@rottencandy IntegrationTestDetailsView actions are missing access checks.

Updated.

/approve

@Misjohns So if the button is disabled, can we show a generic tooltip for now? Can we ask Abi for copy?

Let's use "You do not have access to add a component" so that it is a little more specific than "perform this action"? So the first part would be the same followed by the  "You do not have access to "

Thanks, updated all the button tooltips to be more specific, does this look good:

Screenshots

LGTM!
/hold cancel

/retest


Class without name

In some cases a class without name is in the extracted model

An error is now returned if the attribute name occurs more than once or has an empty value.


SPO2 data

How can I find out the oxygen level? The device can do this already, but the information is not public.

Pulse Sensor does not measure Sp02. We have never claimed it will do this. It is only a heart rate monitor


Website: install dependencies in local directory [phab:D506]

Created by schroederc at 2015-09-09 22:43:45:

shahms accepted this revision at 2015-09-09 22:51:16

schroederc closed via commit 25a7b36e40b21ac1337f7ac5aa9e14be19d3f41e at 2015-09-09 23:01:12


Which data is good to train?

Paper said "This result showed that the diversity of training data can be more important than the number of training examples, and that the effects of using different training datasets is more complex than simply concluding more is better."
You uesd the MJSynth and SynthText in combination.
I want to train Korean language data. Should I use data with various colors, fonts, backgrounds, widths, gradients, distortions, and blurs?

I think using rgb images does not help because of the network input has one channel default . However you can change it by opt.rgb=True.

I think using rgb images does not help because of the network input has one channel default . However you can change it by opt.rgb=True.

@yakhyo
Thanks

Hi, @kimlia545, do you happen to have a pretrained model for Korean (or Korean + English) language that you can share? As their site only supports around 10 tests per day, I would like to have a separate model on premise. Thank you!


data-default-value in region

data-default-value in region does not work.
Can you please help.
Country Field
<select class="form-control crs-country" id="cube-wad__adr_country" label="Country" name="wad__adr_country" data-region-id="wad__adr_country" data-default-value="United States" data-default-option="...Choose" data-crs-loaded="true">

this field is pre-populated but not the region.
Region Field
<select class="form-control" id="wad__adr_country" label="State" name="wad__adr_state" required="" data-value="abbr" data-default-value="DC" data-blank-option="...Select Country">

Thank you for this library.

Huh! I'll take a look at this tonight, thanks @kodeine.

Since i had customized the crs to support abbreviations for regions. I had to modify this little function to support default region values.
    var _setDefaultRegionValue = function(field, data, val) {
        /*console.log(field);
        console.log(data);
        console.log(val);*/
        for (var i=0; i<data.length; i++) {
            var split = data[i].split("~");
            /*console.log(split[1]);
            console.log(data[i]);
            console.log(val);*/
            //console.log(split[0]);
            //console.log(split[0] +'==='+ val);
            //console.log(split[1] +'==='+ val);
            if (split[0] === val || split[1] === val) {
                field.selectedIndex = i+1;
                break;
            }
        }
    };

Hey @kodeine, sorry for the wait!
I looked into this and actually the problem lies in the data-default-value attribute. It should read: data-default-value="District of Columbia" and not data-default-value="DC". Basically it just uses the value="X" attributes of the region select element to figure out which one should be defaulted to.
Hope this helps! :)

Aha, so when do you plan to update the library to support region abbreviations.

Unfortunately it's a fair bit of work tracking down and adding all region abbreviations for all countries. I've had a couple of contributors adding some regions, but there are still a lot more to do. So it could be some time!


Add achievements system

work > 10 hours in a day
internal is longer than a real project
reporting for the previous  month

and so on...

Should we add database for this feature, to store achievements per user?
Or just ask Toggl API each time to form earned achievements?
With long history it can take a lot of time and may limit possible achievements options.

@senior-sigan

Should we add database for this feature, to store achievements per user? Or just ask Toggl API each time to form earned achievements?
With long history asking API can take a lot of time and may limit possible achievements options.

As a first iteration or prototype I'd like to see this to be implemented without DB. So I expect achievements to be about "Right now" event without any history.

Added achievements as image icons on same page as reports.
Images can be changed.
UI view can be changed as well if needed - I don't try too hard to make it look good.
@senior-sigan
Will that be good enough for first iteration?

We can close it now? Or not? :slightly_smiling_face:

Actually, found a bug - achievement based on lask week shown for today(Monday). Will check that later.

Actually, found a bug - achievement based on lask week shown for today(Monday). Will check that later.

@Arberesto Please, create a bug issue for this.


Bump ADO workflow databricks cli version to 0.100.2

@arpitjasa-db The corresponding PR for github is https://github.com/databricks/setup-cli/commit/026e5caebee871f94b68296ecd89cdd36f19a294
I searched term "0.100." in the repo. It should be all of them unless the existing version is wrong.

I don't have a way to test the change and want to wait for the approval from @niall-turbitt.

Tested by opening link https://databricks-bricks.s3.amazonaws.com/v0.100.2/databricks_cli_0.100.2_darwin_arm64.zip


Custom Errors Throw 'a promise was rejected with a non-error'

(This issue tracker is only for bug reports or feature requests, if this is neither, please choose appropriate channel from http://bluebirdjs.com/docs/support.html)
Please answer the questions the best you can:

What version of bluebird is the issue happening on?
3.3.4

What platform and version? (For example Node.js 0.12 or Google Chrome 32)
Docker Node 5.7.0/ Google chrome

Did this issue happen with earlier version of bluebird?
Yes
(Write description of your issue here, stack traces from errors and code that reproduces the issue are helpful)

======== API ERROR =======(anonymous function) @ application.js:54mightThrow @ jquery.js:3454process @ jquery.js:3523
bluebird.js:1472 Warning: a promise was rejected with a non-error: [object Object]
    at Object.<anonymous> (https://www.intranet.doctify.local.com/assets/doctify.js:500:6)
    at mightThrow (https://www.intranet.doctify.local.com/assets/vendor.js:3681:29)
    at process (https://www.intranet.doctify.local.com/assets/vendor.js:3750:12)
From previous event:
    at api (https://www.intranet.doctify.local.com/assets/doctify.js:483:11)
    at postForm (https://www.intranet.doctify.local.com/assets/doctify.js:2931:18)
    at submit (https://www.intranet.doctify.local.com/assets/doctify.js:2924:10)
    at Object.triggerEvent (https://www.intranet.doctify.local.com/assets/vendor.js:38839:35)
    at Object.trigger (https://www.intranet.doctify.local.com/assets/vendor.js:63413:14)
    at Object.Router.trigger (https://www.intranet.doctify.local.com/assets/vendor.js:62172:20)
    at _emberRuntimeSystemObject.default.extend.send (https://www.intranet.doctify.local.com/assets/vendor.js:38310:40)
    at _emberMetalMixin.Mixin.create.send (https://www.intranet.doctify.local.com/assets/vendor.js:42954:33)
    at runRegisteredAction (https://www.intranet.doctify.local.com/assets/vendor.js:39865:25)
    at Object.Backburner.run (https://www.intranet.doctify.local.com/assets/vendor.js:10882:25)
    at Object.run [as default] (https://www.intranet.doctify.local.com/assets/vendor.js:31438:27)
    at Object.actions.push.handler (https://www.intranet.doctify.local.com/assets/vendor.js:39859:36)
    at HTMLFormElement.<anonymous> (https://www.intranet.doctify.local.com/assets/vendor.js:54645:27)
    at HTMLBodyElement.jQuery.event.dispatch (https://www.intranet.doctify.local.com/assets/vendor.js:5272:27)
    at HTMLBodyElement.elemData.handle (https://www.intranet.doctify.local.com/assets/vendor.js:5084:28)
application.js:56 Object {readyState: 4, responseText: "Invalid account name or password.", status: 400, statusText: "OK"} APIError {message: Object, name: "APIError"}

		function APIError(message) {
		   Error.captureStackTrace(this);
		   this.message = message;
		   this.name = "APIError";
		}
		APIError.prototype = Object.create(Error.prototype);
reject(new APIError(error));

Throwning a custom error gives the a promise was rejected with a non-error deprecation warning and the message is not passed in the reject

is message a string? It should be this.message = message + ""

ha only strings allowed. Gotcha


list index out of range with KNNBatchQuery

I am using nmslib to match some terminologies from a chunk of text (vectorized with tfidf). But occasionally the index reported by the nearest neighbour object is out of the index range of the list of keywords being matched.
I have investigated the dimension of all the objects at creation and prediction time, all seems consistent. So, I wonder if there is an explanation on how nmslib does the nearest neighbour search that may justify the out of index result or how can I prevent this from happening.
Thank you

To have a real response to this you should provide some snippet to know how your code is using the library


duckduckgo_search.exceptions.DuckDuckGoSearchException

from duckduckgo_search import DDGS
with DDGS() as ddgs:
keywords = '蔡英文'
ddgs_news_gen = ddgs.news(
keywords,
region="zh-TW",
safesearch="Off",
timelimit="m",
)
for r in ddgs_news_gen:
print(r)
Traceback (most recent call last):
File "C:\Users\user\Desktop\Python Project\flask_view\venv\lib\site-packages\duckduckgo_search\duckduckgo_search.py", line 46, in _get_url
raise DuckDuckGoSearchException("Ratelimit")
duckduckgo_search.exceptions.DuckDuckGoSearchException: Ratelimit
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\user\Desktop\Python Project\flask_view\yikogd\ddgoSearch.py", line 129, in
for r in ddgs_news_gen:
File "C:\Users\user\Desktop\Python Project\flask_view\venv\lib\site-packages\duckduckgo_search\duckduckgo_search.py", line 508, in news
vqd = self._get_vqd(keywords)
File "C:\Users\user\Desktop\Python Project\flask_view\venv\lib\site-packages\duckduckgo_search\duckduckgo_search.py", line 54, in _get_vqd
resp = self._get_url("POST", "https://duckduckgo.com", data={"q": keywords})
File "C:\Users\user\Desktop\Python Project\flask_view\venv\lib\site-packages\duckduckgo_search\duckduckgo_search.py", line 50, in _get_url
raise DuckDuckGoSearchException(f"_get_url() {url} {type(ex).name}: {ex}")
duckduckgo_search.exceptions.DuckDuckGoSearchException: _get_url() https://duckduckgo.com DuckDuckGoSearchException: Ratelimit
But when searching with English keywords, everything works fine.

好像搜索中文都是有这个故障，包括：图片、视频 等接口，只有文本没报错

region=tw-tzh for Taiwan https://github.com/deedy5/duckduckgo_search#regions,
apparently there were some problems on the site, because the code did cause an error, but then it worked properly.

@deedy5 I am encountering the same error for chinese text, including ddgs.text.


use resourcetabs in namespace edit component

Summary
Fixes #9731

Occurred changes and/or fixed issues
Swap Tabbed for ResourceTabs to pick up tabs added via the extension addTab method
Areas or cases that should be tested

create/edit namespaces
namespace 'view config'

updated to fix a unit test error


duplicates?

Why does this code:
testUuid.js:
const uuidv1 = require('uuid/v1')

const array = [1, 2, 3]
array.forEach(i => {
  const uuid = uuidv1()
  console.log(i)
  console.log(uuid)
})

produce this output:
alexa@DESKTOP-6C4V66Q C:\Users\alexa\ae_import
> node src/testUuid.js
1
8fa29120-0abe-11e8-b67b-c7f63e34d731
2
8fa3a290-0abe-11e8-b67b-c7f63e34d731
3
8fa3c9a0-0abe-11e8-b67b-c7f63e34d731

I noticed this happens often in my project.
This question was asked a while ago (https://github.com/kelektiv/node-uuid/issues/74#issuecomment-222780669) and remained unanswered. But as it was asked on a closed issue so I thought I'd reopen an issue for it.

Well, I actually realized that the generated uuid's are not same.
I guess it is time to go to bed.

Well, I actually realized that the generated uuid's are not same.

This would have tricked me too

I was here


[BUG] fetch links query does not recognize criteria with link's id inside $or operator

Describe the bug
query with fetch_links=True does not recoginize criteria including link's ref id when it is parenthesized in an Or operator.
To Reproduce
import asyncio
from beanie import Document, Link, init_beanie, PydanticObjectId
from beanie.operators import Or

class Directory(Document):
    name: str

class File(Document):
    name: str
    size: int
    directory: Link[Directory]

async def main():
    await init_beanie(connection_string="mongodb://localhost:27017/test", document_models=[Directory, File])
    directory = await Directory(name="dir-2").insert()
    await File(name="file-2", size=5, directory=directory).insert()
    files = await File.find(Or(File.size > 10, File.directory.id == directory.id), fetch_links=True).to_list()
    # does not find any files
    print(files)
    files = await File.find(File.directory.id == directory.id, fetch_links=True).to_list()
    # produces correct files
    print(files)

asyncio.run(main())

Expected behavior
Or criteria can be rendered correctly
Additional context
beanie version = 1.20.0  MongoDB version = 6.0.6

This bug still exists in 1.21.0


Point of Origin Detection

Using the Point of Origin Tools_10.3.tbx Tool works in 10.3 when using interactive entry of point into a feature_set.  If I create my own feature class in UTM 10 N over Monterrey, the tool will error at the point of creating buffer.
Executing: PointOfOriginSiteDetection pood_impacts_monterey_01_UTM10N C:\myProjects\GitHub\solutions-geoprocessing-toolbox\capability\toolboxes\tooldata\PointOfOrigin.gdb\Weapons Model Minimum_Range Maximum_Range '120mm American Mortar' C:\myProjects\PointofOriginDetection\GDB\PointOfOriginDetection_testing.gdb pnt imp rng
... (removed projection info)
Start Time: Mon Mar 09 09:54:58 2015
Running script PointOfOriginSiteDetection...
Building impact points...
Getting Range for: '120mm American Mortar'
Buffering Impact Point OID 1 for '120mm American Mortar'
Executing: Buffer # C:\Users\patrick\Documents\ArcGIS\Default.gdb\Impact_Max_1_120mm_American_Mortar "1650 Unknown" FULL ROUND NONE # PLANAR
Start Time: Mon Mar 09 09:55:01 2015
Failed to execute. Parameters are not valid.
ERROR 000735: Input Features: Value is required
Failed to execute (Buffer).
Failed at Mon Mar 09 09:55:01 2015 (Elapsed Time: 0.08 seconds)
Completed script PointOfOriginSiteDetection...
Failed to execute (PointOfOriginSiteDetection).
Failed at Mon Mar 09 09:55:01 2015 (Elapsed Time: 3.77 seconds)

Tried this one out today.
Projected some points (Central CA) into UTM 10N WGS 1984.
Executing: PointOfOriginSiteDetection InputProjUTM10N C:\Users\matt2542\Documents\GitHub\solutions-geoprocessing-toolbox\capability\toolboxes\tooldata\PointOfOrigin.gdb\Weapons Model Minimum_Range Maximum_Range 'M120/121 120-mm American Mortar' "C:\Workspace\ArcGIS Defense Templates\Vehicle Checkpoint Template\Certification testing for Desktop 10.4\testgdb.gdb" pnt imp rng # false
Start Time: Thu Dec 10 11:34:15 2015
Running script PointOfOriginSiteDetection...
Spatial Reference is not defined. Using Spatial Reference of Impact Points: WGS_1984_UTM_Zone_10N
Building impact points...
Getting Range for: 'M120/121 120-mm American Mortar'
Buffering Impact Point OID 1 for 'M120/121 120-mm American Mortar'
Buffering Impact Point OID 2 for 'M120/121 120-mm American Mortar'
...Could not determine version.\n   Looking for ArcMap ['10.2.2', '10.3', '10.3.1'], or ArcGIS Pro ['1.0', '1.1'].
   Found 10.4
Completed script PointOfOriginSiteDetection...
Succeeded at Thu Dec 10 11:34:33 2015 (Elapsed Time: 17.48 seconds)

Will try a few other variations.

Tried a few more cases and all are working at 10.4.


pypy2Packages.python-socketio-v4: fix the eval

Without the change the eval fails as:
$ nix-instantiate -A pypy2Packages.python-socketio-v4 --show-trace
error:
   … while evaluating the attribute 'drvPath'
     at lib/customisation.nix:365:7:
      364|     in commonAttrs // {
      365|       drvPath = assert condition; drv.drvPath;
         |       ^
      366|       outPath = assert condition; drv.outPath;

   … while evaluating the attribute 'drvPath'
     at lib/customisation.nix:365:7:
      364|     in commonAttrs // {
      365|       drvPath = assert condition; drv.drvPath;
         |       ^
      366|       outPath = assert condition; drv.outPath;

   … while calling the 'derivationStrict' builtin
     at <nix/derivation-internal.nix>:34:12:
       33|
       34|   strict = derivationStrict drvAttrs;
         |            ^
       35|

   … while evaluating derivation 'pypy2.7-python-socketio-v4-4.6.1'
     whose name attribute is located at pkgs/stdenv/generic/make-derivation.nix:336:7

   … while evaluating attribute 'optional-dependencies' of derivation 'pypy2.7-python-socketio-v4-4.6.1'
     at pkgs/development/python-modules/python-socketio-v4/default.nix:31:3:
       30|
       31|   optional-dependencies = {
         |   ^
       32|     client = [

   error: cannot coerce a set to a string: { asyncio_client = «thunk»; client = «thunk»; }

https://github.com/NixOS/nixpkgs/pull/335112#issuecomment-2322364846 suggests that "The Python 2 version of buildPythonPackage doesn't support optional-dependencies outside of passthru."
Added passthru explicitly.
Description of changes

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

Note that https://github.com/NixOS/nixpkgs/pull/338596 is a pre-requisite fix.

We don't make Python 2-specific changes inside pkgs/development/python-modules.


The "LinkAssemblies" task failed unexpectedly in release mode.

C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(5,5): Error MSB4018: The "LinkAssemblies" task failed unexpectedly.
Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: Reference to metadata item 'System.Void Xamarin.Forms.Maps.Android.MapRenderer::OnElementChanged(Xamarin.Forms.Platform.Android.ElementChangedEventArgs1<Xamarin.Forms.View>)' (defined in 'TK.CustomMap.Android, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null') from 'TK.CustomMap.Android, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null' could not be resolved. ---> Mono.Cecil.ResolutionException: Failed to resolve System.Void Xamarin.Forms.Maps.Android.MapRenderer::OnElementChanged(Xamarin.Forms.Platform.Android.ElementChangedEventArgs1<Xamarin.Forms.View>)
at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)
at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction)
at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)
at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
at Mono.Linker.Steps.MarkStep.ProcessQueue()
at Mono.Linker.Steps.MarkStep.Process()
at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
at Mono.Linker.Pipeline.Process(LinkContext context)
at MonoDroid.Tuner.Linker.Process(LinkerOptions options, LinkContext& context)
at Xamarin.Android.Tasks.LinkAssemblies.Execute()
--- End of inner exception stack trace ---
at Java.Interop.Tools.Diagnostics.Diagnostic.Error(Int32 code, Exception innerException, String message, Object[] args)
at Xamarin.Android.Tasks.LinkAssemblies.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() (MSB4018) (CpRAS.Droid)

Try clearing your project and make sure your Android SDK is up to date

@TorbenK I'm having the same problem. Any other suggestions?

@TorbenK Please could you look into this.

Your Android SDK is up to date? Did you clear the solution?
If that didn't work, can you compile using "Link SDK Assemblies only"?
I can maybe look at it this later today.

@TorbenK I have cleaned, rebuilt and restarted multiple times.
I'm using platform 7.0 and that's at the latest version from the SDK manager.
I have been trying with "Link SDK Assemblies only" and it's failing. I can build with "None". I haven't even tried linking with SDK and User assemblies. I also tried adding TKCustomMap to the linked assemblies to skip but it didn't work.
It fails in Release build with "Link SDK Assemblies only".
Sorry to hassle you with a double comment but I'm hoping to release something soon and need to be able to make an APK smaller than 60MB lol

@TorbenK Well, this is awkward. This morning I updated everything new I could see in the SDK manager and cleaned and built and it worked....
I don't know what was preventing it before. Sorry for false alarm...

Glad that you could fix it.


v0.4.1 bugfix and feature release

Coverage decreased (-2.05%) to 85.623% when pulling dfe9ad36c2ec878eb69146056e9ba6f264332460 on michakraus:master into 75da490b1e06a411541ab3e88905cb0a2b35b3a8 on DDMGNI:master.

Coverage decreased (-2.05%) to 85.623% when pulling dfe9ad36c2ec878eb69146056e9ba6f264332460 on michakraus:master into 75da490b1e06a411541ab3e88905cb0a2b35b3a8 on DDMGNI:master.


Web app testing

From @mfisher-idmod :
Testing of the refactored web app, including new features:

Upload Data (xlsx and csv)
Simulation / Population parameters
Epidemiological Parameters
Interventions
Upload campaigns (json)
Browser compatibility (Chrome, Firefox, Safari, Edge)

See Test Plan Wiki page for web app Test Plan.

This has been completed. Test results in PDF in https://wiki.idmod.org/pages/viewpage.action?spaceKey=EMOD&title=Covasim+Web+App+Test+Plan.


Java Support

Hi, when will the new version with Java support be released?

Hello
we are planning to release for a few days
https://github.com/Tinkoff/gatling-kafka-plugin/pull/125

https://github.com/Tinkoff/gatling-kafka-plugin/releases/tag/v0.11.0
Try it :)


Filter throws exception when some columns are hidden

(Original issue 37 created by None on 2014-06-23T14:43:33+00:00)
What steps will reproduce the problem?
1. set up a table; hide some columns
2. set up filter header as normal
3. add a separate filter; the separate filter causes the crash

What is the expected output? What do you see instead?

filter the table; instead, it throws an exception.

What version of the product are you using? On what operating system?

5.1.1

Please provide any additional information below.

// create table and TableFilterHeader in the usual way
JTable table = ....
 TableFilterHeader filterHeader = new TableFilterHeader(_table, AutoChoices.ENABLED);
filterHeader.setFilterOnUpdates(true);

//now add an additional, separate filter to the header
filterHeader.addFilter(RowFilter.regexFilter("ALICE");

// the separate filter cause an exception b/c some columns are hidden (see Entry.getStringValue(...)

// if the visible columns are inserted into the regex filter, the exception is avoided
filterHeader.addFilter(RowFilter.regexFilter("ALICE",visibleColumnsIntArray);

Original issue reported on code.google.com by elisebotworld.ww on 2014-06-23 14:43:33

(Original issue 37 last updated on 2015-04-26T00:22:40.773211+00:00)
(Issue automaticaly closed due to status in Bitbucket: resolved)

(Original comment by coderazzi on 2014-06-25T11:26:56+00:00)
Hi, I was checking the code that you provided, but addFilter requires an IFilter instance,
not a RowFilter.
I still get an exception, as you point out, when I create an IFilter wrapping the RowFilter,
doing:

        filterHeader.addFilter(new Filter(){
    		RowFilter r = RowFilter.regexFilter("ALICE");
        	@Override public boolean include(Entry entry) {
        		return r.include(entry);
        	}
        });

Is this the code that you have?

Original issue reported on code.google.com by coderazzi on 2014-06-25 11:26:56

(Original comment by coderazzi on 2015-03-18T22:26:18+00:00)
Solved on 5.1.2

Original issue reported on code.google.com by coderazzi on 2015-03-18 22:26:18

(Original comment by coderazzi on 2015-04-26T00:22:40.782784+00:00)
Already resolved (previously, before migrating to BitBucket)


Multi-import

Upgrade the URL import functionality to support copy/pasting multiple URLs at a time. The new Web Import dialog displays the Sources and allows users to quickly edit Source titles, add flags, and choose between importing to Inbox or directly to the current project.
URLs can be separated by commas, newlines, or spaces.

Resolves #137


[1.9] Fix possible out of bounds access during log parsing

This PR backports #2180

/test e2e_rhel

/retest

Travis for the 1.9 release branch seems broken for some time. :thinking:

/retest

LGTM

Travis is failing on make testunit

Travis is failing on make testunit

The go get on go-md2man fails because they do not support go 1.8 any more. How do we want to proceed here? I could prepare a fix for that on a separate branch I guess.

I think we should just force merge.
@mrunalp WDYT?

yeah merging.


value_from using s3 and txt format doesn't seem to match

I am using the following policy:
- actions:
  - terminate
  filters:
  - tag:infected: present
  - key: "account"
    op: in
    type: value
    value_from:
      format: txt
      url: s3://my-bucket/my-list-of-accounts.csv
  mode:
    events:
    - RunInstances
    execution-options:
      metrics_enabled: true
    type: cloudtrail
  name: my-policy
  resource: ec2

and s3://my-bucket/my-list-of-accounts.csv contains:
012324567891011
When my lambda runs I can see the logs:
21:01:42 START RequestId: 17ab7d75-9117-11e8-ba74-c370c58f697f Version: $LATEST
21:01:42 [INFO]	2018-07-26T21:01:42.411Z	17ab7d75-9117-11e8-ba74-c370c58f697f	Processing event { "account": "012324567891011", "region": "eu-west-1", "detail": { "eventVersion": "1.05", "eventID": "adf3351b-6081-4b4f-ac4a", "eventTime": "2018-07-26T21:00:59Z", "requestParameters": { "blockDeviceMapping": { "items": [ { "deviceName":
21:01:43 [DEBUG]	2018-07-26T21:01:43.244Z	17ab7d75-9117-11e8-ba74-c370c58f697f	Disabling cache
21:01:43 [INFO]	2018-07-26T21:01:43.261Z	17ab7d75-9117-11e8-ba74-c370c58f697f	Found resource ids: [u'i-05c1e7c4127']
21:01:44 [INFO]	2018-07-26T21:01:44.630Z	17ab7d75-9117-11e8-ba74-c370c58f697f	Resources [{u'Monitoring': {u'State': 'disabled'}, u'PublicDnsName': 'ec2-34-248.eu-west-1.compute.amazonaws.com', u'State': {u'Code': 16, u'Name': 'running'}, u'EbsOptimized': False, u'LaunchTime': datetime.datetime(2018, 7, 26, 21, 0, 59, tzinfo=tzlocal()), u'PublicIpAddress': '', u'PrivateIpAddress': '172
21:01:44 [INFO]	2018-07-26T21:01:44.631Z	17ab7d75-9117-11e8-ba74-c370c58f697f	Filtering resources with [<c7n.filters.core.ValueFilter object at 0x7f16d2f2eb90>, <c7n.filters.core.ValueFilter object at 0x7f16d2f2ebd0>]
21:01:44 [DEBUG]	2018-07-26T21:01:44.631Z	17ab7d75-9117-11e8-ba74-c370c58f697f	applied filter <c7n.filters.core.ValueFilter object at 0x7f16d2f2eb90> 1->1
21:01:45 [DEBUG]	2018-07-26T21:01:45.242Z	17ab7d75-9117-11e8-ba74-c370c58f697f	applied filter <c7n.filters.core.ValueFilter object at 0x7f16d2f2ebd0> 1->0
21:01:45 [DEBUG]	2018-07-26T21:01:45.242Z	17ab7d75-9117-11e8-ba74-c370c58f697f	Filtered from 1 to 0 ec2
21:01:45 [INFO]	2018-07-26T21:01:45.242Z	17ab7d75-9117-11e8-ba74-c370c58f697f	Filtered resources 0
21:01:45 [INFO]	2018-07-26T21:01:45.242Z	17ab7d75-9117-11e8-ba74-c370c58f697f	policy: my-policy resources: ec2 no resources matched
21:01:45 END RequestId: 17ab7d75-9117-11e8-ba74-c370c58f697f

I have disabled the value_from filter and the lambda works so I am sure it is something I am doing wrong with the value_from syntax.
Any ideas please?

btw, I have verified the file is UTF8 and has no BOM as per http://capitalone.github.io/cloud-custodian/docs/filters.html

account isn't a valid key to filter on in ec2, that's why it's not matching. it's not an issue with the value_from filter


Roll Packages from 8028cafa1f0c to 406eac1ad976 (4 revisions)

https://github.com/flutter/packages/compare/8028cafa1f0c...406eac1ad976
2023-07-25<EMAIL_ADDRESS>Roll Flutter from d7ed5dc2e212 to 9def8f6bc56b (21 revisions) (flutter/packages#4561)
2023-07-25<EMAIL_ADDRESS>[webview_flutter_android][webview_flutter_wkwebview] Fixes bug where PlatformWebViewWidget doesn't rebuild when the controller changes (flutter/packages#4533)
2023-07-24<EMAIL_ADDRESS>[ci] Enable Android emulator-based tests (flutter/packages#4494)
2023-07-24<EMAIL_ADDRESS>[google_maps_flutter_web] Options to disable tilt controls and configure gesture handling (flutter/packages#3258)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


$ModLoad is outdated method for loading modules

The rsyslog recommended way to load modules is module(load="imklog") not $ModLoad any more. $ModLoad is only for backwards compatibility and the expectation is that puppet module will follow best practices.

Also, I added an /etc/rsyslog.d/ file to re-enable immark and imklog. @saz is there a reason why it is not configurable by the module? should I submit a PR?

@gjngeldenhuis Feel free to send me a PR for this
@seefood Would be great!

@saz I have ended up using https://forge.puppet.com/crayfishx/rsyslog which better supports the modern options.


New mobile parameters added

Added support for new mobile parameters to cover the webview sizing issues.

We were not able to get reliable behavior here, so we are putting this approach on pause.


ScaledFont doesn't work with UI legibilityWeight in SwiftUI

Are there any plans to support legibilityWeight in SwiftUI or UIAccessibility.isBoldTextEnabled in UIKit?
Love this library!

I have no immediate plans but I'm not against the idea it it's feasible. Have you given any thought as to how it would work?
Adding extra keys to specify a bold text variant is easy enough but I'm not sure how the auto updating would work if the user changes the setting? Does SwiftUI regenerate the views when the setting changes? Would need some investigating to see what is possible.

I was thinking something like this:

And font(forTextStyle) could be something like this:
internal func font(forTextStyle textStyle: Font.TextStyle, legibilityWeight: LegibilityWeight? = .regular) -> Font {

	guard let styleKey = StyleKey(textStyle),
		  let fontDescription = styleDictionary?[styleKey.rawValue]
	else {
		return Font.system(textStyle)
	}

	let fontName = legibilityWeight == .bold ? fontDescription.legibilityFontName : fontDescription.fontName
	return Font.custom(fontName, size: fontDescription.fontSize, relativeTo: textStyle)
}

I'll look into it some more. Finding a way that avoids having to add the parameter to every text view would be nice. I also need to think about how it would work for UIKit without needing to register every view controller for the notification.


fix(deps): update dependency puppeteer to v3.0.1

This PR contains the following updates:

Package
Type
Update
Change

puppeteer
dependencies
patch
3.0.0 -> 3.0.1

Release Notes

puppeteer/puppeteer
v3.0.1
Compare Source
Highlights

File uploads should be more reliable now (#5655)
The size of the final package is smaller as we explicitly list files to publish (#5659).
The docs now include the libgbm-dev dependency that's needed for Linux builds (#5667, #5693)

Behind the scenes

We're continuing to migrate to TypeScript and many files within src/ are now TypeScript files. We're working towards a 100% TS codebase which will enable us (amongst other things) to ship high-quality type definitions for TypeScript users.

Raw notes
6029fdd - chore: mark version v3.0.1 (#5709)
29ebd0b - chore: migrate src/ExecutionContext (#5705)
69bfa80 - docs(api): fix typo (#5706)
8d5d76e - chore: migrate src/JSHandle to TS (#5703)
42893d8 - chore: migrate src/coverage to TypeScript (#5702)
e3922ea - chore: enforce consistent spacing around object curlys (#5700)
3600f2f - chore: migrate src/helpers.ts to ESM (#5699)
f13c30a - chore: migrate src/USKeyboardLayout to typescript (#5695)
a614bc4 - chore: migrate src/Connection to TypeScript (#5694)
376d234 - chore: migrate src/WebSocketTransport to TypeScript (#5696)
5c839f5 - chore(docker): add missing libgbm1 dependency (#5693)
e7a32a8 - chore: migrate src/pipetransport to typescript (#5692)
4134b54 - chore: migrate src/helper to typescript (#5689)
c32b049 - chore: delete src/MultiMap (#5690)
6638a24 - chore: migrate src/timeoutsettings to typescript (#5691)
ad6c57a - docs: fix DeviceDescriptor link (#5683)
c4fe4e4 - chore(ci): re-enable tests on Windows (#5637)
49ca00f - docs(contributing): update testing section (#5657)
1a57ba2 - chore: migrate TaskQueue to TypeScript (#5658)
ef3befa - chore: manage published files via files option (#5659)
35fc654 - docs: change the Alpine Docker example to use env instead of launch option (#5666)
20c22ad - chore: fix installing from GitHub URL (#5669)
46ef9f7 - docs(troubleshooting): list libgbm-dev dependency (#5667)
532ae57 - fix(JSHandle): restore file upload to its old behavior (#5655)
3e4c8c9 - chore(typescript): migrate src/Dialog (#5639)
a9f6a26 - chore: log reminder about tsc if DocLint fails locally (#5652)
37bae17 - docs(contributing): update npm dist tags section (#5650)
80348dc - chore: bump version to v3.0.0-post (#5649)

Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

Available now for Enterprise: Renovate Pro with real-time webhook handling and priority job queue.

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

v5.0.38
GitHub release

Your semantic-release bot :package::rocket:


FLEX-1903 ~ Automatic resume schedule after set light.

call resumeSchedule() when setLight() returns OK
don't call resumeSchedule() when setLight returns FAILURE or REJECTED
make sure 1 response message is sent containing the successful response of resumeSchedule(), or any error/exception during setLight() or resumeSchedule()
decreased log-level for signing-server log statements from INFO to DEBUG

SonarQube analysis reported 32 issues

 29 major
 3 minor

Watch the comments in this conversation to review them.
Top 10 extra issues
Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

 OslpSigningService.java#L55: Method has 13 parameters, which is greater than 7 authorized.
 PublicLightingSetLightRequestMessageProcessor.java#L118: Reduce this anonymous class number of lines from 25 to at most 20, or make it a named class.
 OslpDeviceService.java#L79: The Cyclomatic Complexity of this class is 227 which is greater than 200 authorized.
 OslpDeviceService.java#L541: Method has 10 parameters, which is greater than 7 authorized.
 OslpDeviceService.java#L568: Method has 10 parameters, which is greater than 7 authorized.
 OslpDeviceService.java#L569: Remove this unused method parameter "ipAddress".
 OslpDeviceService.java#L634: Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.
 OslpDeviceService.java#L687: The Cyclomatic Complexity of this method "convertToOslpSchedules" is 11 which is greater than 10 authorized.
 OslpDeviceService.java#L910: Method has 10 parameters, which is greater than 7 authorized.
 OslpDeviceService.java#L921: Method has 11 parameters, which is greater than 7 authorized.

All is well.

SonarQube analysis reported 30 issues

 29 major
 1 minor

Watch the comments in this conversation to review them.
Top 10 extra issues
Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

 OslpSigningService.java#L57: Method has 13 parameters, which is greater than 7 authorized.
 PublicLightingSetLightRequestMessageProcessor.java#L118: Reduce this anonymous class number of lines from 25 to at most 20, or make it a named class.
 OslpDeviceService.java#L79: The Cyclomatic Complexity of this class is 227 which is greater than 200 authorized.
 OslpDeviceService.java#L541: Method has 10 parameters, which is greater than 7 authorized.
 OslpDeviceService.java#L568: Method has 10 parameters, which is greater than 7 authorized.
 OslpDeviceService.java#L569: Remove this unused method parameter "ipAddress".
 OslpDeviceService.java#L634: Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.
 OslpDeviceService.java#L687: The Cyclomatic Complexity of this method "convertToOslpSchedules" is 11 which is greater than 10 authorized.
 OslpDeviceService.java#L910: Method has 10 parameters, which is greater than 7 authorized.
 OslpDeviceService.java#L921: Method has 11 parameters, which is greater than 7 authorized.

All is well.

SonarQube analysis reported 27 issues

 26 major
 1 minor

Watch the comments in this conversation to review them.
Top 10 extra issues
Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

 OslpSigningService.java#L57: Method has 13 parameters, which is greater than 7 authorized.
 PublicLightingSetLightRequestMessageProcessor.java#L118: Reduce this anonymous class number of lines from 25 to at most 20, or make it a named class.
 OslpDeviceService.java#L79: The Cyclomatic Complexity of this class is 227 which is greater than 200 authorized.
 OslpDeviceService.java#L541: Method has 10 parameters, which is greater than 7 authorized.
 OslpDeviceService.java#L687: The Cyclomatic Complexity of this method "convertToOslpSchedules" is 11 which is greater than 10 authorized.
 OslpDeviceService.java#L910: Method has 10 parameters, which is greater than 7 authorized.
 OslpDeviceService.java#L921: Method has 11 parameters, which is greater than 7 authorized.
 OslpDeviceService.java#L1471: The Cyclomatic Complexity of this method "handleOslpResponseGetStatus" is 26 which is greater than 10 authorized.
 OslpSigningService.java#L57: Method has 13 parameters, which is greater than 7 authorized.
 OslpChannelHandler.java#L281: Refactor this code to not nest more than 3 if/for/while/switch/try statements.

All is well.

All is well.


Could you make it support hoverClass in .tsx?

In react，
      <Button className="bg-blue-500 text-white font-bold py-2 px-4" hoverClass="bg-blue-700">
        Button
      </Button>

Thank you!

I didn't know about this hoverClass, is it a custom attribute interpreted by a library other than React? Do you mind providing me with a link to a documentation on this attribute?


Error generating a PDF

Describe the bug
Log in as either AH or staff (for sure while it's in Submitted to AH, perhaps other statuses) and generate PDF.
Expected Behaviour
It should work.
Actual Behaviour

To Reproduce
Steps to reproduce the behavior:
Create a plan as staff
Submit to AH
Try generating PDF as staff
Log in as AH
Try generating plan.
Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
It seems to work for approved ones.   Not 100% sure on which statuses are broken other than 'Submitted to AH'
@calebissharp probably a release blocker

@micheal-w-wells @calebissharp I moved RAN099914 (the one I originally noted the PDF error on) all the way through to approved and am still getting the PDF error. Just thought you might want to know.

@micheal-w-wells Do you have an errors in your console?

@calebissharp

Be Leslie in test and open RAN099914.

Looks like this one had issue once it was approved so it seems plan dependant not status dependant.

Yep, looks like at least one of the things causing it is when you have a monitoring area with rangeland health not set.

Rangeland Health used to be a required field but we’ve changed that.


Extension Libraries Dependency Changes In 1.1

We're using Configuration and DependencyInjection in a .NetFramework 4.6.1 project. All of the versions up to 1.0.1 worked just fine and didn't cause any problems. Version 1.1.0 has caused all lot of conflicts and problems in our project - after a lot of digging, we realized that the reason was the dependencies for all the extensions changed in 1.1 from depending on specific packages to depending on the NetStandard.Library.
Why was this change made for the extensions versus referencing the specific libraries the extensions need. The previous way allowed easy use in 4.6.1. Once the NetStandard.Library is included it pulls in System.Net.Http and lots and lots of other packages, which caused a lot of problems.
I'm wondering how this could be resolved / if the extensions could go back to referencing just the packages they need.
Thanks!

It wasn't just Extensions that did this, The AspNetCore packages did this too. I'm only aware of one issue this has caused (https://github.com/aspnet/Security/issues/1046, and yes it was with System.Net.Http). What other issues have you seen?
@muratg @pranavkm what was the reasoning for this change?

This was the first one we hit:
https://github.com/dotnet/corefx/issues/11100
For a project not using the full netstandard library or .netcore, it was so much easier to have a references to the couple packages that the extensions were using and not have 50+ packages installed for the full standard library.

Past discussion on this topic - https://github.com/aspnet/WebListener/issues/268.

This issue is being closed because it has not been updated in 3 months.
We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate.


Allocate memory for overlay only if it is shown on the map

Issue Type
[ ] Question
[ ] Bug
[X] Improvement
[ ] Build system related
[ ] Performance
[ ] Documentation
Description and/or steps/code to reproduce the problem
I have 2000 images to show as overlay on the map.
Each image is 400x400 pixel.
When I try to add all the images as bitmap with the class GroundOverlay2 or GroundOverlay4, the App raises the OutOfMemory exception on the instruction
Bitmap bitmap = BitmapFactory.decodeFile(...)
I know that is not a OSMDroid issue, but is it possible to set the overlay as a file reference and then the OSMDroid engine load in the memory the image only if the it is shown on the map?
Environment
If it's a bug, version(s) of android this affects:
All
Version of osmdroid the issue relates to:
6.1.0

I guess that could be solved by using one of those fixes (or both):

creating the concept of "deferred and transient bitmap" (like creating an object with a URL or a file path, creating the actual bitmap only when necessary, and being able to clear the bitmap)
creating a group of GroundOverlay4 with a dedicated cache manager

Thanks a lot for the answer.. do you have any example for the first suggestion?

That would be something like that:
class DeferredBitmap implements Runnable{

	private static int STATUS_CLEAR = 0;
	private static int STATUS_LOADING = 1;
	private static int STATUS_LOADED = 2;

	private Bitmap mBitmap;
	private int mStatus = STATUS_CLEAR;
	private String mReference;

	public DeferredBitmap(final String pReference) {
		mReference = pReference;
	}

	public Bitmap getBitmap() {
		loadBitmap();
		return mBitmap;
	}

	private void loadBitmap() {
		if (mStatus == STATUS_LOADING || mStatus = STATUS_LOADED) {
			return;
		}
		mStatus = STATUS_LOADING;
		new Thread(this).start(); // lousy async task
	}

	@Override
	public void run() {
		// implement here the "download/decodeFile", using "mReference" (URL, file path, ...)
		// and populate mBitmap
		// and at the end set the status to STATUS_LOADED
	}

	public void clearBitmap() {
		mStatus = STATUS_CLEAR;
		mBitmap = null;
	}
}

This version is not very clean, thread-wise.
Then you would have to change GroundOverlay4 using DeferredBitmap.getBitmap() (when it returns null, don't draw anything).
A next step would be to clear the bitmap when it's not drawn: also to be done in GroundOverlay4.draw.

Thank a lot for you suggestion... I will try to implement tonight..

I solved the issue in another way.
The slow speed of the map when there are many GroundOverlay and the out of memory is because the draw function of the GroundOverlay4 is called even if the overlay is not to be shown.
So I added a check in the draw function to check if the image is to draw. I added another check to resample the bitmap if the zoom is to low in order to reduce the usage of the memory.
Maybe this class cannot be included in the OSMDroid project, but could be a good idea to review the draw function of the GroundOverlay
Here below there is my code

public class GroundOverlay4 extends Overlay {

    private final Matrix mMatrix = new Matrix();
    private final Paint mPaint = new Paint();
    private final float[] mMatrixSrc = new float[8];
    private final float[] mMatrixDst = new float[8];

    private GeoPoint mTopLeft;
    private GeoPoint mTopRight;
    private GeoPoint mBottomRight;
    private GeoPoint mBottomLeft;

    private Bitmap mImage;
    private float mBearing;
    private float mTransparency;
    private String mImagePath;
    private int mScaleFactor;

    public GroundOverlay4() {
        super();
        mImagePath = "";
        mBearing = 0.0f;
        setTransparency(0.0f);
        clearImage();
    }
    public void setImagePath(String path){
        mImagePath = path;
    }

    public void setImageScaleFactor(int scaleFactor) {
        if ( mScaleFactor != scaleFactor ) {
            BitmapFactory.Options options = new BitmapFactory.Options();
            options.inSampleSize = scaleFactor; // scale the resolution of the image
            mScaleFactor = scaleFactor;
            setImage(BitmapFactory.decodeFile(mImagePath, options));
        }
    }

    public void setImage(Bitmap image){
        mImage = image;
        if (mImage == null) {
            return;
        }
        final int width = mImage.getWidth();
        final int height = mImage.getHeight();
        mMatrixSrc[0] = 0;
        mMatrixSrc[1] = 0;
        mMatrixSrc[2] = width;
        mMatrixSrc[3] = 0;
        mMatrixSrc[4] = width;
        mMatrixSrc[5] = height;
        mMatrixSrc[6] = 0;
        mMatrixSrc[7] = height;
    }

    public void clearImage() {
        mScaleFactor = 0;
        mImage = null;
    }

    public Bitmap getImage(){
        return mImage;
    }

    public void setPosition(final GeoPoint pTopLeft,
                            final GeoPoint pTopRight,
                            final GeoPoint pBottomRight,
                            final GeoPoint pBottomLeft
                            )
    {
        mTopLeft = new GeoPoint(pTopLeft);
        mTopRight = new GeoPoint(pTopRight);
        mBottomRight = new GeoPoint(pBottomRight);
        mBottomLeft = new GeoPoint(pBottomLeft);
    }

    public float getBearing(){
        return mBearing;
    }

    public void setBearing(float bearing){
        mBearing = bearing;
    }

    public void setTransparency(float transparency){
        mTransparency = transparency;
        mPaint.setAlpha(255-(int)(mTransparency * 255));
    }

    public float getTransparency(){
        return mTransparency;
    }

    @Override
    public void draw(Canvas canvas, Projection pj)
    {
        if (pj.getBoundingBox().contains(mTopLeft)
                || pj.getBoundingBox().contains(mTopRight)
                || pj.getBoundingBox().contains(mBottomLeft)
                || pj.getBoundingBox().contains(mBottomRight)
        ) {
            if ( pj.getZoomLevel() >= 14 )
                setImageScaleFactor(1);
            else
                setImageScaleFactor(8);

            computeMatrix(pj);
            canvas.drawBitmap(mImage, mMatrix, mPaint);
        }
        else
        {   // The image is not to draw
            if ( mScaleFactor == 1 ) {
                // The image was already loaded in high resolution
                // Remove the image from memory
                clearImage();
            }
        }
    }

    private void computeMatrix(Projection pj) {
        final long topLeftCornerX = pj.getLongPixelXFromLongitude(mTopLeft.getLongitude());
        final long topLeftCornerY = pj.getLongPixelYFromLatitude(mTopLeft.getLatitude());
        final long topRightCornerX = pj.getLongPixelXFromLongitude(mTopRight.getLongitude());
        final long topRightCornerY = pj.getLongPixelYFromLatitude(mTopRight.getLatitude());
        final long bottomRightCornerX = pj.getLongPixelXFromLongitude(mBottomRight.getLongitude());
        final long bottomRightCornerY = pj.getLongPixelYFromLatitude(mBottomRight.getLatitude());
        final long bottomLeftCornerX = pj.getLongPixelXFromLongitude(mBottomLeft.getLongitude());
        final long bottomLeftCornerY = pj.getLongPixelYFromLatitude(mBottomLeft.getLatitude());

        mMatrixDst[0] = (float) topLeftCornerX;
        mMatrixDst[1] = (float) topLeftCornerY;
        mMatrixDst[2] = (float) topRightCornerX;
        mMatrixDst[3] = (float) topRightCornerY;
        mMatrixDst[4] = (float) bottomRightCornerX;
        mMatrixDst[5] = (float) bottomRightCornerY;
        mMatrixDst[6] = (float) bottomLeftCornerX;
        mMatrixDst[7] = (float) bottomLeftCornerY;

        mMatrix.setPolyToPoly(mMatrixSrc, 0, mMatrixDst, 0, 4);
    }
}

@PaoloDozio Reading your code, I notice that you implemented my "if not drawn, clear the bitmap" and "store the path and create the bitmap only if needed" suggestions.
But I'm not convinced by the "Bitmap.decodeFile" step being called synchronously on the UI thread: that's why I suggested an async bitmap load.
There would be other issues to address before integrating your code into osmdroid: what if the bitmap doesn't come from a file path but a URL or a database entry for instance, and your specific "hi-res/lo-res switch around zoom level 14" code. Possibly a cache management, too.
But so far you apparently managed to solve your issue. Nice!
Btw your "is bitmap to be drawn" test is slightly flawed: you can have a part of your bitmap that needs to be displayed even if none of its corners is in the bounding box, especially when your bitmap has a little orientation. I suggest that you use a piece of code similar to Marker.drawAt instead, where we check the intersection of the projected rectangle (including the orientation).

Thanks @monsieurtanuki for reviewing my code.
About the load of the bitmap you are right, it is better to call with deferred image, but my code was just to test if the crash due to out of memory is solved..
Now I'm going to change to deferred bitmap.
I know that the integration in the library is not possible.. the hi-res/low-res if too specific for my app..
About my code to decide if the "bitmap is to be drawn" is not well implemented as you say...
I will try to follow you suggestion because in my code if the corner is not in the bounding box, the image is not drawn..
Thanks again for your suggestion..


[Blazor] Security - interactive-server-side-rendering - script tags

Script tags aren't allowed and shouldn't be included in the app's component render tree. If a script tag is included in a component's markup, a compile-time error is generated.

I'm not aware of any such compile-time behavior.
While it's not recommended to include script tags in your interactive components (since the behavior can be tricky), there's no built-in mechanism that prevents you from including a script tag in the render tree.

Internal previews

📄 File
🔗 Preview link

aspnetcore/blazor/security/interactive-server-side-rendering.md
Threat mitigation guidance for ASP.NET Core Blazor interactive server-side rendering

This goes back to the inception of the article on #13962, written by Javier and reviewed by both Steve Sanderson and Ryan Nowak when he worked on Blazor. It's at Line 194 of ...
https://github.com/dotnet/AspNetCore.Docs/pull/13962/files#diff-4962dbf450346ed225e83e082be3ddbae62e523fd1980145aa2af347ec62a2eaR194
Stand-by while I get them on here to take a look.

UPDATE (11/25): There might be a delay. We're in the Thanksgiving 🦃 holiday season here, so it might take a week or longer to advance this. Stand-by, and we'll get back to this ASAP! 🏃♂

🐀🍔 Roasted Rat Burgers 🐀🍔

RequestError [HttpError]: Resource not accessible by integration

Oh, well. It was worth a shot!
No worries. I doubt many PRs will come in over the next four days.

Will try again. I had the wrong permissions set on the workflow.

See https://github.com/dotnet/razor/pull/8744
There used to be a compile-time error if you had a <script> inside .razor due to the tricky bits that @hakenr mentions, and because at that time we didn't think there were valid scenarios for people doing it.
However from .NET 8 onwards when we added full SSR support, we judged that there were important scenarios for using <script> with SSR so the balance tipped towards allowing it without any warnings or errors.


added helloworld by Debobrata

Hi Bhuvesh,
I have submitted for the hacktoberfest. But it's showing under review after
being accepted by you.
No idea why it is taking time for approval or Accepted.
Thanks and Regards,
Debobrata
On Tue, Oct 6, 2020 at 2:05 AM Bhuvanesh Hingal<EMAIL_ADDRESS>wrote:

@BhuvaneshHingal approved this pull request.
Looks Good 👍🏻
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/BhuvaneshHingal/HELLO-WORLD/pull/48#pullrequestreview-502400153,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACTUZXFV7Q4AT2C5EE4ZLPLSJIUXZANCNFSM4SFEZDCA
.

Hi Bhuvesh, I have submitted for the hacktoberfest. But it's showing under review after being accepted by you. No idea why it is taking time for approval or Accepted. Thanks and Regards, Debobrata
…
On Tue, Oct 6, 2020 at 2:05 AM Bhuvanesh Hingal @.***> wrote: @BhuvaneshHingal approved this pull request. Looks Good 👍🏻 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#48 (review)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACTUZXFV7Q4AT2C5EE4ZLPLSJIUXZANCNFSM4SFEZDCA .

The review period stays for 14 days from the date you created a pull request. Under that period if there's any problem with your PR, it will not be counted for Hacktoberfest. However after passing the review period i.e. after 14 days, that PR will be eligible to be counted towards the event. Hope this solves your query.


Barbarian Training higher in optimal list than Tai Bwo Wannai Trio

Barbarian Training shows higher in optimal list than Tai Bwo Wannai Trio despite Tai Bwo being a general requirement to complete Barbarian Training.
Images attached showing the optimal quest list showing Barbarian Training as top of list for me despite not having completed Tai Bwo Wannai Trio.

Could you screenshot the full quest helper sidebar?

Hi, I can later when I'm back on laptop, however I've since realised that this optimal ordering is only for IRONMAN OPTIMAL - apologies I had not realised when I posted this issue.

Thanks, no screenshot should be necessary in that case. We haven't updated the ironman optimal order in a bit. Looking to fix that now


Batch Prompting for Multiple Boxes

Hi @czg1225
Thanks for this repo!
Can you please tell how can I do batch prompting by giving multiple boxes as prompts to the model?
Right now, predict function takes one numpy array of length 4
Also can you please clarify that for custom dataset training, does each image file should have a corresponding json or a single json for the whole folder is enough since I am getting this error. I have se gradsize to be 100 and 1000. My training images are 1306 and validation are 293.

Also in the training code, you are using point coordinates, what if I want to use boxes as prompts during custom dataset training?

Hi @Ashutosh1995 ,

Our SlimSAM has the same inference workflow as the original SAM. You can refer to the original SAM for more details about batch prompting
Each image should have a corresponding JSON, just like the SA-1B dataset. The gradsize should be smaller than the number of training images.
If you want to use box prompts during training please refer to this issue https://github.com/czg1225/SlimSAM/issues/11. I have helped another user to solve this problem.

Thanks a lot @czg1225 for your reply! Let me have a look at this issue and see if I can replicate it on my dataset.

Hi @Ashutosh1995 ,
I don't know which model you used for the inference phase. If you're using your own trained SlimSAM, I recommend you to further training for more iterations or reduce the pruning ratio. On the other hand, if you're employing our pre-trained SlimSAM, it would be advantageous to utilize more precise bounding boxes (A box that completely surrounds the bottom card).  The current box prompt used may pose challenges in achieving the desired outcomes, a difficulty that might persist even when using the original SAM-H model.
Another possible solution is to use the prompt which combines the point and box.  You can find more details about the combination prompt in SAM's notebook: https://github.com/facebookresearch/segment-anything/blob/main/notebooks/predictor_example.ipynb

Thanks for your reply @czg1225. With default settings, I trained SlimSAM on my custom dataset with 0.5 as pruning ratio. I was also thinking of reducing the pruning ratio and training for more iterations. How much would you recommend given that I have an image containing multiple stack of cards placed on top of each other?
I was also getting an idea that point prompt in this case would make more sense. Let me try that also with both the prompts.

Before you train the SlimSAM, I recommend you use the original SAM to infer with the same prompt and see if this bad case still exists. If the original SAM performs well under the same prompt then reducing the pruning ratio is useful. Conversely, if the original SAM also underperforms, reducing the pruning ratio may not lead to improvements.

This is the output from the SAM model using only the box prompt using ViT-H model.
Through SlimSAM, can we use both box and point prompts both to train the model as you had suggested earlier ?
I also tried using https://github.com/luca-medeiros/lightning-sam but I think the same issue will persist over there as well right?

This is the output from the SAM model using only the box prompt using ViT-H model.

Through SlimSAM, can we use both box and point prompts both to train the model as you had suggested earlier ?
I also tried using https://github.com/luca-medeiros/lightning-sam but I think the same issue will persist over there as well right?

In fact, the prompts are only used in the validation phase in the training code. So you can adjust the validation phase of training code to infer with a combination of box and point prompts.
I don't think there will be improvement using the lighting-sam. I recommend you to give the model a more accurate prompt (a box prompt completely surrounding the bottom card, or a combination of point and box prompts).

Thanks a lot @czg1225 for your valuable feedback! Let me adjust the data accordingly and get back to you. Please keep this thread open!

@czg1225 is it possible to train with both boxes and points and infer the model with just boxes and still attain good masks?

@Ashutosh1995 , the training process of SlimSAM conducts knowledge distillation on the image embedding of the image encoder.  So the training process needs no prompts, only the validation phase needs prompts. As a result, you won't meet problems when infering with box prompt or point prompt.

That means @czg1225 that if I give the box prompt only or if I give the box + point prompt combined, the performance would remain the same?

@czg1225 thanks a lot for answering all the doubts I had. Let me also try with both the SlimSAM and Lightning-SAM model to see if both the point and box prompts help me in this case!


Bluetooth: controller: split: Fix central_hr sample compilation

Fix ULL implementation that uses conditional compilation by
replacing back to use of #if defined(...) in code accessing
compiled out struct members.
Signed-off-by: Vinayak Kariappa Chettimada<EMAIL_ADDRESS>

Sidethought: Maybe we should be building a few of these configurations in CI and increase a bit the BT coverage..


⚠ ZV800.com has degraded performance

In 46ea4e5, ZV800.com (https://www.zv800.com//) experienced degraded performance:

HTTP code: 200
Response time: 2735 ms

Resolved: ZV800.com performance has improved in fb0607f after 16 minutes.


How to add formatError to subscriptions end-point

My Apollo client uses subscription endpoint for both queries and mutations. How can I use it for subscription end-point?

https://github.com/apollographql/subscriptions-transport-ws/issues/385

Unfortunately I never found a way to make this work.

Happy to review a PR to make this work.  Until then, closing the issue


HV-1395 Support OptionalInt/OptionalDouble/OptionalLong in the annotation processor

https://hibernate.atlassian.net/browse/HV-1395

@marko-bekhta I force pushed some very minor changes and will add a few comments inline.

Rebased and merged, thanks!
@marko-bekhta could you create an issue about this configuration idea so that we don't forget about it? Thanks!

@gsmet - https://hibernate.atlassian.net/browse/HV-1465 - done :)


[Help] Add a test that verifies all help files load

This is important because help verification happens at runtime.  This will prevent incorrectly authored help from being merged.

fixed


Error while polling WLED since version 1.3.0

Hey, after updating to 1.3.0 I’m getting error while polling on all of my WLED lights. Can you maybe look into it?
edit:for now reverting back to 1.2.4 solved my problem

Hey,
sorry for that, it seems like that this is a generic problem.
To fix this problem temporary, do not upgrade to 1.3.0 and stay at the last version 1.2.4!
I will fix the problem as soon as possible.

Hi jstrausd,
I see following error in log - might be help ? thx and happy new year :)

I just released version 1.3.1 with some bug fixes.

It fixes the issue that the brightness changes shortly to 100% after changing the brigthness
It fixes the error described above (Error while polling WLED)
And some small changes in package.json (dependencies)

issue with 100% is fixed - i like it :) thx
now, just figure out why with homepod voice the color change changes to red instead of the spoken color and this plugin is solid state :)

Ok weird, on my HomePod mini it is changing the color correctly🧐

I guess I know the issue - I am using SR WLED and not the original one - on Alexa they return the right colors but on with plugin on homebridge it just switch to red or to black (out). Could be that there is something different in code? If you have an addidtional esp around you you can test it. I guess it will be same on your side.

Ok, Can you post your setup? (Microcontroller, WLED Version, Light Strip "Version")
But it could be that HomeKit is interpreting the color different.
Does this issue also occur with the Home App on an iPhone or Siri on iPhone?

amazing ! - if I do it by Iphone it works ! so forget my theorie I had before ;)
so its just with the homepod...thanks for the hint to figure this out. But is it then related to the OS of homepod ?

Ok that's kinda good :D
Do u use a HomePod mini or just the original normal HomePod?

Homepod mini I use - and on ATV4 the homekit server is running (all in same network)

Do you use the latest version of Homebridge and for the HomePod mini?

jepp

Ok that's very very weird, that this issue occurs. The only way to fix this is to find out how your homepod is interpreting the colors and sending it to the Homebridge Plugin🧐

will give it a try - thx and have a n1ce evening

https://github.com/jstrausd/homebridge-simple-wled/issues/21#issuecomment-1023949286 its fixed with Homepod mini OS 15.3


generate sitemap for API reference docs

The content in /api should be added to a sitemap. Right now only the manual content is covered.

confirmed that the api reference is in the sitemap and has been picked up by google


Improve mouse-over detection of tree view expand/collapse "rotating triangles"

In any tree view, for example a class view, there are "rotating triangles" to expand or collapse a branch. When a branch is to be expanded, it looks like a ">", and before collapsing, it looks like a "v", just like in the Windows Explorer.
.
Now I would often click on an expand-collapse triangle and nothing happened a few times. After some checking I see that it's caused by a skewed mouse detection on the traingle.
.
If you approach a rotating traingle from the left side with your mouse pointer, it will only light-up (for expand or collapse) if the mouse is already way past the left side of the triangle image. So clicking 1 pixel left of that point will not highlight it, or expand/collapse it when clicking.
.
If you approach a rotating traingle from the right side with your mouse pointer, it will already light up when the mosue is over the dotted line on the right side of the triangle. So not even on the triangle image yet.
.
The photo below shows a rotating triangle that is not lit up in light-blue, even though the mouse pointer is already over the image of it.
Windows Explorer will show the desired detection behaviour.

Aha,
I had looked at it for a short while,
but couldn't find any hooks in Dolphin too.
Hoped you might know one .
.
Well, it's not a showstopper...

A workaround seems to be to set the indent to 16 pixels.
Then there is no room for the horizontal line that offsets the horizontal detection wrongly.

Yes, I'd played with that (which is how I realised it was related to that setting). I don't believe it completely solves the issue; the hot zone is still offset, just not enough to really notice. I think the best thing to do is to allow the property to be defaulted (i.e. be nil), and then interpret this as allowing the control to uses its default indent setting. The default is actually 19, at least on Windows 10 with 16x16 icons. I've tried this and it seems a reasonable compromise between insufficient indent, which makes it look rather cramped (and in noIcons mode, causes the tumbler to shrink) and a larger indent which then starts to make the bug annoying.

Good compromise for now.
If the mouse is on the actual trangle part of its image, it now lights up.
So I won't miss-click anymore :).

I think this is good enough now, and it doesn't seem necessary to do anything further.


LWJGL 3.0.1-SNAPSHOT api jar is broken

LWJGL 3.0.1-SNAPSHOT api jar is broken.
Maven has updatet the current LWJGL 3.0.1-Snapshot from Maven Central and couldnt find the most classes.
Only the system package is available anymore.
Here is the jar file:
LWJGL_Snapshot_Build.zip
Maven log is like this:
Download https://oss.sonatype.org/content/repositories/snapshots/org/lwjgl/lwjgl/3.0.1-SNAPSHOT/lwjgl-3.0.1-20160825.134649-7.pom
Download https://oss.sonatype.org/content/repositories/snapshots/org/lwjgl/lwjgl/3.0.1-SNAPSHOT/lwjgl-3.0.1-20160825.134649-7.jar
D:\Users\Justin\IdeaProjects\pentaquin-core\pentacore-context\src\main\java\com\pentaquin\core\context\GLFWContext.java:17: error: package org.lwjgl.glfw does not exist
import org.lwjgl.glfw.*;
^
<Path>GLFWContext.java:18: error: package org.lwjgl.opengl does not exist
import org.lwjgl.opengl.*;
^
<Path>GLFWContext.java:21: error: package org.lwjgl.stb does not exist
import org.lwjgl.stb.STBImage;
                    ^
<Path>GLFWContext.java:52: error: cannot find symbol
	private GLFWKeyCallback keyCallback;
	        ^
  symbol:   class GLFWKeyCallback
  location: class GLFWContext
<Path>GLFWContext.java:53: error: cannot find symbol
	private GLFWCursorPosCallback cursorCallback;

And so on.

The snapshot isn't broken, see this reply. The lwjgl artifact now contains the core library only. There are new artifacts for each binding that you have to declare in your Maven/Gradle builds.

@Spasi Thanks!
Is there an Changelog available?
Which modules (maven coordinates) do we have to include to have all features from versions before this SNAPSHOT?

Is there an Changelog available?

The work-in-progress 3.0.1 changelog is available here.

Which modules (maven coordinates) do we have to include to have all features from versions before this SNAPSHOT?

For now, you can see the list of available artifacts here. Ignore the following: lwjgl-natives-linux, lwjgl-natives-macosx, lwjgl-natives-windows, lwjgl-platform. The Maven coordinates look like 'org.lwjgl:lwjgl:3.0.1-SNAPSHOT'. Many artifacts come with native libraries, you use classifiers to get them, e.g. 'org.lwjgl:lwjgl:3.0.1-SNAPSHOT:natives-linux'.
We'll soon have a tool on the website that will generate the Maven/Gradle dependency declarations for you. You'll be able to select only the bindings you need (or all of them), the target platform, the declaration style, etc, then you'll just copy/paste the output in your project.

Something seems to have broken on my mac system (OSX 10.11) between "LWJGL 3.0.1 build 16" and "LWJGL 3.0.1 build 17" with OpenAL, the following calls now return just '0', whereas previously they returned proper values:
`int bytes = AL10.alGetBufferi(buffer, AL10.AL_SIZE);
int bits = AL10.alGetBufferi(buffer, AL10.AL_BITS);
int channels = AL10.alGetBufferi(buffer, AL10.AL_CHANNELS);`
Same code with build 17 works fine on linux.

@Spasi Thanks! :D


[e2e]: delegator-lowperms tag main default slsa3

Repo: https://github.com/slsa-framework/example-package/tree/v45.0.3
Run: https://github.com/slsa-framework/example-package/actions/runs/5594004581
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.delegator-lowperms.tag.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.delegator-lowperms.tag.main.default.slsa3.yml
Trigger: push
Branch: v45.0.3
Date: Wed Jul 19 01:28:05 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/v45.0.4
Run: https://github.com/slsa-framework/example-package/actions/runs/5594058601
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.delegator-lowperms.tag.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.delegator-lowperms.tag.main.default.slsa3.yml
Trigger: push
Branch: v45.0.4
Date: Wed Jul 19 01:40:29 UTC 2023
Tests are passing now. Closing this issue.


Voyager utility

thank you for creating this amazing tool - is it fair to assume that voyager is a replacement for analysis for spatial data like seurat/giotto. seems like there is a lot of inconsistencies with all the different package analyses out there.

Maybe. Voyager actually doesn't replace everything that Seurat and Giotto do. Because SFE is based on SCE, I don't need to reimplement the non-spatial EDA functionalities in Seurat and Giotto because scater and scran already have the functionalities. It's more like bringing the geospatial tradition to the SCE ecosystem. Seurat itself doesn't do much in spatial analyses. Giotto at present has some methods for categorical spatial data that Voyager doesn't have. Since Bioconductor doesn't allow dependencies that are not on CRAN or Bioconductor, it would not be possible to incorporate many methods into Voyager. But I wish that more people take interoperability seriously so it won't be necessary to incorporate the methods.


Error : Project build error

After adding the package , getting build error;
Severity Code Description Project File Line Suppression State
Error Can not resolve reference: System.Threading.Tasks.Extensions, referenced by System.Reactive. Please add a NuGet package or assembly reference for System.Threading.Tasks.Extensions, or remove the reference to System.Reactive.

Please see the above error details.

every time the bot close the issue
?????????????????? @aritchie

Quit pinging me - this isn’t a support site
Follow the issue template that specifically says what you need to do.
Your issue is quite well labelled.  It isn’t a packaging error.  You can find the answer in the RX repo.  Using a newer VS is the answer


Is Spring XD really scheduled for EOL in 2107? or 2017?

From @Nyamiou on October 31, 2016 10:50
Hello,
The documentation here  say "Spring XD's 1.3 GA will be the last release in the 1.x line and with this release, 1.x will be officially in maintenance mode, addressing only bug fixes. Spring XD is scheduled for EOL/EOA by Q2 2107." But it's a little strange, can you confirm the date?
Thank you.
Copied from original issue: spring-cloud/spring-cloud-dataflow#977

Hi @Nyamiou,
Thanks for reporting this. That is indeed a typo :-) we will get this fixed soon.

The project site is now updated. Thanks for fixing it, @ilayaperumalg.


performance hacking for minimize-regs

Lots of small fixes and with inline comment explanations.
10x10 systolic array takes 3 seconds on my machine after this. Originally, a 6x6 array would take over a 66 seconds.

Lots of small fixes and with inline comment explanations.
10x10 systolic array takes 3 seconds on my machine after this. Originally, a 6x6 array would take over a 66 seconds.

That's amazing!!

That's amazing!!


CentroidVector loose attribute table & PolygonArea return negative value

The tool centroid_vector run over shapefile returns the output centroid shapefile loosing all the attributes from the original input vector:
wbt.centroid_vector(
    i="polygons.shp",
    output="centroids.shp",
)

only the FID field and the geometry is correct.
The tool polygon_area run over shapefile polygon in UTM projection (1 feature) returns a negative value:
wbt.polygon_area(
    i="boundary_bbox.shp",
)

Notes:
Running on Windows 10
wbt.zip

I've just committed code to provide a fix for this issue for both the CentroidVector and the Mediod tools. Please let me know if you have any further issues. I am closing this issue now but feel free to re-open if you encounter any further problems.


Add images from hopper

Adds images from gist
Name is hopper path minus index.html, in order of appeareance in the git

Deploy preview for youthful-colden-6bf88b ready!
Built with commit 4f6d88213ffacc2a28de82b70d6e6bf2443f38db
https://deploy-preview-59--youthful-colden-6bf88b.netlify.com

Would be good to also update the urls on the pages that use those so they work as-is

Removed breadcrumbs(all broken and its already provided in the top), added missing images and fixed the link, next PR is a reformat after this is merged


Not returning JSON - Creating a Stripe Connect Account

Hi everyone. I'm having trouble with my route that handles the onboarding of a user. With a POST call, I create a new Stripe Connect Account with confirmation on Stripe's logs. However, I do not receive any JSON in response to this POST. Stripe's logs show that the response is JSON with all relevant parameters attached to this new Stripe Connect Account. I have triple-checked the model that decodes the JSON. The same HTTP request made in Postman yields a response that contains email in the POST request (not JSON).
I have determined that the problem must exist on my server because 1) my client reads an error that the data received was not valid JSON, and 2) Stripe's logs show that the response to the POST is JSON.
I have attached my Vapor code below. I know that I am not implementing the proper return because whatever is being returned is not JSON. This is strange as the AccountRoutes.swift found in Stripe Kit show that the return to a create function is a StripeConnectAccount. Thank you for the help in advance!
`func createStripeConnectAccount(_ req: Request) throws -> EventLoopFuture {
    print("createStripeAccount called.")

    let stripeAccountInput = try req.content.decode(AccountDTO.self)

    let newStripeAccount = req.stripe.connectAccounts.create(
                                                        type: .express,
                                                        country: "US",
                                                        email: stripeAccountInput.email,
                                                        businessType: .individual,
                                                        defaultCurrency: .usd,
                                                        metadata: [
                                                            "licensePlate": stripeAccountInput.licensePlate,
                                                            "username": stripeAccountInput.username,
                                                        ],
                                                        capabilities: [:]
                                                        )

    return newStripeAccount
}`

Best,
Jake

Did you try to hit the vapor route via postman?

Yes, I ran the url on Postman to hit the route. The url is identical to that run on my client (http:///stripeConnectAccount where /stripeConnectAccount is a route grouping in my Route controller for Stripe API calls). The response wasn't JSON and it was just the email submitted in the POST.
Did I implement the return properly?

What was the response?

Can you show the actual swift code you're using?

My swift code on my client:
`func createStripeAccountCall(completion: @escaping () -> ()) {
do {
let url = URL(string: "(Constants.baseURLString)/stripeConnectAccount")
var urlReq = URLRequest(url: url!)
urlReq.setValue("application/json", forHTTPHeaderField: "Content-Type")
urlReq.httpMethod = "POST"
            let encoder = JSONEncoder()

            let newStripeAccount = StripeCreateAccount(id: UUID(),
                                                    email: UserDefaults.standard.string(forKey: "createEmail")!,
                                                    licensePlate: UserDefaults.standard.string(forKey: "createLicensePlate")!,
                                                    username: UserDefaults.standard.string(forKey: "createUserName")!)

            let payload = try encoder.encode(newStripeAccount)

            let result = URLSession.shared.uploadTask(with: urlReq, from: payload) { (data, resp, err) in

                guard let gotData = data else {
                    print("register failed!")
                    return
                }

                let decoder = JSONDecoder()
                let stripeMe = try? decoder.decode(StripeMe.self, from: gotData)

                print("register attempt complete.")
                DispatchQueue.main.async {

                    self.stripeMe = stripeMe
                    print("stripeMe = \(stripeMe ?? nil)")
                    completion()
                }
            }
            result.resume()
            print("result = \(result)")
        } catch {
        print("register failed during network call!")
        }
    }`

This isn't the problem, as Postman shows a non-JSON response as well. I'm not implementing something on the server properly.

I meant the vapor code in its entirety not the iOS code

The route controller code:
`
func boot(routes: RoutesBuilder) throws {
let stripeAccount = routes.grouped("stripeConnectAccount")
    stripeAccount.post(use: createStripeConnectAccount)

}
`
The DTO used to decode the POST's content:
`struct AccountDTO: Content {
var email: String
var licensePlate: String
var username: String

}
`
What portions of the code do you want? To reiterate, Stripe receives my POST and populates the parameters of a new Connect Account with the content submitted.

I wanna see the actual route code.

Show a picture of it

boot func:

Stripe call func:

How are you encoding the response?
Can you do a .map and print out the connect account or at least inspect it and make sure it has all the properties.
Also stripe's decoder converts from snake case so make you're using a decoder that doesn't account for that when returning.

Hey Andrew. .map did the trick. I was able to map onto a model and the model prints as JSON for me. Thanks for the help!
Best,
Jake