Issue: Cannot read property 'constructor' of undefined

Hi everyone,
I'm not completely sure this is a real issue or if maybe I'm missing something to my implementation, anyway I can't get VueStrap select working.
I downloaded the js from sources and included in my page:
`
`
I've simply copied, and slightly refined, an example from your page as follow.
On HTML:
              <my-select :options="fruitOptions" :search=true></my-select>
On Script:
Vue.component('my-select', VueStrap.select);   vm = new Vue({     el: '#test',     data: {       fruitOptions: [         {value:'Apple', label:'Apple'},         {value:'Banana', label:'Banana'},         {value:'Cherry', label:'Cherry'},         {value:'Orange', label:'Orange'},         {value:'Grape', label:'Grape'},       ]     },   });
The control seems partially to be rendered, basically I can see the dropdown button (just it, not any input or similar) and clicking it the list appear and is also searchable. But on the console I'm being returned following error:
vue-strap.js:4659      Uncaught TypeError: Cannot read property 'constructor' of undefined
Also if I try to select one of the items on the list I'm returned this:
vue-strap.min.js:4746           Uncaught TypeError: Cannot read property 'indexOf' of undefined
Anyone has any idea?
I'm using Vue.js version 1.0.21
Cheers,
Matteo

@midium Looks ok to me, have you checked VueStrap is defined?
P.S Are you using WebPack or Browserify?

As I've said on the description I've simply imported the compiled js as by the example reported on official documentation at "Browser globals" on Getting started part

I figured out what was going wrong in my implementation. Basically I need to specify the value.sync property this way:
<my-select multiple :value.sync="multiple" :options="fruitOptions" :search="true"></my-select>
This makes all working. I think you should specify it better on documentation.
Feel free to close this ticket.
Thanks,
Matteo

aaa


feat: support value attribute for li tags in ordered lists

In order for support for value to be complete, the following sibling li elements would need to have their values be relative to this li element's value

Seems like it has already been added in a more complete way in this PR: https://github.com/danomatic/react-pdf-html/pull/87


nixos/doc: use --subst-var-by

Description of changes
Otherwise we get
substituteStream(): WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. (file './manual.md')

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

seems like --replace-fail would be the better choice here, if any of these do fail the manual has broken and we want to know about it

We should rather make --subst-var-by fail in that case.


OpenAL class SOFTReopenDevice not found!

Module
OpenAL
Bug description
In nearly every recent release of LWJGL, I do not find the SOFTReopenDevice class. Sure, I could compile it from the source and use it that way (I tried adding the class back in myself, but it seems that I failed...), but it is not included by the download customizer, no matter what I change. Has it been removed? If so, why?
I do not feel it has been removed. Since it is also documented, I expect to find it in the compiled code I get.
...Is there a workaround to this issue?

SOFTReopenDevice  is part of the snapshots for 3.3.2. You will need to use a recent snapshot to have access to the class. I checked going back to May 24th of 2022 and it was present in the snapshot, and is present in the latest snapshot. I am not sure what versions you have checked, but the javadocs you linked to are for the latest snapshot.

Apologies for removing the part specifying LWJGL versions. The thing is, that the OpenAL extension is available in no version of LWJGL. Not even LWJGL 2 subversions!

As stated it is available in the snapshot. I did not see it in the most recent stable release.


Error when running run_pretraining.py (error recorded from training loop: indices[] is not in ...)

I'm trying to create my own .ckpt.model file by running the run_pretraining.py file on Google Colab using this command :

!python run_pretraining.py
--bert_config_file "../bert-multi-cased/bert_config.json"
--input_file "../bert-model-custom/pretrain.tfrecord"
--output_dir "../bert-model-custom"
--init_checkpoint "../bert-multi-cased/bert_model.ckpt"
--do_train True
--train_batch_size 2

but i encountered this error :

....
INFO:tensorflow:Saving checkpoints for 0 into ../bert-model-custom/model.ckpt.
I0814 08:29:48.793563<PHONE_NUMBER>89952 basic_session_run_hooks.py:606] Saving checkpoints for 0 into ../bert-model-custom/model.ckpt.
ERROR:tensorflow:Error recorded from training_loop: indices[254] = 164930 is not in [0, 119547)
[[node bert/embeddings/GatherV2 (defined at /content/bert/modeling.py:419) ]]

I've read article somewhere this problem is becase vocabulary size outbounding issue, i mean the 164930 above is outbounding the 119547, am i right?
If it's right then where can i change the vocabulary size?
Thankyou in advance,
sorry for bad english.

Oh and the pretrain.tfrecord above was created by running the create_pretraining_data.py.
I'm also using TF version 1.14.1


Withdrawing RPL after node exit

Add instructions on how to withdraw RPL once you have exited your validator(s) to guides/node/withdraw.md

@blinc117 I agree that's a a good addition, and I addressed this in #225


Request for translations.json doesn't include base_url when latter is set.

When the base_url is set to a non empty value, the front end isn't including the base_url in the request made for translations.json.  This is related to similar problems in #189 and #200.

This issue is hopefully addressed by PR #280.


Example, functions don't work with system.file(), work fine without

The documentation shows examples like

excel_sheets(system.file("NHSN_vs_SID_HPRO_DOS_2010_2011.xlsx", package = "readxl"))

Error: '' does not exist in current working directory ('C:/projects/michael calderwood/R18/coding vs billing').
whereas

excel_sheets("NHSN_vs_SID_HPRO_DOS_2010_2011.xlsx")
[1] "2010"                         "2011"                         "Remove 9 hospitals in 1 year"
[4] "NHSN vs. Billing 2010"        "NHSN vs. Billing 2011"        "Billing_2010_and_2011"
[7] "NHSN_2010_and_2011"           "Two Year Comparison"

Yes because system.file is used to get to the built in examples


Revision of documentation to remove duplication of information

Signed-off-by: Taras Drozdovskyi<EMAIL_ADDRESS>Description
Removal of information that is duplicated
Type of change

[x] Documentation update

Checklist:

[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

@MoonkiHong Thank you for this and for other quick, constructive answers (reactions), you are an example for me of how a mentainer should work on an open source project!


Add instructions for install ast-tdl in Arch Linux

Closes #25 . Happy New Year's Eve.

Thanks @carlosal1015! Happy New year!


Fix ascii fast path optimization for functions with fixed width primitive output type

Fix https://github.com/facebookincubator/velox/issues/5792.

@laithsakka, there is a check failure. Could you help check whether it is related to this PR? Thanks!

Hi @laithsakka, all checks have passed. If you have any other comment, please kindly let me know. Thanks!

thanks!

Hi @laithsakka, there is still an internal check warning newly reported. Could you please check again?


Udev-event module integration with node-disk-manager to automatically update disk cr

Node-disk-manager will automate the management of the disk attached to the node. To automate management of disks node-disk-manager should be notified by udev-event module for two basic event disk attach and disk detach. Node-disk-manager will detect new disks attached to its node and create a Disk CR corresponding to the newly detected disk. In case this disk was moved from another node in the same cluster to this node, it should update the host-name associated with the disk.
libudev API calls will help to detect attach and detach event and get details info about attached or detached disk.

Fig - flow of libudev API calls to monitor device.

Fig - udev-event module integration with node-disk manager.
visual logs:

Pod log

shovan_maity@instance-1:~$ kubectl get pod
NAME                                   READY     STATUS    RESTARTS   AGE
node-disk-manager-l4759                1/1       Running   0          21s
shovan_maity@instance-1:~$ kubectl logs -f node-disk-manager-l4759
I0528 05:37:42.851717       1 ctrl.go:79] Started the controller
I0528 05:37:42.855474       1 server.go:39] Starting HTTP server at http://localhost:9090/metrics for metrics.
I0528 05:37:42.890649       1 ctrl.go:124] Created disk object in etcd : disk-0c296ae11848ba414852bc1070321c21
I0528 05:38:50.845132       1 event.go:69] Disk add event disk-ce41f8f5fa22acb79ec56292441dc207
I0528 05:38:50.854621       1 ctrl.go:124] Created disk object in etcd : disk-ce41f8f5fa22acb79ec56292441dc207

Describe disk

shovan_maity@instance-1:~$ kubectl describe disk disk-ce41f8f5fa22acb79ec56292441dc207
Name:         disk-ce41f8f5fa22acb79ec56292441dc207
Namespace:
Labels:       kubernetes.io/hostname=instance-1
Annotations:  <none>
API Version:  openebs.io/v1alpha1
Kind:         Disk
Metadata:
  Cluster Name:
  Creation Timestamp:  2018-05-28T05:38:50Z
  Resource Version:    48984
  Self Link:           /apis/openebs.io/v1alpha1/disk-ce41f8f5fa22acb79ec56292441dc207
  UID:                 6695393c-6239-11e8-9f65-42010a8e0003
Spec:
  Capacity:
    Storage:<PHONE_NUMBER>0
  Details:
    Model:   PersistentDisk
    Serial:  disk-1
    Vendor:  Google
  Path:      /dev/sdb
Status:
  State:  Active
Events:   <none>

~pkg/udev/udev.go is temporarily checked in once pr #48 got merged I will remove it.
TODO use common constant string~
For detail implementation details please follow Design doc.
Signed-off-by: Shovan<EMAIL_ADDRESS>

@AmitKumarDas  for enums/constants related comments I have removed them.

LGTM

/ lgtm

Codecov Report

Merging #47 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master    #47   +/-   ##
=====================================
  Coverage     7.1%   7.1%
=====================================
  Files           4      4
  Lines         197    197
=====================================
  Hits           14     14
  Misses        183    183

Continue to review full report at Codecov.

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

@AmitKumarDas , @pawanpraka1 please review.

Thanks, I will make one issue related to that and link it here.


With only a query and an optional operationName, how to know to call resolve or subscribe?

I get request with only query, operationName and variables, which I then need to feed to the proper service method: resolve for queries and mutations, and subscribe for subscriptions.
Is there any way to find what will be the effective "operation type"?
One of query, mutation or subscription (I'd like to distinguish mutations from queries as well).

Thank you!


fix: improved plugin behaviour

Hi,
I've wanted to create a plugin like that but i didn't have the time lately so i'm using your plugin.
I've spotted a couple of issues:

The plugin cannot match an exact remote URL
eg:

repos.setup({
  callbacks = {
    ["git@github.com:user/repo"] = function(root)
      -- This callback is never called inside the correct repo
    end
  },
})

The plugin can't handle properly a remote URL with the .git at the end
The plugin isn't considering that it can be run at the root of a bare repo (not in a worktree)

I've fixed all the issues listed above in this PR.

Hey, thanks for your contribution!

The plugin cannot match an exact remote URL

I cannot reproduce it. It does work for me with Neovim nightly version:
NVIM v0.9.0-dev-1226-g56998feeb-dirty
Build type: Release
LuaJIT 2.1.0-beta3

Do you think that there is a chance that the string.find() behavior differs?

The plugin can't handle properly a remote URL with the .git at the end

What do you mean by that? It just comes down to a string matching, so if your remote is git@github.com:TymekDev/repos.nvim and you provide URL with .git suffix in the config, then it won't match. The other way around the remote is a longer string, so there is more room to match against it.

The plugin isn't considering that it can be run at the root of a bare repo (not in a worktree)

Good catch! I didn't know git rev-parse works only in a worktree! That definitely is something worth addressing.

@to268 I have pushed an update utilising plain text matching using find. Could you check if the matching issues you have mentioned persist? And if they do, then please raise an issue and we will take the discussion about that there.

The PR has been automatically closed because i was messing with my fork.
Your update has fixed these 2 issues:

The plugin cannot match an exact remote URL
The plugin can't handle properly a remote URL with the .git at the end

I've opened a new PR for the bare repo fix at #3


Is this abandoned?

Just wanted to know if you're still working on this since its a cool project, you could even buy one of those dashboard screens and place it behind the wheel

It was finished 7 years ago as a feature complete project. It may still run today but no new features will be added.


Trainer.train() documentation for average_best_models default value is incorrect

📚 Documentation Improvement
In sg_trainer.py, the Trainer.train() docstring states that the default value for average_best_models is False:
- `average_best_models` : bool (default=False)

                    If set, a snapshot dictionary file and the average model will be saved / updated at every epoch
                    and evaluated only when training is completed. The snapshot file will only be deleted upon
                    completing the training. The snapshot dict will be managed on cpu.

As seen in params.py, however, the default is True:
"average_best_models": True,

Thanks for spotting this!


Feature/add friends

I fixed some bugs that I didn't notice before and the friends page is now finished. Good thing I didn't have to create new components for this page because I reused the ones from the search task.

When I add friend from searched people it adds and I can see him on my friends list. When I try to add another person the app goes blank. Is it meant to work like this at the moment?
Grid template issues below:

Ipad view below:

This is what shows on my laptop below, is 3 column sided to the left are desired effect?

The addFriend function in userSlice adds a dummy friend object. It doesn't add the result you click on. The page breaks because you are adding the same person twice, and the function is trying to add it again to the friends array in user state. That's what causes the problem.

I added a max value to the search result grid items in the grid template because on desktop, if there were one or two friends, they would take up all the available space and that doesn't look good.

I fixed the grid template for the search result items. It should now fit 4 items on laptop. The iPad view is a mystery to me. I could not see that on my browser.

I fixed the grid template for the search result items. It should now fit 4 items on laptop. The iPad view is a mystery to me. I could not see that on my browser.

Nice! In chrome the ipad view looks good. In firefox it seems not to be resposive on ipad view. I wonder how it looks on real ipad, perhaps it's all good

I usually use this website to test different viewports : http://whatismyscreenresolution.net/multi-screen-test?


SMB support?

I'm eager to try out this hack but unfortunately, my router only supports SMB. Is there a way to get SMB support? Can I install a package or something? Thank you for your work.

SMB may be too heavy.  Too much software and processing power required for smb
Which router do you have?

Yeah makes sense given the limited space on the cam. I have a netgear nighthawk rax38 router. It has a thing called readyshare which supports SMB, HTTP, and FTP. I would assume this would not be sufficient. Thanks for your help.

Don’t give up pstoebenau.  This is one of the reasons the author created this software is for folks to create custom-ish firmware.  Space is usually not an issue because you can use your SD card to store extra library’s, scripts, and binaries as needed. I find the camera firmware usually does not mess with anything on the SD card except under the /record directory and maybe a few other directories.  There are lightweight binaries for FTP, ssh, and curl out there.  I haven’t come across any for SMB, but then I haven’t really been looking, so who knows.  Given the flexibility of your router with the other protocols, you could probably script to do what you need using something other than SMB.  Good luck, but continue to ask questions if needed.

Thank you. I might look into it. I initially wanted to make a hls stream in order to have a better quality stream than the rstp firmware Wyze has.

Those are always welcome mods.  You have perked my interest to your ideas.

Instructions here tell you how to setup ftp which is in the list you said you could use.   https://github.com/HclX/WyzeHacks/issues/64#issuecomment-753556320

Instructions here tell you how to setup ftp which is in the list you said you could use.   https://github.com/HclX/WyzeHacks/issues/64#issuecomment-753556320

I understand the need of SMB however, that's beyond the scope of this hack. I'm closing this issue now.

I understand the need of SMB however, that's beyond the scope of this hack. I'm closing this issue now.


Replace regex DBC parser with nom

Replaces the BufReader::lines, FromStr-based parser with nom. This
allows for correct handling of entries containing quoted strings that
may themselves contain newline characters. All regex code is removed,
aside from some leftover Error types that will soon get removed as well.
Fixes #12.

Based on microbenchmarking PgnLibrary::from_dbc_file, nom is nearly twice as fast as the regex parser:
test bench_pgnlibrary_nom   ... bench:      57,540 ns/iter (+/- 7,563)

test bench_pgnlibrary_regex   ... bench:     107,870 ns/iter (+/- 7,709)

To be fair, my regex code could have used a fair amount of optimization. But the nom implementation is about as un-clever as it gets, since the goal of this PR is more about correctness than performance. So it is nice to see those gains without even really trying.


w64devkit and GNU Autotools

Over at https://github.com/rmyorston/busybox-w32/issues/297 we've been working on getting stuff that uses a configure script to build with w64devkit.
With a bit of hackery I've managed to get Expat to build. (Chosen as a guinea pig because it's included with w64devkit and it's quite small.)
GNU Autotools support for Windows platforms is mostly restricted to Cygwin/MSYS2. This sort of works for w64devkit (hence the hackery) but what's really needed is proper support for the w64devkit build environment.
Is there any interest in prodding the GNU Autotools people to do this?

I think it would be great if autotools could work using busybox-w32 shell and w64devkit tools.

GNU Autotools support for Windows platforms is mostly restricted to Cygwin/MSYS2. This sort of works for w64devkit...

What actually doesn't work? I presume semicolon path separator is not great, and/or possibly colon at absolute paths, and/or absolute paths don't necessarily begin with slash? (and something with uname?)
It was mentioned before, but allowing some prefix as virtual root and make all the paths normal posix paths can help a lot in many things which don't expect windows path [separator], in addition to taking colon path separator.
Something like /bbdrive/c/whatever, similar to /cygdrive/...
The git-for-windows busybox-w32 downstream fork already has such changes (check the busybox.exe binary inside one of the "MiniGit-2.xxx-busybox...zip" downloads of the Git project).

Interesting, what did it take to get the Expat build working? In the past
I've only observed configure scripts immediately fail and gave up on the
idea. I tried it just now with Expat using FRP-4882-g6e0a6b7e5, and after
supplying --build it does indeed seem, as avih mentioned, semicolon path
separation is the first issue, based on the output from running the
configure script with "sh -x". I guess you either faked a colon-delimited
PATH for the configure script or hacked something into busybox-w32?
It would be nice, especially if it opens the doors to bootstrapping more
of w64devkit on itself, which is currently limited to busybox-w32, Vim,
Universal Ctags, Cppcheck, PDCurses, GNU Make, and u-config. It's a lot
easier to debug issues in tools I can build natively, so I don't need to
go back and forth cross-compiling between tests. (This has been a serious
impediment debugging GDB itself, for instance.) Otherwise it's not a big
deal for me personally.
Is there anything we could do the other way, to make the environment more
tenable for Autoconf scripts? It would be convenient if existing configure
scripts worked rather than wait for Autoconf support to percolate, which
would take years. The Autoconf on my laptop is over a decade old (2.69),
and I'm running the latest Debian, so that's potentially a very long time
to wait. This adaptation could perhaps take the form of an ash Autoconf
compatibility mode, or a shell wrapper through which configure scripts are
invoked (including recursive invocations).
$ sh --autoconf ./configure --prefix=...
$ acrun ./configure --prefix=...

I imagine these would, at the very least, provide a colon-delimited PATH
for just the script itself, but not for any programs it runs besides shell
built-ins. Maybe it would even need to virtualize the filesystem into
something more unixy just for the script? Though at that point maybe it's
just time to use MSYS2/Cygwin instead.

The details are in the busybox-w32 issue mentioned above. The tl;dr is that it's a stock w64devkit but you need to source this script before running configure:
export PATH_SEPARATOR=';'
export ac_executable_extensions='.exe'
export build_alias="$(uname -m)-pc-mingw64"

if [ -f configure ]
then
    echo "Converting configure..."
    sed -i 's/func_convert_file_msys_to_w32/func_convert_file_noop/' configure
fi

Doh! I went diving in and forgot you had provided a link.
It seems perfectly reasonable to set these three variables as indicated in
w64devkit.exe if not already set. The first one seems like a good idea
even without considering Autoconf. I found I could skip the sed step by
also exporting lt_cv_to_{host,tool}_file_cmd to that noop. If that works
generally then all can be accomplished using environment variables.

I just tried Binutils, and it has func_to_host_path{list,} that hardcodes
two more "cmd //c" but this time behind a mingw case at "run time". If I
fix them manually (across each libtool copy) then it builds successfully.
I wonder if there's a more general solution: a cmd.exe in w64devkit that
filters any "//c" before invoking the real cmd.exe. Or alternatively do it
in ash.

I'm guessing they manage to upstream this behavior into autotools (or only their autogen?), based on the uname value

Indeed. uname -s reports MINGW64_NT-10.0-19044 in a mingw64 environment and MINGW32_NT-10.0-19044 in mingw32. Cygwin says CYGWIN-10.0-19044. These values are recognised by autotools.
For comparison, busybox-w32 uname -s says Windows_NT. The string can be changed using the configuration option CONFIG_UNAME_OSNAME (one of my self-serving upstream contributions). w64devkit could, perhaps, use that capability to masquerade as mingw64/32 and avoid the need to set build_alias.
@skeeto Excellent progress on those builds! This looks very promising.

I do wonder though why they use cmd to begin with?
Is there some functionality which cmd.exe can do and standard posix (/busybox/cygwin/msys2) tools cannot?
Presumably, if they apply the cmd //c ... MSYS2 hack then they do know that the environment should have the standard tools (like rm instead of DEL, etc).
So why cmd at all?

Presumably, if they apply the cmd //c ... MSYS2 hack then they do know that the environment should have the standard tools (like rm instead of DEL, etc).
So why cmd at all?

I was puzzled by that too. The only cases I've seen where this is used are of the form:
( cmd //c echo "$VAR" ) 2>/dev/null | sed ...

A subshell to run cmd to echo a variable?
This message  from the author of the patch which added the cmd says:
You'd end up calling func_msys_to_mingw, which relies on the msys "magic" path
conversion logic:

( cmd //c echo "$1" )

MSYS (but not cygwin) notices that cmd is a native win32 program, and
that there is a path-like argument "$1". MSYS (but not cygwin) will then
automatically convert $1 to DOS format, before spawning the cmd process
-- which echos the converted path to stdout, where we can grab it. MSYS
(but not cygwin) also turns '//c' into '/c' (the extra slash means
"don't use the MSYS mount table to convert this "path") -- this is how
you pass win32-style switches to native programs. IIRC, there's some
complicated logic to determine whether a given argument that begins with
two slashes is a "switch" like /EHsc or a unix-format SMB path like
//server/share/path/to/file.

It seems cmd is being used to trick MSYS into converting the path to DOS format. We don't need to do that, so if the wrapper detects the //c echo case could it just echo the path itself without invoking cmd at all?

Alternatively, maybe they do have some simple mode which doesn't rely on MSYS2 hacks,

Cygwin doesn't depend on MSYS2 hacks.
Using build_alias=x86_64-pc-cygwin works to build Expat. It doesn't need to work around the cmd //c issue. But you end up with cygexpat-1.dll rather than libexpat-1.dll.

Using build_alias=x86_64-pc-cygwin works to build Expat. It doesn't need to work around the cmd //c issue. But you end up with cygexpat-1.dll rather than libexpat-1.dll.

Hmm.. that's a but hacky I think, and it's possible IMHO that some things could break either during configure or the actual build later, even if they didn't for expat.
However, it seems that, at least for expat, the env vars and the cmd //c thing are enough, so a script like this, saved at the PATH as e.g. bbconf or w64dkconf or whatever, can streamline this conversion without actually touching the original configure file, and also supports arguments, e.g.
bbconf ./configure --host=whatever --prefix=whatever

The script:
#!/bin/sh

# run autotools "configure" script in w64devkit env, using busybox-w32 sh,
# utilizing the MSYS2 MINGW code paths, and work around the following:
# - export some env vars which bypass the detection by "configure".
# - "cmd //c ..." is replaced with "cmd /c ...". originally //c works around
#   MSYS2 auto args copnversion to get "/c" - not needed with busybox-w32.
# The modification is written to a temporary file at the same dir, which is
# deleted [before startup and] after it's invoked.

echo() { printf %s\\n "$*"; }

error() {
    [ "${1+x}" ] && >&2 echo "${0##*/}: $*"
    >&2 echo "Usage: ${0##*/} path/to/autotools-configure [ARG...]"
    exit 1
}

[ "${1-}" ] || error
[ -e "$1" ] || error cannot find file -- "$1"

conf=$1
bbconf=$conf.bb.tmp
rm -f -- "$bbconf" || error "cannot remove file -- $bbconf"

shift

# The following might be needed too in some cases, but currently not applied
#   's/func_convert_file_msys_to_w32/func_convert_file_noop/'

sed -e 's/cmd \/\/c/cmd \/c/g' < "$conf" > "$bbconf" \
    || error "cannot create file -- $bbconf"
chmod +x "$bbconf"

export PATH_SEPARATOR=';'
export ac_executable_extensions='.exe'
export build_alias="$(uname -m)-pc-mingw64"

"$bbconf" "$@"

e=$?
rm -- "$bbconf"
exit "$e"

Unfortunately fixing the root configure script is often insufficient,
which is what lead to my cmd.exe wrapper idea. Namely that approach
doesn't handle:

recursive configure, common in GNU, including Bintutils, GCC, and GDB
instances of "cmd //c" outside configure scripts

Binutils, for instance, has both. Its root configure script recursively
runs 14 other configure scripts. These each generate a "libtool" script
via "ltmain.sh" which has the actual hard-coded instance of "cmd //c". A
fix-up script would need to be able to figure this out.

Here's a patch to busybox-w32 ash to intercept commands with exactly the form cmd //c echo arg and replace them with the internal echo. Its action is unconditional at the moment. We might want it only to take effect when running a configure script. Or we might not bother.
diff --git a/shell/ash.c b/shell/ash.c
index 742067216..886498640 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -8970,6 +8970,21 @@ static int builtinloc = -1;     /* index in path of %builtin, or -1 */
 static void
 tryexec(IF_FEATURE_SH_STANDALONE(int applet_no,) const char *cmd, char **argv, char **envp)
 {
+#if ENABLE_PLATFORM_MINGW32
+   int a;
+
+   if (strcmp(argv[0], "cmd") == 0 &&
+           argv[1] && strcmp(argv[1], "//c") == 0 &&
+           argv[2] && strcmp(argv[2], "echo") == 0 &&
+           argv[3] && !argv[4] && (a = find_applet_by_name("echo")) > 0) {
+       argv += 2;
+       cmd = "echo";
+#if ENABLE_FEATURE_SH_STANDALONE
+       applet_no = a;
+#endif
+   }
+#endif
+
 #if ENABLE_FEATURE_SH_STANDALONE
    if (applet_no >= 0) {
 # if ENABLE_PLATFORM_MINGW32

Here's a patch to busybox-w32 ash ...

I didn't try that, but (together with the exposted env vars) I did try a cmd shell script wrapper - which didn't work (./configure completes, make has some errors). I'm guessing it searches for cmd.exe.
So I tried the same shell script, this time saved as cmd.exe:
#!/bin/sh

# save me as "cmd.exe" and place it early in PATH

# autotools assumes MINGW setup uses MSYS[2] env, and uses "cmd //c echo..."
# to invoke "cmd /c echo..." (MSYS converts //c into /c for windows prog args).
# this breaks in busybox-w32 sh, so replace the //c with normal /c

# only handle exactly cmd //c echo...
# could be enhance for more cases, but for autotools this seems enough
# and without breaking "cmd.exe" arguments in general
case ${COMSPEC-} in *\\cmd.exe)
    if [ "${1-}" = //c ] && [ "${2-}" = echo ]; then
        shift
        set -- /c "$@"
    fi
esac

exec "$COMSPEC" "$@"

And this does seem to work.
I'm guessing this could break with unicode paths, but then again, if unicode paths are used then I'm guessing it would break elsewhere too regardless of this cmd.exe wrapper, because currently all busybox-w32 tools and sh don't support unicode paths.

@skeeto
Does everything work with the latest busybox changes?

I tried building gcc 14.2 with w64devkit 2.0 (note: I built gmp, mpfr, mpc on linux and copied them over, I didn't feel like sorting out m4)
It failed late in the build in libstdc++, not sure why. It's not all the way there, but it's pretty close. I never would have thought w64devkit would get anywhere, it's cool.


Laravel 11.x Compatibility

This is an automated pull request from Shift to update your package code and dependencies to be compatible with Laravel 11.x.
Before merging, you need to:

Checkout the l11-compatibility branch
Review all comments for additional changes
Thoroughly test your package

If you do find an issue, please report it by commenting on this PR to help improve future automation.

:warning: The latest version of Laravel has a dependency for phpunit/phpunit of ^10.5. If you would like to also upgrade your tests, you may run the PHPUnit 10 Shift for free.

:alembic: Using this package? If you would like to help test these changes or believe them to be compatible, you may update your project to reference this branch.
To do so, temporarily add Shift's fork to the repositories property of your composer.json:
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/laravel-shift/discord.git"
        }
    ]
}

Then update your dependency constraint to reference this branch:
{
    "require": {
        "laravel-notification-channels/discord": "dev-l11-compatibility",
    }
}

Finally, run: composer update

+1

Anyone kind enough to merge this?

Could someone PR to fix the tests please


implement upower module

There are a couple of issues:

I want to use the popup to show additional details like time to empty/full and battery levels of other connected devices like bluetooth headphones. I've hardcoded the function for now but nothing happens when I click the module

upower will tell me what icon to use depending on battery level and whether it is plugged in, how do I implement this? I did     format: "icon:{icon} {percentage}%" in config.yaml but that doesn't seem to work

Broadly it seems to work fine

@JakeStanger pinging you because I don't think you get notified of draft prs

I do get notified actually :)

You need a gtk::Button inside the widget which sends an open command on click. See how I'm doing it here:
https://github.com/JakeStanger/ironbar/blob/d4dd8c41ea54575173f045740991d8ff0e735211/src/modules/clock.rs#L68-L74

It looks like upower just returns the name and there's aren't actually attached to icons anywhere, but rather left to the implementer (that's us!). I would suggest adding a map into the config option like music does https://github.com/JakeStanger/ironbar/blob/d4dd8c41ea54575173f045740991d8ff0e735211/src/modules/music/config.rs#L79-L81 and then using an icon label https://github.com/JakeStanger/ironbar/blob/d4dd8c41ea54575173f045740991d8ff0e735211/src/modules/music/mod.rs#L454 to let users choose any text/gtk icon/image they want. You can then pick some sensible defaults from nerd fonts. This implementation does mean you cannot add the icon to the formatting, and instead it will need to be hard-coded to the start/end, but I think that's fine.

I appreciate that's fairly involved, so give me a heads up if you get stuck.

The name of the icon is an actual icon in adwaita so I wanted to just pick that icon instead of making it configurable, this is what waybar does as well

Ah okay, that's handy. I think most of the above still applies. You can use new_icon_label and pass it the icon name prefixed with icon: (so like icon:battery-good-charging-symbolic) and it will automatically resolve the image from the icon theme for you. That also means it could be configurable to override the theme default in the future.

Is there anything blocking the merge of this? If help is needed, I can help out. I would love to see this in ironbar!

@yavko I can't get icons to work

Feel free to push your latest version up (might be wise to rebase onto master to get the latest changes) and I can have a look :)

The conflict is in Cargo.lock which I'm not sure how to handle, I haven't worked on this after the last push

So long as the cargo.toml is fine, you can do whatever with the merge, then just delete cargo.lock and regen to ensure it generates a new valid lock.
I'm not sure if that's necessarily best practise but it's the easy way lol - I'll just double check it when we get to review stage.

@JakeStanger done

oh sorry it doesn't compile

fixed it

Now I'm looking at it, using new_icon_label here is a bit more fiddly than I would have liked, so might not be the best path. Luckily it's fairly simple so we can replicate the needed behaviour in a few lines.
What you should able to do here instead is create an image widget and add it to your container:
let icon = gtk::Image::new();
// ...set up/add widget...

Then inside your callback where you get the icon name, you can pass it (still in the icon:name format) to ImageProvider::parse to load the new icon into your image widget.
if let Err(err) = ImageProvider::parse(input, icon_theme, size)
            .and_then(|provider| provider.load_into_image(icon) {
    error!("{err:?}");
}

I'd advise caching the previous icon name to avoid re-loading the same image over and over, but we can get to bits like that when you're ready for a full review.

the icon is wrong:

I don't have a device with a battery that I can test this against, but on my desktop the correct battery-missing-symbolic icon is showing.

should i retry if connecting to the system bus (or anything in the dbus initialization portion) fails?

the icon was fine, it was just black on black.

should i retry if connecting to the system bus (or anything in the dbus initialization portion) fails?

I don't think so. I think if DBus ever fails to connect, that's a much greater problem that retrying probably won't fix, so the best action is probably to just log the error and exit (expect is probably fine in that case)

I just wanted to comment, I see you are using the icon from upower, which makes sense, but honestly, I think the icon it gives it pretty misleading sometimes, I know this is extra code, but it provides a more accurate icon, in case you want to see how I did it in the past. Not sure if this icon is in all icon packs, but after checking seems it's in papirus and adwaita, and breeze too, it just has a leading zero on all the numbers, so actually maybe this isn't the best idea, as it'd have to be checked at runtime. (also, this was written with an older version of upower_dbus, so I don't know if BatteryState still exists, or works the same)
fn get_icon_name(status: BatteryState, capacity: u64) -> String {
    let suffix = if status == BatteryState::Charging {
        "-charging"
    } else {
        ""
    };

    let cap: u8 = match capacity {
        0..=9 => 0,
        10..=19 => 10,
        20..=29 => 20,
        30..=39 => 30,
        40..=49 => 40,
        50..=59 => 50,
        60..=69 => 60,
        70..=79 => 70,
        80..=89 => 80,
        90..=99 => 90,
        100 => 100,
        _ => 0,
    };

    format!("battery-level-{cap}{suffix}-symbolic")
}

@p00f Thanks for all your work. I'm gonna complete the last few bits & add the docs, then get this merged.
@yavko That sounds good to me. I'll merge the current implementation for now, but if you want to follow up with a PR that adds your icon method, falling back to the upower icon if it's not present in the theme, that would be fantastic (if not that's cool too ofc, I'll add it to the todo list)


[Question] Understand how to solve the circular dependency issue with Contexts

I have two Contexts.

User context
Authentication context
I have both of them dependent on each other. Eg: signout is in auth. But create user is dependent on authentication as it has to set user as authenticated after getting the user. And authentication context would have to set user on the user context after login. But the application throws an error as the order in which the application is wrapped can be either be in one way like

<AuthContainer.Provider>
      <UserContainer.Provider>

or
<UserContainer.Provider>
  AuthContainer.Provider>

And this would throw an error like this

I would like to know if there is any way to solve this.

move auth logic into UserContainer


fix(migrating-to-v3): fix mark down to ensure correct highlighting

Description
by adding quotes we fix the highlighting of the markdown in the documentation

Related issue(s)
Resolve #3007

Summary by CodeRabbit

Documentation

Updated migration guide to AsyncAPI v3, highlighting significant breaking changes and new structures.
Clarified modifications to metadata, operations, and message handling in the new version.
Enhanced usability by simplifying parameters and security configurations.

@GuillaumeGayot can you please add the docs prefix in the title

/update


Post-deploy graphql get-schema doesn't generate files

I have configured my post-deploy hook to update my database schema automatically. Unfortunately, the files are not being generated. Here is my config:
endpoint: http://localhost:4466
datamodel: datamodel.graphql
hooks:
  post-deploy:
    - graphql get-schema -p prisma
seed:
  import: ./seed.graphql

and the output of prisma deploy

> prisma deploy
Deploying service default to stage default to server local 111ms
Service is already up to date.
post-deploy:
Running graphql get-schema -p prisma √

As you can see logs show success but it's not true.
Running graphql get-schema -p prisma manually works and generates files

OS Windows 10
prisma/1.13.5 (windows-x64) node-v8.9.4
prisma server 1.13

Same problem here, but I dont have the codegen part, since I am assuming thats only for typescript user?

I followed the guide here https://www.prisma.io/docs/develop-prisma-service/service-configuration/data-model-knul/
Under one of the section
.graphqlconfig.yml

project:
  db:
    schemaPath: prisma.graphql
    extensions:
      prisma: prisma.yml

example was given, for the longest time I could not figure out why the schema file was not generating for me. It seems that the "project" heading has to be "projects"

@niba did you find a solution? I ran into the same problem as you yesterday and haven't found a solution yet.

@tzjoke nope, I decided to not use Prisma and graphql because Prisma doesn't support interface inheritance and unions and all of my issues that I reported have been closed by the stale bot

I'm having this issue now. Prisma was working fine along with my post-deploy hook graphql get-schema -p prisma, but since yesterday it just doesn't update the generated file.
This is my .graphqlconfig.yml file:
projects:
  app:
    schemaPath: "src/schema.graphql"
    extensions:
      endpoints:
        default: "http://localhost:4444"
  prisma:
    schemaPath: "src/generated/prisma.graphql"
    extensions:
      prisma: prisma.yml

And this is my prisma.yml:
endpoint: ${env:PRISMA_ENDPOINT}
datamodel: datamodel.prisma
secret: ${env:PRISMA_SECRET}
hooks:
  post-deploy:
    - graphql get-schema -p prisma

I haven't changed those files at all, nor have I changed my prisma version or anything similar.

Alright I fixed it based on this answer: https://github.com/prisma/prisma/issues/3469#issuecomment-455955230
I had to change my prisma.yml to:
endpoint: ${env:PRISMA_ENDPOINT}
datamodel: datamodel.prisma
secret: ${env:PRISMA_SECRET}
generate:
  - generator: graphql-schema
    output: ./src/generated/
hooks:
  post-deploy:
    - graphql get-schema -p prisma
    - prisma generate

In prisma 1.34, the solution shared by @evenmed will throw Error: output for generator graphql-schema should be a .graphql-file.
Replace output: ./src/generated/ with output: ./src/generated/prisma.graphql to avoid the error.


YARP Service discovery: do not set host header unless explicitly set in config

Description
The issue is that we set the host header everytime with the short service name: if we do service discovery and find the "real" endpoint behind, we should let HttpClient set the host header wit the correct value, instead of forcing the authority of the short url.
Fixes #4605
Checklist

Is this feature complete?

[X] Yes. Ready to ship.
[ ] No. Follow-up changes expected.

Are you including unit tests for the changes and scenario tests if relevant?

[X] Yes
[ ] No

Did you add public API?

[ ] Yes

If yes, did you have an API Review for it?

[ ] Yes
[ ] No

Did you add <remarks /> and <code /> elements on your triple slash comments?

[ ] Yes
[ ] No

[X] No

Does the change make any security assumptions or guarantees?

[ ] Yes

If yes, have you done a threat model and had a security review?

[ ] Yes
[ ] No

[X] No

Does the change require an update in our Aspire docs?

[ ] Yes

Is this introducing a breaking change?

[ ] Yes

Link to aspire-docs issue (please use this breaking-change template):

[ ] No

Link to aspire-docs issue (please use this doc-idea template):

[X] No

Microsoft Reviewers: Open in CodeFlow

/azp run


Add dead letter queue for broken messages

[ ] Follow Rahul's instructions here: https://github.com/getsentry/snuba/pull/2806
[ ] Add the queue.

Again wrong repo... oops!


BabyAGI - connect to vector store

Hi,
I'm trying to connect BabyAGI to Chroma or Pinecoine without luck.
Has anybody else the same problems?
Bart

you should be able to connect to Pinecone no?


add new example: stopwatch

A stopwatch is implemented in this example.
This example is not complete. I managed to make the textbox update the elapsed time every second, but haven't figured out how I can pause or stop the stopwatch. @gyscos any suggestions?

One solution is not to use a thread at all; instead, a structure will hold:

The current status (paused or running)
The current elapsed time
The time of last_update.

Then:

To read the time: if status is paused, return elapsed. Otherwise, return elapsed + now - last_update.
To pause the timer, update elapsed with the formula above, then change the status.
To resume the timer, just update the status.

Thank you for the help! I've now made the timer to start/pause/resume by responding to pressing "Space". It's the first time I implement a View so I ran into some problems.
I also want to implement stop and on_stop which mirror SelectView's submit and on_submit. However, if I write
       fn stop(&mut self) -> EventResult {
            self.pause();
            let cb = self.on_stop.clone().unwrap();
            // We return a Callback Rc<|s| cb(s, &*v)>
            EventResult::Consumed(Some(Callback::from_fn(move |s| {
                cb(s, self.elapsed)
            })))
        }

I get the error:  `self` has an anonymous lifetime `'_` but it needs to satisfy a `'static` lifetime requirement. How can I get around this?

I think when you write self.elapsed in the move closure, it tries to move self.
Instead, define let elapsed = self.elapsed; before, since it's Copy it should let the closure move just the elapsed time, leaving self alone.

I think when you write self.elapsed in the move closure, it tries to move self.
Instead, define let elapsed = self.elapsed; before, since it's Copy it should let the closure move just the elapsed time, leaving self alone.

Exactly! Thank you!

Adding the 'lap time' functionality might make this example too complicated. Instead, I am going to implement a fully-fledged TUI clock utility in a separate crate.

I realized that EventResult::with_cb cannot act as the shortcut for EventResult::Consumed(Some(Callback::from_fn_once(...))) and I have to use the latter form.
Now, this example pretty much works as I expected! Thank you so much for the guidance!

Thanks!
A dedicated crate for more features sounds like a great idea. This way we can simplify the example to the minimum, and it'll be a teaser for your library :p

Thank you for all the help! I've simplified the example. Meanwhile, I've implemented the basic countdown timer in my crate.

I think we can simplify a bit further the example - let's focus on one feature (a stopwatch) and look for the minimal example demonstrating this.
For example: https://gist.github.com/gyscos/67910f22e304214eaef00157faecb2ce

Cool, I've adopted your changes. Thank you!

Great! I think you just need to rebase to resolve the readme conflict.

Looks good now


A few languages are not translated properly in the language list

In think about "fu" and "sh". Why? Can we do something about it?

@kelson42 there's no category index page like https://phet.colorado.edu/fr/simulations/category/physics for these languages. So, get logic falls back to english with message:
2020-03-30 18:38:22 [warn]:     The following (2) language(s) will use english metadata: fu, sh

I guess we can follow some other way (like #85) but I'm not sure this would be a priority at the moment. However, you're a captain ;)

Transforming the language ISO code to the language name in the language should IMO be done via a npm package.

Ah, yes. I just misunderstood so I was talking about the ways to get the categories tree for the languages which haven't translated originally.
Regarding of this task, sure, that's doable.

To me not fixed in https://download.kiwix.org/zim/phet/phet_mul_2020-04.zim


Use Protobuf compiler insertion points

In this PR we allow the users to base their code generation on the insertion points created by the Protobuf compiler.
Previously, to use those points, users had to define a ProtoData insertion point to mirror the native insertion point.
Now we can just find the native insertion point in a code file.

@armiol, PTAL.


Avoid use of deprecated apt-key in Linux installation documentation

Please fill out the issue checklist below and provide ALL the requested information.

[x] I reviewed open and closed github issues that may be related to my problem.
[ ] I tried updating to the latest version of the CF CLI to see if it fixed my problem.
[ ] I attempted to run the command with CF_TRACE=1 to help debug the issue.
[x] I am reporting a bug that others will be able to reproduce.

Describe the bug and the command you saw an issue with
Linux installation documentation suggests setup of Cloud Foundry Foundation public key using apt-key tool that was deprecated. See relevant manpages.
Repository search for apt-key shows 3 references in the project files and 3 in Wiki pages.
What happened
Usage of deprecated apt-key causes warnings both during installation and further apt usage.
Expected behavior
Installation documentation should not guide users to use deprecated tools.
Exact Steps To Reproduce
Follow Linux installation instructions and observe warnings due to apt-key usage.
Provide more context
This problem was already mentioned in an issue that was closed by the reporter:

https://github.com/cloudfoundry/cli/issues/2218

Related Ask Ubuntu question:

https://askubuntu.com/questions/1328806/how-to-solve-apt-key-deprecated

Hi, thank you for your submission. The wiki has been updated to not use apt-key


Amplify publish failed - Missing cloudfront permission for user

Before opening, please confirm:

[X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v17.3
Amplify CLI Version
7.6.19
What operating system are you using?
Macos
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
None
Amplify Categories
hosting
Amplify Commands
publish
Describe the bug
Created user through config walkthrough.   This created a user with [AdministratorAccess-Amplify] policy.  Pulled existing backend.  Add hosting using S3 and production.
Publish started for S3AndCloudFront
An error occurred during the publish operation: User: arn:aws:iam::xxx:user/xx is not authorized to perform: cloudfront:GetCloudFrontOriginAccessIdentity on resource: arn:aws:cloudfront::xx:origin-access-identity/xx because no identity-based policy allows the cloudfront:GetCloudFrontOriginAccessIdentity action
Added CloudFrontFullAccess policy to user and the publish succeeded.
Expected behavior
No error.
Reproduction steps
amplify configure
create new user
amplify pull existing
amplify add hosting
s3 production
amplify publish
GraphQL schema(s)

# Put schemas below this line

Log output

# Put your logs below this line

Additional information
No response

Hi, I've faced this issue and resolved it by the following way.

Open IAM Management Console
Create policy with service: cloudfront and action: GetCloudFrontOriginAccessIdentity
Attach the policy to user that be used in amplify cli ( default user name is amplify-xxxxx )

Hey @ktmdan and @daichi-yamauchi :wave: thanks for raising this! I was able to successfully reproduce by using the following steps:

create a new project with amplify init -y using a profile with AdministratorAccess-Amplify
create a sample index.html file at dist/index.html
create a sample build command
amplify add hosting > s3 PROD
amplify publish
observe error

As noted this can be mitigated by providing an inline policy to the created IAM user:
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "cloudfront:GetCloudFrontOriginAccessIdentity"
            ],
            "Resource": "*"
        }
    ]
}

Although this policy is available in the managed policy, the condition requires the call to originate from CloudFormation which is causing the CLI to error on publish
{
    "Sid": "CLIManageviaCFNPolicy",
    "Effect": "Allow",
    "Action": [
        // ...
        "cloudfront:GetCloudFrontOriginAccessIdentity",
        // ...
    ],
    "Resource": "*",
    "Condition": {
        "ForAnyValue:StringEquals": {
            "aws:CalledVia": [
                "cloudformation.amazonaws.com"
            ]
        }
    }
},

Marking as a bug 🙂

Is there any workaround for this? Thought i'd try some tutorials to learn but hit this almost immediately :(

Just rebuilding a backend using the latest Amplify CLI release and a bit shocked to hit this issue.
A bit concerning that a regression on a primary workflow like this one gets through to mainline release and much more concerning that this primary amplify workflow has been broken since at least Mar 4.
Mitigation aside, wouldn't any defect against out-of-the-box core functionality be a P1 must-fix-now type of defect? And how can primary flow be broken for what will soon be 3 months?
Nevertheless, I appreciating greatly that the CLI has improved immensely over the last year. Keep going!

Any updates on this issue?

A temporary mitigation to this issue is to manually add the policy on IAM.
The easiest way is to add the following JSON to the inline policy
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "cloudfront:GetCloudFrontOriginAccessIdentityConfig",
                "cloudfront:GetCloudFrontOriginAccessIdentity"
            ],
            "Resource": "arn:aws:cloudfront::xxxxxxxxxxxx:origin-access-identity/*"
        }
    ]
}


[RFC] EventStream logs of a custom action

Status: Open for comments

Need
I would need some more information on creating a custom action, I have seen the docs but still cannot understand properly how to implement it in my Backstage instance. The stream logs that this custom action generates how to pass it into the frontend. I gues that the scaffolder backend plugin does it all through the context but I still don't know how to do it.
Lets say that this custom action does a lot of things out of the backstage backend, image it sends API requests to some API REST. How to get the callback and prompt the logs into the frontend, specifically in the EventStream section of the Task when creating a component.
If anyone can clarify a bit how this all works, I would appreciate! 👍
Thanks! :)

The actions have access to a logger through the context. See the section on writing actions in the docs. Those are the logs that get streamed to the frontend when you watch a scaffolding task run.


Investigate "validator forgot a certificate they signed before" issue.

When running tests [1], we get
2024-11-28T12:04:40.529396Z  WARN linera::main: linera_core::remote_node: Validator 95fe9f76cdcd8e364033eb330babad3d0b9421b50bd8ad389a3f29d7b50ebe50 forgot a certificate value that they signed before
2024-11-28T12:04:40.529483Z  WARN linera::main: linera_core::remote_node: Validator 02a9b7afb957f4d54490cd808d6f41880b763cc853c588b7f9e2788c80de2d5c forgot a certificate value that they signed before
2024-11-28T12:04:40.529595Z  WARN linera::main: linera_core::remote_node: Validator 8f00a9a78f77041752d58605400d50aea4167c1ae6f02de4e1e5e32e7f9e2659 forgot a certificate value that they signed before
2024-11-28T12:04:40.529667Z  WARN linera::main: linera_core::remote_node: Validator f83b11500e9874d20d6cfe020def3f004949cb1653ae045755b7cc59f7785200 forgot a certificate value that they signed before

We need to investigate why and fix.
[1] In my case it was
cargo run --release -p linera-storage-service -- memory --endpoint $LINERA_STORAGE_SERVICE &\
  cargo test --features storage-service,unstable-oracles -- storage_service_tcp --nocapture

It looks like after create_final_vote we're not caching the signed ConfirmedBlock value.
(In vote_for_block_proposal we cache everything as expected.)

Running linera benchmark also spews out a lot of these pretty consistently

I think the executed block cache isn't working at all:
We insert executed block based on the hash from Hashed<ExecutedBlock>, but then we look them up based on Hashed<ConfirmedBlock> or Hashed<ValidatedBlock>, which are different?

I actually don't see us doing it for create_final_vote 🤔 and I have code locally adding it, and the warnings go away for linera benchmark

Really??
I think it's being inserted here: https://github.com/linera-io/linera-protocol/blob/69268f8b1eb8791f05335a4f5b2bd7b1c9fae90a/linera-core/src/chain_worker/state/attempted_changes.rs#L212
And I'm pretty sure the root cause is that we're using the wrong hash. (@deuszx can probably confirm.)

Actually nevermind, I was accidentally hitting the wrong network as I was testing something else. My bad for the false alarm!


Add completion for Scala

sbtserver now supports completion for Scala. It would be great to add support for this in ALE.
I would be happy to work on this with a little guidance. It's my first time working on a large VimL project. I am not sure where to start implementing this. I couldn't seem to find an example of hooking into the LSP completion engine for a specific language.

It should just work, but the completion code needs to be changed at some point to take completion trigger characters from the server.

I get omnifunc is not set in all Scala buffers. However, I do get ALE completion for JavaScript, Go and Haskell.

I'm having the same issue.
channel.log


Allow record service parsing of password with special characters

Allow record service parsing of password with special characters except double quote

looks good, thanks!


Request for information about the policy according to future updates

Hello! Currently my team launches a start-up and we need to use L2 private network.
As far as Lighthouse is not supporting private networks anymore and in open words recommend to use Kurtosis for private networks instead: https://github.com/sigp/lighthouse/issues/6123.
We currently thinking about choosing kurtosis as our production approach, but a single thing our strategy team worries about is upgrading network with future forks.
How would we be able to merge future forks with Kurtosis?
Thanks!

Kurtosis is not meant to be ran as a production software. We plan to keep the ethereum-package as up to date as possible with future ethereum forks. Ideally none of the future releases will break anything major, however there is no assurance for this.


Issue with i2c setup

Hello
I am trying to use this cool library on a raspberrypi 4b with circuitpython. I have two other sensors connected on the i2c working ok.  My circuitpython i2c interface is setup like so:
import json
import socket
import time

import adafruit_scd30
import adafruit_sht4x
import board

i2c = board.I2C()
sht = adafruit_sht4x.SHT4x(i2c)
scd = adafruit_scd30.SCD30(i2c)

So adding the code for sps30 looks like this:
import json
import socket
import time

import adafruit_scd30
import adafruit_sht4x
import board

import sys  # this is not working - greyed out
from sps30 import SPS30

i2c = board.I2C()
sht = adafruit_sht4x.SHT4x(i2c)
scd = adafruit_scd30.SCD30(i2c)

# sps dust sensor setup
if __name__ == "__main__":
    pm_sensor = SPS30(i2c)
    print(f"Firmware version: {pm_sensor.firmware_version()}")
    print(f"Product type: {pm_sensor.product_type()}")
    print(f"Serial number: {pm_sensor.serial_number()}")
    print(f"Status register: {pm_sensor.read_status_register()}")
    print(
        f"Auto cleaning interval: {pm_sensor.read_auto_cleaning_interval()}s")
    print(f"Set auto cleaning interval: {pm_sensor.write_auto_cleaning_interval_days(2)}s")
    pm_sensor.start_measurement()

This throws an error, because I guess its referencing a different I2C setup in your files?
Traceback (most recent call last):
  File "/opt/piMonitor_env/airmonitor.py", line 111, in <module>
    pm_sensor = SPS30(i2c)
  File "/opt/piMonitor_env/sps30.py", line 50, in __init__
    self.i2c = I2C(bus, address)
  File "/opt/piMonitor_env/i2c/i2c.py", line 11, in __init__
    self.fr = io.open("/dev/i2c-"+str(bus), "rb", buffering=0)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/i2c-<busio.I2C object at 0x7f86cf22b0>'

Any ideas how to use circuitpythons i2c setup?

It seems both adafruit_sht4x.SHT4x and adafruit_scd30.SCD30 require I2C object while the SPS30 requires optional I2C bus number as input. Assuming the SPS30 sensor is connected on bus 1, you may leave the SPS30 argument blank, i.e. SPS30(). If it is connected to an I2C bus other than bus 1, let say bus 2, pass the bus number as an argument when you initialize the SPS30, e.g. SPS30(2)
if __name__ == "__main__":
    pm_sensor = SPS30() # leave the argument blank if the sensor is connected to bus 1
    print(f"Firmware version: {pm_sensor.firmware_version()}")

Please give it a try and see whether it fixes the problem.

Leaving the argument blank got it working!
Here is the output of the initial checks:
Firmware version: 1.0
Product type: 00080000
Serial number: 11B4159FF94F68D5
Status register: CRC mismatched
Auto cleaning interval: 172800s
Set auto cleaning interval: 172800s

What do you make of the CRC mismatch message?
Here is a print out of the measurements:
{
  "sensor_data": {
    "mass_density": {
      "pm1.0": 12305.812,
      "pm2.5": 12675.612,
      "pm4.0": 12675.62,
      "pm10": 12845.53
    },
    "particle_count": {
      "pm0.5": 87593.781,
      "pm1.0": 100500.352,
      "pm2.5": 100772.867,
      "pm4.0": 100778.344,
      "pm10": 100783.086
    },
    "particle_size": 0.28,
    "mass_density_unit": "ug/m3",
    "particle_count_unit": "#/cm3",
    "particle_size_unit": "um"
  },
  "timestamp":<PHONE_NUMBER>
}

The values seem very high! This is in a very clean office environment.

Now getting this ...
'__mass_density_measurement' CRC mismatched!  Data: [255, 255]  Calculated CRC: 172  Expected: 255
'__particle_count_measurement' CRC mismatched!  Data: [255, 255]  Calculated CRC: 172  Expected: 255
'__particle_size_measurement' CRC mismatched!  Data: [255, 255]  Calculated CRC: 172  Expected: 255
'__mass_density_measurement' CRC mismatched!  Data: [255, 255]  Calculated CRC: 172  Expected: 255
'__particle_count_measurement' CRC mismatched!  Data: [255, 255]  Calculated CRC: 172  Expected: 255
'__particle_size_measurement' CRC mismatched!  Data: [255, 255]  Calculated CRC: 172  Expected: 255
'__mass_density_measurement' CRC mismatched!  Data: [255, 255]  Calculated CRC: 172  Expected: 255
'__particle_count_measurement' CRC mismatched!  Data: [255, 255]  Calculated CRC: 172  Expected: 255
'__particle_size_measurement' CRC mismatched!  Data: [255, 255]  Calculated CRC: 172  Expected: 255

I am going over the wiring today - to make sure its not flakey.  However do you think the values are ok? They seem so high.

The values are not okay, but I still believe the sensor functions properly. I encountered a similar issue when I converted raw to actual values. I guess that data conversion may be the cause, though in my case, there was no CRC mismatch; a pure conversion issue. This time, however, was a slightly different scenario, so I have to check the other possibilities. Not sure if it is conflicting with the Adafruit library...

I think you are right it is a wiring issue.  Let me redo everything and get back to you. Don't spend too much time on this. Many thanks for your help! Will report back shortly!

Glad to hear it works now. The result also seems correct if the sensor data reading does not return CRC mismatch. Regarding the status register, it is caused by the firmware version. I check the datasheet and confirm the status register reading requires minimum firmware version 2.2.
Please go to page 18 table 8 for details.
SPS30 datasheet
You can still use the sensor for measurement, but you may want to ignore the status register reading for now. I may add the version-checking logic later to resolve the compatibility issue.

Hi there - sorry to come back to this. Just wanted to check if this will work with circuitpython ? I got it to work on a raspberrypi but now looking at some of the boards that support circuitpython.

Hi, I think it won't work because some built-in libraries/ modules used in this code are Python libraries. I'm not quite sure if MicroPython built-in libraries exist in CircuitPython. If they do, I have an example of I2C communication using machine library in MicroPython.
Sensirion SHT3X MicroPython
Next, you may have to rewrite the I2C-related codes in the MicroPython way.


EGX Platform 4.2 on DGX2 can not install Kubernetes

Using the Ansible playbook scripts for EGX platform 4.2  on DGX2 (in colossus) and following the pre-requisites with the exception of the OS. DGX0S was preinstalled and can't be changed by user.
Installation fails at same step.
Background and Logs
cat /etc/os-release  NAME="Ubuntu" VERSION="20.04.3 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.3 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal
Logs
See Attached Ansible logs

TASK [Iniitialize the Kubernetes cluster using kubeadm and containerd] *******************************************************************************************************************************
fatal: [<IP_ADDRESS>]: FAILED! => {"changed": true, "cmd": ["kubeadm", "init", "--pod-network-cidr=<IP_ADDRESS>/22", "--cri-socket=/run/containerd/containerd.sock"], "delta": "0:04:03.700622", "end": "2022-02-15 19:13:04.510635", "msg": "non-zero return code", "rc": 1, "start": "2022-02-15 19:09:00.810013", "stderr": "I0215 19:09:01.126459  562444 version.go:254] remote version is much newer: v1.23.3; falling back to: stable-1.21\nerror execution phase wait-control-plane: couldn't initialize a Kubernetes cluster\nTo see the stack trace of this error execute with --v=5 or higher", "stderr_lines": ["I0215 19:09:01.126459  562444 version.go:254] remote version is much newer: v1.23.3; falling back to: stable-1.21", "error execution phase wait-control-plane: couldn't initialize a Kubernetes cluster", "To see the stack trace of this error execute with --v=5 or higher"], "stdout": "[init] Using Kubernetes version: v1.21.9\n[preflight] Running pre-flight checks\n[preflight] Pulling images required for setting up a Kubernetes cluster\n[preflight] This might take a minute or two, depending on the speed of your internet connection\n[preflight] You can also perform this action in beforehand using 'kubeadm config images pull'\n[certs] Using certificateDir folder "/etc/kubernetes/pki"\n[certs] Generating "ca" certificate and key\n[certs] Generating "apiserver" certificate and key\n[certs] apiserver serving cert is signed for DNS names [demobox kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local] and IPs [<IP_ADDRESS> <IP_ADDRESS>]\n[certs] Generating "apiserver-kubelet-client" certificate and key\n[certs] Generating "front-proxy-ca" certificate and key\n[certs] Generating "front-proxy-client" certificate and key\n[certs] Generating "etcd/ca" certificate and key\n[certs] Generating "etcd/server" certificate and key\n[certs] etcd/server serving cert is signed for DNS names [demobox localhost] and IPs [<IP_ADDRESS> <IP_ADDRESS> ::1]\n[certs] Generating "etcd/peer" certificate and key\n[certs] etcd/peer serving cert is signed for DNS names [demobox localhost] and IPs [<IP_ADDRESS> <IP_ADDRESS> ::1]\n[certs] Generating "etcd/healthcheck-client" certificate and key\n[certs] Generating "apiserver-etcd-client" certificate and key\n[certs] Generating "sa" key and public key\n[kubeconfig] Using kubeconfig folder "/etc/kubernetes"\n[kubeconfig] Writing "admin.conf" kubeconfig file\n[kubeconfig] Writing "kubelet.conf" kubeconfig file\n[kubeconfig] Writing "controller-manager.conf" kubeconfig file\n[kubeconfig] Writing "scheduler.conf" kubeconfig file\n[kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"\n[kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"\n[kubelet-start] Starting the kubelet\n[control-plane] Using manifest folder "/etc/kubernetes/manifests"\n[control-plane] Creating static Pod manifest for "kube-apiserver"\n[control-plane] Creating static Pod manifest for "kube-controller-manager"\n[control-plane] Creating static Pod manifest for "kube-scheduler"\n[etcd] Creating static Pod manifest for local etcd in "/etc/kubernetes/manifests"\n[wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory "/etc/kubernetes/manifests". This can take up to 4m0s\n[kubelet-check] Initial timeout of 40s passed.\n\n\tUnfortunately, an error has occurred:\n\t\ttimed out waiting for the condition\n\n\tThis error is likely caused by:\n\t\t- The kubelet is not running\n\t\t- The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)\n\n\tIf you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:\n\t\t- 'systemctl status kubelet'\n\t\t- 'journalctl -xeu kubelet'\n\n\tAdditionally, a control plane component may have crashed or exited when started by the container runtime.\n\tTo troubleshoot, list all containers using your preferred container runtimes CLI.\n\n\tHere is one example how you may list all Kubernetes containers running in cri-o/containerd using crictl:\n\t\t- 'crictl --runtime-endpoint /run/containerd/containerd.sock ps -a | grep kube | grep -v pause'\n\t\tOnce you have found the failing container, you can inspect its logs with:\n\t\t- 'crictl --runtime-endpoint /run/containerd/containerd.sock logs CONTAINERID'", "stdout_lines": ["[init] Using Kubernetes version: v1.21.9", "[preflight] Running pre-flight checks", "[preflight] Pulling images required for setting up a Kubernetes cluster", "[preflight] This might take a minute or two, depending on the speed of your internet connection", "[preflight] You can also perform this action in beforehand using 'kubeadm config images pull'", "[certs] Using certificateDir folder "/etc/kubernetes/pki"", "[certs] Generating "ca" certificate and key", "[certs] Generating "apiserver" certificate and key", "[certs] apiserver serving cert is signed for DNS names [demobox kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local] and IPs [<IP_ADDRESS> <IP_ADDRESS>]", "[certs] Generating "apiserver-kubelet-client" certificate and key", "[certs] Generating "front-proxy-ca" certificate and key", "[certs] Generating "front-proxy-client" certificate and key", "[certs] Generating "etcd/ca" certificate and key", "[certs] Generating "etcd/server" certificate and key", "[certs] etcd/server serving cert is signed for DNS names [demobox localhost] and IPs [<IP_ADDRESS> <IP_ADDRESS> ::1]", "[certs] Generating "etcd/peer" certificate and key", "[certs] etcd/peer serving cert is signed for DNS names [demobox localhost] and IPs [<IP_ADDRESS> <IP_ADDRESS> ::1]", "[certs] Generating "etcd/healthcheck-client" certificate and key", "[certs] Generating "apiserver-etcd-client" certificate and key", "[certs] Generating "sa" key and public key", "[kubeconfig] Using kubeconfig folder "/etc/kubernetes"", "[kubeconfig] Writing "admin.conf" kubeconfig file", "[kubeconfig] Writing "kubelet.conf" kubeconfig file", "[kubeconfig] Writing "controller-manager.conf" kubeconfig file", "[kubeconfig] Writing "scheduler.conf" kubeconfig file", "[kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"", "[kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"", "[kubelet-start] Starting the kubelet", "[control-plane] Using manifest folder "/etc/kubernetes/manifests"", "[control-plane] Creating static Pod manifest for "kube-apiserver"", "[control-plane] Creating static Pod manifest for "kube-controller-manager"", "[control-plane] Creating static Pod manifest for "kube-scheduler"", "[etcd] Creating static Pod manifest for local etcd in "/etc/kubernetes/manifests"", "[wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory "/etc/kubernetes/manifests". This can take up to 4m0s", "[kubelet-check] Initial timeout of 40s passed.", "", "\tUnfortunately, an error has occurred:", "\t\ttimed out waiting for the condition", "", "\tThis error is likely caused by:", "\t\t- The kubelet is not running", "\t\t- The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)", "", "\tIf you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:", "\t\t- 'systemctl status kubelet'", "\t\t- 'journalctl -xeu kubelet'", "", "\tAdditionally, a control plane component may have crashed or exited when started by the container runtime.", "\tTo troubleshoot, list all containers using your preferred container runtimes CLI.", "", "\tHere is one example how you may list all Kubernetes containers running in cri-o/containerd using crictl:", "\t\t- 'crictl --runtime-endpoint /run/containerd/containerd.sock ps -a | grep kube | grep -v pause'", "\t\tOnce you have found the failing container, you can inspect its logs with:", "\t\t- 'crictl --runtime-endpoint /run/containerd/containerd.sock logs CONTAINERID'"]}
systemctl sta
dgx.log
tus kubelet
● kubelet.service - kubelet: The Kubernetes Node Agent
Loaded: loaded (/lib/systemd/system/kubelet.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/kubelet.service.d
└─10-kubeadm.conf
Active: active (running) since Tue 2022-02-15 19:09:04 PST; 4min 54s ago
Docs: https://kubernetes.io/docs/home/
Main PID: 562664 (kubelet)
Tasks: 60 (limit: 618884)
Memory: 81.8M
CGroup: /system.slice/kubelet.service
└─562664 /usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --cgroup-driver=cgroupfs --config=/var/lib/kubelet/con>

Was able to get K8s running on a DGX by installing nvidia-docker2 (which appears to have resolved the cgroup error).
This is a potential incompatibility with EGX as EGX does not rely on nvidia-docker2. Furthermore, DGXOS5 ships with a host driver, and EGX does not, it uses a containerized driver. This will need to be resolved to allow DGX compatibility on EGX.

@evberrypi Thanks for your inputs, but current EGX Stack is not supported for DGX. we're planning to support in the future, we will consider your inputs.

This got resolved via some updates as we move past version 6.
Please close


[Subtask] Add the interface for the role

Describe the subtask
Add the interface for the role
Parent issue
#2232

Close this to avoid too many small prs.


Central state management within core (on a per framework basis)

Hi Nathan, and others if any :)
While looking into Effects and as a learning exercise, I have come across this example which I thought was quite nice, and for my own project I wanted to use this structure in combination with your seed.
I kind of like the result I must say, and I'd like your feedback if you have any time to look into it. I only created the PR so you can see the differences, not sure how I could do it differently, I'm a bit of noob when it comes to Git...
Feel free to reject or delete the PR otherwise.
Thanks!
Seb :)

Crap I forgot some things, how do I cancel the PR?


Deny to topic all together.

I have kind of special use case I am trying to use hive to implement a chat server. One of the feature that I want to have is to be able to ban or disallow some users from pub/sub to some rooms/topics.
The problem is I don't see how I can use OnAuthorizationCallback and MqttTopicPermissions to deny access to a topic all together.
My think was to have OnAuthorizationCallback return a list of MqttTopicPermissions
with the first entry saying /chat/BanFromRoom and DENY ALL and
another entry saying /chat/+ ALLOW pub and sub.
Is my think way of track here.

A Blacklist and Whitelist example for HiveMQ 3 is available here: https://github.com/hivemq/hivemq-authorization-blacklist-whitelist-example
I'm closing this issue, feel free to reopen if this won't work for you.


wiki: CodeReviewComments change in Receiver Names section

The Receiver Names section states:

Don't use generic names such as "me", "this" or "self", identifiers typical of object-oriented languages that place more emphasis on methods as opposed to functions.

As a reader, I'd like to know why this rule exists and what its purpose is. But the above text only states the rule, it doesn't offer an explanation.
I also don't get the more emphasis part. Does it refer to some insider joke? It confused me more than it helped.
(Background: JetBrains' GoLand has an inspection that refers to this rule, and I'd like to add one or two sentences explaining the reason behind this rule. From the existing description of the rule, I could not extract the reason for its existence.)

There is no joke here.  A language like Java emphasizes methods.  The closest that Java gets to what Go calls a function is a static method.
The point of this rule is that the receiver of a method is just another parameter, and it should be named accordingly.  The receiver is not special.

I have updated the wiki.


implement find operation in cli

Just for completeness, implementation of the find operation, same as match, last, except....using the find operation in junos cli was not giving the right output. With the following configuration:
carles@vmx> show configuration protocols bgp
local-as 1111;
group internal {
    type internal;
    local-address <IP_ADDRESS>;
    neighbor <IP_ADDRESS> {
        description routerA;
        cluster <IP_ADDRESS>;
    }
    neighbor <IP_ADDRESS> {
        description routerB;
    }
}

the output should be:
carles@vmx> show configuration protocols bgp | find cluster
        cluster <IP_ADDRESS>;
    }
    neighbor <IP_ADDRESS> {
        description routerB;
    }
}

and not:
res = dev.cli(["show configuration protocols bgp | find cluster"])
{
    "show configuration protocols bgp | find cluster": "\nlocal-as 1111;\ngroup internal {\n    type internal;\n    local-address <IP_ADDRESS>;\n    neighbor <IP_ADDRESS> {\n        description routerA;\n        cluster <IP_ADDRESS>;\n    }\n    neighbor <IP_ADDRESS> {\n        description routerB;\n    }\n}\n"
}

with the new operation the output is:
{
    "show configuration protocols bgp | find cluster": "cluster <IP_ADDRESS>;\n    }\n    neighbor <IP_ADDRESS> {\n        description routerB;\n    }\n}\n"
}

If the pattern does not exist we return the same junos message:
{
    "show configuration protocols bgp | find napalm": "\nPattern not found"
}

and in junos cli:
carles@vmx> show configuration protocols bgp | find napalm

Pattern not found
carles@vmx>

Coverage decreased (-0.5%) to 77.756% when pulling 1425d3bfc3bf5c0df4488e2065ebac387dd28b00 on ckishimo:devel-hop into ab33fbc685ab89750abf541ffd89575fd6b5b3ff on napalm-automation:develop.


[Security] Remote Code Execution

$highlight = Pygmentize::highlight('<?php phpinfo();', ';uname -a #');
print_r($highlight);

This will produce the following output:
Darwin Micheals-MBP 16.1.0 Darwin Kernel Version 16.1.0: Thu Oct 13 21:26:57 PDT 2016; root:xnu-3789.21.3~60/RELEASE_X86_64 x86_64

The problem lines appear to be here: https://github.com/dedalozzo/pygmentize/blob/master/src/Pygmentize/Pygmentize.php#L48-L51
This particular issue can be resolved with escapeshellcmd:
$proc = proc_open(self::PIGMENTS_BINARY.escapeshellcmd($args), $dspec, $pipes);

PR #2 created.

Please reference PR #3 instead.


Not able to send higher token amounts.

Please have a look at this Forum post for all info:
https://forum.aeternity.com/t/i-am-no-longer-able-to-send-ae-tokens-with-ledger/3046
Basically, transactions of 9999 AE or 5 digit numbers do not work.

I am closing this issue due to inactivity. Please feel free to reopen should you still have some considerations about it.


Add ability to open apps and browsers from TWA

Is your feature request related to a problem? Please describe.
Currently, all links open within TWA and intent:// links don't work.
Describe the solution you'd like
Ability to through user outside TWA for all non-app related links. It would be awesome if there would be an option to let user select where they want to open a link, just like in a native app. Opening maps in a selected map application, social media link in an app I want, etc.
Additional context
It is possible to open links outside PWA from browsers and WebView. WebView even has a method shouldOverrideUrlLoading that lets developer decide how links should behave. CustomTabs doesn't seem to offer anything. An exception could be execCommand, but I am not an Android/Java developer, so don't understand what to do with it.
If there is at least some way to achieve this behaviour, please share it.

We achieved that using :
window.location.replace("deeplinkPattern://myDeeplink");

(deeplinkPattern is referenced in our AndroidManifest as a browsable intent-filter)

There may be privacy concerns regarding the intents and deep linking. However, for http/https URLs I wish there was a way to allowlist the URLs that we want "in-app" (within the TWA context) versus "go to default browser"


Incorrect integer values

I am storing some integer values in cookies but the values being store and retrieved seem to be modified or rounded by React-Cookie.
I have created an example of the issue as well as a jsFiddle (https://jsfiddle.net/f1f6ae89/1/)
As can be seen in the example, the value<PHONE_NUMBER>07389097 is being stored/retrieved by React-Cookie as<PHONE_NUMBER>07389000
Any ideas why this is occurring?
function getCookie(cname) {
      var name = cname + "=";
      var ca = document.cookie.split(';');
      for(var i = 0; i <ca.length; i++) {
          var c = ca[i];
          while (c.charAt(0)==' ') {
              c = c.substring(1);
          }
          if (c.indexOf(name) == 0) {
              return c.substring(name.length,c.length);
          }
      }
      return "";
  }

class Test extends React.Component {
  constructor(props) {
      super(props);
  }

  handleSaveCookie() {
  	console.log("Cookie Saved");
    reactCookie.save("mycookie",<PHONE_NUMBER>07389097, {maxAge: 60*60*24*7, path: "/"})
    document.cookie="othercookie=888565000007389097"
  }

  handleLoadCookie() {
    console.log(document.cookie);
  	console.log("mycookie from reactCookie:", reactCookie.load("mycookie"));
   	console.log("othercookie from ReactCookie:", reactCookie.load("othercookie"));
    console.log("othercookie without ReactCookie:", getCookie("othercookie"));
  }

  render() {
    return (
    	<div>
	      <button onClick={this.handleSaveCookie}>Save Cookie</button>
        <button onClick={this.handleLoadCookie}>Load Cookie</button>
      </div>
    );
  }
}

ReactDOM.render(<Test/>,
  document.getElementById('container')
);

dup https://github.com/eXon/react-cookie/issues/33

Good pickup, thanks. What is the parsing doing??

Also, this doesn't help when it saves the incorrect value.

When loading your cookie, you have to make sure to use the doNotParse if you're looking for a string. Otherwise, the JSON.parse might not interpret what you want correctly.
cookie.load('mycookie', true)


Adding ROCm support for FftSupport::UpdatePlanWithScratchAllocator method

This commit is essentially the ROCm version of the same change on the CUDA side : https://github.com/ROCmSoftwarePlatform/tensorflow-upstream/commit/4c0adf2c26345dd63e2b883317f7efb464862532

/cc @cheshire @chsigg @nvining-work @hawkinsp @inailuig
@hawkinsp @inailuig
this commit fixes a couple of the sub-tests within the jax unit test tests/fft_test.py that were failing with the following error
...
----------------------------- Captured stderr call -----------------------------
2020-12-15 16:08:28.770229: E external/org_tensorflow/tensorflow/stream_executor/rocm/rocm_fft.cc:510] update plan with scratch allocator not implemented
2020-12-15 16:08:28.771467: E external/org_tensorflow/tensorflow/stream_executor/rocm/rocm_fft.cc:510] update plan with scratch allocator not implemented
2020-12-15 16:08:28.898454: E external/org_tensorflow/tensorflow/stream_executor/rocm/rocm_fft.cc:510] update plan with scratch allocator not implemented
______________________________ tests/fft_test.py _______________________________
...

@cheshire @chsigg gentle ping


The optional release-type input for GitHub action

We want to use this action not only for supported release types but also for arbitrary ones without bumping version in any project files (for instance, for projects written in Go).
At the moment, using release type simple is the only available option. It seems to me that making the field optional or adding a new type (e.g. none) won't cost you anything and will save users from an unnecessary version.txt file in a project.

We stumbled upon go release type which does exactly that. It wasn't mentioned in release-please-action, this should fix it: https://github.com/google-github-actions/release-please-action/pull/367
I guess this issue can be closed unless we still want something more generic.

@alexey-igrychev does the go releaser work for your purposes?


Create Promise compatible API.

Track page and custom events. Need to wait for a result of AI request before the page is changed.

Related work #358, #289.

While we dont have support for promises, new beta SDK has support for subscribing to notification when data has been sent. WIll be adding documentation soon for this.


Build failure: libsForQt5.k3b

Steps To Reproduce
Steps to reproduce the behavior:

build k3b

Build log
https://gist.github.com/Noodlez1232/77db0d247e6b5221168c700578e16c25

Additional context
This is in the FFmpeg wrapper
Notify maintainers
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.52-rt43, NixOS, 24.11 (Vicuna), 24.11.20241009.5633bcf`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.8`
 - channels(root): `"nixos-23.05"`
 - nixpkgs: `/nix/store/60sn02zhawl3kwn0r515zff3h6hg6ydz-source`

Add a :+1: reaction to issues you find important.

I just got a build failure for k3b that finished towards the end, here's my log: https://pastebin.com/hspqnMe4

This is a known issue with ffmpeg 7: https://bugs.kde.org/show_bug.cgi?id=485432

In fact, kdePackages.k3b is at version 24.08. Perhaps it would be a good idea to use that by default instead of the Qt 5 build.

Also having a build issue on NixOS 24.11
[ 44%] Building CXX object plugins/decoder/musepack/CMakeFiles/k3bmpcdecoder.dir/k3bmpcdecoder.cpp.o
/build/k3b-23.08.5/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp: In member function 'bool K3bFFMpegFile::open()':
/build/k3b-23.08.5/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp:143:26: error: 'AVCodecContext' {aka 'struct AVCodecContext'} has no member named 'channels'
  143 |         d->codecContext->channels > 1;
      |                          ^~~~~~~~
/build/k3b-23.08.5/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp: In member function 'void K3bFFMpegFile::close()':
/build/k3b-23.08.5/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp:159:24: warning: 'int avcodec_close(AVCodecContext*)' is deprecated [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations8;;]
  159 |         ::avcodec_close(d->codecContext);
      |         ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from /build/k3b-23.08.5/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp:19:
/nix/store/z9mlh14zihwba8j93xz0p1v0i41magvg-ffmpeg-7.1-dev/include/libavcodec/avcodec.h:2398:5: note: declared here
 2398 | int avcodec_close(AVCodecContext *avctx);
      |     ^~~~~~~~~~~~~
/build/k3b-23.08.5/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp: In member function 'int K3bFFMpegFile::channels() const':
/build/k3b-23.08.5/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp:188:29: error: 'AVCodecContext' {aka 'struct AVCodecContext'} has no member named 'channels'
  188 |     return d->codecContext->channels;
      |                             ^~~~~~~~
make[2]: *** [plugins/decoder/ffmpeg/CMakeFiles/k3bffmpegdecoder.dir/build.make:110: plugins/decoder/ffmpeg/CMakeFiles/k3bffmpegdecoder.dir/k3bffmpegwrapper.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2027: plugins/decoder/ffmpeg/CMakeFiles/k3bffmpegdecoder.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 44%] Building CXX object plugins/decoder/mp3/CMakeFiles/k3bmaddecoder.dir/k3bmaddecoder.cpp.o
[ 44%] Building CXX object plugins/decoder/musepack/CMakeFiles/k3bmpcdecoder.dir/k3bmpcwrapper.cpp.o
[ 44%] Linking CXX shared module ../../../bin/k3b_plugins/k3bmaddecoder.so
[ 45%] Linking CXX shared module ../../../bin/k3b_plugins/k3bmpcdecoder.so
[ 45%] Built target k3bmaddecoder
[ 46%] Built target k3bmpcdecoder
[ 46%] Built target k3b_autogen
make: *** [Makefile:136: all] Error 2
error: builder for '/nix/store/f6fszs452liy78wpcwq61r01vz7pwc4w-k3b-23.08.5.drv' failed with exit code 2
error: 1 dependencies of derivation '/nix/store/bgrpmh9wwcf521z5m3akzhw3smr4j2x1-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wlfp11p1cy12pv54hxxkgqpvhh5bddn9-nixos-system-nixmac-24.11.709933.c71ad5c34d51.drv' failed to build

Is kdePackages.k3b using QT6 instead QT5?

Yes.

Thanks

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/24-11-k3b-fails-to-build/56843/2

It is fixed by the linked PR. In the meantime you can use kdePackages.k3b

FYI, this doesn't seem to be possible with programs.k3b.enable use, as there's no corresponding .package option.

My PR removes the module. There is no option.


Handling Special Values

Hello,
However, I've found myself having to handle the problem of having multiple special values different times recently. If there is one special value say missing values I am aware XGBoost can itnernally handle such cases. But what about cases where there is a NA, -2 & a -5. Now the -2 & -5 have no numerical importance, but they mean something like -2 means can not calculate and -5 means insufficient data, etc. Can Xgboost handle such cases or can we do something where it can identify all these cases and handle missing values correctly?

No, XGBoost handles a single missing value. You can convert all the values that don't make sense in model training to nan in data preprocessing.

On the other hand, if that's categorical feature, and you consider those special values are useful categories, then you can try to encode it and use the categorical split in XGBoost.

Hello Jiaming,
Thank you for your prompt answer.
What if it is a numerical feature? Where there are some normal values and some special values? Any ideas around that?

Then no, there's no special handling for these types of values. You can remove them from the dataset (the value, not the entire sample).

Feel free to reopen if there are further questions.


Feature for stuffs: on flashbangs and smoke show player velocity

Show velocity to indicate running jump throws, running utility usage and stationary throws.
Might want to draw player position several seconds back to indicate run-up to the throw.

A new major version has been released, closing the issue 🧹

🙌Good work


Create zhat.txt

@XjCyan1de I am sorry for a delay with processing your request.
Pull request merged. Thank you!

@XjCyan1de I am sorry for a delay with processing your request.
Pull request merged. Thank you!


Can not unfloat

when i do Alt - t I can get my window float, but I can't get it to unfloat. skhd has this,
# float / unfloat window and center on screen
alt - t : chunkc tiling::window --toggle float;\
          chunkc tiling::window --grid-layout 4:4:1:1:2:2

Are there any known issues with windows unfloating (--toggle float)

https://imgur.com/91ui8ap Not exactly sure what your issue is with this. Working on 10.14.4 for me.


[CHALLENGE SUBMISSION] Day 7

Please provide the following information for your submission:
What is your name? (First, Last)
Barbara Forbes
Where is your GitHub Repo ?(With your challenge solution)
https://github.com/Ba4bes/25daysofserverless/tree/master/Day7Pictures
What Challenge is this for? (Challenge number between 1 and 25)
7
(Optional) Anything else we should know? e.g., language used, location, blog post?
PowerShell Function App

From all of us on the Cloud Advocacy team at Microsoft, thank you @Ba4bes for creating this issue!
Have a Happy Holiday season!

We checked out your repository. We're thrilled to say your solution is now listed in our Hall of Fame
Thank you for your contributions!
This issue is now resolved! 🎉


MI - PERFORMANCE TUNING (RabbitMQ transport)

Complete the doc on tuning the RabbitMQ transport[1].
[1] https://github.com/wso2/docs-ei/blob/master/en/micro-integrator/docs/setup/performance_tuning/rabbitmq_transport_tuning.md

Done[1].
[1] https://github.com/wso2/docs-ei/blob/7.0.0/en/micro-integrator/docs/setup/performance_tuning/rabbitmq_transport_tuning.md


Add LeasesTableName to SqlTriggerAttribute

Addresses https://github.com/Azure/azure-functions-sql-extension/issues/882. Adding LeasesTableName option to the SqlTriggerAttribute will prevent two leases tables from being created during a slot swap.
If the LeasesTableName is not included, we default back to using the host id to generate the lease table name.

Will update the docs in a separate PR - added it as a task to the original issue: https://github.com/Azure/azure-functions-sql-extension/issues/882.


[Q] How to compose specs?

Is it possible to compose specs (that is a set of classes extending some of Spec)?

So you have two separate classes that extend Spec and you want to combine them together?

This is now supported in master (for 4.0 release) via the new test factory functionality.


Environment versioning problem

Hello, thank you for your work. However, there are many problems in my deployment, which may be caused by the fact that many of the environments you provide are not supported at present. Could you please provide a latest version? For example, my cuda is 11.8

same here. spent 2 weeks on this and still unable to run the example without error

Me too, my cuda version is 12.1, and the installation environment always fails


WebApi+ UseIdentityServerBearerTokenAuthentication GetOwinContext() = null

I am using UseIdentityServerBearerTokenAuthentication to grab the access token, call the UserInfo EP, and set up permission claims.
I am also using ThinkTecture IdentityModel ResourceAuthorization that calls GetOwinContext() to get the principal, but it's null.
I am sure I am missing something in the startup like how to properly set up OWIN in WebAPI.
Ideas?

Nevermind, previous Issue called out a solution.


Handle all cms data offline

Save all cms data coming back from contentful and distribute to appropriate redux stores. Currently this will add ability to store:

Other content models like featured events lists
CMS assets like images

Pre-flight check-list
Before raising a pull request

Documentation
[x] Unit tests

Pre-merge check-list

Tester approved

I think I'm done here.
The Events reducer now has an entries property which contains a mix of all content model types that we add (currently Event and FeaturedEvents). We also now have an assets property containing all assets.

Yea absolutely. I can see the image React Native image components allow for indicators. Was hoping to ask design about it when we implement the full design on this page.