Compiling error on ubuntu 20.04 for __cmsg_data

Hello!
Anyone knows about this?
I checked this structs and find those codes at ../src/linux_hal_generic.cpp:293.
        struct {
                struct cmsghdr cm;
                char control[256];
        } control;

The last element of cmsghdr is a __flexarr. So , a char control[256] after a __flexarr. This cause an error.
Full logs at below:
user@user-Lenovo-Product:~/AVnu/gptp/linux/build$ ARCH=I210 make all
g++ -Wall -g -I. -I../../common -I../src -I/home/user/header/include/ -DPTP_HW_CROSSTSTAMP -I../../../../lib/igb/ -DWITH_IGBLIB -std=c++0x -Wnon-virtual-dtor  -c ../src/linux_hal_generic.cpp -o obj/linux_hal_generic.o
In file included from /usr/include/x86_64-linux-gnu/sys/socket.h:33,
                 from ../src/linux_hal_generic.cpp:38:
/usr/include/x86_64-linux-gnu/bits/socket.h: In member function ‘virtual net_result LinuxNetworkInterface::nrecv(LinkLayerAddress*, uint8_t*, size_t&)’:
/usr/include/x86_64-linux-gnu/bits/socket.h:285:33: error: flexible array member ‘cmsghdr::__cmsg_data’ not at end of ‘struct LinuxNetworkInterface::nrecv(LinkLayerAddress*, uint8_t*, size_t&)::<unnamed>’
  285 |     __extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data.  */
      |                                 ^~~~~~~~~~~
../src/linux_hal_generic.cpp:64:8: note: next member ‘char LinuxNetworkInterface::nrecv(LinkLayerAddress*, uint8_t*, size_t&)::<unnamed struct>::control [256]’ declared here
   64 |   char control[256];
      |        ^~~~~~~
../src/linux_hal_generic.cpp:62:9: note: in the definition of ‘struct LinuxNetworkInterface::nrecv(LinkLayerAddress*, uint8_t*, size_t&)::<unnamed>’
   62 |  struct {
      |         ^
In file included from /usr/include/x86_64-linux-gnu/sys/socket.h:33,
                 from ../src/linux_hal_generic.cpp:38:
/usr/include/x86_64-linux-gnu/bits/socket.h: In member function ‘virtual int LinuxTimestamperGeneric::HWTimestamper_txtimestamp(PortIdentity*, PTPMessageId, Timestamp&, unsigned int&, bool)’:
/usr/include/x86_64-linux-gnu/bits/socket.h:285:33: error: flexible array member ‘cmsghdr::__cmsg_data’ not at end of ‘struct LinuxTimestamperGeneric::HWTimestamper_txtimestamp(PortIdentity*, PTPMessageId, Timestamp&, unsigned int&, bool)::<unnamed>’
  285 |     __extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data.  */
      |                                 ^~~~~~~~~~~
../src/linux_hal_generic.cpp:295:8: note: next member ‘char LinuxTimestamperGeneric::HWTimestamper_txtimestamp(PortIdentity*, PTPMessageId, Timestamp&, unsigned int&, bool)::<unnamed struct>::control [256]’ declared here
  295 |   char control[256];
      |        ^~~~~~~
../src/linux_hal_generic.cpp:293:9: note: in the definition of ‘struct LinuxTimestamperGeneric::HWTimestamper_txtimestamp(PortIdentity*, PTPMessageId, Timestamp&, unsigned int&, bool)::<unnamed>’
  293 |  struct {
      |         ^
make: *** [Makefile:150：obj/linux_hal_generic.o] Error 1

I've got the same :(

Why are we just seeing this now? Newer version of gcc?

I do not investigate the reason. When we use Ubuntu 18.04 then there was no problem.
Even, Ubuntu 20.04 updated from 18.04 works fine. However, when we have clean installation 20.04 then this issue occures.
I've checked and this solve issue.
The reason could be some changes in /usr/include/x86_64-linux-gnu/sys/socket.h:33 file.
I use:
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.

and my colleague, who updated from 18.04 to 20.04 and use the same version of compiler, has not such error.

Seems I could close this now. :)


Make auto-fixing of stack traces optional when using ssrLoadModule

Clear and concise description of the problem
When an error occurs during SSR, the stack trace needs fixing in order to be correct:
try {
  result = mod.foo();
} catch (error) {
  vite.ssrFixStacktrace(error);
  handle_error(error);
}

But if the error occurred during ssrLoadModule, Vite will fix the stack trace before the error is thrown. As discussed in #7045, this results in a broken sourcemap at best and a cryptic "TypeError: Line must be greater than or equal to 1, got -1" error at worst:
try {
+ const mod = await vite.ssrLoadModule('my-module.js');
  result = mod.foo();
} catch (error) {
+ // yikes, we don't know if the stack trace was already fixed or not
- vite.ssrFixStacktrace(error);
  handle_error(error);
}

It's possible to work around it...
let mod;

try {
  mod = await vite.ssrLoadModule('my-module.js');
} catch (error) {
  handle_error(error);
}

try {
  result = mod.foo();
} catch (error) {
  vite.ssrFixStacktrace(error);
  handle_error(error);
}

...but when module loads are happening several function call boundaries away from the try/catch, this becomes problematic — all you can do is remove ssrFixStacktrace from the top-level catch and wrap everything except calls to ssrLoadModule with more granular try/catch blocks and do ssrFixStacktrace in those instead. It can get out of hand quite rapidly.
Suggested solution
For me, the ideal would be if ssrLoadModule didn't fix stack traces at all (or log errors, for that matter) — there's nothing particularly special about errors that occur during module load rather than inside a function.
Since that would be a breaking change, it could be an config option instead:
// vite.config.js, or inline config
const config = {
  ssr: {
    preserveStacktrace: true
  }
};

Alternative
Instead of putting the option in the config, it could be an option to ssrLoadModule itself. The docs suggest that ssrLoadModule already takes an options object...

...though I think that's incorrect? https://github.com/vitejs/vite/blob/489a7f11e9d89932310025299c1eeb75c5cb4ce6/packages/vite/src/node/server/index.ts#L364-L372 Regardless, an option like preserveStacktrace: true could be a solution here.
Additional context
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

looks like a duplicate of https://github.com/vitejs/vite/issues/7010

How so? They don't appear at all related to me

Here's the code that does it (it doesn't call ssrFixStacktrace, but invokes the same two methods):
https://github.com/vitejs/vite/blob/2debb9f4cbb6003e7d24444cf049b45582d82ff1/packages/vite/src/node/ssr/ssrModuleLoader.ts#L192

sorry. after reading it a second time now I see it's not related.
first time I read this, it somehow felt similar in my head

I sent a PR for this: https://github.com/vitejs/vite/pull/7048


ngrok: 3.7.0 -> 3.10.1

Description of changes
I updated using:
nix-shell maintainers/scripts/update.nix --argstr package ngrok

And tested the package using:
$ NIXPKGS_ALLOW_UNFREE=1 nix run --impure .#ngrok -- --version
ngrok version 3.10.1
$ NIXPKGS_ALLOW_UNFREE=1 nix run --impure .#ngrok http 8080

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[x] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

But could you please take this opportunity and fix the package issues? Such as

phases hooks are missing: unpackPhase, buildPhase, installPhase
platforms: lib.platforms.unix;
move package to pkgs/by-name.
nixfmt
add meta.downloadPage # Where is it downloaded from?
add meta.changelog # Is there a changelog?
remove nested with (with lib;) from meta

@bobvanderlinden I'll merge this since this package seems broken.
But could you please take this opportunity and fix the package issues? Such as

phases hooks are missing: unpackPhase, buildPhase, installPhase
platforms: lib.platforms.unix;
move package to pkgs/by-name.
nixfmt
add meta.downloadPage # Where is it downloaded from?
add meta.changelog # Is there a changelog?
remove nested with (with lib;) from meta

Thanks for the suggestions! I've included them in https://github.com/NixOS/nixpkgs/pull/328897


Update data-collection-rule-azure-monitor-agent.md

Correcting the security log XPath query description.

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

@bwren
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
#assign:@MicrosoftDocs/public-repo-pr-review-team

The following users don't have valid GitHub IDs, or are not collaborators on this repo: microsoftdocs/public-repo-pr-review-team

#sign-off


Compress Images for Faster Map Loads

Been doing some testing, and after throwing the images through some PNGGauntlet Compression, I've experienced much better load times of the map when rendering a large number of icons, I've made a pull request #118  with the new compressed images, additionally I made the normal icons just smaller versions of the icons in the larger-icons folder.
If you would prefer the other Icons I can compress them instead, just seemed a little off that they were so drastically different, is there a reason for that?
Edit: Changed the pull request number to the isolated changes.

Moving discussion to #118.


helm-operation-xxxxx pod in Unavailable state after initial provisioning RKE2/K3s clusters in v2.7-head

Rancher Server Setup

Rancher version: v2.7-head (Commit ID: ab561bf)
Installation option (Docker install/Helm Chart): Helm

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc): RKE1

Proxy/Cert Details: N/A

Information about the Cluster

Kubernetes version: v1.25.6+rke2r1 & v1.24.10+k3s1
Cluster Type (Local/Downstream): Downstream

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider): Infrastructure Provider

User Information

What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom)Cluster Owner and Admin

If custom, define the set of permissions: N/A

Describe the bug
When provisioning an RKE2/K3s cluster, two helm-operation-xxxxx pods are being created and are being assigned to the same worker, which is causing an error when attempting to install rancher-webhook twice on the same worker node, which in turn causes the second pod to go into an Unavailable state.
NOTE: This is an intermittent issue, meaning it does not reproduce on every cluster.
To Reproduce

Spin up a Rancher server on v2.7-head (Commit ID: ab561bf) or newer
Provision a downstream RKE2 or K3s cluster with 3 etcd, 2 cp, and 3 worker nodes
Ensure that the cluster and nodes come up as Active
Navigate to the Cluster Explorer > Pods page for the cluster, and select All Namespaces

Result
One of the 2 helm-operation-xxxxx pods will be in a Succeeded state while the other will be in an Unavailable state with the helm pod stating Release "rancher-webhook" does not exist. Installing it now.[/n]Error: release: already exists (as seen in screenshot below), and both pods will have the same Worker value.
Expected Result
Any helm-operation-xxxxx pod(s) that are generated are consistently in a Succeeded state without errors.
Additional Information:

Considering rancher-webhook is being successfully installed on the worker, the impact of this issue seems more cosmetic than functional
This issue is intermittent. On most clusters I observe either only one helm-operation pod being generated or each of the two helm-operation pods are pointed to two separate workers

In both of these scenarios, I do not observe the error

During my testing, I was able to reproduce this on approximately 1-2 RKE2/K3s clusters every 6 clusters created,
During my testing, I was unable to reproduce this issue on approximately 8 RKE1 clusters
During my testing, I was unable to reproduce this issue on approximately 8 clusters provisioned on Rancher v2.7.1

NOTE: during my testing, clusters in v2.7.1 did not generate the helm-operation pod(s) during initial provisioning

NOTE: This is an intermittent issue, meaning it does not reproduce on every cluster.
  In total, seen 4/8 times.
All clusters were 1.24.10 with individual roles - [ 1 etcd, 1 cp, 1 wkr ]
To reproduce:

Fresh install of rancher v2.7-head
Provision a downstream RKE2 or K3s cluster w/ k8s 1.24.10 and individual roles
Navigate to Cluster Explorer > Pods > All Namespaces
Reproduced - Helm operation pod in Unavailable state, with logs detailing rancher-webhook installation fails because it already exists

Based on the information from @brandond and @MbolotSuse, they do not believe that this is a regression. Therefore I am going to remove the Regression label from the ticket.

Current thought is that this might have something to do with multiple cattle-cluster-agents running in the cluster (I do NOT see this problem when working with a single node downstream cluster).  Since the agent is what triggers the helm install operations,  I think it would be ideal if those agents had a leader election of some sort and only 1 would attempt the installs, but either that leader election is broken or totally not present.  I'll try to determine which is the case.  Beyond coordinating the agents, I'm not sure if there are many other good options.
Also noteworthy is that the failed pods do get cleaned-up (seems to happen in about 60 minutes), so there's no long-term side-effects to this issue.

Another approach would be to use deterministic naming for the helm Pod, and/or to use a Job instead of a Pod to do it. The current code uses a bare pod with GenerateName so if both cattle-cluster-agents attempt chart installation without leader-election, it is pretty much guaranteed one of them will fail.


PM-4.0 support for PiggyAuctions

Please make sure your issue complies with these guidelines:

[X] Use same formatting

[X] Changes must have been tested on PMMP.

[X] Unless it is a minor code modification, you must use an IDE.

[X] Have a detailed title.

What does the PR change?

Adds support for PM API 4.0.
Testing Environment

PocketMine-MP: 4.0.0
PHP: 7.3
Server OS: Windows

Extra Information
N/A

please approve this asap!


Add CDNJS version badge in README.md

Coverage remained the same at 88.75% when pulling 32c36a682fceeb8799739d923f2b0d71f36d9c6f on PeterDaveHello:patch-1 into 7dd1b628c2ce19cd251025a23176787f4f83422b on wingify:master.

Close per https://github.com/wingify/across-tabs/commit/80ae922ca94cb8c33b8ec9a65f7a3add9e9c3665


[Chart] Expanded area chart show wrong values in tooltips

How to reproduce the bug

Go to an Area chart (for example, "Top 10 Boy Name Share" in examples data)
Make sure "Stacked Style" is "expanded"
Hover on the chart, check the "value" column in tooltip

Screenshots
When stacked style is "expanded", the values are showing as decimals:

But they should be the actual values as in other stacked styles:

When we select expand section from stacked styles ,it is showing as actual values as other stacked styles
Screenshots:-
1.When select Expand from stacked style

2.When select Stack from stacked style

Loom video:-
https://www.loom.com/share/77426dd84ec444beaeac1a221a0bb805

Fixed by https://github.com/apache/superset/pull/23469


Governance self-assessment template+guide

Security TAG has a process where they ask for a self-assessment before doing the security reviews as the TAG.
We will probably want to have a similar process in the long run.
Details (execution type, content, etc) to be discussed.
Update:

The whole process of governance reviews, including doing a self-assessment and then asking for TAG review, will be documented in https://github.com/cncf/tag-contributor-strategy/issues/481

This task is about preparing the self assessment template + guide

This is currently blocked on finishing the governance review template first.

Notes from a recent meeting about how to proceed with this work:

Some content that can be in the guide is available in this PR
Need to make it clear that help is available if they need it
Online documentation guide

That goes to contribute.cncf.io
Instructions will be in the guide, the template will be “lean”
Similar to Governance template docs
Feature branch

We're working on this matter in a feature branch: https://github.com/cncf/tag-contributor-strategy/tree/governance-self-assessment-guide
Let's keep this ticket open until we thing we're done and merge the content to main.

Istio might be a good candidate to ask for trying our self assessment guide+template when we're done.
Related: https://github.com/cncf/tag-contributor-strategy/issues/414

Can we start with the data-gathering bit?  That would be a good initial chunk.

This work will be on hold until there's a decision about "projects moving levels (TODO: link)" is done and approved by the TOC.
However, let's create a new task for asking projects doing the data gathering, as explained above. This could turn into an issue template later on.

In today's Governance WG meeting, we decided to continue with this work, instead of waiting the Project Moving Levels initiative to finish. We can always update the self evaluation guide later.

Tasks:

Fix the TODOs in the current doc (https://github.com/cncf/tag-contributor-strategy/pull/520)
Explain the process based on https://docs.google.com/document/d/1252lARpe1KYv_MIy4MHQpnRRyEs5LHOQoJ5JgOwksfs/edit?pli=1#heading=h.dobo4actnqfy:

Do a self assessment first
Then fill the governance review request form

In the form

Add a checkbox: "Did you do a self assessment?" with explanation
Add a "latest self assessment" URL (can be a Google Doc, Hackmd, GitHub file, etc.)

We need to update this doc based on the check list.
@jberkus can you give me a link to the check list?


Enrich discovered entities

Discussed in https://github.com/backstage/backstage/discussions/8227

Originally posted by tanguyantoine November 24, 2021
github-org location let Backstage auto discover teams and users from an organization.
This is very convenient to get Group and User entities ingested within Backstage.
Github does not provide any way to add custom data/link to teams.
Is there a way to enrich/extends discovered entities with custom annotations.
Ex
apiVersion: backstage.io/v1alpha1
kind: Extension
metadata:
  reference: my-github-team
  annotations:
    my-custon-annotation: value

That would be a very convenient way to enrich entities without the need to maintain 2 declarations

Closing this in favor of the discussion, to keep it focused there!


Implement weak partial ordering (WPO) of the graph for concurrent fixpoint iteration.

This implements the Weak Partial Ordering (WPO) of a graph that generalizes the WTO.
It can be used to implement concurrent fixpoint iteration algorithms.
It is implemented in an iterative style so that it does not stack overflow during the WPO construction.

Test cases are added, including the cases for the irreducible graphs.
Ran clang-format to clean up the codes.

Publications:

Sung Kook Kim, Arnaud J. Venet, and Aditya V. Thakur. Deterministic Parallel Fixpoint Computation. To appear in POPL 2020
preprint: arXiv:1909.05951

We've decided to merge this as-is and do the fixups ourselves. Thanks for all your work @skkeem! We're super excited to productionize this :)

Hi @skkeem , I am not sure if the get_num_outer_preds(WpoIdx exit) funtion is the corresponding method for NumOuterSchedPreds in paper. As I found the result given for one of the node in the following graph doesn't seem to match expectation.
Construct a SimpleGraph2 using following codes:
SimpleGraph2 g;
g.add_edge("1", "12");
g.add_edge("1", "16");
g.add_edge("1", "18");
g.add_edge("1", "26");
g.add_edge("12", "45");
g.add_edge("12", "75");
g.add_edge("12", "46");
g.add_edge("16", "74");
g.add_edge("16", "75");
g.add_edge("18", "92");
g.add_edge("26", "93");
g.add_edge("45", "46");
g.add_edge("46", "47");
g.add_edge("47", "73");
g.add_edge("73", "74");
g.add_edge("73", "75");
g.add_edge("73", "73");
g.add_edge("74", "46");
g.add_edge("75", "45");
g.add_edge("92", "93");
g.add_edge("93", "45");
g.add_edge("93", "46");

Traverse through the graph and print out get_num_outer_preds for exit nodes, and predecessors of each nodes. The result for exit node with NodeId "46" only have number for head node with NodeId "46". However in the component for exit node with NodeId "46", there is another node with NodeId "74", it have two predecessors in WPO, one is node with NodeId "16" which is outside of the component, another is node with NodeId "73" which is inside of the component, so I think get_num_outer_preds for exit node with NodeId "46" should have node with NodeId "74" have value 1 (but there is no value for node with NodeId "74").
(This could cause some node not been visited because the counter couldn't reach their num_preds after the component didn't stabilize and need to re-run. )

Hello @ssj933,
Thank you for bringing this to my attention.
wpo.get_num_outer_preds(x)[v] should be equal to NumOuterSchedPreds(v, x) in the paper.
As you have correctly pointed out, wpo.get_num_outer_preds(x_46)[74]  (= NumOuterSchedPreds(74, x_46)) should be 1.
I have fixed the bug and added corresponding test cases in PR #7 .
Thank you.


Permission question

My scanner got an overhaul in January with more checks added, and on today's update reported:
! repo/be.martinelli.miniflutt_2728750.apk declares sensitive permission(s):
  android.permission.READ_EXTERNAL_STORAGE
! repo/be.martinelli.miniflutt_2728750.apk contains signature block blobs: 0x504b4453 (DEPENDENCY_INFO_BLOCK; GOOGLE)

Could you please clarify what the storage permission is needed for? Thanks in advance!
Oh, and that DEPENDENCY_INFO_BLOCK is easy to get rid of:
android {
    dependenciesInfo {
        // Disables dependency metadata when building APKs.
        includeInApk = false
        // Disables dependency metadata when building Android App Bundles.
        includeInBundle = false
    }
}

For some background: that BLOB is supposed to be just a binary representation of your app's dependency tree. But as it's encrypted with a public key belonging to Google, only Google can read it – and nobody else can even verify what it really contains.

Hello,
READ_EXTERNAL_STORAGE is used for saving documents in the regular 'Download' folder of your device. You can deny the permission so that the files will be saved in Android/data/be.martinelli.miniflutt instead.
Thanks for letting me know about the DEPENDENCY_INFO_BLOCK, I'll have a look into this ASAP.

READ_EXTERNAL_STORAGE is used for saving documents in the regular 'Download' folder of your device.

Thanks! And you didn't notice any problems with that on Android 13? Should you, the cause might be that you do not request MANAGE_EXTERNAL_STORAGE as well, which IMHO is the only way to access that specific directory on Android 13+.
    android.permission.READ_EXTERNAL_STORAGE: needed to access downloaded documents
    android.permission.WRITE_EXTERNAL_STORAGE: needed to store downloaded documents

Thanks for letting me know about the DEPENDENCY_INFO_BLOCK, I'll have a look into this ASAP.

Thanks a lot!

Can you please clarify which scanner you are using? I mostly found 2 of your issues reported elsewhere regarding DEPENDENCY_INFO_BLOCK ^1,^2, but that doesn't seem to be a problem. Reading the Google documentation about this, ^3 I'd even consider this as a best practice for publishing on Google Play. I would not be surprised if Google would enforce it at some point in the future.

Can you please clarify which scanner you are using?

Sure. It's my own scanner, as described in Identify modules in apps. The scanner is available as FOSS, and used by several projects – see  e.g. here.

but that doesn't seem to be a problem. Reading the Google documentation about this

That was the company stating they don't collect your location data when you've opted out, and is still getting caught year after year doing exactly that, right? Google can read what that blob really contains, as they have the private key to decrypt it. Nobody else can. So it's a proprietary blob, and we're talking FOSS here.
You can keep it with the AABs you upload to PlayStore, but preferably should keep it out of the APKs provided here and via IzzyOnDroid.


Remove extraneous backtick

What is the purpose of this change? What does it change?
Fix docs typo

Was the change discussed in an issue or in the forum before?
Unclear, probably not.

Checklist

[x] I'm done, this Pull Request is ready for review

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@604b18a). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #2370   +/-   ##
=========================================
  Coverage          ?   46.57%
=========================================
  Files             ?      174
  Lines             ?    14480
  Branches          ?        0
=========================================
  Hits              ?     6744
  Misses            ?     6735
  Partials          ?     1001

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 604b18a...48f870c. Read the comment docs.

@rawtaz  This has already been fixed in master in a different PR so this PR can be closed.

@thomwiggers Sorry that this hasn't been merged earlier. Thanks for your contribution! Unfortunately I will have to close it because the fix was merged in another PR recently.
Thanks @onionjake for the notice 👍


DEP: signal: raise error using medfilt and order_filter with float128 and object dtypes

Reference issue

follow up to #18341
What does this implement/fix?

It has been two releases since float128 and object types were deprecated to deduplicate code, should be fine to raise an error now.
Additional information

I'm also a bit confused since gh-18341 said "The goal here is to reduce duplication between ndimage and signal, and get rid of https://github.com/scipy/scipy/blob/main/scipy/signal/_lfilter.c.in entirely (700 LOC of fairly obscure C code). Cannot just remove them, so deprecate first."

The point of the original deprecation was that we currently have two sets of C code for doing the same thing, one in signal and one in ndimage. The signal functions were modified to use the ndimage code under the hood so signal C code could be removed as it was decided the ndimage code was more maintainable. However ndimage did not support object or float128 dtypes hence the deprecation cycle before all the signal C code could be removed.

There are some relevant test failures that need resolving though

Ah okay, so does all of _lfilter.c.in need to stay?

Ah okay, so does all of _lfilter.c.in need to stay?

As far as I could tell it was still needed but I also might have just got lost the maze. Maybe @ev-br could confirm?

Ah okay, so does all of _lfilter.c.in need to stay?

Indeed. Thank you Jake for chasing down where this dead code is despite the typo in the original PR which introduced the deprecation.

Updated to use longdouble and removed more dead code

I think we can wait for 1.14 with this? Unless you want to get this in urgently, I think we should give it a year as usual.

Closing until we branch for 1.14

Branch has happened, reopening.

@j-bowhay, do you think you'll be able to rebase this in the coming weeks?

@j-bowhay, do you want to keep some of the commit granularity (would probably need a clean-up), or are you fine with a squash-merge?

@h-vetinari happy to squash merge


Is new app in Google play store a fake/malicious or legit?

Today I when opening Riot.im on my Android device I saw a message that as a security measure a new Riot.im app must be installed. Also the app is now called "Old Riot.im" (updated as of April 23rd).
Things that look suspicious are:

In Releases (https://github.com/vector-im/riot-android/releases) the latest version is v0.8.29, but in Play Store the version is 0.9.00.
The link that explains why new app must be installed is: https://medium.com/@RiotChat/riot-im-android-security-update-2b3f655ad739 (why it's on medium.com domain?)
I cannot find any other details when googling for Riot.im version 0.9.00, nor I can see any other  mentions about this security measure to reinstall new version of the app on the main GitHub page for riot-android.

Can someone please clarify?
p.s.: I know this is not a technical issue, but I didn't know where else to post to get fast attention in case this is a hack of Vector's Google Play account and someone is trying to get people to install malware app.

The new application (https://play.google.com/store/apps/details?id=im.vector.app) is legit and comes from New Vector team, but is not currently available.
It has been removed from the Play Store for violating the User Generated Content (UGC) policy (see https://twitter.com/RiotChat/status/1121414206530699264).
We're working on putting it back online.
About your points:
1- The commits has not been pushed yet because of a security fix we do not want to reveal before everyone is up to date.
2- medium.com is used to host the Riot blog. A twit on Twitter from @ RiotChat link to it (https://twitter.com/RiotChat/status/1120758476312064002) (and the Twitter account has not been compromised AFAIK)
3- See point 1
We understand that you can be suspicious, it's quite legitimate. I assume that if all was wrong and fake, then you'll heard something about it by a way or another.
We are very sorry for the inconvenience
Benoit

Thank you for explanation!
I will close this issue now.


feat: Add salt flag to forc deploy, maturity flag to deploy and run

Description
This allows for specifying a --salt for the top-level contract member when running forc deploy. Right now, we only enable this for packages, and not for workspaces with more than one package due to some ambiguities that arise (see comment note in code). I'll open an issue to track relaxing this constraint a little. Edit: opened https://github.com/FuelLabs/sway/issues/4117.
I noticed we also had no way of specifying maturity, so have added a --maturity flag for this as well.
These flags are shared with the forc-tx crate in order to try and provide some consistency (in help output and flag representation) across our CLI tooling.
Ideally we'd like to ship this feature in the Sway release that ends up in the fuelup beta-3 toolchain - otherwise users following the quick-start guide will be unable to re-deploy the same contract to the network as it will already exist - they'll need to be able to provide a salt.
Checklist

[x] I have linked to any relevant issues.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have updated the documentation where relevant (API docs, the reference, and the Sway book).
[ ] I have added tests that prove my fix is effective or that my feature works.
[x] I have added (or requested a maintainer to add) the necessary Breaking* or New Feature labels where relevant.
[x] I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
[x] I have requested a review from the relevant team or maintainers.

Okydoke, rebased and added @Voxelot's suggestion for a --random-salt option!


⚠ Jenkins Plugins Artifactory has degraded performance

In 56e6e12, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1114 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 7835e1f after 13 minutes.


Roll Flutter Engine from 98b6fabc66bb to ca5b0128ede6 (4 revisions)

https://github.com/flutter/engine/compare/98b6fabc66bb...ca5b0128ede6
2023-04-28<EMAIL_ADDRESS>fuchsia: do not read version_history.json (flutter/engine#41585)
2023-04-28<EMAIL_ADDRESS>Roll Dart SDK from c7160d4ea0b7 to 8e9bf2bb9878 (5 revisions) (flutter/engine#41586)
2023-04-28<EMAIL_ADDRESS>Replace deprecated and internal Skia EncodedImage calls with public versions (flutter/engine#41368)
2023-04-28<EMAIL_ADDRESS>Roll Skia from 05d09f28250a to 9867fa253064 (18 revisions) (flutter/engine#41584)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jsimmons@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


[Feature Request]: Individual label confidence calculation for multilabel classification

Is your feature request related to a problem? Please describe.
We currently only calculate confidence for the entire list of labels in multilabel classification tasks. This type of computation is much less useful than if we were to compute confidence for each label individually.
Describe the solution you'd like
Compute confidence for each label individually during multilabel classification tasks.
Additional context
See #405 here

@rajasbansal @DhruvaBansal00 is this supported today?

Nope we don't have confidence per label yet


Avoid eager loading Turbo Ruby files

Some projects use RailsAdmin without using Turbo or ActionCable. In these applications, when the Rails configuration option config.eager_load is set to true, the RailsAdmin requirement of turbo will result in eager loading files that can't load.
The result is the following error:
.../vendor/bundle/ruby/3.3.0/gems/turbo-rails-2.0.5/app/channels/turbo/streams_channel.rb:34:in `<top (required)>': uninitialized constant ActionCable (NameError)

class Turbo::StreamsChannel < ActionCable::Channel::Base
                              ^^^^^^^^^^^
Did you mean?  ActionMailer
	from /home/jon/.rubies/ruby-3.3.2/lib/ruby/3.3.0/bundled_gems.rb:74:in `require'
	from /home/jon/.rubies/ruby-3.3.2/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require'
	from .../vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.14/lib/zeitwerk/kernel.rb:26:in `require'
	from .../vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.14/lib/zeitwerk/loader/helpers.rb:139:in `const_get'
	from .../vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.14/lib/zeitwerk/loader/helpers.rb:139:in `cget'
	from .../vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.14/lib/zeitwerk/loader/eager_load.rb:175:in `block in actual_eager_load_dir'
	from .../vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.14/lib/zeitwerk/loader/helpers.rb:42:in `block in ls'
	from .../vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.14/lib/zeitwerk/loader/helpers.rb:25:in `each'
	from .../vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.14/lib/zeitwerk/loader/helpers.rb:25:in `ls'
	from .../vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.14/lib/zeitwerk/loader/eager_load.rb:170:in `actual_eager_load_dir'
	from .../vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.14/lib/zeitwerk/loader/eager_load.rb:17:in `block (2 levels) in eager_load'
	from .../vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.14/lib/zeitwerk/loader/eager_load.rb:16:in `each'
	from .../vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.14/lib/zeitwerk/loader/eager_load.rb:16:in `block in eager_load'
	from .../vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.14/lib/zeitwerk/loader/eager_load.rb:10:in `synchronize'
	from .../vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.14/lib/zeitwerk/loader/eager_load.rb:10:in `eager_load'
	from .../vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.14/lib/zeitwerk/loader.rb:413:in `block in eager_load_all'
	from .../vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.14/lib/zeitwerk/loader.rb:411:in `each'
	from .../vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.14/lib/zeitwerk/loader.rb:411:in `eager_load_all'
	from .../vendor/bundle/ruby/3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/application/finisher.rb:80:in `block in <module:Finisher>'
	from .../vendor/bundle/ruby/3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/initializable.rb:32:in `instance_exec'
	from .../vendor/bundle/ruby/3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/initializable.rb:32:in `run'
	from .../vendor/bundle/ruby/3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/initializable.rb:61:in `block in run_initializers'
	from /home/jon/.rubies/ruby-3.3.2/lib/ruby/3.3.0/tsort.rb:231:in `block in tsort_each'
	from /home/jon/.rubies/ruby-3.3.2/lib/ruby/3.3.0/tsort.rb:353:in `block (2 levels) in each_strongly_connected_component'
	from /home/jon/.rubies/ruby-3.3.2/lib/ruby/3.3.0/tsort.rb:434:in `each_strongly_connected_component_from'
	from /home/jon/.rubies/ruby-3.3.2/lib/ruby/3.3.0/tsort.rb:352:in `block in each_strongly_connected_component'
	from /home/jon/.rubies/ruby-3.3.2/lib/ruby/3.3.0/tsort.rb:350:in `each'
	from /home/jon/.rubies/ruby-3.3.2/lib/ruby/3.3.0/tsort.rb:350:in `call'
	from /home/jon/.rubies/ruby-3.3.2/lib/ruby/3.3.0/tsort.rb:350:in `each_strongly_connected_component'
	from /home/jon/.rubies/ruby-3.3.2/lib/ruby/3.3.0/tsort.rb:229:in `tsort_each'
	from /home/jon/.rubies/ruby-3.3.2/lib/ruby/3.3.0/tsort.rb:208:in `tsort_each'
	from .../vendor/bundle/ruby/3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/initializable.rb:60:in `run_initializers'
	from .../vendor/bundle/ruby/3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/application.rb:426:in `initialize!'
	from .../config/environment.rb:7:in `<top (required)>'
	from /home/jon/.rubies/ruby-3.3.2/lib/ruby/3.3.0/bundled_gems.rb:74:in `require'
	from /home/jon/.rubies/ruby-3.3.2/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require'
	from .../vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.14/lib/zeitwerk/kernel.rb:34:in `require'
	from .../vendor/bundle/ruby/3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/application.rb:402:in `require_environment!'
	from .../vendor/bundle/ruby/3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/command/actions.rb:20:in `boot_application!'
	from .../vendor/bundle/ruby/3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/commands/console/console_command.rb:105:in `perform'
	from .../vendor/bundle/ruby/3.3.0/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
	from .../vendor/bundle/ruby/3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
	from .../vendor/bundle/ruby/3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/command/base.rb:178:in `invoke_command'
	from .../vendor/bundle/ruby/3.3.0/gems/thor-1.3.1/lib/thor.rb:527:in `dispatch'
	from .../vendor/bundle/ruby/3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/command/base.rb:73:in `perform'
	from .../vendor/bundle/ruby/3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/command.rb:71:in `block in invoke'
	from .../vendor/bundle/ruby/3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/command.rb:149:in `with_argv'
	from .../vendor/bundle/ruby/3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/command.rb:69:in `invoke'
	from .../vendor/bundle/ruby/3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/commands.rb:18:in `<top (required)>'
	from /home/jon/.rubies/ruby-3.3.2/lib/ruby/3.3.0/bundled_gems.rb:74:in `require'
	from /home/jon/.rubies/ruby-3.3.2/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require'
	from bin/rails:4:in `<main>'

As a workaround, my application requires ActionCable, but it doesn't actually use it.
Removing the eager loading, does not remove using Turbo in the frontend. There is no change there.

coverage: 95.97% (+0.02%) from 95.947%
when pulling 0c2cdb3eb2a465964b87cc361522b7ee1d25f745 on jdufresne:eager-turbo
into 91737ab3c2fa22cbe08aedd28770a12704fde6c7 on railsadminteam:master.

This was already addressed in turbo-rails.
https://github.com/hotwired/turbo-rails/issues/512
Please wait for the next release of it, or use the github source:
gem 'turbo-rails', github: 'hotwired/turbo-rails'

Thanks for that link! Will do.
Can you explain why the require 'turbo-rails' exists in Rails Admin if it is only used in JavaScript? What is that for? As we see here, removing it doesn't cause a test to fail, so maybe we would benefit from a new test to demonstrate.

It's necessary for asset pipeline configuration. Without it assets:precompile fails.
% rails assets:precompile
bin/rails aborted!
Sprockets::FileNotFound: couldn't find file 'turbo' with type 'application/javascript' (Sprockets::FileNotFound)
...


Flickering on updating Morph targer of Larger GLBs

Describe the bug
I'm facing flickering issue on all low to high end devices on updating morph weights on GLBs with bigger size
Please give a special attention to the eyes of the model for each blink there's a flicker on heavy model .
I've attached the code that I'm using for updating morph Targets at the end .
To Reproduce
Steps to reproduce the behaviour:

Here's the larger GLB https://api.readyplayer.me/v1/avatars/63aef7ebd16b67196c59652a.glb
Try updating morph target for the same

Expected behaviour
There should be no flicker
Screenshots
This is a heavy glb and there's a flicker everytime you change morph targets.
https://user-images.githubusercontent.com/35389814/212525456-0b5a0c90-88c2-49e2-a98c-35e7e6099107.mov
This is a lightweight glb and there's no flickering issue as you can see.
https://user-images.githubusercontent.com/35389814/212525445-add6fff8-b9f6-4470-a28d-8be264659c2a.mov
Smartphone (please complete the following information):

Device: . Realme 9 pro , One plus 10, redmi note 10]
OS: [Android  11.0 and above]

Additional context
Here's a code snippet that I'm using for updating morph target
private fun updateMorphTargets() {
    var finalEntity = modelViewer.asset!!.getFirstEntityByName(MorphRpm.Wolf3D_Avatar)
    if (finalEntity == 0) {
        finalEntity = modelViewer.asset!!.getFirstEntityByName(MorphRpm.Wolf3D_Head)
    }
    val faceEntity = modelViewer.engine.renderableManager.getInstance(
        finalEntity
    )

    morphingJobs = lifecycle.coroutineScope.launch(Dispatchers.Main) {
        if (isActive) {
            launch {
                suspend {
                    try {
                        // A normal human blinks 22 time in a minute.
                        // So just calculate total seconds.
                        var totalSeconds: Long = 0
                        var commonDifference = 0.01
                        var progress = 0.01
                        val smileUpperLimit = 0.99
                        val smileLowerLimit = progress
                        var eyeBlinkValue = 0
                        while (isActive) {
                            // create Ap series []
                            // common difference is d = 10 and first no is 10
                            val randomDelay = (50..100).random().toLong()
                            delay(randomDelay)
                            totalSeconds += randomDelay

                            if (totalSeconds > 3000) {
                                totalSeconds = 0
                                eyeBlinkValue = if (eyeBlinkValue == 0) 1 else 0
                                // close both eye
                                RpmMorph.smileWithBlink(
                                    progress.toFloat(),
                                    eyeBlinkValue.toFloat()
                                )
                                    ?.let {
                                        modelViewer.engine.renderableManager.setMorphWeights(
                                            faceEntity,
                                            it,
                                            0
                                        )
                                        modelViewer.animator?.updateBoneMatrices()
                                    }
                                progress += commonDifference
                                if (String.format("%.2f", progress)
                                        .toDouble() == smileUpperLimit
                                ) {
                                    // making common difference negative
                                    commonDifference = -commonDifference
                                    delay(2000)
                                }
                                if (String.format("%.2f", progress)
                                        .toDouble() == smileLowerLimit
                                ) {
                                    // now the common difference is negative.
                                    // Make it positive.
                                    commonDifference = -commonDifference
                                    delay(1000)
                                }
                                continue
                            } else if (totalSeconds in 500..600) {
                                eyeBlinkValue = if (eyeBlinkValue == 0) 1 else 0
                                // close both eye
                                RpmMorph.smileWithBlink(
                                    progress.toFloat(),
                                    eyeBlinkValue.toFloat()
                                )
                                    ?.let {
                                        modelViewer.engine.renderableManager.setMorphWeights(
                                            faceEntity,
                                            it,
                                            0
                                        )
                                        modelViewer.animator?.updateBoneMatrices()
                                    }
                                progress += commonDifference
                                if (String.format("%.2f", progress)
                                        .toDouble() == smileUpperLimit
                                ) {
                                    // making common difference negative
                                    commonDifference = -commonDifference
                                    delay(2000)
                                }
                                if (String.format("%.2f", progress)
                                        .toDouble() == smileLowerLimit
                                ) {
                                    // now the common difference is negative.
                                    // Make it positive.
                                    commonDifference = -commonDifference
                                    delay(1000)
                                }
                                continue
                            }
                            // else
                            RpmMorph.smileWithBlink(progress.toFloat(), 0F)
                                ?.let {
                                    modelViewer.engine.renderableManager.setMorphWeights(
                                        faceEntity,
                                        it,
                                        0
                                    )
                                    modelViewer.animator?.updateBoneMatrices()
                                }
                            progress += commonDifference
                            if (String.format("%.2f", progress).toDouble() == smileUpperLimit) {
                                // making common difference negative
                                commonDifference = -commonDifference
                                delay(2000)
                            }
                            if (String.format("%.2f", progress).toDouble() == smileLowerLimit) {
                                // now the common difference is negative.
                                // Make it positive.
                                commonDifference = -commonDifference
                                delay(1000)
                            }
                            // Logic for eye blink.
                        }
                    } catch (e: CancellationException) {
                        Log.d("Job Cancellation", "parent job has been cancelled")
                    } catch (e: Exception) {
                        Log.d("Error", "Something weird happen ${e.message.toString()}")
                    }
                }()
            }

        }
    }

}

@prideout

@prideout
Sorry for tagging again but can you help me out

@ritik619 Hi there, did you fix this?


mac build is red on master

https://travis-ci.org/PowerShell/PowerShell/jobs/195949401
A command is running to initially populate your local package cache, to improve restore speed and enable offline access. This command will take up to a minute to complete and will only happen once.
Decompressing 100% 6241 ms
Expanding 100% 49856 ms
error: Unable to load the service index for source https://api.nuget.org/v3/index.json.
error:   The type initializer for 'System.Net.Http.CurlHandler' threw an exception.
error:   The type initializer for 'Http' threw an exception.
error:   The type initializer for 'HttpInitializer' threw an exception.
error:   The type initializer for 'CryptoInitializer' threw an exception.
error:   Unable to load DLL 'System.Security.Cryptography.Native.OpenSsl': The specified module could not be found.
error:    (Exception from HRESULT: 0x8007007E)
Execution of { dotnet restore $RestoreArguments } failed with exit code 1
At /Users/travis/build/PowerShell/PowerShell/build.psm1:2271 char:13
+             throw "Execution of {$sb} failed with exit code $LASTEXIT ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Execution of { ...ith exit co
   de 1:String) [], RuntimeException
    + FullyQualifiedErrorId : Execution of { dotnet restore $RestoreArguments
   } failed with exit code 1

I think that means that the OpenSLL binaries were not patched properly. Did the configuration recently change?


code_verifier in local storage

Hello @brockallen ,
I observed that each authenticate process oidc-client creates a key in local storage follow pattern: oidc.random_string
which value has code_verifier.
May I ask if we are free to clear these keys after successfully authenticated? Or may be any reasons for not deleting these information by default in oidc-client?
authority: "******" client_id: "******" code_verifier: "37f5857c1a6f45369958a38397cfd3535ae4ad199c9c4a18846175015871c90ceccce82b214893923f0172edec3c8f" created: ****** extraTokenParams: {} id: "******" redirect_uri: "******" request_type: "si:r" response_mode: "query" scope: "openid"
Thanks for this,
Tuan Do

Yes, and there's an API to do so: https://github.com/IdentityModel/oidc-client-js/blob/dev/src/OidcClient.js#L222

thank you very much I will use that.


How to init two models

Hi. I am going to do some researches about distillation. I wonder how to initialize two networks and feed data into them separately?

an immature idea：
suppose we have a KD class which contains a student network and teacher network:  1) we train a teacher model by train script provided in mmdet; 2) we pass the config and checkpoint of teacher model into the KD class, then build the teacher network and initialize the teacher network in a way like https://github.com/open-mmlab/mmdetection/blob/3e2693151add9b5d6db99b944da020cba837266b/tools/test.py#L221, 3) pass a sample to forward method of the KD class, do forward of teacher network and student network, then compute loss of student network.

Kindly ping @Czm369 , Could you please provide any suggestions?

Maybe you can refer to https://github.com/open-mmlab/mmrazor/blob/master/configs/distill/cwd/cwd_cls_head_gfl_r101_fpn_gfl_r50_fpn_1x_coco.py

Maybe you can refer to https://github.com/open-mmlab/mmrazor/blob/master/configs/distill/cwd/cwd_cls_head_gfl_r101_fpn_gfl_r50_fpn_1x_coco.py

Thank you for your reply. In fact, I am still feeling confused about the steps. It means that I need to use mmrazor instead of mmdetection, right?

an immature idea： suppose we have a KD class that contains a student network and teacher network: 1) we train a teacher model by train script provided in mmdet; 2) we pass the config and checkpoint of the teacher model into the KD class, then build the teacher network and initialize the teacher network in a way like
https://github.com/open-mmlab/mmdetection/blob/3e2693151add9b5d6db99b944da020cba837266b/tools/test.py#L221
, 3) pass a sample to forward method of the KD class, do forward of teacher network and student network, then compute the loss of student network.

Thank you. The steps may be: I initialized a DistillationDetector, which contains the teacher and student models; In its forward function, I finish the forwarding operations for the two networks, and computer the loss. Is it right?

yes


error: recursive use of an object detected which would lead to unsafe aliasing in rust

When a transaction is submitted I got this error from WASM (happened in testnet-11 and testnet-10)
8-Aug-2024 12:00:10 DEBUG TrxManager: Payment with ransaction ID: 65d49fe897930ab5e071ee55cfa9ff9e670caa95e541876303b8533643bc7b40 to be submitted
13532 |     getInt32Memory0()[arg0 / 4 + 1] = len1;
13533 |     getInt32Memory0()[arg0 / 4 + 0] = ptr1;
13534 | };
13535 |
13536 | module.exports.__wbindgen_throw = function(arg0, arg1) {
13537 |     throw new Error(getStringFromWasm0(arg0, arg1));
                  ^
error: recursive use of an object detected which would lead to unsafe aliasing in rust
      at /app/wasm/kaspa/kaspa.js:13537:11
      at <?>.wasm-function[6944]
      at <?>.wasm-function[6946]
      at <?>.wasm-function[4837]
      at /app/wasm/kaspa/kaspa.js:7104:44

To Reproduce
Steps to reproduce the behavior:

Go to kaspool-payment app for details
Check the code at [src/trxs/index.ts](https://github.com/coinchimp/kaspool-payment/blob/main/src/trxs/index.ts)

Expected behavior
finish transaction submission. output and context used at follow
[
  {
    address: "kaspatest:qp3dz6536qjkd7zclj90ujwq9mpdgk3qhgcjtve5ds7yz7cv4fmrq9ejfr3e6",
    amount:<PHONE_NUMBER>9284n,
  }, {
    address: "kaspatest:qpp0q076vx39xdmm4k2hjfa7d93gvwygjamum74ux90a5zcv9p5rksx8da9zc",
    amount:<PHONE_NUMBER>109n,
  }
]
8-Aug-2024 12:00:00 LOG TrxManager: Processing balance 26,343.20625109 TKAS for address kaspatest:qpp0q076vx39xdmm4k2hjfa7d93gvwygjamum74ux90a5zcv9p5rksx8da9zc
8-Aug-2024 12:00:00 DEBUG TrxManager: Context to be used: {"isActive":true,"matureLength":3250,"balance":{"__wbg_ptr":3909584},"balanceStrings":{"__wbg_ptr":3950288}}

Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

6.1.0-23-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.99-1 (2024-07-15) x86_64 GNU/Linux
kaspa-wasm32-sdk-2024-07-17.zip

Additional context
This is a small app for mining pool rewards using bun canary Bun v1.1.22-canary
KaffinPX is well aware of this issue

I am aware of this issue. last week it has exhibited itself in a different way which lead me to a theory of the potential cause, so i will be trying to address it this weekend.
Unfortunately multiple repeat requests to KaffinPX to provide any type of a project that can replicate this have resulted in no feedback, so unfortunately I will be doing an update blindly and will let you know when it has been done so that you can test it.

Thanks, It won't be hard to reproduce it, just let me know when you have the WASM nodejs available to download.

This has been fixed in https://github.com/aspectron/rusty-kaspa/pull/90
I will do more research and attempt to come up with a solution to prevent this from happening in the future.

Thanks for the fix, it's working very well so far.


docs link to wrong repo.

The page http://docs.vespene.io/development_setup.html says to clone https://github.com/vespene/vespene, which is clearly not this repo.

Oh, there's where that was... on it, thank you!

Got it, thanks again!


fix: prevent zipbomb forged headers attacks

Fix to prevent zipbomb forged headers attacks. See issue #980.
Input stream for zip entry wrapped by new LimitedInputStream which don't allow to read more than the expected size of entry.
Also, zip entries count is limited to prevent file creation spam.

I will review your patch, soon.
From what I have seen the limitation regarding the maximum files in the APK file is set to 10000 which may be a bit low. Especially apps that make use of web technology can contain a large number of files.
I checked by app archive for the apps with more than 10k files, the following app list is just a partial result:

com.enhanced.skineditorstudio 23k
com.amazon.dee.app 20k
com.facebook.games 18k
com.kakao.talk 15k
com.microsoft.office.outlook 10k
com.xiaomi.smarthome 14k
com.wix.android 12k
cn.wps.moffice_eng 11k
com.cyberlink.powerdirector 13k
com.getmimo 11k
com.facebook.pages.app 14k
com.facebook.analytics 18k
com.tencent.mobileqq 13k
de.check24.check24 11k

Therefore I would strongly recommend to increase this limit to may be 50k or may be 100k considering that apps usually grow in size (e.g the com.amazon.dee.app grew over last last months from 17k to 20k).

@jpstotz thanks! I updated entries limit to 100k.


Quota improvements

What this PR does / why we need it: We are updating the outdated/non-functional Quota resource example manifest, adding squota as an alias for the Quota objects to allow kubectl get squota, and provide more information on the CLI when listing the Quotas.
Special notes for your reviewer:
/cc @mliepold
Release note:

The Shoot `Quota` objects can now be fetched by `kubectl get squota` to avoid conflicts with Kubernetes' `core/v1/ResourceQuota` resources.

That's a good idea. 👍


Try to create links with the mklink command

On install, try to create the links to time2backup.bat with the mklink command.

not as powerful as the cscript which can set an icon


Speech recognition?

Although getUserMedia is helpful for getting camera input, I'm developing a web app that uses speech recognition. I looked into Pocketsphinx.js, but it's dictionary seems small and when I tried running the demo in Bowser, it responded in the Status section of the page "No live audio input in this browser."
So, since getUserMedia won't cut it, is there any way to use webkitSpeechRecognition in Bowser?

That depends whether it is supported by UIWebView or WKWebView.
We have not implemented any WebAudio support so I suspect that is why speech recognition web apps may not work.

@pachpage we just landed WKWebView support. Please have another look.

I think Bowser’s job is to just get you the audio stream so you can send it somewhere with WebRTC, e.g., a server which can handle speech recognition. iOS as of even 10.2 does not appear to have webkitSpeechRecognition or SpeechRecognition in Safari. So guessing this request is outside of the scope of Bowser and should be closed.


tests: add generated block test

What this PR does / why we need it
This PR adds a test that validates that generated blocks function as expected.

Jira ID
[XX-XX]

Notes for your reviewers

Coverage increased (+0.3%) to 41.107% when pulling df89167c56667acb120692b9a93d8bbb5361cb01 on jaredallard/tests/add-generated-block-test into 13251bc2d50bae8fa9959b8e41b945466c97dcbd on main.


[Possible Requests]

Hello,

I was playing the rando, but while I was flying I got stopped alot by the tornedo's.
Is to possible to remove them?

The Peater/Patrice's Cristals are tedious the unlock.
Is there a possibility to set the progressing of the side quest higher?
If thats not possible maybe a bed in the bazaar so we don't have to go trought multiple loading zones to advance the day counter.

First and foremost, requests are usually done in the Discord server so non-techy players can make their own, so to keep them in a single place please do so as well.

Tornadoes were recently tweaked so they shouldn't be as impossible to avoid as they were. Do they still annoy you that much after the patch ?
This is arguably what makes it interesting. This is also the reason it has its own setting to remove it (from the useful checks). I guess you could bring this up in Discord to launch a discussion (I think adding a bed would be considered too great a change though)

For the tornadoes, because of the increased flying speed I don't have that mutch time to react and the sometime appear right in front of me.
For the second requet I'll post it in the discord for discussion


Dialog Boxes not being properly ignored...

Dialog Boxes, Quest Completion boxes... Not being properly ignored.
Eg.: prod80_02_Bonus_LUT_pack and prod80_02_Cinetools_LUT lumas still being affected by it.
https://gist.github.com/Spacellary/f18dc7916560c84630b6fb8a1dca0457
Using .addon from this repo.
Using the config from here:
https://github.com/4lex4nder/ReshadeEffectShaderToggler-FFXIV/blob/main/ReshadeEffectShaderToggler.ini
All text is fine.

Can't reproduce.

Thanks for replying Alex, I had the incorrect, it seems I have the wrong .addon file. Closing as I am outside intended use. I'll test again later. 👍


wal -r does not work when using alacritty + tmux

Hey :)
My issue is when I write (wal -r &) in my .zshrc it does not reload the config when I use alacritty and tmux.
If I launch alacritty, it works. If I launch tmux from alacritty, it works. However when I launch alacritty -e tmux, it does not work. And the only working solution from there is wal -R. Not sure the issue is with pywal but it's worth a shot :)
Thank you!

This sounds like a quirk of -e instead of an issue with pywal. It's nothing I can fix.

alacritty -e $HOME/.bin/tmuxdd &

Inside tmuxdd:
#!/bin/sh
wal -R
tmux -2 a || tmux

I am still having this issue when launching alacritty from qtile shortcut the terminal does not respect the palette generated before

This also happens on st

this will also work if you need to start alacritty with tmux
shell:
  program: /bin/zsh
  args:
  - -l
  - -c
  - "(cat ~/.cache/wal/sequences &) && tmux"


fix: always use https with LNURL, as per spec

@jogc The initial code contemplated encoding and decoding http URLs, and so did my code, but the LNURL spec explicitly says that LNURL is for https URLs only:

LNURL is a bech32-encoded HTTPS query string...

The package should not allow http URLs.

Codecov Report

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

@@           Coverage Diff           @@
##           master       #1   +/-   ##
=======================================
  Coverage   95.76%   95.76%
=======================================
  Files           4        4
  Lines         118      118
=======================================
  Hits          113      113
  Misses          5        5

Impacted Files
Coverage Δ

lnurl/models.py
94.04% <100%> (ø)
:arrow_up:

lnurl/utils.py
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Retained the Base-called information in SLOW5

Hi there,
The SLOW5 really helped me a lot. May I ask if the base-called data, move_table, base_possibilities, etc. could also be converted to SLOW5 format? In my opinion, some of the down-stream analysing tools are still based on the base-called information as well as the raw signal information.
Look forward to you reply,
Logan

Hi,
I think this is what we discussed on the Twitter thread right? For sake of completeness, I will write the summary here.
SLOW5 spec supports auxiliary fields, so any custom information like this can be optionally saved if deemed required by the user. However, in the design of slow5tools we dropped the Analysis group mainly because:

SLOW5 is for storing raw signal data rather than intermediate data
That analyses content is software dependent and is not really raw data
Fastq and sequencing summary produced by Guppy contains the basecalled reads - so that data is redundant

ONT from very recently guppy does not seem to store those data in the FAST5 anyway. See https://community.nanoporetech.com/posts/proposed-changes-to-the-fa
Following are some suggestions on getting the move table using SLOW5:
If you really need ONT's move table you need to have guppy_basecall_server already running and use the following method:
MTD1:

Use pyslow5 to iterate through SLOW5 file
Send it through ONT's pyguppy client  to get the move table

If you can rely on the "move table" like structure computed in Nanopolish/f5c:
MTD2:

Use pyslow5 to iterate through SLOW5 file
Send it along with basecalled read through our libabea to get the signal to basecalled read alignment

If you want a command-line tool for generating the "move table" like structure computed in Nanopolish/f5c:
MTD3:
Use this experimental module in f5c called f5c resquiggle available at https://github.com/hasindu2008/f5c/tree/resquiggle
In the long-term, I would suggest going along non-guppy approach as ONT's Guppy is not open source and they could simply ditch the move table function any time.  In fact ONT is moving towards a new basecaller called "Dorado: they recently announced.  MTD1 and MTD2 will not produce identical results to Guppy move table as they have been designed targeting a different application, however, there are some parameters that we can tune to get comparable results to Guppy - I beleive.
Regards

Hi @hasindu2008 ,
Thanks for summarising our Twitter discussion here. I will follow your recommendations and see if they work well in my scenario.
Best


[Snyk] Security upgrade selenium-webdriver from 4.21.1 to 4.22.0

This PR was automatically created by Snyk using the credentials of a real user.![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to fix 1 vulnerabilities in the rubygems dependencies of this project.
Snyk changed the following file(s):

Gemfile
Gemfile.lock

Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Denial of Service (DoS) SNYK-RUBY-REXML-7462086
  551

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Denial of Service (DoS)

selenium-webdriver has been updated to a newer version by dependabot in #50


When  a switch access POX controller, it appear a  EROOR!!!!!

when i use a switch to access controller.
the controller appear this error?
what is # wrong?
shg@shg-virtual-machine:~/pox$ python -V Python 2.7.12 shg@shg-virtual-machine:~/pox$ python pox.py  openflow.of_01 forwarding.l2_learning POX 0.2.0 (carp) / Copyright 2011-2013 James McCauley, et al. INFO:core:POX 0.2.0 (carp) is up. ERROR:openflow.of_01:[None 1]: Exception while handling OpenFlow message: [None 1] ofp_features_request [None 1]   header:  [None 1]     version: 1 [None 1]     type:    5 (OFPT_FEATURES_REQUEST) [None 1]     length:  8 [None 1]     xid:     2 Traceback (most recent call last):   File "/home/shg/pox/pox/openflow/of_01.py", line 757, in read     h(self, msg) TypeError: 'NoneType' object is not callable ERROR:openflow.of_01:[None 1]: Exception while handling OpenFlow message: [None 1] ofp_set_config [None 1]   header:  [None 1]     version: 1 [None 1]     type:    9 (OFPT_SET_CONFIG) [None 1]     length:  12 [None 1]     xid:     3 [None 1]   flags: 0 [None 1]   miss_send_len: 128 Traceback (most recent call last):   File "/home/shg/pox/pox/openflow/of_01.py", line 757, in read     h(self, msg) TypeError: 'NoneType' object is not callable

How did you call the controller?

at controller (<IP_ADDRESS>) , i exec the cmd
python pox.y openflow.of_1 forwarding.l2_learning
and at the switch(<IP_ADDRESS>) at mininet
i exec the cmd
ovs-controller tcp:<IP_ADDRESS>:6633 --detach

I don't know; that seems strange. But it's worth noting that your POX seems to be quite old.  You might try with the dart or eel branch.

Wait... what?
ovs-controller...?  The name keeps changing, but I think that's the simple controller that's included with OVS for testing purposes.  It looks to me like you are telling the test controller to connect to POX (which is running as a controller in your example).  The test controller is sending POX an ofp_features_request, and POX is complaining because it doesn't handle features requests, because that's something that switches do, and POX is running as a controller here.
I don't know what you're trying to do, but you probably mean to be running OVS as a switch.  That doesn't involve ovs-controller.  Read the OVS installation/configuration documentation.
AFAICT, POX is doing the right thing here, so I'm closing this.


what is indicate by "Network IO waits"

Hi All,
I have to doubt what is the exact definition of "Network IO waits"? Is that shows network wait between app and DB?

@mhlchamali -- Chamali, thank you for your question.  Are you following a particular docs.microsoft.com article?  Meanwhile, please consider these resources:

SQL Server on Microsoft Q&A
DBA Stack Exchange
Stack Overflow


Gatekeeper (all versions) missing namespace override

Bug Report
The ClusterRoleBinding gatekeeper-manager-rolebinding does not get updated in the event the package is deployed with a namespace other than gatekeeper-system
There is a missing override causing this issue in version 3.2.3 which is still missing in version 3.7.0.
Expected Behavior
Overriding the namespace value should change the namespace everywhere, including the ClusterRoleBinding.
Steps to Reproduce the Bug
This can be verified from the repository by executing the below command against either gatekeeper version.
ytt --date-value namespace=something-else -f bundle/config | grep "namespace: gatekeeper-system"
This shouldn't return any results, however it currently returns one result.

Since I propagated this issue from 3.2.3 to 3.7.0 I'm going to fix it now.


当运行XGB代码时报错: No available node types can fulfill resource request {'CPU': 1.0, 'carol': 1.0}

Issue Type
Bug
Source
source
Secretflow Version
secretflow 0.7.18b3
OS Platform and Distribution
Ubuntu 20.04
Python version
Python 3.8.16
Bazel version
Bazel 5.1.1
GCC/Compiler version
GCC 11.2.0
What happend and What you expected to happen.
当我运行[决策树模型-用例](https://www.secretflow.org.cn/docs/secretflow/zh_CN/components/mpc_ml/decision_tree.html#example)代码时，出现以下错误：

(sf) root@CARC-20:~/yp_workplace/test# python xgb_secretflow.py
2023-02-27 09:02:55,970 WARNING services.py:378 -- Found multiple active Ray instances: {'<IP_ADDRESS>:6666', '<IP_ADDRESS>:1225'}. Connecting to latest cluster at <IP_ADDRESS>:1225. You can override this by setting the `--address` flag or `RAY_ADDRESS` environment variable.
2023-02-27 09:02:55,970 INFO worker.py:1352 -- Connecting to existing Ray cluster at address: <IP_ADDRESS>:1225...
2023-02-27 09:02:55,975 INFO worker.py:1538 -- Connected to Ray cluster.
(scheduler +11s) Tip: use `ray status` to view detailed cluster status. To disable these messages, set RAY_SCHEDULER_EVENTS=0.
(scheduler +11s) Error: No available node types can fulfill resource request {'carol': 1.0, 'CPU': 1.0}. Add suitable node types to this cluster to resolve this issue.
(scheduler +11s) Error: No available node types can fulfill resource request {'carol': 1.0, 'CPU': 1.0}. Add suitable node types to this cluster to resolve this issue.
(SPURuntime pid=792905) 2023-02-27 09:03:07,565 ERROR worker.py:763 -- Exception raised in creation task: The actor died because of an error raised in its creation task, ray::SPURuntime.__init__() (pid=792905, ip=<IP_ADDRESS>, repr=<secretflow.device.device.spu.SPURuntime object at 0x7f039fe50190>)
(SPURuntime pid=792905)   File "/root/miniconda3/envs/sf/lib/python3.8/site-packages/secretflow/device/device/spu.py", line 278, in __init__
(SPURuntime pid=792905)     self.link = spu_link.create_brpc(desc, rank)
(SPURuntime pid=792905) RuntimeError: what:
(SPURuntime pid=792905)         [external/yacl/yacl/link/context.cc:140] connect to mesh failed, failed to setup connection to rank=2
(SPURuntime pid=792905) stacktrace:
(SPURuntime pid=792905) #0 pybind11::cpp_function::initialize<>()::{lambda()#3}::_FUN()+0x7f03aea6f519
(SPURuntime pid=792905) #1 pybind11::cpp_function::dispatcher()+0x7f03aea59c5b
(SPURuntime pid=792905) #2 PyCFunction_Call+0x4e1172
(SPURuntime pid=792905) 2023-02-27 09:03:07,565 ERROR worker.py:763 -- Exception raised in creation task: The actor died because of an error raised in its creation task, ray::SPURuntime.__init__() (pid=792905, ip=<IP_ADDRESS>, repr=<secretflow.device.device.spu.SPURuntime object at 0x7f039fe50190>)
(SPURuntime pid=792905)   File "/root/miniconda3/envs/sf/lib/python3.8/site-packages/secretflow/device/device/spu.py", line 278, in __init__
(SPURuntime pid=792905)     self.link = spu_link.create_brpc(desc, rank)
(SPURuntime pid=792905) RuntimeError: what:
(SPURuntime pid=792905)         [external/yacl/yacl/link/context.cc:140] connect to mesh failed, failed to setup connection to rank=2
(SPURuntime pid=792905) stacktrace:
(SPURuntime pid=792905) #0 pybind11::cpp_function::initialize<>()::{lambda()#3}::_FUN()+0x7f03aea6f519
(SPURuntime pid=792905) #1 pybind11::cpp_function::dispatcher()+0x7f03aea59c5b
(SPURuntime pid=792905) #2 PyCFunction_Call+0x4e1172
(SPURuntime pid=792904) 2023-02-27 09:03:08,478 ERROR worker.py:763 -- Exception raised in creation task: The actor died because of an error raised in its creation task, ray::SPURuntime.__init__() (pid=792904, ip=<IP_ADDRESS>, repr=<secretflow.device.device.spu.SPURuntime object at 0x7f29b5faf1f0>)
(SPURuntime pid=792904)   File "/root/miniconda3/envs/sf/lib/python3.8/site-packages/secretflow/device/device/spu.py", line 278, in __init__
(SPURuntime pid=792904)     self.link = spu_link.create_brpc(desc, rank)
(SPURuntime pid=792904) RuntimeError: what:
(SPURuntime pid=792904)         [external/yacl/yacl/link/context.cc:140] connect to mesh failed, failed to setup connection to rank=2
(SPURuntime pid=792904) stacktrace:
(SPURuntime pid=792904) #0 pybind11::cpp_function::initialize<>()::{lambda()#3}::_FUN()+0x7f29c5fcc519
(SPURuntime pid=792904) #1 pybind11::cpp_function::dispatcher()+0x7f29c5fb6c5b
(SPURuntime pid=792904) #2 PyCFunction_Call+0x4e1172
(SPURuntime pid=792904) 2023-02-27 09:03:08,478 ERROR worker.py:763 -- Exception raised in creation task: The actor died because of an error raised in its creation task, ray::SPURuntime.__init__() (pid=792904, ip=<IP_ADDRESS>, repr=<secretflow.device.device.spu.SPURuntime object at 0x7f29b5faf1f0>)
(SPURuntime pid=792904)   File "/root/miniconda3/envs/sf/lib/python3.8/site-packages/secretflow/device/device/spu.py", line 278, in __init__
(SPURuntime pid=792904)     self.link = spu_link.create_brpc(desc, rank)
(SPURuntime pid=792904) RuntimeError: what:
(SPURuntime pid=792904)         [external/yacl/yacl/link/context.cc:140] connect to mesh failed, failed to setup connection to rank=2
(SPURuntime pid=792904) stacktrace:
(SPURuntime pid=792904) #0 pybind11::cpp_function::initialize<>()::{lambda()#3}::_FUN()+0x7f29c5fcc519
(SPURuntime pid=792904) #1 pybind11::cpp_function::dispatcher()+0x7f29c5fb6c5b
(SPURuntime pid=792904) #2 PyCFunction_Call+0x4e1172
(scheduler +46s) Error: No available node types can fulfill resource request {'CPU': 1.0, 'carol': 1.0}. Add suitable node types to this cluster to resolve this issue.
(scheduler +46s) Error: No available node types can fulfill resource request {'CPU': 1.0, 'carol': 1.0}. Add suitable node types to this cluster to resolve this issue.
(scheduler +1m21s) Error: No available node types can fulfill resource request {'CPU': 1.0, 'carol': 1.0}. Add suitable node types to this cluster to resolve this issue.
(scheduler +1m21s) Error: No available node types can fulfill resource request {'CPU': 1.0, 'carol': 1.0}. Add suitable node types to this cluster to resolve this issue.

Reproduction code to reproduce the issue.
## xgb_secretflow.py
import sys
import time
import logging

import spu
import secretflow as sf
from secretflow.ml.boost.ss_xgb_v import Xgb
from secretflow.device.driver import wait, reveal
from secretflow.data import FedNdarray, PartitionWay

from sklearn.metrics import roc_auc_score

# init log
logging.basicConfig(stream=sys.stdout, level=logging.INFO)

# init all nodes in local Standalone Mode.
sf.init(['alice', 'bob', 'carol'])

# init PYU, the Python Processing Unit, process plaintext in each node.
alice = sf.PYU('alice')
bob = sf.PYU('bob')
carol = sf.PYU('carol')

# init SPU, the Secure Processing Unit,
#           process ciphertext under the protection of a multi-party secure computing protocol
spu = sf.SPU(sf.utils.testing.cluster_def(['alice', 'bob', 'carol']))

# read data in each party
def read_x(start, end):
    from sklearn.datasets import load_breast_cancer
    x = load_breast_cancer()['data']
    return x[:, start:end]

def read_y():
    from sklearn.datasets import load_breast_cancer
    return load_breast_cancer()['target']

# alice / bob / carol each hold one third of the features of the data
v_data = FedNdarray(
    partitions={
        alice: alice(read_x)(0, 10),
        bob: bob(read_x)(10, 20),
        carol: carol(read_x)(20, 30),
    },
    partition_way=PartitionWay.VERTICAL,
)
# Y label belongs to alice
label_data = FedNdarray(
    partitions={alice: alice(read_y)()},
    partition_way=PartitionWay.VERTICAL,
)
# wait IO finished
wait([p.data for p in v_data.partitions.values()])
wait([p.data for p in label_data.partitions.values()])

# run SS-XGB
xgb = Xgb(spu)
start = time.time()
params = {
    # for more detail, see Xgb API doc
    'num_boost_round': 5,
    'max_depth': 5,
    'learning_rate': 0.1,
    'sketch_eps': 0.08,
    'objective': 'logistic',
    'reg_lambda': 0.1,
    'subsample': 1,
    'colsample_bytree': 1,
    'base_score': 0.5,
}
model = xgb.train(params, v_data, label_data)
logging.info(f"train time: {time.time() - start}")

# Do predict
start = time.time()
# Now the result is saved in the spu by ciphertext
spu_yhat = model.predict(v_data)
# reveal for auc test.
yhat = reveal(spu_yhat)
logging.info(f"predict time: {time.time() - start}")
y = read_y()
logging.info(f"auc: {roc_auc_score(y, yhat)}")

Hi @Stu-Yang ,
可以尝试将本地的所有ray集群关闭后再重试吗？
ray stop

sf.init(['alice', 'bob', 'carol']) -> sf.init(['alice', 'bob', 'carol'], address='local')

@zhouaihui @6fj 谢谢，@zhouaihui 提供了正确的解决方案，十分感谢～


Installing pcp from wiki

Hello,
I am following along the wiki trying to install pcp. However when I try the apt-get update I get this error.
I am using trusty 14.04 ubuntu, and the url is added correctly in the sources.list file
W: Failed to fetch https://dl.bintray.com/netflixoss/ubuntu/dists/trusty/Release  Unable to find expected entry 'main/source/Sources' in Release file (Wrong sources.list entry or malformed file)
Did the location of the file change or I am missing some steps?
Thanks!

@hc000 The problem seems to be that adding deb-src is not necessary since only binaries are being distributed.
I was able to install it successfully, all I did was comment-out the deb-src from /etc/apt/sources.list.
I hope that helps.

I did that too. Will update the wiki. Tks.


Recreate React-Rough

Now that Rough has been added to npm: https://github.com/pshihn/rough/issues/3, I think it'd be nice to use rough directly and recreate the entire codebase as we have some outdated stuff :sweat_smile:

Hi, I found the library https://github.com/pshihn/rough really fantastic. I am also a beginner in react and open source. I would like to contribute for the issue. Please guide me.

@rbansalrahul6 Nice! I've recreated the codebase, so it should be fairly easy to move around :sweat_smile: You can start by creating the Circle components, Arc Components and so on.
The Rough Components should be able to work as an independent component as well a child component.
I think that should do for now.
Besides, I haven't updated the readme, yet

A new API is upon us! :smile:


Inline tag links without double brackets?

I use a lot of inline tag links in my graph (the #hashtag format). At the moment, they are only converted to links if I enter the tag in double brackets, e.g., #[[tag]].
How difficult would it be to modify the export script to support tags that are not in double brackets? Would you be interested to add support for this? Could you point me in the right direction, if I'd attempted this myself?

Took me a while to get my head around Clojure, but I think I got it now. I also eliminated the extra square brackets from the links. Let me know if you want a pull request.
diff --git a/src/logseq_to_markdown/parser.cljs b/src/logseq_to_markdown/parser.cljs
index 5a0066b..4735d8f 100644
--- a/src/logseq_to_markdown/parser.cljs
+++ b/src/logseq_to_markdown/parser.cljs
@@ -184,7 +184,7 @@

 (defn parse-links
   [text]
-  (let [link-pattern #"\[\[(.*?)\]\]"
+    (let [link-pattern #"(?:#\[\[(.*?)\]\])|(?<!#)#(\w+)"
         link-res (re-seq link-pattern text)
         desc-link-pattern #"\[(.*?)\]\(\[\[(.*?)\]\]\)"
         desc-link-res (re-seq desc-link-pattern text)]
@@ -193,14 +193,14 @@
         text
         (reduce
          #(let [current-text (first %2)
-                current-link (last %2)
+                current-link (or (second %2) (nth %2 2)) ; adjusted to account for either match in the two patterns
                 namespace-pattern #"\[\[([^\/]*\/).*\]\]"
                 namespace-res (re-find namespace-pattern text)
                 namespace-link? (not-empty namespace-res)
                 link-text (or (and namespace-link? (config/entry :trim-namespaces)
                                    (last (s/split current-link "/"))) current-link)
-                replaced-str (or (and (graph/page-exists? current-link) (str "[[[" link-text "]]]({{< ref \"/pages/" (fs/->filename current-link)
"\" >}})"))
-                                 (str link-text))]
+                replaced-str (or (and (graph/page-exists? current-link) (str "#[" link-text "]({{< ref \"/pages/" (fs/->filename current-link) "\"
 >}})"))
+                                 (str "#" link-text))]
             (s/replace %1 current-text replaced-str))
          text
          link-res))

Thanks for investigation, sure please create a pull request for it and I will try to crosscheck and merge it the next days😊

Hi, yeah, thanks, I'll try to do that next week.

@vehka I also created this PR https://github.com/dom8509/logseq-to-markdown/pull/12 in the meantime.
Could you check if this would also work for you? didn't find the time to test it yet, idea is to keep the formats more separate

Thanks, I'll try to test it in a few days.

Thanks, I'll try to test it in a few days.


MANY vs. HOW-MANY/MANY

Some time ago, we made some changes to the Sign Bank, to separate out what had previously been listed as  MANY/HOW-MANY into two distinct signs:  MANY and HOW-MANY (and similarly for the 1-handed versions of these:  There should now be (1h)MANY as distinct from (1h)HOW-MANY).
That seems to have gotten messed up over time, however.
This much is correct:

However, we also have this - and note that the ASLLVD Sign Bank entry is correctly glossed as MANY, but not grouped with the other examples of MANY.  (I will need to fix the two occurrences from the continuous signing data and then reupload those files.)

Can you fix the problem with this ASLLVD Sign Bank entry?  It should be grouped with the other MANY signs.
I will also need to fix this one:

THANKS!

Fixed

Not quite fixed.  Things have moved as they needed to, but the ASLLVD data is still showing up for HOW-MANY/MANY

Fixed


Add configuration options for https and wss

We may need to be able to configure the url scheme of the various connections::

Engine http(s) connection to aggregator (in EngineDispatcher)
Engine ws(s) connection to aggregator (in EngineDispatcher)
Aggregator (uvicorn startup in AggregatorDispatcher)
Frontend http(s) connection to aggregator (not set in code, determined by the address visited in browser)
Frontend ws(s) connection to aggregator (automatically chosen based on http/https connection to aggregator)

It is possible that SSL termination is done by a seperate component (web proxy) rather than Uvicorn. This may affect connections.

Aggregator:
Just need to add ssl options to uvicorn.run:
ssl_keyfile="./localhost+4-key.pem",
ssl_certfile="./localhost+4.pem"
This should allow frontend to access using https.

@jhk-mjolner  got engine and frontend access working with the https://github.openpectus.org deployment using
pectus-engine.exe -ahn github.openpectus.org -ap 443

while using the patched EngineDispatcher (setting self._post_url, aggregator_health_url and rpc_url)
It now makes sense to add a "secure" option to EngineDispatcher that sets these options.
So something like:
pectus-engine.exe -ahn github.openpectus.org -ap 443 -secure

Could we maybe entirely remove the option of manually configuring a port number, and always use 80 for the aggregator and 443 or 80 for engine, depending on the -secure flag? It could potentially avoid a lot of problems with mismatching port configurations in the future.
Of course, if it's a requirement that you can control the port, then we must support it. But could we in that case have a single source of truth for the port number, somehow? I find it confusing having multiple defaults set in multiple places.


Add logging of query for JiraSearchServiceImpl#checkMessageSet

We have to check that logging works on test stand before merge


Docs: how to add non-standard pages (e.g. mission, about) to the overarching website layout

Making blog style posts is different than adding on a "one-off" page like a Mission Statement, About Us, Resources, How-To pages etc.

https://github.com/sciencevideojournal/sciencevideojournal/wiki/How-To:-Add-core-website-page-(e.g.-"About-Us",-"Mission",-"Get-Started")


in signup page in a phone no box size are not equal to other box

Feature idea.

Describe the solution you'd like

in the screenshot you can see the phoneno box are wider than other box that looks not good .All boxes should be of equal length.
please assigned me this issue #671

Ok mam
On Mon, Jun 5, 2023, 3:58 AM Akanksha Rani @.***> wrote:

Assigned #671 https://github.com/MonalikaPatnaik/UMatter/issues/671 to
@2020B1531074 https://github.com/2020B1531074.
—
Reply to this email directly, view it on GitHub
https://github.com/MonalikaPatnaik/UMatter/issues/671#event-9426107758,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXO4H7XHI2VY5Y2BQG6IRPLXJUDYXANCNFSM6AAAAAAY2DQUE4
.
You are receiving this because you were assigned.Message ID:
@.***>


Extend Compare Active File: Fixes #33526

Extends 'Compare Active File With ...' to include file search as well as history.
Fixes: #33526
Review Questions:

Ok to return promise when in Mood.PICK from OnOk() ?
Used TPromise to allow any pick object return type, okay?

Summary:
Uses extended quickOpenWidget.show() instead of .pick()

Generalized changes to support other clients with new IShowOptions
Maintain current operation for existing clients
Added options for IShowOptions
openOnSelection : returns pick, skips open if false (normal default is true, opens pick)
historyFilter : provide scheme filter (file, untitled) and resource name excludes
inputPlaceHolder : input box inputPlaceHolder

export interface IShowOptions {
quickNavigateConfiguration?: IQuickNavigateConfiguration;
inputSelection?: { start: number; end: number; };
openOnSelection?: boolean;
historyFilter?: { resourceType: string[], exclude: string[] };
inputPlaceHolder?: string;
}

Added PICK mode , does not open selected, returns pick object

export enum Mode {
PREVIEW,
OPEN,
OPEN_IN_BACKGROUND,
PICK
}

If in pick mode, return entire pick object in promise

@cleidigh thanks for this, however I decided to go with a simpler implementation via https://github.com/Microsoft/vscode/commit/e8cea009a55dc19b27268573bf3e935747a1c650 because of a new event I added that can be leveraged.

okay, I will have to reclaim my commit elsewhere :-(


Passing markdown as prop for React component not working without extra const

Hello there. I am working on my Next.js 13 app. I have a section component and want to pass markdown as props to this component.
I couldn't find a solution anywhere online, that's why I am reporting it here.
My goal is to make content of this section completely dynamic, so that I would be able to do something like this:
<SectionTwoColumns markdownContent="
# Title
Just a paragraph
**bold text**
" />

or at least something like this:
<SectionTwoColumns markdownContent="# Title /n Just a paragraph /n **bold text**" />

Currently I can't make it so that markdown is passed as props. I only managed to make it so that content is stored in a const on the page where component is being used.
So currenttly I do it like this:

const markdownContent = `# MDX content inside const

## Second title

Just a paragraph

** bold text **

`;

const Home = () => {
  return (
    <main>
      <SectionTwoColumns>
        {markdownContent}
      </SectionTwoColumns>
    </main>
  );
};

In order to better explain this issue here's github repo that shows the issue when markdown is passed as prop but only one line of markdown could be parsed: https://github.com/tsykin/tsykin-frontend
Feel free to check it out, this repo is automatically get's deployed to Vercel, so you can see live how the app currently looks like: https://tsykin-frontend.vercel.app/
I am looking for a solution when I can pass a lot of content with markdownContent prop into SectionTwoColumns component.
Please, suggest a solution that would allow to pass markdown as a prop directly, without a need of creating extra const with markdown inside of it.

Perhaps try formatting as a template literal instead?
<SectionTwoColumns markdownContent={`
# Title
Just a paragraph
**bold text**
`.trim()} />

Thanks a lot, it helped and solved the issue.
It's strange that it didn't work for me before since I definately tried that before.
Now I can pass markdown as props like this ...:
<SectionTwoColumns
        markdownContent={`
# Title
First paragraph

**Second bold paragraph**
## h2
### h3
`}
      />

... without declaring extra const.
Thanks for info about deindent function, but luckily I can make indentation in markdown prop even without using this package.
P.S. headers are automatically indented
I will mark this issue as resolved.

Issue "not able to pass markdown as props with indentation" was solved here: GitHub issue

Np! Maybe deindent should be included as a prop automatically...


Ambiguous SSL error when attempting to connect to database with pem cert

Hello 👋 I'd love to give psqlpy a go for a project I'm working on, but connection to the database must pass along a PEM file.  It doesn't look like you guys support the sslrootcert option for postgres, unless I'm missing something, which is totally possible.
Thanks!

@brizzbuzz Hello!
We support SSL via ssl_mode and ca_file.
Could you please provide more information about your situation (example, why you need sslrootcert, and anything useful), so I can help you?

  Here's my example
import os
from typing import Final

from dotenv import load_dotenv
from psqlpy import ConnectionPool, SslMode

load_dotenv()

user = os.getenv("DB_USER")
password = os.getenv("DB_PASSWORD")
host = os.getenv("DB_HOST")
port = os.getenv("DB_PORT")
database = os.getenv("DB_NAME")
ca_file = "/path/to/my/cert.pem"

db_pool: Final = ConnectionPool(
    username=user,
    password=password,
    host=host,
    port=int(port),
    db_name=database,
    ssl_mode=SslMode.VerifyFull,
    ca_file=open(ca_file).read(),
)

async def main() -> None:
    print(f"Usr: {user}")
    print(f"Pwd: {password}")
    print(f"Host: {host}")
    print(f"Port: {port}")
    print(f"DB: {database}")
    print(f"CA: {ca_file}")
    print(f"File Contents: {open(ca_file).read()}")

    connection = await db_pool.connection()
    await connection.execute("SELECT 1")
    print("Connected to database")
    await connection.close()

if __name__ == "__main__":
    import asyncio

    asyncio.run(main())

which currently fails
Traceback (most recent call last):
File "/home/rbrink/Workspace/ryan-aer/helios/src/database.py", line 17, in
db_pool: Final = ConnectionPool(
^^^^^^^^^^^^^^^
psqlpy.exceptions.SSLError: Cannot create set SSL: error:80000024:system library:(unknown function):reason(2):crypto/bio/bss_file.c:67:, error:10080002:BIO routines:(unknown function):system lib:crypto/bio/bss_file.c:77:, error:05880020:x509 certificate routines:(unknown function):BIO lib:crypto/x509/by_file.c:231:
error: Recipe run failed on line 13 with exit code 1

fwiw, I'm running this on NixOS, so maybe there is an assumed dependency at the OS layer which is not present in my system / is not linked as expected... going to change the title to more accurately reflect the issue

Hmm, it looks strange, I've never had any experience with NixOS, so I cannot tell you anything about it.
Anyway, how do you create your cert file? Can you show me an example?
I've tested SSL mode with different servers and conditions and it always works so that we could find a problem.

:/ i figured it out, i think it was two problems

ca_file=open(ca_file).read(), this is wrong, i just needed to feed the file path, not the contents
there was some issue with the encoding of the password from the AWS rds command that I was piping in... using boto3 to get the password instead fixed the problem..

So basically... user error haha
Thanks for the speedy replies!

@brizzbuzz Oh, normal user mistakes)
It’s great that everything is good at the end)


A qustion on the molecular property prediction regression task

I have noticed a significant disparity between the predicted values and the labels when using Unimol tools for predicting molecular properties, especially when the molecular property values are either large or small. I kindly ask for your advice on how to address this issue or if you have any suggestions to offer. Thank you.

Hi wklix,
If your target values are either large or small, with high skew or kurt values, I think some target normalization should be helpful. unimol tools use a simple auto normalize strategy, with skew threshold and boxcox normalization.
https://github.com/dptech-corp/Uni-Mol/blob/00f67e4fe02575113d908105f79bcbb4161940e5/unimol_tools/unimol_tools/data/datascaler.py#L71
Maybe you can try different normalize methods or loss function. such as log1p and ghm loss.


update bundler and rubygems

i believe this'll fail on travis...

What's the goal? Halite depends on Bundler so if there is a specific version I should depend on it directly.

Yeah, it looks like halite isn't compatible with the latest bundler+rubygems -- this is failing in travis...
There's an override in the chef/chef tests that have been making it pass by keeping the default travis versions, but i need to bump that to 1.10.0 or later for the gem metadata stuff and add a chef runtime dep on bundler now...

Got it, thanky :)

Hmm, the only test that is failing is a failure of the test harness, not Halite itself. Will have to dig in a bit.

:+1:

Testing against multiple bundler/rubygems versions is complicated by the fact that env vars are not part of the travis cache key still (I think).

Yeah chef/chef is running against the latest versions for most of the tests, except for a couple where they got overridden either accidentally or like with halite it looks like it was done on purpose.  I'll have to change it so we're running against latest for all the chef/chef travis tests...  Probably halite and friends should test against latest as well...

Running with the Rubygems that comes out of the box is a feature, so I'll have to add specific tests to the matrix for this.


Proposal to create UBI based stacks.

Summary
Paketo stacks are currently based on Ubuntu, this RFC proposes creation of UBI based Builder/Run images, also making use of the new Builder Image extension capabilities to provide runtime dependencies via rpm/dnf.
Use Cases
Customers who wish to use buildpacks, but also require their applications to run on UBI based containers, using UBI supplied runtimes.
Checklist

[x] I have viewed, signed, and submitted the Contributor License Agreement.
[x] I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
[x] I have added an integration test, if necessary.
[x] I have reviewed the styleguide for guidance on my code quality.
[x] I'm happy with the commit history on this PR (I have rebased/squashed as needed).

I am curious to know what we think about automation for the new repositories (to create and publish the stacks, builders, and extensions) - will this be completely new automation or will it be a modification of what already exists in https://github.com/paketo-buildpacks/github-config
But, I don't think that implementation needs to be called out in this RFC, so I didn't add it as a comment.

@robdimsdale my goal at least is that we re-use as much as we can from existing repositories in terms of automation and approach. You can see the work in progress Node.js extension here - https://github.com/nodeshift/ubi-nodejs-extension and you should see that it follows the same pattern as the other Node.js build packs and we are trying to leverage as much of the existing approach/automation as possible.

my goal at least is that we re-use as much as we can from existing repositories in terms of automation and approach. You can see the work in progress Node.js extension here - https://github.com/nodeshift/ubi-nodejs-extension and you should see that it follows the same pattern as the other Node.js build packs and we are trying to leverage as much of the existing approach/automation as possible.

Yup - I saw that, thanks. It sounds like we're aligned in terms of looking for opportunities to reuse and extend existing automation, which is great.