Issue with dns "Timeout waiting for response to forwarded proxied DNS lookup" with cilium network policy applied for fqdn's

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?

Setup cilium with helm in overlay mode from cilium documentation with below configuration

removed aws-node daemonset (existing vpc-cni integration).
Cilium can alternatively run in EKS using an overlay mode that gives pods non-VPC-routable IPs. This allows running more pods per Kubernetes worker node than the ENI limit, but means that pod connectivity to resources outside the cluster (e.g., VMs in the VPC or AWS managed services) is masqueraded (i.e., SNAT) by Cilium to use the VPC IP address of the Kubernetes worker node. Excluding the lines for eni=true, --set ipam.mode=eni and tunnel=disabled from the helm command will configure Cilium to use overlay routing mode (which is the helm default).

applied below cilium network policy in a namespace cilium-test on a curl pod

apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
  name: fqdn
spec:
  endpointSelector:
    matchLabels:
      run: mycurlpod
  egress:
    - toFQDNs:
      - matchPattern: "*.google.com"
    - toEndpoints:
      - matchLabels:
          k8s:io.kubernetes.pod.namespace: kube-system
          k8s-app: kube-dns
      toPorts:
        - ports:
          - port: "53"
            protocol: ANY
          rules:
            dns:
            - matchPattern: "*"

dns lookup is working fine before applying cilium policy, but as we apply cilium network policy, we see below logs in cilium agent pod
level=warning msg="Timeout waiting for response to forwarded proxied DNS lookup" DNSRequestID=22279 dnsName=support.google.com.cilium-test.svc.cluster.local. endpointID=1944 error="read udp <IP_ADDRESS>:36219-><IP_ADDRESS>:53: i/o timeout" identity=7894 ipAddr="<IP_ADDRESS>:38689" subsys=fqdn/dnsproxy
level=warning msg="Timeout waiting for response to forwarded proxied DNS lookup" DNSRequestID=21709 dnsName=support.google.com.cilium-test.svc.cluster.local. endpointID=1944 error="read udp <IP_ADDRESS>:48239-><IP_ADDRESS>:53: i/o timeout" identity=7894 ipAddr="<IP_ADDRESS>:38689" subsys=fqdn/dnsproxy
level=warning msg="Timeout waiting for response to forwarded proxied DNS lookup" DNSRequestID=21709 dnsName=support.google.com.cilium-test.svc.cluster.local. endpointID=1944 error="read udp <IP_ADDRESS>:39107-><IP_ADDRESS>:53: i/o timeout" identity=7894 ipAddr="<IP_ADDRESS>:38689" subsys=fqdn/dnsproxy
level=warning msg="Timeout waiting for response to forwarded proxied DNS lookup" DNSRequestID=22279 dnsName=support.google.com.cilium-test.svc.cluster.local. endpointID=1944 error="read udp <IP_ADDRESS>:46519-><IP_ADDRESS>:53: i/o timeout" identity=7894 ipAddr="<IP_ADDRESS>:38689" subsys=fqdn/dnsproxy
level=warning msg="Timeout waiting for response to forwarded proxied DNS lookup" DNSRequestID=31143 dnsName=support.google.com.cilium-test.svc.cluster.local. endpointID=1944 error="read udp <IP_ADDRESS>:40172-><IP_ADDRESS>:53: i/o timeout" identity=7894 ipAddr="<IP_ADDRESS>:58349" subsys=fqdn/dnsproxy
level=warning msg="Timeout waiting for response to forwarded proxied DNS lookup" DNSRequestID=30623 dnsName=support.google.com.cilium-test.svc.cluster.local. endpointID=1944 error="read udp <IP_ADDRESS>:50323-><IP_ADDRESS>:53: i/o timeout" identity=7894 ipAddr="<IP_ADDRESS>:58349" subsys=fqdn/dnsproxy
level=warning msg="Timeout waiting for response to forwarded proxied DNS lookup" DNSRequestID=30623 dnsName=support.google.com.cilium-test.svc.cluster.local. endpointID=1944 error="read udp <IP_ADDRESS>:37619-><IP_ADDRESS>:53: i/o timeout" identity=7894 ipAddr="<IP_ADDRESS>:58349" subsys=fqdn/dnsproxy
level=warning msg="Timeout waiting for response to forwarded proxied DNS lookup" DNSRequestID=31143 dnsName=support.google.com.cilium-test.svc.cluster.local. endpointID=1944 error="read udp <IP_ADDRESS>:52573-><IP_ADDRESS>:53: i/o timeout" identity=7894 ipAddr="<IP_ADDRESS>:58349" subsys=fqdn/dnsproxy

Cilium Version
v1.13.1
cilium-cli: 0.13.2
Kernel Version
Linux ip-192-168-69-243.ec2.internal 5.10.173-154.642.amzn2.x86_64 #1 SMP Wed Mar 15 00:26:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Kubernetes Version
v1.25.6-eks-48e63af
Sysdump
Collecting sysdump with cilium-cli version: 0.13.2, args: [sysdump]
🔮 Detected Cilium installation in namespace "kube-system"
🔮 Detected Cilium operator in namespace "kube-system"
🔍 Collecting Kubernetes nodes
🔍 Collect Kubernetes nodes
🔍 Collect Kubernetes version
🔍 Collecting Kubernetes events
🔍 Collecting Kubernetes pods
🔍 Collecting Kubernetes namespaces
🔍 Collecting Kubernetes services
🔍 Collecting Kubernetes pods summary
🔍 Collecting Kubernetes endpoints
🔍 Collecting Kubernetes network policies
🔍 Collecting Cilium network policies
🔍 Collecting Kubernetes leases
🔍 Collecting Cilium egress NAT policies
🔍 Collecting Cilium local redirect policies
🔍 Collecting Cilium Egress Gateway policies
🔍 Collecting Cilium endpoints
🔍 Collecting Cilium identities
🔍 Collecting Cilium cluster-wide network policies
🔍 Collecting Cilium nodes
🔍 Collecting Cilium Node Configs
🔍 Collecting Ingresses
🔍 Collecting CiliumEnvoyConfigs
🔍 Collecting CiliumClusterwideEnvoyConfigs
🔍 Collecting Cilium BGP Peering Policies
🔍 Collecting Cilium LoadBalancer IP Pools
🔍 Collecting Cilium etcd secret
🔍 Collecting the Cilium configuration
🔍 Collecting the Cilium daemonset(s)
🔍 Collecting the Hubble daemonset
🔍 Collecting the Hubble Relay configuration
🔍 Collecting the Hubble Relay deployment
🔍 Collecting the Hubble UI deployment
🔍 Collecting the Cilium operator deployment
🔍 Collecting the 'clustermesh-apiserver' deployment
🔍 Collecting the CNI configuration files from Cilium pods
🔍 Collecting the CNI configmap
🔍 Collecting gops stats from Cilium pods
🔍 Collecting gops stats from Hubble pods
🔍 Collecting gops stats from Hubble Relay pods
🔍 Collecting bugtool output from Cilium pods
🔍 Collecting profiling data from Cilium pods
🔍 Collecting logs from Cilium pods
🔍 Collecting logs from Cilium operator pods
🔍 Collecting logs from 'clustermesh-apiserver' pods
⚠ Deployment "clustermesh-apiserver" not found in namespace "kube-system" - this is expected if 'clustermesh-apiserver' isn't enabled
🔍 Collecting logs from Hubble pods
🔍 Collecting logs from Hubble Relay pods
🔍 Collecting logs from Hubble UI pods
🔍 Collecting bugtool output from Tetragon pods
🔍 Collecting platform-specific data
🔍 Collecting kvstore data
🔍 Collecting Hubble flows from Cilium pods
I0412 12:11:21.018926   95072 request.go:690] Waited for 1.086884596s due to client-side throttling, not priority and fairness, request: GET:https://69C9304AE8B866970E0A06F46D1D3CCF.gr7.us-east-1.eks.amazonaws.com/api/v1/namespaces/kube-system/pods?labelSelector=io.cilium%2Fapp%3Doperator
⚠ Failed to unarchive 'cilium-bugtool' output for "cilium-2mj2z": reading file in tar archive: /var/folders/_z/nwnmzj2n6b74d98n_55y8tjdbyqkpl/T/2035741751/cilium-sysdump-20230412-121117/cilium-bugtool-cilium-2mj2z-20230412-121117/cmd/state/templates/e94e8ff6a4e157d35270fc4879bf5dba57a038e8cbe62b8141d86db512d3b409/bpf_lxc.c: writing file: unexpected EOF
⚠ Failed to unarchive 'cilium-bugtool' output for "cilium-xk6dc": reading file in tar archive: /var/folders/_z/nwnmzj2n6b74d98n_55y8tjdbyqkpl/T/2035741751/cilium-sysdump-20230412-121117/cilium-bugtool-cilium-xk6dc-20230412-121117/cmd/state/templates/828955c1c38b7c32bc0244d306fa529524709c8c357f590ddf775abbca8303e2/bpf_lxc.asm: writing file: unexpected EOF
⚠ The following tasks failed, the sysdump may be incomplete:
⚠ [12] Collecting Cilium egress NAT policies: failed to collect Cilium egress NAT policies: the server could not find the requested resource
⚠ [13] Collecting Cilium Egress Gateway policies: failed to collect Cilium Egress Gateway policies: the server could not find the requested resource (get ciliumegressgatewaypolicies.cilium.io)
⚠ [14] Collecting Cilium local redirect policies: failed to collect Cilium local redirect policies: the server could not find the requested resource (get ciliumlocalredirectpolicies.cilium.io)
⚠ [20] Collecting CiliumClusterwideEnvoyConfigs: failed to collect CiliumClusterwideEnvoyConfigs: the server could not find the requested resource (get ciliumclusterwideenvoyconfigs.cilium.io)
⚠ [21] Collecting CiliumEnvoyConfigs: failed to collect CiliumEnvoyConfigs: the server could not find the requested resource (get ciliumenvoyconfigs.cilium.io)
⚠ [22] Collecting Cilium BGP Peering Policies: failed to collect Cilium BGP Peering policies: the server could not find the requested resource (get ciliumbgppeeringpolicies.cilium.io)
⚠ [23] Collecting Cilium LoadBalancer IP Pools: failed to collect Cilium LoadBalancer IP Pools: the server could not find the requested resource (get ciliumbgppeeringpolicies.cilium.io)
⚠ Please note that depending on your Cilium version and installation options, this may be expected

Relevant log output
No response
Anything else?
Code of Conduct

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

This happens periodically with v1.12.9 on EKS v1.23
Only fix is to replace the affected nodes
Our configuration is with native routing and masquerading disabled though.

The docs suggest that the Timeout waiting for response to forwarded proxied DNS lookup message is usually transient or is because the traffic to the DNS server isbeing blocked; looking at the error mesage, it seems that the traffic to <IP_ADDRESS> is being blocked. I think that the Network Policy you've added may also be blocking traffic from the internal DNS proxy.

The overlay mode in cilium worked fine except for egress to fqdn, where the error is Timeout waiting for response to forwarded proxied DNS lookup but the same policy works fine in vpc eni mode.
Also, i tried to installed cilium first with vpc eni mode in my eks cluster and then upgraded it to overlay mode and in that case the policy is working fine as expected, i'm not getting any errors. So, this is a bug.
@joestringer

Thanks for the further info @divyak8, it does sound reasonable that it's a bug.
Could I ask you to upload the sysdump in as many of the cases you've tested as possible? (VPC ENI mode, overlay mode where it works, or just the current state if that's the only one you can easily get?)
Without a sysdump, no-one, not even Joe, will be able to help you very efficiently.

We have similar issue on random agents.

version 1.12.7
direct routing
LRP for node-local-dns.

We can fix it only with cilium bpf ct flush global. Sysdump is 60MB so I spllitted it into smaller parts. Please run the following commands to extract it:
mv cilium-sysdump-20230530-195008-parted.z01.zip cilium-sysdump-20230530-195008-parted.z01
mv cilium-sysdump-20230530-195008-parted.z02.zip cilium-sysdump-20230530-195008-parted.z02
mv cilium-sysdump-20230530-195008-parted.z03.zip cilium-sysdump-20230530-195008-parted.z03
zip -F cilium-sysdump-20230530-195008-parted.zip --out cilium-sysdump-20230530-195008.zip

cilium-sysdump-20230530-195008-parted.zip
cilium-sysdump-20230530-195008-parted.z03.zip
cilium-sysdump-20230530-195008-parted.z02.zip
cilium-sysdump-20230530-195008-parted.z01.zip

@divyak8 your issue appears to be related to this caveat. Can you please confirm, and if so, try the documented workarounds?

How did you fix the problem in the end?


How can I use binary-package with go.mod

What version of Go are you using (go version)?

$ go version
1.12

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env

What did you do?

What did you expect to see?
I want to use binary-package with go.mod mod.
What did you see instead?

Hi @SmallAiTT ,
This appears to be a question rather than a Go bug. We do not use the issue tracker for general discussions or questions like these. The Github bug tracker is only used for tracking bugs and proposals going through the Proposal Process.
You might want to take a look at the Questions wiki page; it has a list of good places for asking questions.
Closing since this is not a bug.

Also please note https://github.com/golang/go/issues/28152


Include multi-thread meshing for gmsh to accelerate process

gmsh allows for certain algorithms to parallelize the meshing operation, e.g. of possible implementation
gmsh.option.setNumber("Mesh.MaxNumThreads1D", number_of_threads)
gmsh.option.setNumber("Mesh.MaxNumThreads2D", number_of_threads)
gmsh.option.setNumber("Mesh.MaxNumThreads3D", number_of_threads)

Thanks for raising an issue. I agree it would be great to speed up the meshing in this way. Are you keen to make a PR for this issue


Remove SpelView in WhitelabelApprovalEndpoint

Backport of #1340

Closed via 8e9792c

Hi,
When can we expect version bump in spring-security-oauth2-boot (2.2.1 to 2.2.2?).
https://github.com/spring-projects/spring-security-oauth2-boot/blob/master/gradle/dependency-management.gradle
Thanks

@pbialonc See Issue 26. The release is scheduled for May 14 but that may get pushed later on in the week.


Server-side compatibility

I see this library relies on window.fetch, do you think we could safely switch to isomorphic-fetch to have the full support of server-side?

I was considering isomorphic-fetch at some point but I was worried that I would force it even into browsers which support fetch natively.
How can I avoid that and make it load only in browsers which don't have it natively?

isomorphic-fetch uses whatwg-fetch behind the scene and whatwg-fetch will not load when it detects the browsers have already support natively.
Here is the note
https://github.com/github/fetch#browser-support
Note: modern browsers such as Chrome, Firefox, Microsoft Edge, and Safari contain native implementations of window.fetch, therefore the code from this polyfill doesn't have any effect on those browsers. If you believe you've encountered an error with how window.fetch is implemented in any of these browsers, you should file an issue with that browser vendor instead of this project.

Switched to webpack and isomorphic-fetch. Closing.


test: change replay worker mock process delay to 2 seconds

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
4453

Relevant Lines:
6356

💛  - Coveralls

@arinda-arif lets close this PR, lets fix this later by opening an issue

@arinda-arif lets close this PR, I don't see any test failing in Local or in CI, is it needed?

I think the test case has been disabled. I will close this PR and add an issue then.


Failed to find data source: csvStr.

1.1.7， spark2.4
执行：
set rawData='''
name,age
zhangsan,1
lisi,2
''';
load csvStr.rawData options header="true"
as output;
结果：
Failed to find data source: csvStr. Please find packages at http://spark.apache.org/third-party-projects.html

csvStr only support in the master branch. It should be released in MLSQL 1.2.0


Add stats about rendering times

Adds a few fields to entry items on the database:

createdAt (already existed but wasnt being populated correctly)
startedAt: the time the worker started picked the job up for rendering
finishedAt: the time the worker finished processing
errorAt: time at which the worker encountered an error processing
jobCreator: remote ip address that submitted the job
jobExecutor: remote ip address of the worker that picked up the job for processing

Also adds a few QOL:

print ffmpeg command when --debug flag is set
fix checking if output is a directory (checking names is unreliable)

Amazing feature update @Thiago-Dantas!


Please use a delimiter between org/team names

Please use a delimiter between org/team names in the log.
Expected:
Log messages will not be hard to distinguish due to org/team names not being represented as discreet units.
Actual:
Org/team names are combined into a single string which must be manually separated.
Reproducing:
Log into nexus via Github oauth using an account with multiple teams in an organization (e.g org1/team1 and org1/team2). Observe that in the log the organization and team names are combined (e.g. org1/team1org1/team2).

Very helpful improvement! Thank you!


fix: Non-root level gitignores will no longer be treated as root

The previous behavior would cause a .gitignore containing * at a non-root level to ignore everything in the project.
Instead, given the path ./child/.gitignore, a filter of * would be applied as ./child/* as intended.
Resolves MAP-297

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

v0.24.2
GitHub release

Your semantic-release bot :package::rocket:


Inquiry about Release Date for Full Dataset

Nice work! I would like to inquire about the release date for the full dataset.

Hi, I would also like to inquire about the release?

Same question.


feat(lexers): associate XBM and XPM with C code

Please run make mapfiles to regenerate the glob mappings.

Done.

Merged, thanks a lot!


breaking change: upgrade to go 1.19 - Protecode vulnerabilities

This should solve all protecode security vulnerabilities associated with golang versions 1.17.x and 1.18.x

/retest-required

closing this PR since test-infra doesn't support 1.19 as of now


1.1 backwards compatibility?

Will server 1.1 work with 1.0 clients?

Should do yes, it will just time out all the listener requests and the client will receive unsolicited message errors since it can't handle hasProvider updates.


(Required) Issues added to project and assigned to specific team members

add specific isssues and assign to specific team members

https://github.com/orgs/Codepath-Android-2022-Group-1/projects/1. Task has been done just not properly recorded in the sprint milestone until now


Mistake Values in Bitget.Net.Enums.V2.OrderSide

Dim BitgetOpenOrders_Algo = Await clientBitget.FuturesApiV2.Trading.GetOpenTriggerOrdersAsync(BitgetProductTypeV2.UsdtFutures, BitgetFuturesPlanType.NormalPlan, Symbol_USDFutureV2)
i got:
BitgetOpenOrders_Algo.Data.Orders(0).PositionSide=Bitget.Net.Enums.V2.PositionSide.Long
BitgetOpenOrders_Algo.Data.Orders(0).Side = Bitget.Net.Enums.V2.OrderSide.Buy
BitgetOpenOrders_Algo.Data.Orders(0).TradeSide=Bitget.Net.Enums.V2.TradeSide.Close
I think side should be "Sell" because this order is stop loss for Long position in hedge mode

Sometimes side is Correct, Most of time side is not corect. i do not know why?

I think if order is Open Order, it will be correct. And if order is close order, it will not be correct

as i see, if the order is open order and is Stop Market, the price has no value, The side will be Correct
if the order is close order and is Stop Limit, the price has a value, The side will not be Correct
I'm not sure for other cases

Can you check what the value is the server sends? If it doesn't send a value it might default to buy, so that might be the issue. If the server sends buy then it's not really fixable


add example: vue2-tsx

Summary
A Vue2 + TSX example that also supports JSX.

Test Plan
npm run build

Require Documentation?

[ ] No
[ ] Yes, the corresponding rspack-website PR is __

 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.zf seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


UnboundLocalError: local variable 'search_keyword' referenced before assignment

Hey,
I seem to have stumbled across this issue, similar to issue #43
The python snippet is below:
#creating list of arguments
arguments = {"keywords":sciBird + str(addOn),"limit":15,"print_urls":True}
#passing the arguments to the function
paths = response.download(arguments)

This throws an error:
File "/home/runner/.local/lib/python3.6/site-packages/google_images_download/google_images_download.py", line 825, in download
paths, errors = self.download_executor(arguments)
File "/home/runner/.local/lib/python3.6/site-packages/google_images_download/google_images_download.py", line 919, in download_executor
while i < len(search_keyword):      # 3.for every main keyword
UnboundLocalError: local variable 'search_keyword' referenced before assignment

For context, we're using this module to get pictures of birds in a discord bot.
Thanks,
Tomi

Sorry, it seems like the issue is that we're passing an empty string to "keywords".
It would be nice if it had told us that though.

Is this issue resolved?

Yes. The issue was that sciBird, which was being passed to keywords, was an empty string.


use keys 1-5 to advance players

Hi @teropa,
Great talk at AngularUp!
This is a small PR to add the ability to advance players with the 1-5 keys.
Thanks!

Awesome, thanks!


Remove lazy_static dependency

This also speeds up check_public by about 30%, as the compiler can optimize it by taking into account the constant values.

I updated this PR with a cleaner and much faster version.

This is probably good to merge now.


fix seata saga some issue

Ⅰ. Describe what this PR did
修复/优化seata saga模式如下问题
FIX 5669
FIX 5633
FIX 5427
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

 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.yixia seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Building image for arm64v8

[X] BUG REPORT
[ ] FEATURE REQUEST

BUG REPORT

Expected behavior
Image build successful
I'm very new so I'm sorry for the possibly silly questions. I'm able to run the  latest emqx container on this machine, but I'd like to add some additional code into the start.sh file to allow the creation of authenticated users. I am unable to successfully run ./docker.sh build. What is the process to do this if I'm on an arm64v8 arch system, or is it even possible? I edited the docker.sh file so that it is;
QEMU_ARCH=aarch64
ARCH=arm64v8
If you can't build an arm64v8 image from an arm64v8 machine, can you build an arm64v8 image on an x86_x64 machine?
Actual behavior
Failed
Test code
root@ip-172-31-17-235://home/ubuntu/emqx-docker/v3.2# ./docker.sh build

TARGET=emqx/emqx
EMQX_DEPLOY=cloud
QEMU_ARCH=aarch64
ARCH=arm64v8
QEMU_VERSION=v4.0.0
EMQX_VERSION=develop
BUILD_VERSION=develop
main build
docker_build
echo DOCKER BUILD: Build Docker image.
DOCKER BUILD: Build Docker image.
echo DOCKER BUILD: build version -> develop.
DOCKER BUILD: build version -> develop.
echo DOCKER BUILD: build from -> .
DOCKER BUILD: build from -> .
echo DOCKER BUILD: arch - arm64v8.
DOCKER BUILD: arch - arm64v8.
echo DOCKER BUILD: qemu arch - aarch64.
DOCKER BUILD: qemu arch - aarch64.
echo DOCKER BUILD: docker repo - emqx/emqx.
DOCKER BUILD: docker repo - emqx/emqx.
echo DOCKER BUILD: emqx deploy - cloud.
DOCKER BUILD: emqx deploy - cloud.
echo DOCKER BUILD: emqx version - develop.
DOCKER BUILD: emqx version - develop.
prepare_qemu
echo PREPARE: Qemu
PREPARE: Qemu
docker run --rm --privileged multiarch/qemu-user-static:register --reset
standard_init_linux.go:211: exec user process caused "exec format error"

EMQ version
v3.2
Docker version
Which docker-engine version?
Docker version 19.03.4, build 9013bf5
How docker info?
Client:
Debug Mode: false
Plugins:
app: Docker Application (Docker Inc., v0.8.0)
buildx: Build with BuildKit (Docker Inc., v0.3.1-tp-docker)
Server:
Containers: 1
Running: 1
Paused: 0
Stopped: 0
Images: 3
Server Version: 19.03.4
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: b34a5c8af56e510852c35414db4c1f4fa6172339
runc version: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
init version: fec3683
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.15.0-1045-aws
Operating System: Ubuntu 18.04.3 LTS
OSType: linux
Architecture: aarch64
CPUs: 4
Total Memory: 7.523GiB
Name: ip-172-31-17-235
ID: UHI7:QUH7:ITUK:JMAR:FCD7:SZAA:LN6G:P7X5:GDFY:SLHE:2XM3:NG2J
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
<IP_ADDRESS>/8
Live Restore Enabled: false
WARNING: No swap limit support
System
What system do you use?
Ubuntu 18.04
Hardware
AWS Ubuntu 18.04 server - arm64

Hi, our project is no longer maintained. You can build arm64v8 docker image on x86_64 server by emqx/emqx-rel project.
git clone -b ${version} https://github.com/emqx/emqx-rel
cd emqx-rel
EMQX_DEPS_DEFAULT_VSN=${version} ARCH=arm64v8 QEMU_ARCH=aarch64 make emqx-docker-build

Thanks for the reply!
I actually successfully built my image on a x86_64 and was able to run it on my PI with authenticated users as of 5 minutes ago, thanks :D

You are welcome  :)


Option --rcfiles or --no-rcfiles to include/skip .hmakerc

By default, option --rcfiles is true, and will load .hmakerc automatically, when --no-rcfiles is specified, all .hmakerc files are skipped.

Depends On #6


CI: Img optimization

Problem
We got some svg optimization from @lsaudon in #2414.
It would be great if we could automate and expand it beyond svgs only.
My preference would be ImgBot which could also be interesting for other repos as well. Would you have a look at this @teolemon

My 2 cents...
I'm not a big fan of systematic optimization

they have side-effects (#2418, https://github.com/openfoodfacts/smooth-app/pull/2414#issuecomment-1170236643)
so far they are not tested (what about goldens test for SVGs?)
I didn't see any evidence of the gain in space (would be easy to measure) and performances (less easy)
in the case of SVG optim, I don't know what the source SVG files were (if they were those in assets/ they were already downgraded optimized files)
it distracts us from more important issues, especially now that the app is live

TL;DR
If it is tested, if it does optimize the app, if it's fast to code and easy to maintain, why not.

so far they are not tested (what about goldens test for SVGs?)

Ran test on my fork for IMG bot and all test were passing ,doesn't seem to have any breaker for now to stop it from being implemented in our project
https://github.com/AshAman999/smooth-app/pull/1

@AshAman999 I'm not sure the Smoothie tests include the correct display of the 233 SVG files (with the flutter limitations regarding SVG display). For PNG I assume we're safer and that flutter displays them correctly.
In addition to optimization, an added value would be to get the original files from the server and to put them in assets/. Cf. #1963.


Appending Volt::Model to an Array::Model sets the array as parent

When you appends a model to an array model it sets the parent to the store root, raising a error when you try to destroy that model later
item = store._items << Volt::Model.new
item.then(&:destroy) => #<Promise(70216442881060): #<NoMethodError: undefined method `to_sym' for #<Volt::Model id: "f415..fadb">>>

This PR fix this by setting the parent correctly to the ArrayModel we are appending to

@gabrielrios sorry, I've been a little slow on some of these PR's, can you bring it up to date?

Done, @ryanstout

Sorry this took so long to merge.  Thanks!


Please return the "Move up/down" commands

I couldn't even find the reason they were removed. I've been using them all the time!

In case you have been invoking the commands from a custom keyboard shortcut, the recommended way now is to set up the keyboard shortcut to the code actions directly, e.g.:
{
    "key": "Ctrl+Up",
    "when": "editorTextFocus && resourceExtname =~ /^(\\.js|\\.jsx|\\.cjs|\\.mjs|\\.ts|\\.tsx|\\.cts|\\.mts|\\.vue)$/",
    "command": "editor.action.codeAction",
    "args": {
        "kind": "refactor.move.up",
        "apply": "ifSingle"
    }
}

This was fine while it lasted.

Is there any easy way to just use the move up and down commands?

@Lippiece yes - you can use version 1.165.2, or even better, the one with the commands (1.151.0).
There is also Abracadabra, which offers move statement commands: https://github.com/nicoespeon/abracadabra/blob/main/REFACTORINGS.md#move-statement-up

@Lippiece yes - you can use version 1.165.2, or even better, the one with the commands (1.151.0).
There is also Abracadabra, which offers move statement commands<EMAIL_ADDRESS>
Abracadabra can't move statements half of the times.
So you've just removed this functionality and not going to bring it back, is that correct?

The functionality is still there - what you are seeing is a result of the change of the pricing model. Sadly, the freemium model of the P42 JS Assistant extension with a Free and a Pro plan has not been sustainable, and I have bills that I need to pay (I'm working on P42 full time).
Therefore, starting with version 2.0, the P42 JS Assistant extension requires a subscription. The Free plan is no longer available.
If you want to keep using the free features without upgrading, you can continue to use the JS Assistant v1.165.2, which will remain available in the marketplace.
If you want to purchase P42 Basic, you can use the UPGRADEV2 coupon code and get a 20% discount. It applies perpetually and is valid until Nov 30, 2022. You can enter the coupon code in the purchase checkout.


mup setup error

Hi,
mup setup is producing error below:
[<IP_ADDRESS>] - Installing Node.js
[<IP_ADDRESS>] ✘ Installing Node.js: FAILED
-----------------------------------STDERR-----------------------------------
Warning: Permanently added '<IP_ADDRESS>' (RSA) to the list of known hosts.
Permission denied, please try again.
-----------------------------------STDOUT-----------------------------------

Does anyone know how to fix this issue? Your help will be really appreciated.
Thank you

Permission denied, the error states.
I guess MUP is unable to connect to the server properly
Have you followed the instructions in readme with regards to pre-mup server setup.
https://github.com/arunoda/meteor-up#ssh-based-authentication

Hi davidrinnan,
Thank you for your reply. It seems like I have correct pre-mup setup...interesting thing is, my other app that is using same server (digital ocean) / different droplet is working well. I can do mup setup & mup deploy on that one, but for some reason, the one I'm trying to setup now is not working...anything I can do here?
Thank you

double check that you can connect the same way as stated in the mup.json, but manually via terminal. Also double check that you when connected via ssh to the server dont have to provide password when you write
sudo ls

Hi davidrinnan,
Thank you so much for your reply. I completely forgot that I have to authenticate via ssh first time. This article resolved my problem:
https://www.digitalocean.com/community/tutorials/how-to-connect-to-your-droplet-with-ssh
Really appreciated. You saved my day =)


lite hexagon后端ResizeNearestNeighbor算子层执行报错

hexagon/src/newnode.c:413:node 3 (ResizeNearestNeighbor_8): bad input count 6
hexagon/src/newnode.c:763:node id=0x3 ctor fail
hexagon/src/prepare.c:4830:input 0x6:0 refers to nonexistent node 0x3
hexagon/src/prepare.c:4644:can't find id 0x3

ERROR: Failed: Failed to prepare graph.
.
ERROR: Node number 1 (TfLiteHexagonDelegate) failed to prepare.
ERROR: Restored original execution plan after delegate application failure.
Failed to apply Hexagon delegate.
Benchmarking failed.

@hayyaw
In order to expedite the trouble-shooting process here, could you please fill the issue template,
Thank you!

System information
OS Platform and Distribution ：Linux Ubuntu 18.04
TensorFlow installed from (github):
TensorFlow version (dev分支):
Provide the text output from tflite_convert
none
Standalone code to reproduce the issue
tensorflow/lite/delegates/hexagon/builders/resize_nearest_neighbor_builder.cc
Any other info / logs
STARTING!
Duplicate flags: num_threads
Log parameter values verbosely: [0]
Min num runs: [1]
Graph: [/home/wangzhiqun/yolox_resize_nearest_neighbor.tflite]
Use Hexagon: [1]
Loaded model /home/wangzhiqun/yolox_resize_nearest_neighbor.tflite
INFO: Initialized TensorFlow Lite runtime.
Hexagon delegate created.
INFO: TfLiteHexagonDelegate delegate: 1 nodes delegated out of 1 nodes with 1 partitions.
INFO: Replacing 1 node(s) with delegate (TfLiteHexagonDelegate) node, yielding 1 partitions.
[hexagon/nn] Add Node: tid(-1) nid(1)
[hexagon_nn] hexagon_nn_append_const_node(gid=1 tid=2 nid=2 type=0x3)
[hexagon/nn] Add Node from Op(331) mid(0) nid(3)
[hexagon_nn] hexagon_nn_append_const_node(gid=1 nid=4 type=0x3)
[hexagon_nn] hexagon_nn_append_const_node(gid=1 nid=5 type=0x3)
[hexagon/nn] Add Node: tid(-1) nid(6)
[hexagon_nn] hexagon_nn_append_node(gid=1 nid=1 type=0x0)
[hexagon_nn] hexagon_nn_append_node(nis=0 nos=1)
[hexagon_nn] hexagon_nn_append_node(outputs[0].elementsize=1)
[hexagon_nn] hexagon_const_node(gid=1 nid=2 type=0x3)
[hexagon_nn] hexagon_nn_append_node(gid=1 nid=3 type=0x14b)
[hexagon_nn] hexagon_nn_append_node(nis=6 nos=3)
Error adding node: id:3, op_type:331
[hexagon_nn] hexagon_const_node(gid=1 nid=4 type=0x3)
[hexagon_nn] hexagon_const_node(gid=1 nid=5 type=0x3)
[hexagon_nn] hexagon_nn_append_node(gid=1 nid=6 type=0x1)
[hexagon_nn] hexagon_nn_append_node(nis=1 nos=0)
Timestamp: Thu Sep 21 08:06:06 2023
Log
hexagon/src/newnode.c:413:node 3 (ResizeNearestNeighbor_8): bad input count 6
hexagon/src/newnode.c:763:node id=0x3 ctor fail
hexagon/src/prepare.c:4830:input 0x6:0 refers to nonexistent node 0x3
hexagon/src/prepare.c:4644:can't find id 0x3
ERROR: Failed: Failed to prepare graph.
.
ERROR: Node number 1 (TfLiteHexagonDelegate) failed to prepare.
ERROR: Restored original execution plan after delegate application failure.
Failed to apply Hexagon delegate.
Benchmarking failed.

Hi @hayyaw
Could you please provide a reproducible code and steps you have followed? It is hard to understand the issue from error log. Please please fill this issue template.
Thanks.

I am having the exact same problem with multiple TFLITE models I have made full quantized versions to run on the hexagon.


The value of gamma is set to zero?

Thank you very much for the source code provided. I have some questions about the parameter settings in your code. The value of gamma is set to zero?
class CrissCrossAttention(nn.Module):
""" Pixel-wise attention module"""
def init(self,in_dim):
super(CrissCrossAttention,self).init()
self.chanel_in = in_dim
    self.query_conv = nn.Conv2d(in_channels = in_dim , out_channels = in_dim//8 , kernel_size= 1)
    self.key_conv = nn.Conv2d(in_channels = in_dim , out_channels = in_dim//8 , kernel_size= 1)
    self.value_conv = nn.Conv2d(in_channels = in_dim , out_channels = in_dim , kernel_size= 1)
    self.gamma = nn.Parameter(torch.zeros(1))

def forward(self,x):
    proj_query = self.query_conv(x)
    proj_key = self.key_conv(x)
    proj_value = self.value_conv(x)

    energy = ca_weight(proj_query, proj_key)
    attention = F.softmax(energy, 1)
    out = ca_map(attention, proj_value)
    out = self.gamma*out + x

    return out

The gamma is initially set to zero and learn during training.
But I also have another question related to gamma. Why the size of gamma just 1x1. It means each batch you only have 1 gamma, instead of batchx1 gamma. Because during training, the batch size often bigger than 1

@John1231983 self.gamma can be broadcasted in pytorch.

@John1231983 The paramter gamma controls how much out will be added into x, which is unrelated to the image content. So gamma has the shape 1.

Hi, Have you ever measure the relation between gamma and input content? Is there any special observations about gamma?


Is it possible to control only one monitor from all monitors

Checklist

[x] I have searched for existing issues

Question
Is it possible to control one monitor from all monitors without controlling the monitor on which the active window is currently located?

yes it is - just select "control all monitors"


Cannot set Color of Bulbs

Hi Erik!
I cannot set or change  Color Values for Color bulbs within the home App. It works flawless within the Phoscon App though.
I get this error message for all color lights:
13.5.2023, 15:29:49] [deCONZ] RaspBee Gateway: warning: request 1943: /lights/1/state/xy: api error 7: invalid value, , for parameter, xy
Do you have an idea to fix it ?
thx,
Paul

Please attach the dump file, set logLevel for the light to 2, and capture a log file, while changing the light colour.

Cannt do it anymore,
After playing around and trying to fix it myself by updating my pi
The color lights moved to standard room and the adaptive light advice appeard in home app
Everything works now egain
Sorry for bothering u, maybe u can get something out of it for your great plugin:)


testSetScopeToResourceTestCase failure

Description
Below test is failing in jenkins [1]
org.wso2.am.integration.tests.other.APIScopeTestCase.testSetScopeToResourceTestCase
Error log:
org.wso2.am.integration.clients.publisher.api.ApiException: at org.wso2.am.integration.tests.other.APIScopeTestCase.testSetScopeToResourceTestCase(APIScopeTestCase.java:188)
[1] - https://wso2.org/jenkins/job/products/job/product-apim/org.wso2.am$org.wso2.carbon.am.integration.backend.test/3031/testReport/junit/org.wso2.am.integration.tests.other/APIScopeTestCase/testSetScopeToResourceTestCase/
Steps to Reproduce
N/A
Affected Component
APIM
Version
4.2.0-alpha
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response

It seems both testSetScopeToResourceTestCase and testCopyApiWithScopes are failing due to the swagger parser upgrade. Both these test cases have a step where the existing swagger definition is updated with a new one. These definitions in the tests cases are incorrect and those errors can be seen when we import that to the online swagger editor as well.
Old swagger parser must have had a bug in the swagger 2.0 flow which has caused these issues to be hidden until now. The tests failed since the new parser detected the erroneous definitions in the swagger PUT step.

Possible that this same root cause affects https://github.com/wso2/api-manager/issues/1294 too.

Identified the root cause is same in #1294 and fixed so.


Update README.md with a number of changes

1: Improved Centos iSCSI build directions
2: Included systemd service and startup script creation and enablement, added into examples near the top
3: Added documentation around storagePrefix for Global and IgroupName for Ontap
4: Clarified documentation on the effects of using a default storagePrefix and added an Ontap recommendation around always changing the storagePrefix
5: Added storagePrefix to different examples to make sure this gets added in

Closing this request as we have moved our documentation to ReadTheDocs format. http://netappdvp.readthedocs.io/en/latest/


[OpenAI-Inference] Inference SDK support for Azure OpenAI v2024-07-01-preview service release

closes #41196
WIP

API change check
APIView has identified API level changes in this PR and created following API reviews.
com.azure:azure-ai-openai


User Interface/Dashboard Redesign

One of the things that people have asked for is a redesign of the device dashboard. Unfortunately, I'm not the best when it comes to user interface design, so this is a bit beyond my level of skill.
From the discussion with @Mikmonken :
On restructuring the dashboard - I would suggest making a separate issue for it (since I’m reusing this issue for the ABV tracking) but here’s what you need to know:
Django uses its own template language which is HTML mixed with custom tags that use curly braces. If you’re comfortable with HTML and the concept of if statements and loops from any other programming language then it’s incredibly easy to understand Django templates (in my opinion). If you want to see one in action, this is the template you want (Temperature Controller Dashboard):
https://github.com/thorrak/fermentrack/blob/master/app/templates/device_dashboard.html
{# #} is a comment and is ignored when generating the HTML to output
{% %} is used for control statements, function calls, etc. You’ll see these for things like if statements and basically anything else that is programmatic.
{{ }} is used for directly adding the contents of a variable that is being passed to the template from Python.
Otherwise, it’s all HTML.
If you want to play by editing this file on your Raspberry Pi, give it a shot!
3 things to know:

After making any changes, you may have to relaunch circus to get them to show. See below for instructions
If things don’t work out and you want to revert to what’s on GitHub, just do git reset —hard while in the Fermentrack directory
Once you’re done and like what you see, submit a pull request or otherwise save the data out somewhere - and then do a git reset —hard . If you don’t, you may not be able to update from GitHub until you do.

To relaunch circus:
sudo su fermentrack
cd ~/fermentrack
source ~/venv/bin/activate
circusctl restart
If you don’t close the shell, you only need to run the last command each time to restart circus

Also tagging @snoop6060 as I'm deleting his comment from the other thread

Im happy to help here. I’m away till next week but can take a look at this then. To be honest I’ve been meaning to learn django for a few years. Think I’ve even got a text book somewhere. I’m not a designer either ( Linux Sysadmin by trade ) but have done lots of python in my time and a few web projects with flask which uses the same html templating framework I think. There are lots of dashboard type layouts available that could be adapted and could improve Fermentrack a fair bit. My own personal requirements would be improving the UI when viewed on a phone (possibly via an app with react native?) and making the graph and headline dashboard data a bit tidier. Adding abv would be cool.
If anyone has ideas/suggestions/requirements add them here I guess :)

Are there any specific points feedback that should be addressed with a re-design?
Personally, I'm not much of a designer, but the current layout seems pretty reasonable for a large screen.  The only thing that I would want to change is having it re-arrange to a single column layout in order to fit a phone screen.
I'm going to try putting something together using CSS Grid to achieve a flexible layout, but if there are any other ideas, let me know.

I've mocked up a different layout, here are some of the thoughts I had about the current display, and why I changed what I did.
On the existing interface, most of the information and actions are duplicated.  All of the temps are in the LCD styled display, and their own boxes.  If I have room and fridge temps, I can only see one of them at a time, why not both?  Each box has an action, but I have the same actions at the bottom of the page also, as separate buttons.
What if it was something like this?

Removed the LCD display.  It looks kind of neat, but, I would say, either show all of the data in that format, or in this grid layout style, but not both at the same time.
Show all three temps.  Moved the targets under, and removed the actions from the temp boxes.
Moved all of the commands to a sidebar.  Now everything I can do is right together and I don't need to hunt around the page.
Chart is unchanged

Other thoughts:

Is log interval important?  To me, seems like it could be removed.
Some wasted space under the actions menu.
The orange nav section is a bit wide.
The actions section needs something more to draw the eye towards it.  Hard to compete with the bright colors of the temp readings.
The icons aren't loaded in the screenshot, but they would still be there.
I didn't do the layout with a gravity sensor, which would add a bit more to the display.
The 6 status boxes could be replaced with a bigger LCD display with more data, and then have the nav to the side of it.  It would make the page much more of a control panel feel, retro console display style than a boxes with rounded corners style.  I know it is probably replicating the LCD that you would see on the actual devices, but, we have a little more freedom here.

So, any feedback you have is welcome.  I'm just trying some ideas out to see if this a good general direction to go or not.

Rough idea of the LCD table display.  Or, just having a more tabular data layout, it dosen't have to be LCD themed.  Certainly much denser information in this layout.

Sorry to revive an old issue, but it feels more relevant to ask/mention here, than opening a new one.
I've noticed that the units on the graph for gravity don't seen to neatly align with the units in the legend box. Where we would typically measure gravity to the 3rd decimal place, 1.###, my graph is displaying units in 4th and even 5th decimal places. Would it be possible to round these values to the 3rd decimal place, and/or pad with 0's up to 3 decimal places if necessary?


Do not fail if media info fails

(plus running it through cargo fmt)
For instance checking https://download.blender.org/demo/movies/BBB/bbb_sunflower_1080p_60fps_normal.mp4
It will show all the tracks:
$ cargo run --example mp4info  ~/bbb_sunflower_1080p_60fps_normal.mp4
File:
  file size:          355856562
  major_brand:        isom
  compatible_brands:  isom avc1

Movie:
  version:        0
  creation time:<PHONE_NUMBER>
  duration:       634.533s
  fragments:      false
  timescale:      600

Found 3 Tracks
  Track: #1(und) Video: h264 (High) (avc1 / 0x61766331), 1920x1080, 4004 kb/s, 60.00 fps
  Track: #3(und) Audio: mp4a box not found
  Track: #2(und) Audio: aac (-) (mp4a / 0x6D703461), 96000 Hz, -, 160 kb/s

Thank you!


AZURE APP SERVICE explorer - Not available after installing Azure App Service extension

From @jackharich on June 16, 2018 8:32
 Yes, did that for over 45 minutes.

VSCode Version:
Version 1.24.0
Commit 6a6e02cef0f2122ee1469765b704faf5d0e0d859
Date 2018-06-06T17:35:40.560Z
Shell 1.7.12
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64

OS Version: Win10 64bit.

Steps to Reproduce:

Install Azure App Service extension on current version of VCStudio
Look for "AZURE APP SERVICE explorer". After one hour of searching VCStudio and the internet, unable to find it.

Does this issue occur when all extensions are disabled?: Yes/No
Come now, this is an extension!!~!!!@
See: https://code.visualstudio.com/tutorials/app-service-extension/getting-started#_sign-in
Note how this page of documentation does NOT say how to show the "AZURE APP SERVICE explorer". It just implies it will magically appear or can be easily found. In my case, neither it true.
All the doc says is "Once the extension is installed, log into your Azure account - in the AZURE APP SERVICE explorer, click Sign in to Azure... and follow the instructions."
I have created a new Azure account.
This is NOT in the documentation. I laboriously found that with SHIFT CONTROL P you can use Azure: to get commands. One is Configure Deployment Source. I chose that and signed in. But still, there is no "AZURE APP SERVICE explorer". Without that I'm unable to use Azure.
Copied from original issue: Microsoft/vscode#52097

From @jackharich on June 16, 2018 16:44
Further experimentation revealed that one must show the workbench activity bar. To gain more precious screen space I was hiding it with workbench.activityBar.visible false. It's a waste of space since hot keys can show the desired panel, EXCEPT for extensions which unfortunately break this model.
May I politely point out the documentation is buggy. It never considers the user may have done what I did. This:
"Once the extension is installed, log into your Azure account - in the AZURE APP SERVICE explorer, click Sign in to Azure... and follow the instructions."
should be changed to something like:
"Once the extension is installed, a new icon will appear on your workbench activity bar near the bottom. Click on that to open the AZURE APP SERVICE explorer. Then click Sign in to Azure... and follow the instructions."

From @vscodebot[bot] on June 16, 2018 8:32
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

Deploy to Azure using App Service (#51165)
Azure Web App service cannot log in (#50833)

@jackharich Sorry this was so frustrating, the documentation should be updated. This repository is for the core of VSCode, so this issue should be on the extension itself. I'll move it over.

Fixed in https://github.com/Microsoft/vscode-docs/pull/1684


Use AndroidX

Fixes #662
This enables people turning of jetifier when using Stetho.

Compile SDK version should be raised to 29 if it's not already. That may result in even more nullability annotations.

compileSdkVersion and targetSdkVersion are now at 29
Missing non-null annotations are added
Redundant casts at findViewById removed (which were no longer needed after targeting 26)

I didn't find the compileOnly dependencies in changes. As you mentioned this should be it:
compileOnly 'androidx.lifecycle:lifecycle-common:2.0.0'
compileOnly 'androidx.lifecycle:lifecycle-viewmodel:2.0.0@aar'
compileOnly 'androidx.core:core:1.0.0@aar'
compileOnly 'androidx.fragment:fragment:1.0.0@aar'

I found this instead:
implementation 'androidx.fragment:fragment:1.0.0@aar'

I didn't find the compileOnly dependencies in changes. As you mentioned this should be it:
compileOnly 'androidx.lifecycle:lifecycle-common:2.0.0'
compileOnly 'androidx.lifecycle:lifecycle-viewmodel:2.0.0@aar'
compileOnly 'androidx.core:core:1.0.0@aar'
compileOnly 'androidx.fragment:fragment:1.0.0@aar'

I found this instead:
implementation 'androidx.fragment:fragment:1.0.0@aar'

@consp1racy That's on purpose: I don't think this should be part of this PR anymore. That's because making the optional dependencies actually optional hasn't got anything to do with AndroidX. Therefore, let's just merge this PR and create a separate issue to make the dependency actually optional (or go the non-optional route and remove the realtime checks).

@cristan Thanks for getting the ball rolling! Are you still looking into this?

@cristan Thanks for getting the ball rolling! Are you still looking into this?
I don't think there's anything for me to do: all AndroidX related suggestions are implemented.

Unfortunately, this project seems to be dead: only 1 commit has been done on this project since March 2019. I'm now using another solution, I suggest y'all do the same.

I'm now using another solution, I suggest y'all do the same.

I assume that solution is Flipper?

I'm now using another solution, I suggest y'all do the same.

I assume that solution is Flipper?

It isn't. I've tried it, ran into this issue and almost 2 years later it still isn't fixed. I now use chucker.

Thanks for the work here @cristan.


Revert "getting-started/bookshelf: initial rewrite (#951)"

This reverts commit 0e0de939565b6bbebf327599ad2db9060fc7d892.
The commit broke existing links. Will do a coordinated recommit later.

Submitting TBR to fix the broken links.


update substr (deprecated) to substring

substr is deprecated (was used for compatibility with Internet Explorer).
Replaces the two occurrences of substr with substring

Is it possible the test is flaky? (three waits) Could you please re-run the tests?

reran

reran

Cheers


Block finality checking on cache retrieval

Context
For context, I'm trying to use erpc as a completely offline test fixture. This could be for running integration tests for CI, or just working in an environment where node access is slow / not possible. I understand this might not be a supported use case for erpc but given its capability of using a persistent cache it's a great fit.
The issue
The issue I have so far, after fixing the obvious bugs in #41 and #42 where cache misses unexpectedly happen, is that the cache retrieval code checks for block finality:
https://github.com/erpc/erpc/blob/9371a74379a8fc0243664cf7caff6605982dd8ac/erpc/evm_json_rpc_cache.go#L66-L74
This is problematic because:

when running offline or when all upstreams are down when you start, you wouldn't even be able to serve from cache;
the very first requests served after erpc starts up always miss the cache as the block tracker hasn't fetched the finalized block yet.

While issue 1 might not be what erpc cares about since it's a proxy at the end of the day, issue 2 does cause slight performance degradation when scaling / rolling updates. So it might be worth fixing after all.
But why do we even check for finality here? I can see why we want to do it when setting cache, but is it really necessary to do it when fetching? If it weren't finalized in the first place it wouldn't have been in the cache.
One counter argument I can see here is that checking for finality helps avoids unnecessary IO to the cache store. If the block is too recent, no checking with storage is needed, so better latency. But I have a proposed solution:
Proposed solution
So right now EvmIsBlockFinalized() returns false when the finalized block is not yet available:
https://github.com/erpc/erpc/blob/9371a74379a8fc0243664cf7caff6605982dd8ac/erpc/networks.go#L308-L315
I think this is rather inaccurate. How do you know the block is not finalized if you don't know the finalized block? This should rather be an error. If we turn this into an error, the cache fetching code can then distinguish between "definitely not finalized" and "we don't know.. maybe?". And in the case of "we don't know", we can still hit storage to find out whether we actually have it.
This should have no impact on any other parts as I've checked and so far all other callsites treat error and false the same.

@aramalipoor Not sure if this is what you'd want but optimistically submitted #46.

@xJonathanLEI This is a great summary, and also a good answer to this question that I had few days ago:
What to do when finalized block is not yet known?
"An error to distinguish 'unknown' -> assume 'finalized' during get and 'unfinalized' during set"

Re 'why should we even do this?' as you said it's to avoid redundant reads when can be avoided cheaply for real-time use-cases (frontend clients, indexers live ingestion, etc), which will send lots of these.


various issues with i3lock-next

hi owen,
It's me again, just wanted to give you a heads up about a few issues im having. When trying to launch the freshly installed i3lock i get the following error
i3lock: unrecognized option '--time-font=Sans'
after editing it to --timefont=Sans i get the same issue for date-font. After editing that one too I get the error i3lock: unrecognized option '--verifcolor=00000000' after commenting that line out im finally able to launch i3lock-next but the locks and dates dont seem to be centered on my 2 monitors and after exiting I get a bunch of memory leaks. The memory leaks seem to be a problem from i3lock-color. I'd debug this issue further but im not much of a programmer and don't have enough time at the moment but feel free to ask me to test something for you. I'm aware that this is a rather small project and i don't expect this to be fixed anytime soon. In the meantime I'm gonna look for a new i3lock.

I believe the issues you're experiencing were introduced in 4456c3a, which brought arguments passed to i3lock-color in line with upstream. Are you using the latest version of i3lock-color?

I was using the latest i3lock-color version from the AUR. I changed to i3lock-color-git from the AUR which resolved all of the issues besides the lock placement and date placement.


integration with stripe

Codecov Report
Attention: Patch coverage is 93.93939% with 2 lines in your changes missing coverage. Please review.

Project coverage is 92.53%. Comparing base (38e19b9) to head (e265e16).

Files with missing lines
Patch %
Lines

appSetup.js
90.00%
2 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #11      +/-   ##
==========================================
+ Coverage   92.30%   92.53%   +0.22%
==========================================
  Files          22       24       +2
  Lines         208      241      +33
  Branches       20       20
==========================================
+ Hits          192      223      +31
- Misses         14       16       +2
  Partials        2        2

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


Allow @web alias in custom url Param

https://docs.craftcms.com/v3/config/#aliases

If this is for the Craft 3 version can you add the issue over there please:
https://github.com/fruitstudios/craft-linkit


bucket retention set to infinite but data removed after 6 months

I noticed that even if the retention policy for my bucket is infinite data is removed after 6 months (very precise period).
[root@influxdb ~]# influx bucket list
ID			Name		Retention	Shard group duration	Organization ID		Schema Type
050b7383eec1d35f	_monitoring	168h0m0s	24h0m0s			d0aa88b91337e8ce	implicit
57175e1147e3fe90	_tasks		72h0m0s		24h0m0s			d0aa88b91337e8ce	implicit
b6bb53153ca112f8	prometheus	infinite	168h0m0s		d0aa88b91337e8ce	implicit

influx v1 dbrp ls
ID			Database	Bucket ID		Retention Policy	Default	Organization ID
07c9c10e6d5ad000	prometheus	b6bb53153ca112f8	myrp			true	d0aa88b91337e8ce

worth noticing that data is ingested via telegraf and accessed both using Flux and InfluxQL (see v1 dprb above).
as you can see from the picture, data before 2021-11-25 is delete (exact 6 months ago....)

Logs
May 24 22:46:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-24T22:46:03.329453Z lvl=info msg="Retention policy deletion check (start)" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check op_event=start
May 24 22:46:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-24T22:46:03.329770Z lvl=info msg="Retention policy deletion check (end)" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check op_event=end op_elapsed=0.350ms
May 24 23:16:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-24T23:16:03.330411Z lvl=info msg="Retention policy deletion check (start)" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check op_event=start
May 24 23:16:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-24T23:16:03.330620Z lvl=info msg="Retention policy deletion check (end)" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check op_event=end op_elapsed=0.225ms
May 24 23:46:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-24T23:46:03.330400Z lvl=info msg="Retention policy deletion check (start)" log_id=0_
xXZ0000 service=retention op_name=retention_delete_check op_event=end op_elapsed=0.177ms
May 25 00:16:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-25T00:16:03.329734Z lvl=info msg="Retention policy deletion check (start)" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check op_event=start
May 25 00:16:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-25T00:16:03.332062Z lvl=info msg="Deleted shard group" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check db_instance=050b7383eec1d35f db_shard_group=343 db_rp=autogen
May 25 00:16:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-25T00:16:03.333966Z lvl=info msg="Deleted shard" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check db_instance=050b7383eec1d35f db_shard_id=343 db_rp=autogen
May 25 00:16:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-25T00:16:03.336213Z lvl=info msg="Retention policy deletion check (end)" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check op_event=end op_elapsed=6.486ms
May 25 00:46:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-25T00:46:03.330253Z lvl=info msg="Retention policy deletion check (start)" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check op_event=start
May 25 00:46:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-25T00:46:03.330386Z lvl=info msg="Retention policy deletion check (end)" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check op_event=end op_elapsed=0.141ms
May 25 01:16:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-25T01:16:03.329399Z lvl=info msg="Retention policy deletion check (start)" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check op_event=start
May 25 01:16:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-25T01:16:03.329531Z lvl=info msg="Retention policy deletion check (end)" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check op_event=end op_elapsed=0.139ms
May 25 01:46:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-25T01:46:03.330439Z lvl=info msg="Retention policy deletion check (start)" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check op_event=start
May 25 01:46:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-25T01:46:03.330590Z lvl=info msg="Retention policy deletion check (end)" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check op_event=end op_elapsed=0.170ms
May 25 02:16:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-25T02:16:03.330031Z lvl=info msg="Retention policy deletion check (start)" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check op_event=start
May 25 02:16:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-25T02:16:03.330174Z lvl=info msg="Retention policy deletion check (end)" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check op_event=end op_elapsed=0.149ms
May 25 02:46:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-25T02:46:03.330446Z lvl=info msg="Retention policy deletion check (start)" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check op_event=start
May 25 02:46:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-25T02:46:03.330598Z lvl=info msg="Retention policy deletion check (end)" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check op_event=end op_elapsed=0.166ms
May 25 03:16:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-25T03:16:03.330558Z lvl=info msg="Retention policy deletion check (start)" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check op_event=start
May 25 03:16:03 xx.xx.xx.xx<IP_ADDRESS> influxdb[2502]: ts=2022-05-25T03:16:03.330743Z lvl=info msg="Retention policy deletion check (end)" log_id=0_dpxXZ0000 service=retention op_name=retention_delete_check op_event=end op_elapsed=0.196ms

the retention policy check runs every 30mins  (default) which is correct.
What can I check to understand why it's removing data while the retention policy is infinite.
I cannot test the same on Influxdb 2.2 due to this issue
https://github.com/influxdata/influxdb/issues/23326
Env Details
uname -srm
Linux 4.18.0-348.12.2.el8_5.x86_64 x86_64

influxd version
InfluxDB 2.1.1 (git: 657e1839de) build_date: 2021-11-09T03:03:48Z

cat /etc/redhat-release
Red Hat Enterprise Linux release 8.5 (Ootpa)

Hello matrog,
I have a similar issue - for a time, it looked like my DB was wiping out the data generated exactly two months ago. Then, the data suddenly reappeared for reasons I still couldn't understand. The retention policy is set to infinite in this case as well.
Did your data come back like ours?
Kind regards,
Todor


Act 264

What is the Purpose?
Add admin boundaries to Map Preview
What was the approach?
Load geojson boundary data and add it to the map
Mentions?
@andrewtpham @Kimaiyo077 @ninetteadhikari
Issue(s) affected?
ACT-264

Codecov Report

Merging #441 into dev will increase coverage by 0.06%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              dev     #441      +/-   ##
==========================================
+ Coverage   50.28%   50.35%   +0.06%
==========================================
  Files          98      100       +2
  Lines        8304     8315      +11
==========================================
+ Hits         4176     4187      +11
  Misses       4128     4128

Impacted Files
Coverage Δ

workflow/migrations/0014_auto_20200403_0615.py
100.00% <100.00%> (ø)

workflow/migrations/0018_merge_20200406_2158.py
100.00% <100.00%> (ø)

workflow/models.py
79.22% <100.00%> (+0.04%)
:arrow_up:

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 bade5d2...7a3e8d9. Read the comment docs.

Hi Peter, this PR looks great and is right on track! Really great job with this.
A slight comment on the default admin boundary field I've noted below:
Current behavior:
When I select a Country in the Country Code field AND when the Admin Boundary field is default on ADM0, the ADM0 does not display automatically on the map. I currently have to selected another admin boundary like ADM1 then re-select ADM0 for the boundary to appear on the map.
See GIF:

Expected behavior:
When I select a Country in the Country Code field THEN I would expect that the Country selected admin boundary to display. Currently, since the ADM0 boundary is selected by default, this should display on the map like the following screenshot:

@andrewtpham kindly test this again


Bazel support for ev-cli and everest-testing

We provide bazel wrappers and and list of dependencies for everest utils here.
it is needed in core to run ev-cli, and tests later on.

you need also to run bazel run //:vendor_requirements @golovasteek


libcamera-vid: Add a new --frames option to run for a set number of f…

…rames
This will allow users to encode (mjpeg/H.264) an exact number of frames without
relying on timeouts which have a bit of variability.
The --frames option will take precedence over any timout specified on the
command line.
Signed-off-by: Naushir Patuck<EMAIL_ADDRESS>

This should help with https://github.com/raspberrypi/libcamera-apps/issues/157.


Switch to MapQuest geocoder

@dhcole says its good: http://www.mapquestapi.com/geocoding/geocodequality.html#granularity

Done.


Python 3.7 support

Is Python 3.7 supported? I couldn't install it because I got a regex package installation error.

On what platform are you on?
It works perfectly fine for me and travis as well: https://travis-ci.org/kennethreitz/maya/jobs/429542623
Could you please let us know about the exact error you get?

I am on Ubuntu 16.04. Its an error compiling the regex package. I will follow up with that project if I can. I am basically glad to hear that it's supposed to work on Python 3.7. Thanks.


Missing start and end properties in hello-world-nodejs-delay response

For the second exercise in Creating NodeJS Actions, response is missing the start and end properties.
$openwhisk-workshop verify
✓ OpenWhisk Action hello-world-nodejs exists
✓ OpenWhisk Action hello-world-nodejs returns correct message
✓ OpenWhisk Action hello-world-nodejs-delay exists
/usr/local/lib/node_modules/openwhisk-workshop/exercises/creating_nodejs_actions/exercise.js:61
      const start_time = parseInt(stdout.match(/start": (\d+)/)[1], 10)
                                                               ^

TypeError: Cannot read property '1' of null
    at /usr/local/lib/node_modules/openwhisk-workshop/exercises/creating_nodejs_actions/exercise.js:61:64
    at /usr/local/lib/node_modules/openwhisk-workshop/node_modules/shelljs/src/exec.js:180:7
    at ChildProcess.exithandler (child_process.js:194:7)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:817:16)
    at Socket.<anonymous> (internal/child_process.js:319:11)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at Pipe._onclose (net.js:469:12)

Running it manually to get response:
wsk action invoke hello-world-nodejs-delay -b
ok: invoked hello-world-nodejs-delay with id -----------------
response:
{
    "result": {
        "message": "Hello World"
    },
    "status": "success",
    "success": true
}

Hello.

Python

Could you upgrade to the Go CLI? The Python client has been deprecated now. This should resolve your issue.


🐛 [Bug] Windows build broken after 1.2.0 - experimental:filesystem in TRTEngine

Bug Description
At some point after v1.2.0 the TensorRT\core\runtime\TRTEngine.h file was added and it brought the #include <experimental/filesystem> with it. I had some issues trying to build due to this. A #define is needed to build, the path cannot implicitly be converted to a std::string, an extra #include is needed to use std::stringbuilder and there is no stdc++fs to link against.
Environment

Torch-TensorRT Version: master f43be5b64dd97f09c05dd8756f01427a497ecda4
PyTorch Version: libtorch 1.13.1+cu117
CPU Architecture: amd64
OS: Windows 11
Python version:  Python 3.10.9
CUDA version: 11.8
cmake version: cmake version 3.21.21080301-MSVC_2
cl version: Microsoft (R) C/C++ Optimizing Compiler Version 19.30.30706 for x64
MSVC toolchain version: 14.30.30705

Rough fix
The below changes were needed to get a compile. They probably would break the build on other systems - so maybe need to be based on some platform detection.
Additional CMAKE flag
{
  "name": "CMAKE_CXX_FLAGS",
  "value": "-D_SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING",
  "type": "STRING"
}

Code changes
diff --git a/core/runtime/CMakeLists.txt b/core/runtime/CMakeLists.txt
index d21c661a..b3632e8f 100644
--- a/core/runtime/CMakeLists.txt
+++ b/core/runtime/CMakeLists.txt
@@ -33,7 +33,6 @@ target_link_libraries(${lib_name}
         TensorRT::nvinfer
         torch
         core_util
-        stdc++fs
 )

 # Install
diff --git a/core/runtime/TRTEngine.h b/core/runtime/TRTEngine.h
index 5615a824..1a2df1f2 100644
--- a/core/runtime/TRTEngine.h
+++ b/core/runtime/TRTEngine.h
@@ -25,7 +25,7 @@ struct TRTEngine : torch::CustomClassHolder {
   std::string name;
   RTDevice device_info;

-  std::string profile_path_prefix = std::experimental::filesystem::temp_directory_path();
+  std::string profile_path_prefix = std::experimental::filesystem::temp_directory_path().string();

   std::unordered_map<uint64_t, uint64_t> in_binding_map = {}; // TRT IDX -> PYT IDX
   std::unordered_map<uint64_t, uint64_t> out_binding_map = {}; // TRT IDX -> PYT IDX
diff --git a/core/runtime/TRTEngineProfiler.cpp b/core/runtime/TRTEngineProfiler.cpp
index a1159516..7857a467 100644
--- a/core/runtime/TRTEngineProfiler.cpp
+++ b/core/runtime/TRTEngineProfiler.cpp
@@ -1,5 +1,6 @@
 #include <algorithm>
 #include <fstream>
+#include <sstream>
 #include <iomanip>

 #include "core/runtime/TRTEngineProfiler.h"

@bharrisau can you open a PR for this?

I'm 99% sure my changes will break all the other builds though. Did you want me to just take a best guess at hiding the WIN changes behind define/etc?

Yeah that will at least give us a starting point and we can work to make sure it doesn't effect linux

Awaiting PR.

Done.


DB graphical schema should be dynamically generated

https://github.com/basf/metis-bff/blob/master/bff_schema.png, as a continuation of #66

addressed by https://github.com/tilde-lab/sql_visualization
TODO (nice to have) a dedicated GitHub action


Will it work on a40 2019

For rooting i have hacking and coding experience I can do ti

I don't understand what you mean. Support for other devices launched with Android 8 or later can be added to Auditor, but we currently lack the resources to handle the submitted samples. It will be done in the future.


fix: Remove bots in regex search

Fixes #957?
Context

https://github.com/jreleaser/jreleaser/issues/957
Checklist

[X] Review Contribution Guidelines.
[X] Make sure all contributed code can be distributed under the terms of the
Apache License 2.0, e.g. the code was written by
you or the original code is licensed under a license compatible to Apache License 2.0.
[ ] Update documentation when applicable.

 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.

hi @Sironheart, thank you for taking the time to send a PR. However, the proposed solution would skip any name that has "bot" on it. Most bots would be skipped (yay) but also any human account with "bot" (booo). I think it's best to not use an implicit value but rather leave it to the user to decide.
The actual problem is that the *bot regex is turned into .*\*bot.* by the toSafeRegexPattern() method. The better fix would be to not invoke said method and use the regex as is. This means the proper regex to skip accounts ending with "bot" would be .*bot.

Hey @aalmiray, just to make it clear: You'd like to remove the usage of the regex in this case (i.e. removing the second condition in the if) and would rather check for user defined postfixes? Does this sound right for you? :)
Thanks for your time until this point, would love to continue the contribution ☺

@Sironheart close. I still want to use the regex, but not the call to toSafeRegexPattern() as that changes the regex itself. The regex should be used "as is" written by the user, there should be no transformation at all.

Thank you 😄


PhantomJS error thrown when run pointed at offline domain

This error doesn't impede the user from accessing the tool's results, but an exception may need to be defined in the wrapper for this case. Also, I didn't see this error in any other case but to an offline domain.
Let me know if more info is needed.

Fixed. Errors now display whatever the error message is.


delay response

Describe the bug

hello,
a few days ago I installed this plugin, everything is working fine with some module switches but I have a delay of about 1-2secs when I click on the "switch" on the home app and the lights really turn on, but on the Tuya app is instantaneous.
Is anyone facing the same thing?
I'm using the country code 86 (on homebridge setup and Tuya app), but I am in Portugal, could it be the problem, or is the device_type the wrong one ?
I'm using the last version of the plugin and last version of homebridge
Homebridge Config
My setup
{
    "name": "TuyaWebPlatform",
    "options": {
        "username": myaccountemail,
        "password": mypassword,
        "countryCode": 86,
        "platform": "tuya",
        "pollingInterval": 600
    },
    "defaults": [
        {
            "device_type": "form"
        }
    ],
    "scenes": false,
    "platform": "TuyaWebPlatform"
}

thanks a lot for your help

Thank you for opening this issue;
I have not heard about this issue before and I am also not experiencing this myself.
I do suspect that this has something to do with the country code that you are using (china if I'm not mistaken) while being in Portugal. Using the Chinese country could means that you are also using the Chinese tuya servers. You might want to look into switching this country code (this could mean setting up a new account) and see if that helps you.

Thanks a lot @milo526
I will try your suggestion, the funny thing is even on homebridge it works just fine, I only have the delay on home app

hello @milo526
I just did what you propose and it works just fine :) changing the country code to 351 (Portugal) made it very responsive
thanks a lot for your help

Great to hear!


A failed execution

Thanks for filing a bug report! Please fill out the TODOs below.
Note: if you want to report a security issue, please read our security policy!
Test Case
hw_inco.zip
Steps to Reproduce
Run
wasmtime hw_inco.wat

Expected Results
Hello World!

Actual Results
Error: failed to run main module `xxx/hw_inco.wat`

Caused by:
    0: failed to instantiate "xxx/hw_inco.wat"
    1: command export 'one_i32_global' is not a function

Versions and Environment
Wasmtime version or commit: commit ID :35b750ab9a9c4e70e80c4a795e9f51d9f83ee6fc
Operating system: Ubuntu 20.04.1
Architecture: AMD Ryzen Threadripper 3960X
Extra Info
I have executed the same test case on wasmer and WAVM and the outputs are as expected.

By default, wasmtime does not allow unknown exports (such as one_i32_global) from command modules.
To run this with module with wasmtime, use the --allow-unknown-exports flag:
wasmtime --allow-unknown-exports hw_inco.wat

As this is by design with Wasmtime, I'm going to close this issue for now.
Thanks for reporting it to us!


Allow on-click to be set by command output in custom module

I have a use case for a custom module whose onclick handler opens a URL in a browser, but the specific URL is not static and must be constructed by the script.
It would be ideal if the json output format allowed me to set on-click, but looking at the code that does not appear supported.
Is there some other way to accomplish that?  How hard would it be to add support?

Right now, I think it should be possible to use the cffi module for this.

Another idea, have your script that provides the json for the module also write the URL to a certain file, e.g. $HOME/.cache/custom-url and then your on-click script reads that one.


Fix USB typo and inconsistency

See commits for the two replacements performed. The typo should 100% be fixed.

As far as I can tell, the CI pipeline is broken.

Thank you! I'm not allowed to merge though; let me know if you need me to make any changes!

Thanks! I agree the change makes it more understandable.


Dark mode can't be deactivated

When you disable darkMode in theme.config.js, I expect Nextra to be in light mode only. However, when you activate prefers-color-scheme: dark, the setting is overridden and the page is shown in dark mode. This is a problem if you have explicitly turned off dark mode before.
The error is due to next-themes that automatically detects such settings and sets the color scheme to dark.
My suggestion: Dark mode is an opt-out feature which means that if darkMode is disabled, no theming logic whatsoever is active. It doesn't make sense to include next-themes still (and use it'sThemeProvider) when dark mode is deactivated.
Unfortunately, right now the option to disable dark mode is not how you expect it to be (and probably not how it's wanted?).
(I'm on version 2.0.0-alpha.54 if that makes any difference)

Running into the same issue on the following project: https://github.com/smakosh/ontwik-ui
darkMode is turned off and default theme is set to light here: https://github.com/smakosh/ontwik-ui/blob/master/apps/public-docs/theme.config.js#L16
Still I'm getting dark mode when visiting the docs website: https://ontwik-ui.smakosh.com/

You can only allow light mode by setting the localStorage theme to 'light' whenever the localStorage theme has a different value. And only render the page when localStorage is 'light'.
in _app.js:
export default function Nextra({ Component, pageProps }) {
    const [canRender, setCanRender] = useState(false)

    useEffect(() => {
        if (window.localStorage.getItem("theme") !== "light") {
            window.localStorage.setItem("theme", "light")
        }
        setCanRender(true)
    }, [])

    return (
        canRender ? <Component {...pageProps} /> : <></>
    )
}

Let’s track fixing this unexpected behavior here https://github.com/shuding/nextra/issues/1389


Cannot publish WASI command-line tool.

There is a tool that can be built for WASI along with other non-wasm platforms.
But cargo wapm does not to publish it.
$ cargo wapm --dry-run
2022-08-12T21:39:43.681554Z  INFO publish: cargo_wapm: Publishing dry_run=true pkg="random-distributions-cli"
Error: Unable to publish "random-distributions-cli"

Caused by:
    The package doesn't contain a library with the "cdylib" crate-type

Or is WAPM only for libraries, not for executables, unlike crates.io?

I believe this was fixed in 34613bd059c27e4f0290240f5a6c7567889248b2 (v0.1.4).


Make modes and means optional

** Feature request**
The BPZ estimator is returning the posterior modes and means. I think it may be recommended that point estimators are optional because of computational expense.
See e.g. line:
https://github.com/LSSTDESC/rail_bpz/blob/main/src/rail/estimation/algos/bpz_lite.py#L578
Can we make the point estimators optional?
Before submitting
Please check the following:

[x] I have described the purpose of the suggested change, specifying what I need the enhancement to accomplish, i.e. what problem it solves.
[x] I have included any relevant links, screenshots, environment information, and data relevant to implementing the requested feature, as well as pseudocode for how I want to access the new functionality.
[x] If I have ideas for how the new feature could be implemented, I have provided explanations and/or pseudocode and/or task lists for the steps.

I think there's a bit more to it than that.
So, the line in question is:
qp_dstn.set_ancil(dict(zmode=zmode, zmean=zmean, tb=tb, todds=todds))
Which is just setting the already calculate values in the ancillary data.
zmean is computed a few lines above, in:
zmean[i] = (zgrid * pdfs[i]).sum() / pdfs[i].sum()
And zmode, tb, and todds are computed as part of self._estimate_pdf()
I had a closer look and it seems like tb and todds give information about the template choice and aren't really point estimates.
And zmode is used to compute tb and todds
So,

It would be easy to turn off zmean, but I doubt that is taking up much time
We could not include zmode, tb and todds, but that just saves space, not time, unless we turn off the computation.
Zmode is probably the slowest of the three, the other two just look like sums / pulling out values.

Do we have evidences that this is really slowing things down by a substantial amount (say more that 5% relative to the computation of the pdf itself)?

This was based on an original discussion with @aimalz Perhaps the point estimates are needed specifically for BPZ so should remain?

Well, the only thing that isn't BPZ specific is the mean.   I doubt that is taking up much time at all.
We could provide an option to turn off the combination of zmode, tb, and todds, but those seem kinda like something that is generally useful for bpz, so I would not make that the default.
So, barring evidence that computing zmode, tb and todds is slowing bpz down appreciably, my vote would be to do nothing at this time.

As Eric said, you get the zmode "for free" with BPZ because the algorithm computes the PDF on the input grid for every galaxy in the course of computing the likelihoods and posteriors.  So, it's literally just a single np.argmax command here: https://github.com/LSSTDESC/rail_bpz/blob/2d51caa261984467513608d158d9745b36bababc/src/rail/estimation/algos/bpz_lite.py#L512
tb was a feature request by someone, I can't remember who, and it's practically free, it's a simple check of elements of an already computed array, it's an argmax over the other direction of the array: https://github.com/LSSTDESC/rail_bpz/blob/2d51caa261984467513608d158d9745b36bababc/src/rail/estimation/algos/bpz_lite.py#L530
So, those two would be trivial amounts of compute time to not compute, and I think that's why we just write them out.
If we wanted to make those optional we could swap in code like that in e.g. rail_flexzboost with calculated_point_estimates here: https://github.com/LSSTDESC/rail_flexzboost/blob/b4ac032add2971018bb45b661642f94fdc656171/src/rail/estimation/algos/flexzboost.py#L243  (though without the if statements, since we know it is an interp distribution for BPZ), which should be fairly trivial.
Maybe we could create save_tb and save_todds flags (with defaults of True so you have to actively turn them off if you don't want to save) to not write those out?

I don't want to wade too deeply into a debate, but I agree that since zmode is "for free" it totally makes sense to keep it. But I get the sense that the same line of reasoning that we've applied to "don't do work in the __init__ method" probably applies here as well. i.e. if the user isn't explicitly asking for the mean, then perhaps it's not worth calculating 🤷 I certainly don't know the typical use cases though, maybe the general user expects the mean to be there by default.
Also, we did the work to abstract the point estimation logic out using the PointEstimateMixin here. in an attempt to consolidate the point estimation code to ease maintenance. But again, not knowing the details of bpz, perhaps it's very efficient to get the point estimates due to some earlier calculations.

Yes, we could use the PointEstimateMixin, but I since we are already computing the mode in self._estimate_pdf() requesting the mode would re-do that computation unless we put in extra stuff to catch that particular case.

I think the re-computation may be why I didn't update BPZ to use the mixin class (or I just forgot that we never addressed point-estimate computation it in this repo).  Whatever the case, we can definitely refactor the code here to allow for more customization by the user, as right now the ancil data returned is all hardcoded.
I seem to have a vague recollection of discussions of custom methods for point estimates when we knew they were efficient (e.g. mean calculation for mixmod being fairly simple, and cases where the  qp.interp grid is the same as the native storage grid for mode), though I think that discussion was for code in qp, and I think some of the custom functions may have been removed during a refactoring.  We can discuss what to do in terms of efficiency so that we're not duplicating work to re-compute the mode in the code.

Yes, I also recall the conversations about taking advantage of highly efficient code if it's available. And I'm pretty sure we had that conversation about zmode here as an example of where it makes sense not to use the mixin. So along the same lines, if the other point estimates are just as fast, then yeah, it total makes sense to keep things as they are (or add some commants about why they are the way they are)


Missing new line after spinner with debug flag

Expected behavior
------------------------------------------------------/
2020-11-20 09:36:52,596 [DEBUG] asyncio: Using selector: EpollSelector
2020-11-20 09:36:52,596 [DEBUG] lib.automate.pool: Initialized shared models in pool

Natural language processing ready!

Actual behavior
------------------------------------------------------/2020-11-20 09:36:52,596 [DEBUG] asyncio: Using selector: EpollSelector
2020-11-20 09:36:52,596 [DEBUG] lib.automate.pool: Initialized shared models in pool

Natural language processing ready!

Steps to reproduce
Additional context
Not really important just looks a bit weird.

Spent some time looking into this, apparently we can't just add a newline in the ModelPool. Since the logger can trigger while the spinner is running some unwanted formatting can occur.
`(substorm-nlp) [from@arch substorm-nlp]$ python lib/cli/cli.py -d DEBUG
Loading settings and nlp models...
------------------------------------------/
----2020-11-23 11:10:55,309 [DEBUG] asyncio: Using selector: EpollSelector
2020-11-23 11:10:55,309 [DEBUG] lib.automate.pool: Initialized shared models in pool
Natural language processing ready!
`


globalConnections make use of the same connection even for different hubs

Variable globalConnections are recycling connection by the conection rootpath.
In my app, I use the same rootpath for two hubs, but when the connection is created, I suppose the connecion store hub name information, so its not reusable with another hub.
I solve the problem setting useSharedConnection in false, but that is only deactivating this facility.
If you have two hubs, then one register first, then the other reuse the connection of the first. And that make the second hub fail. But it fails silently. You still can send commands to the server, but the commands received by the server are ignored. Even the signalR library don`t log it (with log enabled of course).
Sorry my english :D

Ok. i'm digging a little more...
Reading http://www.asp.net/signalr/overview/guide-to-the-api/hubs-api-guide-javascript-client
there is a note (search for "Note: Normally you register event handlers")
maybe it is related. the second hub is registered client events in a started connection.
I debugged the server side on the hub that doesn't work well and saw the Context.QueryString['connectionData'] property: it contains the hub name of the other hub.
maybe this too is part of the problem.

A single server hosts multiple hubs from the same root path '/signalr' being the default. I think you'll need to post your code to identify the real problem.


Installation error on macOS 10.13.6

When compiling the TDS, an error about <filesystem> happened. This same error also happened when I directly install python version.
[  6%] Built target rbdl-static
[  7%] Built target tinyxml2
[ 18%] Built target opengl_window
[ 19%] Built target cpp_base64
[ 22%] Built target dear_imgui
[ 23%] Built target crossguid
[ 78%] Built target zmq
[ 79%] Built target gtest
[ 80%] Built target gtestmain
[ 80%] Building CXX object test/CMakeFiles/test_rbdl_tds.dir/test_rbdl.cpp.o
In file included from /Users/ZilinSi/Downloads/tiny-differentiable-simulator/test/test_rbdl.cpp:3:
In file included from /Users/ZilinSi/Downloads/tiny-differentiable-simulator/test/./rbdl_test_utils.hpp:25:
In file included from /Users/ZilinSi/Downloads/tiny-differentiable-simulator/test/../src/utils/file_utils.hpp:3:
/Users/ZilinSi/Downloads/tiny-differentiable-simulator/test/../src/utils/filesystem.hpp:50:9: error:
      Could not find system header "<filesystem>" or "<experimental/filesystem>"
#       error Could not find system header "<filesystem>" or "<experimental/filesystem>"
        ^
/Users/ZilinSi/Downloads/tiny-differentiable-simulator/test/../src/utils/filesystem.hpp:66:17: fatal error:
      'filesystem' file not found
#       include <filesystem>
                ^~~~~~~~~~~~
2 errors generated.

Have tried the methods in: https://stackoverflow.com/questions/42633477/macos-clang-c17-filesystem-header-not-found.

set c++ flag libc++
upgrade the llvm
But neither solved the problem

xcode version: 10.1
clang version: 11.1.0

For old xcode, the filesystem might be located at other locations like /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/filesystem. If you find the location, then include this instead of <filesystem>  on this line

Thanks Arpit! So I looked into the directory you mentioned but there was no .
Instead, I upgraded the system to 10.15, xcode to 12.4 and clang to 12.0.0, and now it works well :)


ci/linux: enable the use of lavapipe to test the Vulkan backend

Since we don't have a mechanism to force-enable a backend from our configure, can we add something like:
for b in GL GLES VK; do
    grep -q "BACKEND_$b 1" builddir/libnopegl/config.h
done

?
The fail of the grep command should abort the CI, you may want to add a XXX backend to make sure it does that.

I would rather add the feature (in a portable way) in our configure in a separe PR, if that's ok with you.

I would rather add the feature (in a portable way) in our configure in a separe PR, if that's ok with you.

You mean reproducing the enable/disable/auto features mechanism from meson? Maybe we should consider replacing the configure.py with a meson.build with subprojects and warps at this point. I'm not confident this separate PR reaching main in a short time window, but if you want I can make a separate PR with the temporary grep check in the meantime.

I would rather add the feature (in a portable way) in our configure in a separe PR, if that's ok with you.

You mean reproducing the enable/disable/auto features mechanism from meson? Maybe we should consider replacing the configure.py with a meson.build with subprojects and warps at this point. I'm not confident this separate PR reaching main in a short time window, but if you want I can make a separate PR with the temporary grep check in the meantime.

We can just force enable the backends by requesting them explicitely from configure.py. That should be enough and make meson error out if dependencies are not meant.

EDIT: regarding the temporary check, that will only work for Linux / macOS but not on Windows (and vulkan is enabled there).

Yeah but macos and windows are less important since they're not running the tests; the risk here is to have all the tests from a backend being ignore because ubuntu or khronos may decide to change the way vulkan is being packaged.

EDIT: regarding the temporary check, that will only work for Linux / macOS but not on Windows (and vulkan is enabled there).

Yeah but macos and windows are less important since they're not running the tests; the risk here is to have all the tests from a backend being ignored because ubuntu or khronos may decide to change the way vulkan is being packaged.

I'll submit a patch for the configure.py in the upcoming days (it should not take too much time).


coprocessor: support stream aggregation

coprocessor: support stream aggregation
Relate to pingcap/tidb#5725

PTAL @AndreMouche

Using 3 TiKV, 1 PD, 1 TiDB, the 3 TiKV are on different servers.
The table schema as follows:
Create Table: CREATE TABLE `lineitem` (
  `L_ORDERKEY` int(11) NOT NULL,
  `L_PARTKEY` int(11) NOT NULL,
  `L_SUPPKEY` int(11) NOT NULL,
  `L_LINENUMBER` int(11) NOT NULL,
  `L_QUANTITY` decimal(15,2) NOT NULL,
  `L_EXTENDEDPRICE` decimal(15,2) NOT NULL,
  `L_DISCOUNT` decimal(15,2) NOT NULL,
  `L_TAX` decimal(15,2) NOT NULL,
  `L_RETURNFLAG` char(1) NOT NULL,
  `L_LINESTATUS` char(1) NOT NULL,
  `L_SHIPDATE` date NOT NULL,
  `L_COMMITDATE` date NOT NULL,
  `L_RECEIPTDATE` date NOT NULL,
  `L_SHIPINSTRUCT` char(25) NOT NULL,
  `L_SHIPMODE` char(10) NOT NULL,
  `L_COMMENT` varchar(44) NOT NULL,
  PRIMARY KEY (`L_ORDERKEY`,`L_LINENUMBER`),
  CONSTRAINT `LINEITEM_FK1` FOREIGN KEY (`L_ORDERKEY`) REFERENCES `orders` (`O_ORDERKEY`),
  CONSTRAINT `LINEITEM_FK2` FOREIGN KEY (`L_PARTKEY`,`L_SUPPKEY`) REFERENCES `partsupp` (`PS_PARTKEY`,`PS_SUPPKEY`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin

rows:6001215 && groups:1.5m && current PR
rows:6001215 && groups:1.5m && before
percentage decrease
rows:59986052 && groups:15m && current PR
rows:59986052 && groups:15m && before
percentage decrease

select count(L_ORDERKEY), sum(L_LINENUMBER) from lineitem group by L_ORDERKEY;
6.43 sec
7.27 sec
11.6%
31.05s
69.76s
55.5%

6.53 sec
7.36 sec
11.3%

---
---
---
---
---
---
---

select count(L_ORDERKEY) from lineitem group by L_ORDERKEY;
4.12 sec
4.84 sec
14.9%
19.78
49.03
59.7%

4.22 sec
4.61 sec
8.5%

---
---
---
---
---
---
---

select sum(L_ORDERKEY) from lineitem group by L_ORDERKEY;
5.00 sec
5.51 sec
9.3%
26.76
52.55

5.15 sec
5.72 sec

---
---
---
---
---
---
---

select avg(L_LINENUMBER) from lineitem group by L_ORDERKEY;
6.04 sec
6.21 sec
2.8%
32.26
61.08
49.1%

6.15 sec
6.39 sec
3.8%

---
---
---
---
---
---
---

select avg(L_ORDERKEY) from lineitem group by L_ORDERKEY;
5.97 sec
6.03 sec
1.0%
35.20
60.59
41.9%

6.20 sec
6.30 sec
1.6%

---
---
---
---
---
---
---

PTAL @winoros @AndreMouche @BusyJay

PTAL @AndreMouche @BusyJay

PTAL @AndreMouche

/run-integration-common-test tidb-test=pr/453 tidb=pr/5725 tidb-private-test=pr/453

PTAL @AndreMouche

rest LGTM.

/run-integration-common-test tidb-test=pr/453 tidb=pr/5725 tidb-private-test=pr/453

/run-integration-common-test tidb-test=pr/453 tidb=pr/5725 tidb-private-test=pr/453


License for previous versions of CPMD

Is only CPMD 4.3 distributed under the MIT license?
Can access be granted to earlier versions of CPMD downloaded from CPMD.org?
John J. Low
Argonne National Laboratory

Hi John,
at the moment we only have 4.3 - are there any known issues with this version on your side that would require older versions?

Kloeffelt,
Previous distributions of CPMD  contained some pseudopotential libraries and programs to analyze free energy surfaces.
I have attached a README.txt file with a description of the files.
It seems like a few of these programs are available at https://github.com/CPMD-code/Addons.  But not the pseudopotentials.
John
From: kloeffelt @.>
Date: Tuesday, March 14, 2023 at 4:25 PM
To: CPMD-code/CPMD @.>
Cc: Low, John J. @.>, Author @.>
Subject: Re: [CPMD-code/CPMD] License for previous versions of CPMD (Issue #12)
Hi John,
at the moment we only have 4.3 - are there any known issues with this version on your side that would require older versions?
—
Reply to this email directly, view it on GitHubhttps://github.com/CPMD-code/CPMD/issues/12#issuecomment-1468866077, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABQMQWSF55SJPLOZJDPEWA3W4DO55ANCNFSM6AAAAAAVRN4LEA.
You are receiving this because you authored the thread.Message ID: @.***>
This directory contains materials contributed by the users.

Goedecker.tar.gz        -  Goedecker Pseudopotential library (with  code for  PP generation)

cpmd-test.tar.gz        -  cpmd test suite, with input and reference outputs.

pseudo_std.tar.gz       -  standard CPMD pseudo library

pseudo_ext.tar.gz       -  extended CPMD pseudo library ( courtesy  by M. Boero)

pseudo_vdb.tar.gz       -  extended CPMD Ultrasoft pseudo library ( courtesy  by M. Boero and J. Hutter)

cpmd2xyz-scripts.tar.gz -  trajectory conversion tool ( courtesy A. Kohlmeier)

cpmd2cube.tar.gz        -  3D-maps generation and conversion tool

htmldoc.tar.gz          -  html-tree CPMD source generation tool ( courtesy of T. Deutsch)

non-std-inst.tar.gz     -  support files for installation on not standard architectures.

fourier.tar.gz         -  power spectrum of  autocorrelation function (courtesy A. Forbert)

Vreco_CPMD.tar.gz      -  Metadynamics free energy reconstruction tool (courtesy Nisanth Nair)

dev-test-suite.tar.gz  -  Developer Automatic test Suite (courtesy Sergei Ivanov and Gerhald Matthias) (Achtung- 40MB!!!)

Hi,
Are these going to be available to the public?
Thanks a lot for your help.