ARM64 version available?

Is there an image for ARM64?

https://github.com/phusion/baseimage-docker/tree/armhf

No, we do not have an image uploaded. I suppose we should get one onto Docker Hub.

ARM64 would be nice. Thanks!

I am having difficulty building the arm image, anyone else having any luck?

@Theaxiom What did you try?
I just built the image from the master branch for ARMv7 by changing the parent image to arm32v7/ubuntu:16.04.
The current armhf branch still uses armhf/ubuntu as parent image which is deprecated and the last push was 1 year ago.

Experimentally I was able to build ARM64 version on an x86 by making two small changes:
change first line to:
FROM arm64v8/ubuntu
add this line:
COPY qemu-aarch64-static /usr/bin
then follow instructions per https://github.com/multiarch/ubuntu-core to set up the host for binfmt. This was kind of piecemeal and could be turning into one-step process.

FWIW, I'm pretty close to this working as well. Building on a Mac for an RPi3 B (not plus), using the Vagrant setup.
I used the binfmt instructions from the multiarch page, then--using master branch--changed the FROM to FROM multiarch/ubuntu-core:armhf-xenial.
On make build, Docker kicks off, I see the packages being installed (and noted they are indeed armhf packages). Pretty exciting!
The problem (there's always one, right?) is that the process seems to hang after certain scripts, that don't make any sense. Like the rm of cron jobs/files:
+ rm -f /etc/cron.daily/dpkg
+ rm -f /etc/cron.daily/password
+ rm -f /etc/cron.weekly/fstrim

(just stops there, never proceeds).
Disable cron with the flag, and it gets to syslog, hanging on the end of its services script. Disable syslog, and then it hangs on:
Setting up runit (2.1.2-3ubuntu1) ...
+ '[' 1 -eq 0 ']'
+ true
+ '[' 1 -eq 0 ']'
+ true
+ '[' 1 -eq 0 ']'
+ true

I'm no expert (far from it), but it doesn't seem like anything "important" is happening at those stages, just shell scripts that almost certainly shouldn't hang.  I can (and have) just built it right on the Pi, but the nerd in me really wants to know the solution here. :) When I've got it sorted, I'll probably put together a README on how to do this for others that come looking for an ARM version of this and are even more newbie than me. They exist, I'm sure. ;)
Thanks!

Minor update: Builds fine with multiarch/ubuntu-core:armhf-bionic.  ¯_(ツ)_/¯
But it fails on load to my Pi 3 docker:
pi@raspberrypi:~$ docker load < rgoodwin.phusion-armf-bionic.tar
af8c46d3cfac: Loading layer   66.5MB/66.5MB
d7bd3bc7bc89: Loading layer  1.024kB/1.024kB
4f964168224a: Loading layer  3.708MB/3.708MB
cba9a994b911: Loading layer  14.85kB/14.85kB
d26bd8602f5a: Loading layer  5.632kB/5.632kB
54f77cd66652: Loading layer  1.024kB/1.024kB
d9bdd6ecaaf6: Loading layer  1.024kB/1.024kB
817199ffd351: Loading layer  65.02kB/65.02kB
dfb3b4995212: Loading layer  99.91MB/99.91MB
43fda510eb86: Loading layer  1.024kB/1.024kB
9fe02a3ce7f0: Loading layer  1.024kB/1.024kB
open /var/lib/docker/tmp/docker-import-918888120/repositories: no such file or directory

That said, containers build and boot from the image just fine, so I am going to assume (ahem) that the missing message is something about the qemu binaries or something, which aren't actually needed anyway on the Pi.
Could be something to do with using multiarch and doing this all the wrong way. Maybe I should sit back and just wait for an official image. :) (But I so want to know!)
Completely side note: it's been a while since I messed with Docker, and it's pretty awesome (if confusing at first) to realize when tinkering how many official and popular images are built from this baseimage. Great work and thanks all!

@Theaxiom @rtgoodwin I was able to cross-build Docker for armhf on my Fedora 28 machine (it's x86_64 Dell laptop).
That's the only change I made to this repo code:
diff --git a/image/Dockerfile b/image/Dockerfile
index da5b41d9fb98..eb3f84fad549 100644
--- a/image/Dockerfile
+++ b/image/Dockerfile
@@ -1,4 +1,4 @@
-FROM ubuntu:18.04
+FROM multiarch/ubuntu-core:armhf-bionic
 MAINTAINER Phusion<EMAIL_ADDRESS>
 COPY . /bd_build

Then executed make build and got my container built.
FWIW I pushed it to DockerHub, see https://hub.docker.com/r/abrodkin/baseimage/
Now on my Raspberry Pi3 I installed latest Raspbian (it's based on Debian 9.4 as of today) and Docker CE.
*** Running /etc/my_init.d/10_syslog-ng.init...
Sep 19 13:34:53 8726d62cd70a syslog-ng[15]: syslog-ng starting up; version='3.13.2'
*** Booting runit daemon...
*** Runit started as PID 24
*** Running bash -l...
Sep 19 13:34:54 8726d62cd70a cron[28]: (CRON) INFO (pidfile fd = 3)
Sep 19 13:34:54 8726d62cd70a cron[28]: (CRON) INFO (Running @reboot jobs)

root@8726d62cd70a:/# cat /proc/cpuinfo
processor	: 0
model name	: ARMv7 Processor rev 4 (v7l)
BogoMIPS	: 38.40
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 1
model name	: ARMv7 Processor rev 4 (v7l)
BogoMIPS	: 38.40
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 2
model name	: ARMv7 Processor rev 4 (v7l)
BogoMIPS	: 38.40
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 3
model name	: ARMv7 Processor rev 4 (v7l)
BogoMIPS	: 38.40
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

Hardware	: BCM2835
Revision	: a02082
Serial		: 00000000dfbbe37d

So I'd say everything is in place and we're good to go with multiarch baseimage.

What distro are you using on RPI3, raspbian?  I'll test this

@kingdonb Correct I used latest Raspbian Stretch from here https://downloads.raspberrypi.org/raspbian_lite_latest
As I mentioned above it is based on Debian 9.4.

@abrodkin I tried changing only
FROM ubuntu:18.04

to
FROM multiarch/ubuntu-core:armhf-bionic

But I got error from Docker Hub: (have not tested the build directly in RPi)
The command '/bin/sh -c /bd_build/prepare.sh && 	/bd_build/system_services.sh && 	/bd_build/utilities.sh && 	/bd_build/cleanup.sh' returned a non-zero code: 1

Here is the commit:
https://github.com/NicksonYap/phusion-baseimage-docker-armhf/commit/469b835797c0895d7f093ca92702845269787384

@NicksonYap you're missing one important thing (as described in https://hub.docker.com/r/multiarch/ubuntu-core/):
diff --git a/Makefile b/Makefile
index 1b00a21b78bd..eb95d384cf9c 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@ VERSION = 0.11
 all: build

 build:
+       docker run --rm --privileged multiarch/qemu-user-static:register --reset
        docker build -t $(NAME):$(VERSION) --rm image

 test:

With that you should be able to build successfully on x86 host as usual.

We should add an arm64 target to the makefile then, so it can be easily integrated with CI

In #515 I am building armhf on darwin/amd64, according to previous commenters this works just as well on Fedora/amd64 or other platforms supported with qemu...
Build may take more than twice as long with this merged, but we will have support for twice as many architectures.  It seems to be working.
The make target build_amd64 and build_armhf are available now in case you want to only build a single arch.  I don't have strong feelings about the default make target, but I assume that CI will run "make" to build a new latest tag.

... and make release to push latest, but I guess finalized release tags are pushed manually and not by CI? e581cf7
Building as a test and pushing to kingdonb/baseimage:0.11 and kingdonb/baseimage:0.11-armhf as well as latest(amd64) and latest-armhf

LGTM at bbff66a

We should add an arm64 target to the makefile then, so it can be easily integrated with CI

@kingdonb Could we please create an issue to reflect adding additional build targets for CI? There should be no need to change the Makefile, it can be done entirely using the travis-ci and simply having separate Dockerfile for different build targets (or something like that).

I'm not so sure, I think you need to run the armhf target on a system that is capable of running armhf binaries.
That doesn't mean you need an armhf system at TravisCI, based on the qemu register trick, but I think that requires that TravisCI lets us use privileged containers, and also that we are able to grab the same build host more than once in a session.  Both of those seem like a longshot (while I have not tried, so can't say for sure.)
I'll add the issue re:

adding additional build targets for CI

Any updates on this one?

We cannot maintain this image for multiple architectures because we simply do not have the resources to test them. If you require an arm image, please build and test yourself or fork the project. Once you fork it, we can add your project to this page: https://github.com/phusion/baseimage-docker/wiki/Baseimage-Based-Projects

OK, thanks for your consideration!

@chrispsommers I take that back, it looks like there is some work by @kingdonb that I forgot about here: https://github.com/phusion/baseimage-docker/issues/518
You may want to contribute or support that effort over in that thread, if we can make this work with multiple build targets we should be able to at least support an ARM image.

@Theaxiom Good to see. I've moved on to other things and don't have time but it's nice that the qemu-user-static approach caught some folks' attention..


Indent now showing as greater than character instead of pipe

Problem
At some point my indents have gone from being lines to showing the greater than character for each indent.  Nothing was updated in my config.  Using Lazy.nvim as package manager.

Steps to reproduce
Load using the above config.  Open neovim.  Create file that has indents.
Expected behavior
Indent character would show as pipe
Neovim version (nvim -v)
v0.10.0-dev

Since you write main = "ibl", I assume you are trying to use version 3, but what you write in opts doesn't make sense in the setup of v3. You either need to stick with a 2.something version or update your opts accordingly.
A good start is to look here: https://github.com/lukas-reineke/indent-blankline.nvim/wiki/Migrate-to-version-3

In your screenshot, you are actually not using indent-blankline at all. If you have a config function in lazy, the setup function is not automatically called.
What you are seeing is just :help listchars
Like @Danielkonge said, please read the migration guide.


fix sso login success message

Summary
Adds a transitional screen when the SSO is successful
Ticket Link
https://hub.mattermost.com/private-core/pl/55xw79opufn6jrzawkuzrrxjtc
Checklist

[ ] Added or updated unit tests (required for all new features)
[x] Has UI changes
[ ] Includes text changes and localization file updates
[ ] Have tested against the 5 core themes to ensure consistency between them.
[ ] Have run E2E tests by adding label E2E iOS tests for PR.

Screenshots

Release Note
Added a new message to SSO login screen when the login is successful.

/update-branch

For future traceability: https://mattermost.atlassian.net/browse/MM-60293

/cherry-pick release-2.20

Cherry pick is scheduled.

/cherry-pick release-2.19

Cherry pick is scheduled.


Sort regions list for regions template variable presented by logging data source plugin

As a user of Grafana dashboards that leverage the OCI logging data source plugin
I want to be easily select the regions I want the data panels on a dashboard to use in their queries
and see a sorted list of the possible regions in the regions template variable dropdown list
so that it is easier for me to locate the region(s) I am interested in within the regions list without necessarily typing in each region name.

@huskerdhf , Here is my MR for the story - CDSCRS-27813.


Deploy Preview in the GitHub commit status

Instead of comment.
Regarding the comment not showing up in the PR(s) at the moment, see https://github.com/jupyter/papyri/pull/227#issuecomment-1466064487

Perfect, lets try.


Dual port RAM doesn't infer a DP16KD on ECP5 if both ports are on the same clock

Steps to reproduce the issue
Here are two dual port RAM implementations, one using the same clock for both ports, one using separate clocks.
module dpram_singleclock
#(parameter DATA_WIDTH=8, parameter ADDR_WIDTH=6)
(
	input [(DATA_WIDTH-1):0] data_a, data_b,
	input [(ADDR_WIDTH-1):0] addr_a, addr_b,
	input we_a, we_b, clk,
	output reg [(DATA_WIDTH-1):0] q_a, q_b
);

	reg [DATA_WIDTH-1:0] ram[2**ADDR_WIDTH-1:0];

	// Port A
	always @ (posedge clk)
	begin
		if (we_a)
			ram[addr_a] <= data_a;
		else
			q_a <= ram[addr_a];
	end

	// Port B
	always @ (posedge clk)
	begin
		if (we_b)
			ram[addr_b] <= data_b;
		else
			q_b <= ram[addr_b];
	end

endmodule

module dpram_dualclock
#(parameter DATA_WIDTH=8, parameter ADDR_WIDTH=6)
(
	input [(DATA_WIDTH-1):0] data_a, data_b,
	input [(ADDR_WIDTH-1):0] addr_a, addr_b,
	input we_a, we_b, clk, clk_b,
	output reg [(DATA_WIDTH-1):0] q_a, q_b
);

	reg [DATA_WIDTH-1:0] ram[2**ADDR_WIDTH-1:0];

	// Port A
	always @ (posedge clk)
	begin
		if (we_a)
			ram[addr_a] <= data_a;
		else
			q_a <= ram[addr_a];
	end

	// Port B
	always @ (posedge clk_b)
	begin
		if (we_b)
			ram[addr_b] <= data_b;
		else
			q_b <= ram[addr_b];
	end

endmodule

synth_ecp5 -top dpram_dualclock results in a DP16KD RAM block being inferred, whereas synth_ecp5 -top dpram_singleclock builds the RAM from logic cells instead.
Further, using the dualclock variant in a larger design which feeds both clk and clk_b from the same clock also causes the RAM to be built from logic rather than a RAM block.
Expected behavior
I would expect a RAM block to be inferred whether or not the clock pins are fed from the same clock.
Actual behavior
RAM block is inferred only if the two ports are fed from different clocks.

What Yosys version are you using?

Current oss-cad-suite at the time of filing, so Yosys 0.18+48 (git sha1 c39bade1a, clang 10.0.0-4ubuntu1 -fPIC -Os)

Any chance, somebody could look into that? Or any idea, of a work around?
THANKS!

Just to confirm this is still present as of today's oss-cad-suite:
Yosys 0.20+54 (git sha1 060cbd3e9, clang 10.0.0-4ubuntu1 -fPIC -Os)

Hi @robinsonb5 . Our latest memory inference implementation is trying to be as accurate as possible in implementation and simulations, and in this case it would require read-before-write semantic and for that reason it gets implemented as number of flip-flops when both clocks are same
There are two ways of making this work as you expect :

Add attribute (* no_rw_check *) before memory reg in dpram_singleclock module
Add additional parameter to synth_ecp5 command so something like synth_ecp5 -top dpram_singleclock -no-rw-check

Hope this solves you issues.

Many thanks - that does indeed solve my issue.  So user-error, not in fact a bug - apologies for the noise.


Looking forward to your reply！

Hello, Mr. Li, congratulations on your great work, I have some questions, first of all, is your dataset only more than 3000 images? Don't need to cut into small pieces? Second is how did you train for 600k in a week? Are you using multiple servers? Looking forward to your reply

We suggest cutting images into small pieces as the first step of 'Prepare Data'. We use eight 2080Ti GPUs to train our model.


Shared Access Signatures don't work with Premium Storage Accounts

I'm getting the following error message when trying to copy a blob between Premium Storage accounts:
<?xml version="1.0" encoding="utf-8"?>
<Error>CannotVerifyCopySource<Message>Could not verify the copy source within the specified time.
RequestId:
Time:2015-09-02T00:14:20.1883717Z</Message></Error>

Using version 0.11.1 of the SDK. I've verified that the same blob copy logic works with regular Storage Accounts.

Could you give more info on what you're doing?

Are you copying with SAS or using snapshots? Sample code would be helpful.
Could you include more information on the request? For example, the date/time it was made and the request id would be helpful.

Could you include the account name and request id as well as the time? With just time we are not able to trace anything.
Could you include sample code? I see SAS in the title but more info like whether you're using snapshots (etc) would be helpful.

Hello emgerner-msft!
The blob I'm currently trying to copy is for an OS Image, which doesn't appear to be a limitation of blob copy operations on Premium Storage accounts based on the link provided. Not using snapshots in this case.
I can't provide a request ID because I'm not getting one back from the API, it errors on this statement in copy_blob:
response = self._perform_request(request)

As you can see from the exception above, the Request ID is empty.
Sample pseudocode:
source_image_url = generate_sas_for_image(image)
copy_blob(source_image_url, 'vhds-data', 'test-target-blob-name')

###################################################################
def copy_blob(self, source_url, destination_container_name, destination_blob_name):

	resp = blob_service.copy_blob(destination_container_name, destination_blob_name, source_url)

	## imagine code to wait for async operation here (error generated on call to copy_blob above anyways)

###################################################################
def generate_sas_for_image(self, image_name):

	blob = _get_blob_for_image(image_name)
	return self.generate_sas_for_blob(blob)

###################################################################
def generate_sas_for_blob(self, blob):

	source_container_name, source_blob_name = _get_container_and_blob_names_from_media_link(blob)

	sap = self._get_shared_access_policy(azure.storage.BlobSharedAccessPermissions.READ)

	signature = blob_service.generate_shared_access_signature(
		container_name=source_container_name, blob_name=source_blob_name,
		shared_access_policy=sap, sas_version=azure.storage.X_MS_VERSION)

	return blob_service.make_blob_url(source_container_name, source_blob_name, sas_token=signature)

###################################################################
@staticmethod
def _get_shared_access_policy(permission):
	date_format = "%Y-%m-%dT%H:%M:%SZ"
	start = datetime.utcnow() - timedelta(minutes=1)
	expiry = start + timedelta(days=1)
	return azure.storage.SharedAccessPolicy(
		azure.storage.AccessPolicy(
			start.strftime(date_format),
			expiry.strftime(date_format),
			permission
		)
	)

Looking at the code nothing sticks out to me as a problem at the moment. OS Images shouldn't be an issue but I'm still wondering if there's something going on there. If you could give:

an exact date and time (or within 1-2 min range) of when you made a failing request. This should be from within the last day or two.
the full URL or account name/container name/blob name
I can try to check stuff out server side even without request id. This will help us determine where to look next for the problem. If you're uncomfortable posting this here, feel free to email me at emgerner at microsoft dot com, substituting the correct chars for at and dot.

PS: We are planning on making request id easier to get, for future reference

Hi emgerner-msft,
If you're tracking the internal issue too, I'll stop posting updates here. Thanks!

Latest release (0.20.2) should address this issue. Please give it a try!


cogl: Add missing patch decompression

It appears that the Bugzilla server started delivering compressed attachments at some point.
Description of changes
Use recently added capability to pass patch content through an intermediate program, in this case to decompress it using xz. As I'm new to nix, not sure if xz needs to be added as an explicit dependency or not.
This change should probably be backported since otherwise uncached builds of cogl fail due to Gnome Bugzilla server behavioral change.
Sparked from https://discourse.nixos.org/t/normalized-patch-is-empty/26122
Related PR: https://github.com/NixOS/nixpkgs/pull/133604
Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/normalized-patch-is-empty/26122/20

I'm a bit worried one day the Gnome Bugzilla will be turned off completely, maybe it would be prudent to copy the patch files into this git repo's pkgs/development/libraries/cogl/ folder? Not sure what the policy is around those kind of things.

If the GNOME Bugzilla is unused and will likely be shut down soon, that sounds like a good idea to me.
There's no policy here, do what is sensible.


Update openai reservation article per team request

added statement "The reservation purchase date is processed in UTC."

@ayiwai - i removed the 3 images you added to the top of the article because that space is reserved for the metadata.
@bandersmsft
Can you review the proposed changes?
Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


Fix broken SQS QueueArn attribute

Hello,
I think the QueueArn attribute of SQS queues is broken. If you split the ARN by : the third element shall be the region coded as us-east-1, but it is hardcoded to be sqs.us-east-1. The unit test hardcodes the same mistake and is not able to detect a problem.
For this reason code like the following fails:
sns = boto3.client('sns')
sns_arn = sns.create_topic(Name='test-topic')['TopicArn']

sqs = boto3.client('sqs')
sqs_url = sqs.create_queue(QueueName='test-queue')['QueueUrl']

sns.subscribe(
    TopicArn=sns_arn,
    Protocol='sqs',
    Endpoint=sqs.get_queue_attributes(
        QueueUrl=sqs_url,
        AttributeNames=['QueueArn']
    )['Attributes']['QueueArn']
)

As the unit tests of subscribe use hardcored endpoints they are also not able to detect a problem.

Coverage decreased (-0.06%) to 94.969% when pulling b152996ddf003ee9490a41376671116330c14385 on macheins:fix-broken-sqs-queue-arn-attribute into 1f618a3cb53d167b65c1d051c7a06011b417364f on spulec:master.

Good catch, thank you!


fix: remove backendrefs validation

Fixes https://github.com/envoyproxy/gateway/issues/4704
Remove backendrefs validation from the ExtAuth API for backward compatiblity.
Release Notes: Yes

hey @zhaohuabing thanks for picking this up, can we add a test in gateway-api to make sure the backendRef field translation actually works ?
cc @zirain


Automated Package Upgrade

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Truncated and unicode encoded column names with Apache Drill data source

Environment

Python: 2.7.6
pyodbc: 4.0.16
OS: Ubuntu 14.04
DB: csv
driver: libdrillodbc_sb64.so

Issue
Expected behavior:
I’m trying to read a csv file using from Apache Drill. I expect my column names in the resulting data frame to reflect what I see in the csv file.
$ head -n 1 /mapr/my.cluster.com/tmp/salary_data.csv2
name,salary,years_experience

Observed behavior:
My column names are all truncated and encoded as unicode, as shown below:
>>> conn = pyodbc.connect("DSN=drill64", autocommit=True)
>>> df=pd.read_sql("SELECT * FROM dfs.tmp.`salary_data.csv2`", conn)
>>> df.columns.values
array([u'n\x00a\x00', u's\x00a\x00l\x00',
       u'y\x00e\x00a\x00r\x00s\x00_\x00e\x00x\x00', u'f\x00q',
       u'f\x00i\x00l\x00e\x00', u'f\x00i\x00l\x00e\x00', u's\x00u\x00f\x00'], dtype=object)

We'll have to experiment a bit, but it shouldn't be too hard.  Unicode was not well defined in the ODBC specification, so drivers do different things.  The default encoding pyodbc uses for everything is UTF16LE, but it looks like you might need to try:
cnxn.setdecoding(pyodbc.SQL_WMETADATA, encoding='utf-32le')

What does that produce?
The Unicode Wiki page may be helpful.

The utf-32le encoding worked!  Thanks for suggesting that.


crypto/x509: a server with a self-signed certificate doesn't validate if that cert is in Roots

(Just filing this for my own records.)

@agl Thanks for making this change.  It definitely makes a TLS client written in Go more consistent with other languages when setting explicit trust anchors and talking to TLS servers with self-signed certificates that you do not control.
Not sure if it's what you observed, but I had previously encountered verification errors with TLS servers whose self-signed certificates would fail x509.CheckSignatureFrom (in call to opts.Roots.findVerifiedParents from inside buildChains).  For example, if a TLS server's self-signed cert was not marked as a CA with basicContraints = true or KeyUsage was present but missing keyCertSign.  After your change, such CA / KeyUsage enforcement will no longer be applied in this scenario.
Previously, if you controlled the TLS server, you could modify your TLS server's self-signed cert to conform to the stricter requirements imposed by x509.CheckSignatureFrom.  If you did not control the TLS server, your only option for a Go client would be to use InsecureSkipVerify and get zero verification or to use something DialTLS and write your own verification logic.
I always want to do as much TLS verification as possible, so this change now makes that much easier to achieve.  Hopefully, more folks will stop using InsecureSkipVerify reflexively and just start setting the root explicitly when talking to TLS servers with self-signed certs.
I did not report this previously because I assumed Go was deliberately trying to be more strict even though RFC 5280 is a bit ambiguous for this scenario.


Errors after install

Hi
I am getting the following error message and would love to get your input
Traceback (most recent call last):
  File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/srv/homeassistant/lib/python3.4/site-packages/hagraph/__main__.py", line 30, in <module>
    main()
  File "/srv/homeassistant/lib/python3.4/site-packages/hagraph/__main__.py", line 25, in main
    graph = make_graph(conf)
  File "/srv/homeassistant/lib/python3.4/site-packages/hagraph/__init__.py", line 242, in make_graph
    add_core_edges(conf, graph)
  File "/srv/homeassistant/lib/python3.4/site-packages/hagraph/__init__.py", line 212, in add_core_edges
    add_alexa(intent, data, graph)
  File "/srv/homeassistant/lib/python3.4/site-packages/hagraph/__init__.py", line 163, in add_alexa
    check = entities_or_service(data['action'])
KeyError: 'action'

Show your alexa skill, please.

I have it split in configuration.yaml like that:
alexa:
  flash_briefings: !include alexa/flash/flashbriefing.yaml
  intents: !include_dir_merge_named alexa/intents/

do you think this could be the issue or is it something in one of the sub files?
Should I maybe remove one by one by process of elimination if you think that's the case and see what causes it?

Yes, it is one of the sub-files. hagraph is expecting an action and it can't find one.

Does it have to have and "action:" section?
what if I just have a "speech:" section ?

it's my understanding that action is not mandatory..
I can have an Intent that only has speech (which works)

Added:
      action:
        delay: 0:00

But I don't think this should remain a mandatory command for the intent structure :)

Yes, I agree. I will update it to not require an action.

Fixed in 1.0.3.


Only ignore some properties if declaring type is IPublishedContent

Some of the ignored properties - eg. Content - should only be ignored when the declaring type is IPublishedContent. This allows our custom models to have properties with these names - without our own properties being ignored.
https://github.com/skybrud/Skybrud.Umbraco.Spa/blob/master/src/Skybrud.Umbraco.Spa/Json/Resolvers/SpaPublishedContentContractResolver.cs#L43,L70

Fixed in v1.0.0-beta007 :tada:


READ THIS BEFORE POSTING AN ISSUE!!!!

First of all i want to say thank you for reading this, please read fully before you post an issue. some information here is from the official discord for cats and some are from my own experiences replying on here.
Why cat's isn't updated?
Simply that the original owner has vanished and the community was maintaining it but no longer can, it's been a year since the last official response so at this point I think we can take it that's CATS has been abandoned. Below is the official response on the CATS discord server FAQ which was posted on the 05/04/2023.
"Due to problems beyond our control, we cannot give an estimate of when there will be an official update. This is due to many reasons, one of which is that the only reason why the addon gets any support anyways is because of the community. Because the community doesn't own the project, we cannot do anything to release an update. We can push code and update development and sometimes master, but since the owner has kind of gone on a hiatus we have no idea when or even if they will return. The owner is the only one capable of pushing a release thing that everyone loves downloading. The code thankfully is able to work without being compiled, so that is a big reason why we can happily give people the latest version without the owner's involvement. The programmers, translators, and contributors to the plugin are in the same boat.
What I can unveil is that negotiations are ongoing, and Hotox is working every day to gain the permissions to release updates and get the train rolling.
So sit back. Asking isn't gonna make it go any faster. Probably..."
Is there an alternative to CATS?
Yes, there are a couple, and I honestly didn't like posting my own version but at this point I getting annoyed at repeating myself so here you go.
You can get my un-official version, this version contains several fixes and improvement, blender 4.0 compatible version (Though mmd tools isn't fully updated still so there maybe a couple of issues no fault of my own): https://github.com/Yusarina/Cats-Blender-Plugin-Unofficial-
If you want Cats Decimation, bake and some other optimizations which cats used to have, use Tuxedo, it's a fantastic alternative to cats old bake feature: https://github.com/feilen/tuxedo-blender-plugin
You can get material combiner here: https://github.com/Grim-es/material-combiner-addon
You can also look at the forks, though there doesn't seem to be any forks which keep cats as maintained as my version though.
I don't want to use the non-official one though?
That's fine however follow this advice to get the official one working on newer blender versions.
DON'T USE THE MAIN BRANCH OR RELEASED VERSION OF CATS FOR BLENDER 3.1+ USE THE DEV VERSION!!!!!!!!
DON'T USE BLENDER 4.0 THE OFFICIAL VERSION OF CATS ISN'T UPDATED TO USE NEW API CHANGES AND MMD TOOLS HAS NOT BEEN UPDATED TO 4.0!
You can find the dev version here: https://github.com/absolute-quantum/cats-blender-plugin/tree/development
Direct zip download: https://github.com/absolute-quantum/cats-blender-plugin/archive/refs/heads/development.zip
The best version of blender to use is either 3.5 or 3.6 (You may get some warnings on 3.6 but it seems to work just fine).
I get this issue below:

Did you even read what I said?
DON'T USE THE MAIN BRANCH OR RELEASED VERSION OF CATS FOR BLENDER 3.1+ USE THE DEV VERSION!!!!!!!!
Why can't I use the main branch on blender 3.1+?
Because the main branch has not been updated in years and does not contain the many fixes and improvements the dev branch has for these versions of blender.
Why can't I use blender 4.0+?
Blender 4.0 has quite a few API changes which breaks some functions in CATS and MMD Tools. You will find certain functions like the Fix Model button and some other functions will give you errors. This will only get worse with Blender 4.1 and more as blender is changing alot of behind the scenes stuff. Therefor even though Cats semi works on 4.0 from 4.1 Cats will most likely completely break.
You keep talking about these MMD Tools what is this?
MMD Tools is a 3rd party plugin which cats uses for several things, including importing mmd/vrm stuff and etc, it's a key component of cats and several features would not work without. Hence CATS is reliant on MMD Tools to be updated for cats to work 100%.
As more frequent questions come in, I will update this, if the above hasn't answered your question then post an issue, HOWEVER don't expect anyone to answer as again this github has basically been abandoned at this point.

Have you been looking in  https://github.com/absolute-quantum/cats-blender-plugin/pulls too?

Read everything before asking a question, you answer is in there.

Old version closed, please see this one: https://github.com/absolute-quantum/cats-blender-plugin/issues/687


chore(cdk): create cdk/collections

Contains data-source, collection-viewer, and selection.
Opening up the PR for discussion on what should be in the directory (or if it should exist). Data source and collections viewer doesn't need to be tied to the table since other components (tree) can use em.

please rebase

Rebased

@andrew Can you rebase?

Rebased


Blashbrook patch 1

:tada: This PR is included in version 1.39.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


A way to attach a leading comment to a record field

Say I need to have comments (maybe doc comments) for each record field, like this:
type User =
   { -- this user's unique identifier
      id :: UserId
     -- this is user name
   , name :: String
   }

But typeRecord gets field name as string (or toName label), not the node, it is not clear how to attach there leading comments above  a field name.
      "User"
        ( typeRecord
            [ Tuple "id" (typeCtor "UserId")
            , Tuple "name" (typeCtor "String")
         ]
            Nothing
        )

Is there a way to achieve this?

Inserting leading for { and , managed to get this, probably this ok:
type User =
   -- | this user's unique identifier
  { id :: UserId
  -- | this is user name
  , name :: String
  }

Traling for SourceToken is not supported I belive?
Also a quetion about block comments (this refers to tidy formatting I believe). If I use block leading comment in abolve case, I get the following output:
type User =
  { id :: UserId
  {- line1 of block comment
line2 of block comment
 -}  , name :: String
  }

Position of block comment is quite strange, it seems to me that it should be placed the same way as doc comments are:
type User =
  { id :: UserId
  {- line1 of block comment
  line2 of block comment
  -}
  , name :: String
  }

is something wrong with the positiong of block comments?

For block comments you specifically have to also add a line break comment as well, because block comments don't necessarily introduce newlines.

Traling for SourceToken is not supported I belive?

SourceTokens have a trailingComments fields, and you can also use overTrailingComments on them. You just can't add newlines to trailing comments.
https://github.com/natefaubion/purescript-language-cst-parser/blob/5afff30ddafc84317d35a4d091a00563d818b899/src/PureScript/CST/Types.purs#L90

Traling for SourceToken is not supported I belive?

SourceTokens have a trailingComments fields, and you can also use overTrailingComments on them. You just can't add newlines to trailing comments.

Ah, yes I saw that, now I get what it means, so traling comment (for opening paren) is not an option here if multiline comments are needed.
So I belive to put comment as leading for separator , and opening parent is a way to go here for putting fields comments, tough people usually don't do this in purescript. And compiler/tools still doesn't support it (like record props autocompletion with docs available), but probably in future in can become more actual.


Key Tab option

Hello!
first, we have to say you've made a great work!
So here is the problem. When we use the TAB key to "validate" something in a form included in a Swipeview, it bugs, making a swipe to the next tab and SwipeViewsTab disappear .
So is there a possibility to add an option to disable this shortcut in your component?

Hi,
Thanks for your feedback :)
Nothing in the library code should interact with the keyboard. There are no shortcuts.
It only should only react to touch (on mobile), scroll and click (on the tabs).
Can you maybe provide a quick working code to reproduce the bug?
I'll be happy to take a look at it.


Feature Request: Tweens Sequence

Could we have the option to create sequences that let us add multiple tweens that will execute one after the other?
There could be functions such as append, insert and so on Something like how it's done in Unity by DOTween.

i found that u can add a member function to invoke next tween function, and use set onComplete to call this member function.but my case is kinda like recursivel,it goes smoothly


Updated deconv demo to v0.8.0

Updated code to reproduce deconvolution figures. When running on my own machine, I get identical results to before and with a small exception the figures also identical. But the legends on the last two are placed differently and inconveniently on top of the graphs.  Any idea why?  I can't see a change in our code specifying the legend.

This is the final version of the square. @nabriis Can you approve, then I'll merge.

SOrry I mixed up.  This one, with the sinc signal, can you please run on your machine, and commit and push with your figures?


[updatecli] Update Ldap crond docker image digest version to 7d40b510afd8c5f7d25f951557fa3788ba8427e1f2dda803134901386f88de50

Changelog
We couldn't identify a way to automatically retrieve changelog information
Reports
Source:
	✔  (dockerDigest)

Condition:

Remark
This pull request was automatically created using olblak/updatecli.
Please report any issues with this tool here

Superseded by https://github.com/jenkins-infra/charts/pull/420


expect{}.to change(object, :more, :then, :one, :property)

It would be cool to have the ability to pass more then one property/symbol to the change method. My current solution is to re-use the expect like this:
expect_block = expect {
  do_something
}
expect_block.to change(bla, :foo)
expect_block.to change(bla, :bar)

For anyone who arrives here and is stuck, this StackOverflow question has alternative forms which work:
RSpec 2:
lambda {
  lambda {
    lambda {
      lambda {
        click_button 'Save'
        @user.reload
      }.should change {@user.name}.from('donald').to('gustav')
    }.should change {@user.updated_at}.by(4)
  }.should change {@user.great_field}.by_at_least(23}
}.should change<EMAIL_ADDRESS>
RSpec 3+:
expect {
  click_button 'Save'
  @user.reload
}.to change { @user.name }.from('donald').to('gustav')
 .and change { @user.updated_at }.by(4)
 .and change { @user.great_field }.by_at_least(23}
 .and change { @user.encrypted_password }


Do you use rerank, and about how much mAP or R1 can improve?

RT.  Thanks!

Yes, we have tried in the AICITY competition. The specific experimental details can be found in our paper, which has a detailed explanation.Paper link: http://arxiv.org/abs/2004.10547
Thanks!


Prepare for breaking change of sass

Description
sass 1.77.8에서 nested rule 다음에 unnested rule이 오는 syntax를 deprecated 처리 한다고 합니다. 메이저 버전이 올라갈 때를 대비하기 위해 미리 마이그레이션을 하면 좋을 듯 합니다.
Reasons for suggestion

The use of declarations after nested rules is currently deprecated in Sass, in order to notify users of the upcoming change and give them time to make their stylesheets compatible with it. In a future release, Dart Sass will change to match the ordering produced by plain CSS nesting.

버전을 올리고 빌드하면 빌드 워닝이 뜹니다.

Proposed solution
문서에서 제안한 것처럼 & { } 로 감싸거나 순서를 변경합니다.
References
https://sass-lang.com/documentation/breaking-changes/mixed-decls/

Is it okay to disable some lint rules? 🤔

Yes you can disable them if necessary.
How did you try to do migration? scss is elevating the unnested rule that follows the nested rule to the nested rule, so I thought it would be enough to simply change the order without wrapping with ${ }.
// As-is
.example {
  color: red;

  a {
    font-weight: bold;
  }

  font-weight: normal;
}

// To-be
.example {
  color: red;
  font-weight: normal;

 a {
  font-weight: bold;
}

Yes you can disable them if necessary.
How did you try to do migration? scss is elevating the unnested rule that follows the nested rule to the nested rule, so I thought it would be enough to simply change the order without wrapping with $ {}.
// As-is
.example {
  color: red;

  a {
    font-weight: bold;
  }

  font-weight: normal;
}

// To-be
.example {
  color: red;
  font-weight: normal;

 a {
  font-weight: bold;
}

Yeah, I was initially planning to go for the &{} but that seems to trigger the "duplicate selector" lint error. I went for changing the order way, but that triggers some other linting error due to @include in one of the two stylesheets, so thinking of disabling lint for that line.

You can disable it.


Invalid cross-device link

Using thor 0.15.0.rc2, running the tests, I get 1 failure:
Thor::Actions::CreateLink#invoke! creates a hard link for :symbolic => false
Failure/Error: capture(:stdout){ @action.invoke! }
Errno::EXDEV:
Invalid cross-device link - (/tmp/config.rb20111010-1025-sqmntf, /home/bkabrda/test/thor/spec/sandbox/doc/config.rb)
rspec ./spec/actions/create_link_spec.rb:36 # Thor::Actions::CreateLink#invoke! creates a hard link for :symbolic => false
The invalid cross-device link error occured probably due to the fact that /tmp/config.rb20111010-1025-sqmntf and /home/bkabrda/test/thor/spec/sandbox/doc/config.rb are on different partitions.
I'm not sure where this function is used, but either it never links two files on different partitions/filesystems and then the test should be repaired or it can and then the actual thor function should be fixed.
Thank you,
Bohuslav Kabrda.

The tests assume that the temporary directory provided will be on the same device as the Thor source itself. Clearly this is sometimes not the case and should be fixed in the specs. The exception raised by ruby is appropriate. A patch that fixes the specs would be welcome!

I'm not completely sure, but wouldn't trying to link two files in /tmp suffice?

Most likely, yeah.
-bd
On Oct 11, 2011, at 1:04 AM<EMAIL_ADDRESS>wrote:

I'm not completely sure, but wouldn't trying to link two files in /tmp suffice?
--
Reply to this email directly or view it on GitHub:
https://github.com/wycats/thor/issues/183#issuecomment-2358261


Spinner loaders

Code-review checklist

Documentation

[ ] Interfaces describe how other programmers would use them.
[ ] Code that is not obvious has documentation describing why
that code is the way it is.

Looks good


[Bug Report] Tipped Arrow doesn't have effects

Describe the bug
Tipped Arrow will not have effects.
Versions (please complete the following information):

Minecraft Server Version: 1.15.2 / PaperSpigot
Plugin Version: 1.10

Pastebin any errors in console
No.
Issue
For example:

DisplayItem: 'TIPPED_ARROW:FIRE_RESISTANCE'

Just showing a Tipped Arrow with no effects.

Item:TIPPED_ARROW:HARM, Amnout:16

Just give player Uncraftable Tipped Arrow with no effects.
Screenshots

We fixed this


Release 1.0.0

First release of DnD:
Main Updates:

Optimized KMeans (closes #12):

Over 1900x speed improvement for background noise estimation  (closes #5)
Better centroid detection with lower inertia compared to sklearn’s KMeans (sklearn fails in 25% of test cases!)

Simplified HTO data generation
Enhanced logging and user feedback, including detailed exceptions
Updated tests (closes #7 )
Fixed parameter propagation and defaults

I think we should revisit the in-place adjustment of adata in the dsb function. For example, when add_key_denoise is None, the we do adata.X = norm_adt. We the lose the original counts. When we later call create_vizualization, we won't have the information.
Also, create_vizualization now takes in an optional layer argument, but that's not being passed anywhere when it's called.
Propose to change add_key_denoise to key_denoised and set it to dsb_denoised by default. Same for add_key_normalise


Cannot submit Katas

This is the second kata now that I've completed. I have run the sample tests and they pass. I have pressed "attempt", and the tests pass too. However, the submit button does not appear and therefore I cannot complete the kata.
https://www.codewars.com/kata/find-the-nth-digit-of-a-number/train/cpp

A similar thing happened with https://www.codewars.com/kata/two-to-one/train/cpp, but the output pane for the sample tests is empty (even when the script outputs something to the console). The screenshot below is after having clicked "attempt".

This could just be me being incompetent, I don't know,

Your code is wrong. This is a problem with C++ assertions (probably present in some other languages) - your code gets rejected because it can't pass the tests, but there's no message about it.

I thought I was going mad! Thanks for the info, I assumed something like that was the case but for the life of me I couldn't find anything on the internet about such a case.


Could you also upload the training file?

Hello! I got a huge help from your git!
Could you also upload code so that I can see how you built and trained your model?
Thanks for your help:):)

Hello! I got a huge help from your git!
Could you also upload code so that I can see how you built and trained your model?
Thanks for your help:):)

I train the model with the official training object_detection repo in tesorflow/model. I cannot upload the nail data now, but u can crawl them down online.

Hello! I got a huge help from your git!
Could you also upload code so that I can see how you built and trained your model?
Thanks for your help:):)

About 3127 pictures for training. I can offer u the pictures now, but I cannot offer the
annotation file (xml file) to u.
U can download on link below:
link: https://pan.baidu.com/s/1sl4BTTE-N_nYQYns_AfGjg
password: pac6

Hi,
I am trying to implement something similar. I tried accessing the link: https://pan.baidu.com/s/1sl4BTTE-N_nYQYns_AfGjg But it's not working. If you don't mind could you please help with this.
Thanks,

Hi,
I am trying to implement something similar. I tried accessing the link: https://pan.baidu.com/s/1sl4BTTE-N_nYQYns_AfGjg But it's not working. If you don't mind could you please help with this.
Thanks,

I check it again. It is ok.
But u need to download the windows app which named 百度网盘.
Download url
I am sorry about that, but I have no enough space in dropbox.
Can u try it again?

@ManWingloeng Hi, thank you for sharing your dataset, but could please upload it to google drive? It is difficult to download from baidu for people living outside China

@ManWingloeng Hi, thank you for sharing your dataset, but could please upload it to google drive? It is difficult to download from baidu for people living outside China
@sealedtx @fathimac
I share the dataset on google drive.
Download url: Google Drive

@ManWingloeng Hello, thank you for sharing and I'm very interested in it. Could you please upload the annotation file because I don't know how to annotate it? Thank you.

@ManWingloeng Hello, thank you for sharing and I'm very interested in it. Could you please upload the annotation file because I don't know how to annotate it? Thank you.

Sorry, because the annotation files is not my property, u can use labelme or labelimg to annotate it.


sorry please delete

edit: sorry please delete this package doesnt seem to work.

No worries at all - if you would like to share what is not working exactly, I would like to fix it :)


Field "value" on type "id-primitive" must be no more than 64 characters long, 36 seen

This part of code does not have sense for me https://github.com/dcarbone/php-fhir-generated/blame/8bdc0abd9edca098dc664c0af03f4f6e027876eb/src/DCarbone/PHPFHIRGenerated/R4/PHPFHIRValidationAssertionsTrait.php#L139
    /**
     * Asserts that a given string value is no more than x characters long
     * @param string $typeName
     * @param string $fieldName
     * @param int $expected
     * @param null|string $value
     * @return null|string
     */
    protected function _assertMaxLength($typeName, $fieldName, $expected, $value)
    {
        if (PHPFHIRConstants::UNLIMITED === $expected || null === $value || !is_string($value) || '' === $value || $expected <= ($cnt = strlen($value))) {
            return null;
        }
        return sprintf('Field "%s" on type "%s" must be no more than %d characters long, %d seen', $fieldName, $typeName, $expected, $cnt);
    }

If a expect 64 characters at maximum, I should not get an error with 36 characters.
The same calculation is correct a few lines above, on _assertMaxOccurs() method
    /**
     * Asserts that a given collection field has no more than the specified number of elements
     * @param string $typeName
     * @param string $fieldName
     * @param int $expected
     * @param null|array $value
     * @return null|string
     */
    protected function _assertMaxOccurs($typeName, $fieldName, $expected, $value)
    {
        if (PHPFHIRConstants::UNLIMITED === $expected || null === $value || !is_array($value) || [] === $value || $expected >= ($cnt = count($value))) {
            return null;
        }
        return sprintf('Field "%s" on type "%s" must have no more than %d elements, %d seen', $fieldName, $typeName, $expected, $cnt);
    }

Could you fix that, please?

This has been addressed with a subsequent release.


Bug Fix: HTML5

Briefly describe the issue(s) fixed.
I added mp3 clips and fixed gar's position for loading screen for HTML5.

[x] Make use of Week7 Folder

Why :(

That happens. It doesn't mean it.

Oh ok thanks


Refine profiling

Some code refine about https://github.com/pingcap/tidb-dashboard/pull/859#discussion_r582532471

/cc @baurine @breeswish

Would you like a complete refactoring for this part, taking #717 into consideration, instead of improving the current code base? I guess it would be better. Remember to write a design doc first if you want to do this.

Thanks for such a helpful review!
Yes, I want to do this refactoring. I learned a lot from these missions.

Thanks for such a helpful review!
Yes, I want to do this refactoring. I learned a lot from these missions.

:) I usually find myself knowledge++ when throwing away code instead of producing code.


bitbucket-server-post-build-status 0.0.10

[X] I will not move an already shared step version's tag to another commit
[X] I read the Step Development Guideline
[ ] I have a test for my Step, which can be run with bitrise run test (in the step's repository)
[X] I did run bitrise run audit-this-step (in the step's repository - note, if you don't have this workflow in your bitrise.yml, you can copy it from the step template.)
[X] I read and accept the Abandoned Step policy

Follow up of https://github.com/bitrise-io/bitrise-steplib/pull/2449


fix(TDI-38392): fixed NPE in getConnectionUrl()

Please check if the PR fulfills these requirements

[ ] The commit message follows Talend standard
[ ] Tests for the changes have been added (for bug fixes / features)

What is the current behavior? (You can also link to an open issue here)
NPE in getConnectionUrl()
What is the new behavior?
correct getConnectionUrl() method
Does this PR introduce a breaking change?

[ ] Yes
[ ] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:
https://jira.talendforge.org/browse/TDI-38392

fix commit message and you may merge


can't install

Using version ^0.3.2 for foothing/laravel-simple-pageviews
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for foothing/laravel-simple-pageviews ^0.3.2 -> satisfiable by foothing/laravel-simple-pageviews[0.3.2].
    - Conclusion: remove laravel/framework v5.3.28
    - Conclusion: don't install laravel/framework v5.3.28
    - foothing/laravel-simple-pageviews 0.3.2 requires illuminate/http 5.1.* -> satisfiable by illuminate/http[v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8].
    - don't install illuminate/http v5.1.1|don't install laravel/framework v5.3.28
    - don't install illuminate/http v5.1.13|don't install laravel/framework v5.3.28
    - don't install illuminate/http v5.1.16|don't install laravel/framework v5.3.28
    - don't install illuminate/http v5.1.2|don't install laravel/framework v5.3.28
    - don't install illuminate/http v5.1.20|don't install laravel/framework v5.3.28
    - don't install illuminate/http v5.1.22|don't install laravel/framework v5.3.28
    - don't install illuminate/http v5.1.25|don't install laravel/framework v5.3.28
    - don't install illuminate/http v5.1.28|don't install laravel/framework v5.3.28
    - don't install illuminate/http v5.1.30|don't install laravel/framework v5.3.28
    - don't install illuminate/http v5.1.31|don't install laravel/framework v5.3.28
    - don't install illuminate/http v5.1.41|don't install laravel/framework v5.3.28
    - don't install illuminate/http v5.1.6|don't install laravel/framework v5.3.28
    - don't install illuminate/http v5.1.8|don't install laravel/framework v5.3.28
    - Installation request for laravel/framework (locked at v5.3.28, required as 5.3.*) -> satisfiable by laravel/framework[v5.3.28].

Installation failed, reverting ./composer.json to its original content.

Support was intended for Laravel 5.1, i see you are trying to install on Laravel 5.3.
I'll work on a compatibility upgrade as soon as possible.

@brazorf Thanks so much for a quick response. I got it.

I'll just keep this open until ive upgraded.


Add support for directly logging via log4j

Overview
The default logger uses java.util.Logging. While there are adapters for log4j users to pull the java.util.logging messages into log4j, it would be nice for Liquibase to be able to log directly to log4j.
I did create https://github.com/apache/logging-log4j2/pull/503 for the liquibase/log4j extension code in logging-log4j, but it sounds like the log4j team would prefer to not continue maintaining that code.
Options

The liquibase.Logger interface is designed to be extendable, so the code in the above PR can easily be brought into an extension.
We could include the log4j code directly in liquibase-core, and only load it up if log4j is available and/or configured.
We could include the log4j code directly in liquibase-core, and only load it up if log4j if requested in the liquibase config.
Just tell users to use the java.util.logging -> log4j adapter.

While option 2 is nicer, I worry that log4j is common enough, that many projects bring it in as a transient dependency from some library even though they don't actually use log4j. So just because we see log4j doesn't mean we should send info to it.
Option 3 also avoids the extension necessity, and puts the choice of what logger to use in the hands of the user. We have an existing generic liquibase.plugin.liquibase.Logger configuration that could be used to select it. Or, we could create something specific.
But, is even option 3 worthwhile? Or should we just continue to rely on the log4j JUL adapter? Comment below!

Option 3 seems to me the best solution. I would love to be able to use log4j directly from liquibase without external adapter


chore: rm dr ce

Description
Default resources changes - CE counterpart
Fixes #Issue Number
or
Fixes Issue URL

[!WARNING]
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.

Automation
/ok-to-test<EMAIL_ADDRESS>:mag: Cypress test results

[!IMPORTANT]
🟣 🟣 🟣 Your tests are running.
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/10169154186
Commit: cd9b078e701dd87c71d88641b21c80502b573c76
Workflow: PR Automation test suite
Tags: @tag.All
Spec: ``
Tue, 30 Jul 2024 20:17:52 UTC

Communication
Should the DevRel and Marketing teams inform users about this change?

[ ] Yes
[ ] No

/build-deploy-preview skip-tests=true

/build-deploy-preview skip-tests=true

/build-deploy-preview skip-tests=true


add swagger to project

add swagger to project

don't merge this branch to master! I'll add one more commit


Not Downloading

A little context, it worked before but today it just won't download anything. I get the usual 'Enter Holy Numbers" but when it's just stuck at "Downloading...."
Let me know, thanks!

Hello PK888888,
this is very likely due to cloudflare updating its protection. I can confirm that it also does not work for me anymore either. I'll try to get to it as soon as I can.
9FS

Thanks for the prompt reply, no rush just curious if it was just me.
:)) Great tool btw HUGE props!

Hey @PK888888, it's been a while. I'm happy to announce that with today's patch (more like a complete rewrite), the downloader works again.
Why did it take so long?
Basically, I used to scrape the gallery HTML for the image links and then download them. To circumvent cloudflare, my initial thought was to take that to the next level and simulate  a whole browser and a user clicking through the gallery to collect the image links. I managed to do that, but it was really unreliable and tended to just randomly crash. I kinda gave up at that point.
Things changed when I was made aware that nhentai provides a limited API a  couple of days ago. I found a way to access that without all the browser emulating overhead and can now directly download the images.
Btw I also updated the whole project structure and coding style to my today's standard. It was very interesting to see how much I have changed within the last year.
Sorry for taking so long, but I hope you'll still find my tool useful. Have fun!


Retry registration timeout fix

Motivation
Fix an issue https://github.com/spacemeshos/go-spacemesh/issues/6035
Description
Closes #6035 `
Fix first half of issue: established separate parameter for submit challenge timeout. If timeout is not set, submitting challenge will continue till poet round starts.
Added tests and comments to config parameters.
Second half of issue is fixed within https://github.com/spacemeshos/go-spacemesh/pull/6116
Test Plan
Tested with unit tests
TODO

[x] Explain motivation or link existing issue(s)
[x] Test changes and document test plan
[x] Update documentation as needed
[ ] Update changelog as needed

The changes seem to also have broken other tests that now hang when executed.

Removing the timeout is not enough. It will now retry to submit MaxRequestRetries times (handled by the go-retryablehttp library), but no more. We need to manually retry submitting till the end of the cycle gap (probably the best place to do this is in the PoetService::Submit() method.
Please, also add a test checking that it retries submitting up until the cycle gap.

I agree that this might need to be changed but I don't agree with thee suggested approach of retrying the failed retryablehttp.Client request. Instead the Submit shouldn't have an "unlimited" number (math.MaxInt) of retries instead.
The HTTPPoetClient can have 2 retryablehttp.Clients inside - one with the limited number for proof fetches and info request and one with "unlimited" retries for submit.
Wdyt?

I agree that this might need to be changed but I don't agree with thee suggested approach of retrying the failed retryablehttp.Client request. Instead the Submit shouldn't have an "unlimited" number (math.MaxInt) of retries instead.
The HTTPPoetClient can have 2 retryablehttp.Clients inside - one with the limited number for proof fetches and info request and one with "unlimited" retries for submit.
Wdyt?

Retrying via the mechanism built in the retryablehttp.Client has the benefit (I think?) of giving up after non-retryable failures so it makes sense. Perhaps it's possible to adjust retry mechanism on per-request basis instead of keeping 2 clients around?

Perhaps it's possible to adjust retry mechanism on per-request basis instead of keeping 2 clients around?

Maybe, I didn't check the full documentation but even if not, an http client isn't very expensive to keep around - from the users perspective its still the PoetClient with a Submit and Proof method, but internally it uses 2 http clients; I don't see an issue with this 🙂

I think we are using wrong backoff functions. For the client I think we should keep using retryablehttp.LinearJitterBackoff. It uses a linear backoff that increases the time between retries by numAttempts * rand(min, max). Given that we have 1 second as min and 2 seconds as max this will take at least 550 and at most 1100 seconds (which is our timeout) with increasing delays between requests.
For submit we also want some jitter to not have all nodes query a poet at exactly the same time, but we do not want to increase the time between requests by too much. I believe a backoff function like this can be used:
// customJitterBackoff always waits between `min` and `max` before retrying
func customJitterBackoff(min, max time.Duration, attemptNum int, resp *http.Response) time.Duration {
	if max <= min {
		return min
	}

	return min + rand.N(max-min)
}

bors merge


executor.task_ttl should not kill tasks BLOCKED, PLANNED or READY for long time

BLOCKED and PLANNED states mean that there're other tasks running in the
attempt (BLOCKED: running dependent tasks, PLANNED: running child tasks).
Purpose of task_ttl is killing tasks without any progress for long time,
killing BLOCKED / PLANNED tasks don't make sense. Instead, it should
only kill leaf tasks.
READY is also excluded because having task in READY state for long time means
that the workflow is progressing expectedly but simply number of threads is
insufficient.
To kill long-running attempt, attempt_ttl should be used instead.

👍 , although I left a minor comment


Autocrafting does not work properly

Issue description: Pressing start on autocrafting operation greys out the button and does nothing instead of showing the expected required items. Not entirely sure  what causes it because another recipe I tried worked once then not anymore.
Steps to reproduce:

Create patter for crafter.
Try autocrafting the crafter.

...
Version (Make sure you are on the latest version before reporting):

Minecraft: 1.11
Forge:<IP_ADDRESS>0
Refined Storage:1.3.2

Does this issue occur on a server? yes
If a (crash)log is relevant for this issue, link it here:
[pastebin/gist/etc link here]

Normally when this happens the server should have an error or exception the log, can you send that to us?

Tried it in Singleplayer no output on the console.

For which item do you have this bug? Does it happen on every item?

I think the problem is that he is using RS 1.3.2 for MC 1.10

no im on 1.11

On the server it was with the crafter this time i tried a construction core.

you put the wrong version in the issue

Can you give me the output that the server gives on the console....


[Question] Does the verify still work for bonds?

Deploy an ERC20 test contract & verify the verify scripts still run (do not error)

Verify script still worked 👍
Need to output the transaction hash to be able to lookup on Block explorer


fixes x,y,width,height functions for already rooted nodes

fixes https://github.com/fusetools/fuselibs/issues/4189

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Looks good, please merge


Enter key sometimes doesn't terminate line input in Git

Opened 2011-05-04:
Sometimes you can't enter a command in Git, because the enter key doesn't end line input.

@ptomato commented 2011-05-08:

On second examination, this doesn't happen on any particular game files, but differs between executions of Git instead.

@wmvanvliet commented 2011-06-19:

Related to the pager. Sometimes it keeps on paging when already at the bottom. The key handlers of the pager are preventing the player to hit enter or space.

@ptomato closed 2012-09-16


actor abstraction

Create a DWN actor abstraction, holding a DID, signing keys, and reference to a local DWN.
This can provide a simple unified interface for creating and sending messages.
Something like:
actor
    .write()
    .data(MyStruct { hello: "world".to_string() })
    .store(false)
    .send();

Done, data is still a bit annoying to work with but the framework is there https://github.com/unavi-xyz/dwn/commit/3ff2e6e9826dbd4906fb4fedbf5a9db1f0c88d1c


Simpler Router architecture

This pull request removes getView from the Application API,  introducing a breaking change.
This has been done to reduce the Application from storing props beyond the view it currently is showing,  more in line with how this module is expected (and almost always is) to be used.
This is of benefit to most applications as until now you could find view prop information that may be been left in the applications state,  causing excessive memory usage and potential security concerns.

@JedWatson don't merge yet, testing is still underway.

@JedWatson should be good for review

Nevermind, still needs testing,  some odd artifacts are occurring.


Jk ensweb 6724

This PR is to update the supported browser list page. The changes can be viewed here http://wp-np2-1f.ebi.ac.uk:10000/info/website/browsers.html.
The list was generated by looking browser usage stats here https://caniuse.com/usage-table. Safari includes a bigger drop to account for the penultimate version of macOS being locked to version 15.6.
More details can be seen in the ticket here https://www.ebi.ac.uk/panda/jira/browse/ENSWEB-6724
The ticket mentions that molstar should be taken into consideration. Sadly I could not find any minimum browser requirements so I just added a note about hardware acceleration

Updated spelling mistake and ready to be reviewed again


Fix installation instructions

No comma-separated packages in pip install call

No one stopped me - I will merge ;-)


[1/2] Only load Prices contract in useEtherPrice

What does this PR do and why?
This PR is in prep for removing V1UserProvider from the global app wrapper.
We only need the Prices contract for this single hook. So instead of loading it in the user context, we can load it only for this specific hook. This will allow us to remove V1UserProvider from the global app context and only use it when we need it (follow-up PR)
Acceptance checklist

[x] I have evaluated the Approval Guidelines for this PR.
[x] I have tested this PR in all supported browsers.
[-] I have tested this PR in dark mode and light mode (if applicable).

@wraeth-eth friendly bump on these 🙏


How to setup keymaps to avoid conflict with folding

Feature description
bqf keymaps are heavily conflicting with folding

Describe the solution you'd like
Please explain how to configure bqf or qf list, so that either

folding keymaps are disabled for qf list
bqf keymaps takes priority

Additional context
I was using bqf for a year now, just as a replacement for qf list. Now I've tried to use more its features and become confused, maybe I'm doing smth wrong.
my current approach:

remap z* to smth else zf:ff, zo: z0`
additional ctrl-o works great, thanks
zn, zN, zp, zP works out of the box

return {
  {
    "kevinhwang91/nvim-bqf",
    ft = "qf",
    event = "VeryLazy",
    config = function()
      ...

      -- Make Neovim's quickfix window better: preview, fzf, actions.
      require("bqf").setup({
        ...

        func_map = {
          fzffilter = "ff",    -- default: "zf"
          pscrollorig = "z0",  -- default: "zo"
        },

        filter = {
          fzf = {
            extra_opts = { "--bind", "ctrl-o:toggle-all", "--delimiter", "│" },
          },
        },
      })
    end,
  },
}

  func_map = {
          fzffilter = '',
          pscrollorig = ''
        },


Review patch and remove many for consistency

Initially brought up in https://github.com/feathersjs/feathers-sequelize/pull/7, retrieving the records may not behave consistently and also won't work well when pagination is enabled.

Hmm I saw the original issue in feathers-sequelize. Do you have know what the issue is with pagination? We have tests for it and they are passing so it should work...

We don't test remove and patch many with pagination enabled. Basically any method that calls another method may behave inconsistently. An example is that patch calls find to get the list of patched items but what if there are hooks on find? It should really go directly to the database.

Ahhh. Ya ok that makes sense. :hankey:
Yes, when we converted over to this new style it did feel a bit weird but it was keeping things DRY so I just shrugged and moved on. I guess we'll need to not reuse internal methods and just deal with things directly. Damn...

Shouldn't be too much though. Basically just pulling out the direct filtering logic from .find to re-use it in  patch and remove.

Ya I think so too.

This should be fixed via #29


Right?


It 2935/pathfinder hcu01

Merge changes for pathfinder-hcu01.
These add network settings for pathfinder-hcu01 and update the ccs versions to be installed.

It seems to me that the non-backport parts of this pull request were applied some time ago, so I'm taking the liberty of closing it. Please reopen if I'm wrong.


cleanup of pip packages list and proposal for additional packages

Hello, this is a proposal for some changes in the list of pip packages. I believe it makes sense to integrate them to the official molecule image.
First some cleanup:
Removal of ansible from the list:
calling pip install ansible[azure] ansible makes no sense, only first occurence ansible[azure] will be installed, but as it implies ansible that's fine. For the record pip install ansible ansible[azure] does not install ansible[azure], but only ansible.
Other removals:
ansible[azure] implies packaging, msrestazure, azure-cli.
Additions:
ansible-lint-junit
detox
junit-xml
tox
As a maintainer of a repository of playbooks containing multiple ansible roles, I am using detox and tox to automate and parallelize the run of molecule test.
I am also using ansible-lint-junit and junit-xml to let the build system generate nice reports.
I really think that these packages are a nice fit for the official molecule docker image, as they are expanding the usecases.
Here is a sample tox.ini to illustrate the usecase:
# Invocation:
# Run all tests in parallel (where possible):
#   detox
# Run all tests sequentially:
#   tox
# Run tests sequentially for specified roles:
#   tox -e some_role,additional_role
[tox]
# Each role is defined as an environment, to enable parallel runs of command 'molecule test'
envlist =
  some_role
  another_role
  playbooks
minversion = 3.2.1
skipsdist = true
[testenv]
basepython = python2
commands = bash -c "(cd {toxinidir}/roles/{envname} && molecule --debug test --all)"
description = molecule test on {envname}
passenv = *
setenv =
  # necessary for parallelization with detox
  # see https://molecule.readthedocs.io/en/latest/testing.html
  MOLECULE_EPHEMERAL_DIRECTORY={envname}
sitepackages = true
whitelist_externals =
  /bin/bash
  /usr/bin/rubocop
[testenv:playbooks]
deps = ansible-lint-junit
description = ansible-lint on all playbooks
commands = bash -c "find {toxinidir} -maxdepth 1 -name '*.yml' | xargs -n1 ansible-lint -v"
whitelist_externals =
  /bin/bash
  /usr/bin/find
  /usr/bin/xargs

Indeed, but if I don't ask, I will not know if it makes sense for other people :)

And yet others will have no use for these packages, right?  You're right @themr0c!

I'm not so sure what I think about this.  On one hand I think it's fine, on the other hand it seems a bit unnecessary, when this can be solved with your own Dockerfile.  I'll look this over more this week.  My apologies for the delay.

I am not completely sure either :).
Key question is: does the use case make sense to other than ours ?
Maybe the tox and the junit cases should not be discussed in the same PR?
For tox: is the user story convincing and in the scope of molecule?
Given a repository containing multiple roles, performing CI tests on the repository implies the need to orchestrate multiple molecule tests.
Should this orchestration task stay out of the scope of molecule ?
Or is this idea to use (de)tox generic (and simple) enough to become the orchestrator of multiple molecule tests ?
For junit, I have more afterthoughts.
It is less necessary: once you have tox installed, it is very simple to add dependencies in the tox.ini configuration file.
It is maybe not the right place to implement it. If we want to make the molecule image feature complete for all possible ansible scenarios, we are missing also other packages, and the list can grow infinitely. For instance python-consul would be necessary to use consul_kv module and lookup plugin. Maybe the management of additional dependencies should be implemented at ansible level, not in molecule docker image dependencies: we should be able to ask for ansible[azure,consul,docker], etc.

I'm going to hold off from merging this.  As you know Ansible is adopting Molecule, therefore I do not want to merge anything that may impact future architectural decisions, as I will no longer be leading the development of this project.

Fine for me :).
Versions on pip packages is a great idea.
BTW in our (private) pipeline using molecule image, we have oped in for versioned pip packages in an external requirement.txt that is suitable for all scenarios (automation pipelines, docker build, detox scenarios, user installation...). It could be a better option than this actual proposal.

@themr0c in general, we discuss high-level proposals under ansible/proposals repo, but for more specific or straightforward things sometimes issues in projects work.
We're thinking already about having extras, I've got a WIP PR and it's been mentioned across quite a few issues/PRs recently.
As for pinning I've explained my position @ https://github.com/ansible/molecule/pull/1530#issuecomment-436219312
Also, please be familiar with https://caremad.io/posts/2013/07/setup-vs-requirement/, which describes difference between distribution dependencies and env requirements. (TL;DR pinning env deps is up to user who installs dists and distributions themselves should only specify lower bounds if necessary)


taskbar.js mismatch on CSS rule className

https://github.com/DimitarChristoff/mochaui/blob/develop/Source/Controls/taskbar/taskbar.js#L103
https://github.com/DimitarChristoff/mochaui/blob/develop/Source/Controls/taskbar/taskbar.js#L107
https://github.com/DimitarChristoff/mochaui/blob/develop/Source/Controls/taskbar/taskbar.js#L111
results in null value for the taskbar buttons colours as the CSS has been refactored to use different classNames:
https://github.com/DimitarChristoff/mochaui/blob/develop/Source/Themes/default/css/taskbar.css#L109-120
fix: apply namespace to the css classes
better fix: define class names in options with default values for colours, should it fail. Separation of concerns, lacks degradation, reliance on CSS declarations alone is flaky.

Yep picked that seperately, should be ok now.
-Chris


Support custom implementations of the Constraint Evaluator

Currently, ConstraintEvaluator as a concrete struct. This struct contains functionality needed to evaluate constraints over the trace LDE and to combine all constraints having the same constraint divisor (i.e., constraints with the same vanishing polynomial).
While this structure works, it is not flexible enough to support such things are more optimized constraint evaluation or delegating constraint evaluation to hardware etc. To fix this, we could introduce a ConstraintEvaluator trait and then provide a default implementation for this trait. The trait could look as follows:
pub trait ConstraintEvaluator<'a, E: FieldElement> {
    type Air: Air<BaseField = E::BaseField>;
    type TraceLde: TraceLde<BaseField = E::BaseField>;

    fn evaluate(
        self,
        trace: &Self::TraceLde,
        domain: &'a StarkDomain<E::BaseField>,
    ) -> ConstraintEvaluationTable<'a, E>;
}

Creating an instances of ConstraintEvaluator would be handled by the prover. To do this, we'd need to add the following to the Prover trait:
pub trait Prover {
    ...
    type ConstraintEvaluator<'a, E>: ConstraintEvaluator<'a, E, Air = Self::Air, TraceLde = Self::TraceLde>
    where
        E: FieldElement<BaseField = Self::BaseField>;

    /// Returns a new constraint evaluator which can be used to evaluate transition and boundary
    /// constraints over the extended execution trace.
    fn new_evaluator<'a, E>(
        &self,
        air: &'a Self::Air,
        aux_rand_elements: AuxTraceRandElements<E>,
        composition_coefficients: ConstraintCompositionCoefficients<E>,
    ) -> Self::ConstraintEvaluator<'a, E>
    where
        E: FieldElement<BaseField = Self::BaseField>;
}

The above assumes that #180 has already been implemented.

@irakliyk Thanks for proposing this issue, this will be very useful for acceleration. I think it'll be good to make evaluate an async function. Web workers use message-based communication, so we end up dispatching a bunch of messages for workers and wait for them to come back, it's nice to have future support for that, see: https://github.com/starkoracles/Aero/blob/f9781dca9265727d53140e53e4d9b793fab5839a/sdk-api/miden-wasm/src/proving_worker.rs#L305.

It'll also be nice if we can implement the same thing for constraint commitment, it can also benefit from custom acceleration implementation, esp in environments that don't support Rayon (such as wasm).

I think it'll be good to make evaluate an async function.

Yes - I can see how this could be useful! I don't have too much experience working with async code. Would you suggestion mean that we'd define the interface like so:
pub trait ConstraintEvaluator<'a, E: FieldElement> {
    type Air: Air<BaseField = E::BaseField>;
    type TraceLde: TraceLde<BaseField = E::BaseField>;

    async fn evaluate(
        self,
        trace: &Self::TraceLde,
        domain: &'a StarkDomain<E::BaseField>,
    ) -> ConstraintEvaluationTable<'a, E>;
}

My understanding is that this currently works only on nightly, but there is a plan to stabilize it relatively soon.
One thing I'm not sure of: what kind of effect would it have in places where we don't need async functionality?

My understanding is that this currently works only on nightly, but there is a plan to stabilize it relatively soon.

Ah ok, I didn't realize it's not supported on stable yet. Maybe what we can do is have a sync fn evaluate by default and add the async version behind a feature so not all consumers are forced to use nightly.

One thing I'm not sure of: what kind of effect would it have in places where we don't need async functionality?

From what I can tell, defining sync code within async fn is ok, it'll just be executed normally without any context switching.

Closed by #217.


Joins all existing MUCs (should use bookmarks)

Currently Kaiwa joins all existing MUCs on the server.
Currently, if there are many MUCs on the server the list gets so long and the user is not interested in all MUCs. The list of all server MUCs could be in a dropdown for a simple way of joining.
Instead of joining all, Kaiwa should use XEP-0048 Bookmark Storage to join only those MUCs in the users bookmarks. Also when joining a new MUC with Kaiwa, that MUC should be added to the bookmark list.
This gives the following possibilities:

Only join those those marked with auto join
Use nickname from bookmark
Use name from bookmark to display in MUC list instead of jid

(e.g. clients like Gajim and Conversations uses bookmarks and honours all those settings)

+1

+1

+1

+1 (Do you think a bug bounty will fasten this one ?)

@4nti-7rust I don't think anyone is working on Kaiwa anymore..


fingerprint.py update

Updated depreciated - to bitwise ^ in get_2D_peaks

got this in another PR, thanks for the catch


v1.17.2 + k3s1 cadvisor metrics are incorrect

Version:

v1.17.2+k3s1
Describe the bug

In the k3s v1.17.2 + k3s1 version, some metrics obtained by curl the kubernetes cadvisor API interface are missing some labs such as the container name. I compared it with k3s v1.15.4-k3s.1 version and k8s v1.17.2 version of kubernetes.
To Reproduce

This pod needs a service account with the correct permissions，$HOSTNAME is node hostname。You can also curl in  v1.15.4-k3s.1 version k3s to compare the metrics labels。
1、TOKEN=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)
2、curl -H "Authorization: Bearer $TOKEN" -k https://kubernetes.default.svc:443/api/v1/nodes/$HOSTNAME/proxy/metrics/cadvisor
Expected behavior

v1.15.4-k3s.1 metrics: this metrics label container name is correct
container_memory_working_set_bytes{container="node-exporter",container_name="node-exporter",id="/kubepods/burstable/pode2a26949-59dc-11ea-b2e6-c400ad30e5fd/ce80c5e890c9d8e9c39866b9ec2f2285fab5d1a30380083ba180d6268eb15c9c",image="sha256:e5a616e4b9cf68dfcad7782b78e118be4310022e874d52da85c55923fb615f87",name="k8s_node-exporter_prom-node-exporter-wd6c9_monitoring_e2a26949-59dc-11ea-b2e6-c400ad30e5fd_0",namespace="monitoring",pod="prom-node-exporter-wd6c9",pod_name="prom-node-exporter-wd6c9"} 1.25952e+07<PHONE_NUMBER>568
Actual behavior

v1.17.2+k3s1 metrics: this metrics label container name is incorrect
container_memory_working_set_bytes{container="",id="/kubepods/burstable/podfe7e12f3-2912-480c-a5e0-05b79832de87",image="",name="",namespace="monitoring",pod="prom-node-exporter-zv7fd"} 2.2122496e+07<PHONE_NUMBER>796
And miss this metrics
container_network_transmit_packets_total{container="POD",container_name="POD",id="/kubepods/burstable/pod801d6f16-32a8-11ea-b2e6-c400ad30e5fd/aec862b815534bfd381fc490642f539cff4cb2ac0613997f59234150e3d15ddb",image="k8s.gcr.io/pause:3.1",interface="eth0",name="k8s_POD_flume-57b6bbc975-qllg6_iot_801d6f16-32a8-11ea-b2e6-c400ad30e5fd_0",namespace="iot",pod="flume-57b6bbc975-qllg6",pod_name="flume-57b6bbc975-qllg6"} 1.51109154e+08<PHONE_NUMBER>712
Additional context

I mean in v1.17.2 + k3s1 version, container has no value

@504274990 Have you tried adding --kubelet-arg containerd=/run/k3s/containerd/containerd.sock as an statup option.
I'm able to retrieve container name using v1.17.3+k3s1.

I use  --kubelet-arg containerd=/run/containerd/containerd.sock as an statup option, the  container
still has no value ...
container_memory_working_set_bytes{container="",id="/kubepods/burstable/pod935a0c15-53a3-4606-9aa0-f248c38388e",image="",name="",namespace="monitoring",pod="prom-node-exporter-gqb5t"} 2.0324352e+07<PHONE_NUMBER>323

@504274990 Right, I can reproduce the issue using the --docker flag.

@504274990 Right, I can reproduce the issue using the --docker flag.

Now I  replaced with containerd, and  this metrics is normal

This issue is specific to the docker runtime, and should be fixed in recent releases. Either upgrade or use containerd until you can.


create endpoints for create and view single mission

Create internal endpoints for create and viewing a single goal

Created internal endpoints for create and view mission
Post: https://goals.zuri.chat/api/mission/add
Sample Request
{
"plugin_id": "61330fcfbfba0a42d7f38e59",
"organization_id": "1",
"collection_name": "missions",
"bulk_write": false,
"payload": {"title" : "me"}
}
Response is missionID: 6134ac512d91654fa0487277
Test with the above mission ID
Live link to test: https://goals.zuri.chat/api/mission/6134ac512d91654fa0487277


Flutter Plugin Static Library -> "project_name.swift.h" not found

Hello, i want to create a Flutter Plugin with the EpsonPOS IOS SDK. They using a static Library and a Header File.
When I add a class with the Epos2Delegate, I receive the Error. If I remove this delegate it works perfectly.
I tried to add it to Spec like s.public_header_file, added the .a archive to Compile Sources and so on
but I still get this error from Flutter
Flutter doctor-v
✓] Flutter (Channel stable, v1.17.0, on Mac OS X 10.15.3 19D76, locale de-DE)
    • Flutter version 1.17.0 at /Users/sobhihammoud/flutter
    • Framework revision e6b34c2b5c (9 weeks ago), 2020-05-02 11:39:18 -0700
    • Engine revision 540786dd51
    • Dart version 2.8.1

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/sobhihammoud/Library/Android/sdk
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.3

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 42.0.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build
      1.8.0_202-release-1483-b49-5587405)

[✓] Connected device (1 available)
    • iPad Pro (12.9-inch) (4th generation) •
      43DBC4D5-45A1-44D1-A016-4C79FA0190FE • ios •
      com.apple.CoreSimulator.SimRuntime.iOS-13-5 (simulator)

• No issues found!

Hi @gastrolize
This platform is not meant for assistance on personal code.
Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you


Periodically poll OPC-UA recorded nodes

Use a periodic polling instead of subscription for OPC-UA recorded nodes. This should prevent writing all data to InfluxDB each time any signal changes.

Codecov Report

Merging #113 (74ce7ff) into master (e6b226c) will increase coverage by 0.10%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #113      +/-   ##
==========================================
+ Coverage   95.98%   96.09%   +0.10%
==========================================
  Files           7        7
  Lines         498      512      +14
  Branches       63       64       +1
==========================================
+ Hits          478      492      +14
  Misses         17       17
  Partials        3        3

Flag
Coverage Δ

unittests
96.09% <100.00%> (+0.10%)
:arrow_up:

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

Impacted Files
Coverage Δ

src/opcua_webhmi_bridge/frontend_messaging.py
100.00% <100.00%> (ø)

src/opcua_webhmi_bridge/influxdb.py
100.00% <100.00%> (ø)

src/opcua_webhmi_bridge/messages.py
100.00% <100.00%> (ø)

src/opcua_webhmi_bridge/opcua.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


table.for_each for iteration

A temporary but powerful solution to the lack of iterators, table.for_each lets a person iterate over the keys and values for a specified sol::table with each so long as they give it a function which takes a sol::object key, sol::object value.

I appreciate the addition but I'm not sure if it's actually worth adding.
I'll add it if you add tests.

@Rapptz  All set!

I'm thinking of moving this from a member function to a free function.
sol::for_each(table, func);

It's do-able if you used a std::shared_ptr to put the state of the iterator, because that allows the "shallow-copyable" iterator principle the std:: uses to work. The only semantics that don't work are saving state (e.g. auto it = table.begin(); auto saved = it; ++it; /* incrementing either will result in being 2 ahead on both, not 1, skipping a value */ ). I can't think of a way to do "saved position in iteration" because everything is tied to the current lua stack, and there's no way to successfully dupe the stack mid-iteration without destroying the iteration (and causing a segfault if you attempt to keep going after "fixing" the stack).


optimize: delete base image manager

Describe what this PR does / why we need it
delete base image manager, and build image store later
delete base_image_manager, after this, I will implement image store to manage image
Does this pull request fix one issue?

Describe how you did it
Describe how to verify it
Special notes for reviews

LGTM


Bus error states cannot be read from interface

The bus error states 'Bus Off', 'Warning Level Reached' and 'Bus Error' (eror code capturing) cannot be read from the interface. The device request 'TouCAN get CAN interface ERROR' (0x24) always returns the value 0 (no HAL error) as error code. As a consequence, bus error states are not displayed in the status register (C can_status() or C++ GetStatus()), even if bus errors are present.
The following testcases are failing:

TC04.15: Read an error frame with flag STS set
TC09.8: Get CAN controller status if in bus off state
TC09.9: Get CAN controller status if warning level reached
TC09.10: Get CAN controller status if errors on bus (LEC)

TouCAN get CAN interface ERROR' (0x24)  is for STM32 library can interface state.
typedef enum
{
  HAL_CAN_STATE_RESET             = 0x00U,  /*!< CAN not yet initialized or disabled */
  HAL_CAN_STATE_READY             = 0x01U,  /*!< CAN initialized and ready for use   */
  HAL_CAN_STATE_LISTENING         = 0x02U,  /*!< CAN receive process is ongoing      */
  HAL_CAN_STATE_SLEEP_PENDING     = 0x03U,  /*!< CAN sleep request is pending        */
  HAL_CAN_STATE_SLEEP_ACTIVE      = 0x04U,  /*!< CAN sleep mode is active            */
  HAL_CAN_STATE_ERROR             = 0x05U   /*!< CAN error state                     */

} HAL_CAN_StateTypeDef;

To read a bus error states need to use TouCAN_GET_CAN_ERROR_STATUS  (0x0D)


Case sensitive "hears"

It'd be nice if there were a way to make .hears have a case sensitive option. That way our bot can be a proper grammar nazi. 😈

You can do this with a regex.
"/(?=SomETHinG).*(?=FooBar)" // matches exactly
"/(?=SomETHinG).*(?=FooBar)/i" // matches also something and foobar...

I tried controller.hears("/help/i", ...
it did not work
I have to use controller.hears(['^help', '^Help'],...
What am I doing wrong?

@mvaragnat you can do two things.

If you want the bot the respond to any form of 'help' just use .hears(['help'])
If 1 isn't suitable, use a regex (see my previous answer)

In you case option 1 seems ok.
PS:
If you have multiple hear() functions with 'help' you need to use a regex too.


fix: pdf gen static path resolution

Changelog Entry
Description
when running in different environments, the static_path is different. This path is now 'determined' at runtime
Changed

in the pdf creation endpoint, the static path is determined at runtime by checking if the file exists, and getting the environments site packages directory.

Fixed
#4236
pdf gen fails because it cant find the static/fonts directory when installed using any method outside of docker (including in dev)

Additional Information

probably works fine on windows. (if someone would like to test this for me, that would be awesome)
since the static path resolution can vary, including in dev, it may be better to use a cli arg or environment variable to override the docker behaviour instead of trying to find this directory at runtime.

verified in:

[x] linux pip install
[x] linux pip install -e . (dev)
[x] linux docker
[ ] windows pip install/pip install -e .

Thanks!


Improve deserialization of inline simpleType declarations

I encountered an issue deserialization of elements declared in such way :
<xs:element name="nonICAOAerodromeOfDeparture" minOccurs="0" maxOccurs="1">
  <xs:simpleType>
    <xs:restriction base="xs:boolean">
    </xs:restriction>
  </xs:simpleType>
</xs:element>

I'm no WSDL/XSD expert but I believe this is equivalent to this syntax :
<xs:element xs:element name="nonICAOAerodromeOfDeparture" minOccurs="0" maxOccurs="1" type="xs:boolean>
</xs:element>

While node-soap correctly deserializes the latter to a javascript boolean, the former is deserialized to a string (i.e "true" or "false").
Furthermore, the lack of type attribute on the xs:element declaration makes it impossible to use customDeserializer to properly handle such fields.
This PR fixes both aspects by:

Allowing xs:element to have a xs:simpleType child
Computing xs:element type if missing from child xs:simpleType's name attribute, or restriction's base attribute

This PR was inspired by #949, and aims to achieve the same effect, without breaking existing tests and preserving the ability to use customDeserializer if needed.
See attached test case for the complete behaviour.
NB: This PR includes ES6 syntax and was tested with node v6.5.0 and node v8.9.3 locally.

Coverage increased (+0.01%) to 93.28% when pulling e3a5c656a0c381a17e42af8d3c86ad4811d63c63 on kouak:master into 7da88e1bff321f0775ee032a153c19bc00852f81 on vpulim:master.

LGTM, what about you @jsdevel ?

thanks a lot for your contribution @kouak , we appreciate it a lot 👍 🚀

@herom Any chance to get this released ?
We're currently wrapping a large SOAP API in a JS lib which uses those weird definitions. Having this sooner rather than later would save us the trouble to refactor call sites later on.
If this is not much of a hassle for the maintainers, this would be greatly appreciated !

@kouak I now we've been a lazy with releasing new versions, sorry for that - I will take a look at it tomorrow as I'm a bit tight on schedule 👍

@herom: Thanks a lot for the quick release !

You're welcome - although I wouldn't call my "response time" quick 😸 - sorry for that.


Make release and publish on PyPI

We should create a v0.1.0 release and publish it on PyPI under the project name marketplace-standard-app-api using the marketplace- prefix similar to marketplace-sdk, which is the project name for the https://github.com/materials-marketplace/python-sdk .

Created release https://github.com/materials-marketplace/standard-app-api/releases/tag/v0.1.0 and package is published on PyPI: https://pypi.org/project/marketplace-standard-app-api/ .