Directory attribute disallowed for verifier

Issue Type

Bug report

Molecule and Ansible details
$ ansible --version && molecule --version
ansible [core 2.12.9]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/jeremy_frasier/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/jeremy_frasier/.pyenv/versions/3.10.7/envs/ansible-role-clamav/lib/python3.10/site-packages/ansible
  ansible collection location = /home/jeremy_frasier/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/jeremy_frasier/.pyenv/versions/ansible-role-clamav/bin/ansible
  python version = 3.10.7 (main, Sep  8 2022, 13:34:47) [GCC 12.2.0]
  jinja version = 3.1.2
  libyaml = True
molecule 4.0.2 using python 3.10
    ansible:2.12.9
    delegated:4.0.2 from molecule
    docker:2.1.0 from molecule_docker requiring collections: community.docker>=3.0.2 ansible.posix>=1.4.0

Molecule installation method (one of):

pip

Ansible installation method (one of):

pip

Detail any linters or test runners used:
Just molecule + testinfra.
Desired Behavior
The molecule schema check should allow for a directory key immediately under verifier in the molecule.yml file.
Actual Behaviour
The molecule schema check incorrectly reports an error when there is a directory key immediately under verifier in the molecule.yml file.
Please see here for an example of the erroneous behavior.

I think you can close this now. :)


Interpolate author login into releases url for pagination

The issue is as described in #1073
I mostly followed the schema suggested there. I also had to change the handler to add the author username to the template context rather than the author name, but this is safe because the value wasn't used before anyway.
Fixes rust-lang/docs.rs#1073

The fixes look right, thanks. Can you add a test case for this? It would go in src/web/releases.rs, see the bottom of that file for examples.

Is this the sort of test you had in mind?

Looks great, thanks so much!


Bug in Powertous

Microsoft PowerToys version
0.86.0
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
General
Steps to reproduce
I dont Know
✔ Expected Behavior
to not crash
❌ Actual Behavior
Version: <IP_ADDRESS>
OS Version: Microsoft Windows NT 10.0.22631.0
IntPtr Length: 8
x64: True
Date: 11/30/2024 3:36:50 PM
Exception:
System.Runtime.InteropServices.COMException (0x80263001): {Desktop composition is disabled} The operation could not be completed because desktop composition is disabled. (0x80263001)
at Standard.NativeMethods.DwmExtendFrameIntoClientArea(IntPtr hwnd, MARGINS& pMarInset)
at System.Windows.Shell.WindowChromeWorker._ExtendGlassFrame()
at System.Windows.Shell.WindowChromeWorker._UpdateFrameState(Boolean force)
at System.Windows.Shell.WindowChromeWorker._HandleDwmCompositionChanged(WM uMsg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Shell.WindowChromeWorker._WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Other Software
i dont know

/dup #30507


Crashing when entering tardis

i went in to tardis and now im stuck in a loop when loading into my server i have turned down all my graphics and my texture packs but i seem to be stuck in a loop of loading and crashing. any help would be Appreciated

Welcome! Please, send your log/crash-report right after entering to the tardis


Adds the ability to dismiss the transfer progress

Closes #426

@nephix I am not sure maybe we can have to separate change logs. But I will have a look at generating a changelog retrospectively for everything we did up to this point tomorrow so we can skip that at the moment.


Including a .txt file as an asset prevents already-connected gamepads from being detected on windows target

This sure was a fun one to hunt down this morning!  -_-
To reproduce:

Plug in a controller.

Load up the GamepadInput Sample and add a .txt file to the project folder.

Include it with <assets path="changelog.txt" /> in project.xml

Compile for windows.

Observe that it doesn't work until you unplug and plug in the controller again.
Easy workaround:

<template path="changelog.txt" />

Using openfl 6.0.1, lime 5.3.0 and an Xbox 360 controller.

Based on timing, there is a chance the gamepad could be connected already by the time your application finishes the preload step and starts.
Can you tell if the "Gamepad connected" message does not display (but the gamepad input still traces out) or if no input from the device is reported at all on the GamepadInput sample? Thanks!

There's no message and no input at all, and Gamepad.devices returns 0 when queried at any time until the controller is unplugged and plugged back in, then everything works.
Tested html5 and there's no problem there at all.

We listen to SDL_CONTROLLERDEVICEADDED on the native side, but I have a feeling that loading assets is causing our code to initialize (perhaps?) after SDL has available gamepads. As a result, the event is not dispatched, but calling SDL_GetNumJoysticks on startup may be needed, to check for any already available, where events were not dispatched

It looks like the Gamepad device (in Lime) was already added, so I added changes so that a new GameInput object will dispatch DEVICE_ADDED events for any pre-existing devices :smile:


to master

Coverage remained the same at 100.0% when pulling da570f06d6f60cbd66dd2bdd37b441393afc52dd on next into 8d47ce20f36d08bb321bc3eea0a9b0abae7dbb8c on master.


[BUG]  Systray updates

Checklist before submitting an issue

[X] I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
[X] I have specifically verified that this bug is not a common user error
[X] I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)

Description of the bug
Added the systray widget inside the my systembar but it doesn't want to work properly.
Reproducing the issue
Install eww from last master branch. Code below is a simple bar(I commented some unnecessary lines of code).
My setup(if you need anything else let me know):

Arch Linux (6.8.2-zen2-1-zen)
LeftWM (0.5.1)

Expected behaviour
Just common behavior as in other bars.
I checked in pair with polybar and it's working instead of eww's systray.
It doesn't launch on every tries. Also it doesn't restore list of applications after reloading wm.
Additional context
Part of my systembar.
(include "./systembar/modules/systray/config.yuck")

(defwindow
  systembar
  :monitor 0
  :geometry (
    geometry
    :x "0%"
    :y "-8px"
    :width "98%"
    :height "40px"
    :anchor "bottom center"
  )
  :hexpand false
  :vexpand false
  :stacking "fg"
  :reserve (struts :distance "48px" :side "bottom")
  :windowtype "dock"
  :wm-ignore false
  (systembar)
)

(defwidget systembar []
  (centerbox
  :class "systembar-wrapper"
    :orientation "horizontal"
    ;(systembar-leftside)
    ;(systembar-centerside)
    (systembar-rightside)
  )
)

(defwidget systembar-rightside []
  (box
    :class "systembar-rightside"
    :orientation "horizontal"
    :halign "end"
    :space-evenly "false"
    :spacing 16
    (systembar-systray)
    ;(systembar-keyboard-layout)
    ;(systembar-bluetooth)
    ;(systembar-vpn)
    ;(systembar-network)
    ;(systembar-cpu)
    ;(systembar-ram)
    ;(systembar-battery)
    ;(systembar-datetime)
  )
)

(defwidget systembar-systray []
  (systray
    :class "systembar-systray"
    :spacing 5
    :orientation "horizontal"
    :space-evenly "true"
    :icon-size 28
    :prepend-new "true"
  )
)

Could it be because you have set :space-evenly and :prepend-new as strings? They are supposed to be bool values, according to the docs:
https://elkowar.github.io/eww/widgets.html#systray
Does it work if you change it from "true" to true?

Could it be because you have set :space-evenly and :prepend-new as strings? They are supposed to be bool values, according to the docs:
https://elkowar.github.io/eww/widgets.html#systray
Does it work if you change it from "true" to true?

I tried and that's didn't help. As I know it's string with boolean type converts to the boolean under the hood. Also I using string variations in other places and everything is ok.

What does happen, then? You say it doesn't work properly. Does something happen? An error message when you type eww reload?

Nothing happened, just normal behavior. I can see systray container in gtk devtools, but it has 0 width with no content. It should at least show the nm-applet which is enabled every time after boot/reload.
But if I try to add width and colors to the space it will be visible. So I think it's enabled, but doesn't want to show the data about current apps.

I'm experiencing something similar. I have 3 programs that use the systray: nextcloud client, keepassxc and udiskie.  Out of those, only nextcloud client shows in the eww systray, but if I enable systray in dusk (fork of dwm), all three show. I'm still testing, trying to figure out what are the differences in the notification of those three and will post my findings later this week.

Having the same issue here, out of all tray items that I have, only Vesktop shows up. Other apps like KeepassXC, syncthing-tray and cbatticon just don't show up.
Is there any way I could debug this further with eww tools? eww debug doesn't provide any data about the system tray.

I have a similar problem on wayland (hyprland). I don't have many applications at hand to test the tray - only keepassxc and pasystray. Neither of them shows up in the eww tray. In waybar's tray it's working without a problem. For debugging purposes I also tried it on X11 (i3), but it's the same problem there.

After a bit more observing, I found that the issue only happens, when apps are started after EWW itself is started.
EWW doesn't seem to probe for apps that have already been started before eww has been. For instance if I close all my tray apps, then start eww and after that open all my tray apps again they all show up.
It seems to be, that EWW needs to probe for already registered tray apps even after it was started.

I encountered a similar issue with nm-applet as @keiko37. Using the current release 0.6.0 of eww with i3wm, initially nm-applet wouldn't display its tray icon even when launched after eww and regardless of other trays being initialized. However, this behavior changed after I switched to nm-applet --indicator. Interestingly, the tray icon now appears even when nm-applet is initialized alone.
Here's a snippet from my i3 configuration
exec_always --no-startup-id /home/fbartelt/.config/eww/launch.sh &
exec --no-startup-id nm-applet --indicator

This setup has worked for me after several reboots, but I cannot guarantee it as a 100% solution.

Similar to @fbartelt, it unfortunately does not make any difference for me whether I start applications before or after eww on X11 or wayland and irrespective of other bars that might display a tray. Besides keepassxc and pasystray, mentioned in my previous post, I also tried nheko and nicotine, which have tray icons. I do not have nm-applet or nextcloud-client installed to test for their behaviour though.


API call to /images does not taken history flag in account

Is this a request for help?: no

Is this a BUG REPORT or a FEATURE REQUEST? (choose one): BUG REPORT
Query to API for http://localhost:8228/images?history=false or http://localhost:8228/images?history=true returns the same result (iow history filter is ignore).
Version:
docker images;
anchore/anchore-engine           latest              de7e9076ed3e        2 weeks ago         711 MB
anchore/anchore-engine           v0.4.1              de7e9076ed3e        2 weeks ago         711 MB
anchore-cli, version 0.4.1
Version of Anchore Engine and Anchore CLI if applicable: 0.4.1
What happened:
curl -X GET --header 'Accept: application/json' --header 'Authorization: Basic xxx' 'http://localhost:8228/images?history=true' -o history_true
curl -X GET --header 'Accept: application/json' --header 'Authorization: Basic xxx' 'http://localhost:8228/images?history=false' -o history_false
md5sum history_true history_false
64ed8e5c854e7028c02166a8954abfab  history_true
64ed8e5c854e7028c02166a8954abfab  history_false
What did you expect to happen:
files history_true/history_false should be different
Any relevant log output from /var/log/anchore:
What docker images are you using:
anchore/anchore-engine           v0.4.1              de7e9076ed3e        2 weeks ago         711 MB
How to reproduce the issue:
see "what happened"
Anything else we need to know:

Hi @barbich , this is expected behavior for that specific query. The history parameter is only valid when used in combination of another filter like fulltag, since a tag has history, but an image does not. The GET /images call will return all known images in the system for the calling account.
 I was expecting to see the same behavior from the API than from the CLI 'iamge list --show-all'.
tx


Getting GOAWAY when listening to streams after a while

Hi everyone. We have a server listening over many long lived streams using firebase-admin. We recently bumped our versions of @google-cloud/firestore and firebase-admin to:
    "@google-cloud/firestore": "^2.1.0",
    "firebase-admin": "^8.0.0"

We managed to get rid of the DEADLINE_EXCEEDED we were previously getting but unfortunately we are now getting a new error:
Getting metadata from plugin failed with error: New streams cannot be created after receiving a GOAWAY

This one happens on different conditions though... While we could reproduce DEADLINE_EXCEEDED with some load tests this ~seems to happen after a few hours~ always happens after 30 minutes or so (perhaps when the streams being listened to are idle for a while?) after the server process starts. Any idea of what might be the cause, and also, which combination of package versions might get us free from both DEADLINE_EXCEEDED and GOAWAY errors? Because when this happens, restarting the process is the only remedy.
Environment details

OS: Happening locally on macOS 10.14.4 and also on a docker container based on the node:10-alpine  image running on a Ubuntu 18.04.2 LTS machine.
Node.js version: v10.15.0 on macOS, v10.xon the Ubuntu machine.
npm version: 6.9.0
@google-cloud/firestore version: ^2.1.0

Steps to reproduce

Start the server (which currently listens to ~80 streams)
Leave it running and wait
After a while (maybe after streams have no activity for some time) the error comes up and the streams "stop working", i.e, no new events are detected starting from there

Thanks!

Detailed error log:
Error: Getting metadata from plugin failed with error: New streams cannot be created after receiving a GOAWAY
    at Http2CallStream.call.on (/Users/xxx/Projects/yyy/node_modules/@grpc/grpc-js/build/src/call.js:68:41)
    at Http2CallStream.emit (events.js:198:15)
    at Http2CallStream.endCall (/Users/xxx/Projects/yyy/node_modules/@grpc/grpc-js/build/src/call-stream.js:74:18)
    at /Users/xxx/Projects/yyy/node_modules/@grpc/grpc-js/build/src/call-stream.js:355:18
    at processTicksAndRejections (internal/process/task_queues.js:86:5)
  code: 'ERR_HTTP2_GOAWAY_SESSION',
  details:
   'Getting metadata from plugin failed with error: New streams cannot be created after receiving a GOAWAY',
  metadata: Metadata { internalRepr: Map {} } }

I am having the same problem

For everyone still having this problem, I think grpc-js 0.4.3 fixes it. Adding the explicit dependency to "@grpc/grpc-js": "^0.4.3" will probably do it (remember to remove node modules just to be sure it is installed).

This should be resolved, you might need to delete any lock files to pull in the latest gax/grpc-js packages. Let us know if the issue persists and we'll be happy to take another look! 😎

@callmehiphop Is the most recent version of nodejs-firestore already pulling "@grpc/grpc-js": "^0.4.3" ? In case it is not, shouldn't the issue remain opened until it does?

@jmacedoit I can confirm that the latest version does pull in 0.4.3, all patch updates get pulled in automatically.

@jmacedoit still getting this error on cloud function randomly ! I'm using "firebase": "^6.2.3" ! Updating  6.5.0 will solve this ?  Changing firebase version will effect the cloud function / firestore ? (most recent version of nodejs-firestore )

@jmacedoit still getting this error on cloud function randomly ! I'm using "firebase": "^6.2.3" ! Updating  6.5.0 will solve this ?  Changing firebase version will effect the cloud function / firestore ? (most recent version of nodejs-firestore )
{ Error: Getting metadata from plugin failed with error: New streams cannot be created after receiving a GOAWAY
at Http2CallStream.call.on (/srv/node_modules/@grpc/grpc-js/build/src/call.js:68:41)
at emitOne (events.js:121:20)
at Http2CallStream.emit (events.js:211:7)
at process.nextTick (/srv/node_modules/@grpc/grpc-js/build/src/call-stream.js:71:22)
at _combinedTickCallback (internal/process/next_tick.js:132:7)
at process._tickDomainCallback (internal/process/next_tick.js:219:9)
code: 'ERR_HTTP2_GOAWAY_SESSION',
details: 'Getting metadata from plugin failed with error: New streams cannot be created after receiving a GOAWAY',
metadata: Metadata { options: undefined, internalRepr: Map {} } }

@LOG-TAG You should always try to use the most recent version of packages when you find a bug to check whether it has been solved. This being said, ^6.2.3 should be pulling 6.5.0. Just to be safe, delete your node modules and update your dependency to in package.json to ^6.5.0 (your package-lock.json may be constraining your version to an old one, this will force it to change).
If this doesn't work, post the output of npm ls here so we can see which firebase/firestore related dependencies you might have that are outdated.


Support coreclr

Please support compiling against and on the coreclr to further both xplat and dnx support.

hi @Alxandr (nice work on asp.net vNext btw :smile: )
see #263

@enricosada I was told on twitter by @visualfsharp to go make a discussion here though ^^

ah ok, nice :smile:

seems there is something going on at https://github.com/Microsoft/visualfsharp/pull/499

thanks @forki

So, there is a new "target" we can build against which is dotnet. It's not a compile target (it's a nuget thing), but a reference target (stuff like System.IO are nuget packages). I think work could realistically start on getting the fsharp compiler to run on dotnet core, and compile against it.

in progress

Maybe leave this issue open until .NET Core support is released? <3


[Icon Request] Support for Riot JS v4+ (.riot files)

[x] I'm sure this issue is not a duplicate.

[x] I'm submitting an icon request:

Type: file
Icon Name: riot
Sample original Icon:
Extensions: ``
Filenames: riot
Language ids: ``

Language Extensions:

More info:

Already supported via https://marketplace.visualstudio.com/items?itemName=nesterow.riot-vsc
If you want to request an icon update modify the issue accordingly and reopen it.

@JimiC thanks for pointing that out. Actually, that (old) logo is from the old format (v3 and below) that had a default filename extension of '.tag'. The '.riot' extension is the default for the newer versions of the framework (v4+). I will reopen this as an Update Icon Request. Cheers!


Remove rdkit binary

No more bytes_value fields in proto for identifiers
Validation updated to require that "string value" be defined
Tests, helper functions updated
Update function to assign binary now irrelevant
Editor changed to remove upload boxes around compound and
reaction identifiers
load/unload of identifiers in webform simplified
full.pbtxt dataset example updated to not use bytes_value in reaction identifier

Please update the description to link to the issue.


Callback API

What about VK Callback API? Does it supported? Or planned to support in future?

Hey @Sergo96,
Good question! I'm not actively working on this library, so I'm not going to add its support soon. But if you want to send a PR - you're welcome, I'd be glad to help to review and merge it.
Cheers!


gpio-read: bcm283x-gpio (GPIO7): pull cannot be used when subsystem gpiomem not initialized.

Describe the bug
A clear and concise description of what the bug is.
While attempting to read from a GPIO pin on a RaspberryPi 1, I receive an error: gpio-read: bcm283x-gpio (GPIO7): pull cannot be used when subsystem gpiomem not initialized.
To Reproduce
Steps to reproduce the behavior:

Run CLI commands to use periph tools

go get periph.io/x/periph/cmd/...
cd ~/go/bin
./gpio-read GPIO7

Run it.
See error

Expected behavior
A clear and concise description of what you expected to happen.
I expect the pin to be set to read-mode, and a value returhed
Platform (please complete the following information):

OS: Raspbian GNU/Linux 10 (buster)
Board: RaspberryPi 1

This looks similar to #288, but I'm not running my Go code inside a docker container - just the plain logged-in user.
I've also tried "granting" access to the devices listed in #288 via:
sudo chmod a+rw /dev/gpiomem
sudo chmod a+rw /dev/mem

and I still get the error.

I get the same error if I try to run a simple button press detection code:
package main

import (
    "fmt"
    "log"

    // "periph.io/x/periph/host/rpi"
    "periph.io/x/periph/conn/gpio"
    "periph.io/x/periph/conn/gpio/gpioreg"
    "periph.io/x/periph/host"
)

func main() {
    // Load all the drivers:
    if _, err := host.Init(); err != nil {
        log.Fatal(err)
    }

    // Lookup a pin by its number:
    //p := rpi.P1_26
    p := gpioreg.ByName("GPIO7")
    if p == nil {
        log.Fatal("Failed to find pin 26")
    }

    fmt.Printf("%s: %s\n", p, p.Function())

    // Set it as input, with an internal pull down resistor:
    if err := p.In(gpio.PullDown, gpio.BothEdges); err != nil {
       log.Fatal(err)
    }

    // Wait for edges as detected by the hardware, and print the value read:
    for {
        p.WaitForEdge(-1)
        fmt.Printf("-> %s\n", p.Read())
    }
}

Have you added the host gpiomem device to the container?
ie: docker run --device /dev/gpiomem -d foo

@NeuralSpaz I'm not running in a docker container here.

additionally ./periph-info shows:
Drivers failed to load and the error:
- bcm283x-gpio: gpioreg: can't register an alias with no name
``

Seems like a regression on RPi1. I'll find mine and will try to reproduce tomorrow morning.
My hunch is likely this line; https://github.com/google/periph/blob/master/host/bcm283x/gpio.go#L1265

@maruel Thanks for the quick reply!  Let me know if there's any information I can provide to help.
I'll note that after a "fresh boot", my program takes ~4 seconds to fail the first time, but on subsequent executions, fails almost instantly.

I was planing to do a rpi1 with buster later today, I see what I can reproduce.

Can you try to make RegisterAlias() panic instead?
At https://github.com/google/periph/blob/master/conn/gpio/gpioreg/gpioreg.go#L108
Add:
panic(dest)
Then paste the stack trace here.

pi@raspberrypi:~/go/src/button $ ./button
panic: GPIO16

goroutine 17 [running]:
periph.io/x/periph/conn/gpio/gpioreg.RegisterAlias(0x0, 0x0, 0x141323, 0x6, 0x0, 0x0)
        /home/pi/go/src/periph.io/x/periph/conn/gpio/gpioreg/gpioreg.go:108 +0x3b8
periph.io/x/periph/host/bcm283x.(*driverGPIO).Init(0x223488, 0x14bac8, 0x2412e60, 0x0)
        /home/pi/go/src/periph.io/x/periph/host/bcm283x/gpio.go:1265 +0x36c
periph.io/x/periph.(*stage).loadParallel.func1.1(0x2412e60, 0x24180c0, 0x24181c0, 0x2418140, 0x2418100, 0x14368c, 0xc, 0x166a28, 0x223488)
        /home/pi/go/src/periph.io/x/periph/periph_parallel.go:84 +0x48
created by periph.io/x/periph.(*stage).loadParallel.func1
        /home/pi/go/src/periph.io/x/periph/periph_parallel.go:82 +0x304

Ok so the pin is set to a function between 0 and 2. The ones that are not defined at:
https://github.com/google/periph/blob/master/host/bcm283x/gpio.go#L939

https://www.raspberrypi.org/app/uploads/2012/02/BCM2835-ARM-Peripherals.pdf page 102:

0 is reserved
1 is SD8
2 is reserved

But the code in Func() shouldn't return an empty string
It feels like this line triggers but I don't know how;
https://github.com/google/periph/blob/master/host/bcm283x/gpio.go#L292
Can you add panic(f) ?

Doesn't look like that line(292) gets hit.
The previous panic was hit first (https://github.com/google/periph/blob/master/conn/gpio/gpioreg/gpioreg.go#L108), so I cleared it, and now I'm back at the original error.

Ok thanks for the debugging, I need to log off now will try to take a look tomorrow to find the root cause.

I amended https://github.com/google/periph/blob/master/host/bcm283x/gpio.go#L1263 as follows (beginning on line 1263) to include logging as it creates the aliases:
if _, ok := functions[f]; !ok {
    functions[f] = struct{}{}
    log.Println("Registering Alias: ",string(f),name)
    if err := gpioreg.RegisterAlias(string(f), name); err != nil {
            log.Println("Error registering alias: ", err)
            return true, err
    }
}

The output was somewhat unexpected:
pi@raspberrypi:~/go/src/button $ ./button
2019/08/14 02:29:47 Registering Alias:  In/High GPIO0
2019/08/14 02:29:47 Registering Alias:  Out/Low GPIO5
2019/08/14 02:29:47 Registering Alias:  Out/High GPIO6
2019/08/14 02:29:47 Registering Alias:  In/Low GPIO9
2019/08/14 02:29:47 Registering Alias:   GPIO16
2019/08/14 02:29:47 Error registering alias:  gpioreg: can't register an alias with no name
GPIO7: In/High
2019/08/14 02:29:47 bcm283x-gpio (GPIO7): pull cannot be used when subsystem gpiomem not initialized

are the aliases created in a random order?
The output does confirm your statement about https://github.com/google/periph/blob/master/host/bcm283x/gpio.go#L939 being the culprit.
I too am signing off for the evening, Cheers!

Same problem I believe. First attempt at using Periph. Raspberry Pi Zero simple button input example.
GPIO22: In/High
2019/08/14 16:25:08 bcm283x-gpio (GPIO22): pull cannot be used when subsystem gpiomem not initialized

Sorry for the annoyance. I broke this in v3.2.0. I fixed it, added a smoke test and manually ran the smoketest on a RPi1 and RPiZW. This should be fixed for good. Will try to do a v3.6.1 release next week or so.

Thanks for taking care of it
Since I'm a bit of a Go newb, will re-running go get ... get the latest master version, or the latest release?
can I get ebc08ac via go get?

It depends which Go version you are using and if you enabled GO111MODULE. If not, a go get -u periph.io/x/periph should do the trick.

confirmed working on rpi1B running buster as non root.

Thanks working on raspberry pi zero as non root.

🎉 It works for me as well.  Thanks!


Invalid css file - login.css

File login.css is invalid - there should be a closing brace ( "}" ) after line 837:
https://github.com/marmelab/ng-admin-demo/blob/gh-pages/css/login.css#L837

Thanks for the report! It's now fixed.


Attention maps for model explainability

Hello Yuan,
I was looking into the ViT paper for some baseline results implementation, and found their section on attention maps. This is very helpful for model explainability as it shows the sections that lead to the classification result of a given image. I am currently working on an audio based task, and so look to this model as its fine-tuning on audioset is very useful to me. I was wondering if there was an equivalent implementation in the AST model to show what part of the filter banks leads to a given classification. If it is not currently in place, how would you recommend I go about implementing something like that?
Thank you,
Karim

Hi there,
I don't have visualization code to release now, but I am quite sure it can be done in the same way with ViT. If you are familiar with Transformer, it is not hard to implement.
-Yuan


Move RCF detector out of AA into its own repo

The RCF detector should be an external detector since it involves offline training and it's not a basic statistical algo. We need to move this out of AA into a separate repo. We also need to remove the AWS dependencies from AA.

Done


Bump dependencies

$subject

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/5211854620

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/5211854620
Status: success


[WIP]enable unit test for mc feature branch

add multicluster unit test step in go workflow and
enable it in feature branch temporarily.
Signed-off-by: Lan Luo<EMAIL_ADDRESS>

Codecov Report

:exclamation: No coverage uploaded for pull request base (feature/multi-cluster@eef025e). Click here to learn what that means.
The diff coverage is n/a.

:exclamation: Current head c234d2e differs from pull request most recent head 623a0d0. Consider uploading reports for the commit 623a0d0 to get more accurate results

@@                   Coverage Diff                    @@
##             feature/multi-cluster    #3026   +/-   ##
========================================================
  Coverage                         ?   40.18%
========================================================
  Files                            ?      166
  Lines                            ?    20750
  Branches                         ?        0
========================================================
  Hits                             ?     8339
  Misses                           ?    11597
  Partials                         ?      814

Flag
Coverage Δ

unit-tests
40.18% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Hi @jianjuns @tnqn Could you help to take a look at this PR? I'd like to enable unit test and golangci in feature branch as earlier as possible, so we can know that we didn't break any existing functions in a new PR or push against feature branch. thanks.


twitter is not accepting GET parameters on callback url no more - so cannot use it to login with plugin

The app for twitter social login is generating callback url with a GET parameter like that: ?hauth.done=Twitter
The problem is that twitter is not accepting get parameters on callback urls anymore, therefore I cannot use wp social plugin to login using twitter…
So, do you guys have a fix for that? WP Social Plugin update, maybe?
I tried removing the parameter and leaving the rest, with or without / in the end, but it didn't solve the problem either.

I faced with the same situation. I did the same trick and it didn't help until i disabled my page cache with URL parameters.


Restarting network in rancheros 1.5.0 doesn't work

There is no "networking.service" found in rancheros 1.5.0.
How can i restart my network? How can i add persistent network configuration?
Need a procedure to add network config like adding config in /etc/network/interfaces file.
Please reply as soon as possible.
Thank you

https://rancher.com/docs/os/v1.x/en/installation/networking/interfaces/
system-docker restart network

Thanks for your reply, but the issue is when i paste my own config on interfaces file
Config file contains
auto ecbr
iface ecbr inet static
address <IP_ADDRESS>
netmask <IP_ADDRESS>
gateway	<IP_ADDRESS>
bridge_ports eth0 eth1 eth2
bridge_stp off
bridge_fd 0
bridge_maxwait 0
on Network restart the file is not getting up the interface
even I dont get any exapmle to create bridge on the ROS console
can you please help us to find a solution
Thank you


Use a singleton to contain the stashed $_ value

cf https://rubyreferences.github.io/rubyref/stdlib/patterns/singleton.html

On the other hand, this might well be one of this rare case where a global value might be justified: few chance of collision, the variable designed to be automatically assigned in a single point of code, and the impact on performance might be significant on large amount of batch substitution.


[SourceKitStressTester] Don't stress test Xcode project package dependencies

Also fix a bug where the expected completion result was present but reported as missing.

@swift-ci please test


VM always changed in eptRviMode,hvMode

What happened?
I attempted to manage several VMs in a vSphere 8 installation via Pulumi, the VMs are created with cloud-init configuration and from a template, but eptRviMode and hvMode are not explicitly set at all.
Example
new vsphere.VirtualMachine("vm1", {
  name: "vm1",
  clone: { templateUuid: template.uuid },
  networkInterfaces: [ <omitted for brevity> ],
  disks: [ <omitted for brevity> ],
  <remainder omitted for brevity>,
})

Output of "pulumi preview" after completing a "pulumi up"
Previewing update (staging):
     Type                                     Name                   Plan       Info
     pulumi:pulumi:Stack                      <omitted>                   7 messages
     └─ vsphere:index:Folder                 <omitted>
 ~      └─ vsphere:index:VirtualMachine       <omitted>       update     [diff: ~eptRviMode,hvMode]
 ~         ├─ vsphere:index:VirtualMachine    <omitted>       update     [diff: ~eptRviMode,hvMode]
 ~         ├─ vsphere:index:VirtualMachine    <omitted>       update     [diff: ~eptRviMode,hvMode]
 +         └─ pulumi-nodejs:dynamic:Resource  <omitted>-kubeconfig  create

Running "pulumi up" does not change this output but does cause the VMs to be shutdown, reconfigured and then started again.
Output of pulumi about
CLI
Version      3.112.0
Go Version   go1.22.1
Go Compiler  gc

Plugins
NAME       VERSION
cloudinit  1.4.1
command    0.9.2
nodejs     unknown
random     4.16.0
vsphere    4.9.2

Host
OS       darwin
Version  14.4.1
Arch     arm64

This project is written in nodejs: executable='/opt/homebrew/bin/node' version='v21.7.1'

Current Stack: <omitted>

TYPE                                         URN
pulumi:pulumi:Stack                          urn:pulumi:staging::vsphere::pulumi:pulumi:Stack::<omitted>
pulumi:providers:vsphere                     urn:pulumi:staging::vsphere::pulumi:providers:vsphere::default_4_9_2
pulumi:providers:random                      urn:pulumi:staging::vsphere::pulumi:providers:random::default_4_16_0
random:index/randomPassword:RandomPassword   urn:pulumi:staging::vsphere::random:index/randomPassword:RandomPassword::<omitted>-k8sSecretToken
vsphere:index/folder:Folder                  urn:pulumi:staging::vsphere::vsphere:index/folder:Folder::<omitted>
vsphere:index/virtualMachine:VirtualMachine  urn:pulumi:staging::vsphere::vsphere:index/folder:Folder$vsphere:index/virtualMachine:VirtualMachine::<omitted>
pulumi:providers:command                     urn:pulumi:staging::vsphere::pulumi:providers:command::default_0_9_2
command:local:Command                        urn:pulumi:staging::vsphere::vsphere:index/folder:Folder$vsphere:index/virtualMachine:VirtualMachine$command:local:Command::cat-k3s-kubeconf
pulumi:providers:pulumi-nodejs               urn:pulumi:staging::vsphere::pulumi:providers:pulumi-nodejs::default
vsphere:index/virtualMachine:VirtualMachine  urn:pulumi:staging::vsphere::vsphere:index/folder:Folder$vsphere:index/virtualMachine:VirtualMachine$vsphere:index/virtualMachine:VirtualMachine::<omitted>
vsphere:index/virtualMachine:VirtualMachine  urn:pulumi:staging::vsphere::vsphere:index/folder:Folder$vsphere:index/virtualMachine:VirtualMachine$vsphere:index/virtualMachine:VirtualMachine::<omitted>

OPP TYPE  URN
updating  urn:pulumi:staging::vsphere::vsphere:index/folder:Folder$vsphere:index/virtualMachine:VirtualMachine$vsphere:index/virtualMachine:VirtualMachine::<omitted>
updating  urn:pulumi:staging::vsphere::vsphere:index/folder:Folder$vsphere:index/virtualMachine:VirtualMachine$vsphere:index/virtualMachine:VirtualMachine::<omitted>

Backend
Name           <omitted>
URL            file://~
User           <omitted>
Organizations
Token type     personal

Dependencies:
NAME               VERSION
@infisical/sdk     2.1.8
@pulumi/command    0.9.2
@pulumi/random     4.16.0
@pulumi/vsphere    4.9.2
@types/node        18.19.21
crypto-js          4.2.0
js-yaml            4.1.0
@pulumi/cloudinit  1.4.1
@pulumi/pulumi     3.108.1
@types/crypto-js   4.2.2
@types/js-yaml     4.0.9

Pulumi locates its logs in /var/folders/_s/7t01k6l903q67w46sjhf5b3w0000gn/T/ by default

Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Hi @cultpony - thank you for letting us know about this.
This may be an instance of https://github.com/pulumi/pulumi-terraform-bridge/issues/1785, and may have a generic fix for that in the future.

I've also encountered a problem when trying to work around the issue; trying to ignore the properties causes an exception in the code somewhere, breaking the workflow entirely.

Same problem here. But at least with the Python SDK and version 4.10.0 of the vSphere provider, setting pulumi.ResourceOptions(ignore_changes=["eptRviMode", "hvMode"]) for the VM seems to work fine without exceptions so far.

@guineveresaenger @t0yv0 Can we rollout PlanResourceChange to this resource to see if that helps?

Perhaps we could add an env var to quickly try this without rebuilding. That could help to quickly figure it out if there's a repro at hand.

@cultpony Could you please provide a larger self-sufficient repro without omitting most properties? That would help us troubleshoot the issue. Of course, replace any sensitive information.

A new property has begun also exhibiting this problem: syncTimeWithHost
I took the code I'm using and removed any outside references as much as possible, not interfering with any of the actual properties being set, you'll have to obviously spin up your own vsphere cluster and substitute the IDs involved. Removing "ignoreChanges: [ "syncTimeWithHost" ]" causes that to also always be changed. Ignoring changes on eptRviMode or hvMode causes the entire thing to break entirely (throws an exception).
let metadata = Buffer.from(`# cloud-init\n`, "binary")
    .toString("base64");

let userdata = Buffer.from(`#cloud-config\n`, "binary")
    .toString("base64");

let template = await vsphere.getVirtualMachine({
    name: "TEMPLATE_NAME",
    datacenterId: "DC_ID",
});

new vsphere.VirtualMachine(`test-vm`, {
    name: "test-vm",
    clone: {
        templateUuid: template.uuid,
    },
    extraConfig: {
        "guestinfo.userdata": userdata,
        "guestinfo.userdata.encoding": Encoding.Base64,
        "guestinfo.metadata": metadata,
        "guestinfo.metadata.encoding": Encoding.Base64,
    },
    networkInterfaces: [{
        networkId: "NETWORK_ID",
        adapterType: template.networkInterfaces[0].adapterType,
    }],
    disks: [{
        label: template.disks[0].label,
        size: template.disks[0].size,
        unitNumber: 0,
        datastoreId: "DATASTORE_ID",
    },{
        label: template.disks[1].label,
        size: template.disks[1].size,
        unitNumber: 1,
        datastoreId: "DATASTORE_ID",
    }],
    numCpus: 4,
    memory: 4096,
    cpuReservation: 1000,
    memoryReservation: 1024,
    datastoreId: "DATASTORE_ID",
    firmware: template.firmware,
    resourcePoolId: "RESOURCE_POOL_ID",
    folder: "/"
    guestId: template.guestId,
    waitForGuestIpTimeout: 10,
}, {
    ignoreChanges: [ "syncTimeWithHost", ],
    parent: parent,
});

Regarding the exceptions for eptRviMode and hvMode, I found that the outputs in the stack state are just empty strings, no matter what you specify as input. When doing a pulumi refresh, the inputs are then set to empty strings as well. With that, the provider throws exceptions on later calls. Manually changing state (with pulumi state export/import) such that inputs and outputs both contain the default values makes everything work normally again. But of course, that's not an ideal workaround.

hi @nithom and @cultpony -
pre @mikhailshilkov 's suggestion, I've rolled an alpha release of the vsphere provider that includes the ability to add an environment variable that will allow the provider to use a new diffing strategy.
Could you run your local program using v4.11.0-alpha.1 and with
$ export PULUMI_ENABLE_PLAN_RESOURCE_CHANGE=true
set in the environment, and let us know if this issue persists? Thank you so much! 🙏

Hi @guineveresaenger , thanks for providing an alpha release. Unfortunately, the behavior stays the same with the new version and the environment variable set. After doing a pulumi refresh, the inputs and outputs of the two parameters still become empty strings in the stack state, and later pulumi up calls output a diff for the parameters.

Thank you for trying out the alpha version, @nithom. We'll take another look as soon as we can.


#bin and #uri violate edn and Clojure specs for tags

This probably sounds really nitpicky, but it was actually causing some confusion on our dev team; several of our devs thought that #bin and #uri were just standard Clojure, not realizing they came from puget.
The edn spec says:

rules for tags
Tag symbols without a prefix are reserved by edn for built-ins defined using the tag system.
User tags must contain a prefix component, which must be owned by the user (e.g. trademark or domain) or known unique in the communication context.

The [Clojure reference documentation](http://clojure.org/reader#The Reader--Tagged Literals) seems to back this up:

Reader tags without namespace qualifiers are reserved for Clojure.

Granted, no one else seems to take this very seriously either. spyscope, datomic, and flatland.ordered use "spy", "db" (mostly), and "ordered" respectively; to say that these are "known unique" seems questionable to me at best. But for the most part (with one exception on datomic's part), they at least have a prefix which gives some clue as to where it came from and that it's not standard Clojure.

Nitpicky perhaps, but I fully admit I'm in the wrong here. :) Puget was originally part of Vault, which needed the #bin and #uri tags. I also think they should be part of the core EDN built-ins, but until they are these should indeed be namespaced.
If you submit a PR to change these to #puget/bin and #puget/uri I'll accept it; otherwise I'll get around to it in the next week or so. Sorry for the confusion!


Bump Mesos to 1.0-rc4.

:ship:

Note that this will require any downstreams depending on 1.0-rc2 or earlier to adjust a few Mesos flags for http authentication and SSL.


The program has no total number of correct scores

Steps to Reproduce:
Under the start round do the following steps
Play the Game > Answer > Correct/Wrong > Total Score
Actual Result:
Has no output of the total score
Expected Result:
The user will be able to see the total number of correct answers per answering each song.

Fixed: program doesn't print the total score after playing


Option to install latest beta homebridge

Is your feature request related to a problem? Please describe:
Current 1.1.6 stable has some issues for me that the latest beta has addressed
Describe the solution you'd like:
A setting in the advanced menu that would allow us to toggle between latest stable or latest beta version.
Describe alternatives you've considered:
Manually update to beta
Additional context:

This will land in v4.29.0.

@oznu Will this include a note on dashboard if a new beta version is available?

It won't. The npm registry "api" endpoint that I need to call to get non-latest version information can be quite slow as it also returns the full README contents for every single version ever - the API call to get version information for the UI is over 6MB of JSON.

Brilliant; thank you.
Simon
On 10 Oct 2020, at 13:05, oznu<EMAIL_ADDRESS>wrote:

This will land in v4.29.0.
[image]https://user-images.githubusercontent.com/3979615/95654644-12c1a500-0b4d-11eb-9b70-66d582496608.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/oznu/homebridge-config-ui-x/issues/877#issuecomment-706538797, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD2AEAEC3JQSKU6DQM256M3SKBEZHANCNFSM4SE36XQA.

Is there a place where I can see the changes of the latest beta version?
On 13/10/2020 08:11, Florian Taut wrote:

@oznu https://github.com/oznu Will this include a note on dashboard
if a new beta version is available?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/oznu/homebridge-config-ui-x/issues/877#issuecomment-707513151,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABT22SE37XRN4O4SZR77SMDSKPVSPANCNFSM4SE36XQA.

The GitHub commit history on the beta branch 😄.
Beta builds are not formal releases so don't have a changelog etc.


Data reaches the client for a very long time

Me create a server which handle sending data from CLIENT_1 (PC) by using nodejs/net module ( net.createServer ). And use websocket server (uWebSocket.js) for sending data from CLIENT_1 (PC) to CLIENT_2 (browser).
[ CLIENT_1 send data by tcp connection -> net server handle data and call socket.send(...) for some socket's -> CLIENT_2 (browser) get data by onmessage callback ]
But data comes to CLIENT_2 with very high delay (arount 14 sec). Not immediately.
The server has about 200 simultaneous connections.

Environment

Node.js v14.15.0
uWebSockets.js v18.9.0
Node.js Net Module
Ubuntu 18.04
3.1 GHz Core x4
4 GB DDR4 Ram x1

This is an open ended question without enough info to make anything out of it. Your image doesn't say anything other than there's a gap of 12 seconds at the very browser (?). This doesn't really rule out anything other than there's not, not a gap of 12 seconds.

Server.js
[code]
var io = require('uWebSockets.js').App();
var net = require('net');
var clients = [];
io.ws('/*', {
message: (socket, message, isBinary) => {
const uuid = parseInt(String.fromCharCode.apply(null, new Uint8Array(message))) || -1;
if (uuid)
return;
    for (var index = 0; index < clients.length; index++) {
        if (clients[index] === socket) {
            clients[index].uuid = uuid;
            break;
        }
    }
},
open: (socket) => {
    for (var index = 0; index < clients.length; index++) {
        if (clients[index] === socket)
            return;
    }
    clients.push(socket);
},
close: (socket) => {
    for (var index = 0; index < clients.length; index++) {
        if (clients[index] === socket) {
            clients.splice(index, 1);
        }
    }
}

}).listen(wsPort);
net.createServer(function (connection) {
connection.on('data', function (data) {
for (var index = 0; index < clients.length; index++) {
const socket = clients[index];
if (data.buffer.readUint32LE(0, 4) == socket.uuid) {
socket.send(data.buffer, true, false);
}
}
}).listen(dataPort);
[/code]
Client.js
[code]
const ws = new WebSocket('ws://server:wsPort');
ws.onmessage = function(data) { console.log(data); };
[/code]

This is not really how I want to do things - you should debug on your side until you have concrete, absolute info on this being a bug. Otherwise I spend ages and ages doing everybody's homework.

Closing until you have an actual concrete bug report.


Support for chainer.mixed16 data type in PureNcclCommunicator

This PR adds support of chainer.mixed16 in ChainerMN. In addition, improve the handling of models which have fp16 and fp32 Variables mixed.
Details:

After chainer.mixed16 dtype is introduced, the communication data type is determined based on chainer.mixed16 and allreduce_grad_dtype parameter for chainermn.create_communicator. The actual types of layers in a model are not considered. See the docstring of chainermn.create_communicator.

Related PRs:

https://github.com/chainer/chainer/pull/6456

Also, this some minor refactoring is included:

Removed unnecessary parameter itemsize from pack_params and unpack_params

Jenkins, test this please

I'm now fixing some pep8 and docstring format error. 🙇

Jenkins CI test (for commit 60a907c7c658c8d33f0470d5f27b43608d07d7de, target branch master) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

Jenkins, test this please

Jenkins CI test (for commit e1d73884324dcdba9da64d16c5e5279e9a080113, target branch master) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

I got the following error:
error test:
chainermn_tests/communicator_tests/test_communicator.py::test_mixed_dtype_communicator_gpu[param13] FAILED

error message
param = {'allreduce_grad_dtype': <class 'numpy.float32'>,
 'batched_copy': False,
 'communicator_class': <class 'chainermn.com...>,
 'global_dtype': <class 'numpy.float16'>,
 'gpu': False,
 'model_dtype': None,
 'multi_node': True,
 'nccl1': False}

    @pytest.mark.parametrize('param', gpu_mixed_dtype_params)
    @chainer.testing.attr.gpu
    def test_mixed_dtype_communicator_gpu(param):
        model = ExampleMixedModel()
>       check_allreduce_grad_mixed_dtype(param, model, True)

chainermn_tests/communicator_tests/test_communicator.py:473:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

param = {'allreduce_grad_dtype': <class 'numpy.float32'>,
 'batched_copy': False,
 'communicator_class': <class 'chainermn.com...>,
 'global_dtype': <class 'numpy.float16'>,
 'gpu': False,
 'model_dtype': None,
 'multi_node': True,
 'nccl1': False}
model = <test_communicator.ExampleMixedModel object at 0x7fbb90036f60>
use_gpu = True

    def check_allreduce_grad_mixed_dtype(param, model, use_gpu):
        # Checks the actual allreduce communication is performed
        # in the correct data type (FP16 or FP32)

        chainer.global_config.dtype = param.global_dtype
        comm_class = param.communicator_class

        if not param.multi_node:
            ranks = _communication_utility.init_ranks(mpi_comm)
            inter_size = ranks[4]
            if inter_size > 1:
                pytest.skip('This test is for single node only')

        if comm_class is PureNcclCommunicator:
            communicator = comm_class(
                mpi_comm, allreduce_grad_dtype=param.allreduce_grad_dtype,
                batched_copy=param.batched_copy)
        else:
            communicator = comm_class(mpi_comm)

        # answer type: see the document of `create_communicator`
        global_dtype = param.global_dtype
        allreduce_dtype = param.allreduce_grad_dtype

        answer_dtype = None
        if allreduce_dtype == np.float16:
            answer_dtype = np.float16
        elif allreduce_dtype == np.float32:
            answer_dtype = np.float32
        else:
            if global_dtype == np.float32:
                answer_dtype = np.float32
            else:
                answer_dtype = np.float16

        if use_gpu:
            model.to_gpu()

        model.a.W.grad[:] = communicator.rank
        model.b.W.grad[:] = communicator.rank + 1
        model.c.b.grad[:] = communicator.rank + 2

        if isinstance(communicator, PureNcclCommunicator):
            communicator._init_comms()
            communicator.nccl_comm = SimpleMock(communicator.nccl_comm)
            answer_dtype = _communication_utility._get_nccl_type_id(answer_dtype)

            communicator.allreduce_grad(model)

            # dtype that was used in the actual communication,
            # which is nccl_comm.allReduce
            called_args = communicator.nccl_comm.allReduce.__mock_call_args[0][0]
            actual_dtype = called_args[3]
>           assert answer_dtype == actual_dtype
E           assert 7 == 6

chainermn_tests/communicator_tests/test_communicator.py:424: AssertionError

test env:
         MPI                    CUDA        NCCL        CuPy      NP
     openmpi       2.1.2         9.0      2.1.15      master     1x1

Thanks for the info. I don't see such an error in my environment (a local bare-metal cluster). I will investigate further.

OK. I will also investigate it

I will perform all unittests for chainermn.

I got the same error.
https://github.com/chainer/chainer/pull/6548#issuecomment-475486386
And, I found the cause of the failure.
This if statement return 'False' in this case.
you should check if 'self.allreduce_grad_dtype' is None.
https://github.com/chainer/chainer/blob/2eb57babde2e98c98a59fd6b676fbf78ff6323a8/chainermn/communicators/pure_nccl_communicator.py#L77
For example,
https://github.com/shu65/chainer/blob/pr6548/chainermn/communicators/pure_nccl_communicator.py#L78

Jenkins, test this please

I confirmed that the unittests for ChainerMN are passed.
I will merge this PR after passing test with travis and jenkins.

Jenkins CI test (for commit 1079b8c12e59accc9c5da6c17b9ed1ea79b09e68, target branch master) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

The Jenkins failure. But, the cause is unrelated to the PR.


Enable main form maximise

Enabling Maximise button for the main form.  When loading a large/complex script this makes it easier to quickly review the whole script by maximising the window from its normal size, rather than requireing dragging window borders to resize.

Looks good, thanks

no problem, thanks!


Telemetry API - Promote to Beta - Status Tracker

As per discussions with @zirain, below tasks still need to be completed before Beta status. Will be enhanced further based on TOC inputs.
Sub-Tasks

[ ] Enhance documentation about Telemetry Usage
[ ] Support MetricDefinition through TelemetryAPI
[ ] guidance about how to migrate custom metrics from EnvoyFilter to Telemetry API.
[ ] More e2e tests
[ ] Add docs tests
[x] https://github.com/istio/istio/issues/46653

cc @whitneygriffith

See also: Drive Istio Telemetry API to Beta proposal

[ ] Enhance documentation about Telemetry Usage

To get data and content, I believe we need to target a Usage survey driven from the Istio community (comms could come from Istio twiiter, mailing list). The insights gained from the survey could then be utilized to identify and fill gaps in our existing documentation. Open for the thoughts around this @whitneygriffith @kfaseela

@kyessenov what are the missing e2e scenarios we would like to test for? It will be great if we can create issues for these.


Terminal processes still hanging around

Does this issue occur when all extensions are disabled?: Yes
Version: 1.77.0-insider
Commit: 2a6bd78f745d3e6330c8ff7db5282dc582e117fd
Date: 2023-03-17T21:00:47.582Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Darwin x64 20.6.0
Sandboxed: Yes
ProductName:	macOS
ProductVersion:	11.7.4
BuildVersion:	20G1120
Related to #174956, #176819
Even with #176819, terminal processes still are hanging around.
Steps to Reproduce:

Open VS Code Insiders
Open a terminal
Exit VS Code Insiders (Not reloading, not closing the window)
The terminal process is still alive

When reloading the window or closing the window, the terminal process is killed. Only when exiting VS Code, the issue occurs.

Same here. This started happening for me after the update to 1.76. I downgraded to 1.75 and everything works fine there.
I usually had a few node and zsh processes hanging around after closing VS Code. This issue multiplied if you open/close VS Code a few times.
It was impossible to work with, so I had to downgrade.

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!


HDDS-5479. s3g bucket list failed when there is non-english key name.

https://issues.apache.org/jira/browse/HDDS-5479

Thanks @adoroszlai for the code review.


Remove unused local variable

This was generating a Clang static analyser warning that reachabilityOk was being written but never read. This appears to be a new warning upon updating from 3.0.0 to 3.0.2.

Thanks @richardbuckle ! This was fixed in v3.0.3


Allow passing a configuration file to the validator

Is your feature request related to a problem? Please describe.
The check command doesn't automatically validate all sub-networks in a sharded blockchain (it validates the first sub-network it sees). I'd want to be able to manually run the validator against different sub-networks.
Describe the solution you'd like
The ability to pass a configuration file to the validator's check command. For example, the validator currently supports creating a configuration file using the create:configuration command. It would be useful to edit this configuration to target a specific sub-network and pass this to the check command.
Describe alternatives you've considered
I've been able to edit the rosetta /network/list endpoint logic to return a specific sub-network during testing. But this is not ideal when testing multiple sub-networks simultaneously.

Our plan is to have 2 modes for validating multiple networks: validate all sub-networks (default) and validate a particular sub-network (using a command line arg).
I hadn't thought about rosetta-cli initialization using a config file but it makes sense! We will think about the best way to do this.


Add support for new features added from OpenAPI spec V 3.1

Description:
There are several new features added from OpenAPI spec V 3.1. These features are not supported by our current Ballerina OpenAPI tool.
Summary of these new features are listed in this doc https://docs.google.com/document/d/1Y__2YvPmzOdL9Iexu-FciMkL80liuXZw1WRnAnHBKW8/edit?usp=sharing.
Please go though these features and try to integrate them to OpenAPI client/service generation
Describe your problem(s)
Describe your solution(s)
Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

Closing this issue since this is currently tracked via https://github.com/ballerina-platform/ballerina-library/issues/6709


[LUMI-131] Working local docker compose without pants deps

What's changing
Change local docker build to use UV instead of pants
To select venv in your editor
cd lumigator/python/mzai/backend
source .venv/bin/activate

How to test it
API Tests

[x] Upload Dataset
[x] Create Deployment
[x] Create Experiment / Run Eval

Editors Tested

[x] VS Code - Intellisense worked once I selected the correct venv
[x] PyCharm (via Vicki)

TODO (Future)

[ ] Tests running locally via UV

Related Jira Ticket
https://mzai.atlassian.net/browse/LUMI-131
Additional notes for reviewers
I already...

[ ] added some tests for any new functionality;
[ ] updated the documentation.

great job!


fix(cli): Rearrange the order of chunk size argument in list command. Closes #2420

This PR ensures that the returned list of workflows has a max length of chunkSize. Previously we apply chunkSize before all the filtering such that the returned list may have fewer items than expected.
Closes #2420.
Checklist:

[ ] Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
[ ] The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
[ ] I have written unit and/or e2e tests for my change. PRs without these are unlike to be merged.
[ ] Optional. I've added My organization is added to the USERS.md.
[ ] I've signed the CLA and required builds are green.

LGTM


add empty href tag to fix macos chrome bug

fixes #1107
Weird bug in Chrome on macos where a <a> tag without a href was causing the page to reload. We should potentially not be using the a tag where it is not a link but that involves stylistic changes which can be done in a future PR.
cc: @flynnduism

CI errors are per #1116 and can be overridden


Use the tabs in the Folder Context view to switch different views of files instead of (or in addition to) tables.

Simple tables are great, but I feel like it would be more practical to be able to quickly switch from one saved view of the folder's files to another.
In my workflow, simple tables are used for brainstorming more than anything, so I have little use for them in the Folder Context view. I do, however, use filters and the different viewing modes (table, list...) a lot, so the possibility to quickly switch from one to another would be very useful.
Thanks!

You can save filters and sorts to Views which can be switched through the Files dropdown (which appears when you have more than 1 view). The UX will be improved in an upcoming update, for example there’s no way to delete or rename views.

On Jan 10, 2023, at 8:04 PM, charle36 @.***> wrote:
Simple tables are great, but I feel like it would be more practical to be able to quickly switch from one saved view of the folder's files to another.
In my workflow, simple tables are used for brainstorming more than anything, so I have little use for them in the Folder Context view. I do, however, use filters and the different viewing modes (table, list...) a lot, so the possibility to quickly switch from one to another would be very useful.
Thanks!
—
Reply to this email directly, view it on GitHub https://github.com/Make-md/makemd/issues/36, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFHKNWNKTKZSUMNVY5TAN3WRYBIFANCNFSM6AAAAAATXOCNVY.
You are receiving this because you are subscribed to this thread.

Yeah, you can switch that way, but  I think it would be more practical to switch with the tabs instead.

One consideration is to change the direction. Different tables in the drop down and the different views across. Will consolidate the feedback from the discussion in discord and then update this thread. Potentially have it as a setting if there’s good case for both.

On Jan 10, 2023, at 8:11 PM, charle36 @.***> wrote:
Yeah, you can switch that way, but I think it would be more practical to switch with the tabs instead.
—
Reply to this email directly, view it on GitHub https://github.com/Make-md/makemd/issues/36#issuecomment-1378108174, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFHKNXQLCMXVYV75WKEIZ3WRYCEXANCNFSM6AAAAAATXOCNVY.
You are receiving this because you commented.

Awesome, thanks!


Some technical questions

Hi Gianmarco,
Very nice work!  I have a few technical questions regarding the codebase:

It seems solveIntersections does not compute the topological info of the arrangement?  i.e. is it possible to extract cells from the output?
The output face label is a bitset of size 32.  Does it mean only 32 distinct labels are supported?  (I am thinking about using face ids as face labels, but the number of faces is almost certainly larger than 32.). I am also curious about the decision to use bitset instead of just uint, is it possible for an output triangle to have multiple source input triangles?
I noticed that the number of genericPoints is more than the number of output vertices after solveIntersections, and there is a -5 and a multiplier in the exact-to-float conversion.  Can you explain a bit on what they are for?
I also noticed some degenerated triangles in the output (checked exactly with CGAL).  Is it expected?

Thanks a lot!
Qingnan Zhou

Hi Qingnan,
Thanks for your interest in our work. I'll answer you point by point:

the solve_intersection function is present in 4 different forms. In the out_tris parameter you have all the topological info about the output.
At the moment we have a limit of 32 distinct labels, but we are just releasing a version in which this number is templated. It is intended to represent the input mesh of each triangle, i.e., for boolean operations. In that case you can have a triangle belonging to multiple mesh (i.e. coplanar triangles).
You have 5 extra points in the genericPoints vector. 4 of them are to solve the problem discussed in section 5.4 and figure 9 of our paper, and 1 is to store a multiplier we compute and use to avoid underflow/overflow during the pipeline.
Yes, it is expected. This is a problem in common with the other arrangements works. It is known as snap rounding, and we discuss it in our paper, section 5.6. Basically, when you switch from the exact representation to an approximate one (double coorinates) you may map two different vertices in the same approximate coordinates, causing degenerate triangles.

Hi Qingnan,
Thanks for your interest in our work. I'll answer you point by point:

the solve_intersection function is present in 4 different forms. In the out_tris parameter you have all the topological info about the output.
At the moment we have a limit of 32 distinct labels, but we are just releasing a version in which this number is templated. It is intended to represent the input mesh of each triangle, i.e., for boolean operations. In that case you can have a triangle belonging to multiple mesh (i.e. coplanar triangles).
You have 5 extra points in the genericPoints vector. 4 of them are to solve the problem discussed in section 5.4 and figure 9 of our paper, and 1 is to store a multiplier we compute and use to avoid underflow/overflow during the pipeline.
Yes, it is expected. This is a problem in common with the other arrangements works. It is known as snap rounding, and we discuss it in our paper, section 5.6. Basically, when you switch from the exact representation to an approximate one (double coorinates) you may map two different vertices in the same approximate coordinates, causing degenerate triangles.

Thanks Gianmarco!  Your answers make a lot of sense.  For 1, I am looking for ways to extract cells from theout_tris, do you have recommendation on how to do that?  For 4, the degenerate triangle I see is before snap rounding (i.e. I converted every genericPoint to a CGAL exact point and check for its degeneracy), but let me double check my code to ensure there is no bug in the conversion.

Thanks Gianmarco!  Your answers make a lot of sense.  For 1, I am looking for ways to extract cells from theout_tris, do you have recommendation on how to do that?  For 4, the degenerate triangle I see is before snap rounding (i.e. I converted every genericPoint to a CGAL exact point and check for its degeneracy), but let me double check my code to ensure there is no bug in the conversion.

explain to me exactly what you would like to extract from out_tris
explain to me how you are converting genericPoints (most of them are represented implicitly as a combination of the original triangles) into CGAL exact points, so that I can check if that is a suitable pipeline.

explain to me exactly what you would like to extract from out_tris
explain to me how you are converting genericPoints (most of them are represented implicitly as a combination of the original triangles) into CGAL exact points, so that I can check if that is a suitable pipeline.

Here is a 2D illustration of what I meant by extracting cells from the output:

On the left side, we have 2 input squares.  After solveIntersections, we obtain a geometry with all intersections resolved (indicated by the new blue vertices in the mid figure).  In this simple case, the mesh arrangement of the input consists of 3 cells (as indicated by different color on the right figure).  My goal is to extract the faces associated with each cell.  Hope this is clear.
For 2, I converted genericPoints into CGAL points by computing the exact intersection between a line and a plane (if the point type is LPI) or the exact intersection between 3 planes (if the point type is TPI).  After some debug, I realize I did not set a compiler flag properly, fixing that seems to help.  I will let you know if I run into degeneracy issues again.

Here is a 2D illustration of what I meant by extracting cells from the output:

On the left side, we have 2 input squares.  After solveIntersections, we obtain a geometry with all intersections resolved (indicated by the new blue vertices in the mid figure).  In this simple case, the mesh arrangement of the input consists of 3 cells (as indicated by different color on the right figure).  My goal is to extract the faces associated with each cell.  Hope this is clear.
For 2, I converted genericPoints into CGAL points by computing the exact intersection between a line and a plane (if the point type is LPI) or the exact intersection between 3 planes (if the point type is TPI).  After some debug, I realize I did not set a compiler flag properly, fixing that seems to help.  I will let you know if I run into degeneracy issues again.

Ok, super clear. The actual algorithm does not provide this feature yet, but we are working on a new project that will include this feature. For now, we discuss a possible strategy to do that in our paper, on sec 5.5.
Good for point 2! Please, let me know if you find other dubious configurations.
Bests,
Gianmarco.

Ok, super clear. The actual algorithm does not provide this feature yet, but we are working on a new project that will include this feature. For now, we discuss a possible strategy to do that in our paper, on sec 5.5.
Good for point 2! Please, let me know if you find other dubious configurations.
Bests,
Gianmarco.

Thanks a lot for the clarification!  Closing this issue for now.

Thanks a lot for the clarification!  Closing this issue for now.


🐛 Fix "active" state of apps on apps index screen

no issue
On the apps index screen there were conditionals for each app so that active apps show "Active" instead of "Configure" when they are activated - the conditionals weren't working because the properties they check for weren't available in the template's context.

add a new settings/apps/index controller that imports the settings service
updates template conditionals to check for properties on the settings service

Coverage remained the same at 72.672% when pulling 3a0156e9dde5854bc9ac113becb91e2177d61b90 on kevinansfield:fix-apps-index-active-state into ec354c472d779c4806cb0555d7794e99b5ddc290 on TryGhost:master.


import { registerPlugin } from '@capacitor/core'; SyntaxError: Cannot use import statement outside a module

Describe the bug
SyntaxError: Cannot use import statement outside a module when testing web platform.

`import { registerPlugin } from '@capacitor/core';
^^^^^^

SyntaxError: Cannot use import statement outside a module

Error is pointing to - .../client/node_modules/@capacitor-community/camera-preview/dist/esm/index.js:1

import { registerPlugin } from '@capacitor/core'; //<-- ?
const CameraPreview = registerPlugin('CameraPreview', {
    web: () => import('./web').then((m) => new m.CameraPreviewWeb()),
});
export * from './definitions';
export { CameraPreview };
//# sourceMappingURL=index.js.map

Steps to reproduce
After navigating to my Next "Camera" page:
...

import { CameraPreview, CameraPreviewOptions, CameraPreviewPictureOptions } from '@capacitor-community/camera-preview';
import '@capacitor-community/camera-preview';

const Camera: NextPage = (): JSX.Element => {
    //State
    const [itemImage, setItemImage] = useState("");

    useEffect(() => {
        const cameraPreviewOptions: CameraPreviewOptions = {
            position: 'rear',
            toBack: true,
            enableZoom: true
        };
        CameraPreview.start(cameraPreviewOptions);
    }, []);

    const handleCameraCapture = async () => {
        const cameraPreviewPictureOptions: CameraPreviewPictureOptions = {
            quality: 50,
        };
       const result = await CameraPreview.capture(cameraPreviewPictureOptions);
       setItemImage(result.value);
    }

    return (
           --> handleCameraCapture button onClick

    );
}

export default Camera;

MainActitiy.java

Expected behavior
Error to not be thrown and work as expected..
Desktop (please complete the following information):

OS: Mac
Browser Chrome
Node 18.9.0
NextJS 13 with some Ionic/react components
"@capacitor/core": "^4.6.1",
"@capacitor-community/camera-preview": "^4.0.0",
"@capacitor/android": "^4.6.1",
"@capacitor/ios": "^4.6.1",

Additional context
I attempted to update the package.json to add type: "module" but this screwed things up and threw errors with files like my next.config.js which uses commonjs (Require statements)
Also side note in my project I attempted to use "@capacitor/camera": "^4.1.4" but that didn't seem to fit my needs as needed more fine grain control over preview, start/stop/capture, button controls overlayed etc hence I am trying this plugin.
Any help would be appreciated! thanks

I think i fixed this issue by adding the camera preview to transpile modules array in next.config.js
const withTM = require('next-transpile-modules')(['@codetrix-studio/capacitor-google-auth', '@capgo/camera-preview', '@ionic/react', '@ionic/core', '@stencil/core', 'ionicons']);


Setup local HoH with operator

Signed-off-by: myan<EMAIL_ADDRESS>Reference: https://github.com/stolostron/backlog/issues/24610

/cc @clyang82 @morvencao

/lgtm


Things that left after running script

Hi,
thanks for the very great work!
I use your script since a few months and today I've tested the latest release on the very fresh Windows 10 Pro installation (the newest version - 1709/16299.15).
Running your script was the absolutely the first thing I did after Windows was installed. I would like to share what left on the desktop/taskbar etc., which I thought your script will remove.
Things/functions not changed

Edge icon is pinned to the taskbar,
Windows Store icon is pinned to the taskbar (I don't want to remove the store, just remove unpin the icon from the taskbar),
Lock screen is still active (have to press any key to see the PIN/password input) - I used DisableLockScreenRS1 option and left DisableLockScreen commented,
Xbox Live app is installed and Windows let us to uninstall it from Control Panel, so hopefully you can include it easily in the script.

Hi,

For pinning/unpinnig, see issue #8 . MS makes it very hard to get rid of tiles and pins, so it's unlikely such functionality will be in the script any time soon.
DisableLockScreenRS1 works only after lock or logout. After the computer starts, the lock screen is always there. Again a thing which MS enforces for Home and Pro. On Ent DisableLockScreen works without workarounds.
Xbox Live app - OK, will check. Likely the app string has changed.

Thank you.
Just want to make sure about lockscreen: From 1703 we should only use DisableLockScreenRS1 option and leave DisableLockScreen  commented?

Just want to make sure about lockscreen: From 1703 we should only use DisableLockScreenRS1 option and leave DisableLockScreen commented?

This depends on the support of the NoLockScreen GPO.
On Enterprise, you can still use DisableLockScreen as the appropriate GPO setting is still supported there even in current builds.
On Home and Pro, the GPO setting is not supported since 1703, so you have to use the DisableLockScreenRS1 which tries to work around the restriction imposed by Microsoft. As I said above, DisableLockScreenRS1 is supposed to work for the screens you see after user locks / logs out, but doesn't work for the screen which you see right after startup.


validation mAP does not match benchmark

Thanks for sharing training and evaluation scripts. They are quite clear, useful and easy to follow.
I successfully follow the instructions in the readme, train scannetv2 for 384 epochs and run the evaluation script. However, there seems to be a gap (~5%-10%) about the mAP compared to the version shown in the scannet benchmark.
Is it normal, e.g., due to the difference between the validation and testing set? If not, any suggestions to further improve the performance to bridge the gap?
Thanks again!

Here is my detailed evaluation statistics:
[2021-01-14 17:19:54,967  INFO  eval.py  line 275  750]  ################################################################
[2021-01-14 17:19:54,967  INFO  eval.py  line 281  750]  what           :             AP         AP_50%         AP_25%
[2021-01-14 17:19:54,967  INFO  eval.py  line 282  750]  ################################################################
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  cabinet        :          0.250          0.489          0.686
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  bed            :          0.414          0.681          0.786
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  chair          :          0.684          0.839          0.895
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  sofa           :          0.381          0.609          0.824
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  table          :          0.415          0.629          0.731
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  door           :          0.206          0.412          0.541
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  window         :          0.297          0.511          0.637
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  bookshelf      :          0.211          0.467          0.638
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  picture        :          0.249          0.429          0.553
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  counter        :          0.045          0.171          0.451
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  desk           :          0.144          0.413          0.767
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  curtain        :          0.208          0.392          0.581
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  refrigerator   :          0.243          0.363          0.378
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  shower curtain :          0.316          0.493          0.765
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  toilet         :          0.802          0.981          0.997
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  sink           :          0.305          0.614          0.817
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  bathtub        :          0.534          0.822          0.858
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  otherfurniture :          0.318          0.483          0.617
[2021-01-14 17:19:54,968  INFO  eval.py  line 298  750]  ----------------------------------------------------------------

Here is my detailed evaluation statistics:
[2021-01-14 17:19:54,967  INFO  eval.py  line 275  750]  ################################################################
[2021-01-14 17:19:54,967  INFO  eval.py  line 281  750]  what           :             AP         AP_50%         AP_25%
[2021-01-14 17:19:54,967  INFO  eval.py  line 282  750]  ################################################################
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  cabinet        :          0.250          0.489          0.686
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  bed            :          0.414          0.681          0.786
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  chair          :          0.684          0.839          0.895
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  sofa           :          0.381          0.609          0.824
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  table          :          0.415          0.629          0.731
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  door           :          0.206          0.412          0.541
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  window         :          0.297          0.511          0.637
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  bookshelf      :          0.211          0.467          0.638
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  picture        :          0.249          0.429          0.553
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  counter        :          0.045          0.171          0.451
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  desk           :          0.144          0.413          0.767
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  curtain        :          0.208          0.392          0.581
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  refrigerator   :          0.243          0.363          0.378
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  shower curtain :          0.316          0.493          0.765
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  toilet         :          0.802          0.981          0.997
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  sink           :          0.305          0.614          0.817
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  bathtub        :          0.534          0.822          0.858
[2021-01-14 17:19:54,967  INFO  eval.py  line 292  750]  otherfurniture :          0.318          0.483          0.617
[2021-01-14 17:19:54,968  INFO  eval.py  line 298  750]  ----------------------------------------------------------------

I have the same problem. What do you suggest? Thanks！


Updated image versions on Sagemaker

Just wondering when we can expect the latest version to be pushed to the Sagemaker ECR repo? More generally, what is the expected lag between GHCR and ECR when a version is released? Some of the new features, like GPTQ support, unlock some possibilities (and cost-savings) and would be great to see those flow through to the official SM repo.
Thanks!

Duplicate of #625, closing


Optional middleware

Is your feature request related to a problem? Please describe.
I would really like to have optional middleware! I've come up against a corner case where I have a resolver that shares/composes the functionality of another resolver. With dependency injection, accessing those common methods is simple, but applying middleware is not 😞. Optional middleware that is applied based on the query context solves my problem. For instance, I can apply x middleware only when the return type is y.
Describe the solution you'd like
Here's what I'm currently doing to achieve this... I think it would be great to add at a framework level:
function isConstructor(o: any) {
  try {
    Reflect.construct(String, [], o);
  } catch (err) {
    return false;
  }
  return true;
}

/**
 * Selectively use middlewares based on a condition.
 */
function OptionalMiddleware<TContext = {}>(
  condition: ((action: ResolverData<TContext>) => boolean) | boolean,
  ...middleware: Middleware[]
) {
  const middlewareProxies = middleware.map(m => {
    const isConstructable = isConstructor(m);
    const middlewareInst = isConstructable ? new (m as any)() : m;
    const isClassMiddleware = !!Object.getPrototypeOf(middlewareInst).use;
    const middlewareHandler = isClassMiddleware
      ? Object.getPrototypeOf(middlewareInst).use.bind(middlewareInst)
      : middlewareInst;

    const resolveCondition = (_: ResolverData<TContext>) =>
      typeof condition === 'function' ? (condition as any)(_) : condition;

    return new Proxy(middlewareHandler, {
      apply: (target, thisArg, argArray) => {
        return resolveCondition(argArray[0])
          ? Reflect.apply(target, thisArg, argArray)
          : Reflect.apply((_: ResolverData<TContext>, next: NextFn) => next(), thisArg, argArray);
      },
    });
  });

  return UseMiddleware(...middlewareProxies);
}

Optional middleware that is applied based on the query context solves my problem

Why not just wrap other middleware with custom middleware that checks the context and do:
if (ctx.foo === "bar) return next()
return middleware(resolverData);

I don't understand what is your use case, what are you trying to achieve and how the API should look like for you 😉

Yeah, I've "over-engineered" a bit. Writing a wrapper middleware is easier ;)
I'll close for now, but if something else comes up I'll re-open.


Dashboard not showing any domains

Hello, my powerdns-admin instance became unusable after I changed the external proxy calling the site.
I can reach & authenticate correctly powerdns-admin, but the dashboard is not showing any domains.
Powerdns itself works correctly and the api too.
Data in powerdns mysql db is populated.
It seems that something prevents to get the domain query from powerdnsadmin database (populated too).
Please help, 'cause I'm stuck here.
Henry

Do you see any log from PDA? Also, try to catch the js error from your browser when visiting the domain page. In chrome, right click on the page -> Inspect -> Console.

Thanks for your reply.
I already checked the logfile.log and it didn't show any error :
2020-04-06 08:52:38,408 - root - INFO - User "admin" logged in successfully. Authentication request from <IP_ADDRESS> 2020-04-06 08:52:38,525 - app.views - DEBUG - Update domains in foreground 2020-04-06 08:52:38,530 - root - INFO - 14 Entrys in pdnsADMIN 2020-04-06 08:52:38,532 - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): <IP_ADDRESS>:8081 2020-04-06 08:52:38,574 - urllib3.connectionpool - DEBUG - http://<IP_ADDRESS>:8081 "GET /api/v1/servers/localhost/zones HTTP/1.1" 200 3354 2020-04-06 08:52:38,575 - root - INFO - 14 Entrys in PDNSApi 2020-04-06 08:52:38,576 - root - INFO - Update finished 2020-04-06 08:52:38,587 - urllib3.connectionpool - DEBUG - Starting new HTTP connection (1): <IP_ADDRESS>:8081 2020-04-06 08:52:38,591 - urllib3.connectionpool - DEBUG - http://<IP_ADDRESS>:8081 "GET /api/v1/servers/localhost/statistics HTTP/1.1" 200 3796
The javascript console instead showed errors related to pagespeed :
Loading failed for the <script> with source “http://dns.gruppo4.it/_.pagespeed.jo.oGOFbNCkw9.js”. dashboard:31:1 Loading failed for the <script> with source “http://dns.gruppo4.it/_.pagespeed.jo.1onXg_v8V7.js”. dashboard:1:1 PSA ERROR: Exception while evaluating.pagespeed.CriticalImages is undefined
So I added 'pagespeed off' in my nginx proxy config and now it's working !!
I just did a general check adding/deleting domains/record and everything seems OK.
Thanks a lot. :)

I'm just curios about this...how can a javascript error prevent a backend query to get the data ?
Maybe during the rendering of template an exception occurred and exited before the query ?

I don't think it prevents the backend query. It was the issue with rendering due to the JS error I think. The domain table relies on JS a lot.

I do have the same issue. I am not using docker.
Pressing F12 shows me a ERR_CONNECTION_RESET request:
http://<IP_ADDRESS>/dashboard/domains-custom/forward?draw=1&columns[0][data]=0&columns[0][name]=&columns[0][searchable]=true&columns[0][orderable]=true&columns[0][search][value]=&columns[0][search][regex]=false&columns[1][data]=1&columns[1][name]=&columns[1][searchable]=true&columns[1][orderable]=true&columns[1][search][value]=&columns[1][search][regex]=false&columns[2][data]=2&columns[2][name]=&columns[2][searchable]=true&columns[2][orderable]=true&columns[2][search][value]=&columns[2][search][regex]=false&columns[3][data]=3&columns[3][name]=&columns[3][searchable]=true&columns... (even longer)
Any help would be appreciated.


Flagging one unhandled err but not another

gas is flagging this
defer func() {
	_ = file.Close()
}()

Errors unhandled. (Confidence: HIGH, Severity: LOW)
  > _ = file.Close()

but not this
defer func() {
	_ = req.Body.Close()
}()

Would you be able to provide a more complete example? I tried to reproduce with the following and didn't have any luck.
package main

import (
	"fmt"
	"io/ioutil"
	"net/http"
	"os"
)

func main() {

	resp, err := http.Get("http://example.com/")
	if err != nil {
		os.Exit(1)
	}

	defer func() {
		_ = resp.Body.Close()
	}()

	if body, err := ioutil.ReadAll(resp.Body); err == nil {
		fmt.Printf("%s", body)
	}

}

github.com/GoAstScanner/gas  master ✔                                                                                21h56m
▶ ./gas ~/samples/errors_sample4.go
[gas] 2017/01/12 08:22:00 scanning "/Users/gm/samples/errors_sample4.go"
Results:

[/Users/gm/samples/errors_sample4.go:18] - Errors unhandled.  (Confidence: HIGH, Severity: LOW)
  > _ = req.Body.Close()

Summary:
   Files: 1
   Lines: 21
   Nosec: 0
  Issues: 1

Gas shouldn't quietly swallow that error so I'll try to get better error reporting in there.

I believe this rule is behaving correctly here. I've added better reporting around failed compilation:

[gas] 2017/01/13 14:00:05 Processing "/Users/gm/samples/controllers/issue111.go"...
[gas] 2017/01/13 14:00:05 Failed to process: "/Users/gm/samples/controllers/issue111.go"
[gas] 2017/01/13 14:00:05 Error during type checking: "/Users/gm/samples/controllers/issue111.go:11:3: foo declared but not used"
[gas] 2017/01/13 14:00:05 Halting execution.

Closing this for now. Please let me know if you find a case where this is not working as expected.


signalr/streaming #6806

https://github.com/aspnet/Docs/issues/6806
Int Review link

Most of the urls linking in code seem broken?

Some of them won't work until the doc is published to the site


Nestjs + MongoDB

Is this being followed?
I'm interested of opening a PR for this, maybe using NestJS + TypeORM to be more DB driver agnostic

Hello we are currently moving all work in progress to Github Discussions.
I'll close this issue by now, you can find instruction to open a discussion there : https://github.com/gothinkster/realworld/discussions/633
Thanks for your contribution !


Various code style issues found by static code analysis

A static code analysis of the scipy code found amongst others the following errors. If you consider them unimportant, just close the bug report. If there are however some good hints on possible bugs, I am happy to help out with pull requests. So, just let me know.

[ ] Using wait can deadlock if the child process prints larger output. Use communicate().
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/tools/suppress_output.py#L71
[ ] Using strcpy can lead to severe buffer overflow vulnerabilities. Use the safe alternative strncpy instead
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/optimize/_highs/src/interfaces/highs_c_api.cpp#L156
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/spatial/qhull_src/src/rboxlib_r.c#L379
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/spatial/qhull_src/src/random_r.c#L53
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/optimize/_highs/src/util/stringutil.cpp#L24
[ ] Using sprintf can lead to severe buffer overflow vulnerabilities. Use the safe alternative snprintf instead.
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/spatial/qhull_src/src/rboxlib_r.c#L375
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/spatial/qhull_src/src/global_r.c#L2234
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/spatial/qhull_src/src/global_r.c#L2236
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/spatial/qhull_src/src/global_r.c#L2238
[ ] Using strcat can lead to severe buffer overflow vulnerabilities. Use the safe alternative strncat instead.
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/spatial/qhull_src/src/random_r.c#L85
[ ] There is no need to call list on an object that is already constructed as a list.
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/optimize/_remove_redundancy.py#L157
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/optimize/_remove_redundancy.py#L285
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/tools/refguide_check.py#L857
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/doc/source/scipyoptdoc.py#L116
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/optimize/_minimize.py#L833
[x] Use comprehensions
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/_precompute/utils.py#L37
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/_precompute/gammainc_asy.py#L103
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/_generate_pyx.py#L517
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/_generate_pyx.py#L519
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/_generate_pyx.py#L813
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/_generate_pyx.py#L818
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/_generate_pyx.py#L923
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/_generate_pyx.py#L942
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/_generate_pyx.py#L971
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/_generate_pyx.py#L998
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/_generate_pyx.py#L999
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/_generate_pyx.py#L1097
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/_generate_pyx.py#L1156
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/interpolate/_fitpack_impl.py#L584
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/interpolate/_fitpack_impl.py#L658
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/interpolate/_fitpack_impl.py#L716
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/interpolate/_fitpack_impl.py#L777
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/interpolate/_fitpack_impl.py#L782
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/_testutils.py#L299
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/_testutils.py#L300
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/_testutils.py#L301
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/tests/test_precompute_gammainc.py#L80
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/tests/test_cython_special.py#L285
[x] The expression will always evaluate to true because both sides always hold the same value.
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/linalg/_decomp_qz.py#L377
[x] Passing a dict (from call to dict) to fun  as *args will only pass the keys. Did you perhaps mean to pass it as kwargs?
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/optimize/_root.py#L288
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/optimize/_root.py#L291
Update:  This is a false positive; args is not generally a dictionary.
[x] Missing close for open, add close or use a with block.
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/utils/convert.py#L60
[ ] Equals comparison of floating point numbers. Floating point numbers are only considered equal if their bit representation is equal. Consider using an epsilon comparison instead.
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/cephes/ellik.c#L83
[ ] This self assignment has no impact, consider removing it.
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/optimize/_highs/src/presolve/Presolve.cpp#L51
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/optimize/optimize.py#L246
[ ] Uses of a deprecated module 'optparse'
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/doc/postprocess.py#L10
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/tools/authors.py#L14
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/special/_generate_pyx.py#L228
https://github.com/scipy/scipy/blob/e38446ee3d8d41be9a5e141427a2edf485ecef51/scipy/sparse/generate_sparsetools.py#L21

Hi @jakobjakobson13, the source files in the _highs directory are vendored from https://github.com/ERGO-Code/HiGHS/.  The devs there are pretty responsive and we'll be trying to pull in updates from them from time to time.  I would try moving these issues over there to see if they can be fixed.  Right now we wish to not modify that code as much as possible to make syncing as easy as possible.

Hi @jakobjakobson13, the source files in the _highs directory are vendored from https://github.com/ERGO-Code/HiGHS/.  The devs there are pretty responsive and we'll be trying to pull in updates from them from time to time.  I would try moving these issues over there to see if they can be fixed.  Right now we wish to not modify that code as much as possible to make syncing as easy as possible.

Thanks @jakobjakobson13. Pretty much all of these are indeed improvements. gh-13703 does the list comprehensions and the resource leak. The rest would be nice to address as well (except for the HiGHS ones as @mckib2 says). The optparse ones are low-prio, because that just works and I don't think optparse is going anywhere - it'd still be a useful code cleanup though.

liwork one is not correct but probably needs brackets around conditions for better readability

Small update: there have been several changes in  linalg/_decomp_qz.py since this issue was created, and the problem with the expression involving liwork no longer exists.

One more update: the item above with the description "Passing a dict (from call to dict) to fun as *args will only pass the keys. Did you perhaps mean to pass it as kwargs?" about the use of *args in optimize/_root.py appears to be a false positive.  args is expected to be a tuple, not a dictionary.


Fixed setup cmd on toolbox

1)changed mounting path to support toolbox
2)fixed label, exposed port of gateway in upgrade
3)even added restarting containers of sc, which was to be added later
4)created functions for mount path
5)tested setup on both toolbox and docker

@sharadregoti and @khannaabhi  link the issues associated with this PR

fixes #1076 #1074


Tried joining a server or a world, it says joining world and then saving world and then it crashes

Use the 1.17 pre release if you want to play 1.17