docs: adding document for servers' security

Description
As part of Google Season of Docs 2023 at AsyncAPI, we're going to write in-depth explanations of the different sections of an AsyncAPI document to avoid difficulties in implementing EDAs.
For this document issue, we'll be adding document about adding the security to servers or securing servers in a AsyncAPI document.
Related issue
This task is part of the GSoD Docs EPIC: https://github.com/asyncapi/website/issues/1507.
Resolves #1715

for the examples of schemes, please make sure code with yaml has proper indentation, like you have in lines 72-74 so later when docs are rendered, the code snippet looks like a part of a bullet

I think you missed this comment
diagrams are still not consistent, in this PR you start diagram with Server not asyncapi and with upper case, but in https://github.com/asyncapi/website/pull/1957/files you start with asyncapi. Also in this PR you have approach where you show nodes as multiple custom servers (like not asyncapi spec structure but I think asyncapi document structure) but in the other PR you have tag as tag object, keeping asyncapi spec structure.
did you have a discussion I asked for in docs group, to agree on one way of doing these diagrams for AsyncAPI Document structur? they need to be consistent across all docs

/rtm


Use correct headers while reading inline data

fixes #1511

Please make sure that all the checks pass. Please add here any additional information regarding this pull request. It's highly recommended that you link this PR to an issue (please create one if it doesn't exist for this PR)

@roll it is ready for review. Thank you!


Calico network support in Rancher cattle

I have updated network-manager, it can be able to support other CNI drivers. So calico network support can be achieved. https://github.com/rancher/rancher/issues/8535
For catalog item：
There is a catalog item that is being tested. Thanks to @leodotcloud , I am just on your basis to improve the follow-up work.
Repo: https://github.com/niusmallnan/community-catalog
Branch: dev
Just add this repo to your rancher catalog setting. Pls use 1.0.2-x version when you deploy the Calico item.
For network-manager:
Calico and Rancher have their own IPAM. In order to ensure consistency, I prefer to use Rancher IPAM. Calico IPAM can accept the "IP" parameter, so I want to pass this "IP"(get from Rancher IPAM) parameter to Calico IPAM.
Test Image: niusmallnan/network-manager:dev
For rancher-metadata:
In a Calico network, each host acts as a gateway router for the workloads that it hosts. In container deployments, Calico uses <IP_ADDRESS> as the address for the Calico router.
So rancher-metadata can not get the real IP by default, this will cause you can not get all the information when you access "http://<IP_ADDRESS>/latest/self/"
But rancher-metadata can get the real IP from the request header "X-Forwarded-For". To do this, rancher-metadata need to enable the "-xff" parameter.
For rancher-lb:
The rancher-lb need to access "http://<IP_ADDRESS>/latest/self/services". As mentioned above, rancher-lb should add "X-Forwarded-For" header while accessing rancher-metadata.
Test Image: niusmallnan/lb-service-haproxy:dev
Other tips:

enable NAT Outgoing on an IP Pool
update profile resource and make source Calico can allows all traffic

These steps will be added to the auto execute scripts.
Ensure that the Rancher server version is v1.6.0+.
If you want to deploy this in AWS, pls see http://docs.projectcalico.org/master/reference/public-cloud/aws .
I have built a setup with Calico, it can work fine.
After fully test, I will submit the relevant PR.

@niusmallnan

In order to ensure consistency, I prefer to use Rancher IPAM.
I haven't tested this, not sure what the implications are to replace it with Rancher IPAM. Also I wouldn't recommend doing this as Calico uses BGP and a complete subnet is assigned to a host which makes the routing rules much simpler. With Rancher we have to add /32 routes which is not efficient at all.

Is it possible to change the rancher-metadata IP address to something else? Might have been hard coded in multiple places.
Looking forward for the testing results.

@leodotcloud
I know your concern. Here https://github.com/projectcalico/cni-plugin/blob/v1.5.6/ipam/calico-ipam.go#L58
type ipamArgs struct {
	types.CommonArgs
	IP net.IP `json:"ip,omitempty"`
}

Calico IPAM can accept the "IP" as a runtime arg.
I just update cniglue, add this "IP" arg.
https://github.com/niusmallnan/cniglue/blob/dev/cni.go#L78
	if containerIPCIDR, ok := state.Config.Labels["io.rancher.container.ip"]; ok {
		ip, _, err := net.ParseCIDR(containerIPCIDR)
		if err == nil {
			c.runtimeConf.Args = append(c.runtimeConf.Args, [2]string{"IP", ip.String()})
		}
	}

I will build a setup on AWS, then you can check the results easily.

@niusmallnan So, will metadata be broken-by-default for all ocntainers if they dont send a specific IP like you did in the lb-controller?

@cjellick Yes, my test result is that.

@niusmallnan I think this might be a deal breaker. Nearly all our infrastructure services and many services written by the user rely on being able to hit rancher-metadata without any additional configuration or knowledge.

@cjellick  Agree with you. In my test results, only the rancher-lb have this problem, because it needs to read the "/self" key.
Overall, considering all of the infrastructure services, I do not have a good way, just want to focus on the document when the users wants to use Calico.
Of course, by updating the go-rancher-metadata to do the overall compatibility is also a way, but also involves a lot of infrastructure services update the dependency package.

@niusmallnan Is it possible to inject custom routes into calico?  Current that is what our CNI driver does is adds a route for <IP_ADDRESS>/32 to eth0.

@ibuildthecloud I'm afraid not. Calico-IPAM does not support custom routes. Here is the doc .

I gave the above instructions a go and had two problems

Container got a different IP (allocated by callico) than what rancher thought it had
So far I have manually hacked the container/host to change the IP to the one rancher is using to prove that things work when the IPs align.
The metadata issue mentioned above
I appear to have gotten around this by disabling outgoing nat in my calico ip pool (before this traffic in the metadata container was appearing to be from <IP_ADDRESS> due to the natting). As my whole setup is internal, I want my pod IPs to be routable outside the cluster.

环境：
Docker: v1.12.6
Rancher: v1.6.9
遇到问题:
基础容器启动之后healthcheck和scheduler一直重启
查看healthcheck日志报错如下：
日志中的http://<IP_ADDRESS>:8081/v1是我的Rancher部署虚拟机ip
2017/9/27 下午5:12:11time="2017-09-27T09:12:11Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: i/o timeout"
2017/9/27 下午5:12:29time="2017-09-27T09:12:29Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: getsockopt: no route to host"
2017/9/27 下午5:12:34time="2017-09-27T09:12:34Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: getsockopt: no route to host"
2017/9/27 下午5:12:38time="2017-09-27T09:12:38Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: getsockopt: no route to host"
2017/9/27 下午5:12:44time="2017-09-27T09:12:44Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: getsockopt: no route to host"
2017/9/27 下午5:12:49time="2017-09-27T09:12:49Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: getsockopt: no route to host"
2017/9/27 下午5:12:54time="2017-09-27T09:12:54Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: getsockopt: no route to host"
2017/9/27 下午5:12:59time="2017-09-27T09:12:59Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: getsockopt: no route to host"
2017/9/27 下午5:13:05time="2017-09-27T09:13:05Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: getsockopt: no route to host"
2017/9/27 下午5:13:10time="2017-09-27T09:13:10Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: getsockopt: no route to host"
2017/9/27 下午5:13:15time="2017-09-27T09:13:15Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: getsockopt: no route to host"
2017/9/27 下午5:13:19time="2017-09-27T09:13:19Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: getsockopt: no route to host"
2017/9/27 下午5:13:23time="2017-09-27T09:13:23Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: getsockopt: no route to host"
2017/9/27 下午5:13:27time="2017-09-27T09:13:27Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: getsockopt: no route to host"
2017/9/27 下午5:13:32time="2017-09-27T09:13:32Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: getsockopt: no route to host"
2017/9/27 下午5:13:36time="2017-09-27T09:13:36Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: getsockopt: no route to host"
2017/9/27 下午5:13:40time="2017-09-27T09:13:40Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: getsockopt: no route to host"
2017/9/27 下午5:13:44time="2017-09-27T09:13:44Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: getsockopt: no route to host"
2017/9/27 下午5:13:49time="2017-09-27T09:13:49Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: getsockopt: no route to host"
2017/9/27 下午5:14:46time="2017-09-27T09:14:46Z" level=fatal msg="Get http://<IP_ADDRESS>:8081/v1: dial tcp <IP_ADDRESS>:8081: i/o timeout"
求教这是什么原因导致？

@niusmallnan can you help me ?? thanks

Thanks for your report!
With the release of Rancher 2.0, development on v1.6 is only limited to critical bug fixes and security patches.
If you think we should keep this issue open, please let me know.


Implement upload delay setting

Visual Studio Code Version : 1.15
Code Settings Sync Version : 2.8.3
Operating System : Windows 10 Creators update
Occurs On: Upload
Proxy Enabled: No
GIst Id: https://gist.github.com/Jasius/1d63509b67a4fdf1c3344aa8d90826d2
Hey,
One thing that annoys me the most about this extension is that there's a very short delay upon which upload gets triggered, so lets say whenever you're changing settings, making snippets it uploads all those unfinished changes which in 5 seconds which is unreasonable time frame in my opinion.
My proposal is so that there would be an option which would allow you to set up delay in settings or just make default upload delay 1 minute.
Cheers, Jaska.

I think it's better to start the Upload process on Settings and extension changes.
Currently, the auto upload doesn't work well. A goal is to make it behave well instead of having scheduled.

I see, thank you @shanalikhan

@shanalikhan, just curious, but have you been able to implement the improvements you mentioned above?
I was about to open an issue and make the same request when I found this one. Thing is, personally I'd actually like to set something like a 30 second or even 1 minute delay before it auto uploads..
Is there any chance of having a configurable delay for this until such time as you change the way it works?

@ZaLiTHkA may i know why you want to add a delay.
It would be more easy to understand if you could provide a real-time scenario to show the need for this feature.

sorry for the delay, I've been away from my computer this whole weekend..
I would like a delay in the upload for essentially the same reasons that @Jasius gave: when making changes to things like system settings, key bindings, installed extensions, custom snippets, etc., this extension is constantly uploading the changes.

from a usability point of view inside VSCode, I suppose this isn't really an issue, but when looking at the change history in the relevant GitHub Gist, it gets really difficult to see all the changes that were made over the period of mere minutes.

I felt the same, I have auto sync disabled nowadays because it was a little frustrating without delay.

@arnohovhannisyan Lets add this in v3.4.0 also.
I think we can add autoUploadDelay in Global Settings make it default as 20 seconds.
Users can change the delay in terms of seconds for uploading.

That's awesome, thank you! @shanalikhan

v3.4.0 is released containing this fix.
Let me know if you run into issue

I have v3.4.2 installed and don't see this setting available anywhere.

@PHLAK
See Settings Sync Global Settings
https://github.com/shanalikhan/code-settings-sync#global-settings
Config is autoUploadDelay


Switch to minideb as base image

In versions of Alpine 3.4 and later, a name resolution issue was
introduced and causes problems with certain Kubernetes setups. The
issue appears to be incosistent and difficult to reproduce (but has been
detected on CentOS and NixOS setups). Moving away from Alpine seems the
best option for now.
Fixes #2051, addresses #1980, #1148

@hiddeco Can you post the before and after image differences here?

Looks like bitnami/minideb:stretch is rebuilt daily, and there are no versioned releases :-/ Technically we can trace any given image back to its constituent layers, but this still makes me a bit nervous. (Mind you the same was probably true of the alpine image)

weaveworks/flux                               2015-base-minideb-7179d16c                    1ff0f07d6866        3 minutes ago       282MB
weaveworks/flux                               master-416e8420                               d3f2bc77ebc6       28 seconds ago      169MB

weaveworks/helm-operator                      2015-base-minideb-7179d16c                    ca706b8ae43d        53 seconds ago       291MB
weaveworks/helm-operator                      master-416e8420                               821749f0eeae        46 seconds ago      169MB

@hiddeco an alternative to bitnami would be debian:stable-slim this is used by GitHub. The official image has image scanning enabled see https://hub.docker.com/_/debian?tab=tags

Another thing to consider, using bitnami/minideb image we lose ARM support. I would go with debian:stable-slim since it's multi-arch (x86, arm, arm64).

I had forgotten about ARM support, plus debian/slim has date-tags which help tracking down what's being run.
I think we should give it a try, thanks @stefanprodan


Add VCPlayerbot Bot and voicechatsupport

also  README.md:74:120
✖  74:120  Text "youtube" should be written as "YouTube"  remark-lint:awesome-spell-check
1 error

Thanks


chore(main): release 0.1.8

:robot: I have created a release beep boop
0.1.8 (2023-06-22)
Bug Fixes

rich as non-optional (77b0c3b)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/socialgene/sgpy/releases/tag/v0.1.8 :sunflower:


I can't start the server

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli   'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'start' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart<EMAIL_ADDRESS>6 info start<EMAIL_ADDRESS>7 verbose unsafe-perm in lifecycle true
8 info<EMAIL_ADDRESS>Failed to exec start script
9 verbose stack Error<EMAIL_ADDRESS>start: node dist/server.js
9 verbose stack Exit status 1
9 verbose stack     at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:214:16)
9 verbose stack     at emitTwo (events.js:87:13)
9 verbose stack     at EventEmitter.emit (events.js:172:7)
9 verbose stack     at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
9 verbose stack     at emitTwo (events.js:87:13)
9 verbose stack     at ChildProcess.emit (events.js:172:7)
9 verbose stack     at maybeClose (internal/child_process.js:817:16)
9 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
10 verbose pkgid<EMAIL_ADDRESS>11 verbose cwd C:\Windows\System32\agar-mini-map-v0.46-win-x64\server
12 error Windows_NT 6.1.7600
13 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "start"
14 error node v4.0.0
15 error npm  v2.14.2
16 error code ELIFECYCLE
17 error<EMAIL_ADDRESS>start: node dist/server.js
17 error Exit status 1
18 error Failed at the<EMAIL_ADDRESS>start script 'node dist/server.js'.
18 error This is most likely a problem with the mini-map-server package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error     node dist/server.js
18 error You can get their info via:
18 error     npm owner ls mini-map-server
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]

It's happening to me too :(

@eskylo Make sure your that operating system is 64-bit and contains 64-bit NodeJS

@dimotsai

@AxDSan @eskylo
OK. I see the problem. NodeJS version varies recently. I wrote the server in NodeJS v0.12.7. I will release the new version.

@dimotsai AwesomeSauce :D Thanks :+1:  Really appreciated

The dependency msgpack is out of date right now. I am looking for alternatives. For temporary usage, you can download the old NodeJS.

https://github.com/pgriess/node-msgpack/issues/63

@dimotsai Perfect, thanks for the updates, Will get the older version of NodeJS then :D :+1:

Update on Alternative Solution (Use Old NodeJS):
it gives me this now, I don't know if I'm now doing something wrong on my end?

It worked! Using the old node Js (https://nodejs.org/download/release/latest-v0.12.x/x64/)
Thank you very much, dimotsai. For the patience and awesome job creating this.

Fixed too: Working perfectly now :dancer:


nuttx/mtd: Add new functions part_isbad and part_markbad in mtd partition.

Summary
need forward to the real mtd device driver
Impact
Testing
internal test

@acassis please merge this trivial fix.

ping @acassis again


(BKR-1052) Document user config option for ec2 hypervisor

Without the user option beaker fails to login.
  Please login as the user "ec2-user" rather than the user "root".

Setting the user triggers sanitizing of sshd_config and
authorized_keys.

Can one of the admins verify this patch?

@vinzent thanks for submitting this fix!


[FIX] Remove semver validation from node version read from .nvmrc

Why
https://github.com/expo/eas-cli/issues/1975#issuecomment-1702986526
Node version can be specified as an alias (such as iojs, lts/hydrogen etc), so validating it as semver may cause errors for some users.
How
Remove validation
Test Plan
Specify node version in .nvmrc as something like lts/gallium and run build.

/changelog-entry bug-fix Support node aliases in .nvmrc.

/changelog-entry bug-fix Support node aliases in .nvmrc.

@szdziedzic yep


ERROR Broadcasting transaction failed with code 7 (codespace: sdk). Log:      at SigningStargateClient.broadcastTx

use this code
import { calculateFee } from '@cosmjs/stargate';
...
const fee = calculateFee(100000, "0.1usei");
const amount = { amount: SEND_AMOUNT, denom: TOKEN_DENOM };
const sendResponse = await signingClient.sendTokens(SENDER_ADDRESS, DESTINATION_ADDRESS, [amount], fee);

Can you share the full error message? Error sdk/7 is probably this one:
	// ErrInvalidAddress to doc
	ErrInvalidAddress = errorsmod.Register(RootCodespace, 7, "invalid address")

Not sure what it means in your case though


Remove ConfigureAppConfiguration usages

We should avoid calling builder.Host where we can. See https://github.com/dotnet/aspnetcore/issues/40681#issuecomment-1470017165

Internal previews

📄 File
🔗 Preview link

aspnetcore/fundamentals/configuration/index.md
aspnetcore/fundamentals/configuration/index

Fixes #28699


Prevent some configuration changes after running Hutch.connect

Today I spent some time debugging an issue that was caused by me doing this:
Hutch.connect
# ...
Hutch::Config.set(:force_publisher_confirms, true)
Hutch.publish(blah)

This doesn't work because .confirm_select has to be called on the channel before calling .wait_for_confirms.
.confirm_select is only called in Hutch.connect if force_publisher_confirms is set. So setting this after running Hutch.connect will cause Hutch.publish to fail with a nil error:
NoMethodError: undefined method `empty?' for nil:NilClass
    from /Users/jesjos/.rvm/gems/ruby-2.3.0/gems/bunny-2.2.2/lib/bunny/channel.rb:1812:in `block in wait_on_confirms_continuations'
    from /Users/jesjos/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
    from /Users/jesjos/.rvm/gems/ruby-2.3.0/gems/bunny-2.2.2/lib/bunny/channel.rb:1811:in `wait_on_confirms_continuations'
    from /Users/jesjos/.rvm/gems/ruby-2.3.0/gems/bunny-2.2.2/lib/bunny/channel.rb:1434:in `wait_for_confirms'
    from /Users/jesjos/.rvm/gems/ruby-2.3.0/gems/hutch-0.20.0/lib/hutch/broker.rb:227:in `publish'
    from /Users/jesjos/.rvm/gems/ruby-2.3.0/gems/hutch-0.20.0/lib/hutch.rb:60:in `publish'

I'm thinking it would be nice if Hutch somehow failed early or at least warned about this. Maybe it would make sense to prevent some, or all, kinds of configuration changes once Hutch is connected.
I'd gladly provide a PR if and once an appropriate strategy is identified.

Is this newly-released thing related? https://github.com/ruby-amqp/bunny/pull/428

I'm facing the same error even when I set the force_publisher_confirms before connecting...
Hutch::Config.set(:force_publisher_confirms, true)
Hutch.connect
Hutch.publish(routing_key, payload)

Any ideas?
Thanks =)

Two ideas:

Configure publisher confirms after connecting
Contribute a PR since this is open source software

After reviewing #337 and considering what alternatives we have, I think this should be closed as "works as expected". Documentation improvements would be welcome, although I'm not 100% sure where to put them except for the Hutch.connect method reference docs.
The way Hutch sets up its topology assumes that all configuration is known before connection time. This makes sense: if you want to have full control, Hutch is not the right too for you.
We could introduce a "reconfigure" method but it would not be able to reconfigure most things without reconnecting, and that can be potentially disruptive. We could make Hutch::Config.set smarter but that would tie it to connections which makes no sense. #337 introduces a solution with a significant amount of overhead on the hot code path and I don't think every user should pay that price for one use case.
The current behavior makes most sense to me.


PRAGMA synchronous=0; causes database disk image is malformed for IDBBatchAtomic VFS

When responding to https://github.com/rhashimoto/wa-sqlite/discussions/23#discussioncomment-6783529 it made me wonder if setting PRAGMA schema.synchronous = 0 would have any impact on OPFS perf. IIUC, this would be similar behavior to relaxed durability that we have with IDB but with OPFS.
Running the wa-sqlite benchmarks with:
-- Pre-run setup
PRAGMA journal_mode=delete;
PRAGMA synchronous=0;

causes Test 6: Creating an index to always fail with
Error: database disk image is malformed
    at check (https://rhashimoto.github.io/wa-sqlite/src/sqlite-api.js:857:11)
    at Object.step (https://rhashimoto.github.io/wa-sqlite/src/sqlite-api.js:690:14)
    at async execute (https://rhashimoto.github.io/wa-sqlite/src/examples/tag.js:50:16)

For some reason, SQLite disables batch atomic writes with PRAGMA synchronous=OFF. In spite of this, SQLite also isn't creating a journal file. This almost guarantees that any mid-transaction crash will corrupt the database.
That doesn't explain this error, but it is curious and points away from batch atomic writes being the cause.
FYI setting the synchronous mode to 0 (off) is almost always a bad idea and is definitely not an alternative way to get relaxed durability. Relaxed durability won't corrupt your database - it just means that some of the most recent transactions may not be preserved. Turning synchronous off is an invitation to database corruption and should be avoided by all but the most expert or foolhardy (or both).

Hmm. It's looking like this may be a bug in SQLite itself. I'm thinking that the lack of a journal file noted above is also a bug, perhaps a related bug.
I added some temporary code to IDBBatchAtomicVFS to shadow all the VFS writes into a memory buffer and then compare the VFS read results with the contents in the buffer. This successfully verified that whatever SQLite reads from the VFS is exactly what it wrote earlier, all the way to the reported error.
Next I just removed SQLITE_IOCAP_BATCH_ATOMIC from the capabilities that IDBBatchAtomicVFS claims, and then the benchmarks ran with no error (including with my shadowing). This provides support (though not proof) that the IndexedDB storage code is working fine. Interestingly, under these conditions SQLite now uses a journal file as expected.
So I suspect there are some broken interactions in SQLite between batch atomic and synchronous=off. Unfortunately, I doubt the SQLite folks are going to believe that without a test case written entirely in vanilla C or C++, and I don't think that's a great investment of my time for a mode that almost no one should really be using.

https://sqlite.org/forum/forumpost/b36ec767b7

When I figured out the cause of bug #118, I realized that this bug was really the same thing. It was confusing at first because the other bug does batch atomic writes and that doesn't happen here. But the underlying problem with incorrect file size metadata is the link. The fix works for both.


Slick JS Reverse Swipe Direction & Animation

I'm having an issue with Slick JS. I want to change the swipe direction to reverse. This is part of a bigger project which will allow the user to move the panel around, rotate & scale it. That's all working fine but unfortunately, the slider swipes the same way regardless.
Here's a JSFiddle demonstrating the issue (apologies for the messy code!)
https://jsfiddle.net/s3gLrqkm/42/
When you click the flip button, the swipe should work in the reverse direction.
Any help would be much appreciated!

Same problem, there is no way to revert direction of swipe. Are there any undocumented solutions for this problem?

+1


Installer unusable on 4k/HiDPI screens in Ubuntu Linux

As one can't resize the window it is kind of a dead end.
I am running the latest Ubuntu 16.04 with OpenJDK 8.
Thx

Same Issue and Result with Installer Version 1.16.20 on Windows 10 with a Surface Pro 4.
It's impossible to install lombok.

any work around for this?


web service worker needs to load MiqAeDomain, etc.

https://github.com/ManageIQ/manageiq-api/blob/01d6d3c05e497b658558a64d8855daf7297a9e6b/config/api.yml#L218-L232
The whitelist of bundler groups are the only gems we can require/load so
we need to add anything we might possibly load in this list.

That stinks.  IMO, the models should not live there...only the engine specific parts of those models :/

That stinks. IMO, the models should not live there...only the engine specific parts of those models :/

@Fryguy the nice thing is we can run BUNDLE_GROUPS=rest_api,web_server,automate bin/rails server and try to hit the server with rest calls and start dialing back the dependencies, fixing any we can easily workaround, and start dropping them.

cc @gmcculloug @mkanoor


Add Postgres configuration in docker configs

This PR adds the required docker configuration for the auto-setup image on Postgres

 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.

Coverage decreased (-0.1%) to 67.803% when pulling 63d0cbd29b53ce51870ed6c65035bb3dc588d0f1 on enmand:dan/improvements/docker-autosetup-pg into cba849dfb19f13d9d0dad03d5f87d8b6e9c78ce4 on uber:master.

Thanks for doing this ! @enmand


Remove UI dependency from the Item Holder

Description
Remove the dependency that the item holder has with the UI.
Implementation ideas
The idea is to separate this in layers, not communicate directly with the UI or the holder, create a layer between.

We didn't remove the Item Holder UI dependency, but we make a refactoring, so will no longer be a trouble anymore...
We develop a parent to those classes called Holder. This are being use by the save system and it is very useful for the environment features.
This new refactoring is very important to the save system and future features related to the core from the inventory


addCallout after onLongPress

Hi,
I'm trying to add a callout after a long press:
@Override
    public void onLongPress(MotionEvent event)
    {
        float scale = getScale();
        double relX = getCoordinateTranslater().translateAndScaleAbsoluteToRelativeX(getScrollX() + event.getX(), scale);
        double relY = getCoordinateTranslater().translateAndScaleAbsoluteToRelativeY(getScrollY() + event.getY(), scale);
        callback.LongPress(relX, relY);
    }

then on the activity:
@Override
    public void LongPress(double x, double y)
    {
        HotSpotCallout hotSpotCallout = new HotSpotCallout(MapActivity.this); // just a view
        gis_map.addCallout(hotSpotCallout, x, y, 0f, 0f);
    }

After I long-press, the view is visibile, but then disappears right away.
I use the same code on MarkerTapListener and the view stays visible after the tap, so my guess is that some other event is triggered that is causing the view to vanish.
My guess was that it's onTouchEvent, so I tried setting a flag to true on onLongPress and then catch the ACTION_UP MotionEvent and return true so that the event will be consumed, but that did not change anything.
Any advice to help me with the actual event chain?

so a callout is just like a marker but disappears on touch.  you probably just want to use addMarker instead of addCallout.
if you look at the source for CalloutManager you'll see there's very little going on there.

ok so I needed the callout functionality since I wanted the view to be removed after further interaction with the TileView.
So this is what I did:
@Override
    public void onLongPress(MotionEvent event)
    {
        longPressed = true;
        float scale = getScale();
        double relX = getCoordinateTranslater().translateAndScaleAbsoluteToRelativeX(getScrollX() + event.getX(), scale);
        double relY = getCoordinateTranslater().translateAndScaleAbsoluteToRelativeY(getScrollY() + event.getY(), scale);
        callback.LongPress(relX, relY);
    }

@Override
    public boolean onTouchEvent(MotionEvent event)
    {
        switch (event.getAction())
        {
            case MotionEvent.ACTION_MOVE:
                if (longPressed)
                    return true;
                break;
            case MotionEvent.ACTION_UP:
                if (longPressed)
                {
                    longPressed = false;
                    return true;
                }
                break;
        }
        return super.onTouchEvent(event);
    }

Maybe you should consider adding it so that the callouts will have LongPress functionality, but not that important.
Thanks again!


Spin up a private testnet for cEUR (without oracles)

The tesnet should be with a small amount of validators and the latest stable celo-blockchain release

See parent epic: https://app.zenhub.com/workspaces/platform-economics---backlog-board-600a9f7399b43a001348ae1b/issues/celo-org/celo-monorepo/6162


Search in English and translated in minisearch

Currently, if a system language other than English is set, minisearch in the compendium only searches for the translated name.
Preview:

This would be due to your babele module renaming things, right?

This was already fixed by #14637


rational: make sure Hash agrees with Eq

We can't use a derived Hash when we have a manual Eq, because we
need to uphold the invariant a == b → h(a) == h(b).  Since Eq
doesn't require them to be in reduced form, Hash also needs to be
normalized.
Fixes #310.

Technically this is a breaking change, because the former derived Hash only required T: Hash, and here I've used T: Clone + Integer + Hash.  However, every other operation on Ratio<T> requires Clone + Integer, and we can't fix the relationship to Eq with just T: Hash.
(I don't actually need Clone here, but I think it's better to be consistent.)

There's not even a way to create a Ratio<T> without T: Clone + Integer except through deserialization.  I think the only practical way this will break is for a generic function that requires only T: Hash but expects to use Ratio<T> as Hash from that.  I think this is outweighed by the need to fix Hash related to Eq.
Thanks to @mbrubeck for reviewing this with me on IRC.
bors r+


Render shadows

@matt.leotta @aashish-chaudhary This is the same MR as on gitlab. These are the remaining issues with code:

The shadow is not fully marked.
Probably I should generate the shadow masks as a separate file instead of marked as part of a orthorectified image.

See the attached image. I use yellow to mark the shadow. The right image is a DSM, changed into a surface, rendered from the sun position, orthorectified and having the shadows extracted using the orthorectification code. The left image is a PAN image orthorectified.


use up to date WKT-CRS syntax

See http://cf-trac.llnl.gov/trac/ticket/162

[x] Added link from trac ticket to this PR?

Applied via https://github.com/cf-convention/cf-conventions/pull/XXX

[ ] Updated "Revision History"? (Use the date you applied the changes.)

In a moment I'll issue another pull request to improve indentation in Example 5.12.


All labs: quick format and typo fixes

Checklist

[X] Tested it
[X] Read the PR collaboration guide 👓 Collaboration Guide 📝

Changes proposed in this pull request:

Updating numbering to easily resolve issues
Removing extra spaces
Updating links removing language and query string

I'm sorry for skipping your reviews, but we need to fix it asap. Thanks.


Mention tap-spec requirement

Hi,
Could-it be possible to mention somewhere (in the README.md or the message displayed after the generation) that npm install -g tap-spec is required to test the definitions ?
I got an error message and fixed-it immediately so it's not a big deal, but it could improve the user-experience.
(Maybe also add a note for ts-node ?)

Neither should be installed globally, they should be dev dependencies and the last I saw they were: https://github.com/typings/generator-typings/blob/master/generators/current/templates/template/package.json. Make sure you run npm install locally in the generated folder.

Ok, sorry for my mistake.
I'm not sure how it happened but I effectively forgot to npm install in this directory.

Ok, I understood what happened.
The generator only installs the module being typed but I assumed that it does a full npm install when I saw the installation and the node_modules directory already there.

I see. It used to do npm install but I removed it because it takes quite a while. I want to give the control back to use asap so they are not blocked by it.


Fixed parsing when bom contains no dependent components

@lumjjb @mlieberman85 Should this merge into heuristic-dev? Also, FYI @kevinconner there is a heuristic-dev where we are trying to capture all the changes we need to make for SBOM parsing.

Thanks @knrc for catching this!
I think this would work for the branch but also should be good with merging into main since it is not changing any behavior that is used in SETUP.md, so its not intrusive on the current work we're doing in that sense.

@pxp928 Good to know about heuristic-dev, I'll take a look later today and see what is going on in that branch.


MRG, DOC: Make clear which functions have been renamed

@SophieHerbst got lost because after an MNE update,mne.channels.find_ch_connectivity and mne.channels.read_ch_connectivity were gone. Turns out these functions were renamerd, and this change was mentioned in the changelog indeed, but apparently not explicitly enough. Searching the docs for the function name wouldn't bring up helpful results either. This PR explicitly lists all *connectivity functions that have been renamed to *adjacency in the changelog, so it should be easier to discover these changes.

For PRs that change doc only it's better to do [skip travis] [skip github] rather than [skip ci] because that way we get to see the doc build. I'll build locally and look to make sure there are no parsing errors

For PRs that change doc only it's better to do [skip travis] [skip github] rather than [skip ci] because that way we get to see the doc build. I'll build locally and look to make sure there are no parsing errors

Damn, sorry, this is exactly what I thought [skip ci] would do. Noting this down.

Thanks @hoechenberger


import openai  Error source code string cannot contain null bytes

Describe the bug
ValueError: source code string cannot contain null bytes
To Reproduce

import openai
Traceback (most recent call last):
File "", line 1, in
File "C:\Program Files\Python310\lib\site-packages\openai_init_.py", line 15, in
import aiohttp
File "C:\Users\dadash\AppData\Roaming\Python\Python310\site-packages\aiohttp_init_.py", line 6, in
from .client import (
File "C:\Users\dadash\AppData\Roaming\Python\Python310\site-packages\aiohttp\client.py", line 67, in
from .connector import (
File "C:\Users\dadash\AppData\Roaming\Python\Python310\site-packages\aiohttp\connector.py", line 58, in
from .resolver import DefaultResolver
File "C:\Users\dadash\AppData\Roaming\Python\Python310\site-packages\aiohttp\resolver.py", line 11, in
import aiodns
File "C:\Users\dadash\AppData\Roaming\Python\Python310\site-packages\aiodns_init_.py", line 4, in
import pycares
File "C:\Users\dadash\AppData\Roaming\Python\Python310\site-packages\pycares_init_.py", line 8, in
from . import errno
ValueError: source code string cannot contain null bytes

Code snippets
No response
OS
windows
Python version
3.10.10
Library version
0.27.8

The error you are getting is a ValueError. This means that the source code string for the errno module contains null bytes. Null bytes are invalid characters in Python, so this will cause an error when the module is imported.
There are a few possible reasons why this could be happening. One possibility is that you have a corrupt Python installation. Another possibility is that you have a file in your Python path that contains null bytes.
To fix this, you can try the following:
Check your Python installation for corruption. You can do this by running the python -V command. If the output of this command contains the word "corrupt", then you need to reinstall Python.
Check your Python path for files that contain null bytes. You can do this by running the echo $PYTHONPATH command. This will output a list of directories that are included in your Python path. You can then use a text editor to check each of these directories for files that contain null bytes.
If you can't find the source of the null bytes, then you can try to work around the problem by using the encoding parameter to the import statement. For example, you could try the following:
Python
import openai, `encoding="utf-8"
Use code with caution.
This will tell Python to interpret the source code string for the openai module as UTF-8, which will hopefully prevent the error from occurring.
If you are still having problems, then you can try asking for help on the OpenAI forum: https://forum.openai.com/.

Thanks Harsha for the detailed reply!
As mentioned, this is likely an issue with your Python setup but if it isn't, this should also be fixed in our upcoming v1 beta as we've moved from aiohttp to httpx which does not have a dependency on pycares.


Bug: [Rust] all distances are zero

Describe the bug
The computed L2sq distances seem to be always 0.
Steps to reproduce
use usearch::ffi::{IndexOptions, MetricKind};
use usearch::new_index;

fn main() {
    let options = IndexOptions {
        dimensions: 3,
        metric: MetricKind::L2sq,
        ..Default::default()
    };

    let index = new_index(&options).unwrap();
    index.reserve(10).unwrap();
    index.add(0, &[0.4, 0.1, 0.1]).unwrap();
    index.add(1, &[0.5, 0.1, 0.1]).unwrap();
    index.add(2, &[0.6, 0.1, 0.1]).unwrap();
    println!("{:?}", index.search(&[0.05, 0.1, 0.1], 2).unwrap());
}

prints
Matches { keys: [2, 1], distances: [0.0, 0.0] }

Expected behavior
Expected (and this is what usearch 2.9.2, which seems to be the last working version, outputs):
Matches { keys: [0, 1], distances: [0.122499995, 0.20249999] }

USearch version
2.12.0
Operating System
CentOS Stream 9
Hardware architecture
x86
Which interface are you using?
Other bindings
Contact Details
No response
Are you open to being tagged as a contributor?

[X] I am open to being mentioned in the project .git history as a contributor

Is there an existing issue for this?

[X] I have searched the existing issues

Code of Conduct

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

Interesting! Is it true for both f32 and f16 representations? Can you please share the exact model of the CPU printed from lscpu and the index.hardware_acceleration(). Thanks, @embe-pw 🤗

index.hardware_acceleration() returns "serial".
CPU model is AMD EPYC 7413 24-Core Processor.
quantization: ScalarKind::F32 and quantization: ScalarKind::F64 seem to work correctly.
I can also reproduce this on an M1 Mac (with index.hardware_acceleration() == "neon"


GSoC 2021 i18n task

Fixes i18n #
Describe the changes you have made in this PR -
Translate the page "teacher" to Chinese.
Add new api for locale.

Coverage remained the same at 84.711% when pulling 02eb37b9fdf2e20720b27d0ee46bb011ea9b6b8f on Oyyko:GSoc-2021-i18n-task into 2d1baacc0cc6842ba257a4944792727729eb240f on CircuitVerse:master.

Hi, as a common practice for better readability, you should put a space between Chinese characters and English characters. For example:

Good: 注册了 CircuitVerse
Bad: 注册了CircuitVerse

Closing this as i18n is being worked on as part of gsoc


Documentation for use in Nuxt

Have attempted to use wildcard in Nuxt but am stumbling into an assert
validateArgs@109:14

The library seems to think that it's being run within the browser prehaps?
Heres how wildcard is initalised in the nuxt server (using express)
 app.all('/wildcard/*' , async (req, res, next) => {
    const {body, statusCode} = await getApiResponse(req);
    res.status(statusCode);
    res.send(body);
    next();
  });

Heres the endpoint definition:
const {endpoints} = require('wildcard-api');

endpoints.meaningOfLife = async function () {
  return Date.now();
};

Heres the script section of the vue component:
<script>
import {endpoints} from 'wildcard-api/client';

export default {
  async asyncData ({req}) {
    let {meaningOfLife} = endpoints;

    if( process.server ) meaningOfLife = meaningOfLife.bind(req.headers);

    const theMeaning = await meaningOfLife();

    return   {
      theMeaning,
    }
  }
}
</script>

Any pointers would be appreciated. Would be useful documentation for others also.

@roja I removed all next() calls from the documentation. You're right, it's a saner default to not call next().
Do you still use Wildcard? If not, what made you stop using Wildcard?


[TestEnv] Add fast start mode

When we run a set of tests, the really first connection is usually required just to reboot the board to start with a new kernel. In this case the really first connection can avoid to initialize all the modules to be as fast as possible.
It can be useful to add a "fast mode" connection flag to the TestEnv module which grants only to have a valid SSH/ADB connection to the target without any other platform specific initializations.

Closing as we don't currently reboot the board through LISA


BP Neuron_AnimBlueprint not work.

Variable NeuronController in this BP is none. I have checked LevelBP, On LevelBP init, Variable has been set. It's very strange.

@baesky
The NeuronController variable is initialized at runtime after BeginPlay in the Level BP, before that the value is None. When do you check the variable?

I am having a similar issue on UE4.14. NeuronController variable has value None in the AnimBlueprint at the cast to BP_NetworkNeuronController. It seems to be set correctly in the level blueprint. The result is that I cannot get Axis neuron connected live to UE4. The same process works fine for the BP_PlayerNeuronController.


Base as region somewhat like http://gbol.life/0.1/Base/

Should we introduce a special region or location for base and aminoacid, like gbol did?
GBOL took over a lot of concepts from FALDO and introduced this one. I can see some use for it but am not conviced. Thought to have an issue so that we can discuss if we should have it.

Have you got a link to the GBOL definition?


cli: "popper run" in "Getting Started" should test for Docker running

Running popper run after popper scaffold produces an error if Docker isn't running. Yet "Getting Started" documentation does not mention that requirement. The error is a long stack trace that many people won't try to understand. Instead they might just give up.

Add Docker requirement to documentation
Describe what popper run is going to do (and what the long-running [docker action] docker pull node:6 is trying to do)
Check whether Docker is running -- or at least print out a warning after the long error: "Make sure Docker is running!".

The error on MacOS 10.14.6 with HomeBrew-installed Python 3.7.6, pip3 install virtualenv, pip install popper, and popper run --debug:
(popper) bash-5.0$ popper run --debug
Found and running workflow at main.workflow
DEBUG: workflow:
!!python/object:popper.parser.Workflow
action:
  docker action:
    args:
    - node
    - --version
    name: docker action
    needs:
    - github official action
    next: !!set
      example action: null
    uses: docker://node:6
  example action:
    args:
    - github.com
    name: example action
    needs:
    - docker action
    uses: ./actions/example
  github official action:
    args:
    - ls
    name: github official action
    next: !!set
      docker action: null
    uses: popperized/bin/sh@master
name: example
'on': push
parsed_workflow:
  action:
    docker action:
      args:
      - node
      - --version
      name: docker action
      needs:
      - github official action
      next: !!set
        example action: null
      uses: docker://node:6
    example action:
      args:
      - github.com
      name: example action
      needs:
      - docker action
      uses: ./actions/example
    github official action:
      args:
      - ls
      name: github official action
      next: !!set
        docker action: null
      uses: popperized/bin/sh@master
  workflow:
    example:
      'on': push
      resolves: example action
props: {}
resolves:
- example action
root: !!set
  github official action: null
workflow_content:
- '

  '
- 'workflow "example" {

  '
- '  on = "push"

  '
- '  resolves = "example action"

  '
- '}

  '
- '

  '
- 'action "github official action" {

  '
- '  uses = "popperized/bin/sh@master"

  '
- '  args = ["ls"]

  '
- '}

  '
- '

  '
- 'action "docker action" {

  '
- '  needs = "github official action"

  '
- '  uses = "docker://node:6"

  '
- '  args = ["node", "--version"]

  '
- '}

  '
- '

  '
- 'action "example action" {

  '
- '  needs = "docker action"

  '
- '  uses = "./actions/example"

  '
- '  args = ["github.com"]

  '
- '}

  '
workflow_path: main.workflow

DEBUG: parse("popperized/bin/sh@master"):
DEBUG:   service_url: https://github.com
DEBUG:   service: github.com
DEBUG:   user: popperized
DEBUG:   repo: bin
DEBUG:   action_dir: sh
DEBUG:   version: master
[popper] Cloning action repositories
[popper] - https://github.com/popperized/bin@master
DEBUG: parse("popperized/bin/sh@master"):
DEBUG:   service_url: https://github.com
DEBUG:   service: github.com
DEBUG:   user: popperized
DEBUG:   repo: bin
DEBUG:   action_dir: sh
DEBUG:   version: master
Traceback (most recent call last):
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen
    chunked=chunked,
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/urllib3/connectionpool.py", line 387, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1252, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1298, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1247, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/docker/transport/unixconn.py", line 43, in connect
    sock.connect(self.unix_socket)
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/urllib3/connectionpool.py", line 720, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/urllib3/util/retry.py", line 400, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/urllib3/packages/six.py", line 734, in reraise
    raise value.with_traceback(tb)
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen
    chunked=chunked,
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/urllib3/connectionpool.py", line 387, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1252, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1298, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1247, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/docker/transport/unixconn.py", line 43, in connect
    sock.connect(self.unix_socket)
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionRefusedError(61, 'Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/carlosmalt/virtualenvs/popper/bin/popper", line 8, in <module>
    sys.exit(cli())
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/popper/commands/cmd_run.py", line 156, in cli
    prepare_workflow_execution(**kwargs)
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/popper/commands/cmd_run.py", line 184, in prepare_workflow_execution
    run_workflow(**kwargs)
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/popper/commands/cmd_run.py", line 226, in run_workflow
    wf_runner.run(**kwargs)
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/popper/gha.py", line 193, in run
    WorkflowRunner.run_stage(new_wf, s, reuse, parallel)
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/popper/gha.py", line 210, in run_stage
    wf.action[a]['runner'].run(reuse)
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/popper/gha.py", line 373, in run
    if self.docker_exists():
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/popper/gha.py", line 407, in docker_exists
    all=True, filters={'name': self.cid})
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/docker/models/containers.py", line 937, in list
    since=since)
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/docker/api/container.py", line 211, in containers
    res = self._result(self._get(u, params=params), True)
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/docker/utils/decorators.py", line 46, in inner
    return f(self, *args, **kwargs)
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/docker/api/client.py", line 230, in _get
    return self.get(url, **self._set_request_timeout(kwargs))
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/Users/carlosmalt/virtualenvs/popper/lib/python3.7/site-packages/requests/adapters.py", line 498, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionRefusedError(61, 'Connection refused'))
(popper) bash-5.0$

thanks for reporting this Carlos. we'll address this and check for docker availability

fixed in https://github.com/systemslab/popper/commit/2fc4e814517b16d844db5fa33e113f9c7825bacc


Wasm without pyodide compilation (experiment)

This PR is not meant to be merged. This is an experiment for trying to run wasm-xiplot without compiling pyodide first. Therefore, some of the solutions are quite hacky.
Status: It works!
Pros: Latest pyodide without any changes (although there are some deprecation warnings).
Cons: The name of the xiplot wheel is hardcoded and most pyodide files (including wheels) are from a CDN.

Oh that’s really neat! I think we could work around all cons:

don’t hardcode the micropip import and setup but move that to the bootstrap script before installing and importing xiplot
make the bundle script write the current xiplot version to the bootstrap script (perhaps we can even move that one to the main branch at some point)
do any manual dependency version swaps with platform specific dependencies + add CI tests that maybe somehow fake this to ensure all tests still pass even with the second set of dependencies
keep pyodide as a submodule but somehow translate the pinned commit into the CDN version? Or perhaps just having a pyodide/VERSION file
We can probably live with depending on a CDN? Or do we want to instead host them ourselves … though that can quickly eat up repo storage.

Also, which warnings do you get? Those we could probably fix. Other than that, I think this would be a great step forward - then only the dash-specific bundling would remain as the deployment complexity

Warnings from the javascript console:

Passing a messageCallback (resp. errorCallback) as the second (resp. third) argument to loadPackageFromImports is deprecated and will be removed in v0.24. Instead use:
{ messageCallback : callbackFunc }

and

pyodide.isPyProxy() is deprecated. Use instanceof pyodide.ffi.PyProxy instead.

Warnings from the javascript console:

Passing a messageCallback (resp. errorCallback) as the second (resp. third) argument to loadPackageFromImports is deprecated and will be removed in v0.24. Instead use:
{ messageCallback : callbackFunc }

and

pyodide.isPyProxy() is deprecated. Use instanceof pyodide.ffi.PyProxy instead.

These two can be fixed inside https://github.com/edahelsinki/xiplot/blob/wasm/src/worker.ts . The file contains a manual copy of the relevant TypeScript interface, so that might need to fixed from the TS file that Pyodide ships (or perhaps we can just import it from somewhere).

TODO: sklearn is not loading (500 internal server error)

@Aggrathon The KMeans() in heatmap and cluster should provide an explicit n_init param since the WASM version already shows deprecation warning for not giving it in preparation for sklearn v1.4

@Aggrathon The KMeans() in heatmap and cluster should provide an explicit n_init param since the WASM version already shows deprecation warning for not giving it in preparation for sklearn v1.4

Yes, but this is something for the main branch

#33 fixes the kmeans warnings (that look like errors in the js console)

It appears that xiplot requires dash-extensions==0.1.4 which requires flask-caching=2.0.0 which requires flask<=2.1.2 while xiplot also requires dash==2.6.2 which requires flask>1.0.4. This is an issue because micropip  does not check the full dependency graph before starting to install packages (so installing dash==2.6.2 triggers the installation of the latest flask before micropip is aware of flask-caching with its limits on flask).

I don't think it is in the scope of micropip to have a smarter dependency resolver. But at least we can use the normal pip dependency resolution during bundling (see commit).


Move Accordion to CDK

Accordion should be moved into CDK separate from the mat-accordion and expansion panels.

Closed with #7530


Actions updates

Add assignees by default with Dependabot. All three of us for any Docker container updates, and @fredclausen  and @mikenye for GitHub Actions. I left @kx1t off for the actions since he hasn't really been involved with that, but, can also add him in too. Doesn't matter, just wanted to keep email spam down :)
wreadsb was dependent on base originally and now needs rtlsdr

I don't really need to review Github Action updates - I've been following them a bit but there's little I can add.
So I'm all good with this; will review/approve

This should be merged in before we merge #60 so the build kicks off properly.


z-index doesn't work as I expected inside ion-slides

Hello,
I have two sliders using ion-slides component and I've created a footer with two buttons (navigation buttons). Until there all right.
But... I have a form inside one of the sliders, so when I focus on a input text element, the virtual keyboardopens and moves the footer up, standing it in front of the form.
I know the hide-on-keyboard-open class, but this isn't inmediate (you can see how the footer is placed in front of the form for a couple of seconds), so I thought of use z-index
So, when the footer is moved upward, it is hidden under the form. But I can't get it work.
Maybe somebody can help me with this trouble?
My intention is that the green block is hidden under the blue block when they have contact... I've created a codepen to show this problem: https://codepen.io/anon/pen/QEBxRK?editors=1111
(since you can not open a virtual keyboard on a desktop computer, you can resize the height of the page to see that the z-index does not work)
Regards!

Hello! Thanks for opening an issue with us! As this seems like more of a support question i will urge that you ask this question on our forum (forum.ionicframework.com). Thanks for using Ionic!

Yes, you're right. Thank you :)


Navbar pre-loading animation

The navbar has a pre-loading animation on our production, the upcoming new navigation needs to implement this as well.
/cc @nhcarrigan and @moT01

@moT01, It seems like pathName and pending is not provided to the authOrProfile as props,  so the skeletonSprite if statement does not execute.

Mind dropping a fix?

working on it .

Just discussed this with @moT01. Since we will be showing the menu on the landing page, we would only need to pass pending to the menu component.

Fyi, the current setup does show the loader, but there was a loader nested inside the menu that is removed by #40864


💭 Getting incorrect coordinates and bounds when using CodeScanner when scanning barcodes

Question
I am using react-native-vision-camera v4.1.0, and I implemented the CodeScanner as per the docs. However every time I scan a barcode I am getting incorrect width which is in range of 3 - 10 in IOS. Hence it's impossible to map those values to the screen width and height and limit the scan area
What I tried
This is what I have done so far,
My Code Scanner looks like this
const codeScanner: CodeScanner = {
    codeTypes: ['ean-13'],
    onCodeScanned: (codes, frame) => {
      setScanFrame(frame);
      setCodeScannerHighlights(
        codes.map((code) => ({
          height: code.frame?.width ?? 0,
          width: code.frame?.height ?? 0,
          x: code.frame?.y ?? 0,
          y: code.frame?.x ?? 0,
        }))
      );
    },
  };

This is how I have set the codeScanner
   const device = useCameraDevice('back');
   <Camera
        style={StyleSheet.absoluteFill}
        device={device}
        isActive={true}
        codeScanner={codeScanner}
        onLayout={onLayout}
      />

I am also using onLayout to map the coordinates to the width and height of the camera view and limit the scan area like below
  const onLayout = (evt: LayoutChangeEvent) => {
    if (evt.nativeEvent.layout) {
      setLayout(evt.nativeEvent.layout);
    }
  };

This is the response I get
 Scanned [{"value":"1234567890128","corners":[{"x":929.5000279190813,"y":801.097824131347},{"x":932.5000393631731,"y":801.0978240575837},{"y":397.90094443226377,"x":932.5000080310912},{"x":929.4999965869994,"y":397.90094450602703}],"frame":{"width":3.000011444091797,"x":929.5000076293945,"height":403.1969118118286,"y":397.9009437561035},"type":"ean-13"}] codes!
As you can see the frame width is always within 3 and 10  irrespective of how closer or away the phone/camera is from the code. Any way I could fix this? Any suggestions how I could limit the scan area using this library?
VisionCamera Version
4.0.1
Additional information

[X] I am using Expo
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar questions in the issues page as well as in the discussions page and found none.

Any luck with this? I am getting unexpected results from the bounds, getting negative values... Do you know what order the corners are by any chance? The docs are very unhelpful on this.


Initial proposal for a test plan for translations

This PR creates a proposal for a test plan for translations
Test Steps:
N/A
Changes

Adds a proposal for a test plan for translations

Checklist

@jack-h-wang @mkalish do you want to review this and see if your concerns are captured now?


Bug 1965283: Static Resources Controller for Sync

Refactor ocm-o to use the static resources controller to sync static
YAML assets.
Add infomers for cluster-scoped objects, openshift-infra, and
kube-system as a namespace to use an informer to fetch core k8s
objects.
Use cached ConfigMapsGetter in the main workload sync controller
Don't set unmanaged/removed messages. The status controller is now
responsible for setting the cluster operator states for managed/
unmanaged. The existing code now collides with the new static
resource sync controller.
Increase rate limit for k8s API calls. This ensures the static
resource sync controller is not throttled when reconciling RBAC
objects.

/lgtm


Reverse proxy problems

I configured yml as seen below. (I removed rainloop as it requires payment I expect to use open source roundcube after I get this working.)
I configured letsencrypt using standalone certs to store in /etc/letsencrypt which is world readable.
I then went to configure the webserver using sudo docker exec -ti nginx ngxproxy
Name: postfixadmin
Domain: postfixadmin.mydomain.tld
Webroot (default is /):
Container: postfixadmin
Port (default is 80): 8888 (NOTE I believe that this should be 8000 to match with the website's yml)
HTTPS [y/n]: y
Certificate path: /certs/live/postfixadmin.mydomain.tld/fullchain.pem
The Certificate path was never accepted. I kept getting "Certificate path: " without any error message.
Any help is truly appreciated,
Tom
yml:
nginx:
image: wonderfall/boring-nginx
container_name: nginx
# restart: always
ports:
- "80:8000"
- "443:4430"
volumes:
# /sites-enabled : vhosts files (*.conf)
- /mnt/docker/nginx/sites-enabled:/opt/mailserver/nginx/sites-enabled
# /conf.d : additional configuration files
- /mnt/docker/nginx/conf:/opt/mailserver/nginx/conf.d
# /var/log/nginx : nginx logs
- /mnt/docker/nginx/log:/var/log/nginx
# /certs : SSL/TLS certificates
- /mnt/docker/nginx/certs:/etc/letsencrypt
# /passwds : authentication files
# /www : put your websites there
depends_on:
  - postfixadmin
# - rainloop

Go here and jump down to the "Let's Encrypt certificate authority"  section - you gotta set that up to create the certs otherwise you can use the snakeoil one they talk about ... but you shouldn't really do that.
https://hub.docker.com/r/hardware/mailserver/

Thanks but I had the certs which is what confused me
in .yml
nginx:
image: wonderfall/boring-nginx
ports:
- "80:8000"
- "443:4430"
volumes:
# /sites-enabled : vhosts files (*.conf)
- /mnt/docker/nginx/sites-enabled:/opt/mailserver/nginx/sites-enabled
# /conf.d : additional configuration files
- /mnt/docker/nginx/conf:/opt/mailserver/nginx/conf.d
# /var/log/nginx : nginx logs
- /mnt/docker/nginx/log:/var/log/nginx
# /certs : SSL/TLS certificates
- /mnt/docker/nginx/certs:/etc/letsencrypt
# /passwds : authentication files
# /www : put your websites there
depends_on:
  - postfixadmin

And in configuring web server I did
Configure webserver
sudo docker exec -ti nginx ngxproxy
Name: postfixadmin
Domain: postfixadmin.oitc.com
Webroot (default is /): /
Container: postfixadmin
Port (default is 80): 8888
HTTPS [y/n]: y
Certificate path: /etc/nginx/certs/live/postfixadmin.oitc.com/fullchain.pem
Certificate key path: /etc/nginx/certs/live/postfixadmin.oitc.com/privkey.pem
Secure headers [y/n]: y
Enable HSTS header ? [y/n]: n # Use with caution
Max body size in MB (integer/null): null

On Jan 9, 2017, at 10:33 AM, Ry Blaisdell<EMAIL_ADDRESS>wrote:
Go here and jump down to the "Let's Encrypt certificate authority" section - you gotta set that up to create the certs otherwise you can use the snakeoil one they talk about ... but you shouldn't really do that.
https://hub.docker.com/r/hardware/mailserver/ https://hub.docker.com/r/hardware/mailserver/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/hardware/mailserver/issues/72#issuecomment-271314453, or mute the thread https://github.com/notifications/unsubscribe-auth/AADb_p_Q1QzpZj8dwJoOeLeDc5wsXbrGks5rQlMugaJpZM4LYb0g.

@tshaw Are those files present? /etc/nginx/certs/live/postfixadmin.oitc.com/fullchain.pem for example?
If you exec into the docker container. Because I can't see how that directory would be mounted (looking at your docker-compose.yml).

The certificate path is relative to the nginx container mountpoint, example :
Certificate path: /certs/live/mail.domain.tld/fullchain.pem
Certificate key path: /certs/live/mail.domain.tld/privkey.pem

nginx:
  image: wonderfall/boring-nginx
  volumes:
    - /mnt/docker/nginx/certs:/certs

External path : /mnt/docker/nginx/certs/live/mail.domain.tld/fullchain.pem
Internal path :  /certs/live/mail.domain.tld/fullchain.pem
You must use the internal path which is relative to the container.

@tshaw: There are free editions of rainloop: https://www.rainloop.net/purchase/
I also plan to use this and like to know the reason for why you removed it from your installation.


Improve Args class

Following #23
High priority:

[x] implement add<f64>, add<f32>, nextF64 and nextF32

Lower priority:

[x] transform into Uint8Array directly onto the constructor: make the private class variable serialized a type Uint8Array
[x] add methods nextUint8Array and addUint8Array
[x] in method AddAddress: transform the address into Uint8Array
[x] in method nextAddress: create an Address from the Uint8Array
[ ] optimize string serialization, see https://github.com/massalabs/massa-as-sdk/pull/23#discussion_r1015098969

Question: this class is also used to serialize data to put into storage's hash map, should we rename Args class into something like Serializer?

I have created a new issue for the last item about string serialization optimization https://github.com/massalabs/massa-as-sdk/issues/63
Good job @AurelienFT @gregLibert we did it!


Adding E-commerce interface to the website.

NeoVogue is an E-commerce platform after all, while at its heart exists a gallery of talented designers, we are here to promote those ideas into marketable content.
Create an interface that includes placeholder texts and pictures and just add the front-page (on-click events that show the product description is not required in this issue).

I am interested in doing this, can I get it assigned?

Hi, it's assigned to you!

Just to be clear with the requirement, the issue demands a grid displaying all the designers with a short description about
them.
Note - I have provided a snap from a website that I have built before, only for concept reference purposes.
Let me know if the issue demands the same, please provide a clarification.


Update for Ubuntu Server 19.10 please.

Appears the only thing that needs to be changed for 19.10 is the JDK, says the default is 58(?) after downloading OpenJDK 11 (not headless) and setting it as default it ran fine.

This is tricky because it could cause problems if the script changes the default options.  However I have added a whole section on using update-alternatives to address this.  Thanks!


DetailBiere DB view

Create a DetailBiere view containing nomMarque instead of codeMarque.
modelBiere should would use DetailBiere instead of Biere.

Almost done.


Empty line between blocks

Hi!
May you consider adding empty lines between line blocks? The list of properties is [sooooooooooo] long.
I can update the config and submit a pull request, if you agree.
Thank you!

Do you mean these properties? And by adding an empty line, is that to "group" properties? Something like this:
  'max-height',
  'box-sizing',

  'padding',
  'padding-top',
  'padding-right',
  'padding-bottom',
  'padding-left',

  'margin',
  'margin-top',
  'margin-right',
  'margin-bottom',
  'margin-left',

So there is no empty line between max-height and box-sizing since they are not part of a group, but add an empty line for things like padding and margin?

Jesus! I'm really, really sorry, @simurai ! I've been working so mush that I don't remember to have opened #61 ! I just find it on the issues list, but... I don't recall at all of it! I'm sorry!


Remove unnecessary version checks

Since the required git version is set to <IP_ADDRESS> we can remove some version checks and fallbacks.

LGTM

LGTM

LGTM

LGTM

Make LGTM work!


Text are not being affected when an object is outside bounds (#1904)

What does this PR change?
Now TextMeshPro labels are hidden when they leave their scenes.
How to test the changes?
It is easier to test in Unity editor.

Launch the explorer
Move the avatar to the boundaries of the Genesis plaza.
Drag an object that has a text label, like the jukebox, near to the boundaries.
Slowly drag the object outside of the scene.

The label should hide when it is outside, and show when it enters again.

Nice and simple solution!

It's going to change after talking with Alvaro and Juani.

It can be reviewed and tested now.


fix(material/chips): chip focus trap fix

Fixed an issue to where users can get stuck in a focus trap in mat-grid. If a user were to try to navigate backwards out of the chip grid, the user gets stuck.
fixes b/290959510

@DBowen33 the internal change for this was merged, but this PR can't be because of the merge commit. Can you remove it from your branch?


Typescript typings please

Congrats on this fantastic project.
Could the maintainer/s please provide Typescript typings to the definitelyTyped project so this can be used with TS as well?
Thanks!

Refactored the entire codebase to Typescript via PR https://github.com/RedisGraph/redisgraph.js/pull/10

@DenisCarriere If you like typescript, perhaps you would like to try DRIVINE.ORG.
I'm currently adding RedisGraph support. One aspect that will improve the general utility is the transaction support (details on the website). Examples currently use NestJS - will dd some without that framework soon.


Please remove the build space or pick a different build space.

Description:
When I add a new package（realsense_ros）in the src folder and input command 'catkin_make --force-cmake', there will be a error.
Command:
catkin_make --force-cmake

Console output:

The build space at '/home/zf/catkin_ws/build' was previously built by 'catkin build'. Please remove the build space or pick a different build space.

Additional files:
Please attach all the files needed to reproduce the error.
Please give also the following information:

KimeraVIO branch, tag or commit used
GTSAM version used:
OpenGV version used:
OpenCV version used: type opencv_version
Operating system and version (e.g. Ubuntu 16.04 or Windows 10):
Did you change the source code? (yes / no):

oh! I get it. We can use command as 'catkin build package_ros' to build specific package that you want to build.


How to override SKToolbar, I want to completely customize it?

what can I do to let SKPhotoBrowser to support this?

I found that I do not have to use the toolbar, thanks


Convert ParseNode to struct

This converts ParseNode to flat objects per #892 and fixes additional type errors discovered by flow.
Pro: This works better with the flow type system (I think the use of NodeValue<TYPE> used to constrain flow's reasoning sometimes).
Con: It is less obvious/easily-greppable to find where ParseNodes are created in the source code.

NOTE: This PR has a higher chance of conflicts due to the unavoidable extensiveness of this change. So I'd like to get this in sooner rather than later. This does NOT flatten the objects yet! This reduces the area of merge conflict; and also, flattening is a rabbit hole since sometimes a handful of ParseNode types need to be converted together.

Cool.  This is going to take some time to review.  I will attempt to do so tomorrow evening.  Also, we can put other PRs that make code changes on hold until this get's merged.

As we don't have ParseNode class anymore, we should consider move type declarations to types.js and functions to utils.js.

@ylemkimon IMO, ParseNode is central enough that it would really help to keep everything related to it -- it's functions and "methods" (free functions in this case) -- together for the sake of disciverability and learnability. Also, as it's immense, it may overshadow other standalone types in types.js, making them less discoverable.
But I'm open to any feedback you may have on any advantages of splitting it up.

@marcianx I was thinking the PascalCase file name may give an impression that it default-exports a class named ParseNode, but I cannot think of better alternative.

That's a valid concern. How about parsenode.js then?

I think parseNode.js would be more consistent.

SGTM. Renamed to parseNode.js and also rebased to head, migrating the relevant code.
Bizarre thing: flow is strange ... renaming ParseNode.js to parseNode.js started to ignore one of my explicit $FlowFixMes in environment/array.js. I had to reorder code around to make it accept the code again!

This was towards #1492.

@ylemkimon thanks for reviewing and approving.


On initial render, progress shows incorrect value when step is set

When running the example app, I noticed the slider progresses on the initial render are incorrect when the <Slider> has step={10} or step={6}. If I comment out those steps, they will show correctly on the initial render.

I also facing this issue, initial value is incorrect when set step value

as I am still using reanimated v2, downgrading to 2.3.0 solves the issue for me

as I am still using reanimated v2, downgrading to 2.3.0 solves the issue for me

Ok, will try to downgrade. Thanks!

Thanks for all of your feedback! I have just merged @computerjazz's PR and did a tiny improment, and i have also released a new version here!

This seems to still be an issue when using RN Reanimated V3.5.4. was this fixed or should I be migrating down to V2? @alantoa


Memory leak

Hello,
I have found that using sort or sort_by_key command multiple times i get memory leak (memory usage is growing). In follow example i get the memory leak, if i just comment the line "boost::compute::sort" memory leak disappears. Why that happening? Maybe i doing something wrong?
#include <iostream>
#include <boost/compute/core.hpp>
#include <boost/compute.hpp>
namespace compute = boost::compute;
int main()
{
    auto device = boost::compute::system::devices().at(0);
    auto context = boost::compute::context(device);
    auto queue = boost::compute::command_queue(context, device);
    std::cout << device.name() << "\n";

    int count=1000000;
    std::vector<float> a;
    std::vector<float> b;
    std::vector<float> c;
    a.resize(count);
    b.resize(count);
    c.resize(count);

    for(int i=0;i<count;i++){
        a[i]=i*2+1;
        b[i]=(i+1)*2;
        c[i]=0;
    }
    compute::vector<float> buffer_a( context);
    compute::vector<float> buffer_b( context);
    compute::vector<float> buffer_c(context);
    buffer_a.resize(count,queue);
    buffer_b.resize(count,queue);
    buffer_c.resize(count,queue);

    boost::compute::copy(a.begin(),a.end(),buffer_a.begin(),queue);
    boost::compute::copy(b.begin(),b.end(),buffer_b.begin(),queue);
    boost::compute::copy(c.begin(),c.end(),buffer_c.begin(),queue);

    // source code for the add kernel
    const char source[] =
            "__kernel void add(__global const float *a,"
            "                  __global const float *b,"
            "                  __global float *c)"
            "{"
            "    const uint i = get_global_id(0);"
            "    c[i] = a[i] + b[i];"
            "}";

    // create the program with the source
    compute::program program =
            compute::program::create_with_source(source, context);

    // compile the program
    program.build();

    // create the kernel
    compute::kernel kernel(program, "add");

    // set the kernel arguments
    kernel.set_arg(0, buffer_a);
    kernel.set_arg(1, buffer_b);
    kernel.set_arg(2, buffer_c);

    // run the add kernel
    for(int i=0;i<100000;i++){
        queue.enqueue_1d_range_kernel(kernel, 0, count, 0);
        boost::compute::sort(buffer_c.begin(),buffer_c.end(),queue);
        queue.finish();
    }
    return 0;
}

The compute::reduce() function also leaks (except if the binary function is compute::plus<> )
See the following example:
BOOST_AUTO_TEST_CASE(reduce_twos)
{
    using compute::uint_;

    compute::vector<uint_> vector(8, context);
    const compute::buffer& buff = vector.get_buffer();
    auto rc1 = buff.get_info<CL_MEM_REFERENCE_COUNT>();
    {
        compute::fill(vector.begin(), vector.end(), uint_(2), queue);

        uint_ product;
        compute::reduce(vector.begin(), vector.end(), &product, compute::multiplies<uint_>(), queue);
        BOOST_CHECK_EQUAL(product, uint_(256));
    }
    auto rc2 = buff.get_info<CL_MEM_REFERENCE_COUNT>();
    BOOST_CHECK_EQUAL(rc1, rc2);
}

The two reference count should be equal.
The problem comes from the instruction
size_t detail::reduce(InputIterator first, size_t count, OutputIterator result,
              size_t block_size, BinaryFunction function, command_queue &queue)
...
    k <<
        function(first[k.make_var<uint_>("gid*2+0")],
                        first[k.make_var<uint_>("gid*2+1")]) << ";\n";

IMHO the
    ~buffer_iterator_index_expr()
    {
        // set buffer to null so that its reference count will
        // not be decremented when its destructor is called
        m_buffer.get() = 0;
    }

leaves the extra buffer reference.

@jszuppe  Hi. I used exclusive_scan and reduce function. My program is also faced with memory leak. Could you check and modify the code ?

IMHO the

    ~buffer_iterator_index_expr()
    {
        // set buffer to null so that its reference count will
        // not be decremented when its destructor is called
        m_buffer.get() = 0;
    }

leaves the extra buffer reference.

It should not leave extra buffer reference since in the constructor:
    buffer_iterator_index_expr(const buffer &buffer,
                               size_t index,
                               const memory_object::address_space address_space,
                               const IndexExpr &expr)
        : m_buffer(buffer.get(), false),
         ...

it does not increase the reference counter of buffer.

It seems that default copy ctor is causing this problem. I'll check if that [adding it] fixes the problem in other  reported cases.

It seems that it fixes all reported issues reported in this thread.

Should be fixed by #780. Reopen if you still get this problem on develop branch.

Thanks. Seems memory leak issue solved.


Specify what RegEx rules engine you use for Verizon Premium RegEx Rules Engine and whether escaping special characters in character groups is necessary

Can you please specify what regular expression engine you use for Verizon Premium Rules, as there are differences in syntax between engines? In particular, can you please specify if special characters, such as question marks (?), need to be escaped in a negated character group ([^]), i.e. if it's [^?] or [^\?] that's required?
That information would probably best go into this section:
https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/cdn/cdn-verizon-premium-rules-engine-reference.md#regular-expressions
The only reference to a particular regex engine I could find in your repo (after what was admittedly only a cursory search) was that of C#.
This documentation and the one it links to make me thing escaping might thus be needed:

The syntax for specifying a list of individual characters is as follows:
[*^character_group*]
where character_group is a list of the individual characters that cannot appear in the input string for a match to succeed. character_group can consist of any combination of one or more literal characters, escape characters, or character classes.

Character or sequence
Description

All characters except for the following: . $ ^ { [ ( | ) * + ? \
Characters other than those listed in the Character or sequence column have no special meaning in regular expressions; they match themselves. The characters included in the Character or sequence column are special regular expression language elements. To match them in a regular expression, they must be escaped or included in a positive character group. For example, the regular expression \$\d+ or [$]\d+ matches "$1200".

In contrast, both PCRE and ECMAScript regex engines don't seem to require escaping of question marks for my example, [^?], at least if https://regex101.com/ is anything to go by (although it also doesn't seem to hurt).
Generally speaking, more examples and a more complete description of regex rules we can use would be much appreciated as well.
Thanks. :)

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: c61c7bcf-ccd8-2ca2-7ee2-b75e66e87939
Version Independent ID: 3fe10193-d724-e221-2191-c10b00075bc6
Content: Azure CDN rules engine reference
Content Source: articles/cdn/cdn-verizon-premium-rules-engine-reference.md
Service: azure-cdn
GitHub Login: @mdgattuso
Microsoft Alias: magattus

Thanks for the feedback! We are currently investigating and will update you shortly.

@anno1985 Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

FYI: I created PR https://github.com/MicrosoftDocs/azure-docs/pull/35737 for this.

ping, it would be really awesome to get some precise documentation on the behaviour of the rules-engine. It's a real tedious task to work with try and error while it takes >1 hour to get the  rule updates in place.

Also some regex examples would be nice. I'm not sure why http(s?):\/\/((localhost$)|(localhost:\d+$)) does not work.
regexr.com/4kurg

Assigning to PM for review
#reassign:@amitsriva

GitHub user mdgattuso has been removed from the MicrosoftDocs organization, so they were automatically removed as an assignee.

#reassign: gunjanj

Thank you for you dedication to our documentation.
Unfortunately, we have been unable to review this issue in a timely manner. We sincerely apologize for the delayed response. We are closing this issue. If you feel that the problem persists, please respond to this issue with additional information.
Please continue to provide feedback about the documentation. We appreciate your contributions to our community.
#please-close


Getting ActiveRecord::RecordNotFound from time to time when using Sidekiq

I can clearly see after_commit being used in the code:
          after_commit :send_devise_pending_notifications

Yet, ActiveRecord::RecordNotFound still happens from time to time.
Any ideas how to fix it, @mperham?

I have no idea what the problem might be.

I've seen this in production in a few apps, my best guess is that Sidekiq is picking up the job before the transaction has completed. Adding a delay of a few seconds has fixed it in every case I've come across.

@KazW The real question is how.  We can clearly see after_commit block is used. That means  Sidekiq is either  faster than light, or after_commit doesn't happen after the commit.

Ah, I've only used this with Devise 3.x when it was after_save... Nevermind!

No resolution on this then? We're experiencing this with other Sidekiq jobs. Does anybody know of a way to simulate this in a test environment (we're specifically using Postgres)? We have some linear code that basically goes
some_model = SomeModel.create!(...)
SomeAsyncService.new.perform(some_model)

The service kicks off a Sidekiq Job, which picks up the job (impressively) before the model is committed (despite a proper primary key being set etc).

@voltechs No resolution, unfortunately. Given Sidekiq cannot be faster than light, after_commit must happen technically after a commit but before the result of that commit is available to database clients.


Fix a number of issues with the graph-rsc demo

undefined variables
misspelled variables
not using async/await properly (some async calls not being awaited properly, confusing mix of promise syntax with async/await syntax).

The demo still does not work, because it lacks permission to fetch the installed apps list, but I'm not sure the best way to fix that.

@microsoft-github-policy-service agree company="Fable, Inc."


Glitching Texts whenever I hover over an Aura Node

If I hover over a Thaumcraft Aura Node, every text on the screen added by CMM, gets bright. I am not sure if this is a problem with Thaumcraft, OptiFine, or maybe WAILA, but I will test it without OptiFine and WAILA if you need it.
I tested if I disable WAILA, the brightness goes away to normal, so the problem is maybe with WAILA. I will report / reference this to them too.
Screenshots:

Minecraft Version: 1.7.10
Lunatrius Core Version: <IP_ADDRESS>
InGame Info XML Version: <IP_ADDRESS>
If you need more info, forge log, modlist, tell me.

Yeah, that would be WAILA and/or Thaumcraft not resetting the OGL state (GL_BLEND/GL_LIGHTING I assume). I'll see if I can do anything about it.

Okay, Thanks! I already posted this issue on the WAILA Bug Tracker too. :smile:

The issue doesn't appear in a minimal setup of WAILA, IGI and Thaumcraft. Seems to be something else. Will be a pain to test this...

Should be fixed in db588c18ec4002aee82b98794d9421c5c559ab00. Try the latest build once it's up (about 10 minutes from this comment).
If the issue persist feel free to re-open the issue.