Feature(V2): Support assets directory for docs- and blog-specific assets

🚀 Feature
Support assets directory for blog- and docs-specific assets (i.e. docs/assets), such as images, video and other media.
Have you read the Contributing Guidelines on issues?
Yes
Motivation
The reason for this feature request, is that this seems to be supported in V1, but not in V2.
Currently in V2 you only have the static directory that is used for everything.
Pitch
This feature would be of great use for setups where there is a very distinct separation between assets that are used site-wide and assets that are tailored to only be used in the docs and blog.
A good use case would be a situation where you have your 'core' Docusaurus code split from the docs, allowing for a kind of 'admin vs authors' setup where authors can update their docs, including images. Currently, an author would also have to contact the 'admin' and request them to upload the image, which isn't necessarily a productive way of writing docs.

Hi,
We have added the ability to colocate images to their markdown usage file here, supporting relative image paths:
https://v2.docusaurus.io/docs/markdown-features#images
With versioning, it also allows to have one different asset per version, which enable you to version assets alongside the docs
Please open another issue if this is not good enough, but to me it is different yet more powerful than v1 system


Only wrap in Link if noJS

Who is this for?
pa11y + a11y in general
What is it doing for them?

Only wrapping the button in a link if noJS fixes the double keyboard navigation that was happening (first it would get the <a> then the <button>)
Add a hidden link text for noJS to fix the pa11y warning

That validation rule makes a lot of sense @gestchild . I'm testing your suggestion and it seems to work fine on a slow connection, so will do a bit more CSS so they have the same padding and resubmit. Thanks!


Web View login for Cloudflare

Is it possible to add webview option before logging in? since I use cloudflare zero trust to access my Nas apps including libre photos remotely I am unable to login using uhuru, so when asking the user to login can you add an option that says "use Web login" or something like that?
Also zero trust resets periodically so the webview needs to pop up every now and then for granting access.

I currently have a solution in place for setups that have a google oauth in front of the service. It relies on the server sending an http redirect which opens the web page.
I can have a look to see how cloudflare implements this and see if it's possible to integrate it

I have the same issue but I'm behind Authelia 2FA
I'm not a very experienced developer but I'd be happy to help if I can

Have there been any updates since?
Also just like @DanieleR87 I also have authelia 2fa after cloudflare zero trust

Thank you @savvasdalkitsis
I'll spin up a clean environment and capture some data
Would reverse proxy logs (with request/response headers) be enough?

I'm mostly interested in what http codes cloudflare returns to do the Auth dance and what cookies it sets on your domain so it can bypass further requests. So if you grab the network traces from your browser and the cookies for your domain and for the cloudflare domain that will do
Obviously do make sure you don't send me the actual values of tokens and cookies but I need to know the names of the cookies

About Authelia 2FA (do I open a separate issue?)
I'm attaching the trace recovered from Firefox
librephotos.har.txt
One thing I forgot to mention is that I'm not only behind Authelia 2FA but also behind a Cloudflare tunnel
You will see it in the file, but in this case Cloudflare is only for proxying, not Zero Trust authentication
Another thing I think is worth mentioning, you will see an authelia_MYDOMAINNAME_session cookie (token?)
The name defaults to authelia_session but we can customize: name, default duration and "remember me" duration (see https://www.authelia.com/configuration/session/introduction/)
Maybe this is the cookie we are looking for?
If I grabbed the right data I think I can do it also for Cloudflare Zero Trust, I just need to study how to use it

Hi! Any news on the issue?
I see the code references authelia_session cookie but I'm still locked out


IRI doubt in Object ID with two # chars

I am using the course quiz sample with LearningLocker 1.5. The activity object ID contains two # characters and  this is interpreted as an invalid IRI by LearningLocker.
Example object id: http://adlnet.gov/xapi/samples/xapi-jqm/course/chapters/05-quiz#quiz#q2
The hard coded moduleID label can be changed or the  concatenated delimiter for the questionID

Learning Locker is correct. Just saw a client testing using this example. The fragment may contain:

fragment    = *( pchar / "/" / "?" )

And a pchar may be:

pchar         = unreserved / pct-encoded / sub-delims / ":" / "@"

A # is not in unreserved:

unreserved  = ALPHA / DIGIT / "-" / "." / "_" / "~"

, pct-encoded is a percent sign followed by two hex characters, and sub-delims lack it as well:

sub-delims  = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="

closed in update


Update sneakers to the head of the master branch

Why was this change made?
See if this allows systemd to stop the process cleanly.
How was this change tested?
Which documentation and/or configurations were updated?

can this be closed and branch deleted?  Please do it if so.


Not working in private mode of browser

Running properly in normal mode of browser but stuck on submitting in private(Incognito) mode of browser .

Could not replicate.


How to use Staticman for contact forms?

Hi! In some issues here and also on web, people mention the possibility of using Staticman for contact forms. But I can't figure out how (or whether) it could be done.
Is there a way to make a contact form using Staticman? What I mean is a form where a user can send me some message, along with name and email, so that I can reply that message via email.
I already have a running instance in Heroku, for my site's comments. It would be nice if contact form submissions were made to that same instance, which would keep it running for a few minutes more.

Maybe I'm misunderstanding, but I think what you want is simply a comment submission form where the submission, itself, is never posted to or incorporated into your site. However, you'd have to configure the email field to not be hashed so you could see it.

Ah I understand. Sure, it's possible that way, but it keeps visitors' emails in my repository, which is not good. I'll search another solution then. Thank you @hispanic !
(Currently I'm using a Integromat scenario (like Zapier) to handle contact forms, which limits messages to ~300/month (spam included). I want to deploy a Netlify function for that, however)

Good point. Yeah, that's tough. The email address is retained in the logic flow for a bit in order to subscribe people to notifications (via Mailgun), but then it gets hashed. Getting what you'd want would probably require some serious refactoring. If you figure something out, please share it back. Thanks.


Simple history load support for new connections

Adds new interface support and new connection initialization step for loading history into already-active TTY session.
This function is actual for situations, when new GoTTY client connection is attached to an existing terminal/process.

My first impression is like that history should be handled by applications tmux, because it could be a bit difficult to generalize "history". For example, what would be expected when you are running a process that requires an alternate screen such as emacs and vi? Handling control characters is not so straight forward, if we cannot determine the sizes of terminals.

Hm... I'm not sure, if it has any effect, but my Web terminal is really attached to 'raw' TTY.
I think, 'raw' mode allows to save control characters to history file. And when you load this 'raw' history file into a web terminal, you actually get 'speed run' of all changes you had in terminal before attachment.
I'll check wether it works properly in interactive shell, when you call such processes 'on the fly'. At least, I saw no problems with running 'top' or 'vi' if one was executed directly, without shell as a parent. I also want to check, wether 'raw' mode has any effect here.
Yes, it is quite rough way and, in some cases, you can get huge amount of useless data (e.g. when you have long-running 'top' process), but it is simple and backward-compatible and can easily be switched off for particular sessions. You also can limit the amount of data to be loaded to the client - just Seek(, -1) the file before giving .History() reader to WebTTY session.
The situation, when you started to load hostory from the middle of 'vim' session, and then it was closed, has to be checked as well. I'm going to experiment on monday.

I tried interactive shell session with top/vim started inside.
Your guess was correct, vim causes strange effects: after raw history load some terminal control symbols are printed in TTY input. They can easily be removed from by backspace, but appear again each history reload (e.g. web-page refresh).
sh-3.2$ vim
# <some editor actions here and :q! >
sh-3.2$
sh-3.2$
#<here was the page reload action, shell receives full history with all previous lines>
sh-3.2$ ;2R0;256;0c

Do you have any ideas what can it be? As far as I can guess - it is color control symbols, or something that alters tty behaviour.
They appear only in command line after vim close. Everything works fine while vim is opened. Top does not cause any effects.


tvheadend: 4.2.5 -> 4.2.6

Semi-automatic update generated by https://github.com/ryantm/nix-update tools.
This update was made based on information from https://repology.org/metapackage/tvheadend/versions.
These checks were done:

built on NixOS
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend -h got 0 exit code
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend --help got 0 exit code
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend help got 0 exit code
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend -V and found version 4.2.6
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend -v and found version 4.2.6
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend --version and found version 4.2.6
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend version and found version 4.2.6
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend -h and found version 4.2.6
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend --help and found version 4.2.6
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/tvheadend help and found version 4.2.6
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped -h got 0 exit code
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped --help got 0 exit code
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped help got 0 exit code
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped -V and found version 4.2.6
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped -v and found version 4.2.6
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped --version and found version 4.2.6
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped version and found version 4.2.6
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped -h and found version 4.2.6
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped --help and found version 4.2.6
ran /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6/bin/.tvheadend-wrapped help and found version 4.2.6
found 4.2.6 with grep in /nix/store/b6w4xxckl2r7raw0zcyiq27f79cv16ng-tvheadend-4.2.6
directory tree listing: https://gist.github.com/9bfa9dd5fc53c3f7b58b2db82fee94ef

cc @simonvandel for review

Success on x86_64-linux (full log)
Attempted: tvheadend
Partial log (click to expand)
find /nix/store/6w3q8pyd6kp0sxpsjr0yng8scb2idqf8-tvheadend-4.2.6/share/tvheadend -name .git -exec rm -rf {} \; &>/dev/null || /bin/true
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/6w3q8pyd6kp0sxpsjr0yng8scb2idqf8-tvheadend-4.2.6
shrinking /nix/store/6w3q8pyd6kp0sxpsjr0yng8scb2idqf8-tvheadend-4.2.6/bin/.tvheadend-wrapped
gzipping man pages under /nix/store/6w3q8pyd6kp0sxpsjr0yng8scb2idqf8-tvheadend-4.2.6/share/man/
strip is /nix/store/fzcs0fn6bb04m82frhlb78nc03ny3w55-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/6w3q8pyd6kp0sxpsjr0yng8scb2idqf8-tvheadend-4.2.6/bin
patching script interpreter paths in /nix/store/6w3q8pyd6kp0sxpsjr0yng8scb2idqf8-tvheadend-4.2.6
checking for references to /build in /nix/store/6w3q8pyd6kp0sxpsjr0yng8scb2idqf8-tvheadend-4.2.6...
/nix/store/6w3q8pyd6kp0sxpsjr0yng8scb2idqf8-tvheadend-4.2.6

Failure on x86_64-darwin (full log)
Attempted: tvheadend
Partial log (click to expand)
Building src/webui/static/intl/tvh.zh-Hans.js.gz
WEBUI std finished
make[2]: Leaving directory '/private/tmp/nix-build-tvheadend-4.2.6.drv-0/source'
make -f Makefile.webui WEBUI=debug compile-debug
make[2]: Entering directory '/private/tmp/nix-build-tvheadend-4.2.6.drv-0/source'
WEBUI debug finished
make[2]: Leaving directory '/private/tmp/nix-build-tvheadend-4.2.6.drv-0/source'
make[1]: Leaving directory '/private/tmp/nix-build-tvheadend-4.2.6.drv-0/source'
builder for '/nix/store/syz6ndfpcbqfky0d0w8bfws2a7h7pxsb-tvheadend-4.2.6.drv' failed with exit code 2
error: build of '/nix/store/syz6ndfpcbqfky0d0w8bfws2a7h7pxsb-tvheadend-4.2.6.drv' failed

Success on aarch64-linux (full log)
Attempted: tvheadend
Partial log (click to expand)
find /nix/store/rgqxdqq7yyd5g4x4jb0mwayjpvvwma2c-tvheadend-4.2.6/share/tvheadend -name .git -exec rm -rf {} \; &>/dev/null || /bin/true
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/rgqxdqq7yyd5g4x4jb0mwayjpvvwma2c-tvheadend-4.2.6
shrinking /nix/store/rgqxdqq7yyd5g4x4jb0mwayjpvvwma2c-tvheadend-4.2.6/bin/.tvheadend-wrapped
gzipping man pages under /nix/store/rgqxdqq7yyd5g4x4jb0mwayjpvvwma2c-tvheadend-4.2.6/share/man/
strip is /nix/store/3zq400fri5dv7d30lpxlqm2v9y1iis6j-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/rgqxdqq7yyd5g4x4jb0mwayjpvvwma2c-tvheadend-4.2.6/bin
patching script interpreter paths in /nix/store/rgqxdqq7yyd5g4x4jb0mwayjpvvwma2c-tvheadend-4.2.6
checking for references to /build in /nix/store/rgqxdqq7yyd5g4x4jb0mwayjpvvwma2c-tvheadend-4.2.6...
/nix/store/rgqxdqq7yyd5g4x4jb0mwayjpvvwma2c-tvheadend-4.2.6


Using local-cli in gradle

Same as d87d127 but for gradle. It will help to prevent installing global react-native-cli (more simple CI server configuration for ex.)
Tested on Linux and Windows.

:+1: Nice!

Look like CI failed with emulator timeout.  I tested locally and all ok
with that test.
—
Reply to this email directly or view it on GitHub
https://github.com/facebook/react-native/pull/6272#issuecomment-192145814
.

Made it, ty

@farwayer what distro of Linux did you test this on? I think Ubuntu (which is the most popular one) names the binary nodejs instead of node by default.

Creating symlink from node to nodejs is described in the installation guide.
In short: this is debian problem (and ubuntu as based on debian). More info is here.
All other world (OSX, Windows, other non-debian dists) names binary node as official name.
react-native-cli and user project package.json also uses node as binary name.

I don't see any mention of symlinking in the guide you linked to. It does mention using packages from nodesource.com instead of the default ones, but I can't find a file list for those packages to determine whether they provide a node binary.
Anyway, if we use this in other places as you pointed out in package.json it's probably fine.
@facebook-github-bot shipit

I don't see any mention of symlinking in the guide you linked to

sudo ln -s /usr/bin/nodejs /usr/bin/node

Damn, I must be blind.
*turns on screen reader*


[Parse] Disable token receiver while parsing types in editor placeholder

Otherwise, for <#T##Type#>, TokReceiver records {'<#T##Type#>', 'Type'}.
That used to cause a SourceKit crash if an editor placeholder was at the end of file.
rdar://problem/36081659

@swift-ci Please smoke test

@swift-ci Please smoke test

@swift-ci Please smoke test


A vulnerability causes VMess over TCP connections to be identifiable (with PoC)

Abstract
A security issue was discovered in implementation of VMess protocol, which could result in VMess connections to be identifiable. The only requirement of the attacker is to capture all network traffic of the victim.
Exploit
In VMess protocol, each data chunk is followed by some padding:

2 bytes
L-P bytes
P bytes

length L
data
padding

V2Ray uses the PRNG from "math/rand" to fill the padding fields. This PRNG seed value range is very limited, as a result, it can only generate 2**31-2 different random streams.
Attackers can calculate all 2**31-2 different random streams, select some bytes as patterns in each random stream, construct a patterns-to-seed lookup table.
Then, attacker search the network traffic for these patterns, if a connection contains certain pattern, attacker looks up the seed corresponding to the pattern and calculates the random stream. A connection is identified as a VMess connection if its subsequent traffic contains many consecutive bytes in the random stream.
PoC
https://github.com/nlzy/vmess-identify-poc
This PoC analyzes pcap format packet captures. If a VMess packet is found, the source and destination addresses of the packet are output.
Fix
Replace "math/rand" with a cryptographically secure PRNG. It's fixed in PR #2032.

youtube: https://www.youtube.com/watch?v=k6VrXFEozPM

These paddings will send in clear text.

Why? Use of math/rand is not the bug. This is the bug. H/2 and  TLS both have paddings but they are encrypted. Reading lots of bytes from /dev/urandom hurts performance.

These paddings will send in clear text.

Why? Use of math/rand is not the bug. This is the bug. H/2 and TLS both have paddings but they are encrypted. Reading lots of bytes from /dev/urandom hurts performance.

Either encrypting or using CSPRNG will fix this, I just picked a fix with minimal code changes.
Regarding performance, I think it's another issue and less important. Can you provide a real-world example of reduced availability due to performance issues, or estimate how much the system's latency can be reduced and throughput improved by using encryption instead of reading /dev/urandom?

https://stackoverflow.com/questions/29935034/using-dev-urandom-for-dddisk-performance-test-is-a-good-idea-or-not This user here showed urandom has a throughput of 8MB/s.

8 MByte/s is good, 8 MByte/s is enough, even for 10 Gigabit networks, seriously.

Appreciate the finding and fix. Awesome.
BTW, Will a new build be triggered recently please? Currently IPs were blocked and quite hard to cross the WALL. Thx in advance.

Consider using urandom to generate the "seed" and "length of using" of the math/rand.
So we have a constantly changing random stream without a performance hit.

https://github.com/nlzy/vmess-identify-poc
I just tested with version 5.0.8, and this code does not complete the identification

https://github.com/nlzy/vmess-identify-poc
I just tested with version 5.0.8, and this code does not complete the identification

Please make sure you have followed strictly the steps and notes in README, then make some network traffic (open about 10~20 web pages should enough). If there is still no message output, restart v2ray client to try again. The identification rate is not 100%, so you may have to try a few times.
It's prefer to use Chrome and open some web pages as proxy payload. The default parameters of pattern selection is suit for that.


Bluetooth not switching on

Note: Please use the Discussions tab if you have any ideas or a question.
Describe the bug
Bluetooth will not turn on - the toggle will not slide over. Found a crash report also.
Screenshots

Device (please complete the following information):

￼
￼ - EFI type (regular or HeliPort):
Regular
Additional context
Translated Report (Full Report Below)
Process:               bluetoothd [133]
Path:                  /usr/sbin/bluetoothd
Identifier:            bluetoothd
Version:               ???
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               0
Date/Time:             2021-12-31 14:44:36.5002 +0000
OS Version:            macOS 12.1 (21C52)
Report Version:        12
Anonymous UUID:        ECD467BC-702E-1B33-8B27-388726A13B6F
Time Awake Since Boot: 70 seconds
System Integrity Protection: enabled
Crashed Thread:        4  Dispatch queue: com.apple.root.utility-qos
Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY
Application Specific Information:
abort() called
Thread 0::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	    0x7ff80a0a3aba mach_msg_trap + 10
1   libsystem_kernel.dylib        	    0x7ff80a0a3e2b mach_msg + 59
2   CoreFoundation                	    0x7ff80a1a7af2 __CFRunLoopServiceMachPort + 319
3   CoreFoundation                	    0x7ff80a1a61cb __CFRunLoopRun + 1325
4   CoreFoundation                	    0x7ff80a1a55dd CFRunLoopRunSpecific + 563
5   CoreFoundation                	    0x7ff80a22d62e CFRunLoopRun + 40
6   bluetoothd                    	       0x106934c86 0x10691c000 + 101510
7   dyld                          	       0x1083754fe start + 462
Thread 1::  Dispatch queue: com.apple.bluetooth.root
0   libsystem_kernel.dylib        	    0x7ff80a0a6506 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	    0x7ff80a0e0a69 _pthread_cond_wait + 1224
2   bluetoothd                    	       0x10698150b 0x10691c000 + 414987
3   bluetoothd                    	       0x1069c2d02 0x10691c000 + 683266
4   bluetoothd                    	       0x1069cf201 0x10691c000 + 733697
5   bluetoothd                    	       0x10697e731 0x10691c000 + 403249
6   bluetoothd                    	       0x106c5d09e 0x10691c000 + 3412126
7   bluetoothd                    	       0x106c5e235 0x10691c000 + 3416629
8   bluetoothd                    	       0x106c3d063 0x10691c000 + 3280995
9   libdispatch.dylib             	    0x7ff809f28ad8 _dispatch_call_block_and_release + 12
10  libdispatch.dylib             	    0x7ff809f29cc9 _dispatch_client_callout + 8
11  libdispatch.dylib             	    0x7ff809f2fcee _dispatch_lane_serial_drain + 696
12  libdispatch.dylib             	    0x7ff809f307fb _dispatch_lane_invoke + 417
13  libdispatch.dylib             	    0x7ff809f3a7e1 _dispatch_workloop_worker_thread + 758
14  libsystem_pthread.dylib       	    0x7ff80a0dd074 _pthread_wqthread + 326
15  libsystem_pthread.dylib       	    0x7ff80a0dbffb start_wqthread + 15
Thread 2:: StackLoop
0   libsystem_kernel.dylib        	    0x7ff80a0a5cf2 __psynch_mutexwait + 10
1   libsystem_pthread.dylib       	    0x7ff80a0dde8f _pthread_mutex_firstfit_lock_wait + 76
2   libsystem_pthread.dylib       	    0x7ff80a0dbd58 _pthread_mutex_firstfit_lock_slow + 204
3   bluetoothd                    	       0x10697e595 0x10691c000 + 402837
4   bluetoothd                    	       0x10697e9fd 0x10691c000 + 403965
5   libsystem_pthread.dylib       	    0x7ff80a0e04f4 _pthread_start + 125
6   libsystem_pthread.dylib       	    0x7ff80a0dc00f thread_start + 15
Thread 3:
0   libsystem_kernel.dylib        	    0x7ff80a0a6506 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	    0x7ff80a0e0a69 _pthread_cond_wait + 1224
2   bluetoothd                    	       0x106982fb6 0x10691c000 + 421814
3   libsystem_pthread.dylib       	    0x7ff80a0e04f4 _pthread_start + 125
4   libsystem_pthread.dylib       	    0x7ff80a0dc00f thread_start + 15
Thread 4 Crashed::  Dispatch queue: com.apple.root.utility-qos
0   libsystem_kernel.dylib        	    0x7ff80a0aa112 __pthread_kill + 10
1   libsystem_pthread.dylib       	    0x7ff80a0e0214 pthread_kill + 263
2   libsystem_c.dylib             	    0x7ff80a02cd10 abort + 123
3   bluetoothd                    	       0x106e073a6 0x10691c000 + 5157798
4   bluetoothd                    	       0x10697ed92 0x10691c000 + 404882
5   libdispatch.dylib             	    0x7ff809f29cc9 _dispatch_client_callout + 8
6   libdispatch.dylib             	    0x7ff809f2c746 _dispatch_continuation_pop + 460
7   libdispatch.dylib             	    0x7ff809f3da5a _dispatch_source_invoke + 2150
8   libdispatch.dylib             	    0x7ff809f393ba _dispatch_root_queue_drain + 343
9   libdispatch.dylib             	    0x7ff809f39b5a _dispatch_worker_thread2 + 160
10  libsystem_pthread.dylib       	    0x7ff80a0dd02e _pthread_wqthread + 256
11  libsystem_pthread.dylib       	    0x7ff80a0dbffb start_wqthread + 15
Thread 5:
0   libsystem_pthread.dylib       	    0x7ff80a0dbfec start_wqthread + 0
Thread 4 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000  rbx: 0x00007000059a3000  rcx: 0x00007000059a2d48  rdx: 0x0000000000000000
rdi: 0x0000000000002d0f  rsi: 0x0000000000000006  rbp: 0x00007000059a2d70  rsp: 0x00007000059a2d48
r8: 0x0000000000000002   r9: 0x000000010717b000  r10: 0x0000000000000000  r11: 0x0000000000000246
r12: 0x0000000000002d0f  r13: 0x0000000109004100  r14: 0x0000000000000006  r15: 0x0000000000000016
rip: 0x00007ff80a0aa112  rfl: 0x0000000000000246  cr2: 0x00007ff94d62bcc0
Logical CPU:     0
Error Code:      0x02000148
Trap Number:     133
Binary Images:
0x7ff80a0a3000 -     0x7ff80a0d9fff libsystem_kernel.dylib () <5aa1e5be-b5b8-3a02-9885-a8c99e0ca378> /usr/lib/system/libsystem_kernel.dylib
0x7ff80a127000 -     0x7ff80a629fff com.apple.CoreFoundation (6.9)  /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x10691c000 -        0x106fcbfff bluetoothd () <5eea19ac-f95f-3684-acda-88b0c8194b3e> /usr/sbin/bluetoothd
0x108370000 -        0x1083dbfff dyld ()  /usr/lib/dyld
0x7ff80a0da000 -     0x7ff80a0e5fff libsystem_pthread.dylib () <6c7561b4-4b92-3f45-921e-abe669299844> /usr/lib/system/libsystem_pthread.dylib
0x7ff809f27000 -     0x7ff809f6dfff libdispatch.dylib ()  /usr/lib/system/libdispatch.dylib
0x7ff809fab000 -     0x7ff80a033fff libsystem_c.dylib ()  /usr/lib/system/libsystem_c.dylib
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=916.7M resident=0K(0%) swapped_out_or_unallocated=916.7M(100%)
Writable regions: Total=155.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=155.5M(100%)
                            VIRTUAL   REGION

REGION TYPE                        SIZE    COUNT (non-coalesced)
===========                     =======  =======
Activity Tracing                   256K        1
Dispatch continuations            64.0M        1
Kernel Alloc Once                    8K        1
MALLOC                            80.4M       29
MALLOC guard page                   32K        8
SQLite page cache                  128K        2
STACK GUARD                       56.0M        6
Stack                             10.5M        7
VM_ALLOCATE                         36K        4
__CTF                               759        1
__DATA                            19.6M      383
__DATA_CONST                      20.0M      245
__DATA_DIRTY                      1181K      162
__FONT_DATA                          4K        1
__LINKEDIT                       641.8M        9
__OBJC_RO                         81.8M        1
__OBJC_RW                         3136K        2
__TEXT                           274.9M      403
__UNICODE                          588K        1
dyld private memory               1024K        1
mapped file                       28.8M        7
shared memory                      580K        6
===========                     =======  =======
TOTAL                              1.3G     1281

Full Report
{"app_name":"bluetoothd","timestamp":"2021-12-31 14:44:52.00 +0000","app_version":"","slice_uuid":"5eea19ac-f95f-3684-acda-88b0c8194b3e","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 12.1 (21C52)","incident_id":"61007248-04D0-40B6-94AA-CD16EF7E251E","name":"bluetoothd"}
{
"uptime" : 70,
"procLaunch" : "2021-12-31 14:43:31.4255 +0000",
"procRole" : "Unspecified",
"version" : 2,
"userID" : 0,
"deployVersion" : 210,
"modelCode" : "MacBookPro11,4",
"procStartAbsTime" :<PHONE_NUMBER>,
"coalitionID" : 121,
"osVersion" : {
"train" : "macOS 12.1",
"build" : "21C52",
"releaseType" : "User"
},
"captureTime" : "2021-12-31 14:44:36.5002 +0000",
"incident" : "61007248-04D0-40B6-94AA-CD16EF7E251E",
"bug_type" : "309",
"pid" : 133,
"procExitAbsTime" :<PHONE_NUMBER>4,
"cpuType" : "X86-64",
"procName" : "bluetoothd",
"procPath" : "/usr/sbin/bluetoothd",
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "com.apple.bluetoothd",
"crashReporterKey" : "ECD467BC-702E-1B33-8B27-388726A13B6F",
"sip" : "enabled",
"isCorpse" : 1,
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
"asi" : {"libsystem_c.dylib":["abort() called"]},
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 4,
"threads" : [{"id":626,"queue":"com.apple.main-thread","frames":[{"imageOffset":2746,"symbol":"mach_msg_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":3627,"symbol":"mach_msg","symbolLocation":59,"imageIndex":0},{"imageOffset":527090,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":319,"imageIndex":1},{"imageOffset":520651,"symbol":"__CFRunLoopRun","symbolLocation":1325,"imageIndex":1},{"imageOffset":517597,"symbol":"CFRunLoopRunSpecific","symbolLocation":563,"imageIndex":1},{"imageOffset":1074734,"symbol":"CFRunLoopRun","symbolLocation":40,"imageIndex":1},{"imageOffset":101510,"imageIndex":2},{"imageOffset":21758,"symbol":"start","symbolLocation":462,"imageIndex":3}]},{"id":1553,"queue":"com.apple.bluetooth.root","frames":[{"imageOffset":13574,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27241,"symbol":"_pthread_cond_wait","symbolLocation":1224,"imageIndex":4},{"imageOffset":414987,"imageIndex":2},{"imageOffset":683266,"imageIndex":2},{"imageOffset":733697,"imageIndex":2},{"imageOffset":403249,"imageIndex":2},{"imageOffset":3412126,"imageIndex":2},{"imageOffset":3416629,"imageIndex":2},{"imageOffset":3280995,"imageIndex":2},{"imageOffset":6872,"symbol":"_dispatch_call_block_and_release","symbolLocation":12,"imageIndex":5},{"imageOffset":11465,"symbol":"_dispatch_client_callout","symbolLocation":8,"imageIndex":5},{"imageOffset":36078,"symbol":"_dispatch_lane_serial_drain","symbolLocation":696,"imageIndex":5},{"imageOffset":38907,"symbol":"_dispatch_lane_invoke","symbolLocation":417,"imageIndex":5},{"imageOffset":79841,"symbol":"_dispatch_workloop_worker_thread","symbolLocation":758,"imageIndex":5},{"imageOffset":12404,"symbol":"_pthread_wqthread","symbolLocation":326,"imageIndex":4},{"imageOffset":8187,"symbol":"start_wqthread","symbolLocation":15,"imageIndex":4}]},{"id":4086,"name":"StackLoop","frames":[{"imageOffset":11506,"symbol":"__psynch_mutexwait","symbolLocation":10,"imageIndex":0},{"imageOffset":16015,"symbol":"_pthread_mutex_firstfit_lock_wait","symbolLocation":76,"imageIndex":4},{"imageOffset":7512,"symbol":"_pthread_mutex_firstfit_lock_slow","symbolLocation":204,"imageIndex":4},{"imageOffset":402837,"imageIndex":2},{"imageOffset":403965,"imageIndex":2},{"imageOffset":25844,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":4},{"imageOffset":8207,"symbol":"thread_start","symbolLocation":15,"imageIndex":4}]},{"id":4088,"frames":[{"imageOffset":13574,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27241,"symbol":"_pthread_cond_wait","symbolLocation":1224,"imageIndex":4},{"imageOffset":421814,"imageIndex":2},{"imageOffset":25844,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":4},{"imageOffset":8207,"symbol":"thread_start","symbolLocation":15,"imageIndex":4}]},{"triggered":true,"id":4658,"threadState":{"r13":{"value":4445978880},"rax":{"value":0},"rflags":{"value":582},"cpu":{"value":0},"r14":{"value":6},"rsi":{"value":6},"r8":{"value":2},"cr2":{"value":140708721900736},"rdx":{"value":0},"r10":{"value":0},"r9":{"value":4413960192},"r15":{"value":22},"rbx":{"value":123145396301824},"trap":{"value":133},"err":{"value":33554760},"r11":{"value":582},"rip":{"value":140703297085714,"matchesCrashFrame":1},"rbp":{"value":123145396301168},"rsp":{"value":123145396301128},"r12":{"value":11535},"rcx":{"value":123145396301128},"flavor":"x86_THREAD_STATE","rdi":{"value":11535}},"queue":"com.apple.root.utility-qos","frames":[{"imageOffset":28946,"symbol":"__pthread_kill","symbolLocation":10,"imageIndex":0},{"imageOffset":25108,"symbol":"pthread_kill","symbolLocation":263,"imageIndex":4},{"imageOffset":531728,"symbol":"abort","symbolLocation":123,"imageIndex":6},{"imageOffset":5157798,"imageIndex":2},{"imageOffset":404882,"imageIndex":2},{"imageOffset":11465,"symbol":"_dispatch_client_callout","symbolLocation":8,"imageIndex":5},{"imageOffset":22342,"symbol":"_dispatch_continuation_pop","symbolLocation":460,"imageIndex":5},{"imageOffset":92762,"symbol":"_dispatch_source_invoke","symbolLocation":2150,"imageIndex":5},{"imageOffset":74682,"symbol":"_dispatch_root_queue_drain","symbolLocation":343,"imageIndex":5},{"imageOffset":76634,"symbol":"_dispatch_worker_thread2","symbolLocation":160,"imageIndex":5},{"imageOffset":12334,"symbol":"_pthread_wqthread","symbolLocation":256,"imageIndex":4},{"imageOffset":8187,"symbol":"start_wqthread","symbolLocation":15,"imageIndex":4}]},{"id":4910,"frames":[{"imageOffset":8172,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":4}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "x86_64",
"base" :<PHONE_NUMBER>56768,
"size" : 225280,
"uuid" : "5aa1e5be-b5b8-3a02-9885-a8c99e0ca378",
"path" : "/usr/lib/system/libsystem_kernel.dylib",
"name" : "libsystem_kernel.dylib"
},
{
"source" : "P",
"arch" : "x86_64h",
"base" :<PHONE_NUMBER>97440,
"CFBundleShortVersionString" : "6.9",
"CFBundleIdentifier" : "com.apple.CoreFoundation",
"size" : 5255168,
"uuid" : "eab0e216-2a9e-31ce-9164-fdf3ebcf7bd3",
"path" : "/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation",
"name" : "CoreFoundation",
"CFBundleVersion" : "1856.105"
},
{
"source" : "P",
"arch" : "x86_64",
"base" :<PHONE_NUMBER>,
"size" : 7012352,
"uuid" : "5eea19ac-f95f-3684-acda-88b0c8194b3e",
"path" : "/usr/sbin/bluetoothd",
"name" : "bluetoothd"
},
{
"source" : "P",
"arch" : "x86_64",
"base" :<PHONE_NUMBER>,
"size" : 442368,
"uuid" : "cef5a27a-d50b-3020-af03-1734b19bc8c5",
"path" : "/usr/lib/dyld",
"name" : "dyld"
},
{
"source" : "P",
"arch" : "x86_64",
"base" :<PHONE_NUMBER>82048,
"size" : 49152,
"uuid" : "6c7561b4-4b92-3f45-921e-abe669299844",
"path" : "/usr/lib/system/libsystem_pthread.dylib",
"name" : "libsystem_pthread.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" :<PHONE_NUMBER>00288,
"size" : 290816,
"uuid" : "c8f7bfb6-4b1a-37cd-a32d-cd5069c916df",
"path" : "/usr/lib/system/libdispatch.dylib",
"name" : "libdispatch.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" :<PHONE_NUMBER>40960,
"size" : 561152,
"uuid" : "e58814cc-dcb7-35a5-badc-e367ed3ac207",
"path" : "/usr/lib/system/libsystem_c.dylib",
"name" : "libsystem_c.dylib"
}
],
"sharedCache" : {
"base" :<PHONE_NUMBER>54400,
"size" :<PHONE_NUMBER>4,
"uuid" : "40432a03-88d3-305f-9c0c-e7549e71d927"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=916.7M resident=0K(0%) swapped_out_or_unallocated=916.7M(100%)\nWritable regions: Total=155.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=155.5M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nDispatch continuations            64.0M        1 \nKernel Alloc Once                    8K        1 \nMALLOC                            80.4M       29 \nMALLOC guard page                   32K        8 \nSQLite page cache                  128K        2 \nSTACK GUARD                       56.0M        6 \nStack                             10.5M        7 \nVM_ALLOCATE                         36K        4 \n__CTF                               759        1 \n__DATA                            19.6M      383 \n__DATA_CONST                      20.0M      245 \n__DATA_DIRTY                      1181K      162 \n__FONT_DATA                          4K        1 \n__LINKEDIT                       641.8M        9 \n__OBJC_RO                         81.8M        1 \n__OBJC_RW                         3136K        2 \n__TEXT                           274.9M      403 \n__UNICODE                          588K        1 \ndyld private memory               1024K        1 \nmapped file                       28.8M        7 \nshared memory                      580K        6 \n===========                     =======  ======= \nTOTAL                              1.3G     1281 \n",
"legacyInfo" : {
"threadTriggered" : {
"queue" : "com.apple.root.utility-qos"
}
},
"trialInfo" : {
"rollouts" : null,
"experiments" : null
}
}

which bluetooth card are you using?

I can second this, with some additional information.
The bluetooth card is sometimes off after boot, sometimes on. I cannot switch the power state regardless of where it's currently at, but it generally stays in that state through sleep (it'll, rarely, not turn on after sleep).
Willing to provide more information if necessary, but don't know what to provide.

I am using a Wireless-AC 7260, and bluetooth just randomly freezes after sleep.
I can fix it by restarting the bluetoothd process but this seems annoying as I use a Designer bluetooth mouse

try to
Intel WiFi/Bluetooth
OpenCore 0.7.8
Thinkpad T440p
The fix was:
UEFI -> ProtocolOverrides -> HashServices -> true
https://github.com/simprecicchiani/ThinkPad-T460s-macOS-OpenCore/issues/150#issuecomment-1328252628
no issues after going sleep


If workspace.enableUserTags is false, Dendron Doctor still flags @usertags with findBrokenLinks when user notes don't exist

Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

[x] Workspace.  VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
[ ] Lookup.  Dendron's Lookup Command
[ ] Views.  Dendron Preview, Tree View, Side Panels in the UI
[ ] Schema.  Dendron Schemas
[ ] Pod.  Data import from / export to Dendron
[ ] Publish.  External Site Publish
[ ] Markdown.  Markdown features, such as syntax support and features

Describe the bug
When setting workspace.enableUserTags to false in dendron.yml, it works as expected in the workspace UI. Though, if I run Dendron Doctor's findBrokenLinks command, it still gets flagged as an expected enabled user tag.
To Reproduce
Steps to reproduce the behavior:

Create a workspace
Set workspace.enableUserTags to false
Reload window
Create a note that contains @test within it
Run Dendron: Doctor -> findBrokenLinks

Expected behavior
If workspace.enableUserTags to false in dendron.yml, that Dendron Doctor ignores it when finding broken links. This may also impact hashtag functionality if workspace.enableHashTags is set to false too (I haven't tested this).
Desktop (please complete the following information)

OS: Pop!_OS 22.04
Versions (all that apply to bug):

Dendron Extension: v0.102.0
VS Code version: 1.68.1
Dendron CLI: Untested with CLI

hmm, does this repro reliably? for some reason unable to get this to repro, see https://www.loom.com/share/8ad0ae01c991428fbc4056dfb03fafc6


CT-1240 test bucket drop

Jira: CT-1240
KBC: -
Before asking for review make sure that:
Checklist

[x] New client method(s) has tests
[x] Apiary file is updated

Release

[x] I gave the PR a proper label:

major (BC break)
minor (new feature)
patch (backwards compatible fix)
no release (just test changes)

just add dropBucket step in the flow to check that bucket drop really works in BYODB env

👁


Error if initializing GridCells with random_gridscales=False

env = Environment()
ag = Agent(env)
grid_cells = GridCells(
        ag,
        params={"random_gridscales": False}
    )

grid_cells.plot_rate_map()

The code above raised an error:
  File "/Users/pei/.pyenv/versions/3.10.5/lib/python3.10/site-packages/ratinabox/Neurons.py", line 244, in plot_rate_map
    t_end = t_end or t[-1]
IndexError: index -1 is out of bounds for axis 0 with size 0

My quick workaround is:
self.gridscales = np.full(self.n, fill_value=self.gridscales)

This issue was fixed in a PR which will soon be merged once a small change is made. then I will close it

fixed


Package Ethereum (geth, mist)

Ethereum is a cryptocurrency. Geth is the a go cli and mist is the name of the wallet. It's packaged with electron so I used the atom editor package as a reference.

Thought I'd follow up on on this. I think the build error is a timeout when building dependencies for electron.

Our travis setup doesn't always work correctly. More important thing is if the packages work for you.


Making changes so I can delete branch locally

Forgot to delete branch locally, so needed to add changes so I can do so

Assigning myself to review pull request

Good to go; merging


replacing folder node name default character with hyphen

@badvision
Modified code to create folder node names with "-" as separator instead of "_". Please review.

Coverage remained the same at 39.595% when pulling faf7d6762e6a4f22276771cee71d110b15537f40 on kmurugulla:feature/asset-ingestor-foldername-with-hyphen into b4bf04eac51f7c1b373e70b41a3febc69e005413 on Adobe-Consulting-Services:master.

I think this makes sense - as hyphens are the common replacement for spaces in AEM node names.
That being said, I'm not sure if this would be problematic/annoying for customers that have ingested a ton of assets using the old format?
An option to select the valid naming scheme seems overkill to support the old behavior, but... idk. WDYT? @badvision ?

Is it right hat only one instance of getValidName uses this rule? (See my first comment)

Oh I didn't catch that @davidjgonzalez  -- @kmurugulla can you update the conversion for all parts of the path so it's more consistent?


OCM-9645 | fix: Add back maxSurge and maxUnavailabe for create HCP NPs

maxSurge and maxUnavailable for create HCP NPs were accidentally removed in MR:
https://github.com/openshift/rosa/pull/2142
Adding it back.
Jira: https://issues.redhat.com/browse/OCM-9645

/lgtm

/retest

/retest

/retest


Advance code update

OpenBMC Advance code update functionalities associate with https://github.com/openbmc/openbmc/issues/349

https://github.com/openbmc/openbmc/issues/259 - Will be included in this.

@saqibk, Shall we revisit the estimate.

[ ] Image signing (BMC & PNOR)

[ ] Alternate BMC Boot

[ ] Brick Protection

Tasks: Test plan creation, automation


remove script annotations / eager compilation

After https://github.com/pytorch/pytorch/pull/38050, classes compile recursively so there is no longer any need to annotation them. And we can use _script_if_tracing to not eagerly compile the script functions but still compile them when we trace.
I'm hoping this resolves https://github.com/pytorch/vision/issues/2132
Edit looks like #38050 hasnt made its way to nightly yet

@eellison test failures seems related, could you have a look?

It's unfortunate that this wasn't included in 0.6.1. Since future releases will apparently only support Python 3.6+, if you just run pip install torch torchvision on Python 3.5 you'll still end up with a broken configuration.
I don't suppose there's a 0.6.2 planned?

@IRDonch There isn't, but we are going to be releasing 0.7.0 in the next few weeks (but no Python 3.5 support)

Also, @IRDonch note that this is only broken for torchhub models, the rest of torchvision should not be broken for the 0.6.1 release on Python 3.5

the rest of torchvision should not be broken for the 0.6.1 release on Python 3.5

Just importing torchvision fails for me (with the same error as in #2132), even with torch==1.5.1 torchvision==0.6.1.

@IRDonch are you using virtualenv? It had some bad interactions with @torch.jit.script annotations, but it has since then been fixed in master and the fix will be present in 0.7.


Start migration guide.

R: @jeffposnick @addyosmani @gauntface
Fixes #313
Starts the content for #109

The error is in code that I didn't touch (unless I'm missing something).


Hey, How many Languages it can support?

Hey, How many Languages it can support?

I would be very Greateful to know, i'm using this on My Discord Bot Project.
Repository : https://github.com/SamirXR/Nyx-Bot

A lot, actually.
I do not know the exact language codes but it is on the lines like:
en, fr, zh,
and so on.
But I need to say, only standard languages will work.
For Example: en will work but en-us may not
Get a language code, try it, and, it should work.
Sorry if this was not helpful.

Again, sorry, but it is really limited to the languages you want.

Hey Thanks for response! i got it to work for these languages hopefully it can be Helpful for you!

Code
Language

en
English

es
Spanish

fr
French

de
German

ja
Japanese

ru
Russian

ar
Arabic

pt
Portuguese

it
Italian

nl
Dutch

ko
Korean

tr
Turkish

sv
Swedish

hi
Hindi

pl
Polish

vi
Vietnamese

el
Greek

fi
Finnish

zh
Chinese

Thank you, and if you search up any language (2 letter only) it will come up :)

https://www.loc.gov/standards/iso639-2/php/code_list.php
Check ISO 639-1 Code Column


Add quickstart instructions for Remix

@emilyJLin95 Can you tell me more a about this issue and how to fix it. I am interested :)

So similar to how we do the deployment instructions for truffle, hardhat, foundry (https://docs.linea.build/build-on-linea/quickstart/deploy-smart-contract/hardhat)
Giving instructions on how to deploy on Linea using Remix


Adds GLPK as a solver

I would consider this a bit of an unelegant solution, since I am changing filepaths in the snakefile and having to copy over the osemsosy model if running glpk. But! for the time being it works :)

Also, this solutions assumes the model file is named osemosys.txt

@HauHe

Hi @trevorb1 ,
I made few comments in the code. But nothing major.
Is solving with gurobi already functional as well?

Thanks for the feedback! I don't have Gurobi installed on any easily accessible computer right, so you will have to test Gurobi please!


0.57 release tracking issue

Tracking issue for release of 0.57 of smithy-rs

[ ] HTTP crate updates (@rcoh)
[ ] #3052 (@rcoh)
[ ] #3093 (@ysaito1001 )
[ ] #3088 (@ysaito1001 )
[ ] #3091 (@ysaito1001)
[ ] #3084  (@rcoh)

I need to merge https://github.com/awslabs/smithy-rs/pull/3095, but it won't need any changes to runtime crates.

Generated server SDKs re-export SdkBody and ByteStream in lib.rs:
pub use ::aws_smithy_types::body::SdkBody;
pub use ::aws_smithy_types::byte_stream::error::Error as ByteStreamError;
pub use ::aws_smithy_types::byte_stream::AggregatedBytes;
pub use ::aws_smithy_types::byte_stream::ByteStream;
pub use ::aws_smithy_types::date_time::Format as DateTimeFormat;
pub use ::aws_smithy_types::error::display::DisplayErrorContext;
pub use ::aws_smithy_types::Blob;
pub use ::aws_smithy_types::DateTime;

I guess that we need to expose similarly named feature flags as the ones in #3088 to toggle exposure of the feature-gated methods in aws-smithy-types? cc @drganjoo.

probably not critical since we aren't as worried about compatibility and the server is always going to be HTTP. It's more about forward-looking work to support not-Http things, allow a seamless upgrade to http-body = 1, etc.


Allow snapping without animation

My use case is that I need to update an intractable view's position while it is just off screen (in a paging scroll view) and I don't want it to be mid snap animation if the user swipes over to the page containing the intractable view.
This is very likely a naive approach. Also, I have only tested this on iOS, since my current project is iOS only right now.

Thanks for the two PRs, we will review the code and merge it.

@ButtersHub Any updates on this PR ?)

This could be a useful feature, but I was able to find a more elegant solution the problem I was solving. Feel free to close it if you don't see value in snapping without animation. Also, the android code is not tested. I addressed feedback from @kptlronyttcna, but I haven't tested the code on Android.

Thank you @derrh ! In the end we've added it separately in changePosition function a while ago (https://github.com/wix/react-native-interactable/issues/60)


Fix inaccuracy nginx service metrics.

Fix inaccuracy nginx service metrics.

[x] Add a unit test to verify that the fix works.
[x] Explain briefly why the bug exists and how to fix it.

[x] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #11982 nginx part.
[x] Update the CHANGES log.

service metrics:

instance1 metrics:

instance2 metrics:


Blank lines inserted in to collapsible section upon saving

Describe the Bug
When pasting specific HTML content into a collapsible section in Bookstack, extra blank lines are inserted within the  element upon saving the page multiple times. Noticed this bug when copy and pasting from Microsoft's practice assessment portal, but might be reproducible from other sites too.
Steps to Reproduce
Copy HTML content from Microsoft's practice assessment website (linked below). Copy only the result that appears after selecting an answer in to the collapsible section in Bookstack.
https://learn.microsoft.com/en-us/credentials/certifications/exams/pl-100/practice/assessment?assessment-type=practice&assessmentId=63&source=docs
Alternatively, here is a minimal example to reproduce the issue. Just use the source code editor to paste it within the collapsible section.

Once you have added the content to the collapsible section, save the page, edit, and save the page again.
Observe that extra blank lines

 are added within the  element each time the page is saved
Expected Behaviour
No extra blank lines should be added within the  element when saving the page.
Screenshots or Additional Context
No response
Browser Details
No response
Exact BookStack Version
v23.08.3

Thanks for reporting @OneFreemanWill.
Yeah, unexpected content copied in externally could easily cause strange behaviour with details blocks.
I can look to improve filtering here, but it would be useful to have a proper example.
The simplified example provided is useful to reproduce, but It'd be good to have an example with some content within, to assess how we deal with formatting/handling the content itself.
I appreciate you linked to the Microsoft site, but that link requires sign-in and sign-up to Microsoft content which I'm not too keen on.

Since there's been no follow up to my message above, I'll close this off, but if the issue remains as an annoyance please share a simplified example as per the above and I can re-open this to look into it further.


w32api-headers - update to latest version

w32api-runtime - Update to latest version

Any reason for partially reverting both #837 and #838 in the process?
I also noticed that in https://github.com/Alexpux/MINGW-packages/pull/2533 which reverts https://github.com/Alexpux/MINGW-packages/pull/2269 and https://github.com/Alexpux/MINGW-packages/pull/2270


using silhouette

Hi, Thx alot for your work, I try to use your python script with my shilouette portrait, please let me know the command to cut a svg file. thx alot.

There is no opensource software to convert SVG to GPGL (the format that silhouette uses) so far. Its also quite complex because SVG supports lots of different features which would all have to be translated.

@Jachimo actually, the team I worked with decided to build a solution exactly for this, its opensource now that the project has ended and can be found here:
https://github.com/LinePod/SvgConverter
Have fun!


No checks are implemented on the language variable in setup.py

Dear all,
it seems that no checks are implemented on the language variable defined as part of an Extension in setup.py. I can set it to language='jadshad' and the installation process would still work. For example, writing language='C++', the language is not correctly interpreted as C++ (it should be language='c++'). If you point me in the right direction (where to look in the repo), I would be happy to try to tackle this issue.
Best wishes.

That code comes from distutils, documented here. The docs suggest the valid values are 'c++', 'c', or 'objc'. The code is probably in the CPython repo.


Module file was created by a newer version of the compiler

I am using XCode6.4 and I imported JustHTTP/Just library using Carthage. (*** Downloading Just at "v0.3")
Import worked fine and here is a screenshot of my xcodeproj file enter image description here

But on this line:
import Just

I am getting this error
Module file was created by a newer version of the compiler
...../Carthage/Build/iOS/Just.framework/Modules/Just.swiftmodule/x86_64.swiftmodule

Can someone advice? Thanks!

The default branch (v0.3) is on Swift 2. So you should ether switch to Xcode 7 or use github "JustHTTP/Just" ~> v0.1 in your Cartfile.


Update to change base path label

Change Base Path label to 'Slug'

@benhazell I'm not sure "Slug" is the best terminology to use here as the most common definition for it is just the page identifiable part of a URL.
So we'll be showing something like /government/news/420-million-to-support-local-infrastructure whereas traditionally a slug (and as Whitehall uses them) refers to just the 420-million-to-support-local-infrastructure
I don't think we should go with base path though for users, but could consider options like GOV.UK Path or just URL ?

@kevindew The change from Base Path to Slug was part of a demo of GitHub YAML editing BenT and I just did. This isn't a real change - we can reject it.
I wrote slug more as a joke for the content community as everyone's always found it a silly word.

@benhazell d'oh! sorry

@kevindew we can close this. Although I notice that CI doesn't seem to have picked this up.
@benhazell can you try doing another change on a brand new branch name to see if it's something to do with the branch ('patch-2') you chose?

@benthorner CI won't pick this up as it's a fork of this repo. To make changes directly in this repo Ben needs to be part of the GOV.UK Content Designers Github group - there is a pending invite for him to join that.


[DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.

Describe the bug
use Docker to install backend ,but after run "docker run perplexica-perplexica-backend" ,show this message "
yarn run v1.22.19
$ node dist/app.js
info: WebSocket server started on port 3001
(node:28) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
info: Server is running on port 3001
To Reproduce
Steps to reproduce the behavior:

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

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

can't connect to ollama ,can't choose modals

system: UBUNTU 24.04
config.toml :
[GENERAL]
CHAT_MODEL_PROVIDER = "ollama"
CHAT_MODEL = "llama3:latest"
PORT = 3001
SIMILARITY_MEASURE = "cosine"
[API_KEYS]
OPENAI = ""
GROQ = ""
[API_ENDPOINTS]
SEARXNG = "http://localhost:32768"
OLLAMA = "http://host.docker.internal:11434"

Its an issue from yarn, please don't open issues regarding warnings


Script: display Lambda logs in deploy output

Requested by Brinsley:

Hey guys, been playing with the Script construct as a way of running migrations in a post-deploy process. Anyone know how to get logs from my functions to output in the console?

Request:

Brinsley https://serverless-stack.slack.com/archives/C01JG3B20RY/p1643713209182869

We are transition this repo to https://github.com/sst/v2 and are closing this issue for now. If it is still relevant please reopen it there - sorry for the trouble


fix(e2e): fix CSV tests

Description

Looks in testNamespace instead of operatorNamespace for created CSVs and Deployments in TestCreateCSVWithOwnedAPIService.
Creates CSV first before use in CRD OwnerReferences (UID was empty which meant that changes to the CRD would not requeue the CSV).

Supersedes #582

/approve


Update: Sigil-Ebook.Sigil version 1.7.0

- [X] Have you signed the Contributor License Agreement?

[X] Have you checked that there aren't other open pull requests for the same manifest update/change?

[ ] Have you tested your manifest locally with winget install --manifest <path>?
[x] Does your manifest conform to the 1.0 schema?

Microsoft Reviewers: Open in CodeFlow

Hmm

@KaranKad any idea on why this suddenly is a issue? Its also appears on version 1.6.0 now which passed both manual and automatic validation 2021-06-08


Added Edit Task Image to DG

Codecov Report

Merging #310 (b36738a) into master (8b900e2) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #310   +/-   ##
=========================================
  Coverage     69.56%   69.56%
  Complexity      785      785
=========================================
  Files           107      107
  Lines          2645     2645
  Branches        321      321
=========================================
  Hits           1840     1840
  Misses          721      721
  Partials         84       84

Continue to review full report at Codecov.

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


Replace toasts with improved custom optimistic UX

Description
Close #849 Related to #848
As mentioned in #1071, this replaces useInvoiceable with usePayment which has a simpler API.
This PR also contains changes to improve the external payment UX by replacing generic toasts with custom UX code per action.
TODO:

[x] #1071
[x] optimistic zap UX
[x] optimistic custom zap UX (custom zap = zapping via long press)
[x] optimistic reply UX
[x] ~optimistic post UX~ canceled because this is most likely better implemented using server-side code so let's first get user feedback on client-side optimistic update code before delving deeper into UX patterns that include server-side code

[x] ~bounty form~
[x] ~discussion form~
[x] ~link form~
[x] ~poll form~
[x] ~job form~

[x] optimistic poll votes UX
[x] optimistic bounty payments UX
[x] ~territory admin optimistic UX~

[x] ~create~
[x] ~update~
[x] ~unarchive~

[x] (zap) undos
[x] remove unnecessary payment context (see this comment)
[x] fix meAnonSats not immediately updated

Error handling

[x] inform users about errors in notifications to let them retry
[x] ~remove fallback to QR code on attached wallet payment failure since it interrupts UX (rely on out-of-band error handling like notifications instead) (?)~ let's see in production first
[x] fix Cannot read properties of null (reading 'meSats') when reloading page on /notifications and trying to zap error notification because cache is not populated
[x] fix client notifications don't use cache but static item data. this means optimistic updates don't work for client notifications.

Screenshots
Since toasts for success and error were removed for better UX, we now use ~dismissible~ error notifications that are only stored locally. So if you zap something and it fails, it looks like this:

Additional Context
See https://github.com/stackernews/stacker.news/pull/1071#issuecomment-2094562629 for additional context regarding move from useInvoiceable to usePayment. Most notably, JITInvoice is no longer with us. I removed it because it made the code more complicated and the retry/cancel UX was bad and lead regularly to confusion ("sats received" vs "error"). The HODL invoice is now immediately canceled if the action fails. With the new custom optimistic UX, retries via literally retrying (pressing reply, zapping again etc.) are imo simple enough.
Checklist
Are your changes backwards compatible? Please answer below:

Did you QA this? Could we deploy this straight to production? Please answer below:

For frontend changes: Tested on mobile? Please answer below:

Did you introduce any new environment variables? If so, call them out explicitly here:

Random better idea for zap undos: instead of this ugly orange toast with "undo" written inside, use the pending pulse animation I had before and use that as undo.
So while the bolt is pulsing, you can click it again to undo.

Somehow I end up increasing my balance with this approach. Aren't those invoices not supposed to settle?
Also, one of my zaps ended up showing up as a flag (on the sn wallet plans post). No idea what that's about.

Somehow I end up increasing my balance with this approach. Aren't those invoices not supposed to settle?

You're right, they should either settle because they were consumed by an action or canceled. So in both cases, the balance shouldn't increase.

Also, one of my zaps ended up showing up as a 0-sat flag (on the sn wallet plans post). No idea what that's about, but I suspect there's a bug somewhere that caused that.

I had this error before. It happens when a payment fails and the code that reverts the optimistic update ends up writing a negative value instead of the value before the update was done.

Did you test all sending side wallets after these changes? It might help discover more unhappy paths.

No, I assumed that all sending wallets would behave the same since I only relied on sendPayment working afaict. But I guess there are some details I missed, most likely related to error handling.

No, I assumed that all sending wallets would behave the same since I only relied on sendPayment working afaict. But I guess there are some details I missed, most likely related to error handling.

Kind of meta, but because all the wallets are all in a beta state, we should probably QA all of them when we make changes to related code. It'll also help us familiarize ourselves with the UX of each wallet over and over again, so that all of them work equally well. So it's both QA and UX investigation.

I need to get NWC working

#1151 should have you covered. You only need to install nostr-wallet-connect-lnd. It uses wss://relay.damus.io by default which has rate limits which can be annoying.

Yep, also thought about this. I'll do this today. I think this is more in my ball park anyway since I also use LNbits to manage my lightning credentials for hnbot and oracle + I need this to test this PR.

Mhh, I fixed a race condition in 3ddd6b4 but there is still one: when we zap too fast, pending sats are counted again for each zap since cache.modify triggers readField which then adds pending sats that are already included in existing sats again to the existing sats.
For some reason I completely missed this before, I must have been too cautious in testing my code or NWC payments were too slow so I didn't notice this. I tried to fix this by accounting for existing pending sats when calling cache.modify but didn't work for some reason. So I guess there is more stuff broken in my assumptions.
This also isn't the only issue I found: We don't update me.privates.sats so there is also a bug where following zaps reuse the existing balance and thus think they don't need an invoice but then fail since they actually do.
I'm starting to believe we should straight go for storing pending states in the server and skip this release of client-side optimistic updates. On the server, we can use database transactions to make sure we don't run into race conditions like this. Feels bad that it took me so long to realize that doing this on the client is way too messy and buggy but better pivoting late than releasing this in its current state. Going to sleep over this but I think this is the right call. Doing all of this stuff on the server should be much simpler, thus cleaner and is what we wanted to do anyway.

Superseded by #1184


DNN-25771: set default database connection provider to compactible for upgrade process.

Fix #2384.

@tpluscode
Database provider has been added in DNN 9.3.0, it 's been a PR from @galatrash

@sleupold It is a bit confusing. It's actually from @JoshuaBradley via #1401. @galatrash updated it when corp first attempted to merge it into the platform ages ago.

Quick Question: What does "compactible" mean, I can't associate with the change.
and the referenced Jira Issue DNN-25771 doesn't seem to be connected.


Question: How to chain With clauses on the same Index

Hello,
I would like to do the following:
var item = await this.DatabaseSession
	.Query<ContentItem, TextFieldIndex>(false)
	.With<TextFieldIndex>(index => index.ContentField == "ID" && index.Text == identifier)
	.With<TextFieldIndex>(index => index.ContentField == "Version" && index.Text == version)
	.FirstOrDefault();

The goal here is to find a content item that contains two indices, one with the given ID and one with the given Version. Is there any way to accomplish this? The example I gave above builds the query into something like this:
WHERE ([TextFieldIndex].[ContentField] == "ID" AND [TextFieldIndex].[Text] == id) AND ([TextFieldIndex].[Text] == "Version" AND [TextFieldIndex].[Text] == version)

Which is impossible to match.

Shouldn't this work?
.With<TextFieldIndex>(index => (index.ContentField == "ID" && index.Text == identifier) || (index.ContentField == "Version" && index.Text == version))

That should return values that have either the ID with the given value and/or the Version with the given value.
What I need is for content items that have both of those.

I assume we need a new operator. What would the SQL look like? I assume it needs to introduce as many "inner join" as we want to.

I think we should have With<> that create a new INNER JOIN, every time, and and And/Or that just adds predicates to the current INNER JOIN.
Your query would then become:
var item = await this.DatabaseSession
	.Query<ContentItem, TextFieldIndex>(false)
	.With<TextFieldIndex>(index => index.ContentField == "ID" && index.Text == identifier)
	.With<TextFieldIndex>(index => index.ContentField == "Version" && index.Text == version)
	.FirstOrDefault();

Or also
var item = await this.DatabaseSession
	.Query<ContentItem, TextFieldIndex>(false)
	.With<TextFieldIndex>(index => index.ContentField == "ID").And(index => index.Text == identifier)
	.With<TextFieldIndex>(index => index.ContentField == "Version").And(index => index.Text == version)
	.FirstOrDefault();

Another option would be to be able to pass an alias to the With statement, such that each alias has its own INNER JOIN. That would not break existing queries, as two calls to With would use the same default alias then, and only call to With(alias2, ...) would create a new INNER JOIN.

Your final option sounds good due to the potential code-breaking issues.
SELECT
	*
FROM
	[Documents]
INNER JOIN
 	[TextFieldIndex] AS [T1]
ON
	[T1].[DocumentId] = [Documents].[Id] AND [T1].[ContentField] = 'ID' AND [T1].[Text] = <identifier>
INNER JOIN
 	[TextFieldIndex] AS [T2]
ON
	[T2].[DocumentId] = [Documents].[Id] AND [T2].[ContentField] = 'Version' AND [T2].[Text] = <version>

What I would do if I was using EntityFramework would be something like this:
queryable.Where(item => item.Indices.Any(index => index.ContentField == "ID" && index.Text == identifier) && item.Indices.Any(index => index.ContentField == "Version" && index.Text == version))

I will try to implement this alias solution then. I think it should be easy since this is what I am doing somehow already, but with a value that is the name of the index, to distinguish inner joins on different index tables. So in theory I should just have to introduce and argument to define a custom value instead.


Add DynamoDB Enhanced Client for DynamoDB Annotations

Add DynamoDB enhanced client
https://aws.amazon.com/de/blogs/developer/introducing-enhanced-dynamodb-client-in-the-aws-sdk-for-java-v2/

Yesterday I also found this extension https://github.com/Nithanim/quarkus-dynamodb-enhanced. In the readme this issue https://github.com/aws/aws-sdk-java-v2/issues/2604 is mentioned. I think to fix this myself exceeds my current capabilities in quarkus (classloader magic) and aws.

@hamburml Hello! Thank you for contacting me! I am very sorry but I currently do not have the mental capacity to help you with your issues trying to integrate the enhanced client into the Quarkus extension because I am quite burnt out by my dayjob. Also I don't want to deal with tests and autoconfig additionally, which was pretty much why I just made my own Quarkus extension and left it at that.
BUT I am gladly willing to give you any insight I have around what my extension does and how it works. In my repository you should find a lot of documentation about the issues and what I did to fix them but if something is still not clear just message me somewhere (here, reddit, telegram, ...).
Basically, Quarkus has a special classloader thingy going for tests which breaks aws-sdk code which can't be fixed (from my point of view) in Java 8 (but the sdk is built against Java 8). And the BeanTableSchema does not work with Graal native-image because of "reflection" (not really but for simplicity here) which my extension also circumvents.
Otherwise, the dynamodb enhanced client should be compatible with Graal native-image. At least for all features we used at my previous work. Coincidentally, today they messaged me and told me that they upgraded Quarkus to the newest version, including my extension. It happily helps serving and booking holiday homes with multiple partners without issue every day.
By the way, you have full permission to copy paste stuff from my repository if you need it. If you manage to integrate it into the official extension I would be very happy, because I switched jobs and migrated to Azure. So if you managed to lift the burden off me that would be great!
Regarding the integration of the enhanced client into the existing dynamodb extension: I would also suggest to create a new extension /dynamodb-enhanced right beside the existing /dynamodb to keep them separated. Makes sense both feature-wise and test-wise. So if one does not want the enhanced client, it is not included.

Regarding the problem with the SdkClientException: I don't know what quarkus.class-loading.reloadable-artifacts does but I think that the rest of the message is misleading you a bit. If the same class is loaded by multiple classloaders, everything about the class looks exactly the same but for the JVM, they are completely different. I suspect that this is exactly the case here as the error message does not convey this important information. Pretty sure you can see it in the debugger when you look at the hashcode or the toString() of the classes.
However, I have not encountered encountered your specific error with ApplyUserAgentInterceptor yet. I only did with user-classes like the database-beans you define. So I am not really sure what the problem is there or even what the class is for. (Or it is in your commit but I haven't looked at your code, sorry.) But I can give you a short explanation what happens in the case I fixed with the database-beans:
The NoClassDefFoundError happens because, well, it is exactly what it states it is. In short, Quarkus loads all dependencies in one classloader and the classes of the current maven module in another. But the aws sdk has a "bug" in there which leads to the point that the sdk tries to search for the user-class (the dynamo db bean or whatever) in its classloader but this is completely wrong because the stuff is in a different classloader. Hence, the NoClassDefFoundError with stuff that is there (in your point of view).

@Nithanim Thanks for answering and your explanations. Quarkus dropped java 8 support with the release of quarkus 2. So maybe your fixes are already enough to make it work and we do not need to bother with a fix for version 8.
I will try to update the PR and add it next do dynamodb so that in the end we have two artifacts.
@scrocquesel @gsmet If you have time could you cross-read and give your opinion? I don't want to invest too much time in case the fixes used in https://github.com/Nithanim/quarkus-dynamodb-enhanced are not wanted for this extension.

@Nithanim Thanks for answering and your explanations.

Absolutely no problem! :) I can gladly help with stuff I found out previously but don't have the capacity for new stuff if that makes any sense.

Quarkus dropped java 8 support with the release of v 2. So maybe your fixes are already enough to make it work and we do not need to bother with a fix for version 8.

Maybe I was not really clear or cut my explanation too short. The fundamental problem is the code of the aws sdk, not Quarkus. Quarkus rather just exposes the problem. However, the aws sdk devs are not to blame either because they simply cannot fix the problem (from my point of view; I tried really hard) as long as they support Java 8. The only two options are that they drop Java 8 support and fix the issue or make a multi-release jar where the Java 8 version has the bug and 9+ (I think) does not.
The first option is pretty much out of reach as long as they support Java 8 for lambdas (and other things).  Also, for Quarkus this is a test issue only since at runtime everything is in the same classloader and works flawlessly. So nobody really cares I guess.
The good coincidence for me was that the classloader issue can be circumvented with the exact same fix that is used for the native-image. I found out about the test-classloader issue after I fixed native-image because I wrote the tests afterwards. So basically the code that replaces the "reflective" access of the user-provided dynamodb bean with a supported "reflective" version by native-image, can be used for the tests. But this is really just a coincidence and I just rolled with it. I think it is a performance hit it you do not native-compile the app. So realistically, you would apply the the patch only for tests and native-image but not for JVM in production.

To be honest, I simply copied quarkus.class-loading.reloadable-artifacts from another comment and it worked on my machine, the NoClassFoundError was gone. But now another error regarding ApplyUserAgentInterceptor appeared during the integration-tests. I think the reloadable-artifacts is not needed when its fixed and is a side effect from loading the classes with another classloader :)
The class can be found here btw https://github.com/aws/aws-sdk-java-v2/blob/master/services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/internal/ApplyUserAgentInterceptor.java and your explanations makes totally sense.

It is funny because I don't think that my explanations make any sense in this context :laughing:. The class is in the original aws sdk, not a user-class. So that should work without any problems because it is all loaded in the same classloader. I am not sure what the problem is and may have to look at that myself.

I started with a new module (I simply copied the files from @Nithanim and created missing files for the new extension). I currently have the issue that multiple extensions registered the feature name amazon-dynamodb-enhanced. This is because of the TestClassloaderProcessor.java and the DynamodbEnhancedProcessor.java. I think I need to mix both classes together but its late and I need to get up tomorrow.... Source is here, if anyone wants to help https://github.com/hamburml/quarkus-amazon-services/tree/feature/dynamodb-enhanced-module

@hamburml I took the time to look at your
2022-08-31 21:06:27,223 INFO  [io.qua.it.ama.dyn.DynamoDBEnhancedResource] (executor-thread-0) Testing Blocking Dynamodb client with table: blocking
2022-08-31 21:07:48,368 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (executor-thread-0) HTTP Request to /test/dynamodbenhanced/blocking failed, error id: 0103285d-26a2-41cf-b870-00b025254e59-1: java.lang.NoClassDefFoundError: io/quarkus/it/amazon/dynamodb/DynamoDBExampleTableEntry
	at software.amazon.awssdk.enhanced.dynamodb.internal.mapper.ResolvedImmutableAttribute.lambda$create$0(ResolvedImmutableAttribute.java:54)
	at software.amazon.awssdk.enhanced.dynamodb.mapper.StaticImmutableTableSchema.lambda$itemToMap$5(StaticImmutableTableSchema.java:507)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1092)

On first glance it is exactly the problem I solved.
Looking at my solution again, I only did fix the problem for BeanTableSchema but not others. Fixing others is "left as an exercise for the reader". :wink:
The following paragraphs give insight into the problem. It is a bit long and if not interested, there is nothing else below.
What is hidden is that the problem is the LambdaToMethodBridgeBuilder.
You can see that if you set a breakpoint at ResolvedImmutableAttribute.java:54 and examine immutableAttribute.getter(),
In the LambdaToMethodBridgeBuilder#build the lambdas are generated at runtime to improve performance accessing the data in the user-provided beans.
The funny thing is, that the code there completes without issues, so a getter/setter/constructor-lambda is returned.
This is the one you currently have in immutableAttribute.getter() at your breakpoint.
As soon as you want to execute the method/lambda some magic happens (I think the real initialization is deferred after creation and is initialized NOW) and then it tries to resolve the class.
The problem lies in the previously mentioned LambdaToMethodBridgeBuilder#build which has the LOOKUPs wrong. It uses its classloader to lookup the user-bean which is no problem normally.
But in our case is is very important to use the correct classloader (the one where the user-bean is loaded).
I tried to fix that but as far as I can tell you there is no way to tell it to do that, except some advances for the LOOKUP that were added after Java 8.

I tried to integrate it as far as I could. The results can be found in https://github.com/hamburml/quarkus-amazon-services/tree/feature/dynamodb-enhanced-module. I can not build it, this is the error Failed to load steps from class io.quarkus.amazon.dynamodb.enhanced.deployment.DynamodbEnhancedProcessor. I did not start with the work on supporting @DynamoDbBean.
To be honest, I need to check if this is really worth it or if I simply use the low level client...

To be honest, I need to check if this is really worth it or if I simply use the low level client...

Just chill for a bit. Try to not cram everything at once in there. Focus on the base first, like make the fix and make it compilable. Then either make a small app with it and test it as JVM and native-image (like I have in my repo under "test") or make integration tests to verify that it at least runs as JVM (or even native image if that is possible, don't know).
And then, you can build on that by adding support functionality by adding the autoconfig and automatic beans.

I can not build it, this is the error Failed to load steps from class io.quarkus.amazon.dynamodb.enhanced.deployment.DynamodbEnhancedProcessor.

Look at the Caused by:, Caused by:, Caused by:, ...
...
Caused by: java.lang.IllegalArgumentException: Run time configuration cannot be consumed here unless the method is a @Recorder at io.quarkus.amazon.dynamodb.enhanced.runtime.DynamodbEnhancedConfig buildTimeConfig of void io.quarkus.amazon.dynamodb.enhanced.deployment.DynamodbEnhancedProcessor.maybeApplyClassTransformation(io.quarkus.amazon.dynamodb.enhanced.runtime.DynamodbEnhancedConfig,io.quarkus.deployment.annotations.BuildProducer,io.quarkus.deployment.builditem.LaunchModeBuildItem) of class io.quarkus.amazon.dynamodb.enhanced.deployment.DynamodbEnhancedProcessor
	at io.quarkus.deployment.ExtensionLoader.reportError(ExtensionLoader.java:1056)
	at io.quarkus.deployment.ExtensionLoader.loadStepsFromClass(ExtensionLoader.java:718)
	at io.quarkus.deployment.ExtensionLoader.loadStepsFrom(ExtensionLoader.java:212)

The class is in deployment but you are trying to access runtime config properties. If you need more help, you can always ask me, but I haven't done a whole lot with Config and Recorders yet. Only build items.

I did not start with the work on supporting @DynamoDbBean.

Yes, leave unnecessary features aside for now. Make the base work first.

To be honest, I need to check if this is really worth it or if I simply use the low level client...

The thing I found and fixed was "easy". But it takes effort to get it to a releasable state and then actually release it. And then there is the real effort to make it shiny an integrate it as "official" extension.
You chose last but that is where the real reward is. My thingy works, but you have to find it and then trust me. An official extension is easily accessible since it is listed on the website and is in an well-known namespace. And there is a lot more hope for support than from me, a random stranger.

I think with the current structure of how this repo should be extended with new modules this will not work.
For example the AmazonClientRecorder::configure in quarkus-amazon-common wants a clientBuilder which extends from AwsClientBuilder - The builder from EnhancedDynamoDbClient does not extends from that base class. The EnhancedClients simply does not follow the structure all the other clients (s3, dynamodb, sns, sqs, ...) follow which als mean that I can not do it like all the others module did. @gsmet What is your opinion on that?
My other idea was to simply copy the dynamodb module with the difference that the DynamodbEnhancedClientProducer only Produces DynamoDbEnhancedClient and DynamoDbEnhancedAsyncClient. I tried it but I got an error that the synthetic bean is already registered/added (should be the case because the createSyncBuilder and createAsyncBuilder signatures are the same in the dynamodb and dynamodb-enhanced module...). So I removed the dynamodb module and voila - it kinda worked, I was also able to run it locally and store data into a dynamodb - strangely i wasnt able to load an item, I always got an error that NPE because payload is null - during debugging I saw the table content... I just pushed it.
Thats it for now...
@Nithanim I do not fully understand the LambdaToMethodBridgeBuilder part. But I think I can ignore that for now and try to simply get the module to work... Maybe we should discuss this issue somewhere else (maybe in an github issue or via mail...).

@Nithanim I do not fully understand the LambdaToMethodBridgeBuilder part. But I think I can ignore that for now and try to simply get the module to work...

Yes, you can ignore that for now. I just tried to explain what the exact Problem is and what I did to fix it.  It is more for the case that if something does not work or changes down the road in the SDK there is at least a bit of a summary. Basically I tell it to replace specific Methods of specific Classes, so if they are changed in any way, things break.

Maybe we should discuss this issue somewhere else (maybe in an github issue or via mail...).

Discussions about the actual problems and fixes with getting the EnhancedClient working should be open because it might help other people down the line. The other stuff :shrug:

strangely i wasnt able to load an item, I always got an error that NPE because payload is null - during debugging I saw the table content

Not sure what that is about. The data is there but... not there?

I am back with some news :)

Not sure what that is about. The data is there but... not there?

Yeah, the data was there. I simply forgot the QuarkusInterceptor in the examples... Don't think about it :)
In this repository https://github.com/hamburml/quarkus-amazon-services/tree/feature/DynamoDbEnhancedModule i have a working dynamodb-enhanced module added with the changes of @Nithanim. The tests do still work and I can use it locally. What is important to add both dependencies (dynamodb and dynamodb-enhanced). I have two test-projects here https://github.com/hamburml/dynamodb-enhanced-examples which you can use after you run mvn install in my branch.
What is really strange - if I try to build it against quarkus 1.12.0.Final I always get build errors (cant import AutomaticFeature and ReflectionFeature anymore). If you like I can close this PR and reopen a new one - and link this PR to the other one.

@hamburml you can just push to your branch again.
Can you post the details of the errors you get with 2.12?

@gsmet This is solved thanks to @Nithanim. I will update the branch.

@gsmet branch is updated

@gsmet @Nithanim @scrocquesel
I am done. My jvm tests work, jvm debugging work, jvm prod profile works an my native image runs.
What I did:

removed the BuildTimeConfig
removed the native substitution fix, which is not needed anymore because the "jvm test/debugging fix" does also fix the native image problem (see https://github.com/quarkiverse/quarkus-amazon-services/pull/255#discussion_r973767233)
added @BuildStep(onlyIf = NativeBuild.class) to registerClassesForReflectiveAccess because this is only needed for native

Now it's cleaner and more streamlined. I would really appreciate a review and I hope this can be added. @gsmet You mentioned that you want more comments in the classes - I am open for advices. Or if you like you can add them yourself.
My jvm tests work, jvm debugging work, jvm prod profile works an my native image runs.
Thanks for your help <3

I will have a closer look today and hopefully get it merged. Don't bother about the reported conflicts, I want to rebase, maybe add a few comments and things like that so I'll deal with them when reviewing.

I started fixing a few things. Please don't push.

I'm going to merge this once CI is green as it's long overdue. I only made a couple of small adjustments (mostly adding comments and fixed very minor things).
Once merged, could you either add a paragraph in https://github.com/quarkiverse/quarkus-amazon-services/blob/main/docs/modules/ROOT/pages/amazon-dynamodb.adoc or add a new amazon-dynamodb-enhanced.adoc guide?
I think a simple paragraph in amazon-dynamodb.adoc would be enough as a first step.

Sure, I am happy to contribute :)

And merged, thanks everyone.
Once we have a small doc, I'll publish a new release containing the extension.

Great news! Thank you all for your efforts!

@allcontributors add hamburml for code

@allcontributors add Nithanim for code

1.3.0 has been released.

#TODO: Quakrus Testing framework uses QuarkusClassLoader, for workaround use this below property in test/app.properties
quarkus.test.flat-class-path=true

@vamsisayimpu I think this would not solve the native image issues.


I cant join roblox

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.

What problem did you encounter?
Its not letting me open roblox for some reason no matter how much i try.

Do you get an error message or something? Also, does this happen only when launching with Bloxstrap? https://github.com/pizzaboxer/bloxstrap/wiki/Switching-between-Roblox-and-Bloxstrap

Issue has been awaiting clarification for over a month, closing as stale. If you have anything further to add, just respond and I'll reopen.


New Advisor recommendation for App Service 32-bit

We're adding a new Advisor reliability recommendation to detect App Service in 32-bit approaching the maximum 2GB memory limit.

@ikhapova
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off


TypeError: Cannot read property 'call' of undefined  (steam trading bot)

Hi, i'm just started out the coding of a steam trading bot, and i got stuck, when the program got a bug when i wanted it to start up TF2, and idle there. When i start the bot, it boots  up, and gets into tf2, and quits imediatly. The error codes are here:
succesfully logged on.
C:\Users\BlackJack\Desktop\Random shit\bot\node_modules\steam-user\components\messages.js:231
this._handlers[handlerName].call(this, body, cb);
^
TypeError: Cannot read property 'call' of undefined
at SteamUser._handleMessage (C:\Users\BlackJack\Desktop\Random shit\bot\node_modules\steam-user\components\messages.js:231:29)
at emitThree (events.js:116:13)
at CMClient.emit (events.js:194:7)
at CMClient._netMsgReceived (C:\Users\BlackJack\Desktop\Random shit\bot\node_modules\steam-client\lib\cm_client.js:323:8)
at CMClient.handlers.(anonymous function) (C:\Users\BlackJack\Desktop\Random shit\bot\node_modules\steam-client\lib\cm_client.js:603:8)
at CMClient._netMsgReceived (C:\Users\BlackJack\Desktop\Random shit\bot\node_modules\steam-client\lib\cm_client.js:305:24)
at emitOne (events.js:96:13)
at TCPConnection.emit (events.js:188:7)
at TCPConnection._readPacket (C:\Users\BlackJack\Desktop\Random shit\bot\node_modules\steam-client\lib\tcp_connection.js:179:7)
at emitNone (events.js:86:13)

If ANYBODY can help me, please write ^^

I believe you may have created this issue on the wrong repo as there does not seem to be anything Angular CLI related in your issue.


[FLINK-20793][core][tests] Fix the NamesTest due to code style refactor

What is the purpose of the change
This pull request will Fix the NamesTest due to code style refactor
Brief change log

Fix the NamesTest due to code style refactor

Verifying this change

Original Tests

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
The serializers: (no)
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: (no)
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (not applicable)

@HuangXingBo Thanks a lot for the fix. Merging...


Add more UI themes to dshop

The deployer currently supports 4 themes (active, Artisan, Showcase and Galleria). We should add more.

How can we open this up to a theme developer community?  Shopify and WordPress both have thriving economies around their open source platforms - could we see this heading in that direction?


Temporarily disable failing mauve system tests

Signed-off-by: Mesbah<EMAIL_ADDRESS>

Thanks for your review, Terry. I am delivering the change (pending Renfei's review) so that the failing mauve tests no longer run in tonight's (or tomorrow morning's) systemtest builds. The PR contains disabling two mauve load tests where the  tags are identical to those that exist already (e.g. JdiTest) in the same Playlist.xml file. So, I am fairly confident that the change will work as expected.


chore: eu region for compute

Previous commit of this change says that the snapshots are in a bucket located in the US but upon closer inspection it's the EU 🤔 I think it makes more sense to colocate the compute back to the same region the bucket is in for cost.

Great catch @kasteph! This is a tricky one though. We have pl-data-temp in US and Compute/storage in US is a bit cheaper.
That said, lets keep everything in EU for now as is where most of our buckets reside.

Looking at the pricing once again,

US GCS bucket to EU compute egress is at $0.02/GB so we wouldn't be paying more than a $1 per job.
Looking at VM pricing that you linked, n2-highmem-16 in us-central-1 is $1.048112 / hr and in europe-north-1 is $1.153888 / hr. Assuming each VM for the job runs for 48 hours, then the the US VM comes in at $50.309376 and the EU VM is at $55.386624. At 24 hours, the US VM is at $25.154688 and the EU VM is at $27.693312. So the price difference is noticeable around the 48hour mark. The jobs have been running around that time that right? If that's the case, then let's move it back to the US.

So the price difference is noticeable around the 48hour mark. The jobs have been running around that time that right? If that's the case, then let's move it back to the US.

They usually run around 1.5 to 2 days. That said, just noticed that the price for spot instances is (probably today) much cheaper in EU. :shrug:
Should we keep it is (compute @ EU) and revisit later on?

Should we keep it is (compute @ EU) and revisit later on? Don't think this will have a large impact overall.

yeah, sg


Add minio and aws_gateway object store entries

See sample object store conf file

I imagine there might be some iterating to get optimal configurations for minio_test especially.
It probably won't break galaxy but I'll test restarting an individual job handler and revert this if the handler won't start.


Added two examples

Added two examples

Hi Gupta, thanks for your contribution. We are updating the system API for better usability. The PR is expected to to be approved today. Could you use the latest API for this commit later? Thanks!

Meanwhile, it will be good to have more meaningful commit message :)

Hi Gupta, thanks for your contribution. We are updating the system API for better usability. The PR is expected to to be approved today. Could you use the latest API for this commit later? Thanks!

Yeah , I'll make the changes today. Thanks!

Meanwhile, it will be good to have more meaningful commit message :)

Yes, I will get on it. Thanks!

The latest commit is based on the updated API
With:
1- Example of application of ColossalAI on CIFAR-10 Dataset using Transfer Learning on Resnet50
2- Example of application of ColossalAI on an external Dataset(CatsVDog dataset) using Transfer Learning on Resnet 50 CNN

The latest commit is based on the updated API
With:
1- Example of application of ColossalAI on CIFAR-10 Dataset using Transfer Learning on Resnet50
2- Example of application of ColossalAI on an external Dataset(CatsVDog dataset) using Transfer Learning on Resnet 50 CNN

Hi, @rahulgupta9202 , thank you for your work! You can now visit the web documentation and example folder for more details. I notice that the example you provided is about resnet, which has already been in the example folder. Would you like to try another network/application? Meanwhile, it will be good to rebase your commits into one commit so that the git log looks cleaner. Feel free to @ me if you need any help! 😃

@FrankLeeeee Sorry for the late response! I can try and work on another application and I will also rebase my commits.
Thanks for your help!

Hi @rahulgupta9202  , thanks for your contribution. We are shifting the examples to an independent repo ColossalAI-Examples. Welcome to put up your PR there. We have also updated the tutorials and documentations. I will close this PR for now.


Add advanced parameters to spending limit transaction

What is this feature about? (1 sentence)
Currently for spending limit transactions we are not showing the advanced parameters form. This was caused because there were some issues on how gas was handled for safe transactions and we added a refactor that at least stopped showing an error warning when creating a spending limit transaction. As we stated that to make this works it involved more changes we decided to create an epic to properly iterate over the advance parameters form
Why is it needed? What is the value? For whom do we build it?
To be consistent with transactions created by the safe, we need to allow the user to set advanced parameters also in spending limit transaction. Gas for a spending limit transaction is different as for a safe transaction, as there is no safeTxGas involved and gas limit estimation and execution check shouldn't be done agains the safe address
High-level overview of the feature

Enable advanced parameter for spending limit transactions
Refactor or add the necessary methods to estimate gas limit and do the execution check (eth_call)

Snapshots on how tx created by spending limit look like today:
Form:

Review Step:

Tx executed:


Do full static link of the executable

Go binaries are much more useful when they are statically linked by default. Unless there is a good reason to depend on libc, there is no need to link dynamically.
This would also solve https://github.com/MHNightCat/superfile/issues/96, and make the pre-built binary more portable and more easily distributable.

Thanks for the PR!

Also update release.sh https://github.com/MHNightCat/superfile/commit/785692fa439e07d2c95ee187599211df69c80891