Evaluate new Satrec API from sgp4

There is a new API in sgp4:
>>> from sgp4.api import Satrec
>>>
>>> s = '1 25544U 98067A   19343.69339541  .00001764  00000-0  38792-4 0  9991'
>>> t = '2 25544  51.6439 211.2001 0007417  17.6667  85.6398 15.50103472202482'
>>> satellite = Satrec.twoline2rv(s, t)
>>>
>>> jd, fr = 2458827, 0.362605
>>> e, r, v = satellite.sgp4(jd, fr)
>>> e
0
>>> print(r)
(-6102.44..., -986.33..., -2820.31...)
>>> print(v)
(-1.45..., -5.52..., 5.10...)

However, it requires some changes:

For the moment, WGS-72 is hardcoded
The equivalent of the propagate method is Satrec.sgp4 (and Satrec.sgp4_array), which now receive "the whole part and the fractional part" of the Julian date, therefore some conversion is needed and it's not clear how to do it

In progress in #86.

This was merged and released!


docs: Make MacOS user path consistent across docs

$ git grep "/Users"
docs/INSTALL.md:      --btcd.dir=                                             The base directory that contains the node's data, logs, configuration file, etc. (default: /Users/[username]/Library/Application Support/Btcd)
docs/INSTALL.md:      --btcd.rpccert=                                         File containing the daemon's certificate file (default: /Users/[username]/Library/Application Support/Btcd/rpc.cert)
docs/INSTALL.md:      --bitcoind.dir=                                         The base directory that contains the node's data, logs, configuration file, etc. (default: /Users/[username]/Library/Application Support/Bitcoin)
docs/INSTALL.md:`/Users/[username]/Library/Application Support/Lnd/lnd.conf`
docs/grpc/java.md:  private static final String CERT_PATH = "/Users/[username]/Library/Application Support/Lnd/tls.cert";
docs/grpc/java.md:  private static final String MACAROON_PATH = "/Users/[username]/Library/Application Support/Lnd/data/chain/bitcoin/simnet/admin.macaroon";
docs/grpc/java.md:[INFO] Compiling 3 proto file(s) to /Users/[username]/Documents/Projects/lightningclient/target/generated-sources/protobuf/java
docs/grpc/java.md:[INFO] Compiling 3 proto file(s) to /Users/[username]/Documents/Projects/lightningclient/target/generated-sources/protobuf/grpc-java
docs/grpc/java.md:[INFO] Compiling 12 source files to /Users/[username]/Documents/Projects/lightningclient/target/classes

2b7c901 changed to <username>
ed94a8f changed to <username>


Auto Save setting always ON even when set to OFF

Version 1.53.2
Setting "Auto Save" to "off" does not work.  Any change made to edit windows will force a file save.
Version 1.52.1 works.

Can you check what you have configured in settings exactly? Maybe you configured it in workspace settings?

Here’s what I’ve tried today.
Created a new clean Windows 10 Enterprise VM, I installed VSCode 1.53.2.
Then within VSCode, Powershell Preview 2020.9.0. package.
Ctrl, (Open Settings)  = Files:Auto Save = off
I did not have a workspace.json file because I have never made any changes.
There are only 4 .json files in my Roaming\Code folders:
rapid_render.json
storage.json
languagepacks.json
Backups\workspaces.JSON
I check settings Ctrl+,   Auto Save = off.  (I have never changed any settings with this setup.)
I created a PowerShell test file, Test.ps1 on my desktop and open it with VSCode.
The Test.ps1 file contained:
Write-Output ‘Testing’

I also created a “Test.txt” file with the word “Hello” in it.  I opened it with VSCode and added a character to the file to make it dirty.
I also added a character in the comment line of the PowerShell file to make it dirty.
I then do Ctrl-F5 (i.e. Run without Debug).
Both files were saved before running the PowerShell file, then it runs within the terminal without errors.
This says that Auto Save is “on” in all cases.
I have an earlier VSCode Version 1.52.1 on another computer, set up the same way that works fine, i.e. it does NOT save the file before executing it.
  They stay dirty, i.e. when I open VSCode again the file remains dirty.
Running the PowerShell file causes it to be saved first.  This is not the previous behavior.
Thanks for your help!

Ok so this seems to be debug related then:

Running the PowerShell file causes it to be saved first. This is not the previous behavior.

Dup of https://github.com/microsoft/vscode/issues/114890


Updated README for release

#6  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @CatChen and the rest of your teammates on  Graphite


Add ascii walrus and zalgo integration

@barmintor @mejackreed This is ready for a second round of review.

@mejackreed See: https://github.com/PenguinParadigm/tcramer/pull/10#discussion_r177561898

Thanks @mjgiarlo for that quick link.


Add support for picking custom colors and remove illustration backgrounds

Task/Issue URL: https://app.asana.com/0/72649045549333/1206944842487414/f
Description:
This is the final part of the NTP customization project. Changes include removing illustrations, rewriting gradients
in code and adding a color picker for solid color backgrounds.
Steps to test this PR:

Select one of the predefined solid colors as background
Restart the app, re-enter solid colors and make sure that the selection is correct.
Pick a custom color using color picker, and redo step 2.
Open color picker and keep selecting colors. Verify in the logs that color background selected pixel is not fired for every change, but only at most once per second.

Definition of Done:

[ ] Does this PR satisfy our Definition of Done?

Internal references:
Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

Thanks a lot @SabrinaTardio 🙏 I actually have to request translations one more time, because "Default" is new as of yesterday. But I'll do it right now and it should get translated in no time. Thanks again 💪


intro.js needs Chinese translation

We have integrated intro.js to have the ngrinder beginner to get familiar with ngrinder easily.
However we didn't translate it into Chinese yet.
We need help.
https://github.com/naver/ngrinder/blob/12354470a32f14b6551dc6906cb010d62b69ee1d/ngrinder-controller/src/main/resources/messages_cn.properties#L428
@chengaomin Could you help us?

@junoyoon OK,I'll translate it,then pull the file.

@chengaomin Thanks!!! I'll wait for you.

Resolved by #123


Fix sector times on Qualifying Best & Last screens

Also does updates to dependencies and code

I do indeed use IntelliJ, I'll add it to the .gitignore. IntelliJ informed me there were many vulnerabilities in the old dependencies, so I thought a general update would be ideal. Encoding go brrr, I'll sort it out.
Also when I used the Start.bat file it wouldn't properly open the application, I might be being dense but if you can reproduce that behavior it would be great

Sorted those things out for you 👍🏼

@NoComment1105 , With the new Nürburgring update i made some fixed and included your fix in there to.
I thought i would be easier if i copy the necessary changed directly so we dont have to go back and forth. I also mentioned your github handle in the release notes.


Introduce a DNS-based on-demand loading.

(This is used to request new product features, please visit https://discuss.istio.io for questions on using Istio)
Describe the feature request
Introduce a DNS-based on-demand loading.
Although envoy has plans for on-demand XDS, resources such as linstener still seem to be unable to load on demand.
Therefore, we can discover service dependencies through DNS Proxy in Pilot-Agent.
For example, when the application reviews access ratings, the application will first initiate a dns query of ratings.default.svc.cluster.local.
Pilot-Agent can record this domain name and send these domain names to ISTIOD through XDS (this requires a new resource type, EgressScope).
For simplicity, we create a new memory store in istiod to store these dependencies.
We can reuse the Sidecar type, but use a new GVK, such as networking.internal.istio.io for group.
WorkloadSelector can use app=xxx by default, or you can customize the labels  by configuring a new environment variable ISTIO_META_SHARED_DNS_EGRESS_SCOPE .
These Sidecar configurations can be merged when PushContext initializes SidecarScopes.

( I'll create a pull request later. )
Describe alternatives you've considered
Affected product area (please put an X in all that apply)
[ ] Docs
[ ] Installation
[*] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Affected features (please put an X in all that apply)
[ ] Multi Cluster
[ ] Virtual Machine
[ ] Multi Control Plane
Additional context

I think this is a great idea, but I am not sure it makes sense as is with the plans for on demand XDS discussed in #31488 (comment). Likely we can utilize the DNS as a hint like described, but instead of updating SidecarScope we would pre-push the cluster using on demand CDS/EDS. So similar end result, but slightly different methodology

I think we still need on demand LDS / RDS .

I think we still need on demand LDS / RDS .

Curious, how do you plan to make ondemand LDS/RDS work without Envoy support? Just let the initial request fail?


Error middleware

The objective of this PR is to break down the error middleware making it more modular using several middlewares and following the single responsibility principle.
Also, we need to continue the error handler refactor looking for a general solution instead of only solving  the Postgres errors

Deploy process:

Staging cloud
1 server in production
Merge
Master deploy


Error message on calling unknown plugin

Accidently discovered this was missing on the template validation.
tried to call
tables:
but writing
table:
in the template didn't produce an error
Related to #362

code needs refactoring to work.


waypoint-use-spans-for-inline-elements: does not recognise span - returns errors

Challenge http://freecodecamp.com/challenges/waypoint-use-spans-for-inline-elements has an issue.

Your span element should have the text love.
Your span element should have class text-danger.
Make sure your span element has a closing tag.

@JamesdashTaylor I'm not able to reproduce this (see screenshot) - can you try again if you're still experiencing this issue and if not, can you flag for closing please?


Android - Chat - New message text is hidden under the green line when mark as unread

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.66
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4516072
Issue reported by: Applause - Internal Team
Action Performed:

Launch app
Tap on a report
Create 2 expense by using "submit expense"
Tap on the expense created and tap on the last created expense from IOU report page
In details page, hold the request
Unhold the request
Delete the request
Long press the hold request reason message and mark as unread

Expected Result:
New message text must not be hidden under the green line when mark as unread the hold request reason message
Actual Result:
New message text is hidden under the green line when mark as unread the hold request reason message
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/820b118b-6979-49fe-8645-cf13ba92b0ad
View all open jobs on GitHub

@arosiclair  FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

We think that this bug might be related to #vip-vsp

Can't reproduce on Android v1.4.66-1


Test for attribute "loop"

Thank you! We appreciate this. :)

I'd consider it an implementation bug if calling play() immediately did not cause the media to start playing when it becomes ready to play.
Out of curiosity, is being "defensive" the reason for setting the media's volume to 0 inside the loadedmetadata handler in the other tests?  I would also expect that to work if set immediately, and a bug in the implementation if it doesn't take effect.  It may also be better to use @muted rather than @volume for this purpose, although it may not be as widely implemented yet.

@kinetiknz thanks for the clarification on the play thing.
On the second part, yes we're trying to really make the volume be 0 across all browsers that run the test.
As we know, implementations are still poor today and this was the way we found to work best cross-browser.


I-129 fix compilation for Xcode 13

task: https://github.com/ferranabello/Viperit/issues/129

Fix on #131


I can't play this one specific YouTube video downloaded with yt-dl.

Checklist

[x ] I'm reporting a broken site support issue
[x ] I've verified that I'm running youtube-dl version 2021.04.01
[x ] I've checked that all provided URLs are alive and playable in a browser
[x ] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x ] I've searched the bugtracker for similar bug reports including closed ones
[x ] I've read bugs section in FAQ

There is this video I am trying to download. YouTube videos always work fine for me, only this one fails. It seems to download correctly, but then I can't play it.
Link to the video: https://youtube.com/watch?v=J2NShmv8K-0
Error output:
$ mpv AMANDA\ KLEIN\ FICA\ SEM\ CHÃO\ AO\ CONFRONTAR\ MÉDICO\ E\ ELE\ DEVOLVER\ NA\ MESMA\ MOEDA-J2NShmv8K-0.mkv
Playing: AMANDA KLEIN FICA SEM CHÃO AO CONFRONTAR MÉDICO E ELE DEVOLVER NA MESMA MOEDA-J2NShmv8K-0.mkv
[mkv] Unknown/unsupported CodecID (V_AV1) or missing/bad CodecPrivate data (track 1).
(+) Video --vid=1 () ( 1280x720 30.000fps)
(+) Audio --aid=1 --alang=eng () (opus 2ch 48000Hz)
Failed to initialize a video decoder for codec ''.
Video: no video
Exiting... (Errors when loading file)
It only happens to that one video. I can download just about any other YouTube video.
I also have many .mkv videos that I can play normally.
I tried it twice and it failed. So I checked for updates and installed the new version,
$ youtube-dl --version
2021.04.01
Then I tried a third time, and the video still doesn't work.
Link to video: https://youtube.com/watch?v=J2NShmv8K-0

Plays just fine in VLC: https://gofile.io/d/Wjk0Ab
^ The VLC debug messages also said it's an AV1, using the DAV1D 0.7.1 decoder.
Also, fill the template !
# youtube-dl --ignore-config --verbose --verbose --ignore-errors --no-mark-watched --format "bestvideo+bestaudio/best" --audio-format best --audio-quality 0 --ffmpeg-location "C:\Users\Public\Downloads\ffmpeg\bin" --no-playlist --output "I:\SEAGATE_2TB_0\_DOWNLOADS_\_websites_\com\youtube/%(uploader_id)s"/"%(title)s %(resolution)s #%(id)s#.%(ext)s" --console-title --no-mtime --retries infinite --continue --no-overwrites --fragment-retries infinite "https://youtube.com/watch?v=J2NShmv8K-0"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ignore-config', '--verbose', '--verbose', '--ignore-errors', '--no-mark-watched', '--format', 'bestvideo+bestaudio/best', '--audio-format', 'best', '--audio-quality', '0', '--ffmpeg-location', 'C:\\Users\\Public\\Downloads\\ffmpeg\\bin', '--no-playlist', '--output', 'I:\\SEAGATE_2TB_0\\_DOWNLOADS_\\_websites_\\com\\youtube/%(uploader_id)s/%(title)s %(resolution)s #%(id)s#.%(ext)s', '--console-title', '--no-mtime', '--retries', 'infinite', '--continue', '--no-overwrites', '--fragment-retries', 'infinite', 'https://youtube.com/watch?v=J2NShmv8K-0']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2021.04.01
[debug] Python version 3.8.8 (CPython) - Windows-10-10.0.19041-SP0
[debug] exe versions: ffmpeg 4.3.1-2021-01-26-full_build-www.gyan.dev, ffprobe 4.3.1-2021-01-26-full_build-www.gyan.dev
[debug] Proxy map: {}
[youtube] J2NShmv8K-0: Downloading webpage
[youtube] Downloading just video J2NShmv8K-0 because of --no-playlist
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on 'https://r2---sn-qo5-2vgz.googlevideo.com/videoplayback?expire=1617510900&ei=lO1oYIPWLYvvyQXApJXABA&ip=2001%3A14ba%3A23e8%3A8f00%3A3c4a%3Aa604%3A5c74%3A996d&id=o-AAgIwr6aVsXYKf6bVYGA-agQJooD5Y9yIxvQ5dIr9Iob&itag=398&aitags=133%2C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278%2C394%2C395%2C396%2C397%2C398&source=youtube&requiressl=yes&mh=TA&mm=31%2C29&mn=sn-qo5-2vgz%2Csn-5goeen7y&ms=au%2Crdu&mv=m&mvi=2&pl=40&initcwndbps=1482500&vprv=1&mime=video%2Fmp4&ns=j7k0oguO0gzS3tZHuxpK1pIF&gir=yes&clen=21760041&dur=569.066&lmt=1617464670653289&mt=1617488949&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5431432&n=Jd6QiopPorbqE_nB-&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhANY3oZ97ytaaGHzRZeCmYBpavDsm0o0flS7rS5arm7Q9AiBO8vkjk1Q8ohfvKvGXllaX_WK3Su0op7mjogEfemPyCw%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgTm7YdF3gYNscl6DCQwUTk4_-Mj2gIZ0P-ZZ4np7qLgkCIQDkAKUXI9XrBaRBtDwCcnO3LDOcHihaitFVNkVua0XKKA%3D%3D'
[download] Destination: I:\SEAGATE_2TB_0\_DOWNLOADS_\_websites_\com\youtube\UC54x4lI4tle1mTHh5mQkVGA\AMANDA KLEIN FICA SEM CHÃO AO CONFRONTAR MÉDICO E ELE DEVOLVER NA MESMA MOEDA 1280x720 #J2NShmv8K-0#.f398.mp4
[download] 100% of 20.75MiB in 06:01
[debug] Invoking downloader on 'https://r2---sn-qo5-2vgz.googlevideo.com/videoplayback?expire=1617510900&ei=lO1oYIPWLYvvyQXApJXABA&ip=2001%3A14ba%3A23e8%3A8f00%3A3c4a%3Aa604%3A5c74%3A996d&id=o-AAgIwr6aVsXYKf6bVYGA-agQJooD5Y9yIxvQ5dIr9Iob&itag=251&source=youtube&requiressl=yes&mh=TA&mm=31%2C29&mn=sn-qo5-2vgz%2Csn-5goeen7y&ms=au%2Crdu&mv=m&mvi=2&pl=40&initcwndbps=1482500&vprv=1&mime=audio%2Fwebm&ns=j7k0oguO0gzS3tZHuxpK1pIF&gir=yes&clen=9484427&dur=569.101&lmt=1617459627355574&mt=1617488949&fvip=2&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5431432&n=Jd6QiopPorbqE_nB-&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhALbyS4bO4nakRzn9bGOgXQJQCnqgOm2nLBTPUOeQU5DFAiA2R6Bkp_vQxX-YvXBJ1VBXm9WdnDI-j-2ASqqPQgzvNw%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgTm7YdF3gYNscl6DCQwUTk4_-Mj2gIZ0P-ZZ4np7qLgkCIQDkAKUXI9XrBaRBtDwCcnO3LDOcHihaitFVNkVua0XKKA%3D%3D'
[download] Destination: I:\SEAGATE_2TB_0\_DOWNLOADS_\_websites_\com\youtube\UC54x4lI4tle1mTHh5mQkVGA\AMANDA KLEIN FICA SEM CHÃO AO CONFRONTAR MÉDICO E ELE DEVOLVER NA MESMA MOEDA NA #J2NShmv8K-0#.f251.webm
[download] 100% of 9.05MiB in 02:37
[ffmpeg] Merging formats into "I:\SEAGATE_2TB_0\_DOWNLOADS_\_websites_\com\youtube\UC54x4lI4tle1mTHh5mQkVGA\AMANDA KLEIN FICA SEM CHÃO AO CONFRONTAR MÉDICO E ELE DEVOLVER NA MESMA MOEDA 1280x720 #J2NShmv8K-0#.mkv"
[debug] ffmpeg command line: "C:\Users\Public\Downloads\ffmpeg\bin\ffmpeg" -y -loglevel "repeat+info" -i "file:I:\SEAGATE_2TB_0\_DOWNLOADS_\_websites_\com\youtube\UC54x4lI4tle1mTHh5mQkVGA\AMANDA KLEIN FICA SEM CHÃO AO CONFRONTAR MÉDICO E ELE DEVOLVER NA MESMA MOEDA 1280x720 #J2NShmv8K-0#.f398.mp4" -i "file:I:\SEAGATE_2TB_0\_DOWNLOADS_\_websites_\com\youtube\UC54x4lI4tle1mTHh5mQkVGA\AMANDA KLEIN FICA SEM CHÃO AO CONFRONTAR MÉDICO E ELE DEVOLVER NA MESMA MOEDA NA #J2NShmv8K-0#.f251.webm" -c copy -map "0:v:0" -map "1:a:0" "file:I:\SEAGATE_2TB_0\_DOWNLOADS_\_websites_\com\youtube\UC54x4lI4tle1mTHh5mQkVGA\AMANDA KLEIN FICA SEM CHÃO AO CONFRONTAR MÉDICO E ELE DEVOLVER NA MESMA MOEDA 1280x720 #J2NShmv8K-0#.temp.mkv"
Deleting original file I:\SEAGATE_2TB_0\_DOWNLOADS_\_websites_\com\youtube\UC54x4lI4tle1mTHh5mQkVGA\AMANDA KLEIN FICA SEM CHÃO AO CONFRONTAR MÉDICO E ELE DEVOLVER NA MESMA MOEDA 1280x720 #J2NShmv8K-0#.f398.mp4 (pass -k to keep)
Deleting original file I:\SEAGATE_2TB_0\_DOWNLOADS_\_websites_\com\youtube\UC54x4lI4tle1mTHh5mQkVGA\AMANDA KLEIN FICA SEM CHÃO AO CONFRONTAR MÉDICO E ELE DEVOLVER NA MESMA MOEDA NA #J2NShmv8K-0#.f251.webm (pass -k to keep)

No problem with my mpv.
Probably a problem with your ffmpeg or mpv.

no problem playing  the video on my end, might try youtube-dl -f mp4  https://youtube.com/watch?v=J2NShmv8K-0

Sorry if this was some kind of false alarm to anyone. But like I said, I have been able to download videos from YouTube almost every day, I downloaded others on that same day and only that one video could not be played on my box and, well, youtube-dl is the software that is generating it (it downloads then converts). I also tried mplayer with the exact same result. The '-f mp4' option is good enough a workaround for me. Thank you for the attention.


Allow files to be imported from top level

Like unmutable/map instead of unmutable/lib/map

https://github.com/blueflag/unmutable/releases/tag/v0.41.0


Add pr_build.bat to support running on Windows

pr_build.sh works on macOS and Ubuntu (and likely other flavors of Linux). We would love to support anyone working on Windows. Take the commands from pr_build.sh and translate them to a pr_build.bat that will work on Windows.
[Update] pr_build.sh has a lot more 'stuff' in it that is not required. The basic things we need to do are something like this:
python3 -m venv $VENV_DIR
$VENV_DIR/bin/Activate.ps1
pip3 install -qr Requirements.txt
black --check src/*.py
pylint src/*.py
flake8 src/*.py
python3 -m unittest discover -s src/tests -t src

You will need to create a python virtual environment, activate it, install the requirements, validate the source, run the tests, and optionally run the script. So something like:
python3 -m venv C:\%TMP%\scheduling
C:\%TMP%\scheduling/Scripts/activate
pip3 install -qr Requirements.txt
black --check src/*.py
pylint src/*.py
flake8 src/*.py
python3 -m unittest discover -s src/tests -t src
python3 src\scheduling.py -s sqlite:///%APPDATA%/scheduling.sqlite3

The go http://localhost:8000/ in your web browser.
I'm not sure on the %TMP% directories above. They basically just need to be a place you can read/write on disk. the %APPDATA% is also a guess. It also needs to be a place to read/write on disk.

With PR #62 we should no longer need to pass -s to scheduling.py.


why my swagger command line does not have generate command

Problem statement
D:\go-client>swagger generate spec -o ./swagger.json
error: invalid command: generate
   Usage: swagger [options] [command]
   Options:
       -V, --version  output the version number
       -h, --help     output usage information
   Commands:

      project <action>                                      project actions
      docs                                                  open Swagger documentation
      validate [options] [swaggerFile]                      validate a Swagger document (supports unix piping)
      convert [options] <swaggerFile> [apiDeclarations...]  Converts Swagger 1.2 documents to a Swagger 2.0 document
      help [cmd]                                            display help for [cmd]

Swagger specification
Steps to reproduce
Environment
swagger version: 2.0
go version: 1.8.3
OS:   windows 10

Try to build swagger from source. Looks like you have an old version

Thanks. The problem has resolved

how did you solve the problem?

you can do which swagger find out which swagger you are referring to. It should be /usr/local/Cellar/go-swagger/XXX/bin If not run directly  /usr/local/Cellar/go-swagger/XXX/bin/swagger


JUnit report doesn't parsed correctly

httpYac: JUnit report in XML format
https://github.com/rabestro/pig-latin-rest/runs/21941439938

Bruno: JUnit report in XML format
https://github.com/rabestro/pig-latin-rest/runs/21941579014

there was a typo in the report.xml (failues instead of failures). released with v6.11.4


Update npm dependencies

[x] Update all dependencies
[x] Add consent test endpoint + visual regression test
[x] Automatic resolutions with NPM

It's possible to test the pages with the visual regression tool.
The tool is already working on master. But be aware that two test will
fail. A broken test of the generic error page which triggers an error
of the same generic error page was the cause and is fixed here.

Initially I only wanted to update the required dependencies. But I had too much conflicts, so the only way seemed to be the way up. The only problem was tippy.js and the js-cookie dependency because they are required but were not tested.
The reason I could upgrade them was because the NPM build pipeline only uses cli commands in the package.json so if their footprint would change they would fail.
Mabe we should reconsider their usage or add tests in order to allow easy upgrading of Npm assets so we could do that more actively instead of reactive on an event of a security warning. I'll create a ticket for that.

https://www.pivotaltracker.com/story/show/172103012


PathFinder - Fixed Howaner's bug

Fixes this.

I'd leave the assert at the top of the function, but check the a_Chunk instead. Or even better, pass the chunk as a reference, that can never be nullptr; then assign as m_Chunk = &a_Chunk

Will do. Last time I tried this, there was a weird issue with Chunk references and the = operator. (But the ref might have been on the left hand, I'm not sure.)

This looks good, merge if it compiles.

Let me squash it first

OK to merge.


facing issue in returning response in case error occurred

My Scenario is like
I am sending request using postRobot.send from client page
Capturing request in postRobot.on server page
Inside postRobot.on calling a function "func xyz()"which returns ajax request/response.
So, In my case postRobot is working fine, ajax response is returning back to postRobot.send
But when any error occurs in ajax call or response is coming as a error, I didn't find any way to return that error response back to postRobot.send.
I tried promises but I am getting error in console like ‘Can not reject promise with another promise'.
Please help!!

Can you share an example of the specific code you're referencing?

Hey, please check below sample code for reference
# Client  page
postRobot.send(window.iframes[0],'getUser',{name:'Jazzz'} ).then(function(event){
    console.log(event.data.name);
}).catch(function(err) {
     console.log('Something went wrong:---' + err.stack);
});

# Server Page
postRobot.on('getUser', function(event, callback) {
	return getresponseInfo(event.data).then(function( user ) {
		  var perData = cleanResponseJson(user);
          displayName = perData.displayName;
	  return {
            name: displayName
		};
	});
});

function getresponseInfo(data){
	defer = $.Deferred();
    return $.ajax({
        url: '/xxx/xxx/v3/xxx/@xx?fields=-xxxxxx',
        type: 'GET',
        contentType: 'application/json',
        dataType: 'text',
		success: function (dData) {
              defer.resolve( dData );
		}, error: function (dData) {
		  defer.resolve( dData );
		}
	});
}

function cleanResponseJson(user) {
    var s = user;
    var jsonString = s.replace("throw 'allowIllegalResourceCall is false.';", "");
    var json = JSON.parse(jsonString);
    return json;
}

In case unautorized access error is occuring but I am not getting error response back at client postRobot.send like I am getting in case of success.
Check below console screen for error scenario

Thanks!!

So -- if you make sure you return the latest jQuery version, jQuery.ajax will actually return a promise (so no need to ever use $.Deferred). Then if you return a rejected promise to post-robot, it will trigger the error handler in the client.
Try something like this: (notice I'm throwing the error again in .catch() so it rejects the promise chain and propagates the error down to the client)
postRobot.on('getUser', function(event) {
    return getresponseInfo(event.data).then(function(user) {
        return {
            name: user.displayName
	};
    });
});

function getresponseInfo(data){
    return jQuery.ajax({
        url: '/xxx/xxx/v3/xxx/@xx?fields=-xxxxxx',
        type: 'GET',
        contentType: 'application/json',
        dataType: 'text'
    }).then(function(json) {
        return cleanResponseJson(json);
    }).catch(function(res) {
        var status = res.status || 'unknown';
        var text = res.responseText || '';
        throw new Error('Request failed - status: ' + status + ', ' + text);
    });
}

Its working fine with latest jquery and with above explained approach.
But my problem is
I am already using  jQuery v1.x in my application which need to support IE9+ also.
It will be very difficult to migrate jquery version because it may affect my whole application.
Please suggest possible alternatives with jQuery v1.x version to achieve my scenario.
Thanks

Glad that solution works in principle!
For what it's worth -- even the latest version of jQuery supports IE9+ -- https://jquery.com/browser-support/
Alternatively -- if you need to coerce a jQuery 1.0 ajax call into a promise, you're welcome to use something like https://github.com/krakenjs/zalgo-promise (this is the promise implementation that post-robot uses internally)
function getresponseInfo(data){
    return new ZalgoPromise(function(resolve, reject) {
        jQuery.ajax({
            url: '/xxx/xxx/v3/xxx/@xx?fields=-xxxxxx',
            type: 'GET',
            contentType: 'application/json',
            dataType: 'text',
            success: function(json) {
                resolve(json);
            },
            error: function(res) {
                var status = res.status || 'unknown';
                var text = res.responseText || '';
                reject(new Error('Request failed - status: ' + status + ', ' + text));
            }
        });
    });
}

Thanks for quick reply :) !!!!
Using your latest suggested code for jquery 1.x
function getresponseInfo(data){
    return new ZalgoPromise(function(resolve, reject) {
        jQuery.ajax({
            url: '/xxx/xxx/v3/xxx/@xx?fields=-xxxxxx',
            type: 'GET',
            contentType: 'application/json',
            dataType: 'text',
            success: function(json) {
                resolve(cleanResponseJson(json));
            },
            error: function(res) {
                var status = res.status || 'unknown';
                var text = res.responseText || '';
                reject(new Error('Request failed - status: ' + status + ', ' + text));
            }
        });
    });
}

But getting reference error like:
"Error: ReferenceError: ZalgoPromise is not defined at getresponseInfo"
Any idea what I am missing here ???
Do I need to include ZalgoPromise library also apart from postRobot Library ?
Thanks

Oh yeah, for now you'd need to include something like
<script src="https://cdn.rawgit.com/krakenjs/zalgo-promise/542b744f/dist/zalgo-promise.min.js"></script>

Yeah!!!! Thanks man. It worked.

Awesome!


[Feature]: Hide aside element when no heading present

What problem does this feature solve?
If no headings exist on the current page, should the aside component for displaying headings be hidden by default? This allows the page content to be better centered within the viewport. If this behavior is not considered to be on by default, should a new configuration be added to support it as well?
The following images show the before and after effects of hiding aside:

What does the proposed API look like?
noop

see details https://github.com/web-infra-dev/rspress/pull/1031#issuecomment-2081570591


React-native [0.59.x] library connection error

🐛 Bug Report
Cannot find the debug folder of the libraries I have linked
To Reproduce
Rebuilt the links but it didn't work
Expected Behavior
Running smoothly in version 58.4
Code Example
yarn run v1.12.3
warning ../../../../package.json: No license field
$ react-native run-android
info JS server already running.
info Building and installing the app on the device (cd android && ./gradlew app:installDebug)...
> Task :react-native-gesture-handler:generateDebugRFile FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-gesture-handler:generateDebugRFile'.
> java.nio.file.NoSuchFileException: /Users/meftunca/Desktop/projects_me/reactNative/ui/node_modules/react-native-gesture-handler/android/build/intermediates/merged_man?fests/debug/../../l?brary_man?fest/debug/AndroidManifest.xml

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BU?LD FAILED in 2s
14 actionable tasks: 1 executed, 13 up-to-date
error Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
error Command failed: ./gradlew app:installDebug
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Environment
React Native Environment Info:
System:
OS: macOS 10.14
CPU: (4) x64 Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz
Memory: 34.98 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.15.1 - /usr/local/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 23, 25, 26, 27, 28
Build Tools: 27.0.3, 28.0.3
System Images: android-23 | Google APIs Intel x86 Atom, android-27 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom_64
IDEs:
Android Studio: 3.3 AI-182.5<IP_ADDRESS>14842
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.4 => 16.8.4
react-native: 0.59.1 => 0.59.1
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-debugger-open: 0.3.17
react-native-git-upgrade: 0.2.7

Hello there 👋 this issue doesn't have a repro (which means, a react-native init-ed project with the minimal changes that leads to creating the same issue you are reporting). Unfortunately, I have no way of helping you in a meaningful way – there is no easy way for me to recreate the situation and check that the issue reported is still there when changing the code.
Because of this, we are going to close this issue - but if a repro is shared, we are happy to reopen it 🤗

Hi @dulmandakh
You can reproduce this issue easily.
React Native 0.59.1 cannot link any library for android. I have tried with react-native-vector-icons library and got the same error.
Execution failed for task ':react-native-vector-icons:generateDebugRFile'.

I've been experiencing same issue for a few days with multiple libraries such as Async Storage and Realm. Finally solved it.
Open android project in Android Studio. Do 'Clean Project' and then 'Rebuild Project'. Now execute 'react-native run-android'. It should not throw 'react-native-gesture-handler:generateDebugRFile FAILED' error anymore..


Error in File for Android: PhoneDialer.cs

var context = MainActivity.Instance;
MainActivity does not contain a definition for instance

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

ID: 2de3e72c-8948-4dd5-e37f-9cf81e62c127
Version Independent ID: 7b7c5c7f-4102-8e91-fbe6-7d21fcc8f5be
Content: Xamarin.Forms Quickstart - Xamarin
Content Source: docs/xamarin-forms/get-started/hello-xamarin-forms/quickstart.md
Product: xamarin
GitHub Login: @davidbritch
Microsoft Alias: dabritch

Hi @koustavtub
If you proceed to the next step in the tutorial, you'll update your MainActivity class with an Instance property and your compiler error will vanish.


Release v3.0.3

I think it would be good to release the following as soon as possible.

https://github.com/rubocop/rubocop-rspec/pull/1936

Before submitting the PR make sure the following are checked:

[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[-] Added tests.
[-] Updated documentation.
[x] Added an entry to the CHANGELOG.md if the new code introduces user-observable changes.
[x] The build (bundle exec rake) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).

Thank you for preparing the release. If #1935 can be considered a minor change, it can be released as RuboCop RSpec 3.0.3 instead of 3.1.0. This would provide an easier update opportunity for RuboCop RSpec 3.0 series users who have specified versions like ~> 3.0.0. Of course, please prioritize the policies of RuboCop RSpec :-)

Thanks for the suggestion! It certainly looks like an edge case support, so I felt like it could be a patch release. @rubocop/rubocop-rspec WDYT?


[Feature Request]: LDAP Failover

Describe the feature you'd like
Apologies if this is already something that can be configured but I haven't seen a guide on how if so.
It would be great if the Bookstack .env gave the option to configure an alternative LDAP address that could be used if a lookup fails.  We recently lost access to a DC (thanks Microsoft for January patching fun) and our other DCs could have kept the service alive if Bookstack knew where to look after the first failed lookup.
Describe the benefits this feature would bring to BookStack users
LDAP logins would continue to function if a single DC was offline or malfunctioning.  Greatly increasing availability of the Bookstack service.
Additional context
No response

Thank for the request @Cidwill.
Correct me if I am wrong, but I think this may come under the same request of #543?

Well this would be for multiple DCs within a domain rather than multiple domains but I imagine the actual functionality would be the same so yeah, happy to close off and add to that one.
Thank you for the quick response Dan.  Love your work.

#543


Update README.md

(Apologies in advance if this PR doesn't align with project guidelines or Github guidelines - it's my first time submitting a PR on this platform.)
Running the following command on MacOS, using node 16.14 and yarn 1.22.15 yielded the following error:
$ yarn create serverless-stack --use-yarn --example typescript
yarn create v1.22.15
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Installed<EMAIL_ADDRESS>with binaries:
      - create-serverless-stack
[######################################################################################] 86/86
Initializing a new Serverless Stack JavaScript project
Creating typescript/ directory
Creating example: typescript
error Example "typescript" does not exist.
error Command failed.
Exit code: 1

It seems that it couldn't find an example by the name of typescript. Presumably understandable, since the folder name is typescript-monorepo.
I ran the following command, which worked:
$ yarn create serverless-stack --use-yarn --example typescript-monorepo
...
✨  Done in 134.23s.
Success! Created typescript-monorepo in /Users/REDACTED/typescript-monorepo
...

Thanks @abirtley! Nice catch!


New-year issue triage

[x] Go through all issues
[x] Close code and style improvements we've landed in the last sprint
[ ] Move non P1 items out of the current 0.6.x sprint
[ ] Author README messaging in prep for 0.6.x (e.g please only report tooling issues for now)
[ ] Resolve what we're doing about material.css/material.js
[ ] Create issues to flesh out the documentation plan for 0.6.0
[ ] Improve issue and contribution submission guidelines

You've been doing nice work going over all issues, @addyosmani! :trophy:

Thanks @arthurvr!

If you need an extra hand on any issue just let me know, I'll be happy to help!

Thanks @codeandrop! Any help with bug triage / helping us close tickets would be hugely appreciated. We're still at about ~44 open atm :) Some of these are to help us track work on the next major version (0.6.0 - in the material-sprint branch) but others are less relevant now.

Sure @addyosmani I will start reviewing issues labeled P1 and continue the conversation there, I'll get back on this one if needed.


compact: add an API for deletions on the compactor

Signed-off-by: Harshitha1234<EMAIL_ADDRESS>

[ ] I added CHANGELOG entry for this change.
[ ] Change is not relevant to the end user.

Changes

Added an API on compactor for deletions
Verification

Verified the API locally on Postman

cc @bwplotka @metalmatze

I guess we can close this now in favor of #3006


No DB shards could be opened after backup restore

To backup db, files under shards folder are compressed and moved, to restore decomressing and replacing *.couch files, but after restore we get "No DB shards could be opened"
and it wont work until couchdb gets restarted
Expected Behaviour
after restoring shards file, user must be able access the db through url
Your Environment
linux ubunto

Hi there,
This is not a CouchDB bug. GitHub is for actual CouchDB bugs only.
If you are looking for general support with using CouchDB, please try one of these other options:

The user mailing list. Signup instructions are here
The Slack/IRC chat room. Joining instructions are here


Rename ScopedService

Is your feature request related to a problem? Please describe.
Reading ScopedService, as an ASP.NET Core developer new to Hot Chocolate, my immediate assumption would be that it is about service lifetime. (I myself had this misconception for the longest time)
This misconception is furthered by the Entity Framework example on the website where we are using [ScopedService] to inject the database context... which has a scoped service lifetime... which must mean that we are using ScopedService because of the DbContext lifetime - 🚨 WRONG.
Describe the solution you'd like
ScopedService should be renamed to more accurately reflect its purpose. Maybe to something like FromLocalState? Or we could have it so that the existing LocalState attribute takes the name of the parameter type as its key, if the key is not specified.

I'm with you @tobias-tengler
@michaelstaib  can we deprecate ScopedService with 12?

We can if we find a better name :) So far did not find one. The name is not totally wrong since it actually is a scoped service lifetime. The lifetime if scoped services in this case is scoped to the filed. The misconception is often that scoped means per request. But scoping is up to the user.
But I agree that there is an issue here since we scope out of the service context. We could actually remedy this but also would break behavior in this case.
I see the issue that people do not get what it does. Although it does what it says :D it scopes the lifetime of a service to the pipeline of a resolver.

@michaelstaib  I vote for LocalService

is there a way to register ScopedService in the service container with out describing it in the pipeline?

Closing this, since the new RegisterDbContext<T>() makes the ScopedServiceAttribute obsolete for the majority of today's use-cases.


Creating lua package for fmt

Creating lua package for fmt and linting part 1 adding stylua command
I can add a negative test case as well, but I'm not sure how. Any help with that or any other changes I should make please let me know.
#2137

Thanks @teddylear 🙂 Can you please squash your commits?

Missed it earlier, please move package into pkg/universe.dagger.io/x/<email>/lua.
Context: https://github.com/dagger/dagger/pull/1362#issuecomment-1085463696

@helderco Updated and moved to my own folder


SSL

i want to ask how is it possible to change the ssl certification files?
i need them for the apache installation
regards and thx

You need to upload (ADD or COPY in Dockerfile) your own certificate into:

/opt/docker/etc/httpd/ssl/server.crt
/opt/docker/etc/httpd/ssl/server.csr
/opt/docker/etc/httpd/ssl/server.key

see https://dockerfile.readthedocs.io/en/latest/content/DockerImages/dockerfiles/apache.html#apache-layout
Or use a reverse proxy with let's encrypt support :)

Or use a reverse proxy with let's encrypt support :)

When I try to use a reverse proxy, I get errors in the console saying content needs to be served over HTTPS. Any ideas? My Trafeik proxy has a valid LE SSL


How to specify runtime/engine requirements?

The idea of supporting all kind of runtimes/engines like Deno, Bun and Node seems very nice, but at the same time not very easy to accomplish and specify.
If I knew I was using a feature that requires a specific Node version it was common/good practice to specify this requirement in the "engines" field of the "package.json". But I found when publishing my package. that these were not part of the assembled "package.json" that is being installed.
How can I also add requirements for other runtimes? Should I? Couldn't JSR provide here another assistance in knowing somehow the requirements automatically from scanning the source code? That would be an extreme help.

You can provide runtime compatibility information from your package settings page. This information will show up on the package page in the header.
On the question of automatic discovery. This is near impossible to analyze statically. For example to answer the question "Does this code work in Deno", a human can easially answer "yes", but a static analysis system has a near zero chance to pick up if this code actually works in Deno or not.
/**
 * Log to the console. Works in Deno and browsers.
 */
export function log(msg: string) {
  console.log(msg);
}

/**
 * Log to a <p> tag in the <body>. Works only in browsers.
 */
export function logHtml(msg: string) {
  const p = document.createElement("p");
  p.innerText = msg;
  document.body.appendChild(p);
}

It is true, that the above example, shows limitations of engine requirement specifications. But someone manually hitting a "this is fine" button for Deno on behalf of his package, doesn't sound like a proper solution either.
Also, it is questionable, if a package should be designed in a way that certain environments need to avoid calling certain functions. But that's another discussion 😆


Filter queries in the Symbols UI should be tokenized

From event.

Filtering components with a space should treat each word as a separate query
Searching for Actor new should match new Actor but ”Actor new" shouldn’t

Fixed in 3.6.4663-dev.


fix bug:in the prof result internal method does not display class name

in the prof result does not display class name(internal method in extensions). like this:
extension Test::dotest().
in prof result just display "dotest" not  "Test:dotest".
and this pr fix this bug.

But I remeber that I had use this to profiled yaf and I believe it shows the right things. But it's long time ago and I am not pretty sure right now, Can you provider some tests anyway, that would be great! thanks!

yes, when i use xhprof to prof my php code, and found this bug. the fellow is some result I got.
ps: ap just like yaf（actually， ap is the oldest version of yaf）
before fix:

after fix:

这个fix太棒了。

23333

同学们，在github上请将English


Vulnerability in dependency: @xmldom/xmldom

Hi,
I'm using kdbxweb as a dependency in my project, and a Nexus IQ dependency check resulted in a high severity security violation for @xmldom/xmldom, which is a direct dependency of kdbxweb, and thus a transitive dependency for my project.
Please find the details of the vulnerability here:
https://nvd.nist.gov/vuln/detail/CVE-2022-37616
It would be very much appreciated if you could fix this vulnerability and publish a new version of kdbxweb. Thanks in advance!
Best,
Steven

The package has been updated to the latest 0.8.x version which does not contain any reported vulnerabilities. Once we test 0.9.6 and ensure kdbxweb continues to work properly; we'll bump it again.


SOAP Usability

I wonder whether XMLCoder can be used / improved to handle SOAP documents.
SOAP documents make excessive use of XML namespaces, e.g. consider the following SOAP document example:
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
    xmlns:tds="http://www.onvif.org/ver10/device/wsdl"
    xmlns:tt="http://www.onvif.org/ver10/schema">
    <s:Header>
        <Security s:mustUnderstand="1"
            xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
            <UsernameToken>
                <Username>operator</Username>
                <Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">yDsyAGk5uWOaELjvFGKkG3xJHCU=</Password>
                <Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">K7y/yKFCjFbbCHHwMR6cBw==</Nonce>
                <Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2018-12-18T19:01:43.687Z</Created>
            </UsernameToken>
        </Security>
    </s:Header>
    <s:Body>
        <tds:GetCapabilities>
            <tds:Category>All</tds:Category>
        </tds:GetCapabilities>
    </s:Body>
</s:Envelope>

This example is used for ONVIF (which is a standard in the field of IP-camera surveillance devices) to gather the capabilities of a certain device. It is sent from the gathering device (client) to the camera device (server).
I think right now we can't produce such documents with XMLCoder, in particular because of the lack of namespace support for the encoder. Would something like a protocol Namespaced be feasible?
protocol Namespaced {
   var namespaces: [String: String]
}

Every node that is using namespaces could then comply to this protocol and upon generating the actual XML, the top node (Envelope in this case) could then use something like a pre-encoding hook that recursively travels through all the nodes, collects the namespaces, and inserts them as attributes into the Envelope.
Or am I missing something and we can already achieve that elegantly with XMLCoder?

@mickeyl I have a similar use case. Did you ever figure this out?

Unfortunately not – at the time I was in a hurry and so I couldn't dive deep enough in to XMLCoder to make it happen. Thus, I resorted to a bunch of my old SOAP-classes in Objective-C. Nowadays, that project is converting their SOAP-APIs into JSON, so I have no more immediate need.
I will have to come back to this sooner or later when I implement ONVIF for Swift, so I still have a need though. Perhaps we can tackle this together? What do you think about my namespace proposal?

@mickeyl Sorry for the delay in response! I liked the namespace proposal. I got distracted by some other pressing work but I'm circling back to this project now. I've done a bit of Swift coding, but I still consider myself a noob with Swift. I'd be happy to work on this with you but would definitely need guidance.

@MaxDesiatov Do you have any opinion on the namespace proposal?

Sorry for the delayed reply. I'm not sure I'm following, how would a conformance to the Namespaced protocol look like for it to work with the XML example you provided? What are keys and values in the namespaces dictionary?

@MaxDesiatov Please see the following (not working) demo which hopefully explains how I would imagine the look and feel at the call site:
import XMLCoder

/**
 Goal is to produce the following XML document:

 <?xml version="1.0" encoding="UTF-8"?>
 <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tt="http://www.onvif.org/ver10/schema">
     <s:Header>
         <Security s:mustUnderstand="1" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
             <UsernameToken>
                 <Username>operator</Username>
                 <Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">yDsyAGk5uWOaELjvFGKkG3xJHCU=</Password>
                 <Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">K7y/yKFCjFbbCHHwMR6cBw==</Nonce>
                 <Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2018-12-18T19:01:43.687Z</Created>
             </UsernameToken>
         </Security>
     </s:Header>
     <s:Body>
        <tds:GetCapabilities>
            <tds:Category>All</tds:Category>
        </tds:GetCapabilities>
     </s:Body>
 </s:Envelope>

And here is how I would create this:
*/

/**
 Let's introduce a namespace protocol that allows specifying which namespace(s) a node complies to.
 Namespaces are injected into the root node by the means of the typical xmlns:<prefix> = <localpart>
 The prefix of the first given namespace is injected into the node name.
 */
protocol Namespaced {

    typealias Prefix = String
    typealias LocalPart = String
    typealias Namespaces = [Prefix: LocalPart]

    var namespaces: Namespaces { get }
}

/**
 We might also (or alternatively) introduce a property wrapper instead that handles this.
 */

struct Envelope: Codable, Namespaced {

    var namespaces: Namespaces { ["s": "http://www.w3.org/2003/05/soap-envelope"] }

    let Header: Header
    let Body: Body

}

struct Header: Codable, Namespaced {

    var namespaces: Namespaces { ["s": "http://www.w3.org/2003/05/soap-envelope"] }

    let Security: Security
}

struct Security: Codable {

    let UsernameToken: UsernameToken
}

struct UsernameToken: Codable {

    let Username: String
    let Password: String
    let Nonce: String
    let Created: String
}

struct Body: Codable, Namespaced {

    var namespaces: Namespaces { ["s": "http://www.w3.org/2003/05/soap-envelope"] }

    let GetCapabilities: GetCapabilities
}

struct GetCapabilities: Codable, Namespaced {

    var namespaces: Namespaces { [
        "tds": "http://www.onvif.org/ver10/device/wsdl",
        "tt": "http://www.onvif.org/ver10/schema",
    ] }

    @Namespaced(["tds": "http://www.onvif.org/ver10/device/wsdl"])
    let Category: String

}

let getCapabilities = GetCapabilities(Category: "All")
let body = Body(GetCapabilities: getCapabilities)
let usernameToken = UsernameToken(Username: "operator", Password: "yDsyAGk5uWOaELjvFGKkG3xJHCU", Nonce: "K7y/yKFCjFbbCHHwMR6cBw==", Created: "2018-12-18T19:01:43.687Z")
let security = Security(UsernameToken: usernameToken)
let header = Header(Security: security)
let envelope = Envelope(Header: header, Body: body)

/**
 Here comes the magic… The XML encoder now
  * traverses through the all the nodes and scans for namespace compliance,
  * rewrites the node names (if necessary),
  * inserts them into a set, and
  * dumps them as xmlns attributes into the root node.
 */

let data = try! XMLEncoder().encode(envelope)
print(String(data: data, encoding: .utf8)!)

I'm a bit worried about the approach with the Namespaced protocol, it doesn't allow to customize namespaces for specific property or to avoid using namespaces for some properties altogether. @Namespaced property wrapper looks to be much more localized, although I'm unsure if passing a dictionary is better than passing just a simple pair of strings? Can a property ever have more than a single namespace?

Well, in that case we could make it an (optional?) non-static property in the protocol and have it set as part of the element construction.
The dictionary conveys more semantics, but yes, a pair of strings would also do. In fact, strictly spoken, only the local parts are a necessity. If you wanted, you could compute the prefixes on-demand (although well-known prefix parts are kind of recommended, since they give meaning).
Unfortunately right now I don't have the ONVIF infrastructure handy to do some tests, but think I remember that although one property only has a single namespace, some namespaces need to be present in the envelope else the devices don't accept the requests – we could solve this in another way though, which would lead to the namespaced protocol to just carry one string (or a tuple, if you want to allow setting the prefix) instead of a dict.
And it's not just ONVIF btw., all kind of SOAP protocols are so convoluted. There are dozens of SOAP protocols (CALDav, CardDAV, …) still out there, for which there is no canonical way to access them from Swift yet – due to the namespace issue.

Let me add: Of course, I can implement all that on top of XMLCoder, it just feels more natural — to me at least — to have builtin support for the creation of namespaced documents.

Well, in that case we could make it an (optional?) non-static property in the protocol and have it set as part of the element construction.

The dictionary conveys more semantics, but yes, a pair of strings would also do.

I hope we can avoid introducing more than a single way to achieve the same thing. What would be a benefit of providing a protocol and a property wrapper at the same time? Of these two, the property wrapper so far seems to be the most flexible option.
Additionally, in the case of a dictionary passed in the parameter, what would happen if two prefixes are supplied?
@Namespaced(prefix: "a", uri: "http://some.tld/path")
let property: String

seems to be quite unambiguous, while with dictionaries it's unclear to me what would happen in this case?
@Namespaced(["a": "http://some.tld/path", "b": "http://some.other.tld/path"])
let property: String

Well, in that case we could make it an (optional?) non-static property in the protocol and have it set as part of the element construction.

The dictionary conveys more semantics, but yes, a pair of strings would also do.

I hope we can avoid introducing more than a single way to achieve the same thing. What would be a benefit of providing a protocol and a property wrapper at the same time? Of these two, the property wrapper so far seems to be the most flexible option.

The property wrapper can't be assigned to a top-level object, but that's all. Since the envelope needs special treatment anyways, we could probably do without the protocol.

@Namespaced(prefix: "a", uri: "http://some.tld/path")
let property: String

Looks good.

Awesome, thanks for the reviewing the approach! One could start with a property wrapper, and then we could consider additional approaches if needed. 👍


[logging] add query id to SQL Lab logs

CATEGORY
Choose one

[ ] Bug Fix
[ ] Enhancement (new features, refinement)
[ ] Refactor
[ ] Add tests
[ ] Build / Development Environment
[ ] Documentation
[X] Logging

SUMMARY
It's hard to debug sqllab using logs because (afaik) there is nothing indicating which logs correspond to which queries, so I added query_id into relevant logs to help with debugging in the future.
TEST PLAN
tox passes.
REVIEWERS
@graceguo-supercat @etr2460

Codecov Report

Merging #8104 into master will increase coverage by <.01%.
The diff coverage is 61.9%.

@@            Coverage Diff             @@
##           master    #8104      +/-   ##
==========================================
+ Coverage   65.93%   65.93%   +<.01%
==========================================
  Files         485      485
  Lines       22890    22891       +1
  Branches     2521     2521
==========================================
+ Hits        15092    15093       +1
  Misses       7667     7667
  Partials      131      131

Impacted Files
Coverage Δ

superset/views/core.py
71.11% <33.33%> (ø)
:arrow_up:

superset/sql_lab.py
76.96% <66.66%> (+0.12%)
:arrow_up:

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 610b35a...840cace. Read the comment docs.


helm: add rate limit env variable to launch workflow

closes reanahub/reana-server#443

Codecov Report

Merging #619 (caafe8d) into master (5e71e74) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #619   +/-   ##
=======================================
  Coverage   19.34%   19.34%
=======================================
  Files          26       26
  Lines        2078     2078
=======================================
  Hits          402      402
  Misses       1676     1676


Take readOnly into account when calculating usage

Model should not be marked as input if it's only used in a readOnly property.

Fixed it on our side.


useable for shopware v5.4

made useable for version 5.4
smarty security mode

Thank you :heart:


Organization

Fixed a few typos and removed some duplicate entries
Moved around some entries to the category they belong to
Moved the "Going nuclear" category from the normal list to the nuclear list where it belongs, no need to have those in both lists

I agree with most of these changes, except the twitter one. iirc, search engines index both twitter.com and x.com respectively, so that's why I put both of them on there. As for the nuclear section in the default list, that's there purely for experimentation (see commit 61f51dc) to see how certain blocking certain sites would affect searches; kinda like a small-ish nuclear list (if that makes any sense).
However, I get that it probably doesn't fit in the main list at all, since I created a whole separate list specifically for these 'hard to filter' sites. So, I'm okay with that change.

Oop, sorry i'm dumb. For whatever reason i thought you removed them, but they were just dupes 🫠


Revert "Include prof gem group in sorbet workflow"

Reverts Homebrew/brew#15134

Merging into https://github.com/Homebrew/brew/pull/15143


is there a .JAR file?

Is there a way to get the .JAR file?
Thanks,

Sorry for late response
https://repo1.maven.org/maven2/com/devskiller/friendly-id/friendly-id/1.1.0/friendly-id-1.1.0.jar


Enter key no longer works in the settings editor

Version: 1.25.0-insider
Commit: 368ab9c31b5c0930a40ab3f0e0d768ebbeeb9ef8
Date: 2018-06-26T05:18:29.183Z
Ubuntu 16.04
Open the classic settings editor, go to the user settings editor, try the enter a new line. Nothing happens, enter key is swallowed. any other key or Ctrl + Enter works

Duplicate of #52887


archive of old playable games

could release in days/weeks after, or the post 100-days

important: on load strip id from url params for sharing purposes
make a standalone menu (number + name) and/or make grid clickable


pandas warning about .apply(sum)

https://github.com/knubez/TAMS/blob/0b74da8871e2ac16146ab7c714f86ba4d16d9600/tams/core.py#L799
May be able to just use .sum() instead. Or pandas suggests switching to .apply('np.sum') to keep the current behavior.

Also seeing a corresponding warning with this in some envs:
numpy/core/fromnumeric.py:86: FutureWarning: The behavior of DataFrame.sum with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis)

which seems to be really a pandas 2 thing.


e2e: test snapshot restore

Fix https://github.com/coreos/etcd/issues/6391.

Considered refactoring e2e code base but it requires much more changes, in my opinion.
/cc @xiang90 @heyitsanthony

@gyuho looks good in general. Let's clean this up. I will do another round of review.

@xiang90 All addressed. PTAL. Thanks!

@xiang90 Just addressed.
os.RemoveAll(newDataDir) is needed, because snapshot restore command requires the --data-dir to be not-exist before it runs the command (https://github.com/coreos/etcd/blob/master/etcdctl/ctlv3/command/snapshot_command.go#L180-L190)
PTAL. Thanks.

@gyuho OK. Can we just get the temp dir name somehow without creating it then? The code is really confusing as it is.

@xiang90 Fixed. (just using os.TempDir)

@gyuho LGTM. I think you now understand why I want to refactor our e2e infra well. In this pr, we have to use raw processExpect all over the place. We cannot utilize existing code :(. But let's see if this causes us problem in the future.

@xiang90 Yeah this is not the best way, but we can refactor more later. Merging in greens. Thanks.


Web API reference incomplete?

the javascript API reference is here https://google.github.io/filament/webgl/reference.html
but it seems to be incredibly incomplete, for instance it does not have scene.addEntity or really much of anything, if you look at the filament.d.ts file it declares much more than is present in that reference page, is there a more complete version available?

Yes it needs to be fleshed out, the typescript bindings are more up-to-date.  The most authoritative source is jsbindings.cpp and our C++ headers.

Okay. So for the time being I should read the c++ headers then?

Yes the C++ headers and the demos in web/samples are your best bet.
I think we should probably simplify our JavaScript documentation process.  Currently we use a custom python script to slurp up scattered comments.  Instead, we should simply consolidate all the documentation into the TypeScript definitions file, so that it's one place.

Yes if the typescript definition file had comments that would have been ideal for me.

I added some notes to #5530 yesterday, in a sense this a dup of that bug, closing.


Update HTTPoinson to address TLS error

Summary:

I tried running on Elixir 1.8, but I was getting the following TLS error from :hackney: {:error, {:options, {:sslv3, {:versions, [:"tlsv1.2", :"tlsv1.1", :tlsv1, :sslv3]}}}}
Changed :httpoison to ~> 1.8, which also updated hackney to 1.17.4
Bumped the Elixir version to ~> 1.10
Tested w/ Elixir 1.10.4 & OTP 23.3.1

Hi @devoutsalsa, thanks for the PR!


Update plot_h12_h1x.ipynb

Re: issue #424

Yup. You can, of course, see those on the API but manually cross-checking the list on the cohort assignment NB for the cohorts sync with Af1.0 and finding the closest one to the ones we did as part of Af1.1, might the quickest way to update these.


Add me

[Enter feedback here]

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

ID: 63db3d01-148b-a6ab-ca06-9066f79d5935
Version Independent ID: 9d62f214-12ce-eee4-7269-b7a38732baed
Content: Create Azure Advisor alerts for new recommendations using Azure portal - Azure Advisor
Content Source: articles/advisor/advisor-alerts-portal.md
Service: advisor

@Rj-anwar can you please clarify your feedback on the doc?


Warning in the image_to_gkr script

WARNING: gcloud docker will not be supported for Docker client versions above 18.03. Please use gcloud auth configure-docker to configure docker to use gcloud as a credential helper, then use docker as you would for non-GCR registries, e.g. docker pull gcr.io/project-id/my-image. Add --verbosity=error to silence this warning, e.g. gcloud docker --verbosity=error -- pull gcr.io/project-id/my-image. See: https://cloud.google.com/container-registry/docs/support/deprecation-notices#gcloud-docker

Currently the recommended way forward fails with
$ gcloud auth configure-docker
ERROR: (gcloud.auth) Invalid choice: 'configure-docker'.
This command is available in one or more alternate release tracks.  Try:
  gcloud alpha auth configure-docker
  gcloud beta auth configure-docker


min-android 1.5.1 differs from production 1.0.4 value

Describe the bug
The min-android value served on
https://svc90.main.px.t-online.de/version/v1/configuration/country/DE/app_config is
1.0.4
which differs from the value
1.5.1
stored in https://github.com/corona-warn-app/cwa-server/blob/main/services/distribution/src/main/resources/application.yaml#L144
If CWA Android 1.4.0 is started, there is no prompt shown to the user that the app should be updated.
Expected behaviour
The min-android value served on
https://svc90.main.px.t-online.de/version/v1/configuration/country/DE/app_config should be the same as the value stored in https://github.com/corona-warn-app/cwa-server/blob/main/services/distribution/src/main/resources/application.yaml#L144 which is currently 1.5.1.
If min-android with the value of 1.5.1 were in production then starting CWA Android 1.4.0 should produce a prompt to update the app.
Steps to reproduce the issue

In Android Studio checkout CWA Android app release/1.4.x
Run CWA on Pixel 3a API 33 Android device emulator in Debug mode
Open Logcat in Android Studio and enter search term "UpdateChecker"

The log shows the following:
UpdateChecker           de.rki.coronawarnapp.dev             E  minVersionStringFromServer:1.0.4
UpdateChecker           de.rki.coronawarnapp.dev             E  Current app version:1.4.0
UpdateChecker           de.rki.coronawarnapp.dev             E  needs update:false````

Technical details

Android Studio Dolphin | 2021.3.1 Patch 1
Pixel 3a API 33 Android device emulator
CWA Android 1.4.0

Possible Fix
Clarify what the minimum enforced version of CWA Android in production is supposed to be and ensure alignment of https://github.com/corona-warn-app/cwa-server/blob/main/services/distribution/src/main/resources/application.yaml with the values used in production.

FYI: I opened https://github.com/corona-warn-app/cwa-server/issues/1963 asking the team to check for other differences between this repositories main branch & the production environment.

Also I would expect min-android-version-code /  minVersionCode=48 and not 31 to be served.


Error on adding new Scale

Error when clicking save on adding a new Scale and leaving form empty

Updated to include validation


Add diveTo(selector) method

We use a lot of higher-order components, which leads to long and brittle chains of dive().dive()... in our shallow component testing code. It was previously suggested to add a depth parameter to dive (https://github.com/airbnb/enzyme/issues/1138), which would make the code shorter but equally brittle.
I'm wondering if a new method diveTo that is called with a selector, such as the non-enhanced component, could be helpful. That way, even if we reorganize the HOC composition, our testing code stays stable.

We have an alternative API in mind; but diveTo is a reasonable API as well.

Hello guys,
I use enzyme everyday and would love to help, can I try to do this feature ?
I was thinking of looping using the same logic of dive but adding information about the depth on error messages and finally returning the ReactWrapper after n iteration. What do you think ?

I don't think we're ready to add this feature yet; thanks for your interest! https://github.com/airbnb/enzyme/labels/help wanted is the best place to look for things that are ready for contributors to try their hand at.

@ljharb I'm curious about the alternative API you have in mind. Could you share your idea?

I'v been looking forward to this feature for a very long time. Diving down manually is tedious and brittle. Mount renders unwanted deep children. DiveTo is perfect because it doesn't care how many HOC's are between it.

One issue with the proposed diveTo is that string selectors are always brittle, and always a code smell. The only way to avoid this is .diveTo(Component), but this requires exporting the wrapped component solely for testing, which is also a code smell.

@ljharb I agree with exporting a component from production code just for testing is a code smell because other devs might be confused as to why we are exporting it, i.e we are making a private component a public one.
Why are string selectors bad though? I can't imagine a components name is going to change very often in the future. Or is it because we could have another component higher up the chain with the same name (seems unlikely unless generic).
The best solution perhaps might be to use something like rewire to get the Component. I don't love doing this though because it makes tests messy and can lead to abuse where people rewire everything to test.
Perhaps if enzyme provided a function which internally rewired this it would be nice? Maybe that's what you were thinking.

Multiple components can have the same name, names can and indeed do change, etc.

I share your concerns, @ljharb. That's why I'm dying to know what could be a better approach. :)
.diveTo() + extra export or displayName selector, while not optimal, at least seems to be an improvement over the current situation with .dive().dive()... chains.
Another problem I see with diveTo(selector) is that it is not obvious, whether diving stops at the element matching the selector or whether it also dives into that element. The latter option is probably preferable as the most common use case probably is testing the exported, enhanced component as one unit. If you want to test only your HOC composition as a unit, you'd still have to add an extra export, though. So maybe we should rather name it diveInto(selector) then? Anyways, I guess I'm getting ahead of the discussion...

I've used a diveFor function, which dives until the selector is found. A slightly different solution to the same problem.
function diveFor(wrapper, selector) {
    let result;
    let current = wrapper;
    do {
        result = current.find(selector);
        if (result.length > 0 || !current.dive) {
            break;
        }
        current = current.dive();
    } while (current.dive);
    return result;
}


Include entity name in emails

🗣 Description
This PR includes the full name of the entity receiving the email is include, rather than just the entity's acronym.  Note that this change applies to the following types of emails:

CyHy
CyHy notification
PSHTT
Trustymail

💭 Motivation and context
This change was requested in #109 to make life easier for the CSAs who receive a large number of these emails.
Resolves #109.

🧪 Testing
I built a prelease version of this Docker image and pulled it in to the Production reporter and Docker instances.  Then, I ran each type of mailer run (cyhy, notification, bod1801) using the --dry-run and --debug flags.  --dry-run was used so that the emails wouldn't actually be sent out and --debug was used so that I could view the contents of the email messages.
Example command:
docker compose up --detach; docker compose logs --follow | grep Greetings

Example output before the changes in this PR:
cyhy-mailer-mailer-1  | 2024-04-23 15:30:51,134 DEBUG Message plain-text body: Greetings DHS,
cyhy-mailer-mailer-1  |
Greetings DHS,

When using my prerelease image with the changes in this PR, I confirmed output like the following:
cyhy-mailer-mailer-1  | 2024-04-23 15:32:54,359 DEBUG Message plain-text body: Greetings Department of Homeland Security (DHS),
cyhy-mailer-mailer-1  |
Greetings Department of Homeland Security (DHS),

✅ Pre-approval checklist

[x] This PR has an informative and human-readable title.
[x] Changes are limited to a single goal - eschew scope creep!
[x] All relevant type-of-change labels have been added.
[x] I have read the CONTRIBUTING document.
[x] These code changes follow cisagov code standards.
[x] All relevant repo and/or project documentation has been updated
to reflect the changes in this PR.
[x] Tests have been added and/or modified to cover the changes in this PR.
[x] All new and existing tests pass.

✅ Pre-merge checklist

[ ] Finalize version.

✅ Post-merge checklist

[ ] Add a tag and create a release.
[ ] Create a local Docker image: docker build -t cisagov/cyhy-mailer:1.7.1 --platform=linux/amd64 .
[ ] Push Docker image up to Docker Hub: docker push cisagov/cyhy-mailer:1.7.1
[ ] Deploy this change to Production (manual process below) for both the reporter and Docker instances:

[ ] cd /var/cyhy/cyhy-mailer
[ ] Update docker-compose.yml to use cisagov/cyhy-mailer:1.7.1
[ ] docker compose pull
[ ] Ensure any --dry-run and --debug flags (used for testing) in composition files are commented out

Don't forget to update docker-compose.yml when you finalize the version.


CSS missing after build with latest 0.15.x versions

Describe the bug
I am working on a private project and it uses Ant-Design-Vue 2.x UI framework and integrade Okta Widget for user authentication.
All things works fine with previous 0.14.6 version. But when I upgrade to the latest version, I got several issues after build.

Ant-Design-Vue related:

warnings when minifying css:
Missing '}' at 182:1.
Broken URL 'url(data:image/svg+xml;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 30%;
}
...
...
@media (min-width: 992px) {
  .logo[data-v-2309f04f] .ant-image {
    width: 220px;' at 11:20. Ignoring.

In my project, the Windicss config does not have transformCSS: 'pre' enabled. If added, the error will change to the Less files in ant-design-vue node_module folder.

Okta Widget related:

Please see the screenshots below as the widget's build-in stylings are lost compare to the old build.
0.15.1 to 0.15.7:

0.14.6:

Minimal Reproductions
Sorry about not able to provide a repo as Okta widget needs some auth server setup to work together.
Versions

vite-plugin-windicss: "^0.15.7"
vite: "^2.2.1"
framework(vue/react/svelte/etc): "Vue 3.0.11"

I had a similar problem
After updating to v0.15, and some classes from swiper lib ware not importing.
I'm importing the "swiper.min.css" and it fails on src:url
@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA')

Removing the double slash on base64 path and the css works fine...


Incorrect masks shape?

I feed the following images to network:
Image batch shape: (8, 768, 768, 3)
    outputs = model.predict_on_batch(image)

    boxes = outputs[-4]
    scores = outputs[-3]
    labels = outputs[-2]
    masks = outputs[-1]

Detections shape: (8, 100, 4) (8, 100) (8, 100) (1, 100, 28, 28, 1)
I expect masks shape to be (8, 100, 28, 28, 1)
Am I missing something?

Thank you for fast response. Now I get it.


BUG

Position
At func (f *Function) Chunk() (chunk ast.Chunk):
func (f *Function) Chunk() (chunk ast.Chunk) {
	root := f.Blocks[0]
	return root.ToAst()
}

It seems Missing domFrontier.
Detail
 root.ToAst() define ：
func (b *BasicBlock) ToAst(dom domFrontier) (chunk ast.Chunk)

Yeah the SSA implementation is very incomplete at the moment, I would disregard it for the time being.
Moreover, a lot of the newer SSA implementation is on the ssa branch and everything on the main branch is outdated.
Furthermore, I have been working on SSA recently so if you're interested in using it I could work on publishing the most up-to-date version or I could just prune it from the main branch so it doesn't throw errors for the time being.

Yeah the SSA implementation is very incomplete at the moment, I would disregard it for the time being. Moreover, a lot of the newer SSA implementation is on the ssa branch and everything on the main branch is outdated. Furthermore, I have been working on SSA recently so if you're interested in using it I could work on publishing the most up-to-date version or I could just prune it from the main branch so it doesn't throw errors for the time being.

Thanks, But I only use this repository to format my lua source text

I've removed the ssa package from the latest release v1.4.12.


Deploy algorithm via Unity.py or Unity.js

can currently (release 23.1) deploy to SDS using a hardcoded JSON payload

Deployment of algorithm will happen via Dockstore + WPS-T directly.
Will set up algorithm deployment in Unity Common API in 23.3/23.4 as part of that work chunk.

Note: there will be both an explicit deployment Unity Common API endpoint (and Unity-py function, e.g. application/deploy/) as well as an implicit endpoint (application/execute/ on an Application that is not yet deployed).


num_return_sequences: RuntimeError in unsloth/models/llama.py

Specifying num_return_sequences to generate causes a RuntimeError in unsloth/models/llama.py.
Reproduction notebook (edited from the very useful DPO example notebook). (Note: everything before the final cell is unedited from the DPO example notebook.)
The cell code:
# Reproduce num_return_sequences crash.
chat = [
    {"role": "system", "content": ""},
    {"role": "user", "content": "Hello world."},
]

tokenized_chat = tokenizer.apply_chat_template(chat, tokenize=True, add_generation_prompt=True, return_tensors='pt').to('cuda')

# Generating without `num_return_sequences` is fine.
outputs = model.generate(tokenized_chat, max_new_tokens=128, do_sample=True)
# Generating with `num_return_sequences` causes a RuntimeError.
outputs = model.generate(tokenized_chat, max_new_tokens=128, do_sample=True, num_return_sequences=4)

The error:
/usr/local/lib/python3.10/dist-packages/unsloth/models/llama.py in LlamaAttention_fast_forward_inference(self, hidden_states, past_key_value, position_ids)
    110     # assert(n_kv_heads * n_groups == n_heads)
    111
--> 112     Xn = hidden_states.view(self.hidden_size)
    113     K1, V1 = past_key_value
    114     seq_len = K1.shape[-2]

RuntimeError: shape '[4096]' is invalid for input of size 16384

@malcolmsharpe WHOOPS I was working to make inference 2x faster, but I accidentally forgot about multi batched inference

Maybe it helps, and maybe not.. but I get the same error though I don't use num_return_sequences. What I do is the following:
outputs = new_model.generate(
    **inputs,
    do_sample=True,
    max_new_tokens=1024,
    top_p=0.9,
    repetition_penalty=1.20,
    num_beams=4,
    temperature=0.7,
)

@Stopwolf Ye my bad - I'm working on a fix to both - should be fixed by today! Extreme apologies again!

@malcolmsharpe Thanks! Ok taking a bit longer than I expected to fix things - hopefully by today!

FINALLY it works yikes so so sorry @malcolmsharpe and @Stopwolf on the issue.
outputs = model.generate(**inputs, max_new_tokens = 64, use_cache = True,
                         num_return_sequences = 4, do_sample = True,)
tokenizer.batch_decode(outputs)

Update Unsloth only with pip install --upgrade --force-reinstall --no-cache-dir git+https://github.com/unslothai/unsloth.git

Thanks, it works now.

It seems that num_return_sequences may have broken again since my previous comment. (I haven't made a repro yet, but I'm guessing the cause might be obvious since you've been working in the area recently. Please let me know if you want more details.) Instead of an error, it's just giving nonsense output when num_return_sequences is 2 or larger.
# Output is sensible when num_return_sequences=1
[('<|system|>\nYou are a helpful chatbot that assists teachers.</s> \n<|user|>\nPlease write a simple middle school algebra problem in which the student must solve for a variable.</s> \n<|assistant|>\n',
  'Solve for x: 2x + 3 = 7\n\nTo solve for x, we need to isolate the variable on one side of the equation. \n\nFirst, we can subtract 3 from both sides of the equation to get:\n\n2x = 4\n\nNow, we can divide both sides by 2 to get:\n\nx = 2\n\nTherefore, the solution to the equation is x = 2.')]

# Output is nonsense when num_return_sequences=2
[('<|system|>\nYou are a helpful chatbot that assists teachers.</s> \n<|user|>\nPlease write a simple middle school algebra problem in which the student must solve for a variable.</s> \n<|assistant|>\n',
  'Science math problem-level math problem solving math problem solving a script for me a science experiment that is an English, and easy for a program for me a comprehensive guide on how-level chatbot: Can you are you are we use a.'),
 ('<|system|>\nYou are a helpful chatbot that assists teachers.</s> \n<|user|>\nPlease write a simple middle school algebra problem in which the student must solve for a variable.</s> \n<|assistant|>\n',
  'Sci science experiment with math lesson plan for a story that is the lesson plan for me with the chatbot: Can you program that introductions for \n')]

The bad output was observed in commit<PHONE_NUMBER>2c7f90dcc7aeea0e1c8d447cde006e.
I observed good output in commit 1ecc0185a5759c7a0c95dfc96aceea5023cebdfc.


Add security policy

Landed in https://github.com/metarhia/metautil/commit/b3b86439d3bd8a46b796e106c425e1ce71ba7fc6

Landed in https://github.com/metarhia/metautil/commit/b3b86439d3bd8a46b796e106c425e1ce71ba7fc6


LOC CHECKIN | dotnet/roslyn-project-system | 20170125 | bugfix

bugfix for r#1331 (368875,368010,368022,368870,368872, 368881)

Merging to localization branch so that we can take this together with conversion to resx and final loc bug fixes.


XEMM issue with decimal invalid operation

Describe the bug
When doing XEMM and when I have enough balance on both exchanges to start trading on both sides, BUY and SELL FRONT only one side is executed.
Steps To Reproduce
// A concise description of the steps to reproduce the buggy behavior:
Not sure the issue started after upgrading to 1.10.0
Here are the steps to reproduce the issue (see attachments in the section below):
Not sure.
Screenshots

Release version
1.10.0
Attachments

WARNING: Do NOT publish any exchange API keys or your wallet's private key. Whoever has access to them may steal your assets!
Optional: your discord username:

Should be fixed by #5921

Fixed in the latest development (dev-1.11.0)


Misdocumented return value for ECDSA verification

Description

Type: Bug
Priority: Minor

Bug
The documentation for mbedtls_ecdsa_verify() states that the function return MBEDTLS_ERR_ECP_BAD_INPUT_DATA if the signature was invalid. This is not correct. The value returned on invalid signature is MBEDTLS_ERR_ECP_VERIFY_FAILED. The value MBEDTLS_ERR_ECP_BAD_INPUT_DATA indicates that the input data was otherwise invalid (for example trying to verify a signature with a Montgomery curve).
This issue is present in development, 2.7 and 2.1.

ARM Internal Ref: IOTSSL-2362


How do I uninstall the desktop client?

Hi, this is not exactly an issue but I can't find a way to uninstall the client so I'm opening this. I no longer want to use the desktop client so wanted to uninstall it.

Apologies for the late response, the application is installed into the Windows App list and can be uninstalled there.
You can find it in Windows Settings > Apps > Installed apps, or search "Add or remove programs" into the windows search bar

No worries, and thanks. Not sure why I didn't think of that!


Any way to lazy load the LocalizationDelegate?

I follow the guide to configure the flutter_translate:
void main() async
{
  var delegate = await LocalizationDelegate.create(
        fallbackLocale: 'en_US',
        supportedLocales: ['en_US', 'es', 'fa']);

  runApp(LocalizedApp(delegate, MyApp()));
}

It takes about 263ms (debug build, Galaxy S9 Android 10) to create the LocalizationDelegate. Thus, I wonder if you have another way to lazy create it?
For example: let runApp(myApp()) first, then show a loading screen while waiting for creating the LocalizationDelegate. After it's done, then show the next screen.
That idea is borrowed from GetIt > allReady method. I'm not sure if you can apply that into flutter_translate.
Library info:
flutter_translate: ^1.4.0

Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.17763.1098], locale en-US)

Finally, thanks for your great library. I'm using it in all 4 projects. 💯

Hi @anticafe, there is no lazy loading functionality currently. The delay is caused by the initial access to the asset files. In debug mode is a bit slower but in release mode the delay should only be ~5ms.
I suggest showing a splash screen while waiting for the app to load.
https://flutter.dev/docs/development/ui/splash-screen/android-splash-screen

release mode the delay should only be ~5ms
It sounds good, less than a frame (16.67ms), thus no one will notice that.


HTTPS upgrades

There are a few OIG websites that have HTTPS available now, we should upgrade these scrapers accordingly. (starting with inspector_url in the reports)

[ ] Amtrak, https://www.amtrakoig.gov/
[ ] NARA, https://www.archives.gov/oig/
[ ] Commerce, https://www.oig.doc.gov/Pages/default.aspx
[ ] CPSC, https://www.cpsc.gov/en/About-CPSC/Inspector-General/
[ ] DHS: https://www.oig.dhs.gov/
[ ] FDIC: https://www.fdicig.gov/
[ ] Federal Reserve: https://oig.federalreserve.gov/
[ ] FTC: https://www.ftc.gov/about-ftc/office-inspector-general
[ ] GSA: https://www.gsaig.gov/
[ ] House: https://www.house.gov/content/learn/officers_and_organizations/inspector_general.php
[ ] HUD: https://www.hudoig.gov/
[ ] Interior: https://www.doioig.gov/ (see #234)
[ ] Labor: https://www.oig.dol.gov/
[ ] NASA: https://oig.nasa.gov/
[ ] SEC: https://www.sec.gov/oig
[ ] SIGAR: https://www.sigar.mil/
[ ] SIGTARP: https://www.sigtarp.gov/Pages/home.aspx
[ ] TIGTA: https://www.treasury.gov/tigta/

And I recall us already upgrading a few over the last several months.
CCing @csoghoian, who I think would be happy to see this.

These OIG websites became HTTPS-ready in the past few months

https://www.cncsoig.gov/
https://www.ed.gov/
https://www.fca.gov/
https://www.fcc.gov/

These OIG websites became HTTPS-ready in the past few months

https://www.cncsoig.gov/
https://www.fcc.gov/


unit tests are using up too much memory

I can't ever run
go test ./pkg/...
anymore without having to kill chrome first. Otherwise I hit OOM errors, among other problems.
Of course, this is partly an environment issue: with chrome and a few tabs open, I'm at ~5/7.5 GB mem used. And closing chrome usually releases around 2GB mem.
Still, I'd like to investigate if I could improve the tests so they can run under 2GB of mem used.

Chrome's memory efficiency is being improved with version 55 pegged to be
released around December 6.
http://v8project.blogspot.com/2016/10/fall-cleaning-optimizing-v8-memory.html
https://plus.google.com/+FrancoisBeaufort/posts/EL1E7aA1pLv
On Fri, Oct 21, 2016 at 1:06 PM, mpl<EMAIL_ADDRESS>wrote:

I can't ever run
go test ./pkg/...
anymore without having to kill chrome first. Otherwise I hit OOM errors,
among other problems.
Of course, this is partly an environment issue: with chrome and a few tabs
open, I'm at ~5/7.5 GB mem used. And closing chrome usually releases around
2GB mem.
Still, I'd like to investigate if I could improve the tests so they can
run under 2GB of mem used.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/camlistore/camlistore/issues/868, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAsyrnVsZjJ5WEoVpCmYE_jze08eU1fEks5q2RtEgaJpZM4Kdibr
.

Almost never a problem anymore for me since I stopped using Gnome, so closing for now.


Add support for neural compressor models

neural_compressor is going to become a framework right ? (library_tag in the README) .

Makes sense to me ! An other option could be to have optimum as library_tag, and have neural-compressor / openvino / onnx as tags, if needed we can also add the model loading logic to optimum (mentionning ONNX and OpenVINO as I would like to add their support as well)
What do you think would make more sense @Narsil @osanseviero ?

What do you think would make more sense @Narsil @osanseviero ?

Both are fine to me. I don't necessarily know the scoping of this vs optimum and such.

Perfect thanks @Narsil, I need to wait for updates from the Intel collaboration before merging, will change the PR status to draft temporarily


Facing issues on Windows 10, Qt 5.12.1 MSVC 2015 & MSVC 2017

I made no changes to the source code and I get the result shown in the below screenshot. I noticed that I can drag the window by holding mouse on the black bar, the buttons events occur in the black location where the buttons should be located however the icons are displaced below it.

same question ， you fix it ？

same question ， you fix it ？

Yet not.

i use Qt5.12.4 msvc 2017, Win10 1903, no this question.

good, Qt5.12.4 ,msvc 2017, Win10is also perfect.
QT should have solved this problem

it's not good , i use Qt5.13.1 msvc 2017, Win10 1903, i have the same problem.

I've tested that the same computer, the same environment, just changing the QT version will solve the problem, so will it not be the problem of OpenGL?

it's not good in 5.13.x? Which one is correct, 5.12.x or 5.13.x?

I've tested that the same computer, the same environment, just changing the QT version will solve the problem, so will it not be the problem of OpenGL?

it's not good in 5.13.x? Which one is correct, 5.12.x or 5.13.x?

win10, vs2017, Qt5.12.1 is not good, Qt5.12.2 is correct

I've tested that the same computer, the same environment, just changing the QT version will solve the problem, so will it not be the problem of OpenGL?

it's not good in 5.13.x? Which one is correct, 5.12.x or 5.13.x?

win10, vs2017, Qt5.12.1 is not good, Qt5.12.2 is correct

it looks like i have to test every single version in every operating system... orz... orz... orz...

在main 函数设置如下属性：
QApplication::setAttribute(Qt::AA_UseOpenGLES);
可以解决这个OpenGL 渲染错位的问题，应该是比 Intel(R) HD Graphics 5000 更早的型号会出现黑色边框。
运行环境：Qt5.14.1 + VS2019  + Windows10 1909 +Intel(R) HD Graphics 4600
参考：https://bugreports.qt.io/browse/QTBUG-40485?focusedCommentId=376505&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-376505


Travis build only on master branch

Coverage remained the same at 99.691% when pulling 36d3cff937357d61bb1535c288f0feb236674307 on travis-master into 8ed331499563fac3f7b983e62c294e825b13b45b on master.


fix(e2e): skip e2e_init_controller_test for noInstall

Signed-off-by: nshankar13<EMAIL_ADDRESS>
Description: Skip the e2e_init_controller_test if the test suite is run with "NoInstall"

Affected area:

Functional Area

New Functionality
[ ]

Documentation
[ ]

Install
[ ]

CLI Tool
[ ]

Certificate Management
[ ]

Control Plane
[ ]

Ingress
[ ]

Egress
[ ]

Networking
[ ]

Observability
[ ]

SMI Policy
[ ]

Sidecar Injection
[ ]

Security
[ ]

Upgrade
[ ]

Tests
[X]

CI System
[X]

Demo
[ ]

Performance
[ ]

Other
[ ]

Please answer the following questions with yes/no.

Does this change contain code from or inspired by another project?

Did you notify the maintainers and provide attribution?
No

Is this a breaking change? No

Codecov Report

Merging #3576 (cbbce3b) into main (9684c97) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #3576   +/-   ##
=======================================
  Coverage   66.12%   66.12%
=======================================
  Files         174      174
  Lines        8309     8309
=======================================
  Hits         5494     5494
  Misses       2784     2784
  Partials       31       31

Flag
Coverage Δ

unittests
66.12% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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 86ef383...cbbce3b. Read the comment docs.

@Mergifyio backport release-v0.9


"ProtocolVersion" error for TLSv1.3-only node

Elastic.Clients.Elasticsearch version: 8.9.1
Elasticsearch version: 8.9.0
.NET runtime version: 6.0.18
Operating system version: Windows 10 22h2
Description of the problem including expected versus actual behavior:
I'm developing an asp.net application locally and that API is a client for my elasticsearch node. When the cluster has the default configuration, everything works. When I set xpack.security.http.ssl.supported_protocols: TLSv1.3, I get the following exception:
{"The SSL connection could not be established, see inner exception."}
And the inner exception:
{"Authentication failed because the remote party sent a TLS alert: 'ProtocolVersion'."}
Sending requests to my node with curl or postman still works fine so it seems the issue is with the client.
Steps to reproduce:

Set up an elasticsearch node
Add xpack.security.http.ssl.supported_protocols: TLSv1.3 to configuration and restart
Try to connect to the node with the library

Expected behavior
The library support using TLSv1.3 out of the box or, at least, provide a way to set the TLS version to use like the python client does.

Indeed this was a schannel error. I assumed you weren't handling this but didn't know where to look.