[Question]: When receiving UDP broadcast packets, the same packet may be received multiple times

Update 2023-02-27 14:07：
I found that this issue is related to the gnet.WithMulticore(multicore) option .https://github.com/panjf2000/gnet/issues/442#issuecomment-1445759063
Questions with details
Short description of the issue:
When sending broadcast packets to a specific port and listening on that port, the gnet server receives multiple duplicate packets, while Wireshark capture, the net package, and Python program only receive one packet.
当发送 UDP 广播包时，gnet server 会重复的收到同一个包，net 、python 不会出现此问题，wireshark 也只会捕获一个包。
Some potentially useful information:

macOS 13.2.1 arm64
go1.20.1
gnet v 2.2.5

Log
gnet：
=== RUN   TestInitUDPServer
{"time":"2023-02-26T21:07:41.722233+08:00","level":"INFO","msg":"init udp server","port":9001,"multicore":true}
{"time":"2023-02-26T21:07:41.72259+08:00","level":"INFO","msg":"UDP server engine is ready for accepting connections","addr":"udp://:9001","multicore":true}
{"time":"2023-02-26T21:07:54.285532+08:00","level":"DEBUG","msg":"udp server:","received":"Hello world"}
{"time":"2023-02-26T21:07:54.285574+08:00","level":"DEBUG","msg":"udp server:","received":"Hello world"}
{"time":"2023-02-26T21:07:54.28558+08:00","level":"DEBUG","msg":"udp server:","received":"Hello world"}
{"time":"2023-02-26T21:07:54.285584+08:00","level":"DEBUG","msg":"udp server:","received":"Hello world"}
{"time":"2023-02-26T21:07:54.285589+08:00","level":"DEBUG","msg":"udp server:","received":"Hello world"}
{"time":"2023-02-26T21:07:54.285595+08:00","level":"DEBUG","msg":"udp server:","received":"Hello world"}
{"time":"2023-02-26T21:07:54.285629+08:00","level":"DEBUG","msg":"udp server:","received":"Hello world"}
{"time":"2023-02-26T21:07:54.285653+08:00","level":"DEBUG","msg":"udp server:","received":"Hello world"}

wireshark

net
❯ go run "/Users/czy0538/Temp/testgo/main.go"
<IP_ADDRESS>:55502 sent this: Hello world

Code snippets (optional)
gnet server

func (es *Server) OnTraffic(c gnet.Conn) gnet.Action {
	buf, _ := c.Next(-1)
	newBuf := make([]byte, len(buf))
	copy(newBuf, buf)

	go func(c gnet.Conn, newBuf []byte) {
		ms := message.Message{
			ID:   "<IP_ADDRESS>",
			Data: newBuf,
		}
		es.ch <- ms
		slog.Debug("udp server:", "received", string(newBuf))
	}(c, newBuf)
	return gnet.None
}

func initUdpServer(port int, multicore bool, ch message.MessageChan, ifaceName string) error {
	slog.Info("init udp server", "port", port, "multicore", multicore)
	udpServer := &Server{
		addr:      fmt.Sprintf("udp://:%d", port),
		multicore: multicore,
		ch:        ch,
	}
	iface, _ := net.InterfaceByName(ifaceName)
	err := gnet.Run(udpServer, udpServer.addr, gnet.WithMulticore(multicore), gnet.WithMulticastInterfaceIndex(iface.Index))
	if err != nil {
		slog.Error("init UDP server error", err)
		return err
	}
	return nil
}
func InitUdpServer(ch message.MessageChan) error {
	return initUdpServer(9001, true, ch, "en0")
}

Code for sending UDP broadcast packets

func SendUDPBroadcast( port int, data []byte) error {
	msg := make([]byte, len(data))
	copy(msg, data)
	broadcastAddr := &net.UDPAddr{
		IP:   net.IPv4bcast,
		Port: port,
	}
	conn, err := net.DialUDP("udp4", nil, broadcastAddr)
	if err != nil {
		slog.Error("creat UDP client error", err)
		return err
	}
	defer conn.Close()
	_, err = conn.Write(msg)
	if err != nil {
		slog.Error("send UDP broadcast message error", err)
		return err
	}
	slog.Debug("send UDP broadcast message success", "local addr", conn.LocalAddr().String(), "remote addr", conn.RemoteAddr().String())
	return nil
}

net code
func main() {
	pc, err := net.ListenPacket("udp4", ":9001")
	if err != nil {
		panic(err)
	}
	defer pc.Close()

	buf := make([]byte, 1024)
	for {
		n, addr, err := pc.ReadFrom(buf)
		if err != nil {
			panic(err)
		}

		fmt.Printf("%s sent this: %s\n", addr, buf[:n])
	}

}

Thanks for your hard and brilliant work. As a beginner in Go, I have learned a lot from your articles and code.

Would this issue reproduce on Linux?
@czy0538

@panjf2000
My personal Linux server doesn't have this issue, but it only has one core, which may affect the test.

I found that this issue is related to the gnet.WithMulticore(multicore) option. When this option is set to true, this issue occurs, and the number of duplicated messages is equal to the number of CPU cores I have, but it is not affected by GOMAXPROCS.
I tested it using the simplest echo program, and here are the test results：
❯ GOMAXPROCS=1 go run ./echo.go --multicore=false
1
Hello world
^Csignal: interrupt
❯ GOMAXPROCS=1 go run ./echo.go --multicore=true
1
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
^Csignal: interrupt
❯ go run ./echo.go --multicore=true
8
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
^Csignal: interrupt

Here are my test code:
package main

import (
	"flag"
	"fmt"
	"log"
	"runtime"

	"github.com/panjf2000/gnet/v2"
)

type echoServer struct {
	gnet.BuiltinEventEngine
}

func (es *echoServer) OnTraffic(c gnet.Conn) gnet.Action {
	data, _ := c.Next(-1)
	newData := make([]byte, len(data))
	copy(newData, data)
	go func(data []byte) {
		fmt.Println(string(data))
	}(newData)
	// c.Write(data)
	return gnet.None
}

func main() {
	fmt.Println(runtime.GOMAXPROCS(runtime.NumCPU() - 1))

	var port int
	var multicore, reuseport bool

	// Example command: go run echo.go --port 9000 --multicore=true --reuseport=true
	flag.IntVar(&port, "port", 9000, "--port 9000")
	flag.BoolVar(&multicore, "multicore", false, "--multicore true")
	flag.BoolVar(&reuseport, "reuseport", false, "--reuseport true")
	flag.Parse()
	echo := new(echoServer)
	log.Fatal(gnet.Run(echo, fmt.Sprintf("udp://:%d", port), gnet.WithMulticore(multicore), gnet.WithReusePort(reuseport)))
}

Please also share the code of client, I'm trying to reproduce this issue on my multi-cores linux server, thanks!
@czy0538

I found that this issue is related to the gnet.WithMulticore(multicore) option. When this option is set to true, this issue occurs, and the number of duplicated messages is equal to the number of CPU cores I have, but it is not affected by GOMAXPROCS.
I tested it using the simplest echo program, and here are the test results：
❯ GOMAXPROCS=1 go run ./echo.go --multicore=false
1
Hello world
^Csignal: interrupt
❯ GOMAXPROCS=1 go run ./echo.go --multicore=true
1
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
^Csignal: interrupt
❯ go run ./echo.go --multicore=true
8
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
Hello world
^Csignal: interrupt

Here are my test code:
package main

import (
	"flag"
	"fmt"
	"log"
	"runtime"

	"github.com/panjf2000/gnet/v2"
)

type echoServer struct {
	gnet.BuiltinEventEngine
}

func (es *echoServer) OnTraffic(c gnet.Conn) gnet.Action {
	data, _ := c.Next(-1)
	newData := make([]byte, len(data))
	copy(newData, data)
	go func(data []byte) {
		fmt.Println(string(data))
	}(newData)
	// c.Write(data)
	return gnet.None
}

func main() {
	fmt.Println(runtime.GOMAXPROCS(runtime.NumCPU() - 1))

	var port int
	var multicore, reuseport bool

	// Example command: go run echo.go --port 9000 --multicore=true --reuseport=true
	flag.IntVar(&port, "port", 9000, "--port 9000")
	flag.BoolVar(&multicore, "multicore", false, "--multicore true")
	flag.BoolVar(&reuseport, "reuseport", false, "--reuseport true")
	flag.Parse()
	echo := new(echoServer)
	log.Fatal(gnet.Run(echo, fmt.Sprintf("udp://:%d", port), gnet.WithMulticore(multicore), gnet.WithReusePort(reuseport)))
}

Please also share the code of client, I'm trying to reproduce this issue on my multi-cores linux server, thanks! @czy0538

I tried both a Python script and a simple Go program, and here is the code.
import socket

# Set up the UDP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.bind(('', 9001))

# Enable broadcasting on the socket
sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)

# Receive the message
while True:
    data, addr = sock.recvfrom(1024)
    print(f"Received {len(data)} bytes from {addr}: {data.decode()}")

I think this issue is not caused by thunder herd but by SO_BROADCAST, gnet starts multiple listeners with reuseport flag when multicore=true or the protocol is UDP and UDP broadcast will send the frame to all listeners, which results in multiple received messages. The reason why the std net didn't encounter this issue is because you only start one listener for it, you'll observe the same phenomenon in this issue if you start more than one UDP listener with reuseport flag.

I think this issue is not caused by thunder herd but by SO_BROADCAST, gnet starts multiple listeners with reuseport flag when multicore=true or the protocol is UDP and UDP broadcast will send the frame to all listeners, which results in multiple received messages. The reason why the std net didn't encounter this issue is because you only start one listener for it, you'll observe the same phenomenon in this issue if you start more than one UDP listener with reuseport flag.

Ah, I see! Thanks for your answer. It seems that I need to set multicore = false when facing broadcasting, or add some filtering at the application layer. Thanks again for your explanation.


Ancillary Marten stores don't necessarily use the correct message database in inbox/outbox operations

The envelopes are going to the correct database schema, but the DurableReceiver and durable sending agents aren't using the correct databases.
Only really an issue for local queues where messages are sent as part of a message using the ancillary store

Use this test in the code to bring out the problem:
    [Fact]
    public async Task try_to_use_the_session_transactional_middleware_end_to_end_through_a_queue()
    {
        var message = new SpawnPlayerMessage(Guid.NewGuid().ToString());
        var tracked = await theHost.InvokeMessageAndWaitAsync(message, timeoutInMilliseconds:60000);
        var envelopeId = tracked.Executed.SingleEnvelope<PlayerMessage>().Id;

        var store = theHost.DocumentStore<IPlayerStore>();
        using var session = store.QuerySession();
        var player = await session.LoadAsync<Player>(message.Id);

        player.ShouldNotBeNull();

        var runtime = theHost.GetRuntime();
        var messageStore = runtime.AncillaryStores.OfType<IAncillaryMessageStore<IPlayerStore>>().Single();
        var envelope = (await messageStore.Admin.AllIncomingAsync()).Single(x => x.Id == envelopeId);
        envelope.Status.ShouldBe(EnvelopeStatus.Handled);
        envelope.OwnerId.ShouldBe(TransportConstants.AnyNode);
    }

Basic issue is that the ancillary store is being more or less ignored and still using the main postgres message store. No big deal if you're all on the same database, but still.


all out of issue tokens

we're all out of issue tokens and maybe claude will figure out this is a joke and make an emoji for it.

just joking.


ENH: Skipping TubeTK_TEST_ENVIRONMENT test

TubeTK_TEST_ENVIRONMENT verifies that the current environment settings matches
the current project setting. ITK_BUILD_DIR and TubeTK_BUILD_DIR must be set
as environment variables and match the current project settings. On
dashboard machines, multiple build typically happen on one machine. Therefore
environment variables cannot possibly match the setting for all build.
This test is not relevant on dashboard machine and therefore is disabled.

LGTM!


add support for port package manager

add support for port package manager along with brew;
show compile-time configs;
print run-time env vars;
print link to MXNet tutorials;
print brew/port and pip package dependencies.
@piiswrong @madjam @sandeep-krishnamurthy @Roshrini

Yes, so libmxnet.so is linked to a different OpenCV shared object than the
OpenCV python module (cv2.so).  There also appears to be a similar conflict
with two numpy versions. Try to remove your personal version of OpenCV and
rebuild.  try to use the official distributions of OpenCV rather than
personally-built ones or ones acquired by other means if you get this sort
of problem (or be sure to remove the official versions to use your own
build, etc).
On Fri, Jul 28, 2017 at 8:54 PM Chris Olivier<EMAIL_ADDRESS>wrote:

On Fri, Jul 28, 2017 at 6:17 PM Rahul Huilgol<EMAIL_ADDRESS>wrote:

@rahul003 commented on this pull request.
I want to bring up something, which may or may not be concerning, so
someone takes a second look. During test, I found the following which might
indicate a version issue.
objc[99608]: Class CaptureDelegate is implemented in both /usr/local/opt/opencv/lib/libopencv_highgui.2.4.dylib (0x10422dcd0) and /Users/huilgolr/Library/Python/2.7/lib/python/site-packages/cv2/cv2.so (0x10e1e2658). One of the two will be used. Which one is undefined.
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
SUCCESS: MXNet test passed
SUCCESS: MXNet is successfully installed and works fine!
objc[99615]: Class CaptureDelegate is implemented in both /usr/local/opt/opencv/lib/libopencv_highgui.2.4.dylib (0x10dde0cd0) and /Users/huilgolr/Library/Python/2.7/lib/python/site-packages/cv2/cv2.so (0x117c63658). One of the two will be used. Which one is undefined.
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
On installing pip package of numpy, version shown is 1.13.1 . When
installing mxnet however, it says
Best match: numpy 1.8.0rc1
numpy 1.8.0rc1 is already the active version in easy-install.pth

In setup-utils/install-mxnet-osx-python.sh
https://github.com/apache/incubator-mxnet/pull/7166#discussion_r130206398
:

export mac_vers=sw_vers -productVersion | cut -d '.' -f 1,2

if [[ $mac_vers != "10.11" && $mac_vers != "10.12" ]];
then

echo " "

echo "ERROR: macOS version $mac_vers NOT supported."

echo " "

echo "Your macOS version is:"

sw_vers

echo " "

exit 1

fi
+} # chk_mac_vers()

+install_brew() {

echo " "
echo "BEGIN: Check/Install/Update Homebrew"

It's confusing here because the question that follows this line asks
about installing homebrew AND dependencies, but the heading here is for
Homebrew only. It might be better if this BEGIN:... is printed after
that question is asked. Because that is when the step actually starts.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/apache/incubator-mxnet/pull/7166#pullrequestreview-53061310,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKts_Tn7MfZvZBxLGQFKoUx2hZwjbTKeks5sSog6gaJpZM4OgVR2
.

I have modified the script to include user's PATH to have precedence over the script's PATH so that the user's python (for example, anaconda python) will be used.
Rahul and I ran "pip uninstall opencv-python" and it removed this warning:
objc[99608]: Class CaptureDelegate is implemented in both /usr/local/opt/opencv/lib/libopencv_highgui.2.4.dylib (0x10422dcd0) and /Users/huilgolr/Library/Python/2.7/lib/python/site-packages/cv2/cv2.so (0x10e1e2658). One of the two will be used. Which one is undefined.
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9

See: https://github.com/apache/incubator-mxnet/pull/7276


Add ProblemMatcher to new TaskProvider

To help with identifying issues with the build.
This suggestion was made by @egamma
https://twitter.com/ErichGamma/status/888732494002106370

@gep13 there are two scenarios to consider.

when a task provider is for a build tool with well known error message formats, then a task provider can associate one or more problem matchers with a created task. This is done by the haxe task provider https://github.com/vshaxe/vshaxe/blob/master/src/vshaxe/tasks/HxmlTaskProvider.hx#L22
if the build is more open ended and allows to use many different tools that are using different formats for error messages, then your extension wants to contribute problem matchers for the most common error formats and defer to the user to associate problem matchers in the task.json for a particular build.


chore(main): release 1.0.1

:robot: I have created a release beep boop
1.0.1 (2023-11-28)
🐛 Bug Fixes

List-splice insertion position and separator and other issues (044e038)
The is-color() condition is incorrect (91231b4)

🌟 Performance

Add default values for join-unit() parameters (87c2e40)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/Meqn/sass-magics/releases/tag/v1.0.1 :sunflower:


Automatic text selection range is wrong when assessing text exercises

Describe the bug
When assessing parts of a text exercise, often times the pre-selected text selects too much or too little text. Especially when students list arguments the only selectable range sometimes covers two listings, which makes the assessment very confusing for the students.
To Reproduce

Go to any text exercise from the dashboard
Click on 'Start new assessment'
See error (not always but often)

Expected behavior
Text selection only selects entire sentences or points.
Screenshots

Environment

 - OS: Windows 10 / macOS catalina
 - Browser: Firefox 76.0.1 / Chrome 83.0.4103.61
 - Version: 4.1.1

@jpbernius is this still relevant?


Add written directions.

This  might be accomplished by checking to see if the next point turns the direction by greater than 30 degrees.


Confirmation dialog ios(15) can not tap buttons

What happened?
I have a confirmation dialog on screen but couldn't tap that in a detox in ios 15 simulator

  it('should be in home menu', async () => {     await new Promise(resolve => setTimeout(resolve, 10000));     try {       element(by.label('Allow')).atIndex(1);     } catch (e) {}   });
What was the expected behaviour?
No response
Was it tested on latest Detox?

[X] I have tested this issue on the latest Detox release and it still reproduces.

Did your test throw out a timeout?

[ ] I have followed the instructions under Identifying which synchronization mechanism causes us to wait too much.

Help us reproduce this issue!
No response
In what environment did this happen?
Detox version: 19.7.1,
React Native version: 0.62.2
Node version: v16.11.1
Device model:
iOS version: 15
macOS version: 11.6
Xcode version:  13.0 (13A233)
Test-runner (select one): jest-circus
Detox logs
Detox logs
paste logs here!

Device logs
Device logs
paste logs here!

More data, please!
No response

Still relevant, this is part of the work done in https://github.com/wix/Detox/issues/3208.

@asafkorem could we add a "Fixed #3208" notation?


A build system that understands ambiguity

From @girving on April 27, 2015 23:52
Current the ambiguity parser generator is invoked via a Makefile outside of IntelliJ.  This is horrendous, and should be fixed using a proper build system.  Possibly sbt?  There's a significant amount of pain here due to the IntelliJ plugin setup, especially with the constraint of generating IntelliJ 13 compatible plugins from IntelliJ 14.
Copied from original issue: eddysystems/secret#222

Also, whatever new build system should generate a new parser if the grammar changes.


Streaming device logs may loose log entries

Device logs on dashboard and via balena cli are lacking entries when streamed with --tail option on CLI.
All entries are existing when querying logs without --tail option on balena cli.
Related: https://github.com/balena-io/open-balena-api/issues/1305

open-balena-api needs to implement redis streams instead of redis pubsub
https://github.com/balena-io/open-balena-api/issues/1305


MacOS titlebar has a space ontop of content window

Hi amwx,
Why MacOS use AppWindow to self-define titlerbar, a space show ontop of content window?

@programClown use DevTools [F12] to investigate visual an logical tree

I have checked it, but FA's origin design contains the space. ^_^

https://github.com/amwx/FluentAvalonia/blob/d39b8ed848a22109f69e259e304143efdb12e57b/src/FluentAvalonia/Styling/ControlThemes/FAControls/AppWindowStyles.axaml#L141
should be settable here from code behind, check Demo App for docs and usage

@timunie Ok, thanks


plasma5: 5.12.2 -> 5.12.3

Motivation for this change
I could not run nox-reviewas it always crash (the error was something with the garbage collector of nix) :(
@ttuegel @adisbladis @peterhoeg
Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg test plasma5

Failure on aarch64-linux (full log)
Attempted: tests.plasma5
Partial log (click to expand)
cannot build derivation '/nix/store/90ihnah1ziqr6vi41kkwpbc0pvx39h2g-system-units.drv': 3 dependencies couldn't be built
cannot build derivation '/nix/store/p6457yn9brifv2nq2fn7s0ic5fbm4ick-user-units.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/w0f7kr2kic92cwmcxj95cxwzhcmwarwh-etc.drv': 5 dependencies couldn't be built
cannot build derivation '/nix/store/qn38ffh04kskjxa2vl2n48rxsf3fjp13-nixos-system-machine-18.09.git.51fcf24.drv': 4 dependencies couldn't be built
cannot build derivation '/nix/store/zhq390phi9p2ll5mfljwd24rv950dx4n-closure-info.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/76817y565ilrpjrhbyrjngqcm13kn4a3-run-nixos-vm.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/g5vy5x55hmj8rfarnjn36l1a7fgfjzkj-nixos-vm.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/c9v8xl4zvgg7lvs34c5z4v7dmpjxppvb-nixos-test-driver-plasma5.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/m1phdyxrphasfk43sj8wygyr6bjzjc91-vm-test-run-plasma5.drv': 1 dependencies couldn't be built
error: build of '/nix/store/m1phdyxrphasfk43sj8wygyr6bjzjc91-vm-test-run-plasma5.drv' failed

Failure on x86_64-linux (full log)
Attempted: tests.plasma5
Partial log (click to expand)
cannot build derivation '/nix/store/fl0q8lw9lgv4qaijdxfr8nd2fipv2rja-system-units.drv': 3 dependencies couldn't be built
cannot build derivation '/nix/store/7d4xikvi7vjmkhvv8mnm6g1sl5wi4jai-user-units.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/m4pwn13h996jwjmz56vdgifahhb8rk3i-etc.drv': 5 dependencies couldn't be built
cannot build derivation '/nix/store/6mzvll1vn2djjh5d2ixpzblxm5z1hvnb-nixos-system-machine-18.09.git.ae33cad.drv': 4 dependencies couldn't be built
cannot build derivation '/nix/store/fv90wrig1cfpgq9fn90bs94a7l1abaxb-closure-info.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/k0c1p481qvxzcaggjxra5x9s3fc3bwwi-run-nixos-vm.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/66ic8kmnnf0gqqmqr8r55yh221v7c6p2-nixos-vm.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/jm11xm8xrmmn3ymrbn9h7vmc1s57q32h-nixos-test-driver-plasma5.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/x1zh78glnyr58ndvajallq7r6k81r2j7-vm-test-run-plasma5.drv': 1 dependencies couldn't be built
error: build of '/nix/store/x1zh78glnyr58ndvajallq7r6k81r2j7-vm-test-run-plasma5.drv' failed

Looks good locally, thanks!


Text color

Challenge http://freecodecamp.com/challenges/waypoint-use-css-selectors-to-style-elements has an issue. Please describe how to reproduce it, and include links to screenshots if possible.
The instructions say that the h2 header should be red, but the requirements are saying it should be blue. The previous exercise has the same problem, but the colors are swapped, the instructions say red, the requirements say blue.

@jozomk the first two boxes aren't instructions but actually examples, the waypoints are your instructions and requirements, so yes you ahve to make it blue

Thanks, so far (and in the exercises that follow) the examples were identical to the requirements, so I thought that there is a mix-up with the colors, but all is well :)


Plot statistics from sonar data interactively

Our first visualization of sonar data is usually a 2D image that shows how the echoes change across time and space, like the one shown in our Contributor's guide.
But once we want to analyze the data more, it will help to pull statistics out from the data.
For example, we can have in one panel a small pannable box on an echogram, and then in another panel have the histogram of Sv values contained within that window. Something like below:

There are other statistics that can be pulled out and very useful, like the distribution of the Sv differences across frequency, the shape of the Sv distribution summarized as skewness and kurtosis, etc, that can be added to this to make the visualization more informative.
The above echogram image is from NOAA Fisheries.

this part can integrate into https://github.com/OSOceanAcoustics/echoshader/issues/17#issue-116866906.It can be designed in same panel.
We can do some statistics on cross section, too, like analyzing the difference or trend in Sv at the everyday same time.

We can do some statistics on cross section, too, like analyzing the difference or trend in Sv at the same everyday-time.

Sounds great!

this part can integrate into https://github.com/OSOceanAcoustics/echoshader/issues/17#issue-116866906. It can be designed in the same panel.

Absolutely. So, the central idea of this project is to create "a bag of widgets" in the package that allow people to mix and match different components in a panel dashboard. Do you wanna think about how that design might look like, and open up an issue (an idea) for that?

@leewujung

Absolutely. So, the central idea of this project is to create "a bag of widgets" in the package that allow people to mix and match different components in a panel dashboard. Do you wanna think about how that design might look like, and open up an issue (an idea) for that?

OK, mentor Lee :blush:. I just did a prototype of echoshader GUI, https://github.com/OSOceanAcoustics/echoshader/issues/27#issue-1176397969. Please give me more feedback on layout.

I want to ask that what x and y coordinates of this histogram represent?

For example, we can have in one panel a small pannable box on an echogram, and then in another panel have the histogram of Sv values contained within that window. Something like below:

How about using wheel zoom tool instead of pannable box. Users can drag and zoom with mouse. It has better operation and efficiency.
https://user-images.githubusercontent.com/56751303/159684149-1ad0b2f6-0150-4638-a8e1-6c1a2cf68057.mp4

Can we do both? Since a lot of times users want to know how things look like while keeping view of the bigger context (pannable box), but yes they may want to zoom in also (drag/zoom).

know how things look like while keeping view of the bigger context (pannable box)

nice hint. :laughing:  I almost forgot that we need keeping view of the bigger context to make this sense.

What is skewness and kurtosis? please give me a link about these mathematic terms blush Then I will try to plot and link.

They are statistical parameters. Here are some references:

https://community.gooddata.com/metrics-and-maql-kb-articles-43/normality-testing-skewness-and-kurtosis-241
https://en.wikipedia.org/wiki/Skewness
https://en.wikipedia.org/wiki/Kurtosis

Thanks for answering, Mr. @emiliom
Now I undestand skewness and kurtosis are parameters representing normality of plots.
But I am still not clear what histogram should be plotted from the box selected on an echogram.

then in another panel have the histogram of Sv values contained within that window.

What is the histogram of Sv values? If user selects a box from echogram, it would be a small 3d image(x: ping_time, y: depth, colotmap value: Sv value). histogram of Sv values  's y-axis, I think, should represent Sv value. What does x-axis represent for, depth or ping_time? If it is ping_time, we should caculated mean Sv values for different depths.

then in another panel have the histogram of Sv values contained within that window.

What is the histogram of Sv values? If user selects a box from echogram, it would be a small 3d image(x: ping_time, y: depth, colotmap value: Sv value). histogram of Sv values 's y-axis, I guess, should represent Sv value. What does x-axis represent for, depth or ping_time? If it is ping_time, we should caculated mean Sv values for different depths.

I think what @leewujung meant was a histogram of Sv values in the selected echogram box. In other words:

x axis: Sv value bins for each histogram bar (say, -90 to -80 dB, -80 to -70 dB, etc)
y axis: cell counts or normalized distribution (bin cell count / total cell count, as 0 - 1)
the depth and ping_time axis "disappear", since we're now treating the box of values as a simple collection of values

Ms @leewujung, please give me some examples about what you said "the distribution of the Sv differences across frequency".
How to plot that? Overlay or layout histograms of Sv for different kinds of frequency?
And below is a demo for histogram of Sv.
https://user-images.githubusercontent.com/56751303/161028038-f1d554c7-e69d-429f-ab7b-e635e1cf420a.mp4

@ldr426 : somehow missed this message and just saw this now!
Not sure what if this is what you and @bitanb1999 mean by a layout histogram, but i was envisioning having the x axis of the histogram of each frequency channel to be identical with these panels stacked vertically (like sharey=True for matplotlib subplots). This way people can see where the peak and spread of the Sv values look like for multiple frequency channels at once.

Ms @leewujung:  I got it :) And there are two options.
What I mean about layout histograms
is to plot more than one subplot. Just like 'sharey=True for matplotlib subplots', different plots  are stacked vertically or horizontally. Something like below.

And 'overlay'
is to draw these layouts in the same plot.  Something like below. Different colors represent for different frequencies.
That will make the contrast stand out more.

Oops I realized that I had a typo. I meant sharex=True instead of y.
I think both would be fine, and we can even make it a toggle option, just for the overlay one we need to more careful in selecting the colors.

@leewujung Understood! Also, @ldr426 , didn't realise the usage of the overlay histogram before. Thanks for making it clear!


Fix namespace for SortableLink

The namespace for class SortableLink is wrong and class Assessor fails to use it.
(Is Assessor a typo for Accessor?)

👍


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-source-version-target/pull/50 is merged into live branch.
Auto archive content to https://github.com/VSC-Service-Account/docs-archive-test-source-version-target.git

Docs Build status updates of commit e437d8c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

versioningArchiveSourceFolder/TOC.yml
:white_check_mark:Succeeded
View (sql-server-2014 || azuresqldb-current || azuresqldb-mi-current || azure-sqldw-latest || >= aps-pdw-2016 || >= sql-server-2016 || >= sql-server-linux-2017 || sql-server-previousversions || sqlallproducts-allversions)

versioningArchiveSourceFolder/docfx.json
:white_check_mark:Succeeded

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

Docs Build status updates of commit e437d8c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

versioningArchiveSourceFolder/TOC.yml
:white_check_mark:Succeeded
View (sql-server-2014 || azuresqldb-current || azuresqldb-mi-current || azure-sqldw-latest || >= aps-pdw-2016 || >= sql-server-2016 || >= sql-server-linux-2017 || sql-server-previousversions || sqlallproducts-allversions)

versioningArchiveSourceFolder/docfx.json
:white_check_mark:Succeeded

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


Change docs for glob parameter

This might be an issue with operating system (Mac OS Sierra 10.12.6), npm (5.6.0) or any other thing, or it might be an issue for everyone, but:
When I follow the example code and submit a glob as parameter -i src//.ts, the filenames are unpacked and apparently submitted as an array to the extractor. The globstar path is not respected and I am only scanning the toplevel folder (src//*.ts). By submitting the glob-pattern within a string ('src//*.ts) this is avoided. The unwrapped parameter is working for me in the example project because averything is nested 1 level deep.
The example project and documentations should probably use a glob parameter wrapped in a string

Maybe this is a duplicate of #2

I am having a similar issue.
Under windows using git bash there is no globstar. So even when I wrap it in a string it only enters the first subdirectory.
To extract all translations I have to pass all directories and their subdirectories to the --input option.

Example:
ngx-extractor -i src/app/*.ts -i src/app/auth/**/*.ts -i src/app/auth/*.ts -i src/app/core/*.ts -i src/app/core/**/*.ts -i src/app/posts-module/*.ts -i src/app/posts-module/**/*.ts -f xlf -o src/locale/messages.xlf -l en


Issue when running inside Node v18.16.1

Hi all, I ran into an error running serverless locally after upgrading my severless template to support a runtime of nodejs18.x.
When attempting to send a SNS message locally, I get this error below ->
Error publishing in SNS: || {"msg":"UnknownEndpoint: Inaccessible host: `localhost' at port `4002'. This service may not be available in the `ap-southeast-2' region.","stack":"UnknownEndpoint: Inaccessible host: `localhost' at port `4002'. This service may not be available in the `ap-southeast-2' region.

I found this that makes me think its related to the version upgrade, but I am not 100% sure.

Hi Nico!
Can you resolve this error?
Are you using docker?

@juancarlosDH @nicholas-yong We have pushed a new version v0.77.0. Can one of ya'll verify you're still having the issue? I am running 18.17.1 and it works fine here.


Enable multiple collections

[READ] Step 1: Are you in the right place?
Issues filed here should be about a feature request for a specific extension in this repository. To file a feature request that affects multiple extensions or the Firebase Extensions platform, please reach out to
Firebase support directly.
[REQUIRED] Step 2: Extension name
This feature request is for extension: firestore-bigquery-export
What feature would you like to see?
I'd like to be able to configure multiple collections to be sent to BigQuery.
How would you use it?
I have a handful of key collections that need analysis and I haven't found a way to either run multiple instances of this extension or to configure it to deliver multiple collections to BigQuery.

Hi Josh, you can install multiple instances of the same extension in a project to get this behavior -- have you tried it and something has gone wrong? If so, can you provide more specifics?

Figured out how to add another instance.  Thanks for pointing out that it was possible!


[migration] to mockito v5 from v2

The main OpenSearch repository uses Mockito 5 while PA is currently using Mockito 2. Mockito 5 removes the need to use PowerMock, thus eliminating one of our test dependencies and contains new functionality that may be useful for writing unit tests.
This can help #69 since we will be upgrading to a more recent test framework with more features.
In particular, this file in the OpenSearch repository contains the version numbers for mockito and other packages.

I am working on this.

This issue is open to contributions.
Relevant information:

Mockito mockStatic to replace PowerMockito.mockStatic
Mockito mockConstruction to replace PowerMockito.whenNew.

[Triage -- attendees 1, 2, 3, 4, 5, 6, 7]
@DesmondWillowbrook Are you still trying to do this?


documentation website is down

Tell me more. Which site is down? What response do you get?

Docs site is up for me http://setuptools.readthedocs.io/en/latest/


Investigate ts-check error: "Property 'x' does not exist on type 'any []'" in Delivery/index.js

Screenshots
https://github.com/Azordev/dasher-user/blob/dccbce3b5b6ea8af657388eec98dfaac7b201ff9/src/pages/Delivery/index.jsx#L31-L33
https://github.com/Azordev/dasher-user/blob/dccbce3b5b6ea8af657388eec98dfaac7b201ff9/src/pages/Delivery/index.jsx#L44-L47

Checklist

[ ] The reason why the error occurs is known
[ ] Possible solutions were created
[ ] It was decided between fixing the error or leaving it like that

This can be solved adding proper types on JSDocs
In this cases adding @return types for useGetPackageInformation could help

This is an example:
/**
 * @param {packageID} Id coming from DB for certain package
 * @return { {loading: Boolean, error:Object, packageInformation: Object}}
 */
const useGetPackageInformation = packageID => {
   ...
   return {loading, error, packageInformation}
}

In this case we would need @typedef to type the return packageInformation as expected:
https://jsdoc.app/tags-typedef.html
Some references:

https://devhints.io/jsdoc
https://www.inkoop.io/blog/a-guide-to-js-docs-for-react-js/

BUT, at the end this should be low priority, if it gets too weird is better to ignore these types

check that your tasks have the corresponding labels


AQL query without where clause produces NPE

Configuration information
{
    "build": {
        "openEHR_SDK": {
            "version": "1.20.0-SNAPSHOT"
        },
        "version": "0.22.0-SNAPSHOT",
        "artifact": "application",
        "archie": {
            "version": "2.0.1"
        },
        "name": "application",
        "time": "2022-05-25T10:31:30.547Z",
        "group": "org.ehrbase.openehr"
    }
}

Steps to reproduce
curl --location --request POST 'https://<ehrbase fqdn>/ehrbase/rest/openehr/v1/query/aql' \
--header 'Content-Type: application/json' \
--data-raw '{
    "q": "SELECT o FROM EHR e CONTAINS COMPOSITION c CONTAINS OBSERVATION o"
}'

Note, the AQL works fine if you add a WHERE clause. E.g.
curl --location --request POST 'https://<ehrbase fqdn>/ehrbase/rest/openehr/v1/query/aql' \
--header 'Content-Type: application/json' \
--data-raw '{
    "q": "SELECT o FROM EHR e CONTAINS COMPOSITION c CONTAINS OBSERVATION o WHERE c/context/start_time/value > '\''2020-10-14'\'' "
}'

Actual result
{
    "error": "Bad Request",
    "message": "Could not process query/stored-query, reason: java.lang.NullPointerException"
}

Expected result (Acceptance Criteria)
All observations instead of the NPE
Definition of Done

[ ] The defect is checked by an unit or an integration test (Robot)
[ ] Merge Request approved
[ ] Unit tests passed
[ ] Build without errors
[ ] Release notes prepared
[ ] No additional runtime warnings

fyi @birgerhaarbrandt , this is the bug we just found in our call.

Hello @flowrider3000,
Issue is addressed. Internal Jira ticket: https://jira.vitagroup.ag/browse/CDR-419
Will let you know once it is fixed.


Rounding bug when decimals <= 0

If decimals <=0 the function ensureNumber uses parseInt(input) which cuts away the decimal places instead of rounding. parseInt(input.toFixed(0)) would fix this.

fixed v0.3.12


Add notification support to builds

Each build should finish with a push notification that:

details changes
details branch
link to published url
contains build status ( success | failure )

Maybe master builds are sent to a different channel/location.
Perhaps this?

Use Slack instead.

An interesting how to blog.

Slack incoming webhooks API docs.


add configuration for polymorphism resource in machine learning for a…

…zure cli codegen
Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[ ] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[ ] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

/azp run automation - sdk

assign to Qiaoqiao for pure codegen config for azure cli

Can one of the admins verify this patch?

The cli extension task is failing.


Remove dependancy on SQLitePCLRaw.bundle_green

This seems to be an iOS only problem. But the dependency on SQLitePCLRaw.bundle_green means that even if I install SQLitePCLRaw.bundle_sqlcipher it is not substituted. We could just let users choose or even better if a dependency must be added add the cipher on. As without the PRAGMA key it will act just like an un-encrypted DB

We discussed this back when the decision was made.  There are tradeoffs either way.

If sqlite-net-pcl takes a dep on any bundle, then the most common use cases work with no extra steps, and there are tricks to deal with the other cases.

If sqlite-net-pcl takes a dep on just SQLitePCLRaw.core, then everyone has to add a bundle and call an initialization method.  The SQLCipher case ends up being no more difficult than any other case.

Personally, I would probably have voted for (2).  But it's a close call, maybe 60/40 for me, and I understand the rationale for wanting most users to have a path that requires no extra steps.
cc @praeclarum in case he wants to chime in.
Anyway, I daresay it is too late to make the change now.  It would be a breaking change for lots of apps.
I would also strongly oppose the idea of switching the dependency from bundle_green to sqlcipher.  The sqlcipher builds are not as well maintained, and more difficult to maintain, and there are crypto export considerations, and the versions lag the bug fixes from the core sqlite team, etc.
I do sometimes wish we had two versions of the sqlite-net-pcl nuget package:  One the way it is now, and one that does not reference a bundle, to "let users choose" (which can be read as "force users to choose").
BTW, if you're interested in the "tricks" I mentioned above, start here:
https://github.com/ericsink/SQLitePCL.raw/wiki/How-to-use-SQLCipher-with-SQLite-net

BTW, the Akavache project faced the same decision, and they chose a bundle as well.  The tradeoffs are somewhat different, as Akavache is not a way to access sqlite, but rather, a library which happens to use sqlite as part of its implementation.  Nonetheless, people on Akavache often want substitute sqlcipher as well.
Also, the Entity Framework Core team faced the same decision.  In their case, they decided to do two versions of their package (as I mentioned above), one which references a bundle, and one which does not.  Most users would choose the one with the bundle dependency, and all other cases (most of which are sqlcipher) would choose the one that requires (read: allows) extra steps.

Thank you @ericsink . I see all those reasons.
I think I saw in a different post that for non-PCL i.e. shared projects the "best" way forward is to remove the sqlite-net-pcl package and just add the Sqlite.cs file with various mods. I think I'll try that.
Just as opinion but the different packages idea is probably the one I favour. In reality I don't think there are that many everyday choices for providers and so could even have a plain and a sql cipher package

@ndastur Perhaps I should start releasing a SQLCipher nuget? Since that seems to be the only "other" bundle people want.

@praeclarum yeap, I'd agree with that. I suspect there aren't that many other use cases and will make up a very small percentage.

Actually, although bundle_sqlcipher is in second place, I do regularly see requests for bundle_e_sqlite3 and custom builds and so on.  I've dealt with two such situations this week, and it's only Tuesday.
I'd love to see a second package, but my vote would be for the second one to not reference a bundle.  That's the easiest case for me when I'm trying to help people sort things out.  I can just explain how to add the bundle they want (to their app package) and add one line of Init() code.

@ericsink @praeclarum  I'm happy with that. Potentially simpler to have just 2 packages. A sort of get you up and running one and a custom one that users need to think more about. If there is some more documentation in this Repo then I can't see a problem going forward

To implement this, you need another build which is different from the sqlite-net-pcl build in two ways:

Change the dependency from SQLitePCLRaw.bundle_green to SQLitePCLRaw.core

Don't call SQLitePCL.Batteries_V2.Init()

And of course you'll need this new package to have a name other than sqlite-net-pcl.  Naming things is hard.  :-)

I hate the current naming, so let's stick with it ;-)
Perhaps sqlite-net-core?

I like it, but anything with "net-core" in the name sounds like it's for .NET Core.  I frequently lament the diminished usefulness of the word core.
sqlite-net-base ?
sqlite-net-foundation ?
sqlite-net-empty ?
sqlite-net-common ?
sqlite-net-lib ?

sqlite-net-empty I think best describes it ... unless of course you could bring yourself to do sqlite-net-empty-so-you-need-to-add-another-package ;)

sqlite-net-hollow ?

So far I like base, common, and empty. But I can't decide.
sqlite-net-pro?
sqlite-net-configurable?
sqlite-net-unbundled?
sqlite-net-for-raw?

No strong opinion here.  Whatever it's called, I'm looking forward to having this package exist.  :-)

My vote is for -empty. BUt like @ericsink I'm looking forward to it's existance

I went with sqlite-net-base
Version 1.5.147-beta is up on nuget now. Would either of you mind giving it a spin to make sure I got it right?
Would either of you also mind peeking at https://github.com/praeclarum/sqlite-net/pull/596 to see if it looks right to you? Thanks!

Oops, I did mess up, try 1.5.151-beta

I just wrote a little test program against 1.5.151-beta, and it worked as expected.  And I looked at the diffs in #596, and they look fine.
LGTM

Great, it's in!

Thank you @praeclarum. I have tested in my app and both ios and android now "load" sqlitecipher.

Is there documentation or example on how to use sqlite.net + sqlitepclraw.bundle_cipher + sqlcipher?
I have read this: https://github.com/ericsink/SQLitePCL.raw/wiki/How-to-use-SQLCipher-with-SQLite-net but as someone who only used sqlite.net, I don't see how to use the cipher underneath.

https://www.zetetic.net/sqlcipher/sqlcipher-api/

@ericsink Thanks, I was supposed to use SQLite.Net-PCL, which is a fork of this repo.


fix bug: title component's styles are not working #49

fixed title component's style problem. See details at #49

@ssibrahimbas also can you open an issue if custom classname does not work?

of course


Can not open websocket when using https, but normal in http

We try to connect the secure websocket, we can get the policy file and return the correct status when we request 843 port, but we still can not open the webscocket can not receive the "onopen" event, and web socket can not establish, but we can connected successful when we connect not secure websocket (http), so what should i do ???

Try Troubleshooting section of README and let me know the result of each step. It is often especially useful to try an environment with native WebWocket support like Chrome.
Just guessing, but maybe the host does not provide a valid certificate matching the host name? Guessing so because I believe you cannot get a valid certificate for host name "localhost".

Hi @gimite I install a self-signed certificate which generated by java SDK tool and below is certificate config in my server:
server.ssl.key-store = keystore.p12
server.ssl.key-store-password = password
server.ssl.key-store-type = PKCS12
server.ssl.key-alias = selfsigned
server.ssl.ciphers = TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
server.ssl.enabled-protocols = TLSv1.2
I followed the trouble shooting and still does not work
The socket server I used :  javax.websocket.server
The web Browser I used :  IE8 Compatibility Views
The exact message: I just want to connect to web socket but there is no replay in server side, we can
not receive the "onopen" message
Error message: we did not see any error message, just saw the attached message above [https://github.com/gimite/web-socket-js/issues/182#issuecomment-554241003],
And  in addition, It is working when we using  Http instead of Https, all is OK when we use http, we can receive the "onopen onmessage" and so on, but Https can not.

As mentioned above, it is often helpful to try it with Chrome to see if it works.
I'm not so sure but I guess self-signed certificate is rejected by default, as browsers do when you access a self-signed HTTPS web site. Did you do anything special to workaround it e.g., installing a corresponding certificate to the client machine?

Hi @gimite we changed the server.ssl.enabled-protocols = TLSv1.2 to TLSv1 and changed some
ciphers and now is working fine, thank you for your help.

Hi @gimite, I find a very strange case, when I connected websocket succefully, after about 1 hour later, the socket will disconnected automatically, and server side can not receive the disconnected event, and I get the message "[websocket closed]" in console  from IE, can you help me ?

Maybe something in-between (like a router) disconnected the TCP connection? Disconnection can happen (e.g., the network can be disconnected), and the application should somehow handle it (reconnect automatically, show an error message, etc.).

HI @gimite As I mentioned in last comment form me, I get error code frame.opcode = 1001 ( from your code as attached pic), how can i get this event, where is the event (1001) came from? Flash player or my web socket server? I think it does not come from my web app server, because I did not see the error or other messages from my socket server, does flash player have some configuration or not?
below is the screen shot form WebSocket.as file:

That looks like a packet sent from the server.

Hi @gimite we changed the server.ssl.enabled-protocols = TLSv1.2 to TLSv1 and changed some
ciphers and now is working fine, thank you for your help.

Hey man, How did you set your ciphers ? I have the same issue,and set protocols  to TLSv1 but still not work.Please let me know how to set the ciphers ,thanks!

@GiKyouGetsu Hey man, How did you set your ciphers ? I have the same issue,and set protocols  to TLSv1 but still not work.Please let me know how to set the ciphers ,thanks!

Hi @JayBishop, using ciphers
TLS_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_3DES_EDE_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_RC4_128_SHA,TLS_RSA_WITH_RC4_128_MD5,TLS_RSA_WITH_DES_CBC_SHA is working for me, if you using springboot you config this like this:
server.ssl.key-store = keystore.p12
server.ssl.key-store-password = password
server.ssl.key-store-type = PKCS12
server.ssl.key-alias = selfsigned
server.ssl.ciphers = TLS_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_3DES_EDE_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_RC4_128_SHA,TLS_RSA_WITH_RC4_128_MD5,TLS_RSA_WITH_DES_CBC_SHA
server.ssl.enabled-protocols = TLSv1


Is this line redundant?

This line seems redundant because we overwrite value of q in the next line anyway ?
https://github.com/ku2482/sac-discrete.pytorch/blob/master/sacd/agent/sacd.py#L118
with torch.no_grad():
            # Q for every actions to calculate expectations of Q.
            q1, q2 = self.online_critic(states)
            q = torch.min(q1, q2) # <-- do we need this?

Hi @AlexTo
Yes. It's redundant.
Sorry about that.
Thank you for sharing :)

no worries :)


Save compressed load files with .gz extension

Problem description
Load files are always saved with the extension of the file format, regardless of whether compression is enabled.
I.e. s3://path/to/load/file.jsonl may or may not be compressed.
This causes issues with e.g. databricks loader which can't parse gzip files without .gz extension so compression must be disabled.   Possibly affects snowflake and redshift too, I think we assume json files are always compressed.
Solution
The data writer should add .gz extension when compression is enabled.
There are few places where we parse filenames to detect format, usually relying on filename.endswith('.<file_format>') or os.path.splitext. These need to be refactored, we need a clean way to get format/compression from filename.

+1 this!
How can we disable compression without using config.toml? Is there a way to do this in the code itself?

@elviskahoro there are many ways to disable compression in code. all of them change the configuration though ie.
os.environ["DATA_WRITER__DISABLE_COMPRESSION"] = "True"
dlt.config["data_writer.disable_compression"] = True


AGIC generated backend pool members for OOMKilled pods of which IP is reused by valid pod

Describe the bug
AGIC generated backend pool members for OOMKilled pods of which IP is reused by valid pod.
The bug surfaced on two separate clusters on the same day.
To Reproduce
Steps to reproduce the behavior:

Make sure you have some OOMKilled pods with an (backend)IP address assigned on domain A in namespace A
Create new deployments on domain B in namespace B up until the point that one of the new pods gets an IP address of the OOMKilled pod in namespace A
observe that the IPs are present in the backend pools of both A and B
observe that traffic of domain A is routed to the backend of domain B (the new, valid pod). Occurrence depends on number of pods in BE pool

Ingress Controller details

AGIC (ARM deployed): 1.5.2/78cb4021/2022-05-06-08:27T+0000
Output of `kubectl logs : Available on request or as part of the SR.
Any Azure support tickets associated with this issue: SR-2207210050001646

@bbreijer Thanks for reporting this issue. We will investigate what can be done to avoid this issue.

Today I heard back from the SR that my issue is the result of a k8s issue: https://github.com/kubernetes/kubernetes/issues/109414 and the fix: https://github.com/kubernetes/kubernetes/pull/110255 .
The issue is fixed in v1.25, which is not yet available for AKS.

According to the AKS release calendar, v1.25 is planned (GA) for november 2022: https://docs.microsoft.com/en-us/azure/aks/supported-kubernetes-versions?tabs=azure-cli#aks-kubernetes-release-calendar

Hi,
I'm facing kind of simmilar issue on my AKS (kubernetes version 1.23.8). Deployments are configured with horizontalpodautoscalers and it seems that after scaling down one deployment's replicas count freed pod's IP can be assigned to newly created pod of another scaled up replica set without AGIC being notified and as a result not updating backend pool on Application gateway.
It seems like a serious issue fo me.
@bbreijer - have you been offered any workaround until v1.25 is goig to be available?
@akshaysngupta - can you confirm bbreijer's info?
Do you know when v1.25 is going to be available for AKS as a preview? (according to AKS Kubernetes Release Calendar it should've happened in september)

@bbreijer - have you been offered any workaround until v1.25 is goig to be available?

No workaround was offered. We already had logging in place on the KubeEvents, therefore we are notified on OOMKilled pod. At this moment we delete a pod as quickly as possible after storing diagnostic data. Since we continuously optimise the pod settings, OOM's occur not that often. Nevertheless, i think this is a tricky issue which might lead to downtime, from my point of view, out AKS clusters degraded until the fix is available on AKS GA.

Thaks @bbreijer for the answer. Do You observe the issue only after pods are being OOMKilled? Do You heave any horizontalpodautoscalers on Your AKSes ?

We actively observed the issue when pods are OOMKilled and stay (inactive) in the system with that state (i think due to the new one being created on another node, but i'am not sure), the IP is still assigned and the AGIC treats this as a routable IP while k8s reuses the same IP. Result: two entrypoint being routed to the same IP.
We don't have horizontalpodautoscalers at this moment.


optim egbuilder to provide build.yaml and corrent filter comments

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 79.45%. Comparing base (f9117fa) to head (5b0788e).
Report is 1 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1247      +/-   ##
==========================================
- Coverage   79.48%   79.45%   -0.04%
==========================================
  Files         152      152
  Lines       17295    17295
==========================================
- Hits        13747    13741       -6
- Misses       2879     2883       +4
- Partials      669      671       +2

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Projectiles (burning arrow) can remove powdered snow in regions despite having no build permission.

Should instead block the event.

(Cant fix at the moment, there is no related event in papermc)


How to "Run external program/script to create and update records"

Curious how to use  option for Run external program/script to create and update records
Hi All,
thanks again for Win-Acme.
I would like to ask how, if any way, to use the DNS option to validation.  I cannot open the site to public access.  I saw some comments about a DNS option (eg text record) but it looks like it is not available yet.
If there is an interest in testing this, I can facilitate any testing you wish to do.
Thank you for changing the world of SSL.
Mark

DNS validation is supported. Check out:
https://github.com/PKISharp/win-acme/wiki/Validation-plugins#dns-01-validation
It's also presented as an option when you create a new certificate in advanced mode.
The tricky part is that you have to provide your own script to update and delete the records.

I created scripts to do this that work on server 2012. As my server is behind a firewall this turned out to be the wrong method to use, but you may find them useful. Replace DNSServer with the name of your DNSserver and repeat that line if you have more than one server. Replace YourZoneName with your domain name.
create-dns.bat:
powershell -file ./create-dns.ps1 %1 %2 %3
create-dns.ps1:
Import-module dnsserver
Add-DnsServerResourceRecord -Name $args[1] -Computername DNSServer-TXT -ZoneName "YourZoneName" -DescriptiveText $args[2]

delete-dns.bat:
powershell -file ./delete-dns.ps1 %1 %2
delete-dns.ps1:
Import-module dnsserver
Remove-DnsServerResourceRecord -Force -Computername DNSServer-ZoneName "YourZoneName" -RRType "Txt" -Name $args[1]

Hi Paul,
thank you for your response and time to prepare the script files.
I suspect that I am misunderstanding something about how the Acme protocol => LetsEncrypt =>Win-Acme works.
I had previously understood that we did the following:

create a change in a subfolder that can we publicly verfied eg /.wellknown
LetsEncrypt make a call from a remote location to this subfolder and proved that we truly own the domain
LetsEncrypt issued us with a cert.

In DNS validation I expected the following:

We generate a public DNS record somehow eg a txt record and save that with our domain DNS records.
LetsEncrypt make a DNS lookup from a remote location to this txt record and proved that we truly own the domain.
LetsEncrypt issued us with a cert.

In your ps1 files, you are adding a DNS record to an internal DNS entry in Windows Server.  How can LetsEncrypt use that to prove we own a domain?
Or am I completely mis-understanding the DNS-01 validation option?
The question remains:
How can I request a cert for a site without opening ports 80 and 443.
Perhaps I should expand that question to say that even though it is not open to the world, it is open to more people than on the corporate network using the corporate DNS servers.

You are right about the process of DNS validation @markbreen. As @pmorriss points out in his post, his approach with updating the (internal) Windows DNS server didn't work out for him because of the reasons listed below, but he provided it as an example of how to set things up.
Let's Encrypt requires a domain name to be under a root listed on the public suffix list ( https://publicsuffix.org/list/ ). E.g. mycompany.com would qualify but server1.mycompany would not. Furthermore the DNS record has to be publicly accessible. Let's Encrypt does not document from which location or location(s) the DNS validation is performed, so for it to work it has to be world-visible.
If you meet those requirements, there are currently two options to automatically create the validation record. One is to use Azure DNS, because someone contributed a plugin for that. The second is to write your own .bat/.exe file (using .ps1 (Powershell) is also possible but has to be launched through a .bat, as @pmorriss did).
Anyway, the script file has to talk with DNS server/provider in some way to create the record that Let's Encrypt wants to see as proof of ownership (it changes every renewal, so automation is a must). It requires that there is some kind of API or direct access to the zone files, plus some scripting or programming skills to string it together.
Thinking about it, it would be possible to create a manual DNS validation plugin, that just prints the record to the screen and asks you to create it. But then it would never be able to run unattended. Wouldn't be very scalable but could be a stopgap for some people.

I'm working off the info provided by @pmorriss as I host my one lab nameservers and internal DNS.  I'm having a problem with the external add script creating the DNS record at the wrong level.
I think that the win-acme program is sending the wrong value for the parameters, either that or I'm doing something wrong.
An example is I'm trying to create a certificate for something call remote.mydomain.com.

I run win-acme
Choose option M
Then option 4
Then enter my host as "remote.mydomain.com"
Next I choose option 2 to do dns-01 external script
Enter the path to my add script, .\Scripts\DNS\Add.bat
Enter the path to my delete script, .\Scripts\DNS\Delete.bat
Choose option 3 (just for testing)

Program executes, runs my create script and I can find the TXT file in my DNS records of my nameserver, but I believe it is at the wrong path...
These are the parameters to my script...
powershell.exe -ExecutionPolicy RemoteSigned -File .\Scripts\DNS\Add.ps1 remote.mydomain.com _acme-challenge.remote.mydomain.com TXT_RECORD_CONTENTS
The script creates an entry but it is at this level in the DNS
mydomain.com\com\mydomain\remote_acme-challenge
I believe the record is to be at
mydomain.com\remote_acme_challenge
I've actually manually moved the record to that location and then did a DNS lookup based off of what the log is telling me it is querying and it is successful.
_acme_challenge.remote.mydomain.com
Based on the input to the add DNS script I'm expecting the first value to be just the hostname, without the domain attached to it...  Is that what it should be?

This has been addressed in the linked issue, closing this because there seem to be no further questions!

@pmorriss Thank you for your reply. I tried to use your script, however seems like it hangs on step below. where is %3 argument being used shown in here
 [INFO] Script C:\testing\createdns.bat starting with parameters hostname.domain.com _acme-challenge.hostname.domain.com bukzhPuSozc7WVFtEYYRsuBh55u2GNZw9Zn7mIX1YYQ
no record is created as the script is stuck on above.

I think I made a mistake in my comment. Try this:
create-dns.bat:
powershell -file ./create-dns.ps1 %1 %2 %3
create-dns.ps1:
Import-module dnsserver
Add-DnsServerResourceRecord -Name $args[2] -Computername DNSServer-TXT -ZoneName $args[1] -DescriptiveText $args[3]

I wrote a Windows Python2 implementation:
https://github.com/own3mall/win-acme-acme-dns-python
Hope it helps someone.  Thanks @EddieGreen for your scripts.  They were helpful in helping me write mine.

That's cool, thanks for sharing this! I wouldn't mind linking to your repo from the documentation if you  could write a paragraph or so about your project. PR's are welcome to the win-acme.github.io repo!

@WouterTinus I would appreciate it if you would.  I updated the readme in my repository this morning.  Would you still like a longer description?  I think the repository sums it up nicely.

Well, I was mostly curious about the added value over the built-in acme-dns plugin. Initially I thought that you might have solved the problem of having to set up the acme-dns registration in the first place (which we can only do in interactive mode, not scripted), but reading through the actual script, it seems that's not the case.

@WouterTinus Well, I wasn't able to get win-acme to work with acme-dns using this format:
<EMAIL_ADDRESS>Didn't do anything or create any text records, so I created that python script.  It's possible I did something wrong though.

@own3mall do you have a custom version of acme-dns or a proxy in front of it? Standard acme-dns doesn't use that format of credential, just wondered what you are using.

@webprofusion-chrisc
I'm using the latest release of acme-dns:
https://github.com/joohoi/acme-dns/releases/tag/v0.8

Ok, I'm assuming though that you're consciously running basic authentication (user:password@) to protect the acme-dns API access. If you're not actually running basic authentication then there's no need for the user:password@ part of the url.

Correct, though that is how acme-dns controls the update process by default, and I couldn't get win-acme to update text records without my python script.

I think the trick to that is to only secure the registration endpoint. The update endpoint is already protected with the key.

@own3mall no, basic-authentication is not required for acme-dns to work and instead it uses http headers (not the url) to pass a generated usernames/password that's created when the client (win-acme) first communicates with the acme-dns server. Basic authentication would be a special case where you implement extra controls to prevent others from using your acme-dns server for their own domains.


feat: add microseconds support to timestamp format

Prior to this patch, this would require a custom constructor in the form of:
static fn(float | int $timestamp): DateTimeImmutable => new
DateTimeImmutable(sprintf("@%d", $timestamp)),

This bypasses the datetime format support of Valinor entirely. This is required because the library does not support floats as valid DateTimeInterface input values.
This PR adds support for floats and registers timestamp.microseconds (U.u) as a valid default format.

Excellent! Thanks you @NanoSector.


Add operator-sdk scorecard bundle test to CI. Closes #1565

Signed-off-by: Israel Blancas<EMAIL_ADDRESS>Which problem is this PR solving?

Fixes #1565

Hi @pavolloffay, could you take a look to into this PR? Thanks!
The CI is failing because some tests are not passing so I think we have 3 options:

Remove the tests that are not passing and add a note explaining why do we just run some  tests
Remove the tests that are not passing and create issues to make them pass
Block this PR until all the tests pass

Sorry, I don't have a lot of background about this tests and if we should fix them or not 😅  Thanks!

Overall it looks good to me! Thanks for picking this up heart
A couple of notes:
* The PROJECT file is missing scorecard plugin https://github.com/jaegertracing/jaeger-operator/blob/master/PROJECT#L5

* I would suggest not blocking this PR and merge it with passing the most important tests: `olm-crds-have-validation-test` ,` olm-bundle-validation-test`, `basic-check-spec-test`. The basic test should really pass. It concerns me that we didn't migrate the project to 1.13 correctly.

Why do you think we didn't migrate the project correctly?

I fixed some metadata things from the CSV, now the scoreboard tests are passing.


Document use of Github Packages

As an engineer
I want to know how we are using Github Packages
So I can use it for my own purposes

Added to contributing.md.


#13774: Fix subalpha_bw op (#14341)

Ticket
N/A
Problem description
Unit test for SFPU LLK doesn't test the whole domain of the SFPU functions, data format is hardcoded to bfloat16 and input block and the number of tiles are limited. This PR resolves those issues.
What's changed
The SFPU unit test (test_sfpu_compute.cpp) now sweeps over:

the whole domain of the SFPU functions
fp_32_dest_accum_en flag
different input block shapes
different number of tiles
different data formats (currently Float32, Float16_b, Bfp8_b and Bfp4_b for input, and Float32/Float16_b for output)

Checklist

[x] Post commit CI passes -  #18781
[ ] Blackhole Post commit (if applicable)
[ ] Model regression CI testing passes (if applicable)
[ ] Device performance regression CI testing passes (if applicable)
[x] New/Existing tests provide coverage for changes

Mistake while creating a PR.


Move test_main to unittest.

I migrated one of our stateless tests to the unit tests folder,
This folder should contain all tests that are not relying on any IO or state.
I think this could be the first type of tests that we do.
(and it might worth splitting our tests between unit/integration/system tests).
what do you think?

@assafdayan @ziv17 Test Masters, what do you think?

Also adding our third Tests Master @DavidShemian - what do you say?


[DataFrame] - Add DataFrame::distinct binding

Close #29

Thanks @francis-du! It looks like there is a Clippy issue on all of these PRs.

There are clippy failures like this - not related to your changes:
4 |         default_catalog: &str,
   |                          ^ help: if you would like to reborrow, try removing `&*`: `&`

I saw these recently on another project. We probably need to switch to using String instead of &str in pyo3 methods. Not sure why we are suddenly seeing this now though.

This is a new lint in release 1.63.0
https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref

@francis-du could you merge latest from master on these PRs? I fixed the clippy issue

@francis-du could you merge latest from master on these PRs? I fixed the clippy issue

OK 👌

Looks like a linting issue

Looks like a linting issue

It has been fixed, please review

Thanks @francis-du!


Added depends on to docker-compose.yml

Added the following lines to both scraper and torrentio services
depends_on:
  - mongodb
  - postgres

I get an error when trying to add these?

Thank you


Initialize global variable MINION_IPS in setClusterInfo function

Initialize global variable MINION_IPS in setClusterInfo function.
MINION_IPS is defined as a global variable, and is concatenated with other nodeIP.
When setClusterInfo is called for many times, this could cause potential problems.
Such as, you will have MINION_IPS=<IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS> which is obviously wrong.

@hw-qiaolei I see you changed the title, you need to change util.sh also.
Thanks!
--brendan

LGTM.  THanks for the PR.

LGTM but please squash your commits. Thanks!


Rocblas rocm

Thanks for your contribution! Unfortunately, tensorflow/runtime is currently not
accepting contributions. Please see the
Contribution Guidelines for
more information.

@chsigg @hanbinyoon @deven-amd

This PR was manually merged in e09c0076f12013f20dc38a6f95d501ba18bb397f.


[Android][UWP] Target items can't be added to ToggleVisibility programatically

Platform

Android
UWP

Version of SDK
master
Issue
ToggleVisibility actions can't be added items through code, there are no addItem or other similar methods

In UWP you can add targets by adding them to the AdaptiveToggleVisibility.TargetElements vector.

Android has the same way to access to the target element list as UWP


DM: Session deep-link page

For https://github.com/vector-im/element-web/issues/26000 to fully function we'll need support on the MAS side to perform the logout of a session in response to a deeplink navigation.
https://github.com/matrix-org/matrix-spec-proposals/blob/hughns/sso-redirect-action/proposals/3824-oidc-aware-clients.md#definition-of-oidc-aware proposes the convention of ?action=session_end&device_id=<device_id>.
ACs

The deep link set up in https://github.com/vector-im/element-web/issues/26000 causes the respective sessions to be signed out after confirming a dialog
TBD: How are we gonna reflect that the sign-out happened in the UI?

EW develop/nightly is now generating appropriately formatted deep links which could be used for testing.


New release version breaking existing sites

The latest version publised for pick a date i.e. 3.6.0 is breaking the existing site code which was running on 3.5.6. Will recommend publishing the new code as a major release instead of minor release as it breaks existing code.

Hi, in general we recommend using lockfiles.
What exactly is not working anymore?

@gautam-in looking at the commit, only some CSS optimizations were done? What is breaking for you?
https://github.com/amsul/pickadate.js/commit/4f9e01d3df01f45f99f2229aa47b72d7471e2baa
@DanielRuf will the 3.6.0 release also "reach" CDNJS automatically?

@gautam-in looking at the commit 4f9e01d, only some CSS optimizations were done? What is breaking for you?

You have to check all commits between this tag and the previous tag / release ;-)

https://github.com/amsul/pickadate.js/compare/3.5.2...3.6.0

Aah, yeah, was a bit to quick. Sorry

@holtkamp regarding a CDNJS update, see https://github.com/cdnjs/cdnjs/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc
You can also use unpkg.
https://unpkg.com/pickadate/
In general I would not recommend the usage of CDNs as they can have and often had outages and there are privacy issues and other things (would not work without an internet connection).

As mentioned in https://github.com/amsul/pickadate.js/issues/1138#issuecomment-473473523, v3.6.1 should resolve this issue.


Bash guide: provide an example for iroha_client_cli with a JSON flag

How does iroha_client_cli json flag behave?
Is it iroha_client_cli json file.json or does it use a pipeline like cat file.json | iroha_client_cli json?
Requested in the community today by Harini Ravikumar.

According to @astrokov7, the initial issue related to this task is https://github.com/hyperledger/iroha/issues/3274

Consider creating a separate JSON-only guide


Bug 2319102:  core: fix deletion of the osd-replace-config cm

MustDelete DeleteOption was set to true when deleting osd-repalce-config configMap.  This cm won't existing after all the OSDs get migrated. So deletion of the non-existent cm will result in error. This PR removes mustDelete: true from the DeletionOption when deleting osd-replace-config configmap
Signed-off-by: Santosh Pillai<EMAIL_ADDRESS>(cherry picked from commit 8dd237b460b589315f198e7885611e4926842750)

Checklist:

[ ] Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
[ ] Reviewed the developer guide on Submitting a Pull Request
[ ] Pending release notes updated with breaking and/or notable changes for the next minor release.
[ ] Documentation has been updated, if necessary.
[ ] Unit tests have been added, if necessary.
[ ] Integration tests have been added, if necessary.

/hold

/hold cancel


Need Inteface Example

Hi I  really like the concept of this library and want to implement in my project.
Could you provide me a example way of implementing this library?
Thanks.

There are examples in the README.markdown
On Wed, Aug 17, 2016 at 6:18 AM, Irfan Khan<EMAIL_ADDRESS>wrote:

Hi I really like the concept of this library and want to implement in my
project.
Could you provide me a example way of implementing this library?
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/phoenixwebgroup/DotNetMongoMigrations/issues/21, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAK_3arXQoq0LQ3s28vzPzhuklZ3qlXgks5qguASgaJpZM4JmTMQ
.

Yes, I saw those example queries. I was looking for complete visual studio solution to check to see how this is actually implemented at higher level.

If you set one up, let me know and I can link to it, but there's nothing at this time.


Failed to resolve entry for package "@examples/lezer-gdscript"

When attempting to run asset-code I get the following error:
Internal server error: Failed to resolve entry for package "@examples/lezer-gdscript". The package may have incorrect main/module/exports specified in its package.json.

Was able to get this working by running:
npm run generate and npm run build in the utils/lezer-gdscript directory.
Should probably be fixed so that it works out-of-the-box, but this should at least fix it for now.


check camelcase in linter and add special handling

This checks camel cases, and makes shorthands such as TLF and ID legit. Although in Go it'd still be TlfMessage unless we change the Go emitter.
r? @gabriel @maxtaco @patrickxb Thanks!

Also if people like this change, it should go in before #5004

The commits b1e1e72a02cd...04a19b26acf6 introduce visual changes on linux. :mag_right: 1 changed

Changed: Chat_Input-Emoji_Open (before) (after)


<EMAIL_ADDRESS>decompress error

https://github.com/ScoopInstaller/Extras/issues/14437#issuecomment-2522568417
May relate to ScoopInstaller/Main#6261.


AWS Lambda not supported service message

Would anyone have any idea why AWS Lambda is giving the following error message?

terraformer import aws --resources=lambda --regions=us-west-2
2020/02/13 17:28:39 aws importing region us-west-2
2020/02/13 17:28:39 aws importing... lambda
2020/02/13 17:28:39 aws: lambda not supported service

I am using

terraformer version
Terraformer v0.8.5

and

terraform version
Terraform v0.12.18

provider.aws v2.25.0

and
aws --version
aws-cli/1.16.102 Python/2.7.16 Linux/4.14.154-99.181.amzn1.x86_64 botocore/1.12.92
thanks

AWS Lambda support was introduced in Terraformer v0.8.6 - https://github.com/GoogleCloudPlatform/terraformer/releases/tag/0.8.6


Check IP Services - Plugin

Configurable check IP services.
Used by Dynamic DNS services to check IP addresses.
Configure as many check IP services as desired.  The first (highest in the list) that is enabled will be used as the default.
Include verify peer option.
A future possibility could be to add an option to the Dynamic DNS entires to use a specific check IP service.
Allows additional/private check IP services to be added and set as the default.
Note:
The new files "services_checkip.php" and "services_checkip_edit.php" are modeled after the OPNsense files "services_dyndns.php" and "services_dyndns_edit.php".

Dependency:
https://github.com/opnsense/core/pull/2232

Initially I was heading down the MVC framework path.  But I didn't come across how to handle the config for multiple services array.  So I modeled it after the DynDNS plugin.
The check ip services plugin provides a ui for creating/managing check ip services in the config.  The services.inc: get_dyndns_ip() then uses the first one that is enabled.  PR core/#2232 (check ip services - plugin support) provides that capability.
The factory default checkup.dyndns.org is a throttled service and sometimes is slow to respond.  For instance sometimes it doesn't respond to the first request.  So being able to configure other/private services is beneficial.

I think we should provide this from core, hide it somewhere under system settings?

One more thought: If we had a widget or at least a status page for this to simply show the external IP for an interface that would make the feature useful without DynDNS or RFC 2136.

If it's just a simple location and credential setting, isn't it an option to just let the user provide the service and credentials in the existing page?

@AdSchellevis rfc and dyn have been split for clarity. it's difficult to provide a unified experience without duplicating code or integrating a core service for them. another plugin seems a bit too complicated for UX.

@fichtner I don't mind adding some pages to core, it just seems a bit large for the functionality to achieve, but if there's no logical spot to place this at the moment, I agree an additional input is indeed required and should be in core to avoid confusion later.

Plugin or core matters not to me either way.
I went the plugin route because it's only needed for those who wish to use a check ip service other than the hard coded factory default.  Thereby keeping it out of the ui for everybody else.
But I'm good with it being in core too.  Probably easier to implement too.

@NOYB Ok, keep the file layout as is, but push it to core please. We'll pick it up from there :)

@AdSchellevis are you ok with this as a static page addition? maybe we can merge both pages for clarity or wrap as MVC before releasing it in 18.1.x later on.

@fichtner I wouldn't spend too much time on it now, as long as the code is readable and isolated in core I'm fine with it... If we can merge the functionality in another settings page that's more logical, that would probably be the best option in the time being.  How about integrating it with System->General->Settings  or Miscellaneous?

@fichtner
Do I push only the services_checkip.php and services_checkip_edit.php files?  Or also the MVC XML files?
Also should I push it as a new PR or add it to the Check IP Services - Plugin Support core PR#2232

@AdSchellevis Ok, for now that's just bending Menu.xml to land in System: Settings: XXX, we can move the code to an existing page later if needed. good thing these settings pages are static so no trouble.
@NOYB keep all files in src/ ... it's perfect.

@NOYB  separate PR, this will go in first :)

Isn't that page convertable to MVC like #570 as an example.

Yeah, it's probably best to do this. Closing PR as merged to core as a starting point.


Property changed event not fired if old and new values are both falsy

Description
I have a paper-input bound to some property. That property's value is 0. The input is correct shown to be value 0. I focus the field and backspace the 0 and the field is now empty. Because of this line https://github.com/Polymer/polymer/blob/1.x/src/lib/bind/accessors.html#L236 I do not get a <my-property>-changed event notification
A possible fix is simply changing the != to a !== but I worry that could cause very strange behavior in some people's applications.
Live Demo

https://jsbin.com/gucacokuto/1/edit?html
Steps to Reproduce
In the demo you can reproduce this: On fresh page load, the input should be 0. Focus the input and backspace, input will be empty but no alert will be shown. Enter in a new value, alert will show new value. Backspace this value, you will get an alert with empty as the value. If you put in 0 in the input again then backspace you will get an alert. This seems strange at first but that's because the value is actually "0", not 0
Expected Results
Expected to get a change notification when a value goes from integer 0 to ""
Actual Results
No change notification is given
Browsers Affected

[X] Chrome
[ ] Firefox
[ ] Edge
[ ] Safari 9
[ ] Safari 8
[ ] IE 11

Versions

Polymer: v1.11.0

I dont think we are updating Polymer 1 with these kind of changes. Does
this bug still occur with Polymer 2?
On Wed, 2 May 2018, 00:28 Shawn Biddle<EMAIL_ADDRESS>wrote:

Description
I have a paper-input bound to some property. That property's value is 0.
The input is correct shown to be value 0. I focus the field and
backspace the 0 and the field is now empty. Because of this line
https://github.com/Polymer/polymer/blob/1.x/src/lib/bind/accessors.html#L236
I do not get a -changed event notification
A possible fix is simply changing the != to a !== but I worry that could
cause very strange behavior in some people's applications.
Live Demo
https://jsbin.com/gucacokuto/1/edit?html
Steps to Reproduce
In the demo you can reproduce this: On fresh page load, the input should
be 0. Focus the input and backspace, input will be empty but no alert will
be shown. Enter in a new value, alert will show new value. Backspace this
value, you will get an alert with empty as the value. If you put in 0 in
the input again then backspace you will get an alert. This seems strange at
first but that's because the value is actually "0", not 0
Expected Results
Expected to get a change notification when a value goes from integer 0 to
""
Actual Results
No change notification is given
Browsers Affected

Chrome
Firefox
Edge
Safari 9
Safari 8
IE 11

Versions

Polymer: v1.11.0

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Polymer/polymer/issues/5213, or mute the thread
https://github.com/notifications/unsubscribe-auth/AFrDb6CqfzkJQnKoWX7e6NvI3nJMK5_nks5tuOGQgaJpZM4TumBF
.

@TimvdLippe no idea, don't use v2. @kevinpschaaf told me to drop in an issue after I brought it up in Slack

My workaround, for anyone else that runs into this problem, is to have the input bind to a dummy value, when that value is updated either by a Polymer -changed event or a Plain Old DOM Event™ keyup on the input element I send the value to a debounced function that will actually propagate the value to the real property I want to update. It's a bit of a circumambulation but it gets the job done.
Like so:
<input is="iron-input" bind-value="{{_proxyValue}}" on-keyup="_handleInputChange">

// ...

<script>

// ...

properties: {
  _proxyValue: {
    type: Number,
    observer: '_handleProxyValueChange',
  },
  valueObject: {   // real object I want to update
    type: Object,
    notify: true,
  },
},

// initially set the _proxyValue to the real value
observers: [
  '_valueObjectValueChange(valueObject.value)',
],

_valueObjectValueChange(newValue) {
  this._proxyValue = newValue;
},

// called when we get a real Polymer change event
_handleProxyValueChange(newValue) {
  this._pendingValue = newValue;
  this.debounce('valuechange', this._forwardChangeEvent, 100);
},

// called both when we get a proper polymer change event and a PODE but the debounce will handle the problem of calls stacking up
_handleInputChange(e) {
  const newValue = e.target.value;
  const cleanedValue = newValue === '' ? null : newValue;
  this._pendingValue = cleanedValue;

  this.debounce('valuechange', this._forwardChangeEvent, 100);
},

_forwardChangeEvent() {
  this.set('valueObject.value', this._pendingValue);
},

// ...

</script>


Unable to ssh with reason -1

Hi
I am getting below exception while connecting to the server.
NMSSH: Socket connection to xxxx on port 22 failed with reason -1, trying next address...
NMSSH: Failure establishing socket connection
NMSSH: Disconnected
Below is the code that I am using:

(void)connectToServer {
NMSSHSession *session = [NMSSHSession connectToHost:@"xxxx" withUsername:@"xxx"];
if (session.isConnected) {
[session authenticateByPassword:@"xxx"];
  if (session.isAuthorized) {
      NSLog(@"Authentication succeeded");
  }

}
NSError *error = nil;
NSString *response = [session.channel execute:@"ls -l /var/www/" error:&error];
NSLog(@"List of my sites: %@", response);
//BOOL success = [session.channel<EMAIL_ADDRESS><EMAIL_ADDRESS>[session disconnect];
}

I am using xcode 9.

Any updates on this ?

Please delete the messages asking to look at this from the other thread. Keep threads on topic.
This, to me, doesn’t look like a problem with NMSSH. Are you sure your device can connect to the internet? Can you connect to your server using the same credentials using another SSH client?

Hey Pawel
Thanks for responding.
Yes, I am afraid it doesn't look like a problem with NMSSH.
But I am able to SSH into the machine from my mac using terminal. I am not sure why the NMSSH is unable to connect to it.
-Nitin

Running on the simulator or a physical device?

physical device.
The machine to which I'm trying to connect to is a VM running on Vmware ESX.
I am able to ping and ssh the vm from my mac.

That would explain it. Is the VM network in bridge mode? Otherwise, it won’t be seen from your local network, only from the host machine (your Mac).

Please pardon me I'm a bit naive at this.
How am I able to ssh into the VM from my mac terminal but NMSSH code running on same mac is not able to connect to it ?

I assumed you were running the code on an iPhone or iPad. So you’re saying it’s a MacOS app that runs on your Mac?

yes, it is a mac os app.

LogInspector.zip
This is my small project, if you can find some time to look into it.

Are you connecting via HTTPS? If not, the connection is blocked by App Transport Security (unless you’ve already added an exception to Info.plist).

it highlights this line in the code after failing.
libssh2_session_set_blocking(self.session.rawSession, 1);

I have the  same question!how to solve it?

LogInspector.zip
This is my small project, if you can find some time to look into it.

I use your project also get this error " failed with reason -1, trying next "

I solve this problem ! I found that I doesn't grant the app network privileges

I solve this problem ! I found that I doesn't grant the app network privileges

Is this your solution?


Animbits: Spring Manager

Tool to create temporal spring chains in any hierarchy

[x] namespace support

[x] Ask when the selected object doesn't have the same namespace

[x] context menu:

[x] apply,
[x] bake,
[x] delete,
[x] select members (affected objects)
[x] support  multiselection (presets) for right-click actions

[x] Filter list by name
[x] Add confirm pop up for delete
[x] refresh list button
[x] Qsettings to store the latest library path
[ ] Add support for twist (roll) damper to avoid flip rotation??  First, check if with the Bake simulation option can be avoided.
[x] tooltip list of members (affected objects) >> Maybe slow down the tool behavior?
[x] Errors to catch:

[x] check if object exist when apply preset, if not, just skip with warning logging


Can I load the json file from device?

I'm my app I want users to be able to design Android layout in json locally, then pass i can use your library to load it dynamically in another activity.

Nice idea! However, the goal of this library is to enable remote layout changes. I'd be glad if you made a PR with a feature that allows you to load local JSON file. For now, you can try to load it using its URL to construct new Dynamico object. Please, take a look at this StackOverflow thread to find out how to pull that off.

Sorry I've never done a pull request. I don't know how to.

Have you tried to load local JSON file via URL? If that's not working, you can add it as a feature. Read this after you finish it. Thanks and good luck! :)

Hey bro, I tried to load the json file from local storage. I got weird results.

It only recognizes TextView(not tried recursive views yet, but I couldn't use Button).
It doesn't get Array of Views(it only gets the first view, I know that by logcat)
I'm still debbuging tho, but I'm going to open a PR with a feature request, because I had to edit your source code nastily to get where I am.


Start of work to add script schema

This is the start of work to define a script schema (notice I'm opening as a draft because I need to figure out a lot still!). Specifically I plan to:

read in the example configs and develop the json spec to allow for fields that are required, optional, can only have one of either shell/run, etc.
Notice that the schemas have a URL! We can do this by deploying the repository to GitHub pages.
I need to add testing for the naming of the files and validation against the examples, this is quite a bit of work (to be done after this) so I'll open a separate issue.

Signed-off-by: vsoch<EMAIL_ADDRESS>

okey doke! This is ready for review! What I've finished here is:

a base schema (under global) that can be used to confirm that any config file is a list of key:value pairs, where the value is a test configuration of some type. We require a version, just like docker-compose, etc, because build test needs to know what version to use to parse the file content.
a script schema, with a specification for a simple type "script" that requires the recipe to have this type, and then either a run OR a shell command (that was tricky to figure out but I think I did it!)
a testing file to test both organization, parsing of the files, and that the examples validate against the schemas.

I'm closing up shop for today, but my suggestion for moving forward would be to review this PR, adn treat this first script version 0.0.1 as a release candidate, with intention to help me update the buildtest logic to allow for support from these schemas.

Great! I'll work on invalids next. When that is done we should have enough structure to add to buildtest.


Remove code duplication in xor encoding.

This goes into the sparsehistogram branch. Nothing to see here if you aren't @Dieterbe or @codesome .
This adds functions xorRead and xorWrite. They have a quite involved lists of arguments and return values, but I think it still makes sense to not duplicate the even more involved code that handles the XOR encoding/decoding.

I found the bug (didn't return old leading/trailing numbers when encoding a 0).


-o not get build remapped!

https://github.com/oddlama/vane/blob/2a32f52124c60459e0a6e5597f69fc24b8e248e4/remap_patched_paper_for_development.sh#L13
LOL what is? -o "${paper_jar/.jar/_remapped.jar}" nice get file... but i dont get file...

good work!

Comment bodywhere should I search for your file?

I'm sorry but it is absolutely unclear to me what you are asking. I know language can be a barrier to some, so if this is the case for you, I'd like to recommend using https://www.deepl.com/translator, which can provide translations on a quite high level.
Also please stick to one issue instead of opening multiple ones for the same problem.

Feel free to clarify under the closed issue, and I will reopen it.


Make transport protocol sampling rate a 32-bit field

Otherwise playback fails with sampling rate of 96 kHz, because due to the integer overflow, ALSA thinks the actual sampling rate is around 30 kHz.
I've verified that this fixes the playback issue at least with LDAC (#104).
Thank you for the great work with bluez-alsa! I'm so happy being finally able to get rid of my headphone wires. :smile:

WOW, many thanks for spotting that!
As a side note, I'm assuming you've got LDAC capable speaker/headphone :D Could you confirm that LDAC Source works for every sampling frequency and for every channel mode (you will have to manually "enable" particular configuration https://github.com/Arkq/bluez-alsa/blob/ldac/src/bluez-a2dp.c#L199)? If so, I will be able to finally merge LDAC support to master.
Also, if you are I willing to test some more, I'm trying to setup LDAC ABR (Adaptive Bit Rate). Right now it won't work because my assumption about the value returned by the ioctl(TIOCOUTQ) was not right. But when I make the code work (in theory), will you test it (probably next week)?