cant install error, even with sudo

I can't get weex too install even when i do
sudo bash -c "npm install -g weex-toolkit"
sudo bash -c "npm install -g weex-toolkit"                                                                                15:05:45
[sudo] password for archangel:
npm WARN deprecated<EMAIL_ADDRESS>Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated<EMAIL_ADDRESS>to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
/usr/bin/weex -> /usr/lib/node_modules/weex-toolkit/bin/weex

><EMAIL_ADDRESS>postinstall /usr/lib/node_modules/weex-toolkit/node_modules/spawn-sync
> node postinstall

><EMAIL_ADDRESS>postinstall /usr/lib/node_modules/weex-toolkit/node_modules/weex-previewer
> node ./src/hook/post-install.js

Error:permission denied.Please apply the write premission to the directory: "/root"

><EMAIL_ADDRESS>postinstall /usr/lib/node_modules/weex-toolkit/node_modules/xtoolkit
> node ./src/hook/post_install.js

init toolkit directory error!
we suggest you run "sudo chmod 777 ~" and re installor you can try "mkdir ~/.xtoolkit&&chmod 777 .xtoolkit"
/usr/lib/node_modules/weex-toolkit/node_modules/xtoolkit/src/util/index.js:40
            throw e
            ^

Error: EACCES: permission denied, mkdir '/root/.xtoolkit'
    at Object.fs.mkdirSync (fs.js:891:18)
    at Object.exports.init (/usr/lib/node_modules/weex-toolkit/node_modules/xtoolkit/src/util/index.js:34:16)
    at Object.<anonymous> (/usr/lib/node_modules/weex-toolkit/node_modules/xtoolkit/src/hook/post_install.js:7:6)
    at Module._compile (module.js:573:30)
    at Object.Module._extensions..js (module.js:584:10)
    at Module.load (module.js:507:32)
    at tryModuleLoad (module.js:470:12)
    at Function.Module._load (module.js:462:3)
    at Function.Module.runMain (module.js:609:10)
    at startup (bootstrap_node.js:158:16)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/weex-toolkit/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>postinstall: `node ./src/hook/post_install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-08-22T20_07_20_853Z-debug.log

error.txt
Why do i need to make those changes suggested?
what does it need to write in /root ?

Hi @japrogramer , I had the same issue. I suggest you to read the troubleshooting section from the docs. https://github.com/weexteam/weex-toolkit#trouble-shooting
I believe it write some config files in your root path.

https://github.com/weexteam/weex-toolkit#2


Add support for including specific tags in resource-metadata output

Following on from #291 we need to include some AWS Tag metadata in the audit logs, so that retrospective processing (eg: cost savings reports) can correctly attribute cost/savings back to the workload owners, which are identified by a couple of specific AWS tags.
It's probably "too much data" to incude all Tags/Values

Done


Drop Python 3.7 and adopt new best practices

Signed-off-by: Bernát Gábor<EMAIL_ADDRESS>

I think this was supposed to be named "Drop Python 3.6..."

I think this was supposed to be named "Drop Python 3.6..."

Oh, 🤦♂ indeed sorry

Oh, 🤦♂ indeed sorry


error recieving message

pvpcraft-14 TypeError: Cannot read property 'id' of null
pvpcraft-14     at WebSocket.websocket.onmessage (/Bots/pvpcraft/node_modules/discord.js/lib/Client/InternalClient.js:2240:48)
pvpcraft-14     at WebSocket.onMessage (/Bots/pvpcraft/node_modules/ws/lib/WebSocket.js:442:14)
pvpcraft-14     at emitTwo (events.js:111:20)
pvpcraft-14     at WebSocket.emit (events.js:191:7)
pvpcraft-14     at Receiver.ontext (/Bots/pvpcraft/node_modules/ws/lib/WebSocket.js:841:10)
pvpcraft-14     at /Bots/pvpcraft/node_modules/ws/lib/Receiver.js:536:18
pvpcraft-14     at Receiver.applyExtensions (/Bots/pvpcraft/node_modules/ws/lib/Receiver.js:371:5)
pvpcraft-14     at /Bots/pvpcraft/node_modules/ws/lib/Receiver.js:508:14
pvpcraft-14     at Receiver.flush (/Bots/pvpcraft/node_modules/ws/lib/Receiver.js:347:3)
pvpcraft-14     at Receiver.opcodes.1.finish (/Bots/pvpcraft/node_modules/ws/lib/Receiver.js:541:12)

Not sure if this is a problem with my code but it look's like it may be an issue with the lib. Not on latest but it's close.

lib/Client/InternalClient.js:2240:48 is nowhere near onMessage though

I'll look into it, idk how old the version was, forgot non does not update from git unless you force it to.


Cross build from mac to windows 10 cannot be launched with 'cannot find webview2loader.dll'

Problem
I cross build from mac to windows with following command.
cargo build --release --target=x86_64-pc-windows-gnu

Launch it on windows 10 give me an error message says "cannot find webview2loader.dll".
I followed the instruction on https://developer.microsoft.com/zh-cn/microsoft-edge/webview2/#download-section and installed the edge webview2 runtime.
Issue persists.
Expected behavior
Application could be launched normally on windows 10.
Environment:

Dioxus version: 0.3.2
Rust version: 1.68
OS info: windows 10
App platform: desktop

@Demonthos mcvc toolchain cannot run in macOS, at least I didn't find a proper way, do you know how?

@AllenDang Check out https://github.com/rust-cross/cargo-xwin.
cargo xwin build --target x86_64-pc-windows-msvc works on Linux and generates a working EXE binary. I don't own any Apple devices so I can't test on macOS.

I don't own any Apple devices so I can't test on macOS.

I can confirm that it works on macOS too

Running the suggested setup as follows on macos:
rustup target add x86_64-pc-windows-msvc
cargo install cargo-xwin
cargo xwin build --target x86_64-pc-windows-msvc

The binary is compiles perfectly fine as you can see here (running on windows):

This issue may be closed. One could consider documenting these steps to cross-compile, although I'd say this is a pretty standard approach to cross-compilation when targeting msvc. Maybe one could state somewhere that Tauri does only compile for msvc target, so it is more obvious.


Upgrade to version 5.1.0

This version introduces a few bugfixes and changes:

The vcf-expression-annotator now uses the gene column in order to match up entries by Ensembl gene ID (https://github.com/griffithlab/VAtools/pull/66)
The vcf-readcount-annotator now also annotates forward and reverses strand allele counts (https://github.com/griffithlab/VAtools/pull/72)

The Docker container is now based on the python 3.11 base image (instead of ubuntu) so that might introduce some subtle differences although I don't believe any changes are necessary in how we call the tools.
Due to these somewhat extensive changes, I would suggest to do a test immuno.wdl run before merging.

I performed a full test of immuno.wdl with this PR applied.  It provided me with this example of the impact of this fix.
A variant was called in the gene: LILRB2 and the transcript selected in pVACview (aggregate report) was: ENST00000391749.4 (ENSG00000131042).
The kallisto gene_abundance.tsv shows:
gene_name	gene	abundance	counts	length
LILRB2	ENSG00000131042	1.22981410950827	37.4431712278154	1519.92061351928
LILRB2	ENSG00000274513	0.523648071417863	3.67733451548483<PHONE_NUMBER>1207
LILRB2	ENSG00000275463	0.229592362639494	4.14209850196773<PHONE_NUMBER>03266
LILRB2	ENSG00000276146	2.85862722432629	94.9987124328477	1659.00595957922
LILRB2	ENSG00000277751	0.170873793229455	1.42026247930074<PHONE_NUMBER>92377

Before the VAtools fix, the gene expression value annotated into the VCF was 5.013 (the sum of all genes with the ambiguous name "LILRB2", instead of just the one correct one).  After the fix, the gene expression value was 1.230 (the correct gene and transcript).

Additional examples followed the same pattern and we should now also see gene expression values for genes that did not have an ID at all.

Also reviewing the parsing of ADF and ADR (for DNA) and RADF and RADR (for RNA) annotations for forward and reverse strand depth.
VCF record before and after applying this PR:
chr22	49885855	.	G	A	GT:AD:AF:DP:F1R2:F2R1:FAD:SB:MQ0:MQ0FRAC:RDP:RAF:RAD:GX:TX	0/0:103,0:0.0:103:41,0:40,0:83,0:58,45,0,0:.:.:.:.:.:.:.
chr22	49885855	.	G	A	GT:AD:AF:DP:F1R2:F2R1:FAD:SB:ADF:ADR:MQ0:MQ0FRAC:RDP:RAF:RAD:RADF:RADR:GX:TX	0/0:103,0:0.0:103:41,0:40,0:83,0:58,45,0,0:57,0:46,0:.:.:.:.:.:.:.:.:.

The new annotations do indeed appear to be present.

This PR appears to be behaving as expected.


User/erlangl/fixforpaul

@pmpurifoy - This PR would bring your branch in-line with the feature branch. You can either merge it as is or you can just sync your branch with the feature branch. (if you do so, you'll have one conflict in the sln file to manually resolve. You just keep everything.

/azp run TransportPackage-Foundation-PR


Enable ReadTheDocs

[ ] Closes #xxxx
[ ] I am familiar with the contributing guidelines
[ ] Tests added
[ ] Updates entries in docs/sphinx/source/reference for API changes.
[ ] Adds description and name entries in the appropriate "what's new" file in docs/sphinx/source/whatsnew for all changes. Includes link to the GitHub Issue with :issue:`num` or this Pull Request with :pull:`num`. Includes contributor name and/or GitHub username (link with :ghuser:`user`).
[ ] New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.
[ ] Pull request is nearly complete and ready for detailed review.
[ ] Maintainer: Appropriate GitHub Labels (including remote-data) and Milestone are assigned to the Pull Request and linked Issue.

I've created a ReadTheDocs project for this repo (https://readthedocs.org/projects/solarfactors/) and enabled PR builds.  This PR just adds a configuration file (copied from pvlib-python).

Docs build looks good :+1:.  Merging this should get http://solarfactors.readthedocs.io/en/latest working.  There won't be a stable until we tag a new version.


Need to get the Minimize button working

There doesn't appear to be a way to do this programmatically that Slint officially exposes.
It's possible I could do it using the internal private API, as mentioned here for focusing a window: https://github.com/slint-ui/slint/discussions/2979
This might also be relevant for Issue #1, as I might need to use the private api for hiding and showing the window

Closed in Commit b885913


Improve SpriteFrames docs

Support for normal and specular maps in AnimatedSprite2D has been removed in #43052 (diff) in favor of CanvasTexture.
Improved descriptions of the remaining SpriteFrames methods (follows up #65609).

Thanks!


https://dl.bintray.com/sbt/native-packages/sbt/ stops at v0.13.15

steps
Goto: https://dl.bintray.com/sbt/native-packages/sbt/
problem
The latest 0.13.x version of sbt is 0.13.17 according to: https://www.scala-sbt.org/download.html
However only 0.13.15 has been released to https://dl.bintray.com/sbt/native-packages/sbt/
expectation
The Jenkins sbt plugin relies on dl.bintray.com to provide installers, however if 0.13.17 is not avaialbe there, then the jenkins plugin cannot use it for builds.
If there is an alternative release repo that contains >0.13.15, then I can update the sbt-plugin to use it, otherwise resolution of this issue would require uploading versions >0.13.15 to dl.bintray.com
Somewhat relates to: #4281
sbt version: 0.13.17

Yes, Bintray download started to go over monthly transfer allowance given to OSS projects, so we switched to hosting it ourselves. Since sbt 1.0.0 all installers should be available as https://piccolo.link/sbt-1.0.0.zip.

@eed3si9n is there a way to index the higher versions of 0.13.x? Pico is a URL shortener so its tough to index programmatically.
P.S. why can’t the 0.13.x jars be hosted on repo1.maven.org?

@eed3si9n I recently have been given commit on jenkinsci/sbt-plugin and I'm looking to update the associated tool crawler such that it'll pickup all the 0.13.x versions missing from bintray (re: 0.13.16/17). Is my only option to parse the html of https://www.scala-sbt.org/download.html page then?  Or is there a way to query piccolo.link for all sbt-related shortened links? If not, would you consider switching to a shortener that does (i.e. bit.ly)?


Auto Reload ?

Hi , is there any way to add auto Reload on Code update ?
Because even Alt + R  is  Not reloading The App !
it's looks like need to npm run start -- every line change of code > Or am i  missing  to setup something ?

Just found some temporary solution,
Used npm run start:hmr
And Changed the Main.js  file code ;
From  :   mainWindow.loadURL(url.format({
pathname: path.join(__dirname, './dist/index.html'),
protocol: 'file:',
slashes: true
}))
To  :    mainWindow.loadURL('http://localhost:8080/');
And it works !


[move-lang] Don't coalesce loop heads for the move-prover

remove_fallthrough_jumps is now turned off for loop heads with specs

Motivation

Specs need distinct loop heads for analyzing loop invariants
remove_fallthrough_jumps coalesced loops heads into a single loop head making this analysis difficult

Test Plan

current tests pass, but unsure how to test the specs

Related PRs

#8039

/land


minor: remove unused TopicsController#post_params

fixes #622

No idea, why the first build fails. Seems unrelated.
I'd prefer the version in the second commit... but i guess that is a matter of taste. I've seen a bunch of require().permit() in the rest of the code though.

Sometimes we have build failures with Travis.  This happens a lot less frequently with Codeship which I also use.  I restarted that build and expect it will pass.  As for the PR- this looks like some unexpected cruft.  I am still investigating if it might be part of a prior refactoring that didn't get full merged in-  #181 for example.


What IOS version is needed to run react-native-ble-plx?

I am creating a react-native app but I must support the iPad 4th generation. The iPad is running 10.3.3, when running it on the iPad I get the following error log:
nw_connection_get_connected_socket_block_invoke 4 Connection has no connected handler
[CoreBluetooth] XPC connection invalid
AuthoriationStatus changed: 0

When I google on XPC connection one of the solutions is adding the "Privacy - Bluetooth Peripheral Usage Description" and "NSBluetoothAlwaysUsageDescription" in the info.plist. Doing this did not solve the problem. I also tried Xcode 10.3 and 11
Am I doing something wrong or is this old IOS version simply not supported?

Nevermind, the problem was that I was initilizing the bleManager as first thing in the app.js. This caused the problem. Moving this to a later stage solved the problem.


Add FAQ about additional configuration options

Regularly an issue is raised to create a new configuration option. For example #2071
Add a FAQ to:

explain why ktlint rejects most of such requests
how the violating rule-id can be discovered

Fixed by #2075


Use multiprocessing when finding homography between image pairs

For a large reconstruction (50 seconds of video at 8 fps with neighbors +/- 15 seconds), it took about 15 minutes to set up the image pairs before the actual reconstruction started.  This PR reduces that time greatly by using multiprocessing on a system with 16 cores, 32 hyper threads (1 process: 859 seconds; 32 processes: 63 seconds).
Unfortunately, the time for calling common_tracks for all image pairs, not included in the above, is 50 seconds.  When attempting to include it in the multiprocessing, the time for pickling graph dominated and most workers were idle.  This was true even when grouping the tasks by im1.  It may be possible to get around this by passing the graph as an initializer for each worker but I didn't try that.

I tried to encapsulate the graph in a function object but pickling the graph still keeps most workers idle.
class _PairReconstructability:
    def __init__(self, graph):
        self.graph = graph
    def __call__(self, args):
        homography_threshold, im1, im2, d = args
        tracks, p1, p2 = matching.common_tracks(self.graph, im1, im2)
        r = 0
        if len(tracks) >= 50:
            H, inliers = cv2.findHomography(
                p1, p2, cv2.RANSAC, homography_threshold)
            r = pairwise_reconstructability(len(tracks), inliers.sum())
        return (im1, im2, r)

I cannot think of another way to make common_tracks run in the pool workers without getting slowed down by pickling the graph.

The approach that I suggested for pickling the graph still is too slow for my large data set with 28 million total image tracks (instead of 200,000 that I used for my pickle benchmarks).  I'm now ready to give up on the idea to use the graph as a parameter for multiprocessing.
I added another slight improvement that reduces the time from entering incremental_reconstruction to the first call to bootstrap_reconstruction from 171 seconds to 121 seconds.  Instead of first calling bipartite.weighted_projected_graph to determine connected images and later calling common_tracks for each pair, I created a function all_common_tracks that combines the two steps.  The final savings would be a little larger because I didn't include the subsequent calls to common_tracks from bootstrap_reconstruction in the comparison.
Due to the use of RANSAC in two_view_reconstruction, it is not possible to compare the outputs of the two versions.  However, I sorted the tracks alphabetically in both common_tracks and all_common_tracks and verified that the same tracks and features are used in bootstrap_reconstruction.
This approach could be adapted for compute_depthmaps by passing reconstruction.points as the second parameter of all_common_tracks to just consider those tracks.  all_common_tracks could be called with include_features=False, greatly speeding it up, because the features aren't used in find_neighboring_images.

Thanks for the analysis and solution @andreasg123.  Let me summarize my thinkings on this to make sure i get the situation right.
We need to do some work for every image pair. The work is essentially

find common tracks and
estimate an homography

The second step is the slowest and we want to run it in parallel.
We would like to run 1 in parallel too, but that requires passing the graph to the worker processes and that is too expensive on its own.  So we do 1 sequentially in the all_common_tracks that you implemented.
It all looks good to me, i'm going to merge and do some minor clean up.  Thanks again!

@paulinus, your summary is perfect.

@andreasg123 @paulinus   Could you explain for me  why we need to calculate outlier ratio through homography and make sure the radio is more than 0.3, and then add the pair to reconstruction pairs? Thank you! I am really confused about that.

Reconstruction of the initial pair is ill-defined and fails if the scene is planar or there is no parallax. The homography is used to identify such cases and discard them. If 70% of the matches can be explained by an homography, we discard the pair.
I'm currently working on an alternative initialization for the planar case which is common in drone imagery.
The "no parallax" case correspond to pairs of images taken without translating the camera, like when you take a panorama. In such case, it is not possible to recover 3D information from the correspondences.

Thank you for your reply. You are understood. The pure rotation and the plane for a pair of views will result in failure in initial reconstruction.


[Internal] Direct Package Upgrade: Refactors Code to Bump Up Cosmos.Direct Package to 3.31.2

Pull Request Template
Description
This PR bumps up the Cosmos.Direct package version to 3.32.1 which addresses the below issues:

Fixes crashing CosmosClient on the Dispose() stage.

Marking the Israel Central as a public region.

Adds the Dedicated Gateway Shard Key Header.

Upgrade Resiliency: Refactors Rntbd Open Connection Logic to Validate Replicas Accurately. Improves the LoadBalancingPartition.OpenChannelAsync() located inside the Cosmos.Direct package, to add a validation on the maximum number of channels that is permitted to open by the user. The changes are described below in detail.

Code changes to refactor open connection logic in the LoadBalancingPartition to add max channel validation.
Code changes to refactor the ChannelDictionary to remove the check on the existing channels. This change will help to establish Rntbd connections to backend replica nodes, during the replica validation flow.

Type of change
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)

Closing issues
To automatically close an issue: closes #3700, #3908

@msbot please wait for @ealsur signoff


Jc/translation

Translational matrix debug and test case.

Oh, also: does your transformation need to be "augmented" so that it can incorporate linear + translation? See https://en.wikipedia.org/wiki/Affine_transformation#Augmented_matrix


[binance] implement channel inactive handler

strange error on karenfutures not related to PR.
it is possible to rerun maven build?

bump


Add regex to dependency list

The regex crate has now been removed from rustc.

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @wycats (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see CONTRIBUTING.md for more information.

@bors: r+ 1a51514

:hourglass: Testing commit 1a51514 with merge 720de99...

:broken_heart: Test failed - cargo-linux-32

@bors: retry

:hourglass: Testing commit 1a51514 with merge 4e416ee...

:broken_heart: Test failed - cargo-win-64

@bors: retry

:hourglass: Testing commit 1a51514 with merge 8d0e336...

Oh oops this was also done in https://github.com/rust-lang/cargo/pull/1227 and that was merged, thanks for the PR regardless!


'distrobox enter wolfi' fails at "Installing basic packages..." stage.

Steps
just distrobox-wolfi -> runs ok.
distrobox enter wolfi ->
Container wolfi is not running.
Starting container wolfi
run this command to follow along:
 podman logs -f wolfi
 Starting container...                  	 [ OK ]
 Installing basic packages...           	 Error: An error occurred

podman logs -f wolfi -> slightly shortened output
distrobox: Installing basic packages...
+ '[' -n  ]
+ printf 'distrobox: Installing basic packages...\n'
+ basename /bin/bash
+ shell_pkg=bash
+ '[' bash '=' ash ]
+ '[' 0 -ne 0 ]
+ command -v find
/usr/bin/find
+ command -v mount
/sbin/apk
+ command -v apk
+ '[' 0 -ne 0 ]
+ apk add bash
OK: 79 MiB in 72 packages
+ apk search -q mesa-dri
+ apk search -q mesa-vulkan
+ deps='
			bash
			bc
			curl
			diffutils
			findmnt
			findutils
			gnupg
			less
			lsof
			mount
			umount
			ncurses
			pinentry
			posix-libc-utils
			procps
			shadow
			su-exec
			sudo
			util-linux
			util-linux-misc
			vte3
			wget

			vulkan-loader
		'
+ install_pkg=
...
+ apk info procps
+ install_pkg=' bash curl diffutils findmnt findutils gnupg mount umount ncurses posix-libc-utils procps'
...
+ install_pkg=' bash curl diffutils findmnt findutils gnupg mount umount ncurses posix-libc-utils procps su-exec util-linux util-linux-misc wget vulkan-loader'
+ apk add bash curl diffutils findmnt findutils gnupg mount umount ncurses posix-libc-utils procps su-exec util-linux util-linux-misc wget vulkan-loader
(1/6) Installing gnupg (2.2.41-r0)
(2/6) Installing mount (2.39.2-r0)
(3/6) Installing libproc-2-0 (4.0.4-r0)
(4/6) Installing procps (4.0.4-r0)
ERROR: procps-4.0.4-r0: trying to overwrite usr/bin/kill owned by coreutils-9.4-r1.
ERROR: procps-4.0.4-r0: trying to overwrite usr/bin/uptime owned by coreutils-9.4-r1.
(5/6) Installing su-exec (0.2-r2)
(6/6) Installing vulkan-loader (1.3.264-r0)
1 error; 81 MiB in 78 packages
+ '[' 1 -ne 0 ]
Error: An error occurred
+ printf 'Error: An error occurred\n'

Observations

Containerfile.wolfi explicitly removes procps: https://github.com/ublue-os/bluefin/blob/d80bc8160075e329fb5694e46864515b24ec5f56/toolboxes/Containerfile.wolfi#L16
distrobox-init then tries to re-add procps, which seems to cause the eror: https://github.com/89luca89/distrobox/blob/9309e1ebe5c70fd1f9b5286fd3a76f3e7bd995bd/distrobox-init#L448

Yeah we need to spend more time on the wolfi box in general, it's just been a matter of not having enough time. Since it's broken anyway if you wanna PR fixes into it that'd be awesome!

Thanks for the fix!
I digged into this also over the weekend. Findings:

distrobox has improved a lot since the last official release <IP_ADDRESS> in June (which the rpm-ostree package is based on, I guess). There are about 200 new commits in the main branch (aka the 'next' version).
The "Warning: there was a problem setting up the user" is caused by the missing 'useradd' bin in Wolfi. Latest distrobox versions work around this, especially note this commit https://github.com/89luca89/distrobox/commit/0e637ca00b6dd572f6a668ef77fbe9c6800fc24f
Latest distrobox versions themselves add all the packages that are right now in Containerfile.wolfi -> no need to add anything, distrobox enter / init will take care of it.

Here is a compare of a much simplified Containerfile.wolfi
https://github.com/hirnidrin/bluefin/commit/a60f505992ce76f5eedb3ffab8b5634e15e57fb7
But it works only with the latest distrobox version... which we can easily install with just distrobox-git. I have tested it, works fine, no errors on distrobox create / enter / init.
I don't know if you want to commit this to bluefin, as it depends on a non-rpm-ostree version of distrobox. We could also wait for distrobox official release 1.6 (or whatever it will be) before cleaning up wolfi-toolbox. Of course, I gladly submit a PR right now if you like :-)

Yeah I'd rather just depend on distrobox-git and then we can catch up later - I'd love a PR!


[ENH]pivot_longer improvement - names_pattern is a sequence

PR Description
Please describe the changes proposed in the pull request:

updates to pivot_longer if names_pattern is a list/tuple
make _pivot_longer_names_pattern_sequence self contained (reduce indirections)
make transformation logic simpler

This PR improves pivot_longer.

PR Checklist

Please ensure that you have done the following:

[x] PR in from a fork off your branch. Do not PR from <your_username>:dev, but rather from <your_username>:<feature-branch_name>.

[x] If you're not on the contributors list, add yourself to AUTHORS.md.

[ ] Add a line to CHANGELOG.md under the latest version header (i.e. the one that is "on deck") describing the contribution.

Do use some discretion here; if there are multiple PRs that are related, keep them in a single line.

Automatic checks
There will be automatic checks run on the PR. These include:

Building a preview of the docs on Netlify
Automatically linting the code
Making sure the code is documented
Making sure that all tests are passed
Making sure that code coverage doesn't go down.

Relevant Reviewers

Please tag maintainers to review.

@ericmjl

🚀 Deployed on https://deploy-preview-1320--pyjanitor.netlify.app

closed in favour of #1321


Codecov

Description

A few sentences describing the overall goals of the pull request’s commits. If this PR is closing an issues, be sure to reference the issue number in the message.

Todos

Make sure you’ve completed these:

[x] Does this feature run on all supported platforms?
[x] Are there tests around this feature?
[ ] Is there documentation for this feature?

[Current coverage][cc-pull] is 97.05%

No coverage report found for master at f6a22ce.

Powered by Codecov. Last updated by [f6a22ce...4904020][cc-compare]
[cc-base-branch]: https://codecov.io/gh/cartridge/cartridge-sass/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/cartridge/cartridge-sass/compare/f6a22ce1ac47beed74db48997280a2f6fab195f9...490402066c0a52c0af611f9fdc3fb8fe266551ae
[cc-pull]: https://codecov.io/gh/cartridge/cartridge-sass/pull/21?src=pr


Update GitHub Action Versions

GitHub Actions Version Updates

saadmk11/github-actions-version-updater published a new release v0.7.1 on 2022-10-29T16:38:42Z

Codecov Report

Merging #18 (762081f) into main (c172067) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #18   +/-   ##
=======================================
  Coverage   95.67%   95.67%
=======================================
  Files           6        6
  Lines         185      185
=======================================
  Hits          177      177
  Misses          8        8

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


The release history of namespaces that are not properties will also show comments and release times

What's the purpose of this PR

The release history of namespaces that are not properties will also show comments and release times

It is important to keep the UI experience consistent with properties, and then the precise release time. Here is a comparison of the before and after changes.

After the change

Codecov Report

Merging #4198 (4971550) into master (02f0dca) will decrease coverage by 0.05%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #4198      +/-   ##
============================================
- Coverage     52.60%   52.54%   -0.06%
+ Complexity     2621     2617       -4
============================================
  Files           484      484
  Lines         15192    15192
  Branches       1571     1571
============================================
- Hits           7991     7982       -9
- Misses         6645     6650       +5
- Partials        556      560       +4

Impacted Files
Coverage Δ

...rk/apollo/spring/property/SpringValueRegistry.java
83.78% <0.00%> (-5.41%)
:arrow_down:

...ework/apollo/internals/RemoteConfigRepository.java
85.27% <0.00%> (-3.07%)
:arrow_down:

...ervice/service/ReleaseMessageServiceWithCache.java
84.70% <0.00%> (-2.36%)
:arrow_down:

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 02f0dca...4971550. Read the comment docs.


Error: The activation did not complete succesfully

User received this error when trying to install Azure Backup Agent.

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

ID: 12b55c02-a60f-f7ad-15b1-1cde58d36fdb
Version Independent ID: 811347aa-efec-4d5c-4759-4a55344e0eb9
Content: Troubleshoot Azure Backup Server
Content Source: articles/backup/backup-azure-mabs-troubleshoot.md
Service: backup
GitHub Login: @pvrk
Microsoft Alias: pullabhk

@ran-ten21 Thanks! i suggest trying the forum to troubleshoot this error since it doesn't seem to be directly related to the article.
Thanks
#please-close

@ran-ten21 We will now proceed to close this thread. If there are further questions regarding this matter, please respond here and @YutongTie-MSFT and we will gladly continue the discussion.


Fixing issue #234: Brute force solver as OpenQAOA workflow class method

Description

Now  the QAOA workflow class contains the method solve_brute_force() that calls the ground_state_hamiltonian function from openqaoa.utilities.
Results are stored as a dictionary in self.brute_force_results and can be printed out with the verbose flag.
The parameter bounded imposes the artificial limit of 25 qubits to prevent memory overflow
Fixes # 234

@GiacomoFrn, thank you for your PR solving issue #234, please give us a few days while we review the code.

@vishal-ph, I should have fixed the issues you raised

Some of the tests are failing because they required some secretes that are not available to forks!
I forgot that was the case! :)
I will merge it now, and then let @lumapools add the tests


[PROPOSAL] Define configuration and format for a local .odo config file

@kadel This is an initial proposal to define what's described in issue #800. We can discuss in the PR about this and see how the process would work. If it works fine, I'll be happy to keep pushing more proposals.

This proposition looks like what I also propose / describe within these G Slides around the concept about component | application crd -> https://docs.google.com/presentation/d/1Z-MlgbcpExhG79RolbFb20iZDiYfmdNfIz9DB71H4Vs/

@cmoulliard I don't see any relation at all. This is to define a local file to instruct/save/share how the tool will behave when creating a component from source.

Just to make sure that I understand it correctly, and that we are looking at it in the same way:
There will be two configs. One "global" (in users home, basically what we currently have in ~/.kube/odo and second that is local to the project (.odo in the project root directory).
I'm going to call first as user's config and the second as project config.
Both configs will allow the same configurations. The highest priority has what is specified using CLI flag. That overrides everything. If the flag is not specified, then the project config will be used, if the value is not set there then the user's config, and if nothing is there than we use default value hardcoded in the code, or fail if the value is required.
And we are talking about component creation (odo create command)

@kadel, no, the idea is that "application related" configuration lives in the "application .odo" file. CLI specific configuration, which is global to how the tool/cli should behave (or some defaults) should be in the "global .odo" config file.
There should not be precedence of one over the other.
When creating a component, if no arguments are provided, the CLI should look for defaults, and it there are defaults, apply them and save them in the "application .odo" file. If there are no defaults, the "application .odo" file should not have config.
e.g.:
$HOME/..kube/.odo
----
odoignores=.git
memory=2GB
cpus=1
----

# User is creating a component. No $DIR/.odo file exists.
odo create wildfly example --memory=1GB

# This will create an .odo file with:
----
odoignores=.git                  # From global config
memory=1GB                      # From CLI, overrides default
cpus=1                                # From global config
app-name=app-example    # Autogenerated as no explicit app was created
comp-name=example         # Created via cli
...
----

Does it make sense?

So .odo will allway contain all configuration that was used to create component.
After odo create is called all options (even if default value is used) will be specified in the .odo file.
So everyone can create component in excatly the same way if they want.
Am I closer?

We should limit the configuration here stored, but yes, that's the idea.

Or maybe we can skip adding a value if the default was used. Not sure about this one. Would only know as we keep using it.

And running something like odo utils config set memory 2Gi --local will not have imidiate effect on running component, it will just modify config file?

@kadel yes. I would think that the natural way to update a component would be to do odo update --memory 2GB.
Maybe, we should avoid that command odo utils config set memory 2Gi --local, but I think that this command would be useful to interact with the local .odo file without creating a new deployment.

sorry i did not get why this --local flag is required?

sorry i didn't get the relevance of --local flag
is is to explicitly make the feel that its only editing the local file which is in (~/.kube/odo)?

no --local means that it is editing config for the component that typically that would be .odo file in component root directory /repository

sorry i didn't get the relevance of --local flag
is is to explicitly make the feel that its only editing the local file which is in (~/.kube/odo)?

no --local means that it is editing config for the component that typically that would be .odo file in component root directory /repository

got it, so that means there will be a local as well as a global .odo file

Does this config's file will contain the info of the application and associated components/services (one to many relation) as during the iterative processus a user will create for an application X components and potentially pickup Y services from the catalog ? If this is the case, then we need as a k8s's list, a field that we will use to populate this array of components/services

I think we need 2 files, one file per repo, which is checked in with the component in git and providing all the defaults for the application/component. And One file in say the user home directory which can contain parameters overridden  locally without changing the global default. E.g. the memory config in the git config might be 8GB, but the user with a limited l;aptop may want to be able to set locally in his own config file that on 6GB should be used for the app.

This proposal looks great!
It looks like something went wrong while rebasing or something, as there is a lot of unrelated commits. (I can fix that for you if you want ;-), but then you will probably need to delete your local branch and pull it again)

@kadel @surajnarwade @anmolbabu @syamgk I've updated the proposal with what we discussed today in the cabal meeting.
Let's do one round of feedback and then if everything is ok, merge to take it into L train planning.


Update front-door-route-matching.md

Updated for readability and a few minor punctuation edits.

@cqueern : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@ktoliver : Thanks for your contribution! The author(s) have been notified to review your proposed change.

We'll merge the editorial update, with some revisions. Per Microsoft style, in a list, complete sentences should have ending punctuation, and list items of four or more words should have ending punctuation, whether or not they form complete sentences.
https://docs.microsoft.com/en-us/style-guide/scannable-content/lists
For a future update: back end and front end should be two words when used as nouns and two words hyphenated as  adjectives: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/b/back-end; https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/f/front-end
Thanks!

Appreciate the guidance @ktoliver. Thanks for your hard work on the documentation.


Review of rdkit.Chem.Fraggle code

Improved test coverage to 100%
Use more pythonic idioms

Added a few more changes now:

Use Chem.FragmentOnBonds in delete_bonds
Use Chem.GetMolFrags to split molecule into a list of molecules
Change select_fragments to take a list of molecules
Changed is_ring_cut_valid to isValidRingCut that takes now a mol and only checks against the SMARTS

The changes reduce the number of C-code calls which might translate into better performance.

use rdqueries.AtomNumEqualsQueryAtom(0) to determine the number of attachment points

I think this is ready to go. @gedeck : ok for me to merge now?

@greglandrum yes. no more changes from my side for now.


[Testing] Adding integration test instructions (GKE)

These started as a copy of of the ones under e2e. Removed instructions specific to the old test framework. Also cleaned up other instructions and added a script to simplify creation of a cluster.

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: nmittler
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

tests/integration/OWNERS [nmittler]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@nmittler: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-multicluster-e2e.sh
5ca3279b93ac2b0680011a2b5dee10e5b640484a
link
/test istio-pilot-multicluster-e2e

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@nmittler: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-multicluster-e2e.sh
5ca3279b93ac2b0680011a2b5dee10e5b640484a
link
/test istio-pilot-multicluster-e2e

prow/istio-integ-k8s-tests.sh
5ca3279b93ac2b0680011a2b5dee10e5b640484a
link
/test istio-integ-k8s-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@nmittler: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-integ-k8s-tests.sh
5ca3279b93ac2b0680011a2b5dee10e5b640484a
link
/test istio-integ-k8s-tests

prow/istio-pilot-multicluster-e2e.sh
ec68a566a4544edee0a681026140bd84747b6601
link
/test istio-pilot-multicluster-e2e

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

lgtm
I'll let  @gargnupur to give the final lgtm

looks good!
/lgtm

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: gargnupur, nmittler
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

tests/integration/OWNERS [nmittler]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Method to update Options in Paging Adapters

@samtstern Recently we developed and released method updateOptions() to update options in Adapters. But this isn't available in Paging adapters yet. If we again work on this again, it'll be helpful to update options at runtime without changing adapters. Should we work on this again?
If we work on this, final modifier from  LiveData<> fields should be removed. Because, while changing options LiveData<> fields should again re-initialised.
Is it Okay?

@PatilShreyas I think this is a good idea but a few things:

We'll have to see if the underlying paging library supports this
I am going to be super busy until the Firebase Summit on September 26th so let's hold off on any feature development until after that.

Thanks for always contributing your thoughts and code to this project!

Yeah sure! We will discuss on it later. Thank you!
On Sat 14 Sep, 2019, 4:11 AM Sam Stern<EMAIL_ADDRESS>wrote:

@PatilShreyas https://github.com/PatilShreyas I think this is a good
idea but a few things:

We'll have to see if the underlying paging library supports this
I am going to be super busy until the Firebase Summit on September
26th so let's hold off on any feature development until after that.

Thanks for always contributing your thoughts and code to this project!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/firebase/FirebaseUI-Android/issues/1677?email_source=notifications&email_token=AEVWFOF56U6IDD4E4S7Z4MLQJQJJXA5CNFSM4IWRPMV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6WLONI#issuecomment-531412789,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEVWFOANG423GORUEMYGLMDQJQJJXANCNFSM4IWRPMVQ
.

Dears, sorry ask this, but how can i change the query object and "restart" all process to bind recyclerview etc?
Let me explain: If you have an activity and filter dialog. So... when user interact on filter dialog i factory one custom query to perform on firestore (after activity load default query and setup options, adapter, etc).
So, how can I change the query, update options and notify adapter to "refresh the new results of the new query?"

@mateusdias Which adapter you're using? Are you using FirestoreRecyclerAdapter or FirestorePagingAdapter?
Please let me know about this.

@PatilShreyas Thanks for reply!
I am using FirestorePagingAdapter. By the way, I implemented exactly as in your example tutorial in the medium, here: https://medium.com/firebase-developers/firestore-pagination-in-android-using-firebaseui-library-1d7fe1a75704
As I said, in this activity I have a filter that processes user search preferences and dynamically builds new queries. So every time the user applies the filter it's like I literally need to reload everything from scratch, starting a new pagination with a new query. What I found most interesting is that even trying "RE INSTANTIATE everything... Adapter, RecyclerView etc" doesn't work. The result is blank. To make sure the problem wasn't with queries, I simply forced a query object to see what happened and didn't bring up the results.
II tried to control the state of the adapter manually too, but it didn't work.
Its important clarify, i'm using RecyclerView from androidx library: import androidx.recyclerview.widget.RecyclerView;

@mateusdias Hmmm. Paging adapters currently not having the ability to replace queries at runtime. That's why I issued it.
I understood what problem you're facing. Have you set LifecycleOwner to options object?
If not, then have you called startListening() on adapter instance? Because adapter only listens to item updates after calling startListening().

@samtstern should we start work on this?

@PatilShreyas sure!  I'll be back in the office Monday for code review and stuff.  Let's start with just one of the adapters at first so we can get all the pieces fleshed out.

Yeah Okay!
On Wed 2 Oct, 2019, 5:42 PM Sam Stern<EMAIL_ADDRESS>wrote:

@PatilShreyas https://github.com/PatilShreyas sure! I'll be back in the
office Monday for code review and stuff. Let's start with just one of the
adapters at first so we can get all the pieces fleshed out.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/firebase/FirebaseUI-Android/issues/1677?email_source=notifications&email_token=AEVWFOGBCW4EYO6VNTQIOOTQMSF4BA5CNFSM4IWRPMV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAEQZUQ#issuecomment-537464018,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEVWFODUNY6XEXX3WL7NMJLQMSF4BANCNFSM4IWRPMVQ
.

@samtstern Code is ready. When and where (on which branch) to create PR?

@PatilShreyas open a PR against version-6.0.3-dev

@samtstern We'll have to do same for RTDB Paging Adapter.

This has been released in FirebaseUI 6.1.0

@samtstern, @PatilShreyas Since this has been implemented, but no example code is available in the documentation on how to update the query after user select some filter.
Can you please add some exmple code on how to update the query and refresh/reload the data, on some user action/click after the initial query is completed?

@hkchakladar Thanks for that. I'll start working for it soon.

Any updates on the example code or guideline for the refresh/reload query?

@ebekerman I have figured it out. Check it out here https://github.com/firebase/FirebaseUI-Android/issues/1726#issuecomment-573033035.

@PatilShreyas Hey, Any Example on this issue yet? to paginate the query using FirestorePagingAdapter where the user applies filters to get the desired list in recyclerview?

Refer this article, this will help you.
Link: https://link.medium.com/lzYvTaZgj6
On Fri 8 May, 2020, 7:06 AM ramneekkashyap9<EMAIL_ADDRESS>wrote:

@PatilShreyas https://github.com/PatilShreyas Hey, Any Example on this
issue yet? to paginate the query using FirestorePagingAdapter where the
user applies filters to get the desired list in recyclerview?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/firebase/FirebaseUI-Android/issues/1677#issuecomment-625581087,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEVWFOHQAIOMLBW2Q7I5BFLRQNO2PANCNFSM4IWRPMVQ
.

@PatilShreyas i went through the example but could not implement it due to lots of errors, please let me know where I can share you the code if you can help me

See this example implementation. This might help you!
https://github.com/PatilShreyas/FirebaseRecyclerUpdateQuery-Demo/blob/master/app/src/main/java/dev/shreyaspatil/firebase/recyclerqueryupdate/firestore/FirestorePagingActivity.kt
On Sat 9 May, 2020, 9:16 PM ramneekkashyap9<EMAIL_ADDRESS>wrote:

@PatilShreyas https://github.com/PatilShreyas i went through the
example but could not implement it due to lots of errors, please let me
know where I can share you the code if you can help me
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/firebase/FirebaseUI-Android/issues/1677#issuecomment-626195215,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEVWFOAHBUEEUZBYXXM5GSLRQV3G3ANCNFSM4IWRPMVQ
.


[ECS] Decouple reporting from CheckCommand to CheckCommandReporter

Move all print functionality inside CheckCommandReporter.
This will allow to extract a common interface, and implement CheckCommandJsonReporter and CheckCommandTableReporter as mentioned here:

https://github.com/Symplify/Symplify/issues/1095#issuecomment-420994905
https://github.com/Symplify/Symplify/issues/1118

Thank you


docs(文件): 记录

记录
What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[ ] Feature
[ ] Code style
[ ] Refactor
[ ] Doc
[ ] Other, please describe:

The description of the PR:
Other information:

测试pull request


Visually differentiated transactions

Story
As a user
I want different types of transactions to be visually distinct depending on the transaction type
So that I recognise the difference and can see that some are more dangerous / critical than others
Acceptance Criteria

[ ] There is a categorisation of transaction types based on danger / impact e.g. to assets / funds
[ ] We've a visual way to present the categories in the UI

Tasks

[ ] Explore and sketch
[ ] Team and stakeholder review
[ ] Visual Design
[ ] Team review
[ ] Etc.

Sketch
Additional details / background info

Desktop ... wont do


RBAC: KC: Impl restart permissions

Issue submitter TODO list

[X] I've searched for an already existing issues here
[X] I'm running a supported version of the application which is listed here and the feature is not present there

Is your proposal related to a problem?
No response
Describe the feature you're interested in
I do want a new permission for connector / connector task restarts. As i deploy and manage connectors via strimzi, i dont want the frontend user to edit or remove the tasks. But in case of an issue / tests it would be helpful if tasks could be restarted via UI with a separate permission.
Describe alternatives you've considered
No response
Version you're running
0.6.2
Additional context
No response

Forgot frontend lol

@David-DB88
TODO:
Change RBAC permissions: For ResourceType.CONNECT all restart actions should have Action.RESTART instead of Action.EDIT


Add support for DHCP configuration

Hello,
It would be nice if the binit_net_* network configuration supported DHCP configuration as an alternative to a static address.
I have a headless server configured with a static DHCP config, but currently I have to set the IP statically in better-initramfs to get the SSH console (for LUKS-unlocking).
Seems like busybox already has a built-in dhcp client, and a script (https://git.busybox.net/busybox/plain/examples/udhcp/simple.script) to react to events + some functions.sh code could do it.
Willing to contribute that, if you're interested in pulling it in.

That's pretty awesome feature. I will do it. I already did a major rework on devel branch, and I am about to release new version since january, so I will add this feature prior to doing so. Will ping you in this issue once I do it.

It is done on devel branch. Would you be so kind and test it?
FWIW devel branch is far ahead, and uses new sysroot, so I would highly recommend you building it in fresh checkout, or after wiping sourceroot/ from local changes (binaries).
Tested it inside qemu with qemu-system-x86_64 -machine accel=kvm -curses -netdev 'tap,id=if0,helper=/usr/libexec/qemu-bridge-helper --br=br-virt0' -device virtio-net,netdev=if0,mac=de:b2:b8:bf:03:f1,romfile= -kernel /boot/bzImage-4.16.8 -initrd output/initramfs.cpio.gz -append 'binit_net_if=eth0 binit_net_addr=dhcp rescueshell'
>>> better-initramfs devel-9fa9856-2018-05-13. Linux kernel 4.16.8.

>>> Mounting /proc...
>>> Mounting /sys...
>>> Create all the symlinks to /bin/busybox.
>>> Mounting /dev (devtmpfs)...
>>> Bringing up eth0 interface ...
>>> Using DHCP on eth0 ...
udhcpc: started, v1.27.2
udhcpc: sending discover
udhcpc: sending select for <IP_ADDRESS>
udhcpc: lease of <IP_ADDRESS> obtained, lease time 86400
>>> Setting <IP_ADDRESS>/24 on eth0 ...
>>> Setting default routing via '<IP_ADDRESS>' ...
>>> Populating /dev/disk/by-{uuid,label} ...
>>> Rescue Shell (busybox's /bin/sh)
>>> To reboot, press 'control-alt-delete'.
>>> If you wish resume booting process, run 'resume-boot'.
rescueshell / #

The support is limited to setting the address and gateway, I am not sure if it's viable to add anything else, like hostname, name servers etc. Let me know.

Just tested it, it works perfectly for me.
I don't think adding hostname/DNS etc. support would be that useful, or someone would have already requested it for the static configuration mode. I certainly don't see a need for my use case.
Thank you again for your work !


readOnly or enabled property

I'm using this package and i need a readOnly or enabled. For this solution i call onChange: () => null, but sometimes detect mi horizontaDrag and change the color of the RatingBox. Could be better to update the package for a enabled or readOnly? or another solution?
This video it's a comparation between a null and changed , the null shouldn't show the active bar Color.
https://user-images.githubusercontent.com/106313333/176152789-72b376d7-3e58-454a-9bac-b0db8c0ba6d0.mp4

@tonagy - We've added isDraggable flag to Enable or Disable Drag Gesture of the Slider. Please check it in the new version of the package. Thank you.

Thanks a lot for the update and the reply.


Create usePaginatedReportActions hook

Details
This PR is part of https://github.com/Expensify/App/pull/41962, done in the hopes of reducing the diff, avoiding conflicts, and reducing the likelihood of regressions.
Fixed Issues
$ see the list in https://github.com/Expensify/App/pull/41962
Tests / QA Steps

Open a report, verify reportActions load as expected.
Scroll back in the history, verify you can load more chats.
Link to a specific comment in a report, verify reportActions load as expected.

[ ] Verify that no errors appear in the JS console

Offline tests
n/a
PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label and/or tagged @Expensify/design so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native

Android: mWeb Chrome

iOS: Native

iOS: mWeb Safari

MacOS: Chrome / Safari
https://github.com/Expensify/App/assets/47436092/292161e7-e561-4013-a045-80d49537f6c5

MacOS: Desktop

^ Not saying this is causing any problems yet, there's just a deploy blocker than can't be reproduced on my local staging env (not sure why) so I'm trying to see if any adhoc builds work

Sorry to say that this is causing https://github.com/Expensify/App/issues/44583 :/ Gonna get a revert up

🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


H1 in desktop articles is too big when title is long

Something tells me that it's not OK when H1 does not fit on a full screen page on the desktop.

It doesn’t look too bad for me, to be honest. I know it’s a bit unusual, but I like this style.
I might get back to it if I hear more feedback like this. Thanks!


Tweak system status dashboard

Summary | Résumé

add delivery receipt queue delays
make things a bit smaller
fix lambda # calls and add lambda errors

Test instructions | Instructions pour tester la modification
On prod: old vs new.

Thanks for taking care of this!


Cannot allow teams to modify their spawn if membership management is disabled.

Minecraft version
1.19.2
LibX version
1.19.2-4.2.8
Skyblock Builder version
1.19.2-4..2.6
Forge version
43.2.6
The latest.log file
n/a
Issue description
The config has separate settings for team management and team spawn management.  For some reason, the code enforces the team management setting on team spawn management as well:
https://github.com/MelanX/SkyblockBuilder/blob/1.19.x/src/main/java/de/melanx/skyblockbuilder/commands/TeamCommand.java#L266
https://github.com/MelanX/SkyblockBuilder/blob/1.19.x/src/main/java/de/melanx/skyblockbuilder/commands/TeamCommand.java#L315
https://github.com/MelanX/SkyblockBuilder/blob/1.19.x/src/main/java/de/melanx/skyblockbuilder/commands/TeamCommand.java#L372
The pack I'm building needs to force players to be in a team by themselves, so I've disabled team management.  However, it would be highly desirable for them to be able to move their spawn point, so that visit and home don't spawn you in a weird place.
It's very unexpected to me that team spawn management can be set separately in the config, but requires team management under the hood.
Steps to reproduce

Install mod.
Disable Utility -> selfManage, enable Utility -> Spawns -> modifySpawns.
Start Minecraft.
Create a team for yourself.
Attempt to modify the team's spawns.
Observe failure message.

Other information
No response

<3


How to change position display Toast?

I wanna show Toast at TOP-LEFT of screen. How can I?

This library dosn't have that feature nor will it be included since a Toast is not supposed to be shown anywhere than at the center-bottom of the screen.


Internal recommendations

Remove script.skin.helper.widgets dependency and provide a similar implementation.
The biggest difference is that this doesn't filter on rating, but instead sorts on it, limits the number of items, and picks a random item from that.  The benefit of doing it this way is that we always have something to recommend.
It is also much faster since we're not pinging an addon for the info.
Additionally, this adds support for filtering recommendations on a supplied Genre.
Requires changes to Kodi-Voice provided by https://github.com/m0ngr31/kodi-voice/pull/19
Addresses Issue #193.
Needs German translations Ping @mcl22 and @ausweider

Here we go:
RecommendMovie welchen (/{MovieGenre}) Film es (/mir) (empfiehlt/vorschlägt)
RecommendShow welche (/{ShowGenre}) Serie es (/mir) (empfiehlt/vorschlägt)
RecommendEpisode welche (/{ShowGenre}) (Folge/Episode) es (/mir) (empfiehlt/vorschlägt)
RecommendMusicVideo welches (/{MusicVideoGenre}) Musikvideo es (/mir) (empfiehlt/vorschlägt)
RecommendArtist welchen (/{MusicGenre}) Interpreten es (/mir) (empfiehlt/vorschlägt)
RecommendAlbum welches (/{MusicGenre}) Album es (/mir) (empfiehlt/vorschlägt)
RecommendSong (welches (/{MusicGenre}) Lied/welchen (/{MusicGenre})  Song) es (/mir) (empfiehlt/vorschlägt)

Thanks @mcl22 !


Can't bind to 'multiple' since it isn't a known property of 'ng-select'

Error: src/app/recipes/recipes.component.html:15:66 - error NG8002: Can't bind to 'multiple' since it isn't a known property of 'ng-select'.

If 'multiple' is an Angular directive, then add 'CommonModule' to the<EMAIL_ADDRESS>of this component.
To allow any property add 'NO_ERRORS_SCHEMA' to the<EMAIL_ADDRESS>of this component.

15     <ng-select [items]="cities2" bindLabel="name" bindValue="id" [multiple]="true" placeholder="Select cities"
~~~~~~~~~~~~~~~~~
src/app/recipes/recipes.component.ts:6:16
6   templateUrl: './recipes.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component RecipesComponent.
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
× Failed to compile.
getting this. any one got the solution?

wrong place


Should  ValueObjectDescriptor inherit from ExtensibleEntity?

In vod-source, the root ValueObjectDescriptor class does not inherit from anything. I would assume we want this clas to be extensible, and thus inherit from ExtensibleEntity in the core-source.yaml?

It appears that ValueObjectDescriptor  actually does inherit from Extensible Entity . . .


Fix JSON communication with autobahn.js

The fix in serialization/ takes care of the crash reported in #8. The fix in websocket/ actually makes the test case there work. Thanks to @DuGuille for the report and an awesome simple test case. Hopefully Bonefish will now work with JavaScript as intended.

Simplified it a bit by also making Int() go through Int64(). Should be okay now, let's wait for Travis CI to complete.

awesome. thanks


Question about edge weight in non-squared A matrix of GatedGraphConv

❓ Questions & Help

May I ask how to implement a almost the same propagation as GatedGraphConv with weighted directed edges? The origin GatedGraphConv seems like doesn't support this setting. And for the non-squared shape A matrix. I have constructed the edge weight with edge_attr already.

with the A matrix as following:

Borrowing the code from GatedGraphConv, if I don't make it wrong, utilizing the edge weight is straight forward:
def forward(self, x, edge_index, edge_attr):
    """"""
    h = x
    row, col = edge_index
    for i in range(self.num_layers):
        m = torch.matmul(h, self.weight[i])[col] * edge_attr
        m = self.propagate(edge_index, size=(x.size(0), x.size(0)), x=m)
        h = self.rnn(m, h)
    return h

It is still confusing for me to use the non-squared A matrix.
@rusty1s

Hi,
edge_attr should be integrated in the message function, e.g.:
def message(self, x_j, edge_attr):
    return x_j * edge_attr

I am not exactly sure if I do understand your double adjacency matrix for outgoing and incoming edges (why not encode it in a single adjacency matrix?). However, I think in this case its best to pass two edge_indices to the forward pass and perform propagation two times, for each adjacency matrix individually.

Thanks! Oh right. edge_attr should be used in message function.
The double A matrix is just similar to Gated Graph.

Seems like PyG doesn't consider this A settings? Different types of edges for outgoing and incoming?

Hi, I integrated edge_weight into the GatedGraphConv.
You are right. PyG does not consider this A setting explicitly. I'm not sure, it doesn't seem like outgoing and incoming edges are weighted differently? In this case, I do not see a reason why one can not encode these edges into a single adjacency matrix.

Wow! I saw the commit.
I think in the Gated Graph paper and the paper above mentioned, an edge has different meanings for the source node and target node. So it cannot encode two representations within the same grid in A.

If they have different meaning, they should be weighted independently. I do not see this in the above formula.

From the matrix, it shows that for the same edge, the weight for source node and target node is different, e.g. B for 1 and B' for 2 in edge (1,2) in Figure 1, Gated Graph paper above.

IMO, you can just encode this in a symmetric adjacency matrix with potentially different edge weights for incoming and outgoing edges. But I must confess that I don't quite understand this partitioning yet.

Uh, yeah. I get your idea. Just encode the two weights of an edge as a tuple in the A and that's enough. Do I make sense?

That's what I mean.

Cool! I get the idea and thank you very much!


Sabnbzd - Update to 4.4.0 failing

✅ Have you read and understood the above guidelines?
yes
📜 What is the name of the script you are using?
SABnzbd
📂 What was the exact command used to execute the script?
bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/sabnzbd.sh)"
📝 Provide a clear and concise description of the issue.
Running the script inside the LXC.
Script fails with this output:
 ⠼ Updating SABnzbd to 4.4.0
[ERROR] in line 43: exit code 0: while executing command python3 -m pip install -r requirements.txt &> /dev/null

⚙ What settings are you using?

[X] Default Settings
[ ] Advanced Settings

🖥 Which Linux distribution are you using?
Debian 12
🔄 Steps to reproduce the issue.
Running the script inside an existing SABnbzd LXC
❌ Paste the full error output (if available).
⠼ Updating SABnzbd to 4.4.0
[ERROR] in line 43: exit code 0: while executing command python3 -m pip install -r requirements.txt &> /dev/null
🖼 Additional context (optional).
No response

Installed the update by hand:
cd /opt/sabnbzd python3 -m pip install -r requirements.txt &> /dev/null systemctl start sabnzbd.service

https://github.com/community-scripts/ProxmoxVE/discussions/555


Self Signed Cert issue

Hitting an error on the plugin where a self-signed cert is giving an error (won't populate the instances).  Using postman on the box works, UI and swagger-ui works and the CURL works.  The only thing left is the certificate or using an IP.  Can we add a variable to disable SSL strict checking?

Yes.  I had someone ask for the opposite on the main vscode-f5 extension.  Developing the feature here might be a bit easier.

@magicalyak, so where do we want to go with this?  close for now?


Rotate image with transformation from image frame to target one

@wkentaro thanks for the pull request. I recently removed a dependency on OpenCV within rviz. It would be great to preserve this. Is there a way to do this which does not use OpenCV? It seems like a naive 2D rotation could be done using QImage and QTransform.

I see.
I've worked around a bit in https://github.com/wkentaro/rviz/commits/feature/image-rotate-without-opencv but got segv with current implement.
It segfaults at converting ROS image msg to QImage.

Unfortunately I'll have to insist that we keep OpenCV out of the dependencies for now. If you or anyone else has time to resurrect this using QImage that would be great. Until then I'll leave this here as untargeted.


Prepare for Fastboot 1.0

process.env.EMBER_CLI_FASTBOOT will be gone in FastBoot 1.0. This should now work in pre and post 1.0 versions of ember-cli-fastboot. See https://github.com/ember-fastboot/ember-cli-fastboot/issues/360 and https://gist.github.com/kratiahuja/fd073007e10abb9db0a2ec42bc1d7c17 for context.
Also added FastBoot tests to make sure this works for now and in the future.

Can you rebase this on the latest change?

@martndemus done


A suggestion, an issue with int, and a strange issue with prange

Reporting a bug

[x] I am using the latest released version of Numba (most recent is visible in
the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
[x] I have included below a minimal working reproducer (if you are unsure how
to write one see http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports).

Hello,
First of all thank you for the great software!
I have just learned about Numba very recently (well, since yesterday!). I tried it on a problem that I had spent a lot of time trying to vectorize with Numpy: simply replacing a range() (in a naive code) with numba.prange() gave me a speedup of >100x, which is twice as fast as my vectorized code. I was shocked! This is awesome!
When browsing the FAQ page and I saw that there is a paper on the software. I think the paper would deserve a better place where people can notice. According to Google Scholar, the paper has been cited 156 times, which is too modest in my opinion (and one reason might be not many people know about it).
Now I have two issues that I would like to ask for your help.
The first may be a bug: it is not possible to declare np.zeros with dtype. This function
@numba.jit(nopython=True)
def test():
    v = np.zeros(3, dtype=int)

gave the following error message:

File "reproduce.py", line 166:
def test():
v = np.zeros(3, dtype=int)
^
This is not usually a problem with Numba itself but instead often caused by
the use of unsupported features or an issue in resolving types.
To see Python/NumPy features supported by the latest release of Numba visit:
http://numba.pydata.org/numba-doc/latest/reference/pysupported.html
and
http://numba.pydata.org/numba-doc/latest/reference/numpysupported.html
For more information about typing errors and how to debug them visit:
http://numba.pydata.org/numba-doc/latest/user/troubleshoot.html#my-code-doesn-t-compile
If you think your code should work with Numba, please report the error message
and traceback, along with a minimal reproducer at:
https://github.com/numba/numba/issues/new

The second issue is that when running the code below (at the end of this post), I obtained the following message:

python(6019,0x1181af5c0) malloc: Incorrect checksum for freed object 0x7fae9acd75f8: probably modified after being freed.
Corrupt value: 0x0
python(6019,0x1181af5c0) malloc: *** set a breakpoint in malloc_error_break to debug
Abort trap: 6

To see what should be obtained, simply remove the @numba line and replace numba.prange by range. Unfortunately I could not produce a simpler minimal working example (I tried to, but in all those simpler examples, everything was working).
I am using Numba 0.45.1, Python 3.7.2, installed in a virtual environment on macOS.
Thank you very much in advance for your help!
import numpy as np
import random
import numba

np.random.seed(12)
random.seed(12)

@numba.jit(nopython=True, parallel=True)
def build_pairwise_sparse(points1, points2, adj1=None, adj2=None, assignment_mask=None, len_weight=0.5):
    """
    points1: n1 x 2 array
    points2: n2 x 2 array
    For each pair of matches: i <--> p and j <--> q, the pairwise cost
        P(ip, jq) = w*leng + (1 - w)*0.5*(1 - cos_angle)
    where
        leng = np.abs(norm1 - norm2)/(norm1 + norm2)
        cos_angle = ((xi-xj)*(xp-xq) + (yi-yj)*(yp-yq))/(norm1*norm2)
        norm1 = np.sqrt((xi-xj)*(xi-xj) + (yi-yj)*(yi-yj))
        norm2 = np.sqrt((xp-xq)*(xp-xq) + (yp-yq)*(yp-yq))
        w = len_weight
    adj1, adj2: n1xn1, n2xn2 adjacency matrices of points1 and points2.
        If None then fully connected.
    assignment_mask: the mask for the assignment matrix
        assignment_mask[i, p] = 0 means i should never match to p
    """
    len_weight = min(1.0, max(len_weight, 0))
    n1 = len(points1)
    n2 = len(points2)
    N = n1*n2

    # all assignment indices
    # if assignment_mask is None:
    #     assignment_mask = np.ones((n1, n2))
    aidx = np.flatnonzero(assignment_mask)
    A = len(aidx)

    # pre-compute x,y coordinates of each linear index
    lidx = np.zeros(A)
    ridx = np.zeros(A)
    for idx_a in range(A):
        a = aidx[idx_a]
        p = a % n2
        i = int((a - p)/n2)
        lidx[idx_a] = i
        ridx[idx_a] = p

    # count the number of non-zero element in the final pairwise matrix
    # not easy to get a formula, so we iterate
    # upper-bound for the total number of non-zeros: min(2*E1*E2, A*(A-1)/2)
    num_nonzeros = 0
    for idx_a in range(A - 1):
        i = lidx[idx_a]
        p = ridx[idx_a]
        for idx_b in range(idx_a + 1, A):
            j = lidx[idx_b]
            q = ridx[idx_b]
            if q == p or j == i:
                continue
            # if ij or pq is not an edge then no potential
            if adj1 is not None and adj1[i, j] <= 0:
                continue
            if adj2 is not None and adj2[p, q] <= 0:
                continue
            num_nonzeros += 1

    # now we iterate again to get the indices i, j, p, q
    # last column of data is the potential
    data = np.zeros((num_nonzeros, 5))
    idx = 0
    for idx_a in range(A - 1):
        i = lidx[idx_a]
        p = ridx[idx_a]
        for idx_b in range(idx_a + 1, A):
            j = lidx[idx_b]
            q = ridx[idx_b]
            if q == p or j == i:
                continue
            # if ij or pq is not an edge then no potential
            if adj1 is not None and adj1[i, j] <= 0:
                continue
            if adj2 is not None and adj2[p, q] <= 0:
                continue
            data[idx, 0] = i
            data[idx, 1] = j
            data[idx, 2] = p
            data[idx, 3] = q
            idx += 1

    for pidx in numba.prange(num_nonzeros):
        i = int(data[pidx, 0])
        j = int(data[pidx, 1])
        p = int(data[pidx, 2])
        q = int(data[pidx, 3])
        xi = points1[int(i), 0]
        yi = points1[int(i), 1]
        xj = points1[int(j), 0]
        yj = points1[int(j), 1]
        xp = points2[int(p), 0]
        yp = points2[int(p), 1]
        xq = points2[int(q), 0]
        yq = points2[int(q), 1]

        norm1 = np.sqrt((xi-xj)*(xi-xj) + (yi-yj)*(yi-yj))
        norm2 = np.sqrt((xp-xq)*(xp-xq) + (yp-yq)*(yp-yq))
        leng = np.abs(norm1 - norm2)/(norm1 + norm2)
        cos_angle = ((xi-xj)*(xp-xq) + (yi-yj)*(yp-yq))/(norm1*norm2)
        tt = len_weight*leng + (1 - len_weight)*0.5*(1 - cos_angle)

        data[pidx, 4] = tt

    return data

def main():
    n1 = 4
    n2 = 2
    assert n1 >= n2

    # create a set of randoms 2D points, zero-centered them
    points1 = np.random.randint(100, size=(n1, 2))
    points1 = points1 - np.mean(points1, axis=0)

    # randomly transform it
    theta = np.random.rand()*np.pi/2
    # scale = np.random.uniform(low=0.5, high=1.5)
    scale = 1
    tx = np.random.randint(low=120, high=150)
    ty = np.random.randint(50)
    M = np.array([[scale*np.cos(theta), np.sin(theta),       tx],
                  [-np.sin(theta),       scale*np.cos(theta),  ty]])
    # transform the first set of features
    points2 = np.ones((3, n1))
    points2[:2] = np.transpose(points1)
    points2 = np.transpose(np.dot(M, points2))

    # randomly choose n2 points
    indices = list(range(n1))
    random.shuffle(indices)
    points2 = points2[indices]
    points2 = points2[:n2]

    # start = time.time()
    # adj1 = np.fill_diagonal(np.ones((n1, n1), dtype=int), 0)
    # adj2 = np.fill_diagonal(np.ones((n2, n2), dtype=int), 0)
    # assignment_mask = np.ones((n1, n2), dtype=int)
    # adj1 = np.fill_diagonal(np.ones((n1, n1)), 0)
    # adj2 = np.fill_diagonal(np.ones((n2, n2)), 0)
    assignment_mask = np.ones((n1, n2))
    # data = build_pairwise_sparse(points1, points2,
    #                              adj1=adj1,
    #                              adj2=adj2,
    #                              assignment_mask=assignment_mask
    #                              )

    data = build_pairwise_sparse(points1, points2,
                                 adj1=None,
                                 adj2=None,
                                 assignment_mask=assignment_mask
                                 )

    print(data)

@numba.jit(nopython=True)
def test():
    v = np.zeros(3, dtype=int)

if __name__ == "__main__":
    main()
    # test()

You don't have any pranges in your build_pairwise_sparse function.  Which ranges did you try to run as pranges?
Also, the paper you reference with respect to Numba is responsible for only part of the 100x speed-up that you saw.  Something called ParallelAccelerator technology was integrated with Numba a few years ago and responsible for most of that speedup.  That technology is described in a paper "Parallelizing Julia with a Non-Invasive DSL" in ECOOP 2017.

@DrTodd13 Thanks for your reply. Sorry I removed prange to test but then forgot to add it back. I have updated the code (prange is used in the last for loop).

Also, the paper you reference with respect to Numba is responsible for only part of the 100x speed-up that you saw. Something called ParallelAccelerator technology was integrated with Numba a few years ago and responsible for most of that speedup. That technology is described in a paper "Parallelizing Julia with a Non-Invasive DSL" in ECOOP 2017.

Thanks for the information! I think all these papers deserve more credit!

RE: references/citations, @DrTodd13, any chance you could please open a PR against the docs with info about papers relating to ParallelAccelerator, such that if people wish to cite this feature it's easy to obtain some good references. Thanks. Suggested location is bottom of this page https://github.com/numba/numba/blob/5bd018fd55ab2ff0916ab2c6360334fe94e471a4/docs/source/user/faq.rst, under the How do I reference/cite/acknowledge Numba in other work? title?

RE possible bug:
@numba.jit(nopython=True)
def test():
    v = np.zeros(3, dtype=int)

this is a known feature request (if I can find another ticket asking for it I'll cross reference), the dtype kwarg is supported but the value must be a NumPy type, int is the Python type. Try this:
In [1]: from numba import njit

In [2]: import numpy as np

In [3]: @njit
   ...: def foo():
   ...:     return np.zeros(3, dtype=np.int_)
   ...:

In [4]: foo()
Out[4]: array([0, 0, 0])

In [5]: np.int_?
Init signature: np.int_(self, /, *args, **kwargs)
Docstring:
Signed integer type, compatible with Python `int` anc C ``long``.
Character code: ``'l'``.
Canonical name: ``np.int_``.
Alias *on this platform*: ``np.int64``: 64-bit signed integer (-9223372036854775808 to<PHONE_NUMBER>854775807).
Alias *on this platform*: ``np.intp``: Signed integer large enough to fit pointer, compatible with C ``intptr_t``.
File:           <path>/lib/python3.7/site-packages/numpy/__init__.py
Type:           type
Subclasses:

RE the massive piece of code with build_pairwise_sparse doing the work, this exposes a bug in ParallelAccelerator, MWR:
from numba import njit
import numpy as np

def foo(X):

    acc = 0
    for _ in range(4):
        acc += 1

    print("acc", acc)
    data = np.zeros((acc,))
    print("data shape",data.shape)
    print(data)

x = np.ones(7)
njit(foo)(x)
print('-' *80)
njit(parallel=True)(foo)(x)

gives:
acc 4
data shape (4,)
[0. 0. 0. 0.]
--------------------------------------------------------------------------------
acc 4
data shape (0,)
[]

@stuartarchibald Thank you so much for your messages!
On the ParallelAccelerator bug: good catch! I couldn't imagine that the issue lies at the += :o
I'll try putting this part of the code outside of the function to see.


Turn map object into html source code

Hello! I'm trying to run  gmplot from Azure Databricks and it seems to be a really nice tool for map visualization.
The problem is that gmap.draw("my_map.html") doesn't show anything.
Is there a way to turn map object into html source code?

It writes a file. Can you access the file? Or is that not possible with
Databricks?
It was a poor choice to not include a raw html draw function (but me on web
apps, but I had filesystem access).
On Mon, Oct 14, 2019, 6:01 AM elisavetliv<EMAIL_ADDRESS>wrote:

Hello! I'm trying to run gmplot from Azure Databricks and it seems to be a
really nice tool for map visualization.
The problem is that gmap.draw("my_map.html") doesn't show anything.
Is there a way to turn map object into html source code?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/vgm64/gmplot/issues/108?email_source=notifications&email_token=AAM2LUYWZM74PUEIMATODJDQORUTDA5CNFSM4JAO2UQKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HRSWPCQ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAM2LU2ZGNIK7UO2KZZOMGTQORUTDANCNFSM4JAO2UQA
.

Similar to #68; we should reintroduce this feature.

This feature was added in #139; you can now call gmap.get() to get the map as an HTML string.


Fix db cleanup in blob_gc_job_test

Move db cleanup to GTest fixture destructor so that a broken test won't affect subsequent tests in this way:
[==========] Running 9 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 9 tests from BlobGCJobTest
[ RUN      ] BlobGCJobTest.DiscardEntry
[       OK ] BlobGCJobTest.DiscardEntry (118 ms)
[ RUN      ] BlobGCJobTest.RunGC
/home/pingcap/tabokie/titan/src/blob_gc_job_test.cc:274: Failure
Value of: db_iter->value().compare(Slice(GenValue(i))) == 0
  Actual: false
Expected: true
[  FAILED  ] BlobGCJobTest.RunGC (142 ms)
[ RUN      ] BlobGCJobTest.GCLimiter
/home/pingcap/tabokie/titan/src/blob_gc_job_test.cc:82: Failure
TitanDB::Open(options_, dbname_, &db_)
IO error: lock : /tmp/rocksdbtest-1000/titandb/LOCK: No locks available
titan_blob_gc_job_test: /home/pingcap/tabokie/titan/src/blob_gc_job_test.cc:338: rocksdb::titandb::BlobGCJobTest_GCLimiter_Test::TestBody()::__lambda8: Assertion `db_' failed.
[1]    189356 abort (core dumped)  ./titan_blob_gc_job_test

Signed-off-by: tabokie<EMAIL_ADDRESS>

Codecov Report

Merging #107 into master will increase coverage by 0.06%.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           master   #107      +/-   ##
========================================
+ Coverage   86.94%    87%   +0.06%
========================================
  Files          44     44
  Lines        3247   3247
========================================
+ Hits         2823   2825       +2
+ Misses        424    422       -2


There is a difference between the score and r2 in a regression task

Describe the bug
There is a difference between the score and r2 in a regression task, while it shouldn't because by default, scikit learn uses r2 as a scoring.
Steps/Code to Reproduce
to come.
Expected Behavior
r2 and default score by scikit-learn should be iso in a regression task.
Actual Behavior

Environment
skore version 0.4.1

Attempt to reproduce using Lasso:
def prepare_cv():
    from sklearn import datasets, linear_model
    diabetes = datasets.load_diabetes()
    X = diabetes.data[:150]
    y = diabetes.target[:150]
    lasso = linear_model.Lasso()
    return lasso, X, y

lasso, X, y = prepare_cv()

from skore import CrossValidationReporter

reporter = CrossValidationReporter(lasso, X, y, cv=3)

reporter._cv_results
# {
#     'test_r2': array([0.3315057 , 0.08022103, 0.03531816]),
#     'test_score': array([0.3315057 , 0.08022103, 0.03531816]),
#     'fit_time': array([...]),
#     'score_time': array([...]),
#     'estimator': [Lasso(), Lasso(), Lasso()],
#     'indices': {...},
#     'test_neg_root_mean_squared_error': array([...]),
#     'fit_time_per_data_point': [...],
#     'score_time_per_data_point': [...]
# }

yes, this issue is still in triage because I can't reproduce the error, and obviously I took a screen capture of the bug, but not of the code leading to the bug... :(

Feel free to re-open when you can reproduce


Windows support

This is blocked on the ability to build tflite for windows https://github.com/bazelbuild/bazel/issues/4148.

Fixed in https://github.com/dart-lang/tflite_native/commit/0660cd68f27cb356a757cb071f5cec73f2cb4a10.


Docs: Suggestions for Idempotency

What were you searching in the docs?
I was working on setting up an environment to beta test the new idempotency package - specifically trying to understand how to implement the function wrapper. Feedback has been shared through other channels, but felt it appropriate to capture here as well.
Is this related to an existing documentation section?
https://docs.powertools.aws.dev/lambda/typescript/latest/api/modules/_aws_lambda_powertools_idempotency.html#function-wrapper
How can we improve?
First, thanks for working on this package! Excited to see it approaching launch.

* 2nd sentence of intro paragraph: “use it to wrapp a function”
* middy example doesn’t make sense, doesn’t use `processingFunction` anywhere
* under Usage, permissions aren’t listed (broken link), can’t find this anywhere actually
* need guidance on DynamoDB table structure
* if DynamoDB table isn't automatically created, remove statement saying it will be
* fix example import for `DynamoDBPersistenceLayer`
* example has `processingFunction` spelling wrong in one case
* example needs to actually _invoke_ `processingFunction`
* middy example uses APIGW example types, but has `SQSRecord` as `processingFunction` parameter
* on Interface `DynamoDBPersistenceOptionsWithClientInstance` page, awsSdkV3Client description references AppConfigProvider

Got a suggestion in mind?

suggest link to JMES docs (to be honest, I was surprise that JSONPath wasn't used. Isn't it more idiomatic? Maybe that's just me though).
clarify how cascading behavior of AWS client generation works for DynamoDB Persistence Layer (using provided one over generated one)
suggest a more thorough description of what dataKeywordArgument does, including fallback behavior if there isn’t a match, and how it does or does not interact with eventKeyJmesPath
consider discussing how one could write unit tests to exercise wrapped functions

Acknowledgment

[X] I understand the final update might be different from my proposed suggestion, or refused.

Hi @brnkrygs thank you for taking the time to go through the project and write down all the notes.
As we discussed earlier internally, I have already started working on some of the fixes and will continue doing so.
I'll open a PR soon!

All the issues described except the dead URL to the main docs should have been fixed.
We'll add the docs in one of the next PRs.


Improve the way to manage environment variables and secrets

Why
With the current structure, every time we need to add a new environment variable, we need to open a PR to define a new variable and add it into the container definition(example). That is tedious.
Inspired by the Varun project, we set a new way to do so in EWA Payroll project: maintain a new variable environment_variables on Terraform cloud as a JSON object; a new variable just needs to add to it.
A similar approach (but less flexible) for secrets. These PRs can be used as references.
https://github.com/onward-venture/ewa-payroll-infra/pull/2
https://github.com/onward-venture/ewa-payroll-infra/pull/6
Wiki: https://github.com/worpt-wallet/wallet-api/wiki/Environment-Variables
Who benefits
All developers who need to occasionally define new environment variables and secrets when working on the tasks.

As I understand correctly, we will store the secret into only 1 key on Terraform cloud, but the secret value must to store as sensitive data, I'm wondering when we add a new secret key how do we update the Terraform variable as the old keys was encrypted 🤔

@andyduong1920 In the Varun project, we store the whole secret object in 1Password, and whenever we added a new key, we updated 1Password as well.
It seems that is not a good way. In the Ewa project, when we add a new secret, we create the corresponding secret in AWS. But this will create many secrets if we have many.
I found a way we can improve this:

Add secrets in variables.
Create an object to store all secrets using terraform code.
Create only 1 secret on AWS to store that object
Pass that object to Task Definition
In the application, we will fetch it, parse it into variables and add them to environment variables.

But I still feel it's not the best practice. Do you have any better options?

@andyduong1920 In the Varun project, we store the whole secret object in 1Password, and whenever we added a new key, we updated 1Password as well.
It seems that is not a good way. In the Ewa project, when we add a new secret, we create the corresponding secret in AWS. But this will create many secrets if we have many.
I found a way we can improve this:
1. Add secrets in variables.

2. Create an object to store all secrets using terraform code.

3. Create only 1 secret on AWS to store that object

4. Pass that object to Task Definition

5. In the application, we will fetch it, parse it into variables and add them to environment variables.

But I still feel it's not the best practice. Do you have any better options?

@hoangmirs can we try the 1Passworld Terraform provider to get the value from 1Password and pass it into Terraform?
https://registry.terraform.io/providers/1Password/onepassword/latest/docs/data-sources/item
So we just need to update the ENV only on the 1Password side and let Terraform script pull and handle that.
The downside is: when we transfer the project to client, not sure we can transfer the 1Password ownership 🤔


Install graceful shutdown on server

This commit enables gracefull shutdown on the server to handle SIGTERM signals from the cluster and improve service restarts

Thanks for merging it. I'm glad the transfer worked out.
This is a really nifty project that was exactly what I needed for my homelab.
I guess I could have done a better job explaining the need for this change.
While I was tuning resource utilization and healthchecks timeout, I've noticed that trow would ignore SIGTERM calls from the scheduler.
It would hang for up-to 30s the graceful time expired and get SIGKILL-ed. This caused a larger delay as the scheduler has to wait for the process to stop to start another instance (in my case).
I believe this was being caused by the GRPC + Axum spawning tasks that would not receive the termination signal. With this change, calling ctrl-c, for example, immediatelly asks the reactor and axum to terminate connections and tasks, so it can finish faster and be re-scheduled.


Update idc slim

Updating IDC Slim to latest slim version

@igoroctaviano please review and merge if everything is ok!


Apache HttpStatus for http status codes

Apache's HttpStatus util class is more complete than the current library's. Use theirs for exposing HTTP status codes.

Codecov Report

Merging #1539 into discogapic will not change coverage.
The diff coverage is 100%.

@@              Coverage Diff              @@
##             discogapic    #1539   +/-   ##
=============================================
  Coverage         85.82%   85.82%
  Complexity         4679     4679
=============================================
  Files               448      448
  Lines             18795    18795
  Branches           2026     2026
=============================================
  Hits              16131    16131
  Misses             2073     2073
  Partials            591      591

Impacted Files
Coverage Δ
Complexity Δ

...gen/configgen/transformer/LanguageTransformer.java
88.88% <ø> (ø)
4 <0> (ø)
:arrow_down:

...degen/transformer/java/JavaSurfaceTransformer.java
98% <100%> (ø)
71 <0> (ø)
:arrow_down:

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 8a3ae9c...a26d8fa. Read the comment docs.


Fix deprecation in InputBag::get

InputBag::get should only return scalar values, when an array is needed InputBag::all should be used. Like it or not. See https://github.com/symfony/symfony/issues/44788
This should be done with 0.25.0 as a basis to be able to move forwards, as 0.26.0 seems to be too unstable atm

Solved by #175


Release not accepted while upgrading to 4.12.0-0.okd-2023-04-16-041331

Describe the bug
Tried to upgrade the cluster from 4.11.0-0.okd-2023-01-14-152430 to 4.12.0-0.okd-2023-04-16-041331 from Cluster Settings and received the error message shown in the screenshot

Version

4.11.0-0.okd-2023-01-14-152430
How reproducible

100%. Tried it on multiple clusters
Log bundle

Ah okay. Just saw the thread. Thanks for the quick reply. I have triggered a force upgrade now


Remove EnableExit to prevent the window from closing on exit

This removes the -EnableExit switch.  Without this the Powershell window or ISE will close on exit.

Good catch @perfycat Thanks!


ερώτηση

Το έχεις κανει  deploy στο  aws? δεν κοστίζει αυτο?

I am translating the text for future readers.
Title: "Question"
Body: "Have you deployed it on AWS. Doesn't it cost?"
Yes, you can read the blog post I wrote about the procedure of the project for more information! AWS offers a free EC2 instance with 1 CPU core and 1GB of RAM.