make error: sys/decl.go:650: undefined: numbers

Seeing error while compiling 'syzkaller'
[root@host syzkaller]# make
go build -o ./bin/syz-manager github.com/google/syzkaller/syz-manager
github.com/google/syzkaller/sys
sys/decl.go:650: undefined: numbers
make: *** [manager] Error 2

Hi @rnsastry,
numbers are defined in sys/sys_amd64.go and sys/sys_arm64.go for the respective architectures.
What architecture are you compiling it for? If it's 386, then I would suggest to switch to amd64. Of you want to test specifically 386?
p.s. target architecture is controlled with GOARCH env var. i.e. GOARCH=amd64 make

Hi Dmitry, I am compiling for ppc64le (power architecture little endian).
GOARCH="ppc64le"
GOHOSTARCH="ppc64le"
Do you have any plans for supporting this architecture? Or can I create it in any way?
Thanks for your time.

From "go env"
go env
GOARCH="ppc64le"
GOBIN=""
GOEXE=""
GOHOSTARCH="ppc64le"
GOHOSTOS="linux"
GOOS="linux"
GOPATH=""
GORACE=""
GOROOT="/usr/lib/golang"
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_ppc64le"
GO15VENDOREXPERIMENT=""
CC="gcc"
GOGCCFLAGS="-fPIC -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"

To overcome this compilation error you need to extend this table:
https://github.com/google/syzkaller/blob/master/sysgen/syscallnr.go#L23
the first value is GOARCH, so it should be ppc64le
the second - if a C define for this arch, not sure what it is
the third - is location of file with syscall numbers for this arch in linux kernel tree
when you do this, run
make generate LINUX=path_to_tip_linux_kernel_checkout
this should generate sys/sys_ppc64le.go file and update executor/syscalls.h
if it works for you, I will be happy to accept a pull request

Sure, Thanks a lot for the information. I will try to do this and will let you know.

Added the following in sysgen/syscallnr.go#L23
var archs = []*Arch{
{"amd64", "x86_64", "arch/x86/include/generated/uapi/asm/unistd_64.h", nil},
{"arm64", "aarch64", "arch/arm64/include/uapi/asm/unistd.h", nil},
{"ppc64le", "ppc64", "arch/powerpc/include/uapi/asm/unistd.h", nil},
Got the kernel git clone to '/root/linux'
And ran with 'make'
#make generate LINUX=/root/linux
go run sysgen/*.go -linux=/root/linux sys/sys.txt sys/socket.txt sys/tty.txt sys/perf.txt
sys/key.txt sys/bpf.txt sys/fuse.txt sys/dri.txt sys/kdbus.txt sys/sctp.txt
sys/kvm.txt sys/sndseq.txt sys/sndtimer.txt sys/sndcontrol.txt sys/input.txt
failed to run gcc: exit status 1
:48:23: fatal error: asm/prctl.h: No such file or directory
compilation terminated.
exit status 1
make: *** [generate] Error 1
# find / -name prctl.h
/usr/include/sys/prctl.h
/usr/include/linux/prctl.h
/root/linux/include/uapi/linux/prctl.h
/root/linux/arch/x86/include/uapi/asm/prctl.h
seems some thing more needs to be done. And I don't know what is that.

Try to remove include <asm/prctl.h> line in sys/sys.txt.
If that does not help, I will try to generate with {"ppc64le", "ppc64", "arch/powerpc/include/uapi/asm/unistd.h", nil},
The problem is that I use host headers to extract values of various constants. And host headers are different across different distributions and versions of distributions, and also depend on set of installed packages. E.g. on Ubuntu I had to do "sudo apt-get install libnuma-dev" to install a necessary header.
I should switch to usage of only kernel headers, they are more stable and always up-to-date. However, the last time I tried I got lots of various conflicts...

Installed numactl-devel.ppc64le for error "fatal error: numaif.h: No such file or directory" after that seeing the following errors.
# make generate LINUX=/root/linux
go run sysgen/*.go -linux=/root/linux sys/sys.txt sys/socket.txt sys/tty.txt sys/perf.txt
sys/key.txt sys/bpf.txt sys/fuse.txt sys/dri.txt sys/kdbus.txt sys/sctp.txt
sys/kvm.txt sys/sndseq.txt sys/sndtimer.txt sys/sndcontrol.txt sys/input.txt
failed to run gcc: exit status 1
: In function ‘main’:
:1307:978: error: ‘ARCH_GET_GS’ undeclared (first use in this function)
:1307:978: note: each undeclared identifier is reported only once for each function it appears in
In file included from /usr/include/asm/ioctl.h:11:0,
from /usr/include/asm/ioctls.h:4,
from /usr/include/bits/ioctls.h:23,
from /usr/include/sys/ioctl.h:26,
from /usr/include/sys/mount.h:25,
from :20:
:1307:1281: error: invalid application of ‘sizeof’ to incomplete type ‘struct kvm_msrs’
:1307:2289: error: ‘FALLOC_FL_PUNCH_HOLE’ undeclared (first use in this function)
:1307:2748: error: ‘MAP_32BIT’ undeclared (first use in this function)
:1307:4917: error: ‘PTRACE_O_EXITKILL’ undeclared (first use in this function)
In file included from /usr/include/asm/ioctl.h:11:0,
from /usr/include/asm/ioctls.h:4,
from /usr/include/bits/ioctls.h:23,
from /usr/include/sys/ioctl.h:26,
from /usr/include/sys/mount.h:25,
from :20:
:1307:8417: error: invalid application of ‘sizeof’ to incomplete type ‘struct kvm_xcrs’
:1307:8848: error: ‘FALLOC_FL_KEEP_SIZE’ undeclared (first use in this function)
:1307:9596: error: ‘ARCH_SET_GS’ undeclared (first use in this function)
In file included from /usr/include/asm/ioctl.h:11:0,
from /usr/include/asm/ioctls.h:4,
from /usr/include/bits/ioctls.h:23,
from /usr/include/sys/ioctl.h:26,
from /usr/include/sys/mount.h:25,
from :20:
:1307:10387: error: invalid application of ‘sizeof’ to incomplete type ‘struct kvm_msrs’
:1307:10723: error: invalid application of ‘sizeof’ to incomplete type ‘struct kvm_vcpu_events’
:1307:11766: error: invalid application of ‘sizeof’ to incomplete type ‘struct kvm_msr_list’
:1307:12233: error: invalid application of ‘sizeof’ to incomplete type ‘struct kvm_xen_hvm_config’
:1307:13191: error: ‘KVM_GUESTDBG_INJECT_DB’ undeclared (first use in this function)
In file included from /usr/include/asm/ioctl.h:11:0,
from /usr/include/asm/ioctls.h:4,
from /usr/include/bits/ioctls.h:23,
from /usr/include/sys/ioctl.h:26,
from /usr/include/sys/mount.h:25,
from :20:
:1307:14305: error: invalid application of ‘sizeof’ to incomplete type ‘struct kvm_cpuid2’
:1307:14886: error: invalid application of ‘sizeof’ to incomplete type ‘struct kvm_cpuid2’
:1307:15320: error: invalid application of ‘sizeof’ to incomplete type ‘struct kvm_pit_state2’
:1307:15694: error: invalid application of ‘sizeof’ to incomplete type ‘struct kvm_vcpu_events’
:1307:17548: error: invalid application of ‘sizeof’ to incomplete type ‘struct kvm_lapic_state’
:1307:17581: error: ‘ARCH_GET_FS’ undeclared (first use in this function)
In file included from /usr/include/asm/ioctl.h:11:0,
from /usr/include/asm/ioctls.h:4,
from /usr/include/bits/ioctls.h:23,
from /usr/include/sys/ioctl.h:26,
from /usr/include/sys/mount.h:25,
from :20:
:1307:17690: error: invalid application of ‘sizeof’ to incomplete type ‘struct kvm_debugregs’
:1307:19168: error: invalid application of ‘sizeof’ to incomplete type ‘struct kvm_debugregs’
:1307:19916: error: ‘ARCH_SET_FS’ undeclared (first use in this function)
In file included from /usr/include/asm/ioctl.h:11:0,
from /usr/include/asm/ioctls.h:4,
from /usr/include/bits/ioctls.h:23,
from /usr/include/sys/ioctl.h:26,
from /usr/include/sys/mount.h:25,
from :20:
:1307:21149: error: invalid application of ‘sizeof’ to incomplete type ‘struct kvm_lapic_state’
:1307:21206: error: ‘KVM_GUESTDBG_INJECT_BP’ undeclared (first use in this function)
In file included from /usr/include/asm/ioctl.h:11:0,
from /usr/include/asm/ioctls.h:4,
from /usr/include/bits/ioctls.h:23,
from /usr/include/sys/ioctl.h:26,
from /usr/include/sys/mount.h:25,
from :20:
:1307:21897: error: invalid application of ‘sizeof’ to incomplete type ‘struct kvm_cpuid’
:1307:24215: error: invalid application of ‘sizeof’ to incomplete type ‘struct kvm_pit_state2’
:1307:24526: error: invalid application of ‘sizeof’ to incomplete type ‘struct kvm_xsave’
:1307:25712: error: invalid application of ‘sizeof’ to incomplete type ‘struct kvm_xcrs’
:1307:26663: error: invalid application of ‘sizeof’ to incomplete type ‘struct kvm_xsave’
exit status 1
make: *** [generate] Error 1

forgot to mention removed '#include <asm/prctl.h>' from sys/sys.txt
and then tried the above.

@rnsastry should be fixed by 81438c4ddda56ec8e2ccbca66770cbac5664ad0c
I've tried to build with GOARCH=ppc64le and build succeeded.
Feel free to file more issues or contact syzkaller googlegroups mailing list if you have other issues.


Preselecting item from Editable-Select when bound to a Model.

I can't get the Angular-xeditable Editable-Select to Select the current item when it is bound to a nested JSON object.  Data all saves fine, but it just doesn't show up the currently selected item in the Select box, which is driving me nuts, as I am sure I am missing something obvious. I have created a JSFiddle here:
http://jsfiddle.net/NfPcH/1031/
This is the code:
<span editable-select="data.organisation.OrganisationType"
              e-ng-options="type.Name for type in data.types">
            {{data.organisation.OrganisationType.Name}}
        </span>

These are the 2 data objects:
$scope.data.organisation =  {
"Id":1,
"Name":"My Organisation",
"OrganisationType":{"Id":2,"Name":"Internal"}
 }

$scope.data.types = [
{"Id":1,"Name":"Client"},
{"Id":2,"Name":"Internal"},
{"Id":3,"Name":"Cold"}
]

It works fine when I bind it to the ID within the Nested Object, but then it only changes the Id in my nested object, and I then have to manually filter and change the Name part of the object, which works, but I am sure there must be a better way.

@rmariuzzo please do, I'm having the same problem. Also issue #238 is linked to this.

@HollandRisley - any chance I can see that directive you built? I am having the same problem :P

@eugef I think this can be closed since #238 was closed.


[Question/Guidance] Support for non-RHEL Distro

All,
Not sure if this is the best forum for asking questions? Maybe IRC is better? If this is the wrong forum, please close.
In any case, I'm wondering about support or feasibility for Debian based distro's namely Ubunutu,
I can see hints of ubuntu in the code-base namely the runners file HERE
But also saw hints that this was not an especially well-trod or maintained path.
Any thoughts or guidance on this would be appreciated.

It is not tested in CI, so caveat emptor, but it did use to work at some point :)
Out of curiosity, what are you interested in doing with osbuild?

Also: Do you mean running on Ubuntu or building Ubuntu images?

@teg Creating Ostree images, namely to exploit Ostree delta updates ability. This is for a mobile-robotics application. We have "many" thousands of robots at hundreds of sites, so this would be used for over-the-air update like ability.
Is there a spoon-feed guide on how to go about this? Do you have an idea of the change points?
@ondrejbudai Namely, to create Ubuntu Images. I am fine with the host or build cluster

@teg Creating Ostree images, namely to exploit Ostree delta updates ability. This is for a mobile-robotics application. We have "many" thousands of robots at hundreds of sites, so this would be used for over-the-air update like ability. The robotic middle-ware we use is extremely widely used in robotics. However, it is only designed to run on Ubuntu.

I am keen on supporting this, but this entails a bit of work, first and for most we need new code to depsolve Debian based distributions, and then a new stage to install those, i.e. we have org.osbuild.rpm, we need something like this but for debs. I am very happy the help out but no, there is no spoon-feed guide.

@gicmo I could commit time to this, I'm unfamiliar with the current code-base, but this would be valuable to me to work on. (I'm also allocated X% free project time to do so)
As a note, there a number of related efforts in the robotics space namely Nixos. I think Ostree should have  the edge, however the lack of tooling or even reliable examples on getting a bootable Debian/Ubuntu image is holding us back e.g. if we had production quality pipeline for creating ostree images, then it would be running on X-thousands of robots, for large X.

Hi @bearrito, have you further worked on this in the meantime? I'm also interested in getting a debian derivative running with ostree (in my case it's Garden Linux, but for the initial work that should not matter as it's also essentially a debian system).

@fwilhe I never really did. I was able to get an image built, but wasn't able to get a bootable image. Meaning the relationship between OsTree and the boot infrastructure.


Support sending metrics to Kafka

We should be able to send metrics to a variety of places other than InfluxDB. This means that we'll need to have some sort of framework for defining new output sinks. This also means that we should be able to disable sending metrics to any of these output sinks, including InfluxDB.
What I'm thinking is to pull the InfluxDB settings into another area like outputs. Then, like plugins, define a number of different outputs where metrics can be sent to.
For Kafka, we should send metrics using the line protocol. This should be fairly simply using the InfluxDB client to convert the metrics to their line protocol equivalents.
The work to add support for Riemann (#34) will also need this output sink implementation.

:+1:

:+1:
Has work started on this or are you looking for some help/ideas?
In another project similar to this, we use In/Out channels to wire up the message communication and defined a standard Msg struct to be passed along. It seems to work well for that project so didn't know if something similar would be good here as well.

We haven't started work on this and are definitely looking for help. We want to be able to to output to one or more output sinks like Kafka or InfluxDB or Riemann

On Jul 8, 2015, at 3:11 PM, JP Phillips<EMAIL_ADDRESS>wrote:
Has work started on this or are you looking for some help/ideas?
In another project similar to this, we use In/Out channels to wire up the message communication and defined a standard Msg struct to be passed along. It seems to work well for that project so didn't know if something similar would be good here as well.
—
Reply to this email directly or view it on GitHub.

some help perhaps:
https://github.com/mozilla-services/heka/blob/31a1bf9a1ad080e3ec8ec71ff3cefccdb609dc09/plugins/kafka/kafka_output.go


Fix celocli's attestation service test result output

Description
Successfully testing the attestation service (v1.0.5) with the celocli (v0.0.58) currently results in a Request was not successful output. The false-negative seems to be caused by the test response-checking condition (see change).
Tested
Tested using the following command: celocli identity:test-attestation-service.
Backwards compatibility
Change does not affect anything other than the celocli's identity test output.

LGTM! thanks for submitting

Thanks Tim. I rebased the latest master but it looks like the CI's vuln checks keep failing. Any suggestions?


Streamus won't log me in

It just keeps spinning. Screenshot: https://www.evernote.com/l/AAJFomQzcchBQaaqX9UUW3kG4AhI_h4SzOU

Hey,
Is this still an issue for you? Is your PC up-to-date with security patches? This is most commonly an SSL issues.

Seems good now, thanks.
On Sat, Jun 27, 2015 at 7:56 AM, Sean Anderson<EMAIL_ADDRESS>wrote:

Hey,
Is this still an issue for you? Is your PC up-to-date with security
patches? This is most commonly an SSL issues.
—
Reply to this email directly or view it on GitHub
https://github.com/MeoMix/StreamusChromeExtension/issues/587#issuecomment-115959520
.

Okie. I'll keep an eye on it. Server might've just had some planned downtime on AWS' side or something, unsure. I don't have fail-over servers b/c of $$


Add useCapture argument to addEventListener

Hello :wave:
Thanks for this library!
I've noticed that a <StickyContainer /> component present inside a wrapper with style overflow: auto fixed height doesn't get notified on scroll.
To fix this, this PR adds the useCapture argument to addEventListener and removeEventListener.
MDN doc: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener

Hey thanks for the PR! Could you by any chance put together a demo of the buggy behavior in CodeSandbox or something? I'd like to poke around before merging, would help me get around to it faster.

Yes sure. I made an example of a basic flexbox layout with a fixed sidebar and a scrollable content area.
The issue appears when we set a fixed height on the main wrapper.

Sticky working but sidebar not fixed
Sidebar fixed but Sticky not working

The only change between the two examples is the last row of the App.css file.

Looks like this breaks the relative prop. I just merged an update to the demos, if you rebase off master, run npm run demos:start and go to localhost:9000, the relative demo doesn't catch at the top of the screen.

No worries! I really appreciate you bringing this up, I wasn't aware of useCapture before so this was helpful for me. I'll leave it open for now and see if I can get it working myself. If nothing else I can add this as a test case for a future version of the library.

Closing in favor of #241! I added a demo based on your sandbox, appears to work.


Relay / GraphQL

OK, one more time with feeling! 😛
This is a follow up to #606 to address concerns raised around storing generated Relay files inside the repo, under version control — as discussed in the engineering catch-up this morning. This is a pretty critical part of the graphql / relay workflow, and I’d really like to get it sorted out. 😄
This patch reworks the strategy introduced in #606 for the GraphQL server & Relay client workflow to remove the need to store the compiled our Relay queries and types (ref) in the repo by generating them on the fly instead.
This patch does not remove the (pre-existing) generated GraphQL schema dump (app/graph/schema.json). That will have to wait for another day; changing it massively complicates our current testing infra / docker setup. 🙃 This patch does automate the dumping of the schema however (previously a manual process), meaning that the schema dump in the frontend should actually be indicative of the actual server state, and will drift a lot less.
This patch introduces a new process that provides Relay compilation outside of Webpack. This is required as having a webpack handle it creates a chicken/egg problem when attempting to consume the flow types in our source code from the generated code. Compilation would never succeed if the generated files were not present, meaning that the generated could never be compiled into place. 🥚 LOL.
This new process is a small(ish) node script in the frontend repo that is booted with the rest of the development environment via the main Procfile.
It sets up watches on the filesystem for changes to both the JS source code, and also the Ruby GraphQL source code. It does roughly this;

When the JS code changes:

(re)compile the generated Relay files using the JS source and the schema dump.

When the Ruby code changes:

sync a fresh copy of the introspection schema to disk via pulling it from the graph HTTP endpoint.

PS: is this a problem storing this in a public repo? Are there any sensitive fields here? 🤔

(re)compile the generated Relay files using the JS source and the schema dump.

I’ve pinged a few of you for thoughts on this. While the script has a bit going on it’s pretty much what’s going to be required IIRC if we don’t want the generated files residing in the repo.

Seems legit! Can we have the watch_graph script follow our eslints, though please? 😄

Sure.


add php 7.3 to travis

@andreybolonin
Xdebug appears not to be available on PHP 7.3, see https://travis-ci.org/webmozart/assert/jobs/448096201#L463-L464:
$ if [[ $TRAVIS_PHP_VERSION != hhvm && $COVERAGE != yes ]]; then phpenv config-rm xdebug.ini; fi;
File xdebug.ini does no exist.
The command "if [[ $TRAVIS_PHP_VERSION != hhvm && $COVERAGE != yes ]]; then phpenv config-rm xdebug.ini; fi;" failed and exited with 1 during .

@localheinz travis ok, but ci is not vali

Thank you


Can portia export scrapy python code

Can i use portia to export scrapy code?

You can use https://github.com/scrapinghub/portia2code to convert a Portia spider into a scrapy.

@whenjonny You can find more info here


The modifier didn't release while activating keybindings

I'm using NixOS + hyprland and emacs.yml in this repo. Additionally I swapped the Capslock and Ctrl_L.
My nix config is
  Services.Xremap = {
    serviceMode = "user";
    userName = "takaobsid";
    withWlroots = true;
    yamlConfig = builtins.readFile "${inputs.dotfiles}/xremap-emacs.yaml";
    # debug = true;
  };

The problem is while I press C-p, which should behave as single "UP" key, it actually active C-"UP", and press M-w also active like added a "M-". I have tried only emacs config (without swap caps and ctrl), but also act like this.
There is the debug log.
May 26 16:05:12 Manaward xremap[7922]: [2024-05-26T08:05:12Z DEBUG xremap::event_handler] => 1: KEY_CAPSLOCK
May 26 16:05:12 Manaward xremap[7922]: [2024-05-26T08:05:12Z DEBUG xremap::action_dispatcher] 1: KEY_LEFTCTRL
May 26 16:05:12 Manaward xremap[7922]: [2024-05-26T08:05:12Z DEBUG xremap::event_handler] => 1: KEY_P
May 26 16:05:12 Manaward xremap[7922]: application-client: wlroots (supported: true)
May 26 16:05:12 Manaward xremap[7922]: application: foot
May 26 16:05:12 Manaward xremap[7922]: [2024-05-26T08:05:12Z DEBUG xremap::action_dispatcher] 0: KEY_LEFTCTRL
May 26 16:05:12 Manaward xremap[7922]: [2024-05-26T08:05:12Z DEBUG xremap::action_dispatcher] 1: KEY_UP
May 26 16:05:12 Manaward xremap[7922]: [2024-05-26T08:05:12Z DEBUG xremap::action_dispatcher] 0: KEY_UP
May 26 16:05:12 Manaward xremap[7922]: [2024-05-26T08:05:12Z DEBUG xremap::action_dispatcher] 1: KEY_LEFTCTRL
May 26 16:05:13 Manaward xremap[7922]: [2024-05-26T08:05:13Z DEBUG xremap::event_handler] => 0: KEY_P
May 26 16:05:13 Manaward xremap[7922]: [2024-05-26T08:05:13Z DEBUG xremap::action_dispatcher] 0: KEY_P
May 26 16:05:13 Manaward xremap[7922]: [2024-05-26T08:05:13Z DEBUG xremap::event_handler] => 1: KEY_P
May 26 16:05:13 Manaward xremap[7922]: [2024-05-26T08:05:13Z DEBUG xremap::action_dispatcher] 0: KEY_LEFTCTRL
May 26 16:05:13 Manaward xremap[7922]: [2024-05-26T08:05:13Z DEBUG xremap::action_dispatcher] 1: KEY_UP
May 26 16:05:13 Manaward xremap[7922]: [2024-05-26T08:05:13Z DEBUG xremap::action_dispatcher] 0: KEY_UP
May 26 16:05:13 Manaward xremap[7922]: [2024-05-26T08:05:13Z DEBUG xremap::action_dispatcher] 1: KEY_LEFTCTRL
May 26 16:05:13 Manaward xremap[7922]: [2024-05-26T08:05:13Z DEBUG xremap::event_handler] => 0: KEY_P
May 26 16:05:13 Manaward xremap[7922]: [2024-05-26T08:05:13Z DEBUG xremap::action_dispatcher] 0: KEY_P
May 26 16:05:13 Manaward xremap[7922]: [2024-05-26T08:05:13Z DEBUG xremap::event_handler] => 0: KEY_CAPSLOCK
May 26 16:05:13 Manaward xremap[7922]: [2024-05-26T08:05:13Z DEBUG xremap::action_dispatcher] 0: KEY_LEFTCTRL

In terminal it outputs like :

It means C-"UP".

I think I'm getting a similar thing, trying to rebind Super-P to F11 and instead of dispatching only the rebound key, it dispatches both the shortcut and the rebound key:
[2024-06-07T04:32:20Z DEBUG xremap::event_handler] => 1: KEY_LEFTMETA
[2024-06-07T04:32:20Z DEBUG xremap::action_dispatcher] 1: KEY_LEFTMETA
[2024-06-07T04:32:20Z DEBUG xremap::event_handler] => 1: KEY_P
[2024-06-07T04:32:20Z DEBUG xremap::action_dispatcher] 0: KEY_LEFTMETA
[2024-06-07T04:32:20Z DEBUG xremap::action_dispatcher] 1: KEY_F11
[2024-06-07T04:32:20Z DEBUG xremap::action_dispatcher] 0: KEY_F11
[2024-06-07T04:32:20Z DEBUG xremap::action_dispatcher] 1: KEY_LEFTMETA
[2024-06-07T04:32:20Z DEBUG xremap::event_handler] => 0: KEY_P
[2024-06-07T04:32:20Z DEBUG xremap::action_dispatcher] 0: KEY_P
[2024-06-07T04:32:20Z DEBUG xremap::event_handler] => 0: KEY_LEFTMETA
[2024-06-07T04:32:20Z DEBUG xremap::action_dispatcher] 0: KEY_LEFTMETA

Here's the relevant configuration:
keymap:
  - name: Global
    remap:
      Super-P: F11

On xremap 0.10.0


release tagging problem

We added
https://github.com/SeineAI/SeineSailor/blob/5bbf1d04d3320735da04a94b61c1dc865508b968/.github/workflows/release.yml#L42
to release-drafter. It correctly tagged one release as latest. But afterwards it cannot create any new releases.
https://github.com/SeineAI/SeineSailor/actions/runs/9104260759/job/25027772624#step:2:229
SeineAI/SeineSailor: Creating new release
{ name: 'event', id: '9104260759' }
Error: Validation Failed: {"resource":"Release","code":"already_exists","field":"tag_name"}

I want to separate production (stable) and development (latest). can you help me?
Currently, I have a workflow file that refers:
- name: Run SeineSailor
uses: SeineAI/SeineSailor@latest
which points to the latest tag release we made above.
then the action.yml has:
using: 'docker'
image: 'docker://ghcr.io/seineai/seine_sailor:latest' # change the latest to v1, v2... to separate dev and release
Which points to a docker image that we build and push when creating the latest release.
But I think the ideal setup should be:
when I make a push or manually trigger a build workflow. it updates the latest docker image for the development. so an action.yml points to the "latest" or "dev" docker image.
when I am ready for a release. It creates a new release and updates a docker image with "stable" or "prod" tag, and have the action.yml points to it.
Then I can instruct my users to use a workflow yml points to uses: SeineAI/SeineSailor@stable
and my development team use a workflow yml points to uses: SeineAI/SeineSailor@latest
is this possible?

ChatGPT-4o said:
Yes, it is possible to set up separate workflows for development (latest) and production (stable) Docker images, and to have your GitHub Actions workflows use the appropriate version for each environment. Below is a detailed plan on how to achieve this.
1. Update Development Docker Image
Create a workflow that builds and pushes the Docker image with the latest tag whenever there's a push to the main branch or a manual trigger.
Workflow: .github/workflows/update-latest.yml
name: Update Latest Docker Image

on:
  push:
    branches:
      - main
  workflow_dispatch:

jobs:
  build-and-push:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v2

      - name: Login to GitHub Container Registry
        uses: docker/login-action@v2
        with:
          registry: ghcr.io
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}

      - name: Build and push Docker image
        run: |
          docker build -t ghcr.io/seineai/seine_sailor:latest .
          docker push ghcr.io/seineai/seine_sailor:latest

2. Create Stable Release and Update Production Docker Image
Create a workflow that builds and pushes the Docker image with a versioned tag and updates the stable tag. This workflow will be triggered manually when you're ready to release.
Workflow: .github/workflows/update-stable.yml
name: Update Stable Docker Image

on:
  workflow_dispatch:

jobs:
  build-and-push:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v2

      - name: Login to GitHub Container Registry
        uses: docker/login-action@v2
        with:
          registry: ghcr.io
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}

      - name: Build and push versioned Docker image
        run: |
          VERSION=$(date +%Y%m%d%H%M%S) # or use any versioning scheme you prefer
          docker build -t ghcr.io/seineai/seine_sailor:$VERSION .
          docker push ghcr.io/seineai/seine_sailor:$VERSION

      - name: Update stable tag
        run: |
          docker tag ghcr.io/seineai/seine_sailor:$VERSION ghcr.io/seineai/seine_sailor:stable
          docker push ghcr.io/seineai/seine_sailor:stable

3. Modify action.yml to Use Appropriate Docker Tags
Update your action.yml to point to either latest or stable based on the intended usage.
action.yml
name: 'SeineSailor'
description: 'Your action description'
author: 'SeineAI'

runs:
  using: 'docker'
  image: 'docker://ghcr.io/seineai/seine_sailor:${{ inputs.tag }}'

inputs:
  tag:
    description: 'Tag of the Docker image to use'
    required: true
    default: 'stable' # or 'latest' for development

4. Using the Action in Workflows
For Development Team
jobs:
  my-job:
    runs-on: ubuntu-latest
    steps:
      - name: Use SeineSailor Latest
        uses: SeineAI/SeineSailor@latest
        with:
          tag: latest

For Production
jobs:
  my-job:
    runs-on: ubuntu-latest
    steps:
      - name: Use SeineSailor Stable
        uses: SeineAI/SeineSailor@stable
        with:
          tag: stable

Summary

Development Workflow: Updates the latest Docker image on push to main or manual trigger.
Release Workflow: Manually triggered to create a versioned Docker image and update the stable tag.
Action Configuration: action.yml uses an input to select between latest and stable Docker images.
Workflow Usage: Separate workflows for development (latest) and production (stable).

This setup ensures a clear separation between development and production environments and allows for easy updates and deployment.

fixed in 1bfef74

This is hallucination:
runs:
  using: 'docker'
  image: 'docker://ghcr.io/seineai/seine_sailor:${{ inputs.tag }}'

After research, we confirmed that the github action runner cannot access inputs.tag. We will encounter errors like:

Error: SeineAI/SeineSailor/main/action.yml (Line: 211, Col: 10): Unrecognized named-value: 'inputs'. Located at position 1 within expression: inputs.tag
Error: Failed to load SeineAI/SeineSailor/main/action.yml

We also tried things like:
  image: 'docker://ghcr.io/seineai/seine_sailor:${{ $INPUT_TAG }}'

or
  image: 'docker://ghcr.io/seineai/seine_sailor:${{ github.ref == 'refs/heads/main' && 'stable' || 'latest' }}'

They don't work either.
runs can be found at: https://github.com/SeineAI/SeineSailor/actions/runs/9131996292/job/25118846134

Final solution is in https://github.com/SeineAI/SeineSailor/pull/18


Edit command

Implementation

Edit works on details, tags, timing, date, priority, floating task etc.
needs to update help window
Tests to be written by @wengkiat

For code review by @imhongw  by Thursday 27/10 6am.

Merged into Master!!! Will reset.


some questions

hello, I have a few questions for you and I look forward to your answers:
Q1: Your referred neighborhood are edges that connect to the source vertex. Why is this set up?
Q2: why fb15k237 does not use the MLM loss？

Thanks for your interest!
For Q1, currently, our work uses a 1-hop neighborhood to provide context to the source vertex, this is simple but effective. Indeed, a multihop neighborhood could provide more information, but the larger body of noisy information also poses more challenges. So we leave it to future work.
For Q2, we did this based on the empirical result that adding the MEM loss on the FB15k237 dataset didn't improve performance. The MEM task emphasizes the information in the source vertex, but in dense KGs like FB15k237, the information in the neighborhood coulda be more helpful for link prediction.

Thanks for your interest! For Q1, currently, our work uses a 1-hop neighborhood to provide context to the source vertex, this is simple but effective. Indeed, a multihop neighborhood could provide more information, but the larger body of noisy information also poses more challenges. So we leave it to future work. For Q2, we did this based on the empirical result that adding the MEM loss on the FB15k237 dataset didn't improve performance. The MEM task emphasizes the information in the source vertex, but in dense KGs like FB15k237, the information in the neighborhood coulda be more helpful for link prediction.

thanks for your reply！ another question，have you encountered any loss and collapse in the experiment? What do you think of this problem?

In small datasets and when using small-size models, such issues are rare. The optimization of transformers sometimes requires tricks, usually adjusting the learning rate could help.


I want to use the searchview as a toolbar

Without using the suggestions, I want to use the searchview with a recyclerview under it. Anyone know how to position the recyclerview under the searchview?

It all depends on what other views you have in your Layout, but this works for me!
I use it for my SearchFragment and works well. The FloatingSearchView hides/shows while scrolling just as the Google+ app.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fitsSystemWindows="true">
    <android.support.v7.widget.RecyclerView
            android:id="@+id/recyclerview"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center_horizontal"
            android:clipToPadding="false"
            android:paddingTop="60dp"
            android:paddingLeft="1dp"
            android:paddingRight="1dp"
            />
    <com.arlib.floatingsearchview.FloatingSearchView
            android:id="@+id/floating_search_view"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            app:floatingSearch_searchBarMarginLeft="2dp"
            app:floatingSearch_searchBarMarginTop="4dp"
            app:floatingSearch_searchBarMarginRight="2dp"
            app:floatingSearch_showSearchKey="true"
            app:floatingSearch_dismissOnOutsideTouch="true"
            app:floatingSearch_leftActionMode="showHome"
            />
</RelativeLayout>

Show us your Layout and we may help you achieve your goal!

@ernestkamara's suggestion is the one I used in my own projects as well. But I do want to provide a more out-of-the box solution for that, so that clients won't have to guess the padding top.
This is one of the things I want to add in release 2.3.0. I also want to share my goals for that release in a wiki page and open it for suggestions.

@ernestkamara  works fine !! Thank you , any solution for removing shadow focus (to avoid user to click 2 times on the RecyclerView to select Item !!!


ece2cmor fails when not finding a variable

Hi,
ece2cmor is failing (and exiting) when it can't find a variable that was asked in the varlist.
the ifspostproc just shows a warning but then, the cmorization itself fails when trying to open the nc file instead of just going to the next variable. This is an issue of ny varlist that didn't comply with my IFS outputs but it makes the whole process fail.
Error in calling operator setgridtype with:

/usr/local/apps/cdo/1.7.2/bin/cdo -O -f nc -P 4 setgridtype,regular -daymean -selmon,2 -selcode,9 /scratch/ms/spesiccf/c3b/a0oe/19500101/fc0/runtime/Output_1/out-195002/3hr/ICMGGa0oe+195002 /scratch/ms/spesiccf/c3b/a0oe/auto-ecearth3/ece2cmor/ece2cmor3/atm-CMIP6-3h-195002/mrrob_Eday.nc<<<
STDOUT:

STDERR:cdo setgridtype: Started child process "daymean -selmon,2 -selcode,9 /scratch/ms/spesiccf/c3b/a0oe/19500101/fc0/runtime/Output_1/out-195002/3hr/ICMGGa0oe+195002 (pipe1.1)".
cdo(2) daymean: Started child process "selmon,2 -selcode,9 /scratch/ms/spesiccf/c3b/a0oe/19500101/fc0/runtime/Output_1/out-195002/3hr/ICMGGa0oe+195002 (pipe2.1)".
cdo(3) selmonth: Started child process "selcode,9 /scratch/ms/spesiccf/c3b/a0oe/19500101/fc0/runtime/Output_1/out-195002/3hr/ICMGGa0oe+195002 (pipe3.1)".
cdo(4) selcode (Warning): Code number 9 not found!
cdo(4) selcode (Abort): No variables selected!
ERROR:cdoapi:(returncode:1) cdo setgridtype: Started child process "daymean -selmon,2 -selcode,9 /scratch/ms/spesiccf/c3b/a0oe/19500101/fc0/runtime/Output_1/out-195002/3hr/ICMGGa0oe+195002 (pipe1.1)".
cdo(2) daymean: Started child process "selmon,2 -selcode,9 /scratch/ms/spesiccf/c3b/a0oe/19500101/fc0/runtime/Output_1/out-195002/3hr/ICMGGa0oe+195002 (pipe2.1)".
cdo(3) selmonth: Started child process "selcode,9 /scratch/ms/spesiccf/c3b/a0oe/19500101/fc0/runtime/Output_1/out-195002/3hr/ICMGGa0oe+195002 (pipe3.1)".
cdo(4) selcode (Warning): Code number 9 not found!
cdo(4) selcode (Abort): No variables selected!
INFO:postproc:Post-processing target tasmin in table Amon from file /scratch/ms/spesiccf/c3b/a0oe/19500101/fc0/runtime/Output_1/out-195002/3hr/ICMGGa0oe+195002 with cdo command -monmean -daymin -setgridtype,regular -selmon,2 -selcode,202
INFO:postproc:Post-processing target tasmax in table Amon from file /scratch/ms/spesiccf/c3b/a0oe/19500101/fc0/runtime/Output_1/out-195002/3hr/ICMGGa0oe+195002 with cdo command -monmean -daymax -setgridtype,regular -selmon,2 -selcode,201
(...)
INFO:ifs2cmor:Creating time axis using variable mrrob...
Error in calling operator showtimestamp with:

/usr/local/apps/cdo/1.7.2/bin/cdo -O showtimestamp /scratch/ms/spesiccf/c3b/a0oe/auto-ecearth3/ece2cmor/ece2cmor3/atm-CMIP6-3h-195002/mrrob_Eday.nc<<<
STDOUT:

STDERR:cdo showtimestamp: Open failed on >/scratch/ms/spesiccf/c3b/a0oe/auto-ecearth3/ece2cmor/ece2cmor3/atm-CMIP6-3h-195002/mrrob_Eday.nc<
No such file or directory
Traceback (most recent call last):
File "./ece2cmor.py", line 90, in
main(sys.argv[1:])
File "./ece2cmor.py", line 85, in main
maxsizegb = args.tmpsize)
File "/lus/snx11062/scratch/ms/spesiccf/c3b/a0oe/auto-ecearth3/ece2cmor/ece2cmor3/ece2cmorlib.py", line 137, in perform_ifs_tasks
ifs2cmor.execute(ifs_tasks,cleanup = cleanup)
File "/lus/snx11062/scratch/ms/spesiccf/c3b/a0oe/auto-ecearth3/ece2cmor/ece2cmor3/ifs2cmor.py", line 141, in execute
cmorize([t for t in processedtasks if getattr(t,"path",None) != None])
File "/lus/snx11062/scratch/ms/spesiccf/c3b/a0oe/auto-ecearth3/ece2cmor/ece2cmor3/ifs2cmor.py", line 345, in cmorize
create_time_axes(tskgroup)
File "/lus/snx11062/scratch/ms/spesiccf/c3b/a0oe/auto-ecearth3/ece2cmor/ece2cmor3/ifs2cmor.py", line 458, in create_time_axes
tid = create_time_axis(freq = task.target.frequency,path = getattr(task,"path"),name = tdim,hasbnds = (timop != ["point"]))
File "/lus/snx11062/scratch/ms/spesiccf/c3b/a0oe/auto-ecearth3/ece2cmor/ece2cmor3/ifs2cmor.py", line 602, in create_time_axis
times = command.showtimestamp(input = path)[0].split()
File "/home/ms/spesiccf/c3b/.local/lib/python2.7/site-packages/cdo.py", line 206, in get
raise CDOException(**retvals)
cdo.CDOException: (returncode:1) cdo showtimestamp: Open failed on >/scratch/ms/spesiccf/c3b/a0oe/auto-ecearth3/ece2cmor/ece2cmor3/atm-CMIP6-3h-195002/mrrob_Eday.nc<
No such file or directory

Hi @pabretonniere, I was wondering if you got the run to ignore a missing variable (in your case param 9) and carry on, and not abort (I have a similar error).

OK, I will try to fix this. I can add a flag to the task when it fails the postproc step and ignore it for the rest of the program.

Hi @goord , I noticed you made a recent change (839, 12 sept). Perhaps not, I was just wondering if this change was to do with the flagging the task when it fails. Thanks (When I tried this latest, I get aborts when a parameter cannot be found, as before)

Hi @jmcgove, I am working on that one, expect a push either today or this weekend.

Hi @goord , the latest update doesn't abort, thanks. There is now output in tmp, for the parameters in the ICM files I used (ua, va, ta, hus, zg).
I guess the 27_6hrPlevPt.nc files are the 6 hour files? The day (daily) and Amon (monthly average) files have 30 segments and 1 segment (the ICM file is just one month, starting 1990-01-01, so that makes sense). These are the cmorised files?


Assert in Node that PhetioObject keys aren't provided to mutate more than once

@samreid and I felt like this would be the most complete to check in Node.initializePhetioObject. Something like:
assert && assert( _.intersection( PhetioObject.DEFAULTS, Object.keys( config)).length === 0 ) );`
I was a little concerned about performance, perhaps we can improve this a little bit, though I'm not sure how.
This is coming from work over in #1046.

FYI - Asked asked ChatGPT how it would label this issue for the board, and it actually offered optimization ideas first:
"To potentially improve the performance, you might consider the following approaches:
Optimize the Intersection Check:
The current implementation uses _.intersection, which could be less efficient if the objects have many keys. A more performant approach might involve a direct loop over the keys of one object and checking their existence in the other.
Limit the Check to Development Mode:
If the performance impact is significant, consider running this assertion only in development or debug mode. This way, you can catch potential issues during development without affecting the performance in production.
Cache Common Computations:
If there are aspects of the check that are invariant (do not change over time), consider caching them. For example, if PhetioObject.DEFAULTS is static, you could preprocess its keys into a more efficient data structure for quick lookup.
Use a More Efficient Data Structure:
Depending on the size of PhetioObject.DEFAULTS and config, it might be more efficient to use a data structure like a Set for quicker lookups.
A possible optimized version could look like this:
assert && assert((() => {
    const defaultsKeys = new Set(Object.keys(PhetioObject.DEFAULTS));
    return !Object.keys(config).some(key => defaultsKeys.has(key));
})());

This code creates a Set of keys from PhetioObject.DEFAULTS and then checks if any key in config is in that Set, returning true if there's no overlap. The use of Set could offer faster lookups compared to array-based intersection checks, especially if the number of keys is large."


fix: update the default VSI image name to ibm-ubuntu-22-04-2-minimal-amd64-1

Update VSI image name variable defaults to ibm-ubuntu-22-04-2-minimal-amd64-1

/run pipeline

/run pipeline

:tada: This PR is included in version 4.9.1 :tada:
The release is available on:

GitHub release
v4.9.1

Your semantic-release bot :package::rocket:


[WIP] Test rework, next

Based on top of #3464
Contains work on image tests.

This is blocked by #3435

Cleaning up.


Check that chain ID in EIP-712 message is the same as the current/enabled chain before showing user the prompt to sign it

[ ] A. in the dapp browser and if not using WalletConnect (if the chain ID is different from the current one in the browser), return or display an error to the dapp. Display an error message to the user, something like: "You were requested to sign a message for the Ethereum [replace with the target chain name] chain. You are currently on the Polygon [replace with current chain name] chain"
[ ] B. for WalletConnect v1 (if the chain ID is different from the current one for the WC session), return error to WalletConnect server. Display an error message to the user, something like: "You were requested to sign a message for the Ethereum [replace with the target chain name] chain. You are currently on the Polygon [replace with current chain name] chain"
[ ] C. for WalletConnect v2 (if the chain ID is not included in the list of active chains for the WC session), return error to WalletConnect server. Display an error message to the user, something like: "You were requested to sign a message for the Ethereum [replace with the target chain name] chain. You need to enable this chain for your WalletConnect session"

@hboon do we have example dapps for testing?

No 😭


ci: add prepareCommands in Semantic Release configuration

:tada: This PR is included in version 2.0.0 :tada:
The release is available on:

2.0.0
GitHub release

Your semantic-release bot :package::rocket:


Make the parameterized 'AssertionConsumerServiceURL'  values to work with IS Dashboard configurations

Better to get the parameterized values working for IS dashboard configurations rather than asking the user to manually configure the Dashboard configurations in "sso-idp-config.xml" when configuring the cluster setup.
Purpose of this is to reduce the number of manual configurations required from user's point of view.
Ex: Doc [1], "Setting up the dashboard" step 1 where the "AssertionConsumerServiceURL" needs to be configured.
Parameterized configurations are as below
 <AssertionConsumerServiceURL>${carbon.protocol}://${carbon.host}:${carbon.management.port}/dashboard/acs</AssertionConsumerServiceURL>
[1] https://docs.wso2.com/display/IS540/Clustered+Deployment

Thank you for your contribution!
We are closing this issue since it has not been prioritized for a long time. Chances are that it has already been solved in more recent versions. If not, we will be re-evaluating this when it becomes a priority.


Update faq.md

Add commas to the dict. To make code in the docs valid Python code.

Oh my :blush: good catch!

Hey, no worries, I don't understand Codecov myself. I think we can merge :slightly_smiling_face:

Thanks!


xf86_input_wacom: 0.40.0 -> 1.0.0

Motivation for this change
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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

[x] 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/)
22.05 Release Notes (or backporting 21.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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 160091 run on x86_64-linux 1

8 packages built:

cinnamon.cinnamon-common
cinnamon.cinnamon-control-center
cinnamon.cinnamon-gsettings-overrides
cinnamon.cinnamon-screensaver
cinnamon.cinnamon-session
cinnamon.cinnamon-settings-daemon
wacomtablet
xf86_input_wacom


raspibolt_channels

[ Still can't workout how to create a branch with ONLY this change in it.]

This is a candidate for the Bonus section
Rob

#!/bin/bash
###############################################
#  /usr/local/bin/raspibolt_channels
#
#  Shows details of current channels
#
###############################################

# Usage
# $ raspibolt_channels            to display lnd mainnet channels
# $ raspibolt_channels --testnet  to display lnd testnet channels

# Set Default (mainnet)
lncli='/usr/local/bin/lncli'
lnd_pid=$(systemctl show -p MainPID lnd | awk -F"=" '{print $2}')
chain='main'

# read cli args
for i in "$@"
do
case $i in
    --testnet*)
    lncli="/usr/local/bin/lncli  --rpcserver=localhost:11009"
    lnd_pid=$(systemctl show -p MainPID lnd_testnet | awk -F"=" '{print $2}')
    chain='test'
    shift # past argument=value
    ;;
esac
done

if [ "$lnd_pid" -eq "0" ]; then
 echo lnd not runnning.
 exit
fi

# set colors
color_red='\033[0;31m'
color_green='\033[0;32m'
color_yellow='\033[0;33m'
color_gray='\033[0;37m'

# gather values
a_active=( $(${lncli} listchannels | jq -r ' .channels[].active'))
a_remote_pubkey=( $(${lncli} listchannels | jq -r ' .channels[].remote_pubkey'))
a_capacity=( $(${lncli} listchannels | jq -r ' .channels[].capacity'))
a_local_balance=( $(${lncli} listchannels | jq -r ' .channels[].local_balance'))
a_remote_balance=( $(${lncli} listchannels | jq -r ' .channels[].remote_balance'))
a_commit_fee=( $(${lncli} listchannels | jq -r ' .channels[].commit_fee'))
a_channel_point=( $(${lncli} listchannels | jq -r ' .channels[].channel_point'))

total=${#a_active[*]}
total_capacity=0
total_fee=0
total_local=0
total_remote=0

#display
printf "${color_yellow}%-7s%60s %11s\n" "${chain}net" 'Commit ------- Balance ---------' '--- Fee ----'
printf "%-21s %12s %5s %12s %12s %6s %5s\n" 'Alias or Pubkey' 'Capacity' 'Fee' 'Local' 'Remote' 'Base' 'PerMil'
horiz_line="-------------------- ------------- ------ ------------ ------------ ----- ------"
echo $horiz_line
for (( i=0; i<=$(( $total -1 )); i++ ));do
 if [ ${a_active[$i]} == 'true' ];  then
  color_line=${color_gray}
 else
  color_line=${color_red}
 fi
 alias=$(${lncli} getnodeinfo ${a_remote_pubkey[$i]} | jq -r .node.alias)
 if [ "${alias}" == "" ] ; then
  alias_short=$(echo ${a_remote_pubkey[$i]} | cut -c-17)...
 else
  alias_short=$(echo ${alias} | cut -c-20)
 fi
 active_short=$(echo ${a_active[$i]} | cut -c1)
 # get fee report details
 base_fee_msat=$(${lncli} feereport | jq -r ".channel_fees[] | select(.channel_point | test(\"${a_channel_point[$i]}\")) | .base_fee_msat")
 fee_per_mil=$(${lncli} feereport | jq -r ".channel_fees[] | select(.channel_point |
 test(\"${a_channel_point[$i]}\")) | .fee_per_mil")
 # Display line
 printf "${color_line}%-21s %12s %6s %12s %12s %5s %6s\n" \
        "${alias_short}" "${a_capacity[$i]}" "${a_commit_fee[$i]}" "${a_local_balance[$i]}" \
        "${a_remote_balance[$i]}" "${base_fee_msat}" "${fee_per_mil}"
 total_capacity=$(( ${total_capacity} + ${a_capacity[$i]} ))
 total_fee=$(( ${total_fee} + ${a_commit_fee[$i]} ))
 total_local=$(( ${total_local} + ${a_local_balance[$i]} ))
 total_remote=$(( ${total_remote} + ${a_remote_balance[$i]} ))
done
printf "${color_yellow}%s\n" "${horiz_line}"
printf "Totals%14s %13s %6s %12s %12s" "${total} ch" "${total_capacity}" "${total_fee}" "${total_local}" "${total_remote}"
echo "$(tput -T xterm sgr0)"

Hi Rob, I love it. However, I don't have the time to update the guide atm. Could you try to create a full PR, incl. updated Bonus section table-of-content and the whole framing of this new page?
If not, I'll try to include it sometime in June, but it's a pitty to wait that long... :-)

I tested your scripts and this one works very well without changes, except for the layout when channels use non-latin characters. printf does not seem to handle this correctly. Maybe a cleansing (UTF > ASCII) is needed, or an alternate way of alignment?

OK ... will see what I can do after

Returning to AU (I have no direct access to the RaspiBolt)
Working out how to log in to my RaspiBolt. Again my testnet lnd is in a state where I can't login as lnd listchannels hangs .... and that means MOTD hangs. I am told next release has a fix for the lnd bug.

Great. Regarding the MOTD hanging, this is why I set up the guide to still allow "root" to log in (without MOTD), you could try that. And I guess the inclusion of a timeout in the MOTD would be helpful
http://www.fibrevillage.com/sysadmin/236-how-to-timeout-a-command-in-linux-shell

Back ... and have a simple fix for the formatting issue.
change:
Display line
printf "${color_line}%-21s %12s %6s %12s %12s %5s %6s\n"
"${alias_short}" "${a_capacity[$i]}" "${a_commit_fee[$i]}" "${a_local_balance[$i]}"
"${a_remote_balance[$i]}" "${base_fee_msat}" "${fee_per_mil}"
to:
Display line
printf "${color_line}%-21s %12s %6s %12s %12s %5s %6s\r%-21s\n"
"" "${a_capacity[$i]}" "${a_commit_fee[$i]}" "${a_local_balance[$i]}"
"${a_remote_balance[$i]}" "${base_fee_msat}" "${fee_per_mil}"  "${alias_short}"
The trick is to print ${alias_short} last and precede with "\r"

Thanks for the great fix, both scripts are now included:
https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_67_additional-scripts.md


[Feature] BUBBLE FLOAT Animated Background

Description
It is a live background play on hover
Screenshots

Checklist

[X] I have checked the existing issues.
[X] I follow Contributing Guidelines of this project.
[ ] I am a IWOC'24 contributor.
[ ] I am a JWOC'24 contributor.
[X] I am a SWOC'24 contributor.

Code of Conduct

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

Proceed @Parth4git


Problem with singletons instantiation for child injectors

As @Crunkle stated in https://github.com/google/guice/issues/1084#issuecomment-308415419, the behaviour in case when there's an explicit singleton binding in one child injector but not the other is quite unexpected. We encountered this bug in production and it took a lot of research to isolate the issue.

The following test fails, yet follows your wording: the first child's instance should be different whilst the second and third are shared. It is true that they are both singletons in their own scopes, but they are not equivalent instances and definitely not shared.
public class GuiceTest {

    @Test
    public void testChildren() {
        Injector root = Guice.createInjector();

        Injector manualChild = root.createChildInjector(new AbstractModule() {

            @Override
            protected void configure() {
                this.bind(MySingleton.class).toInstance(new MySingleton());
            }
        });

        // Pass
        MySingleton nonJIT = manualChild.getInstance(MySingleton.class);

        // Fail
        Assert.assertEquals(
            root.createChildInjector().getInstance(MySingleton.class),
            root.createChildInjector().getInstance(MySingleton.class)
        );
    }
}

Thus @lukesandberg 's words

in the second and third child MySingleton is a jit binding. for child injectors we intentionally try to resolve jit bindings in parents first. so both secondChild and thirdChild will ask the root for the binding and thus share the singleton.

are incorrect and #1084 was closed incorrecly. This issue should be fixed.

We also ran into this issue in production and it took a lot of investigations to arrive at this issue. This behavior is not according to intention/documentation, and need to be fixed.


Add container image registries document

Add container image registries document to production-environment
Fixes: #39815

This is an initial draft, let me know what you think @dims, @sftim
Thanks

Thanks for reviewing @sftim.
Clearly I didn't understand what was requested in the issue.
Closing this now.


Fixing layer lit example to represent layer-list-item in a new file

Quick adjustment to an import

Coverage remained the same at 98.44% when pulling 04ec3f663fb35f76415beaf2b7fe1e3c8a3e4211 on wnordmann:layerListItemBug into a9dd8a529e00da655cc36e5043cfd8c3dc161112 on boundlessgeo:master.

this works for me but theres a huge extra polygon on the states layer and I cant tell where it's coming from -

we should consider letting travis build the examples so we catch this in PRs

yeah we had to enable WFS-T on the demo server for the WFS-T example which means anybody can change our data now ... wonder if that is what is happening

AFAICT there wasn't a way in geoserver to just enable WFS-T on a single layer


Checkpoint model by default?

How can I modify the model loaded by default?
instead of Stable diffusion XL, I want to load another by default.

use its link in the "model download" cell

But I have the model already downloaded, I just want to set to default this model.

It won't redownload it if it already exists

I understand thank you so much for clarify, it would be very good if in a future was possible choose with model you want start. Sometime it takes a lot time to change change from one to the other


Record ingredients in inventory

Be able to keep track of ingredients currently in the inventory.

Feature added with cedcd7bb86d9cbc74778fd4243c95e5b6370b6c6.


Allow initialization methods to be called before a scene is added to the Scene Tree

Is your feature request related to a problem? Please describe.
ISceneRunner.Load automatically adds the loaded Node to the SceneTree, causing _Ready to be called before any initializing functions can be run
Describe the solution you'd like
Overloaded the ISceneRunner.Load method to accept a Node or a resource path.
Describe alternatives you've considered
ISceneRunner could be changed to have a a Start method and only add the scene once this is called, but this would be a breaking change requiring a major version update.

Overloaded the ISceneRunner.Load method to accept a Node or a resource path.

It accepts already resource path or the scene instance.
You can solve this already by just override the scene_runner function by
func scene_runner(scene :Variant, verbose := false) -> GdUnitSceneRunner:
        # do your custom init stuff
        scene.init();
	return auto_free(GdUnitSceneRunnerImpl.new(scene, verbose, true))


Replace generic 1q gates with specific angles by more readable gate names

What is the expected enhancement?
Right now, several gate calls use a bit cryptic looking calls to the general 1-qubit gate U instead of more readable gates like X or H. To produce circuits that are easier to look at we should try using the commonly known gate names.
Examples: ReplaceU(pi, 0, pi) by X and U(pi/2, 0, pi) by H.

Hey! Is the change to be done in the source code?

Hello! Yes it is 🙂

@Cryoris I have created the PR, please check.


fix: mobile network switch issue

Seems the detected provider has undefined values for some reason on reload 🤔

Logged the issue here https://github.com/MetaMask/metamask-mobile/issues/2732. Although, it might be nextjs related..

Issue is affecting kwenta as well..

@vbstreetz closing this one for now.


Make sure to replace only strings

Fix #1

Coverage remained the same at 100.0% when pulling 095cb370962f162032e3803aa6dd902e669f2794 on frdmn:patch-1 into d418754c2aeb135b24e78d580e73202963146177 on ly-tools:master.

Coverage remained the same at 100.0% when pulling 095cb370962f162032e3803aa6dd902e669f2794 on frdmn:patch-1 into d418754c2aeb135b24e78d580e73202963146177 on ly-tools:master.


[GLUTEN-8183] Not collapse pre-project for duplicated expression evaluation

What changes were proposed in this pull request?
Fix #8183
How was this patch tested?
Add a new UT.

Run Gluten Clickhouse CI on x86

@taiyang-li @PHILO-HE @ulysses-you Could you help to review?

/Benchmark Velox


Bump electron version to 1.2.2

Fixes error when running npm start:
App threw an error during load
Error: Cannot find module 'app'
    at Module._resolveFilename (module.js:438:15)
    at Function.Module._resolveFilename (/usr/local/lib/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/electron.asar/common/reset-search-paths.js:47:12)
    at Function.Module._load (module.js:386:25)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/sli/spreenauten/electron-angular-boilerplate/main.js:4:11)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)

Thanks, just installed it and needed this patch to get it to work.  Please accept @Stephn-R

Hey @rpocklin @Stephn-R is not maintaining this project any more, he made me a contributor though to keep it going so I will pull this and check it out!

@devsli can you please change the base for this PR to develop

@pushtheworldllc done, check out #21

@pushtheworldllc I am still alive

@Stephn-R :)


A directory with subdirectories is flattened when copied

The flatten option was added to te copy command since this commit https://github.com/JeffreyWay/laravel-mix/pull/135/commits/4cee266181d5d8fc96d4ad6e19276e2b900b4d0b, now how to copy a directory without flattening it ?

i'm facing the same issue right now if i try to copy directory into new location all files within old directory got flatten in the new directory by default and there is no option to control it
/**
 * Copy one or more files to a new location.
 *
 * @param {string} from
 * @param {string} to
 */
module.exports.copy = (from, to) => {
    Mix.copy = (Mix.copy || []).concat({
        from,
        to: Mix.Paths.root(to),
        flatten: true
    });

    return this;
};

i changed it into
/**
 * Copy one or more files to a new location.
 *
 * @param {string} from
 * @param {string} to
 */
module.exports.copy = (from, to, flatten = true) => {
    Mix.copy = (Mix.copy || []).concat({
        from,
        to: Mix.Paths.root(to),
        flatten: flatten
    });

    return this;
};

to fix the issue for now

The flatten was added as a workaround for folder ambiguities when copying a tree with just src and dest args. #101
Instead I've used the 'context' copy-webpack-plugin option. Context allows you to specify the root that the copy is relative to - rather than implying it all from the 'from' arg (same as the cwd option to glob). Flatten shouldn't be necessary.
Something like:
mix.copy2 = function (from, to, root) {
    var options = {
        from: from,
        to: Mix.Paths.root(to)
    };
    if (root) {
        options.context = root;
    }
    Mix.copy = (Mix.copy || []).concat(options);
};

I just a merged a PR that allows you to specify whether or not to flatten the output. Pass it as the third argument to mix.copy('from, 'to', false).


Add main property to package.json

having the main property follows npm best practices for simpler including the main file of the package.
for example, when using cssloader in webpack
/* before */
.container {
  composes: db from 'tachyons-display/src/tachyons-display.css';
}

/* after */
.container {
  composes: db from 'tachyons-display';
}

i'll try to do PRs for all modules, any help is appreciated... otherwise, please try to let me know rather sooner that later, if that work would be wasted, because you don't want that feature :)

PS: i'm not gonna add any PR descriptions to the other modules, i assume once is enough

forgive me for being blind, there is already the style property for this path. however i'm not sure i can webpack make evaluate this porperty? maybe @sokra could shed some light?

apparently its talked about here: https://github.com/webpack/css-loader/issues/51


fix(card): change stories to align cards center

Related Ticket(s)
#4399
Description
Card and Card Link stories now changed so that they align to center and have a top padding.
Changelog
Changed

align items to center and top-padding: 1rem

Closing this PR and will create another after talking with designers.

Closing this PR and will create another after talking with designers.


Add new version of Platform Toolkit to repository

Description

The new version of the Platform Toolkit was added in the "platform toolkit" folder. Aside from this folder and adding the Vocabulary style-sheets, nothing else was altered.

Other information

The main header (menu) was not added (it's only a placeholder static image)

Checklist

[x] My pull request has a descriptive title (not a vague title like Update index.md).
[x] My pull request targets the master branch of the repository.
[x] My commit messages follow best practices.
[x] I tried running the project locally and verified that there are no
visible errors.

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

We should not be committing the node_modules files.

@aldenstpage @apdsrocha what is the status of this?

@kgodey @aldenstpage I apologize for the delay, I'm out of town setting up my parents for the quarantine, but I'll fix this PR this week. Again, so sorry for taking this long.

@apdsrocha no rush and no apologies necessary, the world is going crazy! I just wanted to check in. :)

@kgodey thank you so much for understanding, these last few days have been very hard.  I updated this PR. If there's anything else that needs fixing, I'll gladly do it. Thank you again!

Hi @TimidRobot! Thank you so much for taking the time to review this. I'm not sure how to do the final implementation either, this is as far as @aldenstpage and I got when mapping out this project during Outreachy. I think for now merging to a new branch sounds good.


GWT Error while loading Layout

Bug with Environment:

Browser: Latest Firefox
Addons on Firefox(important): "LastPass Password Manager" (<IP_ADDRESS>, latest)

Don't know why, its funny. If you install plain new firefox, and install latest lastpass plugin, then the components failing, and the whole site is black

Mon Jan 29 00:20:06 GMT+100 2018 com.vaadin.client.communication.MessageHandler
SEVERE: Error sending state change events
com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) : this._meta.byKey is not a function
	at Unknown.Hg(https://app-layout-demo.herokuapp.com/)
	at Unknown.Ov(https://app-layout-demo.herokuapp.com/)
	at Unknown.Qv(https://app-layout-demo.herokuapp.com/)
	at Unknown.nv(https://app-layout-demo.herokuapp.com/)
	at Unknown.LDb(https://app-layout-demo.herokuapp.com/)
	at Unknown.YDb(https://app-layout-demo.herokuapp.com/)
	at Unknown.cPb(https://app-layout-demo.herokuapp.com/)
	at Unknown.YOb(https://app-layout-demo.herokuapp.com/)
	at Unknown.lPb(https://app-layout-demo.herokuapp.com/)
	at Unknown.Dzb(https://app-layout-demo.herokuapp.com/)
	at Unknown.LCb(https://app-layout-demo.herokuapp.com/)
	at Unknown.iGb(https://app-layout-demo.herokuapp.com/)
	at Unknown.vGb(https://app-layout-demo.herokuapp.com/)
	at Unknown.zGb(https://app-layout-demo.herokuapp.com/)
	at Unknown.LGb(https://app-layout-demo.herokuapp.com/)
	at Unknown.oGb/<(https://app-layout-demo.herokuapp.com/)
	at Unknown.Wh(https://app-layout-demo.herokuapp.com/)
	at Unknown.Zh(https://app-layout-demo.herokuapp.com/)
	at Unknown.Yh/<(https://app-layout-demo.herokuapp.com/)
	at Unknown.whenReady/<(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.f/</<(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.d/</<(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.c(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.k(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.dispatchEvent(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.prototype.g(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.prototype.j/<(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.m(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.prototype.j(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.d(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.prototype.i/<(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.b(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.b/<(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.c(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.k(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.anonymous(Unknown)
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError) : this._meta.byKey is not a function
	at Unknown._updateIcon(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/iron-icon/iron-icon.html.js)
	at Unknown.runMethodEffect(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/polymer/lib/mixins/property-effects.html.js)
	at Unknown.runEffectsForProperty(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/polymer/lib/mixins/property-effects.html.js)
	at Unknown.runEffects(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/polymer/lib/mixins/property-effects.html.js)
	at Unknown._propertiesChanged(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/polymer/lib/mixins/property-effects.html.js)
	at Unknown._flushProperties(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/polymer/lib/mixins/property-accessors.html.js)
	at Unknown._invalidateProperties(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/polymer/lib/mixins/property-effects.html.js)
	at Unknown._setProperty(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/polymer/lib/mixins/property-effects.html.js)
	at Unknown.set<(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/polymer/lib/mixins/property-accessors.html.js)
	at Unknown.disconnectedCallback(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/polymer/lib/legacy/legacy-element-mixin.html.js)
	at Unknown.prototype.disconnectedCallback(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.prototype.a(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.be/<(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.set(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.set(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.Qj(https://app-layout-demo.herokuapp.com/)
	at Unknown.qNc(https://app-layout-demo.herokuapp.com/)
	at Unknown.l5c(https://app-layout-demo.herokuapp.com/)
	at Unknown.u5c(https://app-layout-demo.herokuapp.com/)
	at Unknown.oQb(https://app-layout-demo.herokuapp.com/)
	at Unknown.wv(https://app-layout-demo.herokuapp.com/)
	at Unknown.nv(https://app-layout-demo.herokuapp.com/)
	at Unknown.LDb(https://app-layout-demo.herokuapp.com/)
	at Unknown.YDb(https://app-layout-demo.herokuapp.com/)
	at Unknown.cPb(https://app-layout-demo.herokuapp.com/)
	at Unknown.YOb(https://app-layout-demo.herokuapp.com/)
	at Unknown.lPb(https://app-layout-demo.herokuapp.com/)
	at Unknown.Dzb(https://app-layout-demo.herokuapp.com/)
	at Unknown.LCb(https://app-layout-demo.herokuapp.com/)
	at Unknown.iGb(https://app-layout-demo.herokuapp.com/)
	at Unknown.vGb(https://app-layout-demo.herokuapp.com/)
	at Unknown.zGb(https://app-layout-demo.herokuapp.com/)
	at Unknown.LGb(https://app-layout-demo.herokuapp.com/)
	at Unknown.oGb/<(https://app-layout-demo.herokuapp.com/)
	at Unknown.Wh(https://app-layout-demo.herokuapp.com/)
	at Unknown.Zh(https://app-layout-demo.herokuapp.com/)
	at Unknown.Yh/<(https://app-layout-demo.herokuapp.com/)
	at Unknown.whenReady/<(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.f/</<(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.d/</<(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.c(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.k(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.dispatchEvent(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.prototype.g(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.prototype.j/<(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.m(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.prototype.j(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.d(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.prototype.i/<(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.b(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.b/<(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.c(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.k(https://app-layout-demo.herokuapp.com/VAADIN/bower_components/webcomponentsjs/webcomponents-lite.js)
	at Unknown.anonymous(Unknown)

any idea?

Seems to be an issue connected with webcomponents.js.

@fo0 I had the same issue with LastPass on firefox, but I found the LastPass has several issues with Custom Elements
https://github.com/webcomponents/custom-elements/issues/137
I ended up dropping out the LastPass because as you can see from the thread before, it's a pure LastPass issue.

Since this isn't an issue of this addon, but of LastPass itself I will close the issue for the sake of lucidity


[CINFRA-255] Unconfigured Log Replicated State Fix

Scope & Purpose
Rename largestCommonIndex to lowestIndexToKeep. The largest common index can actually fall if you add a new follower. We don't want this index to fall, hence lowestIndexToKeep fits better.
Furthermore, we don't create a replicated state on top of a replicated log, if the replicated log is still unconfigured. This is a temporary workaround and will later be replaced by a unconfigured state in the replicated state.

[x] :hankey: Bugfix
[ ] :pizza: New feature
[ ] :fire: Performance improvement
[ ] :hammer: Refactoring/simplification

Checklist

[x] Tests

[x] C++ Unit tests
[x] integration tests
[ ] resilience tests

only error is
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(687,5): error MSB6006: "CL.exe" exited with code -1. [D:\hw19-windows\oskar\work\ArangoDB\build\tests\arangodbtests.vcxproj]

But enterprise build was successful in previous runs.


increased security - allow secret to be kept on user model.

Goal is to allow secret to be kept on user level, so in case of user token being compromised I don't have to logout everybody by changing secret, I can only change secret on this one person. It also allows to force logout on all devices (by user) or to log out when changing password.

Is there any advantage to using a secret over a DateTime field, and just not accepting tokens issued before the stored date if there is one?

@Alex3917 that would be also a  pretty good way to solve the issue however in my use case the date or the token needs to be stored in the user model because I want to simply invalidate one user tokens.
Also, using a date that human can edit would be a bit dangerous. A mistake in changing the date could result in setting in future so the user would not be able to use the app until that date passes - debugging that could be a real pain. Probably to implement this safely it would require some button on user profile in admin, like reset JWT tokens or sth, that would set this DateTime to now(), instead just simple field with string.

I'll give it thought. Glad you like it.
W dniu sob., 4.03.2017 o 14:31 José Padilla<EMAIL_ADDRESS>napisał(a):

@jpadilla commented on this pull request.
I like this a lot. I'm wondering if we could get rid of
JWT_AUTH_USER_MODEL and just use get_user_model() where possible like
we're already doing. Thoughts?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/GetBlimp/django-rest-framework-jwt/pull/310#pullrequestreview-25123539,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA8YSJtTJfgfTU4_kVAB9YE91VBTBFNtks5riWesgaJpZM4MPF-z
.

--
Jacek Ostański
Internet Evolution - Strony i serwisy Internetowe
608-230-735

@angvp thoughts on this?

@jacoor
Yeah that's how I do it currently, in terms of storing a datetime field on the user model and just setting it to timezone.now whenever a user changes their password. Then I just validate it like this:
    """ Expire token on password change and force user to re-authenticate. """

    def authenticate_credentials(self, payload):
        user = super().authenticate_credentials(payload)

        orig_iat = int(payload['orig_iat'])
        password_last_changed = int(format(user.password_last_changed, 'U'))

        if orig_iat < password_last_changed:
            msg = 'Users must re-authenticate after changing password.'
            raise exceptions.AuthenticationFailed(msg)

        return user

I haven't run into any bugs with this, although I guess if this is part of a library that's going to be deployed in environments where server times could be out of sync or whatever then a uuid is probably more robust. (I personally like having the data about when users last changed/reset their passwords though.)

I agree with @jpadilla here, if you can get rid of that duplicated settings for auth model and use the method get_user_model [0] instead would be better.
[0] https://docs.djangoproject.com/en/1.10/topics/auth/customizing/#django.contrib.auth.get_user_model

@jpadilla @angvp thank you for pointing me to the fix. Updated, tests passed.

@remik please keep an eye on this too. We can remove our for from projects when this is merged.

@jpadilla @angvp any chance of merging this to master soon?
Thanks!

@jpadilla I've reviewed and I'm ok to merge it, wanna do it and create the release on PyPI as well? :-) Thanks!.

Merged, please @jpadilla let us know when you build a new release :D

Great! thanks!

Just released this under v1.10. Thank you all!


[TUTORIAL] Tutorial for tensorize

Tensorize has been used in several places throughout the project but not very clearly documented, we will need one or a few tutorials in demonstrating what it is and how can be use it to run micro kernels etc.

I think it'd be a good idea to incorporate an ARM example with a bit-serial tensor kernel.
We can also use a VTA tensorization example, but the tutorial will be less straightforward. @cowanmeg  - do you think we can put one together with your ARM bit-serial kernel, including the definition of the tensor intrinsic?
The only issue I see at the moment is that this tutorial will have to execute on ARM, so it's not quite straightforward to just deploy on any test setup.

I feel tutorial on cpu is also good enough for demonstrating. I can help with that.

Did we agree on who would get started on the CPU tensorization tutorial @yzhliu @cowanmeg ?

Yes, sounds good!

@cowanmeg would you like to contribute the tutorial? or I can start to work on it from this weekend.

I have some time this week too. My example is for adding an ARM microkernel, but it would be great if you have an x86 example so that people can run it.

@cowanmeg @yzhliu any updates?

not yet from my side ...

I would like to revive this thread @cowanmeg @yzhliu ,please follow up on this

I'm writing and investigating the problem I mentioned in int8 PR #1680 - I feel it is a bug.

PR: https://github.com/dmlc/tvm/pull/1774


Show total image size in stats window

The total image size should be shown as well to get a better feel for how big images are.

Even better if we can show total size by layer

Not sure how i missed it, layer size already exists.

I split out the layer and image details into two sections and added the total image size as a stat in the image section.


Add possibility to configure URLSession

We need to set the URLSession delegate and do some more configurations.

It is possible to pass a configured url session into the client.


OnAwake call when System is disabled in Installer

OnAwake is an initialization point and has nothing to do with turning systems on/off.
Similarly, Dispose is not called when the system shuts down.


TypeError: Cannot read property 'length' of undefined

Environment details

OS: Google Cloud Functions
Node.js version: 8
npm version:
@google-cloud/pubsub version: 0.32.0

Steps to reproduce
const pubsub = new PubSub();
const data = JSON.stringify({ id: `foo`, operation: { name: `bar` } });
const dataBuffer = Buffer.from(data);
pubsub.topic(`projects/project-id/topics/xxx`).publish(dataBuffer).then(messageId => {
  console.log(`Message ${messageId} published.`);
  callback();
}).catch(err => {
  console.error('ERROR:', err);
  callback();
});

and error:
{
 insertId:  "000000-bd28418c-a3e9-4001-beca-235601190e6d"
 receiveTimestamp:  "2019-09-12T14:35:01.511527849Z"
 severity:  "ERROR"
 textPayload:  "ERROR: TypeError: Cannot read property 'length' of undefined
    at Root.load (/srv/node_modules/protobufjs/src/root.js:192:44)
    at Root.loadSync (/srv/node_modules/protobufjs/src/root.js:235:17)
    at Object.loadSync (/srv/node_modules/@grpc/proto-loader/build/src/index.js:230:27)
    at GrpcClient.loadFromProto (/srv/node_modules/google-gax/build/src/grpc.js:118:44)
    at GrpcClient.loadProto (/srv/node_modules/google-gax/build/src/grpc.js:145:21)
    at new PublisherClient (/srv/node_modules/@google-cloud/pubsub/build/src/v1/publisher_client.js:121:28)
    at PubSub.getClientAsync_ (/srv/node_modules/@google-cloud/pubsub/build/src/pubsub.js:633:25)
    at <anonymous>"
 timestamp:  "2019-09-12T14:35:00.812Z"
}

With 0.31.1 all works good.

I 'm have the same problem. Here is console log after install googleapis/nodejs-pubsub#debug.
`=== Debug information ===
opts: {"credentials":{-----not shown here----,"projectId":"xxxxxx"}
global.isBrowser: undefined
nodejsProtoPath<EMAIL_ADDRESS>opts.fallback: undefined
loadProto arg<EMAIL_ADDRESS>=== End of debug information ===
/Users/pphetra/projects/horizon/new-horizons-server/functions/node_modules/protobufjs/src/root.js:193
for (var i = 0, resolved; i < filename.length; ++i)
^
TypeError: Cannot read property 'length' of undefined
at Root.load (/Users/pphetra/projects/horizon/new-horizons-server/functions/node_modules/protobufjs/src/root.js:192:44)
at Root.loadSync (/Users/pphetra/projects/horizon/new-horizons-server/functions/node_modules/protobufjs/src/root.js:235:17)
at Object.loadSync (/Users/pphetra/projects/horizon/new-horizons-server/functions/node_modules/@grpc/proto-loader/build/src/index.js:230:27)
at GrpcClient.loadFromProto (/Users/pphetra/projects/horizon/new-horizons-server/functions/node_modules/google-gax/build/src/grpc.js:118:44)
at GrpcClient.loadProto (/Users/pphetra/projects/horizon/new-horizons-server/functions/node_modules/google-gax/build/src/grpc.js:145:21)
at new PublisherClient (/Users/pphetra/projects/horizon/new-horizons-server/functions/node_modules/@google-cloud/pubsub/build/src/v1/publisher_client.js:133:28)
at Object. (/Users/pphetra/projects/horizon/new-horizons-server/functions/x.js:2:13)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)`

Same problem here using<EMAIL_ADDRESS>

Seems to be an issue with using an older version of gax-nodejs.
Old gax versions don't allow loadProto to be used with a single parameter, passing undefined down to loadFromProto
https://github.com/googleapis/gax-nodejs/pull/543/commits/e570cfa975939daf8d51fcbb9296f0f6983eb2d3
Either PubSub needs to use the older version or update gax

@Draiken That's a great (and possible) explanation to why undefined gets there! PubSub depends on "google-gax": "^1.0.0" which must pull the latest 1.x version (and the change to allow single parameter got released in google-gax v1.2.0), but if you have a lockfile, it might explain everything.
To all folks affected by the issue: can you please make your code do npm ls and send the output here? Removing your package-lock.json and node_modules and reinstalling should also help then.
But why not - let me send a PR to bump the gax dependency to the latest one and we'll see if it helps you folks. Here we go: #740

Can you folks try installing @google-cloud/pubsub v0.32.1, double check that it pulled google-gax v1.5.2+, and let us know here if the problem is still there?
Thank you!

Can you folks try installing @google-cloud/pubsub v0.32.1, double check that it pulled google-gax v1.5.2+, and let us know here if the problem is still there?

Thanks, v0.32.1 works good for me 👍 🙇

This fixed the issue for me too. Thanks

@Draiken awesome, thanks for stopping by to let us know!

I was facing this issue when trying to run my script on Google sheets. Is this a similar issue? https://github.com/mithunmanohar/woocommerce-orders-google-sheets-integration/issues/44

Having the same issue, I have double-checked everything.


Enable Codecov without token

Signed-off-by: Fabien Dupont<EMAIL_ADDRESS>

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@a058dd3). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #4   +/-   ##
=======================================
  Coverage        ?   76.95%
=======================================
  Files           ?        7
  Lines           ?      473
  Branches        ?        0
=======================================
  Hits            ?      364
  Misses          ?       99
  Partials        ?       10

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Add Github action

This PR aims at adding a github action that could be included by other repos. At the time of creating this, there is a first working version that is probably not optimal (hence the draft), since I am rather new to the topic of writing custom actions.
You can see an example of this action being used here.
Obviously, the action could be moved to its own repository, as well, but I decided to include it here at least for a first, testable version.

Edit: I've been thinking that from my point of view, this might actually a valid solution that could act as a first version. Whether or not we want to use a more versioned approach or move the action to its own repo is something to decide for the maintainers.

I've added an action usage section to the main README. It uses the latest version currently being present on the main branch. @ct2034 Do you plan to add tags for each version?
Most actions that I know keep a major version tag running along the latest patch version. So in this case there would be a v1 tag pointing to the same commit as 1.1.5 at the time of writing. If you plan to also do this, we could reference @v1 inside the workflow definition. This is probably less brittle as you otherwise would have to bump the version in the workflow example in the README each time you do a patch release.


ee3 to ee3

Merging ee3 to ee3 branches, instead of ee3 to master.

I don't think I can resolve the merge conflicts because I don't have write access to your repo.  I believe if you just resolve them be keeping my changes everything should be fine.

Yeah, you can resolve the conflicts on your end. The "Use the command line" link tells you how:
Step 1: From your project repository, check out a new branch and test the changes.
git checkout -b PSkaggs-ee3 ee3
git pull https://github.com/PSkaggs/vwm_polls.git ee3

Step 2: Merge the changes and update on GitHub.
git checkout ee3
git merge --no-ff PSkaggs-ee3
git push origin ee3

Once you do that I can click a button and get your changes in the ee3 branch.

My bad, I should have checked for changes since the last time I pulled your repo down.
Looks like it's good to go.  I installed it on a fresh EE3 copy and every thing seems to work fine, except it looks like the color chooser images is missing for the field options.  That is something that was changed with EE3 and I fixed it on a my clients installation, but I don't remember how at the moment.  It doesn't hinder choosing a color for the option you just can't see the color gradient in the picker.  I'll try and get to it at some point.

Thanks! Looks good man! :sunglasses:


Fully remove YAML support (to make it easier for third party extensions to take over the job)

YAML support was added and then again removed from the "meta" extension -- since YAML metadata could, should and is be(ing) provided by an additional third party extension. However, the "meta" extension is still parsing metadata that looks like YAML (starting and ending with '---'), but without actually parsing the YAML correctly. This is not only misleading, but also makes it hard for "normal" metadata and YAML-formatted metadata and the corresponding extensions to co-exist (because the "meta" extension consumes the metadata that is supposed to be consumed by the YAML metadata extension).
This pull request provides:

Full removal of pseudo-YAML capabilities from the "meta" extension (+ updated doc)
The "meta" extension does not assume anymore to be the only extension to write to the markdown.Meta attribute, but respects values another extension might already have put there
Two lines I had to add to tests/__init__.py to make tests work on my machine

Hope this helps. Let me know if you have any suggestions. :)

The existing implementation is an implementation of MultiMarkdown's meta-data format. As that format includes support for (optional) deliminators, so will Python-Markdown's implementation. If you want to support YAML meta-data you may still do so. Simply do not use the meta-data extension. In fact, note that for the brief period when this extension supported both, it did not support both simultaneously. You could only get MMD meta-data or YAML meta data, not both. Therefore, leaving the current behavior as-is creates no conflict or lose of features.

As a reminder, you always have the option to create your own extension which does whatever you want. Just because I reject a specific feature request, does not mean you can't have the feature. It just means that it is not something I am interested in developing and maintaining myself.

Any chance we can get something like https://github.com/joachimneu/Python-Markdown/commit/6731cd196d0f4762007959fbe51cd07a06ae7245#diff-52418a280f3d8bb9064dc35e3532e77aR69 (only those four lines), i.e. "meta" not deleting metadata without substitution that had already been extracted by some other third party metadata extension before?
This would allow for multiple metadata extensions to be enabled at the same time. For example, in a Pelican website, there might be both articles with traditional and articles with yaml metadata, and they all get parsed by markdown with the same set of extensions (both "meta" and "metayaml" enabled), because we can't tell beforehand which type of metadata we will stumble upon in a particular document.

So, you would like the following change:
-        self.markdown.Meta = meta
+        if hasattr(self.markdown, 'Meta'):
+            self.markdown.Meta.update(meta)
+        else:
+            self.markdown.Meta = meta

It is a little more complicated than that. As it is, that would not reset the meta data between multiple pages (when the same instance of the Markdown class is used to process multiple pages). If the first page has data foo: bar and the second page does not define foo, then the second page will still have foo set to "bar". Of course, the extension could be altered to make it a registered extension and a reset method could be defined. My point is that this is more work than a simple four line change.
Additionally, we are currently in a feature freeze (especially with regard to extensions) while we work toward version 3.0. See the 3.0 Roadmap for more info. When the extensions get split out into their own repos (third list item), re-raise this and we will address it then.

Okay, I see. Thank you for taking the time for such detailed responses anyways! :)


Versions under 0.4.0 not able to install via curl

Summary
Trying to run the web based installer. We're using an older stable version at 0.3.3. However it is no longer stable since it won't install (see below). Newer versions seem to install ok, but our prod infra is built on the assumption of 0.3.3 currently.
Version
< 0.4
Expected Behavior
Rexray 0.3.3 is installed
Actual Behavior
Rexray is not installed.
Steps To Reproduce
Tue Jul 24 08:42:12 $ curl -sSL https://rexray.io/install | sh -s -- stable 0.3.3
error: open of The failed: No such file or directory
error: open of requested failed: No such file or directory
error: open of path failed: No such file or directory
error: open of was failed: No such file or directory
error: open of not failed: No such file or directory
error: open of found. failed: No such file or directory

Hello @matthewmrichter,
I just tested this and it worked for me.  I am wondering if there is a bug relating to the OS/distro you are using.

OS is CentOS 7, in AWS. It worked as recently as May.

Hello @matthewmrichter,
It looks like we've got a bug in the installer when specifying a specific version under redhat/centos. Give this a shot to specify the version manually.
curl -sSL https://rexray.io/install | sed 's/FILE_NAME=$BIN_NAME-$FVERSION-1'/'FILE_NAME=$BIN_NAME-$BIN_NAME-$FVERSION/' | sh -s -- stable 0.3.3

Will test shortly

Sorry for the delay - can confirm this workaround works for 0.3.3 at least.

Thanks @matthewmrichter


fix: pull proto package name change

Codecov Report

Merging #67 (2914f6e) into main (e909e2a) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #67   +/-   ##
=======================================
  Coverage   83.79%   83.79%
=======================================
  Files          13       13
  Lines        1080     1080
=======================================
  Hits          905      905
  Misses        131      131
  Partials       44       44

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 e909e2a...2914f6e. Read the comment docs.


Improving test coverage for InfoProvider

Closes #689
Opening as draft to verify that tests run correctly on remote and that coverage report is generated as expected from an early stage.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

136 of 139 (97.84%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.2%) to 86.079%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/providers/info.rs
2
3
66.67%

src/providers/tests/info.rs
127
128
99.22%

src/utils/context.rs
7
8
87.5%

Totals

Change from base Build<PHONE_NUMBER>:
0.2%

Covered Lines:
8756

Relevant Lines:
10172

💛  - Coveralls


Enabling HTTPS via Luci-SSL package seems broken in latest master snapshot

Performed a clean install of OpenWrt (WRT32X router) Master snapshot dated 12/18/2021 OpenWrt SNAPSHOT r18371-5a4685cfa2:
SSH in: opkg update && opkg install luci-ssl
Attemping to enable via LuCI in System > Administration > HTTP(S) Access. Clicked enable, then Save and Apply. It just keeps loading, does not commit the change.
Enabling HTTPS via SSH and UCI worked as expected:
uci set uhttpd.main.redirect_https=1
uci commit uhttpd
service uhttpd reload

So it appears that the LuCI package is broken.  I double checked the guide on the wiki and it seems consistent with what I attemped to do above, I would have updated the guide if it appeared out of date: https://openwrt.org/docs/guide-user/luci/luci.secure
Thanks.

It seems there is a bug on the page reload mechanism. During save, manually going back to the page will save the configuration. Nevertheless, this is a bug.

Also, if compiling firmware from scratch, with LuCI built-in and a first run script added to package/base-files/files/etc/uci-defaults
with the following contents
# Force https:// for WebGUI to ensure security when accessing on Wi-fi
set uhttpd.main.redirect_https='on'
commit uhttpd

then the issue does not appear.
You may want to try the syntax above and see if that works intead.

I just checked the Browser DEV tools and saw that there are errors regarding SSL

So, the page reload mechanism is working fine, but the page cannot be loaded again since there is an error on the certificate.

CLosing this as I assume it is/was an issuwer with the underlying SSL support libraries in OpenWrt.


Update README.md

Liste the comands in this way so you can copy and past them into the cmd
Before you had to mark the copys and the remove 1)2)3)4)...

numbering removed to make it easier to copy and paste