open issues UC outage

see https://matrix.to/#/!JLUOInpEYmxJIYXlzs:matrix.org/$Uvn4cn3an3RDVQT_trYGbPT3OKdV8yf0NFfjcW_Tejo?via=g4v.dev&via=gitter.im&via=matrix.org

Related to https://github.com/jenkins-infra/helpdesk/issues/4428 and https://github.com/jenkins-infra/helpdesk/issues/4427


<UnderlineNav> menu now uses the Anchored Position on smaller screen sizes to not clip, or go out of bounds.

Closes #4059

Changelog

New
This PR fixes the issue with the <UnderlineNavMenu> on smaller screens using the menu. Where it would normally overflow to the left, this makes sure we align the absolute item using the AnchoredPosition API  that you have provided.
Old Behavior:

New Behavior (321px >):

On very small screens (not supported, but hey - why not):

Changed

Updates to menuStyles in the <UnderlineNav>
It has become more complex, as the style has become complex as well. I am forced to check now for how many pixels we have available in the listRef. I am also using the getAnchoredPosition API now to calculate the position of the element, but only for smaller screens, as to not mess with the min-width that was previously set.

Removed

Nothing has been removed.

Rollout strategy

[ ] Patch release
[x] Minor release
[ ] Major release; if selected, include a written rollout or migration plan
[ ] None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

[x] Added/updated tests
[x] Added/updated documentation
[x] Added/updated previews (Storybook)
[x] Changes are SSR compatible
[x] Tested in Chrome
[x] Tested in Firefox
[x] Tested in Safari
[x] Tested in Edge
[ ] (GitHub staff only) Integration tests pass at github/github (Learn more about how to run integration tests)

Sorry :pray: . I seem to have done a wonky-merge. Recreated the PR, feedback and conversation can be found here.

Copy+Pasting my last message:
Woop woop! 🎉
Thank you a billion for the feedback, @broccolinisoup. It really helps with the implementation and understanding what the aim is 🙏.
Here's how I suggest we fix this:
I kind of like the margin: 0 solution which forces the menu to the right. It is simple and works. However, when the container does not offer enough room (as the more button is left-aligned), I suggest we use getAnchoredPosition like you suggested.
I've updated the code to do the following:
If we do not have enough space:

We use getAnchoredPosition to position our elements. The only real combination I found that would work would be to combine {align: 'center', side: 'outside-left'}. But if I understand the [documentation correctly](https://github.com/primer/behaviors/blob/main/docs/anchored-position.md#positionsettings-interface), that should be the right setting for popovers/menus.

If we have enough space:

Keep using right: 0 to make it right-aligned.

Again, thanks for the feedback! If I missed something, or, misunderstood something - please let me know and ill get to it 🙏

To summarize the current fix, based on @broccolinisoup's feedback:

I moved the clientWidth calculation outside of the menuStyles to not force the getAnchoredPosition to run on each render.
Created a constant for the min-width called baseMenuMinWidth. The baseMenuMinWidth is now referenced as the value we check, use, or test the 192px min-width. That way, we only use a single value.
Created a simple constant for the base menuStyles called baseMenuStyles, which contains right: '0'.
Simplified the test case as the menuStyles is now simpler.
The getAnchoredPosition now uses {align: 'start', side: 'outside-bottom'} for placement.

Again, thank you for a clear response and great feedback. This has been fun working on (and I hope it did not cause too much overhead for you), and if there's something missing - let me know!

@joshblack I was testing https://github.com/primer/react/pull/4235, it cancels the deploy preview (fork) action in this PR. Do you happen to know why that is failing to run? Also what is the best way you recommend to debug cancelled actions? I usually have a hard time debugging them, well, because there is not much proper logs 🫠


Bump ledger.

This incorporates the following changes:

A rewrite of UnitInterval and other bounded types.
(https://github.com/input-output-hk/cardano-ledger-specs/pull/2343)
Fractional pricing for Plutus scripts. This is required because
otherwise even the simplest scripts were costing too much.
(https://github.com/input-output-hk/cardano-ledger-specs/pull/2347)
A few otherwise trivial changes (e.g. moving Cardano.Ledger.Address)

The Hydra failure is the golden tests catching a change in the serialization of a Shelley era (ie the predecessor of Allegra) LedgerState. There's a couple new TkTag 30s in there. I'm guessing the other ShelleyBased eras would also have failed if the Cardano golden tests had ran.

@nc6 The Hydra failure is the golden tests catching a change in the serialization of a Shelley era (ie the predecessor of Allegra) LedgerState. There's a couple new TkTag 30s in there. ~I'm guessing the other ShelleyBased eras would also have failed if the Cardano golden tests had ran.~
After clicking around in a very slow Hydra, I found the corresponding Cardano golden tests, and they do show that the other eras also have serialization changes. https://hydra.iohk.io/build/6833194/nixlog/2

@nfrisby thank you! I'm sad we did not catch this in our tests. The fix is here: https://github.com/input-output-hk/cardano-ledger-specs/pull/2368

bors merge

bors retry

bors retry


fixed typo

Docs Build status updates of commit b83c862:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/system-gesture.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


suggestion: hide the sunrise, sunset icons and time since\until

+1 request .
It's unnecessary for me too and it would be nice if it could be removed.


State,Link,Type mapping issues in jira to azure devops migration.

Describe the problem
We're doing Jira to Azure devops migration using solidify, while mapping the  types, states, links we're running into some issues.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Tool version

Version of the jira-azuredevops-migrator tool 2.3.117

Attachments
Please attach the following files:

config.json
jira-export-log.txt
wi-import-log.txt
jira-export-log-221109-140153.txt
wi-import-log-221109-140548.txt

Kindly help in mapping these things within the config.json file
Screenshots
If applicable, add screenshots to help explain your problem.

See the docs for a guide on mapping fields, and a few examples: https://github.com/solidify/jira-azuredevops-migrator/blob/master/docs/config.md


Add support for JavaScript with JSX

@deepgithub2014 This is implemented here https://github.com/rgbkrk/atom-script/blob/master/lib/grammars/javascript.js#L36.


Nomnoml Diagrams overflow on the page

I have the same issue described on the obsidian forum here and also here.

I’m trying to export a diagram I made with the Nomnoml Plugin (GitHub - Daeik/obsidian-nomnoml-diagram: Obsidian Plugin for nomnoml diagram 9), which I chose over Mermaid because I couldn’t figure out how to make the arrows shorter in Mermaid.
I’d like to export the diagram but it keeps overflowing (in the note and pdf), and you can’t see all of it, which is also a problem in the regular note view in Obsidian itself. Is this possible in some way, similar to how in the snippet in the discussion on the Mermaid export?

He doesn't seem to have recieved a reply. Is there an easy fix for this that I am unaware of?

I've managed to fix this issue somewhat (need to sort the invidual setting out instead of defaulting to the global). I'll push up a PR shortly.
Essentially nomnoml gives us the #zoom function, which I've added into the codebase. All it does is change the viewBox parameters based on the zoom parameter.
So if the zoom param was 2 and the viewBox was  (0 0 500 500) we just divide the width and height by that value.
If you do want to do it yourself here's the main.ts file. Clone this repo and then just replace it and then compile the typescript file with NPM run build and then add the main.js to the normnol plugin in the plugins folder.
If you don't want to compile it yourself I've also added my compiled js file.
normnol update.zip
Lemme know if this helped! :)


refactor: add an abstract builder in the JsonLdObject class

In this PR, we added an abstract builder in the JsonLdObject class to remove duplications between builders

Could you add the Closes #56 text in the PR script so when we'll merge it it will close the PR automatically?


Unable to Edit Connection v22.1.3

Description
After upgrading from 22.0.0, I am unable to edit any existing connections. Selecting Edit Connection from the context menu (or using F4) does nothing.
There have been no changes to file permissions on the DBeaver directory (presently set at Full Control)
DBeaver Version
Community Edition 22.1.3
Operating System
Windows 10 21H2
Database and driver
Oracle Database 11g Enterprise Edition Release <IP_ADDRESS>.0 using Oracle JDBC driver v<IP_ADDRESS>.0
Steps to reproduce
Highlight the desired connection, right-click and select Edit Connection - nothing happens.
Additional context
No response

Could you please send the log files? You can find instructions here: https://dbeaver.com/docs/wiki/Log-files/. Thank you.

It happens the same to me.
I can see the following error:
/usr/share/dbeaver-ce/jre/bin/java: symbol lookup error: /home/<my_user>/.eclipse/org.jkiss.dbeaver.product_22.1.4_302967072_linux_gtk_x86_64/configuration/org.eclipse.osgi/141/0/.cp/libswt-pi3-gtk-4952r11.so: undefined symbol: gtk_menu_popup_at_pointer

Log files attached. Two attempts made to edit connection at 15:11:xx.
Thanks for your efforts.
Cheers,
Andris
From: Anastasiya @.>
Sent: August 8, 2022 07:25
To: dbeaver/dbeaver @.>
Cc: Aplocins, Andris @.>; Author @.>
Subject: Re: [dbeaver/dbeaver] Unable to Edit Connection v22.1.3 (Issue #17279)
Could you please send the log files? You can find instructions here: https://dbeaver.com/docs/wiki/Log-files/https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdbeaver.com%2Fdocs%2Fwiki%2FLog-files%2F&data=05|01|andris.aplocins%40impsolutions.com|6f8534b0c7e8472e935e08da790f12bf|f039b4ccc92f4067964986bae9a224ed|1|1|637955402890737297|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|2000|||&sdata=ui3wyR9KWh8tJnV%2FSB4gMFbSgX3DIIqgbJGUYx5GqEY%3D&reserved=0. Thank you.

Reply to this email directly, view it on GitHubhttps://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdbeaver%2Fdbeaver%2Fissues%2F17279%23issuecomment-1207762761&data=05|01|andris.aplocins%40impsolutions.com|6f8534b0c7e8472e935e08da790f12bf|f039b4ccc92f4067964986bae9a224ed|1|1|637955402890737297|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|2000|||&sdata=qGWztRmnAmjyeI2OAxLWkKfNXLiOgI3nml6huB%2F888M%3D&reserved=0, or unsubscribehttps://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FA2MR3TOPWE2EDNYR27MTXSTVYCY3ZANCNFSM55XLOTXA&data=05|01|andris.aplocins%40impsolutions.com|6f8534b0c7e8472e935e08da790f12bf|f039b4ccc92f4067964986bae9a224ed|1|1|637955402890737297|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|2000|||&sdata=wiJc9qAwwZ%2FZgCEo0iUh4iRX2JvfZACBNKer7UDN9uc%3D&reserved=0.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

Please attach the log file here, on this GitHub page @DBNoobie
It doesn't work with e-mail

Files have been uploaded to Public Repository DBNoobiehttps://github.com/DBNoobie / DBeaverIssue17279https://github.com/DBNoobie/DBeaverIssue17279.
Cheers,
Andris
From: DBeaver PM @.>
Sent: August 11, 2022 13:58
To: dbeaver/dbeaver @.>
Cc: Aplocins, Andris @.>; Mention @.>
Subject: Re: [dbeaver/dbeaver] Unable to Edit Connection v22.1.3 (Issue #17279)
Please attach the log file here, on this GitHub page @DBNoobiehttps://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FDBNoobie&data=05|01|andris.aplocins%40impsolutions.com|df6c7c13e0fa4356494808da7ba1775d|f039b4ccc92f4067964986bae9a224ed|1|0|637958230667756116|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=DxkXlqdkU7v0bpEgnP5Puj%2BaoTNQpsN1F3b5a3gDPRY%3D&reserved=0
It doesn't work with e-mail

Reply to this email directly, view it on GitHubhttps://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdbeaver%2Fdbeaver%2Fissues%2F17279%23issuecomment-1212026539&data=05|01|andris.aplocins%40impsolutions.com|df6c7c13e0fa4356494808da7ba1775d|f039b4ccc92f4067964986bae9a224ed|1|0|637958230667912359|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=WAt1w3%2B2B%2FEfbuUdN7AQyMuUEToYHNexwcpH26t%2FR2Y%3D&reserved=0, or unsubscribehttps://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FA2MR3TPJL5LLTSEFRQCDMBTVYUBFNANCNFSM55XLOTXA&data=05|01|andris.aplocins%40impsolutions.com|df6c7c13e0fa4356494808da7ba1775d|f039b4ccc92f4067964986bae9a224ed|1|0|637958230667912359|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=7dyHkLd%2BeNYrvdht%2Fugk3obAKr0DPnp7xQlIMc7gl3Y%3D&reserved=0.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>

Thank you.
May be connected with https://github.com/dbeaver/dbeaver/issues/17305

The fix should be available in the future release. Please, let me know if the bug still exists.


nitcorn: fix path resolution for vararg routes

Routes with parameters like /blog/articles/:articleId where not matched correctly.
It worked until today and I'm not really sure how? Anyway, this PR resolve the route with request parameters before performing the match.
Also done some cleaning in warnings and doc.

+1


Allow defining private variables

Often, I need to define variables that are built from a smaller set of fundamental settings/variables. It would be useful to allow [private] to work on variables such that they can't be defined by the user of the script. Alternatively, the _ prefix could also be used such that just --variables avoids listing them.
Happy to work on a PR if this is something that will be accepted

Thanks for the report! Can you give an example of how a user redefining a variable would be a problem? I want to make sure  I understand the use-case.
I think allowing [private] on variables and, if present, not showing them in just --variables, would be pretty easy and reasonable.

Thanks @casey, I just finished migrating to just on my project so here you'll find examples where private variables would be nice to have (currently just using _ prefix)

My implementation above specifically doesn't filter out private assignments on evaluation since that's useful information. I think you're right that it would be useful to filter them out by default and have an extra flag to flip that behavior. I'll see if I can implement that today


Feedback and feature request

Okay so firstly this tool are really cool, i'm impressed how fast it is. This tool should be a standard built in tool in unity.
alright some request that could make this tool more awesome for artist

Add support for terrain( as normal source only), this could be usefull for blending mesh to terrain
Projection brush mode, so we can apply the projected normal from other mesh by painting the target mesh directly.

just one issue i find, sometimes the projection doesn't work

I'm trying to project the underlying plane normal into selected mesh to blend them, but the normal projection not working.
but maybe it's just me do something wrong, let me know what are your thought about this.
Oh forgot to add, issue found in 2017.1 f3
Thanks

sometimes the projection doesn't work

this is how current projection works:

shoot rays from vertices in editing mesh to normal direction
if ray hits Normal Source object, get normal at hit position and set it to editing mesh

therefore, Normal Source is expected to surround editing mesh. I know it's bit confusing. this functionality is added for very specific request from my colleague.
I think what you expected is "Y direction projection". I will add it as arbitrary direction projection.

Add support for terrain( as normal source only)
Projection brush mode

I will do it as well as arbitrary direction projection.

i'm impressed how fast it is

I'm glad to hear that. I made a lot of effort for it.

therefore, Normal Source is expected to surround editing mesh. I know it's bit confusing. this functionality is added for very specific request from my colleague.

I see, that's almost similar like 3dsmax/maya normal transfer/projection system. Then it make sense :)

I think what you expected is "Y direction projection". I will add it as arbitrary direction projection.
Yep something like that i think. Not sure which one is better, Y projection/transfer or blending normal with the normals around it that inside the spherical brush radius just like smooth brush i think but with addition of a base mesh for normal source.
I will do it as well as arbitrary direction projection.
Glad to hear all of that man, can't wait to see your update ( Oh no rush anyway :) ).

Oh i just remember this article, it have an example of blending custom mesh with terrain normal
https://madewith.unity.com/en/stories/how-we-created-immortal-rednecks-sand-rendering

I added new projection mode and projection brush and updated package.
keep in mind: projection brush is extremely compute-intensive and maybe very slow, especially if normal source is terrain (terrain is converted to mesh internally - it can be over 500k triangles. and do ray-triangle intersection test with it)


[AuthEvents Extension] Fix Changelog

Removing empty sections for release.

API change check
API changes are not detected in this pull request.


failed to reserve container name- increase in iops didn't worked

Description
Hi All,
Recently we have upgraded our eks cluster from 1.23 to 1.24, where docker container runtime is removed and containerd container runtime is running, post this upgraded activity we have observed that pods  are failing with below error, especially with bigger images ~4000MB size, so we have followed the solution given in https://github.com/containerd/containerd/issues/4604#issuecomment-1027293621 , however still no luck, could some please assist on this
Note: iops and throughput are with in limit and we dont see any spike
error
Error: failed to reserve container name
Steps to reproduce the issue

Describe the results you received and expected
Out put received
Events:
Type     Reason     Age                  From               Message

Normal   Scheduled  4m16s                default-scheduler  Successfully assigned to xxxxxxx
Warning  Failed     2m15s                kubelet            Error: context deadline exceeded
Warning  Failed     56s (x7 over 2m15s)  kubelet            Error: failed to reserve container name "example-database-pod-7c8966b6dhjbd8_v7_401407e8-12f2-41d5-95f3-487293d9e66f_0": name "example-database-pod_xxxx-v7-navitus-rxf-9287-example-database-pod-7c8966b6dhjbd8_v7_401407e8-12f2-41d5-95f3-487293d9e66f_0" is reserved for "c03c3f65ec9d800fc2a1595603cc09af42662d85f32265871ef3459a86dd4954"
expected result
Pod should come in to running state
What version of containerd are you using?
containerd://1.6.19
Any other relevant information
No response
Show configuration if it is related to CRI plugin.
No response

@yenne375 we faced a similar issue. our containerd version is 1.6.6. Could you let me know if you found any workaround?

https://github.com/containerd/containerd/issues/10515#issuecomment-2256773907 helps


Load dynamic data sources without using GraphQL

With this change, we load dynamic data sources by directly querying key data from the database and using the manifest we already have in memory to fill in the remainder of the data source.
This avoids using GraphQL, and also does not resolve data sources against IPFS redundantly, which should lead to a considerable speed up when starting subgraphs with a lot of dynamic data sources.
This branch sits on top of the lutter/indexing branch; since it touches parts of the system that are complex and very seinsitive to maintain correctness, I'd appreciate feedback on whether something about this approach is obviously wrong.

No idea why this was closed. It should now target master


Use set rather than list for unordered collections

I think a Set would be a more appropriate return type for this function.
Originally posted by @kierdavis in https://github.com/j5api/j5/pull/195

On second thoughts, a BoardGroup already has a defined order, so I think we should stick to a list for BoardGroup.boards.
However, there's still quite a few places where it would be better to use a set rather than a list e.g. Backend.discover, Board.supported_components. I'm going to repurpose this issue.

Related to #23

I have some WIP stuff for this, will open a PR soon.


schedtool: fix build with gcc 13

error: pointer/integer type mismatch in conditional expression [-Wint-conversion]

Fixes build with GCC 13.
CC https://github.com/NixOS/nixpkgs/pull/367927
CC @paparodeo @Artturin

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

seems ok. whether an int or a pointer I believe that both are treated as the same size for a variadic function, and it is sign extended with intptr_t so that LGTM.

tho I think the spec only says things are promoted to ints and don't think that anything says int -> 8 bytes eventho that seems what happens on x64 linux. I might just split it into two function calls and just not have to think about it
diff --git a/schedtool.c b/schedtool.c
index d55f9ce..76ab472 100644
--- a/schedtool.c
+++ b/schedtool.c
@@ -422,19 +422,17 @@ int set_process(pid_t pid, int policy, int prio)
 	struct sched_param p;
 	int ret;

-	char *msg1="could not set PID %d to %s";
-	char *msg2="could not set PID %d to raw policy #%d";
-
 	p.sched_priority=prio;

 	/* anything other than 0 indicates error */
 	if((ret=sched_setscheduler(pid, policy, &p))) {

                 /* la la pointer mismatch .. lala */
-		decode_error((CHECK_RANGE_POLICY(policy) ? msg1 : msg2),
-			     pid,
-			     (CHECK_RANGE_POLICY(policy) ? TAB[policy] : policy)
-			    );
+		if (CHECK_RANGE_POLICY(policy)) {
+			decode_error("could not set PID %d to %s", pid, TAB[policy]);
+                } else {
+			decode_error("could not set PID %d to raw policy #%d", pid, policy);
+                }
 		return(ret);
 	}
 	return(0);

I might just split it into two function calls and just not have to think about it

That's actually a better approach, but I thought I should make this change as minimal as possible, to avoid vendoring patches for an outdated software.
Ideally we should remove this along with ananicy (not cpp) at some point.


fix: Form components default value being called at rebuild

#__
Checklist

[ ] I didn't over-scope my PR
[ ] My PR title matches the commit convention
[ ] I did not include breaking changes
[ ] I included unit tests that cover my changes
[ ] I added/updated the documentation about my changes
[ ] I made my own code-review before requesting one

Description of the changes

Technical highlight/advice

:tada: This PR is included in version 1.0.0-beta.85 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0-alpha.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Switch to using Django's native JSONField for Django>1.9

Done, mostly in 2982414bff6579aaa907e8122c08881dfbf09f82


Option to include CommunityToolkit NuGet package, ResourceDictionary …

Option to include CommunityToolkit NuGet package in Class Library project
ResourceDictionary item template (with and without code-behind)
Branding icon

Added solution file generation while creating a new class library project from CLI.


Test in IE11

https://stackoverflow.com/questions/11536638/how-can-i-format-decimal-to-currency-format-in-mustache/27794981?noredirect=1#comment102368195_27794981

Internet Explorer 11 is going end of life on June 15, 2022


Convolutions' padding - student/teacher model

Hi! I want to congratulate with you for the implementation of EfficientAD, thank you for your work. I would like to better understand some parts of your implementations, specifically the student/teacher model. In the paper the model has a fixed value for the padding in the convolutions resulting in an output with the shape 384x64x64, instead in your implementation the padding is set by the boolean's variable and the output's shape might be different (384x56x56). Is there a reason behind it?

Yes it is to follow the paper where padding can be disabled to speed up the inference.

Yes it is to follow the paper where padding can be disabled to speed up the inference.
Why pad 4 pixels before resizing instead of resizing directly。
map_combined = torch.nn.functional.pad(map_combined, (4, 4, 4, 4))


True source for the custom code

As lovely as it is to receive a credit I don't think I deserve this one.
I think you probably got the custom code functionality from: https://github.com/IxxyXR/Parametric-VFX
and then simplified it to remove all the preset formula stuff. If so - I basically got the custom code feature from @peeweek: https://github.com/peeweek/net.peeweek.vfxgraph-extras/tree/master/Editor/Blocks/CustomCode
and added in the stuff you later removed! So you've basically just returned it to the state I found it in ;-)
Which reminds me. I should probably credit my source in the readme there. I always intended to do more with that project but I got sidelined.

oh hey there. no harm, no foul! I have heard of @peeweek of course but i haven't seen his github repos. i appreciate the background on this and i will add a credit for the custom code block.


ItemsRepeater can't scroll manually using ChangeView when used in ScrollViewer

Describe the bug
Hi, I'm using ItemsRepeater, and surrounded in a ScrollViewer. I have disabled ScrollViewer's HorizontalScrollMode and VerticalScrollMode. And I want to use ChangeView method to scroll.
But it doesn't works.
However, ScrollToHorizontalOffset/ScrollToVerticalOffset works.
Steps to reproduce the bug

Steps to reproduce the behavior:
<Grid>
                    <muxc:ItemsRepeaterScrollHost Margin="12" Loaded="ItemsRepeaterScrollHost_Loaded">
                        <ScrollViewer
                            x:Name="sss"
                            VerticalScrollBarVisibility="Hidden"
                            HorizontalScrollBarVisibility="Hidden"
                            VerticalScrollMode="Disabled"
                            HorizontalScrollMode="Disabled">
                            <muxc:ItemsRepeater
                                x:Name="HorizontalRepeater"
                                ItemsSource="{x:Bind product}"
                                ItemTemplate="{StaticResource HorizontalTemplate}">
                                <muxc:ItemsRepeater.Layout>
                                    <muxc:StackLayout Orientation="Horizontal" Spacing="12"/>
                                </muxc:ItemsRepeater.Layout>
                            </muxc:ItemsRepeater>
                        </ScrollViewer>
                    </muxc:ItemsRepeaterScrollHost>
                    <Button
                        x:Name="ButtonLeft"
                        Tapped="ButtonLeft_Tapped">
                        <FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" FontSize="18" />
                    </Button>

                    <Button x:Name="ButtonRight"
                        Tapped="ButtonRight_Tapped">
                        <FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" FontSize="18" />
                    </Button>
                </Grid>

Then use this code to scroll.
sss.ChangeView(sss.ActualWidth, null, null); This code does't not work.
But sss.ScrollToHorizontalOffset(sss.ActualWidth); works.
Expected behavior

ItemsRepeater can scroll left/right using ChangeView method.
Screenshots

Version Info

OS: 18362.418
And a weird thing is, I actually saw this bug on 18362. But last night I upgrade my pc to 1909(18363.476), ChangeView method works.
NuGet package version:

Microsoft.UI.Xaml: 2.2.190917002

Windows 10 version
Saw the problem?

Insider Build (xxxxx)

May 2019 Update (18362)
Yes

October 2018 Update (17763)

April 2018 Update (17134)

Fall Creators Update (16299)

Creators Update (15063)

Device form factor
Saw the problem?

Desktop
Yes

Mobile

Xbox

Surface Hub

IoT

Additional context

In 18362(1903) or lower, ScrollToHorizontalOffset/ScrollToVerticalOffset works.
In 18363(1909), ChangeView and ScrollToHorizontalOffset/ScrollToVerticalOffset works.
So for a better compatible， ScrollToHorizontalOffset/ScrollToVerticalOffset is the best choice, although this api is out of date.

@ranjeshj is the problem that downlevel the customer needs the ItemsRepeaterScrollHost?

Oops I see it in the repro. Ok, @Ranjeshj can you investigate?

@RBrid  - Is this expected behavior with ScrollViewer ? I know that setting some properties on ScrollViewer stop it from scrolling through interaction but i dont remember of the top of my head. Is that the same for using the APIs as well ?

@ranjeshj, no - there is no way to turn off programmatic view changes, like for user interactions.
The first key questions to answer are:

when the call is made, what are the values of
sss.ActualWidth
sss.ViewportWidth
sss.ScrollableWidth
?
what is the return value of ChangeView?  True or False?
is a finger down on the ScrollViewer when the call is made?  (is the call triggered by a user gesture?)

Thanks.


(Experimenting) Re-introduce panic to result

Experimental, please do not approve.
Release note:

NONE

This change is

@ozevren: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/mixer-e2e-smoketest.sh
9b9f4bf43884de2908ea4897c803a23e8fbaba85
link
@istio-testing smoke test this

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

/retest

/retest all

/test all

@ozevren: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/mixer-e2e-smoketest.sh
9b9f4bf43884de2908ea4897c803a23e8fbaba85
link
@istio-testing smoke test this

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

@ozevren: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/mixer-e2e-smoketest.sh
b0d8c2a1cf9d7d204ee03bfefb1abd977343ca67
link
@istio-testing smoke test this

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

/test all


UB in the vulkano example

Just wanting to inform you, that the vulkano example has been updated since the fork for sdl3 happened.
https://github.com/Rust-SDL2/rust-sdl2/issues/1340
https://github.com/Rust-SDL2/rust-sdl2/pull/1354

Great! Would you like to cherry-pick or update the example code here?


New API for mic capture

I realized it's silly to have two separate ring buffer abstractions. Nicer to back mic capture by a proper SoundData. Then I can even move that over a channel to another thread, and read from it without a lock! (E g move mic data directly from audio thread to network thread, without touching main thread).
I think the API is nicer too.
This is based on top of https://github.com/bjornbytes/lovr/pull/347 .

I have some minor commits that are not related to new API for mic capture that I'm going to add here because they're small and I don't want a fourth PR going for such small stuff :S

I have some minor commits that are not related to new API for mic capture that I'm going to add here because they're small and I don't want a fourth PR going for such small stuff :S

This PR now includes all my outstanding miniaudio changes, and has merged my review fixes from miniaudio-devices

This PR now includes all my outstanding miniaudio changes, and has merged my review fixes from miniaudio-devices

@bjornbytes This is ready for review if you're happy with https://github.com/bjornbytes/lovr/pull/347

@bjornbytes This is ready for review if you're happy with https://github.com/bjornbytes/lovr/pull/347

@bjornbytes I've merged latest miniaudio-new into this so this is ready to be reviewed/merged :)

@bjornbytes I've merged latest miniaudio-new into this so this is ready to be reviewed/merged :)


named-context

I was looking over the named-context PR, and instead of making a bunch of comments, I'm opening this PR to see if you agree with some of the refactoring.
I split it into a few commits. There is one open question that I'm not sure about, and I think the first commit makes the case more obvious.

The main problem here seems to be that imageContexts was never meant to be an independent logical structure. These methods would make more sense if they were just part of Builder. I wanted to group them together for readability. Adding a public interface or limiting the dependency to specific methods was never a goal. I don't think contextsBackend improves readability or accessing actual private structures inside pkg is bad.
Moving things to their own function(parseContextName, getFromImage) while that function is only called once seem like optional to me and could be a refactoring later.
While I'm not particularly proud of the original code I don't think this improves the situation much. Plus it is longer.
I think separating. new(increment) to newImageMount()+add() is better. I could also move the imagecontext to Builder directly if you think that helps.

Cool, I'm going to LGTM your PR, and I can submit this as  PR to docker/docker after it merges

Thanks!


ARTEMIS-4642 Fix tracked federated demand when links are rejected or …

…blocked
Under some scenarios federation demand tracking is losing track of total demand for a federated resource leading to teardown of federated links before all local demand has been removed from the resource. This occurs most often if the attempts to establish a federation link are refused because the resource hasn't yet been created and an eventual attach succeeds, but can also occur in combination with a plugin blocking or not blocking federation link creation in some cases.

Ran the tests in CI and looks good


Explore goplayground's validator

Validation is an important topic for this library, as proven by some of the PRs received by the community, such as #38 and #10.
I would like to explore the possibility to integrate goplayground's validation library as a mean to offer more complete support for json schema validation.

Having used that library, it would make sense +1

Validation will be re-evaluated in the future trying a different approach, so I am deprecating this issue.


MB-2424 | Adding RDS-2017 to container

Warnings

:warning:
Please include a description of your PR changes.

Messages

:book:
:link: MB-2424

  Generated by :no_entry_sign: dangerJS against 409bdfd248b9fcb91074f9c51863b021590e8c75

Got confirmation this passes locally also.


fix: dnat can't take effect when dnat eIP is equal to floatingip eIP,

What type of this PR

Bug fixes

whether dnatrules chain（SHARED_DNAT） should have priority.

@fanriming can you help to review this pr?

@xujunjie-cover
Configuring floatingIP means that the EIP is instance-exclusive. That is, the EIP is configured with both DNAT and SNAT full-port mapping rules to the back-end instance.
The EIP used as floatingIP cannot be used in single-port DNAT rules. Therefore, the EXCLUSIVE_DNAT priority is higher than that of SHARED_DNAT.


added basic footer

hey i just added a basic footer with some social icons now you can add links of your social media closes#18

There is some conflicts Could you please resolves that

can uh pls elaborate the issue


Analytics server not found" when using log analyzer

Refer https://wso2.org/jira/browse/WUM-13
Dear WSO2 team,
What do i miss when i'm trying to use Log Analyzer then open log analyzer at Api Manager : admin, and there is show an exception Analytics Server Not Found, even thoughi already install Api Manager Analytics.
need help please from WSO2 team.
thanks

This feature has been deprecated from APIM 2.2.0 onwards and won't be available in APIM 3.0.0


Add Sklearn tutorial.

Summary:
Add a new notebook with a tutorial on how to use BaaL with a sklearn estimator.
Features:

New ActiveNumpyArray, similar to ALDataset but for np array.

Checklist:

[x] Your code is documented (To validate this, add your module to tests/documentation_test.py).
[x] Your code is tested with unit tests.
[ ] You moved your Issue to the PR state.

Looks good to me for now! In the future, should we add a SklearnModelWrapper that implements making predictions & getting the rankings similar to our Pytorch modelwrapper?


Functions App missing

the script doesn't export (CDN and Function App) and I also noticed that some Key Vaults are missing however I have contribute role on them

Hi @mahfathymahmoud,
Function App is reported inside the App Service sheet. I believe we don't do CDN yet...
The Key Vaults missing is odd. Can you check if the missing ones have the same type "microsoft.keyvault/vaults" ?


[ ERROR ] Error in file Setting 'Test Teardown' used multiple times.

Robot Framework 3.0 (Python 2.7.12 on win32)
*** Settings ***
Test Teardown       CleanUp
Force Tags  SanityCheck
Resource        ./Settings/f1.robot
Resource        ./Settings/f2.robot
*** Test Cases ***
Valid Login Low Level
Given Login Page Is Displayed
When Login Using A Valid Username And Password    ${user}    ${password}
Then Home Page Is Displayed And Logout Link Enabled
[Teardown]  Logout
While i am parsing the file robot , i having this ERROR : [ ERROR ] Error in file Setting 'Test Teardown' used multiple times.
Is it really an error, from the Parser ? do i have an errror from my robot file ?

There doesn't seem to be anything wrong with this example. Is this the exact same file that causes the error?

yes, it's is the exact same file that causes the error ? Besides this error, i have an another one almost closed to : [ ERROR ] Error in file Setting 'Force Tags' used multiple times.
I guess due to this error, the Fixture Test/Suite Teardown/Setup are not initiate properly

I don't get that error when I test the provided example. Referenced resource files obviously don't exist, but resource files cannot contain Test Teardown settings at all.
Could you please provide an example I can run on my own system that demonstrates this problem? The example shouldn't contain references to resource files, libraries, or keywords only available on your environment.

Thanks for your time to investigate : "but resource files cannot contain Test Teardown settings at all."
However, the Parser Robot, doesn't initiate the Fixture Test/Suite Setup/Teardon...
is there a patch for Robot Framework 3.0 (Python 2.7.12 on win32) ?

If you have Test Teardown in a resource file, you should get Non-existing setting 'Test Teardown'. error. Please double check the data you use. If you then are certain you get a wrong error somewhere, please provide an example demonstrating the problem that others can execute too.

Any new information about this?

Thanks for your concern... i am still investigating why i have this Error message. I let you know why ... if i found out

No new info since October, closing. Please comment here or open a new issue if you have more information and are sure this is caused by a bug in Robot.

Hi all,
I am getting this issue ' Setting '[Return]' used multiple times.' when I run my cases which call resources having keywords with multiple return statements. below is example of the keyword in that resource file
Check xyz when customer has mobile limit value
${line}=  Get Text  xpath=(//div[2]/div[1]/table/tbody/tr[7]/td[2])[1]
@{list}=  Split String  ${line}
Set Test Variable  ${abc}  @{list}[1]
[Return]  ${abc}
${kdef}=  Remove String  @{list}[1]  ,
[Return]  ${kdef}
Set Suite Variable  ${kdef}
Should be equal  ${kdef}  55.00
Sleep  1
${line}=  Get Text  xpath=(//div[2]/div[1]/table/tbody/tr[7]/td[2])[1]
@{list}=  Split String  ${line}
Set Test Variable  ${xyz}  @{list}[2]
[Return]  ${xyz}
Set Suite Variable  ${xyz}
Should be equal  ${xyz}  contract
Close Browser

You can only use [Return] once. If you have multiple points where'd you like to return, use Return From Keyword or Return From Keyword If keywords.


[CSL-1453] Remove optparse-{simple,text} & scotty from cardano

This juicy PR removes 3 deps and their direct "unique deps". In particular, we are dropping:

nats
regex-compat
scotty
optparse-simple
either
gitrev
optparse-text

This required depending on the latest version of the cardano-report-server. Last but not least, I had to remove turtle (again) as it was used by the cardano-postmortem tool.

I updated YT.


CHEBI:57965, the current structure is wrong

Hi,
The structure of CHEBI:57965, deacetoxyvindolinium(1+) has an error in the stereo configuration of C11 (IUPAC numbering according to http://www.chem.qmul.ac.uk/iubmb/enzyme/reaction/alkaloid/alknos/vindol.html).
The bond should go up not down. I have attached the correct structure as mol file.
CHEBI_57965.txt
See also CHEBI:58485, (3R)-3-hydroxy-16-methoxy-2,3-dihydrotabersonine, that is linked to CHEBI:57965 by EC <IP_ADDRESS>.
Cheers,
Kristian

Now corrected - thanks for letting us know!


created FluidFilesPath and a test file

From Issue #40
A class for easily accessing the Fluid example audio files.
See test file for use case example

I think we'll need to test on all 3 platforms, right? It works well on MacOS for now.
To be in line with the rest we should add a .schelp file for it I think.

To be in line with the rest we should add a .schelp file for it I think.

For sure. I'm still suggesting this as an interface and a tool. It's still open for debate.

I love it.


Improve CONTRIBUTING guidelines

List of maintainers is now a list
Grammar corrections

It's a pity github usernames are not linked, but I think it's not possible…
lgtm

Edited to include the links.

Makes sense :)

This would invalidate #150 - we need to just make a choice.

Either branch is okay :)
I would rather go with this one, as it has the links for the usernames?

LGTM


iOS12.1 pod导入SDK之后启动闪退，其他机型启动正常

可能和其它sdk产生的关联问题，请排查下。

demo也是这样呢

Hello, I also found that the SDK does not support iOS 12 system, causing the app to crash every time it is opened. I noticed in the gomobile documentation that there is mention of the -iosversion option, which defaults to 13.0. After modifying it to 12.0 and recompiling, the app can run normally. Please note that this method is for reference only, and thorough testing is recommended. You can find information about gomobile at<EMAIL_ADDRESS>You need to modify the compilation instructions for iOS in the openim-sdk-core/Makefile at line 221, adding -iosversion 12.0. After modification, it should look like this: GOARCH=arm64 gomobile bind -v -trimpath -iosversion 12.0 -ldflags "-s -w" -o build/OpenIMCore.xcframework -target=ios ./open_im_sdk/ ./open_im_sdk_callback/.


[Delayed Merge] [OSF Institutions] Sync the institution script with database [No Ticket]

Purpose
cc @mfraezz , @pattisdr , @felliott and @mattclark
Synchronize the institution populating script with OSF DB changes that are directly made from the OSF Admin APP.
There are two ways to add a new or modify an existing institution: either by running the institution populating script scripts/populate_institutions.py on the server or by using the OSF Admin APP.
Every time the script is run, any changes made directly via the Admin APP since last run will be permanently lost. This PR keeps track of Admin APP changes and updates the script timely and it must be merged before running the script again (e.g. adding new institutions via PR and the script) and a new PR for the same purpose needs to be prepared. An alternative way is to cherry pick all the commits while keeping the PR open.
This is a temporary solution during the process of transferring from the script to the Admin APP. The key blocker now is that the assets (banner and shields) still needs go to via an OSF PR.
Changes

2019-08-06: updated description for OU (The University of Oklahoma)

QA Notes
N/A
Documentation
N/A
Side Effects
N/A
Ticket
No Ticket

Ticket closed. Will try another approach so we can update only the institution(s) we need when running the script.


added Rucky

Thank you for contributing! Please confirm this pull request meets the following requirements:

[x] I followed the contributing guidelines: https://github.com/github/explore/blob/master/CONTRIBUTING.md
[x] I have no affiliation with the project I am suggesting (as a maintainer, creator, contractor, or employee).

Which change are you proposing?

[x] Suggesting edits to an existing topic or collection
[ ] Curating a new topic or collection
[ ] Something that does not neatly fit into the binary options above

Editing an existing topic or collection
I'm suggesting these edits to an existing topic or collection:

[ ] Image (and my file is *.png, square, dimensions 288x288, size <= 75 kB)
[x] Content (and my changes are in index.md)

Added topic Rucky to collection Made-in-india.

Curating a new topic or collection

[ ] I've formatted my changes as a new folder directory, named for the topic or collection as it appears in the URL on GitHub (e.g. https://github.com/topics/[NAME] or https://github.com/collections/[NAME])
[ ] My folder contains a *.png image (if applicable) and index.md
[ ] All required fields in my index.md conform to the Style Guide and API docs: https://github.com/github/explore/tree/master/docs

This is a great app from India and it can be featured in Made in India collections because of its uniqueness. It is first Made In India Android based security tool that even featured on Kali Linux Nethunter and is used by many security folks like me.

Something that does not neatly fit into the binary options above

[ ] My suggested edits are not about an existing topic or collection, or at least not a single one
[ ] My suggested edits are not about curating a new topic or collection, or at least not a single one
[ ] My suggested edits conform to the Style Guide and API docs: https://github.com/github/explore/tree/master/docs

Please replace this line with an explanation of your proposed changes.

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.

Thanks for your contribution @hackieNull. We would need a few changes on this PR:

Please move the contribution to the end of the list.
The rucky topic doesn't seem to be used on any repositories, so curating it would not be useful for the community. Please remove this. Once there is enough usage of this by the community, it can be curated again if required.

@hackieNull
Per our contribution guidelines (seen here: https://github.com/github/explore/blob/main/CONTRIBUTING.md#curating-a-new-topic-or-collection):

Valuable topics, for example, include those that are already widely used by repositories and could benefit from the addition of important information.

rucky is not a widely used topic, in fact zero repositories have it as a topic currently.
This does not mean it can't be added to the collection. If you would still like to add it to the made-in-india collection, please remove the topic and image from this PR.

Did the changes, how these changes work. Thanks.

@hackieNull can you update your fork with the latest master? There is a fix there for the failing CI test.

Done


diopser: init at unstable-2021-5-13

Motivation for this change
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Added a release notes entry if the change is major or breaking
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 123931 at 96401204 run on x86_64-linux 1

1 package built successfully:

diopser

1 suggestion:

warning: missing-phase-hooks
installPhase should probably contain runHook preInstall and runHook postInstall.
Near pkgs/applications/audio/diopser/default.nix:66:3:
   |
66 |   installPhase = ''
   |   ^


Incompatibility with JRuby when writing a workbook

Hi weshatheleopard,
with this simple script, pastable into an irb console, I get the exception:
Java::OrgW3cDom::DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
require "rubyXL"
workbook  = RubyXL::Workbook.new
worksheet = workbook.add_worksheet('abc')
worksheet.add_cell(0,0,"A1")
workbook.write('/tmp/abc.xlsx')

I found this to happen on all four combinations of RubyXL 3.1.2 and 3.3.8 with JRuby 1.7.19 and <IP_ADDRESS>.pre2
So I think it's not a new problem.
Or do I use the gem horribly wrong?
Kind regards,
Heiko Seebach

See Issue #135.

I've debugged it up to the line https://github.com/weshatheleopard/rubyXL/blob/master/lib/rubyXL/objects/ooxml_object.rb#L300 where cp:coreProperties/, where there's a file written called core.xml.
MRI and JRuby then both call https://github.com/sparklemotion/nokogiri/blob/master/lib/nokogiri/xml/document.rb#L82 with the name cp:coreProperties and the args
    [0] {
              "xmlns:cp" => "http://schemas.openxmlformats.org/package/2006/metadata/core-properties",
              "xmlns:dc" => "http://purl.org/dc/elements/1.1/",
         "xmlns:dcterms" => "http://purl.org/dc/terms/",
        "xmlns:dcmitype" => "http://purl.org/dc/dcmitype/",
             "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance"
    }

but MRI creates the element, while JRuby throws the exception:
Java::OrgW3cDom::DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
Maybe this helps in any way?

Can you please try the most recent version with JRuby? Namespace handling has been reworked, so hopefully this issue might disappear.

Hi, I've just tried the current master branch with JRuby 1.7.21 and I'm sorry to say that the error still exists when executing the above example:
...
jruby-1.7.21 :005 > workbook.write('/tmp/abc.xlsx')
Java::OrgW3cDom::DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
	from org.apache.xerces.dom.ElementNSImpl.setName(Unknown Source)
	from org.apache.xerces.dom.ElementNSImpl.<init>(Unknown Source)
	from org.apache.xerces.dom.CoreDocumentImpl.createElementNS(Unknown Source)
	from nokogiri.XmlNode.init(XmlNode.java:343)
	from nokogiri.XmlNode.rbNew(XmlNode.java:298)
	from nokogiri.XmlNode$INVOKER$s$0$0$rbNew.call(XmlNode$INVOKER$s$0$0$rbNew.gen)
	from org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:218)
	from org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:211)
	from org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:217)
	from org.jruby.ast.CallTwoArgBlockPassNode.interpret(CallTwoArgBlockPassNode.java:62)
	from org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123)
	from org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105)
	from org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	from org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
	from org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:268)
	from org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:235)
... 229 levels...
	from org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
	from org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
	from org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:182)
	from org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:203)
	from org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:326)
	from org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:170)
	from home.hk.$_dot_rvm.rubies.jruby_minus_1_dot_7_dot_21.bin.irb.__file__(/home/hk/.rvm/rubies/jruby-1.7.21/bin/irb:13)
	from home.hk.$_dot_rvm.rubies.jruby_minus_1_dot_7_dot_21.bin.irb.load(/home/hk/.rvm/rubies/jruby-1.7.21/bin/irb)
	from org.jruby.Ruby.runScript(Ruby.java:867)
	from org.jruby.Ruby.runScript(Ruby.java:860)
	from org.jruby.Ruby.runNormally(Ruby.java:729)
	from org.jruby.Ruby.runFromMain(Ruby.java:578)
	from org.jruby.Main.doRunFromMain(Main.java:395)
	from org.jruby.Main.internalRun(Main.java:290)
	from org.jruby.Main.run(Main.java:217)
	from org.jruby.Main.main(Main.java:197)
jruby-1.7.21 :006 >

Please also try this branch: https://github.com/weshatheleopard/rubyXL/tree/jruby_test

I'm sorry to say: still the same problem
Btw, it's so easy to use jruby, see http://jruby.org/getting-started or just rvm install jruby

I tried older version nokogiri. It seems to be success to output.
jruby <IP_ADDRESS>
rubyXL (3.3.20)
nokogiri (1.4.4-java)

Hi,
I get similar error while trying to write xlsx using jruby. Is there any workable solution? Any suggestion greatly appreciated.
workbook = RubyXL::Workbook.new
worksheet = workbook.add_worksheet('somesheet')
worksheet.insert_row(1)
worksheet.add_cell(0,0,'A1')
workbook.write("/path/output.xlsx")
nokogiri 1.10.7 (java) (tried downgrading as well)
jruby <IP_ADDRESS> (2.5.0)
ruby 2.5.1p57
java version "1.8.0_181"
Unhandled Java exception: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
setName at org/apache/xerces/dom/ElementNSImpl:-1
 at org/apache/xerces/dom/ElementNSImpl:-1
createElementNS at org/apache/xerces/dom/CoreDocumentImpl:-1
init at nokogiri/XmlNode.java:340
rbNew at nokogiri/XmlNode.java:298
call at nokogiri/XmlNode$INVOKER$s$0$0$rbNew.gen:-1
call at org/jruby/internal/runtime/methods/DynamicMethod.java:214
call at org/jruby/runtime/callsite/CachingCallSite.java:209
invokeOther20:new at usr/local/Cellar/jruby/$9_dot_2_dot_0_dot_0/libexec/lib/ruby/gems/shared/gems/nokogiri_minus_1_dot_10_dot_7_minus_java/lib/nokogiri/xml//usr/local/Cellar/jruby/<IP_ADDRESS>/libexec/lib/ruby/gems/shared/gems/nokogiri-1.10.7-java/lib/nokogiri/xml/document.rb:89
create_element at /usr/local/Cellar/jruby/<IP_ADDRESS>/libexec/lib/ruby/gems/shared/gems/nokogiri-1.10.7-java/lib/nokogiri/xml/document.rb:89
call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:75
call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:124
call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:219
call at org/jruby/internal/runtime/methods/DynamicMethod.java:218
call at org/jruby/runtime/callsite/CachingCallSite.java:230
invokeOther72:create_element at usr/local/Cellar/jruby/$9_dot_2_dot_0_dot_0/libexec/lib/ruby/gems/shared/gems/rubyXL_minus_3_dot_4_dot_11/lib/rubyXL/objects//usr/local/Cellar/jruby/<IP_ADDRESS>/libexec/lib/ruby/gems/shared/gems/rubyXL-3.4.11/lib/rubyXL/objects/ooxml_object.rb:304
write_xml at /usr/local/Cellar/jruby/<IP_ADDRESS>/libexec/lib/ruby/gems/shared/gems/rubyXL-3.4.11/lib/rubyXL/objects/ooxml_object.rb:304
call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:75
call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:98
call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:154
call at org/jruby/internal/runtime/methods/DynamicMethod.java:202
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:344
call at org/jruby/runtime/callsite/CachingCallSite.java:170
invokeOther51:write_xml at usr/local/Cellar/jruby/$9_dot_2_dot_0_dot_0/libexec/lib/ruby/gems/shared/gems/rubyXL_minus_3_dot_4_dot_11/lib/rubyXL/objects//usr/local/Cellar/jruby/<IP_ADDRESS>/libexec/lib/ruby/gems/shared/gems/rubyXL-3.4.11/lib/rubyXL/objects/ooxml_object.rb:275
write_xml at /usr/local/Cellar/jruby/<IP_ADDRESS>/libexec/lib/ruby/gems/shared/gems/rubyXL-3.4.11/lib/rubyXL/objects/ooxml_object.rb:275
call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:75
call at org/jruby/internal/runtime/methods/CompiledIRMethod.java:85
call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:121
call at org/jruby/internal/runtime/methods/DynamicMethod.java:194
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:323
call at org/jruby/runtime/callsite/CachingCallSite.java:139
processCall at org/jruby/ir/interpreter/InterpreterEngine.java:344
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:72
interpret at org/jruby/ir/interpreter/InterpreterEngine.java:84
INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:169
call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:156
call at org/jruby/internal/runtime/methods/DynamicMethod.java:202
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:344
call at org/jruby/runtime/callsite/CachingCallSite.java:170
invokeOther4:add_to_zip at usr/local/Cellar/jruby/$9_dot_2_dot_0_dot_0/libexec/lib/ruby/gems/shared/gems/rubyXL_minus_3_dot_4_dot_11/lib/rubyXL/objects//usr/local/Cellar/jruby/<IP_ADDRESS>/libexec/lib/ruby/gems/shared/gems/rubyXL-3.4.11/lib/rubyXL/objects/root.rb:51
block in stream at /usr/local/Cellar/jruby/<IP_ADDRESS>/libexec/lib/ruby/gems/shared/gems/rubyXL-3.4.11/lib/rubyXL/objects/root.rb:51
yieldDirect at org/jruby/runtime/CompiledIRBlockBody.java:162
yieldDirect at org/jruby/runtime/MixedModeIRBlockBody.java:126
yield at org/jruby/runtime/BlockBody.java:114
yield at org/jruby/runtime/Block.java:165
select_bang at org/jruby/RubyArray.java:2658
call at org/jruby/RubyArray$INVOKER$i$0$0$select_bang.gen:-1
call at org/jruby/internal/runtime/methods/JavaMethod.java:537
call at org/jruby/runtime/callsite/CachingCallSite.java:80
callIter at org/jruby/runtime/callsite/CachingCallSite.java:89
interpret at org/jruby/ir/instructions/CallBase.java:519
processCall at org/jruby/ir/interpreter/InterpreterEngine.java:360
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:72
INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:129
commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:153
doYield at org/jruby/runtime/IRBlockBody.java:187
yield at org/jruby/runtime/BlockBody.java:116
yield at org/jruby/runtime/Block.java:165
each at org/jruby/RubyArray.java:1801
call at org/jruby/RubyArray$INVOKER$i$0$0$each.gen:-1
call at org/jruby/internal/runtime/methods/JavaMethod.java:537
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:301
call at org/jruby/runtime/callsite/CachingCallSite.java:82
callIter at org/jruby/runtime/callsite/CachingCallSite.java:89
interpret at org/jruby/ir/instructions/CallBase.java:519
processCall at org/jruby/ir/interpreter/InterpreterEngine.java:360
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:72
INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:129
commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:153
doYield at org/jruby/runtime/IRBlockBody.java:187
yield at org/jruby/runtime/BlockBody.java:116
yield at org/jruby/runtime/Block.java:165
yield at org/jruby/ir/runtime/IRRuntimeHelpers.java:459
interpret at org/jruby/ir/instructions/YieldInstr.java:83
processOtherOp at org/jruby/ir/interpreter/StartupInterpreterEngine.java:179
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:104
INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:103
call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:90
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:301
call at org/jruby/runtime/callsite/CachingCallSite.java:82
callIter at org/jruby/runtime/callsite/CachingCallSite.java:89
interpret at org/jruby/ir/instructions/CallBase.java:519
processCall at org/jruby/ir/interpreter/InterpreterEngine.java:360
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:72
interpret at org/jruby/ir/interpreter/InterpreterEngine.java:78
INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:136
call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:123
call at org/jruby/internal/runtime/methods/DynamicMethod.java:194
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:323
call at org/jruby/runtime/callsite/CachingCallSite.java:139
processCall at org/jruby/ir/interpreter/InterpreterEngine.java:344
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:72
INTERPRET_BLOCK at org/jruby/ir/interpreter/Interpreter.java:129
commonYieldPath at org/jruby/runtime/MixedModeIRBlockBody.java:153
doYield at org/jruby/runtime/IRBlockBody.java:187
yield at org/jruby/runtime/BlockBody.java:116
yield at org/jruby/runtime/Block.java:165
ensureYieldClose at org/jruby/RubyIO.java:1185
open at org/jruby/RubyIO.java:1179
call at org/jruby/RubyIO$INVOKER$s$0$0$open.gen:-1
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:301
call at org/jruby/runtime/callsite/CachingCallSite.java:82
callIter at org/jruby/runtime/callsite/CachingCallSite.java:89
interpret at org/jruby/ir/instructions/CallBase.java:519
processCall at org/jruby/ir/interpreter/InterpreterEngine.java:360
interpret at org/jruby/ir/interpreter/StartupInterpreterEngine.java:72
interpret at org/jruby/ir/interpreter/InterpreterEngine.java:84
INTERPRET_METHOD at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:169
call at org/jruby/internal/runtime/methods/MixedModeIRMethod.java:156
call at org/jruby/internal/runtime/methods/DynamicMethod.java:202
call at org/jruby/internal/runtime/methods/AliasMethod.java:65
cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:344
call at org/jruby/runtime/callsite/CachingCallSite.java:170

@olugantipk1 can you try [https://github.com/weshatheleopard/rubyXL/issues/188#issuecomment-359657380](this workaround) and see if it helps you? If it does, I will merge it into master.

Thank You @weshatheleopard . That workaround worked!

Hi @weshatheleopard, Would you be able to merge this up to master?
Let me know if you need anything from me. Thanks!


Bulk updates without fetching/Related joins

It's been a pleasure using this library. It influenced me to promisify my entire code base which is much cleaner than using the async lib and node callbacks.
I just have two questions:
I noticed that relations are fetched one at a time:
db.User()
 .fetchAll({withRelated: ['roles']})
 .then(function (user) {
    res.json(user);
  });

The following would produce two queries:
select * from `users`;

select * from `user_roles` where `user`.`id` in (?, ?)

instead of:
select * from `users` left join `user_roles` on `users`.`id` = `user_roles`.`userid`

Is there a reason for this, or was this something that was planned in a future release?

Is it possible to do actual bulk updates:
db.User
 .where('lastLoginDate', '<', moment().toDate().subtract('d', '60'))
 .save({enabled: false});

// mysql: update `users` set `enabled` = ? where `lastLoginDate` < '?'

instead of:

db.User
 .where('lastLoginDate', '<', moment().toDate().subtract('d', '60'))
 .fetchAll()
 .then(function (users) {
  return users.invokeThen('save', {enabled: false});
});

/** mysql:

select * from `users` where `lastLoginDate` < '?'

//repeated for x amount of users
update `users` set `enabled` = ? where `id` = ?

**/

@tgriesser would your update solution update the timestamps as well? So that if I did:
User
  .query()
  .where('id', 25)
  .update({ enabled: false }).then(...

The updated_at column would yield a new timestamp?

@AntJanus updated_at will not be modified in the code you've shown.


Install py.test>=2.8,<3

The 3.x series is currently broken. Until py.test works again, 3.x should not be used by anything.

Yes, sounds reasonable to me.  I would like to see a bug report referencing the defect in pytest, but for now, getting tests passing (and releases working again) is more important.

I was about to write up my findings, but spotted that you've already logged pytest-dev/pytest#1888, which contains basically everything I've found out.


refactor(dep) replace playwright by playwright-core

Everything is in playwright-core, except from the browsers. But we don't want them anyway

Let's see if merging this PR will trigger a release.

Great! Thanks.

It looks like semantic-release's default settings don't trigger a release with a refactor: commit. However, I've just merged a fix: change with #33 and that triggered an npm release with the #31 changes. So you should be able to get those now. I'll look into changing the release threshold for semantic-release.


Adds asciidoctor-browser-extension

Currently using sturtison fork. The goal is to get a preview of how the Asciidoctor Browser Extension documentation looks.

This is awesome! Do you want me to merge right away, or do you just intend to use the deploy preview for the time being?

or do you just intend to use the deploy preview for the time being?

I'm just using the deploy preview. We are still reviewing/improving the documentation: https://github.com/asciidoctor/asciidoctor-browser-extension/pull/649
Self-note, we will need to update the "Browser Extension" link in the "Tooling" menu (currently, the link is https://github.com/asciidoctor/asciidoctor-browser-extension#readme)


Opacity control for rasters

Adds styling for raster opacity.
Adds a demo of the raster-opacity to the basic demo.

refs: SDK-906

@wnordmann - Updated!


Fix build breaks

This removes the requirement of installing the net47 targeting pack, and adds the missing package reference for accessing the registry in .NET Core.
Fixes #199

Thanks for this. Is the 47 packageref needed as what we need are the tools from the net 4.8 directory: https://github.com/dotnet/SignService/blob/master/src/SignService/SignService.csproj#L20

No. The ReferenceAssemblies package ref is needed for this:
https://github.com/dotnet/SignService/blob/c5c313881747d2e44b770dc3546c518e0eba0ecd/src/InstallUtility/InstallUtility.csproj#L5

Ah, right forgot. Thanks.


chore: migrate to npm

This PR changes package manager from yarn to npm to align with the rest of the Expensify repos.
Details

adjusted run scripts
went through all the dependencies and removed some that were unnecessary (only types).
adjusted ci
adjusted docs
modified node_modules resolution across the project, because npm cannot be blocked from hoisting packages (RFC)

Related Issues

Manual Tests

tried to

Linked PRs

Closing this PR in favor of https://github.com/Expensify/react-native-live-markdown/pull/539


When running in shadowDom, debounce causes evnet objects to reset target property.

Describe the Bug

I use bpmn-js in shadowDom and bpmn-js-properties-panel.
There is an error in the console when I try to modify properties in the property-panel.

After testing, I found that the reason was that setTmeout in debounce caused the event.target to be reset.
event-target-changed-in-settimeout-in-shadow-dom.
Steps to Reproduce

https://codesandbox.io/s/distracted-leavitt-n8gxfn?file=/src/index.js
Expected Behavior

Environment

Host: Chrome 110.0.5481.100
OS: Windows 10
Library version: [e.g. 2.0.0]

bpmn-js-properties-panel: 1.17.2
@bpmn-io/properties-panel: 1.3.1

Interested in submitting a fix? Seems like we need to cache event.target for safe future use.

Interested in submitting a fix? Seems like we need to cache event.target for safe future use.

Same idea, I'll try.

hi @nikku can you check this pr #224 ?

@siaikin Sorry for the delay. I hope I can have a look at this soon.

@siaikin Any reason you closed it? Is it no longer necessary?


Fatal error reported when building src/gpu_util.cpp on aarch64

Hello,
I am trying to test rocm stack on aarch64 platform.
But I got this error :
[  4%] Building CXX object rvslib/CMakeFiles/rvslib.dir//src/gpu_util.cpp.o
cd /run/media/mmcblk0p2/rocm/ROCmValidationSuite/build/rvslib && /opt/rocm/hip/bin/hipcc  -DRVS_DO_TRACE -I/run/media/mmcblk0p2/rocm/ROCmValidationSuite/rvslib/. -I/run/media/mmcblk0p2/rocm/ROCmValidationSuite/rvslib/.. -I/opt/rocm/rocm_smi/include -I/opt/rocm/include -I/opt/rocm/hip  -I/usr/include/c++/9.2.0 -I/usr/include/c++/9.2.0/aarch64-fsl-linux  -fPIC -Xlinker --enable-new-dtags -fno-gpu-rdc --amdgpu-target=gfx803 --amdgpu-target=gfx900 --amdgpu-target=gfx906 --amdgpu-target=gfx908  -I/opt/rocm/hsa/include -O3 -DNDEBUG   -std=c++11 -pthread -Wl,-no-as-needed -Wall -fPIC -DRVS_OS_TYPE_NUM=0 -DBUILD_VERSION_MAJOR=3 -DBUILD_VERSION_MINOR=8 -DBUILD_VERSION_PATCH=0 -DLIB_VERSION_STRING="3.8.0" -DBUILD_VERSION_STRING="3.8.0-3.8.0" -o CMakeFiles/rvslib.dir//src/gpu_util.cpp.o -c /run/media/mmcblk0p2/rocm/ROCmValidationSuite/src/gpu_util.cpp
clang-11: warning: -Xlinker --enable-new-dtags: 'linker' input unused [-Wunused-command-line-argument]
clang-11: warning: -Wl,-no-as-needed: 'linker' input unused [-Wunused-command-line-argument]
Id = 91
fatal error: error in backend: Unsupported calling convention.
clang-11: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 11.0.0 (https://github.com/RadeonOpenCompute/llvm-project b98349b12ffa706d0e863a3f1176b20d2a6c438b)
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm/llvm/bin
clang-11: note: diagnostic msg: Error generating preprocessed source(s).
make[2]: *** [rvslib/CMakeFiles/rvslib.dir/build.make:63: rvslib/CMakeFiles/rvslib.dir/__/src/gpu_util.cpp.o] Error 70
make[2]: Leaving directory '/run/media/mmcblk0p2/rocm/ROCmValidationSuite/build'
make[1]: *** [CMakeFiles/Makefile2:791: rvslib/CMakeFiles/rvslib.dir/all] Error 2
make[1]: Leaving directory '/run/media/mmcblk0p2/rocm/ROCmValidationSuite/build'
make: *** [Makefile:163: all] Error 2
I put some debug in llvm (release 11.0.0) to got the CC Id in llvm/lib/Target/AArch64/AArch64ISelLowering.cpp and it corresponds to 91.
Which is AMDGPU_KERNEL.
I don't really know if the error coming from the rocmvalidation suite or llvm/clang/hip part.
What do you think ?
Thanks in advance
Benoit

Not sure if you are still on this issue ? as it has been sometime now.
But nevertheless, error seems from the compiler.

which OS were you using ?
can you try if you still get the same issue ? Note: Please install ROCm before trying to compile RVS.

Thanks

Closing the ticket as it is stale.  @bsansoni, please reopen if you still see this issue in ROCm 6.1.0.  Thanks.


Random key search on pikachunakapika doesn't seem to work as expected

Hello
I 'm asking this on original code since pikachunakapika closed his issue page. So i just try to test the -r feature on the random version & i saw it only generate about 200k starting points just like normal keyspace search instead of millions random starting points like many ppl claim (my GTX 970 can do 28MKeys/s). How can i run it right?

Hey there,
If you use the -b -t and -p parameters you'll get your amped up starting points.
For my 1060 3gb, I use -b 27 -t 512 -p 1024 and get about 108Mkeys/s and 14 million starting points whereas if I just use -r without those, I get the 200k-something and half the speed. The number of starting points seems to be based on -b because if I tried -b 18, I only got 9mil starting points.
For a 970, I'm not sure what -b would be, but try -t 256  or 384 and -p 512 (or 768 or 1024) and juggle from there.

@dtoan1402 Where can I download this version?
pikachunakapika close page

@dtoan1402 Hi, what version of BitCrack are you using? and the version of CUDA?
I've already tried everything, always a mistake "r is an invalid address"

https://mega.nz/file/nNpCXYrQ#pzpHNvj6cXG-pIy10Zvaetd9I7QRnKir-RXQ71BxBs0
Latest version of pikachunakapika fork. He deleted because is no longer supported by him and is a old version of BitCrack, many bugs and sometimes skips keys.

Thank you very much, i need it reallity
Le mar. 28 avr. 2020 16:31, MisterTeo<EMAIL_ADDRESS>a écrit :

https://mega.nz/file/nNpCXYrQ#pzpHNvj6cXG-pIy10Zvaetd9I7QRnKir-RXQ71BxBs0
Latest version of pikachunakapika fork. He deleted because is no longer
supported by him and is a old version of BitCrack, many bugs and sometimes
skips keys.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/brichard19/BitCrack/issues/233#issuecomment-620679547,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APE5P6KLEJJYMFM57NCWKH3RO3ZD5ANCNFSM4MGDNQ2A
.

@RastaDollo try this. It is completely thrown together for science and experimentation (read that as I can't provide any coding fixes; details in release notes).
https://github.com/djarumlights/BitCrack/releases

@djarumlights thanks, I will try your version


'pod install' doesn't always run when it needs to

See https://github.com/google/flutter-desktop-embedding/issues/512 for an example. _shouldRunPodInstall is likely missing a case. Maybe _writeFlutterPluginsList didn't notice a change, and we need to not write that file whet pub get fails?

While looking at per-platform plugin files, I noticed that refreshPluginsList is invalidating iOS pods when the plugin list changes, but I didn't add macOS there; that may well be the source of this issue.


SXM-7 missing payloads key

Hey!
I'm updating to the v4 API. The SXM-7 launch is the only one missing the payloads key. According to the schema in the doc this shouldn't be possible (always an array)

My bad an error on my side. Please ignore x)


Regarding Claude...apparently you don't know me enough to recognize my sarcasm.  😉
...and yes...I just used my script because i did the benchmarking in 5 minutes and I didn't want to create yet another python file...that's on me.  😉 didn't change the results though.

That's one option. Plenty of repositories require FFMPEG as a dependency, but user's have to install it and add to PATH, which is not feasible for some users (like I used to be just over a year ago)...they don't even know what a PATH is.

Are you kidding? With that level of expertise and coding, you didn’t know about the PATH until a year ago? No way, lol!

Another option is to do what WhisperS2T does, which is allow FFMPEG...the passing of straight numpy arrays if a user so chooses...and uses a library. Either way, the pipline handles the particular kind of input and eventually it's all converted to a numpy array anyways.

Yes, that was already the case, the transcribe function accepts a numpy array. The pre-processing step is just for the actual media files. All the libraries require ffmpeg to be on PATH anyway; they don’t ship it with the build. So, there's no need for any third-party library anymore.

Regarding Claude...apparently you don't know me enough to recognize my sarcasm. 😉
...and yes...I just used my script because i did the benchmarking in 5 minutes and I didn't want to create yet another python file...that's on me. 😉 didn't change the results though.

Okay, I got it! 😆
Yes, the results match this time, which is great!

That's one option. Plenty of repositories require FFMPEG as a dependency, but user's have to install it and add to PATH, which is not feasible for some users (like I used to be just over a year ago)...they don't even know what a PATH is.

Are you kidding? With that level of expertise and coding, you didn’t know about the PATH until a year ago? No way, lol!

Another option is to do what WhisperS2T does, which is allow FFMPEG...the passing of straight numpy arrays if a user so chooses...and uses a library. Either way, the pipline handles the particular kind of input and eventually it's all converted to a numpy array anyways.

Yes, that was already the case, the transcribe function accepts a numpy array. The pre-processing step is just for the actual media files. All the libraries require ffmpeg to be on PATH anyway; they don’t ship it with the build. So, there's no need for any third-party library anymore.

Regarding Claude...apparently you don't know me enough to recognize my sarcasm. 😉
...and yes...I just used my script because i did the benchmarking in 5 minutes and I didn't want to create yet another python file...that's on me. 😉 didn't change the results though.

Okay, I got it! 😆 Yes, the results match this time, which is great!

One last thing...some repos use av because it actually does bundle FFMPEG with it, that's the draw...so just keep that in mind if you ever feel the need to incorporate a library as an option for people.
But "yes" to results matching...

One last thing...some repos use av because it actually does bundle FFMPEG with it, that's the draw...so just keep that in mind if you ever feel the need to incorporate a library as an option for people.
But "yes" to results matching...

Oh! Good to know that! PyAv is really great,
but a ~3x difference is huge, and this might upset the other "dev and benchmarking people" 😆
I will stick with the optimized version for now!
But yeah, I'm always open to suggestions and will definitely consider it if needed!
Thanks a lot for all your suggestions and contributions!

So I decided to write my own conversion script without relying on any third-party library. It seems we have a new winner now .. calling ffmpeg directly is much faster than both libraries on my local machine.

Here are the results for the same flac audio

Pydub conversion took 14.357902 seconds

AV conversion took 19.177406 seconds

Raw FFMPEG conversion took 6.713088 seconds

Here is the script

@BBC-Esq , @UsernamesLame please give it a try and let me know your results ?

Did I not already suggest directly using FFMPEG - OMG!  I thought I did...but I thought you wanted a library that bundles it for the sake of simplicity.  lol.  Wait, I kinda did above when I commented on the average user probably not wanting to mess with PATH...
Anyways, here's the guy who informed me of this issue first...
https://github.com/shashikg/WhisperS2T/issues/40#issuecomment-1962899570
BTW, if you're looking to implement true batching I highly recommend you check out his repository.  His pipeline for implementing ctranslate2 is awesome-sauce.
@UsernamesLame I'll send you an invite to the whisper benchmarking private repo I created.  Feel free to participate, just observe or not join at all at your pleasure.
Will bench the FFMPEG directly but turn to other issues after that.  😉
EDIT:
BTW, I believe FFMPEG's binary is written in C so yes it'll be faster...but it would be fun to compare it to Rust, which is much easier to incorporate for people only familiar with Python like myself, but unfortunately Rust doesn't have anything remotely close to FFMPEG's comprehensiveness...

I will definitely join my friend from the best city in America! (I followed you on GitHub and saw your city and was like 🎉🎉🎉 because I have a soft spot for there)
Idk if I'll be able to help. I think we all lost the plot here. Batch processing can take longer. The goal is to shrink the actual transcription time!
I don't care if it takes hours to make numpy arrays to store in a database so transcription nodes can ingest from a central location. As long as the transcription goes faster.
Let's try and make that the new goal. Any ideas?

So I decided to write my own conversion script without relying on any third-party library. It seems we have a new winner now .. calling ffmpeg directly is much faster than both libraries on my local machine.
Here are the results for the same flac audio
Pydub conversion took 14.357902 seconds
AV conversion took 19.177406 seconds
Raw FFMPEG conversion took 6.713088 seconds

Here is the script
@BBC-Esq , @UsernamesLame please give it a try and let me know your results ?

Did I not already suggest directly using FFMPEG - OMG! I thought I did...but I thought you wanted a library that bundles it for the sake of simplicity. lol. Wait, I kinda did above when I commented on the average user probably not wanting to mess with PATH...
Anyways, here's the guy who informed me of this issue first...
shashikg/WhisperS2T#40 (comment)
BTW, if you're looking to implement true batching I highly recommend you check out his repository. His pipeline for implementing ctranslate2 is awesome-sauce.
@UsernamesLame I'll send you an invite to the whisper benchmarking private repo I created. Feel free to participate, just observe or not join at all at your pleasure.
Will bench the FFMPEG directly but turn to other issues after that. 😉
EDIT:
BTW, I believe FFMPEG's binary is written in C so yes it'll be faster...but it would be fun to compare it to Rust, which is much easier to incorporate for people only familiar with Python like myself, but unfortunately Rust doesn't have anything remotely close to FFMPEG's comprehensiveness...

A good chunk of FFMPEG is actually assembly!

So I decided to write my own conversion script without relying on any third-party library. It seems we have a new winner now .. calling ffmpeg directly is much faster than both libraries on my local machine.
Here are the results for the same flac audio
Pydub conversion took 14.357902 seconds
AV conversion took 19.177406 seconds
Raw FFMPEG conversion took 6.713088 seconds

Here is the script
@BBC-Esq , @UsernamesLame please give it a try and let me know your results ?

The "never wrong" 😉 Claude identified a few issues:
1. The timing in convert_ffmpeg is not consistent with the other methods. You're including the file I/O operations in the timing, which isn't done in the other methods.

2. Missing @timeit decorator: To be consistent with the other methods, you should use the @timeit decorator for the actual conversion part.

3. Return value: The convert_ffmpeg method returns both the time and the result, while the others only return the time.

After addressing those issues I received the following impressive results for FFMPEG:
pydub_to_numpy took 0.304464 seconds
Pydub conversion took 17.602802 seconds
av_to_numpy took 8.928977 seconds
AV conversion took 8.931782 seconds
ffmpeg_to_numpy took 2.070266 seconds
FFmpeg conversion took 2.070527 seconds

I used this script:
SCRIPT HERE
[EDIT]
When I altered the script to keep track of all time - including I/O operations - I received these results:
convert_pydub took 17.707413 seconds
convert_av took 9.034201 seconds
convert_ffmpeg took 2.159566 seconds

Results are basically the same:
Second script here:
SCRIPT INCLUDING I/O IN TIME

I removed the timeit mostly because it was spamming the sysout. The benchmark was more of a quick and dirty thing than anything

So I decided to write my own conversion script without relying on any third-party library. It seems we have a new winner now .. calling ffmpeg directly is much faster than both libraries on my local machine.
Here are the results for the same flac audio
Pydub conversion took 14.357902 seconds
AV conversion took 19.177406 seconds
Raw FFMPEG conversion took 6.713088 seconds

Here is the script
@BBC-Esq , @UsernamesLame please give it a try and let me know your results ?

Did I not already suggest directly using FFMPEG - OMG! I thought I did...but I thought you wanted a library that bundles it for the sake of simplicity. lol. Wait, I kinda did above when I commented on the average user probably not wanting to mess with PATH...
Anyways, here's the guy who informed me of this issue first...
shashikg/WhisperS2T#40 (comment)
BTW, if you're looking to implement true batching I highly recommend you check out his repository. His pipeline for implementing ctranslate2 is awesome-sauce.
@UsernamesLame I'll send you an invite to the whisper benchmarking private repo I created. Feel free to participate, just observe or not join at all at your pleasure.
Will bench the FFMPEG directly but turn to other issues after that. 😉
EDIT:
BTW, I believe FFMPEG's binary is written in C so yes it'll be faster...but it would be fun to compare it to Rust, which is much easier to incorporate for people only familiar with Python like myself, but unfortunately Rust doesn't have anything remotely close to FFMPEG's comprehensiveness...

Why would I stick with a library if ffmpeg delivers better results? Lol. I just didn't expect such a huge difference to be honest, I knew they were all wrappers around ffmpeg, so I assumed there wouldn't be a big gap. But a 2-3x difference is significant!

Lets drop the libraries if we can get better results.

One last thing...some repos use av because it actually does bundle FFMPEG with it, that's the draw...so just keep that in mind if you ever feel the need to incorporate a library as an option for people.
But "yes" to results matching...

Oh! Good to know that! PyAv is really great, but a ~3x difference is huge, and this might upset the other "dev and benchmarking people" 😆 I will stick with the optimized version for now!
But yeah, I'm always open to suggestions and will definitely consider it if needed!
Thanks a lot for all your suggestions and contributions!

If you find any faster method of conversion please implement it! Just let me keep feeding Whisper raw numpy arrays.

@UsernamesLame,
I already did :laughing:
I removed Pydub and replaced it with ffmpeg. Raw numpy arrays are the defaults, as usual.

@abdeladim-s and @UsernamesLame , can you try this modified script?  I'm still losing sleep (just kidding) regarding the difference between pydub and av...There will be a slight time increase because more time measurements are taken, but here's the script and my results...
REVISED SCRIPT
import numpy as np
import time
import os
from pydub import AudioSegment
import av
import subprocess
import tempfile

GREEN = '\033[92m'
RESET = '\033[0m'

def timeit(func):
    def wrapper(*args, **kwargs):
        start = time.perf_counter()
        result = func(*args, **kwargs)
        end = time.perf_counter()
        print(f"{GREEN}{func.__name__} took {end - start:.6f} seconds{RESET}")
        return result
    return wrapper

class AudioConverter:
    def __init__(self, input_file):
        self.input_file = input_file
        self.base_name = os.path.splitext(os.path.basename(input_file))[0]

    def time_step(self, step_name):
        start = time.perf_counter()
        return start, step_name

    def end_step(self, start, step_name):
        end = time.perf_counter()
        print(f"{step_name} took {end - start:.6f} seconds")

    @timeit
    def convert_pydub(self):
        """
        Converts audio using the Pydub library.

        This method:
        1. Loads the entire audio file into memory.
        2. Performs resampling and channel conversion in-memory.
        3. Converts the audio data to a numpy array.

        Note: The initial loading time includes file reading and decoding.
        """

        start, step = self.time_step("1. File Opening and Initial Setup")
        audio = AudioSegment.from_file(self.input_file)
        self.end_step(start, step)

        start, step = self.time_step("2. Decoding and Resampling")
        audio = audio.set_frame_rate(16000).set_channels(1)
        self.end_step(start, step)

        start, step = self.time_step("3. Converting to Numpy Array")
        result = np.array(audio.get_array_of_samples()).astype(np.float32) / np.iinfo(np.int16).max
        self.end_step(start, step)

        return result

    @timeit
    def convert_av(self):
        """
        Converts audio using the AV library.

        This method:
        1. Opens the audio file without loading it entirely into memory.
        2. Creates a resampler for the desired output format.
        3. Processes the audio in chunks, decoding and resampling each chunk.
        4. Concatenates the processed chunks into a numpy array.

        Note: The decoding and resampling step includes the actual reading and processing of the audio data.
        """
        start, step = self.time_step("1. File Opening and Initial Setup")
        container = av.open(self.input_file)
        audio = container.streams.audio[0]
        resampler = av.audio.resampler.AudioResampler(
            format='s16',
            layout='mono',
            rate=16000
        )
        self.end_step(start, step)

        start, step = self.time_step("2. Decoding and Resampling")
        audio_frames = []
        for frame in container.decode(audio):
            resampled_frames = resampler.resample(frame)
            for resampled_frame in resampled_frames:
                audio_frames.append(resampled_frame)
        self.end_step(start, step)

        start, step = self.time_step("3. Converting to Numpy Array")
        if not audio_frames:
            result = np.array([])
        else:
            result = np.concatenate([frame.to_ndarray().flatten() for frame in audio_frames]).astype(np.float32) / np.iinfo(np.int16).max
        self.end_step(start, step)

        return result

    @timeit
    def convert_ffmpeg(self):
        """
        Converts audio using FFmpeg as an external process.

        This method:
        1. Creates a temporary WAV file.
        2. Uses FFmpeg to convert the input to the temporary WAV file.
        3. Reads the temporary WAV file and converts it to a numpy array.

        Note: This method first converts the input to a WAV file before processing,
        which can add overhead but ensures a consistent input format.
        """
        if self.input_file.endswith('.wav'):
            return self.to_np(self.input_file)
        else:
            start, step = self.time_step("1. File Opening and Initial Setup")
            with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as temp_file:
                temp_file_path = temp_file.name
            self.end_step(start, step)

            try:
                start, step = self.time_step("2. Decoding and Resampling")
                subprocess.run([
                    'ffmpeg', '-i', self.input_file, '-ac', '1', '-ar', '16000',
                    temp_file_path, '-y'
                ], check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
                self.end_step(start, step)

                return self.to_np(temp_file_path)
            finally:
                os.remove(temp_file_path)

    def to_np(self, file_path):
        start, step = self.time_step("3. Converting to Numpy Array")
        with open(file_path, 'rb') as f:
            header = f.read(44)
            raw_data = f.read()
        samples = np.frombuffer(raw_data, dtype=np.int16)
        result = samples.astype(np.float32) / np.iinfo(np.int16).max
        self.end_step(start, step)

        return result

def benchmark(input_file):
    converter = AudioConverter(input_file)

    print("\nPydub Backend:")
    pydub_array = converter.convert_pydub()

    print("\nAV Backend:")
    av_array = converter.convert_av()

    print("\nFFmpeg Backend:")
    ffmpeg_array = converter.convert_ffmpeg()

if __name__ == "__main__":
    input_file = r"D:\Scripts\bench_cupy\test1.flac"
    benchmark(input_file)

Pydub Backend:
1. File Opening and Initial Setup took 13.699101 seconds
2. Decoding and Resampling took 4.103232 seconds
3. Converting to Numpy Array took 0.353683 seconds
convert_pydub took 18.160763 seconds

AV Backend:
1. File Opening and Initial Setup took 0.003208 seconds
2. Decoding and Resampling took 6.435688 seconds
3. Converting to Numpy Array took 2.587717 seconds
convert_av took 9.112194 seconds

FFmpeg Backend:
1. File Opening and Initial Setup took 0.000831 seconds
2. Decoding and Resampling took 1.731438 seconds
3. Converting to Numpy Array took 0.321049 seconds
convert_ffmpeg took 2.069913 seconds

@abdeladim-s and @UsernamesLame , can you try this modified script? I'm still losing sleep (just kidding) regarding the difference between pydub and av...There will be a slight time increase because more time measurements are taken, but here's the script and my results...

@BBC-Esq, Here are my results:
Pydub Backend:
1. File Opening and Initial Setup took 7.507274 seconds. Entire audio file loaded into memory.
2. Decoding and Resampling took 6.863667 seconds. Resampling and channel conversion performed in-memory.
3. Converting to Numpy Array took 0.381071 seconds. Audio data converted to numpy array and normalized.
convert_pydub took 14.770355 seconds

AV Backend:
1. File Opening and Initial Setup took 0.001853 seconds. File header opened and resampler created. Audio data not yet loaded.
2. Decoding and Resampling took 14.618280 seconds. Audio data read, decoded, and resampled in chunks.
3. Converting to Numpy Array took 4.329899 seconds. Processed audio frames converted to numpy array and normalized.
convert_av took 19.044509 seconds

FFmpeg Backend:
1. File Opening and Initial Setup took 0.000406 seconds. Temporary WAV file created.
2. Decoding and Resampling took 6.519111 seconds. Input file converted to WAV format using FFmpeg.
3. Converting to Numpy Array took 0.406190 seconds. WAV file read, converted to numpy array, and normalized.
convert_ffmpeg took 6.981947 seconds

still raw FFmpeg the fastest, followed by PyDub and then AV.

Thanks, I'm trying a last ditch effort to see what might be leading to the difference...let's say I wanted to use a library and not FFMPEG, but still wanted the 2x speedup I'm getting on my computer...might be good to know what exactly on my computer is creating the disparity with you guys...
Can you please try this?  run python in the command prompt where numpy is installed...
Then run import numpy as np
Then run np.show_config()
Not sure how it is in Linux, but on Windows it looks like this:

There should be something that says "Build dependencies"
Here's the relevant portion of what mine says...remember, I'm only showing the relevant portions:
  blas:
    detection method: pkgconfig
    found: true
...
    name: scipy-openblas
    openblas configuration: OpenBLAS 0.3.27  USE64BITINT DYNAMIC_ARCH NO_AFFINITY

and...
  lapack:
    detection method: pkgconfig
    found: true
...
    name: scipy-openblas
    openblas configuration: OpenBLAS 0.3.27  USE64BITINT DYNAMIC_ARCH NO_AFFINITY

Sure! I would like to know the reason as well.
Here is the output of what you asked:
openblas64__info:
    libraries = ['openblas64_', 'openblas64_']
    library_dirs = ['/usr/local/lib']
    language = c
    define_macros = [('HAVE_CBLAS', None), ('BLAS_SYMBOL_SUFFIX', '64_'), ('HAVE_BLAS_ILP64', None)]
    runtime_library_dirs = ['/usr/local/lib']
blas_ilp64_opt_info:
    libraries = ['openblas64_', 'openblas64_']
    library_dirs = ['/usr/local/lib']
    language = c
    define_macros = [('HAVE_CBLAS', None), ('BLAS_SYMBOL_SUFFIX', '64_'), ('HAVE_BLAS_ILP64', None)]
    runtime_library_dirs = ['/usr/local/lib']
openblas64__lapack_info:
    libraries = ['openblas64_', 'openblas64_']
    library_dirs = ['/usr/local/lib']
    language = c
    define_macros = [('HAVE_CBLAS', None), ('BLAS_SYMBOL_SUFFIX', '64_'), ('HAVE_BLAS_ILP64', None), ('HAVE_LAPACKE', None)]
    runtime_library_dirs = ['/usr/local/lib']
lapack_ilp64_opt_info:
    libraries = ['openblas64_', 'openblas64_']
    library_dirs = ['/usr/local/lib']
    language = c
    define_macros = [('HAVE_CBLAS', None), ('BLAS_SYMBOL_SUFFIX', '64_'), ('HAVE_BLAS_ILP64', None), ('HAVE_LAPACKE', None)]
    runtime_library_dirs = ['/usr/local/lib']
Supported SIMD extensions in this NumPy install:
    baseline = SSE,SSE2,SSE3
    found = SSSE3,SSE41,POPCNT,SSE42,AVX,F16C,FMA3,AVX2
    not found = AVX512F,AVX512CD,AVX512_KNL,AVX512_KNM,AVX512_SKX,AVX512_CLX,AVX512_CNL,AVX512_ICL

This is the full output, I didn't see any build dependencies on my side.

No dice...dang...Oh well, will just chalk it up to an unknown.  Maybe it'll reveal itself at a later date.

Yeah, there are so many variables, it's hard to keep track of everything.
Hopefully, we'll find out eventually! 😄

@abdeladim-s and @UsernamesLame , can you try this modified script? I'm still losing sleep (just kidding) regarding the difference between pydub and av...There will be a slight time increase because more time measurements are taken, but here's the script and my results...
REVISED SCRIPT
Pydub Backend:
1. File Opening and Initial Setup took 13.699101 seconds
2. Decoding and Resampling took 4.103232 seconds
3. Converting to Numpy Array took 0.353683 seconds
convert_pydub took 18.160763 seconds

AV Backend:
1. File Opening and Initial Setup took 0.003208 seconds
2. Decoding and Resampling took 6.435688 seconds
3. Converting to Numpy Array took 2.587717 seconds
convert_av took 9.112194 seconds

FFmpeg Backend:
1. File Opening and Initial Setup took 0.000831 seconds
2. Decoding and Resampling took 1.731438 seconds
3. Converting to Numpy Array took 0.321049 seconds
convert_ffmpeg took 2.069913 seconds

Sorry, college has been busy. Do you still need me to test this? Also I'm not getting notifications anymore.


Dan needs a bagel

With lox cream cheese.

@megbedell

I nominate this for the logo

#8

Dan approves!

Ping #8

Can I have a donut?

u can haz waffle:

Fine.