oci_image isn't setting architecture in the image config section

Haven't had a chance to debug image.sh.tpl yet, but it doesn't seem that architecture is being set in the images while an env with the values to debug this issue does show up:

WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

http_archive(
    name = "rules_cc",
    sha256 = "3d9e271e2876ba42e114c9b9bc51454e379cbf0ec9ef9d40e2ae4cec61a31b40",
    strip_prefix = "rules_cc-0.0.6",
    urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.6/rules_cc-0.0.6.tar.gz"],
)

http_archive(
    name = "rules_pkg",
    sha256 = "8c20f74bca25d2d442b327ae26768c02cf3c99e93fad0381f32be9aab1967675",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.8.1/rules_pkg-0.8.1.tar.gz",
        "https://github.com/bazelbuild/rules_pkg/releases/download/0.8.1/rules_pkg-0.8.1.tar.gz",
    ],
)

load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")

rules_pkg_dependencies()

git_repository(
    name = "aspect_gcc_toolchain",
    commit = "4bd1f94536ee92b7c49673931773038d923ee86e",
    remote = "https://github.com/aspect-build/gcc-toolchain",
)

load("@aspect_gcc_toolchain//toolchain:repositories.bzl", "gcc_toolchain_dependencies")

gcc_toolchain_dependencies()

load("@aspect_gcc_toolchain//toolchain:defs.bzl", "ARCHS", "gcc_register_toolchain")

gcc_register_toolchain(
    name = "gcc_toolchain_aarch64",
    target_arch = ARCHS.aarch64,
)

gcc_register_toolchain(
    name = "gcc_toolchain_armv7",
    target_arch = ARCHS.armv7,
)

gcc_register_toolchain(
    name = "gcc_toolchain_x86_64",
    sysroot_variant = "x86_64-X11",
    target_arch = ARCHS.x86_64,
)

http_archive(
    name = "io_bazel_rules_go",
    sha256 = "dd926a88a564a9246713a9c00b35315f54cbd46b31a26d5d8fb264c07045f05d",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.38.1/rules_go-v0.38.1.zip",
        "https://github.com/bazelbuild/rules_go/releases/download/v0.38.1/rules_go-v0.38.1.zip",
    ],
)

load("@io_bazel_rules_go//go:deps.bzl", "go_download_sdk", "go_register_toolchains", "go_rules_dependencies")

go_rules_dependencies()

go_download_sdk(name = "go_1_20_2_host", version = "1.20.2")
go_download_sdk(name = "go_1_20_2_linux_amd64", version = "1.20.2", goos = "linux", goarch = "amd64")
go_download_sdk(name = "go_1_20_2_linux_arm64", version = "1.20.2", goos = "linux", goarch = "arm64")

go_register_toolchains()

http_archive(
    name = "bazel_gazelle",
    sha256 = "ecba0f04f96b4960a5b250c8e8eeec42281035970aa8852dda73098274d14a1d",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.29.0/bazel-gazelle-v0.29.0.tar.gz",
        "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.29.0/bazel-gazelle-v0.29.0.tar.gz",
    ],
)

load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")

gazelle_dependencies()

http_archive(
    name = "rules_oci",
    sha256 = "48642588e91e992772b94de06234da6601854fda0ee32a91ce8ef303cf5e5837",
    strip_prefix = "rules_oci-0.3.7",
    url = "https://github.com/bazel-contrib/rules_oci/releases/download/v0.3.7/rules_oci-v0.3.7.tar.gz",
    # TODO(https://github.com/bazel-contrib/rules_oci/issues/116) Remove once non-standard ports supported for registries
    patch_args = ["-p1"],
    patches = ["//bazel:rules_oci_registry.patch"],
)

load("@rules_oci//oci:dependencies.bzl", "rules_oci_dependencies")

rules_oci_dependencies()

load("@rules_oci//oci:repositories.bzl", "LATEST_CRANE_VERSION", "oci_register_toolchains")

oci_register_toolchains(
    name = "oci",
    crane_version = LATEST_CRANE_VERSION,
)

load("@rules_oci//oci:pull.bzl", "oci_pull")

oci_pull(
    name = "distroless_cc",
    digest = "sha256:f252d3ca44b7f2c718c67c2020feee7b7fd4ee6bff8a192dfea6e599b7d820ad",
    # TODO(https://github.com/bazel-contrib/rules_oci/issues/74) Use latest images
    # digest = "sha256:fb402c45f3ef485ccd56ca2af2a58615fc47c4978bb3004e8663a83456791f48",
    image = "gcr.io/distroless/cc",
    platforms = [
        "linux/amd64",
        "linux/arm64",
    ],
)

BUILD.bazel
load("@aspect_bazel_lib//lib:transitions.bzl", "platform_transition_filegroup")
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
load("@rules_oci//oci:defs.bzl", "oci_image", "oci_push", "oci_image_index")

go_library(
    name = "hello_lib",
    srcs = ["hello.go"],
    importpath = "example.com/go/hello",
    visibility = ["//visibility:private"],
)

go_binary(
    name = "hello",
    embed = [":hello_lib"],
    visibility = ["//visibility:public"],
)

PLATFORMS = {
    "linux_x86_64": {"arch": "amd64"},
    "linux_aarch64": {"arch": "arm64"},
}

[platform_transition_filegroup(
    name = "hello_{}".format(platform),
    srcs = [":hello"],
    target_platform = "//platforms:{}".format(platform),
) for platform in PLATFORMS]

[pkg_tar(
    name = "hello_tar_{}".format(platform),
    srcs = [":hello_{}".format(platform)],
    include_runfiles = True,
    strip_prefix = "/",
) for platform in PLATFORMS]

[oci_image(
    name = "hello_image_{}".format(platform),
    architecture = "{}".format(attrs["arch"]),
    os = "linux",
    base = "@distroless_cc",
    entrypoint = ["/examples/go/hello/hello_/hello"],
    tars = [
        ":hello_tar_{}".format(platform),
    ],
    env = {
        "image_arch": "{}".format(attrs["arch"]),
        "image_os": "linux",
    },
) for platform, attrs in PLATFORMS.items()]

[oci_push(
    name = "hello_image_push_{}".format(platform),
    image = ":hello_image_{}".format(platform),
    repository = "localhost:5000/examples/go/hello",
    repotags = ["latest_{}".format(platform)],
) for platform, attrs in PLATFORMS.items()]

oci_image_index(
    name = "hello_image_linux",
    images = [
        ":hello_image_{}".format(platform)
        for platform in PLATFORMS
    ],
)

oci_push(
    name = "hello_image_linux_push",
    image = ":hello_image_linux",
    repository = "localhost:5000/examples/go/hello",
    repotags = ["latest"],
)

Note how architecture is amd64, but Env.image_arch env was set to arm64 using regctl image inspect localhost:5000/examples/go/hello:latest_linux_aarch64:
{
  "created": "1970-01-01T00:00:00Z",
  "author": "Bazel",
  "architecture": "amd64",
  "os": "linux",
  "config": {
    "User": "0",
    "Env": [
      "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/busybox",
      "SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt",
      "image_os=linux",
      "image_arch=arm64"
    ],
    "Entrypoint": [
      "/examples/go/hello/hello_/hello"
    ],
    "WorkingDir": "/"
  },
  "rootfs": {
    "type": "layers",
    "diff_ids": [
      "sha256:cb60fb9b862c6a89f92e484bc3b72bbc0352b41166df5c4a68bfb52f52504a7d",
      "sha256:f38a81323cd8a2d7636775c206e494eb1cdad64d2b008967be69a134eb4a736b",
      "sha256:6998679213707b9968867d5627bfa0f77da0baad13d2120ce41d0606c8f9d591",
      "sha256:e83d4114481dc897d49d5a9a8b68bf71c4f08f1a5c1adff44603c56b958fed53",
      "sha256:be43041c1d44a317622939fc256141b51ece61fa5264aca8cf561ee331f9bba0"
    ]
  },
  "history": [
    {
      "created": "1970-01-01T00:00:00Z",
      "created_by": "bazel build ...",
      "author": "Bazel"
    },
    {
      "created": "1970-01-01T00:00:00Z",
      "created_by": "bazel build ...",
      "author": "Bazel"
    },
    {
      "created": "1970-01-01T00:00:00Z",
      "created_by": "bazel build ...",
      "author": "Bazel"
    },
    {
      "created": "1970-01-01T00:00:00Z",
      "created_by": "bazel build ...",
      "author": "Bazel"
    },
    {
      "created": "0001-01-01T00:00:00Z"
    }
  ]
}

Using bazel aquery it can be seen that the platform is being properly passed for use by crane:
  Command Line: (exec bazel-out/k8-fastbuild/bin/examples/go/hello/image_hello_image_linux_aarch64.sh \
    mutate \
    oci:layout/bazel-out/k8-fastbuild/bin/external/distroless_cc_linux_amd64/layout \
    --tag \
    oci:registry/hello_image_linux_aarch64 \
    '--platform=linux/arm64' \
    '--append=bazel-out/k8-fastbuild/bin/examples/go/hello/hello_tar_linux_aarch64.tar' \
    --entrypoint \
    /examples/go/hello/hello_/hello \
    '--env=image_arch=arm64' \
    '--env=image_os=linux' \
    '--output=bazel-out/k8-fastbuild/bin/examples/go/hello/hello_image_linux_aarch64')

Despite its actual contents, Docker will refuse to run it for linux/arm64:
$ docker run --platform linux/arm64 --rm localhost:5000/examples/go/hello:latest_linux_aarch64
Unable to find image 'localhost:5000/examples/go/hello:latest_linux_aarch64' locally
latest_linux_aarch64: Pulling from examples/go/hello
fc251a6e7981: Already exists
7be4d3667295: Already exists
3508a3839ffc: Already exists
a1f1879bb7de: Already exists
253e4cd162a9: Already exists
Digest: sha256:19a4c2699e4313ca91e47081f44cf913beb2b6f09ad8eb673cd7aa15f0d6292e
Status: Downloaded newer image for localhost:5000/examples/go/hello:latest_linux_aarch64
WARNING: image with reference localhost:5000/examples/go/hello was found but does not match the specified platform: wanted linux/arm64, actual: linux/amd64
docker: Error response from daemon: image with reference localhost:5000/examples/go/hello:latest_linux_aarch64 was found but does not match the specified platform: wanted linux/arm64, actual: linux/amd64.
See 'docker run --help'.

The explanation sort of makes sense, but the devex doesn't. So I'm assuming the image example only works since it is statically linked and doesn't depend on anything else?
AFAICT, I pointed to a multi-arch (Docker list style due to other issue since distroless went OCI in March). My expectation is that oci_image would use os and arch to transition the dependency to that os/arch. I don't think I should have to multiple oci_pull single os/arch images?

i agree about the DX point. since there is no transition on oci_image (we did not implement it because other various issues around optional toolchains and cc toolchains. DX is horrible as of writing this), the select statement in oci_pull basically no-op unless --platforms flag is passed

I don't think I should have to multiple oci_pull single os/arch images?

oci_pull#platforms already expands to multiple oci_pull rules. basically an external repository per platform naming pattern is <name>_<os>_<arch>. you can run bazel query //external:* and look for repos that start with name of oci_pull call.

Sorry to resurrect this one. It doesn't seem that the information here is correct still or maybe i am just doing it wrong but I don't see those repos being created with the _linux_{platform} prefix anymore when using oci_pull with platforms. Do any docs exist on how to achieve this today?

@michaelschuett-tomtom we still generate platform specific repos for multi platform images.


on creating card, don't break if no assignee ids were provided

increasing your lib usability

I had to patch this to make it work on my project which requires creating cards with no user assigned. :c

Sorry for the inconvenience. Your changes have been published, please try again. Thank you.
ps.I'm looking for a free time to finish a v2.

nice, if you need help we can get in touch.
thanks!


Set Mysql Default Char Set and Collation on create

I am working on a system where it will be helpful to be able to set Default Character Set and Default Collation by using data from database driver config. This pull request achieves that. I trust you find it acceptable. Otherwise maybe here is some method/setting I missed?

Doesn't Laravel automatically use the Charset and Collation from the DB connection config?
Assuming that's correct, you just need to set it on the system connection config and this package will automatically copy it to the tenant connection config.  No need to set it in the DB directly.

Laravel most probably does  use charset and collation from db config. They are there as standard and are set correctly. in this installation.
However when using multi-tenant, it is creating the new tenant DB, not laravel per se.
In this instance the Mysql Server is outside of my control and the charset and collation are set to latin1, not as required for laravel defaults.
So I noticed each new database from multi-tenant was created with Server defaults - and not values from tenantl config. This patch appears to correct that.
I admit I didnt test extensively, and it may not make any difference as tables are created correctly.
But given the option is there I'd prefer to have it correct at db level.
Apologies for not reading pr instructions.


fix: client-side trailing slash redirect when preloading data

fixes https://github.com/sveltejs/kit/issues/8842
Ensures the navigated link pathname follows the resolved navigation result URL instead of the one specified in <a>.
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[x] Ideally, include a test that fails without this PR but passes with it.

Tests

[x] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[x] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

I agree. I was also confused about how to go about this at first. I've added the comment and edited a previous one. Hopefully that provides a bit more clarity.


bug fixes in Python frequency classes

Fixed a syntax error in HourFrequency
Added a "first day of week" parameter to BusinessDayFrequency. That parameter has a default in Scala, but the Python call to the Java constructor appears to require all parameters be set.

Thanks, looks great.  Merging this.


Fix Command Noun Parsing on Linux (issue 1529)

Fixes #1529.

My branch name is wrong so this isn't showing the right commits...


Release new version to fix compatability with puppet 7.28+ and 8.3+

Hello,
First, a bit of back context: Back in February, #65 was merged. This PR was originally written to address #64, which was addressed in an interim manner in #68 in 2022. As I alluded to in #64, I also submitted https://github.com/hercules-team/augeas/pull/721, which would not be sufficiently addressed with #68, but would in #65, which flexibly handles augeas updates to which labels were strings and which were arrays. https://github.com/hercules-team/augeas/pull/721 was merged back in November 2022, and we thus set up a situation where if a puppet update incorporated that change before #65 was merged and released, this module would break in the same way as #64 and #68 originally described.
With that background explained; Puppet 8.3 was released in November 2023, and Puppet 7.28 was released in January 2024, both incorporating a bump of augeas from 1.13.0 to 1.14.1, which includes https://github.com/hercules-team/augeas/pull/721 . As noted in https://www.puppet.com/docs/puppet/7/release_notes_puppet#enhancements_puppet_x-7-28-0-PA-5944 and https://www.puppet.com/docs/puppet/8/release_notes_puppet#enhancements_puppet_x-8-3-0-PA-4938, this breaks the use of augeas in the way predicted in #64, because the label is now an array and not a string. This was also observed in #99 on this repository.
I have tested in my local environment, and in order to address this situation with the use of the module, my change in #65 must be present. This change is also confirmed backwards-compatible with pre-7.28/8.3 .
Therefore, I humbly ask that a new release of this module be cut when possible, to allow for people not able to run from the git repo that is ahead of the latest release to be able to address this issue. A release note highlighting the puppet release notes would also be appreciated, as I believe people may need to further adjust their config/use of the module to switch from a string to an array.

Checking in, is there any way we could arrange for a new release at some point soon?


Cannot reconnect to port on linux, OSX is working fine

SerialPort Version
11.0.1
Node Version
20.5.1
Electron Version
No response
Platform
aarch64 GNU/Linux
Architecture
ARM64
Hardware or chipset of serialport
No response
What steps will reproduce the bug?
When I try to read data from dev/ttyUSB0 for a long time my Raspberry Pi gets stuck, I opened bug #2684 for this. To circumvent the problem, I tried to close the connection to the port and reconnect. Testing this code on a Mac worked without problems, but on the Raspi I get the following error:
[Error: Error Resource temporarily unavailable Cannot lock port]
To connect and reconnect on a given interval I added the following class:

export class RenewableStream extends Readable {
	_source: SerialPortStream;
	_intervalClose = false;
	constructor(serialOprions: OpenOptions, interval: number, options: ReadableOptions = {}) {

		super(options);

		this._source = new SerialPortStream(serialOprions);

		this._source.on("data", (chunk) => {
			this.push(chunk);
		});

		this._source.on("end", () => {
			if (!this._intervalClose) {
				this.push(null);
			}
			console.log("ENDDDD");
		});

		setInterval(() => {
			this._intervalClose = true;
			this._source.close(async (err) => {
				if (err) {
					console.log("close error: ", err);
				}
				this._source.open((err) => {
					if (err) {
						console.log("Connect error: ",err);
					}
				});
				this._intervalClose = false;
			});
		}, interval);
	}

	_read(): void {
		// empty
	}

	async close(): Promise<void> {
		console.log("startClose");
		return new Promise((resolve, reject) => {
			this._source.close((err) => {
				console.log("Close");
				if (err) {
					reject(err);
				}
				resolve();
			});
		});
	}
}

And I use the following code to test the code:
const s = new RenewableStream({
	baudRate: 9600,
	path: "/dev/ttyUSB0",
	binding: autoDetect()
}, 10000); // reconnect every ten seconds

await pipeline(
	s,
	async (source) => {
		for await (const d of source) {
			console.log(d.toString());
		}
	}
);

What happens?
Running the code given above runs without any errors on my Mac, but running it on a Raspberry Pi for generates the error [Error: Error Resource temporarily unavailable Cannot lock port] when the code tries to connect after close() was called.
What should have happened?
Like on the Mac, the connection should be reopened and should be usable without errors
Additional information
No response

Are you able to check if you get the same issues on Node V18?  This could be related to the other issues being investigated for node v20 on Linux (https://github.com/serialport/node-serialport/issues/2656)

Thanks for confirming @akesser


[MRC] Benchmark runs error out when used mock object

When using a Mock Object for loosely bounded pallets then benchmarks are not setup correctly and can not execute the mock object from Test context.
We need to find a way to fix this issue.
Example:
If you run benchmarks on messages it will error out since it can not detect the message source account due to the Test mock not being maybe accessible from benchmark?

The benchmark is definitely using the runtime config in runtime/src/lib.rs, which is to use Msa as the AccountProvider.
I've tried a number of different ways to understand why it is ignoring the config in messages/src/mock.rs but it always uses the above one.  We are following exactly the recommended method for implementing and using the trait via a config.
I've tried:

ensuring that all types refer only to what is configured, everywhere in the config setup
implementing a toy trait in another pallet and another benchmark
looking for signs of a red herring (i.e. some other call that is causing the issue).

I will check in what I have in a branch because it contains fixes so that the benchmarks will actually build.


Get NOMIS data from API instead of downloading a CSV

Downloading a CSV is a manual and slow process. Consider making the data acquisition part of an automated data pipeline, which updates when run and doesn't require raw data storage.

API link for disability data in JSON format: https://www.nomisweb.co.uk/api/v01/dataset/NM_1547_1.jsonstat.json?date=latest&geography={geo1}...{geo2}&c_disability=0...3&measures=20100
Where the variables can be replaced with geocodes, e.g.
geo1, geo2 =<PHONE_NUMBER>,<PHONE_NUMBER>

Questions:

Are the geocodes used in this NOMIS API query URI (see above) output areas codes? (I think they might be)
The OA codes here, e.g. E00000161 are 9 characters long if you include the letter, or 8 without. However the code in the API URI are 10 digits long.
Finally, whatever the codes used in the API are, where can I get a complete list of them so I can iterate through the list and cover the whole of the UK?

According to comments here: https://www.nomisweb.co.uk/forum/posts.aspx?tID=605&fID=2
Normal GSS geography codes work to query tables from the API.

We are steering away from downloading from URLs. I don't think this is a proper API, so closing this ticket.


[WIP] Sleep for less time

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/5491/
Test FAILed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/5492/
Test FAILed.

Jenkins, test this please

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/5493/
Test FAILed.

Jenkins, test this please

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/5513/
Test PASSed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/5751/
Test FAILed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/5769/
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/5770/
Test PASSed.

Jenkins, test this please

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/5771/
Test FAILed.

Jenkins, test this please

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/6488/
Test PASSed.


Breaks with Crafts 'enableCsrfProtection' set to true

When trying to setup auth with Twitter you only get a "The CSRF token could not be verified." from Craft.
EDIT: Updated the error message to the correct one.

Got the same error


Desync at turn 4

Apparently he desynced when he started fighting at the tower near Thandol Bridge

He was fighting over here when it happened

Fixed by https://github.com/AzerothWarsLR/WarcraftLegacies/commit/715fb9148859175bd9585ddd450fd0c3500f5f21.


Use SAP HANA as the Database for a CAP Java Application

Tutorials: https://developers.sap.com/tutorials/cp-cap-java-hana-db.html
Write here how you think we can improve the tutorial.
I have followed all the steps in the tutorial.
Created the SAP HANA Database Instance named as bookstore-db and allowed access to your SAP HANA Cloud from all IPs.
pushed the artifacts using command
'cds deploy --to hana:bookstore-hana --store-credentials'. As an effect, .hdbtable and .hdbview files are generated in the (gen/)db/src/gen/ folder.
Now, when I execute the command mvn spring-boot:run -Dspring-boot.run.profiles=cloud, it runs the api on port 8080 but on accessing any service, it gives this error.

Link to view SAP HANA Database Instance - https://hana-cockpit-001.cfapps.us10.hana.ondemand.com/hcs/sap/hana/cloud/index.html#/&/databases/org/50ff7ded-f229-46f9-b3ff-54c9cea7377d/space/5b81984e-0087-4379-8c21-02b9a671f20d/databases?databaseguid=b4a9cecd-51f7-44c7-9379-9bd5a583f9a3
As the hands-on is on my trial account, please let me know you user id, I will add you as the member to my account so that you can view the db instance and code in BAS.

Hi @PriyankaSadana1 ,
could you also please provide the log/CLI output when this error occurs? Thanks.

We can close this ticket, I deleted the .hdbview and tables created previously during deploy and tried all the steps again and it started working.
Thank you for your support.


Bind addEventLister to window for sentry

I used sentry and lazysizes and I encountered the following error:.

The reason is that when window.addEventListener is set to alias as addEventListener, window's bind is gone.
So I bind addEventListener to window.

https://github.com/getsentry/sentry-javascript/blob/cc08ef4558c88b03d81ae3370900d175035ca443/packages/browser/src/integrations/trycatch.ts#L89
this is undefined

But this is an error of sentry. Why do you want to change the code here. Instead of sentry itself?

Hi @aFarkas, this issue is actually not an issue with Sentry but with the lib as window is lost especially when doing SSR in some frameworks like Angular. This fix binds the window object which should solve this.


Memory Error when I do t2t-datagen

Description
I followed the tutorials in https://cloud.google.com/tpu/docs/tutorials/transformer to build a translation model, the Memory Error occurs when I use t2t-datagen with changing problem para to translate_enzh_wmt32k. It also occurs when I do it on my own machine. Is it a bug or anything should I do?
Environment information
GCP
OS: <your answer here>

$ pip freeze | grep tensor
# mesh-tensorflow==0.0.5
tensor2tensor==1.13.2
tensorboard==1.14.0
tensorflow==1.14.0rc0
tensorflow-datasets==1.0.2
tensorflow-metadata==0.13.0
tensorflow-probability==0.7.0
tensorflow-serving-api==1.12.0

$ python -V
# Python 2.7.13

For bugs: reproduction and error logs
# Steps to reproduce:
STORAGE_BUCKET=gs://darkt_t2t
lincheng37211@lincheng37211:~$ DATA_DIR=$STORAGE_BUCKET/data
lincheng37211@lincheng37211:~$ TMP_DIR=/mnt/disks/newdisk/t2t_tmp
lincheng37211@lincheng37211:~$ mkdir /mnt/disks/newdisk/t2t_tmp
lincheng37211@lincheng37211:~$ t2t-datagen --problem=translate_enzh_wmt32k --data_dir=$DATA_DIR --tmp_dir=$TMP_DIR

# Error logs:
I0715 03:12:54.598854<PHONE_NUMBER>48992 generator_utils.py:229] Not downloading, file already found: /mnt/disks/newdisk/t2t_tmp/training-parallel-nc-v13.tgz
I0715 03:12:54.598951<PHONE_NUMBER>48992 generator_utils.py:380] Reading file: training-parallel-nc-v13/news-commentary-v13.zh-en.zh
I0715 03:12:59.571671<PHONE_NUMBER>48992 text_encoder.py:722] Trying min_count 500
I0715 03:13:00.638477<PHONE_NUMBER>48992 text_encoder.py:802] Iteration 0
I0715 03:13:02.438431<PHONE_NUMBER>48992 text_encoder.py:825] Processing token [世界上其他的国家也许会任由中美两国被它们排放的废物所吞没] took 0.197419881821 seconds, consider setting Text2TextProblem.max_subtoken_length to a smaller value.
I0715 03:13:04.429254<PHONE_NUMBER>48992 text_encoder.py:825] Processing token [中国显然正在利用] took 0.38846206665 seconds, consider setting Text2TextProblem.max_subtoken_length to a smaller value.
I0715 03:13:08.614118<PHONE_NUMBER>48992 text_encoder.py:825] Processing token [这是中美相互依存进入破坏阶段所造成的双边不信任程度深化的一个鲜明例子] took 0.834113121033 seconds, consider setting Text2TextProblem.max_subtoken_length to a smaller value.
I0715 03:13:17.385082<PHONE_NUMBER>48992 text_encoder.py:825] Processing token [但要靠如此简单的做法解决我们目前面临的极度复杂并互相联系的生态危机是不可能的] took 1.78553104401 seconds, consider setting Text2TextProblem.max_subtoken_length to a smaller value.
I0715 03:13:36.257227<PHONE_NUMBER>48992 text_encoder.py:825] Processing token [阿伦特中心邀请琼根发言的决策] took 3.45979595184 seconds, consider setting Text2TextProblem.max_subtoken_length to a smaller value.
Traceback (most recent call last):
  File "/usr/local/bin/t2t-datagen", line 28, in <module>
    tf.app.run()
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 40, in run
    _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
  File "/usr/local/lib/python2.7/dist-packages/absl/app.py", line 300, in run
    _run_main(main, args)
  File "/usr/local/lib/python2.7/dist-packages/absl/app.py", line 251, in _run_main
    sys.exit(main(argv))
  File "/usr/local/bin/t2t-datagen", line 23, in main
    t2t_datagen.main(argv)
  File "/usr/local/lib/python2.7/dist-packages/tensor2tensor/bin/t2t_datagen.py", line 216, in main
    generate_data_for_registered_problem(problem)
  File "/usr/local/lib/python2.7/dist-packages/tensor2tensor/bin/t2t_datagen.py", line 301, in generate_data_for_registered_problem
    problem.generate_data(data_dir, tmp_dir, task_id)
  File "/usr/local/lib/python2.7/dist-packages/tensor2tensor/data_generators/text_problems.py", line 361, in generate_data
    self.generate_encoded_samples(data_dir, tmp_dir, split), paths)
  File "/usr/local/lib/python2.7/dist-packages/tensor2tensor/data_generators/translate_enzh.py", line 235, in generate_encoded_samples
    max_subtoken_length=self.max_subtoken_length)
  File "/usr/local/lib/python2.7/dist-packages/tensor2tensor/data_generators/generator_utils.py", line 368, in get_or_generate_vocab
    vocab_generator, max_subtoken_length)
  File "/usr/local/lib/python2.7/dist-packages/tensor2tensor/data_generators/generator_utils.py", line 352, in get_or_generate_vocab_inner
    reserved_tokens=reserved_tokens)
  File "/usr/local/lib/python2.7/dist-packages/tensor2tensor/data_generators/text_encoder.py", line 673, in build_from_generatorexit
    reserved_tokens=reserved_tokens)
  File "/usr/local/lib/python2.7/dist-packages/tensor2tensor/data_generators/text_encoder.py", line 748, in build_to_target_size
    return bisect(min_val, max_val)
  File "/usr/local/lib/python2.7/dist-packages/tensor2tensor/data_generators/text_encoder.py", line 727, in bisect
    reserved_tokens=reserved_tokens)
  File "/usr/local/lib/python2.7/dist-packages/tensor2tensor/data_generators/text_encoder.py", line 819, in build_from_token_counts
    subtoken_counts[new_subtoken] += count
MemoryError

This suggestion seems to be appearing often

Processing token [阿伦特中心邀请琼根发言的决策] took 3.45979595184 seconds, consider setting Text2TextProblem.max_subtoken_length to a smaller value.

I noticed that the max subtoken length is 200 for the default. I am trying to figure out if that's the number of sub tokens (I would imagine that would be the vocab size if we're using the subword model) or if that's the length of the word to be represented by a subtoken. If it's the latter, that is very large; 200 longer than most words.
Let me know if you figure out how exactly max_subtoken_length is defined, and if it should be changed.
The parameter default is set here:
https://github.com/tensorflow/tensor2tensor/blob/master/tensor2tensor/data_generators/text_problems.py#L324

Did you figure out how to define max_subtoken_length manually?

update:
I tried to change max_subtoken_length in the source code, and build it. But the question is, neither bigger nor smaller the value made, the problem still exist.
I think maybe the tokenizer for chinese have some problems, is it a bug?


Make the port of ingress controller configurable in helm chart

The default NodePort range for service in k8s is 30000-32767. When creating an ingress controller using NodePort, a random port in this range rather than 80/443 will be allocated. In this case, the docker and notary commands will fail.
The root cause is that the authentication service configured in the config files of registry and notary server is the externalDomain in the value.yaml, and it doesn't contain the port of ingress controller.

Isn't NodePort is selected randomly?

The NodePort used by a service can be specified, or it will be allocated a random one from the port range.


German Translation of Countries

I couldn't find a proper translation for countryCode3.IOA (Indian Ocean Territories)

Thank you!


Custom Toast is tied to the framerate

The custom toast for "Work in progress!!" Is tied to the framerate, resulting in it disappearing faster at higher framerates
https://github.com/Wilyicaro/Legacy-Minecraft/assets/65347035/4722d2ba-41d4-49ac-a97a-52a9d317c57a

Thanks for reporting this issue, it was fixed in 1.1.1


Migrate repositories from JBoss parent to Apache Parent

JBoss Parent pom is used to define global properties, plugins, and release configurations related to JBoss org projects.
We need to move to Apache Parent for global configurations, plugins and add the differences to Kogito parent to achieve the same build environment.

PR for kogito-runtimes: https://github.com/apache/incubator-kie-kogito-runtimes/pull/3232. I was not able to run all tests locally due to not having the proper setup for testcontainers on my Macbook with ARM. So if someone is able to execute tests over this PR, please do it.

kogito-apps references kogito-runtimes parent. I was able to compile it locally succesfully, so it should be migrated when kogito-runtimes is merged to main.

Drools PR is merged.

kie-benchmarks PR: https://github.com/apache/incubator-kie-benchmarks/pull/264

When I search the Apache organization on GitHub for jboss-parent, there are no other mentions of jboss-parent than the repositories I created PRs for. So when reviewed and merged, this could be closed.

PR with fixes for Drools: https://github.com/apache/incubator-kie-drools/pull/5541. There were some problems that showed up just in fullProfile builds, which is used in nightly jobs.

All fixes should be done. What is left is to go through the review process and merges.

kie-benchmarks PR merged.

optaplanner PR merged.

Kogito-runtimes PR merged. What is left open last is PR with fixes for the full build. It should get merged today too.

Last PR merged.

All of the PRs are merged, moving this to review.


ClerkProvider for localization

Would it be possible to have the ClerkProvider component so the experimental localization prop can be used?
Or is there any other way to set it?
See here for reference: https://clerk.com/docs/components/customization/localization
Thanks and all the best!

Hey!
You can pass it in the plugin options:
import { clerkPlugin } from 'vue-clerk/plugin'
import { frFR } from '@clerk/localizations'

const app = createApp(App)

app.use(clerkPlugin, {
  publishableKey: import.meta.env.VITE_CLERK_PUBLISHABLE_KEY,
  appearance: {},
  localization: frFR
})

I haven't tested this but let me know if it works for you!

Yes, it works! Thanks for the quick response - I think this might actually be worth noting in the documentation...
Correct syntax is this one by the way:
app = createApp(App)
    .use(clerkPlugin, {
      publishableKey: import.meta.env.VUE_APP_CLERK_PUBLISHABLE_KEY,
      options: {
        localization: deDE,
      },
    })

With options  beeing the ClerkOptions interface.

Heads up - Im opening a breaking change PR moving the options object at the root of the plugin options
https://github.com/wobsoriano/vue-clerk/pull/26


You can press up while going down a ledge to stop movement

A similar effect can also happen when you don't hold down long enough on a ledge - sometimes it's possible to jump in place and nothing else happens.


Use golang.org/x/mod for parsing Fyne version in go.mod

Use https://pkg.go.dev/golang.org/x/mod here:
https://github.com/fyne-io/tools/blob/9efbb19e1ba665912def685a290640d5c7822942/cmd/fyne/internal/commands/build.go#L173

Make sure that whatever library we use it supports the new point release notation for Go since 1.21.0

I think x/mod is what the compiler uses internally for module parsing. I will be more or less the same as using the Go binary for it.

Yes, but as noted in the issues in golang GitHub the compiler not matching the toolchain/library is the source of problems elsewhere so it felt important to note.


Publish controller logs as Prow artifact

This pull request adds a new environment variable $DUMP_CONTROLLER_LOGS to the kind-build-test.sh script that optionally dumps the controller pod logs into the $ARTIFACTS/controller_logs folder. This folder is consumed by Prow and uploaded to S3 at the conclusion of the job.
It also configures spyglass with to add the controller_logs file to the buildlog lense, so that it is accessible from the web dashboard.

/lgtm


[web-pubsub-client] Prepare for beta release

Packages impacted by this PR
web-pubsub-client
Issues associated with this PR
Describe the problem that is addressed by this PR
Prepare for beta release
What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?
Are there test cases added in this PR? (If not, why?)
Provide a list of related PRs (if any)
Command used to generate this PR:**(Applicable only to SDK release request PRs)
Checklists

[ ] Added impacted package name to the issue description
[ ] Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
[ ] Added a changelog (if necessary)

API change check
API changes are not detected in this pull request.


Codeowners

Is your feature request related to a problem? Please describe.
As an open source project with different contributors, it might be a good idea to establish early on code owners for different parts of the repository, so that changes made to them have to reviewed by the code owners of those particular parts (this also requires an accompanying change in the PRs of the repo).
Describe the solution you'd like
Add a CODEOWNERS file as described here specifying the first code owners.
Describe alternatives you've considered
No alternative solution, as this is merely a suggestion based on personal experience and good practices.
Additional context
No additional context necessary.

Hi Achilleas, I hope you are doing good, I'm adding you in the codeowners
file for the PR review.
On Sat, Feb 17, 2024 at 9:53 PM Achilleas Mitos @.***>
wrote:

Is your feature request related to a problem? Please describe.
As an open source project with different contributors, it might be a good
idea to establish early on code owners for different parts of the
repository, so that changes made to them have to reviewed by the code
owners of those particular parts (this also requires an accompanying change
in the PRs of the repo).
Describe the solution you'd like
Add a CODEOWNERS file as described here
https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
specifying the first code owners.
Describe alternatives you've considered
No alternative solution, as this is merely a suggestion based on personal
experience and good practices.
Additional context
No additional context necessary.
—
Reply to this email directly, view it on GitHub
https://github.com/soravkumarsharma/ATM-Project-for-Beginners/issues/17,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASS4COZZ3NPQUQQZSZ3TUL3YUDKPHAVCNFSM6AAAAABDNNOMAGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2DAMRVHEYTAOI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Not sure how to compose multi-statement transactions with reliable rollback on Error

I'm currently using rusoto's RDS data API for interacting with my backend and with that I have created wrappers for running transactions  that let me begin a transaction, defer to some callback to make various queries/update etc and if something fails then the wrapper will handle rollback or else commit the transaction.
I was hoping to switch over to using sqlx but I can't really see how to do something similar because transactions can't be passed around in any way and it doesn't really seem useful to pass a mutable reference to a Transaction if that will simply be consumed by the first query.
Essentially I was hoping for something similar to Connection::transaction but being able to execute more than a single query.
I see that I can execute multiple statements if they are executed in the same function that calls begin which owns the Transaction but it seems like a significant limitation on being able to modularise code if transactions can't be composed via function calls to execute statements?
As an experiment I wondered about passing the Transaction ownership around but I couldn't really figure out the lifetime details and the ergonomics would be really unpleasant if you can no longer use '?' to return errors if the Transaction also needs to be returned too.
Is there maybe some trick I'm missing here that would make it possible to execute multiple transaction statements in a wrapper similar to Connection::transaction  that will reliably handle the commit/rollback steps?

If you acquire a transaction by calling .begin() on  Pool then the lifetime on that Transaction can be 'static as it internally takes ownership of a PoolConnection and returns it to the pool on-drop after executing a ROLLBACK.
Transactions always rollback on-drop but I have considered adding a .commit_on_drop() method that switches the transaction to, well, committing on drop instead of rolling back.

it doesn't really seem useful to pass a mutable reference to a Transaction if that will simply be consumed by the first query.

You can always reborrow:
async fn takes_txn(tx: &mut Transaction<'_, Postgres>) -> anyhow::Result<()> {
    let row = sqlx::query("...").fetch_one(&mut *tx).await?;

    sqlx::query("...").execute(&mut *tx).await?;
}

You can also call .begin() again on the Transaction to generate a SAVEPOINT to preserve changes in a fallible mutating function:
async fn outer_fn(outer_tx: &mut Transaction<'_, Postgres>) -> anyhow::Result<()> {
    // changes that must be preserved in the outer transaction
    sqlx::query("...").execute(&mut *outer_tx).await?;

    let inner_tx = tx.begin().await?;

    // this would be neater with `try {} catch {}` probably
    match inner_fn(&mut inner_tx).await {
        Ok(()) => inner_tx.commit().await?,
        Err(e) => {
            log::warn!("inner_fn error: {}", e);
            inner_tx.rollback().await?;
        }
    }

    // the changes in `outer_tx` are kept
}

 async fn takes_txn(tx: &mut Transaction<'_, Postgres>) -> anyhow::Result<()> {
    let row = sqlx::query("...").fetch_one(&mut *tx).await?;

    sqlx::query("...").execute(&mut *tx).await?;
}

ah, cool, thanks, I think this is the trick I was looking for - it didn't occur to me intuitively that I could dereference and re-borrow - that sort of conceptually feels like it breaks the rule of only having a single mutable borrow but see it's fine when it's moved into a new function scope.
Since I realised this was a rust lang detail I hadn't really thought about before I investigated it a tiny bit and see now that in practice 'reborrowing' happens all over the place, usually implicitly, and wonder now if there's some way that the ergonomics can be somehow improved here so it's not necessary to explicitly reborrow like this? My vague understanding now is that normally a mutable reference argument should be automatically reborrowed so this kind of explicit reborrow often wouldn't be necessary.
Maybe not possible but I wonder now if there's a way to tweak the generic executor type bounds for query functions like fetch to get the compiler to reborrow automatically when the executor is a Transaction reference?
Either way, thanks for the pointers here!

Transactions always rollback on-drop but I have considered adding a .commit_on_drop() method that switches the transaction to, well, committing on drop instead of rolling back.

Just to comment on this; I suppose I'd say in general my preference would be to not depend on Drop for either. Rollback on Drop seems like a reasonable default behaviour but since Drop isn't itself async it seems a bit funky that the rollback (or commit if there was an .commit_on_drop()) happen some time in the future after being dropped. I much prefer the more-explicit wrapper function approach where the wrapper can reliably catch any errors and being async itself you can be sure that once it's returned that everything has either been committed or rolled back.

wonder now if there's some way that the ergonomics can be somehow improved here so it's not necessary to explicitly reborrow like this? My vague understanding now is that normally a mutable reference argument should be automatically reborrowed so this kind of explicit reborrow often wouldn't be necessary.

Maybe not possible but I wonder now if there's a way to tweak the generic executor type bounds for query functions like fetch to get the compiler to reborrow automatically when the executor is a Transaction reference?

In the past, these methods took, effectively, &mut E where E: Executor which would trigger the implicit reborrow, however this required passing &Pool (which implements Executor) as &mut &pool which looks really weird and is rather cumbersome. Requiring people to pass &mut Pool would make it difficult to use with, e.g. Actix-web's Data extractor which only gives you immutable access (being a wrapper around Arc), so you'd have to clone the pool first.
The ergonomics are optimized for Pool since that was anticipated to be the most common way used to execute a query (which in our applications has turned out to be true).
We've also tried to impl Executor for &mut E where E: Executor so you could just pass &mut tx without an explicit reborrow but that triggers errors in the compiler.

Rollback on Drop seems like a reasonable default behaviour but since Drop isn't itself async it seems a bit funky that the rollback (or commit if there was an .commit_on_drop()) happen some time in the future after being dropped.

Yeah, it would be nice to have an AsyncDrop which is a commonly asked-for feature in async Rust: https://www.reddit.com/r/rust/comments/r2wuvo/cancellationsafe_futures_andor_removal_of_await/
The current behavior is to queue the ROLLBACK to be executed before any other command is executed on the connection, so from the application's perspective the order of operations is the same. The only observable difference is the fact that it may take longer for any locks held by the transaction to be released, depending on when the connection is next used. For Pool, it tests connections when returned to the pool in a background task, at which point the ROLLBACK would be flushed to the server.
To my knowledge, there isn't really any error that could occur during a ROLLBACK that isn't fatal anyway, such as an I/O error from a broken connection. In that case, the transaction will be ended by the database server when it notices the connection is broken.
COMMIT is a bit more complicated because there can be errors from things like deferred constraints and conflicts in UNIQUE indexes from concurrent transactions that should probably be handled by the application. However, that is really context-sensitive and depends on the semantics the application is trying to implement. I think that would just be a caveat that the user needs to be aware of when calling .commit_on_drop().
Scoping the transaction with an async closure is definitely the ideal, but it has issues due to current language limitations that I explain in a bit more detail in this IRLO thread: https://internals.rust-lang.org/t/proposal-stabilizable-proc-macro-based-lints/15022/7?u=abonander

Thanks for the extra info!
Just for comparison; with the RDS data api I'm currently using I have a wrapper that's defined like this:
pub async fn run_transaction<'a, R, C, F>(rds: &'a RdsDataClient, id: String, desc: String, closure: C) -> Result<R, StdError>
where
    C: FnOnce(&'a RdsDataClient, String) -> F,
    F: Future<Output=Result<R, StdError>>
{
    // start transaction

    match closure(&rds, transaction_id.clone()).await {
        Ok(ret) => {
            // match rds.commit_transaction(commit).await {}
            Ok(ret)
        }
        Err(err) => {
            // match rds.rollback_transaction(rollback).await {}
           Err(err)
        }
    }
}

(The id and desc arguments are purely for debug messages)
In this case I don't end up using higher kinded type lifetime bounds and have so far been happy enough with the ergonomics. In this case the transaction handle is being passed around by value not reference and is just represented as a string id.
Most of my APIs for interacting with my database just take a transaction: Option<String> which is what the RDS equivalent of the query execute API takes for signalling that a request should belong to a transaction (so most code doesn't care ahead of time whether it's part of a transaction). It's maybe not perfectly ideal to be cloning the transaction id for each request but I've never really been concerned by that in the context of making remote DB requests.
I suppose the main difference is that the API doesn't try and unify transactions as generic executors and the transaction handle can be cloned so there's no complex lifetime details to juggle.
Maybe it's not something that can be easily changed in sqlx but maybe it'd simplify things to avoid the need for a generic Executor and instead manage transactions in terms of an Option<>al transaction handle that's given when executing a query.

Have best practices changed since this thread? The reborrowing trick mentioned above is no longer working for me, with a simple code sample:
async fn takes_tx(
    tx: &mut Transaction<'_, Sqlite>,
) -> anyhow::Result<()> {
    let res = sqlx::query("SELECT ...")
        .fetch(&mut *tx);

    sqlx::query("INSERT INTO ...")
        .execute(&mut *tx)
        .await?;

    Ok(())
}

This results in:
cannot borrow `*tx` as mutable more than once at a time
second mutable borrow occurs here

indicating that the second sqlx::query call re-mutably borrows tx


[Question] How i can check what is files need to update with prompt scheme + periodic update ?

I have fantom updates and i want to check what files are triggered that. How i can get what files need to update ?
Code:
register:
const { useRegisterSW } = await import('virtual:pwa-register/vue')

      const { needRefresh, updateServiceWorker } = useRegisterSW({
        immediate: true,
        onRegistered(r) {
          r
            && setInterval(async () => {
              try {
                await r.update()
              }
              catch (e) {
                console.error('Worker', e)
              }
            }, 30000)
        },
      })

config:
VitePWA({
        base: '/',
        scope: '/',
        workbox: {
          globPatterns: ['**/*.{js,css,ico,png,svg,ttf,woff,eot}', 'fallback.html'],
          skipWaiting: false,
          clientsClaim: true,
          navigateFallbackDenylist: [/^\/api/],
          navigateFallback: 'fallback.html',
        },
        manifest: {
          scope: '/',
          id: '/',
          icons: []
        },
        devOptions: {
          enabled: false, // isDev,
          // type: "module",
          navigateFallback: 'index.html',
        },
      })

@evdevru you can checl the caches, should exists an entry with your host, there you have last update timestamp, I don't remember if you can sort the table

@evdevru you can check the caches, should exists an entry with your host, there you have last update timestamp, I don't remember if you can sort the table.

I cant check what is updated. If worker was updated then all files has new date, but really i dont have new build


Importing a module from a js file in public folder

I have to include an external, minfied js module. E.g. "external/script.js".
Let's say, external/script.js is (it obviously isn't but...):
const mytest = "asdfasdf"
export default mytest

I have put external/script.js in my public folder.
In public/index.html I have:
<script type="module" src="%PUBLIC_URL%/external/script.js"></script>
How can I then import and use mytest in a regular react component? What is the import path I can use for this? I have looked into CRACO and excluding the ModuleScopePlugin, but I'm still not sure how to actually reference the module.

You could use dynamic import() to import ES modules dynamically. The trick is to tell Webback not to convert dynamic import()s for it's own use (lazy loading, chunking):
import(/webpackIgnore: true/ 'path/to/module.js');
https://webpack.js.org/api/module-methods/#magic-comments


Remove link to Red Cross donation

Removed Red Cross donation link, as they spending money in a terrible way.
Sources:
https://mobile.twitter.com/your_psychoo/status/1507110118906863617?s=21&t=8Wz67Xfp19a3lT6r0VaIwg
https://life.pravda.com.ua/society/2022/03/26/247987/
https://telegraf.com.ua/ukr/ukraina/2022-03-25/5700516-na-krasnom-kreste-mozhno-stavit-krest-ukraintsev-vozmutili-strannye-dogovorennosti-s-lavrovym
https://nv.ua/ukr/ukraine/events/chervoniy-hrest-skandal-z-ofisom-u-rostovi-nacionalniy-komitet-poyasniv-situaciyu-novini-ukrajini-50228742.html

Hi @Pernat1y , I´m aware of those news, but I would like to keep the link donations to an international humanitarian aid specifically is my focus.  Nothing against your proposal but I hope you understand what I´m tyring to do.
Would be you more confortable using for instance https://www.savethechildren.org/us/where-we-work/ukraine ?

In understand, seems the UN is more complete, would you like change the url in both PR?


Any plans for POST full-JSON to RPC?

PostgreSQL 9.5+ accepts JSON as parameter in user-defined functions... It will be perfect to expand universe of applications and to simplify communication. But,

Procedures must used named arguments. To supply arguments in an API call, include a JSON object in the request payload and each key/value of the object will become an argument. [guide]

so, it is only "at this moment" limitation, or an architecture planned to be as it, closed to JSON?

You can also call a function that takes a single parameter of type json by sending the header Prefer: params=single-object to PostgREST with your request. That way the JSON request body will be used as the single argument. Is this the functionality you're looking for?


Distinguish between empty strings and NULL (?)

Hi there,
Thanks for a good library – I've used it for quite some time, but today I encountered something which seems like a bug: Empty (but valid!) strings are returned as NULL, causing trouble as I need to distinguish between the empty string and null.
Distinguishing between empty strings and null works fine with database/sql.NullString, and I guess this library also wants to do so? Either way, the fix is straightforward: In Value(), ns.Valid is set to true iff ns.String is "". This pull request just removes the line which sets ns.Valid based upon ns.String.

Thanks!


Rust upgrade (1.0.0-nightly).

Changes necessary to build under the latest Rust nightly without errors and warnings.

hi !
Thanks for the PR ! why the unstable flag is needed ?

why the unstable flag is needed ?

To avoid a ton of warnings.
Rust now emits a warning everywhere a non-stable API is used.

oh, yes sure , but I was thinking that only int will produce these warning, but you changes them.
Anyway, I'll merge this ! thank's !

You might want to allow unstable warnings when you, say, decide to rewrite the library in the stable subset of the APIs.


Initial Version of Test Projects

Initial Version of Test Projects

Codecov Report

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

@@           Coverage Diff           @@
##             main      #12   +/-   ##
=======================================
  Coverage        ?   17.64%
=======================================
  Files           ?        3
  Lines           ?       17
  Branches        ?        0
=======================================
  Hits            ?        3
  Misses          ?       14
  Partials        ?        0

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Add a "check connection" button for API Services

I started working on this and think it makes more sense to put the Test button on the page for a Language Model.
Or we could have it on the API Service page and get the best model (or first one if no best) and try that, if you want.

Oh interesting, I see what you're saying. I forget who suggested this feature and exactly what context it came up, but looking at these pages it feels like these are both places where having a Test button could be helpful.
My suggestion would be to style it like the "How do I get?" text. So basically:
On the API Service editing screen, to the right of the "URL" text label would be blue underlined text that said "Test URL". This text would probably need to be greyed out or completely hidden until something had been entered into the text input since it doesn't make sense until text is entered, plus someone's attention will be drawn to it the moment it appears. Clicking this blue link could add additional default colored text afterwards which is simply "..." and then as soon as the test succeeds or fails the response appears afterwards.
On the Language Model screen this could be on the "API name" line.
So a completed test could look like this:

Oh interesting, I see what you're saying. I forget who suggested this feature and exactly what context it came up, but looking at these pages it feels like these are both places where having a Test button could be helpful.
My suggestion would be to style it like the "How do I get?" text. So basically:
On the API Service editing screen, to the right of the "URL" text label would be blue underlined text that said "Test URL". This text would probably need to be greyed out or completely hidden until something had been entered into the text input since it doesn't make sense until text is entered, plus someone's attention will be drawn to it the moment it appears. Clicking this blue link could add additional default colored text afterwards which is simply "..." and then as soon as the test succeeds or fails the response appears afterwards.
On the Language Model screen this could be on the "API name" line.
So a completed test could look like this:


unit tests and linting on python 3.12

Pull Request summary:
support python 3.12
Description of changes:
bumped required python to ^3.8.1
bumped required flake8 to ^6.1.0 (this is only dev dependency)
omit double-quote checks for python 3.12 linting job (breaking changes in f-strings)
Checklist:

[x] Make sure to run pre-commit before committing changes
[x] Make sure all checks have passed
[x] PR description is clear and comprehensive
[x] Mentioned the issue that this PR solves (if applicable)
[x] Make sure you test the changes

Bumping flake8 to ^6.1.0 requires bumping required python to ^3.8.1 (even though flake8 is dev only dependency)
If everyone is ok with that we can merge this PR


remove @ToString and equals related annotations

Remove lombok @ToString and @EqualsAndHashCode annotations.

Codecov Report

Merging #415 into azure-config will decrease coverage by 0.05%.
The diff coverage is 27.27%.

@@                Coverage Diff                 @@
##             azure-config     #415      +/-   ##
==================================================
- Coverage           54.22%   54.17%   -0.06%
- Complexity            544      546       +2
==================================================
  Files                 143      143
  Lines                2401     2409       +8
  Branches              140      142       +2
==================================================
+ Hits                 1302     1305       +3
- Misses               1018     1022       +4
- Partials               81       82       +1

Impacted Files
Coverage Δ
Complexity Δ

...e/spring/cloud/config/domain/KeyValueResponse.java
80% <0%> (ø)
3 <0> (ø)
:arrow_down:

...azure/spring/cloud/config/domain/KeyValueItem.java
80% <30%> (-12.6%)
19 <2> (+2)

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 1f06828...e8211be. Read the comment docs.


add options.destFolder

This is a continuation of pull request #29
Added below option:
options.destFolder
Type: String
Optional
Specifies the name of the folder to be injected inside the artifact. If not specified, this will be auto-generated.

Hi, we wan´t to use this in production. Could you make a new release?

Version 1.3.2 published to npm


Add storage options

🗒  Context
When you train the classifier, by default, all knowledge will be storage in memory, we are creating new saving option to not loose learned data after program execution.
Options

[x] JSON
[x] YAML
[ ] Redis (Check need)

I think is not necessary to implement Redis as a built in storage option so this issue will be closed.


Add section table

I'd like to get some feedback about the design: the "section table" is used to improve the performance of these accessors in module.rs, which are used in execution. For these three accessors that return Parser, we can precompute the ParseRange during validation, and create a parser based on the range during execution.
I'm not sure about the other accessors that return types or even Option<ExportDesc>. IIUC, we want to store the section table in flash as the side table. Does that mean we would have to design some encoding rules for these return types?
#46

On the principle this looks good. From an organization point of view, I would put everything in the side table (which represents pre-computed information on the wasm bytecode). This side table would contain information about how to take branches/jumps, where to find functions, etc. It needs to be serializable with easy random access.
Regarding the other type of accessors, it's probably enough to store their position in the wasm bytecode and deserialize them on demand. This is still O(1). We can probably avoid storing the "end" parser position by always using the end of the wasm bytecode. For functions, we could also store only one position, which would be right before the u32 encoded size, meaning we need to parse_u32 and split_at for each access, but we save 50% storage, so it's some tradeoff.


Update build.groovy

What type of PR is this? (check all applicable)

[ ] Refactor
[x] Feature
[ ] Bug Fix
[ ] Optimization
[ ] Content Update

Category

[ ] zopen build framework
[x] zopen package manager
[ ] Documentation
[ ] CI/CD
[ ] Tools

Description
The fix is added to sign the generated pax files
Related Issues

Related Issue #
Closes #

[optional] Are there any post-deployment tasks or follow-up actions required?

/run tests

/run tests


Makefile improvements

This patch set includes a bunch of improvements to Makefile.mk to make the build system behave correctly in various corner cases such as Makefile updates, header file additions or removals, and missing or incomplete dependency files.

:+1:


Vietnamese locale support is wrong

Describe the bug
Vietnamese locale don't work because of a wrong language code.
**Reproduction code
Get.updateLocale(Locale('vi'));
To Reproduce
Steps to reproduce the behavior:

Add vietnamese to the translations class
Update the locale with 'vi'
The output of Get.locale is 'vn'

Expected behavior
According to the documentation  vietnamese is 'vi' not 'vn'
Screenshots

Flutter Version:
1.22.5
Getx Version:
3.4.2
Describe on which device you found the bug:
Samsung Galaxy A31
Minimal reproduce code
Get.updateLocale(Locale('vi'));

The error was mine in my class of language codes. Sorry and congrats for the package :)


Triangular notation somehow gets stuck formatting (e^1.378e163)1

When formatting (e^1.378e163)1, the Triangular notation gets stuck in the following while loop:
https://github.com/MathCookie17/Eternal-Notations/blob/d245243824804d59b9ab41271b6eb2b3b8d6a4a9/dist/eternal_notations.js#L1775-L1780
The notation also gets stuck in the same way for (e^1.000001e100)1, but not for (e^1e100)1.
This may also affect the Square notation.
Stack trace:
triPolygonRoot (https://mathcookie17.github.io/Eternal-Notations/dist/eternal_notations.js#1776)
formatDecimal (https://mathcookie17.github.io/Eternal-Notations/dist/eternal_notations.js#9954)
format (https://mathcookie17.github.io/Eternal-Notations/dist/eternal_notations.js#1823)
formatOne (https://mathcookie17.github.io/Eternal-Notations/webpage.js#81)
formatAll (https://mathcookie17.github.io/Eternal-Notations/webpage.js#47)
(global) (source-actor-server0.conn0.windowGlobal773094113281/source62#1)

This one was caused by the same thing causing those (e^9e15)1 errors: Decimals stop being integer-precise at 9e15, so slog can run into imprecision errors when a notation uses it to measure how many layers to cut down a number by, which many notations do. I wouldn't be surprised if there are yet more of these errors... so if you want to continue your crusade against Eternal Notations errors (which you've been doing a good job of so far), numbers above (e^9e15) are a good place to search.
Seriously, though, how do you keep finding these? Like, I get how you found #2, but this one in particular seems like it would have been hard to find.


mkpr

Applied mkpr on package.json
sed s/"systemd": ">=.*"/"systemd": ">=244"/

Pull Request Test Coverage Report for Build 2445

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 96.509%

Totals

Change from base Build 2429:
0.0%

Covered Lines:
361

Relevant Lines:
375

💛  - Coveralls


Import custom experiment setups

Effective curl into files http://developers.optimizely.com/samples/#custom-experiment-setups
jsformat / jshint / update docs to wrap at 80 char limit

cc @bradtaylorsf - merging in and will cc you on future cleanup / updates! Plan to apply some force / safe comments shortly


<"App name" may slow down your iPhone > warning message on iOS 10.1

Operating system or device - Godot version:
macOS Sierra 10.12.1, Godot 2.1 stable, Xcode 8.1, iOS 10.1.1, Simulator 10.0
Issue description (what happened, and what was expected):
My new app, when first deployed and run on iOS 10.1 device or Simulator, will present the alert message which reads: " 'App name' may slow down you iPhone. The developer of this app needs to update it to improve its compatibility".  After some googling work, I found that it could be the 32 bits issue. But it proves to be of no use even I recompile Godot with 64 bits and export data.pck only 64 bits (not fat mode).
Steps to reproduce:
Compile Godot with: "Scons platform=iphone tools=no bits=64 target=release ios_sim=yes" for Simulator and with "Scons platform=iphone tools=no bits=64 target=release" for iDevice. Export data.pck from editor with 64 bits mode.
Thanks for helping!

Do other games get this message as well?
On 18 November 2016 at 22:25, KenHuang0917<EMAIL_ADDRESS>wrote:

Operating system or device - Godot version:
macOS Sierra 10.12.1, Godot 2.1 stable, Xcode 8.1, iOS 10.1.1, Simulator
10.0
Issue description (what happened, and what was expected):
Any new app, when first deployed and run on iOS 10.1 device or Simulator,
will present the alert message which reads: " 'App name' may slow down you
iPhone. The developer of this app needs to update it to improve its
compatibility". After some googling work, I found that it could be the 32
bits issue. But it proves to be of no use even I recompile Godot with 64
bits and export data.pck only 64 bits (not fat mode).
Steps to reproduce:
Compile Godot with: "Scons platform=iphone tools=no bits=64 target=release
ios_sim=yes" for Simulator and with "Scons platform=iphone tools=no bits=64
target=release" for iDevice. Export data.pck from editor with 64 bits mode.
Thanks for helping!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/7155, or mute the thread
https://github.com/notifications/unsubscribe-auth/AGVmPfcIDYA2Amb4WpOzlQ2ko9SsNJZCks5q_k_ugaJpZM4K3FdL
.

Sorry for my wording and I have reedited it. I am working  on one app only.

Yes. I tried another test chip and get the same result.

no, I mean other games made with other engines.. I wonder if this is cause
by the fact that games swap buffers constantly, much more often than apps
On 19 November 2016 at 03:49, KenHuang0917<EMAIL_ADDRESS>wrote:

Yes. I tried another test chip and get the same result.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/7155#issuecomment-261697600,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGVmPczo0VEl0jEv8wH8ycjW3tj32VH9ks5q_pvpgaJpZM4K3FdL
.

Because I've never used other game engine so I can't answer your question... :)  Isn't it because Apple forces developers update 32 bits apps to 64 bits?

I did some google work and found that other game engine seemed to have the same issue.
---Xamarin: https://forums.xamarin.com/discussion/81425/ios-10-1-message-app-may-slow-down-your-iphone
---Unity: https://forum.unity3d.com/threads/xxxxx-may-slow-down-your-iphone.438177/
---Apple developer forum: https://forums.developer.apple.com/thread/66972 , https://forums.developer.apple.com/thread/68081
Hope it helps to find some clue.

Just get a game from the app store, there's a ton of free ones :p
On 19 November 2016 at 12:05, KenHuang0917<EMAIL_ADDRESS>wrote:

I did some google work and found that other game engine seemed to have the
same issue.
---Xamarin: https://forums.xamarin.com/discussion/81425/ios-10-1-
message-app-may-slow-down-your-iphone
---Unity: https://forum.unity3d.com/threads/xxxxx-may-slow-down-
your-iphone.438177/
---Apple developer forum: https://forums.developer.apple.com/thread/66972
, https://forums.developer.apple.com/thread/68081
Hope it helps to find some clue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/7155#issuecomment-261718962,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGVmPWmuPyX0kk0UtBYTU85ELinbnhE2ks5q_xAtgaJpZM4K3FdL
.

I think the problem is that the docs are outdated and iOS build arguments are not consistent with the other platforms. bits=64 won't do anything, you need to use arch=arm64 to build an actual 64-bit binary.

Ok I'll try. How about Simulator? How to compile an actual 64-bit binary for Simulator? "Scons platform=iphone tools=no bits=64 target=release ios_sim=yes" failed and I don't know how to make arch=x86 and arm64 at the same time. I tried arch=x64 but it seemed do no compiling at all?

Looking at the build file it seems not to be possible to build for x86 64-bits.
To me this is a bug, so I'll label as such.

Got it. This warning message only pops up at the first deploy run and after that it won't appear again. So it's difficult to tell if any change works to clear this issue. On simulator it is easier to debug because I can reset the simulator and redeploy the app to see if the warning message gone. On iDevice it seems that I need to set up new apps to debug. I'll keep you posted if any results. Thank you for your prompt reply!!

Great! I start 2 new apps from demo files and prove it works! So the conclusion goes:
Set arch=arm64 instead of bits=64, ex.:  "Scons platform=iphone tools=no bits=64 target=release arch=arm64" to make an actual 64-bit binary to solve this problem. Thank you for your great help, Guys! Godot rocks!!
p.s. Please keep me posted if you have fixed to build for x86 64 bits binary. Since it really make my life much easier. XD

Bump, can this be closed, or is it still waiting for an IOS pro?

First of all thank you for your report and sorry for the delay.
We released Godot 3.0 in January 2018 after 18 months of work, fixing many old issues either directly, or by obsoleting/replacing the features they were referring to.
We still have hundreds of issues whose relevance/reproducibility needs to be checked against the current stable version, and that's where you can help us.
Could you check if the issue that you described initially is still relevant/reproducible in Godot 3.0 or any newer version, and comment about it here?
For bug reports, please also make sure that the issue contains detailed steps to reproduce the bug and, if possible, a zipped project that can be used to reproduce it right away. This greatly speeds up debugging and bugfixing tasks for our contributors.
Our Bugsquad will review this issue more in-depth in 15 days, and potentially close it if its relevance could not be confirmed.
Thanks in advance.
Note: This message is being copy-pasted to many "stale" issues (90+ days without activity). It might happen that it is not meaningful for this specific issue or appears oblivious of the issue's context, if so please comment to notify the Bugsquad about it.

Thanks!


Synchronize data visibility with data changes

Fix: #9807
Could maybe be simpler by just listening on labels. But I think this is be a bit more generic.

Filename
Size
Change

dist/chart.esm.js
73 kB
+470 B (+1%)

dist/chart.js
92.4 kB
+477 B (+1%)

dist/chart.min.js
65.6 kB
+288 B (0%)


Publish with Strong Name

Hello there,
do you have any plans publishing the nuget package with a strong name? Currently I can't use this package because it's not signed.

Hi, I tried to do this for the last release but the feature wasn't very stable yet. Let me try again today.

From what I understand, there are both pros and cons to publishing with a strong name. I want to be careful with this change so existing references don't break (or minimize the damage). I'm looking into how other common packages handle this.


Add Floyd warshall's algorithm

hii,
assign me to add dp based solution for shortest distance between two vertices in a graph.
This one is important sde sheet problem and has various application for resolution.

can you assign this issue I want to contribute on this issue.


User control of symbol

While speaking to a user at Esri UC 2017 there was a request to allow a user to control the symbol that is placed on the map when a user selects a location from the map.

@dfoll  I would like to dig into this issue deeper to understand where we want to place this capability.

We would like to have the symbology dialog as part of the properties dialog that allows the input coordiante to be changed. The user should be able to change the symbol and the color of the point (graphic) placed on the map.

Based on the conversation with @CTLocalGovTeam they are going to check to see the feasibility of implementing another tab inside the Edit Properties dialog.

Based on the conversation with @topowright, we are implementing user control of symbol only for ArcGIS Pro

Recently rebuilt CC build 19 and MT build 122 to test

@topowright can you provide information for future reference about why this was only for ArcGIS Pro?

I'm seeing an issue where the selected locations are lost if the symbol for locations is changed.  Have added: https://github.com/Esri/coordinate-conversion-addin-dotnet/issues/531

I'm seeing an issue where Pro becomes unstable and crashes with sustained interaction with the symbology of locations.  Edit Properties windows are being created and then not destroyed when closed.
https://github.com/Esri/coordinate-conversion-addin-dotnet/issues/526

I've added to the checklist test for CC in this PR to cover the new functionality.

Adding to the January 2019 CC and MT What's New:
"Supports control the symbol that is placed on the map."

Removed Doc CMS tag after addding to the What's new for defense page, and CC and MT January 2019 what's new sections.

Adding G-Doc (CMS) back so that we can create a topic about changing the appearance of the symbol. This topic should appear in the Workflows tab for CC, Workflows tab for MT, CC pdf, and MT pdf

Verified functionality works.
@BobBooth could you review/verify documentation?
All documentation for this issue is done. MT build 160 and CC build 20 should have updated doc to review.
DEV should have online doc to review.

Text looks good.


Identify actions

For methods like successful() it should be possible to supply an optional argument to check for a specific action. What should this argument be? It can't be the name of the action (like email) since the same action can be performed multiple times. Maybe the index of the action in the actions array?

Actions are now identified by their index in the actions array.


[Blazor] Masked TextBox with Regex

Hello guys, i mett actually problem to use a mask on some of my inputs.
I don't really find a pure blazor way so i decide to use this Js library : https://github.com/RobinHerbots/Inputmask
when i use it, it seem the binding is broken (the original binding if a provide value seem OK, but when i try to modify value of my input i never enter in the setter of my property binded).
So the questions :

do you have other solution to do that ? especially without js dependency
if not, do you know whats happen with the binding ? (i can make a simple project to reproduce that if needed)

Thanks !
Julien

Thanks for contacting us, @julienGrd.
Blazor listens to the onchange event, which seems is not the case for this library.
Feel free to contact the author of that library to enable integration with Blazor.

I understand, but the change event seem to be fired
$(selector).inputmask(mask);
        $(selector).change(function () {
            alert("Handler for .change() called.");
        });

I receive the alert, but the setter of my property is not called

this is my way to resolve this problem, in case someone have the same
$(selector).on("input", function () {
            this.dispatchEvent(new Event('change'));
        });


Ethan: Watch (?-i:CURf2rys)(?#discord)

Ethan requests the watch of the watch_keyword (?-i:CURf2rys)(?#discord). See the MS search here and the Stack Exchange search in text, in URLs, and in code.

Approved by cigien in Charcoal HQ


v1.8.0 have some problem

what is mean

This is not an issue, you probably have another Bluetooth manager running, so you will not be able to send files with this application. To make the warning go away, close the other manager and restart the application.

but i never have other bluetooth manager


ADR 010: IBC light clients as SDK modules

Description
No solutions discussed in the ADR will be applied in the foreseeable future, the ADR is meant as documentation of a design discussion which can be referenced at a later time when the designs are easier to implement and immediately useful to many developers
closes: #2782
Commit Message / Changelog Entry
imp: Add ADR 010, IBC light clients as SDK modules.

see the guidelines for commit messages. (view raw markdown for examples)

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[ ] Targeted PR against correct branch (see CONTRIBUTING.md).
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Code follows the module structure standards.
[ ] Wrote unit and integration tests.
[ ] Updated relevant documentation (docs/) or specification (x/<module>/spec/).
[ ] Added relevant godoc comments.
[ ] Provide a commit message to be used for the changelog entry in the PR description for review.
[ ] Re-reviewed Files changed in the Github PR explorer.
[ ] Review Codecov Report in the comment section below once CI passes.

@damiannolan @AdityaSripal could you push any discussion points I forgot to mention?
Happy to let the team takeover this ADR while I am away, also fine if it sits

Could intermodule communication eventually be used for the channel level communication between core IBC and the applications?

Theoretically, I don't see why not. When a port is registered, it would just provide the module URL to route to messages expected to be supported (the IBC module interface). I haven't looked into much detail the exact proposed implementation (I think there's still a lot to nail down) so I'm not sure exactly how it would work

Going to merge, happy to receive any post merge reviews! :)


Authentication module

Is your feature request related to a problem? Please describe.
As a user I want the ability to authenticate with Drupal for access restricted transactions.
Describe the solution you'd like
A druxt-auth module that allows users to authenticate with Drupal.
Describe alternatives you've considered
No
Additional context
Work already exists inside of the schema module, but it needs to be moved and cleaned up.
https://github.com/druxt/druxt-schema/blob/develop/src/schema.js#L58
https://github.com/druxt/druxt-schema/blob/374ddf2e6f9788f789e1a73c9c634e5f59535753/src/schema.js#L144-L177

An Auth module has been created @ https://github.com/druxt/druxt-auth


Issue with k8s.io/docs/concepts/configuration/assign-pod-node/ https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity

This is a Bug Report
Problem:
Below Lines are incorrect
If you specify multiple nodeSelectorTerms associated with nodeAffinity types, then the pod can be scheduled onto a node if one of the nodeSelectorTerms is satisfied.
If you specify multiple matchExpressions associated with nodeSelectorTerms, then the pod can be scheduled onto a node only if all matchExpressions can be satisfied.
Proposed Solution:
They need to be corrected to below
If you specify multiple nodeSelectorTerms associated with nodeAffinity types, then the pod can be scheduled onto a node only if all nodeSelectorTerms can be satisfied.
If you specify multiple matchExpressions associated with nodeSelectorTerms, then the pod can be scheduled onto a node if one of the matchExpressions is satisfied.
Page to Update:
https://kubernetes.io/docs/concepts/configuration/assign-pod-node
Kubernetes Version: 1.16

There's another related issue in these docs:
https://github.com/kubernetes/website/pull/13906
Made it so that
If the topologyKey *were* failure-domain.beta.kubernetes.io/zone then it would mean that the pod cannot be scheduled onto a node if that node is in the same zone as a pod with label having key "security" and value "S2".)

is now misleading, since the topologyKey has been changed to be failure-domain.beta.kubernetes.io/zone.


[CP] [vm/aot/tfa] Fix handling of type parameter nullability in factory constructors

Commit(s) to merge
8ef9c6aab4b016644a6b811ac6fda374376757d0
Target
stable
Prepared changelist for beta/stable
https://dart-review.git.corp.google.com/c/sdk/+/268500
Issue Description
Type flow analysis (part of AOT compiler) ignored nullability of type parameter types (T?) in factory constructors. This caused incorrect results of analysis and incorrect optimizations. Only factories of generic classes which use type parameters as nullable (T?) are affected.
What is the fix
Added a new ApplyNullability operation to a summary in order to apply any extra nullability ('?' or '*') on top of the type argument passed to a factory constructor.
Why cherry-pick
This bug caused incorrect optimizations which may lead to a crash or a silent incorrect behavior which may be hard to diagnose.
Risk
low
Issue link(s)
https://github.com/dart-lang/sdk/issues/50392
Extra Info
No response

/cc @a-siva @mraleph

I support cherry picking.

lgtm.

Cherry-pick landed in 203d14e9ae2bebc8d8ba2241b537ffad40ad4a9f.


no method named parallel_map

I tried to use this crate by copying the comment from lib.rs. I have this in src/main.rs
use threaded_map::ThreadedMappable;

fn main() {
    let items = vec![1, 2, 3, 4, 5, 6];
    let target: Vec<_> = items.iter().map(i32::to_string).collect();

    let result: Vec<_> = items
        .into_iter()
        .parallel_map(|item| item.to_string(), None)
        .collect();

    assert_eq!(result, target);
}

This is Cargo.toml:
[package]
name = "map-with-thread"
version = "0.1.0"
edition = "2021"

[dependencies]
threaded-map = "0.2.0"

This is the error I receive:
warning: unused import: `threaded_map::ThreadedMappable`
 --> src/main.rs:1:5
  |
1 | use threaded_map::ThreadedMappable;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

error[E0599]: no method named `parallel_map` found for struct `std::vec::IntoIter` in the current scope
 --> src/main.rs:9:10
  |
7 |       let result: Vec<_> = items
  |  __________________________-
8 | |         .into_iter()
9 | |         .parallel_map(|item| item.to_string(), None)
  | |         -^^^^^^^^^^^^ method not found in `IntoIter<i32>`
  | |_________|
  |

For more information about this error, try `rustc --explain E0599`.

Oh, it seems the version I installed from Crates.io adds the method threaded_map and not parallel_map. Replacing that in the example makes it work.

Hi. This was an early attempt by me to implement a parallelized mapping library.
Unfortunately it is of low quality.
I urge you to use established libraries such as crossbeam instead.


Not working in FerenOS

achede@achede-foxconn:~$ sysmontask
acquired root permission
/usr/lib/python3/dist-packages/sysmontask/sysmontask.py:12: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk as g , GLib as go
/usr/lib/python3/dist-packages/sysmontask/proc.py:1: PyGIWarning: Wnck was imported without specifying a version first. Use gi.require_version('Wnck', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk as g , GLib as go,GdkPixbuf,Wnck, Gio
(sysmontask:27563): Gtk-WARNING **: 15:18:51.464: Could not load image 'usr/share/sysmontask/icons/SysMonTask.png': Failed to open file “/usr/share/sysmontask/glade_files/usr/share/sysmontask/icons/SysMonTask.png”: No such file or directory
memory tab initialising
fd0
sda
sdb
sdc
Traceback (most recent call last):
File "/usr/bin/sysmontask", line 11, in
load_entry_point('sysmontask==1.1.1', 'console_scripts', 'sysmontask')()
File "/usr/lib/python3/dist-packages/sysmontask/sysmontask.py", line 842, in start
main=myclass()
File "/usr/lib/python3/dist-packages/sysmontask/sysmontask.py", line 84, in init
self.diskinitialisation()
File "/usr/lib/python3/dist-packages/sysmontask/disk.py", line 267, in diskinit
disktemp=ps.disk_io_counters(perdisk=True)
File "/usr/lib/python3/dist-packages/psutil/init.py", line 2131, in disk_io_counters
rawdict = _psplatform.disk_io_counters(**kwargs)
File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 1121, in disk_io_counters
for entry in gen:
File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 1094, in read_procfs
raise ValueError("not sure how to interpret line %r" % line)
ValueError: not sure how to interpret line '   7       0 loop0 55 0 2142 2159 0 0 0 0 0 1368 2159 0 0 0 0 0 0\n'
achede@achede-foxconn:~$

Hi,
Can you update me about the issue?


[Bug]:

Python Version
3.8
Python Amazon MWS (PAM) Version
0.8 (PyPI version / GitHub master branch / 'legacy')
Has your copy of PAM been altered in any way?
No, I HAVE NOT made changes to the MWS code
Describe the issue
What happened
When i call the api Orders ListOrderItems with a specific amazon order id, i get information about the order, if the order is an amazon custom order, i have the same information of not custom order.
Expected behavior
I need to get the data: BuyerCustomizedInfo and precisely CustomizedURL as described on amazon docs but is missing
MWS Credential check

[X] I have removed my MWS credentials from any tracebacks and code samples

Do you have the links to the amazon docs for the cusomised info you are referring too please?

http://docs.developer.amazonservices.com/en_IT/orders-2013-09-01/Orders_Datatypes.html#BuyerCustomizedInfo

Seems like it's in the response, which we leave intact as much as possible.

Can you produce the right response in the mws scratchpad?
Is the necessary data missing from response.original?

I have had oddities where Amazon neglect to return some element in the past.
I would suggest as @GriceTurrble has mentioned trying it in the scratchpad to see what amazon return, and also looking at the returned object as the returned request is in full and can be looked at (use a debugger like pycharm) and you can see the returned xml object from amazon.
We don't omit any elements from the conversion, so it should be in the .parsed object
If you try using the develop branch on here (even just in a testing environment) you can see we return the original response back in .original
Example here:
https://github.com/python-amazon-mws/python-amazon-mws/pull/241/files?authenticity_token=rLcU%2FYRiJJOlrc%2F37B8xWcDzRSAjj2amt3jWz6Qr4QBR98obPXrfbHGZafNvCDKOqPwwdB5UUcPH11gFBpPfZg%3D%3D&file-filters[]=.py&hide-deleted-files=true#diff-2d82a5af24664b60d7724939e965a1e10fd572b415edc2fbe1d4b1da84ef11c8

Also in .parsed is not present

Must be. We pass the entire response unfiltered, so if it's missing from the response, that's on Amazon's side.


[HUDI-7584] Always read log block lazily and remove readBlockLazily argument

Change Logs
Always read log block lazily and remove readBlockLazily argument
Impact
none
Risk level (write none, low medium or high below)
none
Documentation Update
Describe any necessary documentation update if there is any new feature, config, or user-facing change. If not, put "none".

The config description must be updated if new configs are added or the default value of the configs are changed
Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
ticket number here and follow the instruction to make
changes to the website.

Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed

@yihua hi! You are the reporter of this task. Could you please review my PR?


new Gen 2 ADLS account, cannot crete filesystem container

Storage Explorer Version: 1.6.1
Platform/OS: Windows 10
Architecture: x64
Regression From: first time user
Bug description
Cannot create the root ADLS Gen2 file system container on a new gen 2 storage account.  Returns a ETIMEDOUT error in storage explorer.
Steps to Reproduce
1.install 1.6.1
2.create a Gen 2 ADLS with Hierarchical Namespace / no AD / LRS options
3.sign in to storage explorer
4. navigate to storage account (it does show ADLS Gen2 Preview)
5. right click on Blob Container and select Create Container
6. give it a name
Expected Experience
A new container is created
Actual Experience
After a minutes, returns two message boxes both saying Failed to Create Blob Container.  Details: connect ETIMEDOUT 34.xxx.xx.0:443   (x's obscure real values)
Additional Context
I can see and access a file share created on the same storage account
I am directly connected to the internet - no proxy / vpn
I am signed into only one Azure account
That account has Owner and Contributor RBAC
Possibly related to this issue.
#1024

Was there a fix to this? I have a similar problem where the explorer throws an error when i create a blob container. @

@nkanala Are you running on v1.7.0?

@jinglouMSFT v1.6.2. What's the recommended version?

Can you verify if your HNS flag is on? From the error message we think you are not on ADLS Gen2.

@jinglouMSFT Thanks. The storage explorer shows the flag as false. But I see it enabled in the portal.
Am I setting it up wrong?

By looking at the screenshot, it looks like you actually signed into Azure, right?  We actually fixed a bug in 1.7.0 to correctly detect the account type.  If you still see the issue, can you confirm whether this is an old account created during ADLS Gen2 beta preview, or this is a new account?  If possible, could you try to create a new account and see if you still have this issue?  Thanks.

@jinglouMSFT Yes, I created an account by logging into the azure portal. Some of them were old accounts. But I just created a new account and still the same problem. The flag shows as false in the explorer.

@nkanala , what azure region is your stg account in?

@jinglouMSFT US West 2

What's weird right now is that in your portal screenshot, the portal shows the account as StorageV2, but Storage Explorer shows as Storage. See how for mine the values are the same?

Super weird. I know I said previously I was going to reach out to the backend team for help, and I still am. But this is further proof of something weird going on...

If you're able to @nkanala can you do the following?

Open Storage Explorer
Navigate to your Storage Account
Open Dev Tools (F12)
Use ctrl+p to open AzureStorageAccountAttributeLoader.js
Find line 107, which should be attributes = AzureStorageUtilities.getStorageAccountV2Attributes(resource, args.subscription, args.id, [args.primaryKey, args.secondaryKey]); If that isn't the value of line 107, you can use ctrl+f to find the right line number
Right click on the 107 (or whatever line you found) and click "Add conditional breakpoint", and then in the text box type in args.name === "<name of your account here>", so for me I did args.name === "forgithubissue2", then press enter. You should see an orange block on the line number
Refresh the parent Storage Accounts node and load more until you see the broken account
When the breakpoint is hit, use the console to type in resource and then press enter. If you don't see the console you can use ctrl + ` to bring it up
Expand the resulting object that is printed, then also expand the properties, take a screenshot and post it here, eg:

I want to confirm that ARM is giving us a bad value and that this isn't our fault.

@MRayermannMSFT  Awesome, thanks for the detailed steps. The resource kind value is "Storage".

@MRayermannMSFT  Is there any other way I can add a container to my account, while this issue is being investigated. I am blocked in my work until I can add something to the account. I am able to add file shares though but that's not helpful in my development.

@nkanala, I was actually interested in the HNS enabled value. Sorry for not being specific. If you could redo the steps so we can make sure ARM is sending us HNS enabled as false, that'd be great. And unfortunately no, there isn't a way. We and AzCopy are the only tools that can work with ADLS Gen2 atm (afaik).

Oh, @nkanala , I take the back, the portal does support file systems now! The support launched yesterday.

So you can try there. Please let me know if you're able to use that.

@MRayermannMSFT I don't see the HNS flag at all!

@MRayermannMSFT Thanks. Yes, I am able to create a filesystem from the portal but not able to add any files though. When I click on the filesystem I see the recommendation for using storage explorer.

@nkanala , I think we know the problem! Do you have Azure Stack mode enabled? If so, you need to turn that off!

Closing due to inactivity.


Fix CapitalizeFirst method

Why do we even need ToLowerInvariant?

Why do we even need ToLowerInvariant?

Yes true it's not needed? Updated

Also any reason for the duplication of the method? (left it alone for now)

Also any reason for the duplication of the method? (left it alone for now)

Mainly because these are two independent implementations...
I think it's fine now... Thanks for the PR.


Udx 6667 implement cortx pod and container layout changes

This review also includes changes for UDX-6582 (modify cortx block storage helm chart to only create one storage class for all pvs and pvcs in the cluster)

Looks good so far to me with dummy containers. We need to work with @ujjwalpl to get the specific container arguments for the new pod layouts to function correctly.


Touch events not passed to Background component.

I'm attempting to use the Background component to render a Slidebox containing multiple images. The reason that I'm using the Background is because it resizes with the Parallax bounce.
Touch events are not passed to the Background component however.

Did you figure this out? Running into same issue. @ghost

@richTheCreator Did you figure this out? :D

@psyzz @richTheCreator Did you figure this out?

On Apr 18, 2017, at 5:32 PM, Bruno Balzani<EMAIL_ADDRESS>wrote:
@psyzz https://github.com/psyzz @richTheCreator https://github.com/richTheCreator Did you figure this out?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/jaysoo/react-native-parallax-scroll-view/issues/54#issuecomment-295003398, or mute the thread https://github.com/notifications/unsubscribe-auth/APja7OuhXNMldz0ZVDkdXKFfkZwSucuBks5rxToEgaJpZM4Jy52X.

Nah, I ended up rolling my own parallax scrollview.

@richTheCreator mind sharing the solutions? thanks

I guess no one figure it out :(

@jaysoo An idea ? :p

+1

1

Anyone mind sharing a lib or some code that supports this?
Avoiding having to write my own if possible.
cc @richTheCreator

Hi
Is there any solution for this?
Regards,


Consumer examples

The most common scenarios for consumers are either to fetch from the "beginning" or fetch from where it was left off.
It would be really helpful to have examples for these scenarios.

At the moment it looks like that consumer reads the data from the end only even if I set the offset manually.

I agree, there's now an FAQ wiki page here: https://github.com/ah-/rdkafka-dotnet/wiki/Faq
Feel free to extend with things that you found most puzzling.
How do you think this documentation should best be done? I like runnable code, so I've put a lot into the AdvancedConsumer/Producer examples, librdkafka has so many features that it would take a whole lot of example projects to cover everything.

@ah- thanks, will look into it and close this ticket.

Cool, let me know if you have a good idea and feel free to contribute examples!


Doris单机版查询特别慢

Search before asking

[X] I had searched in the issues and found no similar issues.

Description
刚搭建的单机版Doris，4万多条数据查询了70多秒
Solution
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

Can you provide some  information about table schema ,version and query profile, it will be more helpful to locate the problem.

这是来自QQ邮箱的假期自动回复邮件。您好，我最近正在休假中，无法亲自回复您的邮件。我将在假期结束后，尽快给您回复。