JSX Support Issue

Hi! 👋
Firstly, thanks for your work on this project! 🙂
What happened?
Got this error after configuring the @rnx-kit/babel-preset-metro-react-native in the Babel Config as the only preset. Can you check?
Code - https://github.com/yushanwebdev/Instagram/tree/rnx-kit-jsx-issue

Affected Package
@rnx-kit/babel-preset-metro-react-native
Version
1.1.2
Which platforms are you seeing this issue on?

[X] Android
[X] iOS
[ ] macOS
[ ] Windows

System Information
System:
    OS: macOS 12.6
    CPU: (8) arm64 Apple M1
    Memory: 115.75 MB / 8.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.10.0 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 8.19.2 - /opt/homebrew/bin/npm
    Watchman: 2<IP_ADDRESS> - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.3 AI-213.7172.25.2113.9123335
    Xcode: 14.1/14B47b - /usr/bin/xcodebuild
  Languages:
    Java: <IP_ADDRESS> - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: ^0.66.0 => 0.66.5
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to Reproduce
Run this command in order.

yarn
cd iOS && pod install && cd ../
yarn run ios

Code of Conduct

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

Hi @yushanwebdev, I checked out your repro but I can't repro the issue:
% yarn react-native bundle --entry-file index.js --platform ios --bundle-output main.ios.jsbundle --dev true
yarn run v1.22.19
$ /~/Instagram/node_modules/.bin/react-native bundle --entry-file index.js --platform ios --bundle-output main.ios.jsbundle --dev true
                Welcome to Metro v0.72.3
              Fast - Scalable - Integrated

info Writing bundle output to:, main.ios.jsbundle
info Done writing bundle output
warn Assets destination folder is not set, skipping...
✨  Done in 3.76s.

% yarn react-native bundle --entry-file index.js --platform ios --bundle-output main.ios.jsbundle --dev false
yarn run v1.22.19
$ /~/Instagram/node_modules/.bin/react-native bundle --entry-file index.js --platform ios --bundle-output main.ios.jsbundle --dev false
                Welcome to Metro v0.72.3
              Fast - Scalable - Integrated

info Writing bundle output to:, main.ios.jsbundle
info Done writing bundle output
warn Assets destination folder is not set, skipping...
✨  Done in 7.22s.

Is it some caching issue?

@tido64 I am facing the same issue, have tried resetting the cache but still the same result, old config is working fine.

@shivanshrajpoot-sc, I need a repro to investigate the issue. I can't reproduce the issue in the repo that OP set up.


Tests failing on i386 and armhf

Hello,
The tests are failing on i386 and armhf. For the same reason.
=== RUN TestConfig_Parse
--- PASS: TestConfig_Parse (0.00s)
[collectd] 2015/08/11 16:32:32 collectd UDP started
[collectd] 2015/08/11 16:32:32 collectd UDP closed
--- PASS: TestService_CreatesDatabase (0.01s)
[collectd] 2015/08/11 16:32:32 collectd UDP started
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x4 pc=0x99284]

goroutine 17 [running]:
sync/atomic.addUint64(0x10764524, 0x1, 0x0, 0x1, 0x0)
	/usr/lib/go/src/sync/atomic/64bit_arm.go:31 +0x70
github.com/influxdb/influxdb/tsdb.func·002()
	/«BUILDDIR»/influxdb-0.9.2+dfsg1/obj-arm-linux-gnueabihf/src/github.com/influxdb/influxdb/tsdb/batcher.go:77 +0x1ec
created by github.com/influxdb/influxdb/tsdb.(*PointBatcher).Start
	/«BUILDDIR»/influxdb-0.9.2+dfsg1/obj-arm-linux-gnueabihf/src/github.com/influxdb/influxdb/tsdb/batcher.go:104 +0x2b8

Full logs are available here: https://buildd.debian.org/status/logs.php?pkg=influxdb&ver=0.9.2%2Bdfsg1-2
Related Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795640
Could that be related to https://github.com/influxdb/influxdb/issues/3213 ?
I'm happy to help however possible.
When this is fixed, we should enable those architectures on CircleCI. Those kind of issues are easier to fix when they are noticed early!

The change for #3213 has gone in. Are you telling me you are still seeing issues, even with that change in place?

@otoolep yes,  this is with InfluxDB 9.2.1.

OK, thanks @aviau -- right now we have no leads as to why this is failing. We had hoped it was an alignment issue, but it does not appear to if you are running with the latest code.
Copy @DanielMorsing who worked on this with me.

Wait.  Was this included in the 0.9.2 release?

@aviau -- I asked if you were seeing the problem with the fix in place. I saw you responded "yes" and stopped there. :-)
The change is no in 0.9.2, but will be in 0.9.3.

@otoolep It works... almost!
I have one failing test:
# github.com/influxdb/influxdb/toml_test
src/github.com/influxdb/influxdb/toml/toml_test.go:29: constant<PHONE_NUMBER>0 overflows toml.Size

It looks like the skip code isn't working:
toml/toml_test.go:
func TestSize_UnmarshalText_GB(t *testing.T) {
        if typ := reflect.TypeOf(0); typ.Size() != 8 {
                t.Skip("large gigabyte parsing on 64-bit arch only")
        }

Looks like
if strconv.IntSize != 64 {

Would work.

Wouldn't a check of GOARCH be better?
https://golang.org/pkg/runtime
On Mon, Aug 17, 2015 at 3:15 PM, Alexandre Viau<EMAIL_ADDRESS>wrote:

Looks like
if strconv.IntSize != 64 {
Would work.
—
Reply to this email directly or view it on GitHub
https://github.com/influxdb/influxdb/issues/3701#issuecomment-131980074.

Actually, the build fails. So there is nothing to do at runtime hehe.

Hmmm, right, @aviau

What about this?
From f81ba1c821d032772a0a6a31b0afd6d8f859ba29 Mon Sep 17 00:00:00 2001
From: Alexandre Viau<EMAIL_ADDRESS>Date: Mon, 17 Aug 2015 23:15:38 +0000
Subject: [PATCH] Disable 64bit tests properly

---
 toml/toml_test.go                       | 16 ----------------
 toml/toml_unmarshal_linux_amd64_test.go | 16 ++++++++++++++++
 2 files changed, 16 insertions(+), 16 deletions(-)
 create mode 100644 toml/toml_unmarshal_linux_amd64_test.go

diff --git a/toml/toml_test.go b/toml/toml_test.go
index 2890aa3..f3a4379 100644
--- a/toml/toml_test.go
+++ b/toml/toml_test.go
@@ -1,9 +1,7 @@
 package toml_test

 import (
-	"reflect"
 	"testing"
-
 	"github.com/influxdb/influxdb/toml"
 )

@@ -17,20 +15,6 @@ func TestSize_UnmarshalText_MB(t *testing.T) {
 	}
 }

-// Ensure that gigabyte sizes can be parsed.
-func TestSize_UnmarshalText_GB(t *testing.T) {
-	if typ := reflect.TypeOf(0); typ.Size() != 8 {
-		t.Skip("large gigabyte parsing on 64-bit arch only")
-	}
-
-	var s toml.Size
-	if err := s.UnmarshalText([]byte("10g")); err != nil {
-		t.Fatalf("unexpected error: %s", err)
-	} else if s != 10*(1<<30) {
-		t.Fatalf("unexpected size: %d", s)
-	}
-}
-
 /*
 func TestConfig_Encode(t *testing.T) {
 	var c influxdb.Config
diff --git a/toml/toml_unmarshal_linux_amd64_test.go b/toml/toml_unmarshal_linux_amd64_test.go
new file mode 100644
index 0000000..f81a104
--- /dev/null
+++ b/toml/toml_unmarshal_linux_amd64_test.go
@@ -0,0 +1,16 @@
+package toml_test
+
+import (
+        "testing"
+        "github.com/influxdb/influxdb/toml"
+)
+
+// Ensure that gigabyte sizes can be parsed.
+func TestSize_UnmarshalText_GB(t *testing.T) {
+        s := toml.Size
+        if err := s.UnmarshalText([]byte("10g")); err != nil {
+                t.Fatalf("unexpected error: %s", err)
+        } else if s != 10*(1<<30) {
+                t.Fatalf("unexpected size: %d", s)
+        }
+}
--
1.9.1

How does this work? Filename-based?

Yeah.
See File Suffixes: http://dave.cheney.net/2013/10/12/how-to-use-conditional-compilation-with-the-go-build-tool

Sweet, sounds like a great solution. Wanna generate a PR?

Wanna generate a PR?

Yep. Right after I'm done testing

Same as https://github.com/influxdb/influxdb/issues/3732

@otoolep
I have just uploaded <IP_ADDRESS>+dfsg1-1 to Debian.
Thanks to your help, we have fixed the InfluxDB build on i386 and armhf! InfluxDB will be available for these architectures on Debian in a couple hours. On Ubuntu, tomorrow.


The default for RefreshTokenExpiration is missing in the documentation

We're working on changing the RefreshTokenExpiration from Absolute to Sliding, and noticed that the default is not specified in either of the 2 places that this is documented (the Refresh Tokens, and Client), where most other settings have a default.
Is there a reason that this is left out, or can I put in a PR to add it?

Thanks - yes, please. Submit a PR.

Thanks - yes, please. Submit a PR.


Name field does not include subtitle

In Legacy, the name field could include a subtitle for, say, instructions. In the Bakul project (https://bakul.seasketch.org), the name field for one sketch class (8.1 Future seascape) had a subtitle with "Specify the type of development (e.g. beach, type of mining)".
Next (https://seasketch.org/bakul) currently doesn't allow you to create a subtitle for the name field. Possible?

Not currently possible. Name fields are handled as a special form element that doesn't have the features of the others.


Checked id key exists before iterating for friends

Faulty id fields cause a key exception for the friends endpoint. Added in a check to make sure that the key exists.

are there any other places we're trying to read fields from JSONFields? we should make sure we have those checks there too

are there any other places we're trying to read fields from JSONFields? we should make sure we have those checks there too

Do you think we put ourselves at obfuscating the error if we do this? Even if the server doesn't throw an error now, do you think the FE could break somewhere down the road regardless?


Environment variable to manage debug settings

Changes

Adds DEBUG_MANAGED variable, and when true will:

Hide the certificate UI in the connection settings
Control secure mode based on if DEBUG_CA_PATH environment variable is set
Hide 'setup debug' commands
Hide debug setup walkthrough (PR in a separate repo)

Checklist

[ ] have tested my change
[ ] updated relevant documentation
[ ] Remove any/all console.logs I added
[ ] eslint is not complaining
[ ] have added myself to the contributors' list in CONTRIBUTING.md
[ ] for feature PRs: PR only includes one feature enhancement.

@codefori/core Any chance I can get some additional testing? Next step to ensure the debugger continues to work as normal. It is working good for me, but extra coverage never hurts.


Python 3 compatibility

The user module was removed in Python 3 so steam.py fails. There isn't much more information about other than the fact that it's removed. The functionality does not seem to be replicated in the compatibility library six either. I have no idea how to fix it.

Never mind, it was a local module. I've been able to get Ice & pysteam working with Python 3.

What was involved in making it Python 3 compatible? I haven't looked at comparability at all, but is it possible to have a single code base that works with Python 2.7 and Python 3? That's what I would like to do ideally.

Most of it was changing relative imports into absolute imports, print function, removing the raw prefix from strings (not sure how this turns out with Py2.7). filter and map return iterators so they cause a few issues if the results are reused, adding with a list or introducing side effects without consuming the iterator.
I've written my code to support both 2.7 and 3 but I don't think I have 2.7 installed anymore so I haven't been able to test it.  Looking over the code I seem to have overwritten something from previous commit and I need to run the tests to see if the work in 3 but I could make a pull request after tidying if you'd like.

If you make a version that runs in both 2.7 and 3 that would be fantastic. That seems like something that would break easily though, so we should probably include a way to run the unit tests using python3 as well.

I am new to Git Hub, I have no coding experience at all. But I would like to thank you for creating ICE. Is there anyway to donate to the work you are doing on ICE? I am very grateful for what you and the community have done here. I realize this might not be the best place to post this, but I did not find a way to donate, and I would like to contribute in some way. Even if its just to say, a BIG thank you for bringing steam and emulation together.


[Feature Request] Header with image collapse on scroll

Would be awesome to have this kind of headers:
Android: http://imgur.com/dpoQnFS
iOS: http://g.recordit.co/kUN3F0zZJ4.gif

I agree

Would be awesome

+1

Hello all! At this time this is not something we plan on implementing in the framework, but it should be relatively easy for it to be done with the new layout refactor and would be awesome to see the community implement. Thanks for opening this issue, and if at some time in the future we decide to implement this in the framework i will reopen this issue. Thanks again!


The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received an instance of Object

Describe the bug
I am migrating tests from jest to vitest and ran into an error from this line https://github.com/vitest-dev/vitest/blob/4e60333dc7235704f96314c34ca510e3901fe61f/packages/vitest/src/node/pools/forks.ts#L33 or this line (these functions are identical, so I am not sure which is right) https://github.com/vitest-dev/vitest/blob/4e60333dc7235704f96314c34ca510e3901fe61f/packages/vitest/src/node/pools/vmForks.ts#L38
here is the stack trace
TypeError: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received an instance of Object
 ❯ Function.from node:buffer:319:9
 ❯ deserialize ../../node_modules/vitest/dist/chunks/resolveConfig.RxKrDli4.js:6716:67
 ❯ EventEmitter.onMessage ../../node_modules/vitest/dist/chunks/index.68735LiX.js:82:17
 ❯ EventEmitter.emit node:events:519:28
 ❯ Object.postMessage ../../node_modules/vitest/dist/chunks/resolveConfig.RxKrDli4.js:6711:39
 ❯ ChildProcess.<anonymous> ../../node_modules/tinypool/dist/index.js:216:30
 ❯ ChildProcess.emit node:events:519:28
 ❯ emit node:internal/child_process:951:14
 ❯ process.processTicksAndRejections node:internal/process/task_queues:83:21

Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-qyahuvyc?file=test%2Fbasic.test.ts
v argument in my case is
{
  v: {
    jsonrpc: '2.0',
    method: 'window/logMessage',
    params: {
      type: 1,
      message: 'Received message which is neither a response nor a notification message:\n' +
        '{\n' +
        '    "type": "Buffer",\n' +
        '    "data": [\n' +
        '        255,\n' +
        '        15,\n' +
        '        111,\n' +
        '        34,\n' +
        '        1,\n' +
        '        116,\n' +
        '        34,\n' +
        '        1,\n' +
        '        115,\n' +
        '        34,\n' +
        '        1,\n' +
        '        105,\n' +
        '        34,\n' +
        '        21,\n' +
        '        71,\n' +
        '        101,\n' +
        '        112,\n' +
        '        110,\n' +
        '        56,\n' +
        '        49,\n' +
        '        99,\n' +
        '        73,\n' +
        '        122,\n' +
        '        98,\n' +
        '        52,\n' +
        '        102,\n' +
        '        55,\n' +
        '        106,\n' +
        '        105,\n' +
        '        77,\n' +
        '        50,\n' +
        '        57,\n' +
        '        48,\n' +
        '        122,\n' +
        '        108,\n' +
        '        34,\n' +
        '        1,\n' +
        '        114,\n' +
        '        95,\n' +
        '        34,\n' +
        '        1,\n' +
        '        101,\n' +
        '        95,\n' +
        '        123,\n' +
        '        4\n' +
        '    ]\n' +
        '}'
    }
  }
}

System Info
System:
    OS: macOS 13.4
    CPU: (12) x64 Apple M2 Max
    Memory: 8.74 GB / 96.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.17.0 - ~/.local/state/fnm_multishells/55235_1734137834788/bin/node
    Yarn: 1.22.22 - ~/.local/state/fnm_multishells/55235_1734137834788/bin/yarn
    npm: 10.8.2 - ~/.local/state/fnm_multishells/55235_1734137834788/bin/npm
    Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
  Browsers:
    Chrome: 128.0.6613.114
    Safari: 16.5
  npmPackages:
    vitest: ^2.1.8 => 2.1.8

Used Package Manager
yarn
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[ ] The provided reproduction is a minimal reproducible example of the bug.

@AriPerkkio repro

Probably vscode-jsonrpc/node is interfering with IPC channel used by Vitest. This is a minimal repro:
https://stackblitz.com/edit/vitest-dev-vitest-iqv9ueqx?file=test%2Frepro.test.ts
import { test } from 'vitest';

test('repro', async () => {
  process.send!({ repro: 'boom!!' });
});

From your sample code, I'm not sure if actual IPC is necessary since you didn't manage a parent process. Maybe isn't it intended to mock out process here somehow?
      reader = new IPCMessageReader(process);
      writer = new IPCMessageWriter(process);

From your sample code, I'm not sure if actual IPC is necessary since you didn't manage a parent process. Maybe isn't it intended to mock out process here somehow?

idk, current tests worked fine with jest but not with vitest


Proper Accept header should be provided in createJsonQuery

Background
Currently createJsonQuery adds Content-Type: application/json to every request (except for GET and HEAD, obviosly) to mark the type of body content:
https://github.com/igorkamyshev/farfetched/blob/7432c75508576431ce3f7b676a6c53d65edced96/packages/core/src/fetch/json.ts#L46
Suggestion
But createJsonQuery also expects JSON in response, so, probably, if there is no hidden pitfalls - there should be Accept: application/json header added to every request, something like this 🤔
    ({ method, headers }) =>
     // reversed merge order
     // to allow any modifications in the user code
      mergeRecords({
        'Accept': 'application/json',
        'Content-Type': ['GET', 'HEAD'].includes(method!) ? undefined : 'application/json'
      }, headers)

Fixed in https://github.com/igorkamyshev/farfetched/commit/a3b87b675659eb5402df18e9126acdcb16aa637e and will be released as 0.10.6


fix cloudrun delta check

@anovis

Codecov Report

Merging #212 (34ccf73) into main (eb7a4b9) will decrease coverage by 0.44%.
The diff coverage is 62.22%.

@@            Coverage Diff             @@
##             main     #212      +/-   ##
==========================================
- Coverage   88.15%   87.71%   -0.45%
==========================================
  Files          35       35
  Lines        2829     2857      +28
==========================================
+ Hits         2494     2506      +12
- Misses        335      351      +16

Impacted Files
Coverage Δ

goblet/backends/cloudrun.py
72.85% <41.17%> (-10.48%)
:arrow_down:

goblet/backends/cloudfunctionv2.py
78.37% <50.00%> (-8.29%)
:arrow_down:

goblet/backends/backend.py
84.14% <80.00%> (-1.40%)
:arrow_down:

goblet/backends/cloudfunctionv1.py
97.22% <87.50%> (-2.78%)
:arrow_down:

goblet/tests/test_deployer.py
100.00% <100.00%> (ø)

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


L3/L4 constrained L7 enforcement for envoy-based proxy

Assigning to @jrajahalme as discussed.

Closed via #2974


TestCollector is flaky, again

2016/02/05 10:59:21 Creating pipe id foo

2016/02/05 10:59:21 Timing out pipe foo

2016/02/05 10:59:21 Pipe pipe-5577006791947779410 connection to <IP_ADDRESS>:51173 starting

2016/02/05 10:59:21 Creating pipe id pipe-5577006791947779410

2016/02/05 10:59:21 Closing pipe pipe-5577006791947779410

2016/02/05 10:59:21 Pipe pipe-5577006791947779410 connection to <IP_ADDRESS>:51173 exiting

--- FAIL: TestCollector (0.01s)

	collector_test.go:38:

		--- want

		+++ have

		@@ -1,28 +1,7 @@

		 (report.Report) {

		  Endpoint: (report.Topology) {

		-  Nodes: (report.Nodes) (len=2) {

		+  Nodes: (report.Nodes) (len=1) {

		    (string) (len=3) "bar": (report.Node) {

		-    ID: (string) "",

		-    Topology: (string) "",

		-    Counters: (report.Counters) {}

		-,

		-    Sets: (report.Sets) {}

		-,

		-    Adjacency: (report.IDList) <nil>,

		-    Edges: (report.EdgeMetadatas) {}

		-,

		-    Controls: (report.NodeControls) {

		-     Timestamp: (time.Time) 0001-01-01 00:00:00 +0000 UTC,

		-     Controls: (report.StringSet) <nil>

		-    },

		-    Latest: (report.LatestMap) {}

		-,

		-    Metrics: (report.Metrics) {

		-    },

		-    Parents: (report.Sets) {}

		-

		-   },

		-   (string) (len=3) "foo": (report.Node) {

		     ID: (string) "",

		     Topology: (string) "",

		     Counters: (report.Counters) {}

		@@ -101,6 +80,6 @@

		  },

		  Window: (time.Duration) 0,

		  Shortcut: (bool) false,

		- ID: (string) (len=19) "4324745483838182873"

		+ ID: (string) (len=16) "2734628a7a6460ef"

		 }

2016/02/05 10:59:22 Control connection to <IP_ADDRESS>:56294 starting

2016/02/05 10:59:22 Closing control connection to <IP_ADDRESS>:56294

2016/02/05 10:59:22 Closing control connection to <IP_ADDRESS>:56294

2016/02/05 10:59:22 Control connection to <IP_ADDRESS>:56294 exiting

FAIL

coverage: 45.3% of statements in github.com/weaveworks/scope/app, github.com/weaveworks/scope/common/exec, github.com/weaveworks/scope/common/fs, github.com/weaveworks/scope/common/hostname, github.com/weaveworks/scope/common/marshal, github.com/weaveworks/scope/common/mtime, github.com/weaveworks/scope/common/sanitize, github.com/weaveworks/scope/common/xfer, github.com/weaveworks/scope/probe, github.com/weaveworks/scope/probe/appclient, github.com/weaveworks/scope/probe/controls, github.com/weaveworks/scope/probe/docker, github.com/weaveworks/scope/probe/endpoint, github.com/weaveworks/scope/probe/endpoint/procspy, github.com/weaveworks/scope/probe/host, github.com/weaveworks/scope/probe/kubernetes, github.com/weaveworks/scope/probe/overlay, github.com/weaveworks/scope/probe/process, github.com/weaveworks/scope/render, github.com/weaveworks/scope/render/detailed, github.com/weaveworks/scope/report

FAIL	github.com/weaveworks/scope/app	1.319s

https://circleci.com/gh/weaveworks/scope/3194

https://circleci.com/gh/weaveworks/scope/3256


Application Exception: Exception during making request

This is an issue created automatically by GrammarNazi when an exception was captured.
Date (UTC): 12/28/2022 12:48:25
Exception:
Telegram.Bot.Exceptions.RequestException: Exception during making request
---> System.Net.Http.HttpRequestException: Network is unreachable (api.telegram.org:443)
---> System.Net.Sockets.SocketException (101): Network is unreachable
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.g__WaitForConnectWithCancellation|281_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation1.WaitWithCancellationAsync(CancellationToken cancellationToken)    at System.Net.Http.HttpConnectionPool.HttpConnectionWaiter1.WaitForConnectionAsync(Boolean async, CancellationToken requestCancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Telegram.Bot.TelegramBotClient.g__SendRequestAsync|21_0[TResponse](HttpClient httpClient, HttpRequestMessage httpRequest, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at Telegram.Bot.TelegramBotClient.g__SendRequestAsync|21_0[TResponse](HttpClient httpClient, HttpRequestMessage httpRequest, CancellationToken cancellationToken)
at Telegram.Bot.TelegramBotClient.MakeRequestAsync[TResponse](IRequest`1 request, CancellationToken cancellationToken)
at Telegram.Bot.Polling.DefaultUpdateReceiver.ReceiveAsync(IUpdateHandler updateHandler, CancellationToken cancellationToken)
Exception caught counter: 2.

I'll close this since hasn't happen for a while


Using the new line escape character

Hi,
In the demo we can use \n to go to the next line but here it's not there.
Is there any way we can add that here or is there anything I'm missing?
Thanks.

LOL;) NO, My phone is just severely damaged and overused!!! I’ll ask if I need it but I’ll figure this out!! Thank you!!
This is amazing!!!
Sent from Yahoo Mail for iPhone
On Saturday, May 26, 2018, 11:50 PM, nithin kashyap n<EMAIL_ADDRESS>wrote:
Hi,
In the demo we can use \n to go to the next line but here it's not there.
Is there any way we can add that here or is there anything I'm missing?
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.


How to track dependencies?

Ho can I go about tracking dependencies (it. ajax calls)? Right now I don't see any.

What a coincidence that this question was posted (and promptly answered) at the same time I was struggling with this very issue.  I was just just in the process of integrating this excellent library into our wasm client and was not seeing http requests to the server in the AI logging.  After making the recommended changes, I'm still not seeing any requests.  Here's an example:
<script type="text/javascript">
    !function (T, l, y) { var S = T.location, k = "script", D = "instrumentationKey", C = "ingestionendpoint", I = "disableExceptionTracking", E = "ai.device.", b = "toLowerCase", w = "crossOrigin", N = "POST", e = "appInsightsSDK", t = y.name || "appInsights"; (y.name || T[e]) && (T[e] = t); var n = T[t] || function (d) { var g = !1, f = !1, m = { initialize: !0, queue: [], sv: "5", version: 2, config: d }; function v(e, t) { var n = {}, a = "Browser"; return n[E + "id"] = a[b](), n[E + "type"] = a, n["ai.operation.name"] = S && S.pathname || "_unknown_", n["ai.internal.sdkVersion"] = "javascript:snippet_" + (m.sv || m.version), { time: function () { var e = new Date; function t(e) { var t = "" + e; return 1 === t.length && (t = "0" + t), t } return e.getUTCFullYear() + "-" + t(1 + e.getUTCMonth()) + "-" + t(e.getUTCDate()) + "T" + t(e.getUTCHours()) + ":" + t(e.getUTCMinutes()) + ":" + t(e.getUTCSeconds()) + "." + ((e.getUTCMilliseconds() / 1e3).toFixed(3) + "").slice(2, 5) + "Z" }(), iKey: e, name: "Microsoft.ApplicationInsights." + e.replace(/-/g, "") + "." + t, sampleRate: 100, tags: n, data: { baseData: { ver: 2 } } } } var h = d.url || y.src; if (h) { function a(e) { var t, n, a, i, r, o, s, c, u, p, l; g = !0, m.queue = [], f || (f = !0, t = h, s = function () { var e = {}, t = d.connectionString; if (t) for (var n = t.split(";"), a = 0; a < n.length; a++) { var i = n[a].split("="); 2 === i.length && (e[i[0][b]()] = i[1]) } if (!e[C]) { var r = e.endpointsuffix, o = r ? e.location : null; e[C] = "https://" + (o ? o + "." : "") + "dc." + (r || "services.visualstudio.com") } return e }(), c = s[D] || d[D] || "", u = s[C], p = u ? u + "/v2/track" : d.endpointUrl, (l = []).push((n = "SDK LOAD Failure: Failed to load Application Insights SDK script (See stack for details)", a = t, i = p, (o = (r = v(c, "Exception")).data).baseType = "ExceptionData", o.baseData.exceptions = [{ typeName: "SDKLoadFailed", message: n.replace(/\./g, "-"), hasFullStack: !1, stack: n + "\nSnippet failed to load [" + a + "] -- Telemetry is disabled\nHelp Link: https://go.microsoft.com/fwlink/?linkid=2128109\nHost: " + (S && S.pathname || "_unknown_") + "\nEndpoint: " + i, parsedStack: [] }], r)), l.push(function (e, t, n, a) { var i = v(c, "Message"), r = i.data; r.baseType = "MessageData"; var o = r.baseData; return o.message = 'AI (Internal): 99 message:"' + ("SDK LOAD Failure: Failed to load Application Insights SDK script (See stack for details) (" + n + ")").replace(/\"/g, "") + '"', o.properties = { endpoint: a }, i }(0, 0, t, p)), function (e, t) { if (JSON) { var n = T.fetch; if (n && !y.useXhr) n(t, { method: N, body: JSON.stringify(e), mode: "cors" }); else if (XMLHttpRequest) { var a = new XMLHttpRequest; a.open(N, t), a.setRequestHeader("Content-type", "application/json"), a.send(JSON.stringify(e)) } } }(l, p)) } function i(e, t) { f || setTimeout(function () { !t && m.core || a() }, 500) } var e = function () { var n = l.createElement(k); n.src = h; var e = y[w]; return !e && "" !== e || "undefined" == n[w] || (n[w] = e), n.onload = i, n.onerror = a, n.onreadystatechange = function (e, t) { "loaded" !== n.readyState && "complete" !== n.readyState || i(0, t) }, n }(); y.ld < 0 ? l.getElementsByTagName("head")[0].appendChild(e) : setTimeout(function () { l.getElementsByTagName(k)[0].parentNode.appendChild(e) }, y.ld || 0) } try { m.cookie = l.cookie } catch (p) { } function t(e) { for (; e.length;)!function (t) { m[t] = function () { var e = arguments; g || m.queue.push(function () { m[t].apply(m, e) }) } }(e.pop()) } var n = "track", r = "TrackPage", o = "TrackEvent"; t([n + "Event", n + "PageView", n + "Exception", n + "Trace", n + "DependencyData", n + "Metric", n + "PageViewPerformance", "start" + r, "stop" + r, "start" + o, "stop" + o, "addTelemetryInitializer", "setAuthenticatedUserContext", "clearAuthenticatedUserContext", "flush"]), m.SeverityLevel = { Verbose: 0, Information: 1, Warning: 2, Error: 3, Critical: 4 }; var s = (d.extensionConfig || {}).ApplicationInsightsAnalytics || {}; if (!0 !== d[I] && !0 !== s[I]) { var c = "onerror"; t(["_" + c]); var u = T[c]; T[c] = function (e, t, n, a, i) { var r = u && u(e, t, n, a, i); return !0 !== r && m["_" + c]({ message: e, url: t, lineNumber: n, columnNumber: a, error: i }), r }, d.autoExceptionInstrumented = !0 } return m }(y.cfg); function a() { y.onInit && y.onInit(n) } (T[t] = n).queue && 0 === n.queue.length ? (n.queue.push(a), n.trackPageView({})) : a() }(window, document, {
        src: "https://js.monitor.azure.com/scripts/b/ai.2.min.js",
        ld: -1,
        cfg: {
            disableFetchTracking: false,
            enableCorsCorrelation: true,
            enableRequestHeaderTracking: true,
            enableResponseHeaderTracking: true,
        }
    });
</script>

builder.Services.AddBlazorApplicationInsights(async applicationInsights =>
{
	await applicationInsights.SetInstrumentationKey(builder.Configuration["ApplicationInsights:InstrumentationKey"]);
	await applicationInsights.LoadAppInsights();
});

@inject HttpClient Http
This is not getting tracked in AI:
var items = await Http.GetFromJsonAsync<List<Item>>($"/Api/Items");
Any other ideas?  Everything else seems to be logging as expected, so something related to fetch seems to be the issue.

Btw, the fetch logging does work if I set instrumentationKey: "{key}" within the JS, but if I set via applicationInsights.SetInstrumentationKey (as shown above), the logging does not occur.  I need to be able to load my key from a config file, so hard-coding in index.html is not an option.

Btw, the fetch logging does work if I set instrumentationKey: "{key}" within the JS, but if I set via applicationInsights.SetInstrumentationKey (as shown above), the logging does not occur. I need to be able to load my key from a config file, so hard-coding in index.html is not an option.

I definitely agree with this. I have to (easily) support multiple environments (staging, production, etc). Hard coding is not an option for me.

I have replicated the problem and wrote a test.
If I perform a http request through JS, it is tracked by App Insights, its only the Blazor Http calls that are not, very odd.
var getJSON = function(url, callback) {
    var xhr = new XMLHttpRequest();
    xhr.open('GET', url, true);
    xhr.responseType = 'json';
    xhr.onload = function() {
      var status = xhr.status;
      if (status === 200) {
        callback(null, xhr.response);
      } else {
        callback(status, xhr.response);
      }
    };
    xhr.send();
};

getJSON('https://httpbin.org/get',
function(err, data) {
  if (err !== null) {
    console.log('Something went wrong: ' + err);
  } else {
    console.log('Your query count: ' + data.origin);
  }
});

Set a fake key, and then set the correct one programmatically.

Additionally, remove ", n.trackPageView({})" from the JS Snippet, this is the Track Page View that happens on initial page load. This will need to be called manually.

I can confirm this worked, but this can't be used in conjunction with the TelemetryInitializer, from what I discovered during my brief trial.
Normal usage is fine, but Blazor popped the error banner at the bottom of the app when I navigate away from the web app (ie. to a payment processing page) then click 'Back'.


Swift 3 Update

Hi Sam,
First of all, I want to thank you for this great Playground! I learned new things (though I haven't finished reading it yet).
I found out that this repo still uses Swift 2, so I made an update on my fork's swift-3-update branch. I've done the update for "compilable" code in the Playground, but not on the text (and filenames) yet.
My question is - may I create pull requests to your repo? It'd be even better if you could take a look on my fork, too (though its not completed yet) :)
Thanks!

I'd be very happy to see a PR for Swift 3, but before you go too far, please check out the following repos as well:
https://github.com/sammyd/360iDev16_ConcurrencyWorkshop
https://github.com/sammyd/SwiftConf2016_Concurrency
Since I made this repo for a video series, I've not updated it (since I haven't updated the videos). I have, however reused the same content for a couple of conference talks (above), which I presented in Swift 3.
Hopefully that'll be helpful for you as well? More than happy to accept a PR for Swift 3 to this repo though :)


FR: Allow empty CommitmentPrefix

Feature Summary
In our use case, we have a Merkle trie which is dedicated for the exclusive use of the IBC module.  As a consequence, any trie path derived from IBC path starts at the root of the trie.  This means that in our case CommitmentPrefix is always empty.
Proposal
Allow empty CommitmentPrefix values, i.e. remove is_empty() checks from CommitmentPrefix constructors, e.g. convert TryFrom<Vec<u8>> implementation. into From<Vec<u8>> implementation which just wraps the provided vector.
Further discussion
After quick chat with @Farhad-Shabani a question arose whether verify_membership and verify_non_membership functions even need prefix argument. Should they be able to derive the prefix from the client state instead?
I’m not that familiar with the codebase to really answer that (and all I really care about is being able to have empty prefix as described above) but for some context when calling those two aforementioned methods the prefix arguments comes from:

Counterparty::prefix when getting prefix of the counterparty,
ValidationContext::commitment_prefix when getting our prefix and
Tendermint client further uses ClientState::upgrade_path.

The last usage of the prefix could be eliminated in the sense that the trait function could not accept prefix and Tendermint would have its own internal method which takes prefix.
The case for the first two isn’t immediately obvious to me.  I guess it can be that each connection has its own prefix, but then I’m not sure how to reconcile it with commitment_prefix method not being dependent on connection.  Plus, if trie location depends on connection than I guess connection id should be included in the Path rather than using prefix for it.  Though I guess in principle it could be used for that.
It doesn’t help that the repository doesn’t seem to have any non-mock implementation of commitment_prefix (git grep fn.\*\\bcommitment_prefix revealed only declaration in trait and implementation for mock).
Summary
To sum up, in our implementation prefix is always empty and I’d love if empty CommitmentPrefix would be allowed.
As for whether the prefix argument is needed to verify_membership and verify_non_membership, I can’t form well informed opinion.

Having gained a broader understanding of various use cases particularly from the Sovereign SDK integration, CosmWasm client implementation, and #1255, we are revisiting this issue. We can now safely allow the creation of an empty commitment prefix.
We will maintain a distinction between prefix and path, which is still necessary for some light clients, like Tendermint. As we move towards treating the path as bytes by #1273, merging the prefix into the path prevents ICS23 verify_(non_)membership functions from detecting the prefix part. Allowing a zero prefix will enable clients that do not require it to ignore the prefix without compromising the safety of clients that do.
It took us some time to reach this decision, but I hope it still benefits your project @mina86.

Yes, thanks, that’s perfect.


need evaluate code for text diffuser-2

Describe
Model I am using (UniLM, MiniLM, LayoutLM ...):
I think we need evaluate code like text diffuser-1 to reproduce result on MARIOEval benchmark or other datasets

Please follow the code of TextDiffuser-1 for evaluation. Thanks!


Error downloading gEvent package after docker compose up

Question
Use Github Discussions.
#0 53.03 Collecting gevent>=20.9.0
#0 53.87   Downloading gevent-21.12.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.1 MB)
#0 73.15      ━━━━━                                    0.8/6.1 MB 189.8 kB/s eta 0:00:28
#0 73.16 ERROR: Exception:
#0 73.16 Traceback (most recent call last):
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 438, in _error_catcher
#0 73.16     yield
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 519, in read
#0 73.16     data = self._fp.read(amt) if not fp_closed else b""
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 90, in read
#0 73.16     data = self.__fp.read(amt)
#0 73.16   File "/usr/local/lib/python3.10/http/client.py", line 465, in read
#0 73.16     s = self.fp.read(amt)
#0 73.16   File "/usr/local/lib/python3.10/socket.py", line 705, in readinto
#0 73.16     return self._sock.recv_into(b)
#0 73.16   File "/usr/local/lib/python3.10/ssl.py", line 1274, in recv_into
#0 73.16     return self.read(nbytes, buffer)
#0 73.16   File "/usr/local/lib/python3.10/ssl.py", line 1130, in read
#0 73.16     return self._sslobj.read(len, buffer)
#0 73.16 TimeoutError: The read operation timed out
#0 73.16
#0 73.16 During handling of the above exception, another exception occurred:
#0 73.16
#0 73.16 Traceback (most recent call last):
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 167, in exc_logging_wrapper
#0 73.16     status = run_func(*args)
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
#0 73.16     return func(self, options, args)
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 339, in run
#0 73.16     requirement_set = resolver.resolve(
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 94, in resolve
#0 73.16     result = self._result = resolver.resolve(
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve
#0 73.16     state = resolution.resolve(requirements, max_rounds=max_rounds)
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 373, in resolve
#0 73.16     failure_causes = self._attempt_to_pin_criterion(name)
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 213, in _attempt_to_pin_criterion
#0 73.16     criteria = self._get_updated_criteria(candidate)
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 204, in _get_updated_criteria
#0 73.16     self._add_to_criteria(criteria, requirement, parent=candidate)
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 172, in _add_to_criteria
#0 73.16     if not criterion.candidates:
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_vendor/resolvelib/structs.py", line 151, in bool
#0 73.16     return bool(self._sequence)
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in bool
#0 73.16     return any(self)
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in
#0 73.16     return (c for c in iterator if id(c) not in self._incompatible_ids)
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built
#0 73.16     candidate = func()
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 215, in _make_candidate_from_link
#0 73.16     self._link_candidate_cache[link] = LinkCandidate(
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 288, in init
#0 73.16     super().init(
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 158, in init
#0 73.16     self.dist = self._prepare()
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 227, in _prepare
#0 73.16     dist = self._prepare_distribution()
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 299, in _prepare_distribution
#0 73.16     return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 487, in prepare_linked_requirement
#0 73.16     return self._prepare_linked_requirement(req, parallel_builds)
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 532, in _prepare_linked_requirement
#0 73.16     local_file = unpack_url(
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 214, in unpack_url
#0 73.16     file = get_http_url(
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 94, in get_http_url
#0 73.16     from_path, content_type = download(link, temp_dir.path)
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_internal/network/download.py", line 146, in call
#0 73.16     for chunk in chunks:
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_internal/cli/progress_bars.py", line 304, in _rich_progress_bar
#0 73.16     for chunk in iterable:
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_internal/network/utils.py", line 63, in response_chunks
#0 73.16     for chunk in response.raw.stream(
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 576, in stream
#0 73.16     data = self.read(amt=amt, decode_content=decode_content)
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 512, in read
#0 73.16     with self._error_catcher():
#0 73.16   File "/usr/local/lib/python3.10/contextlib.py", line 153, in exit
#0 73.16     self.gen.throw(typ, value, traceback)
#0 73.16   File "/usr/local/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 443, in _error_catcher
#0 73.16     raise ReadTimeoutError(self._pool, None, "Read timed out.")
#0 73.16 pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
#0 82.54 WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available.
#0 82.54 You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
failed to solve: executor failed running [/bin/sh -c pip install --prefix="/usr/local/" -r ./requirements.txt]: exit code: 2

I think this maybe you machine can't connect to files.pythonhosted.org according to the error message. I think you can check with curl files.pythonhosted.org on your machine directly.

I think this maybe you machine can't connect to files.pythonhosted.org according to the error message. I think you can check with curl files.pythonhosted.org on your machine directly.

Thank you very much. I have replaced the source of PIP and it works normally


eventhub.NewHubWithNamespaceNameAndEnvironment blocks for more than 3 mins

Expected Behavior
Behavior of eventhub.NewHubWithNamespaceNameAndEnvironment should have sane defaults when invalid arguments (event hubs namespace and/or event hub name etc.) are passed i.e. timeout/fail in a reasonable amount of time
Or, it should allow the caller to enforce timeout by allowing it pass in a context.Context
Actual Behavior
I tried two scenarios:

did not pass in valid event hubs namespace and/or event hub name (code was expecting it from env vars which I had missed and hence blank "" was passed in)
did not pass in AAD env vars (AZURE_CLIENT_ID etc.) or SAS env vars

In both cases, I got the below error, but the app was stuck for ~3.5 mins
failed to create EH client neither Azure Active Directory nor SAS token provider could be built - AAD error
: failed to refersh token: &{{{  0 0 0  } 0x1668640 {{  <nil>    false  } {  <nil>    false  } {http  <nil> <IP_ADDRESS> /me
tadata/identity/oauth2/token  false api-version=2018-02-01&resource=https%3A%2F%2Feventhubs.azure.net%2F } {  <nil>    false  }
}  https://eventhubs.azure.net/ true<PHONE_NUMBER>00} 0xc0000c01a0 0xc00009d020 <nil> [] 5}, SAS error: unable to build SAS token
provider because (EVENTHUB_KEY_NAME and EVENTHUB_KEY_VALUE) were empty, and EVENTHUB_CONNECTION_STRING was empty

Environment

OS: mac os
Go version: 1.14
Version of Library: 3.3.0

Hi! Thanks for reaching out.
I haven't been able to reproduce this error. I created a simple example that only calls eventhub.NewHubWithNamespaceNameAndEnvironment and first did not set any environment variables and the error response returned was almost immediate. Then I set the vars you mentioned in your first scenario and the result was the same. I received the error response again almost immediately. Do you have code that could reproduce this problem so that I could test it out?


Add basic language and script fallback for the Android backend.

This suffers from limitations in the other fallback code, namely that Hans and Hant are not tried because everything gets collapsed into Hani. The specific way that this should be handled depends on the order of system locales on some platforms.

I went ahead and added a workaround that checks if some lang fallback includes the Hant script, and adds that also for Hani. This should be locale-dependent in practice but this makes ambiguous han characters at least show up for now.

One of the limitations of this is that it only functions when postScriptName is present on at least one of the <font... elements in a fallback family. This is most of the language and script fallback families on common devices, but not all of them; on my device this misses the fallback families for Hebrew.

I'd be happy to test this on my device if there's a procedure for that, but I don't have the expertise to work out what's happening very quickly, and so could only give a rubber stamping review.
In which case, it should probably be given by Chad.

I'd be happy to test this on my device if there's a procedure for that, but I don't have the expertise to work out what's happening very quickly, and so could only give a rubber stamping review.
In which case, it should probably be given by Chad.

There is https://github.com/xorgy/xilem/tree/andtaffy if you have a local parley hooked up in the Cargo.toml. I primarily test this stuff on desktop (you just need to swap the "fontconfig/mod.rs" path for "android.rs" in your target's cfg of mod system;... and then you need to set $ANDROID_ROOT to a directory which has the equivalent structure (adb pull /system/etc/fonts.xml and /system/fonts/ into a dir, and point $ANDROID_ROOT TO THE system dir that you create).


[Music] ... add to playlist error

Extension
https://raycast.com/fedevitaledev/music
Description
Error: Command failed with exit code 1: osascript -e
tell application "Music"
set theName to name of current track
set theArtist to artist of current track
set theAlbum to album of the current track
set existingTracks to get tracks of source "Library" whose name is theName and artist is theArtist and album is theAlbum
if (count of existingTracks) = 0 then
	set theCount to count of tracks of source "Library"
	duplicate current track to source "Library"
	repeat while theCount = (count of tracks of source "Library")
		delay 1
	end repeat
end if

set theTrack to first track of source "Library" whose name is theName and artist is theArtist and album is theAlbum
duplicate theTrack to playlist "jp"

end tell
177:271: execution error: “Music”遇到一个错误：不能获得“every track of source "Library" whose name = "Boy" and artist = "Reol" and album = "Boy - Single"”。 (-1728)
at S0 (/Users/saeba/.config/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/add-to-playlist.js:5:59)
at /Users/saeba/.config/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/add-to-playlist.js:5:10477
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async qc (/Users/saeba/.config/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/add-to-playlist.js:5:38131)
Steps To Reproduce
No response
Current Behaviour
No response
Expected Behaviour
No response

Hi is your system lang English? Unfortunately seems that the "Library" playlist is language sensitive, I'm still figuring out how to support multiple languages


Translation concern in Wagtail 6.2 save dialog

Issue
Wagtail 6.2rc1 introduces a confirmation dialog when you are about to override changes made in a different window.
The text in this dialog uses a demonstrative pronoun (this/that/these/those) in combination with a templated, unknown, noun.
https://github.com/wagtail/wagtail/blob/6c11616bd6cb3803e00fb03c10d48b0a97b2442a/wagtail/admin/templates/wagtailadmin/shared/editing_sessions/list.html#L114
This poses an issue for Dutch (and likely other languages) because the correct translation of this differs depends on the gender of model_name. Unfortunately, this (😉)  is not a solved problem in gettext.
Proposal
I propose we remove the reference to a model from the dialog text. The surrounding context on the page should be plenty clear enough, the message will not lose any clarity.

- {{ user_name }} has saved a newer version of this {{ model_name }}
+ {{ user_name }} has saved a newer version

- You have saved a newer version of this {{ model_name }} in another session
+ You have saved a newer version in another session

More generally speaking, use of demonstrative pronouns in combination with some unknown noun is a recurring issue in Wagtail. Often, there are ways to creatively rewrite a sentence to avoid use demonstrative pronouns but Transifex makes this hard because it marks strings as invalid if you don't include the placeholder value for the noun, limiting translator options.

Thanks for the report! I was in two minds about adding the model name, as it required passing the content type to the component, which added a small complexity. Removing this would make the editing session component code simpler, so I wouldn't be opposed to that.


Update node.js image to 6.11.1

July 11 security release.

Landing despite the travis failure – seems to be related to a http cache preventing the structure tests from passing.


load function could append in doc file

I use sample Sample_01_SimpleText.php I should change to html to save
$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'HTML');
$objWriter->save('/var/www/html/helloWorld.doc');
My PC linux, PHP 7
the main problem in sample: Sample_11_ReadWord2007.php
I could not append in doc file I load then addSection then save by new name but no old data just new addsection data
samples.zip
file:///var/www/html/hello.doc.zip

Hey @HananAbulDahab, i think you opened a issue on the wrong repository.


Application Wide Problem

Currently I am doing:
import OpenLayersMap from 'vue3-openlayers'
app.use(OpenLayersMap)

This make sure Openlayers is available across my App.  But, the problem is that I have routes and openlayers is only used in certain routes.  So, for example: If a user visits route A (Which does not use openlayers) then vue3-openlayers loads unnecessary and unneeded js on that page.   I just want openlayers to be used for Route B and only loaded there and then.
I tried the import outside main.ts and only in the route vue for Route B, but then the map does not get drawn.
How can this be achieved?

You can join to my PR and add this functionality.
https://github.com/MelihAltintas/vue3-openlayers/pull/149

I have fixed this by doing the following on my single page (where I want Openlayers to be used):
<script>
.....
import OpenLayersMap from 'vue3-openlayers'
import 'vue3-openlayers/dist/vue3-openlayers.css'
.....
export default {
    .....
    created() {
        if (!this.$.appContext.app.config.globalProperties.$openlayersLoaded) {
            OpenLayersMap(this.$.appContext.app)
            this.$.appContext.app.config.globalProperties.$openlayersLoaded = true
        }
        .....
    },
    .....
}
</script>
<template>
    .....
    <ol-map
        :loadTilesWhileAnimating="true"
        :loadTilesWhileInteracting="true"
        style="height: 400px"
    >
        <ol-view
            ref="view"
            :center="olcenter"
            :rotation="rotation"
            :zoom="zoom"
            :projection="projection"
        />
        <ol-fullscreen-control
            v-if="fullscreencontrol"
        />
        <ol-mouseposition-control
            v-if="mousepositioncontrol"
        />
        <ol-attribution-control
            v-if="attributioncontrol"
            collapsible="true"
        />
        <ol-rotate-control
            v-if="rotatecontrol"
            autoHide="true"
        />
        <ol-zoom-control v-if="zoomcontrol" />
        <ol-zoomslider-control
            v-if="zoomslidercontrol"
        />
        <ol-tile-layer>
            <ol-source-osm />
        </ol-tile-layer>
    </ol-map>
    .....
</template>

You can import like that:
https://codesandbox.io/s/nameless-haze-n9ozfm?file=/src/App.vue:0-609
<template>
  <ol-map
    :loadTilesWhileAnimating="true"
    :loadTilesWhileInteracting="true"
    style="height: 400px"
  >
    <ol-view ref="view" :center="[40, 40]" :rotation="0" :zoom="8" />

    <ol-tile-layer>
      <ol-source-osm />
    </ol-tile-layer>
  </ol-map>
</template>

<script>
import { Map, MapControls, Layers, Sources } from "vue3-openlayers";

import "vue3-openlayers/dist/vue3-openlayers.css";

export default {
  name: "App",
  components: {
    "ol-map": Map.Map,
    "ol-view": Map.View,
    "ol-tile-layer": Layers.TileLayer,
    "ol-source-osm": Sources.SourceOSM,
  },
};
</script>

@MelihAltintas Did you receive my 2 replies above?


Using recently used changes context to file directory

I'm noticed that if I do
cd ~/project
vim

Then I choose a recently used in the current directory, such as
spec/models/foo.rb
that it opens in the directory context of
spec/models
This forces me to have to cd from inside Vim to get back to my project directory scope. With my workflow, this negates the advantage of the recently used, to the extent that I'm not really getting anything from the plugin.
Is this intentional? Can it be overriden?

Yup, that's the default.
See :h g:startify_change_to_dir and maybe :h g:startify_change_to_vcs_root.


fix: Do not save Style with index 0

Fixes #1234
Fix The Style with index 0 does not write.

LGTM


Add Google Analytics to OpenGEE

This is going to be confusing to test, because in order for it to work in master the analytics ID number and property info have to be pointing to opengee.org, but in order for it to test it has to be pointing to tst-mswartz.github.io/earthenterprise... it's checked in pointing to the former, but if I change the ID UA—108632131-2  to UA—108632131-1  it will be pointing to the latter.  You could always add a property for your own github pages address and update the ID number for that in your fork, and test your own analytics.

Looks ok to me


Feature Request: Support for GitHub Repo Templates

Support for GitHub Repo Templates would be awesome!

Hey @codytwinton
This looks awesome. Will look forward to add this soon 🙌

Hi @codytwinton
I took a closer look to GitHub Repo Templates and sadly there is no option to perform any kind of customization which is needed to correctly configure the Xcode Template Project based on various variables like Project name, Bundle Identifier, Targets, CI-Service, etc... .


Add initial PVM test vectors

Initial PVM test vectors/test suite.
This is still incomplete; not every instruction is covered yet and only very simple test cases were added. I will be expanding this aggressively.

README
List of testcases

Since we will still be making some changes (e.g. 64-bit support) I'll be explicitly versioning this, with a detailed changelog so that anyone who uses these tests can easily keep up.

@koute Can you kindly add test cases for the host functions of Appendix B.6/B.7/B.8?
Here are 4 groups, in priority order:

LOOKUP, READ, WRITE, SOLICIT, HISTORICAL_LOOKUP, IMPORT, EXPORT [7]
NEW, MACHINE,  PEEK, POKE, INVOKE, TRANSFER [6]
QUIT,  INFO, GAS, CHECKPOINT, FORGET [5]
EMPOWER, DESIGNATE, ASSIGN, UPGRADE, EXPUNGE [5]

The first group is DA-centric, the second group is service+VM setup/invocations -- the first 2 groups are valuable to connect to code up connections to state merklization + erasure coding, whereas the latter 2 groups can be done later as they are bookkeeping oriented and are easy to get right once we solve the first 2 groups.
Thank you!

How are these programs supposed to be consumed? The program blob parse expects things like the program to start with BLOB_MAGIC.

Can you kindly add test cases for the host functions of Appendix B.6/B.7/B.8?

For these initial test vectors the priority is to get basic tests for the instruction set ready. I will also add some host call tests later, but comprehensive test suite for all host calls is probably out-of-scope, at least for pure PVM tests.

How are these programs supposed to be consumed?

Take a look at the schema to see to which parameters of the Ψ equation from the Gray Paper they correspond to, and use them accordingly to test your own PVM implementation.

The program blob parse expects things like the program to start with BLOB_MAGIC.

Yes, my PolkaVM uses its own container format for the program blobs which the GP doesn't use. PolkaVM is not the source of truth for how a PVM should work, the GP is.

@koute Good point on the GP being the source of truth.

Take a look at the schema to see to which parameters of the Ψ equation from the Gray Paper they correspond to, and use them accordingly to test your own PVM implementation.

For context I'm building FFI bindings to PolkaVM. So would you say that these tests in particular are for folks who are implementing the PVM from scratch?

Since we will still be making some changes (e.g. 64-bit support) I'll be explicitly versioning this, with a detailed changelog so that anyone who uses these tests can easily keep up.

We passed all the test vectors you provided so far.  What is the reason for the GP needing to support 32-bit registers while the contracts pallet should definitely aim for 64-bit?   After you have 64-bit PVM engineered for contracts pallet shouldn't the GP be adjusted to be 64-bit?

So would you say that these tests in particular are for folks who are implementing the PVM from scratch?

Yes.

What is the reason for the GP needing to support 32-bit registers while the contracts pallet should definitely aim for 64-bit?

This is only temporary. We will be migrating GP to 64-bit too; we just need to first prototype the design in PolkaVM to make sure it's solid. (Otherwise we might end up with a design that looks good on paper but is bad in practice.) We're working on it right now.
(That said, the changes when migrating to 64-bit won't be huge - the registers will be extended and there will be a couple of new instructions, but that's about it as far as major changes go.)
As far as the instruction set and the core semantics are concerned, we aim to have both PolkaJAM and pallet-contracts in alignment and we're making effort to make sure they don't diverge. (With PolkaJAM having the priority here, but I believe we can support both with the same VM.)

In GP(A.1), the program is defined as follows:

E(|c|) is the SCALE compact integer encoding on the length of c. So in this test case, |c| should be 2 (8, 135), so shouldn't E(|c| be 8 instead of 3?

@ec2 Where did you read that these are SCALE compact integers? These are not SCALE compact integers. From the GP:

If you look at this equation and crosscheck it with how parity-scale-codec encodes compact integers you can see that they're not the same.
This is a slightly different varint serialization format which:

only supports up to 64-bits,
is more efficient to decode,
encodes numbers which fit within 7-bits as if raw-encoded,
is uniform and more compact when dealing with small numbers (SCALE compact encoding uses one more byte to encode integers between 64..128 and 16384..2097152, but needs one less byte to encode integers between 268435456..1073741824).

@koute Sorry to keep hounding you here! I think I found a discrepancy between the testcases and the GP.
The test case inst_move_reg.json tests move_reg (opcode 82).
According to the GP,

In the test, the supplied arg to move_reg is [121]. And so, r_A = min(12, 121%16) = 9 and r_D = min(12, 121/16) = 7. So the mutation will end up being reg[7] = reg[9].
The test case has only initial-regs[7] set to 1 and 0 elsewhere. And so the expected mutation is reg[7] = reg[9] = 0.
TLDR: I think the impl of PVM that made these test cases have the arguments for move_reg flipped.

I will also add some host call tests later, but comprehensive test suite for all host calls is probably out-of-scope, at least for pure PVM tests.

Alright, we don't want to interrupt your deep work but legend has it you implemented PVM in a day =) so if its not too much to ask ... could you give us the simplest "Jam Service" byte code (for a refine+accumulate) for us to implement many of the basic host functions?  Given one good example we can probably fill in the rest and provide a few more back.
My idea of the simplest "Jam Service" byte code is to compute the sum of squares for a set of integer work items, like
Work Items in a Work Package: 5, 7, 9
Refine: squares the work items, exports 25, 49, 81
Accumulate: reads the result of refine ( 25, 49, 81 ) and writes to a service's storage
We can attempt to build the byte code by hand like it is 1964 but maybe you already have something "simple" like this that you can share?
If not, do you have a better recommendation for simplest "Jam Service"? Or, a strategy that is better than hand building byte code?
This sort of baby JAM test case will help teams get baby JAM implementations blood flowing, and set up a low V (like V=6) cluster complete with QUIC, erasure coding, Patricia Merkle Trie, BMT proofs, and so on.

I am confused about trap vs halt vs panic in PVM. In GP, the trap instruction will exit with the black square, so does the jump to 2^32-2^16 address. To my understanding, that is exit 0. But in the pvm testvector, trap is panic and the test of the trap instruction will result trap exit status but the inst_ret_halt test results halt. There is some inconsistency.
https://github.com/w3f/jamtestvectors/blob/a2b18702aac7d15b9f51cd1ffcf0be95f987b2f7/pvm/schema.asn#L53-L55
Another question. jump_ind is using djump which can be used to exit the program. But how about the one using branch? e.g. jump. What happen to jump into the exit address? panic or halt?

Sorry to keep hounding you here! I think I found a discrepancy between the testcases and the GP.

@ec2 Yes, indeed, there is. We will fix it soon. Thanks! We highly appreciate anyone who helps crosscheck these.

Alright, we don't want to interrupt your deep work but legend has it you implemented PVM in a day =) so if its not too much to ask ... could you give us the simplest "Jam Service" byte code (for a refine+accumulate) for us to implement many of the basic host functions?

@sourabhniyogi The rumors of my exploits seem to be grossly exaggerated; it was actually two days, not one. :P
Anyway, we will most likely put up some more tests out in the future, but for now if you quickly want something to test with then your best bet would be to build one yourself.
You don't have to build a blob by hand; you could use my work-in-progress PVM assembler. For example:
$ git clone https://github.com/koute/polkavm.git
$ cd polkavm
$ cargo run -p polkatool -- assemble tools/spectool/spec/src/inst_branch_greater_or_equal_signed_ok.txt -o output.polkavm
$ cargo run -p polkatool disassemble --show-raw-bytes output.polkavm

This will output the program in a PolkaVM-specific container (which is not part of the GP), but you can extract the code blob with a simple Rust program - use polkavm_common::program::ProgramParts::from_bytes to load the blob and then the code_and_jump_table field will have the raw program bytes.

I am confused about trap vs halt vs panic in PVM. In GP, the trap instruction will exit with the black square, so does the jump to 2^32-2^16 address.

@xlc

"halt" is meant to be a normal termination (dynamic jump to 0xffff0000)
"panic" (called a "trap" here) is meant to be an abnormal termination

Hm, you're right that the trap instruction in the GP is specified to halt instead of panicking; this should have been a panic instead. I'll see about correcting this; thanks.

Hello @koute , I recently encountered some issues while using your PVM.
Here’s my code:
pub @main:
    a1 = 0

When I use the following command to compile:
cargo run -p polkatool -- assemble ./test_txt_code/test.txt -o test.pvm

The bytecode content of test.pvm is as follows:
[80, 86, 77, 0, 1, 5, 7, 1, 0, 4, 109, 97, 105, 110, 6, 6, 0, 0, 2, 4, 8, 253, 0]

My question is, how do I extract the pure program portion as defined in GP_0.36(213), because it seems the first part contains some ASCII-encoded section names.
ASCII encoded section name:
[80, 86, 77, 0, 1, 5, 7, 1, 0, 4, 109, 97, 105, 110, 6, 6]
// [80, 86, 77] "PVM" in ASCII
// [109, 97, 105, 110] "main" in ASCII

GP_0.36(213) should be:
[0, 0, 2, 4, 8, 253, 0]

Also found some weird encoding results.
Missing operend:
txt code:
pub @main:
    a1 = 0

after assembly:
It should put 0 into reg 8, but program counter at  0 missing 0
    Finished dev [unoptimized + debuginfo] target(s) in 0.86s
     Running `target/debug/polkatool disassemble --show-raw-bytes test.pvm`
// RO data = 0/0 bytes
// RW data = 0/0 bytes
// Stack size = 0 bytes

// Instructions = 1
// Code size = 2 bytes

      :                          @0 [export #0: 'main']
     0: 04 08                    a1 = 0x0

Jump to a weird position:
txt code:
pub @main:
    @sub_1:
    a0 = 1
    a1 = 0xFEFE0000
    a2 = 12
    ecalli 16
    a1 = 2
    jump @init if a0 != a1

    @sub_2:
    a1 = u32[0xFEFE0004]
    a2 = u32[0xFEFE0008]
    u32[0xFEFE0004] = a1
    a1 = a1 + a2
    u32[0xFEFE0008] = a1

    a3 = 1
    a0 = u32[0xFEFE0000]
    a0 = a0 + a3

    @sub_3:
    a0 = 0xFEFE0000
    a1 = 12
    ecalli 17
    trap

    @init:
    u32 [0xFEFE0000] = 0x00000001
    jump @sub_2

after assembly:
Program counter at  17 jump into 55(0x37), which is part of an operend.
Program counter at  79 jump into 197(0xc5), which is OOB.
    Finished dev [unoptimized + debuginfo] target(s) in 1.19s
     Running `target/debug/polkatool disassemble --show-raw-bytes test.pvm`
// RO data = 0/0 bytes
// RW data = 0/0 bytes
// Stack size = 0 bytes

// Instructions = 21
// Code size = 81 bytes

      :                          @0 [export #1: 'main'] [export #2: 'sub_1']
     0: 04 07 01                 a0 = 0x1
     3: 04 08 00 00 fe fe        a1 = 0xfefe0000
     9: 04 09 0c                 a2 = 0xc
    12: 4e 10                    ecalli 16 // INVALID
    14: 04 08 02                 a1 = 0x2
    17: 1e 87 37                 jump 72 if a0 != a1
      :                          @1 [export #3: 'sub_2']
    20: 0a 08 04 00 fe fe        a1 = u32 [0xfefe0004]
    26: 0a 09 08 00 fe fe        a2 = u32 [0xfefe0008]
    32: 16 08 04 00 fe fe        u32 [0xfefe0004] = a1
    38: 08 98 08                 a1 = a1 + a2
    41: 16 08 08 00 fe fe        u32 [0xfefe0008] = a1
    47: 04 0a 01                 a3 = 0x1
    50: 0a 07 00 00 fe fe        a0 = u32 [0xfefe0000]
    56: 08 a7 07                 a0 = a0 + a3
    59: 11                       fallthrough
      :                          @2 [export #4: 'sub_3']
    60: 04 07 00 00 fe fe        a0 = 0xfefe0000
    66: 04 08 0c                 a1 = 0xc
    69: 4e 11                    ecalli 17 // INVALID
    71: 00                       trap
      :                          @3 [export #0: 'init']
    72: 26 04 00 00 fe fe 01     u32 [0xfefe0000] = 1
    79: 05 c5                    jump 20

My question is, how do I extract the pure program portion as defined in GP_0.36(213), because it seems the first part contains some ASCII-encoded section names.

That's a .polkavm container. It's not and won't be part of the GP (see this comment of mine where I explain different types of program blobs). If you want to extract a pure code blob you either need to parse it (the format is trivial; see my parsing code for more details) or use my polkavm crate and call ProgramParts::from_bytes and access it in code_and_jump_table field of that struct.

It should put 0 into reg 8, but program counter at 0 missing 0

No, it's not missing. It's just a zero length varint, and that is expected behavior. To save space a trailing varint in an instruction doesn't have to be encoded if it's zero.
Side note: this instruction can be encoded in multiple ways, for example:
04 08
04 08 00
04 08 00 00
04 08 00 00 00
04 08 00 00 00 00

All of these encodings are valid and encode to the same instruction a1 = 0.

Program counter at 17 jump into 55(0x37), which is part of an operend.
Program counter at 79 jump into 197(0xc5), which is OOB.

You're incorrectly parsing the jump destinations as absolute, but they are encoded relative. (Notice: 17 + 55 = 72)

hey @koute, I've noticed the inst_branch_greater_or_equal_signed_imm_nok test is not passing, then after debugging it looks like the program is correct but the test expects a trap at PC 7 which is not happening bc the branch_ge_s_imm is true, lemme describe here:
Here is the inst_branch_greater_or_equal_signed_imm_nok program:
"program": [0,0,14,4,7,246,45,23,10,5,0,4,7,239,190,173,222,137,193],

where the actual code is:
[4,7,246,45,23,10,5,0,4,7,239,190,173,222]

breaking down the code we have:
// load_imm: reg (7), imm (246)
[4, 7, 246]

// branch_ge_s_imm: reg (7), imm (10), offset (5)
[45,23,10,5]

// when we compare the value at reg 7 is 246 which is greater than the imm value 10
// then it skips the trap and proceed to
// load_imm: reg (7), imm<PHONE_NUMBER>)
[4,7,239,190,173,222]

So, the expected value:<PHONE_NUMBER> is different from the actual 7th register<PHONE_NUMBER>) and also the expected pc is 7 (which is the offset where the trap is placed) but the actual PC is 14 (end of the code). So I would like to double check with you'll, thanks!

@EclesioMeloJunior You can check out the disassembler/debugger we've put together here https://pvm.fluffylabs.dev/
Recently polkavm support was merged, so it might help you debug the exact problem you're having - obviously don't take it as a source of truth - that should only be the Gray Paper.
I think the issue is with how you interpret the bytes 246 (0xf6), it's a compact signed encoding, and you should end up with<PHONE_NUMBER> (0xfffffff6) in the register.

@EclesioMeloJunior: @tomusdrw is correct; you're not properly sign extending the value from load_imm, and I've deliberately engineered this test case to catch this.
Remember that the varints are always sign extended to full 32-bits, that is: if the most significant bit of the value (as it is encoded) is 1 then all of the bits "to the left" in the decoded value are also filled with 1s.
Here are some examples:

7a encoded (122 in decimal, 01111010 in binary) would get decoded as 7a (00000000_00000000_00000000_01111010 in binary)
fa encoded (250 in decimal, 11111010 in binary) would get decoded as ffffff7a<PHONE_NUMBER> in decimal, 11111111_11111111_11111111_11111010 in binary)
fa 00 (00000000_11111010 in binary, remember these are serialized as little endian hence the least significant bytes are encoded first) would get decoded as fa (no sign extension because the most significant bit is 0)

Most testvectors should be fixed (are currently invalid) due to a strict decoding issue of k (fixed length bitsequence).
https://github.com/w3f/jamtestvectors/issues/13

Hi. How do the signed values work?
For example in "inst_div_signed"?
register1=8      (value:<PHONE_NUMBER>)
register2=7      (value: 7)
register3=9
How is r9 expected to be<PHONE_NUMBER>?

How do the signed values work?

I recommend reading this article on Wikipedia.

How is register 9 expected to be<PHONE_NUMBER>?

It's not. It's expected to be -2147483632 / 7 = -306783376.

Now that 0.5 is 64-bit (only), we really need this to be updated to support 64-bit test vectors (only)
We were able to use polkatool (64-bit) and do our services, which touched 23 opcodes and 5 host functions and would like to cover all the opcodes robustly.
Can we wrap up 2024 with 64-bit test vectors?


chore: solc 0.8.26

waiting for https://github.com/nikitastupin/solc
ref https://github.com/foundry-rs/foundry/issues/7962

clippy unrelated


Issue1658 prevent nodes signing multiple blocks at the same height

This creates noise r for block signing for each node by adding rc to preimage reduced to Scalar.

Fixes #1658 in the commit message would help to link the issue.
But where is the test-case that signing an alternate block reveals the private key?

Fixes #1658 in the commit message would help to link the issue.
But where is the test-case that signing an alternate block reveals the private key?

There is https://github.com/bpfkorea/agora/issues/408 which would include that. However I could still add a test in this PR.

Also I'm not sure this actually solves the problem. Because it uses the collective sum of the preimages rather than the node's own preimage only. For example, If you have 5 nodes:
[A, B, C, D, E]
And nodes [A, B, C] sign one block at height 1:
A: preimage 1
B: preimage 2
C: preimage 3
random_seed = H(1, 2, 3)
But nodes [C, D, E] decide to sign an alternate block at height 1:
C: preimage 3
D: preimage 4
E: preimage 5
random_seed = H(3, 4, 5)
The random seed will be different for the same block height. Therefore the private key will not be revealed? Am I off base here?

It would help resolve all doubts if we had the test-cases demonstrating the behavior.

It would help resolve all doubts if we had the test-cases demonstrating the behavior.

I think you are right in that my assumption of unique random seed is flawed. I will add a test and try a different approach. Perhaps adding the height.hashFull() to the commitment to generate a unique r for each block height is a valid approach.

Still need to fix up those difficult block validation unit tests that need pre-images now.

As the branch name is mis-leading and the direction changed a few times I am closing this PR in favour of https://github.com/bosagora/agora/pull/1860.


Handle Graduating Seniors

Over summer remove all school related roles and convert all graduated students into Guests.

Lector now tracks graduating year so this should be easy by just filtering students with past graduating years out.

Make Alumni role and private room and hidden voice-channel, allow alumni still in groups
They will see no school related channels

Ironically this now refers to myself.
I've decided to simplify the entire server since its mainly my friend group that uses it, and it should therefore work for that purpose.
Grades will no longer be distinguished by grade labels but by year labels, e.g. Class of 2018, this means current students and alumni aren't really differentiated.
Advisement roles will no longer exist, and course channels will no longer exist.
Groups will become the focus of the server.


Handle browser mapping variants

"browser": {
  "./node1": "./browser1", // Package name
  "./node2.js": "./browser2.js", // File name
  "./node3/index": "./browser3/index" // Aliased (./node3 && ./node3/index => ./browser3/index)
}

The tests are failing because lookups in the globalBrowser map include the .js here: https://github.com/stealjs/system-npm/blob/master/npm-utils.js#L161

This commit fixes one test, but causes two others to fail. I'll look into them soon.

Fixed by #188


Updated for quick start release notes

Summary

Added update regarding Quick start release notes.
Reason

Testing

Does this PR target a specific release?


Albums are not displayed as Home

Describe the bug
When home is albums, no albums are displayed
To Reproduce
Steps to reproduce the behavior:

Go to 'Settings'
Click on 'Navigation'
Choose "Albums" for "Home" option
Close app and reopen
No albums are shown despite having albums (and if Go to 'Albums' from side menu I can see the albums)

Expected behavior
Albums should be shown when Home = Albums
Screenshots

System information and logs:
Aves version: 1.6.7-play (Build 73)
Flutter version: 3.0.1 (Channel stable)
Android version: 10 (SDK 29)
Android build: VOG-L29 <IP_ADDRESS>(C431E19R2P5)
Device: HUAWEI VOG-L29
Mobile services: ready
System locales: en_LU, de_LU
Aves locale: system -> en
Installer: com.android.vending

Could you please attach the logs? (you can export them from About > Bug Report)
If you navigate to the collection and back to the Album page, without leaving the app, do you see them?

attached logs.
once I opened app and don't see Albums on Home, if I go to menu, click on "All collection", then back to "Albums", I see the albums yes.
aves-logs-20220526_110505.txt

Confirmed fixed after updated to v1.6.8 !
Thank you @deckerst


Improve CJS and ESM module support

Functional changes:

Can now use chef with CJS and ES Modules
use exports in package.json to explicitly define entrypoints for import and require routes
can now use named imports with NodeJS v12+

load via require
Loading via require will take you to the esm wrapped module which exports the top-level ESModule as a CJS module. This provides full compatibility with ESM modules, but loading takes a performance hit, as shown in this PR
Performance profile
console.time('require');
require('cyberchef')
console.timeEnd('require');

// => require: 6313.314ms

load via import
Node.js as increasing support for ESM / CJS interoperability. We can use this with a couple of extra flags. A consumer will need to use --experimental-json-modules to load JSON files as modules, and --experimental-specifier-resolution to resolve non-explicit imports in our dependencies.
Performance profile
console.time('import');
import chef from "cyberchef";
console.timeEnd('import');

// => import: 0.110ms

Later Node.js versions
I've tested this with latest stable  (14.3.0) - you don't need the --experimental-modules flag but you do need the other two when using import.

First of all thank you very much for looking into this.
I'm using node 12 and did this:

I did a clean checkout of your branch
npm i
npm run build

Running "exec:generateConfig" (exec) task

--- Regenerating config files. ---
Written operation index.
--- Config scripts finished. ---

internal/modules/run_main.js:57
    internalBinding('errors').triggerUncaughtException(
                              ^

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".json" for /home/alex/Projects/Bandsalat/issues/cyberchef-import-maybefast/CyberChef/src/core/config/OperationConfig.json
    at Loader.defaultGetFormat [as _getFormat] (internal/modules/esm/get_format.js:70:15)
    at Loader.getFormat (internal/modules/esm/loader.js:110:42)
    at Loader.getModuleJob (internal/modules/esm/loader.js:241:31)
    at async ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:44:17)
    at async Promise.all (index 0)
    at async link (internal/modules/esm/module_job.js:48:9) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}

I had to update the Gruntfile to make it run. Did I do something wrong or did this run through on your end?
diff --git a/Gruntfile.js b/Gruntfile.js
index 8814780e..443bf901 100755
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -369,8 +369,8 @@ module.exports = function (grunt) {
                 command: chainCommands([
                     "echo '\n--- Regenerating config files. ---'",
                     "echo [] > src/core/config/OperationConfig.json",
-                    "node --experimental-modules --no-warnings --no-deprecation src/core/config/scripts/generateOpsIndex.mjs",
-                    "node --experimental-modules --no-warnings --no-deprecation src/core/config/scripts/generateConfig.mjs",
+                    "node --experimental-modules --experimental-json-modules --experimental-specifier-resolution=node --no-warnings --no-deprecation src/core/config/scripts/generateOpsIndex.mjs",
+                    "node --experimental-modules --experimental-json-modules --experimental-specifier-resolution=node --no-warnings --no-deprecation src/core/config/scripts/generateConfig.mjs",
                     "echo '--- Config scripts finished. ---\n'"
                 ]),
                 sync: true

I'll look into the actual performance stuff now. I don't think console.time works in this case, I assume the import is hoisted because 0.110ms is not realistic.

Same when running ./node_modules/.bin/grunt node, the exec:generateNodeIndex fails. But I got it running now.
diff --git a/Gruntfile.js b/Gruntfile.js
index 8814780e..853e30fc 100755
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -369,8 +369,8 @@ module.exports = function (grunt) {
                 command: chainCommands([
                     "echo '\n--- Regenerating config files. ---'",
                     "echo [] > src/core/config/OperationConfig.json",
-                    "node --experimental-modules --no-warnings --no-deprecation src/core/config/scripts/generateOpsIndex.mjs",
-                    "node --experimental-modules --no-warnings --no-deprecation src/core/config/scripts/generateConfig.mjs",
+                    "node --experimental-modules --experimental-json-modules --experimental-specifier-resolution=node --no-warnings --no-deprecation src/core/config/scripts/generateOpsIndex.mjs",
+                    "node --experimental-modules --experimental-json-modules --experimental-specifier-resolution=node --no-warnings --no-deprecation src/core/config/scripts/generateConfig.mjs",
                     "echo '--- Config scripts finished. ---\n'"
                 ]),
                 sync: true
@@ -378,7 +378,7 @@ module.exports = function (grunt) {
             generateNodeIndex: {
                 command: chainCommands([
                     "echo '\n--- Regenerating node index ---'",
-                    "node --experimental-modules --no-warnings --no-deprecation src/node/config/scripts/generateNodeIndex.mjs",
+                    "node --experimental-modules --experimental-json-modules --experimental-specifier-resolution=node --no-warnings --no-deprecation src/node/config/scripts/generateNodeIndex.mjs",
                     "echo '--- Node index generated. ---\n'"
                 ]),
                 sync: true

So this definitely helped a lot, here's a more realistic test that shows a rough 50% improvement.
require.js
const chef = require('./CyberChef/src/node/wrapper.js');
console.log(chef.fromBase64("U28gbG9uZyBhbmQgdGhhbmtzIGZvciBhbGwgdGhlIGZpc2gu"));

import.mjs
import chef from './CyberChef/src/node/index.mjs';
console.log(chef.fromBase64("U28gbG9uZyBhbmQgdGhhbmtzIGZvciBhbGwgdGhlIGZpc2gu"));

$ time node require.js
So long and thanks for all the fish.

real	0m3,437s
user	0m3,855s
sys	0m0,239s

$ time node --experimental-modules --experimental-json-modules --experimental-specifier-resolution=node import.mjs
(node:15460) ExperimentalWarning: The ESM module loader is experimental.
(node:15460) ExperimentalWarning: Importing JSON modules is an experimental feature. This feature could change at any time
So long and thanks for all the fish.

real	0m1,572s
user	0m1,711s
sys	0m0,118s

Now let's see if I can compile CyberChef down to a single file using ncc, that would be amazing. Because it's still a lot of files that need to be loaded. I'll report back.

For ncc (and node in general?) these Webpack specific parts are still a problem
https://github.com/gchq/CyberChef/blob/4c3324aea14f662996f3d14150852c1d23e544a8/src/core/operations/AddTextToImage.mjs#L139-L144

@Prinzhorn I also ran into those issues (and so did our CI) so I've put those fixes onto this branch 👍
I have never tried to use ncc, please let us know if you find a solution.
Some UI-specific operations are bound to fail in the NodeJS API. I think we haven't come across them all yet because, like the example you've shown above, they'll only try and import those files when the function is run. Feel free to raise a separate issue for that.
Node does support dynamic import. As I said, if you do look into that issue, let us know what you find


feat: #4 add "queue" parameter to selector

Supports separation of CMMN, BPMN and task events.
The topic name is enhanced by an additionaly parameter named "queue" (I had no better idea than that)

My idea was to have the switch on /camunda/bpmn vs /camunda/cmmn and then use different annotations BpmnSelector and CmmnSelector on the listeners ... wdyt?

I think there are 3 distinct queues: CMMN executions, BPMN executions and task events.
It still does matter if a task originated in a BPMN user task or a CMMN human task in regards to the properties available. But I think that a generic task listener is interested in all tasks manageable by the TaskService, so there is no need to separate tasks further into case and process tasks.
You might want to have a look at my feat_3 branch, giving you an CMMN example to play with.
cu
Malte
----- Reply message -----
Von: "Jan Galinski"<EMAIL_ADDRESS>An: "camunda/camunda-bpm-reactor"<EMAIL_ADDRESS>Cc: "Malte Sörensen"<EMAIL_ADDRESS>Betreff: [camunda-bpm-reactor] feat: #4 add "queue" parameter to selector (#20)
Datum: Di., Jan. 26, 2016 23:48
My idea was to have the switch on /camunda/bpmn vs /camunda/cmmn and then use different annotations BpmnSelector and CmmnSelector on the listeners ... wdyt?
—
Reply to this email directly or view it on GitHubhttps://github.com/camunda/camunda-bpm-reactor/pull/20#issuecomment-175276188.

Changes of this PR are already present in the current master, therefore I'm withdrawing this PR.


MacOS 14: operation not permitted, scandir

Description
We're receiving build failures on the latest image that were previously working

Platforms affected

[ ] Azure DevOps
[ ] GitHub Actions - Standard Runners
[X] GitHub Actions - Larger Runners

Runner images affected

[ ] Ubuntu 20.04
[ ] Ubuntu 22.04
[ ] Ubuntu 24.04
[ ] macOS 12
[ ] macOS 13
[ ] macOS 13 Arm64
[ ] macOS 14
[X] macOS 14 Arm64
[ ] macOS 15
[ ] macOS 15 Arm64
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
20241022.361
Build Link (private): https://github.com/LodoSoftware/core-mobile/actions/runs/11558810034/job/32172126210
Is it regression?
Yes, 20241014.301
Build Link (private): https://github.com/LodoSoftware/core-mobile/actions/runs/11520178922/job/32070967435
Expected behavior
Builds should pass, should not receive "operation not permitted" error
Actual behavior
Receiving these 2 errors:
Error: EPERM: operation not permitted, scandir 'hermes-engine'

error: Sandbox: mkdir(17884) deny(1) file-write-create /Users/runner/Library/Developer/Xcode/DerivedData/Mobile-atvoxbwxkqxckqdorphlbugfhxgw/Build/Intermediates.noindex/ArchiveIntermediates/Mobile/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/React-rncore.build/DerivedSources/generated (in target 'React-rncore' from project 'Pods')

Repro steps
Running a React Native iOS build using Fastlane

We are seeing the same error you described, with the same broken and working runner image versions:
Previous working build was:
Image: macos-14-arm64
Version: 20241014.301
First broken build was on:
Image: macos-14-arm64
Version: 20241022.361

Hi @JP250552 We are looking into the issue. Will keep you posted with updates.Thanks.

Getting similar error:
last working run used:
Runner Image
Image: macos-14-arm64
Version: 20241014.301
reran the same job with no code changes today and it used the following:
Runner Image
Image: macos-14-arm64
Version: 20241022.361

Was also getting the operation not permitted, scandir error with latest runners, upgrading cocoapods to version 1.16 seems to have resolved the problem for us.

Was also getting the operation not permitted, scandir error with latest runners, upgrading cocoapods to version 1.16 seems to have resolved the problem for us.

This solved the problem!!!

I have the same issue on macOS-15. Will attempt installing cocoapods 1.16.

Saw the issue yesterday. Solved it by upgrading the cocoapods to v1.16 and use macos-15

Hi @JP250552 ,  New images have deployed this week 🎉
As per analysis and user responses cocoapods v1.16 update may fix this issue, The latest images have cocoapods to v1.16. Could you please check and confirm if the issue still persist.
Thank you.

Thank you for the reply @susmitamane!
1.16 does in fact fix the issue.
Its slightly concerning that we don't fully understand the root cause.
If we weren't able to switch cocoapods versions, then we would be unable to create mobile builds.
I will go ahead and close this issue though since we are up and running again.


add function sending message to all

I commented out all three functions and left one

@egor-cpu You need to create a function to delete messages, which has been sent

[ ] delete messages which has been sent to users via SentToAll
[ ] only Admin role can do this
[ ] there should be a report via a message to users that messages are successfully deleted

I have tried yesterday to do it. That is why now we have sent_messages to track messages and later delete them. My try you can see on new subbranch delete-messages from newsletter branch. You can either fix my solution or create your own

@egor-cpu You need to create a function to delete messages, which has been sent

[ ] delete messages which has been sent to users via SentToAll
[ ] only Admin role can do this
[ ] there should be a report via a message to users that messages are successfully deleted

I have tried yesterday to do it. That is why now we have sent_messages to track messages and later delete them. My try you can see on new subbranch delete-messages from newsletter branch. You can either fix my solution or create your own.
Reopen PR when you will finisfh working on this


Positioning of subscript/indexes (in fractions)?

This is probably rather a support question. We are using v0.10.1 and have serious problems with the positioning of some elements in formulas, especially regarding height.
The details can be found in this SO question.
I've tried the same tex code in the try box of katex and it works perfectly.
I've also tried to use katex.render() with a completely naked div, but the result is the same. I'm using the katex.css file and do not overwrite the properties for .katex and the descendant elements.
I'd be grateful for any hint, what I could miss here.

For one, it looks like the fonts aren't loading on your site. Did you check the JavaScript console for failure-to-load messages? Also, which browser?
Also, you should really post a full example of your input file, and otherwise describe your environment (pure HTML or something else?).

@edemaine Thanks for the fast response. Indeed the KaTeX_Main-Regular.woff[2] file is not loaded. I'm currently trying to add it, which is a little bit complicated due to our development/build process.

OK, the reason for this problem was, that we used the Katex CSS only party. When I use the original CSS only it works fine.


mixing transaction isolation levels

DOC-10911
Document txn behavior when mixing Serializable and Read Committed txns.
Preview: https://deploy-preview-18929--cockroachdb-docs.netlify.app/docs/v24.2/transactions.html#mixed-isolation-levels

lgtm non-blocking formatting nit for all versions to add break tags for readability

TFTR! I am going to merge as-is because I think this is a larger style issue. I think inserting break tags in the middle of sentences feels grammatically incorrect. Even though some of the lines in your screenshot are more readable, they also look wrong to me (particularly the shorter lines in the first bullet). We can discuss this offline.


Fix gles3jni bug b/37001153 ( dated 2014 ) in gradle-experimental branch

master branch has the fix for a long time, low risk, merging in.


Can i achieve vertical scroll with this lib?

Guys hi,
As the title says i am wondering if i can achieve vertical scroll with this lib
Something like this.

Hi @gety9,
Unfortunately no, the current version doesn't provide such ability.
Thanks


Update to SDK 2.9 and simplify adding a new RC Daml SDK

Shows that the 2.9.0-rc2 works in the Daml Finance repo. Our tests pass and no changes were required to the Daml code.
Fixes https://github.com/digital-asset/daml-finance/issues/1224
TODO: replace sdk-version: 2.9.0-rc2 by sdk-version: 2.9.0 (when released) or sdk-version: 2.9.0-rc3 (if required)

Clean up daml-finance main after release:

[ ] update SDK version to 2.9.1
[ ] update hashes
[ ] bump minor for version to 1.15.0 (don't create assembly)
[ ] highlight that version is independent of SDK version


Small code change - fix

Small code change to finish basic usage example

Codecov Report

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

@@          Coverage Diff           @@
##           master    #106   +/-   ##
======================================
  Coverage    82.5%   82.5%
======================================
  Files          21      21
  Lines         280     280
======================================
  Hits          231     231
  Misses         49      49

Continue to review full report at Codecov.

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


Support language-specific literals

Fixes #399.
As mentioned in the issue, you do need to be aware if you need to namespace function calls for each language or not. For example:
- tab: "My tab"
  testcases:
  - expression:
      c: "to_string(1+1)"
      haskell: "Submission.toString (1+1)"
      runhaskell: "Submission.toString (1+1)"
      java: "Submission.toString(1+1)"
      javascript: "submission.toString(1+1)"
      kotlin: "toString(1+1)"
      python: "submission.to_string(1+1)"
      csharp: "Submission.toString(1+1)"
    return: "2"

Would it be possible to be consistent about i) always using a namespace and ii) always using the same namespace name?

Would it be possible to be consistent about i) always using a namespace and ii) always using the same namespace name?

Both would be difficult: always using a namespace is for example not possible in C, since C doesn't have namespaces. Using the same namespace everywhere is also difficult, since a TESTed "namespace" doesn't always mean the same thing: in Java this is a class name, while in Python it is a package name.


Is it possible to give the output of serialize or toArray back to the ui-sortable component and have it reorder at runtime?

I saved my sorted list of objects (to a database but probably not important) by using toArray but now I want to restore the order when I come back to the page later.  However while I can get the array out of the database when the controller starts I cant figure out how to reorder the list.
Note: the list provided by the controller is made of complex objects not just a list of id's.  They load from a rest interface.  What I would love is to be able to provide the preferred order back to the ui-sortable but if any objects don't exist or new objects do exist it would handle it gracefully.
I feel like i might just be barking up the waaay wrong tree but to be fair I am not really a UI guy so it might not be surprising.

Can't you just assign your restored array to your ngModel scope variable?

I am hoping I just dont understand but the serialized list is just the id's of the actual model that is being serialzied.  So I cant just assign that list of id's to the model right?

Can you share a sample object for your ngModel and the serialized array?
I guess that this is not so much related to ui-sortable and more of a "how to program this" question.
Forking one of the codepen examples found in README would be ideal.

Perhaps you were right, I ended up using the ordered array to sort the backing object after it was loaded, originally I didnt think that worked because the sort order didnt visibly change, i had to trigger a digest or whatever.  I am definately a noob in this area sorry :)

I'm glad you found your way around 👍