ARTEMIS-1074 Acceptors/Connectors now start up when configured to use SSL and a password codec

-Updates the NettyConnector and NettyAcceptor classes to pass in the password codec property as an argument into the ConfigurationHelper:getPasswordProperty() method when initializing the keystore and truststore passwords.
-When using the default password codec, passwords are required to be encrypted. If an unencrypted password was passed into the decode method, then an exception would get thrown that doesn't explain to the user nicely what really went wrong. Fixed this issue to throw a new IllegalArgumentException with a message saying the password must be encrypted if an invalid password is passed in.
Related ticket: https://issues.apache.org/jira/browse/ARTEMIS-1074

Could we put up a PR to merge this fix into the 1.X branch?

Sure.  If u could use git cheepick -x please.


chore: test action

Coverage remained the same at 100.0% when pulling a223dc563daff896886d884fb0aa88a1a879eece on testGithubAction into d881b8ca2cdf9dcbbfbb27ffa2250dac77e1407c on master.


Add PivotService

// Default saves data in MemoryService
app.services['user:subscriptions'] = new relations.PivotService('api/subscriptions', 'api/users', inner: new MongoService(db.collection('user:subscriptions')));

// These should be declared as name, but will throw an error if not specified
//
// Can also have localKey: id, foreignKey: userId
service.afterAll(relations.resolvePivot(as: 'subscriptions', pivot: 'user:subscriptions'));

Closed in favor of https://github.com/angel-dart/relations/issues/1.


Edge health

Only report health status for the edge plugin if it is enabled.
Also bring back the edge PageSize config option because the discovery service still includes it in its responses.
It needs to be removed there first.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>3
Details

0 of 4 (0.0%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.006%) to 28.27%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

plugins/edge/factory.go
0
4
0.0%

Files with Coverage Reduction
New Missed Lines
%

plugins/edge/factory.go
1
19.44%

Totals

Change from base Build<PHONE_NUMBER>6:
-0.006%

Covered Lines:
1314

Relevant Lines:
4648

💛  - Coveralls


[ Customer ] Eton project planning

https://docs.google.com/spreadsheets/d/1Y7YA03IwnKVgXM-qbM_2VKwr2ZfELTVP-6hPzGE0PAU/edit?gid=0#gid=0


Displayed balance & available balance DOES NOT match the pop-up window's balance which is actually what's transactable

Wallet ID: SP3.........X20
Browser: Microsoft Edge
Hiro wallet version: v2.19.4
Issue:

I am supposed to have around 373stx in the wallet that is available to spend in theory, that's what's displayed. But when I actually transact anything, the pop up confirmation window says a different amount, only 162stx available.
There is about 211stx difference that I am supposed to have, but aren't able to spend for whatever reason..
so say if I wanna make a 350stx NFT transaction right now, tho my wallet says I have 373stx available, IT WILL FAIL. (I failed to buy an NFT due to this issue last week, I had 460stx in the wallet displayed, made a 450stx purchased, but it failed. :/ )
Explorer also says the balance available matching what's displayed in Hiro wallet.

someone help?!
Thank you team, love u!

@Hero-Gamer is this safe to close out given your latest check matches?

@Hero-Gamer is this safe to close out given your latest check matches?

Yes I think so, somehow.


Remove Provider.newInstance(...).

newInstance was replaced by Provider.createInstance, which was designed to work
with shading and Android.  This is part of
https://github.com/census-instrumentation/opencensus-java/issues/151 .
/cc @dinooliva @bogdandrutu

Codecov Report

Merging #473 into master will increase coverage by 0.12%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #473      +/-   ##
============================================
+ Coverage     90.29%   90.42%   +0.12%
+ Complexity      587      585       -2
============================================
  Files           106      106
  Lines          2205     2193      -12
  Branches        210      209       -1
============================================
- Hits           1991     1983       -8
+ Misses          157      153       -4
  Partials         57       57

Impacted Files
Coverage Δ
Complexity Δ

...src/main/java/io/opencensus/internal/Provider.java
58.33% <ø> (-4.17%)
3 <0> (-2)

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 5dd97df...357611a. Read the comment docs.


Curl Issue - HTTP 417 error

Quick one, issue and fix. I was getting this error from curl.
Expectation Failed
The expectation given in the Expect request-header
field could not be met by this server.
The client sent
Expect: 100-continue

Only the 100-continue expectation is supported.
The quick fix was to add this to your code (line 454 of Client PHP)
      $headers = array(
            'User-Agent' => $client_string,
            'X-Sentry-Auth' => $this->get_auth_header(
                $timestamp, $client_string, $this->public_key,
                $this->secret_key),
            'Content-Type' => 'application/octet-stream',
            'Expect'=>''
        );

Looks like this could be a configuration issue than an issue with this library.
Closing this issue because it is quite old, if there is still a problem please open a new issue.


Merge website source into master

Addresses #369
Sorry, this is a large PR!
The website source has been evolving in a separate branch, website-rc. This PR will merge in into master to simplify tracking documentation updates and enable automated publishing of updates to the website to ensure the website stays in sync with the latest docs.
This PR has been rebased against the latest master to minimize merge conflicts.
Additionally, this PR contains several markdown corrections to ensure jekyll transformation from markdown to HTML works correctly. The biggest issue in current markdown formatting concerns source code blocks without adequate blank lines before and after and incorrect indention when included in unordered and ordered lists.
There are still a few outstanding issues to address on website updates and are not in scope in this PR:

templating the current release version in documents that reference it (for example, when providing directions on how to clone the repository or download released assets).
addressing relative paths in root level documents when they are rendered along side the other docs from the docs directory (for example, README.md, CONTRIBUTING.md, and CODE_OF_CONDUCT.md -- we currently create copies of these docs and update the paths by hand, all other docs are symbolically linked).
enabling per version freeze of documents for historical reference (this will come in a follow-up PR soon). We need to script a hook that copies the current documents into a release specific directory for a release.

We've created symbolic links in the site directory to all markdown docs in /docs. We created symbolic links to the child directories of /docs (we needed to copy in the root docs for rendering so couldn't just symbolic link the entire /docs directory.

Do you have a script to generate the symbol links to docs? Maybe also merge the script if it is not included.

No script for symbolically linking yet. I should write one and include in the PR.

@jianjuns Are there any concerns with contributors editing docs on non-windows machines? Since they are not editing the site directory directly (where the symbolic links are), I didn't foresee an issue. Would like your thoughts since support of symbolic links varies by OS.

@jianjuns Are there any concerns with contributors editing docs on non-windows machines? Since they are not editing the site directory directly (where the symbolic links are), I didn't foresee an issue. Would like your thoughts since support of symbolic links varies by OS.

At least in Linux and MAC there should be no issue I think.


Getting Http Error, SocketException: OS Error: No route to host, errno = 113

@Robert3141
Hi, want to ask about this error.
I keep getting this error, even though the devices already connected in the same Wifi AP.
Any clue on this error?
Log in the server when scan clients:
I/flutter (30918): Broadcasting to <IP_ADDRESS>: {"host":"<IP_ADDRESS>", "port": "8084", "name": "server", "title": "client_connect", "payload": "null", "to": "null"}

Log in the client:
Recieved connection request from Client <IP_ADDRESS>:8084
I/flutter (29315): ----sending {"host":"<IP_ADDRESS>", "port": "8084", "name": "client", "title": "client_connect", "payload": "null", "to": "null"}
I/flutter (29315): 💢 Http error with no response: DioError [DioErrorType.DEFAULT]: SocketException: OS Error: No route to host, errno = 113, address = <IP_ADDRESS>, port = 41256
I/flutter (29315): 🔔 Error sending the info response: no response

Yeah this is a clone of issue #5 . I am struggling to figure out how it happened. It's as if the device is only able to send data. I'll update the package dio and see if this fixes the problem as this is a problem with one of my dependencies

I figured out something related to this problem. So the error showing when the devices connected to "Normal Router". But when I using another mobile phone as AP (in this case, I tried using 2 different Android Phone as a Hotspot), the broadcasting is works smoothly.
Here is my success log by using other Android phone as an AP:
**Server Device**
I/flutter (18424): host = <IP_ADDRESS> <IP_ADDRESS> <IP_ADDRESS>
I/flutter (18424): Received: Initializing server at <IP_ADDRESS>:8084
I/flutter (18424): Received: 🎬 Server initialized at <IP_ADDRESS>:8084
I/flutter (18424): Received: Starting server
I/flutter (18424): Intializing for discovery on <IP_ADDRESS>:8084
I/flutter (18424): Received: 🏁 Server started at <IP_ADDRESS>:8084
I/flutter (18424): Socket is ready at <IP_ADDRESS>:9104
I/flutter (18424): 🆗 Node is ready
I/flutter (18424): Broadcasting to <IP_ADDRESS>: {"host":"<IP_ADDRESS>", "port": "8084", "name": "server", "title": "client_connect", "payload": "null", "to": "null"}
I/flutter (18424): ----received {"host":"<IP_ADDRESS>", "port": "8084", "name": "client", "title": "client_connect", "payload": "null", "to": "null"}
I/flutter (18424): 📢 Client client connected at <IP_ADDRESS>:8084
I/flutter (18424): <- Sending data jjjj to <IP_ADDRESS>:8084
I/flutter (18424): ----sending {"host":"<IP_ADDRESS>", "port": "8084", "name": "server", "title": "userInfo", "payload": "jjjj", "to": "null"}
I/flutter (18424): ----received {"host":"<IP_ADDRESS>", "port": "8084", "name": "client", "title": "userInfo", "payload": "iii", "to": "null"}
I/flutter (18424): 💼 Recieved Packet: client : iii
I/flutter (18424): <- Sending data jjjjhhh to <IP_ADDRESS>:8084
I/flutter (18424): ----sending {"host":"<IP_ADDRESS>", "port": "8084", "name": "server", "title": "userInfo", "payload": "jjjjhhh", "to": "null"}
I/flutter (18424): ----received {"host":"<IP_ADDRESS>", "port": "8084", "name": "client", "title": "userInfo", "payload": "iiiook", "to": "null"}
I/flutter (18424): 💼 Recieved Packet: client : iiiook

**Client Device**
I/flutter ( 1598): host = <IP_ADDRESS> <IP_ADDRESS> <IP_ADDRESS>
I/flutter ( 1598): Received: Initializing server at <IP_ADDRESS>:8084
I/flutter ( 1598): Received: 🎬 Server initialized at <IP_ADDRESS>:8084
I/flutter ( 1598): Received: Starting server
I/flutter ( 1598): Intializing for discovery on <IP_ADDRESS>:8084
I/flutter ( 1598): Received: 🏁 Server started at <IP_ADDRESS>:8084
I/flutter ( 1598): Socket is ready at <IP_ADDRESS>:9104
I/flutter ( 1598): Listening on socket <IP_ADDRESS>:9104
I/flutter ( 1598): 🆗 Node is ready
I/flutter ( 1598): Recieved connection request from Client <IP_ADDRESS>:8084
I/flutter ( 1598): ----sending {"host":"<IP_ADDRESS>", "port": "8084", "name": "client", "title": "client_connect", "payload": "null", "to": "null"}
I/flutter ( 1598): ----received {"host":"<IP_ADDRESS>", "port": "8084", "name": "server", "title": "userInfo", "payload": "jjjj", "to": "null"}
I/flutter ( 1598): 💼 Recieved Packet: server : jjjj
D/QuickpanelHelper( 1598): mUpdateSettings connect cost:2
D/QuickpanelHelper( 1598): mUpdateSettings connect cost:2
I/zygote64( 1598): Do partial code cache collection, code=28KB, data=29KB
I/zygote64( 1598): After code cache collection, code=28KB, data=29KB
I/zygote64( 1598): Increasing code cache capacity to 128KB
I/flutter ( 1598): <- Sending data iii to <IP_ADDRESS>:8084
I/flutter ( 1598): ----sending {"host":"<IP_ADDRESS>", "port": "8084", "name": "client", "title": "userInfo", "payload": "iii", "to": "null"}
I/flutter ( 1598): ----received {"host":"<IP_ADDRESS>", "port": "8084", "name": "server", "title": "userInfo", "payload": "jjjjhhh", "to": "null"}
I/flutter ( 1598): 💼 Recieved Packet: server : jjjjhhh
I/flutter ( 1598): <- Sending data iiiook to <IP_ADDRESS>:8084
I/flutter ( 1598): ----sending {"host":"<IP_ADDRESS>", "port": "8084", "name": "client", "title": "userInfo", "payload": "iiiook", "to": "null"}

Still dont know why the broadcasting is not working by using a router, but working smoothly by using android phone as AP... :confused:

It appears to be a problem with the package dio ("I think"). I've updated it in version V.2.0.1 which I've just released. Please try and test on that version. Sadly I don't fully understand the workings of this package as I ported it from NodeCommander so that it would serve my purpose. Thanks for your contributions they are greatly appreciated.

I think all is fine with dio package.. So, the whole package is fine and could works well.
We just need to make sure that the router allow udp-multicast/broadcast forwarding. But, I can talk much about networking problem since I dont have enough knowledge on that.


[Fix #482] battle prediction not updated for night battle

Fix #482
Since it's just purely copy/paste, it is an untested fix but it should work :sweat_smile:

lol i often push untested things too


Is it possible to add Google Gemini Api?

For text generation, I hope Google Gemini Api can be utilized for Amica.

Is it any good? Could be considered yeah, seems for centralised services, GPT is still the most mainstream for this kind of thing atm.


Tof-viewer: All logging is now done with GLOG

Is variable my_log still needed somewhere? Wouldn't it be better to be removed?

There is only one more usage of my_log in tof-viewer.
https://github.com/analogdevicesinc/ToF/blob/viewer_log/examples/tof-viewer/src/ADIMainWindow.cpp#L1072


quote Windows arguments based on delimeters

Only quotes arguments on Windows when they contain argument delimiters.
resolves #459

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

@bahmutov I'm not sure who owns this repo. The PRs look pretty backed up, and this Windows issue is blocking my project, so @ in hopes this reaches a maintainer.

I feel the pain, but I will leave it to the Cypress team to verify the solution and release it


Bug fix

Fixed the bug where addresses wouldn't populate the start and end field after the first time.

Hey, don't close this yet.
I discovered a new bug.

Okay. This bug fix should be good to go now.


classpath doesnt open

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

VS Code Version:
OS Version:

Steps to Reproduce:

do ctrl +shift + p
java: Configure Classpath

/extJava

It looks like this is caused by the Java extension. Please file the issue to the Java extension repository. Make sure to check their troubleshooting instructions and provide relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.
Happy Coding!


Write a TypeScript program to find area of a circle

Description
Write a TypeScript program to find area of a circle
Area of circle = π × Radius^2
Radius : 2

Area : 12.566370614359172

How to contribute

Save the solution in FindAreaOfACircle.ts file
Add FindAreaOfACircle.ts file in find-area-of-a-circle folder

!assign


Adding support for alias paths

Using tsc-alias package we are able to make use of alias paths in tsconfig.json. This way, modules written in the src directory can easily be referred to by @/path/to/file rather than possible ../../../../path/to/file.
A minor refactoring to dotenv config was also made to make use of the one-liner as per their documentation
Pull Request type
Please check the type of change your PR introduces:

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

What is the current behavior?
Currently now, if you want to use an alias path, which is standard functionality in tsconfig.json, you will be met with an error message a la Error: Cannot find module '@/routes/router'.
What is the new behavior?
You are now able to add as many alias' in tsconfig.json as you please. As an example:
{
  "compilerOptions": {
    ...
    "paths": {
      "*": ["node_modules/*", "src/types/*"],
      "@/*": ["./src/*"],
      "@routes/*": ["./src/routes/*"],
      "@database/*": ["./src/database/*"],
      "@models/*": ["./src/models/*"],
      ...
    }
  },
  "include": ["src/**/*"]
}

Does this introduce a breaking change?

[ ] Yes
[x] No

Other information
The import 'dotenv/config' is just a simpler and more elegant implementation of the already provided solution. So just syntactic sugar really.

Thank you, I added you to our acknowledgements on our Github page @imCorfitz


statistics: fix region flow calculation

What problem does this PR solve?
Region flow statistics would be inaccurate when transfer leader occurs.
What is changed and how it works?
Use time interval reported from region heartbeat to calculate flow.
Check List
Tests

Manual test

Codecov Report

Merging #1688 into master will decrease coverage by 0.11%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1688      +/-   ##
==========================================
- Coverage   76.75%   76.63%   -0.12%
==========================================
  Files         157      157
  Lines       15457    15498      +41
==========================================
+ Hits        11864    11877      +13
- Misses       2586     2599      +13
- Partials     1007     1022      +15

Impacted Files
Coverage Δ

server/core/region_option.go
83.33% <100%> (+0.5%)
:arrow_up:

server/statistics/hot_cache.go
80.47% <100%> (+0.79%)
:arrow_up:

pkg/mock/mockcluster/mockcluster.go
91.72% <100%> (+0.12%)
:arrow_up:

server/core/region.go
93.24% <100%> (+0.06%)
:arrow_up:

server/kv/etcd_kv.go
70.12% <0%> (-11.69%)
:arrow_down:

pkg/etcdutil/etcdutil.go
76.81% <0%> (-5.8%)
:arrow_down:

server/statistics/store.go
94.11% <0%> (-1.97%)
:arrow_down:

server/schedulers/balance_region.go
84.79% <0%> (-1.96%)
:arrow_down:

server/tso/tso.go
77.35% <0%> (-1.89%)
:arrow_down:

server/schedule/region_scatterer.go
83.15% <0%> (-1.63%)
:arrow_down:

... and 18 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 00ca522...8264129. Read the comment docs.


Text is backward

Text faces the wrong way: -Z instead of the Unity conventional +Z.

We've decided that "text is backward" is the a perfectly fine solution, so we won't even try to change it


persist presenters - fight against process death

Early draft on how to persist Presenters
based on #50
Background
Presenters should be able persist their state so they can reuse their state after the process has been killed. Android provides a simple API (#onSaveInstanceState()) where Bundles can be saved and restored when a new Activity instance gets created (#onCreate(saveInstanceState)). This is already possible with a few lines of code and no further library APIs are required.
The onSaveInstanceState solution has some weaknesses:

The Presenter lives longer than the Activity and can manipulate its state after onSaveInstanceState() got called. The mutated state never gets saved.
Bundle is part of the Android SDK and cannot be used in unit tests (only mocked)

Solution
As a solution the Presenter gets a public method to save its current state persistState(). The state must be returned by TiPresenter#onSavePersistentState(): byte[].
persistState() can be called at any time; when onSaveInstanceState gets called, later or earlier even when no Activity instance is available.
This triggers a TiPresenterSerializer responsible for the persistence which can be exchanged with other implementations.
Unlike Activity#onCreate() the persistanceState will not be a parameter of TiPresenter#onCreate(). This would be a breaking API change and doesn't provide any value compared to a method getPersistentState(): byte[]
The default implementation of TiPresenterSerializer will store the state in a single file per Presenter in <appfolder>/cache/TiPresenterStates/. We cannot detect when a state isn't required anymore, therefore we cannot cleanup those files properly. Some other mechanism must be applied to prevent an always increasing cache folder. I recommend a fixed cache size by deleting the oldest states like OkHttp.
TODOs

[ ] Create a TiBundle and use it instead of byte[] returned by getPersistentState() for an easy way to save primitives by key and automatically write all into one byte[]. Androids Bundle throws DeadObjectException when created after the Activity is destroyed and cannot be used. May be also a problem for #51
[ ] Implement cache cleanup
[ ] don't prefetch the persistentState at the first launch of a presenter
[ ] document all the things
[ ] make sure the default presenter serializer doesn't break unit tests

Open Questions

The default presenter serializer implementation requires a Context and cannot be statically initialized like TiConfiguration.DEFAULT right now. Maybe initialize it in a ContentProvider? Or set the default implementation from the hosting Activity/PresenterInstructor when nothing is defined in config?

@vRallev @k0shk0sh please review

A few comments to this approach

Please make this optional with an extra module. It's a rare use case and not all apps need that feature. With reflection you can find out if the default module was added and automatically setup the serializer if it's available.
I know that I recommended the TiBundle, but when I started with my implementation I noticed that it isn't required. The TiBundle would add a lot of overhead and it's annoying to work with it (all the put and get calls...). You can put this in the extra module for the default implementation, but I wouldn't put the class in the main module.
Make the serializer as transparent as possible. I don't think the presenter needs TiPresenter#onSavePersistentState(): byte[]. The serializer should handle this. Also I find getPersistentState(): byte[] unnecessary. The presenter shouldn't care about restoring its state, the serializer should do this and it's only required once after the presenter got recreated. A method protected boolean isRestored() inside the presenter could be helpful in some cases, I'll add this to my implementation. But besides this method and persistState() triggering the process nothing should be required in the presenter.
I haven't seen the DeadObjectException, yet, and I don't know how it relates to the activity. I don't think that's a problem. For the Bundle you don't need an activity (especially persisting the state in my implementation). Do you have some links?
Regarding your open question: Don't use a ContentProvider. This will add more problems IMO, especially if your app uses multiple processes. For the Context reference you could use: https://github.com/vRallev/app-context

Completely outdates after 0.8.0 release. Will keep it open for reference until a better solution was opened


Editor crashes doesn't recover after resuming Suspend - Windows 7

Tested versions
Godot 4.2.2 reproduceable
System information
Windows 7
Issue description
I use Microsoft's Desktops application to have multiple virtual desktops on Windows 7 - https://learn.microsoft.com/en-us/sysinternals/downloads/desktops
If I have godot editor running on a desktop that's not the main one when I suspend the machine, when I resume the machine, Godot will crash. It will eat 100% of one CPU core until I kill it. The application is entirely unresponsive.

If Godot is running in the main desktop, the interface breaks: https://github.com/godotengine/godot/issues/92155 but it doesn't crash.
Steps to reproduce

Start godot editor in a desktop that's not the main one
Create/resume a project (empty project is fine).
Suspend PC
Resume PC

Minimal reproduction project (MRP)
n/a

It seems to be working fine on Windows 11 on any desktop (using built-in desktop switcher). Might be related to specific GPU driver, or Windows 7 specific (most likely, sleep implementation was quite buggy in old Windows versions).

Possibly, but everything else works fine and has for years, baring occasional breaks (one or two a year?). Godot fails 100% of the time.


onClick for TextDecorations

How can I handle onClick events on TextDecorations?
TextDecorations can show hover information, but I cannot add a custom handler for onClick events.
Using onDidChangeTextEditorSelection to determine which decoration was clicked on is not a very nice solution and does not trigger the immediately.

@alexandrudima Unsure whether the editor itself supports that?


KOGITO-7309 Integration tests with PostgreSQL

JIRA: https://issues.redhat.com/browse/KOGITO-7309

Description: Added Serverless Workflow integration test with postgreSQL

@ricardozanini Many Thanks for your review, I really appreciate that. I've added your suggestions and fixes, Could you take another look here? Thanks again!

@spolti Many thanks for the review, I've added some fixes for your comment. Could you mind to take another look?

@ricardozanini @cristianonicolai @krisv Rebased, Could you mind to take a look on this one? Thanks!

Rebased and added the guide link at home

@cristianonicolai can you please take a look so we can move forward to docs review? Thanks!

@nmirasch once you rebase, I'll change the status to docs review.

@ricardozanini I think this is ready to go now

Merging this PR to create a patch PR with doc improvements.


not working

DllNotFoundException: AirarColorMap assembly: type: member:(null)
AirarManager.ProcessColoredMapTexture (UnityEngine.Texture2D srcTexture, System.Single[] src, System.Int32 height, System.Int32 width, System.Action`1[T] callback) (at Assets/ColorMapping/ColorMapping/Scripts/core/AirarManager.cs:38)
VuforiaColorMapping.Play () (at Assets/ColorMapping/ColorMapping/Scripts/core/VuforiaColorMapping.cs:40)
i am geting this issue please help me

Does the issue occur if you build with Android or iOS?
(This library does not work in the Unity editor. It only works on Android or iOS platforms.)
If this error occurs on Android,
Please make sure that the libopencv_java3.so file is also included in the
project.
And set the cpu of the libAirarColorMap.so file and libopencv_java3.so file
included in the project to 64-bit.
Or, in case of iOS, the project must include the libAirarColorMap.a file and the opencv2.framework file.

Ok thank you but in androids their is only one file which I included and
this issue still coming if you can give me a reference video to solve or
run proper it it could very helpful for me and opencv reference video how
to implement it in unity the platform is androide I am using and unity
version is 2019 and vuforia is 9.3 ...please kindly help me I am making a
ar app for deaf and dumb student for study it is my fyp of university and I
am stack on this error ..thank you
On Mon, Nov 14, 2022, 1:16 PM airar-dev @.***> wrote:

Does the issue occur if you build with Android or iOS?
(This library does not work in the Unity editor. It only works on Android
or iOS platforms.)
If this error occurs on Android,
Please make sure that the libopencv_java3.so file is also included in the
project.
And set the cpu of the libAirarColorMap.so file and libopencv_java3.so file
included in the project to 64-bit.
Or, in case of iOS, the project must include the libAirarColorMap.a file
and the opencv2.framework file.
—
Reply to this email directly, view it on GitHub
https://github.com/airar-dev/Unity-AR-ColorMapping/issues/29#issuecomment-1313261047,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN5NTKHPOUGI4N5B4ZDWIY3WIHYMNANCNFSM6AAAAAAR5PCPXY
.
You are receiving this because you authored the thread.Message ID:
@.***>

NullReferenceException: Object reference not set to an instance of an object
AirarManager.CalculateMarkerImageVertex (UnityEngine.GameObject cube) (at Assets/ColorMapping/ColorMapping/Scripts/core/AirarManager.cs:70)
VuforiaColorMapping.Play () (at Assets/ColorMapping/ColorMapping/Scripts/core/VuforiaColorMapping.cs:36)
UnityEngine.Events.InvokableCall.Invoke () (at :0)
UnityEngine.Events.UnityEvent.Invoke () (at :0)
UnityEngine.UI.Button.Press () (at<EMAIL_ADDRESS>this error is coming now

sir what i have to set in aira manager script ...In  transperent mat
On Mon, Nov 14, 2022 at 1:22 AM Phenomenal One @.***>
wrote:

Ok thank you but in androids their is only one file which I included and
this issue still coming if you can give me a reference video to solve or
run proper it it could very helpful for me and opencv reference video how
to implement it in unity the platform is androide I am using and unity
version is 2019 and vuforia is 9.3 ...please kindly help me I am making a
ar app for deaf and dumb student for study it is my fyp of university and I
am stack on this error ..thank you
On Mon, Nov 14, 2022, 1:16 PM airar-dev @.***> wrote:

Does the issue occur if you build with Android or iOS?
(This library does not work in the Unity editor. It only works on Android
or iOS platforms.)
If this error occurs on Android,
Please make sure that the libopencv_java3.so file is also included in the
project.
And set the cpu of the libAirarColorMap.so file and libopencv_java3.so
file
included in the project to 64-bit.
Or, in case of iOS, the project must include the libAirarColorMap.a file
and the opencv2.framework file.
—
Reply to this email directly, view it on GitHub
https://github.com/airar-dev/Unity-AR-ColorMapping/issues/29#issuecomment-1313261047,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN5NTKHPOUGI4N5B4ZDWIY3WIHYMNANCNFSM6AAAAAAR5PCPXY
.
You are receiving this because you authored the thread.Message ID:
@.***>

Assets/Plugins/Android folder must contain libAirarColorMap.so file and libopencv_java3.so file.
(See the two images below)

The TransparentBackground.mat file is located in the Assets/ColorMapping/ColorMapping/res/Materials folder.
You can use it by dragging the corresponding material file from the inspector to the AirarManager script.
(see image below)

This is video of all I setup according to your instructions sir but it is
not detecting color ....in step 7 you say tag coloring tag  for object what
is it mean I skip it could you plz guide me what I have to do in it...

Oh... I can't see the video. Please attach video file.

This is a demo video.
https://user-images.githubusercontent.com/65946259/201892538-a7f13a5c-d024-4828-8186-d9055ea1b6a2.mp4
https://user-images.githubusercontent.com/65946259/201892553-5e692b99-65f2-47cb-8ac8-2007e703ab84.mp4

[image: 1.PNG]i have  send you video it is not detecting color and one
thing more i skip the coloring tag step because i cant understand what is
it trying to do please guide me what i have to do in setting for 3d content
thank you
On Tue, Nov 15, 2022 at 2:11 AM airar-dev @.***> wrote:

This is a demo video.
https://user-images.githubusercontent.com/65946259/201892538-a7f13a5c-d024-4828-8186-d9055ea1b6a2.mp4
https://user-images.githubusercontent.com/65946259/201892553-5e692b99-65f2-47cb-8ac8-2007e703ab84.mp4
—
Reply to this email directly, view it on GitHub
https://github.com/airar-dev/Unity-AR-ColorMapping/issues/29#issuecomment-1315085990,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN5NTKFZ52A5IKX3FHEY46DWINOVLANCNFSM6AAAAAAR5PCPXY
.
You are receiving this because you authored the thread.Message ID:
@.***>

Sir I have follow all your instruction and demo video but still it doesn't
detect color targeting is working but color detection is still not working
if you have APK that detecting color kindly send me ...
On Tue, Nov 15, 2022, 5:57 PM Phenomenal One @.***>
wrote:

[image: 1.PNG]i have  send you video it is not detecting color and one
thing more i skip the coloring tag step because i cant understand what is
it trying to do please guide me what i have to do in setting for 3d content
thank you
On Tue, Nov 15, 2022 at 2:11 AM airar-dev @.***>
wrote:

This is a demo video.
https://user-images.githubusercontent.com/65946259/201892538-a7f13a5c-d024-4828-8186-d9055ea1b6a2.mp4
https://user-images.githubusercontent.com/65946259/201892553-5e692b99-65f2-47cb-8ac8-2007e703ab84.mp4
—
Reply to this email directly, view it on GitHub
https://github.com/airar-dev/Unity-AR-ColorMapping/issues/29#issuecomment-1315085990,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN5NTKFZ52A5IKX3FHEY46DWINOVLANCNFSM6AAAAAAR5PCPXY
.
You are receiving this because you authored the thread.Message ID:
@.***>

Tell me your email address.
I will send you the built apk file.

@.***
On Tue, Nov 15, 2022 at 9:35 PM airar-dev @.***> wrote:

Tell me your email address.
I will send you the built apk file.
—
Reply to this email directly, view it on GitHub
https://github.com/airar-dev/Unity-AR-ColorMapping/issues/29#issuecomment-1316388667,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN5NTKFIM3GKIBNQDO4A3HTWIRXB7ANCNFSM6AAAAAAR5PCPXY
.
You are receiving this because you authored the thread.Message ID:
@.***>

The email address looks like that...

in txt email is in
On Tue, Nov 15, 2022 at 9:45 PM airar-dev @.***> wrote:

[image:<PHONE_NUMBER>922]
https://user-images.githubusercontent.com/65946259/202093854-4dc08a08-23b3-46c1-8dc8-c185482b0d13.jpg
The email address looks like that...
—
Reply to this email directly, view it on GitHub
https://github.com/airar-dev/Unity-AR-ColorMapping/issues/29#issuecomment-1316397396,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN5NTKF7LVDGDN356RFSXFTWIRYJDANCNFSM6AAAAAAR5PCPXY
.
You are receiving this because you authored the thread.Message ID:
@.***>

@.***

<EMAIL_ADDRESS>

Sir your send app is working well but why not my is running kindly help me
On Wed, Nov 16, 2022, 10:52 AM Phenomenal One @.***>
wrote:

in txt email is in
On Tue, Nov 15, 2022 at 9:45 PM airar-dev @.***>
wrote:

[image:<PHONE_NUMBER>922]
https://user-images.githubusercontent.com/65946259/202093854-4dc08a08-23b3-46c1-8dc8-c185482b0d13.jpg
The email address looks like that...
—
Reply to this email directly, view it on GitHub
https://github.com/airar-dev/Unity-AR-ColorMapping/issues/29#issuecomment-1316397396,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN5NTKF7LVDGDN356RFSXFTWIRYJDANCNFSM6AAAAAAR5PCPXY
.
You are receiving this because you authored the thread.Message ID:
@.***>

pls make a video for ios build too......
Completed all steps but still getting error in xcode...
used opencv2.framework file version 3.4.11.
downloaded from here. [https://sourceforge.net/projects/opencvlibrary/files/3.4.11/]
errors....
Showing Recent Issues
Undefined symbol: MatToUIImage(cv::Mat const&)
Showing Recent Issues
Undefined symbol: UIImageToMat(UIImage const*, cv::Mat&, bool)
Showing Recent Issues
Undefined symbol: cv::warpPerspective(cv::InputArray const&, cv::OutputArray const&, cv::InputArray const&, cv::Size, int, int, cv::Scalar const&)
Showing Recent Issues
Undefined symbol: cv::getPerspectiveTransform(cv::Point const*, cv::Point_ const*)
Showing Recent Issues
Undefined symbol: cv::Mat::deallocate()
Showing Recent Issues
Undefined symbol: cv::fastFree(void*)
working completely fine in android but not in ios..
vuforia version 10.13.3
unity version 21.3.11f1


web: Fix #1888

Yes, it I copied it from the Python function. I think we should pass pretty_host in the JSON. Am I to add this here? https://github.com/mitmproxy/mitmproxy/blob/8f13f357adb6aa0e952eb99200ef3fbd5cc73c36/mitmproxy/tools/web/app.py

Yes, that's the right place. Thanks!

I think this is done

Thanks. This does not fix #1888 as we now default to showing the pretty host, but the change we do here is the right one nonetheless.


v0.1.0

ManialinkPage render seems to be plugin by plugin. To override the AirMode native button. We have to name the plugin to be loaded after the ColorAndAnimation Nadeo plugin. The ColorAndAnimation Plugin seems to be problematic with the Select Color Picker from the Copy/Paste tool.
Resume :

synchro timestamps + improve sync PlaceBlock = OK
add chat messages = OK
reset PlaceMode when mode is not managed = OK
improve IsExternalEvent /PlaceBlock, Erase, Undo = OK
synchro skin and light color = OK
token/session token (new route /lobby + loading popup) = OK
add the Custom GhostMode : popup for airGhostNotAllowed + set custom color cursor = OK
split all UI in layers = OK
rework menu interface/openClose = OK
add a check script version to know if there is an update : /version = OK
add a small background to the parameter icons = OK
add web site to download the plugin = OK
add database to register some party stats = OK
add docker-compose file to run the app on Docker = OK

close


Repository notes and links for contributors

Landed in https://github.com/metarhia/metasql/commit/eb992d85bd0098c9de29caa5667fe1fe9470f846 and https://github.com/metarhia/metasql/commit/ae7f2d088d2c14ce1373869af01856dd7a0dd037


[FEATURE REQUEST]

I think the component should have the following features:

Support manual refresh of the list (for example, it needs to be called after deletion because the search conditions will not be modified, so the refresh will not be automatically triggered).
Expose the loaded data list.
The data list will not be reloaded after the length attribute is set to 0 (I think this is a bug).
Thank you.

Support manual refresh of the list (for example, it needs to be called after deletion because the search conditions will not be modified, so the refresh will not be automatically triggered).

The grid compoenent (as well asl almost all Vue compoenet) should be props driven driven most of time IMHO. I am not sure adding a "public method" to refresh the compoenent is a good approach here, as it should always reflect the current passed in props to begin with.
Try updating the length and/or pageProvider prop when your data changes (e.g. items are deleted). The prop change should trigger a rendering with the latest data.

Expose the loaded data list.

This is addressed in #314 and will be supported in the next version.

The data list will not be reloaded after the length attribute is set to 0 (I think this is a bug).

The grid component is reactive to the changes of length (as seen in the demo). When it's set to 0, nothing would be rendered, which is expected (by me) here. Not sure if you are talking about the reload of UI here, or the reload of data itmers under the hood. Please provide a minimal example that can reproduce the "bug" if you'd like me to look into it further.

Sorry, I may not have described it clearly.
Based on the demo you provided
Assume that when the server returns no data when Category searches for Mens, I set length to 0, and then set Category to All again, I think the list should be requested again.

Assume that when the server returns no data when Category searches for Mens, I set length to 0, and then set Category to All again, I think the list should be requested again.

For this case, I think you should update both length and pageProvider. The grid component doesn't do networking by itself. The data providing is delegated to pageProvider.

In addition, I think the component should also provide a slot to handle the state when the list is empty.

I am afraid I don't have the capcity to implement this at the moment. It should be possbile to implement it outside the grid component, by swapping it with your own compoenent when no items to show.


refactor: common repository c# code style

Closes #84
Refactored:

Common code formatting
Extract files where is possible

Also apply default xproj transformation. Not sure regards to this, but any visual studio with preview tooling done this against this solution, so i think its really necessary (and in a fact without it solution cannot build when you have different from JavaScriptServices.sln folder name :sweat_smile: )

Thanks so much for this! It's merged. Everything looks a lot more consistent now - great job!
I made a few further tweaks (cb289fd3) which I hope you don't mind. I'm happy to provide explanations if needed.

All this just a matter of taste :)
I really like this expression body feature, but it just syntax sugar, so it's okay 👌. I'll continue to work under new features now. I have a lot of ideas how improve all this stuff. And now it much easier to do :+1:

Wait for more and more issues and PRs


Document new Advanced Search module once merged

https://github.com/Islandora/islandora/pull/824 proposes to add new Advanced Search Module to Islandora Core.
Once approved and merged, the module's comprehensive readme information should be added to the documentation (https://github.com/nigelgbanks/islandora/tree/8.x-1.x-advanced-search/modules/islandora_advanced_search).
@Islandora/documentation

Haven't taken a look but documentation on this module might make #1739 redundant.


Generate ID's for  components

What:
Closes #27
babel-plugin-react-intl-auto will generate a globally unique ID for <FormattedMessage> components that don't specify one themselves.

Why:
react-intl provides two primary interfaces for defining and rendering formatted strings: the defineMessages function and <FormattedMessage> React component.
Currently, this plugin only supports generating an ID for messages defined via defineMessages.
We would like to be able to use the React component but still don't want to have to deal with unique IDs.

How:
This plugin (essentially) creates ID's for defineMessages by combining the key passed to defineMessages with the path to the current file.
With <FormattedMessage> we don't have any key at all, just the message (descriptions are optional).
So this PR proposes a way of creating ID's for React components by combining the path to the current file with a hash of the provided defaultMessage.
This ensures that per file, all occurrences of a given defaultMessage will have the same unique ID. You will never get two matching ID's with different messages.

Note We considered including per file instance variance in the ID (line number of the component for e.g) but decided this could cause a lot of churn in the ID as components are moved in a file.

Checklist:

[x] Documentation
[x] Tests
[x] Ready to be merged
[x] Added myself to contributors table

Sorry, we PR'd this early by mistake. Still a WIP but we intend to propose the change.

Hi, we think this is ready to go - would love to hear what you think :)

@bradbarrow Great work🎉
I'll merge it after review 👍

And please explain the description to the readme :)

Hi I'll sort out those changes today :)
I'm not sure what you'd like me to explain about the Readme?
I tried to add a few examples and additions to show how this component based approach would look and what the result is.
I added some minor formatting changes to make the section about extracting a little clearer ... I hope.

Ok feedback addressed. I have left the console logs as it doesn't work without some kind of wrapper for context.

That worked, changes pushed @akameco thank you :)

Do not rebase😱 I'd like to see diff because of the cost of reviews.

Fixed up the test :) Sorry, rebasing is my default workflow. Have added the latest fix as a new commit

Thanks for the review @akameco :) We're looking forward to the publish so we can start using this in production - we'll be sure to raise any improvements once we've used it for a while :)
Thanks for being available 👍

Hi @akameco, just wondering if you have an ETA on this release? We're relying on it for a piece of work and we'd love to deliver it this week :)
Thank you 🙏

@bradbarrow I released 1.1.0 🎉 Great work 👍


feat: enhanced type checks

Create a type checking method that works with both Lua primitive types and ClassLoader types.

When an object is passed to the type function such as an Enum table or an uninitialized class, "#Template" should be appended to  the type name.


UPC-E implementation

Do you guys have any draft  about the UPC-E implementation?

Not yet, but if needed just @ me and I will probably do it

Happy to accept a PR :+1:


Adds RISE Logo to footer

Changes CSS and footer to add the RISE logo
Updates pre-loader for images
fixes #2

Please resolve conflicts and merge the branch

Merge conflicts are resolved and pull request can be accepted :wink:


Remove boilerplate from gradle scripts

Use gradle implicit conventions
Use java 8 in tests
use java 8 in crossdock

Codecov Report

Merging #176 into master will decrease coverage by 0.05%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #176      +/-   ##
============================================
- Coverage     79.66%   79.61%   -0.06%
+ Complexity      447      446       -1
============================================
  Files            76       76
  Lines          1751     1751
  Branches        205      205
============================================
- Hits           1395     1394       -1
  Misses          267      267
- Partials         89       90       +1

Impacted Files
Coverage Δ
Complexity Δ

.../uber/jaeger/samplers/RemoteControlledSampler.java
91.54% <0%> (-1.41%)
18% <0%> (-1%)

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 2603cc7...05707fe. Read the comment docs.

no objection on gradle changes, but why bump tests to 8? It seems prudent to stay on as low version as possible for best compatibility.

I see the reason for shipping main jars with java6. We are not shipping any test-jar, so why not to use java8? There are no consumers of our tests. Only crossdock is consumed but only internally.
Btw. Java SE 7 End of Public Updates is Jul 2015. Currently, the only supported JDK is 8.

We are not shipping any test-jar, so why not to use java8? There are no consumers of our tests.

But why use java8 when we can use java7? The consumers of the tests are the people who use the main artifacts and want assurances that those artifacts have been tested on the respective JRE. And EOL of nor, java7 is still widely used.
Maybe I]m being paranoid, but it seems like switching to java8 has downsides but no upside.

have been tested on the respective JRE

This is not true, we only build and test with the travis default, Oracle JDK 7.

The consumers of the tests are the people who use the main artifacts and want assurances that
those artifacts have been tested on the respective JRE.

To do this, we need to setup matrix builds with JDK 6/7/8, and bump down our test source compatibility to Java 6 as well. (I don't like this idea).

but it seems like switching to java8 has downsides but no upside.

The upside is that we can use new language features, I don't see much of the downsides, tbh.

I'd vote also on bumping to Java 8 without thinking too much about "older" clients. As @pavolloffay mentioned, Java 7 is EOL'ed for almost two years now. People should really, really be using Java 8 if they are minimally concerned about security: using a platform that stopped receiving updates two years ago is just too dangerous ;-)
If you do have a specific client critical enough to keep shipping this library with Java 7 compatibility, then I'd recommend stating a deadline for switching to Java 8. Like, 2 months from now, we will move to Java 8, ready or not.

Also, it looks like the travis documentation was incorrect in saying that the default is JDK7; they seem to be running on Java 8 now.
From the build logs,
$ javac -J-Xmx32m -version
javac 1.8.0_111

@jpkrohling the discussion here was about 1.8 for tests, not for the main code. I don't think it's a good strategy for an OSS project to be overly restrictive with JDK versions, all it'd achieve is turn some people away from using it. There are neither any exceptional features in 1.8 that we absolutely must use in the tracing client, nor do any of our dependencies require upgrading. And there have been explicit requests to support 1.6, and doing so does not hold us back in any way at the moment.
As for using 1.8 in tests, we discussed internally and are ok with it.


Detach fork

Since this repo is a fork of the original project and seen as such by github, when you open a new pull request the default base repository is the original archived project. Users have to remember to select this repo every time. The problem is described in detail here: https://github.com/community/community/discussions/11729
The solution seems to be to request the fork to be detached: https://github.com/community/community/discussions/11729#discussioncomment-4403106. @ThomDietrich, could you look into this?

Hey @avataar and all,
is this still the case? I saw the described behavior once but never since.
Is there any other good reason to break links to the original repo? I'd like to keep the link for the sake of the Network Graph mostly. I suppose we would drop out if we detached the fork!?

That is literally the only reason I opened this and it's still the case. However, I do see your point in keeping it linked too. So let's keep the issue open to track the progress of the linked community issue (hopefully they'll listen to everyone moaning about the same thing there!).

Happy to go through with the detach at a given point. For me that point would be after we made it to HACS default and are recognized and know in the broader community of HA users

Hi @ThomDietrich, I've been overwhelmed with my daily job lately but plan to dedicate some time to the Horizon card soon.
Sunny greetings from Bali!


Update FAV Icon

Design needed. Not priority.

I agree with @andreadelrio - are the orange lines in the blue icon supposed to be wavy or is it just my eyes?

@scottofletcher the first screenshot shows what we have now on xyz (the old colour scheme and, yes, pixelated), which we're updating with this issue.

Amber's feedback: Ok to go forward with current proposal, might want to revisit this if we hire a graphic designer/illustrator.


decoy.mock not working with pydantic based class - value is not a valid dict

Hi, I have the following problem.
Problem
using decoy.mock(cls=MyPydanticBasedClass) do not work when creating a pydantic model with a mocked pydantic model.
The error value is not a valid dict happen.
Example
from decoy import Decoy
from pydantic import BaseModel

class MessageDto(BaseModel):
    id: str
    content: str

class MyObjectDto(BaseModel):
    id: str
    message: MessageDto

class MessageFactory:
    def __init__(self):
        pass

    def create(self, content: str):
        return MessageDto(id="1", content=content)

class MyObjectFactory:
    def __init__(self, message_factory: MessageFactory):
        self.message_factory = message_factory

    def create(self, content: str) -> MyObjectDto:
        message = self.message_factory.create(content=content)
        # !! Error happen here !!
        return MyObjectDto(id="1", message=message)

class TestExample:
    def test_create_pyandantic_object(self, decoy: Decoy):
        message_factory = decoy.mock(cls=MessageFactory)
        instance = MyObjectFactory(message_factory=message_factory)
        message_dto_mock = decoy.mock(cls=MessageDto)

        decoy.when(message_factory.create("hi")).then_return(message_dto_mock)

        result = instance.create("hi")

        assert result is message_dto_mock

Error
validation_error = ValidationError(model='MyObjectDto', errors=[{'loc': ('message',), 'msg': 'value is not a valid dict', 'type': 'type_error.dict'}])

Solution tried
I've tried to mock the .dict function and still does not work (decoy.when(message_dto_mock.dict()).then_return({"id": "1", "content": "hi"})).

Since decoy is type-checking friendly I would expect it to work with pydantic and allow me to build a pydantic object using a mocked pydantic BaseModel class.
Does someone know how to fix that? Do I have something to do differently or is it an improvement for the library?
Thanks :)

Hi @samuelint! I can take a look at this sometime this week, but my gut reaction is that you should not mock Pydantic models or other dataclasses with Decoy. Instances of these objects represent data/values flowing through your app; you should use Decoy to mock things that act on data (like your MyObjectFactory class), never the data itself.
In my teams' usage of Decoy with Pydantic, we'd simply create actual model instances to pass around via mocks. You may also be interested something like Polyfactory to create dummy data objects for testing (though I haven't used it personally)

@mcous thanks for your answer, I'll try to use Polyfactory to mock DataModel.

I've looked into this a little deeper, and the cause of the error in your snippet is that Pydantic itself does not recognize a Decoy mock of a Pydantic model as an instance of a Pydantic model. Decoy mocks fake out __class__ so that they can pass instanceof checks, but they will not do anything more sophisticated than that
Mocking out dataclasses is not an intended use of this library, so I'm going to close this issue as a wontfix. Thanks for the feedback and report! I hope Polyfactory is better able to suit you fake data needs


Start hangs if locale is not English

Starting the server hangs while waiting for "database system is ready to accept connections" in STDOUT from the PostgreSQL server.
https://github.com/atrauzzi/protoculture-dotnet-postgres/blob/1bace59eb9bfb248d9ae94682931996468aba9f6/Protoculture.Postgres.Embedded/src/EmbeddedPostgres.cs#L174
Worked fine on Linux, but on a German Windows 10 the output is "Datenbanksystem ist bereit, um Verbindungen anzunehmen", so the start task never ends.
I couldn't figure out how to tweak the output language of postgres.exe. I've tried setting LANG, LC_ALL and LC_MESSAGES in the environment variables, but Postgres always writes German messages.
Maybe it would be better to wait for the server by trying to connect to it. Something like:
using var tcpClient = new TcpClient();
try
{
var connectTask = tcpClient.ConnectAsync("<IP_ADDRESS>", Configuration.Port);
var timeoutTask = Task.Delay(TimeSpan.FromSeconds(30));
await Task.WhenAny(connectTask, timeoutTask).ConfigureAwait(false);
if (connectTask.IsCompletedSuccessfully && !serverProcess.HasExited) return;
}
catch
{
// ignored
}
throw new Exception($"Failed to start Postgres");
(Not a complete solution - needs to take care of the server process ending before the timeout and setting the Running status property - but you get the idea - I can provide a PR if you like.)

Oh interesting.
The tcp approach might work for this... Definitely open to a PR!


TypeError new Nextjs App Directory

webpack error btw

+1

Having the same error

add 'use client'  above the component


Fix Relative Directory Loading Failure

Solves https://github.com/sindresorhus/electron-serve/issues/44.
All credit goes to @k7sleeper.

Simplified 👍

FYI: This works fine and resolves the issue Error: ERR_FILE_NOT_FOUND (-6) loading 'app://-/'. Potentially resolve #29


Two-adic prime field over U256

Two-adic prime field over U256
Description
This PR adds a new prime field with the IsTwoAdicField trait already implemented. This makes the prime field suitable to be used with FFT operations. This change is needed to use the field in the stark-prover since it's not possible to implement the trait isTwoAdicField for an external type as the finite field. In the future to use another field for FFT operations a new prime field like this one will be needed.
Type of change

[x] New feature

Checklist

[x] Unit tests added
[x] This change requires new documentation.

[ ] Documentation has been added/updated.

Codecov Report

Merging #173 (c6b1442) into main (bf3c361) will increase coverage by 0.00%.
The diff coverage is 97.05%.

@@           Coverage Diff           @@
##             main     #173   +/-   ##
=======================================
  Coverage   96.61%   96.62%
=======================================
  Files          51       52    +1
  Lines        6417     6451   +34
=======================================
+ Hits         6200     6233   +33
- Misses        217      218    +1

Impacted Files
Coverage Δ

...d/fields/fft_friendly/u256_two_adic_prime_field.rs
97.05% <97.05%> (ø)

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


TidyUp: Remove redundant closing tags.

A new inspection was created.

The inspection completed: No new issues

Hi @thehereward and thanks for your contribution.
It seems that the branch is out of date with the base branch. Could you please update it so that I can merge it via github. Thank you!


Move protocol contract docs into developers/architecture

The existing workflow attempts to copy protocol contracts into src/pages/architecture/contracts:
Example: https://github.com/zeta-chain/docs/pull/350/files
This PR updates the workflow to move contracts correctly into src/pages/developers/architecture/contracts.
Thus fixing the 404: https://www.zetachain.com/docs/developers/architecture/contracts/

@andresaiello please, review.


Please exclude the /tests directory

Could you please exclude the /tests directory in the .gitattributes file?
Thanks :smiley:

Hello!
Thank you for the suggestion, but the unit tests are a good first check for systems that have problems. It's only 60k, so removing it won't really save much space.


HTTPS is not supported (and HTTPS only feeds show an error)

For example adding the OmniROM news feed:

Error while loading this feed : Unable to refresh feed http://omnirom.org/feed/ : Could not parse feed from https://omnirom.org/ : Invalid XML: Error on line 62: The entity name must immediately follow the '&' in the entity reference.

This feed can only be accessed via https and visiting the http will redirect it to https.

Adding https://omnirom.org/feed/ appears to work now.


Add __contains__ and get to BatchDict

Codecov Report
Patch coverage: 100.00% and no project coverage change.

Comparison is base (872e13e) 100.00% compared to head (fa3b3f2) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #281   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           14        14
  Lines         1270      1274    +4
  Branches       145       145
=========================================
+ Hits          1270      1274    +4

Impacted Files
Coverage Δ

src/redcat/batchdict.py
100.00% <100.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


mvn clean package issue + project installation question

Description
I previously use openapi-generator until v7.0.0 decommissioned the python client generator
I am new to opeanpi-json-schema-generator (previously used openapi-generator) and attempted the following to install based on the README:
Getting Started
I used:
git clone https://github.com/openapi-json-schema-tools/openapi-json-schema-generator
cd openapi-json-schema-generator
mvn clean package

This resulted in the following error:
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR]   URLPathUtilsTest.testGetServerURLWithVariables:115 expected [https://{user}.example.com/v1] but found [http://localhost]
[INFO]
[ERROR] Tests run: 463, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  36.743 s
[INFO] Finished at: 2023-08-25T16:20:21-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.1.2:test (default-test) on project openapi-json-schema-generator-cli: There are test failures.
[ERROR]
[ERROR] Please refer to /{local_pathway}/openapi-json-schema-generator/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Install Jar directly from maven.org
Within the README, "You can also download the JAR (latest release) directly from maven.org"
⬆ This link above does not exist (404) ⬆ .  In maven.org, I could not search for openapi-json-schema-generator-cli.  Does this exist?
openapi-generator version
v3.0.0
OpenAPI declaration file content or url
N/A
Command line used for generation
N/A
Steps to reproduce
N/A
Related issues/PRs
N/A
Suggest a fix/enhancement

Will a v3.0.0 of the JAR be uploaded to maven.org?

At this time I do not plan on publishing to maven. If more users desire it, I can add it. Can you use the docker images?
what is your operating system and architecture?
what is your Java version?
what is your mvn version?
I need this info to reproduce the bug.

Can you use the docker images? I will set up Docker to test after I have changed my workflows over from openapi-generator to openapi-json-schema-generator.  I'll post here if I run into issues.
What is your operating system and architecture? My workflow uses ubuntu-latest.  The architecture so far only consists of A) generating the Python SDK Client from an openapi.yaml and B) Using Prism to Mock a Server to perform unit tests
What is your Java version? 11.0.20
What is your mvn version? 3.8.8

At this time I do not plan on publishing to maven. If more users desire it, I can add it.
Some questions for you:

Can you use the docker images?
What is your operating system and architecture?
What is your Java version?
What is your mvn version?

I need this info to reproduce the bug as all tests are currently passing locally and in CI

Can you use the docker images? I will set up Docker to test after I have changed my workflows over from openapi-generator to openapi-json-schema-generator. I'll post here if I run into issues.
What is your operating system and architecture? My GitHub workflow uses ubuntu-latest. The architecture so far only consists of A) generating the Python SDK Client from the openapi.yaml and B) Using Prism to Mock a Server to perform unit tests.  We are both on Mac oses.

@sambk17 does it work if you use Java 11?

Hi @spacether 👋 - I changed out the Java version (11.0.19) and it worked!!
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  48.690 s
[INFO] Finished at: 2023-08-28T08:45:53-07:00
[INFO] ------------------------------------------------------------------------

Any chance is there an explanation for the difference in Java version? 😄

Glad to hear it. Not sure why one would have this bug and the other wouldn't. I changed from Java 8 to Java 11 because 11 is the oldest active long term support (LTS) release. The next LTS release after 11 is 17.

Update: I have also tested this within an ubuntu-latest GitHub Actions Workflow using Java 11 and it also works as expected.
@spacether - Thanks again for helping clarify things.  I will mark this as Closed.


playlist-start or playlist-items not working as expected when combined with playlist-reverse

Checklist

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

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--playlist-start', '2', '--playlist-reverse', '-o', '%(playlist_index)s - %(title)s.%(ext)s', 'https://studio.youtube.com/channel/UCzcBCrlI7FIIGMBp3Tq65gw']
[debug] Loading archive file None
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dlc version 2020.10.31
[debug] Python version 3.8.6 (CPython) - Linux-5.8.12-arch1-1-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube:channel] UCzcBCrlI7FIIGMBp3Tq65gw: Downloading channel page
[youtube:playlist] UUzcBCrlI7FIIGMBp3Tq65gw: Downloading webpage
[download] Downloading playlist: Uploads from Pagsulay Asoy
[youtube:playlist] playlist Uploads from Pagsulay Asoy: Downloading 3 videos
[download] Downloading video 1 of 3
[youtube] CLqiHAzqsGA: Downloading webpage
[youtube] CLqiHAzqsGA: Downloading MPD manifest
[debug] Default format spec: bestvideo+bestaudio/best
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on 'https://manifest.googlevideo.com/api/manifest/dash/expire/1604270563/ei/guWeX4u_Oe-V2_gPgryEoAY/ip/<IP_ADDRESS>/id/08baa21c0ceab060/source/youtube/requiressl/yes/playback_host/r1---sn-ojvh-acce.googlevideo.com/mh/Az/mm/31%2C29/mn/sn-ojvh-acce%2Csn-q4flrnee/ms/au%2Crdu/mv/m/mvi/1/pcm2cms/yes/pl/20/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/918750/vprv/1/mt/1604248846/fvip/5/keepalive/yes/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cvprv%2Citag/sig/AOq0QJ8wRAIgGPuu7ZNHTphRC9w6DehbyMcwcIA-xNVXNFcefjXCdn0CIBDlQn0EdOkaBhR34wz5Ighd8uVIG5kVxkDMA-V6-W1w/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRAIgd2heuU0Y_fQvUpMM1XMAJyMJIi1cw65vPRAavK06dzACIAt578GLCxvX9Gi1ANsTpLYiEaMP8lNfnVIV6obsYNHs'
[dashsegments] Total fragments: 3
[download] Destination: 2 - First Video.f242.webm
[download] 100% of 11.92KiB in 00:00
[debug] Invoking downloader on 'https://manifest.googlevideo.com/api/manifest/dash/expire/1604270563/ei/guWeX4u_Oe-V2_gPgryEoAY/ip/<IP_ADDRESS>/id/08baa21c0ceab060/source/youtube/requiressl/yes/playback_host/r1---sn-ojvh-acce.googlevideo.com/mh/Az/mm/31%2C29/mn/sn-ojvh-acce%2Csn-q4flrnee/ms/au%2Crdu/mv/m/mvi/1/pcm2cms/yes/pl/20/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/918750/vprv/1/mt/1604248846/fvip/5/keepalive/yes/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cvprv%2Citag/sig/AOq0QJ8wRAIgGPuu7ZNHTphRC9w6DehbyMcwcIA-xNVXNFcefjXCdn0CIBDlQn0EdOkaBhR34wz5Ighd8uVIG5kVxkDMA-V6-W1w/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRAIgd2heuU0Y_fQvUpMM1XMAJyMJIi1cw65vPRAavK06dzACIAt578GLCxvX9Gi1ANsTpLYiEaMP8lNfnVIV6obsYNHs'
[dashsegments] Total fragments: 3
[download] Destination: 2 - First Video.f140.m4a
[download] 100% of 159.61KiB in 00:03
[ffmpeg] Merging formats into "2 - First Video.mkv"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:2 - First Video.f242.webm' -i 'file:2 - First Video.f140.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:2 - First Video.temp.mkv'
Deleting original file 2 - First Video.f242.webm (pass -k to keep)
Deleting original file 2 - First Video.f140.m4a (pass -k to keep)
[download] Downloading video 2 of 3
[youtube] wMsFFm_Jt3A: Downloading webpage
[youtube] wMsFFm_Jt3A: Downloading MPD manifest
[debug] Default format spec: bestvideo+bestaudio/best
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on 'https://manifest.googlevideo.com/api/manifest/dash/expire/1604270570/ei/iuWeX7rhJ8TWigSYz7rADw/ip/<IP_ADDRESS>/id/c0cb05166fc9b770/source/youtube/requiressl/yes/playback_host/r1---sn-ojvh-acce.googlevideo.com/mh/2D/mm/31%2C29/mn/sn-ojvh-acce%2Csn-q4flrnek/ms/au%2Crdu/mv/m/mvi/1/pcm2cms/yes/pl/20/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/918750/vprv/1/mt/1604248846/fvip/3/keepalive/yes/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cvprv%2Citag/sig/AOq0QJ8wRgIhAJDCzy9_8Lgxh6VXuIS_vPgRt0uAYwInKZ7GRMztOSpTAiEA9P2QG-qJGxA66AASH5-6ql9s_Xtd4uiYtwJ8KGgvaZE%3D/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRgIhAIvgp9WZkhEBddtz3XF7hwQpH3TWuwz5rKRYDrYF8MSLAiEA-lYdj5nDKjYI4ocL6cFJ4N1sc3GT6SMd45PuC2jf0DU%3D'
[dashsegments] Total fragments: 3
[download] Destination: 3 - Second Video.f242.webm
[download] 100% of 12.65KiB in 00:02
[debug] Invoking downloader on 'https://manifest.googlevideo.com/api/manifest/dash/expire/1604270570/ei/iuWeX7rhJ8TWigSYz7rADw/ip/<IP_ADDRESS>/id/c0cb05166fc9b770/source/youtube/requiressl/yes/playback_host/r1---sn-ojvh-acce.googlevideo.com/mh/2D/mm/31%2C29/mn/sn-ojvh-acce%2Csn-q4flrnek/ms/au%2Crdu/mv/m/mvi/1/pcm2cms/yes/pl/20/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/918750/vprv/1/mt/1604248846/fvip/3/keepalive/yes/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cvprv%2Citag/sig/AOq0QJ8wRgIhAJDCzy9_8Lgxh6VXuIS_vPgRt0uAYwInKZ7GRMztOSpTAiEA9P2QG-qJGxA66AASH5-6ql9s_Xtd4uiYtwJ8KGgvaZE%3D/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRgIhAIvgp9WZkhEBddtz3XF7hwQpH3TWuwz5rKRYDrYF8MSLAiEA-lYdj5nDKjYI4ocL6cFJ4N1sc3GT6SMd45PuC2jf0DU%3D'
[dashsegments] Total fragments: 3
[download] Destination: 3 - Second Video.f140.m4a
[download] 100% of 159.61KiB in 00:02
[ffmpeg] Merging formats into "3 - Second Video.mkv"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:3 - Second Video.f242.webm' -i 'file:3 - Second Video.f140.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:3 - Second Video.temp.mkv'
Deleting original file 3 - Second Video.f140.m4a (pass -k to keep)
Deleting original file 3 - Second Video.f242.webm (pass -k to keep)
[download] Downloading video 3 of 3
[youtube] 5PHV69wcxhw: Downloading webpage
[youtube] 5PHV69wcxhw: Downloading MPD manifest
[debug] Default format spec: bestvideo+bestaudio/best
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on 'https://manifest.googlevideo.com/api/manifest/dash/expire/1604270579/ei/k-WeX7e9BM6Y2_gP2eGmkAk/ip/<IP_ADDRESS>/id/e4f1d5ebdc1cc61c/source/youtube/requiressl/yes/playback_host/r2---sn-ojvh-acce.googlevideo.com/mh/-u/mm/31%2C29/mn/sn-ojvh-acce%2Csn-q4flrn7r/ms/au%2Crdu/mv/m/mvi/2/pcm2cms/yes/pl/20/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/918750/vprv/1/mt/1604248846/fvip/3/keepalive/yes/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cvprv%2Citag/sig/AOq0QJ8wRQIgBEPcxo4aHyP5H7kMRP5XROdSdkDfFtNTw-6L1LVvFSICIQCQ_F7mlfURpaYhiV_LyLvxzu9ZdLwkgkklfBu17a5xWA%3D%3D/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRQIgMoBDqdG5zyzXzrxboSKyN58HNx74uSydeRmywOJ42r4CIQDVreaRiZo6Unatzlo099OUuWiMC2-LJFuiNxzRc27hKA%3D%3D'
[dashsegments] Total fragments: 3
[download] Destination: 4 - Third Video.f242.webm
[download] 100% of 10.97KiB in 00:03
[debug] Invoking downloader on 'https://manifest.googlevideo.com/api/manifest/dash/expire/1604270579/ei/k-WeX7e9BM6Y2_gP2eGmkAk/ip/<IP_ADDRESS>/id/e4f1d5ebdc1cc61c/source/youtube/requiressl/yes/playback_host/r2---sn-ojvh-acce.googlevideo.com/mh/-u/mm/31%2C29/mn/sn-ojvh-acce%2Csn-q4flrn7r/ms/au%2Crdu/mv/m/mvi/2/pcm2cms/yes/pl/20/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/918750/vprv/1/mt/1604248846/fvip/3/keepalive/yes/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cvprv%2Citag/sig/AOq0QJ8wRQIgBEPcxo4aHyP5H7kMRP5XROdSdkDfFtNTw-6L1LVvFSICIQCQ_F7mlfURpaYhiV_LyLvxzu9ZdLwkgkklfBu17a5xWA%3D%3D/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRQIgMoBDqdG5zyzXzrxboSKyN58HNx74uSydeRmywOJ42r4CIQDVreaRiZo6Unatzlo099OUuWiMC2-LJFuiNxzRc27hKA%3D%3D'
[dashsegments] Total fragments: 3
[download] Destination: 4 - Third Video.f140.m4a
[download] 100% of 160.71KiB in 00:00
[ffmpeg] Merging formats into "4 - Third Video.mkv"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:4 - Third Video.f242.webm' -i 'file:4 - Third Video.f140.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:4 - Third Video.temp.mkv'
Deleting original file 4 - Third Video.f242.webm (pass -k to keep)
Deleting original file 4 - Third Video.f140.m4a (pass -k to keep)
[download] Finished downloading playlist: Uploads from Pagsulay Asoy

Description

Using playlist-start or playlist-items in conjunction with playlist-reverse is broken. Instead of starting at the video in the playlist numbered by the playlist-start argument, it starts with the same video it would start with if the playlist-start argument were not given.
Given Command-line args: ['-v', '--playlist-start', '2', '--playlist-reverse', '-o', '%(playlist_index)s - %(title)s.%(ext)s', 'https://studio.youtube.com/channel/UCzcBCrlI7FIIGMBp3Tq65gw'] one would expect to end up with the following videos downloaded, '2 - Second Video.mkv', '3 - Third Video.mkv', '4 - Fourth Video.mkv'
Instead, the following are the names of the downloaded videos '2 - First Video.mkv'  '3 - Second Video.mkv'  '4 - Third Video.mkv'
Given Command-line args: ['-v', '--playlist-reverse', '-o', '%(playlist_index)s - %(title)s.%(ext)s', 'https://studio.youtube.com/channel/UCzcBCrlI7FIIGMBp3Tq65gw'] the expected number and names of files are downloaded: '1 - First Video.mkv'  '2 - Second Video.mkv'  '3 - Third Video.mkv'  '4 - Fourth Video.mkv'
Fixing this bug will be very helpful for when one is trying to download a playlist of hundreds or more of videos on a channel that regularly adds new videos and seldom if ever deletes any videos since the combination of playlist-start or playlist-items with playlist-reverse allows videos to be named with their sequence number in the name and the download to take place intermittently over a number of days without having to rename the videos to keep from re-downloading any video more than once.
Using Command-line args: ['-v', '--playlist-reverse', '--playlist-items', '2-4', '-o', '%(playlist_index)s - %(title)s.%(ext)s', 'https://studio.youtube.com/channel/UCzcBCrlI7FIIGMBp3Tq65gw'] results in the same broken result of the following files being saved '2 - First Video.mkv'  '3 - Second Video.mkv'  '4 - Third Video.mkv'

thank you for the detailed information.
this is because it picks playlist-start before doing the playlist-reverse

initial input ->
playlist-start 2 ->
playlist-reverse, out

1 a

2 b
2 b
2 d

3 c
3 c
3 c

4 d
4 d
4 b

this whole way of doing things is somewhat confusing because there are multiple lists and it's hard to guess which one the program means.
in your examples, when you say 'First Video' etc, do you mean first video in the reversed list or original list? do you expect this?

initial input ->
playlist-reverse ->
playlist-start 2, out

1 a
1 d

2 b
2 c
2 c

3 c
3 b
3 b

4 d
4 a
4 a

When I say 'First Video' I mean the one with that title and that also was the first one chronologically to be posted to Youtube and also the one that consists of about 10 seconds of the text 'First Video'

Due to the way the youtube-dl interprets the playlist, I expect that the video to be downloaded first is the one which was most recently uploaded. I also expect that the video to be downloaded next is the next oldest video on the playlist. Thus when using the option to download the playlist in reverse, I expect the videos to be downloaded in the same order as they were originally uploaded.

In your example table, I'm assuming 'a' was uploaded before 'b' , followed by 'c' and lastly 'd'. It would seem logical to me then that the column "initial input' would be the naming and order of download...same as order upload. I realize it is not and does not give this. So if you swap the headings in the first two columns then that is what I see happening..As for the third column, I'm assuming you have given not just a start position of '2' but have also requested a reverse order playlist. I would expect the order to be 2 b, 3 c, 4 d and for video a to be skipped.

Selecting playlist-start of index 2 should always select the second newest or second oldest in the playlist, however when doing reverse order, the FIRST oldest is selected. I fail to see how this demonstrates that playlist-start is selected first.

changed the table above to match video titles from your channel. channels are treated as last-in, first-out in the playlist

OK. So if I follow correctly the table is showing the unseen or intermediate list in the second column, not a separate output from a 2nd run of the script with different arguments than the first column and third column.
So how do we go about reversing before selecting the playlist-start? I can see no use case for the current functioning of the script.

Not being a python programmer and looking at the code it looks like the reverse code relies on 'entries' being created so just moving those lines above the start/end or items select code will not work. What could work is to put an if statement around lines 947-948 so when playlist-reverse appears as an argument, playliststart would be defined as the total number of playlist items minus the value passed for playlist end plus 1. Also playlistend would then equal the number of playlist items minus the value passed for playlistend plus 1.  so for a playlist of 6 items and arguments of --playlist-reverse --playlist-start 2 --playlist-end 4 the value assigned to playliststart would be 3 and playlistend would be 5. In trying to follow the code I'm not sure if there is a variable already at that point that contains the value of the number of total items on the playlist.

This is probably easier to read. Note that num_items would need to be calculated or the appropriate variable used in it's place.
            if self.params.get('playlistreverse', False):
                playliststart = num_items - self.params.get('playlistend') + 1
                playlistend = num_items - self.params.get('playliststart', 1)
            else:
                playliststart = self.params.get('playliststart', 1) - 1
                playlistend = self.params.get('playlistend')


Support the "SecureContext" extended flag

The SecureContext extended flag in WebIDL is interesting in that the result depends on the context the test runs in.
If IDL tests are run in a not secure context, the IDL harness should make sure that IDL definitions marked with a SecureContext flag are not exposed.

Ideally, you want to get wpt-runner to run such tests on both protocols.
@jgraham, @gsnedders: any idea how to go about that?

This issue has been moved to https://github.com/w3c/web-platform-tests/issues/7186; please continue all discussion there.


[Junction Points] Could they use a different icon to regular directories?

Could Junction Points get a different icon in a future update please, as currently they just use the same yellow folder icons that regular directories use, so they look no-different.
Maybe just copy the directory icons, but change the yellow colour to grey?
Compare Windows File Manager and File Explorer:

@craigwi Can this be closed now #304 is merged?


np.unwrap runtime explodes

Dear jax team,
I implemented np.unwrap by looking at the numpy source and changing the inplace-modification bits to np.where and np.concatenate.
While the values are correct, the runtime explodes for x.size > 1e7 and is generally a lot worse than the numpy version. See repro below.
Now, I don't want to waste your time with some micro-optimizations for my specific code. But are there some general performance tips here? I guess the where and concatenate are problematic, but I wouldn't know how to improve this in the JAX framework. Sorry for the code being so cryptic...
Repro:
import jax
import jax.numpy as np
import numpy as onp

@jax.partial(jax.jit, static_argnums=1)
def unwrap(p, axis):
    nd = np.ndim(p)
    dd = np.diff(p, axis=axis)

    ddmod = np.mod(dd + np.pi, 2 * np.pi) - np.pi
    ddmod = np.where(
        np.isclose(ddmod, -np.pi) & (dd > 0),
        np.pi,
        ddmod)

    ph_correct = np.where(
        np.abs(dd) < np.pi,
        0,
        ddmod - dd)

    up = np.concatenate((
        jax.lax.slice_in_dim(p, 0, 1, axis=axis),
        jax.lax.slice_in_dim(p, 1, None, axis=axis) + np.cumsum(ph_correct, axis=axis)
    ), axis=axis)

    return up

# OKAY
x = onp.random.randn(1000) * 10
assert onp.allclose(
    onp.unwrap(x),
    unwrap(x, 0),
    atol=1e-3, rtol=1e-3
)

# NOT OKAY
x = onp.random.randn(int(1e7)) * 10
unwrap(x, 0).block_until_ready()

I think that the problem is in np.cumsum. The following:
big_x = onp.random.randn(size)
np.cumsum(big_x, axis=0)

is much slower than onp.cumsum. I have checked on CPU for now.
@hawkinsp do you have any advice of what I should try next?

I think the issue is that the algorithm implemented by cumsum is quadratic time if XLA implements it naively:
https://github.com/google/jax/blob/6b157ff91cd9b0030e62b43e857fcecc32cfdf8b/jax/numpy/lax_numpy.py#L1544
I think only the TPU does something smarter than the naive implementation, so it's unsurprising this takes forever with an input size of 1e7 on CPU and GPU.
My personal temptation here would be to try implementing a Blelloch-style parallel sum scan algorithm using gather and scatter-add. There's a good blog post explaining them here: https://developer.nvidia.com/gpugems/gpugems3/part-vi-gpu-computing/chapter-39-parallel-prefix-sum-scan-cuda

I'm also curious what happens if you autodiff the Blelloch algorithm. Currently cumprod isn't arbitrarily differentiable, but I don't see any fundamental reason one cannot differentiate through the Blelloch algorithm at an 2n log(n) space cost, which doesn't seem unreasonable for reverse-mode autodiff.

Thank you for your insight and the link to the algorithm!

Here's a version of cumprod that has asymptotically better complexity although only works for power of 2 array sizes:
@jax.jit
def cumprod_v2(z):
  n = len(z)
  log2 = int(math.log2(n - 1))
  zs = []
  for d in range(0, log2):
    z1 = lax.slice(z, (0,), (len(z),), (2,))
    zs.append(z1)
    z2 = lax.slice(z, (1,), (len(z),), (2,))
    z = z1 * z2
  zs.append(lax.slice(z, (0,), (len(z),), (2,)))

  dtype = jnp.dtype(z.dtype).type
  z = jnp.array([1], dtype=dtype)
  for w in reversed(zs):
    z1 = lax.pad(z, dtype(0), ((0, 1, 1),))
    z2 = lax.pad(z, dtype(0), ((1, 0, 1),))
    w = lax.pad(w, dtype(0), ((1, 0, 1),))
    z = z1 + z2 * w
  return z

It also has the advantage of most likely being a lot easier to differentiate than the current implementation.

I believe this is now fixed at head. Let me know how it goes!

It works and is super fast, thank you!


add Emulator

RetroArch
Lakka-LibreELEC
Proton
Gearsystem
Gearboy
PCSX2
RPCS3
ps4emurepo
Kyty
Cxbx-Reloaded
xemu
xenia
xqemu
punes
yuzu
skyline
Ryujinx
citra
project64
m64p
GLideN64
desmume
snes9x
bsnes
gba-mu
dolphin
gameboy
Supermodel
openFPGA-GB-GBC
flycast
Genesis-Plus-GX
mgba
ppsspp
cemu
PSemuX

Thanks for the extensive list. If they are all open source I will add them in the next days.


add SLF4J dependency

This should fix joern exiting after throwing the warning discussed in #2206 by adding a slf4j dependency.
This has been now reported from multiple sides.

To fix these warnings we need to add the dependency to the specific places that use it, e.g. the frontend that's being invoked in that ticket.

Okay I see, thanks for the heads-up!
If I recall correctly, I saw that error just on starting joern-shell, before any frontends are invoked.
But I'll investigate more.

ouch, yes you're right... I'd say that's new.
I'll try to figure out when that started...

oh, looks like that's an slf4j v2 issue. some dependency upgraded slf4j to version 2.x and new the whole mess just got another dimension 😭
gotta love this stuff, probably got enough material for a book by now. not a happy one though
anyway, thanks for the heads-up, i'll get this sorted

superseded by https://github.com/joernio/joern/pull/2215


Add some text format

Make comments italic and make spell error colors red
Make javascript arrow functions yellow, just like the function keyword.

Thank you for your contribution, please see my comments.
If you add those changes as an options, please document them in the README.
The js arrow commit is good and will be merged after fixing and force pushing the 1st commit.

Thank you for your feedbacks!
I added the requested changes.
Instead of setting the spellBad color to red I made it configurable, so one can choose a color from the palette and also added a helper function, so similar configuration can be added easily.

LGTM :+1:


Fix some minor typos

Ah sorry, I didn't read the instructions. I'll update the PR.

@JLimperg do you want these merged or do you want to keep going and patch more fixes?

I would just merge these and open new PRs when I have something more substantial to contribute.


Rename AttributeList kinds to lowercase

What was a problem
Fixes #756
How this PR fixes the problem
Renames the kind constants to lowercase
Check lists (check x in [ ] of list items)

[x] Test passed
[x] Coding style (indentation, etc)

Additional Comments (if any)

@diegoquinteiro Thank you very much.
It was a bug in the parser.
I'm sorry to say that this fix will break the type consistency, so I'll close it.
The issue bug will be addressed by fixing the parser.


[ENH] - Parse and load keycloak roles into conda-store

Feature description
After the issue https://github.com/nebari-dev/nebari/issues/2308 is implemented, we will have access to groups and roles from keycloak in JupyterHub. Next we need to parse the role attributes and load them into Conda-Store, so that they are in affect.
Consider the following keycloak role:
Role: write-access-conda-pycon-namespace-role

Key
Value

resource
conda-store

scopes
write:conda-store!namespace=pycon

The scopes should be parsed and the equivalent should be added into conda-store such that when this role is attached to a user or group, they should have write access to pycon (for instance) namespace.
This feature is part implementation of RFD: https://github.com/nebari-dev/governance/issues/47
Value and/or benefit
This will allow us to do fine-grained permissions on Conda-Store, which can be controlled from keycloak.
Anything else?
No response

@aktech just to double check, now that the parent issue is solved, this can be worked on right?


Add Sql Impersonation Support

SqlClient team needs to add Impersonation support for Project K, but underlying code support does not currently exist.

Does ASP.NET (Core) support this on Linux now? If yes, SqlClient should consider adding support for this on Core now. If not, then SqlClient may not even need to do it.

Seems like ASP.NET Core doesn't support impersonation, but users can still manually perform code under impersonation: https://docs.microsoft.com/en-us/aspnet/core/security/authentication/windowsauth?view=aspnetcore-2.2&tabs=visual-studio#impersonation

Not planning to implement this in the future.


Field 'wLanguage' cannot be nullable or have type 'Null' by package_info_plus_windows

Platform
Flutter Mobile
Obfuscation
Enabled
Debug Info
Disabled
Doctor
[!] Flutter (Channel stable, 3.10.0, on macOS 13.3.1 22E261 darwin-arm64, locale en-US)
• Flutter version 3.10.0 on channel stable at /Users/nithsua/fvm/versions/stable
! Warning: dart on your path resolves to /opt/homebrew/Cellar/dart/2.19.6/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/nithsua/fvm/versions/stable. Consider adding /Users/nithsua/fvm/versions/stable/bin to the front of your path.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 84a1e904f4 (6 days ago), 2023-05-09 07:41:44 -0700
• Engine revision d44b5a94c9
• Dart version 3.0.0
• DevTools version 2.23.1
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
• Android SDK at /Users/nithsua/Library/Android/sdk
• Platform android-33, build-tools 33.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14E222b
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
[✓] IntelliJ IDEA Ultimate Edition (version 2022.3.2)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
[✓] VS Code (version 1.78.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.64.0
[✓] Connected device (3 available)
• macOS (desktop)                     • macos                                • darwin-arm64   • macOS 13.3.1 22E261 darwin-arm64
• Chrome (web)                        • chrome                               • web-javascript • Google Chrome 113.0.5672.92
[✓] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.
Version
7.4.2
Steps to Reproduce
The codebase was working just fine before, but doesn't compile after upgrading flutter and works fine when I remove sentry from pubspec.yaml

flutter upgrade
flutter run

The issue is primarily cause by package_info_plus_windows dependency if sentry. but couldn't find a way to resolve it.
Expected Result
Application is expected to run.
Actual Result
Error: Field 'wLanguage' cannot be nullable or have type 'Null', it must be int, double, Pointer, or a subtype of Struct or Union.
file_version_info.dart:13
Could not build the application for the simulator.
Are you willing to submit a PR?
None

This issue will affect all users who have the latest stable flutter (i.e. run flutter upgrade) and had installed sentry more than 3 months ago.
The solution is to run flutter pub upgrade package_info_plus to upgrade to package_info_plus to the latest compatible version 3.1.2.


style(code): implements eslint & prettier

Adds and applies eslint with standard config
Adds and applies prettier with standard config
Adds husky to enfore clean code on pre commit

BREAKING CHANGE: lib return values are now camelCased
This is my first step to get this lib in 2018 shape. 99% of the changes are auto fixed from eslint or prettier. I'd keep this in the next branch and start releasing 1.0.0-alpha's as soon we got the plugin system running.
Next step might be upgrading all dependencies.

@efegurkan fixed 😅

@axe312ger LGTM, feel free to merge it :)


Add Sentry

We want to use sentry for exception tracking, we will need to set up a sentry account and ensure the service can send exceptions correctly

closing since #7  is merged


feat: add OffsetOverride

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


fix rocket

Summary of Changes:
The code changes in this pull request aim to improve the rendering of a rocket in a Pygame application. Specifically, the changes:

Calculate the rocket's angle based on its elliptical trajectory, using the atan2 function.
Update the rocket's rendering to account for its new angle, using Pygame's transform.rotate function to rotate a surface.
Use a pygame.Rect object to center the rocket's image at the calculated position.

Potential Issues:

Performance: The pygame.transform.rotate function can be computationally expensive, especially if called repeatedly. This might impact the game's performance, especially if the rocket is moving rapidly.
Image Quality: Rotating the rocket's image might lead to visual artifacts or pixelation, depending on the original image quality and the rotation angle.
Angle Calculation: The atan2 function is used to calculate the rocket's angle, but it's not clear if the a and b variables are correctly calculated or if they might lead to incorrect angle values.
Lack of Error Handling: There is no error handling or input validation for the rocket_width, rocket_height, and rocket_color variables. If these values are invalid or null, the code might fail or produce unexpected results.
Commit Message: The commit message "fix rocket" is quite vague and doesn't provide much context about the changes made. It would be helpful to include more descriptive commit messages to facilitate code reviews and bug tracking.

Overall, the changes seem to be moving in the right direction, but it's essential to consider the potential performance and visual implications of the new code.


Sass division

This fixes deprecation warnings when compiling SCSS with dart-sass.
There's one place where libsass and ruby sass incompatibility is introduced (math.div() invocation), but it may be removed by multiplying var value by 0.67 (or 0.6666666667) if that kind of rounding is acceptable.

I finally took the time to do some tests.
Thank you again. Nice fix.
I'm merging into /dev branch now and I will PR into /master after few other improvements.


[flutter_markdown] Cannot Copy & Paste content inside markdown

I'm using flutter_markdown for my app and I can't seem to copy & paste from the markdown content. Is this feature not available at the moment? And if so, is there a known work-around?

Hi @parkershamblin, please provide a minimal, reproducible example and the output of flutter doctor -v.


Fixed lowerthirds not working on safari; Fixed video load errors on slow connections

player.getTextTracks()[0].cues_ did not work on safari.  Had to use player.getTextTracks()[0].cues
Had to wait for loadstart event before attempting to play a video.  This was causing that random PLAYER_TIMEOUT_ERROR thing we'd see randomly from time to time.
If an error does occur, we attempt to reload the video (uses the error event)

These changes were merged with https://github.com/lonelyplanet/backpack-ui/pull/224