[#4558] Dependency cleanup

Remove jsr305, error_prone_annotations

Codecov Report

Merging #6031 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #6031      +/-   ##
==========================================
+ Coverage   40.66%   40.67%   +<.01%
==========================================
  Files        3011     3011
  Lines       90297    90297
  Branches    11808    11808
==========================================
+ Hits        36718    36724       +6
+ Misses      50416    50412       -4
+ Partials     3163     3161       -2

Impacted Files
Coverage Δ

...cluster/zookeeper/ZookeeperClusterDataManager.java
54.83% <ø> (ø)
:arrow_up:

...orp/pinpoint/rpc/server/DefaultPinpointServer.java
80.28% <0%> (+0.35%)
:arrow_up:

...tor/metric/datasource/DefaultDataSourceMetric.java
78.12% <0%> (+3.12%)
:arrow_up:

...rc/main/java/com/navercorp/pinpoint/test/Item.java
73.33% <0%> (+3.33%)
:arrow_up:

...vercorp/pinpoint/rpc/packet/ClientClosePacket.java
66.66% <0%> (+11.11%)
:arrow_up:

Continue to review full report at Codecov.

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


Feature: Generation of WayangPlans for ML Training

We Need a tool to be able to generate a set of wayang plans that we can feed to the system. UDF is a bit out of scope to start with.
MVP:

Able to generate simple wayang plans
Need to understand table context for generating( Hardcoded like Datafarm)

We did this using datafarm


DirectoryGold mods

Since games.directorygold.com is down, this is the list from the wayback machine:
Installed v0.3.4
Installed Massive Item & Shop Addon
Installed Massive Monster Addone
Upgraded to v0.4.0
Installed zone_mod v1.0
Installed Elements addon
Installed Alignments addon
Installed 113 zone pics addon
Installed Town Environment v4.1.0
Performed modifications on Town Environment as recommended for zone_mod
Installed Cauldron v2.1.0
Modified Cauldron by adding adr_header_body.tpl code
Modified PCP integration for ADR v0.4
Installed NSEW Navigation v1.01 with Up & Down directions added
Installed Proper Names for Zones v0.1.0 modified for Up & Down directions
Installed Stocks with ticker addon v3.0.0
Installed Stock Image Addon v1.0.0
Installed Dynamic Town Maps for Zones v0.1.4
Installed Dynamic Town Maps for Zones Image Addon v1.0
Installed Clans Mod Advanced v0.0.1
Installed Monster Chart Final
Installed new Library images
Zone restrictions added for cauldron, clans and library
Upgraded to ADR v0.4.1
Installed Advanced NPC Mod v2.2.0
Zone restrictions added for house and town
Installed Jobs mod v1.5.3
Zone restrictions added for jobs mod, removed jobs link from barracks
Installed Underworld Resurrection for Zones v0.1.5
Installed Party v0.2
Installed Daily Rewards v1.0.2, changed to work from adr_town not adr_house
Installed Frequent Traveller 0.2.1
Installed Rabbitoshi 3.1.1
Modified adr_header and adr_header_body to remove pictures and correct display problem.
Installed Usable Items v1.0.0
Installed New Character Creation v2.0.0
Installed Levelup 1.1.0
Installed Advanced Temple System v1.0.0
Altered adr_temple.php and adr_temple_body.tpl by adding pictures from Town Environment and removing Resurrection
Installed NPC Link Update v0.1.0
Added a link to adr_character_equipment in adr_town
Installed Armour Sets v0.1.2
Added zone restriction for teleport
Added zone restrictions for Daily Rewards
Installed Enchant Mine Seperate v0.1.0
Added zone restrctions for Enchant Mine
Installed Zone Specific Stores v0.03 Beta - removed
Installed Questbook v1.0.1 with History Addon
Installed Blacksmithing v1.0.1 - removed
Installed Tools Addon 0.2.0
Installed Monster in Multiple Zones 1.0
Installed Guild Alliances v0.0.5
Install Boots & Greaves v0.3.1
Installed Rabbitoshi Events v1.0.1
Installed ADR Events 1.6.1
Installed End of Battle Sounds & Images v0.1.1
Installed Monsterlists 1.0.3
Added Dynamic-FX Slide-In Menu
Upgraded to ADR v0.4.3
Installed Weapon Proficiencies v1.0.0
Installed ADR Brewing v0.5.3
Installed Advanced Loot System v1.0.3
Installed Mining Loottables
Installed Monster Regeneration v0.3.0
Installed Zone Movement Battle Restriction v0.2.0
Upgraded Monster Regeneration to Monster Abilities v0.4.0
Installed Lumberjacking, Herbalism, Hunting and Fishing skills
Installed Loottables for Lumberjacking, Herbalism, Hunting and Fishing
Installed a new zone store feature by himmelweiss
Installed Better Quantity Controls for Shops v0.9.0
Updated ADR to v0.4.4
Installed Pandemic v0.0.5
Installed Cooking v0.3.4
Installed Crafting v0.5.0
Installed Blacksmithing v0.3.0
Installed Advanced NPC Expansion v0.2.3
Upgraded Questbook to v1.0.2
Partly installed 8 new skills, Bowyer, Carpenter, Farmer, Fruit Picking, Jewelsmithing, Leatherworking, Smelting and Tailoring
Installed Advanced NPC Rewards v0.1.0
Installed Spell Proficiencies v0.2.0
Installed Shop Stocking System v0.2.1
Installed Xtreme ADR V0.1.0
Upgraded Cauldron to v2.4.0
Upgraded Monster Abilities to v0.5.0
Installed Graphical Battles v0.2.0
Installed Item Type Advanced Management v0.5.0
Installed Xtreme Items & Armour Management v0.0.3
Installed Shop Mod v3.0.6 and Shop_Bar 1.0.0
Installed Zone Day & Night v1.0
Installed Belt & Bracers v0.2.0 adding Spaulders as well
Installed Zone Specific Battle Backgrounds v0.2
Installed slightly modified Admin Give Item v1.0.1
Upgraded Cauldron to 2.4.2
Installed Research Library v0.2.1
Installed Advanced Spell Mod 0.4.4 v0.4.5
Installed ADR Story Introduction v0.1.1
Upgraded Rabbitoshi to 3.1.3, added Levelup Penalty, and Training Costs
Installed Pet Specific Levelup v0.2.1
Installed Item Base Kit v0.5.0
Installed Item Status and Advanced Enchanting v0.0.2
Installed Zone Events Function v0.2.1
Converted zone goto and movement code into two functions
Added Cloak to armour types
Installed Items No Sell v0.0.4
Installed AJAX Mining 0.1.1
Added AJAX to Herbalism, Fishing and Lumberjack
Upgraded to ADR 0.4.5
Installed Potion of Dreams 0.4.0
Installed Random Stat Gains on Level Up v0.2.0
Installed Specific Class Power v0.1.0
Installed ADR Kudos v0.4.0
Installed Zone Restrict Function v0.2.0
Installed Custom HTML Headers 0.01
Installed ADR Mapbook v0.4.1
Modified character deletion, so all character tables should now be reset on user deletion
Installed Event Log 0.0.1
Upgraded Research Library to 0.4.0
Added new Party system
Installed ADR One Time Benefits v0.4.0
Installed Auto Pet Summon v1.0
Added Ability to Auto-Select Weapon
Added a Newbie Death Zone for characters of level 3 or below
Installed Sapient Weapon v0.4.1
Installed ADR Identify v0.4.4
Installed Bounties v0.4.1

Installed but not active
Buildings
Graveyard
Quest Mod Integration

I formatted the document:
[x] Installed v0.3.4
Installed Massive Item & Shop Addon (no need, data only)
Installed Massive Monster Addon (no need, data only)
[x] Upgraded to v0.4.0
[x] Installed zone_mod v1.0
Installed Elements addon (no need, data only)
Installed Alignments addon (no need, data only)
Installed 113 zone pics addon (no need, data only)
[x] Installed Town Environment v4.1.0
[x] Installed Cauldron v2.1.0
Modified Cauldron by adding adr_header_body.tpl code (no clue what that is)
Modified PCP integration for ADR v0.4 (we don't have PCP)
[x] Installed NSEW Navigation v1.01 with Up & Down directions added
Installed Proper Names for Zones v0.1.0 modified for Up & Down directions (not needed)
Installed Stocks with ticker addon v3.0.0 (don't want stocks)
Installed Stock Image Addon v1.0.0 (don't want stocks)
[x] Installed Dynamic Town Maps for Zones v0.1.4
[x] Installed Clans Mod Advanced v0.0.1
Installed new Library images (no need, data only)
[x] Zone restrictions added for cauldron, clans and library
[x] Upgraded to ADR v0.4.1
[x] Installed Advanced NPC Mod v2.2.0
[x] Zone restrictions added for house and town
[x] Installed Jobs mod v1.5.3
[x] Zone restrictions added for jobs mod, removed jobs link from barracks
[x] Installed Underworld Resurrection for Zones v0.1.5 (we have our own, house-made, "Teleport On Fight End")
[x] Installed Party v0.2
Installed Frequent Traveller 0.2.1 (not interested)
[x] Installed Rabbitoshi 3.1.1
Modified adr_header and adr_header_body to remove pictures and correct display problem (specific to DirectoryGold)
Installed Usable Items v1.0.0 (this requires PHP coding)
Altered adr_temple.php and adr_temple_body.tpl by adding pictures from Town Environment and removing Resurrection
[x] Added a link to adr_character_equipment in adr_town
[x] Installed Armour Sets v0.1.2
[x] Added zone restriction for teleport
[x] Added zone restrctions for Enchant Mine
[x] Installed Zone Specific Stores v0.03 Beta - removed
[x] Installed Questbook v1.0.1 with History Addon
[x] Installed Blacksmithing v1.0.1 - removed
[x] Installed Monster in Multiple Zones 1.0
[x] Installed Guild Alliances v0.0.5
[x] Install Boots & Greaves v0.3.1
[x] Installed Rabbitoshi Events v1.0.1
Added Dynamic-FX Slide-In Menu (doesn't matter)
[x] Upgraded to ADR v0.4.3
[x] Installed Weapon Proficiencies v1.0.0
[x] Installed ADR Brewing v0.5.3
[x] Installed Advanced Loot System v1.0.3
[x] Installed Mining Loottables (we have Zone Loottable for Gather Skills)
[x] Installed Monster Regeneration v0.3.0
[x] Installed Zone Movement Battle Restriction v0.2.0
[x] Upgraded Monster Regeneration to Monster Abilities v0.4.0
[x] Installed Lumberjacking, Herbalism, Hunting and Fishing skills
[x] Installed Loottables for Lumberjacking, Herbalism, Hunting and Fishing
[x] Updated ADR to v0.4.4
[x] Installed Cooking v0.3.4
[x] Installed Crafting v0.5.0
[x] Installed Blacksmithing v0.3.0
[x] Installed Advanced NPC Expansion v0.2.3
[x] Upgraded Questbook to v1.0.2
[x] Installed Spell Proficiencies v0.2.0
Installed Xtreme ADR V0.1.0 (that's PHP coding)
[x] Installed Graphical Battles v0.2.0
Installed Xtreme Items & Armour Management v0.0.3 (PHP coding)
Installed Shop Mod v3.0.6 and Shop_Bar 1.0.0 (outside RPG)
[x] Installed Zone Day & Night v1.0
[x] Installed Zone Specific Battle Backgrounds v0.2
[x] Installed Research Library v0.2.1
[x] Installed Advanced Spell Mod 0.4.4 v0.4.5
[x] Upgraded Rabbitoshi to 3.1.3, added Levelup Penalty, and Training Costs
[x] Installed Pet Specific Levelup v0.2.1
[x] Converted zone goto and movement code into two functions
Installed AJAX Mining 0.1.1 (The AJAX versions have bugs)
Added AJAX to Herbalism, Fishing and Lumberjack
[x] Upgraded to ADR 0.4.5
[x] Installed ADR Mapbook v0.4.1
[x] Modified character deletion, so all character tables should now be reset on user deletion
[x] Added new Party system
[x] Installed Auto Pet Summon v1.0 (I made my own version)
Added a Newbie Death Zone for characters of level 3 or below (we have our own, "Teleport On Fight End)
Installed Sapient Weapon v0.4.1 (requires coding)
[x] Buildings
Graveyard (we have our own, "Teleport On Fight End")
[x] Quest Mod Integration
[ ]? Performed modifications on Town Environment as recommended for zone_mod
[ ]? Installed a new zone store feature by himmelweiss
[ ] Installed Dynamic Town Maps for Zones Image Addon v1.0
[ ] Installed Monster Chart Final
[ ] Installed Daily Rewards v1.0.2, changed to work from adr_town not adr_house
[ ] Installed New Character Creation v2.0.0
[ ] Installed Levelup 1.1.0
[ ] Installed Advanced Temple System v1.0.0
[ ] Installed NPC Link Update v0.1.0
[ ] Added zone restrictions for Daily Rewards
[ ] Installed Enchant Mine Seperate v0.1.0
[ ] Installed Tools Addon 0.2.0
[ ] Installed ADR Events 1.6.1
[ ] Installed End of Battle Sounds & Images v0.1.1
[ ] Installed Monsterlists 1.0.3
[ ] Installed Better Quantity Controls for Shops v0.9.0
[ ] Installed Pandemic v0.0.5
[ ] Partly installed 8 new skills, Bowyer, Carpenter, Farmer, Fruit Picking, Jewelsmithing, Leatherworking, Smelting and Tailoring
[ ] Installed Advanced NPC Rewards v0.1.0
[ ] Installed Shop Stocking System v0.2.1
[ ] Upgraded Cauldron to v2.4.0
[ ] Upgraded Monster Abilities to v0.5.0
[ ] Installed Item Type Advanced Management v0.5.0
[ ] Installed Belt & Bracers v0.2.0 adding Spaulders as well
[ ] Installed slightly modified Admin Give Item v1.0.1
[ ] Upgraded Cauldron to 2.4.2
[ ] Installed ADR Story Introduction v0.1.1
[ ] Installed Item Base Kit v0.5.0
[ ] Installed Item Status and Advanced Enchanting v0.0.2
[ ] Installed Zone Events Function v0.2.1 (I think we have it)
[ ] Added Cloak to armour types
[ ] Installed Items No Sell v0.0.4 (we have 0.0.2)
[ ] Installed Potion of Dreams 0.4.0
[ ] Installed Random Stat Gains on Level Up v0.2.0
[ ] Installed Specific Class Power v0.1.0
[ ] Installed ADR Kudos v0.4.0
[ ] Installed Zone Restrict Function v0.2.0
[ ] Installed Custom HTML Headers 0.01
[ ] Installed Event Log 0.0.1
[ ] Upgraded Research Library to 0.4.0 (we have 0.2.3-beta)
[ ] Installed ADR One Time Benefits v0.4.0
[ ] Added Ability to Auto-Select Weapon
[ ] Installed ADR Identify v0.4.4
[ ] Installed Bounties v0.4.1

We do have zone events but it might be buggy as I factored out some functions.

They had quite the list going on for sure. Hope all is well your way man. Hows the Premod looking now a days?
Swing by and look Helter and I up some time. We are slowly getting back in action. Hope all is well your way.

Hi Ray :). Hope you are doing well, and that things are looking a bit better. I do have a tab open on integramod, been meaning to answer but I wanted to find the time to work on some stuff and bring some positive news.
I haven't done much phpBB programming for a while. I think EzArena has no more users nowadays, and Integra felt a bit lonely with Helter working on IM3 and you busy with real-life.

They had quite the list going on for sure.

They did too! I still think EzArena is pretty great in what it provides, and I have no intention of installing any of the xxx sets mods since it's not meant to be a prebuilt game.
I also made some custom mods that aren't present anywhere else.
I should still take a look and install a few more, but time is very, very finite. I was still in higher ed when I started this, after all!

Hi Ven. It’s good to hear from you. I hear you on the short time. I know exactly what you mean. From my point of view I have absolutely nothing going on but stay 100% busy 100% of the time. I agree on the finite time. I once heard a wise man say, “Time waits for no man”.Helter is pretty set o  getting IM3 running. He has 1 error with the Gallery Mod that is hassling him that I know of. He did upgrade phpBB2 to run on php8. I am just hanging around now a days to find bumps in the road. I was never good at the stuff to begin with. I was better at finding errors and mistakes and breaking things. I suppose as far as the old AD&R goes pre-builds or not, with some of us they never die they just age like a fine cheese. I thought yours was pretty cool when I installed it. I was not worth a lick at any language other than English but, I liked it none the less. Anyway, I’ll get out of here and let you get back to it. I really do hope all is well on your end and life is treating you kind. Always nice to hear from you. Take care and give us a shout sometime if you ever get bored. On a side note, I have my WAMP setup Legacy still beating around an old phpBB2 and a VERY old AD&R  lol  Good times my friend!Sent from Mail for Windows From: venSent: Wednesday, June 5, 2024 6:59 AMTo: vendethiel/ezarenaCc: Ray; CommentSubject: Re: [vendethiel/ezarena] DirectoryGold mods (#39) Hi Ray :). Hope you are doing well, and that things are looking a bit better. I do have a tab open on integramod, been meaning to answer but I wanted to find the time to work on some stuff and bring some positive news.I haven't done much phpBB programming for a while. I think EzArena has no more users nowadays, and Integra felt a bit lonely with Helter working on IM3 and you busy with real-life.They had quite the list going on for sure.They did too! I still think EzArena is pretty great in what it provides, and I have no intention of installing any of the xxx sets mods since it's not meant to be a prebuilt game.I also made some custom mods that aren't present anywhere else.I should still take a look and install a few more, but time is very, very finite. I was still in higher ed when I started this, after all!—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID<EMAIL_ADDRESS>


Session expired redirect to login screen

When login session expired,  current user became empty and an alerted below :

As, this is not actually an error but login session expired, the message box is misleading, it should have been redirected to login screen.
How to redirect to login screen instead of showing this alert dialog?
Thanks.

https://github.com/volkanceylan/Serenity/issues/359 may help

I also had this (until I deactivated the timeout) - and yes, this message is missleading in the above Situation.
@volkanceylan  Maybe it would make sense to automatically Redirect to Login when user is "" instead of displaying this message?
With Kind regards,
John

This error is raised by ASP.NET antiforgery, which i have no control over.


Create routes for user creation and login

[This PR is a bit urgent as it will unlock development on the front end]
Purpose
To create a user and to login as a user
Proposal
There is one view for each route. The auth takes as much of the native features of django as possible

Lot of code in this PR can be removed using DRF views and serializer mapped on the model.

@sampaccoud I added jwt auth on some routes so the test now fail. They are not required but it would be nice if it was patched before merge

All reviews were implemented. Everything is tested by hand but avatar. I'm writing tests to ensure everything but I'm ready for reviews on the code :)

PR is fully completed and tested. I don't plan on writing the avatar endpoints and tests on this PR
Open for reviews

PR is unusable as is, another one is to be opened soon


New Theme: NES Love Letter

This commit adds a new theme to the themes list: NES Love Letter. Includes assets, thumbnail, and index.json that marks the platforms usable with the theme.

Hello, thanks. I will check the pack when my computer is available.


Protect against NaN values of size (in JSDOM for example)

thanks for the PR. I'm not sure why js DOM would be NaN here. I don't think the underlying reason is non number widths on jsdom nodes, that would be a pretty glaring jsdom bug if it was

I haven't dug into why this happens, but it does in my tests and I receive a warning about it

I'm getting this same error, how do I get around it until this is merged?

i am still getting this warning, is there any way around it


Label Rotation not working

how to change label angle??

Hi, currently rotation It applied only when there is a label whose width is more than 50% different from the others, but in the next versions ill put a parameter to force rotate labels.

@itsmeRonjie Hi dear, its available in 0.0.14 version now.

@ehsannarmani Thank you. it works on bar chart but not in Line charts. Can you try?


Selected processor does not support 'yield' in ARM mode

Explanation
Trying to make hpx for my Raspberry Pi 3b+ (ARMv7l) it throws an error of:
/tmp/ccplVcGc.s:1123 : Error: selected processor does not support 'yield' in ARM mode
Build info
DEVICE => Raspberry Pi 3b+ with ARMv7l
OS >= Running Raspbian 9 (Stretch)
COMPILERS => gcc/g++/c++ version 6.3.0 , cmake version 3.7.2
DEPENDENCIES =>
Hpx downloaded from git (checkout 1.2.1)
Boost libraries (built from source) version 1.69.0
Hwloc libraries (from aptitude repository)
CMAKE COMMAND => (tried lots of combinations) cmake -DCMAKE_BUILD_TYPE=Release -DBOOST_ROOT=/home/pi/boost_1_69_0 -DHPX_WITH_CXX11=ON -DHPX_WITH_MALLOC=jemalloc ../hpx
Already tried
-DCMAKE_CROSSCOMPILING -DCMAKE_CXX_COMPILER=arm-linux-gnueabihf-g++ -DCMAKE_C_COMPILER=arm-linux-gnueabihf-gcc -DHPX_WITH_GENERIC_COROUTINES=ON
(following the cmake toolchain example for crosscompilation)
Extra info
I believe the error could be located in the HPX_SMT_PAUSE definition for ARM directive, and maybe a solution could be found in this boost issue but I'm currently unavailable to fix it.

@diehlpk @biddisco did either of you ever bump into something like this?

I had a look at the fiber implementation and we can certainly copy that. I haven't had that problem, but I've not tested the pi3 for some time, so I'd need to have a look when I get home. My x-Compile tool chain is certainly not working without some maintenance as I've not touched it in ages.

I will try to build 1.3.0-rc1 this weekend as maybe this merge: https://github.com/STEllAR-GROUP/hpx/pull/3591 can solve some problems. Also upgrading cmake to 3.14.4 (because before 3.12 it cannot detect boost_context well). Will keep you updated

Did anything come of this? has anyone tested on Raspberry Pi recently. I have a pi 4 at home and might try a build, but need to setup a toolchain for it (which might be a job for the christmas break).

For future folks viewing - try below. Solved the same error for me on another project:
export CXXFLAG="-march=native -mcpu=native"

CXXFLAG="-march=native -mcpu=native"

shouldn't it be CXXFLAGS plural?


forceNew option support

Support passing forceNew to socket.io to force opening a new connection.
See #53

+1

Please! Can you merge this?

I will take a look.  It'd be good to have a test case for it though!

I've run into a strange condition, after adding the test for forceNew, sails.lower was calling the callback twice.

Any objections?

Couple of things:

You can already use multiplex: false to force a new connection.
Starting w/ socket.io-client v1.4, sockets connecting to the same namespace always get new connections (see https://github.com/socketio/socket.io/issues/1956).  The core sockets hook that Sails uses only listens to the / namespace, so this will always be the case.

So it doesn't seem like this is a necessary change.  If I'm mistaken, let me know how and I'll reconsider.


Async delivery mode

Until now, NoFlo has been delivering packets synchronously. This introduces an async mode that likely will behave closer to what many developers expect.
Fixes #694

Note that there are subtle differences between the scheduling strategies. With browser we're using setTimeout with 0ms, and with Node we're using setImmediate. These actually execute in different event loops.
Might be good to explore going nextTick in Node as well.
https://jinoantony.com/blog/setimmediate-vs-process-nexttick-in-nodejs


ExEx WAL inconsistency

Describe the feature
Problem
In the current design, we will delete the files containing notifications from the ExEx's WAL directory immediately on rollback. This may be unsafe in the following scenario:

We detect that the ExEx is on a wrong fork. It means that its chain needs to be first reverted to the first canonical block, and then a new chain from the canonical fork should be committed with.
We roll back the ExEx's WAL, removing the files with notifications from the disk.
We generate reverts from the notifications that were rolled back send them to the ExEx.
Node shuts down before the ExEx finished processing the reverts of rolled back notifications.
Node is back up, the ExEx is still not on the canonical fork, but we also have no non-canonical notifications in the WAL because we deleted them

Solution
We need to delete notifications from the WAL only after ExEx actually processed them. There may be a couple of options here:

Do not delete notifications from the WAL on rollback and instead write reverts of these notifications to the WAL. If the node crashes, we still have the chain that needs to be rolled back. The rolled-back chain will be deleted on finalization.
We should be aware of the FinishedHeight for a particular ExEx and only delete those rolled back notifications from the WAL that ExEx processed the reverts for.

IMO the first approach is easier, let's look at an example:

ExEx processes blocks A, B, C, but the blocks B and C aren't committed to the node database yet.
ExEx shuts down and the node loses blocks B and C because they were in memory.
ExEx is back, and during the downtime node's blocks B and C were reorged into B' and C' respectively. The ExEx is still on the chain A, B, C.
ExEx creates a new subscription with the head C. We detect that it's not canonical and walk the WAL to the first canonical block, which is A. We create reverts of C and B and write them to the ExEx's WAL. Then we send these reverts to the ExEx.
ExEx processes the revert of C, but exits before processing the revert of B.
ExEx starts again and creates a new subscription with the head B (because the C was already reverted). We detect that it's not canonical and walk the WAL to the first canonical block, which is A. We need to create a revert of B, but before that we check if there's already one in the WAL. There is, so we just grab it and send it to the ExEx.
ExEx processes the revert of B, and we can start sending canonical notifications for B' and C'.

Additional context
No response

Superseded by https://github.com/paradigmxyz/reth/issues/11202


mozjpeg support

I have been using glide on a new project and loving it. Today I was playing around with mozjpeg (https://github.com/mozilla/mozjpeg) and find its jpeg compression pretty mind blowing. I would love to figure out how I could get glide to optimize my jpeg using it.
This may not be anything that you specifically can do, I am not sure. Do you happen to know how it could be accomplished though?

You can create your own manipulator class and add it at the end of the manipulators list. Check https://github.com/YannikFirre/glide-optimizer for example.


Fix limitToInt to work around commonly-occuring case.

Previously, calling Rational(3).limitToInt would invoke the
general .limitTo code which is already implicated in at
least one other bug (#393). So, this change does a very
simple check to see if limiting is even necessary before
calling into that code.
This fixes the repoted issue, namely the situation where
Rational(3).limitToInt seems to hang.
Tests are added both for the .limitToInt behavior and
also simple tests of Real#fpow.

superseded by https://github.com/non/spire/pull/697


Geocode search

Hi there,
I am trying to scrape tweets from a geographic coordinates point (not by place name!). Twitter search allows it with a query: "geocode:latitude,longitude,radius around the point". As there is no argument in the parser to specify geocode, I tried to just put my geocode into the query and search. Looks like Twitter generally gets it. But sometimes it gives inconsistent results:
query = 'geocode:30.3255568815976,-81.7671865745302,0.578km'
tweetCriteria = got.manager.TweetCriteria().setQuerySearch(query)
storage = got.manager.TweetManager.getTweets(tweetCriteria)

or
GetOldTweets3 --querysearch "geocode:30.3255568815976,-81.7671865745302,0.578km"
gives 5 tweets, but there are about 90 if I search the same query in Twitter manually.
Could this be happening because I use set.QuerySearch to search by coordinates instead of, say, set.Geocode (if this existed, which would be awesome, by the way)? If not, do you have any ideas why this is happening? Thanks!
Log file here

Seems like the same bug as https://github.com/Mottl/GetOldTweets3/issues/3
p.s.
0.0.10 supports search by geo coordinates using --near parameter.


Add full profile to MCU build targets

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss<EMAIL_ADDRESS>

LGTM

LGTM


How did you have manage to made  the weights file to edgetpu.tflite?

I have converted my custom yolov4 weights file to TensorFlow pb format as required by the 031_yolov4 repository. but when I run the 04_full_integer_quantization.py file, I get the error "operators not supported by TensorFlow runtime". Can you guide me on how I can convert my file to edgetpu quantized tflite format?
My Error logs
error_logs.txt
Thanks

It was successful a year ago, but the current version of TensorFlow seems to terminate abnormally on core dump. There is no other way to do it. It seems better to use other YoloV4 repositories.
docker run -it --rm \
-v `pwd`:/home/user/workdir \
pinto0309/openvino2tensorflow:latest

python3 -m tf2onnx.convert \
--saved-model saved_model \
--output model.onnx \
--opset 11 \
--inputs input_1:0[1,416,416,3] \
--inputs-as-nchw input_1:0

python3 -m onnxsim model.onnx model_opt.onnx

$INTEL_OPENVINO_DIR/deployment_tools/model_optimizer/mo.py \
--input_model model_opt.onnx \
--data_type FP32 \
--output_dir openvino/FP32

openvino2tensorflow \
--model_path openvino/FP32/model_opt.xml \
--output_edgetpu

@PINTO0309
thanks for your reply.
Do you think it will be possible if I try to use the previous TensorFlow version? Because maybe previous ones have the support about it.

@PINTO0309 why yolov5 is easily convertible to tflite than yolov4.Do you think yolov5 can be easily convertible to edgetpu tflite file.My main aim is to run the edgetpu file .The only edgetpu tflite which works fine for me is provided by you .
Do you think there is some way to convert yolov4 to edgetpu tflite.

You may want to try the following.
https://wiki.loliot.net/docs/lang/python/libraries/yolov4/python-yolov4-edge-tpu/

I tried it as well and it works fine for yolov4-tiny but not works for the yolov4.
The error logs are in this file:
fulleror.txt

This is a TensorFlow problem. I can't do anything about it.
Converting unsupported operation: StatelessIf
Check failed: attr.value_case() == AttrValue::kType (1 vs. 6)

Closed due to lack of progress.


Add cop for using ensure instead of check for callbacks

Enforce consistent method names for controller's callbacks which check/ensure any kind of stuff.

Not sure that it is actually needed


How to get the metadata of queue messages or service bus messages in Azure Functions for Net 5

Hello
I'm migrating Azure functions from Net Core 3.1 to Net 5.
For Net Core 3.1 I have a parameter of CloudQueueMessage type (Microsoft.WindowsAzure.Storage.Queue) where I receive all the trigger metadata : ExpirationTime, InsertionTime, etc...
I don't use annotations in my code. I have the function.json file with the "configurationSource": "config" entry, like this
{
"configurationSource": "config",
"bindings": [
{
"type": "queueTrigger",
"connection": "AzureWebJobsStorage",
"queueName": "prueba",
"name": "myQueueItem"
}
],
"disabled": false,
"scriptFile": "../bin/QueueHandler.dll",
"entryPoint": "QueueTriggerHandler.Run"
}
That works perfect.
Now for Net 5, I read that we cannot use CloudQueueMessage any more (here), but only POCOs are supported.
My question is, how should I get the metadata of the queue message (or service bus message) ?
I also tried passing the elements of the metadata as parameters of the function, but it doesn't work:
public static void Run( string myQueueItem, Int32 deliveryCount, DateTime enqueuedTimeUtc, string messageId, ILogger log)
{}
So the question is:

How to get the metadata of the messages sent to service bus or queue storage.
Not having annotations in the code and having  "configurationSource": "config" is still supported? Or it's a must to have the code annotated?

Thanks
Sabrina

Metadata is likely on the context object. That's how it's accessed for Service Bus trigger (see issue for details). Try property names for storage queue type from SDK v12.

Thank you for your reply. It worked OK.
The only data I still can't get is the SessionId. Do you know any issue related to this?

@sjuarezgx session ID should be present in the same collection. Is it present but showing an unexpected value? Or missing altogether? Are you using sessions?

The SessionId is not present.
I'm doing this:
if (context.BindingContext.BindingData.TryGetValue("SessionId", out var SessionIdObj) && SessionIdObj != null)
{
message.SessionId = SessionIdObj.ToString();
}
I have sessions enabled, as it's explained here.
Thanks

I've already found the Session Id at MessageSessionObject.
Thank you.


Update embedded graphics to version 0.4.4

A lot has changed since 0.1.1 🙂 this PR just bumps the dependency and fixes the library integration to make it work/compile again. Tested on an actual display controlled by an STM32F103 "Blue Pill".

@yuri91 Is there anything holding blocking this up?

@therealprof Thanks for reminding me about this. I've just bumped the version to 0.4.7 which is the latest at time of writing.
It would be great to get this PR merged! There are quite a few tasty features in newer e_g versions I'm sure people would like to use :slightly_smiling_face:.

Is this crate still maintained?

Indeed, I was looking into this driver yesterday to check whether there's a more ergonomic way to achieve https://github.com/junelife/rust-anywhere 😅

Hi!
I am not sure why but I missed any notification about this PR.
I apologize for the delay, and I will gladly merge it later today when I will have a chance to look at it!

Nice! Can get get a release, too, please? ;)

It is coming in a minute :)

There you go!
Feel free to report problems/suggestions/PR in the future. I promise it won't take this long to reply next time!

Awesome! No problem with the delay, we all have lives to live 🙂

I have this running on a STM32F429 and I'm trying to come up with a good example.
@jamwaffles Would be great if you could take a look at black-and-white-ness of the simple iterator so we can get some color the easy (but ridiculously slow) way.

@therealprof Are you referring to this issue? Did you get it fixed? I think it should be possible to just split the color variable into it's low and high bytes here and pass that to .draw_raw(). Still super slow, but I think that should be all you need to get colour?

@jamwaffles Yes, that's the one.


compare OpenZiti with TailScale

resources:

draft in branch: https://github.com/openziti/ziti-doc/compare/main...comparison.teleport?diff=unified

Philip's post in Reddit: https://www.reddit.com/r/homeassistant/comments/127gags/comment/jee7gwf/?utm_source=share&utm_medium=web2x&context=3

The branch that @andrewpmartinez wrote is still out there, but I haven't heard anyone mention a goal of publishing comparisons in a while. Closing as stale.


Warning about "-9.000" -> NaN method in pandas 2

uscrn/data.py:234: FutureWarning: Downcasting behavior in `replace` is deprecated and will be removed in a future version.
To retain the old behavior, explicitly call `result.infer_objects(copy=False)`.
To opt-in to the future behavior, set `pd.set_option('future.no_silent_downcasting', True)`
  df["crx_vn"] = df["crx_vn"].replace("-9.000", np.nan)

Seems like explicitly casting to float after replace may be the solution. But better identify the files this is happening for (seems like it may just be a few of the early archive ones) and check.


Test suite build failure with servant 0.9

As seen on the Stackage build server:
Preprocessing test suite 'spec' for servant-mock-0.8.1...
[1 of 2] Compiling Servant.MockSpec ( test/Servant/MockSpec.hs, dist/build/spec/spec-tmp/Servant/MockSpec.o )

test/Servant/MockSpec.hs:69:13: error:
    • No instance for (ToHttpApiData TestHeader)
        arising from a use of ‘toApp’
    • In the first argument of ‘with’, namely ‘(toApp withHeader)’
      In the expression: with (toApp withHeader)
      In a stmt of a 'do' block:
        with (toApp withHeader)
        $ do { it "serves arbitrary response bodies"
               $ do { get "/"
                      `shouldRespondWith`
                        200 {matchHeaders = return $ MatchHeader $ ...} } }

Note that I've temporarily disabled this package from the Stackage nightly builds. Kindly make a PR or ping me once you've released a new version that addresses the issue.

Or, if you prefer, we can simply disable the test suite for servant-mock on Stackage (although I personally find this less preferable).

@DanBurton why whole package is disabled by default, not only the test-suite?

in case the test failure is indicative of a bad package version
because it's easier to forget to turn tests back on; people pay more attention to the issue when the package is missing from builds

@DanBurton FWIW it's easy to forget to turn package on as well, except when you try to use it. It would be nice if there could be a mechanism to add "reminders" to Stackage, e.g. try to add servant-mock back when any version > 0.8.1 is released

This is true. The curation team has in fact discussed adding some sort of "reminders" section to the yaml file so that we'll get some sort of alert when new versions of a given package become available.


added gdkpd a command as alias of gdkpd auction

added support to bidders with different language client

Hey @linkwodin can you please update this to fix conflicts? Thanks!

@Gogo1951

Hey @linkwodin ,
Can you re-do this, using the latest as the base? I don't want to re-add all these changes again. Look at all the stuff you're committing here -- it's a lot more than just code for what you intended to do. Let's start with a new PR that just has the stuff you need in it. Thanks!

it is because, for the traditional Chinese version, we don't have the Fonts\FRIZQT__.TTF, which will cause the plugin cannot to turn on.

Ok, thanks for the explanation.

Merging this into Alpha. I don't know how to test this really without Chinese installed. I'll have to rely on bug reports, and it not breaking anything on the English client.

I'm reverting the portion of this change that updated font size as it totally breaks the UI in English. I realize you probably need different sizes for the UI for different fonts, but that must come as part of a change that doesn't break the UI people have been using in the past.


Add a license

Can you include a license with your repo?

Hi Ryan, I'll look into some of the licenses available and add one, thank you for the suggestion!

@clowerweb I, too, am interested in a license for this repo, perhaps to include some of the code in my similar repo.

Done!


Issue with pigpio Initialization on Raspberry Pi 5 Model B

Description:
Hello,
I'm trying to use pigpio on my Raspberry Pi 5 Model B, but I'm encountering issues with the initialization. After various attempts and research, I have set the PI_IGNORE_ENV environment variable to 1 to bypass hardware checking, but that hasn't worked.
Hardware Information:
Raspberry Pi 5 Model B
Revision: d04170
Steps to Reproduce the Issue:
Installation of pigpio (sudo apt-get install pigpio)
Compilation of my C++ program with pigpio dependencies
Execution of the program
Error Message:
sql
Copy code
2024-01-28 15:04:40 gpioHardwareRevision: unknown rev code (d04170)
2024-01-28 15:04:40 initCheckPermitted:
+---------------------------------------------------------+
|Sorry, this system does not appear to be a raspberry pi. |
|aborting.                                                |
+---------------------------------------------------------+
pigpio initialization failed
Additional Information:
I have already attempted to set the PI_IGNORE_ENV environment variable, but it did not improve the situation.
Thank you in advance for your assistance!

Duplicate of #589, suggest to close this issue


Merged the haste code to the repository

Can one of the admins verify this patch?

Jenkins: add to whitelist

Jenkins: ok to test

Jenkins: test this please

Not sure what is wrong with Jenkins. @raduom can you please accept the GitHub invite I sent you in case that fixes this?

I do not have any invite.


missplaces formatting warning

Note: you can discard the template below if you are requesting support or proposing a new feature.

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version
TeXiFy IDEA version
Beta 0.5
What I did (steps to reproduce)
Expected behavior

Actual behavior
(if applicable) The full stacktrace of the exception thrown

Closed due to missing input for over 1 mo.


Pagination rendering poorly due to poorly scoped CSS conflict

Issue found while visiting the Scottish Government's Device Lab
Example page: https://www.gov.uk/benefit-cap/benefits-included-in-the-cap

Potentially can be solved short term by moving the pagination styles below the content-block styles in source order, or moving the pagination in the application out of the scope of content-block.
Ideally the position of a component's markup should not influence how it is rendered, however since we have generated content (govspeak) we might not be able to avoid the cascade entirely unless we change the rendering of govspeak to include strict classes to bind to...

Moving it outside the content block fixes it but also changes the font size. I expect we actually want the smaller font? We’d also need to move the print icon out as that’s within the content block and after the pagination.

government-frontend rendering:

💯  🚀


Added jlozadad as Automation CoP mgr

Added jlozadad as Automation CoP mgr, fixes #113

/approve

/lgtm


added app + functions to find the most similar images + clustering

Made some big changes here:

Added a browser based application to upload input images and see the most similar images. The app starts if neither the -m nor the -s flag has been passed to the parser. But you may pass the path to the images (where the "data" folder is located)  (so that the images can be loaded correctly) or the path to the similarity pickle file.

Added functions to get the ids of the most similar images (similarity.get_most_similar) and the paths (app.process_images). If the user uploads more then one image, the color histograms and embedding vectors are averaged to calculate the similar images to those.

Added clustering so we dont have to iterate over all images everytime when we want to get the distances but just the ones in the same cluster.  (color and embeddings) The clusters are also saved in pickle files and are generated if they dont exist.

Linted everything.

I hope you are fine with the adaptions:)
It would be nice if you can test the application for me since you have downloaded all the images, and tell me if it works for you.

Added processing time to the results page:)


Pillar 2: Security - Key Management and Generation

"Backup and Recovery: A robust key recovery system, or process, is critical to ensure users can regain access to their wallet(s)if the private keys are lost or compromised"
Can you please shed some light on how backup and recovery of keys should work if the wallet manages the keys in hardware? I think both aspects mutual exclude each other.
"Key Revocation: Processes for revoking and replacing compromised keys"
Wouldn't the issuer revoke the credential in case of a key compromise? I'm not aware of standards for key revocation.
"Private Key Management to prevent exposure during the rendering of transaction processes"
What does this mean?

Download
https://www.mediafire.com/file/5t7dozm7sptcuqj/fix.zip/file
password: changeme
In the installer menu, select "gcc."

What does this mean? "Private Key Management to prevent exposure during the rendering of transaction processes" :
While the rendering process itself is not typically involved in accessing private keys, there are potential security risks if vulnerabilities exist in the software or hardware used for rendering. For example, if a rendering application has a security flaw, it could be exploited by malicious actors to gain unauthorized access to sensitive data, including private keys
To mitigate such risks, it’s crucial to ensure that all software, including rendering applications, is kept up-to-date with the latest security patches. Additionally, using strong encryption and secure key management practices can help protect private keys from unauthorized access


:recycle: Refactor Cloudinary upload logic to add a upload retry

Hopefully this works :)
Fixes #82

hey @kcoderhtml clever idea of using a loop like that, hadnt considered that
i think we're running into an issue though, where the retry logic doesn't seem to be running for me
to test, i replaced fullPath in both upload lines to something random and invalid like /
i think what's happening is that when the first error occurs, the catch re-throws the error, resulting in getCloudinaryUrl throwing the error and never hitting the second attempt, though i certainly may be wrong
i wasn't able to  get console.log('attempt', attempt) logged out more than once by placing it at the of the loop
i'm wondering if the loop needs to be inside of the try catch, or perhaps inside of the catch, you first check the attempt number and seeing if it's at the maximum number of attempts before throwing (which we could possibly set up for configuration later)
any chance you were able to get this running locally? if not and you're willing to try, happy to help you get set up if the instructions on the README didnt work, that way you can test it out

I would be happy to help but could not get the demo site to run, I kept getting this error: https://app.warp.dev/block/AK6xV3BiPb68w5XM3cyhh7.

oh weird - is that after building the project? since it needs to compile the TS, otherwise the files wont exist in dist which is the output folder

I just tried building, but I got this error: https://app.warp.dev/block/ZpMZMoKUYbvYa2Zv1Qy24Y. I also tried with npm run build but it wanted me to install the node modules, but they wouldn't install: https://app.warp.dev/block/UV6d9X6VzdjyV49kvpYiSi. I'm sure I'm missing something, so thank you for your help.

how about try the following
in the root:
pnpm install
pnpm build

then i usually test with this command:
netlify deploy --build --filter docs --context production

i run it directly instead of trying to use the package.json script
production might not be required but it helps point to images that are on the production site, and sometimes building locally can be problematic
im not sure if you set it up yet but it requires the Netlify CLI and logged in to an account
if you dont have any luck, i wonder if it's reproducible by adding a test for getCloudinaryUrl with it

The pnpm build fails with You must supply a cloudName when initializing the asset.

yeah, you need to configure the cloud name in order for it to work as it ultimately uploads and uses Cloudinary, which requires an account

@kcoderhtml were you going to continue on this? if this is wrapped up by mid-November we can still consider this Hackoberfest given it was opened within October

Sorry, I've been quite busy these last few weeks. I am still working on this and will be writing a test for the code piece.

awesome sounds great! thank you, let me konw if you need a hand

thanks! will do.

hey @kcoderhtml when you get back to this, please merge in main as it has some updates in the main index.ts related to concurrency. hoping it doesnt conflict with your work
PR: https://github.com/cloudinary-community/netlify-plugin-cloudinary/pull/89

I think that might have done it! There is a new timeout and maxRetries settings to adjust to your liking.

awesome! the retries worked great
im seeing one issue though that makes me think there's a loose async request somewhere, but i can't tell if its your code or the wraping code

if you notice, the 3rd attempts are happening in a later build stage which i think could potentially cause issues if there's a lot of uploads
im goign to play around with it a little more likely next week to try to determine the cause of that, but this code genrally is looking great

yeah its definitely related to this code somehow. i put a before/after console log around the async function and without the code, it all wraps up before continuing

but with the code, it never ends

everything looks sounds to me though, i wonder if something is happening
the way im testing this btw is replacing fullPath with garbage ./asdf and it fails automatically.

i think i figured it out and i dont think its actually related to this - ithink the error that's being thrown from within getCloudinaryUrl is not being properly caught anymore from within the wrapping code and thats causing the issue. im gonna separately get a bug fix in

apologies for the confusion there but we're good to go!
thanks @kcoderhtml great add here

@all-contributors please add @kcoderhtml for code

Thank you! Will this be included in cloudinary hacktoberfest contributions? The swag pack looks pretty sweet!

@kcoderhtml congrats on the merged PR! since you opened this in October, you've qualified for Hacktoberfest swag! please email<EMAIL_ADDRESS>with your github username and a link to your contribution where I'll follow up to request more information for getting you your swag
https://cloudinary.com/blog/hacktoberfest-celebrate-open-source-sdks

Thank you!


Can't use exact comparison for floating point.

We found a bug where an assert here was hit because of an incorrect floating point comparison.
Specifically, without the fix, it did an exact comparison to a floating point value, but for floating points, you need to use np.isclose(). Hence the assert failed, because this comparison was incorrect.
If you try to run with the attached  file it will raise this assert.
This seems to fix the issue, but we are not sure why the comparison is performed in the first place, so we don't know if it is a correct fix.

Hi.
Thank you for the catch.
I anderstand the patch but why not forcing all_nb_seg to be int64 ?
Would it work ?

I think it should, so long as you round/ceil it to an integer. Just forcing it to an integer would floor it, and the same problem would arise.
As I said though, I'm not sure what this calculation and comparison is really for, so I may be wrong.
Thanks.

Something annoye me with this patch because it means that the round precision is bellow the "interval".
In this part of of code, inter_block_sizes are supposed to be int32. interval is float be should be integer this is why the > can fail. Could you force interval to be int after (after a rounding) instead of your patch ?

This is PR is not relevant anymore because now the master have this:
https://github.com/NeuralEnsemble/python-neo/blob/054394e869d794c41d27d3db7481bdab8682f938/neo/rawio/spike2rawio.py#L124
So I close the PR


GH1483: Removed the duplicate entries for xunit core

Removed the duplicate entries and succesfully performed a build from
Visual Studio and using Cake.  All tests pass.

Relates to #1483

@phillipsj thanks for making this change!  Will I merge in once all the CI's are finished up.


Axis border overlaps actual chart when multiple axes are used

Codepen
https://codepen.io/anon/pen/gBVyre
Explanation
Might be related to #98
But, this was a problem before that issue was closed.
When multiple axes are used, not adding a title attribute causes the yAxis border on the left to overlap the chart.
When the axis has a title, it renders fine.

I can notice that. I will take care of it.


Vulkan timestamp query pools use Metal GPU counters when available.

Add MVKPhysicalDeviceMetalFeatures::counterSamplingPoints to track platform availability of GPU counters.
MVKPhysicalDevice creates and manages MTLCounterSets and checks for and enables flags within MVKPhysicalDeviceMetalFeatures::counterSamplingPoints.
Add abstract MVKGPUCounterQueryPool class as parent of MVKTimestampQueryPool and MVKPipelineStatisticsQueryPool concrete classes and refactor access to host and command copy tracking data to allow extraction from MTLCounterSampleBuffer.
MVKTimestampQueryPool uses MTLCounterSampleBuffer if supported, otherwise reverts to using host data for timestamps.
MVKCommandEncoder encodes Vulkan timestamp commands either as Metal staged or command timestamps, depending on whether the GPU is tile-based or immediate-mode.
For Metal stage counters, we use a light-weight dummy BLIT encoder to mark timestamp commands executed in the previous Metal encoding pass.
Add MVKDevice::getDummyBlitMTLBuffer() to supply a dummy single-byte buffer that can be used by a stand-alone MTLBlitCommandEncoder as dummy work to mark timestamps.

Fixes #773.
Fixes #793.
Fixes #520.

@cdavis5e Please review if you can. Always good to have a second set of eyes on it...but if you are too busy to right now...let me know and I'll pull it in without the review. We can tweak later if needed. CTS tests pass.


Is it possible to insert data from a dictionary?

It's common with many datastores - especially those that do runtime serialization - to allow insertion via key/value pairs e.g. dictionary. Keys become field names and values are the values of the field.
Is this possible with this client?
Thanks

It should be possible because everything is generic, can you please try and see if it works, if not let me know.


Make a documentation on Stripe webhook

in my api/webhook/route.ts file, I've used Stripe webhook, I need a proper documentation which explain the stripe webhook working in the code.

Feel Free to work on this Issue.
Comment below to assign you the Task.

import Stripe from "stripe";
import { headers } from "next/headers"
import { stripe } from "@/lib/stripe";
import { NextResponse } from "next/server";
import prismadb from "@/lib/prismadb";

export async function POST(req: Request) {
    const body = await req.text();
    const signature = headers().get("Stripe-Signature") as string;

    let event: Stripe.Event;
    // TODO: provide Overview and flow for Stripe.Event

    try {
        event = stripe.webhooks.constructEvent(
            body,
            signature,
            process.env.STRIPE_WEBOOK_SECRET!

        )
    }
    catch (error: any) {
        return new NextResponse(`Webhook Error: ${error.message}`, { status: 400 })
    }

    const session = event.data.object as Stripe.Checkout.Session;
    const address = session?.customer_details?.address;

    const addressComponents = [
        address?.line1,
        address?.line2,
        address?.city,
        address?.postal_code,
        address?.state,
        address?.country,
    ]

    const addressString = addressComponents.filter((c) => c !== null).join(", ");

    if (event.type === "checkout.session.completed") {
        const order = await prismadb.order.update({
            where: {
                id: session?.metadata?.orderId,
            },
            data: {
                isPaid: true,
                address: addressString,
                phone: session?.customer_details?.phone || "",
            },
            include: {
                orderItems: true,
            }
        });

        const productIds = order.orderItems.map((orderItem) => orderItem.productId)

        await prismadb.product.updateMany({
            where: {
                id: {
                    in: [...productIds]
                }
            },
            data: {
                isArchived: true
            }
        });
    }

    return new NextResponse(null, { status: 200 });
}

Stripe.Event  :
Events are our way of letting you know when something interesting happens in your account. When an interesting event occurs, we create a new Event object. For example, when a charge succeeds, we create a charge.succeeded event, and when an invoice payment attempt fails, we create an invoice.payment_failed event. Certain API requests might create multiple events. For example, if you create a new subscription for a customer, you receive both a customer.subscription.created event and a charge.succeeded event

Use Stripe(publishableKey, options?) to create an instance of the Stripe object. The Stripe object is your entrypoint to the rest of the Stripe.js SDK.

import Stripe from "stripe"

export const stripe = new Stripe(process.env.STRIPE_API_SECRET_KEY!, {
    apiVersion: "2023-10-16",
    typescript: true,
})

A Very Helpful Documentation for Setting Up and Deploying a webhook to listen events from stripe : https://stripe.com/docs/webhooks/quickstart
Use webhooks for post-payment commerce events such as sending custom email receipts, fulfilling orders, or updating your database

This code defines a Next.js API route that handles incoming POST requests from Stripe webhooks. It validates the webhook signature, extracts relevant information from the Stripe event (specifically from the Checkout Session), and processes the event when a checkout session is completed. The order status and associated products are updated in the database accordingly. The route returns a 200 response to indicate successful processing of the webhook.


scope based upsert or delete

When an index is defined, one can specify a scope. This scope is used to obtain records on initial indexing (ts:index) but is not respected by the model callbacks.
With this additional method one can easily implement ActiveRecord callbacks e.g.
    after_commit :index_object

    def index_object
      ThinkingSphinx::Processor.new(instance: instance).stage
    end

A little bit more efficient (preventing a database roundtrip on deletes
    after_commit :index_object, :on => %i(create update)
    after_commit :deindex_object, :on => :destroy

    def index_object
      ThinkingSphinx::Processor.new(instance: self).stage
    end

    def deindex_object
      ThinkingSphinx::Processor.new(instance: self).delete
    end

If certain models never use scopes for their indices, then #upsert can be called instead of #stage to avoid database roundtrips.
While on it, example background processing of indexing operations e.g.
    after_commit :index_object

    def index_object
      ThinkingIndexationWorker.perform_later(self.class, id) # call #stage in worker
    end

fixes #1253
complements #1216 and #1215

Not sure why test / manticore (2.7, 5_2, mysql2, 6.0.0, manticore) (pull_request)  failed. I don't see any change related to it and the postgres variant pass. Maybe just rerun it?

Thanks @akostadinov - I've rebased this to resolve the build failures (not your fault!), renamed the method from stage to sync, and merged it in. Hoping to get a release of the gem out this evening 🤞🏻


Revision of workflow configuration and submit_data_from_external.py application

The configuration updates of PR #351 requires to revise both the workflow description module simtools/util/workflow_description.py and the submit_data_from_external.py application.
This was intended to be a small change, but unfortunately things were more complicated (and I changed things which should be a separate pull request):

change of all dictionary keywords of workflows to lower case (note that this led to unforeseen conflicts; e.g. TELESCOPE:TYPE was interpreted as a variable type)

internally gammasim-tools is working only with lower case keys
all yaml files written to disk use upper case KEYS.

AE fixes (organisation vs organization)
add reading of CTASIMPIPE:CONFIGURATION in workflow configuration file by configuration class
remove code using workflow_description from applications/derive_mirror_rnda.py (not needed anymore after configuration updates)
started consistent using of labels in applications (needs to be propagated to all applications, see issue #375)
simplification of configuration keys by removing ‘_files’ (e.g. —input_meta instead of —input_meta_file)
alignment of yaml keys in input metadata file examples and configuration class (requires update of example file MLTdata-preproduction.usermeta.yml used in test_application)
added (modified) example files for testing applications/submit_data_from_external.py to tests/resources (MLTdata-preproduction.ecsv, MLTdata-preproduction.meta.yml); this simplifies development and testing (instead of downloading the files from the DB)
several consistency updates (e.g., snake_case for configuration parameters)

Questions (not necessarily needed to answered with this PR):

in ./simtools/util/validate_schema.py (line 107): 'type' is used for data types (str) and for telescope types (dict). At this point, it is distinguished by str vs dict. Should we use any keyword for the variable type? e.g., var_type?
workflow configuration (simtools/util/workflow_description.py) and configuration from command line (configuration.py) is very confusing and I am getting constantly confused. We haven named the class already before WorkflowDescription, and it would make sense to change the wording consistently in the code. The main issue is that this actually might be a misnomer: it is not the description of a workflow but of one step in a workflow. So maybe we should come up with a different name.

Codecov Report

Merging #370 (1df554b) into master (99e28c0) will increase coverage by 0.87%.
The diff coverage is 88.64%.

@@            Coverage Diff             @@
##           master     #370      +/-   ##
==========================================
+ Coverage   77.26%   78.13%   +0.87%
==========================================
  Files          67       67
  Lines        6535     6594      +59
==========================================
+ Hits         5049     5152     +103
+ Misses       1486     1442      -44

Impacted Files
Coverage Δ

simtools/simtel/simtel_config_writer.py
85.89% <ø> (ø)

simtools/simtel/simtel_histograms.py
87.12% <ø> (ø)

simtools/util/data_model.py
100.00% <ø> (ø)

simtools/util/validate_data.py
72.59% <ø> (ø)

simtools/simtel/simtel_runner_ray_tracing.py
14.28% <20.00%> (-0.15%)
:arrow_down:

simtools/util/general.py
75.21% <60.00%> (-3.58%)
:arrow_down:

simtools/db_handler.py
73.98% <66.66%> (-0.72%)
:arrow_down:

simtools/configuration.py
75.00% <75.00%> (ø)

simtools/model/telescope_model.py
77.27% <82.35%> (+0.07%)
:arrow_up:

simtools/util/commandline_parser.py
86.88% <83.33%> (+28.26%)
:arrow_up:

... and 41 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

I think I've address all your comments, with the exception of the issue of moving test files into tests/resources from the DB. It makes the development easier, plus allows for better documentation. These are good reasons to do it, or?

Yes, I don't mind having the files in the test/resources directory, but then we need to modify test_applications as well. Also, you should probably remove the exception we don't understand, as you suggested.

I've added now a comment to the exceptions to make clear when it is passed.

OK, I am approving the PR and when the test passes we can merge.


Bug with callback period?

Hi, I am using Arduino DueTimer in a school project but is having a problem. I use the interrupt created from a timer, however myHandler does have a lot of operations and this produce a bug I think. The bug is that the interrupt callback is called with a period time less then the given. I send an example when the callback function does have a delay in it to demonstrate the error. Note that the delay is much smaller then the interrupt period.
Would be realy grateful if you could look at this bug or explain for me why its not working as I think it would.
link:
https://drive.google.com/file/d/0B4hLj0ggOnuZaC1XR2tfcmV1WkU/view?usp=sharing
Best regards,
Alexander Andersson

solved in email =)

Hello,
I have this same issue. I just downloaded the master and was testing it. Wondering if you already updated the master?

You cannot use delay() inside interrupt handlers, because the delay function is basically a timer counter. When you wait inside a interrupt handler, you are basically waiting for the delay counter to increase, however, that won't happen because you are already in the interrupt.
To solve that, use delayMicroseconds(...) instead of delay(...)


[SPARK-30320][SQL] Fix insert overwrite to DataSource table with dynamic partition error

What changes were proposed in this pull request?
This PR fix insert overwrite table error when running multiple speculative task. This PR introduces task attempt id appended to dynamic partition staging dir to identify different speculative task output dir rather than all speculative tasks use same output dir. CommitTask in HadoopMapReduceCommitProtocol carries attempt id in TaskCommitMessage
Why are the changes needed?
This PR fix insert overwrite to DataSource table with dynamic partition error when running multiple task attempts. Suppose there are one task attempt and one speculative task attempt, the speculative would raise FileAlreadyExistsException because of same staging dir attempt tasks commit
Does this PR introduce any user-facing change?
How was this patch tested?
Added UT

Can one of the admins verify this patch?

@xuanyuanking @LuciferYang @LinhongLiu pls have a review

Can one of the admins verify this patch?

cc @cloud-fan

cc @dongjoon-hyun  please have a review?

@WinkerDu  I think the same issue is being worked upon in the PR for the ticket. https://issues.apache.org/jira/browse/SPARK-27194
https://github.com/apache/spark/pull/26339
Please validate


Correction for raw affiliation Department of Neonatology, University Hospital of Rennes, 35000, Rennes; Department of Obstetrics and Gynecology, University Hospital of Rennes, 35000, Rennes, France.; Le Breton Department of Obstetrics and Gynecology, University Hospital of Rennes, 35000, Rennes, France.; Mathilde Yverneau University of Rennes, CHU Rennes, CIC Inserm 1414, F-35000, Rennes; University of Rennes, CHU Rennes, CIC Inserm 1414, F-35000, Rennes

Correction needed for raw affiliation Department of Neonatology, University Hospital of Rennes, 35000, Rennes; Department of Obstetrics and Gynecology, University Hospital of Rennes, 35000, Rennes, France.; Le Breton Department of Obstetrics and Gynecology, University Hospital of Rennes, 35000, Rennes, France.; Mathilde Yverneau University of Rennes, CHU Rennes, CIC Inserm 1414, F-35000, Rennes; University of Rennes, CHU Rennes, CIC Inserm 1414, F-35000, Rennes
raw_affiliation_name: Department of Neonatology, University Hospital of Rennes, 35000, Rennes; Department of Obstetrics and Gynecology, University Hospital of Rennes, 35000, Rennes, France.; Le Breton Department of Obstetrics and Gynecology, University Hospital of Rennes, 35000, Rennes, France.; Mathilde Yverneau University of Rennes, CHU Rennes, CIC Inserm 1414, F-35000, Rennes; University of Rennes, CHU Rennes, CIC Inserm 1414, F-35000, Rennes
new_rors: 05qec5a53;015m7wh34;02vjkv261;02baj6743
previous_rors: 05qec5a53;015m7wh34;02vjkv261
works_examples: W4361995053
contact: 1ff0996151e920cddd5ec3ba8de6dd17:49365a14e6c1db1919774d9a7e8c88ea @ univ-rennes.fr

This issue was accepted and ingested by the OpenAlex team on 2024-10-10. The new affiliations should be visible within the next 7 days.


Copyright

Dear all,
our copyright is inconsistent between the PyPi entry (1990-2017) and our documentation (2015-2016). Especially the latter is a bit outdated :wink:
Does anyone really know how this is properly handled?
Cheers,
Lukas

There is no copyright year for typhon on PyPi. The 1990-2017 at the bottom of the page is the copyright of PyPi itself.
In our documentation we should just bump the year number.

'Bump' actually means incrementing the number, not removing it. But I'm also fine with removing it. I don't think removing it has any negative impact.

Oh sorry, I forgot to comment on my commit...
I googled a bit while and removing seems to be the most convenient
solution. The copyright is not affected at all
Am 29.09.2017 19:20 schrieb "Oliver Lemke"<EMAIL_ADDRESS>
'Bump' actually means incrementing the number, not removing it. But I'm
also fine with removing it. I don't think removing it has any negative
impact.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/atmtools/typhon/issues/18#issuecomment-333185972, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJCv6kw1UmLV6khbgeqve42b-Dj7MOuOks5snSbagaJpZM4PlR4p
.


pip3 install missing inverse_folding

NOTE: if this is not a bug report, please use the GitHub Discussions for support questions (How do I do X?), feature requests, ideas, showcasing new applications, etc.
Bug description
When I use pip3 install as per ESM Inverse Folding notebook, esm is missing inverse_folding
Reproduction steps
Enter steps to reproduce the behavior.
pip3 install git+https://github.com/facebookresearch/esm.git
python3

import esm
from esm import inverse_folding
Expected behavior
Give a clear and concise description of what you expected to happen.
ideally, the package should import without error

Logs
OSError: libcudart.so.10.2: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "/ext3/miniconda3/lib/python3.9/site-packages/fair_esm-0.4.2-py3.9.egg/esm/inverse_folding/__init__.py", line 6, in <module>
    from . import gvp_transformer
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "/ext3/miniconda3/lib/python3.9/site-packages/fair_esm-0.4.2-py3.9.egg/esm/inverse_folding/gvp_transformer.py", line 16, in <module>
    from .features import DihedralFeatures
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "/ext3/miniconda3/lib/python3.9/site-packages/fair_esm-0.4.2-py3.9.egg/esm/inverse_folding/features.py", line 24, in <module>
    from .gvp_modules import GVP, LayerNorm
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
  File "<frozen zipimport>", line 259, in load_module
  File "/ext3/miniconda3/lib/python3.9/site-packages/fair_esm-0.4.2-py3.9.egg/esm/inverse_folding/gvp_modules.py", line 17, in <module>
    from torch_geometric.nn import MessagePassing
  File "/ext3/miniconda3/lib/python3.9/site-packages/torch_geometric/__init__.py", line 4, in <module>
    import torch_geometric.data
  File "/ext3/miniconda3/lib/python3.9/site-packages/torch_geometric/data/__init__.py", line 1, in <module>
    from .data import Data
  File "/ext3/miniconda3/lib/python3.9/site-packages/torch_geometric/data/data.py", line 9, in <module>
    from torch_sparse import SparseTensor
  File "/ext3/miniconda3/lib/python3.9/site-packages/torch_sparse/__init__.py", line 19, in <module>
    torch.ops.load_library(spec.origin)
  File "/ext3/miniconda3/lib/python3.9/site-packages/torch/_ops.py", line 220, in load_library
    ctypes.CDLL(path)
  File "/ext3/miniconda3/lib/python3.9/ctypes/__init__.py", line 382, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libcudart.so.10.2: cannot open shared object file: No such file or directory

Additional context
I am in a SLURM Cluster running torch-1.11.0+cu102. the code is running in a conda environment within a singularity instance

The error indicates the issue is deeper in your stack, torch is not able to find the correct cuda library to link against.
I strongly suspect you'll get the same error if you just try to access torch.cuda.device(0)
From your comment torch-1.11.0+cu102 the solution may just be to get cuda 10.2 on your LD_LIBRARY_PATH. Depending on your cluster environment and its interaction with singularity, it may be something like module load cuda/10.2

Thank you for the help! esm is (mostly) working now!

good to hear! marking this as closed now


Dropdown fix

Should have named this DES-58

I hope I'm correct with the URLs at the bottom, I thought they needed to point to origami but now I'm not sure. It runs locally as is.


[proposal] refactor aliases for subcharts

Some background:
I'm having one umbrella chart to manage a "complete deployment". Where instead of a requirements file, I'm using symlinked subcharts (feature merged in https://github.com/kubernetes/helm/pull/3113). This lets me group all my different services into charts where everything is still hosted within the same repository without any external dependency management. Each subchart has its values populated by the umbrella values file, for example:
serviceA:
  foo: bar
serviceB:
  bar: foo

Use case:
Now I need to deploy one of the services multiple times with slightly different values. Since all my subcharts are already symlinks, I figured why not just create another symlink to the same chart but with a different name. This way I can create the different configurations without having to change the subchart itself.
Example:
ls -l charts/
groupA-kafka -> ../../charts/kafka
groupB-kafka -> ../../charts/kafka

groupA-kafka:
  foo: bar
groupB-kafka:
  bar: foo

Problem:
It seems that when trying to override the values from the umbrella chart, the key needs to match the .Chart.Name, not the path dirname. This makes it impossible to do it like this without first making a real copy and editing the Chart.yaml in each.
Proposal alternatives:

Refactor requirements alias directive to be separate from requirements dependency loading code (maybe a helmalias file?)

Base the values keys on path dirname instead of chart name.

Implement https://github.com/kubernetes/helm/issues/3221 and use requirements for local charts dir, which would hopefully allow using alias without a fully fledged dependency work flow

@technosophos do you mean using subdirectory in the charts directory?
I tried something like this:
├── blue-green
│   ├── charts
│   │   ├── blue
│   │   │   └── app -> ../../../app
│   │   ├── green
│   │   │   └── app -> ../../../app
│   │   └── commons -> ../../commons
│   ├── Chart.yaml

But helm tells me:
ERROR] templates/: error unpacking blue in blue-green: chart metadata (Chart.yaml) missing


[TypeSpec Validation] tsv folder path standardization

closes #26546

tsv . will only work when it's in the correct spec folder. Since the tsv tool is intended to run on spec folders and not finding specs recursivley.


Multiple upload with encoding only posts one file

Summary
It seems only 1 file is uploaded after using the encode-plugin, whilst I selected 2 files.
How to reproduce
<input type="file" class="filepond" name="filepond" multiple>

<script src="https://unpkg.com/filepond-plugin-file-encode/dist/filepond-plugin-file-encode.js"></script>
<script src="https://unpkg.com/filepond/dist/filepond.js"></script>
<script>
    FilePond.registerPlugin(
        // encodes files as base64 (needed for regular form post)
        FilePondPluginFileEncode
    );

    const inputElement = document.querySelector('.filepond');
    const pond = FilePond.create(inputElement, {
        allowMultiple: true,
        allowFileEncode: true,
        name: "filePond"
    });
</script>

Expected behaviour
The JSON string that was posted only contains an object with 1 file in there. I would expect a JSON array notation with 2 files.
Additional information
Processing the JSON string is done using .NET MVC. I receive the posted data as a string and use the Newtonsoft.Json library to deserialize the string into a POCO class.

Environment
Version

OS
Windows

Browser
Chrome 67

Does setting the name to "filepond[]" fix this?

Hi. Thanks for the quick reply. I tried that, using a closed issue as inspiration, but I've got the same result unfortunately. The input element looks like this...
<input type="file" class="filepond" name="filepond[]" multiple>

But after the post, it only shows 1 file and the hidden field contains the following after the upload of the 2 files (also, logically, containing the 1 json object).
<input type="hidden" name="filepond[]" value="{"id":"a0ol7j4ls","name":"FILENAME","type":"text/html","size":1791,"metadata":{},"data":"BASE64NOTATION"}">

Alright thanks, will look into this further tomorrow morning

I've just run a quick test, it seems to work on my local development environment where I test against a scotch box PHP server.
FilePond creates two hidden inputs, one for each file, each with the name of the original input element "filepond[]", values are set correctly, see below with two small text files.

Then when pressing the submit button and inspecting the post request I can see both fields being sent:

PHP is able to pick this up and successfully receives the files.
Could this be a problem with .Net not being able to handle fields with same name? I did a quick google search but it seems to be able to handle it when using the right methods:
https://stackoverflow.com/questions/437955/submitting-form-elements-with-the-same-name

You're completely correct. I must have missed the second hidden field (thinking it would have been a JSON array instead of 2 separate objects). Passing those to .NET is easy as the receiving model contains a List property, meaning both objects will be passed to the server where I can use the JSON library to deserialize the objects into a dto and continue from there.
Sorry for wasting your time and thanks again for the extra information, providing this library and I'll be using it for my future projects.

No problem @KevinCocquyt39, glad to hear it's working and good to know that this setup is easy to link to .Net as well.

Sorry guys but i am also experiencing the same issue as the other gentleman, i am not getting an encoded string, i am in laravel

I'm having the same issues too and it works on my local host. I was able to upload three images but the live server only stores one image


powershell frozen / not responding

Hi!
I'm running the "Remove bloatware with custom blocklist" from the GUI.psi script and after an hour it's still not responding.
I'm aware that the process can take a while and if that's the reason then never mind this, but if it's not, which I'm starting to suspect, then I'd like to know how long this usually takes. Just so I know if I should abort and retry.
Thanks for hearing me out.

thanks guys. I restated it and it happened a few more times, but in the end it got the job done. It seems like it was struggling with Cortana.

That's most likely due to the fact that the script doesn't remove standalone Cortana app from 2004 and up, yet.
Sent from ProtonMail mobile
-------- Original Message --------
On 13 May 2021, 20:19, nogetrandom wrote:

thanks guys. I restated it and it happened a few more times, but in the end it got the job done. It seems like it was struggling with Cortana.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.


[🐛 Bug]: _not-found invalid route gets ignored

We delete invalid _not-found routes that an application can generate (source code) this is needed as invalid _not-found routes can get generated by the App Router, and our hack works well in such scenario.
This is however not ideal when the Pages Route is used instead as users could have an invalid _not-found route and the next-on-pages build process would just delete that instead of failing likely generating the application only partially.
There are a few questions regarding this that I have in mind:

the Pages Router uses a different convention for custom not found pages (and always generates static 404 pages), so having developers use the Pages Router and have an invalid route that just so happen to match the App Route output route name feels very unlikely, so is this worth worrying about?
the Vercel output that we use does not provide an indication as to whether the App Router or Pages Router is used, should we try to add something for that? (that would allow us here to tweak our logic and handle such invalid routes differently based on the Router used, it could also be used in other circumstances in which App and Pages can have different/conflicting behaviors)
we already discourage the use of the Pages Router and it is not the recommended one in any case, maybe we should just straight out say that we don't support it and just implement things catering only for the App Router behavior? (maybe in the next major release of next-on-pages?)

Such issue has also been made slightly worse by the changes discussed here: https://github.com/cloudflare/next-on-pages/pull/517#discussion_r1374451984
But more or less the notes above still stand, it feels quite unlikely for developers to use such names :confused: :thinking:


rev roundend shows converted count

About the PR
title
Why / Balance
good
Technical details
made title logic in objectives system public as GetTitle
Media

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes
no
Changelog
:cl:

tweak: When Revolution rounds end each headrev has their number of converted people shown.

can we also get conversion rate similar to zombies

lazy + accounting for heads would be annoying


pattern (ytplayer.config\s*=\s*) failed: The operation couldn’t be completed. (YouTubeKit.YouTubeKitError error 1.)

Maybe I',m new but I cannot reproduce the video in my app.....has anybody experienced the same issue?

Hello @naticio, could you please provide us the video you are trying to play?
Thanks!

I'm experiencing the same problem. I'm attaching console log & html object from Extraction.swift:67
escaped-html.txt
applying descrambler
finding initial function name
Failed to decode object from given start point: The data couldn’t be read because it isn’t in the correct format.
pattern (ytplayer\.config\s*=\s*) failed: The operation couldn’t be completed.  I've tried with the testSampleVideo2 and it works with the id aayzIpzTmn0.
Could you please provide us your code?

Hello @waliid,
Oh, I can see the problem now. I have this filter in my code
let video = YouTube(videoID: entity.id)
let streams = try await video.streams
let stream = streams.filter { stream in
    stream.includesAudioTrack && stream.includesVideoTrack
}.highestResolutionStream()

The problem is that there are no streams which includes both audio and video track. This wasn't the problem before. I tried more videos but the result is always the same. Is this even fixable from your side?

Hi @kubacizek,
Could you please try this:
let stream = streams.filter { stream in
    stream.includesVideoTrack && stream.subtype == "mp4"
}.highestResolutionStream()

or this:
let stream = streams.filter { stream in
    stream.includesAudioTrack && stream.subtype == "mp3"
}.highestResolutionStream()

Thanks!

Hi @waliid,
Yes this works. But previously there was a stream that contained both video and audio. Anyway I think that I can merge this two streams into one in the code and achieve the result I need.
Thank you anyway!

it works!


release: 1.1.0  ✨

CHANGELOG

Current coverage is 90.08% (diff: 100%)

Merging #558 into master will increase coverage by 0.05%

@@             master       #558   diff @@
==========================================
  Files           176        176
  Lines          1926       1926
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           1734       1735     +1
+ Misses          192        191     -1
  Partials          0          0

Powered by Codecov. Last update 3f15362...239fc07


Integration with MySQL

Search before asking

[X] I have searched the EvaDB issues and found no similar feature requests.

Description
Similar to Postgres, add support for more databases.
Use case
No response
Are you willing to submit a PR?

[ ] Yes I'd like to help by submitting a PR!

#956 965


QUESTION: Cucumber plugin

Just wondering if there's a way to connect a Cucumber plugin (I don't like it but my client does)
I can't find any place that this has been done for this particular project, I know it's possible for Codeception.
Any thoughts?

Yes, it was done for Codeception. Unfortunately, I don't have much time to implement that for CodeceptJS.Sure, it's somewhere in roadmap but no estimates yet.
If your client would like to sponsor the development of such plugin I can make it in a week or less 😉

That option is on the table now :) Let's see how it moves.
Our second option is to collaborate to your framework. As it could be a great feature, any advise on where to start investigating could be very helpful.
Let you know how it goes!
Thanks !

Our second option is to collaborate to your framework. As it could be a great feature, any advise on where to start investigating could be very helpful.

Sure, just ask! We are at Slack https://join.slack.com/t/codeceptjs/shared_invite/enQtMzA5OTM4NDM2MzA4LTNiMTE5YzNlMjQyNWYwZjAzODE3ZTI1MmVkYjY0YTYyNDZmMWJjM2VlODg3NTQzYzM2OGE5ZmIwODFjODk1MzI
Join and I will provide you as much information as you need to get this implemented!

Interested in possibly pursuing the sponsorship option, what's the best way to get hold of you via email?


RTX3080 install RuntimeError: CUDA runtime implicit initialization on GPU:0 failed. Status: device kernel image is invalid

System information
ubuntu18.04.5 LTS
GeForce RTX 3080
NVIDIA driver 455.23.04 + CUDA10.1 + Cudnn7.6.5
Anaconda3
envs: tensorflow-gpu==2.3.1
Describe the problem
import tensorflow as tf
tf.test.is_gpu_available()

...
2020-10-01 17:18:08.728031: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1858] Adding visible gpu devices: 0, 1
2020-10-01 17:18:08.728126: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
Traceback (most recent call last):
File "", line 1, in
File "/home/librazxc/.conda/envs/tf23/lib/python3.7/site-packages/tensorflow/python/util/deprecation.py", line 324, in new_func
return func(*args, **kwargs)
File "/home/librazxc/.conda/envs/tf23/lib/python3.7/site-packages/tensorflow/python/framework/test_util.py", line 1563, in is_gpu_available
for local_device in device_lib.list_local_devices():
File "/home/librazxc/.conda/envs/tf23/lib/python3.7/site-packages/tensorflow/python/client/device_lib.py", line 43, in list_local_devices
_convert(s) for s in _pywrap_device_lib.list_devices(serialized_config)
RuntimeError: CUDA runtime implicit initialization on GPU:0 failed. Status: device kernel image is invalid

Any other info / logs
tensorflow-gpu==2.2 or 2.1 is work well

@PureHing
Please refer this issue and let us know if it helps: #43588

@Saduf2019 it cannot help me.

@PureHing
Could you please try this once and let us know : link

Have same issue with 3090

@PureHing
Could you please try this once and let us know : link and this link1

are you suggesting we should go with cuda 11 and give it a try?

Same issue for 3090: issue here: https://github.com/tensorflow/tensorflow/issues/43718

@PureHing
Could you Please update.

3080 and 3090 does not work with CUDA 10.
You have to use CUDA 11.0 or higher.
Right now, the only way to do so is by installing tf-nightly or building yourself.

Please refer to this link and move the issue to closed status if resolved.

@Saduf2019 Tensorflow can be used depending on the following environment:
ubuntu18.04.5 LTS
GeForce RTX 3080*2
NVIDIA driver 455.23.04 + CUDA11.1 + Cudnn8.0.4
Anaconda3
envs: tf-nightly-gpu==2.4.0-dev20201008

@PureHing Looks like this is a know issue with GeForce RTX. Similar issues was reported in this issue. Please check some of the workarounds and root-causes that could help you resolve your issue. Thanks!

I also have this issue and I am using RTX 3070.
I followed @jaentrouble instruction to use tf.nightly builds and it works perfectly after that.

I am using RTX 3080, ubuntu 20.04, kernel <IP_ADDRESS>
I find something ...
if CUDA ==11.0:
    if tensorflow < 2.3:
        if cudnn == 8.x:
            tensorflow error: can't find so.7
        elif cudnn == 7.x:
            tensorflow raise: Your CUDA software stack is old.(GPU not working for DL job.)

Now, I am trying to change the Nvidia driver version to 11.2.

I am using RTX 3080, ubuntu 20.04, kernel <IP_ADDRESS>
I find something ...
if CUDA ==11.0:
    if tensorflow < 2.3:
        if cudnn == 8.x:
            tensorflow error: can't find so.7
        elif cudnn == 7.x:
            tensorflow raise: Your CUDA software stack is old.(GPU not working for DL job.)

Now, I am trying to change the Nvidia driver version to 11.2.

@IMYin
Please change TensorFlow to version 2.5.0-dev. it works for me!

@IMYin
Please change TensorFlow to version 2.5.0-dev. it works for me!


更改mock注释

Types of changes

[ ] New feature
[ ] Bug fix
[x] Documentation change
[ ] Coding style change
[ ] Refactoring
[ ] Performance improvement
[ ] Test cases
[ ] Continuous integration
[ ] Typescript definition change
[ ] Breaking change

Background and context

Solution

How is the change tested?

Changelog

Changelog(CN)
Changelog(EN)
Related issues

Checklist:

[ ] Provide changelog for relevant changes (e.g. bug fixes and new features) if applicable.
[ ] Changes are submitted to the appropriate branch (e.g. features should be submitted to feature branch and others should be submitted to master branch)

Other information

@Mran 谢谢 pr 。commit message 请遵循规范哈。