Npm install do not work

Describe the bug
Npm failed to install components
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-uzg3dp
Steps to reproduce
Just start a new project and in the workflow bolt try to npm install
Expected behavior
Block to npm install
_1 / idealTree:project: sill idealTree buildDeps
Screen Recording / Screenshot
No response
Platform
Browser name = Safari
Full version = 604.1
Major version = 604
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (iPad; CPU OS 18_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/130.0.6723.90 Mobile/15E148 Safari/604.1
performance.memory = undefined
Username = nyckosleducmanage
Chat ID = 1a6ea22101a8

Additional context
No response

Hi @nyckosleducmanage,
Could you try opening your project in Chrome and see if that works? Bolt is most compatible with Chrome and Chromium browsers.

Hello @endocytosis,
Sorry for the mistake, I have test with Chrome and post on GitHub with my IPad ;)

@nyckosleducmanage Bolt.new does not currently support Safari due to limitations in the browser that do not support WebContainers (the core technology that powers Bolt). We are adding a banner to indicate this soon, but in the meantime, please switch to Google Chrome or another Chromium based browser.
Since this did not resolve your issue, please subscribe to #2021 for troubleshooting steps and updates as we are investigating additional causes of this error there!


Fix modulemap redefinition problem in Xcode 8.3

Workaround to an Xcode 8.3 known issue that makes the error "redefinition of module openssl" (refer to #10355). Renaming the modulemap file to something other than module.modulemap
Fixes #10355

Performance differences noted:
Benchmark                                               cpu_time    real_time
----------------------------------------------------  ----------  -----------
BM_CreateDestroyCore                                     +106.50      +106.50
BM_CreateDestroyCpp                                      +122.00      +122.00
BM_CreateDestroyCpp2                                     +169.50      +169.50
BM_HpackParserParseHeader<IndexedSingleInternedElem>      -14.00       -14.00

Performance differences noted:
Benchmark                                                cpu_time    real_time
-----------------------------------------------------  ----------  -----------
BM_ClosureCreateAndRun                                      +6.50        +6.50
BM_ErrorCreateAndSetIntAndStr                              +45.50       +45.50
BM_ErrorCreateAndSetStatus                                 +41.00       +41.00
BM_HpackEncoderEncodeHeader<SingleInternedElem>/0/16k      +21.50       +21.50
BM_IsolatedFilter<LoadReportingFilter, NoOp>               -13.00       -13.00
BM_TransportStreamSend/0                                   -52.50       -52.00

Failed test:
gRPC_interop_pull_requests - #10614

@muxi and @makdharma  As a general rule when making changes and when reviewing them: When code is deleted, use git blame to find out why was it there in the first place. In this case, git blame says https://github.com/grpc/grpc/commit/ccb184068d21758f905ecc3bfd42a2f9626dd5ee, from PR https://github.com/grpc/grpc/pull/7264 which fixed bug https://github.com/grpc/grpc/issues/7262. I expect that bug is now alive again.


How to clone a EcmaScript object(what the API duk_dup() does is duplicating a reference)?

Is there a way to clone a EcmaScript object so that the changes to the property of cloned one don't affect the original one?
I have tried the API duk_dup(), it works as:
BEFORE dup:
[{"thiz": "aaa"}]
AFTER dup:
[{"thiz": "aaa"}, {"thiz": "aaa"}]
AFTER changing the property "thiz" of the duplicated one to "bbb":
[{"thiz": "bbb"}, {"thiz": "bbb"}]
This is not my want. I expect it to be:
[{"thiz": "aaa"}, {"thiz": "bbb"}]
Any help or advice is highly appreciated.
BR,
fay

Cloning an object is a complex issue - should cloning be shallow (clone only one level of keys) or deep (clone all recursively); what to do with object reference loops, etc. Consequently there's no clone mechanism in the language itself or the Duktape API.
You can find various suggestions on the net for cloning objects, ranging from JSON.parse(JSON.stringify(obj)) to manually copying keys in a certain way. The JSON approach has limitations, e.g. it doesn't handle reference loops or custom types (Proxy objects, objects with native state), and is limited to a subset of the whole set of inherited properties.

Many thanks to your quick and clear clarify. I got it.
The issue i run across now is i have instantiated many java objects, and i map their methods and properties to ECMAScript object(all the method in the ECMAScript object is bound to a single native c method, then invoke the implements in java-side through the native c method). As the java objects are of same class. So i want to only clone the corresponding ECMAScript object that has been bound and change its "thiz" property to the address of the java object so as to decrease the effort of binding.
Is there an easy way to achieve similar effect?

I found that maybe the API duk_set_prototype is the right way to achieve my goal.


[stable/spring-cloud-data-flow] Update to new SCDF version 2.6.0

update scdf version to 2.6.0
update skipper version to 2.5.0

Signed-off-by: Chris Schaefer<EMAIL_ADDRESS>Is this a new chart
What this PR does / why we need it:
Which issue this PR fixes
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

/assign @sabbyanandan


Create CODEOWNERS

Create CODEOWNERS
Create a CODEOWNERS file that is managed via entitlements - @actions/ecosystems should correlate to this team: https://github.com/github/entitlements/blob/master/ldap/pizza_teams/actions-ecosystems.txt

Closing whilst we figure out what our owning team should be.


Assignment4 - IT6A - Rutuja

#231

Errata
@rutujawaghchaure

Please ensure that the form output is shown on the console

update the file


Error creating swap chain with non-hooked device

Hi,
I tried to run RenderDoc on Star Wars Battlefront and it fails. I tried first with normal hook it did not work, with global hook I get this in logs and no overlay:
RENDERDOC: [18:29:54] core.cpp( 245) - Log - RenderDoc v0.26 x64 (ebe442d1d8059d4dd076deff8f35978ac580319d-official) capturing application
RENDERDOC: [18:29:55] win32_libentry.cpp( 70) - Log - Loading into C:\Program Files (x86)\Steam\steamapps\common\STAR WARS Battlefront\starwarsbattlefront.exe
RENDERDOC: [18:29:55] hooks.cpp( 49) - Log - Loaded and hooked into kernel32.dll, PID 8356
RENDERDOC: [18:29:55] hooks.cpp( 49) - Log - Loaded and hooked into d3d11.dll, PID 8356
RENDERDOC: [18:29:55] hooks.cpp( 49) - Log - Loaded and hooked into d3d9.dll, PID 8356
RENDERDOC: [18:29:55] hooks.cpp( 49) - Log - Loaded and hooked into dxgi.dll, PID 8356
RENDERDOC: [18:29:55] hooks.cpp( 49) - Log - Loaded and hooked into opengl32.dll, PID 8356
RENDERDOC: [18:30:02] dxgi_wrapped.cpp( 563) - Warning - Querying IDXGIObject for interface: GUID {7abb6563-02bc-47c4-8ef9-acc4795edbcf}
RENDERDOC: [18:30:02] dxgi_wrapped.cpp( 82) - Error - Creating swap chain with non-hooked device!

ReShade.me framework works well though
Thanks in advance

So it seems like battlefront is creating the swapchain in a way I haven't encountered before and isn't getting caught by my DXGI code. The fix could be simple or complex depending on what is happening exactly.
I don't have the game so I can't investigate this myself, I'm going to rename this issue in case someone else who can help narrow down the cause sees it and can help.

Thanks for the info! I guess i'll have to wait then

But since ReShade works, they might have foun the workaround, no?

I don't know exactly how ReShade works, and from a quick look it's not open source so I can't check. I've not used it but from the description of the project it seems like they could probably skip a bunch of things I do since the scope of the project is smaller. It might not even care about the swapchain actually.

OK, thanks! Will have to wait. A pity, this game soo much deserved an in depth analysis.One of the best looking game ever with best

It's possible this was caused by battlefront using a newer version of DXGI or D3D11 maybe that wasn't supported until recently. Without more information I can't reproduce, so you could test on v0.30 to see if you have more success.

Thanks I will try it in a few days once I get home
Le mar. 2 août 2016 à 10:18, Baldur Karlsson<EMAIL_ADDRESS>a
écrit :

Closed #174 https://github.com/baldurk/renderdoc/issues/174.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/baldurk/renderdoc/issues/174#event-742049252, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEW4subIW6nx2rEEHP09yLYQVMtTdq3tks5qbv1agaJpZM4HVIXC
.


Updated html

Sir i've updated my name and matric Number

Seen.
I will also need your passport photograph.

Done adding an image


Support more flexible --iface option to ease flannel use in Daemonset

We could allow the --iface option to appear multiple times or maybe even allowing a regex.
Originally raised by user on mailinglist

How can I define a single definition of DaemonSet to create slightly different pods from it?
What I mean by different pods is that pods created from different commands.
I currently make two different DaemonSet objects to create two different kinds of pods.
Let me tell you the details.
I've been modifying kube-flannel.yml, especially the definition of DaemonSet.
I want to add "--iface=" to flanneld [ "/opt/bin/flanneld", "--ip-masq", "--kube-subnet-mgr"]
and I want to use two different ethernet interfaces based on node label.
I have three different kinds of nodes:

a master node with two ethernet interfaces: eth0 for internal network and eth3 for external network
slave nodes with one ethernet interfaces: eth0 for internal network
a newly added node with one ethernet interfaces: p2p1 for internal network

When I had 1) and 2), I was okay with the following command:
[ "/opt/bin/flanneld", "--ip-masq", "--kube-subnet-mgr", "--iface=--eth0"]
I have to add --iface option because otherwise flanneld on the master node automatically detects eth3 other than eth0,
which is the reason I manually add the iface option.
Now that I have 3),
I have to make two DaemonSet definitions with different commands:
[ "/opt/bin/flanneld", "--ip-masq", "--kube-subnet-mgr", "--iface=--eth0"]  for 1) and 2)
, [ "/opt/bin/flanneld", "--ip-masq", "--kube-subnet-mgr", "--iface=--p2p1"] for 3)
Label selector is used to tell which DaemonSet is used for a node.
The entire definition is attached at the end.
Is there a more elegant way of creating slightly different pods from a single DaemonSet definition?
It would be nice to have only a single definition with a placeholder which can be substituted by the value of a specific label.
Otherwise I can do this by setting flannel in a different way?
It would be nice if we can give a list of ethernet interfaces to --iface option but my colleague found that only one interface/ip can be given to --iface option.
Thanks.

---
apiVersion: v1
kind: ServiceAccount
metadata:
  name: flannel
---
kind: ConfigMap
apiVersion: v1
metadata:
  name: kube-flannel-cfg
  labels:
    tier: node
    app: flannel
data:
  cni-conf.json: |
    {
      "name": "cbr0",
      "type": "flannel",
      "delegate": {
        "isDefaultGateway": true
      }
    }
  net-conf.json: |
    {
      "Network": "<IP_ADDRESS>/16",
      "Backend": {
        "Type": "vxlan"
      }
    }
---
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
  name: kube-flannel-ds
  labels:
    tier: node
    app: flannel
    iface: eth0
spec:
  template:
    metadata:
      labels:
        tier: node
        app: flannel
        iface: eth0
    spec:
      hostNetwork: true
      nodeSelector:
        beta.kubernetes.io/arch: amd64
        iface: eth0
      serviceAccountName: flannel
      containers:
      - name: kube-flannel
        image: quay.io/coreos/flannel:v0.7.0-amd64
        command: [ "/opt/bin/flanneld", "--ip-masq", "--kube-subnet-mgr", "--iface=eth0" ]
        securityContext:
          privileged: true
        env:
        - name: POD_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
        - name: POD_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        volumeMounts:
        - name: run
          mountPath: /run
        - name: flannel-cfg
          mountPath: /etc/kube-flannel/
      - name: install-cni
        image: quay.io/coreos/flannel:v0.7.0-amd64
        command: [ "/bin/sh", "-c", "set -e -x; cp -f /etc/kube-flannel/cni-conf.json /etc/cni/net.d/10-flannel.conf; while true; do sleep 3600; done" ]
        volumeMounts:
        - name: cni
          mountPath: /etc/cni/net.d
        - name: flannel-cfg
          mountPath: /etc/kube-flannel/
      volumes:
        - name: run
          hostPath:
            path: /run
        - name: cni
          hostPath:
            path: /etc/cni/net.d
        - name: flannel-cfg
          configMap:
            name: kube-flannel-cfg
---
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
  name: kube-gpu-flannel-ds
  labels:
    tier: node
    app: flannel
    iface: p2p1
spec:
  template:
    metadata:
      labels:
        tier: node
        app: flannel
        iface: p2p1
    spec:
      hostNetwork: true
      nodeSelector:
        beta.kubernetes.io/arch: amd64
        iface: p2p1
      serviceAccountName: flannel
      containers:
      - name: kube-flannel
        image: quay.io/coreos/flannel:v0.7.0-amd64
        command: [ "/opt/bin/flanneld", "--ip-masq", "--kube-subnet-mgr", "--iface=p2p1" ]
        securityContext:
          privileged: true
        env:
        - name: POD_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
        - name: POD_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        volumeMounts:
        - name: run
          mountPath: /run
        - name: flannel-cfg
          mountPath: /etc/kube-flannel/
      - name: install-cni
        image: quay.io/coreos/flannel:v0.7.0-amd64
        command: [ "/bin/sh", "-c", "set -e -x; cp -f /etc/kube-flannel/cni-conf.json /etc/cni/net.d/10-flannel.conf; while true; do sleep 3600; done" ]
        volumeMounts:
        - name: cni
          mountPath: /etc/cni/net.d
        - name: flannel-cfg
          mountPath: /etc/kube-flannel/
      volumes:
        - name: run
          hostPath:
            path: /run
        - name: cni
          hostPath:
            path: /etc/cni/net.d
        - name: flannel-cfg
          configMap:
            name: kube-flannel-cfg

This is now fixed in v0.8.0


feat: add create HA cluster e2e test spec

What type of PR is this?
/kind flake
What this PR does / why we need it:
add create HA cluster e2e test spec
Which issue(s) this PR fixes:
Fixes #87
Special notes for reviewers:

Does this PR introduced a user-facing change?
None

Additional documentation, usage docs, etc.:

Codecov Report

Merging #98 (214d2e4) into master (9fe84df) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #98   +/-   ##
=======================================
  Coverage   11.64%   11.64%
=======================================
  Files          98       98
  Lines       15040    15040
=======================================
  Hits         1751     1751
  Misses      13060    13060
  Partials      229      229

/cc @x893675

/lgtm

/release-note-none

/approve


[Release 6.4.3] Fixes #259 waitFor listeners leakage

Fixes:

ignoring the objectify option in wildcard mode (#265)
waitFor listeners leakage issue (#262)

Released!


D435i is not working on MAC

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
{ R200 / F200 / SR300 / ZR300 / D400 }

D400

Firmware Version
(Open RealSense Viewer --> Click info)

master brench v2.21.0

Operating System & Version
{Win (8.1/10) / Linux (Ubuntu 14/16/17) / MacOS

MacOS

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
PC/Raspberry Pi/ NVIDIA Jetson / etc..

MACPRO Lateina 2015

SDK Version
{ legacy / 2.. }

Language
{C/C#/labview/nodejs/opencv/pcl/python/unity }

C++

Segment
{Robot/Smartphone/VR/AR/others }

others

Issue Description
<Describe your issue / question / feature request / etc..>
Whenever I chose the ADD source --> S/N 64-1.5-2 (since it is not automatically detecting the Camera) the viwer dies with following messages.
26/04 16:20:21,886 WARNING [0x10fce25c0] (ds5-factory.cpp:678) DS5 group_devices is empty.
unsupported descriptor subtype: 3
unsupported descriptor subtype: 3
unsupported descriptor subtype: 3
unsupported descriptor subtype: 3
26/04 16:20:22,663 ERROR [0x700002103000] (types.h:243) Could not open device. Last Error: Undefined error: 0
26/04 16:20:22,665 WARNING [0x700002103000] (sensor.cpp:752) Exception was thrown when inspecting properties of a sensor
26/04 16:20:22,666 WARNING [0x700002103000] (sensor.cpp:752) Exception was thrown when inspecting properties of a sensor
26/04 16:20:22,670 WARNING [0x700002103000] (sensor.cpp:752) Exception was thrown when inspecting properties of a sensor
26/04 16:20:22,676 WARNING [0x700002103000] (sensor.cpp:752) Exception was thrown when inspecting properties of a sensor
26/04 16:20:22,678 WARNING [0x700002103000] (sensor.cpp:752) Exception was thrown when inspecting properties of a sensor
26/04 16:20:22,679 WARNING [0x700002103000] (sensor.cpp:752) Exception was thrown when inspecting properties of a sensor
26/04 16:20:22,680 WARNING [0x700002103000] (sensor.cpp:752) Exception was thrown when inspecting properties of a sensor
26/04 16:20:22,682 WARNING [0x700002103000] (sensor.cpp:752) Exception was thrown when inspecting properties of a sensor
26/04 16:20:22,683 WARNING [0x700002103000] (sensor.cpp:752) Exception was thrown when inspecting properties of a sensor
26/04 16:20:22,686 WARNING [0x700002103000] (sensor.cpp:752) Exception was thrown when inspecting properties of a sensor
26/04 16:20:22,811 WARNING [0x10fce25c0] (ds5-factory.cpp:678) DS5 group_devices is empty.
Segmentation fault: 11

At the moment, the D435i is not supported on the Mac, please see the relevant release notes.


App Mining Algo: Ping PH to ensure no apps can purchase featured position

Next steps:

Publish that PH has agreed to this.
Update the FAQ.

Issue moved to blockstack/docs.blockstack #119 via ZenHub


refactor(RemoveConsoleLog) removing a console log

SORRY!

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


nixos: escape mount options

Some mount options might include path names and those often contain spaces and therefore must be escaped. An example which prompted me to make this change is the path of a btrfs subvolume.
Description of changes

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

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

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 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.

Things are never that simple, are they...
This doesn't work in initrd for some reason.

Problem found: stage-1 builds up its own fstab from the declared fsinfo file as it goes through it and then relies on mount's fstab parsing.
This is odd but I'm going to leave it as is and escape those strings in fsinfo. I don't want to touch stage-1. systemd in initrd shouldn't have any of these issues since it uses the fstab generated in filesystems and that's the future anyways.

That didn't end up working out. Bash doesn't like the backslash...
I've attempted to escape things within the script now.

Yeah, that works.

All boot tests except for ubootExtlinux pass but that appears to already be broken on my PR's base aswell.
Of course I tested this manually too.

Can you provide a test that fails without this PR which is supposedly a test which pass in that PR?

As explained in the commit message, a btrfs subvolume with a space in it could not be mounted before. An example of this would be `subvol=foo bar,noatime,discard=async".
If you build a NixOS generation with such options set for one of the fileSystems, you'd get an invalid fstab. This is simple to test without deploying it in a system: Just nixos-rebuild build and take a look at result/etc/fstab. Spaces delimit fields in fstab, so if the options have spaces in them, that's invalid. Spaces needs to be substituted with \040.
In stage-1 the same problem applied. Additionally, the mount point could also not have a space in it which I also fixed while I was at it.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/1320

As explained in the commit message, a btrfs subvolume with a space in it could not be mounted before. An example of this would be subvol=foo bar,noatime,discard=async.

Do you think you could write a NixOS test for this? I could probably provide a simple diff for one if you need. Otherwise I think this PR looks good

That's a good idea, yeah. Is there a stage-1 or initrd test I could extend where checking this sort of thing makes sense? I've found a btrfs test that could use a mount-point with space in it but it doesn't test initrd.
Since that'd be my first NixOS test, I'd rather do that in a separate PR and get this one in before branch-off. Perhaps I'd also wait for the new test infra that will come after 22.11 in the soonest.

I'll squash and check out the test when I get to my Linux machine later today or tomorrow.

This is ready to go I think.

Hi, could we merge this? Just got bitten by this again because I forgot to backport these changes to my fork.

I think at that point you must be intentionally trying to break the system ;)
I'm not actually sure you could escape that if you wanted to. The fstab format isn't exactly a flexibly one.

I think at that point you must be intentionally trying to break the system ;)
I'm not actually sure you could escape that if you wanted to. The fstab format isn't exactly a flexibly one.

Well the state after this pr is arguably more correct than before, so this should not be blocked by such considerations. Still looking at man fstab, I am a bit surprised by the lack of consideration there..

For reference, here is the code in util-linux that parses fstab. It actually translates all \[...] sequences where [..] is three octal values.

For reference, here is the code in util-linux that parses fstab. It actually translates all \[...] sequences where [..] is three octal values.

So I guess a correct way to do things, would be to in addition replace all occurrences of the literal \, by \134 (the corresponding octal code in ascii).

I am a bit surprised by the lack of consideration there..

I'm not, fstab is ancient. It first appeared in 4.0BSD which is from 1980.

For reference, here is the code in util-linux that parses fstab. It actually translates all \[...] sequences where [..] is three octal values.

We don't only have util-linux but also whatever minimal mount we have in initrd. Not sure whether that's from toybox, busybox or whatever but nothing that's linked against glibc I think.
I won't be pursuing escaping escape sequences or other extremely odd file names (newlines?) in this PR. I only care about file names you might actually find in a real system like spaces and mayybe tabs. We don't escape those in our runtime fstab either; I reused that escaping function.
Feel free to do that in a follow-up though @xaverdh.

I am a bit surprised by the lack of consideration there..

I'm not, fstab is ancient. It first appeared in 4.0BSD AFAICT which is from 1980.

For reference, here is the code in util-linux that parses fstab. It actually translates all \[...] sequences where [..] is three octal values.

We don't only have util-linux but also whatever minimal mount we have in initrd. Not sure whether that's from toybox, busybox or whatever but nothing that's linked against glibc I think.
I won't be pursuing escaping escape sequences or other extremely odd file names (newlines?) in this PR. I only care about file names you might actually find in a real system like spaces and mayybe tabs. We don't escape those in our runtime fstab either; I reused that escaping function. Feel free to do that in a follow-up though @xaverdh.

We use busybox in the initrd, which also allows escaping \ (c.f. https://sourceware.org/git?p=glibc.git;a=blob;f=misc/mntent_r.c;h=39fa08f2c61cf57334c3602e0104509a519d7f96;hb=9798906a426fc458b949271bcc9b8ad1608de867#l97).
But I agree, that can be left to a follow up pr.

Thank you!

I had to make a fork with this PR reverted due to any iterations made after it was merged failing to boot.
It might be a problem on my end, but I'm not sure. Without the PR everything works fine, but with it /mnt-root/ is not created and therefore gives a "No such file or directory" error during stage 1, and a kernel panic related to the init process being killed if that error is ignored.

@pupbrained, can you try separating these options out into multiple strings rather than as arrays with one singular string each?
https://github.com/pupbrained/nix-config/blob/2500e475f5314d6c48f8e1b9ef49725f8004ebc2/sys/nix/hardware-configuration.nix#L23

@lilyinstarlight that fixes the issue. I'm not sure why I even had those all in single strings, honestly.

that fixes the issue. I'm not sure why I even had those all in single strings, honestly.

No worries! I'm glad it was that easy to fix and not something wrong here :)


Test enhancements

New SmartTest.
Sudo available to all java scripts/cron/test now as a function.
Script/cron/test are searchable by id, also tableCellFormatters for max-width to cell columns.

Include a test case with this PR.

Normally in a context-oriented system the setup will involve creating a special sub-context which may mock or decorate certain services for the purposes of the test. For this to work, the setup method would need to return a context that would then subsequently be used by the test and cleanup methods.

Nice job. Added some suggestions. Also, a few more comments would be useful.

Closing - abandoned.


[-] ErosNow API Replacement

As previously provided ErosNow api is not active anymore, i have proposal to use this API instead. Although i have no idea how the older API used to look like as i noticed today, so it should be peer reviewed by previous contributor as well as the repo reviewers.

[x] My submission is formatted according to the guidelines in the contributing guide
[x] My addition is ordered alphabetically
[x] My submission has a useful description
[x] The description does not end with punctuation
[x] Each table column is padded with one space on either side
[x] I have searched the repository for any relevant issues or pull requests
[x] Any category I am creating has the minimum requirement of 3 items
[x] All changes have been squashed into a single commit

@ankit64jangir you should take a look on changes, as it was proposed by you. Is it right? And can you confirm you are too having problem while accessing older API?

@pawelborkar as the last contributor of this module @ankit64jangir isn't responding, i am 98% sure this is the correct replacement of ErosNow API which they haven't documented it yet. Should we accept it or wait long for original contributor to respond?

@0x0is1 We should wait for some more days.

Hey @0x0is1,
As we waited for so long for the response from @ankit64jangir but he haven't responded yet, so I'm gonna accept this replacement for the ErosNow API.
Feel free to update it with the official one whenever it's available in the future.
Thanks 😊

Being scammed please stop helping this account!!!’ They have taken overSent from my iPhone

On Jul 22, 2021, at 10:09 AM, 0x0is1 @.***> wrote:

@pawelborkar as the last contributor of this module @ankit64jangir isn't responding, i am 98% sure this is the correct replacement of ErosNow API which they haven't documented it yet. Should we accept it or wait long for original contributor to respond?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Bruh.


Add sort event

Add sort event to configuration column with sort: true and order: [DESC, ASC]

I'll take a stab at this

@ceejtron Nice, thanks man 👍

Fixed on #56


Roll Flutter Engine from<PHONE_NUMBER>5d to aaeaa893ded0 (6 revisions)

https://github.com/flutter/engine/compare/67467127295d...aaeaa893ded0
2023-04-05<EMAIL_ADDRESS>Fix super tiny typo (flutter/engine#40932)
2023-04-05<EMAIL_ADDRESS>[web] fix SkFinalizationRegistry for dart2js (attempt 4) (flutter/engine#40938)
2023-04-05<EMAIL_ADDRESS>Roll Skia from dfc65350a1fd to 1d1783aa55c3 (3 revisions) (flutter/engine#40943)
2023-04-05<EMAIL_ADDRESS>[macOS] Remove FlutterApplication class (flutter/engine#40939)
2023-04-05<EMAIL_ADDRESS>Migrate mac_unopt to engine_v2. (flutter/engine#40860)
2023-04-05<EMAIL_ADDRESS>Manual roll Dart SDK from beff36793081 to 36ace2c92e0a (2 revisions) (flutter/engine#40942)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jonahwilliams@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

@yjbanov ptal at golden diffs

This looks like a real breakage. I'm suspecting the Skia roll: https://github.com/flutter/engine/pull/40943. My change titled "fix SkFinalizationRegistry for dart2js" previously landed without any effect on goldens (it was rolled back multiple times for reasons unrelated to rendering).

AutoRoller is stopped; closing the active roll.


[FLINK-13330][table-planner-blink] Remove unnecessary to reduce testing time in blink

What is the purpose of the change
Some tests are unnecessary.
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:

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

Documentation

Does this pull request introduce a new feature? no

Thanks @twalthr @wuchong , this tests should move to crontab and daily run. Every tests is important and precious. If we remove them, there maybe some bugs in future.

I close this now, @wuchong will do some work to extract them to daily run.


About the Distance Transform Pooling Layer

Hi Ross,
This code only computes the feature pyramid. Would you please provide the Distance transform pooling layer (I guess you implemented a new Caffe layer) as a reference? Thank you.

@bearpaw, code for the CVPR paper is now online here: https://github.com/rbgirshick/dp-dpm. Note that this follows what was described in the paper, i.e., Latent SVM training of a DPM on top of pre-computed deep features.


Support build FFmpeg from submodule when user cannot provide pre-built FFmpeg

Fixes #8 (choose another path but achieve the same goal)
Fixes #10

WIP:

[ ] Modify the README for updated crate using.
[ ] Modify the CI script to test both build option(pre-built and placement-build FFmpeg).


Add range reset mechanism

Suppose I am creating a booking application, how do I remove already booked times from the time range

There is now no date range reset mechanism

a controller would solve this and https://github.com/ikicodedev/time_range/issues/28

Awesome thanks. I would try the solutions out

It's not implemented, so someone needs to implement it


Issue during model training

try:
    config = ConfigurationManager()
    prepare_callbacks_config = config.get_prepare_callback_config()
    prepare_callbacks = PrepareCallback(config=prepare_callbacks_config)
    callback_list = prepare_callbacks.get_tb_ckpt_callbacks()

    training_config = config.get_training_config()
    training = Training(config=training_config)
    training.get_base_model()
    training.train_valid_generator()
    training.train(
        callback_list=callback_list
    )

except Exception as e:
    raise e

This is the error I am getting
[2024-09-13 00:59:07,956: INFO: common: yaml file: config\config.yaml loaded successfully]
[2024-09-13 00:59:07,958: INFO: common: yaml file: params.yaml loaded successfully]
[2024-09-13 00:59:07,959: INFO: common: created directory at: artifacts]
[2024-09-13 00:59:07,960: INFO: common: created directory at: artifacts\prepare_callbacks\checkpoint_dir]
[2024-09-13 00:59:07,961: INFO: common: created directory at: artifacts\prepare_callbacks\tensorboard_log_dir]
[2024-09-13 00:59:07,963: INFO: common: created directory at: artifacts\training]
[2024-09-13 00:59:08,103: WARNING: saving_utils: Compiled the loaded model, but the compiled metrics have yet to be built. model.compile_metrics will be empty until you train or evaluate the model.]
Found 78 images belonging to 2 classes.
Found 312 images belonging to 2 classes.
Epoch 1/3
ValueError                                Traceback (most recent call last)
Cell In[18], line 16
11     training.train(
12         callback_list=callback_list
13     )
15 except Exception as e:
---> 16     raise e
Cell In[18], line 11
9     training.get_base_model()
10     training.train_valid_generator()
---> 11     training.train(
12         callback_list=callback_list
13     )
15 except Exception as e:
16     raise e
Cell In[12], line 63, in Training.train(self, callback_list)
60 self.steps_per_epoch = self.train_generator.samples // self.train_generator.batch_size
61 self.validation_steps = self.valid_generator.samples // self.valid_generator.batch_size
---> 63 self.model.fit(
64     self.train_generator,
65     epochs=self.config.params_epochs,
66     steps_per_epoch=self.steps_per_epoch,
67     validation_steps=self.validation_steps,
68     validation_data=self.valid_generator,
69     callbacks=callback_list
70 )
72 self.save_model(
73     path=self.config.trained_model_path,
74     model=self.model
75 )
File ~\AppData\Local\Programs\Python\Python312\Lib\site-packages\keras\src\utils\traceback_utils.py:122, in filter_traceback..error_handler(*args, **kwargs)
119     filtered_tb = _process_traceback_frames(e.traceback)
120     # To get the full stack trace, call:
121     # keras.config.disable_traceback_filtering()
--> 122     raise e.with_traceback(filtered_tb) from None
123 finally:
124     del filtered_tb
File ~\AppData\Local\Programs\Python\Python312\Lib\site-packages\keras\src\optimizers\base_optimizer.py:237, in BaseOptimizer._check_variables_are_known(self, variables)
235 for v in variables:
236     if self._var_key(v) not in self._trainable_variables_indices:
--> 237         raise ValueError(
238             f"Unknown variable: {v}. This optimizer can only "
239             "be called for the variables it was originally built with. "
240             "When working with a new set of variables, you should "
241             "recreate a new optimizer instance."
242         )
ValueError: Unknown variable: <KerasVariable shape=(25088, 2), dtype=float32, path=dense/kernel>. This optimizer can only be called for the variables it was originally built with. When working with a new set of variables, you should recreate a new optimizer instance.

Hey @Lucifer0807 the error you are getting is because modified model needs to recompile with new optimizer. You can fix that error by replacing get_base_model() method in Training class with this method code:
def get_base_model(self):
        self.model = tf.keras.models.load_model(
            self.config.updated_base_model_path
        )
        optimizer = tf.keras.optimizers.Adam(learning_rate=0.01)
        self.model.compile(optimizer=optimizer, loss='binary_crossentropy', metrics=['accuracy'])


feat: Support Airflow connections for dbt targets

Closes #52
The objective of airflow-dbt-python has always been to make dbt a
first-class citizen of Airflow. As part of this goal, we want to
integrate dbt with all of Airflow's features. In particular, Airflow
connections allow us to safely store connection information for
operators to use, so all dbt operators should be able to leverage them
too.
The way we achieve this is by manually instantiating a dbt Project and
Profile. When reading the latter, we also inject any Airflow
connections that match the given target argument (if any). Moreover,
if the profile is not defined, we simply create our own with any
Airflow connection that was passed as a target (of course, missing
both a profiles file and an Airflow connection raises an error).
Future work may extend this to support custom connection types, at the
moment we are doing a best effort to include all possible arguments,
but it's not perfect.
This feature was suggested in the dbt Slack channel as a way to avoid
having to manage a profiles.yml file, that may contain sensitive
information, making it a bad target for version control.

Tests will probably fail for 1.10.12 Airflow. This one will take a bit of work as it's quite a big change. Seriously considering just dropping Airflow v1 support.

Just thought that before merging this we also want to update the documentation to mention the new feature and add some examples.


Add before and since filter to images

Add support for two now filter on the images command : before and since. They work the same as the one on the ps command but for images 🐍.
    $ docker images --filter before=myimage
    # display all images older than myimage
    $ docker images --filter since=myimage
    # display all images younger than myimage

Closes #7967 :angel:
- Description for the changelog
Add before and since filters for docker images command.
🐸
Signed-off-by: Vincent Demeester<EMAIL_ADDRESS>

Design OK for me.

Sorry, thought this was using --filter at first, I'd rather keep the arguments in there instead of creating new args for them....

@cpuguy83 this is using --filter.. I'm just that tired I messed up in the description :scream:

Design LGTM (but the description here at the top is incorrect; it's --filter before myimage, not --before

oh! GitHub is slow at the moment, missed your comment :D

LGTM

LGTM, tested it and works as advertised. Moving to docs review

Looks like you have to update the API docs as well;

https://github.com/docker/docker/blob/master/docs/reference/api/docker_remote_api_v1.24.md#list-images
and https://github.com/docker/docker/blob/master/docs/reference/api/docker_remote_api.md#v124-api-changes

Also ping @albers @sdurrheimer for bash/zsh completion review :angel:

I'm confused by the term "image reference", haven't heard this before.

@albers hum you are right, mentioning here and not elsewhere might through people off. Basically, an image reference is something that, currently in docker, can be image, image:tag, image@sha256:…, …

But doesn't that mean that in <image-reference>|<image-id>, image-id is already included in image-reference? Maybe <image-reference>|<image-name> would be a better wording here. Or just <image-reference>.

@vdemeester bash completion LGTM.

This is how the before and since filters are documented in the docker-ps man page:
      - before=(<container-name>|<container-id>)
      - since=(<container-name>|<container-id>)

@albers you're right :-) For now I'll use the same notation as the ancestor filter of ps then (to be consistent)

ZSH completion LGTM

docs LGTM

LGTM 👍


add MPL2 license

Can you add MPL2?
MPL2 is Mozilla Public License 2.0.

Mozilla Public License 2.0 added in version 2.0.0 as MPL2. Versions 1.0 and 1.1 have also been added.


Config: Rule test should respect module alias

Do you want to request a feature or report a bug?
Bug. I think it is a bug because both aliases and rules are represented as core features, but aren't compatible with each other.
What is the current behavior?
Rules don't respect aliases.
If the current behavior is a bug, please provide the steps to reproduce.
...
    resolve: {
        alias: {
            "my_cool_lib": "src/cool-lib"
        }
    },
    module: {
        rules: [{
            test: /my_cool_lib/,
            // test: /cool-lib/, // works with this one, but it should use the alias
            ...
        }]
    }
...

Working example of the bug: https://github.com/mattslocum/webpack-alias-rules
What is the expected behavior?
I believe that since resolve.alias and module.rule.test are both core features, then they should be compatible with each other. I should be able to do test: /my_alias_name within my module.rule.test. One reason that people use alias is so they don't have to have version numbers in the required file, and the same concept needs to be supported in rules.test
If this is a feature request, what is motivation or use case for changing the behavior?
This might be viewed as a missing feature by some people. I'm fairly new webpack, but it seems like AMDPlugin.js might need alias support in the after-resolvers section. I generally call this type of missing feature a defect, but it could be splitting hairs.
Possible solutions:

Add alias support to AMDPlugin.js. I'm not sure it is needed outside of AMDs.
A helper/utility module/function that could be used in the webpack.config similarly to test: require.resolve('jquery'). It might resemble test: util.alias('my_alias'). I'm new to webpack, so I'm not sure the best practices rule on this.

I'm very willing to do a pull request if someone can give some guidance to the solution so I don't pick the wrong style. I'm guessing adding alias support to AMDPlugin is the best, but I'm concerned that it could introduce a breaking change.

Looking into this deeper, I fear what impact this would have if loaders triggered off of raw requests and not resolved resource paths (IE, would this be a sneaky breaking/unexpected change for everyone else. Thoughts maybe?). @sokra what do you think?

Resolving runs before loaders.

Ignore my first idea. Alias rules shouldn't be only for AMDPlugin.
To prevent a "sneaking breaking/unexpected change," maybe we could introduce something explicit. What do you think about a new plugin? If later it is deemed safe, you could make this plugin run automatically instead of explicitly.
https://github.com/mattslocum/webpack-alias-rules/blob/plugin/webpack.config.js
Would you want this to be part of wepback's enhanced-resolve library?

Alternatively, I could add this same alias support to webpack/lib/RuleSet.js:normalizeCondition. Thoughts?

Well the problem (that @sokra mentioned) is that the resolved path is already mapped to alias by the time loaders run. Is your use case the version numbers (trying to remember specifically your setup when we met), however since test is regex could there be a more creative regex that you use?

@TheLarkInn We use requireJS and trying to transition to webpack. We use paths/aliases for versioning primarily. Each app we have has different requireJS config and sometimes different versions between apps, and paths/aliases make it not matter. I'm trying to transition to webpack with a slow rollout so we need webpack and requireJS to live side-by-side if possible.
I might have not been clear enough a couple comments ago. I fixed the bug with a plugin, but I want to know if you guys think the style is acceptable. It shouldn't introduce any breaking changes since it is a new, explicit implementation.
FIX
https://github.com/mattslocum/webpack-alias-rules/commit/ce4a954b974ae76e8e3f2ee7be24aa8f862a03a2
I'm not sure I've seen this pattern where the plugin is instantiated outside the plugins array and used in multiple places within the config. It does work though. Thoughts?

Interesting. I've never used a plugin in this way before but it seems to remedy things for you.

@TheLarkInn Would you guys be willing to take this plugin in one of your repos like https://github.com/webpack-contrib or https://github.com/webpack/enhanced-resolve
Alternatively, we could figure out a way to make this not an explicit plugin since both aliases and rules are core features, but they aren't 100% compatible with each other. This probably is still worth an explicit plugin though.
I can write up some docs and examples.


Make long descriptions appear over the next item on hover, fixes #25

This prevents long code area descriptions from overflowing the
background colour, making text hard to read.
A position:relative wrapper div is used so the <li> boxes still
have the same size as before.
position:absolute allows the elements to overflow the <li> box, but
not the <label>; labels now have a solid background colour when hovered
so you can still read them (more or less) when they overflow.
Before:

After:

What browser/Os are you on? I can't replicate the issue...

it's probably resolution dependent. The init description is the longest, do you see it there?
i'm on FF on linux with a low res screen (1366 x 768).


[help!] sometime calling editor get blank after open narrow-editor

I don't know how to repro. Please tel me if someone find out "how to repro".
just open narrow:line on right side pane make blank original(narrow invoked) editor.

Not 100% sure for this fix, will re-open if I see it again.

Still happens frequently, want to fix this really!

@thancock20  Do you hit this issue?
This is occasional issue. when start narrow, original editor(narrow invoking editor) get blank after narrow opened, items in narrow-editor's are rendered correctly event in this happens.
Have you ever hit this issue?

I have had that happen a couple times, but not too often. I have no idea how to repro it though.

Thanks, worth to know it's not my env specific.

This is same issue
https://github.com/atom/atom/issues/12081
I hit this issue by simply invoke pane:split-down-and-copy-active-item.
So this is not narrow specific issue.
But I tend to more frequently hit this issue since then I started to use narrow, but this is not directly means narrow code have some issue, since using narrow itself means "more frequent pane-split than ever" that might reason I feels hitting this issue rate increased.

Some progress,

I though it somehwat related to vim-mode or vim-mode-plus, but it wasn't.
Without vim-mode or vim-mode-plus I could reproduce.
I think this is kind of bug of upstream atom-core( or underlying text-buffer ).
But narrow code make this issue more likely to happen.

Reproduce
I can 100% reproduce in following step :tada:

Ensure there is single pane on workspace( not happens in two pane layout ).
narrow:search-by-current-word for some word which find multiple item.
move cursor on narrow-editor and preview for different-file-item.
ctrl-g to narrow:cancel. narrow-editor closed, now focused on original editor, cursor position.
Invoke narrow:search-by-current-word with same word( since you cancelled , didn't move cursor position )
Editor become blank. clicking it throw exception  Invalid Point: (NaN, 0).

issue happens, only by split pane by pane-split (e.g. pane:split-up ) on step 5.

@brumm released v0.37.1. this issue is fixed.


Feature Request: Door Status for Washer/Dryer Combo

Hello,
I just got a new Washer/Dryer Combo, and looking through the python libraries, it looks like there's a property available for door status. This isn't available in HA.
I understand it's fully possible that the appliance doesn't report the status, but I've played with several of the examples and scripts trying to see some of the raw data coming through the API with no luck. I'm happy to do whatever logging/data collection you need to help get this data captured if possible. I just need to know where to start :)
I'm sure if I spend a couple more hours analyzing code I can smush something together to see the data I'm looking for, but I figured it might be faster to ask :)

Can you go to the SDK repo and follow the instructions to produce a debug log?  Once you have that, can you identify the ERD code that represents the washer/dryer door?  It also might be that the combo is a new device type that needs to be added.  Does the official app support a door status?

Thanks for all your work on this project!
Not OP, but I've added the snippet from my debug log for my combo washer/dryer (model PFQ97HSPVDS)
combo.txt
And here's that the app shows for the device:

Please let me know if there is anything else I can do to help.

Hi @simbaja!
Thanks for all your work on this project. I'm not the OP but, I was able to get the gehome SDK working and did some testing for the the door open / door close. Below you'll find a log from the SDK showing all log activity following the indicated physical activity on the device.
PFQ97HSPVDS Door Log.txt

Hmm, from the above log, it looks like perhaps it's ERD 0x2140 - but not sure as it's not changing.  Can you try again and look through the logs and see if you see references to 0x2140 changing?
It's also possible to potentially use the REMOTE_STATUS (which is an indicator for whether the device is ready I think) as it seems to change reliably.

Hi @simbaja,
Following up on our ERD 0x2140, I'm still not sure if this value references door opening or closing. I saw gesdk was updated to 0.5.41 and it listed 0x2140 as LAUNDRY_COMBO_DOOR_STATUS, so perhaps someone else figured this out for us.
I did some testing and found some other ERD codes that might be helpful, included below. The Dewrinkle button on the control panel appears to be somewhat of a Macro setting with no distinct ERD but setting other ERDs to preset values.
Logs are attached for verification/reference.
If I haven't said it before, these codes are for the GE Profile Ultrafast Combo Washer/Dryer Model PFQ97HSPV0DS.
Anyway, Hope this helps!
ERDs that I found:
Soil Level: Off: Setting 0x20BE to b'\x00’ (appears when wash toggle button set to off)
Soil Level: Ex Light: Setting 0x20BE to b'\x01'
Soil Level Light: Setting 0x20BE to b'\x02'
Soil Level Normal: Setting 0x20BE to b'\x03’
Soil Level: Heavy: Setting 0x20BE to b'\x04’
Soil Level: Ex Heavy: Setting 0x20BE to b'\x05'
Temp: Off: Setting 0x20BB to b'\x00’ (appears when and wash toggle button set to off)
Temp: Tap Cold: Setting 0x20BB to b'\x01'
Temp: Cold:  Setting 0x20BB to b'\x02'
Temp: Warm: Setting 0x20BB to b'\x05’
Temp: Hot: Setting 0x20BB to b'\x06'
Temp: Ex Hot: Setting 0x20BB to b'\x07'
Spin: No Spin:  Setting 0x2139 to b'\x00'
Spin: Low: Setting 0x2139 to b'\x01'
Spin: Medium: Setting 0x2139 to b'\x02'
Spin High: Setting 0x2139 to b'\x03'
Spin: Ex High: Setting 0x2139 to b'\x04’
Dry button toggled On (Activating Dryer Cycle): Setting 0x2128 to b'\x01’
Dry button toggled Off  (Deactivating Dryer Cycle): Setting 0x2128 to b'\x00’
Wash button toggled Off (Deactivating Wash Cycle):
Setting 0x2127 to b'\x00'
Setting 0x20BE to b'\x00’ (Soil level off?)
Wash button toggled On (Normal Cycle) Wash button pressed ON (Activating Wash Cycle)::
Setting 0x2127 to b'\x01'
Setting 0x20BE to b'\x03’ (Soil Level set to normal)
Wash button toggled On (Delciates Cycle):
Setting 0x2127 to b'\x01'
Setting 0x20BE to b'\x02’ (Soil Level set to light)
Wash Complete Chime button toggle:
Set to on: Setting 0x2155 to b'\x01’
Set to off: Setting 0x2155 to b'\x00'
More Water Button toggled ON:  Setting 0x20AD to b'\x02’
More Water toggled OFF: Setting 0x20AD to b'\x00’
Control Lock: Locks front panel controls so no selections can be made.
Control Lock Toggle On (in Smart App):  Setting 0x2083 to b'\x02’
Control Lock Toggle Off (in Smart App):  Setting 0x2083 to b'\x01'
Remote Start On: Setting 0x212B to b'\x01'
Remote Start Off: Setting 0x212B to b'\x00’
Extra Rinse On: Setting 0x20B3 to b'\x01’
Extra Rinse On: Setting 0x20B3 to b'\x00’
Door log.txt
Soil Level Log.txt
Temp Log.txt
Spin Log.txt
Dewrinkle Button Toggle Log.txt
Dry Cycle Enabled-Disabled Log.txt
Wash Cycle Enabled-Disabled Log.txt
More Water Log.txt
Wash Complete Chime Log.txt
Extra Rinse Log.txt
Control Lock Log.txt
Remote Start Log.txt


fix: prefix 0 value

Found a bug where 0 was not being prefixed.

Codecov Report

Merging #70 into master will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #70   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           11        11
  Lines          170       169    -1
  Branches        53        53
=========================================
- Hits           170       169    -1

Impacted Files
Coverage Δ

src/components/CurrencyInput.tsx
100.00% <100.00%> (ø)

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 8c78bc0...946f884. Read the comment docs.


Using tree-sitter-highlight library from upstream

Hello, new to a lot of this, so apologies in advance for any misunderstandings of course. Was poking around and from what I appear to see is that the highlighting provided by this module seems to be done a bit "manually" by something like querying the tree-sitter "tree" for a buffer and using that to highlight?
Was curious then why tree-sitter-highlight wasn't used instead? (Assuming it wasn't used because it's not in the Cargo.toml)
I also tried toying around with that upstream library and seems plenty sufficient (so far as I understand it is what's actually intended to back highlighting in the bigger consumers of tree-sitter such as Atom or GitHub itself). Gave it some input files and it correctly provided region ranges along with the correct type of node/token.
Wonder if it could also mitigate some issues folks are having such as #94 and #76? The output I received was able to correctly identify local variables, so seems like it should?

Was curious then why tree-sitter-highlight wasn't used instead? (Assuming it wasn't used because it's not in the Cargo.toml)

That library is designed for the use case of highlighting static sources, without handling edits. The underlying mechanism is the same: querying the syntax tree using a Lisp-like query language.

I also tried toying around with that upstream library and seems plenty sufficient (so far as I understand it is what's actually intended to back highlighting in the bigger consumers of tree-sitter such as Atom or GitHub itself).

GitHub's use case is the static highlighting mentioned above.
Atom doesn't use that library. Its highlighting mechanism is more ad-hoc, which predates the Lisp-like query language, and hasn't been updated for a long time AFAICT.

Gave it some input files and it correctly provided region ranges along with the correct type of node/token.
Wonder if it could also mitigate some issues folks are having such as #94 and #76? The output I received was able to correctly identify local variables, so seems like it should?

The hard part is handling the local predicates in an efficient manner, in the presence of (dynamic) text edits. That library only handles the static case, so it won't help. The same applies to other contextual concerns, like injected language blocks.


Should remove initial Request N from Request Stream and Request Subscription

Poll for removing Initial Request N from Request Subscription and Request Stream.
It might be easier and cleaner to remove the initial request N field from the request and simply send a Request N right after the request. False Start behavior will cover the error case.
Thoughts?

The server needs an initial request. ReactiveStreams Publishers can't emit until it receives something ... so if we don't have the N value, an implementation would have to invent one. Maybe that's okay and what we want, but it would mean the server implementation chooses a buffer to maintain for every stream and decouples from the incoming requests from the client. This would mean even if the client requests Long.MAX_VALUE, the server may chunk it 128 at a time. This is for example what the RxJava observeOn operator does to decouple upstream from downstream.
This also would mean we always need to send a second Frame with a requestStream or requestSubcription stream.
So my questions are ...

Is the extra Frame a legit performance concern?
What if the client sends a REQUEST_N of 10 and the server assumed 128 and already has sent > 10? Is the client responsible for buffering?
How does the server decide how many it can safely send before receiving the REQUEST_N? It seems we end up waiting for the second frame if we want to comply with the semantics of ReactiveStreams.

I think we should stick to explicit REQUEST_N from RQ to start sending data (Re: decouple client and server demand). So, RQ would always send a REQUEST_N and so I do not see value in separating it into two frames.

Discussed in person with @tmontgomery @stevegury @NiteshKant that we prefer to have all 5 request types be capable of starting work immediately. This means we want REQUEST_N part of the request frame. Request/Response and FireAndForget don't need it since they are implicitly 1 and 0. The other 3 require N, so we'll include in request frame. the REQUEST_N frame then is only needed if the stream requires more data than initially requested.

Done.


Unable to edit number components in the CoPilot Modal

Hey,
I'm trying to edit the stepNumber style in the CoPilot modal so it suits my app's theme better. The only way currently I know how to do this is to edit the modules style directly. I figured since this is a new module changes will be made frequently so a fork would be less than ideal. Any solutions to this?
The Code below is in CopilotModal.js, it references the style I would like to have the ability to edit.
renderTooltip() {
    const { tooltipComponent: TooltipComponent } = this.props;

    return [
      <Animated.View
        key="stepNumber"
        style={[
          styles.stepNumber,
          {
            left: this.state.animatedValues.stepNumberLeft,
            top: Animated.add(this.state.animatedValues.top, -STEP_NUMBER_RADIUS),
          },
        ]}
      >```

Should be solved by PR #41


Node Details

It doesn't give connected device node details, also if incorrect POP is entered , it doesn't throws exception , it remaining idle in scan WIFI stage.

Hi, what details are you after, we get an ESPDevice but currently only return the name: https://github.com/espressif/esp-idf-provisioning-android/blob/master/provisioning/src/main/java/com/espressif/provisioning/ESPDevice.java


Redis with auth

As of now, the code doesn't seem to support redis with password. It would be really helpful in production use cases.

@absaravanan 你好，请问你这个redis是怎么部署的？是把redis_worker_example.py中的代码写到flask_example.py中去吗？
from service_streamer import run_redis_workers_forever
from bert_model import ManagedBertModel
if name == "main":
run_redis_workers_forever(ManagedBertModel, 64, 0.1, worker_num=4, cuda_devices=(0, 1, 2, 3))
然后运行gunicorn -c redis_streamer_gunicorn.py flask_example:app？

请问您找到redis+multi_gpu的部署方法了吗


Can I have SQL RP Server and SQL Instance are the same servers?

Do RP server roles and SQL Instance servers need to be distributed to different servers?

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

ID: fe000108-7b72-9770-0c09-412a8e7bd083
Version Independent ID: 2b8a921a-330a-4dd7-384b-2f5c213791b6
Content: SQL Hosting Servers on Azure Stack
Content Source: articles/azure-stack/azure-stack-sql-resource-provider-hosting-servers.md
Service: azure-stack
GitHub Login: @jeffgilb
Microsoft Alias: jeffgilb

Hi @niceysj , these GitHub issues should be related to documentation bugs. However, because I don't see where this is documented specifically, I'll provide tech support this time! If I'm understanding your question correctly, the answer is no. No, you cannot create databases on the SQL RP server. That should be created in the default provider subscription while SQL Hosting Servers should be created in a billable, user subscription. The RP server should not be used to host tenant databases.
Hope this helps,
#please-close

@niceysj We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Add a resync period for services in the service controller

This should ensure all load balancers get deleted even if a reordering of
watch events causes us to strand one after its service has been deleted,
because the sync will notice that the service controller's cache has a
service in it that no longer exists in the apiserver.
It could still leak in the case that the controller manager is killed
between when it leaks something and the sync runs, but this should
improve things.
Improves the situation on #9382, but doesn't truly fix it.

@cjcullen @lavalamp

LGTM.

The first time shippable's go 1.4 tests failed, this time its 1.3 tests failed. They each failed on a different mesos test, both unrelated to this change.


CORGI-158 git clone

This switches the SCA task to use git clone instead of git archive. Unfortunately an update to dist-git meant that we wouldn't use git archive anymore.

LGTM


Improve segwit signature hash API

The word "segwit" refers to segwit v0 and taproot but these functions are version specific. Add v0 into the function names.
This is similar to #1994, both based on recent post of mine to bitcoin dev mailing list.

concept ACK. Though I wonder if we want to split these into wpkh and wsh variants rather than a single v0_segwit version. (See also #1932)

BIP-143

0xcf is 207, the number of bytes in the redeemScript. It is a PUSH_DATA OP code with the encoded length.
Since the input's scriptSig will contain the script OP_PUSHDATA <redeemscript> that is why we don't need to add it.

@tcharding 0xcf is a length prefix and it is automatically added when consensus encoding byte vectors such as scripts.

@tcharding 0xcf is a length prefix and it is automatically added when consensus encoding byte vectors such as scripts.

ah BOOM! I've been bitten by that one before :)

Added some more docs.

looks good. Shitty that we have so many Results that can only trigger by somebody providing a bad input index, but I don't think there's any good way to fix that in Rust.

I rekon the situation would be improved by an InputOutOfBoundsError return type for those functions, way more explicit than a SignError.

Agreed. Maybe we should do a followup PR for this.
The we are already returning a sighash::Error type which is either "input out of bounds" or "io error". But the IO error case casen't can't happen in the functions that return a hash.

I'm hesitant to dig too deeply into errors because of the secp error POC but I'll have a gentle poke (in a separate PR).

My first reaction when reading the OP was "eh again a naming discussion around segwit <> segwitv0". But as someone who has been using sighashes a lot lately, I really like this change. The scriptCode is one of the most confusing things about the segwit BIPs (see what I did there?). So this change hides that confusion concept and the argument naming is pretty clear.
ACK 4300cf22101803b83f8e6628400de0f075a5d92f


Add missing MRB_API

MRB_API is used implementation in load.c:
MRB_API mrb_irep*
mrb_read_irep_file(mrb_state *mrb, FILE* fp)

I considered mrb_read_irep_file() to be an internal function. Do you have any use-case of the function?

I don't have any use-case. I just want to build (link) error.
Could you remove MRB_API in load.c?

I just want to "fix" build (link) error...

I see inconsistency.  Will fix.

Thanks. But I found more same cases. I created a new pull request as #3216.


Add client-go 9.0.0 changelog

Ref: https://docs.google.com/spreadsheets/d/1VwVbMA1JBPo30QhX92Z5wuyp5MLUNkW9JGs7s59GZyU/edit#gid=0
/assign @sttts @caesarxuchao

/hold
until 1.12 is released

oh travis uses an old version of go :/
will send a PR

created https://github.com/kubernetes/client-go/pull/467 to fix travis

Closing and reopening to retrigger travis

Though I feel we are abusing your time having you go through all the PRs.

No problem, it just takes me ~an hour to go through all PRs which touch staging. But yes, automated (https://github.com/kubernetes/test-infra/issues/5843) is nice. :)

Thanks, @nikhita
/lgtm

/approve

/hold cancel

/hold
shouldn't 1.12 be released first?

prow is too quick :)
doesn't matter much since 1.12 will be released in a few hours.


autorandr: 855c18b -> 1.1

Motivation for this change
Update package and also fix predetect script usage
Things done

[ ] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

@Mic92 Fixed in upstream. Thank you much for the help!

@Mic92 Thank you!

@gnidorah when trying to use this service I get:
Feb 21 10:27:16 Morbo systemd[1]: Starting autorandr execution hook...
Feb 21 10:27:16 Morbo autorandr[26523]: /bin/sh: xrandr: command not found
Feb 21 10:27:16 Morbo autorandr[26523]: Failed to run xrandr (line 439)
Feb 21 10:27:16 Morbo autorandr[26523]: Running autorandr as grahamc for display :0

any ideas on what is up?

inpurity ...

There should be a makeWrapper in autorandr that adds xrandr to $PATH of autorandr.

@grahamc @Mic92 https://github.com/NixOS/nixpkgs/pull/35314
BTW autorandr is X11 only thing, no Wayland support. What is the best way to indicate that?
And that means you need services.xserver.enable = true; which adds xorg.xrandr to environment.systemPackages. So the only real use of above PR is autorandr package under non-NixOS distro with missing xrandr in path.


alert missing rmagick on method call, rather than on load

Following @nadavshatz advice on improving the rmagick dependency warning.
This actually solves #9 even though I closed that issue early.

@jordanstephens Look good and a lot cleaner than what we have today. I wrote a couple of small comments.
We should probably add tests for this to the suit as well.
P.S
I wanted to add code-climate/hound-ci and circle-ci/travis-ci but i don't have the right privileges for the repo. Another thing that could be useful is gemnasium for automatic detection of stale dependencies.

I went ahead and pushed an update to raise the exception, and added a spec with a stubbed Paleta.rmagick_available?. I'm not totally sure if there is a better way to test this or not. If you have any better ideas, I'm totally game.
I totally support adding those things, let me see if I can set them up. Is there something I can change to give you the correct rights? I have you added as a collaborator, but it doesn't look like I have any other options.

@nadavshatz just added travis, code climate, and gemnasium :+1:
code climate is a little sad though :disappointed:

Found this regarding the class variables http://makandracards.com/makandra/14229-the-many-gotchas-of-ruby-class-variables
Looks like you are right, I stand corrected :smiley:
This all looks great to me, awesome job :+1:
It's great that we have these things now, and we can work to slowly improve on code climate, at least it gives us a point of reference.

Cool, thanks @nadavshatz!

Just pushed v0.3.0 with these changes. Decided to bump the minor version rather than the tiny version because of the change to raise when missing rmagick on generate_from_image.


event on pr to main

Trigger event to integration-testing when tagging new release candidate

@krlosMata Actually, I think it's better to leave as is. We aren't going to be doing rc releases in hermezjs, as the UIs use stable versions directly

@krlosMata Actually, I think it's better to leave as is. We aren't going to be doing rc releases in hermezjs, as the UIs use stable versions directly

hermezjs could be used by third parties besides hermez wallet UI and it could need release candidates in order to not break integration between components. I think we should do release candidates and change-logs across all our repositories.

Changelogs for sure. But rc I don't think are necessary. Even with rc things can break, that's why we have tests and the rest of the process. But most projects and libraries only do betas and rcs before major releases, for feature and patch releases I don't think it's necessary.

agreement has been reached AFK to trigger integration-testing event on PR to main


Examples: camera: add a simple camera snapshot example

Summary
The camera example will take the specified number of pictures (default 10)
then will exit
To enable the example add the following line in your defconfig
EXAMPLES_CAMERA
Impact
examples for camera
Testing
Spresense board

@masayuki2009


Fix slow/failed compilation of LVT by GFORTRAN

Description
Newer versions of GFORTRAN will hang and often fail in lvt/core/LVT_statsDataMod.F90, due to an acknowledged compiler bug.  This pull request avoids the problem by commenting out all LVT_statsEntry fields in the LVT_stats object.
It turns out that these fields are not actually used by LVT -- the actual LVT_statsEntry objects are separately created and organized as a linked list.  Commenting out these fields does not change the runtime behavior of LVT, and allows compilation
with GFORTRAN.
Closes #132
Testcase
See /discover/nobackup/emkemp/bugfix/fix_lvt_gnu_compile/work, which runs LVT over CONUS with masking (using a little-endian binary file in common/).  The data compared are GDAS and NLDAS2. The common/ subdirectory includes a LDT parameter file for the domain, while data/ has symbolic links to GDAS and NLDAS2.  The test case runs for one month, and outputs some gridded metrics as well as summary (domain-wide) statistics.
before_code_change.METRICS_CONUS/ has output from LVT before changing the code.
after_code_change.METRICS_CONUS/ has output from LVT after changing the code.
The above runs were performed with module lisf_7_intel_19_1_3_304_traceback-work-around.  And I confirm LVT compiles with lisf_7_gnu_9.3.0_gmao_openmpi_4.0.4 (with optimization) after making the code changes.
(I don't know if this should go in support/lisf-public-7.3 or in master.  I chose the former.)

I just realized I forked from master.  So this can't go into support/lisf-public-7.3 -- it drags too many unrelated changes.
Let me know whether the actual fix should target support/lisf-public-7.3 or master, and I'll issue a new pull request.

I vote for support/lisf-public-7.3 branch as well because it's a fix for released code.


Even after update, titlebar is not placed properly

the titlebar is placed on the right, but I want it on the left what should I do?

You have to edit the file csd.css (~/.firefox/themes/Monterey/parts/csd.css). Got to /* Window buttons box */ and replace right with left. At the end it should look like this:
/* Window buttons box */
:root[tabsintitlebar] #nav-bar .titlebar-buttonbox-container,
:root[tabsintitlebar] #titlebar .titlebar-buttonbox-container,
:root[tabsintitlebar] #titlebar-buttonbox-container,
:root[tabsintitlebar][inFullscreen] #window-controls {
-moz-appearance: none !important;
padding: 0 3px 0 4px;
position: absolute !important;
left: 8px;
top: 0;
display: block !important;

Fixed now


WSL2: 0x80070003 when disabling the "Require case insensitivity" policy

Environment
Microsoft Windows [Version 10.0.19041.867]
Applicable to all distros
Whether the issue is on WSL 2 and/or WSL 1: WSL 2

Steps to reproduce

•	Enable WSL
•	Install WSL2 Kernel Upgrade
•	Install a WSL2 Distro and make sure it's running properly
•	Disable the Case Insensitivity Policy: Computer Configuration -> Windows Settings -> Security Settings -> Security Options -> System objects: Require case insensitivity for non-Windows subsystems
•	Reboot
•	Try to run the WSL 2 Distro or install a new distro

Expected behavior
•	Launch WSL2 distro successfully
•	Install additional distros

Actual behavior

•	WSL2 Distros will not launch: Path not found

•	Installing additional distros will fail with the same error

•	WSL 1 Distros still work
•      In the non-working scenario, wslhost doesn't start:

WSL Distros that were already installed/registered seem to work but I cannot install new distros (WSL1 or 2) when this policy setting is set to Disabled. Have tested on 1909,2004 and 20H2.

Launched Debian inside the debugger and skipped ahead to the handled exception. Looks like wsl fails when trying to load LXSS.
2:011> gh
ModLoad: 00007ff8`d2910000 00007ff8`d2922000   C:\Windows\SYSTEM32\kernel.appcore.dll
ModLoad: 00007ff8`d4c80000 00007ff8`d4d00000   C:\Windows\System32\bcryptPrimitives.dll
ModLoad: 00007ff8`d56c0000 00007ff8`d575c000   C:\Windows\System32\sechost.dll
ModLoad: 00007ff8`d6e90000 00007ff8`d6f39000   C:\Windows\System32\clbcatq.dll
ModLoad: 00007ff8`cb9f0000 00007ff8`cb9f9000   C:\Windows\System32\lxss\LxssManagerProxyStub.dll
onecore\vm\wsl\lxss\wsl\main.cpp(380)\wsl.exe!00007FF762C3A602: (caller: 00007FF762C4BAEC) Exception(1) tid(cb8) 80070003 The system cannot find the path specified.

More or less the same thing when trying to install Kali, but a different error
0:000> gh
ModLoad: 00007ff8`cba00000 00007ff8`cba0e000   C:\Windows\SYSTEM32\wslapi.dll
ModLoad: 00007ff8`d50b0000 00007ff8`d51b0000   C:\Windows\System32\ucrtbase.dll
ModLoad: 00007ff8`d64b0000 00007ff8`d6805000   C:\Windows\System32\combase.dll
ModLoad: 00007ff8`d5310000 00007ff8`d543b000   C:\Windows\System32\RPCRT4.dll
ModLoad: 00007ff8`d2910000 00007ff8`d2922000   C:\Windows\SYSTEM32\kernel.appcore.dll
ModLoad: 00007ff8`d68a0000 00007ff8`d693e000   C:\Windows\System32\msvcrt.dll
ModLoad: 00007ff8`d4c80000 00007ff8`d4d00000   C:\Windows\System32\bcryptPrimitives.dll
ModLoad: 00007ff8`d56c0000 00007ff8`d575c000   C:\Windows\System32\sechost.dll
ModLoad: 00007ff8`d6e90000 00007ff8`d6f39000   C:\Windows\System32\clbcatq.dll
ModLoad: 00007ff8`cb9f0000 00007ff8`cb9f9000   C:\Windows\System32\lxss\LxssManagerProxyStub.dll
onecore\vm\wsl\lxss\wslapi\wslsession.cpp(103)\wslapi.dll!00007FF8CBA04F32: (caller: 00007FF8CBA029C7) ReturnHr(1) tid(2140) 80040302 ModLoad: 00007ff8`cb9f0000 00007ff8`cb9f9000   C:\Windows\System32\lxss\LxssManagerProxyStub.dll

0:000> !err 80040302
0x80040302 = MAPI_E_INVALID_TYPE
Error code: (HRESULT) 0x80040302<PHONE_NUMBER>)

WSL Distros that were already installed/registered seem to work but I cannot install new distros (WSL1 or 2) when this policy setting is set to Disabled. Have tested on 1909,2004 and 20H2.

Could you please collect logs for this issue? That will help us diagnose what's going on here.
Full intructions here: https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#8-collect-wsl-logs
Please post the feedback link to here! Thank you!

Could you please collect logs for this issue? That will help us diagnose what's going on here.
Full intructions here: https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#8-collect-wsl-logs
Please post the feedback link to here! Thank you!

Feedback link: https://aka.ms/AAbxhxd


JWT Support

Have y'all considered supporting JWT for authentication?
What I envision is providing access to the response headers in the callbacks. Then a hook can be set up to add a JWT in the headers sent back to the client on each response. The client would then use this JWT in the next request. Thanks for a great gem.

Hi all. +1 on this.
I've read some posts regarding this (and devise) and I guess this would involve disregarding the dependency on the sessions middleware. This means that the piece:
app.use ::Warden::Manager do |config|
  ...
  config.serialize_into_session { |user| user.id }
  config.serialize_from_session { |id| ::User.get(id) }
  config.failure_app = app
end

would have to be completely rethought: not relying on sessions means serialize_into/from_session are bad names (breaking change). But on the other hand session is only a "store". One could have different "store" strategies, in which one of them could be JWT.
I'm wondering whether this could be easily bundled into devise, as devise itself doesn't have a clue where the record key and salt are serialized into.

API changes proposal:
config allows one to set the serializer (the following already assumes opting for one and only one serializer per warden middleware):
  ...
  # advantage: allows explicitness in choosing the session serialization as default strategy
  # optional first argument: scope
  config.serializer :session, :serialize => -> (user) { user.id  },
                                           :deserialize => -> (id) { User.get(id) }
  ...

These callbacks would then be added to the SessionSerializer (which has already default serialize/deserialize methods).
One could then build different strategies:
module Warden
  class JWTSerializer
    def serialize(user)
       JWT.encode({user_id: user}, VERIFY_KEY, "RS256", exp: Time.now.to_i + 3000)
    end

    def deserialize(key)
      payload, header = JWT.decode(key, VERIFY_KEY, true)
      # ... do necessary verifications, token expire, yadayada
      payload["user_id"]
    end

    def store(user, scope)
      return unless user
      method_name = "#{scope}_serialize"
      specialized = respond_to?(method_name)
      token = specialized ? send(method_name, user) : serialize(user)
      @env["HTTP_AUTHORIZATION"] = "#{scope || 'Basic'}: #{token}"
    end

    def fetch(scope)
      lookup = scope ? scope.to_s : "Basic"
      key = @env["HTTP_AUTHORIZATION"][%r/#{lookup}: (.+)/, 1] if @env["HTTP_AUTHORIZATION"]
session[key_for(scope)]

      return nil unless key

      method_name = "#{scope}_deserialize"
      user = respond_to?(method_name) ? send(method_name, key) : deserialize(key)
      @env.delete("HTTP_AUTHORIZATION") unless user
      user
    end
  end
end

Support for reading the JWT and setting the user from it is already in Warden. Create a strategy to reads the header, verifies the token and logs in the resource. Providing the JWT to begin with should happen outside warden.
I'd recommend setting the for the user lookup into the "sub" field in the JWT.

@hassox, thx for the answer. And actually wasn't aware of the possibility of overwriting the #store? method within the strategy. Do you know of some gist/devise plugin which already plays around with this? Nevertheless, I'll see if I'll play around with this within the next 2 weeks and will keep you posted.

Confirm it, store marked as false indeed solves the problem.

I'd recommend setting the for the user lookup into the "sub" field in the JWT.

What do you exactly mean by "sub" field?

The subject: https://github.com/progrium/ruby-jwt#subject-claim

And I also think there's some word missing from the sentence:

.. the for ...

I guess you mean what I call the scope in my snippet, right?

Just in case somebody here is interested, I developed warden-jwt_auth, which is no more than a JWT Warden strategy and some rack middleware to help with token dispatching.


Different behavior of same code for inmemory and plocal/remote databases

This is what I found few days ago while using database or maybe i missed something.
Fast way to reproduce it is to clone this project:
https://github.com/eugene-kamenev/orientdb-spring-boot-example
run "gradle bootRun"
then access http://localhost:8080/persons
Everything works fine with plocal instance.
But when you just change connection url to a memory one - not all entities are persisted into db. Restart app with inmemory database and open again: http://localhost:8080/persons
you will see different results.
I am not sure why this happens. Please help to understand.

hi @eugene-kamenev
i tried "gradle bootRun" and i got
FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':bootRun'.
> Configuration with name 'default' not found.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 5.479 secs

@maggiolo00 please after clone run:
git submodule init
git submodule update
gradle bootRun

Thanks i'm trying

@eugene-kamenev
different in which terms? i put a println and got the same size

Ok i missed one thing in explanation. For me smthing strange happens and I really cant understand why results are different.
When I am using 'memory:test' or 'plocal:/tmp/test' for example, my Profile vertex is saved only once because the json output goes:

Then if i use 'remote:/test' with empty db also, I see that everything was persisted fine:

If you want to reproduce native orientdb behavior, you can just change onApplicationEvent method in Boot.groovy class to this one:
@Override
    void onApplicationEvent(ContextRefreshedEvent event) {
        withTransaction(graphFactory) { graph ->
            def city1 = graph.addTemporaryVertex('City')
            city1.setProperty('title', 'Amsterdam')
            def city2 = graph.addTemporaryVertex('City')
            city2.setProperty('title', 'New York')
            def city3 = graph.addTemporaryVertex('City')
            city3.setProperty('title', 'London')
            def cities = [city1, city2, city3]
            50.times {
                def livesIn = cities[new Random().nextInt(3)]
                def profile = graph.addTemporaryVertex('Profile')
                def person = graph.addTemporaryVertex('Person')
                person.setProperty('firstName', "Test test person $it")
                profile.setProperty('livesIn', livesIn, OType.LINK)
                person.setProperty('profile', profile, OType.LINK)
                person.addEdge('Visited', livesIn, ['on' : new Date()])
            }
        }
}

And this reproduces different results behavior, I cant understand why this happens.
Also I cant understand why orientdb changes the order of persisted entites.

@maggiolo00 @lvca Any updates on this? I cant publish my examples with embedded database without resolving this problem. Thanks.

Hi @eugene-kamenev,
I was also trying to understand what was wrong, but i didn't really get it, can we have a test case whit what you expect e without random that make change the result every run.

Closed because no answer after a while. In case please comment or reopen this.

Ok. I have written junit test for this case:
public class Tests {

    @Test
    public void testOrientInMemory() {
        // just change connection string to memory or local to fail the test
        OrientGraphFactory graphFactory = new OrientGraphFactory("remote:localhost/test", "admin", "admin");
        createEntities(graphFactory);
        Object personList = findAllPersons(graphFactory);
        for(OrientVertex v : (Iterable<OrientVertex>) personList) {
            OrientVertex profile = v.getProperty("profile");
            assertNotNull(profile);
            OrientVertex livesIn = profile.getProperty("livesIn");
            assertNotNull(livesIn);
        }
    }

    public static void createEntities(OrientGraphFactory factory) {
        OrientGraph graph = factory.getTx();
        try {
            OrientVertex city1 = graph.addTemporaryVertex("City");
            city1.setProperty("title", "Amsterdam");
            OrientVertex city2 = graph.addTemporaryVertex("City");
            city2.setProperty("title", "New York");
            OrientVertex city3 = graph.addTemporaryVertex("City");
            city3.setProperty("title", "London");
            ArrayList<OrientVertex> list = new ArrayList<>();
            list.add(city1);
            list.add(city2);
            list.add(city3);
            for (int i = 0; i <= 50; i++) {
                OrientVertex livesIn = list.get(new Random().nextInt(3));
                OrientVertex profile = graph.addTemporaryVertex("Profile");
                OrientVertex person = graph.addTemporaryVertex("Person");
                person.setProperty("firstName", "Test test person " + i);
                profile.setProperty("livesIn", livesIn, OType.LINK);
                person.setProperty("profile", profile, OType.LINK);
                HashMap<String, Object> map = new HashMap<>();
                map.put("on", new Date());
                Object[] args = new Object[1];
                args[0] = map;
                person.addEdge("Visited", livesIn, args);
            }
            graph.commit();
        } catch (Exception e) {
            graph.rollback();
        } finally {
            graph.shutdown(false);
        }
    }

    public static Iterable<OrientVertex> findAllPersons(OrientGraphFactory graphFactory) {
        OrientGraph orientGraph = graphFactory.getTx();
        OSQLSynchQuery<Vertex> sqlQuery = new OSQLSynchQuery<>("select from Person");
        return orientGraph.command(sqlQuery).execute();
    }
}


legalcode pages of CC BY Canada versions 2.0 and 2.5 not found

I went to https://creativecommons.org/licenses/by/2.5/ca/ (CC BY 2.5 Canada) and clicked both English and French licenses:

https://creativecommons.org/licenses/by/2.5/ca/legalcode.en
https://creativecommons.org/licenses/by/2.5/ca/legalcode.fr

Both are "Not Found", i.e. probably no longer working(?).
Same for https://creativecommons.org/licenses/by/2.0/ca/ (CC BY 2.0 Canada):

https://creativecommons.org/licenses/by/2.5/ca/legalcode.en
https://creativecommons.org/licenses/by/2.5/ca/legalcode.fr

On the other hand, https://creativecommons.org/licenses/by-sa/2.5/ca/ (CC BY-SA 2.5 Canada) is fine as well as its English and French licenses:

https://creativecommons.org/licenses/by-sa/2.5/ca/legalcode.en
https://creativecommons.org/licenses/by-sa/2.5/ca/legalcode.fr

In short, I think the issue is the CC BY 2.0 Canada and CC BY 2.5 Canada legalcodes/license pages no longer working.

This has now been fixed. Thank you for reporting it!


[Crosswalk-19][Embeddingapi] Need to check the video playing in andro…

…id TV
Impacted tests(approved): new 0, update 2, delete 0
Unit test platform: Crosswalk Project for Android 19.48.503.0
Unit test result summary: pass 2, fail 0, block 0
BUG=https://crosswalk-project.org/jira/browse/XWALK-6120

LGTM


added barebones index and controller file for Team Model

This addresses the following two issues: #788  #789
Also added the route to the routes.js

:+1:


Make tools/configure.py work with Python 3.x

Currently tools/configure.py fails with an error when run with Python 3. It makes things complicated when your build system already uses other scripts done in Python 3. In the perfect scenario both flavors, Py2 and Py3, would be supported.

I tried doing that conversion a while back - it's really painful for the same Python source to work in both environments.

One option I've considered is moving away entirely from Python because of the Python2/Python3 rift (which is awkward for everyone involved). A logical candidate would be Node.js which is also well supported on major platforms. Another approach would be to be self-hosting, i.e. compile a command line tool with the necessary file I/O bindings for doing the configuration step. But no actions on this so far.

Node.js is nice but seems like a very heavy dependency, even heavier than Python.  I rather like the idea of self-hosting, personally.  I imagine that would be a very large undertaking, though.

Hmm... Is there any benefit nowadays to retaining Python 2 support at all?  I feel like we could upgrade the build tools to Python 3-only and it wouldn't be an issue, as long as there's a way to ensure you run the correct one on systems with both installed.

Other than breaking existing builds I think Python 3 only might be a viable option today. So that change could be made for Duktape 3.x, but I wouldn't want to make it for Duktape 2.x because existing builds would quite likely break.
Self-hosting wouldn't be a large undertaking as far as the build script functionality is concerned. The main concern would be a build dependency to maybe a different Duktape version to run the configuration tooling. It'd be easy if there was a pre-packaged command line binary for major platforms, but lacking that it seems awkward to use (and document in an understandable fashion). So if this approach was taken, it'd be good to release a pre-packaged binary tool for the most common platforms.

For what it’s worth I just found out Python 2 won’t be maintained at all after 2020, so that’s probably a good reason to migrate sooner rather than later.

That might pose a risk for availability but for the tooling itself it's not critical that the implementation is maintained (e.g. for security issues), because it's so far removed from actual execution. But certainly availability will eventually become worse closer to 2020. But even so, I don't think it's an immediate concern for at least a few years.

Given a 1-2 year migration window, I think I'll probably start by looking at non-Python alternatives first. After all, maybe there's a hard python3-to-python4 transition down the road and I don't want to go through that again ;)

If the tooling remains Python then one approach is to look at the automatic 2-to-3 conversions. The result may require a small fixup, and it might be feasible to maintain support for both for some time with that approach, then eventually switch to Python 3 only.

After all, maybe there's a hard python3-to-python4 transition down the road and I don't want to go through that again ;)

Yeah...
That’s what’s really nice about the Ecmascript process, backwards compatibility is maintained so a lot of code that was written even 2 decades ago still runs without modification in a modern JS engine.  Sometimes we lose out on new features (like global) because of it, but the backward compatibility is really nice.  No Python-like fragmentation. :)

Being the last of the 2.x series, 2.7 will have an extended period of maintenance. Specifically, 2.7 will receive bugfix support until January 1, 2020. After the last release, 2.7 will receive no support.
https://www.python.org/dev/peps/pep-0373/#maintenance-releases

Any updates on updating to Python 3 or moving way from Python?

No updates at present. The dependency on python2 is not very problematic in my opinion; python2 is needed to create sources and headers for a custom configuration (not for compilation itself) and as such is easy to e.g. dockerize. But eventually some solution will be needed.

I've been giving this a little thought and if going with a non-Python approach this approach might be nice:
Rewrite the tooling and other utility stuff into Javascript modules. Use pure Javascript YAML and XML libraries (which exist and seem to work well), so that native dependencies are minimized. In effect one would only rely on:

The ability to parse command line arguments
Minimal file I/O primitives, e.g. listDir(), readFile(), and writeFile()

This tooling could be run directly with Node.js which is available for major platforms, and is fast which is nice for Unicode processing and such. But because the native binding assumptions are minimal, it would also be easy to run it with Duktape or any other ES5.1 engine (transpiled if necessary) so that the tooling could also be made available on (almost) all targets where Duktape itself runs (which currently isn't possible).
I've experimented a bit with this and it seems straightforward. The pure JS bindings I've used so far are js-yaml and from-xml which seem to fit the purpose well.

@svaarala I am currently in the situation that I am maintaining a build environment that only depends on python2 for duktape, I very much would like to move away from that. Would you be open for a PR that ports to python3? I do not want to get started on anything if you have set you mind on moving to JS.
Oh and btw duktape is cool stuff ;)

I think moving to JS makes most sense, and I actually already have most of the tooling already rewritten in JS. It's waiting to be merged when I get a chance to work on it for a few days :)
The JS tooling works on Node.js but also on Duktape itself (not just in theory but in practice too :), making it possible to run the tooling on any target supporting Duktape. To run the tooling on Duktape one needs to bootstrap Duktape with a few additional native bindings (like a wrapper for system(), access to command line arguments, etc).

I'm also interested in this, since vcpkg only requires python2, I believe, for this exact library 😛

@svaarala alright, thanks for the update. Much appreciated.

Any update on this? I just tried creating a custom config for Duktape and I can't because I use Python 3.9 only. Tried updating it and ran into a ton of tracebacks.

The JS tooling is in master but it's not yet used by default Makefiles etc. But you can use it as follows:
$ make build/duktool.js
[...]
$ nodejs build/duktool.js configure --help

Later I'll merge a change that changes configure.py into a compatible wrapper that invokes the JS code (with a deprecation warning).

Oh neat I didn't notice the js implementation until reading through the thread and will try it out, thanks for doing that!
Fwiw debian testing no longer ships anything except the python2 interpreter itself, so it feels truly like the late twilight of that language...

Was the script migrated to Python 3 or JS?

It's Node.js based now, in https://github.com/svaarala/duktape/tree/master/src-tools. It will eventually be self-hostable with Duktape too.

Is node-based tool the preferred way now? On 2.7.0 already? https://wiki.duktape.org/configuring2x still lists python util only.


Chrome on Windows 10: flickering scrollbar

Under some circumstances (to be better determined) every updates in the header make the vertical scroll bar appear and disappear. Very annoying! This is happening in current Hawk Dove game BETA. @ewenw

It might be due to two methods: W.adjustHeaderOffest and W.adjustFrameHeight:
https://github.com/nodeGame/nodegame-window/blob/master/lib/GameWindow.js#L1932
They are there to make the frame stretch until the end of the page, and they change their style property based on the content of the page. They are called when the frame loads or if the page is resized:
https://github.com/nodeGame/nodegame-window/blob/master/lib/GameWindow.js#L843
They also are invoked when the InfoPanel is opened or closed (the frame must be shifted down):
https://github.com/nodeGame/nodegame-window/blob/master/lib/InfoPanel.js
So it is a complex behavior, it is not an easy fix.

Also the hackdove game is a bit strange because it has an horizontal scroll bar also when it is not needed. Could you tell me @ewenw if there is some special settings in the css?

No. I have removed the stylesheet links and the problem still occurs.

This problem exists in the Prisoner's Dilemma implementation as well.

Yes, I can reproduce for prisoner. If I stop the visualTimer it stops flickering

whatever change you do to the header it adds/remove the scroll bar.
W.getHeader().innerHTML = "X"; // scroll bar in
W.getHeader().innerHTML = "X"; // scroll bar out
...
It looks like a bug of Chrome to me

although it happens only on some games

That's annoying. How come stopGo doesn't suffer from this?

https://stackoverflow.com/questions/21563672/google-chrome-vertical-scroll-bars-mysteriously-appear-and-disappear

it seems to be an issue for other people also.

A temporary fix would just be to permanently enable scrollbar on Chrome.

It seems that removing position: absolute in the CSS rule of ng_mainframe fixes the problem. However, that rule does not affect other games. @ewenw could you see if removing the rule creates problem with other games? Do you think you used some other HTML/CSS that might conflict with that rule?

Fixed


Fix/Investigate Ordering of Layer Controller

User story
The order of the layer controller is such right now that the bottom layer in the controller renders on top.
Preferred solution
We should investigate a) if this is standard practice (Napari?) and b) if it is not remedy it.

Napari appears to obey the opposite convention to us, where the top channel/layer in the controller is indeed on top.


Add integration test for self-loops

See https://github.com/deepset-ai/canals/issues/67

Fixed in #148