LambdaConversionException during LambdaFactory Creation in Combination with Reflections

Hi,
currently I run in a LambdaConversionException when I do the following (class is a Class Object extracted per reflection, not like MyClass.class):
copy = clazz.getDeclaredMethod("method");
lambda_copy = LambdaFactory.create(copy);
The exception is:
java.lang.invoke.LambdaConversionException: Invalid caller: <Original name of the Java Class extracted via reflection>
	at java.base/java.lang.invoke.AbstractValidatingLambdaMetafactory.<init>(AbstractValidatingLambdaMetafactory.java:125)
	at java.base/java.lang.invoke.InnerClassLambdaMetafactory.<init>(InnerClassLambdaMetafactory.java:175)
	at java.base/java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:336)
	at com.github.hervian.lambdas.LambdaFactory.createCallSite(LambdaFactory.java:229)
	at com.github.hervian.lambdas.LambdaFactory.privateCreateLambda(LambdaFactory.java:205)
	at com.github.hervian.lambdas.LambdaFactory.createLambda(LambdaFactory.java:176)
	at com.github.hervian.lambdas.LambdaFactory.create(LambdaFactory.java:171)
	at com.github.hervian.lambdas.LambdaFactory.create(LambdaFactory.java:152)
	at com.github.hervian.lambdas.LambdaFactory.privateCreate(LambdaFactory.java:126)
	at com.github.hervian.lambdas.LambdaFactory.create(LambdaFactory.java:104)

I don't know if this is a bug, so I am also happy about any suggestions on this. Thanks!

Which java version are you using? I believe something is broken after java 13.
@Hervian can you have a look at this? I am facing the same issue.
It seems that they did some change about module checking and the function hasFullPrivilegeAccess returns false

On my use case, I was loading an external class with class loader and then I was using LamdaFactory in order to be able to call a static method from the external class, from within my executable.
Basically the user could write java code on an external file, then using the compiler tools my app would compile the java code into a class, and the load it and execute.
I found a solution on my problem that worked both in java 8 and up to java 20 without any modifications.
https://stackoverflow.com/questions/50787116/use-lambdametafactory-to-invoke-one-arg-method-on-class-instance-obtained-from-o/50802998#50802998
Basically I do this when using the class loader:
loader = new URLClassLoader(new URL[] {url}) {
{ byte[] code = gimmeLookupClassDef();
defineClass("GimmeLookup", code, 0, code.length);
}
};
lookup = (MethodHandles.Lookup) loader.loadClass("GimmeLookup").getField("lookup").get(null);
and GimmeLookup is:
static byte[] gimmeLookupClassDef() {
return ( "\u00CA\u00FE\u00BA\u00BE\0\0\0001\0\21\1\0\13GimmeLookup\7\0\1\1\0\20"
+"java/lang/Object\7\0\3\1\0\10\1\0\3()V\1\0\4Code\1\0\6lookup\1\0'Ljav"
+"a/lang/invoke/MethodHandles$Lookup;\14\0\10\0\11\11\0\2\0\12\1\0)()Ljava/lang"
+"/invoke/MethodHandles$Lookup;\1\0\36java/lang/invoke/MethodHandles\7\0\15\14\0"
+"\10\0\14\12\0\16\0\17\26\1\0\2\0\4\0\0\0\1\20\31\0\10\0\11\0\0\0\1\20\11\0\5\0"
+"\6\0\1\0\7\0\0\0\23\0\3\0\3\0\0\0\7\u00B8\0\20\u00B3\0\13\u00B1\0\0\0\0\0\0" )
.getBytes(StandardCharsets.ISO_8859_1);
}
Then I pass this lookup inside the create function of LambdaFactory.


[Draft] Change the ci to original helm command

Signed-off-by: aisuko<EMAIL_ADDRESS>Description
This PR fixes #
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

Please remove all the CI steps of the front and the backend

The CI can work, but I do not allow to check the token name we use

Oh, I saw another Helm-chart release CI by @leecalcote, I can remove this CI. And the change may need to revert and I will confirm if the code is the latest.

@Aisuko This has been covered. Do have a look it makes sense to you.

I think that this challenge has been solved now. Let's see if this is true in the upcoming release..

Given the updates on the new workflow, I think we can close this PR down now. @Aisuko, please reopen, if you find otherwise. 👍


feat(UI): Allow show/hide ui programmatically

Closes https://github.com/shaka-project/shaka-player/issues/6116

I found a solution but I see that a PR has been done in blazing speed. In the case someone wants the functionality and is not able to update, I toke the same PR approach that's about delivering a fake mousemove event to the video container:
 var elements = document.getElementsByClassName("video-container");
        if (elements.length > 0) {
          var event = new Event("mousemove"); // (*)
          elements[0].dispatchEvent(event);
        }

Thanks!


initial version of batcher function (simple) and respective tests

Hey Brian! here is a very simple function that splits an iterable into batches. Batches number and size, and start_batch for skipping are specified in a "fake" context. It produces a list of elements (in this case, nested lists). The test check if the input is an iterable. However, in general there are iterable objects (e.g. strings, files) that do not have the iter or getitem method, respectively. And the test function is now valid only for specific types (e.g. text). Finally, python3 seems to read slightly differently the csv file in 'b' mode. Let's talk these days! thanks!!!!

Hey Brian! thanks for the comment, I'll try to fix all the things and come out with a new version asap (probably tomorrow)!

Thanks! :)


Check a type of condition of if and ternary

Some functions (e.g., exit()) return Type::none but if and ternary does not check it and that results in a NULL pointer dereference.
% sudo ./src/bpftrace -e 'k:f { exit() ? 0 : 0 }'
AddressSanitizer:DEADLYSIGNAL
=================================================================
==14010==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000850854 bp 0x7fffffffa450 sp 0x7fffffffa180 T0)
==14010==The signal is caused by a READ memory access.
==14010==Hint: address points to the zero page.
    #0 0x850853 in bpftrace::ast::CodegenLLVM::visit(bpftrace::ast::Ternary&) /home/ubuntu/work/bpftrace/src/ast/codegen_llvm.cpp
    #1 0x861f29 in bpftrace::ast::CodegenLLVM::visit(bpftrace::ast::Probe&) /home/ubuntu/work/bpftrace/src/ast/codegen_llvm.cpp:1506:13
    #2 0x865256 in bpftrace::ast::CodegenLLVM::visit(bpftrace::ast::Program&) /home/ubuntu/work/bpftrace/src/ast/codegen_llvm.cpp:1597:12
    #3 0x86e34b in bpftrace::ast::CodegenLLVM::compile(bpftrace::DebugLevel, std::ostream&) /home/ubuntu/work/bpftrace/src/ast/codegen_llvm.cpp:2013:10
    #4 0x77623f in main /home/ubuntu/work/bpftrace/src/main.cpp:605:22
    #5 0x7fffee1451e2 in __libc_start_main /build/glibc-t7JzpG/glibc-2.30/csu/../csu/libc-start.c:308:16
    #6 0x4d1bcd in _start (/disk/work/bpftrace/build_san3/src/bpftrace+0x4d1bcd)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/ubuntu/work/bpftrace/src/ast/codegen_llvm.cpp in bpftrace::ast::CodegenLLVM::visit(bpftrace::ast::Ternary&)
==1401

Fix this by checking a type of cond in the semantic analysis.

CI failed due to the temporary connection error.

Looks like exit() is missing a check_assignment too

Updates:

Add check_assignment for exit()
Add type checks of assignment operations. This checks #1052 and #1057

can you add some tests here too?

Updated.

Add tests

@mmisono  could you rebase onto master? :)

Rebased. I also added the fix for https://github.com/iovisor/bpftrace/pull/1222#issuecomment-609562753.


Docs: CLI schema command incorrect

This page: https://graphql-mesh.com/docs/getting-started/basic-example#introspecting-your-mesh, incorrectly instructs users to use graphql-mesh schema... as a command when that does not exist. Furthermore, the CLI returns 0, which should not be the case for invalid or non-existent commands. At the very least, it should return 1 and display help.
The docs should be updated to reflect the dump-schema command.
This is a pretty gnarly oversight, folks.

The name of the command was wrong; it supposed to be dump-schema. I fixed that on the website.
Thanks for reporting this
https://graphql-mesh.com/docs/getting-started/basic-example#introspecting-your-mesh

The name of the command was wrong; it supposed to be dump-schema. I fixed that on the website.
Thanks for reporting this
https://graphql-mesh.com/docs/getting-started/basic-example#introspecting-your-mesh


internal error: package "context" without types was imported from "entgo.io/ent"

Current Behavior 😯
Upgrade golang to 1.20
Expected Behavior 🤔
Run go generate success
Steps to Reproduce 🕹

Upgrade golang to 1.20
Run go:generate ent generate ./ent/schema

Your Environment 🌎

Tech
Version

Go
1.120

Ent
0.11.7

Database
MySQL

Driver
https://github.com/go-sql-driver/mysql

Hello, can you provide a runnable reproduce to easy testing? You can use https://github.com/ent/bug to setup.

I solve the problem with "go generate" instead "ent generate"


Move closest grid line to play cursor

It does move the closest grid to the cursor, but it also shifts all the grid lines over as well.
It used to work for me, but not anymore.

Could you do a screencapture what yoiu experience and, based on that, describe that you expect to happen instead?

In image A I want to snap the closest gridline to the cursor
In image B I use (Move closest grid line to play cursor) but as you can see
it moves all of the grid lines with it. Not just the closest one.
I have it set to "Timebase = Time".
On Wed, Dec 5, 2018 at 7:45 AM nofish<EMAIL_ADDRESS>wrote:

Could you do a screencapture what yoiu experience and, based on that,
describe that you expect to happen instead?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/reaper-oss/sws/issues/1072#issuecomment-444489851,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ArfZypjZqYbP_t-vUziQPxGI9VWElSfhks5u183xgaJpZM4ZBFyc
.


No touchid prompt

Hi,
I've been able to configure pinentry-mac to work and store the key's passphrase in the keychain, no issue whatsoever.
But once I switch my ~/.gnupg/gpg-agent.conf to
default-cache-ttl 1
max-cache-ttl 1
#pinentry-program /usr/local/bin/pinentry-mac
pinentry-program /usr/local/bin/pinentry-touchid

It never brings the touchID prompt.
I have looked into allowing pinentry-touchid in the access control of the keychain entry as mentionned.

to add /usr/local/bin/pinentry-touchid

But this doesn't work either, my git debug output tells me:
15:17:57.787749 run-command.c:668       trace: run_command: /usr/local/bin/gpg --status-fd=2 -bsau xxxxxx
error: gpg failed to sign the data

And if I retry this command in another terminal, it hangs infinitely.
[GNUPG:] KEY_CONSIDERED xxxxx 2
[GNUPG:] BEGIN_SIGNING H10

Even something as simple as echo "test" | gpg -vvv --clearsign will fail
gpg: using character set 'utf-8'
gpg: Note: RFC4880bis features are enabled.
gpg: Note: signature key A0D8xxxx expired Dim  1 nov 19:31:02 2020 CET
gpg: using pgp trust model
gpg: key <mykey>: accepted as trusted key
gpg: writing to stdout
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

test
gpg: signing failed: Operation cancelled
gpg: [stdin]: clear-sign failed: Operation cancelled

 ✘ gabrielmarquet@LT-xxx  ~/Desktop/infosec-listo   main ✚  /usr/local/bin/pinentry-touchid
OK Hi from pinentry-touchid!

 ✘ gabrielmarquet@LT-C02DK98DMD6M  ~/Desktop/infosec-listo   main ✚  gpgconf
gpg:OpenPGP:/usr/local/Cellar/gnupg/2.3.3_1/bin/gpg
gpgsm:S/MIME:/usr/local/Cellar/gnupg/2.3.3_1/bin/gpgsm
keyboxd:Public Keys:/usr/local/Cellar/gnupg/2.3.3_1/libexec/keyboxd
gpg-agent:Private Keys:/usr/local/Cellar/gnupg/2.3.3_1/bin/gpg-agent
scdaemon:Smartcards:/usr/local/Cellar/gnupg/2.3.3_1/libexec/scdaemon
dirmngr:Network:/usr/local/Cellar/gnupg/2.3.3_1/bin/dirmngr
pinentry:Passphrase Entry:/usr/local/opt/pinentry/bin/pinentry
16:01:39.400744 git.c:455               trace: built-in: git config --get oh-my-zsh.hide-dirty
16:01:39.493943 git.c:455               trace: built-in: git rev-parse --show-toplevel
16:01:39.508964 git.c:455               trace: built-in: git rev-parse --quiet --verify HEAD

/tmp/pinentry-touchid.log
2021/11/16 16:03:55 main.go:105: Ready!
2021/11/16 16:03:55 main.go:256: Error calling pinentry-mac: unexpected response: ERR 83918950 Inappropriate ioctl for device <Pinentry>
2021/11/16 16:03:55 main.go:260: pinentry-mac didn't return a password
2021/11/16 16:03:56 main.go:105: Ready!
2021/11/16 16:03:56 main.go:256: Error calling pinentry-mac: unexpected response: ERR 83918950 Inappropriate ioctl for device <Pinentry>
2021/11/16 16:03:56 main.go:260: pinentry-mac didn't return a password

/usr/local/bin/gpg -> ../Cellar/gnupg/2.3.3_1/bin/gpg

Seems like homebrew, I'm running Monterey 12.0.1 (21A559), thanks a lot for taking a look into this :)

Here's a quick extract from the pgp debug log, sorry I forgot to add that
gpg-agent[14104]: DBG: chan_7 -> OK Pleased to meet you, process 16420
gpg-agent[14104]: DBG: chan_7 <- RESET
gpg-agent[14104]: DBG: chan_7 -> OK
gpg-agent[14104]: DBG: chan_7 <- OPTION ttytype=xterm-256color
gpg-agent[14104]: DBG: chan_7 -> OK
gpg-agent[14104]: DBG: chan_7 <- GETINFO version
gpg-agent[14104]: DBG: chan_7 -> D 2.3.3
gpg-agent[14104]: DBG: chan_7 -> OK
gpg-agent[14104]: DBG: chan_7 <- OPTION allow-pinentry-notify
gpg-agent[14104]: DBG: chan_7 -> OK
gpg-agent[14104]: DBG: chan_7 <- OPTION agent-awareness=2.1.0
gpg-agent[14104]: DBG: chan_7 -> OK
gpg-agent[14104]: DBG: chan_7 <- HAVEKEY --list=1000
gpg-agent[14104]: new connection to /usr/local/Cellar/gnupg/2.3.3_1/libexec/scdaemon daemon established (reusing)
gpg-agent[14104]: DBG: chan_9 -> KEYINFO --list
gpg-agent[14104]: DBG: chan_9 <- OK
gpg-agent[14104]: DBG: chan_7 -> [ 44 20 2c f8 da 14 ed 0e af 1b 66 df 64 a5 19 28 ...(26 byte(s) skipped) ]
gpg-agent[14104]: DBG: chan_7 -> OK
gpg-agent[14104]: DBG: chan_7 <- RESET
gpg-agent[14104]: DBG: chan_7 -> OK
gpg-agent[14104]: DBG: chan_7 <- SIGKEY B6Cxxx
gpg-agent[14104]: DBG: chan_7 -> OK
gpg-agent[14104]: DBG: chan_7 <- SETKEYDESC Please+enter+the+passphrase+to+unlock+the+OpenPGP+secret+key:%0A%22Gabriel+Marquet+(Work+key+for+Github)+<email>%22%0A255-bit+EDDSA+key,+ID+3Exxxx,%0Acreated+2021-11-16.%0A
gpg-agent[14104]: DBG: chan_7 -> OK
gpg-agent[14104]: DBG: chan_7 <- SETHASH 10 5CB17xxxx
gpg-agent[14104]: DBG: chan_7 -> OK
gpg-agent[14104]: DBG: chan_7 <- PKSIGN
gpg-agent[14104]: starting a new PIN Entry
gpg-agent[14104]: DBG: connection to PIN entry established
gpg-agent[14104]: You may want to update to a newer pinentry
gpg-agent[14104]: DBG: error calling pinentry: Operation cancelled <Pinentry>
gpg-agent[14104]: failed to unprotect the secret key: Operation cancelled
gpg-agent[14104]: failed to read the secret key
gpg-agent[14104]: command 'PKSIGN' failed: Operation cancelled <Pinentry>
gpg-agent[14104]: DBG: chan_7 -> ERR 83886179 Operation cancelled <Pinentry>
gpg-agent[14104]: DBG: chan_7 <- [eof]
gpg-agent[14104]: DBG: chan_9 -> RESTART
gpg-agent[14104]: DBG: chan_9 <- OK

FYI I just saw a similar comment here https://golangrepo.com/repo/jorgelbg-pinentry-touchid-go-security
the  You may want to update to a newer pinentry is interesting 🤔

thanks a lot for taking a look into this :)

Any time! Glad that you are willing to give it a try!
From the gpgconf output I see that the path returned for the pinentry:Passphrase Entry key is pointing to /usr/local/opt/pinentry/bin/pinentry. On my system that symlink points to pinentry-ncurses:
❯ ll /usr/local/opt/pinentry/bin/pinentry
lrwxr-xr-x 15 jbetancourt 25 Aug 14:25  /usr/local/opt/pinentry/bin/pinentry -> pinentry-curses

Can you try to force that symlink to pinentry-mac and try again? This is what I executed on my system:
❯ ln -fs /usr/local/bin/pinentry-mac /usr/local/opt/pinentry/bin/pinentry

 gabrielmarquet@LT-C02DK98DMD6M  ~/.ssh  ln -fs /usr/local/bin/pinentry-mac /usr/local/opt/pinentry/bin/pinentry
 gabrielmarquet@LT-C02DK98DMD6M  ~/.ssh  ls -lia /usr/local/opt/pinentry/bin/pinentry
34364762 lrwxr-xr-x  1 gabrielmarquet  admin  27 Nov 16 18:08 /usr/local/opt/pinentry/bin/pinentry -> /usr/local/bin/pinentry-mac

 ✘ gabrielmarquet@LT-C02DK98DMD6M  ~/.ssh  cat ~/.gnupg/gpg-agent.conf
enable-ssh-support
use-standard-socket
#default-cache-ttl 1
#max-cache-ttl 1
debug-level basic
log-file /Users/gabrielmarquet/.gnupg/gpg-agent.log
#pinentry-program /usr/local/bin/pinentry-mac
pinentry-program /usr/local/bin/pinentry-touchid
#pinentry-program /usr/local/opt/pinentry-touchid/bin/pinentry-touchid

2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 -> OK Pleased to meet you, process 32699
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 <- RESET
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 -> OK
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 <- OPTION ttyname=/dev/ttys002
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 -> OK
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 <- OPTION ttytype=xterm-256color
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 -> OK
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 <- OPTION lc-ctype=UTF-8
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 -> OK
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 <- GETINFO version
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 -> D 2.3.3
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 -> OK
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 <- OPTION allow-pinentry-notify
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 -> OK
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 <- OPTION agent-awareness=2.1.0
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 -> OK
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 <- HAVEKEY --list=1000
2021-11-16 18:09:11 gpg-agent[32544] new connection to /usr/local/Cellar/gnupg/2.3.3_1/libexec/scdaemon daemon established (reusing)
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_10 -> KEYINFO --list
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_10 <- OK
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 -> [ 44 2xxxx ...(26 byte(s) skipped) ]
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 -> OK
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 <- RESET
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 -> OK
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 <- SIGKEY B6Cxxx
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 -> OK
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 <- SETKEYDESC Please+enter+the+passphrase+to+unlock+the+OpenPGP+secret+key:%0A%22Gabriel+Marquet+(Work+key+for+Github)+<gmaxxx>%22%0A255-bit+EDDSA+key,+ID+3E2x,%0Acreated+2021-11-16.%0A
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 -> OK
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 <- SETHASH 10 8CDFxxx
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 -> OK
2021-11-16 18:09:11 gpg-agent[32544] DBG: chan_8 <- PKSIGN
2021-11-16 18:09:11 gpg-agent[32544] starting a new PIN Entry
2021-11-16 18:09:11 gpg-agent[32544] DBG: connection to PIN entry established
2021-11-16 18:09:11 gpg-agent[32544] You may want to update to a newer pinentry
2021-11-16 18:09:12 gpg-agent[32544] DBG: error calling pinentry: Operation cancelled <Pinentry>
2021-11-16 18:09:12 gpg-agent[32544] failed to unprotect the secret key: Operation cancelled
2021-11-16 18:09:12 gpg-agent[32544] failed to read the secret key
2021-11-16 18:09:12 gpg-agent[32544] command 'PKSIGN' failed: Operation cancelled <Pinentry>
2021-11-16 18:09:12 gpg-agent[32544] DBG: chan_8 -> ERR 83886179 Operation cancelled <Pinentry>
2021-11-16 18:09:12 gpg-agent[32544] DBG: chan_8 <- [eof]
2021-11-16 18:09:12 gpg-agent[32544] DBG: chan_10 -> RESTART
2021-11-16 18:09:12 gpg-agent[32544] DBG: chan_10 <- OK

2021/11/16 17:12:42 main.go:260: pinentry-mac didn't return a password
2021/11/16 18:07:03 main.go:105: Ready!
2021/11/16 18:07:03 main.go:285: Duplicated entry in the keychain
2021/11/16 18:07:21 main.go:105: Ready!
2021/11/16 18:07:21 main.go:285: Duplicated entry in the keychain
2021/11/16 18:09:11 main.go:105: Ready!
2021/11/16 18:09:12 main.go:285: Duplicated entry in the keychain

I think we've got something interesting, duplicated entry in the keychain ?

seems like this issue can be closed?

Oh nice !! it started working as soon as I cleared out my keychain after re-storing the passphrase once :D !
Thank you so much ! this was the damn symlink

@Gby56 Can you elaborate on how you cleared your keychain? I have exactly the same issue of the "Duplicated entry in the keychain" error. I already adjusted the symlink, after that cleared out my keychain by deleting the one entry with location "GnuPG", added it back into the keychain using pinentry-mac, but when changing to pinentry-touchid it still says gives me the duplication error.
Would be grateful for any advice.
macOS 12.5

Logs and Configs
(Sorry, it's partially German)
GPG Conf
gpg:OpenPGP:/opt/homebrew/Cellar/gnupg/2.3.6/bin/gpg
gpgsm:S/MIME:/opt/homebrew/Cellar/gnupg/2.3.6/bin/gpgsm
keyboxd:Öffentliche Schlüssel:/opt/homebrew/Cellar/gnupg/2.3.6/libexec/keyboxd
gpg-agent:Geheime Schlüssel:/opt/homebrew/Cellar/gnupg/2.3.6/bin/gpg-agent
scdaemon:Smartcard:/opt/homebrew/Cellar/gnupg/2.3.6/libexec/scdaemon
dirmngr:Netz:/opt/homebrew/Cellar/gnupg/2.3.6/bin/dirmngr
pinentry:Passwort Eingabe:/opt/homebrew/opt/pinentry/bin/pinentry

GPG
2022-08-03 17:20:51 gpg-agent[3972] Es wird auf Socket `/Users/wittler/.gnupg/S.gpg-agent' gehört
2022-08-03 17:20:51 gpg-agent[3972] Es wird auf Socket `/Users/wittler/.gnupg/S.gpg-agent.extra' gehört
2022-08-03 17:20:51 gpg-agent[3972] Es wird auf Socket `/Users/wittler/.gnupg/S.gpg-agent.browser' gehört
2022-08-03 17:20:51 gpg-agent[3972] Es wird auf Socket `/Users/wittler/.gnupg/S.gpg-agent.ssh' gehört
2022-08-03 17:20:51 gpg-agent[3973] gpg-agent (GnuPG) 2.3.6 started
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> OK Pleased to meet you, process 3971
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 <- RESET
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> OK
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 <- OPTION ttyname=/dev/ttys000
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> OK
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 <- OPTION ttytype=xterm-256color
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> OK
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 <- OPTION lc-ctype=de_DE.UTF-8
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> OK
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 <- OPTION lc-messages=de_DE.UTF-8
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> OK
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 <- GETINFO version
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> D 2.3.6
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> OK
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 <- OPTION allow-pinentry-notify
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> OK
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 <- OPTION agent-awareness=2.1.0
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> OK
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 <- SCD SERIALNO
2022-08-03 17:20:51 gpg-agent[3973] no running /opt/homebrew/Cellar/gnupg/2.3.6/libexec/scdaemon daemon - starting it
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_9 <- OK GNU Privacy Guard's Smartcard server ready
2022-08-03 17:20:51 gpg-agent[3973] first connection to daemon /opt/homebrew/Cellar/gnupg/2.3.6/libexec/scdaemon established
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_9 -> GETINFO socket_name
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_9 <- D /Users/wittler/.gnupg/S.scdaemon
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_9 <- OK
2022-08-03 17:20:51 gpg-agent[3973] DBG: additional connections at '/Users/wittler/.gnupg/S.scdaemon'
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_9 -> OPTION event-signal=31
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_9 <- OK
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_9 -> SERIALNO
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_9 <- ERR 100696144 Operation not supported by device <SCD>
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> ERR 100696144 Operation not supported by device <SCD>
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 <- HAVEKEY --list=1000
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_9 -> KEYINFO --list
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_9 <- OK
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> [ 44 2xxxx ...(28 byte(s) skipped) ]
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> OK
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 <- KEYINFO 338xxx
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_9 -> KEYINFO --list
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_9 <- OK
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> S KEYINFO 338xxx D - - - P - - -
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> OK
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 <- RESET
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> OK
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 <- SIGKEY 338xxx
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> OK
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 <- SETKEYDESC xxx
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> OK
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 <- SETHASH 8 489xxxx
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> OK
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 <- PKSIGN
2022-08-03 17:20:51 gpg-agent[3973] starting a new PIN Entry
2022-08-03 17:20:51 gpg-agent[3973] DBG: connection to PIN entry established
2022-08-03 17:20:51 gpg-agent[3973] You may want to update to a newer pinentry
2022-08-03 17:20:51 gpg-agent[3973] DBG: error calling pinentry: Operation cancelled <Pinentry>
2022-08-03 17:20:51 gpg-agent[3973] failed to unprotect the secret key: Operation cancelled
2022-08-03 17:20:51 gpg-agent[3973] failed to read the secret key
2022-08-03 17:20:51 gpg-agent[3973] command 'PKSIGN' failed: Operation cancelled <Pinentry>
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 -> ERR 83886179 Operation cancelled <Pinentry>
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_8 <- [eof]
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_9 -> RESTART
2022-08-03 17:20:51 gpg-agent[3973] DBG: chan_9 <- OK

Pinentry-Touchid
2022/08/03 17:20:51 main.go:105: Ready!
2022/08/03 17:20:51 main.go:285: Duplicated entry in the keychain

Hi ! Sorry it's been a while since I've had the issue... I'll try to dig back into it but as far as I can tell, you did the appropriate steps I think

@JanWittler Can you check the output of this command:
$ security dump-keychain | grep GnuPG

This should list dump and return any items that is matching GnuPG. You can also use:
$ security find-generic-password -s 'GnuPG'

but this command only returns the first matching item.

Wow, thank you already very much for the surprising fast answers.
_ % security dump-keychain | grep GnuPG
    "svce"<blob>="GnuPG"
_ % security find-generic-password -s 'GnuPG'
keychain: "/Users/xxx"
version: 512
class: "genp"
attributes:
    0x00000007 <blob>="Jan Wittler <xxx@xxx> (68xxx)"
    0x00000008 <blob>=<NULL>
    "acct"<blob>="338xxx"
    "cdat"<timedate>=0x323xxx  "202xxx"
    "crtr"<uint32>=<NULL>
    "cusi"<sint32>=<NULL>
    "desc"<blob>=<NULL>
    "gena"<blob>=<NULL>
    "icmt"<blob>=<NULL>
    "invi"<sint32>=<NULL>
    "mdat"<timedate>=0x323xxx  "202xxx"
    "nega"<sint32>=<NULL>
    "prot"<blob>=<NULL>
    "scrp"<sint32>=<NULL>
    "svce"<blob>="GnuPG"
    "type"<uint32>=<NULL>

@JanWittler can you remove/clear the keychain from any matching key and then giving it another try?
If possible can you make a backup of the item from the keychain? It would be interesting to find out why pinentry-touchid is failing to recognize that there is already an item in the keychain. I'm just not sure on how to look into the issue since I am not able to reproduce it myself and there is sensitive information in the keychain item 😅.

Fixed it by making sure to run this successfully:
pinentry-touchid -fix
pinentry-touchid -check

Then running:
defaults write org.gpgtools.common DisableKeychain -bool no

Then changing my conf to this:
~/.gnupg/gpg.conf
use-agent
# Comment this line (this was was what messing everything up):
# pinentry-mode loopback

/Users/david/.gnupg/gpg-agent.conf
allow-loopback-pinentry
# Comment this line:
# pinentry-program /opt/homebrew/opt/pinentry-touchid/bin/pinentry-touchid

Then running:
gpgconf --kill gpg-agent
echo 1234 | gpg -as -

That should put it into they Keychain, so that:
security find-generic-password -s 'GnuPG'

Finally prints something.
Then run:
defaults write org.gpgtools.common DisableKeychain -bool yes

And change your /Users/david/.gnupg/gpg-agent.conf to:
allow-loopback-pinentry
pinentry-program /opt/homebrew/opt/pinentry-touchid/bin/pinentry-touchid

Then:
gpgconf --kill gpg-agent


Save button doesn't work on edit

When attempting to edit user or patient details, saving does nothing.
Steps to replicate:

On user or patient, click the edit pencil
Leave unchanged or make changes
Click the green tick

Outcome:

Nothing happens

Note: cancel works as expected

Confirmed.
The occupation code and county/district entry on the address control is marked required.
Changes to patient widget:

In entity-address component the ng-required should not be bound to the required field of the entire address (or there should be a configuration setting to change this behavior)
Occupation code on Extra panel should not be marked mandatory


Blueprint Attaches/Removes AmazonEKS_CNI_Policy with every apply in aws-node-irsa role

Description
Sorry for not following proper template , I just want to report the bug i have been facing for many weeks.
Every time i run apply  , TF sometimes removes.
AmazonEKS_CNI_Policy from aws-node-irsa role.
next time u do apply it attaches it.

Fow now i have attached my extra policy for cni so that my new nodes dont have any issues but you guys please see why TF does it
⚠ Note
Before you submit an issue, please perform the following first:

Remove the local .terraform directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!): rm -rf .terraform/
Re-initialize the project root to pull down modules: terraform init
Re-attempt your terraform plan or apply and check if the issue still persists

Versions

Module version [Required]:

Terraform version:

Provider version(s):

Reproduction Code [Required]

Steps to reproduce the behavior:

Expected behaviour

Actual behaviour

Terminal Output Screenshot(s)

Additional context

We have this exact same behavior.  I do not know why but frequently our aws-node-irsa role is missing the AmazonEKS_CNI_Policy.  We are trying to track down what is happening.  @mk2134226 have you found a workaround?

@jdschmidt  For workaround i am attaching the custom inline policy with exact same policy as CNI to aws-node-irsa role  as extra terraform resource in the end  so that even if CNI is removed my cluster dont fail.

can you share a reproduction config - are you using a depends_on in your configuration?

@bryantbiggs Here is the config we are using, and yes we are using the depends_on.
module "eks" {
  source  = "terraform-aws-modules/eks/aws"
  version = "18.29.0"

  vpc_id                          = data.aws_vpc.main_vpc.id
  subnet_ids                      = concat(split(",", aws_cloudformation_stack.public_ingress_stack.outputs.SubnetIds), split(",", aws_cloudformation_stack.subnet_manager.outputs.SubnetIds))
  cluster_name                    = var.cluster_name
  cluster_version                 = var.cluster_version
  cluster_enabled_log_types       = var.cluster_enabled_log_types
  cluster_endpoint_private_access = var.cluster_endpoint_private_access
  cluster_endpoint_public_access  = var.cluster_endpoint_public_access

  # EKS Managed Node Group(s)
  eks_managed_node_group_defaults = {
    iam_role_attach_cni_policy = true
    #disk_size      = 50
    instance_types = [var.instance_type]
  }

  eks_managed_node_groups = {
    ondemand-blue = {
      min_size      = var.node_min_size
      max_size      = 50
      desired_size  = var.node_min_size
      ebs_optimized = true
      iam_role_name = "${local.iam_role_name}-ondemand-nodegroup"
      block_device_mappings = {
        xvda = {
          device_name = "/dev/xvda"
          ebs = {

            delete_on_termination = true
            encrypted             = true
            kms_key_id            = aws_kms_key.ebs.arn
            iops                  = 3000
            throughput            = 250
            volume_size           = 150
            volume_type           = "gp3"
          }
        }
      }
      capacity_type              = "ON_DEMAND"
      use_name_prefix            = true
      ami_type                   = "CUSTOM"
      ami_id                     = data.aws_ami.eks_worker.id
      enable_bootstrap_user_data = true
      #bootstrap_extra_args       = "--container-runtime containerd --kubelet-extra-args '--max-pods=20'"
      # pre_userdata can be used in both cases where you provide custom_ami_id or ami_type
      pre_userdata = <<-EOT
        yum install -y amazon-ssm-agent
        systemctl enable amazon-ssm-agent && systemctl start amazon-ssm-agent
      EOT

      metadata_options = {
        http_endpoint               = "enabled"
        http_tokens                 = "required"
        http_put_response_hop_limit = 2
        instance_metadata_tags      = "disabled"
      }

      update_config = {
        max_unavailable_percentage = 50 # or set `max_unavailable`
      }

      tags = {
        Name            = "${var.cluster_name}-ondemand-blue"
      }
    }
  }

  #create_aws_auth_configmap = true # this causes issues. managed node groups adds the aws-auth configmap for you. there's an issue where things don't work in order. may need to enable this to get a cluster provision and then disable again.
  manage_aws_auth_configmap = true
  aws_auth_roles            = var.map_roles

  aws_auth_accounts = [
    var.account_id
  ]

  node_security_group_additional_rules = {
    # Extend node-to-node security group rules. Recommended and required for the Add-ons
    ingress_self_all = {
      description = "Node to node all ports/protocols"
      protocol    = "-1"
      from_port   = 0
      to_port     = 0
      type        = "ingress"
      self        = true
    }
    # Recommended outbound traffic for Node groups
    egress_all = {
      description      = "Node all egress"
      protocol         = "-1"
      from_port        = 0
      to_port          = 0
      type             = "egress"
      cidr_blocks      = ["<IP_ADDRESS>/0"]
      ipv6_cidr_blocks = ["::/0"]
    }
    # Allows Control Plane Nodes to talk to Worker nodes on all ports. Added this to simplify the example and further avoid issues with Add-ons communication with Control plane.
    # This can be restricted further to specific port based on the requirement for each Add-on e.g., metrics-server 4443, spark-operator 8080, karpenter 8443 etc.
    # Change this according to your security requirements if needed
    ingress_cluster_to_node_all_traffic = {
      description                   = "Cluster API to Nodegroup all traffic"
      protocol                      = "-1"
      from_port                     = 0
      to_port                       = 0
      type                          = "ingress"
      source_cluster_security_group = true
    }

    # Allows all traffic from ALBs to reach the nodes
    ingress_alb_traffic = {
      description              = "Allows all traffic from ALBs to reach the nodes"
      protocol                 = "tcp"
      from_port                = 0
      to_port                  = 0
      type                     = "ingress"
      source_security_group_id = aws_security_group.alb.id
    }
  }
}

# AWS production ready EKS module addons
# https://github.com/aws-ia/terraform-aws-eks-blueprints
module "eks_blueprints_kubernetes_addons" {
  source = "github.com/aws-ia/terraform-aws-eks-blueprints//modules/kubernetes-addons?ref=v4.10.0"

  eks_cluster_id = var.cluster_name
  # EKS Addons
  enable_amazon_eks_vpc_cni    = true
  ## testing workaround for policy disappearing from role for issue #1007
  amazon_eks_vpc_cni_config = {
    additional_iam_policies  = ["arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy"]
  }
  enable_amazon_eks_coredns    = true
  enable_amazon_eks_kube_proxy = true
  # K8s Add-ons
  enable_cluster_autoscaler = true
  enable_metrics_server     = true

  tags = {
    Terraform = "true"
  }
  depends_on = [module.eks]
}```

please see solution provided above - closing for now, thanks!


Add DatasetAllCloseOperator

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

Comparison is base (6e15d2b) 100.00% compared to head (c93a08f) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #119   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            9         9
  Lines          473       487   +14
  Branches       127       131    +4
=========================================
+ Hits           473       487   +14

Impacted Files
Coverage Δ

src/coola/_xarray.py
100.00% <100.00%> (ø)

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


Using the screen width rather than the viewport width results in too-large images

Hi, thanks for the addon, it's very useful :)
I might have missed there being some reason for this, but using the screen width as the base for picking the image size (in getDestinationWidthBySize()) seems incorrect. On desktop, the screen size isn't necessarily the same as the browser viewport size (since the browser can be resized), which means the helpers, components, etc. that get the "best fitting" image over-estimate the on-page size of the image if the browser isn't fullscreen.
I think it'd make more sense to use $(window).width() (or document.documentElement.clientWidth).

Hi Nathaniel,
thanks for your hint. After some discussion we pointed out, that the 'correct' width is a matter of opinion. From our point of view it make sense to load the image with screen.width, so after resizing the Browser to fullscreen, the image still have the fitting size and it's not necessary to scale up or load the image with a new size.
But that's just our opinion, so we decided to make the screenWidth-property of the ResponsiveImageService public. The calculation based on this value and it's default is still the screen.width.
Now you can extend the Service and/or set a new value to this property, so it'll fit your needs!


Not parsing to mattermost

I try to parse rss feeds to Mattermost and script is running but get a:
2018-10-10 13:49:09,944 - Starting new HTTPS connection (1): weburl 2018-10-10 13:49:09,957 - "POST /hooks/hmeo97gzypdemr4nrihqsm4bhy HTTP/1.1"<PHONE_NUMBER>-10-10 13:49:09,959 - Encountered error posting to Mattermost URL https://url/hooks/hmeo97gzypdemr4nrihqsm4bhy, status=404, response_body={u'status_code': 404, u'message': u"Couldn't find the channel", u'request_id': u'z8yb55st4jrt8epp1zisbibh4r', u'id': u'web.incoming_webhook.channel.app_error', u'detailed_error': u''}`
but the channel exsists so it must be something else.

Did you remove the host part of the Mattermost URL or is it missing in your configuration ?

in what I copied I removed the mattermost url to be a little discreet but where I wrote weburl there is a link to https and the mattermost domain

Could you give the definition of the feed you set up ?

Im getting a similar issue here. Im setting up a nonproductive environment first. So no need to be discrete but i hope helpful.
the error:
`./env/bin/python ./feedfetcher.py
2019-03-03 14:02:27,707 - Feed url: http://www.tomshardware.com/articles.xml
2019-03-03 14:02:27,707 - Title: Pimax 5K Plus Review: A Fresh Look at Ultrawide VR
2019-03-03 14:02:27,707 - Link: https://www.tomshardware.com/reviews/pimax-5k-plus-vr-headset,5990.html#xtor=RSS-5
2019-03-03 14:02:27,710 - Posted text: Toms Hardware
Pimax 5K Plus Review: A Fresh Look at Ultrawide VR
![](https://img.purch.com/rc/120x90/aHR0cDovL21lZGlhLmJlc3RvZm1pY3JvLmNvbS82L1
ovODIzMjExL29yaWdpbmFsL0RTQ18xODQ5LmpwZw==) The Pimax 5K Plus VR headset isn't
perfect. We wouldn’t trade it for a Vive Pro, but we'd consider it if we were
upgrading from the original Vive.
https://www.tomshardware.com/reviews/pimax-5k-plus-vr-headset,5990.html#xtor=RSS-5
2019-03-03 14:02:27,720 - Starting new HTTPS connection (1): chat.jasondaigo.de
2019-03-03 14:02:27,740 - "POST /hooks/j1uuwtzprf85bkuwif8rtgbdqw HTTP/1.1" 404 165
2019-03-03 14:02:27,741 - Encountered error posting to Mattermost URL https://chat.jasondaigo.de/hooks/j1uuwtzprf85bkuwif8rtgbdqw, status=404, response_body={u'status_code': 404, u'message': u"Couldn't find the channel", u'request_id': u'kcbc8ecojjn3981asx414jngir', u'id': u'web.incoming_webhook.channel.app_error', u'detailed_error': u''}
the settings.py#!/usr/bin/python
-- coding: utf-8 --
author =<EMAIL_ADDRESS>from rssfeed import RssFeed
mattermost_webhook_url = 'https://chat.jasondaigo.de/hooks/7b8q8s8ckpfyxgh9angq9g13wc'
mattermost_integration_token = 'i1fw56tbhpry78jsm5q55rhuwr'
delay_between_pulls = 60 * 5
verify_cert = False
silent_mode = False
integration_bot_name = 'rss2'
integration_bot_img = ''
integration_listening_addr = ''
integration_listening_port = 8080
skip_init_article = False
default_show_name = True
default_show_title = True
default_show_description = True
default_show_url = True
default_channel = ''
feeds = [RssFeed('Toms Hardware', 'http://www.tomshardware.com/articles.xml', '', 'revvie', 'rss',
True, True, True, True),
]`

and cause i dont know how to posrt two blocks (someone can tell me? ^^) this is my config
# -*- coding: utf-8 -*-
__author__ =<EMAIL_ADDRESS>
from rssfeed import RssFeed

mattermost_webhook_url = 'https://chat.jasondaigo.de/hooks/7b8q8s8ckpfyxgh9angq9g13wc'

mattermost_integration_token = 'i1fw56tbhpry78jsm5q55rhuwr'

delay_between_pulls = 60 * 5

verify_cert = False

silent_mode = False

integration_bot_name = 'rss2'
integration_bot_img = ''

integration_listening_addr = ''

integration_listening_port = 8080

skip_init_article = False

default_show_name = True
default_show_title = True
default_show_description = True
default_show_url = True
default_channel = ''

feeds = [RssFeed('Toms Hardware', 'http://www.tomshardware.com/articles.xml', '', 'revvie', 'rss',
                 True, True, True, True),
]


[Preview] Struts 7.0.x

SNAPSHOT build is available in ASF Snapshot repository or you can download Nightlies build from here

@lukaszlenart  Is there anything I can do to help us with completing the last mile and getting that 7.0 M1 release out the door?
For my part, I have used the latest snapshot release and have migrated my company's Big Struts Application and we have not yet found any problems. I will say, however, we only use a small subset of the features.  For reference I am evaluating with Wildfly 31-Beta.

@jdyer1 sorry, I was distracted by work on Struts 6.4.0, I'm just preparing a reverse merge of the master branch and I will issue the first M release ASAP :)

Done, Struts 7.0.0-M1 is under test :)

hi!
Is there a targeted release date for 7.0.0? Are there known issues still to be resolved?

hi! Is there a targeted release date for 7.0.0? Are there known issues still to be resolved?

No exact date, first Struts 2.5.x must become EOL which will happen in a month

hi! Is there a targeted release date for 7.0.0? Are there known issues still to be resolved?

No exact date, first Struts 2.5.x must become EOL which will happen in a month

ah, good to know. wasn't aware of that requirement.

I realize there is no estimated date for the final 7.0 version. However how close to the final version is the M6 release? We are stuck on a very old version of Wildfly because the later versions switched to jakarta so we are stuck until we can update Struts. I'm thinking about releasing with a milestone release of Struts if it is close the final.

@ctmay4 see discussion on the dev mailing list

Hi, is there any release date planned for stable version of Struts 7 ? Thanks

Hi, is there any release date planned for stable version of Struts 7 ? Thanks

A rough estimate is about mid/end of September


classpath prepending

this is not meant to patch scala or zinc, it is meant to patch the launched application. In this case, sbt.
For patching the scala compiler and zinc, see https://github.com/sbt/sbt/pull/3643

@eed3si9n any more requests for this? Shame we missed the 1.1.2 release.

LGTM


Control Your Device Commands not found

[Enter feedback here]
When trying the following step:

To make the light on your smartphone flash, use the LightOn command. Set the duration to three seconds, the pulse interval to five seconds, and the number of pulses to two. Select Run to send the command to the smartphone app. The light on your smartphone app flashes twice.

The LightOn Command does not exist and the Command options are completely different than the tutorial.  There is no option to select Enable Sensors->Sensors->Change Delivery Interval.  What I see is only "Method Name" and "Component Name" with blank boxes to enter names.  Tried to enter "LightOn" or even

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

ID: eb646d68-4e54-3238-351c-3cac262ed8ac
Version Independent ID: cd1d9062-254b-4851-7c6b-afa1c639957d
Content: Quickstart - Connect a device to an Azure IoT Central application
Content Source: articles/iot-central/core/quick-deploy-iot-central.md
Service: iot-central
GitHub Login: @dominicbetts
Microsoft Alias: dobett

@rmats808 Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

Hi @rmats808 - thanks for getting in touch.
There's a couple of things to check:

Did you see the dashboard (Overview) with data from the phone earlier in the quickstart? The screenshot shows what you should see - battery level, altitude, maps, etc?
Do you have the latest version of the phone app installed?
It sounds like you may have clicked the Manage device > Command menu option instead of selecting the Commands tab.

Regards,
Dominic

Hi @rmats808 - did you manage to get the command working?

Hi @rmats808 - I didn't hear back from you so I'm closing this issue. Feel free to reopen it if you have any follow up questions. Thanks.

#please-close


TSLO-BO Order API details & Examples missing

No information on TSLO-BO Order using APIs.

Currently TSLO or BO order types cannot be placed via the API.


Create A 'Progress' Function On IHandler

this function would run an action/delegate, passing it stats related data such as percent complete and total processed commands; for UI aspect'ing e.g. UI trace logging and can also be used for progress bars for long running workflows

not sure if this is needed?

this would be nice to have, but will reopen if there is more requests for this function


[Feature]: Replace $CI_COMMIT_MESSAGE for Gitlab migration

What operating system are you using?

[X] Linux
[ ] macOS
[ ] Windows

What version of the tool are you using?
gh version 2.20.2 (2022-11-15)
gh actions-importer     github/gh-actions-importer      v1.0
actions-importer/cli    v1.0.14322
What happened?
When importing Gitlab CI configurations the environment variable $CI_COMMIT_MESSAGE is currently not replaced. We could use ${{ github.event.head_commit.message }} for replacement.
Relevant log output
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Unfortunately, I don't think using ${{ github.event.head_commit.message }} is a suitable replacement as that field is only available for push events. I'll take this back to the team to see if there's a replacement that would work regardless of the event type.


CUDA Support

Merging CUDA support from llama.cpp which significantly accelerates inference for very long prompts

Implemented as of v0.0.5


Status UNKNOWN with Eureka and Config Server

Hi Guys,
we encountered a strange behavior with an Spring Boot app registered to an Eureka Server with use of a Config Server. If we set eureka.client.healthcheck.enabled=true and spring.cloud.config.discovery.enabled=true the app is registered to Eureka with an Status of UNKNOWN. If you disable the healthcheck it all works as expected.
We are using Brixton.SR4 and Boot 1.4.0.RELEASE
This seems to be the same problem : http://stackoverflow.com/questions/38578705/springboot-app-registers-unknown-with-eureka-in-brixton-sr3

what is the output of /health which is what eureka.client.healthcheck.enabled=true translates to send to eureka.

/health endpoint says UP

From a personal recent experience, an unknown status from eureka with your actuactor endpoints showing UP usually means that the your discovery client didnt't called back Eureka to register it's server port once the servlet container has booted. Is your app defined with server.port=0 ?

no, static port

Could you provide a repository of a project containing an eureka server and eureka config simulating the problem ? The Eureka Client bootstrapping is sensitive, lots of race conditions involved.

Ok created a sample Repository
https://github.com/ukleeberger/unkown_issue/tree/master

According to the documentation, eureka.client.healthcheck.enabled should be set in application.yml.  In your example you are setting it in bootstrap.yml.  When you move that property to application.yml you no longer have the UNKOWN status.

Thx that was the problem. Now everything works as expected.

To add more explicit note

So, the current practice is to have some configuration, such as the following configuration
# user/bootstrap.yml
spring.application.name: user

register.center: http://<IP_ADDRESS>:8761/eureka/,xxx
eureka:
  client:
    registry-fetch-interval-seconds: 20
    serviceUrl.defaultZone: ${register.center}

spring.cloud.config:
  discovery.enabled: true
  discovery.serviceId: config-server
  name: all,user
  profile: dev

management.endpoints.web.exposure.include: "*"

To write to bootstrap.yml, there are more environments (dev, test, production), so there are more files (bootstrap-test.yml, bootstrap-prod.yml),
and then some configuration must be written in config-server, it is divided into different environments, so there is a corresponding user-dev.yml user-test.yml user-prod.yml configuration, which is used to save like this
# config-server/user-dev.yml
spring:
  datasource:
    url: jdbc:mysql://ip:port/db
    username: root
    password: root
    hikari:
      minimumIdle: xx
      maximumPoolSize: xx
  redis:
    host: <IP_ADDRESS>
    port: 6379

this config can be load with lcation or git svn etc...
Finally, I have to create application.yml applocation-test.yml, application-prod.yml in each project to save the following configuration.
# user/application.yml
eureka:
  client.healthcheck.enabled: true
  instance:
    prefer-ip-address: true
    lease-renewal-interval-in-seconds: 20
    lease-expiration-duration-in-seconds: 60

1 server have 9 configuration, Are you sure this is not funny???

I am not even sure what the problem is.  Please open a separate issue which clearly states what the problem is.

So, the current practice is to have some configuration, such as the following configuration
# user/bootstrap.yml
spring.application.name: user

register.center: http://<IP_ADDRESS>:8761/eureka/,xxx
eureka:
  client:
    registry-fetch-interval-seconds: 20
    serviceUrl.defaultZone: ${register.center}

spring.cloud.config:
  discovery.enabled: true
  discovery.serviceId: config-server
  name: all,user
  profile: dev

management.endpoints.web.exposure.include: "*"

To write to bootstrap.yml, there are more environments (dev, test, production), so there are more files (bootstrap-test.yml, bootstrap-prod.yml),
and then some configuration must be written in config-server, it is divided into different environments, so there is a corresponding user-dev.yml user-test.yml user-prod.yml configuration, which is used to save like this
# config-server/user-dev.yml
spring:
  datasource:
    url: jdbc:mysql://ip:port/db
    username: root
    password: root
    hikari:
      minimumIdle: xx
      maximumPoolSize: xx
  redis:
    host: <IP_ADDRESS>
    port: 6379

this config can be load with lcation or git svn etc...
Finally, I have to create application.yml applocation-test.yml, application-prod.yml in each project to save the following configuration.
# user/application.yml
eureka:
  client.healthcheck.enabled: true
  instance:
    prefer-ip-address: true
    lease-renewal-interval-in-seconds: 20
    lease-expiration-duration-in-seconds: 60

1 server have 9 configuration, Are you sure this is not funny???

And then you have the configuration service, so, there is much more source of truth :).


"SDKs" show up as packages when they are indirect

I think this SDK thing is a leaky abstraction, for example, .NETStandard.Library shows up as SDK when it top level, but when it's a indirect, it shows up a package:

i think everything is as expected. in your screenshot we have an SDK X and it's dependencies, which include an SDK Y. It might have a different icon though when displayed as dependency.

Btw, i just added  to my project and it is not marked as implicit at all , and is resolved as package - what did you mean "it is SDK when it is top level"?

<PackageReference Include="NETStandard.Library" Version="1.6.0" />

That's my point how we marked SDK'd as SDKs is leaky - it only works if all of them are marked implicit, here .NETStandard.LIbrary is pulled it because of it's referenced by a implicit package.

@abpiskunov When you use a console app, it shows up as child of "Microsoft.NETCore.App". But when you use a class library, it shows up directly under "SDK", thus it shows up at top level.

dupe of RTM approved issue https://github.com/dotnet/roslyn-project-system/issues/1456 , we will be hiding all default implicit packages and show them as SDK only


How to get queryParams ?

i have request url like this
someurl?foo=bar&luck=query
how i get foo & luck query string params ?
i had try req.query.foo but undefined
thanks before

Hi @renjiza, restana does not offer out of the box support for query string parsing. But you can just use any of the available middlewares. Please see an example demo here: https://github.com/jkyberneees/ana/blob/master/demos/query-parser.js#L1
const queryParser = require('connect-query')
const service = require('restana')({})
service.use(queryParser())

service.get('/params', (req, res) => {
  res.send(req.query)
})

service.start()

oh ok i missed it, sorry and thanks for reply :)


Initial commits for this Ansible role

🗣 Description
This pull request contains the initial commits for this Ansible role, which sets up automated security updates on Debian- and RedHat-based Linux systems.
💭 Motivation and context
Adding this Ansible role to our OpenVPN and FreeIPA AMIs will ensure that security updates are automatically applied to said instances even when they come out between new AMI deployments.  This should make our security types happier, and cut down on the number of complaints we receive from them.
This Ansible role satisfies half the requirements of cisagov/cool-system#186.  The remaining requirements will be satisfied with future pull requests; I wanted to keep the automatic updates and the notifications separate, since the latter will require the use of AWS resources and are therefore more tied into our COOL infrastructure.
🧪 Testing
All pre-commit hooks and molecule tests pass.
✅ Checklist

[x] This PR has an informative and human-readable title.
[x] Changes are limited to a single goal - eschew scope creep!
[x] All relevant type-of-change labels have been added.
[x] I have read the CONTRIBUTING document.
[x] These code changes follow cisagov code standards.
[x] All relevant repo and/or project documentation has been updated to reflect the changes in this PR.
[x] Tests have been added and/or modified to cover the changes in this PR.
[x] All new and existing tests pass.

Sorry for re-requesting review.  I had accidentally checked the "Dismiss stale pull request approvals when new commits are pushed" checkbox in the branch protection settings.


can't install node-sass

ref https://github.com/keystonejs/keystone/issues/1643

Does this tie into Node v4?
The latest version of node-sass (3.3.2) now supports Node v4.
I may open up a PR to update dependencies here, they are a little behind.

@ppiekarczyk that would be great, I haven't had a chance to update & test the dependencies lately with my focus on 0.4 :)

You got it!

On Windows 10 with node 4.0.0, despite updating node-sass to version 3.3.3 I still had problems with this. At different times while attempting to run the generator, and then Grunt, I was prompted to re-install both node-sass-middleware (updated to 0.9.6) and grunt-node-inspector (updated to 0.3.0). Updating these didn't work.
I then installed grunt-sass (1.0.0), because I was going to try a different Grunt build system... and suddenly everything worked! Is this because it would be creating the proper libsass bindings? I don't know!
I tried re-installing several times with the same failures and success.

@pathogen- a recent commit closed this issue. If you are still having problems please file a new issue for Windows errors in this repo.


permissionDenied for iOS

Thanks for submitting a PR! Please read these instructions carefully:

[x] Explain the motivation for making this change.
[x] Provide a test plan demonstrating that the code is solid.
[x] Match the code formatting of the rest of the codebase.
[x] Target the master branch, NOT a "stable" branch.

Motivation (required)
iOS only. (Android has supported this festure, so this is iOS version.
When the permission is denied at the first time, we cannot use this library until  we enable the permission in system settings.
This PR provides a simple way to solve it by showing a alert view when the permission is denied, and user can click 'Open Setting'(default title) to open the app's settings directly.
All title in alert view can be customized. I have update the README.
You can disable this feature by make permissionDenied be null. (Only for iOS)
Test Plan (required)
First, you should deny the permission at first time, also you can disable the permission in system settings if you have enabled it sometime.
Then click 'Take Photo…', the 'permission denied' alert view will show with two button('I'm sure' and 'Open Settings'). You can click 'Open Settings' if you want enable permission, or click 'I'm sure' nothing will happen.

Would love to be able to implement something like this in my current app. How can I help to get this merged? @marcshilling @janicduplessis @c19354837

Just add this in your package.json, then run npm install
"react-native-image-picker": "git+https://github.com/react-community/react-native-image-picker.git#540eb07"

This was really helpful. Thanks so much! To anyone else who needs this, after installing you can modify the alert by adding the following to the options object:
permissionDenied: {
        title: 'Title of alert'
        text: 'Long message explaining what went wrong',
        settingTitle: 'Allow',
        okTitle: 'Later',
 },

Why has not this PR been approved yet?

is this PR approve yet ?

I think @kyryloz solution works, rather than reimplementing alert and linking on native side, what are your thoughts @c19354837


Signup issue

Page Id and Page name is not being save upon signup with Facebook

Sorry posted on the wrong repo


[fontconfig] build failure

Host Environment

OS: Linux
Compiler: gcc 9.3.0

To Reproduce
Steps to reproduce the behavior:
This assumes gperf is not available system-wide, but only through vcpkg.
./vcpkg install gperf
./vcpkg install fontconfig

Failure logs
Building package fontconfig[core]:x64-linux...
-- Using cached /private/home/locronan/vcpkg/downloads/fontconfig-fontconfig-844d8709a1f3ecab45015b24b72dd775c13b2421.tar.gz
-- Cleaning sources at /private/home/locronan/vcpkg/buildtrees/fontconfig/src/75c13b2421-4651fd65ce.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /private/home/locronan/vcpkg/downloads/fontconfig-fontconfig-844d8709a1f3ecab45015b24b72dd775c13b2421.tar.gz
-- Applying patch remove_tests.patch
-- Applying patch build.patch
-- Applying patch build2.patch
-- Applying patch disable-install-data.patch
-- Using source at /private/home/locronan/vcpkg/buildtrees/fontconfig/src/75c13b2421-4651fd65ce.clean
CMake Error at scripts/cmake/vcpkg_find_acquire_program.cmake:535 (message):
  Could not find gperf.  Please install it via your package manager.
Call Stack (most recent call first):
  ports/fontconfig/portfile.cmake:21 (vcpkg_find_acquire_program)
  scripts/ports.cmake:128 (include)

Error: Building package fontconfig:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `./vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: fontconfig:x64-linux
  Vcpkg version: 2021-01-13-unknownhash

Additional context
It looks like fontconfig relies on gperf (via vcpkg_find_acquire_program). When gperf is installed via vcpkg (not system install), fontconfig is unable to find gperf.
A workaround is to manually add in PATH the vcpkg gperf executable path, but I believe this should be automated.

Hi @andresy
Thanks for posting this issue.
Currently, ports depend on the tools in vcpkg to build via vcpkg_find_acquire_program. Since the tool gperf is only supported on Windows, you need to install it manually via apt-get install gperf on Unix platform.
But you can post these issues there #6045.

Hi @andresy
Thanks for posting this issue.
Currently, ports depend on the tools in vcpkg to build via vcpkg_find_acquire_program. Since the tool gperf is only supported on Windows, you need to install it manually via apt-get install gperf on Unix platform.
But you can post these issues there #6045.

I think we should add our tool path to head of CMAKE_PROGRAM_PATH.
@BillyONeal @ras0219  what do you think about?

I think we should add our tool path to head of CMAKE_PROGRAM_PATH.
@BillyONeal @ras0219  what do you think about?

I think we should add our tool path to head of CMAKE_PROGRAM_PATH.

I believe not doing that and wanting porfile.cmakes to explicitly handle each of their dependencies is intended to discourage "accidental dependencies".

I think we should add our tool path to head of CMAKE_PROGRAM_PATH.

I believe not doing that and wanting porfile.cmakes to explicitly handle each of their dependencies is intended to discourage "accidental dependencies".

@andresy Is still working for this issue, I didn't reproduce it locally. Make sure your vcpkg library is updated to the latest version and try again. If you still have questions, please reply to me. :)
test:~/test/vcpkg$ ./vcpkg install gperf
Computing installation plan...
The following packages will be built and installed:
    gperf[core]:x64-linux -> 3.1#3
Detecting compiler hash for triplet x64-linux...
Restored 0 packages from /home/test/.cache/vcpkg/archives in 49.47 ms. Use --debug to see more details.
Starting package 1/1: gperf:x64-linux
Building package gperf[core]:x64-linux...
-- Downloading http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz -> gperf-3.1.tar.gz...
-- Extracting source /home/test/test/vcpkg/downloads/gperf-3.1.tar.gz
-- Using source at /home/test/test/vcpkg/buildtrees/gperf/src/gperf-3-d4135ad4b1.clean
-- Configuring x64-linux-dbg
-- Configuring x64-linux-rel
-- Building x64-linux-dbg
-- Building x64-linux-rel
-- Installing: /home/test/test/vcpkg/packages/gperf_x64-linux/share/gperf/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: /home/test/.cache/vcpkg/archives/2a/2afbf7aba7bdf4dbdd8deaf584c8fe037a94360ada856756b0fa43d951d3f617.zip
Installing package gperf[core]:x64-linux...
Elapsed time for package gperf:x64-linux: 3.426 s

Total elapsed time: 3.889 s

test:~/test/vcpkg$ ./vcpkg install fontconfig
Computing installation plan...
The following packages will be built and installed:
    fontconfig[core]:x64-linux -> 2.13.94#5
Detecting compiler hash for triplet x64-linux...
Restored 1 packages from /home/test/.cache/vcpkg/archives in 249.4 ms. Use --debug to see more details.
Starting package 1/1: fontconfig:x64-linux
Installing package fontconfig[core]:x64-linux...
Elapsed time for package fontconfig:x64-linux: 38.88 ms

Total elapsed time: 707.3 ms

Fixed by PR https://github.com/microsoft/vcpkg/pull/24677


Double traces on Insight without WriteTo: File and WriteTo: Console

Good morning,
I have installed the package Serilog.Sinks.ApplicationInsights with version 3.1.0 and this is my configuration:
{   "Logging": {     "LogLevel": {       "Default": "Warning",       "System": "Information",       "Microsoft": "Information"     }   },   "Serilog": {     "Using": [ "Serilog.Sinks.ApplicationInsights" ],     "MinimumLevel": "Information",     "WriteTo": [       {         "Name": "ApplicationInsights",         "Args": {           "restrictedToMinimumLevel": "Information",                     "telemetryConverter": "MyCustomSerilogToInsightsConverter, MyProject"         }       }     ],     "Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ],     "Properties": {       "Application": "MyApplication"     }   } }
I instantiate the logger in this way
            var logger =                 new LoggerConfiguration()                 .ReadFrom.Configuration(Configuration, "Serilog")                 .Enrich.WithProperty("Version", Productversion)                 .CreateLogger();             loggerFactory.AddSerilog(logger);
As you can see in the title, my issue is that when I check on Insights all my traces are doubled except the log I explicitly insert in my code .
To fix the issue I had to change the configuration by adding both WriteTo: File and WriteTo: Console like the following:
  "Logging": {     "LogLevel": {       "Default": "Warning",       "System": "Information",       "Microsoft": "Information"     }   },   "Serilog": {     "Using": [ "Serilog.Sinks.File", "Serilog.Sinks.ApplicationInsights" ],     "MinimumLevel": "Information",     "WriteTo": [       { "Name": "Console" },       {         "Name": "File",         "Args": {           "path": "logs\\MyApplication.log",           "rollingInterval": "Day",           "outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj} <{SourceContext}>{NewLine}{Exception}"         }       },       {         "Name": "ApplicationInsights",         "Args": {           "restrictedToMinimumLevel": "Information",           "telemetryConverter": "MyCustomSerilogToInsightsConverter, MyProject"         }       }     ],     "Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ],     "Properties": {       "Application": "MyApplication"     }   }
If I try to remove only one of those, the traces are doubled again.
I can't find a reason for this behaviour. Is there something I am missing ? Or is there a bug ?
PS as you can see I am using a custom telemetryConverter , I tried to debug it and the telemetries are sent only once so I don't think the problem is there .

Seeing the same issue with Azure Functions when configuring Serilog like this:
 public override void Configure(IFunctionsHostBuilder builder)         {             builder.Services.AddLogging(builder =>                                                     builder                                                         .AddSerilog(                                                             new LoggerConfiguration()                                                                 .MinimumLevel.Debug()                                                                 .WriteTo.Console()                                                                 .WriteTo.ApplicationInsights(TelemetryConfiguration.CreateDefault(), TelemetryConverter.Traces)                                                                 .CreateLogger(),                                                             true)                                                         );         }

I am facing the same problem. Are there any updates?

I am facing the same problem. Are there any updates?

Got the same issue here with my Azure function, with a small difference : for strings on several lines (like a JSON saved in logs), the message is splitted in several lines (several log entries).
One of the message in Application Insights is fine (one single entry), the other is splitted on several entries (one entry per line).
The same message saved in File target is ok.
This bug apparently exists since more than one year, nobody found how to fix it ?
Thank you

I am seeing the same issue

@matteotrapani  What do you mean?
I'm facing a similar issue (duplicate logs in Azure App Insights).
I have all 3 Serilog Writers (Console, File, AppInsights).
From local environment it sends to Azure App Insights only one log; after deployed to Azure App Service, it created duplicate logs in Azure App Insights.
{
  "ApplicationInsights": {
    "InstrumentationKey": ""
  },
  "AzureAppConfig": {
    "ConnectionString": "",
    "KeyFilter": "",
    "LabelFilter": "",
    "TrimKeyPrefix": "",
    "SentinelKeyName": "",
    "CacheExpirationInSeconds": 3600
  },
  "Logging": {
    "LogLevel": {
      "Default": "Debug",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  "Serilog": {
    "Using": [
      "Serilog",
      "Serilog.Sinks.Console",
      "Serilog.Sinks.File",
      "Serilog.Sinks.ApplicationInsights"
    ],
    "MinimumLevel": {
      "Default": "Debug",
      "Override": {
        "Microsoft": "Warning",
        "System": "Warning"
      }
    },
    "WriteTo": [
      {
        "Name": "Console"
      },
      {
        "Name": "File",
        "Args": {
          "path": "Logs/Api-.log",
          "rollingInterval": "Day"
        }
      },
      {
        "Name": "ApplicationInsights",
        "Args": {
          "instrumentationKey": "",
          "restrictedToMinimumLevel": "Information",
          "telemetryConverter": "Serilog.Sinks.ApplicationInsights.Sinks.ApplicationInsights.TelemetryConverters.TraceTelemetryConverter, Serilog.Sinks.ApplicationInsights"
        }
      }
    ],
    "Enrich": [
      "FromLogContext"
    ]
  }
}

Hi! 👋 Thanks for getting in touch, and sorry we were unable to respond to your request. We're in the process of bringing new maintainers onto this project, and need to close stale tickets so that we can identify which items are still important to users of the sink.
If this issue still affects you:

Please consider whether it's a question that can be asked on Stack Overflow; if so, the serilog tag will get your question in front of many more people who can help you
Please consider whether you can research or investigate the issue and propose a solution for other users to benefit from
Feel free to comment here, letting us know it's still a problem

Thanks again!


feat: support IMDS restriction for Linux nodes

What type of PR is this?
/kind feature

What this PR does / why we need it:
This PR adds support for IMDS restriction for Linux nodes.
Which issue(s) this PR fixes:

Fixes #
Requirements:

[ ] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests
[ ] tested upgrade from previous version

Special notes for your reviewer:
Release note:
feat: Support IMDS restriction for Linux nodes

closed and recreate one PR from azure/agentbaker repo


Event aliases / generic events that work across platforms

MinVR Discussion:  How to add generic events etc. in order to make it work across platforms?
A Proposal:

Add to command line options:

-f configfile.cfg
-c (or -v for value?) Name=Value
This way you can load as many config files as you want and even specify overloaded name=value pairs on the command line.  Some of these can be application-specific, so you can change or add to the configuration depending on what application you are running on what device you are running on.

Add event aliases to any config file:

OptiTrackRigidBody01
When processing input events, MinVR would create a duplicate event whenever it sees an OptiTrackRigidBody01 event and name the copy HandTracker.  Users would write their application to respond to HandTracker events, and depending on where they are running, they might create an alias to link this to the OptiTrack or a HTC Vive tracker, etc..

As we discussed, I think this capability already exists through the linkNode attribute. If you set up your config file so that you have /MyEvent linked to /HeadTrackEvent, then you can accept serialized /HeadTrackEvent objects and access them via the /MyEvent name.

This is confirmed to work with linkNode, with a caveat. That is, the way linkNode is implemented, if you have container a that contains b and c, when you link d to a, you get d/b and d/c, linked directly to elements a/b and a/c. If container a is updated, the new values of a/b and a/c are reflected in d/b and d/c. If container a contains a new element e, there is no d/e link created.
In other words, linking one container to another means you get two containers linked to the same members, not two containers as one. Linking other data elements is different in this respect, if I create a link to an integer datum, both names point to exactly the same object.
This is a side effect of the way containers are implemented, and cannot be changed easily. However, some of the potential performance enhancements to the VRDataIndex might involve changing the implementation, which would permit an identity between containers as well as the other data elements.


typo: add missing word

How to categorize this PR?

/area documentation
/kind bug
/priority 4
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

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

Thank you @morri-son for your contribution. Before I can start building your PR, a member of the organization must set the required label(s) {'reviewed/ok-to-test'}. Once started, you can check the build status in the PR checks section below.


Dump command.

This PR fixes #315 .

Codecov Report

Merging #332 (d76d0b6) into main (7d37cc6) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #332   +/-   ##
=======================================
  Coverage   61.72%   61.72%
=======================================
  Files          75       75
  Lines        6866     6866
=======================================
  Hits         4238     4238
  Misses       2073     2073
  Partials      555      555

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 7d37cc6...d76d0b6. Read the comment docs.


Way to restore the state of a TreeView?

This is kind of a variant issue of #78.
I'm trying to restore the state of the TreeView on app startup. So I called treeController.setExpansionState(node, previousState) before return the TreeIndentation.
Here's a minimal reproducible code, tweaked from #78 :
(NB: I use after_layout to rebuild the TreeView after the first build ASAP.)
import 'dart:async';

import 'package:after_layout/after_layout.dart';
import 'package:flutter/material.dart';
import 'package:flutter_fancy_tree_view/flutter_fancy_tree_view.dart';
import 'package:uuid/uuid.dart';

class Node {
  Node({
    required this.title,
    Iterable<Node>? children,
  }) : children = <Node>[...?children];

  final String title;
  final List<Node> children;
}

class MinimalTreeView extends StatefulWidget {
  const MinimalTreeView({super.key});

  @override
  State<MinimalTreeView> createState() => _MinimalTreeViewState();
}

class _MinimalTreeViewState extends State<MinimalTreeView>
    with AfterLayoutMixin<MinimalTreeView> {
  late final TreeController<Node> treeController;

  @override
  void initState() {
    super.initState();

    treeController = TreeController<Node>(
      roots: getRoots(),
      childrenProvider: (Node node) => node.children,
    );
  }

  @override
  void dispose() {
    treeController.dispose();
    super.dispose();
  }

  @override
  FutureOr<void> afterFirstLayout(BuildContext context) {
    treeController.rebuild();
  }

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        Builder(builder: (context) {
          return ElevatedButton(
            onPressed: () {
              (treeController.isTreeExpanded
                  ? treeController.collapseAll
                  : treeController.expandAll)();
              setState(() {});
            },
            child: Text(
                treeController.isTreeExpanded ? 'collapse all' : 'expand all'),
          );
        }),
        Expanded(
          child: TreeView<Node>(
            treeController: treeController,
            shrinkWrap: true,
            // duration: const Duration(milliseconds: 100),
            // curve: Curves.easeInOutQuint,
            physics: const ClampingScrollPhysics(),
            // maxNodesToShowWhenAnimating: 200,
            nodeBuilder: (BuildContext context, TreeEntry<Node> entry) {
              final node = entry.node;
              treeController.setExpansionState(node, true);
              return TreeIndentation(
                entry: entry,
                child: Row(
                  children: [
                    ExpandIcon(
                      key: GlobalObjectKey(entry.node),
                      isExpanded: entry.isExpanded,
                      onPressed: (_) =>
                          treeController.toggleExpansion(entry.node),
                    ),
                    Flexible(
                      child: Text(entry.node.title),
                    ),
                  ],
                ),
              );
            },
          ),
        ),
      ],
    );
  }
}

final roots = [];

const _uuid = Uuid();

List<Node> getRoots() {
  var title = _uuid.v4;
  return List.generate(
      5,
      (index) => Node(
            title: title(),
            children: [
              Node(
                title: title(),
                children: List.generate(4, (index) => Node(title: title())),
              ),
              Node(
                title: title(),
                children: List.generate(4, (index) => Node(title: title())),
              ),
            ],
          ));
}

When you're running the above code, you will get a screenshot like the following:

The problem is that expansion state is not complete, those highlighted node is not expanded after treeController.rebuild(). It's probably that AfterLayoutMixin doesn't work.
@override
  FutureOr<void> afterFirstLayout(BuildContext context) {
    treeController.rebuild();
  }

But, here's a strange thing. If you replace TreeView with AnimatedTreeView, the state of the AnimatedTreeView get restored correctly:

Hey, finally found some time to work on this package.
From what I can see, treeController.setExpansionState() is being called inside nodeBuilder which for TreeView only runs once every TreeController.rebuild(), but for AnimatedTreeView, the tree is rebuilt multiple times, that's why it works there.
To fix this, move your state restoration to inside initState(), right after the instantiation of your controller.
I`m going to close this issue for now, feel free to reopen it and let me know if you were able to fix the restoration problem.


AudioStreamPlayer can play sound from a negative position

Tested versions
Reproducible in: 4.3.dev.official [df78c06]
System information
Linux Mint 21.2 (Victoria) - X11 - GLES3 (Compatibility) - NVIDIA GeForce RTX 3050 Laptop GPU () - 11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz (12 Threads)
Issue description
If call the play method of AudioStreamPlayer, there will be an incorrect loud sound.
Steps to reproduce
In AudioStreamPlayer, call the play method with a negative position.
Example:
$AudioStreamPlayer.play(-1)

Minimal reproduction project (MRP)
AudioBug.zip

What would be the expected behavior here? Would we throw an error, clip the position to 0, or would we delay the audio playback by that number of seconds? I could see arguments for all three

What would be the expected behavior here? Would we throw an error, clip the position to 0, or would we delay the audio playback by that number of seconds? I could see arguments for all three

Throw an error and not playing

There's a proposal with lots of community support for allowing people to start playback in the future and beginning playback with a negative number is one possible way to implement that. Just a thought that it might make sense to add silence as suggested earlier.


DEV-817 catch and throw invalid password for registration

SonarQube analysis reported 2 issues
Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

 AdapterDeterLab.java#L51: The Cyclomatic Complexity of this method "joinProjectNewUsers" is 12 which is greater than 10 authorized.
 AdapterDeterLab.java#L98: The Cyclomatic Complexity of this method "applyProjectNewUsers" is 12 which is greater than 10 authorized.


Avoid copying around node.lib on Windows

Imagine a Jenkins build server, where node-gyp chooses a dev dir of say C:\Users\jenkins\.node-gyp\0.10.29\. The build server runs multiple build jobs in parallel, each with disjoint working directories, but sharing global state such as the node-gyp dev dir. Some of these build jobs are using node-gyp to build 32-bit binaries, and some are using node-gyp to build 64-bit binaries. Sometimes the following scenario could previously occur:

Job A step 1: Copy C:\Users\jenkins\.node-gyp\0.10.29\ia32\node.lib to C:\Users\jenkins\.node-gyp\0.10.29\Release\node.lib
Job B step 1: Copy C:\Users\jenkins\.node-gyp\0.10.29\x64\node.lib to C:\Users\jenkins\.node-gyp\0.10.29\Release\node.lib
Job B step 2: Successfully build and link a 64-bit binary.
Job A step 2: Attempt to build and link a 32-bit binary, but fail because C:\Users\jenkins\.node-gyp\0.10.29\Release\node.lib is of the wrong architecture.

This commit avoids the above scenario by making the dev dir immutable, and making the generated vcxproj files refer directly to the node.lib file for the appropriate architecture.

This is rather similar to #443 / #450.

How would that work when compiling for both Debug and Release configurations?
Would adding --node-dir to the node-gyp invocation help your Jenkins case?

I'll close, there are fresher pull requests that address this.


Fix: column "password" of relation "users" contains null values

How should this be manually tested

This migration should be reviewed and tested in a development environment before applying to production.
Verify that existing rows with NULL passwords in the users table are updated to default_password.
Ensure that the password column enforces the NOT NULL constraint, and no new NULL values can be inserted.

Checklist list of what i did

[x] Created a migration script to update the password column in the users table.
[x] Ensured that all existing NULL values in the column are updated to a default value.
[x] Migration script created and committed.
[x] Properly tested the migration in the local environment.

Reference issue
[BugFix]: Fix Migration Error for Users Table

@lurldgbodex Please look at this fix for the problem with the migrations


Be able to run ruby 3 preview 1 on the CI with allow_failure on

It should be good soon with https://github.com/rails/rails/pull/40281

We could add the gem in the mean time to make it green?

Errors are now different but more related to changes on tests helpers and method arity.


Add priv/null as source for gettext in test env

📖 Description
The goal is to have the key as output in templates. This way, we can test the content without relying on po files.
🦀 Dispatch

#dispatch/elixir

🦀 Requesting reviewers for this pull request:

@gcauchon (contributor with 1 commits in the last 90 days and 37 commits overall)
@JoeyBG (reviewer for the elixir stack)

It works so well it makes the right test fails! 😁

@simonprev Could you update the PR title now that the content is much more awesome? 😀


Fullscreen doesn't work in mobile phone

The full screen api doesn't seem to work in android phone.
I used the example from https://labs.phaser.io/100.html?src=src\scalemanager\full%20screen%20game.js

Which browser? and which version of Android? Support is limited on mobile. If the device + browser don't support it, there's nothing that can be done.

Which browser? and which version of Android? Support is limited on mobile. If the device + browser don't support it, there's nothing that can be done.

Uh, Browser is chrome
And android versions are 6 and 8

Same here.

Chrome version 72.0.3626.96 using emulator and Phone with Android 7
Phaser experimental build 3.17.0

Console output is two-fold:

Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture

and

Uncaught (in promise) TypeError: fullscreen error

I've done some investigation and it seems to occur in the function startFullscreen (specifically line 68526 in phaser.js:
               fsTarget[fullscreen.request](fullscreenOptions);
Desktop seems to work fine. I've tried setting the fullscreenTarget to document.documentElement, as well as not setting it at all. Furthermore, I'm not able to get console outputs, but iPad+Safari and Mozilla Firefox emulator don't appear to work either.

iPad and iPhone work fine for me on real devices.
The Android issue is weird because it is coming from a user gesture in that demo. I could understand the error if it was being called automatically without a gesture.

I'm getting the same thing.

iPhone 7S Plus
iOS version 12.1.4
iOS Safari
Fullscreen API Experimental WebKit feature enabled

Pushing the fullscreen button changes the button to the "return to fullscreen" version, but nothing actually happens.
The button then goes unresponsive and you can't switch it back to the "go to fullscreen" version.

I'm getting this message when I click the button
"Performing operations that require explicit user interaction on touchstart events is deprecated and will be removed in M54, around October 2016."

I get this error
MESSAGE: Uncaught TypeError: Cannot read property 'isFullscreen' of undefined

Looking at this today. It's interesting. If you tap anywhere on the canvas first (before tapping the fullscreen button) and THEN tap the fullscreen button, it works perfectly. If the very first thing you do is tap the fullscreen button, it errors.
So, something appears to be getting in the way of the first tap, because the code path is identical. I'm guessing maybe the web audio unlocking.

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.
Please note the updated documentation + example regarding this feature on mobile.

@photonstorm not sure if this is the desired behaviour, but the function works only if invoked in the pointerup event callback. If called in the pointerdown callback, I get:
phaser-arcade-physics.min.js:1 Uncaught TypeError: Cannot read property 'then' of undefined
    at initialize.startFullscreen (phaser-arcade-physics.min.js:1)
    at initialize.<anonymous> (bundle.js:13092)
    at initialize.h.emit (phaser-arcade-physics.min.js:1)
    at initialize.processDownEvents (phaser-arcade-physics.min.js:1)
    at initialize.update (phaser-arcade-physics.min.js:1)
    at initialize.updateInputPlugins (phaser-arcade-physics.min.js:1)
    at initialize.onTouchStart (phaser-arcade-physics.min.js:1)
    at HTMLCanvasElement.onTouchStart (phaser-arcade-physics.min.js:1)

Tested on Samsung Internet browser.

@photonstorm not sure if this is the desired behaviour, but both functions toggleFullscreen and startFullscreen work only if invoked in the pointerup event callback. If called in the pointerdown callback, I get:
Uncaught TypeError: Cannot read property 'then' of undefined
    at ScaleManager.startFullscreen (phaser-arcade-physics.js:66758)
    at Sprite.<anonymous> (bundle.js:13092)
    at Sprite.emit (phaser-arcade-physics.js:2373)
    at InputPlugin.processDownEvents (phaser-arcade-physics.js:151699)
    at InputPlugin.update (phaser-arcade-physics.js:151442)
    at InputManager.updateInputPlugins (phaser-arcade-physics.js:61595)
    at InputManager.onTouchStart (phaser-arcade-physics.js:61645)
    at HTMLCanvasElement.onTouchStart (phaser-arcade-physics.js:64485)

Tested on Samsung Internet browser.


create-catalyst @0.13.0 failing to start in Windows 10 - GIT not found error

Describe the bug
When trying to create a new Catalyst site with<EMAIL_ADDRESS>I get an error message about GIT not being installed, and the process stops.
To Reproduce
Steps to reproduce the behavior:

run "npm create<EMAIL_ADDRESS>answer "Y" to "Need to install the following packages<EMAIL_ADDRESS>Ok to proceed? (y) y"

Console
`npm create<EMAIL_ADDRESS>Need to install the following packages:
<EMAIL_ADDRESS>Ok to proceed? (y) y
◢ @bigcommerce/create-catalyst v0.13.0
Error: git is required to create a Catalyst project
npm ERR! code 1
npm ERR! path D:\Documents\LO-Tape-Catalyst
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c create-catalyst
npm ERR! A complete log of this run can be found in: C:\Users\Psy\AppData\Local\npm-cache_logs\2024-10-15T12_47_35_644Z-debug-0.log`
Log
2024-10-15T12_47_35_644Z-debug-0.log
Additional context
Windows 10
I'm using NVM and NODE version v20.9.0
GIT is installed and available in the path.
Works with<EMAIL_ADDRESS>

@druellan Thanks for reporting this!
@matthewvolk this might because which is not a command on Windows :( https://github.com/bigcommerce/catalyst/commit/673bea2bef3d7b80267c7f0c8b204b652fd09f34#diff-d6d218ba01140fd6bebf1cf5f8325f993e96717aa24b7d12166fff34cae34e6bR70 Might have to go with your alternate method that you had initially.

Thanks! I'll try patching that locally and see if that solves the issue.

I'm going to reopen this one, I think we should definitely fix it on our end.


stops at 99%

Kitematic startup tops at 99%

+1  I'm seeing the same problem.

I had this problem too, and solved it by simply deleting the "dev" virtual machine created by Kitematic. You will lose all your configured containers.
$ VBoxManage list vms
"dev" {698b51bc-ff9d-401e-a87f-957d613e6b60}

$ VBoxManage unregistervm dev --delete

If you have the error VBoxManage: error: The machine 'dev' is already locked by a session (or being locked or unlocked), there is another process currently accessing this VM. You may still have Kitematic running.

Thanks for the guidance.
I got

VBoxManage: error: Cannot unregister the machine 'dev' while it is locked

When I tried your suggestion.
I found I had to

VBoxManage controlvm dev poweroff

before I could

VBoxManage unregistervm dev —delete

check if dev is still running with

VBoxManage list runningvms

—
Sent from Mailbox
On Sun, May 10, 2015 at 9:50 AM, Emeric Kasbarian
<EMAIL_ADDRESS>wrote:

I had this problem too, and solved it by simply deleting the "dev" virtual machine created by Kitematic. You will lose all your configured containers.
$ VBoxManage list vms
"dev" {698b51bc-ff9d-401e-a87f-957d613e6b60}
$ VBoxManage unregistervm dev --delete

If you have the error VBoxManage: error: The machine 'dev' is already locked by a session (or being locked or unlocked), there is another process currently accessing this VM. You may still have Kitematic running.
Reply to this email directly or view it on GitHub:
https://github.com/kitematic/kitematic/issues/483#issuecomment-100563869

@alistairwalsh @ehlersd @emerick42
We are testing out a pre-release that should fix this problem! Do you mind giving it a try?
https://github.com/kitematic/kitematic/releases/download/v0.5.27-intel-nic/Kitematic-0.5.27-intel-nic.zip
Let me know if you are still running into the issue after.
Also consolidating this issue with https://github.com/kitematic/kitematic/issues/236

@mchiang0610 Hi, I has the same problem, version 0.5.27 from official page.
Btw, I had this issue when first installed Kitematic then I deleted the VM and restarted both VirtualBox & Kinematic, after everything was good. Now I started it again and got this problem.


Split one edit page into multiple pages

I have an edit page including multiple fields
I want split the edit page into multiple pages
First page edit first two fields, and keep other fields as read only
2nd page edit other  two fields, and keep other fields as read only
etc
And create tabs so that user can switch among them.
Any suggestion?

Nice Idea, interested in such case +1 I think this is not possible with all features flask-admin does.


Migrating from glide to go module

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


ZoneAwarePromise.all does not work properly with generators

We found this bug from a report of our use of Zone.js in the Application Insights Node.js SDK causing generator functions to not get called: https://github.com/Microsoft/ApplicationInsights-node.js/issues/267
Native promises in Node.js support taking the result of a generator function as an argument to Promise.all, and wait for all yielded promises to complete. For example:
var generator = function*() {
    yield Promise.resolve('1');
    yield Promise.resolve('2');
    yield Promise.resolve('3');
    return;
};

Promise.all(generator()).then(val=>{
    console.log(val);
})

will print out [ '1', '2', '3' ]. This breaks when including zone into the project.
The code for the ZoneAwarePromise.all method correctly uses a for-of loop to iterate its value (see https://github.com/angular/zone.js/blob/a66595af18d4c42584401dd2df387b02cb01d8d9/lib/common/promise.ts#L273)
However, the compiled source, for zone-node at least, converts this into a standard for loop iterating an index against value.length (see https://github.com/angular/zone.js/blob/b9c0d9c09776bc253f3156ea511c9a1a5c952c31/dist/zone-node.js#L893). This unfortunately doesn't work for generators, as they are iterable but don't have a defined length in advance.
The end result is executing the code sample above with zone.js included is getting the following printed out: []

@OsvaldoRosado , thank you for posting the issue. I will check it.

Thanks!


sslVerify error when running TS v2

An ssl certification error is causing Total Segmentator to crash during the running of the script. The error log suggests that the script is trying to communicate with host="objects.githubusercontent.com" which is blocked by the IT department at our hospital. Interestingly, this error did not appear when running v1, so I'm wondering if there's something in the new update that requires the script to speak to github upon each execution?

v1 was downloading the weights from zenodo which was slow. v2 is now downloading the weights from github. Not sure why this is blocked by your hospital IT.

Thanks @wasserth. Could I ask why the weights are being redownloaded on each script execution? I'm no expert on the nnU-Net algorithm but I would have assumed that this information would be downloaded once during the installation, unless the weights are being tuned periodically?

The weights are only downloaded once. But if your download failed, then it does not find any weights on the next run and tries to download them again.

Okay thanks so I suppose this must be some issue with my installation then, that it wasn't able to download the weights then so it is reattempting the download on the first execution of the script


LoRA merging fails with OOM if model is too large even though models train fine on a single GPU

You can train a large model like Falcon 40B on a single GPU if you use low-precision and quantization. However, it is not possible to merge the weights with the base model because it will cause OOM issues.
So, in a sense, training large models with LoRA is currently useless because you can't merge the weights and hence not use the models in eval & inference. I think I added a --quantize setting in the original merge_lora.py script as a workaround but now notice that it is gone.
Is there a plan to bring it back? Or, if not, what would be another suggested workaround for merging?

Adding quantization support to merge_lora makes sense. But https://github.com/Lightning-AI/lit-gpt/issues/513 will need to be resolved first


Importer: skeleton id management

Currently, skeleton is added as root node, but seems it should not.
Have to read carefully the specification, and check what is done in samples / Setchfab models / polly project

Remove setting the new bone for now in d7f61b60dfc7a615109bc5f2f0308e5c6f75ced4
Seems it is OK in all samples and sketchfab checked


Add yaml files required to deploy on dsaas

Let me point that I changed the visible name of this new service (in pods, deployment config, service name, ...) from fabric8-tenant-che-migration to fabric8-tenant-che-maintenance.
A migration is a sort of maintenance action on the user Che tenant, but there can be other sort of maintenance action added in this service. For example we already discussed that this service might be useful to do some other type of maintenance actions such as cleaning the workspace files on tenant reset.


Support for ESP32-S3.

Thanks for the library so far.
I'm having issues with support for the ESP32-S3 processor.
Will support for the latest version of the IDF and this processor be added?

Yes, I will soon.

Fixed by https://github.com/hideakitai/ESP32SPISlave/pull/21

Thanks a lot!!