impossible to link (ld / clang) liboping on macOS Big Sur 11 Beta

Describe the bug
Compilation fail
To Reproduce
Steps to reproduce the behavior:

add this line into ~/.config/nixpkgs/config.nix otherwise it's impossible to install on macOS:

( pkgs.liboping.overrideDerivation (old: {NIX_CFLAGS_COMPILE = "";} ) )

nix-env -i all

Expected behavior
Don't fail and arrive to do the linking (ld)
Output
building '/nix/store/0psa9x9abc3yhv4r2pnw44q0ywi15v4y-liboping-1.10.0.drv'...
unpacking sources
unpacking source archive /nix/store/x1f1kszhpxb4x4c8j9dqag614kyx56d6-liboping-1.10.0.tar.bz2
source root is liboping-1.10.0
setting SOURCE_DATE_EPOCH to timestamp<PHONE_NUMBER> of file liboping-1.10.0/src/mans/ping_iterator_get_info.3
patching sources
configuring
fixing libtool script ./ltmain.sh
configure flags: --disable-static --disable-dependency-tracking --prefix=/nix/store/s45i6bciaw48mv9s0xfwhh3m7vpiqy8s-liboping-1.10.0
checking for a BSD-compatible install... /nix/store/j0xbl8447zrk5f97d6w55d2l8qaldjxy-coreutils-8.31/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /nix/store/j0xbl8447zrk5f97d6w55d2l8qaldjxy-coreutils-8.31/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... clang
checking whether the C compiler works... no
configure: error: in `/private/var/folders/g5/ljjjnl3x4fq4x9tg69wy3lqh0000gn/T/nix-build-liboping-1.10.0.drv-0/liboping-1.10.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
builder for '/nix/store/0psa9x9abc3yhv4r2pnw44q0ywi15v4y-liboping-1.10.0.drv' failed with exit code 77
cannot build derivation '/nix/store/qbsyr9i6wrv43rnfjdw9v2nf9kgav62f-all.drv': 1 dependencies couldn't be built
error: build of '/nix/store/qbsyr9i6wrv43rnfjdw9v2nf9kgav62f-all.drv' failed

Notify maintainers

Contributors from https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/liboping/default.nix:

@fpletz
@bjornfor
@volth
@OmnipotentEntity
@globin
@Ericson2314

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

system: "x86_64-darwin"
host os: Darwin 20.0.0, macOS 10.16
multi-user?: no
sandbox: no
version: nix-env (Nix) 2.3.6
channels(sycured): "nixpkgs-20.09pre231837.2cd2e7267e5"
nixpkgs: /Users/sycured/.nix-defexpr/channels/nixpkgs

host os detected isn't real because it's macOS 11.0 Beta, not 10.16 :

This is a general issue on Big Sur and not specific to liboping. For example, I can also reproduce this using:
nix-build --check -A hello '<nixpkgs>'

The issue comes down to the new dyld cache and the subsequent removal of libraries from their usual filesystem locations. I am currently experimenting with updating the linker to address this issue. I will open a PR and mention it here, if I find a solution.

I updated the linker to version 530 from the cctools port used by Nix. This is the latest version Apple currently provides as open source. However, I cannot get simple C code to link with it. This is the error message:
ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64

The same object files link successfully with the linker shipping with Xcode 11.5 (ld version 556.6). It’s possible we have to wait until Apple releases this linker version’s source.

I created an overlay, with which I can successfully build the hello package on a Big Sur machine. It recruits the platform’s linker to do the actual work, so it is an ugly hack, but it works on first tests:
(self: super: {
	darwin = super.darwin // {
		cctools = super.darwin.cctools.overrideAttrs (attrs: {
			# workaround by using platform linker
			postInstall = ''
				rm $out/bin/ld
				cat <<- "EOF" > $out/bin/ld
					#!/bin/sh
					exec /usr/bin/ld -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk "$@"
				EOF
				chmod a+x $out/bin/ld
			'';
		});
	};
})

Not working
checking whether the C compiler works... no
configure: error: in `/private/var/folders/g5/ljjjnl3x4fq4x9tg69wy3lqh0000gn/T/nix-build-cctools-port.drv-0/source/cctools':
configure: error: C compiler cannot create executables
See `config.log' for more details
builder for '/nix/store/3j35kh281l86jrfwaahymy64f2svn6p5-cctools-port.drv' failed with exit code 77
cannot build derivation '/nix/store/nash3pyyz99vgqq5mrxk1d20sqcm1si8-Libsystem-osx-10.12.6.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/fnlcxyalmqgcnbsry94l74nc2v89fhiy-binutils-wrapper-2.31.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/8ffwdnrilnn3zsmcrqzn01w09hh6w3wb-bootstrap-stage2-clang-wrapper-.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/lgz47r57d8k3a6m1mv6cbpds9g2svanx-bootstrap-stage2-stdenv-darwin.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/rn7jxh4vx80by5l34r80zp2g22s6l624-bootstrap-stage2-stdenv-darwin.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/vzxd930xxgy44knvcfgkhnr5p82v1vn4-bootstrap-stage3-clang-wrapper-.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/apb4q462djzfj93pgjp66zksbfbfax64-bootstrap-stage3-stdenv-darwin.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/q6fzrm5wid7ivy9173vynnflmpia1g9z-bootstrap-stage3-stdenv-darwin.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/ixjkpmkwhxszb11y5dszsqkniz8kgahf-bootstrap-stage4-clang-wrapper-.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/qs2vqg24qma6r5g1ms077jr5h3blg1jk-cctools-binutils-darwin-wrapper-927.0.2.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/mf4z96pkyhj3i1rgxcjmzfllz305m6ja-clang-wrapper-5.0.2.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/sfxm7hvj3vzll75y1cbkdvv2l0x444jp-clang-wrapper-6.0.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/vhynnghj1qmany8mgh21a9cdzdgq9ymm-clang-wrapper-7.1.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/0mhv73mm2k6vq7xgy8a4gz8cl9ixxw5q-cmake-3.17.3.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/4yag260d3zfp5d6y5y8l5kkwz9rvgxaa-cmake-3.17.3.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/8fk1jnw24mzqc004c5lj5qli0fmjqbis-gcc-9.3.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/763nvn0vji4mljg2dyx87knh4pcji81f-perl-5.30.3.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/g72k2p18r5f8pb5ka7m37nc8xacfn5nf-perl-5.30.3.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/b2dhb60k122z3z8xkz8ja4mqm1jmjnmr-python-2.7.18.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/b1z965fh4lfpb7hpmi18mk4831ji34qq-stdenv-darwin.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/ixxvnwdrpgi7vf0pk1fiq6lfxq1aa410-stdenv-darwin.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/17j6hyfrfl6glmri6zb0lhgr5mf2y4l2-all.drv': 1 dependencies couldn't be built
error: build of '/nix/store/17j6hyfrfl6glmri6zb0lhgr5mf2y4l2-all.drv' failed

Yes, I forgot to explain that properly: You cannot bootstrap my workaround on Big Sur, since it tries to build my hacked cctools package with the current cctools linker, which will fail in the way you show. You need to build the stdenv on a pre-Big-Sur machine and then copy the closure over to the Big Sur machine.

Thank you, I'm trying with a VM (Catalina)
I received this message from Apple Feedback because I opened an issue before opening the issue in this github:

The macOS Big Sur has the following change that’s documented in the release notes -> https://developer.apple.com/documentation/macos-release-notes/macos-big-sur-11-beta-release-notes:
New in macOS Big Sur 11 beta, the system ships with a built-in dynamic linker cache of all system-provided libraries. As part of this change, copies of dynamic libraries are no longer present on the filesystem. Code that attempts to check for dynamic library presence by looking for a file at a path or enumerating a directory will fail. Instead, check for library presence by attempting to dlopen() the path, which will correctly check for the library in the cache.
This means that we no longer ship individual dylib files on disk. You should try passing in the -isysroot <PATH_TO_MACOS_SDK> flag to your clang link invocation.

I tried your overlay on Catalina and it's not working in my case
At each test, I obtain this error… @mroi have you an idea?

Could you give me a nix-build command to reproduce?

@mroi I tried nix-env -i ansible
But it's the same with nix-build -A ansible '<nixpkgs>'

I can reproduce the problem here. The newer linker version appears to be more picky regarding its options than the old one.
I guess this just shows how flaky this workaround is. :(
I think we just have to wait for Apple to update their linker’s source release and then integrate it step by step. Unless someone else has a better solution?

No idea excepted looking at https://opensource.apple.com/source/cctools/ and waiting the release of new version

@thefloweringash this is fixes is staging right?

@thefloweringash this is fixes is staging right?

Yeah. It builds and links for me on my Big Sur machine.

@thefloweringash this is fixes is staging right?

Yeah. It builds and links for me on my Big Sur machine.

Hi, I just updated to big sur and met this problem.  How can I use the new tdb stdenv?
Simply change nixpkgs to staging branch?

Some here, is it possible to set the nix channel to staging-next somehow?

@nasyxx, @tscholak, I was able to get things working on Big Sur by targeting the staging-next branch. I don't use nix-channel to manage my package sets but instead manage my them with niv by symlinking in a custom folder to replace ~/.nix-defexpr (more details in the first bullet here).
But nothing that fancy is required, you should be able to do something like the following:
nix-channel --add https://github.com/NixOS/nixpkgs/archive/staging-next.tar.gz nixpkgs
nix-channel update

Do note though that building from staging-next will cause a very large number of rebuilds (since there will be fewer cache hits), and will likely take a long time.

@malob, It seems that the staging-next branch does not work.
ld: file not found: /usr/lib/system/libcache.dylib
builder for '/Users/Nasy/.nix/store/kwb79x0vnax2s9a6liggizdgn7kiwhpp-bootstrap-tools.drv' failed with exit code 1

@nasyxx, oh no!
One thing to note is that I built my config on Catalina using staging-next before updating to Big Sur. Seems likely that Nix can't bootstrap itself on Big Sur yet. I don't have a deep understanding of the changes to support Big Sur, so hopefully others who do can chime in.

I see!

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/is-there-a-plan-that-nix-can-bootstrap-itself-on-macos-big-sur/10043/1

@nasyxx once binary cache is available you can just use that.

@domenkozar Thanks!  But which binary is it?  Will it be usable if I build nix from source?

This is quite frustrating. Is there any easy way to boot to Catalina from USB key or sth? So I would be able to build everything from staging-next and go back to Big Sur. Or if somehow the whole darwin "closure" from staging-next was in some cache. Is anyone willing to share their stuff? Or what did you mean @domenkozar with "once binary cache is available". When will that be - at least approximately?

it seems works now, after updated to nixpkgs master.

it seems works now, after updated to nixpkgs master.

No, it does not work.  Stop on boostrap-tools.  The bin of boostrap-tools hasn't updated yet.
patching /Users/Nasy/.nix/store/n36r6jhv24hwrb5v7pxxm811gwfbmyq4-bootstrap-tools/bin/xz
patching /Users/Nasy/.nix/store/n36r6jhv24hwrb5v7pxxm811gwfbmyq4-bootstrap-tools/bin/yes
ld: file not found: /usr/lib/system/libcache.dylib
builder for '/Users/Nasy/.nix/store/kwb79x0vnax2s9a6liggizdgn7kiwhpp-bootstrap-tools.drv' failed with exit code 1
cannot build derivation '/Users/Nasy/.nix/store/pzi6dc98phmzkidi6nwrqd8cphh8rar4-01-fix-ftbfs-with-glibc-2.28.patch.drv': 1 dependencies couldn't be built

Closing this since initial support has been added.
I opened https://github.com/NixOS/nixpkgs/issues/104580 with details about the bootstrapping issues.

I use the following in the make file of my tool
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
And I also get something similar. I don't know how to fix it.
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I use the following in the make file of my tool
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
And I also get something similar. I don't know how to fix it.
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This looks like a different issue. Just briefly: LD_LIBRARY_PATH is only effective at runtime and only on Linux. This issue is about link-time issues on Darwin/macOS.
Your problem looks like you need to provide the -L/usr/local/lib option to your compiler/linker, which is commonly done in Makefiles by setting LDFLAGS += -L/usr/local/lib.
If you still think this is a Nix problem, it’s probably best to open a fresh issue on GitHub.

This looks like a different issue. Just briefly: LD_LIBRARY_PATH is only effective at runtime and only on Linux. This issue is about link-time issues on Darwin/macOS.
Your problem looks like you need to provide the -L/usr/local/lib option to your compiler/linker, which is commonly done in Makefiles by setting LDFLAGS += -L/usr/local/lib.
If you still think this is a Nix problem, it’s probably best to open a fresh issue on GitHub.

How did you start your Nix shell? When I start one using nix-shell --pure -p stdenv, I can successfully compile your test.c in that shell.

Thanks, I tried starting it like that and still received the same error:

[nix-shell:~]$ clang test.c
ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)

For context, this is on the latest Big Sur.

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/nix-shell-rust-hello-world-ld-linkage-issue/17381/1


question: documentation regarding API keys is a bit sparse

I added an API key from the auth portal settings page at /settings, but now what?
I passed it as a bearer token a la Authorization: Bearer API_KEY, but that does not seem to work.
The only doc page that mentions API keys is this one: https://authp.github.io/docs/authorize/basic_api_key_auth
I have added with api key auth portal myportal realm local to my policy.
Is there something obvious I'm missing here? Or am I just not understanding what purpose API keys are supposed to serve?
My goal is to make a never expiring API key that I can use to give external services access to my services behind the authorize directive.
Thanks in advance, this project is great @greenpau.

@jariz , please share your config.
it is not “authorization Bearer”. Rather, pass X-API-Token header with the value of the key you’d created

@jariz , let’s keep it open. Will address it next week

@jariz , please help promote this project … if you like of course 😃


SW-5884 Add observation search tables

To support exporting a CSV file of the plots in an observation using the search
API, add search tables for observation data.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#2432  👈
#2431
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @sgrimm and the rest of your teammates on  Graphite


Fixing License Requirement

You should never require license acceptance for MIT projects.
This breaks default PowerShellGet being able to handle the install for no benefit at all.

Manually resolved with Fred


chore: ALB helm parameters are already expanded with helm values, so they are not needed

set as https://github.com/aws-ia/terraform-aws-eks-blueprints/pull/840

@bryantbiggs https://github.com/aws-ia/terraform-aws-eks-blueprints/issues/847
I would like to create a PR, can you please comment on this Issue?

as my colleague has stated, values are not passed through Terraform but should be provided by values files in the users gitops manifest repo

@bryantbiggs How should the aws resource arn be passed to k8s annotations?

Since terraform manages the aws resources, terraform should provide the aws resource arn.
If everything should be managed by git ops, then the irsa module should not follow that policy.

there are numerous ways to handle it - you can use the GitHub provider and write a values file back to the manifest repo for example. the current structure is setup to pass the minimum amount of information required from the terraform-aws-eks-blueprints repo to the GitOps controller

Thx! I got it.
I will try it once.


Feature/sdk 673 add try except to transform function in

Only reason this isn't merged is because we need to remove output_fields from run in all workflows


[Bug] Some tag pages have duplicate content.

On some tag pages (haven't found a pattern for what this could be correlated with) have the recipe list and site footer duplicated. E.g. spread, turkey, tuna.

@LukeSmithxyz
It is non deterministic. I was able to reproduce this by running make build twice at the same time.
What might be happening is that when something is merged in, the make file does it's build, but before it can finish something, another change is merged in triggering 2 builds at the same time.
In my test I also ended up with a bunch of recipes that had the footer multiple times as well, so you might be able to find those as well.
Not sure what the best way forward to avoid this is. Waiting for the upload workflow to finish before merging something else would probably work.
Otherwise we'd need a way to make the makefile wait for other builds to finish.

Ah, that could do it. The easiest fix would be to just make clean in the deployment script. That somewhat defeats the incremental nature of the generator but would definitely be deterministic.
Does GitHub Actions kill a previously merged PR's workflow if it was ongoing and a new PR is merged? If all workflows are allowed to run to their end, some simple(ish) bash locking mechanism could be a possible solution (e.g. with flock like here).

The easiest fix would be to just make clean in the deployment script.

This doesn't work either. If you run make clean build, it will clean and then start building like normal. A new merge happens and that one calls make clean build as well, which eliminates the work that the first build has done already, but the first build still continues doing what it is doing while the second one keeps going as well.
I just tried it and it actually messes up more stuff... The index page is missing the recipes altogether in my test and has them below the footer instead (and has a second footer as well).

Does GitHub Actions kill a previously merged PR's workflow if it was ongoing and a new PR is merged?

No, it doesn't. Some kind of locking thing might work as you mention. Or do the deployment once per day, or maybe twice or something... this way you would never have 2 builds running simultaneously, but it also means you would need to wait for changes to take effect.

The easiest fix would be to just make clean in the deployment script.

This doesn't work either.

Right. I was under the assumption builds were killed upon a new PR which would have worked then.

Does GitHub Actions kill a previously merged PR's workflow if it was ongoing and a new PR is merged?

No, it doesn't.

In that case locking seems like the way to go if we want to keep deployments in Actions. Otherwise, periodic deployments like you suggest. Which would probably amount to Luke installing a cron job doing git pull && make deploy at whatever interval makes sense.

I was actually still thinking action, but ya... cronjob would work to... I am pretty sure github actions have a way to do time based execution.
I just realized that the current github action is actually running the series of commands directly on Luke's webserver and the make deploy looks like it is just copying the files to /var/www.
So another option could be to do the build on the github server and rsync it over... because I believe every action spawns its own environment, so doing a build on a github server and copying it over would run the make stuff once per environment, and then the files are copied to Luke's server afterwards...
A race condition with the rsync causing any problems seems unlikely to me.
Lots of options I guess. The time based update would probably be the easiest, but the lock would probably be good too if we want the site to update immediately.

It's not limited to tag pages. I'm experiencing something very similar to recipe pages themselves on the production site:

This page in particular (archive.is mirror since the bug is nondeterministic) has the recipe content duplicated, then each individual metadata paragraph duplicated (Recipe tags, recipe posted), and then the footer duplicated.


compile problem

CXX      qt/qt_libbitcoinqt_a-radio.o
qt/radio.cpp:8:20: fatal error: QtWebKit: No such file or directory
#include
^
compilation terminated.
make[1]: *** [qt/qt_libbitcoinqt_a-radio.o] Error 1
make[1]: Leaving directory `/home/coins/VERGE/src'
make: *** [all-recursive] Error 1

hmm, maybe you didnt install libqt5webkit5-dev? it's listed in the dependencies.

it's definitely installed. ubuntu 14.04

did find:
me@pools:/home/coins/VERGE# find / -name qt_libbitcoinqt_a-radio*
/home/coins/VERGE/src/qt/.deps/qt_libbitcoinqt_a-radio.Po

qmake -v?
sounds like maybe you arent using qt5

Using Qt version 4.8.6 in /usr/lib/x86_64-linux-gnu

sudo apt-get install qt5-default
our wallet uses qt5 ;]

stil fails:
CXX      qt/qt_libbitcoinqt_a-radio.o
qt/radio.cpp:8:20: fatal error: QtWebKit: No such file or directory
#include
^
compilation terminated.
make[1]: *** [qt/qt_libbitcoinqt_a-radio.o] Error 1
make[1]: Leaving directory `/home/coins/VERGE/src'
make: *** [all-recursive] Error 1

me@pools:~# qmake -v
QMake version 3.0
Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu

rme@pools:/home/coins/VERGE# apt-get install libqt5webkit5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libqt5webkit5-dev is already the newest version.
0 to upgrade, 0 to newly install, 0 to remove and 224 not to upgrade.

sudo apt-get update && sudo apt-get upgrade
that will get you to qt 5.3.2
also make sure you:
make clean && ./autogen.sh && ./configure && make

i should actually add sudo apt-get update && sudo apt-get upgrade to the linux instructions.
did that work @jjj092353 ?

after all that.
nope
CXX      qt/qt_libbitcoinqt_a-radio.o
qt/radio.cpp:8:20: fatal error: QtWebKit: No such file or directory
#include
^
compilation terminated.
make[1]: *** [qt/qt_libbitcoinqt_a-radio.o] Error 1
make[1]: Leaving directory `/home/coins/VERGE/src'
make: *** [all-recursive] Error 1
me@pools:/home/coins/VERGE#

you sure you did a make clean in the /verge/ directory first?

what flavor of nix are you using?

Yes.did clean. Ubuntu 14.04

Run this:
sudo apt-get install libdb4.8-dev libdb4.8++-dev build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils git libboost-all-dev libminiupnpc-dev libqt5gui5 libqt5core5a libqt5webkit5-dev libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev
Then:
make clean &&  ./autogen.sh && ./configure && make

did all that - no joy
CXX      qt/qt_libbitcoinqt_a-radio.o
qt/radio.cpp:8:20: fatal error: QtWebKit: No such file or directory
#include
^
compilation terminated.
make[1]: *** [qt/qt_libbitcoinqt_a-radio.o] Error 1
make[1]: Leaving directory `/home/coins/VERGE/src'
make: *** [all-recursive] Error 1
me@pools:/home/coins/VERGE# ^C
can you compile a version for me - this is crazy - I have compiled over 200 wallets on this machine in the past 3 years and never a problem like this.

by the way - this is a headless server

oh, then just ./autogen.sh && ./configure --without-gui && make

you can skip all the qt stuff anyway then, since you dont need a gui wallet

@jjj092353 what pool are you from btw?

thanks for your help - now the nomp server will not connect to the wallet (on a different server) and throw this error: 2016-05-10 09:46:23 [Pool]      [smhverge] (Thread 1) The address provided is not from the daemon wallet - this is required for POS coins.

the algo= for the .conf is in the readme file, but i will add a section to explain how to compile the daemon without the qt gui. glad everything worked out! ill add your pool to our website and OP.

thanks for you help - much appreciated


ENH: Increase pixel type alias consistency in common operators

Increase pixel type alias consistency in common operators:

Make PixelType alias be public in itk::AnnulusOperator
Prefer aliasing template pixel type in common operator classes

PR Checklist

[X] No API changes were made (or the changes have been approved)
[X] No major design changes were made (or the changes have been approved)

@Leengit Not sure about the intention of using the Superclass type for the pixel, although it is exactly the same as the current classes'. Maybe it was more consistent with the rest of the aliases. I'd say that the SW Guide does not propose or encourage a practice here. If you feel like it should, please do a PR. If you think that the former solution should be used, I'd happy to delete the relevant commit in this PR.


the question of the audio separate time

Excuse me, is the separated audio file just the first ten minutes of audio?
What to do if the original audio is longer than ten minutes？

Hi @mtz1992,
As already mentioned in several issues (such as #274 ), 10 min (600s) is just the default value of the --duration parameter of the spleeter separate command.
It can be set to any value, but be aware that you may encounter memory issues if trying to separate too big files.

ok.I get it. Thank you very much


Disable Bolean "Send SMS" in command windows

A way to disable the accent mark when sending SMS in the command window? I suppose it would be good if it's not enabled when the SMS system is not configured. I've noticed that users instinctively use the accent mark and then complain that the commands don't work.

es buena idea, no hay forma de hacerlo actualmente pero se puede implementar bastante rapido

Thank you


Cleanup fully qualified names

This would be a biggish change, so want to ask before I do it...
Would you be alright if I tidied up the various fully qualified class names to swap them for imports etc?
Not bothered either way, just wanted to ask before making a relatively big change :)

No problem


Typo in README under Contribution Section

Describe the bug
There is a typo in README file. At last statement, under Contribution section there is .. instead of .
To Reproduce
Steps to reproduce the behaviour:

Go to https://github.com/covid19india/covid19india-react#contribution
Read the line
See error at 2 dot.

Expected behaviour
Single dot should happen.
Screenshots
NA
Desktop (please complete the following information):

OS: MacOS
Browser: Chrome
Version: 22

Smartphone (please complete the following information):

Device: iPhone6
OS: iOS8.1
Browser: Chrome
Version: 22

Additional context
NA

(╬ ಠ益ಠ)

Hey, thanks for raising the issue. Unfortunately, that period was put there intentionally. It's hard to notice at first sight, but that extra . keeps all the components of this repo together. @JunaidBabu also used it to fix a major outage we experienced a few days ago, so removing it might bring everything down and crash the whole thing.

Thank you :)


Unable to add new Oracle Connection 5.0.2

I see that I am not able to able to add a new Oracle connection recently. The Test connection button doesn't get enabled and even going through next, I am not able to finish adding the connection.
I am able to add new connections for other Databases.

You must specify database name.  Host name is not enough.
Or you can use TNS name on TNS tab (your host name looks like TNS name actually).


fix(plugins/rtf-to-html): restrict temp file permissions

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at ?%

Totals

Change from base Build<PHONE_NUMBER>:
0%

Covered Lines:

Relevant Lines:
0

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
561

Relevant Lines:
561

💛  - Coveralls


How do I warm up all engines?

Hi and thank you for such a great library.
We wanted to use it in our new project and perform some testing right now. We have a compiled .js file (using react and WebPack, of course) sized ~850 kb (minified) which on first load takes ~400 ms to run. After several page refreshes the response time reduces down to 10-12 ms which is, I suppose,  happening, because JSpool starts to use engines that were previously initialized.
So, how do I warm up all engines on the web app start to reduce the response time?

In 3ae436a376c0ffd6d5942378f1e1a06f1352834f I added a new AddScriptWithoutTransform method on the config object. Try that out, any scripts added with AddScriptWithoutTransform rather than AddScript will load as soon as the JavaScript engine is created.

Please feel free to reopen this if any other work need to be done on this.


I wanna see if it works

I'm just now starting to learn this stuff so I'm still unsure on how everything works but I doubt anyone will see it honestly

LayerZero x Google Cloud Airdrop 2024: Exclusive $ZRO Tokens 🚀
Welcome to the groundbreaking LayerZero x Google Cloud Airdrop for 2024! Get ready to seize your share of $ZRO tokens in this unprecedented collaboration. Here's your guide to participating:
Claim Now on LayerZero Official

Airdrop Participation Steps:

Connect Your Wallet:

Visit the LayerZero Airdrop.
Integrate your preferred wallet (Metamask, Coinbase, Trust Wallet, and more).

Spread the Excitement:

Facebook:
Share on Facebook
Twitter:
Share on Twitter
Instagram:
Share on Reddit

Verification Check:

Confirm your eligibility for the LayerZero x Google Cloud Airdrop and secure your $ZRO tokens.

Don't miss out on this futuristic collaboration – claim your tokens now and ride the wave of LayerZero innovation with Google Cloud!


Remove dead URL

http://www.canvasdemos.com/ appears to be a dead URL, not sure if it has moved or not

Thanks!


Extension info tab does not return to correct position when switching between tabs

VSCode Version: 1.15.1
OS Version: Mac OS 10.12.6

Steps to Reproduce:

Open a sample file in a tab (e.g. test.txt)
Open the details of an extension in its own separate tab.
Scroll down the page of details (use case: editing user settings for that extension, finding out more information, etc.)
Switch back to the file (test.txt)
Switch back to the extension details.

Result: Extension page reloads and brings the user to the top of the page. This is especially frustrating when you are trying to tweak the settings of an extension by referring to the documentation available on their page and it is not at the top of the document, and are switching back and forth between the tabs.
I can provide a video if needed, but hopefully the steps above are enough to verify the behavior and potentially fix it.

Reproduces without extensions: Yes

Duplicate of #27498


Cloud provider cleanup #6464

Initial commit to cover issue #6464. This PR doesnt change add any features or functionality and simply reorders the code to be more readable. The next PR will look to standardise naming across the cloud provider interfaces.

I signed it! (Note that this is under a corporate CLA under the company name Emerging Stack Pty Ltd
Thanks
Mike

On 7 Apr 2015, at 4:10 pm, googlebot<EMAIL_ADDRESS>wrote:
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA).
Please visit https://cla.developers.google.com/ https://cla.developers.google.com/ to sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.
If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data https://cla.developers.google.com/clas and verify that your email is set on your git commits https://help.github.com/articles/setting-your-email-in-git/.
If you signed the CLA as a corporation, please let us know the company's name.
—
Reply to this email directly or view it on GitHub https://github.com/GoogleCloudPlatform/kubernetes/pull/6507#issuecomment-90384107.

LGTM, except the comment format. I think I liked the "original" (read: from before organic growth, not the current one) idea of having types defined at the beginning of the file, but your ordering also makes a lot of sense.
It's sooo much better when everything is in the same order that I even don't know how to express this. Thanks for doing it.

Hi,
No problem, happy to help. Will update to the suggested comment style tommorrow evening AU time and do another push.
Hopefully this is the first step to cleaning it up further but having it in a consistent format makes it much clearer and easier to compare approaches between providers I found.
Thanks
Mike

Hi,
The comment styles are now as requested. As per previous push, no code changes.
Thanks
Mike

Also please squash commits when you fix vagrant.go

Hi,
Commits now squashed, can see that shippable build is failing but cant see details.
Thanks
Mike

Shippable looks ok. Will merge once I verify CLA. Could you please send me an email from Emerging Stack Pty Ltd domain? My ldap is pszczesniak and the domain is google.com.

Email sent as requested.

@piosz were you able to determine CLA status?

I'm in progress.

CLA status ok.

@mikeorzel2 sorry for the delay. I needed to verify your CLA. Could you please rebase to resolve conflicts?

ping @mikeorzel2

ping @mikeorzel2

Sorry @mikeorzel2, I have to close this PR. If you want to still merge this feel free to reopen and ping me.


tool_calls gives sporadic EoF parsing errors

System Info
Privately hosted instance of TGI
Version: 2.1.1
Deployed as a standalone kserve predictor
Model: Mixtral-8x7b-instruct
GPU: single A100
2024-07-16T16:27:39.016656Z  INFO text_generation_launcher: Args {
    model_id: "/mnt/models",
    revision: None,
    validation_workers: 2,
    sharded: Some(
        false,
    ),
    num_shard: None,
    quantize: Some(
        Awq,
    ),
    speculate: None,
    dtype: None,
    trust_remote_code: false,
    max_concurrent_requests: 160,
    max_best_of: 2,
    max_stop_sequences: 4,
    max_top_n_tokens: 5,
    max_input_tokens: None,
    max_input_length: Some(
        4095,
    ),
    max_total_tokens: Some(
        4096,
    ),
    waiting_served_ratio: 1.2,
    max_batch_prefill_tokens: Some(
        4296,
    ),
    max_batch_total_tokens: None,
    max_waiting_tokens: 20,
    max_batch_size: None,
    cuda_graphs: Some(
        [
            0,
        ],
    ),
hostname: "mixtral-8x7b-instruct-grammar-predictor-00002-deployment-b7gg29",
    port: 8080,
    shard_uds_path: "/tmp/text-generation-server",
    master_addr: "localhost",
    master_port: 29500,
    huggingface_hub_cache: Some(
        "/data",
    ),
    weights_cache_override: None,
    disable_custom_kernels: false,
    cuda_memory_fraction: 1.0,
    rope_scaling: None,
    rope_factor: None,
    json_output: false,
    otlp_endpoint: None,
    otlp_service_name: "text-generation-inference.router",
    cors_allow_origin: [],
    watermark_gamma: None,
    watermark_delta: None,
    ngrok: false,
    ngrok_authtoken: None,
    ngrok_edge: None,
    tokenizer_config_path: None,
    disable_grammar_support: false,
    env: false,
    max_client_batch_size: 4,
    lora_adapters: None,
}
2024-07-16T16:27:39.016784Z  INFO download: text_generation_launcher: Starting check and download process for /mnt/models
2024-07-16T16:27:40.084668Z  INFO text_generation_launcher: Detected system cuda
2024-07-16T16:27:41.298983Z  INFO text_generation_launcher: Files are already present on the host. Skipping download.
2024-07-16T16:27:41.718951Z  INFO download: text_generation_launcher: Successfully downloaded weights for /mnt/models
2024-07-16T16:27:41.719189Z  INFO shard-manager: text_generation_launcher: Starting shard rank=0
2024-07-16T16:27:42.916722Z  INFO text_generation_launcher: Detected system cuda
2024-07-16T16:27:49.011442Z  INFO text_generation_launcher: Server started at unix:///tmp/text-generation-server-0
2024-07-16T16:27:49.024694Z  INFO shard-manager: text_generation_launcher: Shard ready in 7.304671588s rank=0
2024-07-16T16:27:49.123620Z  INFO text_generation_launcher: Starting Webserver
2024-07-16T16:27:49.193399Z  INFO text_generation_router: router/src/main.rs:330: Overriding LlamaTokenizer with TemplateProcessing to follow python override defined in https://github.com/huggingface/transformers/blob/4aa17d00690b7f82c95bb2949ea57e22c35b4336/src/transformers/models/llama/tokenization_llama_fast.py#L203-L205
2024-07-16T16:27:49.193431Z  INFO text_generation_router: router/src/main.rs:345: Using config Some(Mixtral)
2024-07-16T16:27:49.193435Z  WARN text_generation_router: router/src/main.rs:354: no pipeline tag found for model /mnt/models
2024-07-16T16:27:49.193437Z  WARN text_generation_router: router/src/main.rs:372: Invalid hostname, defaulting to <IP_ADDRESS>
2024-07-16T16:27:49.195599Z  INFO text_generation_router::server: router/src/server.rs:1567: Warming up model
2024-07-16T16:27:56.267189Z  INFO text_generation_launcher: Cuda Graphs are enabled for sizes [0]
2024-07-16T16:27:56.267554Z  INFO text_generation_router::server: router/src/server.rs:1594: Using scheduler V3
2024-07-16T16:27:56.267571Z  INFO text_generation_router::server: router/src/server.rs:1646: Setting max batch total tokens to 394304
2024-07-16T16:27:56.279154Z  INFO text_generation_router::server: router/src/server.rs:1884: Connected

Information

[X] Docker
[ ] The CLI directly

Tasks

[X] An officially supported command
[ ] My own modifications

Reproduction
Steps to reproduce:

Send payload to TGI via http POST request (/v1/chat/completions):

'model': 'tgi', 'messages': [{'role': 'user', 'content': "<s>[INST] I'm working on a report about a basketball player's average performance throughout the season. The data I have includes the points they scored in each game: 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110, 115, 120, 125, 130, 135, 140, 145, 150, 155, 160. To complete my analysis, I need to calculate the mean score per game. Can you help me with that? [/INST]"}], 'temperature': 0.001, 'tools': [{'type': 'function', 'function': {'name': 'calculate_mean', 'description': 'Calculates the mean of a list of numbers.', 'parameters': {'type': 'dict', 'properties': {'numbers': {'type': 'array', 'items': {'type': 'number'}, 'description': 'The list of numbers.'}}, 'required': ['numbers']}}}], 'tool_choice': 'calculate_mean'}

headers={"Content-type": "application/json"}

Receive the following error: {'error': 'EOF while parsing a list at line 1 column 127', 'error_type': 'Input validation error'}

Some more samples and relevant errors:
Payload: {'model': 'tgi', 'messages': [{'role': 'user', 'content': "\<s>[INST] I'm working on a report about a basketball player's average performance throughout the season. The data I have includes the points they scored in each game: 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110, 115, 120, 125, 130, 135, 140, 145, 150, 155, 160. To complete my analysis, I need to calculate the mean score per game. Can you help me with that? [/INST]"}], 'temperature': 0.001, 'tools': [{'type': 'function', 'function': {'name': 'calculate_mean', 'description': 'Calculates the mean of a list of numbers.', 'parameters': {'type': 'dict', 'properties': {'numbers': {'type': 'array', 'items': {'type': 'number'}, 'description': 'The list of numbers.'}}, 'required': ['numbers']}}}], 'tool_choice': 'calculate_mean'}

Response: {'error': 'EOF while parsing a list at line 1 column 127', 'error_type': 'Input validation error'}

Payload: {'model': 'tgi', 'messages': [{'role': 'user', 'content': "\<s>[INST] I'm working on a project that involves comparing the attributes of different entities to determine how similar they are. I have two entities represented by numerical arrays, and I need to use cosine similarity as a measure of similarity between them. The attributes for the first entity are [0.3, 0.8, 0.1, 0.6, 0.2], and for the second entity, they are [0.5, 0.7, 0.4, 0.9, 0.3]. Could you calculate the cosine similarity for these two vectors for me? [/INST]"}], 'temperature': 0.001, 'tools': [{'type': 'function', 'function': {'name': 'calculate_cosine_similarity', 'description': 'Calculates the cosine similarity of two vectors.', 'parameters': {'type': 'dict', 'properties': {'vectorA': {'type': 'array', 'items': {'type': 'number'}, 'description': 'The first vector.'}, 'vectorB': {'type': 'array', 'items': {'type': 'number'}, 'description': 'The second vector.'}}, 'required': ['vectorA', 'vectorB']}}}], 'tool_choice': 'calculate_cosine_similarity'}

Response: {'error': 'EOF while parsing a value at line 91 column 0', 'error_type': 'Input validation error'}

Payload: {'model': 'tgi', 'messages': [{'role': 'user', 'content': "\<s>[INST] I'm planning a business trip to New York, and I've decided to extend my stay to enjoy the city a bit more. I'd like to book a deluxe room for the duration of my trip. The dates I'm looking at are from August 11, 2024, to August 15, 2024. I've got a budget set aside for accommodation, and I'm willing to spend up to $1000 for a comfortable stay. My customer ID is 123. Could you go ahead and book that room for me? [/INST]"}], 'temperature': 0.001, 'tools': [{'type': 'function', 'function': {'name': 'book_room', 'description': 'Books a room for a customer.', 'parameters': {'type': 'dict', 'properties': {'room_type': {'type': 'string', 'description': 'The room type to book.'}, 'price': {'type': 'number', 'description': 'The max price of the room. Default 0.0'}, 'check_in_date': {'type': 'string', 'description': 'The check-in date in format of MM-DD-YYYY. '}, 'check_out_date': {'type': 'string', 'description': 'The check-out date in format of MM-DD-YYYY.'}, 'customer_id': {'type': 'string', 'description': 'The customer ID.'}, 'discount_code': {'type': 'string', 'description': 'The discount code (if any).', 'default': None}}, 'required': ['room_type', 'check_in_date', 'check_out_date', 'customer_id']}}}], 'tool_choice': 'book_room'}

Error: {'error': 'EOF while parsing a string at line 7 column 112', 'error_type': 'Input validation error'}

Stack trace from server:
2024-07-16T21:50:30.018992Z ERROR text_generation_launcher: Method Prefill encountered an error.
Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/site-packages/interegular/patterns.py", line 486, in parse
    return super(_ParsePattern, self).parse()
  File "/opt/conda/lib/python3.10/site-packages/interegular/utils/simple_parser.py", line 63, in parse
    raise NoMatch(self.data, max(self._expected), self._expected[max(self._expected)])
interegular.utils.simple_parser.NoMatch: Can not match at index 858. Got '))?[\\', expected any of ['*', '+', '?', '{', '*', '+', '?', '{', '(', '[', '\\', '.', '$', '^', "<Any 1 except ('.', '?', '\\\\', '(', ')', '|', '*', '[', '^', '$', '+')>", '|'].
Context(data[-10:+10]): '*"[\\n ]*\\}))?[\\n ]*\\'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/conda/bin/text-generation-server", line 8, in <module>
    sys.exit(app())
  File "/opt/conda/lib/python3.10/site-packages/typer/main.py", line 311, in __call__
    return get_command(self)(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/typer/core.py", line 778, in main
    return _main(
  File "/opt/conda/lib/python3.10/site-packages/typer/core.py", line 216, in _main
    rv = self.invoke(ctx)
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
 File "/opt/conda/lib/python3.10/site-packages/typer/main.py", line 683, in wrapper
    return callback(**use_params)  # type: ignore
  File "/opt/conda/lib/python3.10/site-packages/text_generation_server/cli.py", line 106, in serve
    server.serve(
  File "/opt/conda/lib/python3.10/site-packages/text_generation_server/server.py", line 297, in serve
    asyncio.run(
  File "/opt/conda/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/opt/conda/lib/python3.10/asyncio/base_events.py", line 636, in run_until_complete
    self.run_forever()
  File "/opt/conda/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
    self._run_once()
  File "/opt/conda/lib/python3.10/asyncio/base_events.py", line 1909, in _run_once
    handle._run()
  File "/opt/conda/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/opt/conda/lib/python3.10/site-packages/grpc_interceptor/server.py", line 165, in invoke_intercept_method
    return await self.intercept(
> File "/opt/conda/lib/python3.10/site-packages/text_generation_server/interceptor.py", line 21, in intercept
    return await response
  File "/opt/conda/lib/python3.10/site-packages/opentelemetry/instrumentation/grpc/_aio_server.py", line 120, in _unary_interceptor
    raise error
  File "/opt/conda/lib/python3.10/site-packages/opentelemetry/instrumentation/grpc/_aio_server.py", line 111, in _unary_interceptor
    return await behavior(request_or_iterator, context)
  File "/opt/conda/lib/python3.10/site-packages/text_generation_server/server.py", line 145, in Prefill
    batch = self.model.batch_type.from_pb(
File "/opt/conda/lib/python3.10/site-packages/text_generation_server/models/flash_causal_lm.py", line 442, in from_pb
    return cls.from_tokenized(pb, tokenizer, batch_tokenized_inputs, dtype, device)
  File "/opt/conda/lib/python3.10/site-packages/text_generation_server/models/flash_causal_lm.py", line 322, in from_tokenized
    next_token_chooser = HeterogeneousNextTokenChooser.from_pb(
  File "/opt/conda/lib/python3.10/site-packages/text_generation_server/utils/tokens.py", line 486, in from_pb
    return HeterogeneousNextTokenChooser(
  File "/opt/conda/lib/python3.10/site-packages/text_generation_server/utils/tokens.py", line 284, in __init__
    HeterogeneousGrammarLogitProcessor(
  File "/opt/conda/lib/python3.10/site-packages/text_generation_server/utils/logits_process.py", line 570, in __init__
    fsm = GrammarLogitProcessor._cached_compile_fsm(
  File "/opt/conda/lib/python3.10/site-packages/text_generation_server/utils/logits_process.py", line 527, in _cached_compile_fsm
    fsm = RegexFSM(schema, tokenizer)
  File "/opt/conda/lib/python3.10/site-packages/outlines/fsm/fsm.py", line 121, in __init__
    self.states_to_token_maps, self.empty_token_ids = create_states_mapping(
  File "/opt/conda/lib/python3.10/site-packages/outlines/caching.py", line 74, in wrapper
    result = cached_function(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/outlines/fsm/fsm.py", line 102, in create_states_mapping
    regex_pattern = interegular.parse_pattern(regex_string)
  File "/opt/conda/lib/python3.10/site-packages/interegular/patterns.py", line 730, in parse_pattern
    out = p.parse()
  File "/opt/conda/lib/python3.10/site-packages/interegular/utils/simple_parser.py", line 38, in w
    return m(self, *args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/interegular/patterns.py", line 488, in parse
    raise InvalidSyntax
interegular.patterns.InvalidSyntax

Expected behavior
Expected behaviour:

The model returns a valid response conforming to the syntax, such as the following (which was generated by the same model, as part of the same dataset, for example:

Payload: {'model': 'tgi', 'messages': [{'role': 'user', 'content': "\<s>[INST] To better understand the volatility and risk associated with this particular stock, I need to calculate the standard deviation of its daily closing prices over the past 10 trading days. Here are the figures I've gathered: 1000, 2000, 3000, 4000, 5000, 7000, 9000, 15000, 20000, and 30000. Can you provide me with the standard deviation for these closing prices? [/INST]"}], 'temperature': 0.001, 'tools': [{'type': 'function', 'function': {'name': 'calculate_standard_deviation', 'description': 'Calculates the standard deviation of a list of numbers.', 'parameters': {'type': 'dict', 'properties': {'numbers': {'type': 'array', 'items': {'type': 'number'}, 'description': 'The list of numbers.'}}, 'required': ['numbers']}}}], 'tool_choice': 'calculate_standard_deviation'}

Response: {'object': 'chat.completion', 'id': '', 'created':<PHONE_NUMBER>, 'model': '/mnt/models', 'system_fingerprint': '2.1.1-sha-4dfdb48', 'choices': [{'index': 0, 'message': {'role': 'assistant', 'tool_calls': [{'id': '0', 'type': 'function', 'function': {'description': None, 'name': 'stdev', 'arguments': {'numbers': [1000, 2000, 3000, 4000, 5000, 7000, 9000, 15000, 20000, 30000]}}}]}, 'logprobs': None, 'finish_reason': 'eos_token'}], 'usage': {'prompt_tokens': 141, 'completion_tokens': 94, 'total_tokens': 235}}

Payload: {'model': 'tgi', 'messages': [{'role': 'user', 'content': "\<s>[INST] I've been tracking the scoring performance of a certain basketball player across the last 12 games to get insights into his consistency. The points he scored in each game are as follows: 30, 20, 25, 12, 59, 23, 64, 21, 67, 12, 23, and 43. I need to calculate the standard deviation of this scoring to better understand the variability and predictability of his performance. Could you help me with that? [/INST]"}], 'temperature': 0.001, 'tools': [{'type': 'function', 'function': {'name': 'calculate_standard_deviation', 'description': 'Calculates the standard deviation of a list of numbers.', 'parameters': {'type': 'dict', 'properties': {'numbers': {'type': 'array', 'items': {'type': 'number'}, 'description': 'The list of numbers.'}}, 'required': ['numbers']}}}], 'tool_choice': 'calculate_standard_deviation'}

Response: {'object': 'chat.completion', 'id': '', 'created':<PHONE_NUMBER>, 'model': '/mnt/models', 'system_fingerprint': '2.1.1-sha-4dfdb48', 'choices': [{'index': 0, 'message': {'role': 'assistant', 'tool_calls': [{'id': '0', 'type': 'function', 'function': {'description': None, 'name': 'calculateStandardDeviation', 'arguments': {'numbers': [30, 20, 25, 12, 59, 23, 64, 21, 67, 12, 23, 43]}}}]}, 'logprobs': None, 'finish_reason': 'eos_token'}], 'usage': {'prompt_tokens': 135, 'completion_tokens': 72, 'total_tokens': 207}}

Payload: {'model': 'tgi', 'messages': [{'role': 'user', 'content': "\<s>[INST] I'm currently tweaking a machine learning model and I need to understand the similarity between two objects in my dataset. Their characteristics are expressed in the feature vectors [0.5, 0.7, 0.2, 0.9, 0.1] for the first object and [0.4, 0.6, 0.3, 0.8, 0.2] for the second one. Could you calculate the cosine similarity between these two feature vectors to help me determine how similar these objects are? [/INST]"}], 'temperature': 0.001, 'tools': [{'type': 'function', 'function': {'name': 'calculate_cosine_similarity', 'description': 'Calculates the cosine similarity of two vectors.', 'parameters': {'type': 'dict', 'properties': {'vectorA': {'type': 'array', 'items': {'type': 'number'}, 'description': 'The first vector.'}, 'vectorB': {'type': 'array', 'items': {'type': 'number'}, 'description': 'The second vector.'}}, 'required': ['vectorA', 'vectorB']}}}], 'tool_choice': 'calculate_cosine_similarity'}

Response: {'object': 'chat.completion', 'id': '', 'created':<PHONE_NUMBER>, 'model': '/mnt/models', 'system_fingerprint': '2.1.1-sha-4dfdb48', 'choices': [{'index': 0, 'message': {'role': 'assistant', 'tool_calls': [{'id': '0', 'type': 'function', 'function': {'description': None, 'name': 'cosine_similarity', 'arguments': {'vectorA': [0.5, 0.7, 0.2, 0.9, 0.1], 'vectorB': [0.4, 0.6, 0.3, 0.8, 0.2]}}}]}, 'logprobs': None, 'finish_reason': 'eos_token'}], 'usage': {'prompt_tokens': 133, 'completion_tokens': 76, 'total_tokens': 209}}

We get 72/100 of the completions from the Berkeley completion dataset, specifically https://github.com/ShishirPatil/gorilla/blob/main/berkeley-function-call-leaderboard/data/gorilla_openfunctions_v1_test_executable_simple.json in a valid format, as above. The other 28 give the error. (We updated the functions slightly, for example replacing "tuple" with "prefixItems" to conform to the json schema, and "float" with "number").
Other things that we have tried

Changing the payload format and using the /generate endpoint. This works in that we get valid responses that generally conform to the grammar. However, some responses just give whitespace till the token limit, and some others give valid json that only use some of the "required" parameters.
Removing the [INST] and <s> tags. This gives the same error.
Trying without tool_choice. This works, but just generated a regular chat response with no JSON. Setting this either to the tool name or "auto" results in the error above. Trying without both also just results in a valid, regular chat response.
Manually calling the outlines parser on the problematic samples using

regex = outlines.fsm.json_schema.build_regex_from_schema(inp_json)
interegular.parse_pattern(regex)

This parser seems to throw an error despite the schema being valid according to jsonschema validators, until we remove the "function" part of the payload, but then both failing and succeeding function definitions seem to work, so this didn't really shed any light on the issue.

Saw the suggestion mentioned by the author of https://github.com/huggingface/text-generation-inference/issues/2145 , re: dumping json with ensure_ascii=False, but this didn't help.

Thank you very much in advance for your help!

Thanks @drbh for taking this 🙌
#2210 is also somewhat related this (also as an fyi to @RonanKMcGovern)

Thanks for picking this up all! Just wanted to add some more info I found from tinkering around. Interestingly, I seem to get different responses based on the tool choice.
If I use tool_choice=<name-of-tool>, this works fine (or at least, will give a "descriptive" EoF error as mentioned in the original issue). However, if I use tool_choice="auto", I will always get EOF\n. Specifically:
Prompt: "\<s>[INST] To better understand the volatility and risk associated with this particular stock, I need to calculate the standard deviation of its daily closing prices over the past 10 trading days. Here are the figures I've gathered: 1000, 2000, 3000, 4000, 5000, 7000, 9000, 15000, 20000, and 30000. Can you provide me with the standard deviation for these closing prices? [/INST]"

With tool_choice=<name-of-tool>:
Response: Response: {'object': 'chat.completion', 'id': '', 'created':<PHONE_NUMBER>, 'model': '/mnt/models', 'system_fingerprint': '2.1.1-sha-4dfdb48', 'choices': [{'index': 0, 'message': {'role': 'assistant', 'tool_calls': [{'id': '0', 'type': 'function', 'function': {'description': None, 'name': 'stdev', 'arguments': {'numbers': [1000, 2000, 3000, 4000, 5000, 7000, 9000, 15000, 20000, 30000]}}}]}, 'logprobs': None, 'finish_reason': 'eos_token'}], 'usage': {'prompt_tokens': 141, 'completion_tokens': 94, 'total_tokens': 235}}

With tool_choice="auto":
Response: b'EOF\n'

Thanks again.

Hi @ArjunBhalla98 thank you for noting this issue. I've just opened https://github.com/huggingface/text-generation-inference/pull/2244 with some improvements to grammar/tools and specifically a fix to a bug with the tool_choice="auto" value. Additionally the PR adds better error messages in the case the that it fails to parse the generated text to JSON. I believe these changes should resolve your EOF issue once merged.

Thank you very much! I will keep an eye on the PR and when it is merged I will update and try it out on our end.

I think this issue was fixed by #2244? 🤔

Hi @ArjunBhalla98 thank you for opening this issue and https://github.com/huggingface/text-generation-inference/issues/2310, these issues should all be resolved now with the recent improvements to grammars/tools. Going to close this similar to https://github.com/huggingface/text-generation-inference/issues/2310 but please feel free to reopen if these issues can be reproduced on main. Thank you!!


Base release

I'd like to package wf-recorder for Gentoo, although that becomes easier when there is a release for me to tag against. Would it be possible for you to cut an initial release of wf-recorder since it seems to be in a functional state?

Yes, I'll soon merge the gif-support branch and then tag a release.

Fixed: https://github.com/ammen99/wf-recorder/releases/tag/v0.1

Cheers!


Is there an event triggered when the zoom starts?

Hello! Nice plugin, thanks a lot for prompt updates.
Is there a way to know when the zoom event starts? Couldn't find anything.
I need to execute some functions when the zoom event starts and again when it ends (I'm using double click and tap)

Sorry it took me so long to respond. I'm looking into adding this feature today and I'll let you know when it's finished.

This feature is now available in the newest version (1.2.3). In this version, you can pass callbacks to the "onZoomStart" and "onZoomEnd" props of any magnifier component.

Works excellent! Thanks a lot!


[GPIO] How to figure out GPIO functions?

Hi there!
What would be the way to figure out the GPIO pins of a GK7205V210 SoC with SC223a CMOS sensor?
I need to find the GPIO pins related to the IRCUT IRSTATUS and IRCTL.
It seems the factory setting are not working well. Unfortunately I cannot identify the PCB.
Thanks

You may use ipctool gpio scanner on stock firmware to determine GPIO pins

This doesn't really helped now. I used https://github.com/OpenIPC/firmware/issues/200 as a reference now. However I tried to trigger the GPIOs (0-23) with the following oneliner.
for i in $(seq 0 23) ; do gpio set $i ; sleep 5s ; gpio clear $i ; sleep 5s ; done

It it possible, that this device is using a photodiode to automatically turn on the IR?
I haven't see any change in the video, while running this script.

Usually, IR LEDs are activated by solely an LDR on the array.

https://github.com/OpenIPC/firmware/assets/37488/54fcb62b-7666-481f-81d6-56fbc947b275

Range 0-23 may be not enough to find GPIO pins for IRCUT.

5 sec delay may fry your IRCUT solenoid as its reaction time is only 100 milliseconds. Disconnect the IRCUT and use a LED instead.

https://github.com/OpenIPC/firmware/assets/37488/0ed5daaf-dc1c-439a-a41c-8b94a192f15f

As the gpio scan showed this higher than 23, I thought it has only 24 pins. I will continue the scan from that.
The main idea was to find the IRCTL pin with the oneliner.
sh: write error: Invalid argument
Error: No direction file!

This is the result from this morning:
ipctool gpio scan
Gr: 0, Addr:0x120B0044, Data:0x00 = 0bxxx0xxx0, Addr:0x120B0400, Dir:0xFF = 0bxxx1xxx1
Gr: 1, Addr:0x120B13CC, Data:0x00 = 0b0000xx00, Addr:0x120B1400, Dir:0x7E = 0b0111xx10
Gr: 2, Addr:0x120B2004, Data:0x00 = 0bxxxxxxx0, Addr:0x120B2400, Dir:0xFF = 0bxxxxxxx1
Gr: 3, Addr:0x120B3000, Data:0x00 = 0bxxxxxxxx, Addr:0x120B3400, Dir:0x00 = 0bxxxxxxxx
Gr: 4, Addr:0x120B4000, Data:0x00 = 0bxxxxxxxx, Addr:0x120B4400, Dir:0x00 = 0bxxxxxxxx
Gr: 5, Addr:0x120B5000, Data:0x00 = 0bxxxxxxxx, Addr:0x120B5400, Dir:0x00 = 0bxxxxxxxx
Gr: 6, Addr:0x120B63F0, Data:0x9C = 0b100111xx, Addr:0x120B6400, Dir:0x00 = 0b000000xx
Gr: 7, Addr:0x120B703C, Data:0x03 = 0bxxxx0011, Addr:0x120B7400, Dir:0x0C = 0bxxxx1100
Gr: 8, Addr:0x120B83C0, Data:0xE0 = 0b1110xxxx, Addr:0x120B8400, Dir:0x00 = 0b0000xxxx
======================================================================================
Waiting for while something changes...
======================================================================================
Gr:7, Addr:0x120B703C, Data:0x03 = 0bxxxx0011 --> 0x0B = 0bxxxx1011
Mask: "devmem 0x120B7020 32 0x08", GPIO7_3, GPIO59, Dir:Output, Level:1
======================================================================================
Gr:7, Addr:0x120B703C, Data:0x0B = 0bxxxx1011 --> 0x03 = 0bxxxx0011
Mask: "devmem 0x120B7020 32 0x00", GPIO7_3, GPIO59, Dir:Output, Level:0
======================================================================================
Gr:1, Addr:0x120B13CC, Data:0x00 = 0b0000xx00 --> 0x80 = 0b1000xx00
Mask: "devmem 0x120B1200 32 0x80", GPIO1_7, GPIO15, Dir:Input, Level:1
======================================================================================
Gr:1, Addr:0x120B13CC, Data:0x80 = 0b1000xx00 --> 0x00 = 0b0000xx00
Mask: "devmem 0x120B1200 32 0x00", GPIO1_7, GPIO15, Dir:Input, Level:0
======================================================================================
Gr:1, Addr:0x120B13CC, Data:0x00 = 0b0000xx00 --> 0x80 = 0b1000xx00
Mask: "devmem 0x120B1200 32 0x80", GPIO1_7, GPIO15, Dir:Input, Level:1
======================================================================================
Gr:1, Addr:0x120B13CC, Data:0x80 = 0b1000xx00 --> 0x00 = 0b0000xx00
Mask: "devmem 0x120B1200 32 0x00", GPIO1_7, GPIO15, Dir:Input, Level:0
======================================================================================
Gr:1, Addr:0x120B13CC, Data:0x00 = 0b0000xx00 --> 0x80 = 0b1000xx00
Mask: "devmem 0x120B1200 32 0x80", GPIO1_7, GPIO15, Dir:Input, Level:1
======================================================================================
Gr:7, Addr:0x120B703C, Data:0x03 = 0bxxxx0011 --> 0x0B = 0bxxxx1011
Mask: "devmem 0x120B7020 32 0x08", GPIO7_3, GPIO59, Dir:Output, Level:1
======================================================================================
Gr:7, Addr:0x120B703C, Data:0x0B = 0bxxxx1011 --> 0x03 = 0bxxxx0011
Mask: "devmem 0x120B7020 32 0x00", GPIO7_3, GPIO59, Dir:Output, Level:0

Seems like GPIO 59, which is set as output, is your IRCUT trigger, and GPIO 15, set as input, is getting signal from LDR.

GPIO 15 as signal from IR sensor and GPIO 59 as IR cut filter, if I understand well there no need to set the "GPIO pin to turn on the night illumination". So this will just turn on the "Toggle night mode" switch, right?

I had a chance to test and these settings are fine. The LDR are controlling the IR LEDs. It just turned out, that the light of these infrared diodes are very weak. I can see the objects I'd those are close but not after a bigger distance.
What are the common distance, which can be light by the IR LEDs?

It depends. Did you check that ircut is open? Otherwise it would be stripping the waverange that IR LEDs emmit.

I have a similar board (same chipset). With default firmware, I can hear, that IRcut is opening and closing based on light conditions (even when a board is booting). But after flashing openIPC (setting IRcut to 15/16) it doesn't work. So I tried to restore original firmware and now I cannot see/hear IRcut working again.
I ordered second camera and it happened again. Any ideas what could went wrong? Any chance to fix it?
It was this one : https://www.aliexpress.com/item/32885834218.html
I can provide more information...

I have a similar board (same chipset). With default firmware, I can hear, that IRcut is opening and closing based on light conditions (even when a board is booting). But after flashing openIPC (setting IRcut to 15/16) it doesn't work. So I tried to restore original firmware and now I cannot see/hear IRcut working again. I ordered second camera and it happened again. Any ideas what could went wrong? Any chance to fix it?
It was this one : https://www.aliexpress.com/item/32885834218.html I can provide more information...

pretty strange. I have no idea. have you had time to work on that since this comment?

We already discussed this heavily over Telegram group chat and it turned out, that I burned ircut. On second camera, it got burnt right after first boot of openIPC.
I have a new ircut on table, so once I will have a time, I will try it and see.. I will report back...


Vue.nextTick event still called

Version
2.6.11
Reproduction link
https://jsfiddle.net/qsv4dw2p/3/
Steps to reproduce
Click on show tooltip button
What is expected?
The text should change to "Showing tooltip" until I click anywhere else
What is actually happening?
The text changes to "Showing tooltip" and then immediatly changes back to "no tooltip"

Hi, I'm trying the following for showing and hiding a tooltip on a click event (https://jsfiddle.net/qsv4dw2p/3/ ):
showTooltip() {
	this.text = 'showing tooltip'
  this.$nextTick(() => {
    document.addEventListener("click", this.hideTooltip)
  })
	},
hideTooltip() {
	this.text = 'no tooltip'
  document.removeEventListener('click', this.hideTooltip)
}

This worked on a previous version of vue (2.15.16), but I updated to (2.6.11) and it stopped working, basically the hide is called even if the listener is added on the $nextTick, why has this behavior changed?
From my understanding, this should work in theory, since we are adding the hide listener on a next tick, so the current event should have already been handled.
There is a workaround, which is using click.stop instead of click (https://jsfiddle.net/qsv4dw2p/4/ ), however I'm curious on why it worked on previous versions but not in the latest.

It's great you found the workaround. The explanation can be found in the release notes: https://github.com/vuejs/vue/releases/tag/v2.6.0 -> Important internal changes

Thanks I see that the next tick implementation changed in 2.6.
However this behavior seems strange, shouldn't the next tick be called after the DOM is updated?
If that were the case, in the reproduction case the text should at least change for a fraction of a second, before changing back.
Am I missing something?


Added methods to SkTypeface

This branch adds some methods methods to the SKTypeface class. It also fixes an issue where if the typeface didn't exist, it would not raise an error, but generate an Access violation later.
I added tests for the new methods and another for the error in case the typeface doesn't exist

Hi,
It might look like I haven't signed, but I actually did. Can you review it?

@agallero Yes I can confirm that you have completed the CLA.  We can now review the PR.

Hi @agallero,
Thanks for this PR. I am having a look at this now and I was wondering if you could make a few changes:

First, could you change the whitespace around? Although not documented exactly, we are using 4 spaces in the C / C++ code and hard tabs in the managed C# code.
Also, do we really need the SkString type? As you are just getting the c_str() result, maybe you could do that in the method. Although we are keeping the C layer very thin, this case might be better just to return the const char *. Here is an example method in C and then the wrapper in C#. This will reduce the code and boundaries on the managed side as well as remove a type.

Other than those two, I think we can merge.

Hi,
I'll try to see the whitespace: the main issue is that I have VS with the standard settings and I think even if you manually change the whitespace it will reformat the file everytime you change anything. I'll try editing the files with Xamarin Studio and resaving them.
About the strings, I've written more about them in issue #67 but basically, as far as I know the example you  mention doesn't work. Actually it could/should be modified to return a SkString. I mention sk_imagedecoder_get_format_name_from_format specifically in issue #67 because it doesn't really allocate memory in the C side (it is returning a constant), but the managed side tries to free the char* anyway, causing an access violation, at least when I tried the code.
sk_imagedecoder_get_format_name_from_format could be fixed by changing the bindings not to free the char* (since at least for now, it is returning constants that don't need to be freed). But it is a dangerous solution, if in the future sk_imagedecoder_get_format_name_from_format returns something that isn't a constant and needs to be deallocated in the .net side.
In my case, the font name can't be a constant, so I need to allocate memory for the char* in the C side. But then you can't free it in the .NET side, because .NET expects the memory in the C side to have been allocated with CoTaskMemAlloc (which is windows specific). So by publishing SkString, what I do is to provide a wrapper for the char* that is both allocated and deallocated in the C side.
The SkString approach actually mimics the SkData approach which is a similar wrapper for a byte* which again, in the case of SkData is allocated and deallocated at the C side.

Apologies, I broke the merge with my update to the skia submodule :(

My bad, clicked the wrong button there :( comment, not close!

Matthew,
Thanks for all the comments. I will see to fix the whitespace and move the result of the get_typeface to the function result indeed. The original reason to have it as a parameter was to mimic as much as possible the C++ Api (where for some reason they have void getFamilyName(SkString* name) const; ) but yes, I think returning the string directly will make more sense. I'll re check the possible GC issues too.
Thanks for all the time!
Adrian

Hi,
I've modified the whitespace to be consistent with the rest, and modified sk_typeface_get_family_name to return an sk_string instead of void.
But I am not really sure if the pull request must be redone or this can be used, as it seems that all the commits from other pull requests are now also included?

@agallero This PR is still fine. The other changes are just going to be merged back, so it won't do anything. The only thing is the skia sub-module... but your or I can fix that before I merge - no biggie.

@agallero Just a note, if you want to chat directly, you can do so with Gitter: https://gitter.im/xamarin/XamarinComponents

Can we merge this?

All right, merging now. Thanks for the work


Add from maximized to fullscreen mode interactions handling and allow using Alt-Tab while on fullscreen on Windows

References and relevant issues
Closes #7300
Description
Prevent displacing application window when going from maximized to fullscreen state and vice versa and allow using Alt-Tab shorcut to change focused application window even when on fullscreen mode. This changes the workaround approach from setting the window geometry to setting the window style using the native window handling API on Windows.
Previews:

Windows state change from maximized to fullscreen state and vice versa:

https://github.com/user-attachments/assets/f54ac097-00d6-4bee-9113-86ce5951a57e

Using Alt-Tab to change focused application while on fullscreen mode:

https://github.com/user-attachments/assets/18914bd9-7ac0-44a9-acc7-5848e4cf54ec
Also, add the qt_log_level_fail pytest marker to make fullscreen related tests to fail in case of a Qt warning message appears while executing them

@dalthviz this is so cool! Normally I look at issues like #7300 and go "🤷 I guess we'll never work properly on Windows! 😭". And here you are with a fix in record time! 🥳 Please let me know when you need a review.

Looking at the lack of coverage, maybe we should have windows job with enabled coverage?

Oh so only some Linux jobs are uploading coverage info currently right? Adding a job that uploads coverage for Windows would be nice indeed :+1: is that something that needs to be configured over the tox.ini file or maybe somewhere else? Let me know

You need to change coverage from no_cov to cov, for example here https://github.com/napari/napari/blob/b9dc8dca1e1afa7567586e7ffa7a36cc7cd9fb6f/.github/workflows/test_pull_requests.yml#L125-L128


WebView2: Update documentation for SDK 1.0.1185.39 and 1.0.1222-prerelease

Docs Build status updates of commit 1e5a6a8:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

1-0-1185-39/icorewebview2framepermissionrequestedeventhandler.md
:bulb:Suggestion
View (webview2-1.0.1185.39)
Details

1-0-1185-39/icorewebview2permissionrequestedeventhandler.md
:bulb:Suggestion
View (webview2-1.0.1185.39)
Details

.openpublishing.publish.config.json
:white_check_mark:Succeeded

1-0-1150-38/icorewebview2.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2_10.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2_2.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2_3.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2_4.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2_5.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2_6.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2_7.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2_8.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2_9.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2acceleratorkeypressedeventargs.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2acceleratorkeypressedeventhandler.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2addscripttoexecuteondocumentcreatedcompletedhandler.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2basicauthenticationrequestedeventargs.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2basicauthenticationrequestedeventhandler.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2basicauthenticationresponse.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2browserprocessexitedeventargs.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2browserprocessexitedeventhandler.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2bytesreceivedchangedeventhandler.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2calldevtoolsprotocolmethodcompletedhandler.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2capturepreviewcompletedhandler.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2clientcertificate.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2clientcertificatecollection.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2clientcertificaterequestedeventargs.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2clientcertificaterequestedeventhandler.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2compositioncontroller.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2compositioncontroller2.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2containsfullscreenelementchangedeventhandler.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2contentloadingeventargs.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2contentloadingeventhandler.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2controller.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2controller2.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2controller3.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2cookie.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2cookielist.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2cookiemanager.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2createcorewebview2compositioncontrollercompletedhandler.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2createcorewebview2controllercompletedhandler.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2createcorewebview2environmentcompletedhandler.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2cursorchangedeventhandler.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2deferral.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2devtoolsprotocoleventreceivedeventargs.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2devtoolsprotocoleventreceivedeventhandler.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2devtoolsprotocoleventreceiver.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2documenttitlechangedeventhandler.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2domcontentloadedeventargs.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

1-0-1150-38/icorewebview2domcontentloadedeventhandler.md
:white_check_mark:Succeeded
View (webview2-1.0.1150.38)

This comment lists only the first 50 files in the pull request.

1-0-1185-39/icorewebview2framepermissionrequestedeventhandler.md

Line 2, Column 14: [Suggestion: duplicate-descriptions - See documentation] Attribute 'description' with value 'Receives `PermissionRequested` events.' is duplicated in '1-0-1185-39/icorewebview2framepermissionrequestedeventhandler.md(2,14)', '1-0-1185-39/icorewebview2permissionrequestedeventhandler.md(2,14)'.

1-0-1185-39/icorewebview2permissionrequestedeventhandler.md

Line 2, Column 14: [Suggestion: duplicate-descriptions - See documentation] Attribute 'description' with value 'Receives `PermissionRequested` events.' is duplicated in '1-0-1185-39/icorewebview2framepermissionrequestedeventhandler.md(2,14)', '1-0-1185-39/icorewebview2permissionrequestedeventhandler.md(2,14)'.

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


'dashboard_url' setting not working

The default value of 'dashboard_url' is 'home', and it works at http://domain.com/home. When I change it to say 'admin', http://domain.com/home still works, but http://domain.com/admin returns 404.
My Laravel version is 5.4.14

Might be a silly question, but have you added a route and view to return a page if you hit /admin?

I followed all the steps of installation and settings, including generating auth stuff. The http://domain.com/home is accessed after logging in, and it has "Dashboard" as the title of the body. When checking the config file, 'dashboard_url' => 'home' looks like the setting pointing to this URL to me.

The dashboard_url setting only determines the link that is attached to the logo (top left) on each admin page. You will always have to change your routes files as well when you want to change the url of your dashboard page.

I guess this solved your problem? If not, please let me know and I will reopen this issue.


SvgImageRenderer multiple instances created for same svg

Hi.
I declare an svgimage in XAML and use it as a static resource
<ContentPage.Resources
<ResourceDictionary
<abstractions:SvgImage BindingContext="{x:Reference mainPage}" x:Key="ArrowStraight" SvgAssembly="{Binding SvgAssembly}" SvgPath="TDSP.svg.bubble.svg" ...
....
<ContentView WidthRequest="30" Padding="0,0,0,0" Content="{StaticResource ArrowStraight}" ...
The problem is that each Content="{StaticResource ArrowStraight}"> reference causes the SVG file to be loaded because a new SvgImageRenderer is instantiated.  It is strange because only a single SvgImage instance is created.
Would there be a way for only a single renderer instance to be created for the same SvgImage instance?  I thought there was a 1-1 correspondence between XF control and renderer instances so I'm a bit confused...
Cheers
Philip

Hi Philip,
I will try to take a look at this later today. I have never used the SvgImage as part of a ResourceDictionary, so I don't have any ideas off the top of my head.
Cheers
Paul

Hi Paul.

Thanks for the quick reply.  I also posted at
https://forums.xamarin.com/discussion/comment/105245#Comment_105245
since this looks to be a Xamarin issue.  If you can post there as
well with your findings this would be great.  If you can confirm
what I found I can file a bug report.   If the Xamarin issue cannot
be resolved perhaps a modification to your code which statically
caches all loaded SVGs would make sense.  Perhaps just change
Snippet
_svgStreamByPath to be static?

Cheers
Philip

Paul P wrote:

  Hi Philip,
  I will try to take a look at this later today. I have never
    used the SvgImage as part of a ResourceDictionary, so I don't
    have any ideas off the top of my head.
  Cheers
    Paul
  —
    Reply to this email directly or view
      it on GitHub.

Hey Philip,
I had a chance to take a look at this. I don't think the problem is necessarily with an extra renderer being created (I tried making the collection static), but rather something with the Image implementation in Forms. No exceptions are thrown and the logic executes, but only a single image/svg will get rendered. I have created a page demonstrating the issue exists with Images as well :
https://github.com/paulpatarinski/Xamarin.Forms.Plugins/blob/master/SVG/SampleApp/SampleApp/Pages/ViaResources.xaml
I will update the forums post as well as create a support ticket for Xamarin.
On a different note I also improved the implementation a lot :

It is now loading the svgs asynchronously
I am now caching the streams in a static dictionary to increase performance
Some memory improvements

Bug Filed : https://bugzilla.xamarin.com/show_bug.cgi?id=27292

Nice work!

Paul P wrote:

  Hey Philip,
  I had a chance to take a look at this. I don't think the
    problem is necessarily with an extra renderer being created (I
    tried making the collection static), but rather something with
    the Image implementation in Forms. No exceptions are thrown and
    the logic executes, but only a single image/svg will get
    rendered. I have created a page demonstrating the issue exists
    with Images as well :
  https://github.com/paulpatarinski/Xamarin.Forms.Plugins/blob/master/SVG/SampleApp/SampleApp/Pages/ViaResources.xaml
  I will update the forums post as well as create a support
    ticket for Xamarin.
  On a different note I also improved the implementation a lot :

    It is now loading the svgs asynchronously
      I am now caching the streams in a static dictionary to
      increase performance
      Some memory improvements

  —
    Reply to this email directly or view
      it on GitHub.

I guess this is expected behavior. Here is the proposed approach by Xamarin :
an Image is a VisualElement in Xamarin.Forms, just like Label, or Button, and
VisualElements can not be used multiple times simultaneously (re-using is
fine).
By declaring the Image as a resource, you are reusing the same Image instance
over and over again, and that's why only one is visible.
In your case, I'd define a Style for the Image in the ResourceDictionary, and
apply the same style to the multiple image instance,


Update/Add chart-releaser

Tool name
chart-releaser
Tool license
Apache 2.0
Add or update?

[X] Add
[ ] Update

Desired version
v1.5.0
Approximate size
~25 MB
Brief description of tool
Helpful tool that abstracts away some of the plumbing for creating a Helm repository in a GitHub repository using GitHub Pages.
URL for tool's homepage
https://github.com/helm/chart-releaser
Provide a basic test case to validate the tool's functionality.
cr version (??)

Platforms where you need the tool

[ ] Azure DevOps
[X] GitHub Actions

Runner images where you need the tool

[X] Ubuntu 18.04
[X] Ubuntu 20.04
[X] Ubuntu 22.04
[ ] macOS 11
[ ] macOS 12
[ ] Windows Server 2019
[ ] Windows Server 2022

Can this tool be installed during the build?
curl -L "https://github.com/helm/chart-releaser/releases/download/v${CR_VERSION}/chart-releaser_${CR_VERSION}_linux_amd64.tar.gz" | sudo tar xvz --directory /usr/bin cr

Tool installation time in runtime
Probably 1-10 seconds
Are you willing to submit a PR?
Yes

@wheelerlaw thank you very much for your proposal to install chart-releaser on Ubuntu images. Since it takes only a few seconds to install, as you mentioned, we would not like to have it preinstalled right now, but we will reconsider it in the future.


better documentation for learners

we need lots more examples to make pull streams easy to learn.

simpest source
simplest sink
simplest through (mention duplex but leave it for later)
errors and aborting. (take(n), what happens if you don't do this: https://github.com/nodejs/node/issues/1834
some useful streams: pull-cat, pull-paramap, pull-defer, pull-many, pull-merge, pull-through, pull-pushable, pull-traverse, pull-stringify, pull-level, pull-glob (maybe split these up by difficulty? with examples where they are useful?)
interaction with node streams? stream-to-pull-stream
muxrpc (maybe put this sooner?)
secret-handshake?

@yoshuawuyts @ahdinosaur @DamonOehlman @pfraze any other ideas?

I'd put networking and fs in here too, perhaps also JSON parsing - covering a good rang of practical uses makes it more likely people will use it.

ooh yes, this is awesome! really keen on more accessible documentation for pull streams. :cat:
other ideas:

composable pull streams

pull(through(), through(), through()) returns the equivalent of a through stream
pull(source(), through(), through()) returns the equivalent of a source stream
pull(through(), through(), sink()) returns the equivalent of a sink stream

lazy pull streams

@dominictarr mentioned pull-glob as an example

functional programming with through streams (pull.map, pull.filter, pull.reduce, and such)
how pull streams are both synchronous and asynchronous (node streams are only async, errors propagate through process.nextTick, data can flow through either)
common message passing architectures

"request response" (RPC)
"publish subscribe"
"pipeline"

duplex streams for common transports (http, ws, cli)
how to use pull streams with other "frameworks" to build full stack apps: react (e.g. patchwork), redux, (pull-redux?), ...

also, some examples of other nice "stream" documentation in the wild:

ReactiveX
RxMarbles
rx

/cc @pietgeursen

I think the most important thing here is to find realistic examples that represent problems that are interesting and or people actually have.
Oh, another category is real time data, and streaming of that. maybe an example is an infinite scroller that uses back pressure to stop reading while until you scroll down more.

@ahdinosaur compose https://github.com/dominictarr/pull-stream-examples/blob/master/compose.js
can you think of some more examples where composition is useful?

@dominictarr maybe I misunderstood this, but running the last example in pull.js, gives 100 results instead of 101. Maybe the code should be changed to:
function take(n) {
    return function(read) {
        return function(abort, cb) {
            if (!n--) return read(true, cb);
            read(null, cb);
        };
    };
}

@eugene-eeo good point. fixed

Another cool pattern I found myself needing the other day was:
Eventual values
Return a stream from a function synchronously, emit data from it
asynchronously.
const notify = require('pull-notify')
const pull = require('pull-stream')
const xhr = require('xhr')

pull(request('foobar.com'), pull.log())

function request (url) {
  const xhr$ = notify()

  xhr(url, (err, res, body) {
    if (err) return xhr$.abort(err)
    xhr$(body)
    xhr$.end()
  })

  return xhr$.listen()
}

Probably not doing it 100% right here - while this could be expanded to be a through stream, the package used allows for multiplexing; wonder if I'm doing it right. Think it'd be a neat little pattern to throw at users

hey @yoshuawuyts, i wrote pull-async for exactly that use case (returning a single value or error), for returning more than one value see pull-defer.
pull-async example:
function request (url) {
  return pullAsync(cb => {
    xhr(url, (err, res, body) => {
      if (err) return cb(err)
      cb(body)
    })
  })
}

pull-defer example:
function request (url) {
  var deferred = pullDefer.source()
  xhr(url, (err, res, body) => {
    if (err) deferred.abort(err)
    else deferred.resolve(pull.values([body]))
  })
  return deferred
}

@yoshuawuyts that way ruins back pressure (not that it matters with XHR, though)
in general, you want to use pull-defer for this. hmm, although, this is making me realize that pull-defer is not obvious enough (if I have to tell you two about it)


pipelineexclude block case test_round

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


onComplete not getting response

The documentation for this plugin says
onComplete - Function to run after the route has been requested. The function will contain the response from the request

but it doesn't appear that anything is being passed to the onComplete function.  Is this an oversight or is there some other way I am supposed to access the res from the request in the onComplete?
https://github.com/antonsamper/hapi-cron/blob/855eb7ed32801c97dd9546765647e2d6247b12ee/lib/index.js#L24
this job always logs undefined no matter what I respond with from my route
jobs: [{
            name: 'Refresh Credentials',
            time: '0/10 * * * * * ',
            timezone: 'Europe/London',
            request: {
              method: 'GET',
              url: '/api/auth/credentials',
            },
            onComplete: (response) => {
              console.log('response', response)
            }
          }],

Thanks for raising this issue. @agchou has raised a pr with the fixed so ill get it merged in.

Yup!  Thanks for getting on this, that took care of it


Add OAuth2 config options for credentials location

Our current OAuth2 token exchange logic first tries to pass the client ID and secret in the request body, and if that fails retries it in an Authorization basic header. Some APIs (Airtable for example) require the Authorization header, but invalidate the authorization code after the first failed attempt in the body.
This PR adds a new option to the OAuth2 config that allows the developer to explicitly specify which method to use. A corresponding change will need to be made to the Coda server to honor this setting.

lgtm. let me send out a quick change reflecting this sdk option.

if some oauth provider adopts difference practices for exchange v.s. refresh

I haven't seen that before in the wild, so fingers crossed it never happens 🤞


Help

Erro implementation 'com.github.evrencoskun:TableView:v<IP_ADDRESS>'

Probably a duplicate of #382 but very little detail to go on.


parallel data querying principes

Please help me understand why all queries (jsonapi) are executed only serially and what are the recommended approaches for ideal data retrieval.
Let's say I have an entity "notes". I have a left menu where I load a list of articles with limited fields. Only name and id for example.
Then there is a content section where you can see several "last edited" notes. For example, 6 tiles, where each one individually executes a query to get the complete Note data.
As long as the user does not have the data stored in the cache, these tiles will be loaded one by one with a delay of 200 ms, which is quite visible.
If there are several different entities and their queries on a page, the whole page will load quite visibly slowly (for the user).
From 0.17 there is the possibility of multiple expressions, where I can make multiple queries in parallel. So it is theoretically possible to make some kind of "throttle" aggregator that will load all "last edited notes" tiles at once.
But according to the documentation: "but query will only resolve when all have completed successfully".
This exposes the application to potentially bigger crash than if only one Note tile fails for some reason.
And it seems strange to me to merge queries from several entities across the page.
Can you please explain me the reasons for this (only serial) architecture and how I should design the querying to be as fast as possible?

@ahoyahoy Generally speaking, Orbit's request and sync queues are designed to give you control over your application's data flows. Queries and updates may be interleaved in a source's request queue, and Orbit provides a guarantee that these requests will be processed in the order they are received. For example, if a request deletes a note, then a subsequent query for all notes will not include that note. Furthermore, if there is a network outage, then there is a guarantee that this order will be maintained as requests are periodically retried.

From 0.17 there is the possibility of multiple expressions, where I can make multiple queries in parallel.

Yes, this is the mechanism that allows for default parallelization of fetch requests when processing a query. Updates can also optionally be parallelized (via the parallelRequests option), although this is not the default since order of individual operations within an update is so often important.

Can you please explain me the reasons for this (only serial) architecture and how I should design the querying to be as fast as possible?

Given your example, I would tend to aggregate data loading at a boundary that is clear for the user: like a route or page. Depending on your framework, you could also use a higher order component. In general, I avoid loading data in components unless it is acceptable to show loading state within that individual component. Otherwise, data flashes into components almost randomly throughout the page just based on the timing of many individual fetch requests, which can be disorienting.
With all that said, there are exceptions to every rule, and my goal with Orbit is to provide a configurable general purpose data library and not to force your hand with UX decisions about where and when you should show spinners in your app. I am open to providing an option (e.g. skipRequestQueue) to effectively avoid usage of queues entirely on an individual request basis when the order in which requests are made and completed is completely. I'll think this over and experiment before implementing to avoid introducing a real footgun. But in the mean time, please let me know if you have any success with Orbit's current parallelization options.

thanks for the clarification :)
I tried to give a simplified example before and it didn't work out too well.
I'm calling orbit queries in asynchronously loaded components, which is even put together by the user and not the programmer... low code
A visual example could be on the page https://remix.run/
Scroll down for the animation of the eshop, which loads its parts asynchronously.
Currently, if I don't aggregate queries for the entire page (menu, sales, invoices list, invoice detail), the data (and user experience) is loaded as in the case of "Without Remix".
Of course I want the second example
`skipRequestQueue' sounds like a great idea to me.  :)

@dgeb Hello Dan,
what do you think about my last comment? Does it make better sense or still no or nonsense or?


[WebUI] After going back from Balabolka to WebUI, sometimes typing focus is lost

... which necessitates a gaze click before the user can continue interacting with the UI.

This is now fixed in the gazebuttons branch.
We programmaticaly focus back on the WebUI app itself

After text injection into Balabolka
After programmatic window resizing .


Having the option to have the viz tailored to specific use cases

Is your feature request related to a problem? If so, please describe the problem:
For different use cases, the visualization needs to be different. A individual contributor would want to look at different impacts of a repository's score than a community manager would.
Describe the solution you'd like:
Radio buttons to switch between different user views.

Radio buttons have been implemented to be able to cycle through various use cases

While the radio buttons have been implements, they are still not reacting/filtering the data for the charts in the correct way yet.


Use login port for ssh

Currently we assume port 22 for ssh unless a
portforwarder has been configured.  This uses the getLoginPort
from nodemetadata to determine the ssh port.

Looks good to me, I would like to do some testing on this before I merge it, though.

LGTM - I saw this in action when pairing with @duncangrant so will merge now.


RICO Training

Hey,
Thank you for releasing this code!
Any pointers on which rico dataset to use and how to preprocess it to feed into the transformer?
Are you starting with "RICO UI SCREENSHOTS AND HIERARCHIES WITH SEMANTIC ANNOTATIONS"?
Thanks!

Please check this out #issue7 This might help you.