How to make subdomain based language setting work with only 2-letter language code

fr.example.com
en.example.com
<?php
$i18n = new \Delight\I18n\I18n([
    \Delight\I18n\Codes::NL_BE,
    \Delight\I18n\Codes::EN_US,
    \Delight\I18n\Codes::FR_BE
]);
$i18n->setLocaleAutomatically();
?>

<?php echo($i18n->getLocale()); ?>

I can see that the language is correctly detected based on the subdomain, however putting the files in locale/fr or locale/fr_BE is not working to produce the translated webpage. Only when testing fr-BE.example.com the FR text shows.

Excellent point, thank you!
This should have been fixed with this commit now.
Can you try? You’d need to update (to the next minor version) via Composer.
By the way, if you define \Delight\I18n\Codes::FR_BE as supported, locale/fr_BE is also where you put the files, not locale/fr. It’s obvious that you had wanted to test this, of course. The change is that an fr subdomain should now be mapped to \Delight\I18n\Codes::FR_BE as well – unless \Delight\I18n\Codes::FR is also explicitly supported.
Further, matching is case-insensitive, so you can safely use fr-be.example.com in your URLs.

Works great, thanks! You might want to add this to the readme.
You want to leave it open or close?

Thanks for testing this!
Documentation has now been added as well, so we can close this. Thanks again!


WOR-1235

Jira Ticket: https://broadworkbench.atlassian.net/browse/WOR-1235
Second part of WOR-1235: Converting the workspace dashboard to typescript.

Summary of changes:

convert components to typescript
fix type errors
break apart unwieldy components

It seems like a merge or rebase may have gone wrong. Changes from two other PRs (#4352 and #4341) are showing up in the diff.


inference.py face detection

@Jia-HongHenryLee How does the inference code use the face detection?

Found it, cropped faces are directly being sent to the network.


Adding section about programmatically packaging application.

Adding in a short section on how to programmatically package a Service Fabric application using msbuild.exe. This is useful for build servers etc... where you only want to package up the application and then zip the output.

Hi @kevbite, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

@kevbite : Thanks for your contribution to the Azure documentation! The author, @rwike77, has been notified to review your proposed change.

@kevbite Thanks for the addition.  Changes look good to me.  #sign-off


Tests for tail -c <bytes>

I noticed that there weren't any tests for tailing bytes rather than lines, so I whipped up some simple sanity tests.

Thanks!


Add building layer

PR to fix #170 .
Extrusion is fixed for now to keep the map mostly flat-looking.
Color (gray 80%) was picked to just barely stand out from background.
Might need to be darkened slightly if landuse/landcover is much darker
than 85% as the contrast between the may be too low.
85% opacity alows tunnels and highways to show through just enough for
continuity.
Light intensity was chosen to make the extrusion subtle, but still
visible at pedestrian scales.
z13 - Newark, NJ:

z16 - Lincoln Tunnel:

z13 Boston:

Buildings on parks, to show the color-consistency even with a bit of opacity.

Wow, these look better and better.  I'm definitely in favor of keeping buildings subtle, at least until high zoom.  My main complaint with osm-carto is the building layer causing too much clutter at lower zooms but this is not bad.


Are there any resources that can help understand how to create an enrollment account ?

[Enter feedback here]

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

ID: 564fcf4e-69b9-a8b0-a362-c4effeca4a8b
Version Independent ID: 7ae1feea-e9ca-bc0a-c984-81b19f4339b8
Content: Grant access to create Azure Enterprise subscriptions - Azure Resource Manager
Content Source: articles/azure-resource-manager/management/grant-access-to-create-subscription.md
Service: azure-resource-manager
Sub-service: management
GitHub Login: @jureid
Microsoft Alias: jureid

@sjosyula3 An account added to an Enterprise Agreement is called as Enrollment Account. This link - https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/programmatically-create-subscription?tabs=rest#create-subscriptions-for-an-ea-billing-account has all the information.
For now, closing this issue. If you have any additional questions regarding documentation you can tag me in your reply and will gladly continue the discussion.
For any technical inquiries about Enterprise Agreement/Enterprise Account you can reach out to Azure subscription management team by raising a support request using this link - https://docs.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request


Minor updates in licence and Readme

@Aryan-Prakhar Thank you for doing this, I am merging this now.


By iOS, do you mean Mac OS?

The title sums it up really.
Under compatible systems, you list iOS but not Mac OS.
Atom is not available for iOS (Apple's mobile operating system,) but is for Mac OS.
I would submit a PR to fix this, but I wanted first to make sure this is indeed what you meant.

yes, sorry!


Shooting bug

User is able to shoot bullets even after end screen is displayed. They spawn and stay static.

Hi Vineet,
I am interested on fix this bug. Please assign this issue to me.
Best,
Shabbir

Regarding issues #1 and #2, I believe you need to post a comment there for me to able to assign you.


Error in cmake build.

I am trying to install rdkit after a recent git pull:
(Version: f45aef8effb618d5f2b42b1d7437221be5b56bcb)
When I attempt to run the following commands:
cmake -DPy_ENABLE_SHARED=1
-DRDK_INSTALL_INTREE=ON
-DRDK_INSTALL_STATIC_LIBS=OFF
-DRDK_BUILD_CPP_TESTS=ON
-DPYTHON_NUMPY_INCLUDE_PATH="$(python -c 'import numpy ; print(numpy.get_include())')"
-DBOOST_ROOT="$CONDA_PREFIX"
..
(This comes from https://www.rdkit.org/docs/Install.html).
I get the error:
Downloading https://github.com/catchorg/Catch2/archive/v2.12.1.tar.gz...
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
CMake Error at Code/cmake/Modules/RDKitUtils.cmake:213 (MESSAGE):
The md5 checksum for
/home/jcminer/anaconda3/rdkit/External/catch/v2.12.1.tar.gz is incorrect;
expected: 05c1b743773e546db9cb65b3b9315b02, found:
d41d8cd98f00b204e9800998ecf8427e
Call Stack (most recent call first):
External/catch/CMakeLists.txt:16 (downloadAndCheckMD5)
-- Configuring incomplete, errors occurred!
My machine has the correct proxies established, and the most up-to-date version of 'curl'. So I am not sure why this is happening.
Anyone know how to fix this problem?
Thanks.

Has doing a build worked for you before or is this the first time you’ve tried it?

I got around the earlier problem by downloading a copy of Catch2 myself and placing it where it was supposed to be, but now the problem has extended to the 'maeparser'.
....
-- maeparser include dir set as 'maeparser_INCLUDE_DIRS-NOTFOUND'
-- maeparser libraries set as 'maeparser_LIBRARIES-NOTFOUND'
-- Could NOT find maeparser (missing: maeparser_INCLUDE_DIRS maeparser_LIBRARIES)
Downloading https://github.com/schrodinger/maeparser/archive/v1.2.3.tar.gz...
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
CMake Error at Code/cmake/Modules/RDKitUtils.cmake:213 (MESSAGE):
....
I could call the rdkit git repository from this machine, but it does not seem to accept the other calls made since.


fix(docs): Fix incorrect docs

@jourdain I think this could be ready.  I'll do a release build and push the dist file once you think the content is right.

Push the dist, the readme does not impact it

I was ready to merge.

can I?

You can, unless you want to wait for the checks to complete.


fix: Reduced overall element size throughout UI

This change reduces the overall element sizes for the new UI. This was done by reducing paddings and font sizes for all inputs.

Thanks :)


feat: remove eventgen.conf support

As discussed, eventgen.conf support was needed as a transition step, no needed anymore.
I did not rename class and everything to something else, but if you have an idea of a good name - please comment!

@siddharthkhatsuriya-crest Feel free to add more people for review.

Will be implemented in #464


Update user settings image

@adifayer is this PR should be reviewed?

@Rahul-Prasad-07 is right.
@adifayer please fix your PR or close it :)


Throwing "write EPROTO" error in case of SSL.

We are facing "write EPROTO"  error for now, initially it was working for non-ssl.
In case of ssl, we are not able to access woocommerce api in node.My woocomerce application is running on ssl, while node is not running on ssl.
 Error: write EPROTO<PHONE_NUMBER>51808:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:794:

Please take a look and assist us to resolve this issue.
Thanks

Seems to be an error on your environment, maybe a old version of OpenSSL.
Don't seems to have any error in this wrapper.

I got a very similar error because specified the wrong port. I specified it to be 80 but it should have been 443 or not specified. I'm not sure exactly what the issue is here but that might be part of it.


Create Github Action to release winget package

Following issue https://github.com/f3d-app/f3d/issues/221 Uses winget-releaser I suggest a Classic Github Token with public_repo scope is created by f3d-app org or another maintainer, following this link, then the Token can be added to the f3d repo as a secret named WINGET_ACC_TOKEN. See below, that user also will have to fork the winget-pkgs repository.
Notes:

You will need to create a classic Personal Access Token (PAT) with public_repo scope. New fine-grained PATs aren't supported by the action. Review #172 for information.
Fork microsoft/winget-pkgs under the same account/organization as the project's repository. If you are forking winget-pkgs on a different account (e.g. bot/personal account), you can use the fork-user input to specify the username of the account where the fork is present.

While I'm not against this, I fail to undersand why does we (the F3D maintainers and contributors) should be responsible to upload a binary to yet another packaging. Why cant winget packager/logic grab it instead ?
Is there a documentation about the winget workflow and how it is supposed to work

Also, can/should we upload the nightly too ?

The winget-pkgs is a community repository, so anyone can create a manifest for a package - which references the package name, author, installer url etc - for others to install via the winget install pachage command.
Hence why I listed f3d package myself via that PR: https://github.com/microsoft/winget-pkgs/pull/172695
The automation to upload the new installer to winget-pkgs on every release usually happens on the original repo - around 200k PRs, to get an overview of the approximate count of packages hosted in this community repository - so they don't have to watch every release of every package - especially since the packages that use github release are only a portion of the standard winget packages. The github action are the way to do it, but usually involve simply forking the repo, and using the winget-releaser action to create the new PRs automatically.

Thanks for the explanation.
It happens that our binaries are created by a dedicated release workflow in another repository. I think the action you are adding would be more at home there instead of relying on the release trigger.
https://github.com/f3d-app/f3d-superbuild/blob/79c0daeabef09cfa12c2ce17b39ba83c9252d38e/.github/workflows/release.yml#L44

Thanks for mentioning f3d-superbuild. Usually, the winget-releaser workflow actions are setup on the repo where the release contains the exe or installers, watching for the release.
I've not seen example of actions where the installer files generated by the build CI are actually used within a subsequent job of the action.

Thanks for mentioning f3d-superbuild. Usually, the winget-releaser workflow actions are setup on the repo where the release contains the exe or installers, watching for the release.
I've not seen example of actions where the installer files generated by the build CI are actually used within a subsequent job of the action.

F3D is different than many other repos as the binary package is not generated manually or from the repo itself but from another repo, the superbuild.
This repository is also responsible for generating our python wheels and publishing them on pypi. It seems logical that the winget package would be uploaded from there too imo, and at the same time.

Understood. One thing I forgot to mention, the package manifests references the installer (or portable exe) url, so that every client machine that do run winget install xyz request the installer from that url in order to install it.
So even if the github action is moved outside to f3d-suprebuild, it would reference the installer exe url that resides in https://github.com/f3d-app/f3d/releases/
I don't know of existing github actions that allow that kind of behavior.

Understood. One thing I forgot to mention, the package manifests references the installer (or portable exe) url, so that every client machine that do run winget install xyz request the installer from that url in order to install it.
So even if the github action is moved outside to f3d-suprebuild, it would reference the installer exe url that resides in https://github.com/f3d-app/f3d/releases/ I don't know of existing github actions that allow that kind of behavior.

I'm not sure to follow, when a user do winget install f3d, does it download from https://github.com/f3d-app/f3d/releases/ or from winget servers ?

The package manifests are stored on the community repository - and the indexes are usually updated on each machine. So when hte user runs winget install F3d.F3d, the manifest which references the metadata and installer url is queried from the index, and the installer is requested through the url listed in the manifest, which for github packages is https://github.com/f3d-app/f3d/releases/

Ha! So this action does not even uploads the binary package, but just reference a link to it?

Yep exactly!

Then that looks fine to merge imo. Thanks for the explanation.

The PRs to update the package identifier on winget-pkgs have been merged, so now it can be installed via
winget source update
winget install f3d-app.f3d

Ill merge this as soon as I find the time to create the token


Installation failed from building source

FAILED: crypto_test_data.cc
cd /root/dist/curl-impersonate/build/boringssl && /usr/bin/go run util/embed_test_data.go -file-list /root/dist/curl-impersonate/build/boringssl/build/embed_test_data_args.txt > /root/dist/curl-impersonate/build/boringssl/build/crypto_test_data.cc
# command-line-arguments
util/embed_test_data.go:81:16: undefined: os.ReadFile
util/embed_test_data.go:131:16: undefined: os.ReadFile
note: module requires Go 1.19
[3/762] Generating vpaes-armv8-win.S
ninja: build stopped: subcommand failed.
make: *** [Makefile:271: /root/dist/curl-impersonate/build/boringssl/build/lib/libssl.a] Error 1

I tried to install with building from source on Ubuntu 20.04.2 but can't run make chrome-build.
Any help would be highly appreciated. Thank you in advance.

Having os.ReadFile be undefined, generally means your Go version is old and needs to be updated. os.ReadFile was introduced in Go 1.16 (from Feb 2021) and as you can see, the note saying module requires Go 1.19 means that's going to be the minimum version of Go you need to be able to build that portion. I'm not sure what the minimum version of Go is required for chrome-build though.
Note, I had the same problem (my Go was v1.4) and I had upgraded Go via source multiple times to get to the latest v1.23.1 and the thing is, after updating, make chrome-build was still using the older Go. Turns out 'gmake chrome-clean' wasn't enough to clear out the cached version of Go that was initially found so 'gmake chrome-build' kept trying to force the use of the older Go for me. I had to do a 'gmake clean' in order for the cached versions to be done away with and then redo ../configure in order to get it to use the newest Go I built. Hope that helps.


DP-46  GetCoverage operation to obtain either full or key coverage

This PR utilizes API introduced by DP-6. Therefore IT might BE MERGED ONLY when DP-6 will be completed and all the following PRs will be merged:

https://github.com/basho/riak_pb/pull/106
https://github.com/basho/riak_api/pull/84
https://github.com/basho/riak_kv/pull/1087

NOTE:  As soon as riak_pb version with the PR mentioned above to be released, pom.xml should be updated to use  released version of riak_pb. Currently, since there is no released version with the required functionality, SNAPSHOT dependecy is used.

@broach  could you please perform a kind of pre-review of my PR, just to be sure that everything was implemented in a proper way

The code for the operation aside, if I were to be implementing this I would probably make a "(sorta) smart routing" NodeManager implementation with a caching mechanism of some sort. Since the client design is based on the NodeManager deciding which node to execute command on, this seems like a logical fit.
Exposing this as a user facing command doesn't make a lot of sense to me because of that, unless you want to then also make it so they can supply a hint with a given Fetch/Store ... which just seems like making the user do stuff they shouldn't have to worry about because of the above.

I will take a look how such NodeManager might be implemented. Thanks for pointing it out to me

Also, I haven't fully reviewed the server-side bits, which I promised to do after the 2.1 release.

Closed per conversation with Sergey, Matt, and Oleg.


Material.dynamicFriction ignored in gravity-less space

Hi,
If a space has a 0,0 gravity vector, dynamicFriction is ignored. Here is another user reporting the issue (https://groups.google.com/forum/?fromgroups=#!searchin/nape-physics/dynamicFriction/nape-physics/d3brtbDNlVU/0h8ihwk9ryIJ)
If there any chance this could be fixed? Or is there a workaround?
Regards,
Nx

Not a bug. if the body is not actively colliding with something, why would there ever be any friction to slow it down?
if what you're after is a top-down sort of physics where the 'background' is always being "collided" against, as it were, your best bet if you want a 2d physics engine is to use drag (can do it manually, scaling the velocity of the body down each frame as you like) or for more fun mechanics, placing a big fluid body over the world which will give you some degree of approximated aerodynamic effects

Thanks for the explanation, it does indeed make sense. However the decriptions for dynamic & static friction feel a bit misleading, reading them I would have expected them to work a bit like linear & angular drag allowing custom drag values for each material: "The higher this value the more quickly objects will slow down from speed when sliding." Would maybe reformulate to: "The higher this value the more quickly objects with this material will slow down from speed when sliding against other objects.".
I'm currently just using the world drag properties, might give the fluid idea a try.
Thanks for your help and for Nape, it's a great API :)

"placing a big fluid body over the world which will give you some degree of approximated aerodynamic effects" wow I never thought to do that


Fixed the alignment of search button

Issue no :- #891

After : -

@Kedar-sonavani already solved


backend - setting up email 2FA views on login

Added 2 views :
Generate2FAView : activated when a user tries to login with its username and password. The triggering URI is : /api/user/token/ . The request should look like :
curl -X POST http://localhost:8000/api/user/token/ \
	-H "Content-Type: application/json" \
	-d '{
		"username": "alex",
		"password": "alex"
	}'

When activated the function authenticates the user and then, if username and password are valid, generates an otp (6 numbers code) and sends it to the email associated with the user (for now the function also prints the code in django's terminal for easier testing/debugging).
When a code has been sent, the function is sending a response the frontend mentionning "2FA code sent. Please enter the code". This will trigger a change in the front end which will then show a new area where the user can enter the code and submit it.
Validate2FAView : activated when the user submits the otp code. The triggering URI is : /api/user/token/validate/ . The request should look like :
curl -X POST http://localhost:8000/api/user/token/validate/ \
	-H "Content-Type: application/json" \
	-d '{
		"user_id": "2",
		"otp_code": "409075"
	}'

It checks if the code is valid and if so, responses the JWT "refresh" and "access" to the frontend which will store it for the rest of the session
PS : the above test curls can be found in pong-game/game-service/app/test

Also, would you be able to add it into the login html, so it's easier to test?
here's some basic html for the otp verification:

    <form method="post">
        {% csrf_token %}

Rizz-Chat

Enter the OTP sent to your registered email:

        <input type="text" name="otp_code" placeholder="Enter OTP" required>

            <button type="submit">Verify</button>

    </form>

you can still use the same login.html, just use it with your Generate2FAView view


return a configuration when scheduling a state changes to break out of loop

fixes #1700
State changes have an extra parameter rerun that will keep the current behaviour when true, but exit the current in-frame loop when false, allowing state changes to happen only once per trigger in some case.
I'm not very happy about the rerun name or the doc for it, please help!
All methods scheduling a state change (set, replace, ...) now returns a StateTransitionConfig that can change what happens after the state change:
state.set(AppState::Game).unwrap().end_frame();

I see you just made some changes, but allow me to bikeshed on the API some more!

I think the builder-style pattern here encourages unwrapping, as shown in the example code: state.set(AppState::Game).unwrap().next(Next::NextFrame);.
Since this is just a slightly different version of set, can it simply be another function? e.g. set_next_frame. It feels a little bit unnecessary to have a whole config type when there's just one other way of doing it.

I think the builder-style pattern here encourages unwrapping

I don't really have an issue with unwrap. Also given why you would need this, your game is already crashing 😄
I removed the unwrap in the doc example

Since this is just a slightly different version of set

There are already 8 different methods, adding a variation for each would bump that to 16...

There are already 8 different methods, adding a variation for each would bump that to 16...

Ah, I didn't read the PR properly. Yeah then it makes a lot more sense.

I'm still not 100% sure I like the name Next for the enum, however I can't seem to find a better name.
So if other people are ok with the name, I'm happy to approve this 🙂

probably won't be relevant anymore soon


[twitter] 404 on master, works on 2022.10.04

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I remove or skip any mandatory* field

Checklist

[X] I'm reporting a broken site
[X] I've verified that I'm running yt-dlp version 2022.10.04 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[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 issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
Sweden
Provide a description that is worded well enough to be understood
As of commit 5225df50c, some twitter videos (see log for example) result in Unable to download JSON metadata: HTTP Error 404: Not Found, downgrading to 2022.10.04 resolves it. Using git bisect points to 13b2ae29c2056c5306c3b735e801e9b091a33739 being the culprit.
13b2ae29c2056c5306c3b735e801e9b091a33739 is the first bad commit
commit 13b2ae29c2056c5306c3b735e801e9b091a33739
Author: Simon Sawicki<EMAIL_ADDRESS>Date:   Tue Oct 11 07:54:38 2022 +0200

    [extractor/twitter] Support multi-video posts (#5183)

    Closes #5157, Closes #5147
    Authored by: Grub4K

 yt_dlp/extractor/twitter.py | 325 +++++++++++++++++++++++++++++++-------------
 1 file changed, 228 insertions(+), 97 deletions(-)

Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Command-line config: ['-vU', '--ignore-config', 'https://twitter.com/i/web/status/1579846363218870272']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.10.04 [4e0511f27] API
[debug] Lazy loading extractors is disabled
[debug] Python 3.10.8 (CPython 64bit) - Linux-6.0.1-zen1-1-zen-x86_64-with-glibc2.36 (glibc 2.36)
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 5.1.2 (setts), ffprobe 5.1.2
[debug] Optional libraries: brotli-1.0.9, certifi-2022.09.24, mutagen-1.46.0, secretstorage-3.3.3, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Loaded 1697 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.10.04, Current version: 2022.10.04
yt-dlp is up to date (2022.10.04)
[debug] [twitter] Extracting URL: https://twitter.com/i/web/status/1579846363218870272
[twitter]<PHONE_NUMBER>218870272: Downloading guest token
[twitter]<PHONE_NUMBER>218870272: Downloading JSON metadata
ERROR: [twitter]<PHONE_NUMBER>218870272: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 674, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/twitter.py", line 557, in _real_extract
    status = self._call_api(
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/twitter.py", line 98, in _call_api
    return self._download_json(
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1034, in download_content
    res = getattr(self, download_handle.__name__)(url_or_request, video_id, **kwargs)
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 998, in download_handle
    res = self._download_webpage_handle(
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 868, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 825, in _request_webpage
    raise ExtractorError(errmsg, cause=err)

  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 807, in _request_webpage
    return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query))
  File "/usr/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3684, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

If you load the tweet in your browser without being logged in to Twitter, you get a message Age-restricted content ....
To get multiple videos from a tweet, the API bearer token had to be updated.
The API with the new bearer token returns a 404 for the tweet ID but with no additional explanation: 200 or 403 with diagnostic JSON would have been a better response. Possibly using the old token would bypass this block, losing any extra video, but a quick test gave 400 Bad Request: maybe a new Guest Token is needed.
An effective work-around for now is to use the Syndication API, but losing additional videos:
     def _extract_variant_formats(self, variant, video_id):
-        variant_url = variant.get('url')
+        variant_url = dict_get(variant, ('url', 'src'))
...
     def _real_extract(self, url):
         twid = self._match_id(url)
-        status = self._call_api(
-            'statuses/show/%s.json' % twid, twid, {
-                'cards_platform': 'Web-12',
-                'include_cards': 1,
-                'include_reply_count': 1,
-                'include_user_entities': 0,
-                'tweet_mode': 'extended',
-            })
+        status = {}
+        try:
+            status = self._call_api(
+                'statuses/show/%s.json' % twid, twid, {
+                    'cards_platform': 'Web-12',
+                    'include_cards': 1,
+                    'include_reply_count': 1,
+                    'include_user_entities': 0,
+                    'tweet_mode': 'extended',
+                })
+        except ExtractorError as e:
+            if isinstance(e.cause, compat_HTTPError) and e.cause.code == 404:
+                status = self._download_json(
+                    'https://cdn.syndication.twimg.com/tweet?id=' + twid, twid,
+                    note='Downloading fallback status', fatal=False)
+                if status:
+                    status['full_text'] = status.get('text')
+                    status['extended_entities'] = {
+                        'media': [{'video_info': v, 'type': 'video'} for v in [status.get('video')] if v],
+                    }
+            if not status:
+                raise

         title = description = status['full_text'].replace('\n', ' ')

A fallback using the old token can be implemented if a 404 happens.
Otherwise allowing people to provide cookies to bypass both seems like a good middle ground.


PayPal Verification

Before I can continue with the processing system, I need Matt to verify his PayPal.

verifying done ready to move to the next step


Feature Request: Navigation history

Is your feature request related to a problem? Please describe.
I'm always frustrated when I'm not able to retrieve web pages than I had recently seen but I have closed the tab myself.
Describe the solution or the user experience you'd like
Adding the ability for the user displaying a special tab with its navigation history from the main menu.
Additional context
The navigation history feature is available on most browsers.
Below screenshot is an example about how the navigation history is displayed within Chrome Android:

Thanks, @bonninf. This is something we internally talked about not a while ago, but we decided to give more priority to other projects. We are a small team and we just prioritized new privacy features, improving some features requested by our users, and new improvements related to the Fire button (to make it more flexible). I'm sure our team will talk about this in again, but wanted to share that we are not planning to store browsing history in the short/mid-term.


Spinner prop type misspecified for IconButton

Describe the bug
IconButtons cannot have custom spinners because the spinner prop type appears to be mis specified.
To Reproduce
Steps to reproduce the behavior:
@page(route="/")
def index():
    return rx.center(
    rx.IconButton(
        'Loading...',
        loading=True,
        spinner=rx.spinner(
            color="lightgreen",
            thickness=5,
            speed="1.5s",
            size="xl",
        )
    )
)

Expected behavior
I expected for the button spinner to change in design when inserting a custom spinner.
Screenshots

Notice how the spinner is mandated to be a string when it should be a spinner component (at least based on bot message reply).

Specifics (please complete the following information):

Python Version: 3.11.5
Reflex Version: 0.2.8
OS: Windows 11
Browser (Optional):

Additional context
Attempting to pass a spinner yields the following error:

Component as props are not supported yet, so the bot suggestion is wrong.
The docs will always prevail over the bot, he can help, but should not be considered as the "reference".

Thanks for the response! However, that still leaves me with the question of what can go into "spinner" argument? The docs unfortunately do not tell me what kind of string the prop needs.

I don't think spinner can be used at the moment, until we support component as props.

The new core components have a loading prop that shows a spinner. Closing this issue as we won't be able to support the original.


Create new bundle

Hi there,
i want to create a new bundle to administrate banners and then print this banners in showcase box.
I make it last year with the wellcommerce beta of september but i cant put this bundle in this new version of wellcommerce.
How can i create or import this BannerBundle in this new version of wellcommerce?
Thank you.

Hi there,
finally i create the banner bundle and it works fine.
I search all News, NewsRoute and NewsTranslation references in vendor/wellcommerce.
I duplicate all the files, renaming from NewsController.php to BannerController.php for example and editing to change the references.
Most files are in vendor/wellcomerce/cms-bundle and 3 files in vendor/wellcomerce/standard-edition-bundle.
Finally, in the database, admin_menu table, I add the banner route and in user_group_permission table, I add permission to see this section.
Thank you


Can I ignore some properties using the fluent API?

Hi,
I use the client's fluent API with the same POCOs used to create my entity framework DbContext and data service.
Some classes have properties that are not persisted (decorated with [NotMapped] for EF to ignore).
Is there anyway I can instruct Simple.OData.Client to ignore them too and avoid [Simple.OData.Client.UnresolvableObjectException] {"No property or association found for XXX" } on insert?
Thank you

Hi,
Would it be possible to also add an IgnoreUnresolvableObjectException option to the ODataClientSettings?
I have a case where I cannot decorate my entities properties with the [NotMapped] attribute so it would be convenient to have such an option.
Thanks

This seems to be a reasonable proposition. I will check what consequences it might have and let you know.

Implemented in version 4.3.0.


Add parameter profitbricks endpoint.

 Docker Volume: Review PR #5

Multiline logs are not very easy to parse with systems like elk/splunk/graylog.
Alternatively, I can create a log line for each parameter.

Since I already merged #5 conflicts will have to be resolved first.


Add command to call read-only contract functions

Implemented in https://github.com/blockstack/cli-blockstack/pull/40/commits/e5d0d7d70d280ca27456d07bd2a9564799f6ad14


ISE:None trying to Insert followed by a with-clause Update when two are connected by a record

with
  userId := <uuid>$id,
  selectedUser := (select User filter .id = userId),
  maybeSelectedUserActiveSubscription := (
    select Subscription filter .active and .user = selectedUser
  ), # Access Policy prevents having other actives, so selecting only that one
  possiblyDeactivatePreviouslyActiveSubscription := (
    update maybeSelectedUserActiveSubscription
    set { active := false }
  ),
insert Subscription {
  currency := <Currency>$currency,
  type := <SubscriptionType>$subscriptionType,
  cost := 49.99,
  period := <SubscriptionPeriod>$subscriptionPeriod,
  user := selectedUser,
}

gives ISE: None. I assumed the connected record caused the problem, which here is the User (in the form of selectedUser)

Following works for some reason:
with
  userId := <uuid>$id,
  selectedUser := (select User filter .id = userId),
  maybeSelectedUserActiveSubscription := (
    select Subscription filter .active and .user = selectedUser
  ), # Access Policy prevents having other actives, so selecting only that one
  possiblyDeactivatePreviouslyActiveSubscription := (
    update maybeSelectedUserActiveSubscription
    set { active := false }
  ),
  insertNewSubscription := (
    insert Subscription {
      currency := <Currency>$currency,
      type := <SubscriptionType>$subscriptionType,
      cost := 49.99,
      period := <SubscriptionPeriod>$subscriptionPeriod,
      user := selectedUser,
    }
  )
select 1


where are requirements?

sorry, maybe I am blind, but where is requirements.txt?

Sorry, I'm working on it. I will push a clean requirements.txt by the end of the day.

I just added the requirements.txt file. Thanks for reporting this issue!


Calculate Word-Error-Rate, Construct Word-Replacement-Counts LUT

Next up on the todo list, given two transcripts (a ground truth and a generated), calculate the following:

Overall similarity (done in #3)
Word-Error-Rate (this looks promising: https://github.com/jitsi/jiwer)
Word-Replacement-Counts LUT (partially done in #3) (example below)

general example: {"original_word": {"replacement_": 3, "replacement_two": 4}}
a look up table of words in the original text and their replacement words in the generated text
fake example{"housing": {"browsing": 3, "rousing": 5}}
the word "housing" in the original text was replaced my "browsing" 3 times and "rousing" 5 times in the generated text.

I personally think we should first try this by joining all transcript sentences together " ".join(s for s in transcript.sentences). I also think we should do this with three variants, the normal text (the joined text snippet from prior sentence), the lowercase version of the normal, and the lowercased and punctuation removed version of the normal.
Basically for every pair of transcripts we send in, we get back something like:
@dataclass
class TranscriptComparison:
    similarity: float
    wer: float  # all three come from that jiwer package I found
    mer: float
    wil: float
    replacements: Dict[str, Dict[str, int]]

@dataclass
class MultiVariantTranscriptComparison:
    raw: TranscriptComparison
    lowercased: TranscriptComparison
    lowercased_no_punct: TranscriptComparison

def compare_transcripts(original: Transcript, generated: Transcript) -> MultiVariantTranscriptComparison:
    pass

Thoughts @dphoria ? Can you do take this one?

Ugh I don't know why i didn't see the notification for your mention?! I"m so sorry 🙏 . Would have picked this up way earlier.

@dphoria wait. I worked on this a bit. We should chat sometime after the quarter to figure out where to go with this next.
This work is going to turn into a research paper. I am convinced enough that we should just implement whisper into app regardless of this work.
Also I tried some of this and it's... uhhh. hard? i dont really know how to do it hahaha so talking it out together might be good for both of us.


feature: fix customized API documents for authenticate and quota

这个 PR 实现什么功能/修复什么问题:
改进：完善keystone auth API和quota API文档
是否需要 backport 到之前的 release 分支:
NONE
/cc @zexi
/area docs

/hold

/hold cancel

Codecov Report

Merging #5007 into master will decrease coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master   #5007      +/-   ##
=========================================
- Coverage    6.76%   6.76%   -0.01%
=========================================
  Files         544     545       +1
  Lines       95118   95147      +29
=========================================
  Hits         6433    6433
- Misses      88147   88176      +29
  Partials      538     538

Flag
Coverage Δ

#aFlag
6.76% <0%> (-0.01%)
:arrow_down:

Impacted Files
Coverage Δ

pkg/compute/models/projectquota.go
25% <ø> (ø)
:arrow_up:

pkg/compute/models/quotas.go
7.37% <ø> (ø)
:arrow_up:

pkg/cloudcommon/db/standalone.go
0.9% <ø> (ø)
:arrow_up:

pkg/cloudcommon/db/virtualresource.go
0% <ø> (ø)
:arrow_up:

pkg/cloudcommon/db/resourcebase.go
5.12% <ø> (ø)
:arrow_up:

pkg/compute/models/regionquota.go
9.05% <ø> (ø)
:arrow_up:

pkg/cloudcommon/db/statusstandalone.go
0% <ø> (ø)
:arrow_up:

pkg/compute/models/cloudproviderregions.go
0.38% <ø> (ø)
:arrow_up:

pkg/cloudcommon/db/quotas/handler.go
0% <ø> (ø)
:arrow_up:

pkg/compute/models/cloudproviders.go
1.01% <ø> (ø)
:arrow_up:

... and 9 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 7a0ea29...91711a1. Read the comment docs.


Cannot get Mobject shape area

Hi everyone. I wanted to get the area of a Circle(), but i don't know how to do that. get_area() only works for GraphScene.
class Test(Scene):
    def construct(self):
        circle = Circle()
        number = DecimalNumber(0, num_decimal_places=5).move_to(np.array([-4,2.6,0]))
        number.add_updater(lambda m: m.set_value(circle.get_area()))

This code won't be run. Please tell me how to get area of a shape.Thanks!

Now i know. You need to import this:
from from_3b1b.on_hold.shadow import get_area
class Test(Scene):
    def construct(self):
        circle = Circle()
        number = DecimalNumber(0, num_decimal_places=5).move_to(np.array([-4,2.6,0]))
        number.add_updater(lambda m: m.set_value(get_area(circle)))

then i can see the area value.


docs: Rectify typographical inaccuracies

This PR addresses several typographical errors across various files in the project. The changes improve readability and maintain the professional standard of the documentation and code comments.
Justification
Typographical errors, while minor, can detract from the overall quality of the project. Correcting these errors ensures clarity and professionalism, making the project more accessible and understandable for current and future contributors.
Hope it helps.

Summary by CodeRabbit

Documentation

Corrected various grammatical errors and improved wording in multiple documentation files for better clarity and precision.

hello , if pr approved could be merged?

please refer to the contribution guide regarding typo fixes, we only accept typo fixes from existing contributors, you are welcome to do a meaningful contribution prior


[BUG] Dropping/Deleting a token on the canvas into an Aura Area doesn't apply the aura effects

Describe the bug

Dropping a token within an aura doesn't apply the aura until the token is moved on the canvas
Deleting a token with an aura won't delete the effect on the linked actor

To Reproduce
Steps to reproduce the behavior:

Setup an Active Aura on the canvas
Drop a token into this area, the token doesn't inherit the effect
Now move that same token, and the Aura effect is applied
Delete this token, and the linked actor sheet still has the effect applied

Environment:

OS: Windows
Browser Chrome
Foundry Version 9.242
Module Version 0.4.02
All Modules Disabled: No
Module List if no: DAE

Cannot replicate this, please enable debug mode and screenshot the console after following the same steps

@kandashi Hello,
Sorry, forgot about the basic information.
That's actually DnD 5e with DAE under the hood.
I found the issue, it's really really weird.
Basically (DAE + MidiQol + self apply an effect on item use):

If item === trinket. Item must be equipped for the effect to be active
If item !== trinket (like food), Item doesn't have to be equipeed for the effect to be active

Demo video: https://user-images.githubusercontent.com/1687854/163981809-c24c36d9-53df-485d-98d6-d496d645d968.mp4

@kandashi
Video showcasing the bugs: https://user-images.githubusercontent.com/1687854/163985643-45e9358f-b019-4085-9fa5-823125b39a22.mp4
Exported aura: fvtt-Actor-silence-aura.json.txt (just remove the .txt extension, because Github doesn't want me to upload .json files)
Character used in the video: Just one of the default 5e Character located in the Starter Heroes compendium

Should be fixed in next release

@kandashi just tested this. Deletion is OK, dropping an actor within an aura doesn't work.


⚠ Bofrost.at has degraded performance

In a568334, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1869 ms

Resolved: Bofrost.at performance has improved in dc47c0d after 14 minutes.


@classmethod does not pass arguments as in Python

MWE:
class AClass:
	@classmethod
	def a_class_method(*args):
		print('args:')
		print(args)
		if this == AClass:
			print('this was AClass')

AClass.a_class_method('first parameter', 'second parameter')

In python, this prints:
args:
(<class '__main__.AClass'>, 'first parameter', 'second parameter')
args[0] was AClass
Traceback (most recent call last):
  File "mwe.py", line 13, in <module>
    AClass.a_class_method('first parameter', 'second parameter')
  File "mwe.py", line 10, in a_class_method
    if this is AClass:
NameError: name 'this' is not defined

The first argument passed to a_class_method is the class on which a_class_method was called, AClass, and this is unsurprisingly not defined.
In Transcrypt 3.6.4, however, this prints:
args:
('first parameter', 'second parameter')
args[0] was not AClass
this was AClass

In other words, Transcrypt did not pass the class as the first parameter, and passed it instead in this. This means that @classmethods do not work as expected, as a function like:
@classmethod
def another_class_method(cls, arg1, arg2):
	cls(arg1, arg2)

will erroneously attempt to call the first argument, rather than instantiate a new instance of the class.

Good point!
The following comment in /modules/org/transcrypt/compiler.py:
                # Method decorators ignored, but @classmethod trivially works, since the class is the prototype of the object
                # So the object is an extension of the class, and anything you can do with a class, you can do with an object

is overly optimistic. It just doesn't work, after all.
So generally, method decorators are not (yet) in. I've attempted to implement them but got stuck on this first attempt. However there's a postponed issue about this and someone working on it: Possibility for method decorators? #135. It is a courageous attempt but I don't know if it will succeed.
For now the only proper thing is to label this as a limitation. Thanks for the feedback. There are some places in the docs where this should be adapted I think. Will look into that
Kind regards
Jacques


styles: Reorder rule to work around weird postcss-nested bug

For mysterious reasons, this avoids the following message printed by webpack on a cold cache after upgrading postcss-nested from 4.2.1 to 4.2.2:
Ignoring local source map at "/srv/zulip/<no source>" as resource is missing.

Well, the new version is better style anyway.  But ... weird.


Wrong usage in README

Action output is JSON, so the usage in README should be like this:
      # OR using action output
      - name: install Go
        uses: actions/setup-go@v1
        with:
          go-version: ${{ fromJSON(steps.versions.outputs.tools).golang }}

I've missed this message, I'll update the README with your suggestion. Thanks for stopping by and opening this issue.


#2324 correct connector archive type build proc to use consistent tar…

…get dir
Signed-off-by: Nigel Jones<EMAIL_ADDRESS>Ensures current directory is ${project.build.dir} which is basically 'target' within the module, regardless of from where the executable was run - previously it would write to whatever current working directory was
As a side effect 'git status' no longer shows modified files after running the build, since target is a known exclusion
The implementation required a switch to use the maven antrun plugin -- just as we use for the UI -- since the exec plugin is not flexible enough to allow the working directory to be specified when running java
Final testing before out of draft..

See #2324


Rebuild 1.13.1 to test

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_19lqcl5olz/clone/recipe/meta.yaml:42: duplicate_key_in_meta_yaml: The recipe meta.yaml contains a duplicate key
ERROR: /tmp/abs_19lqcl5olz/clone/recipe/meta.yaml:88: no_git_on_windows: git should not be used as a dependency on Windows.
ERROR: /tmp/abs_19lqcl5olz/clone/recipe/meta.yaml:114: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_19lqcl5olz/clone/recipe/meta.yaml:117: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_19lqcl5olz/clone/recipe/meta.yaml:122: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_19lqcl5olz/clone/recipe/meta.yaml:127: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_19lqcl5olz/clone/recipe/meta.yaml:129: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_19lqcl5olz/clone/recipe/meta.yaml:132: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_19lqcl5olz/clone/recipe/meta.yaml:135: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
WARNING: /tmp/abs_19lqcl5olz/clone/recipe/meta.yaml:151: build_tools_must_be_in_build: The build tool ninja is not in the build section.
ERROR: build.sh:169: pip_install_args: pip install should be run with --no-deps and --no-build-isolation.
Errors were found


[Bug] Can't use "document.getElementById('main')" for echarts.init in Grafana (v9.1.8)

Version
3.5.0
Link to Minimal Reproduction
No response
Steps to Reproduce
Creating the chart itself is not a problem. I've managed to use their bar charts and line graphs with ease and no issue.
The problem comes in when I wanted to add a click event for a drill down activity. In Grafana, I need to add the chart's DOM to echarts.init. Below are the code that I've taken from the website's official documentation:
var chartDom = document.getElementById('main');
var myChart = echarts.init(chartDom);
myChart.on('click', function (event) { . . . }
Current Behavior
chartDom will always return NULL as there is no div tags with the id 'main' in Grafana.  Grafana will render the echart into a panel and I don't know which of it's id to initialize the echart.
Expected Behavior
document.getElementById('main') should not return NULL
Environment
- Browser: Google Chrome
- Grafana: v9.1.8
- Apache ECharts: 3.5.0

Any additional comments?
No response

This doesn't seem to be a problem related to Apache ECharts. You have to find a way to input the DOM element somehow with Grafana. I believe there are some Grafana ECharts plugins which you may have a look to find if they are helpful.


12.0 - Migration of pos invoice posponed

Thank you for the contribution! It will be finished here: #1385


fix: skip doc attributes in annotations but not in fields

Porting fix https://github.com/jina-ai/jina/pull/6035 to docarray

Thanks for doing this!

Actually, @NarekA it would be nice if you could open this PR on your own so that we can properly credit the actual contributor. I just did not want to annoy you with it, but since you have already seen this and you are now aware of this need, it may be good to have this.

Opening a new PR now

Here: https://github.com/docarray/docarray/pull/1779


Carousel buttons should have a marked focus area

Issue notified in siteimprove:
https://my2.siteimprove.com/Accessibility/550893/52537632527/NextGen/Issue/1?ruleId=65&pageSegments=&issueKind=2&exceptTags=1,2&conformance=&siteTarget.conformanceLevels=0,1,3
https://my2.siteimprove.com/Inspector/550893/A11Y/Page?pageId=49866725245&impmd=EFD4B031A902A9835A39E9F85FFF6A77&expand=potential&conf=a+aa+aria#/sia-r65/cantTell/YWJ3VnFkSS8=;ZGU3NmZlYjA=

@meols The arrow buttons should have dotted circle when focused.

Think this is good @meols. Not sure if you need to check in siteimprove

@padms @NickHaggerty1 - looks good :thumbsup: We'll see the effect in Sitemprove after it's deployed


Separate download image and image conversion

I want people to upload their image on the site and that the thumbnail conversion happens automatically without them noticing.
This is important (and blocking) before doing anything else

steps:

[ ] put image download and image processing in 2 different functions
[ ] image processing must be checked no matter what (if file does not exist, run processing)
[ ] convert any non-JPG image to JPG
[ ] convert any non-thumbnailed image to thumbnailed


working in xcode 11 but not 12

Hi,
I absolutely have loved exploring this project, but I recently upgraded to xcode 12 an now im getting many errors such as command compileSwift failed with a nonzero exit code. And the code seems broken. Also can say Module compiled with Swift 5.2.4 cannot be imported by the 5.3.2 compiler.
Ive been trying for 3 days to fix it but its all above what I understand. I also have the new macbook with the M1 processor and not sure if thats affecting it as well as the versions.
If there is anything you could do to take a look at it it would be hugely appreciated as I am complety stuck .
Thank you so much
Tom

after saying that Iv just got it working! I just needed to do a fresh pods update!


PlatformException (PlatformException(ERROR_INVALID_CREDENTIAL, The supplied auth credential is incorrect, malformed or has expired., {}, null))

PlatformException
I have been using signIn with email and password i'm trying to handle the the exception when the user entered invalid email and password

Future<void> loginWithEmail(String email, String password) async {
    emit(LoginLoading());
    try {
      UserCredential userCredential =
          await _authService.signInWithEmailAndPassword(email, password);
      emit(LoginSuccess(userCredential.user!));
    } on FirebaseAuthException catch (e) {
      // Handle Firebase exceptions
      String errorMessage = _handleFirebaseAuthException(e);
      emit(LoginFailure(errorMessage));
    } on PlatformException catch (e) {
      if (e.code == 'ERROR_INVALID_CREDENTIAL') {
        emit(ErrorInvalidCredential());
      }
      emit(LoginFailure(_handlePlatformException(e)));
    } catch (e) {
      emit(LoginFailure("An unexpected error occurred"));
    }
  }

  String _handlePlatformException(PlatformException e) {
    // Handle specific platform exceptions
    // The error handling here depends on the specific exceptions you expect
    // For instance, handling Google Sign-In or Apple Sign-In errors
    switch (e.code) {
      case 'ERROR_GOOGLE_SIGN_IN_FAILED':
        return "Google sign-in failed. Please try again.";
      // ERROR_INVALID_CREDENTIAL
      case 'ERROR_INVALID_CREDENTIAL':
        return "Invalid Email Credentials.";
      // Add more cases as needed
      default:
        return "An error occurred on the platform side: ${e.message}";
    }
  }

  String _handleFirebaseAuthException(FirebaseAuthException e) {
    switch (e.code) {
      case 'network-request-failed':
        return "Network error. Please check your connection.";
      case 'user-disabled':
        return "Your account has been disabled.";
      case 'user-not-found':
      case 'wrong-password':
        return "Incorrect email or password.";
      // Add more cases as needed
      default:
        return "An error occurred. Please try again.";
    }
  }

Click To Expand

@cumody
Usually the error indicates a config issue and not a bug in the plugin, as the plugin code is correctly catching the exception when such case is triggered. You'll need to check your config / settings and confirm that it is correct and there are nothing missing.
Also, your question is better suited for support channels like StackOverflow, so please ask the same there.
Closing from here. If you disagree, write in comments and I'll reopen it.


Support rich initialization modes of RocketMQSource

perfect new features for new Source interface and sql connector.
detail in #59

bugs about RockerMQSource in current master branch:

[x] partitionDiscoveryIntervalMs can't set to negative
[ ] idle source task can't be released automatic   --ongoing
[x] offset can't commit to broker in RockerMQSource
[ ] records can't arrive to sink() in UNBOUNDESS mode  --ongoing

I can help review pull requests.


Inconsistent order of tuned-group-by output causes random failure

We are having random failure issue with our test suite. This is the result of our investigation.

We have a rule which inserts a few facts in the rhs.
In our test suite, at flush-updates, in some runs, one fact is processed first which result to a passing test, but in some other runs, the other fact is processed first which result to a failing test.
We found that the reason why the facts are processed in a random order betwenn the runs is because output of tuned-group-by doesn't always be in a consistent order.
The reason why tuned-group-by output doesn't return a list in consistent order is because Java's HashMap, which is using internally, doesn't keep or guarantee any order.

Now, I have some questions regarding this.

Does this make sense to you? Do you see any wrong conclusions here?
Is the processing order really important here or is it just incidental? Is it possible to make a modification such that we don't care about the output order of tuned-group-by?
If the order is essential, should we drop back to use default Clojure's group-by? Have you had a performance issue because of using it?

Note 1: Clojure's group-by guarantees the result order.
Note 2: I wrote a generative test to show that Clojure's group-by and tuned-group-by don't return result in the same order before I realize that it's apparent since Java's HashMap doesn't provide order guarantee. I'll put it here just in case you want to check it out.

Hey, thanks for reporting this. The purpose of the tuned-group-by is indeed for performance needs, which I described a bit in this blog post. Basically, Clojure's group-by will repeatedly update non-transient vectors repeatedly if many items match to the same key. For some workloads using Clara, we were spending 50% of the time updating vectors in group-by, (!) so I wrote an optimized version.
Note that tuned-group-by should guarantee the order or the values in each key, but not the order of the keys themselves due to the use of HashMap that you point out. However, I don't think Clojure's group-by makes any strong guarantees here either. The doc on group-by says its values under a given key preserve input order, but doesn't make a guarantee to the order of the keys themselves in the returned map.
I'd be open to a change to tuned-group-by to create consistent key ordering if we can do so without a significant performance penalty. (It might be as simple as replacing HashMap with LinkedHashMap.) However, making assumptions about the ordering of group-by keys might not be safe since I don't think it's fully guaranteed.
In your tests, is Clara itself producing unexpected outcomes due to this ordering issue? Or is the order just different each run, making it difficult to test? If it's the latter, we've run into the same issue and basically have tweaked our test to be robust to different ordering. For instance, we put the the query results into a set or map to check the expected results, versus a list-based comparison that could break due to order.
Of course, if Clara itself is producing surprising results because of this it's definitely something we need to fix.

I ran some benchmarks using java.util.LinkedHashMap instead of java.util.HashMap and the cost is negligible, and it also passes the generative test you had posted.
If this solves your problem then I'm happy to merge it in. I'm not sure that relying on group-by ordering is a great idea, but it makes sense for Clara's behavior to match that of the built-in group by in any case.
If you'd like to put together a pull request with this change and your generative test I can merge it.

I'd be curious to understand what unpredictable order behavior Nuttanart is seeing as well.  I do think there are definitely areas where Clara should have freedom to not guarantee evaluation order.  Most of the time if things are breaking due to order changes, it is a sign that the rules need to be restructured in a way where they are always logically consistent with expectations.  Sometimes it is just a test concern (as Ryan has said) where the tests are inappropriately using vectors or lists when they should be using unordered comparisons or something like frequencies comparisons instead.
I do want to note that Clojure's group-by does not produce a reliable order as implemented in any of the recent versions (ever really) .  The map that is returned is built from a (transient {}), which for the purposes of this behaves the same as the non-transient counterparts.
For small sizes of maps returned, it may appear that there is some sort of consistency in order guaranteed, but this is just a implementation detail of Clojure's "array map" being used for maps of size less than certain thresholds (looks to be currently 9 for literals and 16 for assoc growth).
So, if you are grouping things with group-by and arrive at only less than a threshold number groups, you will likely see consistent order, but this is not something to rely on.
Demonstration of the underlying impl details:
(group-by identity
          [1 2 3 4 5 6 7 8])
;= {1 [1], 2 [2], 3 [3], 4 [4], 5 [5], 6 [6], 7 [7], 8 [8]}

;; Passing the new map creation threshold for array maps vs hash maps
(group-by identity
          [1 2 3 4 5 6 7 8 9])
;= {7 [7], 1 [1], 4 [4], 6 [6], 3 [3], 2 [2], 9 [9], 5 [5], 8 [8]}

You can see this behavior without group-by as well.
{:a 1
 :b 2
 :c 3
 :d 4
 :e 5
 :f 6
 :g 7
 :h 8}
;= {:a 1, :b 2, :c 3, :d 4, :e 5, :f 6, :g 7, :h 8}

;; Adding one more item to the map literal
{:a 1
 :b 2
 :c 3
 :d 4
 :e 5
 :f 6
 :g 7
 :h 8
 :i 9}
;= {:e 5, :g 7, :c 3, :h 8, :b 2, :d 4, :f 6, :i 9, :a 1}

For a moment what I thought was being suggested was that tuned-group-by did not preserve the ordering of the values in the resulting map as group-by does. This is not true. tuned-group-by behaves the same as Clojure's group-by in this respect and preserves value order.
I will echo previous comments that there's no guarantee of the order of keys in maps returned by group-by and that it's a bad idea to ever rely on the order of keys in a map unless you're talking about a sorted clojure.lang.PersistentTreeMap.

Hi guys, thanks for looking at this. And sorry for my misunderstanding of group-by's ordering. You are right, the doc doesn't say that it guarantees the keys order. It now feels to me that the randomness just uncovers an actual underline issue.
Our test doesn't break because the order is expected by the output. It breaks because after firing the rules, sometimes a fact exist while sometimes it disappears. E.g. the success case, querying for a fact get 1 result back while the failure case, querying for a fact get back nothing.
I have extracted a simplified version of our code. I wasn't success in replicating the issue with this simplified version but I think it helps explaining the issue easier. https://gist.github.com/visibletrap/dfee267731cab99d2a6e
This the rough processing step I have seen.

Data and UpdateDate which inserted in line 23 are activated
"the-rule" is matched so Data is retracted by line 14, then Data and Flag are inserted by line 15
At this point, I have seen 2 flows which one of it is a failure case.

3.1 For failure case, the Data is processed first follows by Flag.
3.1.1 PendingUpdate is processed. Data and Flag are retracted
3.1.2 Rule processing is done
3.1.3 Querying for Data in line 25 returns nothing
3.2 For passing case, the Flag is processed first follows by Data.
3.2.1 Rule processing is done
3.2.2 Querying for Data in line 25 returns a Data
I randomly see 3.1 and 3.2 in both our real code and this simplified version. But I can't manage to make 3.1.1 happen in this simplified version. This version PendingUpdate in 3.1.1 doesn't have any fact.
In summary, I now found that group-by randomness is not actually the cause of the problem. The actual problem I'm seeing "now" is that mem/remove-insertions! which is called before 3.1.1 sometimes returns empty, sometimes returns Data and Flag. I'll need more time to digging further more. The current impression is putting debug println inside remove-insertions! makes the issue disappear.

Hmm, sounds strange. One thing that pops to mind is the pitfalls of using retract! on the right-hand side of a rule. I have no idea if this is the problem you're seeing, but things like this can occur:
Unless you explicitly control the activation order of rules, in a complex rule set you could end up with a rule firing a retract! before the item being retracted is inserted by another rule. Since the item yet wasn't inserted, the retract! would have no effect and the item would show up later.
Frankly, I try to avoid use of retract! from within the rules outright because it's hard to think through this sort of thing.. There are some special cases when it can be useful but it often just causes confusion, and goes against the idea of letting the engine maintain truth and support itself. I do have a note in the Clojure documentation on the retract!, but it's probably something we should make more explicit. I've found that I've never really needed retract! to express domain logic, although I added it to match similar functionality in other engines.
Another pitfall is that in the example you're retracting a fact that was used in that fired the retract. Since Clara uses truth maintenance for (insert!), an explicitly retraction of a supporting fact could cause Clara to retract items inserted on behalf of the fact. You can avoid truth maintenance by replacing insert! with insert-unconditional!.  This is probably a good idea if you're using retract! to keep the engine from trying to manage support for a rule itself, creating more confusion.
Of course, this could also be caused by a bug in Clara itself, which obviously we'd want to fix. I don't see an obvious issue, but these can be easy to miss. If the above notes on using retract! and insert-unconditional! aren't helpful then we should dig into reproducing this issue with a test.

Thanks for fast response and the explanation. We'll not be using retract! then.


Missing momentum2.mps.gz file

Hi
I got an error when running python2 setup.py test:
ERROR: Failure: IOError ([Errno 2] No such file or directory: '/builddir/build/BUILD/optlang-1.4.2/slow_tests/data/miplib2003/momentum2.mps.gz')

python2 version 2.7.12

Hi. Thanks for the report. Do you get a longer traceback, or just this line?

Here is the traceback:
ERROR: Failure: IOError ([Errno 2] No such file or directory: '/builddir/build/BUILD/optlang-1.4.2/slow_tests/data/miplib2003/momentum2.mps.gz')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/software/lib/python2.7/site-packages/nose/loader.py", line 251, in generate
    for test in g():
  File "/builddir/build/BUILD/optlang-1.4.2/slow_tests/test_miplib_glpk_interface.py", line 74, in test_miplib
    glpk_problem, model = load_problem(problem_file)
  File "/builddir/build/BUILD/optlang-1.4.2/slow_tests/test_miplib_glpk_interface.py", line 39, in load_problem
    f = gzip.open(mps_file, 'rb')
  File "/software/lib64/python2.7/gzip.py", line 34, in open
    return GzipFile(filename, mode, compresslevel)
  File "/software/lib64/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/builddir/build/BUILD/optlang-1.4.2/slow_tests/data/miplib2003/momentum2.mps.gz'
----------------------------------------------------------------------

With python 2.7.12 and glpk 4.59 I have also this error during tests (not with python3):
ERROR: Failure: Exception (No optimal solution found for netlib model SIERRA)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/software/lib/python2.7/site-packages/nose/loader.py", line 251, in generate
    for test in g():
  File "/builddir/build/BUILD/optlang-1.4.2/optlang/tests/test_netlib_glpk_exact_interface.py", line 91, in test_netlib
    raise Exception('No optimal solution found for netlib model %s' % netlib_id)
Exception: No optimal solution found for netlib model SIERRA

Thanks. We will look into it. There are currently some problems with our miplib tests, but if all the other tests pass everything should be in order.
If you encounter the missing file error, you can try running the tests with nosetests optlang instead

OK, thanks
nosetests optlang skips the file error test.
Only my "No optimal solution found for netlib model SIERRA" remains

I have excluded the netlib model SIERRA to skip it, and after that for Python 2 I got errors for the netlib model WOOD1P.
Skipping both let me complete tests successfully.


Query Parameters on Saved API's not updating correctly

Expected Behavior
Query parameters are set in a saved API call.  The values of these can be changed as needed to run the API call.
Actual Behavior
Updating all values in the query parameter and then pressing send reverts all values (except one) to revert to previous values before sending.  This can cause the new value to get sent to the wrong object with variable results.  Usually, the last one in the list that was changed is the one that gets updated, leaving all values above it to revert.
NOTE: This does mean you can "back into" the result you are looking for by sending multiple times, updating only one parameter at a time and sending.  However, this is far from ideal and makes it almost unusable in many cases.
Reproduction Steps

Open Insomnia in Scratchpad mode
Set environment to desired environment (if it isn't already)
Choose a saved API command with multiple query parameters
Edit all query parameters to a new value
Press send (or navigate away to a different API call and then back again)
Review the sent query (it shows all old parameters except one, typically the last one, as the new query parameter)
Review the current query parameter values (it shows all query parameters reverted to old values expect one, typically the last one)

Is there an existing issue for this?

[X] I have searched the issue tracker for this problem.

Additional Information
This has only been tested on the scratchpad, as we are unable to use the online version in this environment so it is unclear if this happens everywhere or only on the scratchpad.  Also note this was first noted when upgrading to 9.3.1.  Not sure what version was previous to 9.3.1, though I am pretty sure it was 9.2.x.  Upgraded to 9.3.2 to see if it was resolved in the newer version, and noted it is still behaving the same way.
Insomnia Version
9.3.2
What operating system are you using?
macOS
Operating System Version
Sonoma 14.5
Installation method
Insomnia in-app updater.  Not sure method it uses on Mac.
Last Known Working Insomnia version
9.2.x

Seems this may be fixed in 9.3.2 after all.  After restarting the machine, it seems to be working fine now after the update.  9.3.1 definitely had the issue, even after restarting the machine.  9.3.2, however, appears to be working in the one test run.  Creating new test runs to confirm.

Confirmed.  It is fixed in 9.3.2.  Apparently I didn't fully complete the install when I opened this issue.


Titles of Apps are not translated

In the past (I don't know exactly when) the titles of Apps where translated. Like 'Language' to 'Taal' in Dutch. Those are not translated anymore, so they only show in English.
Of course you can edit the apps and rename them to your native language, but I don't  think that this desirable.

https://github.com/redmatrix/hubzilla/commit/476116a972c0f8b8ade495de557b8fc8d3097964

Thanks!


Not Able to Open app From facebook

If there is a bug or error in this repo, please file the issue here.
If you need assistance integrating a Branch SDK, please email<EMAIL_ADDRESS>Thank you.

Hi @charchit28 -- We have an awesome support team for situations like these. Please email<EMAIL_ADDRESS>with an elaborated explanation (what kind of device, what link were you clicking, was it native FB or mobile FB). If this ends up being an SDK issue I'll open this back up.


Decouple ruler dependency controller from concurrency controller

This PR is a follow up of https://github.com/prometheus/prometheus/pull/12946. In https://github.com/prometheus/prometheus/pull/12946 we had RuleConcurrencyController RuleEligible() and Invalidate() whose design have potential side effects (see discussion).
In this PR I'm proposing two changes:

Decouple the dependency controller from concurrency controller
Expose the information whether a Rule has dependants and/or dependencies through the RuleDetail (this also covers an use case we have in Mimir, where we need to distinguish between the two)

In addition, after this PR projects vendoring the ruler (like Loki, Mimir, Cortex, ...) can:

Inject custom dependency controller
Inject custom concurrency controller
Receive the information whether a rule's query has dependants and/or dependencies through the RuleDetail

Notes about naming
Why did I call the fields / functions "no dependent/cy rules" (negative) instead of a positive "dependent/cy rules"? Reason is that I wanted the zero value to be the safest option (so zero value means "it's not guaranteed that there are no dependents/cies").

I am going to merge as I don't think this is controversial - it's mostly a code refactor and doesn't really change the original functionality.


Can't access VM by ssh

I've deployed a couple VMs using the v0.1.19 provider, and I get a password prompt when attempting to login over ssh. My deployment file is a copy of the provided singlenode example, pared down to a single VM. I've inserted my ssh key and double checked that it is correct. Deployed on two nodes on two farms, both with and without public IP. Same behavior via Yggdrasil in both cases.
Main.tf:
terraform {
  required_providers {
    grid = {
      source = "threefoldtech/grid"
    }
  }
}

provider "grid" {
  mnemonics = "..."
  network = "test"
}
resource "grid_network" "net2" {
    nodes = [11]
    ip_range = "<IP_ADDRESS>/16"
    name = "net2"
    description = "freefarm net"
    add_wg_access = true
}
resource "grid_deployment" "d2" {
  node = 11
  network_name = grid_network.net2.name
  ip_range = lookup(grid_network.net2.nodes_ip_range, 11, "")
  vms {
    name = "vm1"
    flist = "https://hub.grid.tf/tf-official-apps/base:latest.flist"
    cpu = 2
    publicip = true
    memory = 2048
    entrypoint = "/sbin/zinit init"
    env_vars = {
      SSH_KEY = "ssh-rsa AAAA..."
    }
    planetary = true
  }
}
output "wg_config" {
    value = grid_network.net2.access_wg_config
}

output "node1_zmachine1_ip" {
    value = grid_deployment.d2.vms[0].ip
}

output "ygg_ip" {
    value = grid_deployment.d2.vms[0].ygg_ip
}

output "public_ip" {
    value = grid_deployment.d2.vms[0].computedip
}

Couldn't reproduce with the same terraform file with my words and key. Can you please verify that the ssh key you use is what is outputted from ssh-keygen -f ~/.ssh/id_rsa -y.
If that doesn't work can you try using this key pair:
id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDCq/UY4Qfiv02P464G6NIAUFQ+Z3MLDnseS7KwgECN16T8mljHF0uZLKYL/inm18bhNrRcpChsQDO6KZQpHCHzxsYkUunm8al0vC2CjXajJeAnyCxuAHS2v6GtNhbrw+lHvoeQD3Z58W9ZpvU3wvOgYfCpV7GSGjDIbmAdFkK257P9a4iX6OeKoR5hca0J/X/9r/+zAm5VKXcmtI6xe1JngroTOTyQpTtwwLpxCkPVmY1DHysFUI21nKVn/SgtUqqSpSlEHLyoymps1zOWXYNpt0nIx+kznFiU/X9hTRw8+z3S2WrnD8L3uPes7wMTKNox3khcC994VWXhquZwX4NdYs9k5S8YJHVrbYOECpKHq4zf6LpYFMC2DqjiTsywF7aa4l7n9efPYV7G7jHlBf+EjM5qYyQ+w0+1TgV4xSOf9uSQM1kvrDr1bkhh+vq2XoLcvxeFCf001Ux4swoj3Z596Wwkyidwf6ObHgU0321h+dkTab2nJXFwMQTYLl/ibTE= omar@omar-Predator-PT315-52

id_rsa:
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn
NhAAAAAwEAAQAAAYEAwqv1GOEH4r9Nj+OuBujSAFBUPmdzCw57HkuysIBAjdek/JpYxxdL
mSymC/4p5tfG4Ta0XKQobEAzuimUKRwh88bGJFLp5vGpdLwtgo12oyXgJ8gsbgB0tr+hrT
YW68PpR76HkA92efFvWab1N8LzoGHwqVexkhowyG5gHRZCtuez/WuIl+jniqEeYXGtCf1/
/a//swJuVSl3JrSOsXtSZ4K6Ezk8kKU7cMC6cQpD1ZmNQx8rBVCNtZylZ/0oLVKqkqUpRB
y8qMpqbNczll2DabdJyMfpM5xYlP1/YU0cPPs90tlq5w/C97j3rO8DEyjaMd5IXAvfeFVl
4armcF+DXWLPZOUvGCR1a22DhAqSh6uM3+i6WBTAtg6o4k7MsBe2muJe5/Xnz2Fexu4x5Q
X/hIzOamMkPsNPtU4FeMUjn/bkkDNZL6w69W5IYfr6tl6C3L8XhQn9NNVMeLMKI92efels
JMoncH+jmx4FNN9tYfnZE2m9pyVxcDEE2C5f4m0xAAAFmHHkDJRx5AyUAAAAB3NzaC1yc2
EAAAGBAMKr9RjhB+K/TY/jrgbo0gBQVD5ncwsOex5LsrCAQI3XpPyaWMcXS5kspgv+KebX
xuE2tFykKGxAM7oplCkcIfPGxiRS6ebxqXS8LYKNdqMl4CfILG4AdLa/oa02FuvD6Ue+h5
APdnnxb1mm9TfC86Bh8KlXsZIaMMhuYB0WQrbns/1riJfo54qhHmFxrQn9f/2v/7MCblUp
dya0jrF7UmeCuhM5PJClO3DAunEKQ9WZjUMfKwVQjbWcpWf9KC1SqpKlKUQcvKjKamzXM5
Zdg2m3ScjH6TOcWJT9f2FNHDz7PdLZaucPwve496zvAxMo2jHeSFwL33hVZeGq5nBfg11i
z2TlLxgkdWttg4QKkoerjN/oulgUwLYOqOJOzLAXtpriXuf1589hXsbuMeUF/4SMzmpjJD
7DT7VOBXjFI5/25JAzWS+sOvVuSGH6+rZegty/F4UJ/TTVTHizCiPdnn3pbCTKJ3B/o5se
BTTfbWH52RNpvaclcXAxBNguX+JtMQAAAAMBAAEAAAGAGzfFpfvYiWhr5MFVlJu6uNaCYN
M/73zP0/WLf0f/PpW2+KZv4S4toLXwZV7c5uymXtiyMP22tSPo1492qqTHTnktPOjm0SZa
pfqldkpnGvpxs742EA86Qk7awQf9/mq+1AwckhTHYNdT1ToVsP0t6O+ooVSkfCPzTCK6h3
aUT1RoAvek+nBS5zwNrlwhcHMkEQkpfBLL8FZC1YOLK99tLxHFCGkJQcQIYoRfzOw9fcDh
UlAqSKzxk0HakoZ/to6HEk+OQK6pTNGoYfHP2jjOoHxHBAT/9S1GWvcTWuxbCgAxBhlhiw
BJ6TPSzT7SVr9Y7omGEttvvO7bsGR2PFo3cO6CNP8S4pp8QkuBwQLgQSmczRIfebQvfPVE
uS3QJoslHHJ/X2d3iLTliPVittvy3MEjiIo9e1u7EQaJnBLfuIfyB5Rj475sz++dmF5bck
wOrquAFpWBYWFjmp5U4tfq+tnV9gNi42PpwScKu1BFXdVlYwAw4+082DpgGTxXvDV9AAAA
wQDi7brWLE1HV3BWTCzex0Va5BtlB4PK27Edqdf/d078QqppgDvkwCp+fRdhN8x5hKvPQY
VU6KUYg7iQggHu00bO409CFAVosEZPsGEvaEu5Ia8a+zGkeD2XChMs98xr8s62V2f9DtHx
TIe5AwHkaG6iC2D8pP9Zq5LZiJL5+MmP9WBHhArSoGb/KKfDD68ixYdo9MvELR2QKWSbaz
LS8JIufN0xNpetel6jxQ811hrWIlkWZNmeaAnWl46ggUtGIGoAAADBAOfWvpC/bpg22994
sOtb3asiQE+ECkSSV8PlcM3IMMxUL3cTPIfcxGfqwxDO7sjf6oOHADpYrItpxoiXT5Tr94
TkKbS6OpvXmzBqML7el/rbFW9S7Mnv+cCeiNcuVBx8R7zbxzDnIglvI1+AdAHOO5tFFw9T
Amt1RqILi9vFs1kZb/TAN8DsVTVeO+7fE1NuYeJ5BRwRZzXqKikaMyu+UsVYXAqEdxB3WY
XmlKt8B/bJFMTEMpMzK09HxFHGv7tA6wAAAMEA1vWga2zlJHhBXpEc1Nb9Weww4vSxo/1q
gE/XUGQmIPc195NX2YveeYSdkpvbsuxUSmRznwSC2NgMVC7eGv+p0cp34gezM9FI2FAf74
ls5qsHseEjP0+S0lN/Rewa6r0qGB7ndELoTOB8AHMknEN6sWASDYpHRi6JdY7lmzI8hgPp
PE692zKnL5vkxwmU1oiBdOsccAXbkNHLVpyDdNEoKWpKIo9r2S3VqVoWJVcyLTrKYv9leC
+a78oJIkn71ONTAAAAG29tYXJAb21hci1QcmVkYXRvci1QVDMxNS01MgECAwQFBgc=
-----END OPENSSH PRIVATE KEY-----

I created an empty directory with main.tf, id_rsa, and id_rsa.pub. Then sshed using ssh -i id_rsa root@ip.

Thanks @OmarElawady.
I double checked my public key by regenerating against the private key and it checks out. I've had success both with previous versions of the Terraform plugin and also recent weblet deployments using this key pair.
I tried again using the keys you provided with the same result. Terraform output:
public_ip = "<IP_ADDRESS>/24"
wg_config = <<EOT

[Interface]
Address = <IP_ADDRESS>
PrivateKey = 4OE4gsCY4fm4GnO4qVxunrqhpUNdDX0qAVhQmPjzwU4=
[Peer]
PublicKey = +HJ0i9MWQWeCfKmkDvpjccC/OGw9763U+ScjyVvzy1E=
AllowedIPs = <IP_ADDRESS>/16, <IP_ADDRESS>/16
PersistentKeepalive = 25
Endpoint = <IP_ADDRESS>:4226

EOT
ygg_ip = "300:efa7:4b27:f8f:3fc:4f57:8c10:d859"

Contract data from TF Chain:
{
  version: 1
  state: Created
  contract_id: 2,102
  twin_id: 81
  contract_type: {
    NodeContract: {
      node_id: 11
      deployment_data:
      deployment_hash: 16096d9989b66d4476c5de2a597dc6f5
      public_ips: 1
      public_ips_list: [
        {
          ip: <IP_ADDRESS>/24
          gateway: <IP_ADDRESS>
          contract_id: 2,102
        }
      ]
    }
  }
}

You can't login to this vm with the private key? Because I can using the public ip and the yggdrasil ip.
It might be an issue with the ssh client you're using. Can you try from a fresh machine with openssh installed or post the output of  ssh -v -i id_rsa<EMAIL_ADDRESS>(with id_rsa containing the private key in the comment in the working directory and permissions 600).

You were correct and the issue was client side. Checking the verbose output (thanks for the tip :slightly_smiling_face:)  of ssh revealed:
debug1: send_pubkey_test: no mutual signature algorithm
Apparently the latest versions of openssh aren't supporting RSA by default anymore. Adding this line to my ssh config fixed it:
PubkeyAcceptedKeyTypes +ssh-rsa
I am still confused about why my logging into my weblet based VM did not require this option. Perhaps due to differences with the host keys:
Terraform:
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha2-256 compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha2-256 compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:n3jkpeoD91BX9ZJNYi+QMzOChYKpT1zT0txAZDCMnZs

Weblet:
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher<EMAIL_ADDRESS>MAC: <implicit> compression: none
debug1: kex: client->server cipher<EMAIL_ADDRESS>MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:01GwyBkGruCPk1cZWWYKkzsjwTpLgNg/Dgtf9YZqIwI


QUESTION: Looking to expand search area

Looking to expand my search area/expand the map.  Would this create any problems with currently mapped spawns?   The area would only expand from one rectangle to a bigger one (one vertex will remain the same... the new area will encompass the old).

As long as you are using the same database no. This will just add the new spawn points to the database. I have done this about 6 times now.. I used --bootstrap for the first 2 scans after increasing or adding a new area to my map. This way those spawn points in the new area are discovered.


[BUG] Grayskull allows recipes with _ when name should have -

Describe the bug
Underscores vs. dashes:
Running
grayskull pypi slack_sdk

generates a recipe named slack_sdk, even though the PyPi package name is slack-sdk.
Expected behavior
An error message that the name slack_sdk doesn't correspond to a PyPi package.
Outputs
{% set name = "slack_sdk" %}
{% set version = "3.6.0" %}
...

Environment:

grayskull --version 0.8.5

Additional context
I suspect that grayskull is following the PyPi redirect to remove underscores.
This issue led to unintentionally create a duplicate feedstock:
https://github.com/conda-forge/slack-sdk-feedstock/issues/10#issuecomment-860884130

Hi @maresb ,
I believe the "fix" in this case is to just give an warning to the user that the package already exist on conda-forge.

cc @ForgottenProgramme

@marcelotrevisani or to not follow redirects on PyPi?

The project name is slack_sdk,
https://github.com/slackapi/python-slack-sdk/blob/d3615007df2b2f7fd9da1d7afbcd88fe873a3590/setup.py#L250
It is mimicking the pypi behaviour as it is generating the recipes looking for pypi
I think grayskull should follow the name of the project, so it should be slack_sdk then

Ah! Very good point. I guess PyPi is blindly converting underscores to dashes?
It seems not so easy to search for duplicates: exponentially many possibilities in the number of underscores plus dashes
I wish there was clear guidance for a standard on conda-forge. I have been searching and asking for a while with no answers.

@maresb

I guess PyPi is blindly converting underscores to dashes?

Yes.

Also, @maresb, when you say this:

It seems not so easy to search for duplicates: exponentially many possibilities in the number of underscores plus dashes

You mean searching for duplicates on conda-forge, right?
Because if PyPI converts all underscores to hyphens, it's not possible to have duplicates. Isn't it?

@ForgottenProgramme, exactly.
For the PyPi name very-very-long-package-name there are 16 possible package names to check on conda-forge. But it's not a serious difficulty, just an annoyance.

Hey, @maresb, @marcelotrevisani and @jaimergp  !
I'm going to try and solve this issue. I'm writing down below what I've understood till now. Please correct me if I am wrong.
Suppose I create a python package called apples_bananas and I put it on conda-forge (not using grayskull).
Suppose a different package called apples-bananas is there on PyPI (not there on conda-forge).
Now, grayskull in it's present state would work like this:
if a user types in grayskull pypi apples_bananas,  grayskull would look up that package on pypi (underscores converted to hyphens) and create a recipe with the name of the package as typed in by the user (apples_bananas).
So now there will be two packages on conda-forge named apples_bananas, but these will be two different packages.

So, we would like grayskull to give a warning if a package with the same name as entered by the user in the grayskull pypi <package_name> command, already exists on conda-forge.

Yeap, that would be really useful

do you want me to assign this issue to you then?

Yes, please! :)

Do we have a gitter room for grayskull, @marcelotrevisani ?

Do we have a gitter room for grayskull, @marcelotrevisani ?

Yes, we already have one:
https://gitter.im/conda_grayskull/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge


[TSK-328] Filters/Categories

Designs in Figma (make sure you are looking at the page "Approved Designs" linked here)
Desktop Filter Design

Mobile Filter Design

COLOR STYLES for both desktop / mobile

Desktop Typography

Mobile Typography

[ ] Desktop Spacing (tip in case you don't know: if you switch on Dev Mode in Figma - you'll see all of these spacing notes in detail

[ ] Mobile Spacing

FUNCTIONALITY

[ ] When a user comes to the Shop page, all products are displayed in the results, as indicated by the SHOP ALL category highlighted in bold in the filter/category section.

[ ] These Shop All results are sorted by Featured first, Newest, then Oldest

[ ] The Genre filter should be customizable for the admin, as new genres may be added/removed regularly

[ ] When a user clicks either Genre, or Format, the dropdown expands, the + icon transforms into a –

[ ] User can select as many options as they want from the Genre and Format options. The square selectors next to the options fill black to indicate that they are active and a number in parenthesis updates next to the filter category to indicate how many total selections in that category are active

[ ] The results automatically update as user selects / deselects filtering options

[ ] In the Category filter (shop all, new this week, back in stock etc), user can only select ONE at a time.

[ ] Active category selected is indicated by bold text

[ ] On mobile, if the user collapses the category filter, the active category filter is shown

SORT BY FILTERING

[ ] Default selection is to filter by Featured - which means that the results are ordered by most recently featured first, then newest then oldest
[ ] Users can also then sort by Newest and Oldest from the dropdown
desktop dropdown

[ ] Mobile dropdown

@hanersk @juanizguerra do we know if these will be all the formats we're starting with? Or are these placeholders


UDropdown item colors or variants

Is your feature request related to a problem? Please describe.
When using UDropdown the styling of the items is only available with iconClass, which is applied at the end of the class list (so using text-red-500 doesn't work as the prior color classes have higher priority).
Describe the solution you'd like
Having the iconClass at the start of the class list would allow overriding the default icon color.
Also, variant and/or color and/or label class could be made available for the items, so that we can have them in different styles.
Describe alternatives you've considered
Using the provided slot mechanism implies adding a lot of code for something that could be simpler.

Would really love a labelClass


DBZ-1969 Add array support for time, timetz, timestamp, and timestamptz

https://issues.redhat.com/browse/DBZ-1969
This is the last portion of this issue to add support for these time-based array data types.

Test failures seem related?

They are, it looks like i have some small bug with time zone handling and I"m looking into it.  There is something odd with both how array values are being stored and returned by the driver that on the surface looks like it differs from handling of the non-array equivalents.

Applied, thanks, @Naros!


No module named bz2

From @GoogleCodeExporter on May 31, 2015 11:27
What steps will reproduce the problem?
1. Create a new python script
2. Write into import bz2
3. Start the script to throw the exception

What is the expected output? What do you see instead?
The expected output should be nothing and module imported, it instead throws an
exception

I'm using the latest versione of android-scripting with python into a Magic G1
cyanogenmod 5.0.8 (android 2.1)

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 6 Aug 2010 at 9:42
Copied from original issue: damonkohler/android-scripting#388

From @GoogleCodeExporter on May 31, 2015 11:27
Original comment by<EMAIL_ADDRESS>on 6 Nov 2010 at 9:44

Added labels: Type-Enhancement


onBefore hook not runs onpopstate and on load()

onBefore hook not runs on "onpopstate" event (when user use "Back" button) and when load() method called.
I think it should be in docs, or if it is bug, it should be fixed.

+1

I forked this and updated the code so that the onBefore runs on every load()... but I'm not sure how to commit back to the original project with the minified version. You can check out the un-minified source here and see if it helps your project: https://github.com/nsciacca/smoothState.js/tree/onBefore_219/src

@nsciacca to create the minified version, just run gulp on the repo.

Okay, going to give that a try again. I usually run grunt, so I think I need to install gulp and make sure I have all the dependencies set up. Thanks.

Any news on this?

I have gotten the minified version working and updated. @mcaskill has also incorporate this code into his fork and has initiated a pull request, although it seems he has some other concerns - see issue #247.

It would be great if the all the callbacks were called when using $smoothState.load() programmatically (onBefore, onStart, onReady, onAfter).
Otherwise, I don't see the value of the smoothState load function. At that point it's pretty much just a jquery load, and you lose out on all the callbacks you've customized around smoothState.


⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 88 ms

Resolved: ClamAV performance has improved in b5d5f88 after 5 minutes.


Inactive team members are not filter counts

As an 18f employee, I want to see accurate counts of active team members who are at any given location, or have any given skills or interests.
Acceptance criteria
Given I am an 18f employee
And there is a team member count next to a location
When I filter only on that location
Then my result set count should match the count in the filter
Given I am an 18f employee
And there is a team member count next to a skill
When I filter only on that skill
Then my result set count should match the count in the filter
Given I am an 18f employee
And there is a team member count next to a interest
When I filter only on that interest
Then my result set count should match the count in the filter

Explore showing former members in their own section, so that the count makes sense and people can clearly tell active from former members.


.Net standard library version?

Do you have plans to support a .net core / .net standard library version?

I already did some work on that a year ago, it's on this branch:
https://github.com/Q42/Q42.HueApi/tree/feature/netstandard
But there was so much unclear at that time, I'm going to delete that branch and start over.
My plan was to start as soon as someone needed it. I'll start working on it this week.

The netstandard version of Q42.HueApi and Q42.HueApi.ColorConverters is now on NuGet (version 3.4.0)
Let me know if you find any problems.

Great, I'll try it! Thank you!

First impressions are good


Our std library cannot properly handle different editions

I tried this code:

#[cfg_attr(kani, kani::proof)]
#[cfg_attr(test, test)]
fn check_panic() {
    let msg = "Oops.";
    panic!(msg);
}

using the following command line invocation:
$ RUSTFLAGS="--edition 2021" kani test.rs --only-codegen

I only get a warning:
warning: unused variable: `msg`
 --> test.rs:5:9
  |
5 |     let msg = "Oops.";
  |         ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: 1 warning emitted

with Kani version: 0.6.0
When we compile with rustc using 2021 edition:
$ rustc --test test.rs --edition 2021

this code doesn't compile:
error: format argument must be a string literal
 --> test.rs:6:12
  |
6 |     panic!(msg);
  |            ^^^
  |
help: you might be missing a string literal to format with
  |
6 |     panic!("{}", msg);
  |            +++++

error: aborting due to previous error

In the case of panic, unreachable and a few other macros, that have changed across editions, the rust compiler chooses the correct implementation. This mechanism is not available for us when we override macros. We should investigate what's the best way to handle that.

I am hitting a variant of this issue, where my code doesn't compile since kani's macros use edition 2021. The following code compiles with rustc, if not using edition 2021:
fn main() {
    assert!(false, format!("{}", 42));
}

But kani produces:
Kani Rust Verifier 0.40.0 (standalone)
error: format argument must be a string literal
 --> foo.rs:2:20
  |
2 |     assert!(false, format!("{}", 42));
  |                    ^^^^^^^^^^^^^^^^^
  |
  = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a string literal to format with
  |
2 |     assert!(false, "{}", format!("{}", 42));
  |                    +++++

error: aborting due to previous error

The issue here seems to be that kani's assert macro definition binds to the 2021-edition version, even though the macro is used in a non-2021 code.
If I remove the  __kani__workaround_core_assert! line from kani's assert definition, then the above code compiles fine.
It seems that macros use the assert! semantics corresponding to the edition of the crate that the macro is defined in, not the crate in which it used. A simple minimal project demonstrating this is here: https://github.com/bennofs/repros/tree/master/kani/%231375

Do you have any ideas for a possible solution of this issue? I would like to fix this as I have a project where a dependency is using the non-edition-2021 assert, but I don't know much about rust compiler internals to know what the best approach here is.


Support elision in extractor expression cover grammar

This changes the grammar to use a cover for Arguments that includes the Elision elements necessary to support ExtractorAssignmentPattern.
Fixes #23

is this a user-aware syntax change or is it just make things technically correct?

This fixes the cover grammar to match the ExtractorAssignmentPattern grammar so that F(, x) = y parses as intended.

FYI, unless anyone has comments on this PR, I plan to merge it later this evening.


Xiaomi Night Light 2 (MJYD02YL-A) motion every 10 minites turn on

0125 I download the lately version. find than zhe sensor.*****_action dose not work.
and add new binary_sensor.*******_motion ,but this sensor dose not work well. every 10 minites turn on ever there is no peple.
it make my light turn on all the night, plese repair this problerm。thanks。

now I use sensor.********_idle_time to 0 to trigger light on. maybe this way can work well now.
but please repair the _motion binary_sensor

now I use sensor.********_idle_time to 0 to trigger light on. maybe this way can work well now.
but please repair the _motion binary_sensor

Now, this problem has been solved。

Now, this problem has been solved。


waveforms too small to clearly visualize for probe recordings

Waveforms for probe recordings are hard to clearly see, because not much webpage space is allocated for each unit. It would be helpful if more webpage space was allocated to each unit. Thanks in advance.
Here is an example:
https://www.figurl.org/f?v=gs://figurl/spikesortingview-1&d=6326838558011a729862a3d8915f2f3e9210e990&channel=franklab2&label=J1620210531_.nwb_raw data valid times no premaze no home_24
And a screenshot of the waveforms from the above sort:

Unclicking the green checkbox in the screenshot above expands the view of each waveform, and they become clearly visible.