Diagonal or custom axis constraint?

Is it possible to define a custom axis at a given angle? I have a requirement to constrain movement along a 30 degree axis, but it appears the available constraints are only for the x and y axis?

This is a relatively exotic request, I don't think it would make sense to implement it in the lib.
Just to clarify: do you just want the dragged element to follow a 30deg slope, or do you want the drag gesture (ie the cursor) to start with a 30deg slope?

No worries, I thought that may be the case.
I want the dragged element to follow a 30deg slope.

In that case it should be fairly easy to implement this in your handler.
What the axis option does is more than just nullifying the other axis movement, it actually doesn't trigger the drag at all if the initial movement is on the other axis.
That means that if you start the movement on the other axis than the one you've specified, even the axis you have movement logic for will remain null until you restart the drag in the correct direction.
Hope this helps clarifying as why a custom angle for axis would be hard to implement and doesn't make much sense to implement on the lib's side.
I'll close this but if someone else has the same request I can always reconsider!

Thanks, I'll look into implementing it in my handler.


Convert examples/text-only/pdf2svg.js to await/async

This is my first pull request.

You're adding the function pageLoaded but it isn't called anywhere so it's useless.

Isn't the problem actually that the patch adds a new function, rather than simply replacing the old one (as intended)?

Oh! I've been confused because of the github UI.

Furthermore, was this successfully tested locally? There's also a number of linting failures, please remember to run gulp lint and fix all the reported problems. Finally, please squash the commits; see https://github.com/mozilla/pdf.js/wiki/Squashing-Commits

The second sentence of the commit message, or at least the "and corrected lint errors"-part, doesn't seem appropriate here since it suggests that there were lint errors in the old code which isn't actually the case.

The second sentence of the commit message, or at least the "and corrected lint errors"-part, doesn't seem appropriate here since it suggests that there were lint errors in the old code which isn't actually the case.

Oh, my bad! Fixed the commit message. 🙂


ssg/lib.rs generate_static_site see if we can write first let statement more concisely

That happened.


The final success message of the "executing a command" operation doesn't emit the "command"

Can LXD emit the finished command with the final "success" response like it does with the other messages?

Probably, I'm not sure what's clearing the metadata at that point, unless the completion message for an operation just never includes it?
Anyway, it's something we should sort out :)


vibe.core.net.1726 fails intermittently when compiled with dmd-2.072.2 and the libevent/libasync configurations

See https://travis-ci.org/rejectedsoftware/vibe.d/jobs/221892384 and https://travis-ci.org/rejectedsoftware/vibe.d/jobs/221892386 for failures examples. While I'm unable to reproduce these on my machines it seems to me that increasing the overall timeout to e.g. 2 seconds will help to avoid these.  Actually 2 seconds seems a lot to me for this test but since it is obvious that such case is hit I'd rather leave a potential performance optimization as a separate task.

Seems this is not an issue anymore. Closing.


M5StickC-Plus with MLX90640

Hello
I was using M5stickC and MLX90640. After some time, I bought the M5stickc plus. The advantage of M5stickc plus is that it has a large LCD, but when used with the MLX90640, the screen is displayed small. I am not good at Arduino, so I modified the source, but I did not get the desired result. Please modify it so that it is displayed on the full screen of m5stickc plus.

Hello @famtory
have you tried to use MLX90640 example for M5StickCPlus? You can find it here.
Thanks
Felix

Hello @famtory
ok, I see. I guess that is something M5Stack engineers need to fix then.
Thanks
Felix

About 3 weeks ago, version 0.0.6 was released.
But the result is the same.
I've been waiting for 3 months...
Why don't fix it yet?

I apologize for not being able to reply in time. You can try changing lines 22,3 of the sample program to
#define COLS              36 #define ROWS              30


interrupt::free: don't let the token escape the critical section

@homunkulus r+

:pushpin: Commit 03b94e6 has been approved by japaric

:hourglass: Testing commit 03b94e6 with merge 03b94e6...

:sunny: Test successful - status-travis
Approved by: japaric
Pushing 03b94e691b282002912433266be4ba74df64c6d7 to master...


Session reporting mode

It would be nice to have a reporting mode when only closed sessions are reported, 1 json record per session

Example session statistics
-Timestamp: begin, end
-Amount of 1s intervals with no data within the begin-end interval
-Bandwidth statistics*
-Bytes up/down
-RTT statistics*
-Number of packets
-Any error
*statistics: min, max, avg, stddev, 10%-90% percentile, data used to calculate these

Implementation started. Still not full functionality and code cleanup is needed.
--connection switch.
pull request: https://github.com/EricssonResearch/spindump/pull/214


Add fx and fy options for marks, to set the facet directly?

Marks have a stroke option that lets you set the color directly, bypassing color scales. Could Plot do the same for facets?
Suppose there were fx and fy options for marks, which can be used to set to the facet where you put the mark.
For example, to plot two graphs side by side:
Plot.plot({
    marks: [
      Plot.lineY(left, {x: (d, i) => i, stroke: "blue", fx: 0}),
      Plot.lineY(right, {x: (d, i) => i, stroke: "green", fx: 1})
    ],
})

The semantics might be similar to stroke, where you could either set it to be the same for all marks in that line, or supply a function to fx and fy to decide where to put the mark. If you don't say, the default might be to duplicate the mark in all facets along that dimension.
(This might not be true faceting, but it would be an easy way to plot small multiples.)

I don’t think we would support this. Feels too low-level.

A higher-level alternative might be to make channels of abstract values that are passed through the fx and fy scales, similar to the other scales.
That way the same array doesn't have to be passed in twice, for the mark and for facet's data option.

I just don’t see us doing this. Plot uses facets for partitioning a dataset, and this API proposal feels like something else.

Closing for now: it seems like the discussion https://github.com/observablehq/plot/discussions/874 is about the same issue, and has examples. I've added another example with a (tricky) transform from "facet names" to data.
WRT the comment "the same array doesn't have to be passed in twice", did you see that you can use facet: true to facet a mark which doesn't use the same data? (It's not entirely solving the issue, because it must be a data with the same cardinality & indexation scheme.)


Unencrypted traffic despite encrypt=true due to TLS feature flags disablement

I was playing around with wireshark and comparing sql auth (username / password) on linux in this library to Microsoft.Data.SqlClient in C#.
The code I was testing just performs login / disconnect to the database in both C# and Rust.
I was puzzled as to why the traffic using Tiberius was unencryped despite me using encrypt=true in the ADO.NET connection string.
I realized it was because I used default-features = false and did not opt backin to one of the TLS feature flags:
tiberius = { version = "0.12", default-features = false, features = ["tds73", "sql-browser-tokio", "time"] }

I'm filing an issue because perhaps this should be a panic at runtime?

Sure, I think a regular error is fine.

we can't know the intent before runtime

Could no encryption be a opt-in feature flag? Then perhaps it could be compile time.


Add Data node to test unit JSON

Addresses #71, main lib are now detected and linked.

PR updated.

@Unknwon The structure of the python-link-tests repository now is abnormal. In particular, in setup.py, you pass 'app/pkg0' to the packages arg of the setup function but "app/pkg0" is not the name of the package. The name of the package is "pkg0". Can you give an example of any other Python library that does it this way?
You also did not address the underlying issue of missing the import m1 reference. Instead, you changed the test case to omit that reference. It's fine if we are explicitly not supporting that case now, but you need to given an explanation beyond "PR updated." Otherwise, the reviewer can't make sense of this change.

The app/pkg0 issue has been fixed.
CI for push failed maybe because I use git push --force somehow breaks it
... but the pull request one succeed and I re-run the task to make sure it pass as well.

LGTM, @Unknwon please update the Python srclib image and re-run coverage.


Restructure to monorepo

Lets restructure this repo to be a "monorepo" where we can host multiple npm packages. This will allow to split the current monolith core/app into more manageable units (packages with dependencies) and it will also allow to bring back removed in-tree extensions (as packages in the monorepo).

This is actually something that we have already been drafting for a bit since the our future ambitions require distinguishing stuff like applications, libraries and features from each other with the idea that any of them can be published individually.
That being said, love it.


Fix nested selectors without parent declaration

What: Fix nested selectors without parent declaration

Why: Closes #255

How: Change the emotionClassRegex to only match if the class is at the start of the string.

Checklist:

[ ] Documentation N/A
[x] Tests
[x] Code complete

Codecov Report

Merging #256 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #256   +/-   ##
=======================================
  Coverage   90.23%   90.23%
=======================================
  Files          20       20
  Lines         963      963
  Branches      260      260
=======================================
  Hits          869      869
  Misses         76       76
  Partials       18       18

Impacted Files
Coverage Δ

src/index.js
94.09% <100%> (ø)
: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 19ce8b2...dcdb611. Read the comment docs.


Autoscroll to end when running tests

When tests are running a steps list should be scrolled automatically to the last test

fix


FixFix Follower Fe query queue may not work when exec alter

Proposed changes
When exec Alter query queue stmt, the alter stmt can be replayed in Follower.
The follower replayed workload group meta and create a new QueryQueue, this means there maybe multipe QueryQueue at the same time in Followers.
This could cause follower can not limit query as Workload group's property.
Solution
Move QueryQueue from WorkloadGroup to WorkloadGroupManager.
WorkloadGroup only keeps queryQueue's property.
But QueryQueue's lifecycle is managed by WorkloadGroupManager.

run buildall

run buildall


Kernel: infinite loop on nested inductive type

Prerequisites
Please put an X between the brackets as you perform the following steps:

[X] Check that your issue is not already filed:
https://github.com/leanprover/lean4/issues
[X] Reduce the issue to a minimal, self-contained, reproducible test case.
Avoid dependencies to Mathlib or Batteries.
[X] Test your test case against the latest nightly release, for example on
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)

Description
The following inductive type fails to get generated, and instead leads to a stack-overflow in the kernel:
inductive Foo (A : Type)
  | foo : A → Foo A

inductive Bar where
  | bar : Foo (id Bar) → Bar

Context
Since this discussion on the Zulip, I've been playing around with nested inductives to see if I could break anything. This discovery came up in a discussion with @hargoniX regarding the possibility of fuzzing the kernel.
My initial guess as to what may be happening here is that the m_nested_aux is getting infinitely populated when trying to remove nested occurences, because Bar is not syntactically equal to id Bar, and that this check isn't up to defeq.
I'm not sure whether the expected behaviour for this inductive should be to get accepted, or rejected directly, as it's not syntactically strictly positive. If the former, I believe the correct approach would be to apply what's described in this remark. If the latter, perhaps the positivity criteria should be extended to handle nested positivity as well, and be checked on nested inductives before reducing them into mutual inductives.
Versions
"4.12.0-nightly-2024-10-19"
Impact
Add :+1: to issues you consider important. If others are impacted by this issue, please ask them to add :+1: to it.

The status quo is certainly that positivity checking should not unfold definitions, and that this should be rejected. Changing that is of course worth discussing, but I'd consider rejecting this the correct immediate bug fix.

If this is supposed to be rejected, I'm not certain how that should be managed. Perhaps is_nested_inductive_app should be more restrictive in its detection of valid nested appearances, and have a more fine-grained traversal than just using find through the arguments of a nested appearance. i.e if one of the args is an application, it might want to recursively check that this application is a nested inductive application, and if not, return none. The non-valid appearance would then be detected when checking the mutual block, and an error would be thrown.

if one of the args is an application, it might want to recursively check that this application is a nested inductive application, and if not, return none

Right, that’s would be my expectation as well.


Update docker build to support adding a non-root default user

Resolves #22
Now running
DOCKER_EXTRA_ARGS="--build-arg MORPHEUS_USER=[YOUR_USER_NAME]" ./docker/build_container_dev.sh

Will create a new default user for the development container, with sudo privileges.

What's the purpose of this? I would have expected a non-root "morpheus" user, but I'm confused why it is useful to specify an arbitrary username at container build time via an arg.

@cwharris
Running as root within a container will stop you from mounting X11 into the container or easy GUI applications, I use it for debugging.
Another significant issue is that it is really annoying to run a dev container and have it create files in your current host user directory as the 'root' user. This allows someone to create the container with a user name/id that matches the user id of the user launching the container, so the permissions align.

Also, it's worth noting that the Docker best practices guide cautions against installing sudo in a container and suggests an alternative: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user

Closing since this is out of date. Can reopen with updated code.

Gonna poke at this again

Might create another PR based on 22.11


Blocky fonts in Chromium when the xorg adobe fonts are installed

This seems to be an upstream bug in Chromium triggered by Helvetica. There are some reports that it should have been fixed in 34, but I can easily reproduce in 35:
Install Helvetica:
font.fonts = [ pkgs.xorg.fontadobe75dpi ];
Rebuild and open chromium on a page that uses Helvetica e.g. http://vimeo.com/ondemand/internetsownboymovie
There are some potential workarounds mentioned here:
http://superuser.com/questions/726132/chrome-33-shows-ugly-blocky-pixelated-fonts-in-linux

This seems to be fixed now.


toBuffer with no data never fulfills promise

Discovered in relation to https://github.com/lovell/sharp/issues/1767 .  Also appears same as long closed https://github.com/lovell/sharp/issues/510
sharp(undefined, { raw: ... }).png().toBuffer()

never resolves or rejects.

Passing in an undefined input currently switches sharp into a WritableStream, in this case it would expect uncompressed, raw pixel data to be streamed in, the shape of which is defined by raw: ...
The above example is the same as using the sharp({ raw: ... })... syntax.
Are you expecting to use Stream-based input? If not, how are you planning to provide input data?

I had thought i was passing it a buffer, but i was accessing the wrong key of my object that held the buffers. :-) I thought that's what it was doing, was giving me a WritableStream, but I wasn't sure if it was valid to pass (undefined, { raw.. }) to it.
I'm thinking perhaps checking arguments.length then throwing if that doesn't match what would be expected?  (ie, if there are two arguments, but the first one is undefined, it probably means the user made a mistake, rather than the user intended to create a WritableStream)  .. that's the only way I can think of to achieve that without breaking the existing interface, anyway.
also, throwing on toBuffer() while there's nothing there? maybe?

The two-param constructor-function that allows the first param to be null/undefined was retained for backwards compatibility but I agree that it is confusing. Let's mark this as an enhancement to have that usage throw in the next major release.
(toBuffer() can't synchronously throw as input is asynchronously provided.)


Fix computeTagsDelta function

This patch modifies the tags comparison functions to fix a bug that was
recently observed in prow e2e tests.

Fixes computeTagsDelta function for pkg/db_instance/hooks.go

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.

/retest


Adjust dx and dy position of Plot.image marks

In the same way that Plot.text supports dx and dy attributes to adjust the positioning of the text, it would be great to afford similar behavior for Plot.image marks.
Looking at the svg image documnetation, it appears as if the only native option is to use a transform property.
We could expose dx and dy options to in the Plot API (to match Plot.text), and use them to assign the translate property where:
const transformX = dx || 0;
const transformY = dy || 0;
const transform = translate(dx, dy)

duplicate of https://github.com/observablehq/plot/issues/653, closed by #629


add sidebar component

As seen in snow-to-flow and upcoming gw-conditions. Used to create an expandable box to explain terms in more detail when clicked.

Merging, this just migrates code from past repo to new home.


As a user, who doesn't read the syllabary very well, I want to be able to mouse over phonetics or syllabary characters and see the other highlighted, so I can learn how the two line up.

Also need to do #67!

Acceptance criteria:

[ ] As a user who is not interested in this feature, I can easily disable it, so I don't have to deal with it

closed by #76


Set CALICO_IPV4POOL_CIDR and CALICO_IPV4POOL_NAT_OUTGOING in canal templates to prevent SNAT of default calico ip pool <IP_ADDRESS>/16

What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):

Create a Rancher provisioned custom cluster (test with Rancher v2.1.5/K8s v1.11.6 and Rancher v2.2.3/K8s v1.13.5) with the canal network provider
Create test echo deployment exposed via a NodePort with externalTrafficPolicy":"Local"kubectl run source-ip-app --image=k8s.gcr.io/echoserver:1.4
kubectl expose deployment source-ip-app --name=nodeport --port=80 --target-port=8080 --type=NodePort
kubectl patch svc nodeport -p '{"spec":{"externalTrafficPolicy":"Local"}}'

Test the service with curl from external hosts with IPs inside and outside the range <IP_ADDRESS>/16

Result:

The client_address returned by the echo service shows that traffic from IPs outside the range <IP_ADDRESS>/16 are not SNAT'd, as expected with externalTrafficPolicy":"Local"; however, IPs within the range <IP_ADDRESS>/16 are still SNAT'd.

Other details that may be helpful:
Whilst Calico is used for policy and not pod networking itself in canal, the CALICO_IPV4POOL_CIDR environment variable for the calico-node container within the canal pod is not set in the K8s v1.12 canal RKE template and is hard-coded to <IP_ADDRESS>/16 in the v1.13 template (https://github.com/rancher/rke/blob/master/templates/canal.go). Where this is not set calico configures a default of <IP_ADDRESS>/16.
The following iptables rules are programmed by calico on cluster nodes, to SNAT traffic from the calico ip pools to addresses outside this range:
-A POSTROUTING -m comment --comment "cali:O3lYWMrLQYEMJtB5" -j cali-POSTROUTING
-A cali-POSTROUTING -m comment --comment "cali:nYKhEzDlr11Jccal" -j cali-nat-outgoing
-A cali-nat-outgoing -m comment --comment "cali:Dw4T8UWPnCLxRJiI" -m set --match-set cali40masq-ipam-pools src -m set ! --match-set cali40all-ipam-pools dst -j MASQUERADE

ipset list on a cluster node will show that cali40masq-ipam-pools contains the calico IP pools, default <IP_ADDRESS>/16:
...
Name: cali40all-ipam-pools
Type: hash:net
Revision: 6
Header: family inet hashsize 1024 maxelem 1048576
Size in memory: 448
References: 1
Members:
<IP_ADDRESS>/16

Name: cali40masq-ipam-pools
Type: hash:net
Revision: 6
Header: family inet hashsize 1024 maxelem 1048576
Size in memory: 448
References: 1
Members:
<IP_ADDRESS>/16

As a result all inbound traffic to services from IPs in the range <IP_ADDRESS>/16 will be SNAT'd, regardless of whether this is desired, i.e. even NodePorts with externalTrafficPolicy":"Local" where traffic should not be SNAT'd.
Suggest that in order to resolve this CALICO_IPV4POOL_NAT_OUTGOING is set to "false" for the calico-node container in the canal template, to prevent programming of the cali-net-outgoing rule, and also CALICO_IPV4POOL_CIDR is set to "{{.ClusterCIDR}}" for consistency.
Workaround
Suggested workaround is to edit the default calico ippool to match the pod cidr range configured for the cluster kubectl edit ippools default-ipv4-ippool and ensure natOutgoing is not set (may lead to brief interruption to pod networking).
N.B. When performing this workaround you will see a panic panic: runtime error: hash of unhashable type model.IPPoolKey in the calico-node container logs, although the pool is successfully updated. Related issue is https://github.com/projectcalico/felix/issues/1965 which calls this out only with regards to go 1.12, but re-produced with calico version in k8s v1.11.6 and v1.13.5. Confirmed this particular error is fixed in latest versions, by manually bumping image to calico/node:v3.5.5 and noting panic not present.
Cluster information
Reproduced in a Rancher v2.1.5 provisioned K8s v1.11.6 cluster and a Rancher v2.2.3 provisioned K8s v1.13.5 cluster

not sure if this is caused by SNAT, but I suspect there is some relation to this with my issue.
One of the nodes are set inside a lan with the IP <IP_ADDRESS>, and it seems that its listening and announcing itself on this IP alone; perhaps adding to the confusion as both the LAN and cluster have common CIDR?
The node added with --address  and all other services and pods are working fine. but calico-node keep failing:
Liveness probe failed: Get http://<IP_ADDRESS>:9099/liveness: dial tcp <IP_ADDRESS>:9099: connect: connection refused
I've been looking into ways to make calico-node announce the node public IP but I'm having a hard time figuring out the correct way to do this without causing issues in future upgrades, got any suggestions?

@fjoesne This is not related, but sounds like an instance of https://github.com/rancher/rancher/issues/22848 You should Edit the Canal DaemonSet as Yaml, to add host: localhost to the liveness and readiness probes.

I have tried this as well, almost the same outcome with a slightly different error:
Liveness probe failed: Get http://localhost:9099/liveness: dial tcp [::1]:9099: connect: connection refused
Seems to be similar to what is mentioned here: pod calico-node on worker nodes with 'CrashLoopBackOff' #2720
I guess I could change the LAN for those nodes that exist in a LAN that the <IP_ADDRESS>/16 cidr overlaps, but then I can't count on that being an option in all cases.

Sorry my bad, logs wasn't available in the UI, I didn't notice actual errors until I ran docker logs on the node. It turns out to be caused by a combination of the #22848 issue as you suggested and that  net.ipv4.conf.all.rp_filter being set to 2 instead of 1 on the node.
Everthing is ok after I did a sysctl set net.ipv4.conf.all.rp_filter=1  on the node and updated the yaml
Thanks for your help 👍

Manual fix is working fine with RKE 1.1.2

I can confirm that this is still an issue on Rancher 2.5.9.
Note the following ipset created by Calico on my host nodes:
Name: cali40n:nRx4SY21lzeFN5tf99TYvGo
Type: hash:ip,port
Revision: 5
Name: cali40masq-ipam-pools
Type: hash:net
Revision: 6
Header: family inet hashsize 1024 maxelem 1048576
Size in memory: 440
References: 1
Number of entries: 1
Members:
<IP_ADDRESS>/16

I use multus to provide an OVSCNI based secondary network to certain workloads. If this secondary network uses IPAM in the range <IP_ADDRESS>/16 it gets caught by the MASQUERADE rule Calico places in the cali-nat-outgoing chain:
-A cali-nat-outgoing -m comment --comment "cali:Dw4T8UWPnCLxRJiI" -m set --match-set cali40masq-ipam-pools src -m set ! --match-set cali40all-ipam-pools dst -j MASQUERADE

This makes my secondary network useless because the source ip addresses of all packets are changed to a host address. It seems like:

Disabling the behavior by passing configuration to calico is a good idea as (I assume) it is not needed. If it were needed I doubt it is currently working as expected.
Or, ensuring that Calico understands that Rancher by default sets cluster_cidr: <IP_ADDRESS>/16" would make everything consistent and this problem would be eliminated.


Cannot run example project

After having issues using whisper.rn in my project i tried running the example project and i get the same error:

<EMAIL_ADDRESS>android
react-native run-android

info JS server already running.
info Installing the app...
<=============> 100% CONFIGURING [1m 10s]
<=============> 100% CONFIGURING [1m 11s]

IDLE

Task :react-native-fs:processDebugManifest
package="com.rnfs" found in source AndroidManifest.xml: C:\Users\eraldo\Desktop\better\whisper.rn\example\node_modules\react-native-fs\android\src\main\AndroidManifest.xml.
Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated.
Please instead set the namespace (or testNamespace) in the module's build.gradle file, as described here: https://developer.android.com/studio/build/configure-app-module#set-namespace
This migration can be done automatically using the AGP Upgrade Assistant, please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.

Task :react-native-zip-archive:processDebugManifest
package="com.rnziparchive" found in source AndroidManifest.xml: C:\Users\eraldo\Desktop\better\whisper.rn\example\node_modules\react-native-zip-archive\android\src\main\AndroidManifest.xml.
Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated.
Please instead set the namespace (or testNamespace) in the module's build.gradle file, as described here: https://developer.android.com/studio/build/configure-app-module#set-namespace
This migration can be done automatically using the AGP Upgrade Assistant, please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.

Task :whisper.rn:processDebugManifest
package="com.rnwhisper" found in source AndroidManifest.xml: C:\Users\eraldo\Desktop\better\whisper.rn\android\src\main\AndroidManifest.xml.
Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated.
Please instead set the namespace (or testNamespace) in the module's build.gradle file, as described here: https://developer.android.com/studio/build/configure-app-module#set-namespace
This migration can be done automatically using the AGP Upgrade Assistant, please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.

Task :react-native-fs:compileDebugJavaWithJavac

Task :react-native-zip-archive:compileDebugJavaWithJavac

Task :whisper.rn:compileDebugJavaWithJavac

Task :app:configureCMakeDebug[arm64-v8a]
C/C++: CMake Warning at C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++:   An old version of CMake is being used that cannot automatically detect
C/C++:   compiler attributes.  Compiler identification is being bypassed.  Some
C/C++:   values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++:   CMake's built-in compiler identification.
C/C++: Call Stack (most recent call first):
C/C++:   C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++:   C:/Users/eraldo/AppData/Local/Android/Sdk/cmake/3.18.1/share/cmake-3.18/Modules/CMakeDetermineSystem.cmake:93 (include)
C/C++:   CMakeLists.txt:28 (project)
C/C++: CMake Warning at C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++:   An old version of CMake is being used that cannot automatically detect
C/C++:   compiler attributes.  Compiler identification is being bypassed.  Some
C/C++:   values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++:   CMake's built-in compiler identification.
C/C++: Call Stack (most recent call first):
C/C++:   C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++:   C:/Users/eraldo/Desktop/better/whisper.rn/example/android/app/.cxx/Debug/6w31d6j3/arm64-v8a/CMakeFiles/3.18.1-g262b901-dirty/CMakeSystem.cmake:6 (include)
C/C++:   C:/Users/eraldo/Desktop/better/whisper.rn/example/android/app/.cxx/Debug/6w31d6j3/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: CMake Warning at C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++:   An old version of CMake is being used that cannot automatically detect
C/C++:   compiler attributes.  Compiler identification is being bypassed.  Some
C/C++:   values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++:   CMake's built-in compiler identification.
C/C++: Call Stack (most recent call first):
C/C++:   C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++:   C:/Users/eraldo/Desktop/better/whisper.rn/example/android/app/.cxx/Debug/6w31d6j3/arm64-v8a/CMakeFiles/3.18.1-g262b901-dirty/CMakeSystem.cmake:6 (include)
C/C++:   C:/Users/eraldo/Desktop/better/whisper.rn/example/android/app/.cxx/Debug/6w31d6j3/arm64-v8a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)

Task :app:configureCMakeDebug[armeabi-v7a]
C/C++: CMake Warning at C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++:   An old version of CMake is being used that cannot automatically detect
C/C++:   compiler attributes.  Compiler identification is being bypassed.  Some
C/C++:   values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++:   CMake's built-in compiler identification.
C/C++: Call Stack (most recent call first):
C/C++:   C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++:   C:/Users/eraldo/AppData/Local/Android/Sdk/cmake/3.18.1/share/cmake-3.18/Modules/CMakeDetermineSystem.cmake:93 (include)
C/C++:   CMakeLists.txt:28 (project)
C/C++: CMake Warning at C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++:   An old version of CMake is being used that cannot automatically detect
C/C++:   compiler attributes.  Compiler identification is being bypassed.  Some
C/C++:   values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++:   CMake's built-in compiler identification.
C/C++: Call Stack (most recent call first):
C/C++:   C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++:   C:/Users/eraldo/Desktop/better/whisper.rn/example/android/app/.cxx/Debug/6w31d6j3/armeabi-v7a/CMakeFiles/3.18.1-g262b901-dirty/CMakeSystem.cmake:6 (include)
C/C++:   C:/Users/eraldo/Desktop/better/whisper.rn/example/android/app/.cxx/Debug/6w31d6j3/armeabi-v7a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: CMake Warning at C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++:   An old version of CMake is being used that cannot automatically detect
C/C++:   compiler attributes.  Compiler identification is being bypassed.  Some
C/C++:   values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++:   CMake's built-in compiler identification.
C/C++: Call Stack (most recent call first):
C/C++:   C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++:   C:/Users/eraldo/Desktop/better/whisper.rn/example/android/app/.cxx/Debug/6w31d6j3/armeabi-v7a/CMakeFiles/3.18.1-g262b901-dirty/CMakeSystem.cmake:6 (include)
C/C++:   C:/Users/eraldo/Desktop/better/whisper.rn/example/android/app/.cxx/Debug/6w31d6j3/armeabi-v7a/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)

Task :app:configureCMakeDebug[x86]
C/C++: CMake Warning at C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++:   An old version of CMake is being used that cannot automatically detect
C/C++:   compiler attributes.  Compiler identification is being bypassed.  Some
C/C++:   values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++:   CMake's built-in compiler identification.
C/C++: Call Stack (most recent call first):
C/C++:   C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++:   C:/Users/eraldo/AppData/Local/Android/Sdk/cmake/3.18.1/share/cmake-3.18/Modules/CMakeDetermineSystem.cmake:93 (include)
C/C++:   CMakeLists.txt:28 (project)
C/C++: CMake Warning at C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++:   An old version of CMake is being used that cannot automatically detect
C/C++:   compiler attributes.  Compiler identification is being bypassed.  Some
C/C++:   values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++:   CMake's built-in compiler identification.
C/C++: Call Stack (most recent call first):
C/C++:   C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++:   C:/Users/eraldo/Desktop/better/whisper.rn/example/android/app/.cxx/Debug/6w31d6j3/x86/CMakeFiles/3.18.1-g262b901-dirty/CMakeSystem.cmake:6 (include)
C/C++:   C:/Users/eraldo/Desktop/better/whisper.rn/example/android/app/.cxx/Debug/6w31d6j3/x86/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: CMake Warning at C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++:   An old version of CMake is being used that cannot automatically detect
C/C++:   compiler attributes.  Compiler identification is being bypassed.  Some
C/C++:   values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++:   CMake's built-in compiler identification.
C/C++: Call Stack (most recent call first):
C/C++:   C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++:   C:/Users/eraldo/Desktop/better/whisper.rn/example/android/app/.cxx/Debug/6w31d6j3/x86/CMakeFiles/3.18.1-g262b901-dirty/CMakeSystem.cmake:6 (include)
C/C++:   C:/Users/eraldo/Desktop/better/whisper.rn/example/android/app/.cxx/Debug/6w31d6j3/x86/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)

Task :app:configureCMakeDebug[x86_64]
C/C++: CMake Warning at C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++:   An old version of CMake is being used that cannot automatically detect
C/C++:   compiler attributes.  Compiler identification is being bypassed.  Some
C/C++:   values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++:   CMake's built-in compiler identification.
C/C++: Call Stack (most recent call first):
C/C++:   C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++:   C:/Users/eraldo/AppData/Local/Android/Sdk/cmake/3.18.1/share/cmake-3.18/Modules/CMakeDetermineSystem.cmake:93 (include)
C/C++:   CMakeLists.txt:28 (project)
C/C++: CMake Warning at C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++:   An old version of CMake is being used that cannot automatically detect
C/C++:   compiler attributes.  Compiler identification is being bypassed.  Some
C/C++:   values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++:   CMake's built-in compiler identification.
C/C++: Call Stack (most recent call first):
C/C++:   C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++:   C:/Users/eraldo/Desktop/better/whisper.rn/example/android/app/.cxx/Debug/6w31d6j3/x86_64/CMakeFiles/3.18.1-g262b901-dirty/CMakeSystem.cmake:6 (include)
C/C++:   C:/Users/eraldo/Desktop/better/whisper.rn/example/android/app/.cxx/Debug/6w31d6j3/x86_64/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)
C/C++: CMake Warning at C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android-legacy.toolchain.cmake:415 (message):
C/C++:   An old version of CMake is being used that cannot automatically detect
C/C++:   compiler attributes.  Compiler identification is being bypassed.  Some
C/C++:   values may be wrong or missing.  Update to CMake 3.19 or newer to use
C/C++:   CMake's built-in compiler identification.
C/C++: Call Stack (most recent call first):
C/C++:   C:/Users/eraldo/AppData/Local/Android/Sdk/ndk/24.0.8215888/build/cmake/android.toolchain.cmake:54 (include)
C/C++:   C:/Users/eraldo/Desktop/better/whisper.rn/example/android/app/.cxx/Debug/6w31d6j3/x86_64/CMakeFiles/3.18.1-g262b901-dirty/CMakeSystem.cmake:6 (include)
C/C++:   C:/Users/eraldo/Desktop/better/whisper.rn/example/android/app/.cxx/Debug/6w31d6j3/x86_64/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)

Task :whisper.rn:configureNdkBuildDebug[arm64-v8a] FAILED
90 actionable tasks: 90 executed
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\eraldo\Desktop\better\whisper.rn\example\node_modules\react-native-zip-archive\android\src\main\java\com\rnziparchive\RNZipArchiveModule.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: C:\Users\eraldo\Desktop\better\whisper.rn\android\src\newarch\java\com\rnwhisper\RNWhisperModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build completed with 2 failures.
1: Task failed with an exception.

What went wrong:
Execution failed for task ':whisper.rn:configureNdkBuildDebug[arm64-v8a]'.

  Stop.

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.

What went wrong:
java.lang.StackOverflowError (no error message)

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

Get more help at https://help.gradle.org

BUILD FAILED in 4m 13s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\eraldo\Desktop\better\whisper.rn\example\node_modules\react-native-zip-archive\android\src\main\java\com\rnziparchive\RNZipArchiveModule.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: C:\Users\eraldo\Desktop\better\whisper.rn\android\src\newarch\java\com\rnwhisper\RNWhisperModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.

What went wrong:
Execution failed for task ':whisper.rn:configureNdkBuildDebug[arm64-v8a]'.

  Stop.

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.

What went wrong:
java.lang.StackOverflowError (no error message)

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

Get more help at https://help.gradle.org

BUILD FAILED in 4m 13s
at makeError (C:\Users\eraldo\Desktop\better\whisper.rn\example\node_modules\execa\index.js:174:9)
at C:\Users\eraldo\Desktop\better\whisper.rn\example\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (C:\Users\eraldo\Desktop\better\whisper.rn\example\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:82:7)
at async Command.handleAction (C:\Users\eraldo\Desktop\better\whisper.rn\example\node_modules\@react-native-community\cli\build\index.js:108:9)

info Run CLI with --verbose flag for more details.

Managed to run following the yarn commands but there is no way i can run inside my original project

Managed to run following the yarn commands

Yeah it should be mentioned in the readme.

but there is no way i can run inside my original project

Feel free to open an new issue if you have more error report about this by using the npm package.


Panic: rutime error

hi. im getting the following error when running CloudBrute with the included "storage_large.txt" wordlist:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x6543ee]

my tests with the smaller wordlist complete ok. my vps has over 1GB ram still available at time of crash.

Thanks for your report .
Please next time post full crash report,  luckily, I could reproduced  it this time, fixed in 1.0.4.
what a nasty bug .  https://github.com/0xsha/CloudBrute/releases/tag/v1.0.4
ps : feel free to re-open if you believe issue still exists


A Polling Operation

My current project has several network endpoints that I'm required to poll against. This is due to backend design, not desire, and I have no control over this requirement. As the number of endpoints I need to poll against has increased, my need for a generic solution has as well. So I've started doing so and while I have a prototype working, additional guidance would be appreciated. Here's what it looks like so far:
import Operations

typealias OperationGenerator = () -> Operation

class PollingOperation : GroupOperation {
    var activeOperation: Operation
    var delayOperation: DelayOperation

    private let operationGenerator: OperationGenerator
    private let interval: NSTimeInterval

    init(interval: NSTimeInterval, operationGenerator: OperationGenerator) {
        self.interval = interval
        self.operationGenerator = operationGenerator
        activeOperation = operationGenerator()
        delayOperation = DelayOperation(interval: interval)
        super.init(operations: [])
    }

    override func execute() {
        continuePolling()

        super.execute()
    }

    override func operationDidFinish(operation: NSOperation, withErrors errors: [ErrorType]) {
        if let pollable = operation as? Pollable {
            if pollable.shouldContinuePolling() {
                continuePolling()
            }
            else {
                finish()
            }
        }
    }

    func continuePolling() {
        delayOperation = DelayOperation(interval: interval)
        activeOperation = operationGenerator()
        activeOperation.addDependency(delayOperation)

        addOperations([delayOperation, activeOperation])
    }
}

protocol Pollable {
    func shouldContinuePolling() -> Bool
}

My main issue at the moment is how to make the Pollable protocol fully generic so I can add conformance to any arbitrary operation. Here's the current TestOperation:
class TestOperation : Operation {

    override init() {
        super.init()
        name = "Test Operation"
    }

    override func execute() {
        print("*** Executing TestOperation. ***")
        finish()
    }
}

extension TestOperation : Pollable {
    func shouldContinuePolling() -> Bool {
        let timeInterval = NSDate().timeIntervalSince1970
        let remainder = Int64(timeInterval) % 10

        print("*** shouldContinuePolling() for interval: \(timeInterval), remainder: \(remainder). ***")
        return (remainder != 0)
    }
}

Called like this:
let pollingOperation = PollingOperation(interval: 1) { () -> Operation in
    return TestOperation()
}
let queue = OperationQueue()
queue.addOperation(pollingOperation)

This works well in my limited testing. But I'd like to require OperationGenerator to create Pollable Operations but I can't seem to express that requirement in Swift. The initializer could use some work as well, as I don't like generating unnecessary operations just to get past the Swift initializer requirements.
In general, there may also be a use for an even more generic RepeatableOperation protocol. I'd appreciate any guidance or ideas here.

This is really interesting, as I've been thinking about creating repeating / retrying / exponential back-off Operation subclasses for v2.6.
My gut reaction to this is that you could make it a generic operation:
class PollingOperation<O where O: NSOperation, O: Pollable>: GroupOperation {
   let creator: () -> O
   let timeInterval: NSTimeInterval

   init(timeInterval: NSTimeInterval, creator: () -> O) {
     // etc
   }
}

I don't think there is a way to do it by using a typealias for the closure outside of a generic scope.
Take a look at ReachableOperation for a similar kind of repeating architecture too.

Hi @jshier the development branch now includes RepeatedOperation and RetryOperation from #154 (in addition to 2.5.1). Which I think will support your need for a polling operation directly.
I'm going to close this issue for now, if you have feedback regarding RepeatedOperation - feel free to re-open this issue, or start a new one.


Add helm version selection on catalog create

What kind of request is this (question/bug/enhancement/feature request):
Enhancement
Helm Version selection

When adding a catalog, user needs to be able to set the helm version for that catalog

This should be set on create and user should be warned they cannot update it
This cannot be updated

When selecting an app to deploy, user needs to see what version of helm that template is using
When user is selecting a template version, user needs to see what version of helm that template version uses

The enhancement is validated on Rancher master-head with latest UI
Confirm that for both global and project catalogs:

the helm version can be set when adding a catalog
the helm version can not be changed when editing the catalog
the helm v3 logo shows on the app deploying page

A bug is found during the validation
https://github.com/rancher/rancher/issues/25832


Tipped Arrows don't have enough tags/mecs

Denizen Developmental build 247, Spigot 1.12.1
Tipped arrows do not seem to have their own mechanisms/tags/etc. This makes it impossible to do direct copies of tipped arrows from one inventory to another without the tipped arrows reverting to an unusable state.

iirc it used to just be the durability... guess they changed it D:

Fixed in latest build. Cheers to quick and fast development lol

Beat THAT fix time, Insert Opposing Project Here!


Allow change styles of First, Prev, Next, Last buttons

I found that the library doesn't have any options for changing First, Prev, Next, Last buttons and can't click First and Last buttons as well

First and last buttons were not introduced up until a few days ago, The double arrows represent chunks navigation. I will add the ability to change the text of those buttons.

I do think it would be preferable to put the content inside those buttons into slots instead of props.

I wasn't planning on new props. I was going to put it in options.texts Seems like an over-complication to use slots, as I don't think HTML would be necessary

How about when font libraries such as ionicons or font-awesome are preferred?

I have made the component renderless, which means you can quite easily create your own template now, with the HTML structure that suits you.


[Feature]: Support Websockets

Is there an existing issue for this?

[X] I have searched the existing issues

Description
i m a fresh man to appsmith. when i use WebSocket in JSObject, i want to fetch out data from the ws connection, so i tried "storeValue", but it doesn not work. The console said "storeValue is not defined"
so could you provide a way to get the data out from ws message.
thanks!!!
code below:

Steps To Reproduce
1.exec code blow in JSObject
onToolPageLoad: () => {
var ws = new WebSocket("ws://<IP_ADDRESS>:8081/test")
ws.onopen = function () {}
ws.onmessage = (evt) => {
var j = JSON.parse(evt.data)
storeValue(("msg1", j.num)    ----->   this is where went wrong
console.log(j)
}
}
Public Sample App
No response
Version
Cloud
 Front conversations

@fresh-ji thanks for reporting this. Currently the platform does not support this but we'll take this up as a feature request

@fresh-ji , we had recently introduced an article that shows how to connect the Websockets using JSObjects (javascripts and native Websocket initialisation).
And via Mutations we have a way to retrieve the response coming from the sockets. You can check it out here below
https://community.appsmith.com/tutorial/integrating-websockets-appsmith


Error when construct a public key using uncompressed hex

Hi,
I found construction of public key using uncompressed hex always fails, for instance:
https://www.blockchain.com/btc/tx/89baa6934a2e790699804c1ae4a0b8f4e537244fb4dc78e4cdd5aabf59b2ea20
in output 0 of the above transaction, the pkscript is:
{'asm': '1<PHONE_NUMBER>78da4d534b6e1b310cbd0a914d378e0f905d5bb48081a245d36c0a64c3d1d0334a34d240a43cf02e07692f9793f45176826e8c91453ebe0f75f3faf2 04e761169a78113ad09af84c5189e924155fd9a48a5acc13952cbbd797bfa47c56fa5e0649f48d5b1536a1fb1866ae237d95735e38a30f08a96cb7682ea9592c99 02f884647516015a0f5861633406a0c8b2ef2d8967aa61a97a5fc2b14bf0ce23ba 3 OP_CHECKMULTISIG', 'hex': '5141045002000078da4d534b6e1b310cbd0a914d378e0f905d5bb48081a245d36c0a64c3d1d0334a34d240a43cf02e07692f9793f45176826e8c91453ebe0f75f3faf24104e761169a78113ad09af84c5189e924155fd9a48a5acc13952cbbd797bfa47c56fa5e0649f48d5b1536a1fb1866ae237d95735e38a30f08a96cb7682ea9592c992102f884647516015a0f5861633406a0c8b2ef2d8967aa61a97a5fc2b14bf0ce23ba53ae', 'reqSigs': 1, 'type': 'multisig', 'addresses': ['143ECVfiiA3wJVuqWK5z5e9r6pMA1TUnya', '18HCsjRGfaHqvW82Ba2UqDkiVZHR9UpSLk', '1FvXo7PSxHzFx79AwFF49zPaugGR7G5bb3']}
There are three public keys corresponds to three addresses. The first two are uncompressed, and the last one is compressed. When I try to transform the first uncompressed key to address,
s = "045002000078da4d534b6e1b310cbd0a914d378e0f905d5bb48081a245d36c0a64c3d1d0334a34d240a43cf02e07692f9793f45176826e8c91453ebe0f75f3faf2"
comp = False
if len(s)==66:
  comp = True
pub_key = PublicKey.from_hex(s)
address = pub_key.get_address(compressed=comp).to_string()

it reports an error: ecdsa.keys.MalformedPointError: Point does not lie on the curve
but it works well with the compressed key.
Is it a bug? Thanks.

These are not valid uncompressed public keys.
The following is a valid public key that will work: "0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"
Now, the reason that these fake public keys are in the blockchain is because in the past when people wanted to add data in the blockchain they were using multisig outputs (such as the above tx) to encode the data they wanted to store. These would never be spent, since they are not valid, but still the data would be stored in the blockchain for ever. There are other ways to store data and you can read more on that here:
http://www.righto.com/2014/02/ascii-bernanke-wikileaks-photographs.html
Now such storing is avoided and frown upon. Using OP_RETURN is the way to go to store data in the blockchain.

These are not valid uncompressed public keys.
The following is a valid public key that will work: "0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"
Now, the reason that these fake public keys are in the blockchain is because in the past when people wanted to add data in the blockchain they were using multisig outputs (such as the above tx) to encode the data they wanted to store. These would never be spent, since they are not valid, but still the data would be stored in the blockchain for ever. There are other ways to store data and you can read more on that here:
http://www.righto.com/2014/02/ascii-bernanke-wikileaks-photographs.html
Now such storing is avoided and frown upon. Using OP_RETURN is the way to go to store data in the blockchain.

Thanks for your quick reply. You are right. However, I still have some questions.
In the script_pub_key, there are public keys in the 'asm' which should correspond to the 'addresses' . In the above example, the compressed one (the third one)  can be transformed correctly. The other two uncompressed one doesn't work, and there are still two corresponding addresses.(So I have doubts if the decode code has some bugs.)
Since my purpose is to track balance of some addresses, my question is as follows:

'Address' may not be the same as the public key, so I cannot trust 'address', I should decode public key from the public key items by myself?
The above output has been spent, which can be observed in the blockchian.info., and there are only one valid public key, so I can deduce the transaction happens related to the valid one address?

Thanks.

Hi JunFang,
With "above example" you mean https://www.blockchain.com/btc/tx/89baa6934a2e790699804c1ae4a0b8f4e537244fb4dc78e4cdd5aabf59b2ea20  ?
These are P2MS addresses, the old multisig outputs, which do not have a corresponding address. In order to lock funds into those (or identify them for their balance) one have to know all the public keys and recreate the script_pub_key (Pkscript). These are not used anymore. For completeness the specific example has a 1-of-3 multisig scheme that requires only a single signature to spend the funds. Thus, it has 3... the 2 of them being data and the third one being a normal public key that can be used to spend it!
Nowadays multisig is wrapped in P2SH and thus they have addresses.
I hope I have answered your question (since I wasn't certain I understood it). If not, it would be helpful if you provide some code with the respective keys so that I can run it and understand better.

Hi, thanks for your comments.
Back to the example:
{'asm': '1<PHONE_NUMBER>78da4d534b6e1b310cbd0a914d378e0f905d5bb48081a245d36c0a64c3d1d0334a34d240a43cf02e07692f9793f45176826e8c91453ebe0f75f3faf2 04e761169a78113ad09af84c5189e924155fd9a48a5acc13952cbbd797bfa47c56fa5e0649f48d5b1536a1fb1866ae237d95735e38a30f08a96cb7682ea9592c99 02f884647516015a0f5861633406a0c8b2ef2d8967aa61a97a5fc2b14bf0ce23ba 3 OP_CHECKMULTISIG', 'hex': '5141045002000078da4d534b6e1b310cbd0a914d378e0f905d5bb48081a245d36c0a64c3d1d0334a34d240a43cf02e07692f9793f45176826e8c91453ebe0f75f3faf24104e761169a78113ad09af84c5189e924155fd9a48a5acc13952cbbd797bfa47c56fa5e0649f48d5b1536a1fb1866ae237d95735e38a30f08a96cb7682ea9592c992102f884647516015a0f5861633406a0c8b2ef2d8967aa61a97a5fc2b14bf0ce23ba53ae', 'reqSigs': 1, 'type': 'multisig', 'addresses': ['143ECVfiiA3wJVuqWK5z5e9r6pMA1TUnya', '18HCsjRGfaHqvW82Ba2UqDkiVZHR9UpSLk', '1FvXo7PSxHzFx79AwFF49zPaugGR7G5bb3']}
The two uncompressed public key are reported invalid using your library "pub_key = PublicKey.from_hex(s)", however, it can be correctly transformed into the addresses using bitcoinlib (https://github.com/1200wd/bitcoinlib), and the addresses are the same as the 'addresses' items in the script_pub_key
from bitcoinlib.keys import *

try:
   k = HDKey("045002000078da4d534b6e1b310cbd0a914d378e0f905d5bb48081a245d36c0a64c3d1d0334a34d240a43cf02e07692f9793f45176826e8c91453ebe0f75f3faf2")
except:
    print("invalid public key.")
else:
    address = k.address()
    print("%s, Compressed:%s"%(address,k.compressed))

Thanks JunFang,
I reopened the issue and I will look into it thoroughly.

I checked the linked library and it does not check the public key for validity of the public key (on the Bitcoin-used elliptic curve). It uses it as just some data which is possible to convert to address or anything else.
https://github.com/1200wd/bitcoinlib/blob/7a18b60601a88dd1809cfed367abc00ea0d2997b/bitcoinlib/keys.py#L747
The error you get is quite to the point. The point of the input (public key) is outside the elliptic curve (i.e. is invalid). From the point of view of my library anything you try to do with this key would be wrong.
I guess, I could add an option to ignore validity but to be honest I believe it protect users better as is -- and it would involve considerable changes because of my assumption that only valid keys are accepted.


Add a 'read write read' fuzz target for cssparser.

Nice. These are a good way to get some more trophies, it seems!

bors r+


Do not reuse the scikit-learn "neg_" semantic when reporting error

Scikit-learn is using a semantic where error are negated when using with the scoring API. The reason is that, grid-search object intend to always maximize a score and thus negating an error also works. However, by return on experience, it is a really confusing semantic for our user.
Up to know, skore is only "reporting" metric only. It does not need to optimize it. Therefore, there is no point for opting out for the confusing scikit-learn semantic.
I think that we should therefore report the error without negating it.

Related to #859

This reads like a duplicate of #859; if it is, please close this issue and add a comment on #859 instead

I already commented there but the discussion was centered on displaying the values. Here, I'm speaking about the entire semantic and API so for instance the parameter stored.
So feel free to close if you want to repurpose #859 to not only the display/plotting issue.

Closing as #859 has more context


Dynamic camera tweaks and fixes

Some simple tweaks and improvements to dynamic camera feel.

Added FlyTo curves
Increased max speed cap on manual mode

Todo: profile floating pawn vs dynamic pawn performance
Ref: #11

Thanks for the pull request @xuelongmu!

:heavy_check_mark: Signed CLA found.

Reviewers, don't forget to make sure that:

[ ] Cesium for Unreal Samples works.

@nithinp7 I tried to address some of your comments from #319, specifically:

Manual mode speed cap
Float curves
Fixed issue with speed multipliers not getting applied
I did another pass at the movement logic and simplified it. From the previous PR I had already implemented a way for the camera not to slow down when passing over things (as long as camera is looking reasonably far away). If you still notice it, let me know.

@argallegos Feel free to test this out as well. I had modified some of the speed curves compared with the tutorial, based on what I saw when creating the click to run demo.

This looks good to me. Any reason we can't merge it @nithinp7 or @argallegos?

Great work @xuelongmu I think this looks good on keyboard, I'm excited to try it out with a controller too when I get back to my apartment! Can you update the Changes.md? I can merge it then.

Thanks @nithinp7 @kring , changes have been updated 👍


Prod deployment not working, because SSL certificate missing

PROD deployment failed because SSL certificate for PROD not found/available,
output was:
WARN 7 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.IllegalArgumentException: Resource location must not be null

Problem
Problem is that prod SSL certificate

is no longer configured in prod profile
(was removed because of refactorings before going OSS)

Solution

define inside prod profile a configurable path to SSL certificate (should be a file path)


Max concurrency

@JonathanGiles could you take a review on the API changes here.

/azp run java - storage - ci


EventServiceProvider cache always error

Laravel Version: 8.44.0
PHP Version: 8.0.14
Database Driver & Version: PostgreSQL: 13

Description:
Hi all. Today I was supposed to add another event listener to my EventServiceProvider but by making a mistake I got an error in the event cache that cannot be cleared with the default artisan commands.
Steps To Reproduce:
My EventServiceProvider.  I made a mistake and placed them incorrectly in the listen array 👇,
protected $listen = [
        Registered::class => [
            SendEmailVerificationNotification::class,
            \SocialiteProviders\Manager\SocialiteWasCalled::class => [
                \SocialiteProviders\VKontakte\VKontakteExtendSocialite::class.'@handle',
            ],
        ],
    ];

Then i called php artisan event:cache and then i was getting an error. In any attempts to call any artisan commands i was always getting this error👇  (Even if I returned the code of my EventServiceProvider before the changes that caused the error ):
 Array to string conversion

  at vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/EventServiceProvider.php:36
     32▕         $this->booting(function () {
     33▕             $events = $this->getEvents();
     34▕
     35▕             foreach ($events as $event => $listeners) {
  ➜  36▕                 foreach (array_unique($listeners) as $listener) {
     37▕                     Event::listen($event, $listener);
     38▕                 }
     39▕             }
     40▕

The only way I was able to resolve this error was by returned the code of my EventServiceProvider before the changes that caused the error and manually editing the "vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/EventServiceProvider.php" file, in the getEvents() method, making it like this 👇 and run php artisan event:clear or php artisan event:cache
public function getEvents()
    {
        return array_merge_recursive(
            $this->discoveredEvents(),
            $this->listens()
        );

        if ($this->app->eventsAreCached()) {
            $cache = require $this->app->getCachedEventsPath();

            return $cache[get_class($this)] ?? [];
        } else {
            return array_merge_recursive(
                $this->discoveredEvents(),
                $this->listens()
            );
        }
    }

So is there a more elegant way to solve this problem?

Best that you manually remove the file created by your event cache at bootstrap/cache/events.php.


Change Autoplay by Slide

Hey!
First of all, congratulations for this great plugin! 💯
I was developing a slider and the request for my user was that he could change the speed of the autoplay for each slide, so that the text below the image with enough time; a bigger text would mean longer time on autoplay. I've searched for this within the documentation and couldn't find it.
I developed a solution for this based on your watcher onAutoplay and I wanted to share it with you, maybe it can be useful.
Basically what I did was add a class to a slide, "speed-x", in which x is how long in milliseconds the autoplay must run. So, for example, a slide with the class speed-8000 would stay visible for 8 seconds, but one with the class speed-2000 would only be visible for 2000 seconds.
I use jQuery to read the class on slide-active, parse the number on it, and then change the autoplay value with it.
I'm a noob in javascript, so my code may not be the best. How do I share it with you? I'm not used to Git as well.
Thanks in advance.

Hi, thanks! You can just share your code here and i will implement in swiper's core as required

So, for the HTML, I did the following:

And for the Javascript:
var swiper = new Swiper('.swiper-1', {
        pagination: '.swiper-pagination',
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev',
        paginationClickable: true,
        watchActiveIndex: true,
        spaceBetween: 30,
        centeredSlides: true,
        autoplay: 2500,
        loop: true,
        autoplayDisableOnInteraction: false,
        onAutoplay: function (swiper) {

        		var className = $('.swiper-slide-active').attr('class');

        		className = className.replace ( /[^\d.]/g, '' );

            	swiper.params.autoplay = className;

            	console.log(swiper.params.autoplay);
        }
});

Thanks!

Ok, thanks, i'll add something like this to the library


feat: Report FP / FN negative variants in single table

Change folder structure for fp-fn results, add collection of fp-fn results for all covs of a callset and all callsets of a benchmark.
Results for a each benchmark are currently sorted by callset and then coverage. No dependency sorting of the tables, yet.
New tables are not used in the datawzrd report yet and not requested by any rules.

@coderabbitai review

I added two more possibilities to render the results of the fp / fn variant tables in the report. I am unsure what is desirable:

Each folder contains the table per benchmark/genome(old view)/callset.
I would say we still need the view per genome as it also contains the calculations and a new view with a one table per callset that are sorted by benchmarks.


Add: Twitter-colour hexcode

Adding the colour hex-code for Twitter!!
related to: #37

Thanks @FayasNoushad !! ✨


What are the modules involved in general webRTC and draw flow diagram

With in the same network(LAN):

Signalling server
Web-socket
Client with WebRTC support(browsers)

When multiple networks involved::

Signalling server
Web-socket
Client with WebRTC support(browsers)
STUN/TURN servers

Completed in the issue #6.


Accordion Tabs

Okay, this is bugging the hell out of me, now.
I set up as simple a demo as I could, using Bourbon, Neat, and the Accordion Tabs css.
I compiled all three using Sass 3.4.9.
I added jQuery 1.11.2, and the script for the tabs.
This is brain-dead simple, and simply does not work at all.
The brain-dead demo.
What on earth is missing, here?

@shakna-israel are you sure you're loading jQuery the right way? In my head I have
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
...and it works. If I remove that one, or change it, I get the same result as you. I see that the js file is loaded but it doesn't seem to work for you.
If you still have trouble you can post your code and/or a screenshot of your document tree (to show how your files are set up).

If, in this tiny demo, I replace the local jQuery request with the API one, it doesn't seem to make a difference.
The whole thing is up at https://github.com/shakna-israel/refills-test/tree/gh-pages , because I've been trying to find out exactly where this whole thing is going wrong.

@shakna-israel taking a look...

@shakna-israel I think I found it. You wrote test instead of text in the script call.  Well, that's embarrassing. Thankyou, and sorry for being such a pain. The mispelling was the cause.


Refactor code

@dmetivie This PR contains a lot of changes, that shuffle a lot of code around to improve readability, so let me know if you have any questions. Most of them shouldn't affect your own code on the randomization PR, though.

@dmetivie This PR contains a lot of changes, that shuffle a lot of code around to improve readability, so let me know if you have any questions. Most of them shouldn't affect your own code on the randomization PR, though.

Thanks this look amazing. Exactly the sort of thing I had in mind. The whole package looks cleaner in my opinion.
I am trying to find time to finish my PR, I'll let you know if I have questions.


Storage implementation

Giving up on storage for now. will take too long. better get something usable by more users first.


Property:geographicOriginID

Label

Definition
An identifier for the set of location information (data associated with dcterms:Location). May be a global unique identifier or an identifier specific to the data set.

Usage
An identifier for the location terms specified in cd:geographicOrigin. May be a global unique identifier or an identifier specific to the collection.

Existing property
dwc:locationID

Existing class
Location

Existing property identifier
http://rs.tdwg.org/dwc/terms/locationID

Format
IRI

Required
No

Repeatable
Yes

Constraints

Examples
https://opencontext.org/subjects/768A875F-E205-4D0B-DE55-BAB7598D0FD1

Notes

In Darwin Core locationID is a unique identifier for the location class. In CD we don't have a location class, but the equivalent is the GeographicOrigin class. Therefore, we should perhaps have a geographicOriginId

Is cd:verbatimLocality really required?
I can't really imagine a scenario where is would either be useful or used.

Examples dwc for locationID: https://opencontext.org/subjects/768A875F-E205-4D0B-DE55-BAB7598D0FD1
I agree with Quentin that geographicOriginID is more according the standard

Updating definition to match dwc

Definition
An identifier for the set of location information (data associated with dcterms:Location). May be a global unique identifier or an identifier specific to the data set.

Dimension

Existing property
dwc:locationID

Existing class
Location

Existing property identifier
http://rs.tdwg.org/dwc/terms/locationID

Format

Required

Repeatable

Constraints

Examples
https://opencontext.org/subjects/768A875F-E205-4D0B-DE55-BAB7598D0FD1

Notes

Changed the property name

Deprecated in favour of generic Identifier class


Ignore scipy<1.0 is warned by using deprecated feature of numpy>=1.15

cupy/cupy#1702

Jenkins, test this please.

Jenkins CI test (for commit 102fd7aeedb5ad0a30bcdb4969a343add841aff8, target branch master) succeeded!

I checked pytest -m 'not ideep and not slow' tests/chainer_tests/ passes with numpy==1.15.2 and scipy==0.18.1 in my environment.

LGTM!


Admin notation and status of listing explanation

Q
A

Bug report?
no

Feature request?
no

Support request?
yes

Hello,
Could you explain the different status ( difference between published and new for exemple ) and what is Admin notation ?
If status is hidden , does it mean it won't be crawlable by google bot ,?
Thank you

Hello,

STATUS_NEW is the default status of a new listing. The listing is not publicly accessible.
STATUS_PUBLISHED means listing is published and is publicly accessible.
STATUS_SUSPENDED means the listing is temporary unpublished. The owner can publish it when he wants.
STATUS_DELETED means listing will not be accessible by anyone except by admin.
STATUS_INVALIDATED means admin has invalidated the listing and can not be published by the owner. The owner have to correct his listing informations and then change the status to STATUS_TO_VALIDATE before admin eventually publish his listing
STATUS_TO_VALIDATE means listing has to be validated by admin before being published.

If status is not published the listing is not crawlable.
Admin notation is a note given by the admin on a listing. This notation is used in the order by clause of the listing search query.


Update React links to react.dev site.

React related links point to old site reactjs.org whereas new site is being used react.dev This PR introduces links to react.dev proper pages.

Someone looking into this already?

I signed CLA right now so maybe some refresh is needed?


How to run this code

Hello, I'm just starting to learn this topic. Could you please guide me on how to run this code? Thank you!

Hi, thank you for the question.
You can install the prerequisites in the README, and then run some experiments using the commands there.
For instance, you can run experiments to solve inverse problem using command like below:
python example/inverse/macro.py
python example/inverse/micro.py
python example/inverse/hybrid.py
Thank you.


documentation of the database schema of auth-api

Done as part of the task #19

Commited and push to master, sorry :(
So please hold review comments in this card, after that I would like to do pull request with changes
https://github.com/TourmalineCore/auth-api


Fix Meteor linting in Hound

Blocked by https://github.com/houndci/linters/pull/97.

It seems like Hound actually runs the linter on each file. This doesn't help that much in terms of resolution issues. Maybe remove Hound altogether and just stick to CodeClimate? Their pace of development is also quite slow.
https://github.com/houndci/linters/issues/62#issuecomment-253483443

I've disabled Hound for now since it never catches errors anyway and doesn't support Stylelint. If it's worth it, we can reenable in the future.


[UIFlow 1.0] [JP] User Guide

Translate the "User Guide" in UIFlow 1.0 into Japanese.

Translation has finished.


fix bug for index greater than array's limit

fix bug for index greater than array's limit

:+1:
fn transact_get_kv_h256(&mut self, data: &[u8]) -> Option<H256> {
        let account = H160::from(&data[0..20]);
        let key = H256::from_slice(&data[20..52]);
        self.state.storage_at(&account, &key).ok()
}

Should we check length in get function?

Better to add unit test about the bug.


Made few enhancements on availability panel

Closes #165

[x] avoid forceful reloading of the page on task assignment
[x] display avatar if the image is broken
[x] use variables in CSS
[x] hide tasks and idle users when patch request is processing

Also, can you put a separator for mobile view?


Fix/fouc

Pull request checklist
Please check if your PR fulfills the following requirements:

[x] Docs have been reviewed and added / updated if needed (for bug fixes / features)
[ ] Lint (npm run lint) has passed locally and any fixes were made for failures

linting error: unable to resolve path to module '@emotion/styled'. More details below
Pull request type

Please check the type of change your PR introduces:

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

Current behavior
A momentary flash of un-styled content is happening before Javascript has loaded

Fixes #20
New behavior
Page is now displaying properly on initial page load. No flash of wrong styling.

Does this introduce a breaking change

[ ] Yes
[x] No

Other information
Overview of changes
New import syntax
One cause was how styled was being imported into all the files that use it. v10 of emotion required a slight change in the import.
// previous import
import styled from "react-emotion";

// v10 import
import styled from "@emotion/styled";

Import styled v10 docs
Global Styling
How global styles are implemented in v10 also changed. injectGlobal needed to be replaced with the Global component. Additionally, the global styles needed to be moved into layout.js in order for them to take effect.
Global styles in Gatsby with Emotion
Linting error
Because of the new import syntax ESlint is throwing an error, the build however is still successful.
Unable to resolve path to module '@emotion/styled'  import/no-unresolved
I was able to remove the error by adding "import/no-unresolved": 0 into .eslintrc.json
Possible solutions found
https://stackoverflow.com/questions/55198502/using-eslint-with-typescript-unable-to-resolve-path-to-module
https://github.com/kriasoft/react-starter-kit/issues/1180

@teisenhower Sorry for the delay in getting this merged. This looks good to me! Thank you so much for your hard work on this! 🍻

@chrisjm no worries! And not a problem at all! More than happy to help out.
Thanks! :metal:


[feature]: Vector DB helpers

As we discussed that we need the basic operations like C and queries on our vector DB.

@Micost These days I have sooooooooooo many assignments will due. So,  here is my new solution.
We use Huggingface transformers to replace sentence transformers. And it's has lots of benefits:

Reducing image size from 9.8GB-> 1.8GB
We can still using the models from sentenceTransformers, see my embedding issues.
We split the embeddings to three and more steps, it is more flexibility for us:

tokenization
embedding
normalization
mean-pooling
etc

The demo in embedding issue


Export diagram feature request

User story:
As a Cache' Class Explorer user I would like to be able to export the diagram to a .VDX or .XMI file that can be used by other programs.

Here's Cache<->XMI converter.

@fms2823, as Eduard mentioned, we have a tool that is able to export classes from Caché to XMI format. Is this the case you need? If so, you can close the issue.


set_root() argument

set_root() accepts URI or handler, while following examples are unclear.
>>> chainerio.set_root('')
>>> chainerio.set_root('foo')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/kuenishi/Library/Python/3.7/lib/python/site-packages/chainerio/__init__.py", line 172, in set_root
    default_context.set_root(uri_or_handler)
  File "/Users/kuenishi/Library/Python/3.7/lib/python/site-packages/chainerio/_context.py", line 82, in set_root
    raise RuntimeError("the URI does not point to a directory")
RuntimeError: the URI does not point to a directory
>>> chainerio.set_root('hdfs')
>>>

Argument '' is not a path but no error reported.
Argument 'foo' is supposed to mean relative local directory regarding "root" path or from current working directory?
Argument 'hdfs' is supposed to mean relative path of local directory, but it seems it's understood by ChainerIO as hdfs:/// URI.

Argument '' is not a path but no error reported
This is not documented, but '' works as a reset to the current working directory.

Argument 'foo' is supposed to mean relative local directory regarding "root" path or from current working directory?

Argument 'foo' is supposed to mean from current working directory

Argument 'hdfs' is supposed to mean relative path of local directory, but it seems it's understood by ChainerIO as hdfs:/// URI.

As the set_root accept the scheme, https://chainerio.readthedocs.io/en/latest/reference.html#chainerio.set_root
"hdfs" is recognized as scheme. If the hdfs refers to local directory, file://hdfs is the correct argument.

It should be wrong that 'foo' is relative path while 'hdfs' is understood as scheme, regarding URI specification. I would say this is a bug. Also, '' should not be current directory. No path specification does not define such behaviour, thus no user would expect it.

Maybe I had reviewed that documentation spec of the argument of set_root() before, I changed my mind that we can make it more natural.

The set_root() currently is a combination of create_handler,  root = xxx and set_default_handler, and I think the combination is what causes the confusion here. If the behavior of recognize the "hdfs" as the scheme in set_root is unnatural for you, then I would suggest that we split the functionality of this set_root, and make it create_handler (which exists), handler.root =  (which exists), and set_default_handler.
The later one seems more natural to me as well, what do you think? @kuenishi

I don't think that is a good idea, because it forces users to rewrite current one line of Python code, replacing with three lines. My suggestion is just to stop accepting a string that represents scheme, but to accept only URI (or URL, whatever). That removes confusion to users, and even removes unclearness of what  .root should be when scheme is given. Unclearness hereby, means that an empty string can't let users imagine it's a home directory for HDFS.  But if it's URI, for example, file:/// gives explicit notion of what .root should be.

Accidentally found I've repeated same discussion in https://github.com/chainer/chainerio/issues/86#issuecomment-560306816 .


Which file from the prebuilt image file do I point the onhub recovery tool to? I tried the entire zip file but it said it wasnt the correct format.

There is a bin inside gale.bin.tar.gz


Update mcmc to be compatible with v1.2

This PR updates the recipe to match with v1.2 and in particular to make use of the new Priors .
With the priors, there is no longer need for the sampling.py external file.
A comparison of two MCMC sampling algorithms is shown.

@facero, thank you a lot for the revival of this recipes. Once finished, it would be great to mention it in the central documentation!
Otherwise, do you understand why the tests are failing? @cgalelli, any idea?

I've updated the env yaml file as the previous failure seemed to be related to a python 3.12 not compatible .
but now the error message is even stranger :
Warning: Future Miniforge releases will NOT build Mambaforge installers. We advise you switch to Miniforge at your earliest convenience. More details at [https://conda-forge.org/news/2024/07/29/sunsetting-mambaforge/.](https://conda-forge.org/news/2024/07/29/sunsetting-mambaforge/)

We'll need to undertand how to fix this Mambaforge issue
Then :
  Warning: ERROR: executing pre_install.sh failed

  ERROR: executing pre_install.sh failed
Error: The process '/usr/bin/bash' failed with exit code 1

Thanks for your effort here @facero!
Left some inline comments. Was there a reason you removed the last part PeVatrons in CTA?  ?

Otherwise, do you understand why the tests are failing? @cgalelli, any idea?
The full test fail is related to this is suspect

Thanks for your effort here @facero! Left some inline comments. Was there a reason you removed the last part PeVatrons in CTA? ?
edit: can you correct the mcmc plot for the amplitude. The amplitude above the plot is showing 0.00+-0.00 due to the scientific notation!

This is related to the automatic corner plots generation not in my "simple" control.
Maybe there is a way to change that, for now I'm leaving it like that

One question that we need to think about is whether we want the sampling to be done in terms of factor or values.
I would have thought that working on close to unity values would have been better but I compared convergence and speed of both MCMC and it was the similar (i.e sampling 1e-12 or sampling 1).
By default I was working on factor but I realized that the model I define by default has scale = 1 for the amplitude :
Parameter(name='amplitude', value=5e-12, factor=5e-12, scale=1
So the factor and the value were the same. In order to scale the amplitude I had to use :
dataset.models.parameters.autoscale()
But this brings some complications for example in the trace or corner plots where the samples are shown without rescaling (amplitude close to 1 and lambda_ close to 1 even if true lamba is 0.01). The corner plot would show lambda = 5 whereas it really means 0.05. So it can be a bit confusing.
Do we leave everything in terms of factor :
p0 = [free_par.factor for free_par in dataset.models.parameters.free_parameters]
But just not rescale or do I change everything from free_par.factor to  free_par.values  which would simplify and avoid confusion ?
Opinions @Astro-Kirsty , @bkhelifi , @registerrier ?

After an in person discussion we decided to keep the free_par.values approach over the factor approach.
Using values has the advantage of printing/plotting the real values (1e-12) on the plots over the factor value (e.g. 1).

I clean the notebook and applied formatting on it.
I think it is now ready to merge. Let me know.


Enabling Application Insights

Can you add an explanation for enabling App Insight for the AML web services? Either when creating the service, or updating the service.

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

ID: e9f9f665-d8f6-5cf5-bdb8-01112cffd69b
Version Independent ID: 25000f70-6f17-5d8e-3603-db051cd266a2
Content: Azure Machine Learning Model Management Web Service Deployment
Content Source: articles/machine-learning/desktop-workbench/model-management-service-deploy.md
Service: machine-learning
GitHub Login: @aashishb
Microsoft Alias: aashishb

@dem108 Hi, thanks for your feedback here, I have assigned it to the author for updating the document properly.
@aashishb Hi, this is a doc-enhancement issue, can you please check it and update the document as necessary? Thanks a lot!

@YutongTie-MSFT - this article article exists for the new service.   https://docs.microsoft.com/en-us/azure/machine-learning/service/how-to-enable-app-insights

I recognize this article has been added on Oct 3 and address the issue very well. Thanks a lot!


Update example config documentation to account for cloud and standalone cases

You can use just the flux daemon and connect to cloud.weave.works, or you can run both components. These differ in a few respects, so need separate treatment if we are to give an example of both.

See #235.

Fixed by #235.


FEATURE: extend parser to calculate network prefix through given start- and endAddress

extend parser to calculate network prefix through given start- and endAddress
not all RDAP instances (ex. ripe) have the conformance level cidr0 enabled and the response is missing the cidr information.
cidr can be calculated through given start and end address.

Looks great to me, thanks! I'll bundle it into the next release after the usual checks. We WHOIS'd quite a bit of the IPv4 address space and seemingly didn't encounter this, but I'm happy to take your likely more authoritative word that there are some instances where fields are missing and this fallback is required.

This is bundled into the new 2.5.1 release that's on PyPI. Only tweak I made was to account of the (remote) possibility that the RDAP server may return nonsense start and end addresses which didn't resolve into at least one network. Thanks for your continued series of patches, most appreciated.

thanks!
I checked all the RIRs.
the ones that do not implement cidr0 is RIPE and LACNIC.
so if you query a address in the address space of ripe or lacnic, you should get the same result.
ex. <IP_ADDRESS> (ripe)
I placed a feature request at the RIPE DB working group.

Ah right yes I can see that difference now, thanks. Good catch.


Added instance fields and converted artists to object

Implemented user added collection fields on release instances. Also converted instances' artists property to array of DGArtist instead of a plain dictionary.

👍


Add nominee: CiviCRM

Automatic addition of a new nominee submitted through the online form available at https://digitalpublicgoods.net/submission

@nathanbaleeta Please note that the repositoryURL should point to a repo, not an organization.
Also I'm skeptical of the nominations that claim relevance to all SDGs. In my opinion this data is more useful if it's more targeted. In this case, I would say 16 and 17 ?

@nathanbaleeta Please note that the repositoryURL should point to a repo, not an organization.
Also I'm skeptical of the nominations that claim relevance to all SDGs. In my opinion this data is more useful if it's more targeted. In this case, I would say 16 and 17 ?

@lacabra I reached out to the contact person requesting them to point us to a more specific GIthub repo within the organization(Shall update once they respond). For the SDGs, I agree I had noticed that trend where a project claims relevance to almost all SDGs. For this case I will go with 16 and 17, though 9(Industry, Innovation and Infrastructure) could also apply.

@nathanbaleeta Please note that the repositoryURL should point to a repo, not an organization.
Also I'm skeptical of the nominations that claim relevance to all SDGs. In my opinion this data is more useful if it's more targeted. In this case, I would say 16 and 17 ?

@lacabra I reached out to the contact person requesting them to point us to a more specific GIthub repo within the organization(Shall update once they respond). For the SDGs, I agree I had noticed that trend where a project claims relevance to almost all SDGs. For this case I will go with 16 and 17, though 9(Industry, Innovation and Infrastructure) could also apply.

Latest changes include a more specific repositoryURL and more relevant licenseURL as archived in c7a0d76

@nathanbaleeta Please note that the repositoryURL should point to a repo, not an organization.
Also I'm skeptical of the nominations that claim relevance to all SDGs. In my opinion this data is more useful if it's more targeted. In this case, I would say 16 and 17 ?

@lacabra I reached out to the contact person requesting them to point us to a more specific GIthub repo within the organization(Shall update once they respond). For the SDGs, I agree I had noticed that trend where a project claims relevance to almost all SDGs. For this case I will go with 16 and 17, though 9(Industry, Innovation and Infrastructure) could also apply.

@lacabra updated the SDGs with latest information from contact person, they now include evidenceURLs and they point to more relevant SDGs than before. The updated information can be found in this commit b46a8b4


Apply addons

What this PR does / why we need it:

apply reconcile addons
automatically generate the description of the plan

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
xref #531
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

Apply reconcile addons

/retest

/retest

/retest


python311Packages.pymc: 5.10.3 -> 5.10.4

Description of changes
Currently fails to build because tensorflow is broken.
Changelog: https://github.com/pymc-devs/pymc/releases/tag/v5.10.4
cc @nidabdella

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 288766 run on x86_64-linux 1

4 packages built:

python311Packages.bambi
python311Packages.bambi.dist
python311Packages.pymc
python311Packages.pymc.dist

@ofborg build python311Packages.pymc


[in_app_purchase][android] Empty PurchaseDetails on payment method update

Steps to Reproduce
In a test environment, purchase a renewing subscription. After purchase, update payment method to "Test card, always declines" and wait for subscription to enter SUBSCRIPTION_STATE_IN_GRACE_PERIOD status. Change payment method back to "Test card, always approves". The purchaseStream emits mostly blank PurchaseDetails:
PurchaseDetails
  error: null
  pendingCompletePurchase: false
  productID: ""
  purchaseID: ""
  status: PurchaseStatus (PurchaseStatus.purchased)
  transactionDate: null
  verificationData: PurchaseVerificationData
    localVerificationData: ""
    serverVerificationData: ""
    source: "google_play"
    hashCode: 505284356
    runtimeType: Type (PurchaseVerificationData)
  hashCode:<PHONE_NUMBER>
  runtimeType: Type (PurchaseDetails)

Expected results:
Purchase details with usable information

Code sample
class SubscriptionManager extends ChangeNotifier {
  StreamSubscription<List<PurchaseDetails>> _subscription;
  final InAppPurchase iapConnection = InAppPurchase.instance;
  IAPStoreState storeState = IAPStoreState.loading;

  SubscriptionManager() {
    final purchaseUpdated = iapConnection.purchaseStream;
    _subscription = purchaseUpdated.listen(
      _onPurchaseUpdate,
      onDone: _updateStreamOnDone,
      onError: _updateStreamOnError,
    );
  }

  @override
  void dispose() {
    _subscription.cancel();
    super.dispose();
  }

  void _onPurchaseUpdate(List<PurchaseDetails> purchaseDetailsList) async {
    for (var purchaseDetails in purchaseDetailsList) {
      await _handlePurchase(purchaseDetails);
    }
    notifyListeners();
  }

  Future<void> _handlePurchase(PurchaseDetails purchaseDetails) async {
    if (purchaseDetails.status == PurchaseStatus.purchased) {
      // Verify purchase on server
      // This is failing after payment method update, because there is no purchaseID or productID in the purchaseDetails
      ResultTuple resultTuple = await verifyPurchase(purchaseDetails);

      if (resultTuple.success) {
        // Grant access to subscription-only content
      } else {
        // Show failure message
      }
    }

    // Always call completePurchase to avoid stranding pending transactions
    if (purchaseDetails.pendingCompletePurchase) {
      await iapConnection.completePurchase(purchaseDetails);
    }
    storeState = IAPStoreState.available;
    notifyListeners();
  }

  void _updateStreamOnDone() {
    _subscription.cancel();
  }

  void _updateStreamOnError(dynamic error) {
    // Handle stream error
  }
}

Flutter doctor
flutter doctor -v
[✓] Flutter (Channel stable, 3.3.9, on macOS 12.6 21G115 darwin-arm, locale en-US)
    • Flutter version 3.3.9 on channel stable at /Users/tomreis/Development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b8f7f1f986 (8 weeks ago), 2022-11-23 06:43:51 +0900
    • Engine revision 8f2221fbef
    • Dart version 2.18.5
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/tomreis/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.74.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.56.0

[✓] Connected device (3 available)
    • KB2007 (mobile) • 427a43fe • android-arm64  • Android 12 (API 31)
    • macOS (desktop) • macos    • darwin-arm64   • macOS 12.6 21G115 darwin-arm
    • Chrome (web)    • chrome   • web-javascript • Google Chrome 109.0.5414.87

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Hi @tmichaelreis
I'm not sure I understand the above reproduction steps well. How to track purchaseStream while we are only updating payment method at Google Play store? Does it need to purchase again after each time updating payment method?

Can you please elaborate on it step by step?
Also, what is your current in_app_purchase plugin version? Can we use in_app_purchase example  to reproduce this issue?

I'm using in_app_purchase version 3.0.8.
We aren't trying to change anything after updating the payment method in Google Play store. In fact, we aren't expecting to see a purchased event at all when changing the payment method. Our code always responds to events from the purchaseStream, so these empty PurchaseDetails are unexpected.
I don't have time right now to create a reproduction with the example project. For now, our team will just ignore PurchaseDetails with empty strings for the productID or purchaseID:
Future<void> _handlePurchase(PurchaseDetails purchaseDetails) async {
  if (purchaseDetails.status == PurchaseStatus.purchased &&
      purchaseDetails.productID != '' &&
      purchaseDetails.purchaseID != '') {
    # Handle legitimate updates only
  }
}

I'm closing this issue for now. I'll re-open it if I find time to create a reproduction with the provided example.