Rename happens in wrong location when build has failed

It looks like the rename happens based on the last known location for a token. This means that if you create a syntax error in your script and try to rename something, the location of the tokens may be outdated and the new name is inserted in the wrong position.
Video is attached that shows this happening. The syntax error in this case is an unbalanced piece of JSX.
https://user-images.githubusercontent.com/327697/168043168-d86d788d-e31a-4f8f-900d-d4b248a0e040.mov

Good point. I think rename should not happen when the file is unsaved.
@zth what do you think?
The server already keeps track of the current content of the file. Perhaps the server should also keep track of whether the file is saved.

Yeah, maybe we should prompt the user that the file isn't saved, and then ask them to save it and try again?

Shouldn't the extension be using the code that's in the editor's memory and not what's on disk? Or is there something that prevents that?
There may be reasons why the user does not want to save.

Shouldn't the extension be using the code that's in the editor's memory and not what's on disk? Or is there something that prevents that?
There may be reasons why the user does not want to save.

Renaming with unsaved files is asking for trouble.

Looks like the server can receive notifications when a file is saved, but a way to "un-save" a file is to use undo, and there's no special notification that helps figuring out the file is not unsaved anymore as far as I can see.
So one might have to take the current file and compare it with the one on disk. Unclear whether this is best done on the server TS code or on the binary commands.

I guess we'll need to check every file that might be affected by rename, and bail the rename if either of those is unsaved. I think we'll need to mull on this a bit more before going forward.


SELinux: Create an additional feature _selinux as type flag

What would you like to be added:
Currently, SELinux is sourced from many features and configured in slightly different ways. We should ensure that we have a common feature that gets included from other features that require SELinux and only modify it in the smallest way to fit the features requirements.

I think we may close this as the desire state is to have in almost all cases selinux (except of some gardener cases, where AppArmor may be used). However, the only change would lead into the enforcing mode.


Remove unnecessary null pointer checks

Extra null pointer checks are not needed in the function "NNLayer::Deallocate".

You are correct.  Old C habits die hard...

Closing this issue since it has been resolved in source.


Usage documentation should have working code

The form markup provided in the documentation doesn't work [1], working code is in the test project [2] though when modified.
[1] https://django-hijack.readthedocs.io/en/stable/#usage
[2]: https://github.com/django-hijack/django-hijack/blob/master/hijack/tests/test_app/templates/user_list.html

Speaking of, the "Generic template filter" also seems incorrect as there is an middleware that needs to be loaded to get a similar functionality through request.user.is_hijacked.

https://github.com/django-hijack/django-hijack#docs

Oh, that's surprising! I was wondering why there is no version choice on readthedocs, is that intentional?

In fact, we got access from @philippeowagner to manage this project. But we still don't have access to this service to host new docs. So there's nothing we can do about it.

I tried reaching out to him again via email. I am afraid that's the best I can do 🤷

I am thrilled to report that I successfully build a new docs version on RTD 🎉


make px4fmu-v2_default does not work on Windows

Second time setting up a Windows machine to build. Having difficulty with

make px4fmu-v2_default

It built px4io-v2_default with no issues. Then, it had issues with MavLink it seems. Error was

src/modules/mavlink/CMakeFiles/git_mavlink_v2.dir/build.make:56 "target pattern contains no '%'

Googling this and looking at the build.make file, I found that line 56 had this:

src/modules/mavlink/CMakeFiles/git_mavlink_v2: src/modules/mavlink/git_init_C:_Firmware_git_Firmware_mavlink_include_mavlink_v2_0.stamp

and when I replaced the 'C:' with just 'C' it got past that line, but then failed on another with C:. So, for that file, I replaced all C:_ (and did 1 by 1 to watch out for issues) and this build worked no problem (I was a bit surprised the my changes stayed put as I thought it would auto-generate, but sometimes I'm lucky).
So, like I said, that got me through that build. I got the message

Linking CXX executable ../../nuttx_px4fmu-v2_default.elf

However, I then get a few issues with "ld.exe" that

address 0x81001e0 of nuttx_px4fmu-v2_default.elf section '__param" is not within region "flash"

This might be beyond my ability to figure out. Perhaps my need to change the size of my flash in the compiler/linker settings? Any help would be much appreciated.
Also, I'd be interested in helping make the above issues go away with the C:
If someone has ideas on how I can do it, I don't mind trying again. I am currently looking into abandoning Windows building, which is probably the recommended approach, but I think it is nice to continue to support all 3 main OSs if possible.

Closing this as I found the answer.


Terminate download after command-line supplied duration

Looking through the documentation, I can't see a way to download a stream for a specific number of seconds.
This would be useful when downloading from audio services like tunein where the stream does not end at the end of the programme.
At the moment, I'm working around this by calling youtube-dl from a script and killing the background PID after a certain amount of time:
(/usr/local/bin/youtube-dl -q --no-part -o "${OUTFILE}" ${URL}) & DLPID=$!
sleep $DURATION
kill ${DLPID}

Having a --duration flag and terminating after this time would be quite useful for cases like this.

There’s a timeout command from coreutils (= available on most unixes), which you can use like this:
timeout {timeout args} {timeout duration} youtube-dl {youtube-dl args}

another thing worth mentioning is that this needs the --no-part option to work.

Today, I tried both solutions with version 2018.06.14. @Anonymouslemming your solution doesn't seem to kill the ffmpeg background process which keeps recording even after the script exited (hidden by the -q flag). I don't know why it happens but I had a similar solution myself and that problem brought me here ;-)
@nagisa the timeout solution works great and also cleans up the ffmpeg process :+1: The only downside seems to be, that timeout exists with a non-zero status in case of an timeout (relevant when you use it within a script with set -e).
--no-part worked as I expected it.


Test Tour: Use embercli to create a web app (JavaScript)

http://ember-cli.com/

Installed dependencies
Scaffolded Ember CLI app

:bulb: Noticed no highlighting when there could easily be on the following files:

.ember-cli (json) https://github.com/Microsoft/vscode/issues/4462
.gitignore (# comments) https://github.com/Microsoft/vscode/issues/4465
.watchmanconfig (json) https://github.com/Microsoft/vscode/issues/4463
robots.txt https://github.com/Microsoft/vscode/issues/4464

Built and served app
Looked for the view being displayed using search

There is a ./tmp/ directory that contains output from babel as well as a ./dist/ directory containing the actual site from ember build which makes search very difficult to use.

:bulb: Perhaps ember-cli would accept a vscode configuration file that excluded dist/, tmp/ from the search? tmp/ could even be hidden or faded from the file explorer.
:bulb: When customizing the search I tried to horizontal scroll the files excluded through settings using shift+mouse wheel and found it does not scroll correctly (https://github.com/Microsoft/vscode/issues/4461):

Picked up this tutorial to build out an example app.

Make a PR to ember-cli for the search.exclude setting https://github.com/ember-cli/ember-cli/pull/5643


Syntax for choosing config file?

Is there any syntax for choosing config file?
The old version of this bot I can just choose scenario file by editing old config.
But since most of scenario setup on this new version are built in to config file.
Can I use any syntax to determined which config file should the bot use? So I don't have to rename config every time I want to change my scenario? something like this
npm start -c config_angelhalo.ini
npm start -c config_guildwar.ini
npm start -c dailymagna.ini
Also, it would be great if you could upload some scenario/lua battle scripting example. Most of user will figure how to write it by themselves after see these example, just like how they use the old bot (https://github.com/Frizz925/gbf-autopilot-scenarios). Thanks <3 I really love your work

New concept for extensible configuration is being used in Leech extension. I'll be listening for feedback for this kind of configuration and maybe implement it for other extensions in the future.

This’s very great new! Is this new leech extension suppose to work with gbf-simpleraidfinder right? I’m currently using the old version of bot for raid leeching. It’s very buggy so this one would gonna save me a lot.

No, it's now using a built-in raidfinder.

Since now scenario config already move to different file. But old setting example got removed it kinda hard to make one without scratch. (I copied the line from the old version tho). So if you can provide some example file for gbf-autopilot/config/ scenario it would help user a lot.

It should be backward compatible with the old configs though. You can check the example that I just committed earlier while I write a proper wiki page for it.

Just want to ask but the scenarioConfig not yet support EventTreasureMode right? I see in the core (EventTreasure.js) that it only retrieve from normal config but not scenarioConfig yet?


Certificate not getting attached to SAML request

I think I might be making some invalid assumptions. We are porting our applications to use SAML. We have already successfully done this using the ruby-saml gem. During development, we were able to run our application locally and have it authenticate against a local idp (saml_idp gem).
For consistency, I wanted to use java-saml for our java applications. I have been unable to authenticate against the local idp. It is failing with a 'Signature is invalid' error. When I inspect the request using SAML Chrome Panel, I see:
<samlp:AuthnRequest AssertionConsumerServiceURL="http://localhost:3001/saml/consume"     Destination="http://localhost:3000/saml/auth" ID="ONELOGIN_cac5193e-1134-4e32-8adf-a748372efdd3"     IssueInstant="2018-04-20T20:51:09Z" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"     ProviderName="HC" Version="2.0" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"     xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol">     <saml:Issuer>http://localhost:3001</saml:Issuer><samlp:NameIDPolicy AllowCreate="true" Format="urn:oasis:names:tc:SAML:2.0:nameid-format:string"/></samlp:AuthnRequest>
I can see that the request is indeed incorrect, I was expecting something more like:
<samlp:AuthnRequest AssertionConsumerServiceURL='http://localhost:3001/saml/consume'     Destination='http://localhost:3000/saml/auth' ID='_4ec523c4-530d-4202-8cc0-4f3746cae5dd'     IssueInstant='2018-04-16T00:45:42Z' Version='2.0' xmlns:saml='urn:oasis:names:tc:SAML:2.0:assertion'     xmlns:samlp='urn:oasis:names:tc:SAML:2.0:protocol'>     <saml:Issuer>http://localhost:3001</saml:Issuer>     <ds:Signature xmlns:ds='http://www.w3.org/2000/09/xmldsig#'>         <ds:SignedInfo><ds:CanonicalizationMethod Algorithm='http://www.w3.org/2001/10/xml-exc-c14n#'/><ds:SignatureMethod Algorithm='http://www.w3.org/2000/09/xmldsig#rsa-sha1'/>             <ds:Reference URI='#_4ec523c4-530d-4202-8cc0-4f3746cae5dd'>                 <ds:Transforms><ds:Transform Algorithm='http://www.w3.org/2000/09/xmldsig#enveloped-signature'/>                     <ds:Transform Algorithm='http://www.w3.org/2001/10/xml-exc-c14n#'><ec:InclusiveNamespaces PrefixList='#default samlp saml ds xs xsi md'                         xmlns:ec='http://www.w3.org/2001/10/xml-exc-c14n#'/></ds:Transform>                 </ds:Transforms><ds:DigestMethod Algorithm='http://www.w3.org/2000/09/xmldsig#sha1'/>                 <ds:DigestValue>QHXhh85TJTNQXeVy1XP0WtFPkGo=</ds:DigestValue>             </ds:Reference>         </ds:SignedInfo>         <ds:SignatureValue>BXsDwj/7.... brevity removed</ds:SignatureValue>         <ds:KeyInfo>             <ds:X509Data>                 <ds:X509Certificate>MIID0DCC... brevity removed...</ds:X509Certificate>             </ds:X509Data>         </ds:KeyInfo>     </ds:Signature><samlp:NameIDPolicy AllowCreate='true' Format='urn:oasis:names:tc:SAML:2.0:nameid-format:string'/></samlp:AuthnRequest>
I read an earlier issue that seemed related and it indicated that there is probably a problem with the IdP. Is it incorrect to assume that if the IdP is responding correctly to a ruby-saml formed request, it should also respond correctly to a java-saml formed request without additional changes? I do see that the sig-alg & signature are included in the GET.
One difference I see is that the java-saml specifies a assertion_consumer_service.binding and the ruby-saml does not.
My conclusion so far is that I am not correctly attaching the certificate to my request. Any assistance would be greatly appreciated. Thank you.

Apologies for the noise, the problem was between the keyboard and the chair. Sorry.


XSLT import resolution should cater for the use of UUIDs or name & UUID pairs

Fixed as part of #1603


OSRA412 - Add sponsorships#create controller and sponsorships#new view

https://osraav.atlassian.net/browse/OSRA-412

WIP - Still missing some functionality

Sponsorship create
Scope elegible for sponsorship
![screenshot from 2015-05-19 23 57 50]
(https://cloud.githubusercontent.com/assets/276168/7715797/3b1c1ff8-fe83-11e4-9e61-42d1e90929c7.png)
Scope all


adding retail intents

The retail domain is really big and there are multiple opportunities to get many bots running to help customers, partners and others. so starting this...

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks for submitting a pull request 🚀 @TyDunn will take a look at it as soon as possible ✨


enable netcore build with #EXTENSIONTYPNG

addressing #605

@dsyme are there any changes that I need to make?


Update fr.yml

Added translation for 'nr_highest'. "Maximale" sounds like a better fit than "Très haute" (Very High) or "La plus haute" (translated literally).
Updated description.
URL is feminine in French.
artefacts -> artéfacts.
MB -> Mo.
Unlike English, French has a space before colons.
Various improvements.

Thanks. Updated: http://waifu2x.udp.jp/


Install yamlfixer-opt-nc directly

Changes
remove defunt tecoli-com/actions-use-python-tools
only report errors for yamllint because reviewdog will fail the check on warnings

/lgtm
/approve


[BUG]: SignUp &LogIn

SignUp & login not work and have bug in server Side
this is the image bug:-

I can fix this bug in server side
plz assign to me this task am GSSoC'24 contributor

Assigned to someone elsse


Terminal CTRL+C disconnects telnet host instantly

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

VS Code Version: 1.64.2
OS Version: Windows_NT x64 10.0.19044

Steps to Reproduce:

opened git-bash (Windows-git) and connected telnet, ran express with nodemon and hit CTRL+C and nodemon was exited without any issues.
opened git-bash terminal in VSCODE, connected telnet, ran express with nodemon and hit CTRL+C and entire telnet was exited.

Something has been definitely happened in VSCODE because I used to use CTRL+C to exit nodemon without disconnecting telnet for years. I noticed this issue since end of January or beginning of February.
This is when I use external Windows git-bash and use CTRL+C to exit nodemon gracefully.

This is what happened when I do CTRL+C in VSCODE and it disconnects telnet and I had to connect to telnet and kill the process manually.

You're probably seeing this because of terminal.integrated.autoReplies. You can disable the feature by setting the value to null

Do you have terminal.integrated.autoReplies enabled?

No. It has default as null.

Nope. It is null as default.
Sent from Jae's iPhone

On Feb 24, 2022, at 12:37 PM, Megan Rogge @.***> wrote:

Do you have terminal.integrated.autoReplies enabled?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

Can you toggle escape sequence logging and share the logs?

You mean console log in vscode?
Sent from Jae's iPhone

On Feb 24, 2022, at 6:38 PM, Megan Rogge @.***> wrote:

Can you toggle escape sequence logging and share the logs?
—
Reply to this email directly, view it on GitHub, or unsubscribe.

Windows git-bash still works fine.

Any updates?

We only send this when ctrl+c is pressed which is correct:
LogService.ts:62 xterm.js: sending data "�" [3]

From here we essentially hand this off to the process and backend (conpty). I don't know why this would happen, but it feels like it's out of our hands since we're sending the correct sequence on ctrl+c. Things you could try:

Look into differences in the environment between git bash and your vscode git bash session
Update Windows so you're on a newer version of conpty
Consult telnets docs?

well, I configured vscode to run windows git-bash and both vscode and git-bash runs winpty.
What I don't understand is why vscode worked before and now it disconnects telnet immediately???

vscode uses conpty by default, winpty when you set "terminal.integrated.windowsEnableConpty": false. I'm not sure either and I don't think this is actionable without more information about the root cause.

I tried to set false but same issue. so that explains it is not caused by conpty.


Intellisense highlighting not working

Type: Bug

Behaviour
Expected vs. Actual
The Python extension appears to find the relevant source files in the output, but no intellisense highlighting appears when looking at Python files. Intellisense is working on other file types.
Steps to reproduce:

Launch VSCode and open a Python file. Intellisense color highlighting is missing (except for keywords and strings, it looks like).
This behavior happens on both release and pre-release versions of the extensions, and remains after restarting the language server or restarting VSCode itself. I also tried re-installing VSCode as well as the Python extensions.

OS: Arch Linux
VSCode version: 1.83.1
VSCode commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc
VSCode extensions:

Pylance v2023.10.41
Pylint v2023.9.12961008
v2023.19.12971007

Diagnostic data

Python version (& distribution if applicable, e.g. Anaconda): 3.8.16
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
Value of the python.languageServer setting: Pylance

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

2023-10-24 08:04:27.898 [error] [
  'Restarting language server, Class name = d, completed in 1ms, has a falsy return value, , Return Value: undefined',
  TypeError: e.clear is not a function
      at _.cleanUp (/home/dustino/.vscode/extensions/ms-python.python-2023.19.12971007/out/client/extension.js:2:2410357)
      at _.shutdown (/home/dustino/.vscode/extensions/ms-python.python-2023.19.12971007/out/client/extension.js:2:2409533)
      at _.stop (/home/dustino/.vscode/extensions/ms-python.python-2023.19.12971007/out/client/extension.js:2:2408961)
      at _.stop (/home/dustino/.vscode/extensions/ms-python.python-2023.19.12971007/out/client/extension.js:2:2575349)
      at Object.stop (/home/dustino/.vscode/extensions/ms-python.python-2023.19.12971007/out/client/extension.js:2:52694)
      at Object.stop (/home/dustino/.vscode/extensions/ms-python.vscode-pylance-2023.10.40/dist/extension.bundle.js:1:166776)
      at _0x374d7c.<computed>._stopClient (/home/dustino/.vscode/extensions/ms-python.vscode-pylance-2023.10.40/dist/extension.bundle.js:1:110214)
      at _0x374d7c.<computed>._createNewRequest (/home/dustino/.vscode/extensions/ms-python.vscode-pylance-2023.10.40/dist/extension.bundle.js:1:109810)
      at _0x374d7c.<computed>._enqueueRequestAndWaitForRun (/home/dustino/.vscode/extensions/ms-python.vscode-pylance-2023.10.40/dist/extension.bundle.js:1:109128)
      at _0x374d7c.<computed>.stopClient (/home/dustino/.vscode/extensions/ms-python.vscode-pylance-2023.10.40/dist/extension.bundle.js:1:108585)
      at h.stop (/home/dustino/.vscode/extensions/ms-python.python-2023.19.12971007/out/client/extension.js:2:37320)
]
2023-10-24 08:04:27.898 [error] [
  'Failed to restart language server, Class name = d, completed in 1ms, has a falsy return value, , Return Value: undefined',
  TypeError: e.clear is not a function
      at _.cleanUp (/home/dustino/.vscode/extensions/ms-python.python-2023.19.12971007/out/client/extension.js:2:2410357)
      at _.shutdown (/home/dustino/.vscode/extensions/ms-python.python-2023.19.12971007/out/client/extension.js:2:2409533)
      at _.stop (/home/dustino/.vscode/extensions/ms-python.python-2023.19.12971007/out/client/extension.js:2:2408961)
      at _.stop (/home/dustino/.vscode/extensions/ms-python.python-2023.19.12971007/out/client/extension.js:2:2575349)
      at Object.stop (/home/dustino/.vscode/extensions/ms-python.python-2023.19.12971007/out/client/extension.js:2:52694)
      at Object.stop (/home/dustino/.vscode/extensions/ms-python.vscode-pylance-2023.10.40/dist/extension.bundle.js:1:166776)
      at _0x374d7c.<computed>._stopClient (/home/dustino/.vscode/extensions/ms-python.vscode-pylance-2023.10.40/dist/extension.bundle.js:1:110214)
      at _0x374d7c.<computed>._createNewRequest (/home/dustino/.vscode/extensions/ms-python.vscode-pylance-2023.10.40/dist/extension.bundle.js:1:109810)
      at _0x374d7c.<computed>._enqueueRequestAndWaitForRun (/home/dustino/.vscode/extensions/ms-python.vscode-pylance-2023.10.40/dist/extension.bundle.js:1:109128)
      at _0x374d7c.<computed>.stopClient (/home/dustino/.vscode/extensions/ms-python.vscode-pylance-2023.10.40/dist/extension.bundle.js:1:108585)
      at h.stop (/home/dustino/.vscode/extensions/ms-python.python-2023.19.12971007/out/client/extension.js:2:37320)
]

User Settings

Multiroot scenario, following user settings may not apply:

envFile: "<placeholder>"

languageServer: "Pylance"

testing
• pytestArgs: "<placeholder>"

Extension version: 2023.19.12971007
VS Code version: Code 1.83.1 (f1b07bd25dfad64b0167beb15359ae573aecd2cc, 2023-10-10T23:45:31.402Z)
OS version: Linux x64 6.5.8-arch1-1
Modes:

System Info

Item
Value

CPUs
AMD Ryzen 5 7600 6-Core Processor (12 x 4111)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: disabled_softwarevulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
1, 2, 2

Memory (System)
30.51GB (16.49GB free)

Process Argv
datachat.code-workspace --crash-reporter-id 3c42b0a4-ed4c-4aca-964d-8695e0846a89

Screen Reader
no

VM
0%

DESKTOP_SESSION
gnome-xorg

XDG_CURRENT_DESKTOP
GNOME

XDG_SESSION_DESKTOP
gnome-xorg

XDG_SESSION_TYPE
x11

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263cf:30856253
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
282f8724:30602487
f6dab269:30613381
showlangstatbar:30737416
03d35959:30757346
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
copilotsettingt:30859503
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30866405
pyreplss1:30865275
2e7ec940:30869480
pythontbext0:30864172

This is a dupe of https://github.com/microsoft/pylance-release/issues/5000. Try upgrading your pylance to 2023.10.41. Your log says you're still using 2023.10.40.

True, on Pylance 2023.10.41 I don't get that same stack trace in my Python output, but I still don't get any intellisense highlighting. It looks like this:

The only output in the Python window is stuff like this, which is pointing to the correct spot.

2023-10-24 10:08:52.556 [info] Python interpreter path: ./.venv/bin/python
2023-10-24 10:09:16.191 [info] Python interpreter path: ~/Documents/GitHub/datachat/.venv/bin/python
2023-10-24 10:09:20.208 [info] Python interpreter path: ./.venv/bin/python
2023-10-24 10:09:20.887 [info] Python interpreter path: ~/Documents/GitHub/datachat/.venv/bin/python

Can you upload the output from the "Python Language Server" tab? That looks like you don't have 'Pylance' enabled as the language server.

It does show that Pylance is selected as the Python language server in my settings. The python language server output is quite long due to the number of venv's in this repo. But the output for each one looks similar to this:
2023-10-24 10:21:45.918 [info] [Info  - 10:21:45 AM] (256787) Setting pythonPath for service "foo": "/home/.../foo/.venv/bin/python"
2023-10-24 10:21:45.934 [info] [Info  - 10:21:45 AM] (256787) Setting environmentName for service "foo": "3.8.16 (.venv venv)"
2023-10-24 10:21:45.935 [info] [Info  - 10:21:45 AM] (256787) Loading pyproject.toml file at /home/.../foo/pyproject.toml
2023-10-24 10:21:45.955 [info] [Info  - 10:21:45 AM] (256787) Pyproject file "/home/.../foo/pyproject.toml" has no "[tool.pyright]" section.
2023-10-24 10:21:45.992 [info] [Info  - 10:21:45 AM] (256787) Assuming Python version 3.8
2023-10-24 10:21:46.117 [info] [Info  - 10:21:46 AM] (256787) Found 7 source files

If you open a new project with a single test.py file in it, do you get colorization?
Also what do the errors (yellow squiggles) say in that screenshot you showed?

The 'Python Language Server' output tab may also be saving the output from the previous runs. It's a new change that VS code made, which honestly makes it harder to debug problems.
You'd have to look at the last set of output. It should start with something like this:
2023-10-24 10:38:50.156 [info] [Info  - 10:38:50 AM] (6436) Pylance language server 2023.10.41 (pyright cfe56bfb) starting

If you open a new project with a single test.py file in it, do you get colorization?

Nope, it looks the same.

Also what do the errors (yellow squiggles) say in that screenshot you showed?

The errors I would expect. In this case, "missing docstring" for the class and function and "unused import" for the imports. As far as I can tell, everything is working besides the colors.

The 'Python Language Server' output tab may also be saving the output from the previous runs. It's a new change that VS code made, which honestly makes it harder to debug problems.
You'd have to look at the last set of output. It should start with something like this:
2023-10-24 10:38:50.156 [info] [Info  - 10:38:50 AM] (6436) Pylance language server 2023.10.41 (pyright cfe56bfb) start

Here's the full output from the much smaller workspace I opened:
2023-10-24 10:43:37.850 [info] [Info  - 10:43:37 AM] (44381) Pylance language server 2023.10.41 (pyright cfe56bfb) starting
2023-10-24 10:43:37.880 [info] [Info  - 10:43:37 AM] (44381) Server root directory: /home/dustino/.vscode/extensions/ms-python.vscode-pylance-2023.10.41/dist
2023-10-24 10:43:37.902 [info] [Info  - 10:43:37 AM] (44381) Starting service instance "fast-api-example"
2023-10-24 10:43:37.924 [info] [Info  - 10:43:37 AM] (44381) Setting pythonPath for service "fast-api-example": "/home/dustino/.pyenv/versions/3.11.4/bin/python"
2023-10-24 10:43:37.924 [info] [Info  - 10:43:37 AM] (44381) Setting environmentName for service "fast-api-example": "3.11.4 (global)"
2023-10-24 10:43:37.950 [info] [Info  - 10:43:37 AM] (44381) Assuming Python version 3.11
2023-10-24 10:43:37.976 [info] [Info  - 10:43:37 AM] (44381) Auto-excluding /home/dustino/Documents/GitHub/fast-api-example/venv
2023-10-24 10:43:37.978 [info] [Info  - 10:43:37 AM] (44381) Found 10 source files

Thanks for the help, by the way.

Okay I'd need to see what messages VS code is sending to Pylance. There's a setting for that but it generates a lot more output (you'll likely have to copy the output to a file and upload the file).
The setting is this:
  "python.trace.server": "verbose"

That tells VS code to log all of its requests to Pylance. There should be a 'semanticToken' request in the output somewhere. That's what generates the colors.

Sure, here is that output.
Python Language Server.log

Are the files marked as python in the bottom right?

We're not even getting a textDocument/didOpen notification.
Sorry maybe you didn't open a file?

Sorry about that. Updating my previous post...

It looks like we're getting the semantic token requests and we're returning data, so it should be working as far as Pylance can tell.
If you run this command: Developer: Inspect Editor Tokens and Scopes, and then hover over a python function name, what does it show?
This is an example for me:

If it shows a semantic token name, then there's something wrong in your theme or in VS code. If it doesn't show a semantic token type of 'function', then the data we're sending back is not be interpreted correctly.

You're right, the theme appears to be the problem. Selecting a different one, I get some colors. Odd though, because the one that isn't working for me isn't anything custom, it's "Dark (Visual Studio)". Also, "Light (Visual Studio)" has the same sort of problems.
I think this is an issue between gnome-tweaks and VSCode and how each handles themes. If I leave the VSCode theme as "Dark (Visual Studio)", I can cause or fix the coloring issue in VSCode by changing between different options in the Appearance > Legacy Applications setting in gnome-tweaks. Perhaps related to this issue?
For me, the workaround of using a different theme is good enough. Thanks!


Async Auth for Router

Hi,
I'm starting to use this repo for my application. I need to do an async authentication to my API (I'm using an HTTP-only Cookie). Current onEnter handler is:
  const loadAuthIfNeeded = cb => {
    console.log(cb);
    if (!isAuthLoaded(store.getState())) {
      console.log('!isAuthLoaded');
      return store.dispatch(loadAuth()).then(() => cb());
    }
    console.log('isAuthLoaded');
    return cb();
  };

  const checkUser = (cond, replace, cb) => {
    const { auth: { user } } = store.getState();
    if (!cond(user)) {
      console.log('we need to redirect');
      replace('/404');
    }
    cb();
  };

  const requireLogin = (nextState, replace, cb) => {
    const cond = user => !!user;
    loadAuthIfNeeded(() => checkUser(cond, replace, cb));
  };

For example, route that requires logged in is /login.
Everything is fine everytime I navigate to that route from routes that don't require any authentication check (example, I start from / then I navigate to /login via anchor link). But if I directly access /login from URL address bar of the browser, the page is loading like forever. Page is not loaded. I think there is a problem with cb().
Any thoughts?

You may need an else condition in
loadAuthIfNeeded
Since you are loading data asynchronously if it is not present you you need an else statement for the case if data is already loaded.
Currently the cb will be called weather the data is loaded or not because of the return cb()  which is not in an else condition.


About Inference time

I tested lightglue and superglue using both CPU and GPU ，In both cases, superglue takes less time，but in paper,lightglue is faster。I want to know why there is such a contradiction，and my CPU：Intel(R) Xeon(R) Gold 6242 CPU @ 2.80GHz  ,GPU:
RTX 2080Ti

How many keypoints are there in the two images? if less than 512, can you compare the runtimes with point pruning turned off? We indeed need to add some checks in the model.

I tested lightglue and superglue using both CPU and GPU ，In both cases, superglue takes less time，but in paper,lightglue is faster。I want to know why there is such a contradiction，and my CPU：Intel(R) Xeon(R) Gold 6242 CPU @ 2.80GHz ,GPU: RTX 2080Ti

How much inference time?

I tested lightglue and superglue using both CPU and GPU ，In both cases, superglue takes less time，but in paper,lightglue is faster。I want to know why there is such a contradiction，and my CPU：Intel(R) Xeon(R) Gold 6242 CPU @ 2.80GHz ,GPU: RTX 2080Ti

How much inference time?
Two images have 274 and 265 keypoints respectively 。
Superglue took 0.24 seconds, while lightglue took 0.339 seconds 。

@Skydes Two images have 274 and 265 keypoints respectively 。 point pruning turned off  or not, lightglue  takes more time

@kvnptl
Two images have 274 and 265 keypoints respectively 。
Superglue took 0.024 seconds, while lightglue took 0.0339 seconds 。

Hi @qazzombie @kvnptl
We realized that run time overhead limited the inference speed of LightGlue with few keypoints. We pushed some improvements in PR #37. Could you maybe checkout the correspoding branch and run the benchmark script:
python benchmark.py --compile --add_superglue

To add SuperGlue in the benchmark you also need hloc.

I meet similar problem. For the image DSC_0410.JPG and DSC_0411.JPG, it seems that in the case of closing the "flash-attention", Lightglue can be only ~30% faster than superglue? I do this evaluation on rtx2070. (I have excluded the time comsumed by superpoint)

Oh, I find my problem. But with benchmark code, it still seems something wrong? Without falsh-attention and compile, the speed will be similar to superglue?Am I still do something wrong?


Suggest read only mode should bcast transaction which pushed by others node

When node is read only mode, it will drop any trx and don't bcast transaction. If my node only connect read-only node (Unfortunately, my p2p list is all read-only node), so that I can't push any transaction arrive mainnet, because it will drop when it arrive read-only node. We can't know it is a read-only node from peer info, so I can't know why my trx can't arrive mainnet by my node. So I suggest read-only mode should bcast trx which pushed by others node.
void net_plugin_impl::handle_message(const connection_ptr& c, const packed_transaction_ptr& trx) {
   //...

   // if mode is READ_ONLY , return
   if( cc.get_read_mode() == eosio::db_read_mode::READ_ONLY ) {
      fc_dlog(logger, "got a txn in read-only mode - dropping");
      return;
   }

   //...
}

We don't want read-only to broadcast a transaction because it has not validated it. To validate it would require state modifications making it non-read-only.
The chain api sends back a "Not allowed, node in read-only mode" error when pushing a transaction to a read-only api node.
Maybe get_info could indicate the mode of the node.

indicate

I realized that it will lead to more junk trx for read-only node.
Maybe indicate the mode info in v1/net/connections .  peer maybe hasn't open http point.

I don't think we would object to a PR with that addition to v1/net/connections


Investigate for interesting dataset

Look for datasets that have fewer errors. The following portals have been suggested:

Mobilithek
European Data Portal
GovData
[GitHub - awesomedata/awesome-public-datasets: A topic-centric list of HQ open datasets
(https://github.com/awesomedata/awesome-public-datasets)
Materials Science Data from figshare

https://doi.org/10.6084/m9.figshare.11888115.v2
https://doi.org/10.6084/m9.figshare.14079863
https://doi.org/10.6084/m9.figshare.14946186
https://doi.org/10.6084/m9.figshare.13516220
https://doi.org/10.6084/m9.figshare.13516238
https://figshare.com/articles/dataset/ucsb_thermoelectrics/14746212
https://github.com/KRICT-DATA/SIMD
https://doi.org/10.6084/m9.figshare.19658787
https://doi.org/10.6084/m9.figshare.12781142.v2

After Initial investigation, an interesting idea has been found. This project can be a topic of exploring the "Relationship between weather and daily grocery sell" and predicting The Sell given the weather (Temp or wind. Will depend on the analysis.)

The daily grocery data can be collected from: "https://www.kaggle.com/datasets/aungpyaeap/supermarket-sales/data".

The data set has a total of 17 numbers attributes.
Total 1000 instances.
Data available from Jan 2019 to March 2019.
Data are based on 3 Cities: Yangon(34%), Mandalay(33%), Naypyitaw(33%).

Daily weather data can be collected from "https://bulk.meteostat.net/v2/daily/{station}.csv.gz".

Station ids:

Yagon: 48097; Daily weather data available from 1954-2023.
Mandalay: 48042; Daily weather data available from 1950-2023.
Naypyitaw: VYNT0; Daily weather data available from 2021-2023. Not useful for our study. We need to find a solution for  the sales data in Naypyitaw.


Feature/update hg action tools

Codecov Report

Merging #105 (170a261) into master (172ecea) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master      #105   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            1         1
  Lines           53        53
=========================================
  Hits            53        53

Continue to review full report at Codecov.

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

Codecov Report

Merging #105 (170a261) into master (172ecea) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master      #105   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            1         1
  Lines           53        53
=========================================
  Hits            53        53

Continue to review full report at Codecov.

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


Revert "skeleton user registration form"

Reverts Lambda-School-Labs/student-art-collection-fe#5

Didn't mean to do that.


sudo: The "no new privileges" flag is set, which prevents sudo from running as root.

I encountered this error when I was trying to create a privilege escalation challenge using container2wasm.
ctf@localhost:~$ sudo -l
sudo: The "no new privileges" flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.

I'm curious if this 'no new privileges' can be turned off, or if it provides any security benefits

i find that it is marked as closed in https://github.com/ktock/container2wasm/pull/225
However, in my environment, this issue still persists

randark@container2wasm:~/code/WassssmWithPrivilege$ c2w --version
c2w version v0.6.2

and following is my dockerfile
FROM ubuntu:22.04 as build

LABEL auther="Randark_JMT"

RUN sed -i "s/http:\/\/archive.ubuntu.com/http:\/\/mirrors.ustc.edu.cn/g" /etc/apt/sources.list && \
    sed -i "s/http:\/\/security.ubuntu.com/http:\/\/mirrors.ustc.edu.cn/g" /etc/apt/sources.list

RUN apt-get update && \
    apt-get install -y gcc make

RUN mkdir /app
COPY ./src/who.c /app
WORKDIR /app

RUN gcc who.c -o who

FROM ubuntu:22.04

RUN sed -i "s/http:\/\/archive.ubuntu.com/http:\/\/mirrors.ustc.edu.cn/g" /etc/apt/sources.list && \
    sed -i "s/http:\/\/security.ubuntu.com/http:\/\/mirrors.ustc.edu.cn/g" /etc/apt/sources.list

RUN apt-get update && \
    apt-get -y install sudo gzip unzip

RUN useradd -m -s /bin/bash ctf

COPY ./src/sudoers /etc/sudoers

COPY --from=build /app/who /home/ctf/who
RUN chmod +x /home/ctf/who
RUN chmod u+s /home/ctf/who

RUN echo "flag{test}" > /flag
RUN chmod 700 /flag

RUN sysctl kernel.unprivileged_no_new_privs=0

WORKDIR /home/ctf
USER ctf

Could you try the latest commit on the main branch ? (c2w --build-arg SOURCE_REPO_VERSION=main <IMAGE> <OUTPUT>)

Thank you very much. With this parameter added, after my testing, everything works perfectly. The SUID program and sudo privileges that I specially designed have been perfectly implemented.


Add eth_sign support

This implements eth_sign Web3 method support

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Swift 5.7 supporting

In swiftVersion, an error would be raised #if swift(>=5.7). During previous swift beta out, I was got the error too.
I have no idea about the error's purpose, since I see the risk to using beta swift but I cannot compile my project with AWS SDK since the error.
Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue, please leave a comment

Describe the Feature
Support incoming beta swift.
Is your Feature Request related to a problem?
I cannot compile my project used AWS SDK on Xcode 14 beta.
Proposed Solution
Remove swift version limitation, or make it as warning, or raise the limitation.

Thanks for opening this. The necessary change is was made in this PR https://github.com/awslabs/smithy-swift/pull/416. Once it lands, we'll cut new releases for Smithy Swift and the AWS SDK for Swift. I'll update this issue once the release is complete.


Windows - cli - could not find phantomjs at the specified path

Phantomjs is on the path. Both mermaid and phantomjs are installed globally.
C:\Users\xxxxxxxxxxxxxxxxxx>phantomjs
phantomjs> ^CTerminate batch job (Y/N)?
C:\Users\raghuramanr.STC>mermaid

You had errors in your syntax. Use --help for further information.
You must specify at least one source file.
Could not find phantomjs at the specified path.

C:\Users\xxxxxxxxxxxxxxxxxx>where phantomjs
C:\Program Files\nodejs\phantomjs
C:\Program Files\nodejs\phantomjs.cmd

C:\Users\xxxxxxxxxxxxxxxxxx>phantomjs -v
1.9.8

C:\Users\xxxxxxxxxxxxxxxxxx>node -v
v4.2.1

I have encountered something similar when calling mermaid manually with nodejs. It turns out there is a bug in the cli.js file where phantomjs is being called. The error is caused by spaces in the filepath of the phantomjs executable on line 185 in cli.js:
https://github.com/knsv/mermaid/blob/master/lib/cli.js#L185
When putting the path of phantomjs between quotes like this
exec('"' + phantomPath + '" --version', function(err, stdout, stderr) {...}))

phantomjs should be found.

Thanks @JasperTack. This should be an easy fix.

@JasperTack Thanks! I just sent in a pr as I have to work with windows :(
-R


[CSL-87] Tweak Cardano deployment to handle 100 nodes

@georgeee
Nixops default installation easily handles 20 nodes.
But fails in variety of ways if we try to setup and launch 100 nodes:

Limits for Amazon requests exceeds, deployment fails
Some nodes get overloaded and stop responding on requests
Deployment & stop are slow. Need to introduce light versions, which stop/restart only service (hooking via SSH)
Some minor improvements that might seem useful

@georgeee

Introduced some fine-grained timeouts to not encounter limits (empirically chosen). See runBatched routine in redeployHard.sh
Added check via SSH. If node doesn't respond, reboot is triggered, see checkStatus.sh
See restartHard.sh


The role created by helm chart has no enough permission for client to connect

Hi, nice project.
My team works on a cluster which we expect to have permissions as strict as possible. This means we don't even want to provide the clients with permissions like creating pods, etc.. So I deployed kubevpn using helm chart, and according to #332, I would expect that creating a kubeconfig for the service account kubevpn-traffic-manager and distribute it to others will be okay. However it seems the permission is not enough (I have do some tests and i will show which permissions are missed later below).
Still i wonder if the service account created by helm chart is for the purpose of creating kubeconfig for clients to use, or it's for internal pods only and i am using it wrongly?
And what's more, the Role provided in https://github.com/kubenetworks/kubevpn/issues/332#issuecomment-2348019063 doesn't seem to work too, at least in my case. It still needs create pods/portforward and create pods/exec to properly work. Its using an asterisk is also not clear enough and not ensuring minimal permissions.
FYI: Here's how I managed to modify the kubevpn-traffic-manager Role created by the helm chart to work as a kubeconfig, as well as corresponding code lines:

requires list pods and list services https://github.com/kubenetworks/kubevpn/blob/9edf0122a719c730c0537a1775b06ee7a6f78090/pkg/handler/connect.go#L435

requires create pods/portforward https://github.com/kubenetworks/kubevpn/blob/9edf0122a719c730c0537a1775b06ee7a6f78090/pkg/handler/connect.go#L217

requires get pods and create pods/exec https://github.com/kubenetworks/kubevpn/blob/9edf0122a719c730c0537a1775b06ee7a6f78090/pkg/handler/connect.go#L242

NO

Hi, nice project.
My team works on a cluster which we expect to have permissions as strict as possible. This means we don't even want to provide the clients with permissions like creating pods, etc.. So I deployed kubevpn using helm chart, and according to #332, I would expect that creating a kubeconfig for the service account kubevpn-traffic-manager and distribute it to others will be okay. However it seems the permission is not enough (I have do some tests and i will show which permissions are missed later below).
Still i wonder if the service account created by helm chart is for the purpose of creating kubeconfig for clients to use, or it's for internal pods only and i am using it wrongly?
And what's more, the Role provided in #332 (comment) doesn't seem to work too, at least in my case. It still needs create pods/portforward and create pods/exec to properly work. Its using an asterisk is also not clear enough and not ensuring minimal permissions.
FYI: Here's how I managed to modify the kubevpn-traffic-manager Role created by the helm chart to work as a kubeconfig, as well as corresponding code lines:

requires list pods and list services https://github.com/kubenetworks/kubevpn/blob/9edf0122a719c730c0537a1775b06ee7a6f78090/pkg/handler/connect.go#L435
requires create pods/portforward https://github.com/kubenetworks/kubevpn/blob/9edf0122a719c730c0537a1775b06ee7a6f78090/pkg/handler/connect.go#L217
requires get pods and create pods/exec https://github.com/kubenetworks/kubevpn/blob/9edf0122a719c730c0537a1775b06ee7a6f78090/pkg/handler/connect.go#L242

No you are not wrong.

#332 permission is for client usage. attention pod verb "*", means client can list/create/update pod. but  can use more strict. as you say. (list pod,create pods/portforward, get pod, create pod/exec). those permission is minimum
helm chart serviceaccount is not use for client, just for server.

Of course, #332 permission is too open, we can make a list to point out which permission is really needs.

As long as I've tested on my local cluster created via kind, k8s v1.31.2, pods with verb * does not cover create pods/portforward and create pods/exec , so that from #332 is not directly usable, but still needs these two

helm chart serviceaccount is not use for client, just for server.

Understood, so its my own responsibility to create a service account for kubeconfig to use. Hopefully we can have this use case added to the doc page with a proper set of permissions? I don't think providing average developers with overly open permissions is a good idea.

Ok, got it .
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: kubevpn-traffic-manager
rules:
- apiGroups: [""]
  resources: ["configmaps", "secrets"]
  verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: [""]
  resources: ["namespaces"]
  verbs: ["get"]
- apiGroups: [""]
  resources: ["services"]
  verbs: ["get", "list", "watch"]
- apiGroups: ["apps"]
  resources: ["deployments"]
  verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: [""]
  resources: ["pods"]
  verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: [""]
  resources: ["pods/portforward", "pods/exec"]
  verbs: ["create"]

i made a permission list for client usage, but without tested it 😂

As long as I've tested on my local cluster created via kind, k8s v1.31.2, pods with verb * does not cover create pods/portforward and create pods/exec , so that from #332 is not directly usable, but still needs these two

helm chart serviceaccount is not use for client, just for server.

Understood, so its my own responsibility to create a service account for kubeconfig to use. Hopefully we can have this use case added to the doc page with a proper set of permissions? I don't think providing average developers with overly open permissions is a good idea.

Yes, after we discussed, we can add doc for client minimum permission

Ok, got it .
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: kubevpn-traffic-manager
rules:
- apiGroups: [""]
  resources: ["configmaps", "secrets"]
  verbs: ["get", "list", "watch", "create", "update", "patch"]
- apiGroups: [""]
  resources: ["namespaces"]
  verbs: ["get"]
- apiGroups: [""]
  resources: ["services"]
  verbs: ["get", "list", "watch"]
- apiGroups: ["apps"]
  resources: ["deployments"]
  verbs: ["get", "list", "watch", "create", "update", "patch"]
- apiGroups: [""]
  resources: ["pods"]
  verbs: ["get", "list", "watch", "create", "update", "patch"]
- apiGroups: [""]
  resources: ["pods/portforward", "pods/exec"]
  verbs: ["create"]

i made a permission list for client usage, but without tested it 😂

Let's use this as minimum permission for now ~


feat: welsh translation - S51 page - dynamic content remedial fix (APPLICS-194)

Describe your changes
Welsh translation - S51 page - dynamic content remedial fix
Ticket: https://pins-ds.atlassian.net/browse/APPLICS-194

Update translations with those now received in the ticket

Type of change 🧩

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update
[ ] Other (please explain in the description section above)

Checklist before requesting a review

[x] I have performed a self-review of my own code
[x] I have double checked this work does not include any hardcoded secrets or passwords
[ ] I have made corresponding changes to the documentation
[x] I have provided details on how I have tested my code
[x] I have referenced the ticket number above
[x] I have provided a description of the ticket
[x] I have included unit tests to cover any testable code changes

:tada: This PR is included in version 1.13.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.26.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.32.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


pipenv optional arguments stopped working

$ pipenv --rm
Error: no such option: --rm

$ pipenv --version
Error: no such option: --version

pip freeze | grep pipenv
pipenv==7.9.6

$ pipenv --help
Usage: pipenv [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  check      Checks for security vulnerabilities and...
  graph      Displays currently–installed dependency graph...
  install    Installs provided packages and adds them to...
  lock       Generates Pipfile.lock.
  run        Spawns a command installed into the...
  shell      Spawns a shell within the virtualenv.
  uninstall  Un-installs a provided package and removes it...
  update     Uninstalls all packages, and re-installs...

I also have this issue. macOS 10.12.6 (16G29), Python 3.6.2 installed via pyenv, Pipenv 7.9.6.

thanks

7.9.5 works

fixed in v7.9.8

further fixed in 7.9.9

the did you mean click plugin is problematic. worked around it though.

thanks @kennethreitz! 💯💯💯


Adding more Detailed information

I am submitting this PR so that newbie cyber people & OSINT Analysts with no python experience can better understand installation and usage.

There is no information about using the command git clone in order to clone the repository
No information in regards to changing directory | cd
No information in regards to the command pip3 install -r requirements.txt
No information in regards to the command python3 twayback.py -u username (if we put ourselves in the shoes of anyone without any python knowledge, they will just write in their terminal twayback.py which won't be of any use, it's typically something I would have done in the past as when reading installation & usage instructions I would just copy paste without trying to understand. 🤦

Hope this helps a little, awesome tool & thanks for putting it out there !

Could maybe also add some tags as I have done on the fork?:


Add API exitHereIfLastBlockFailed

Hi,
I like the concept of exitHereIfFailed API but the problem is that it exits if the session has been marked as not good. Now, I want to track all failures but my scenarios can handle failures at a lot of points except for some critical ones. For the critical points I am going towards doing:
tryMax(n) {
    exec(importantFunc)
}.exitHereIfFailed

Now ideally for my use case, the exitHereIfFailed would only fail if the tryMax block failed but that's not the case.
So, if we introduce something like exitHereIfLastBlockFailed (I am not attached to the name and may not be using the right terminology) then I see it working as demonstrated below:
// In all the following cases func(n) can be quite a big block of things or just a normal `exec(http(...))`
// Scenario 1:
// Only if func2 has an error would the scenario exit.
// If func1 has an error, the session would still be marked as failed but it would not exit.
exec(func1)
.exec(func2).exitHereIfLastBlockFailed

// Scenario 2:
// I have to admit, I don't understand how chaining the execs with different funcs or putting
// the funcs one after the other changes things internally so I cannot recommend how it should
// work here. I am open to anything.
// I am assuming it would exit if either func1, func2, or func3 fails?
exec(func1, func2, func3).exitHereIfLastBlockFailed

// Scenario 3:
// I am expecting that if func1 or func2 fails then we exit the scenario
tryMax(2) {
  exec(func1)
  .exec(func2)
}.exitHereIfLastBlockFailed

// I think that's all potential kind of scenarios

Am I thinking about this feature request correctly? Alternatively, there are the markAsSucceeded and markAsFailed session APIs that are not documented so I am assuming should not be used. How would the scenario be impacted by doing exec(session => session.markAsSucceeded) before a block with exitHereIfFailed? Could some different API be devised that uses those things... I am assuming this is a pretty dirty hack.

Why not something like:
exitIfBlockFails {
  exec(importantFunc)
}

That's something you could easily implement on top of Gatling primitives.

Because that's too clean and easy. Who wants a nice API? nobody.
I like it, I am trying to see how to implement it by looking at exitBlockOnFail and exitHereIfFailed but I am quite confused and don't have any specific questions. Still, let's see if I can code myself some real Scala code rather than the easy Gatling DSL. Thank you :)

This feature has great value, so we'll definitively add it in 2.2.
I already have an implementation in mind, but I'll let you have some fun :)
Feel free to show what you come up with.

Now, I have to figure out how to write some tests for it and how to put this in a bundle to test outside. Not going to attempt a PR until then :)
Copied some of the tryMax code but could not use very much of it since even if I reused the innerTryMax, and put loopNext as an exit Actor, then it would have marked the session as success. Not sure if that matters much or not since we're exiting but still.
ExitIfBlockFailsBuilder.scala
package io.gatling.core.action.builder

import io.gatling.core.action.ExitIfBlockFails
import io.gatling.core.structure.{ ScenarioContext, ChainBuilder }

import akka.actor.ActorRef

class ExitIfBlockFailsBuilder(innerBlock: ChainBuilder) extends ActionBuilder {

  def build(ctx: ScenarioContext, next: ActorRef) = {
    import ctx._
    val exitIfBlockFailsActor = system.actorOf(ExitIfBlockFails.props(coreComponents.exit, coreComponents.statsEngine, next), actorName("exitIfBlockFails"))
    val blockContent = innerBlock.build(ctx, exitIfBlockFailsActor)
    exitIfBlockFailsActor ! blockContent
    exitIfBlockFailsActor
  }
}

ExitIfBlockFails.scala
package io.gatling.core.action

import io.gatling.commons.stats.KO
import io.gatling.commons.validation._
import io.gatling.core.akka.BaseActor

import io.gatling.core.session.{ TryMaxBlock, Session }
import io.gatling.core.stats.StatsEngine

import akka.actor.{ Props, ActorRef }

object ExitIfBlockFails {
  def props(exit: ActorRef, statsEngine: StatsEngine, next: ActorRef) =
    Props(new ExitIfBlockFails(exit, statsEngine, next))
}

class ExitIfBlockFails(val exit: ActorRef, val statsEngine: StatsEngine, val next: ActorRef) extends BaseActor {

  def initialized(innerExitIfBlockFails: ActorRef): Receive =
    Interruptable.interrupt(statsEngine) orElse { case m => innerExitIfBlockFails forward m }

  val uninitialized: Receive = {
    case innerBlock: ActorRef =>
      val actorName = self.path.name + "-inner"
      val innerExitIfBlockFails = context.actorOf(InnerExitIfBlockFails.props(exit, innerBlock, java.util.UUID.randomUUID.toString, next), actorName)
      context.become(initialized(innerExitIfBlockFails))
  }

  override def receive = uninitialized
}

object InnerExitIfBlockFails {
  def props(exit: ActorRef, innerBlock: ActorRef, counterName: String, next: ActorRef) =
    Props(new InnerExitIfBlockFails(exit, innerBlock, counterName, next))
}

class InnerExitIfBlockFails(exit: ActorRef, innerBlock: ActorRef, counterName: String, val next: ActorRef)
    extends Chainable {

  private def blockFailed(session: Session): Boolean = session.blockStack.headOption match {
    case Some(TryMaxBlock(_, _, KO)) => true
    case _                           => false
  }

  def execute(session: Session): Unit =
    if (!session.contains(counterName))
      innerBlock ! session.enterTryMax(counterName, self)
    else {
      val incrementedSession = session.incrementCounter(counterName)

      if (blockFailed(incrementedSession))
        exit ! session.exitTryMax
      else
        next ! session.exitTryMax
    }
}

in Errors.scala add def exitIfBlockFails(chain: ChainBuilder): B = exec(new ExitIfBlockFailsBuilder(chain))

I'd be more inclined to limit the number of low level primitives in Gatling when a feature can be implemented on top of it.
Here, we could just have a wrapper in Errors, just like exitBlockOnFail is simply tryMax(1).
pseudo code:

define a flag name with a random UUID
wrap with a exitBlockOnFail:

the expected chain
chained with a exec function that sets the flag (which wouldn't be executed if the chain fails)

doIfOrElse

if the flag is set => remove it
else => exitHereIfFailed

I don't think that works because exitHereIfFailed will exit if the session has been marked as failed (that could happen before our exitIfBlockFails). Unless there is something I am missing.

@ldesplat So did you sort this out? :)

I will get back on this tomorrow. Thanks for waiting, hope I am not holding anything.

@ldesplat No pro, when you can.

@ldesplat Gatling 2.2 is closing near. Do you still intend to contribute?

No, I will not be able to contribute :( Thank you for the encouragement!

pity :(

No activity there for a very long time. Closing for now.


Bump Tox constraint to <4, for release of Tox 3.0.0

I tested this with my local project (using tox-docker to run PostgreSQL), and things seem to work fine on Tox 3.0.0.
This should fix issue #4.

Travis is failing on Python 3.7-dev with what appears to be a bdist_egg bytecode marshal error; that seems to be unrelated to this branch?


[Outlook] (categories) Correct categories API support in OWA

Per our reference documentation, the categories API isn't supported in Compose mode in Outlook on the web.

Learn Build status updates of commit e36752c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/outlook/categories.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


Please more information in Readme.

Can you please write more about the different of these two firmwares, router and coordinator
I don't know what I have to use for iobroker. Al they use router firmware. But I don't know why
Thanks

This isn't really the right place to answer those questions IMO - you'll want to learn about the zigbee protocol a bit as a first step. This link from home assistant talks about the different components in a zigbee network and might help.
This repo is more a place to acquire the firmware that whatever software you're using says it requires for a given network.


Disable IPv6 to avoid hanging

Signed-off-by: Major Hayden<EMAIL_ADDRESS>

I ended up adding this to the base image. Sorry for not cleaning this up sooner. 🙈


will gitment support bitbucket.org in the future

Hi,
I was wondering if there are any plans for gitment to support bitbucket.org in the future. Or does it already? If not, are you aware of any projects doing something similar with bitbucket issue system?
Thanks!

Well it might be nice still to know if you will support bitbucket in the future, I didn't realize that bitbucket pages do not support custom domains at this time. That feature is essential to me so I won't be using bitbucket moving forward.


Normalization and Quantization of inputs issue

I have observed differences between the documentation and the example.
Reference - https://www.tensorflow.org/lite/convert/metadata#normalization_and_quantization_parameters

But in the example, I have found differences.

We are not doing normalization when input and output are int8 and uint8? why is that so?

As per documentation, the output does not need normalization? why are we doing this in this example ?
In the example, we are not using any scale and zero point ? we are not using quantization params?

Hi @pranathibl where do the examples come from? Can you please give a pointer?


Doppler Image triggering

Is there a way to force the generation of the doppler image? I have excellent CaK data, all the ticks in the checkbox (custom process, generate doppler, +-3), yet there is no doppler output. Perhaps related to the different nature of the CaK line? I'd use INTI in such situations, as I often do with hydrogen beta,  but it just crashes, as it often does.

How did you manage to get good resolution data for CaK? Special optics?
On Mon, Sep 9, 2024, 9:04 AM VNP @.***> wrote:

For example, I have a most beautiful redshift here, today's data
image.png (view on web)
https://github.com/user-attachments/assets/44e687b6-3360-4c2a-8fab-9b751db0ea33
And yesterday(? or the day before) I had, in H beta, a Doppler-Dolphin
jump around the spectral line, perhaps a loop or a spiral getting projected.
image.png (view on web)
https://github.com/user-attachments/assets/65333a51-5f37-4356-bab3-a3ef2cdf82cb
—
Reply to this email directly, view it on GitHub
https://github.com/melix/astro4j/issues/417#issuecomment-2338510655, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BGFJTAWNADP52H3BJGGHEULZVXBIPAVCNFSM6AAAAABN42YZI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZYGUYTANRVGU
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

@smart-underworld actually there were some thin clouds, and they may have contributed to calming the air down and provide better than average seeing. Also, my aperture is limited to that of a 2" filter, as I use such filters as ERF to keep the heat out of the scope entirely, while getting the most light possible from within the band. I use Antlia's triband erf in this case. Other than this front ERF hack, it's the standard Sol'Ex with the sagging plastic case, wires and duct tape, on a 62/400 ED scope. I hacked my EQ3, drive the motors myself, and implemented a SHG scanning mode.
Here's a downsampled image of today (haven't published it yet). Compared to what I usually get -- the Ersatz-Obsi is at the office window, a metal roof is in front, a cold stream flows after that and then there are hills, with a cold river after that, ideal observation site, c'est la vie --, this is an excellent frame.

That's a beautiful capture of CaK indeed. Congratulations.
On Mon, Sep 9, 2024, 9:18 AM VNP @.***> wrote:

@smart-underworld https://github.com/smart-underworld actually there
were some thin clouds, and they may have contributed to calming the air
down and provide better than average seeing. Also, my aperture is limited
to that of a 2" filter, as I use such filters as ERF to keep the heat out
of the scope entirely, while getting the most light possible from within
the band. I use Antlia's triband erf in this case. Other than this front
ERF hack, it's the standard Sol'Ex with the sagging plastic case, wires and
duct tape, on a 62/400 ED scope. I hacked my EQ3, drive the motors myself,
and implemented a SHG scanning mode.
Here's a downsampled image of today (haven't published it yet). Compared
to what I usually get -- the Ersatz-Obsi is at the office window, a metal
roof is in front, a cold stream flows after that and then there are hills,
with a cold river after that, ideal observation site, c'est la vie --, this
is an excellent frame.
image.png (view on web)
https://github.com/user-attachments/assets/d85311d0-016d-4dc5-9f0d-34ec9c75af39
—
Reply to this email directly, view it on GitHub
https://github.com/melix/astro4j/issues/417#issuecomment-2338540043, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BGFJTAUPPFJGXDDZA2WC2STZVXC3RAVCNFSM6AAAAABN42YZI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZYGU2DAMBUGM
.
You are receiving this because you were mentioned.Message ID:
@.***>

Good tips on use of the Antlia triband
On Mon, Sep 9, 2024, 9:32 AM kai yung @.***> wrote:

That's a beautiful capture of CaK indeed. Congratulations.
On Mon, Sep 9, 2024, 9:18 AM VNP @.***> wrote:

@smart-underworld https://github.com/smart-underworld actually there
were some thin clouds, and they may have contributed to calming the air
down and provide better than average seeing. Also, my aperture is limited
to that of a 2" filter, as I use such filters as ERF to keep the heat out
of the scope entirely, while getting the most light possible from within
the band. I use Antlia's triband erf in this case. Other than this front
ERF hack, it's the standard Sol'Ex with the sagging plastic case, wires and
duct tape, on a 62/400 ED scope. I hacked my EQ3, drive the motors myself,
and implemented a SHG scanning mode.
Here's a downsampled image of today (haven't published it yet). Compared
to what I usually get -- the Ersatz-Obsi is at the office window, a metal
roof is in front, a cold stream flows after that and then there are hills,
with a cold river after that, ideal observation site, c'est la vie --, this
is an excellent frame.
image.png (view on web)
https://github.com/user-attachments/assets/d85311d0-016d-4dc5-9f0d-34ec9c75af39
—
Reply to this email directly, view it on GitHub
https://github.com/melix/astro4j/issues/417#issuecomment-2338540043,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BGFJTAUPPFJGXDDZA2WC2STZVXC3RAVCNFSM6AAAAABN42YZI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZYGU2DAMBUGM
.
You are receiving this because you were mentioned.Message ID:
@.***>

Yes. I am looking at the one for solar (later)
On Mon, Sep 9, 2024, 9:41 AM VNP @.***> wrote:

There is the "Triband" "RGB"-sopmething, and there is the "Triband ERF"
(Ha, CaH and CaK)
—
Reply to this email directly, view it on GitHub
https://github.com/melix/astro4j/issues/417#issuecomment-2338586281, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BGFJTAVJ3LPGZIGY76DHNBTZVXFSDAVCNFSM6AAAAABN42YZI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZYGU4DMMRYGE
.
You are receiving this because you were mentioned.Message ID:
@.***>

You can't "force" the generation of Doppler images. It would actually give pretty bad results for Ca in general, hence why it's only enabled for H-alpha. However, generating one with a script is fairly straightforward, e.g :

[params]
# Doppler shift (in pixels)
dopplerShift=3.25
# banding correction width and iterations
bandingWidth=25
bandingIterations=3
# autocrop factor
cropFactor=1.2
saturation=1

[tmp]
red=fix_banding(img(dopplerShift);bandingWidth;bandingIterations)
blue=fix_banding(img(-dopplerShift);bandingWidth;bandingIterations)
green=avg(red,blue)
doppler_raw=rgb(red,green,blue)
cropped=autocrop2(doppler_raw;cropFactor)

[outputs]
doppler = saturate(linear_stretch(cropped);saturation)

Thank you

The disk doesn't look like much, it also shows a polar cap on the bottom (need to adjust that polynom), but the proms on the right are amazing


It is not clear what types queue returned from resource subscription contains

Documentation for ConnectAPI.add_resource_subscription does not clearly indicate what is the type of objects that will be put into the returned queue. Consider explicitly documenting what is the type.

An update on this:
For the most part, these objects are not defined anywhere. For resources, for example, we have no way of knowing what the client code on the device will return. We parse TLV data before passing it to observers, but cannot document what this is in advance. Hopefully that makes sense?
In some cases (such as DeviceStateChange) we would like to return SDK objects, but at present simply pass through the payload of the notification. We're working to improve the higher level abstractions, such as this, provided by the SDKs.

I was probably thinking about what are the python types that will be put into the queue. Now it seems they will be dictionaries with item-id's as keys and resource values as values. This dictionary would be nice to have documented on the add_resource_subscription API, also would be nice to know the value type as well even though the SDK won't have knowledge of the actual value format right now (seems that it will be an int in case tlv decoded value and bytearray(?) for non tlv values)


Added testing for web-storage-proxy.js

Added testing for web-storage-proxy.js
Additions

Added tests to increase coverage to 100% across the board

Changes

Refactored code to be less complex and allow for easier testing
Updated code to utilize storage object instead of boolean to allow for storage options outside the window object

Testing

Run gulp test:unit:scripts see the green across the board for this file

Review

@KimberlyMunoz
@anselmbradford
@sebworks

Screenshots
Before
=============================== Coverage summary ===============================
Statements   : 26.51% ( 321/1211 )
Branches     : 21.84% ( 90/412 )
Functions    : 22.49% ( 56/249 )
Lines        : 26.75% ( 321/1200 )
After
=============================== Coverage summary ===============================
Statements   : 28.37% ( 343/1209 )
Branches     : 24.27% ( 100/412 )
Functions    : 24.5% ( 61/249 )
Lines        : 28.54% ( 343/1202 )
Notes

Skipping tests of internal private functions

Checklist

[ ] Changes are limited to a single goal (no scope creep)
[ ] Code can be automatically merged (no conflicts)
[ ] Code follows the standards laid out in the front end playbook
[ ] Passes all existing automated tests
[ ] New functions include new tests
[ ] New functions are documented (with a description, list of inputs, and expected output)
[ ] Placeholder code is flagged
[ ] Visually tested in supported browsers and devices
[ ] Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)

LGTM, other than the one comment.

:+1:

Code comment at the top of web-storage-proxy.js needs to be updated or removed.


[BOT PR] to update dependencies of istio

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

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: hklai
Assign the PR to them by writing /assign @hklai in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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

Test name
Commit
Details
Rerun command

prow/istio-unit-tests.sh
be8bb29ed48c3fc2a62820d828c1831a4a9902d4
link
/test istio-unit-tests

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

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

Test name
Commit
Details
Rerun command

prow/istio-unit-tests.sh
be8bb29ed48c3fc2a62820d828c1831a4a9902d4
link
/test istio-unit-tests

prow/istio-pilot-e2e.sh
be8bb29ed48c3fc2a62820d828c1831a4a9902d4
link
/test istio-pilot-e2e

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


File zshow_gwmon_log.prog.xml contains program code, not metadata

It looks like the file zshow_gwmon_log.prog.xml contains the program itself, and not metadata.

ref https://github.com/SAP-samples/security-services-tools/blob/main/ABAP/basis/zshow_gwmon_log.prog.xml

Oh, in SE38 I had downloaded the code into the wrong file.
Solved with https://github.com/SAP-samples/security-services-tools/commit/29ab046c6a2c510f78f148fa6bb369f48d8f99d3
Thank you for pointing this out!


docs/installation: explain username and passwordHash

The docs under "Install the Helm Chart" currently say:

Weave GitOps is provided through a Helm Chart and installed as a Flux resource through a HelmRepository and HelmRelease. To install on your cluster, adjust the following so that username is the username you want and passwordHash is a bcrypt hash of your password, and commit the file to the location bootstrapped with Flux so that it is synchronized to your Cluster.

This could be a bit more user-friendly - or provide an example. I'm not quite sure what needs to go in there. Which user, which password, how to bcrypt?

this is done and will also be tidied in https://github.com/weaveworks/weave-gitops/pull/3373


fourier_gaussian returning strange result

When running fourier_gaussian from SciPy's ndimage, seem to be getting an inaccurate result with SciPy 1.0.0+. The problem is not present in SciPy pre-1.0.0 (e.g. 0.19.1).
Reproducing code example:
From SciPy 0.19.0:
In [1]: import numpy as np

In [2]: import scipy.ndimage as spimg

In [3]: spimg.fourier_gaussian(np.arange(5, dtype=float), 1)
Out[3]: array([ 0.        ,  0.45404074,  0.08499811,  0.12749717,  1.81616295])

From SciPy 1.1.0:
In [1]: import numpy as np

In [2]: import scipy.ndimage as spimg

In [3]: spimg.fourier_gaussian(np.arange(5, dtype=float), 1)
Out[3]:
array([0.00000000e+000, 5.21447985e-315, 5.11268236e-315, 5.14003652e-315,
       5.29737031e-315])

Scipy/Numpy/Python version information:
1.1.0 1.15.1 sys.version_info(major=3, minor=6, micro=6, releaselevel='final', serial=0)

Interestingly this problem does not exist for np.float32.

Not surprisingly, this is the same bug as https://github.com/scipy/scipy/issues/9195.  I closed that one, since this one was created first.

Ostensibly, the fix is trivial.  In the line https://github.com/scipy/scipy/blob/master/scipy/ndimage/src/ni_fourier.c#L427, change npy_float to npy_double.  This will fix the problem that currently exists for fourier_gaussian, fourier_uniform and fourier_ellipsoid.  The change will need unit tests for these functions.  I'm not familiar with the precise semantics of these function (e.g. I'm not sure why, even when the inputs are real, the outputs are not complex) nor the implementations.
@jaimefrio, could you take a look?  For inputs such as fourier_gaussian(np.arange(5.0), 1) or fourier_uniform(np.arange(5.0), 1), how would one create the expected result "by hand"?  For example, fourier_uniform says the input is multiplied by the Fourier transform of a box of the given size.  I haven't found the right interpretation of that statement to generate the same output as fourier_uniform(np.arange(5.0), 1).

The Fourier transforms of a Gaussian or a Uniform filter are both defined completely in real space. So it makes sense to have them support real numbers and even return only real types when provided real types. Otherwise one is needlessly doubling the size of the data to make it complex type (while the complex portion is merely zero).

The Fourier transforms of a Gaussian or a Uniform filter are both defined completely in real space.

OK, if you correctly choose the phase of, for example, the "box" used for the uniform filter, a real output should be expected (and I expect that's how fourier_uniform would work).
Are you able to generate such an output that matches (the old, presumabley correct) fourier_uniform(np.arange(5.0), 1) by multiplying np.arange(5.0) by the transform of  "a box of the given size"?

Not sure I follow. What do you mean by phase of the box? Also is there a corresponding option for this in fourier_uniform?
Yes, that's how I ran into this bug in the first place.

What do you mean by phase of the box?

The sequences [1, 1, 0, 0, 0] and [0, 0, 1, 1, 0] can both be called "boxes" of length 2 within a sequence of length 5.  By "phase", I just mean the position of the box in the sequence.  Of the five possible positions, it is only [0, 0, 1, 1, 0] that has a discrete Fourier transform with coefficients that are real.
(By the way, I know I'm being lazy by not just digging into the source to see what it does.  That's not something I want to spend time on at the moment.  I had hoped the description of the function provided in the docstring would be sufficient to create some simple test cases by hand.)

Sure that makes sense. Though I don't see an option in fourier_gaussian or fourier_uniform for this behavior.
This code does an equivalent thing to what the old SciPy code does. Basically build a grid using fftfreq ( as described in issue https://github.com/numpy/numpy/issues/9094 ), multiplies by box size, calls sinc, and takes the product due to each dimension of the box.

Added PR ( https://github.com/scipy/scipy/pull/9229 ). Probably could use a pointer on where to add a test.


Remove Endpoints - service POST

User Story - Business Need

In the effort to clean up our code we need to investigate and remove unused endpoints. This ticket is to take a look at the endpoints under /service for POST requests and remove the ones marked for removal. You can view the table of endpoints here.
User Story(ies)
As an engineer
I want to clean up and reduce our codebase
So that it is easier to maintain and upgrade in the future.
Additional Info and Resources

Endpoint Table
Endpoint Spreadsheet

Engineering Checklist

[ ] Investigate the endpoints starting with /service to make sure they aren't being used
[ ] Also investigate and remove the /service POST endpoint.
[ ] Remove tests associate with those endpoints
[ ] Remove the code associated with those endpoints (if possible). Make sure not to remove any code used by other parts of the application.

Acceptance Criteria

When the designated code and tests have been removed, the application retains full functionality.

QA Considerations

[ ] The QA Regression Suite passes
[ ] The Cypress regression passes

Potential Dependencies

Make sure the removal of these endpoints doesn't affect the work Strike is doing.

Closing/no longer relevant.


Remove hardcoded url from twitter card endpoint

I had left the hardcoded "https://til.hashrocket.com" in the twittercard.png URL because I didn't want to risk breaking anything with adding /priv/ static back to the .gitignore. However that all seems to be working so this is the logical next step.

Thank you! 👍


Deploying stack with daemon strategy and scale=0

I'm migrating my galera cluster to stacks and I wanted to launch the stack initially with the "node" service scaled to 0 although the .yml file specifies 1. I was going to then bootstrap it with the "seed" service and finally return the "node" service back to "scaling: 1". Steps:
$ kontena stack install kontena-galera-cluster.yml
$ kontena stack build -f kontena-galera-cluster.yml
$ kontena service scale galera-cluster/node 0
$ kontena service show galera-cluster/node
# showed scaling: 0
$ kontena stack deploy galera-cluster

Expected result: the "node" service would be deployed to 0 nodes.
Actual result: the "node" service was deployed to each node as if "scaling: 1".
After it completed deploying I noticed that "scaling:" had been reverted to 1. So is this simply because deploying a stack overrides the services?
I'm looking for a way to scale down a service that is part of a stack before the stack is deployed, or perhaps deploy only a subset of services from a stack.
Thanks!

After it completed deploying I noticed that "scaling:" had been reverted to 1. So is this simply because deploying a stack overrides the services?

Yes, deploying a stack will override any scaling/instances parameters on the existing services.

I'm looking for a way to scale down a service that is part of a stack before the stack is deployed, or perhaps deploy only a subset of services from a stack.

If you do a kontena stack install without deploying it, then you should be able to see those stack's services in kontena service ls. Try doing a kontena service deploy stack/foo for the individual services that you want deployed, beforeusing kontena stack deploy to deploy the rest? That won't work for a kontena stack upgrade, though, since it will only create new services, not update existing ones.

Ah, thanks. I don't know why it didn't occur to me to try deploying the service without deploying the full stack, I guess I just don't fully understand the relationship. I was looking for a command similar to kontena stack deploy mystack someservice that would deploy only part of the stack, but I believe you're saying that kontena service deploy mystack/someservice is already the exact equivalent of that?


Swap in new LB policy when it's ready

Supersedes https://github.com/grpc/grpc/pull/18073.
As suggested in https://github.com/grpc/grpc/pull/18073#issuecomment-464251561, the ctor of the LB policies won't call ChannelControlHelper::UpdateState() with a READY state. So, swapping is always done after the LB policies are constructed.

This change is

Thanks for reviewing this PR! Merging.


feat: language generation component registration

Description

Extract TemplateInterface based classes into LanguageGenerationComponentRegistration to match the implementation in C#: https://github.com/microsoft/botbuilder-dotnet/blob/main/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/LanguageGenerationComponentRegistration.cs
Specific Changes

LanguageGenerationComponentRegistration

Testing

Updated related tests.

Pull Request Test Coverage Report for Build 631442918

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.06%) to 84.906%

Files with Coverage Reduction
New Missed Lines
%

libraries/botbuilder-lg/src/templateExtensions.ts
1
84.48%

Totals

Change from base Build 625889807:
0.06%

Covered Lines:
18649

Relevant Lines:
20924

💛  - Coveralls


Animate on scrolling down

Is your feature request related to a problem? Please describe.
when the user scrolling down the featured project section it is looking quite static .
Describe the solution you'd like.
when the user scrolls down I will animate the projects this will be helpful in :

Enhanced User Engagement: Animations triggered as users scroll create a dynamic experience, capturing attention and keeping users engaged as they explore the content.

Improved Visual Flow: Scroll animations help guide users through the content in a structured and visually appealing way, making it easier to highlight key sections or messages.

Better Information Retention: Movement and transitions can make important elements stand out, helping users retain information better than with static content alone.

Modern and Interactive Feel: Animated elements give the website a modern and polished appearance, improving its appeal and the perceived quality of the brand or service.

Increased Time on Site: Engaging animations can encourage users to stay longer on the site, leading to improved metrics such as lower bounce rates and higher average session duration.

Describe alternatives you've considered.
No response
Additional context.
No response
Show us the magic with screenshots
No response
Checklist

[X] I have checked the Existing Issues
[X] I have read the Contributing Guidelines
[X] I want to work on this issue. (optional)

Can you please share the screenshot of the page you wanna work with.

this gives the dynamic behaviour to the projects
https://github.com/user-attachments/assets/c3c4057b-20b0-4087-bb66-30a2127b2d53

Okay, Assigning this issue to you.
Make sure to complete this issue within 2 days.
And so it properly.


Energy generation stats broken?

My Panasonic 3.2kW generation K returns 0 or NaN for energy generation option. Other features work fine.
Is there a way to get current consumption and COP as well?

I think this is an issue on the Panasonic Aquarea API not returning data. For me it also returns 0s and never returned anything else, I added it to the client just in case it returns data in the future or for any configuration distinct to mine. The best way to debug it is to open the Aquarea Smart Cloud page and use the developer tools of the browser, access the statistics section and you'll see the requests performed and the response.
Regarding COP and current consumption, that's something available in Aquarea Service Cloud (the one for installers) but not available in the Smart one (the one that we have to use here).

Shame. Panasonic made users' data bare minimum :)
So, I assume there is nothing what can be done (except using installers data).

Hi,
So I assume this is not as easy as switching API point? I owed assume it's the "same infrastructure" just different server and API point.
Besides many users do give installers access for maintenance, so in this case they won't have login details anyway.
Maybe one day Panasonic will publish an official API for integrations, although I doubt.

So I assume this is not as easy as switching API point? I would assume it's the "same infrastructure" just different server and API point. Besides many users do give installers access for maintenance, so in this case they won't have login details anyway.

Not at all. From my initial investigation, it seems a completely different API, different way of login in...
And the responses of the API are really self explanatory 🤣. One example:
{
    "connectionStatus": 0,
    "cnCntErrorStatus": 0,
    "errorCode": 0,
    "statusDataInfo": {
        "function-status-text-005": {
            "textValue": "2006-0310",
            "type": "basic-text"
        },
        "function-status-text-027": {
            "type": "simple-value",
            "value": "42"
        },
        "function-status-text-049": {
            "type": "simple-value",
            "value": ""
        },
        "function-status-text-025": {
            "type": "simple-value",
            "value": "41"
        },
        "function-status-text-047": {
            "type": "simple-value",
            "value": ""
        },
        "function-status-text-068": {
            "type": "simple-value",
            "value": "0"
        },
        "function-status-text-009": {
            "type": "simple-value",
            "value": "32"
        },
        "function-status-text-007": {
            "textValue": "2006-0339",
            "type": "basic-text"
        },
        "function-status-text-029": {
            "type": "simple-value",
            "value": ""
        },
        "function-status-text-041": {
            "textValue": "2006-0960",
            "type": "basic-text"
        }

Hmm...
And tis can't be linked to actual data in the installers page, so we know which value represent what?
I assume code in HeishaMon is no help as this is yet very different data/approach.

It can be linked to the actual data, that's for sure but it requires time and patience, checking how the page uses the values from the JSON responses... We would need to reverse engineer all the login process as well, the flow the page follows in order to get from the username/password (login process) to the customers -> devices... Doable? Maybe... couldn't say until we have tried.
I would love for Panasonic to stop considering users "unqualified individuals" and offer those values on their user facing apps instead of just considering that information "installers only". If they only added the info to the APIs even if their official app are not exposing it (yet), we could make use if it. Maybe we could try to establish a communication channel to the team that handles this service, that would make all this work quite easier.

I have some experience in working with "manufactures" and I feel that no one from Panasonic would ever bother to talk to us.
Finding values should be doable, but I assume login procedure could be actually more tricky. also- there is still issue with kicking out installer from accessing the pump, which somehow I don't really want to do (or keep kicking him and then asking to link back).
Maybe one day Panasonic will expose actual API to users.


Fix requirement mismatch between README and requirements.txt

Hello Haodong Duan,
thank you for this great work.
In the repository readme you mention "Before running the demo, make sure you have installed mmcv-full, mmpose and mmdet. You should first install mmcv-full, and then install mmpose, mmdet."
These kind of requirements should typically be part of the requirements.txt file.
I struggled quite a while with this issue, as I of course installed all of the above and all packages mentioned in requirements.txt, leading to have both mmcv-full (current version) installed and mmcv (non-full, pinned version 1.5.0) -> This version mismatch can lead to non-helpful error messages, but fortunately the easy solution is to install the full version from the very beginning.
I also added the two other requirements (mmpose and mmdet) mentioned in the README to the requirements.txt file, allowing everyone to run the demo without running into errors.
Total lines changed: 3
Kind regards
Alexander

Hi, Alexander,
Thanks for your kind help! Would you please confirm that it can setup the dependent packages successfully under a new environment (I will check it later and provide feedbacks)?
Besides, how long does it approximately cost to install mmcv-full from source (your PR). I remember that it might cost around 10-20 minutes.

Hey, thanks for your feedback!
I have installed everything into a new python 3.10 conda environment and got the demo working successfully. I can provide the exact details in a few days after vacation.
For mmcv-full, i just used their pip package, so building was no big concern. I can time it as well, later this week 👍

Hi, sorry for the delayed response. I had trouble re-creating the environment (pytorch released a new version since then, so i needed to pin the version below to keep compatibility).
The demo works perfectly and the installation only takes about 5 minutes depending on your download speeds (I did not install from source but via pip).
The following steps worked for me (Linux Mint 20.3 Cinnamon, CUDA 11.8):
date
git clone https://github.com/AlexanderMelde/pyskl.git &&  cd pyskl
git checkout patch-1
conda create -y --prefix ./env python=3.10
conda activate ./env
conda install -y pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.6 -c pytorch -c conda-forge
pip install -r requirements.txt
pip install -e .
date
python demo/demo_skeleton.py demo/ntu_sample.avi demo/demo.mp4

Hi, AlexanderMelde. I think it's OK to merge this PR. I just fixed the lint and add some descriptions to tell users that they can also install mmcv-full from pre-built wheels, which is much faster.