Add Scala support to CLI

Motivation
When reading the docs for typeshare, I noticed that Scala was mentioned in the supported languages but it wasn't mentioned in the docs for the cli.
Dug into the source code a bit and could see Scala was missing from cli/src/main.rs.
I figure there are two main possibilities:

Support for Scala isn't actually complete so you don't want to include it in the cli yet
After implementing Scala in the core crate, you forgot to add it to the cli crate. You guys are busy, after all.

If it's the first option, then it's not a big issue because writing this PR didn't take very long anyway and you can just close it.
If it is the second option and this PR helps, then I'd propose a refactor/rewrite of the CLI (although I think it needs one anyway). In its current state I'd expect it's tricky to keep track of.
I'd go for a more structured approach (😏), if you look at the sorts of features clap has integrated from structopt you'll see what I mean. Happy to open up a RFC issue with a more detailed proposal if you're interested, but I'm also happy to just crack on with it next weekend without an RFC if that's alright with you guys. I'd also look into adding some proper tests for the actual CLI functionality.
Changes
5734f27e6defc3f866a35413b75536a5fe810206: Added "scala" as a supported value for the --lang arg, along with args and overrides for config.scala.package and config.scala.module_name
5a7de2f93830b00ae8772ab967ee2b91e77faaaf: Added Scala values to the test configs
04c1a478fffc36d0d247ab693c56349cee62680c: Added mentions of Scala in the cli README and also in the book. Quite possible I've missed out some places where it should be mentioned though.

We didn't enable support for Scala immediately because there were some incomplete elements - at least that was the impression I got from the contributor who wrote the original PR. But there have been some follow-up PRs, so we should be good to enable Scala support now. I'll review your code when I get the chance.
@exoego you should probably take a look at this too.

We didn't enable support for Scala immediately because there were some incomplete elements - at least that was the impression I got from the contributor who wrote the original PR. But there have been some follow-up PRs, so we should be good to enable Scala support now. I'll review your code when I get the chance.

Yeah that's fair enough.
Also I forgot to mention this in the PR, but one thing I wasn't sure of, is whether new args were actually needed for the config.scala.package and config.scala.module_name overrides. I added them, but if it makes more sense to just use the existing args for Kotlin (with an update description mentioning that they're used for Scala also) then I can quickly make that change.
My reasoning for adding new args, is in case someone is generating a config and they want different values for these fields in their Scala and Kotlin configs, or if someone is running multiple commands to generate types for a few languages but they just want to specify the overrides once and change the --lang arg each time they use the command.

@jclmnop I merged main into your branch to fix some conflicts. Reviewing now.

Also I forgot to mention this in the PR, but one thing I wasn't sure of, is whether new args were actually needed for the config.scala.package and config.scala.module_name overrides. I added them, but if it makes more sense to just use the existing args for Kotlin (with an update description mentioning that they're used for Scala also) then I can quickly make that change.

Ideally we should keep those separate - the package/module names could be completely different between the two languages.

Some minor nitpicks but otherwise it's looking good!

Fixed 👍


panic / runtime error: integer divide by zero (missing etcd)

I have run kube-aws init to generate a cluster.yaml, and then edited that to point at various existing resources (VPC, subnets, KMS key). When I go to kube-aws render stack, I get this gem:
ᐅ kube-aws render stack
panic: runtime error: integer divide by zero

goroutine 1 [running]:
github.com/kubernetes-incubator/kube-aws/model/derived.NewEtcdNodes(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /go/src/github.com/kubernetes-incubator/kube-aws/model/derived/etcd_nodes.go:16 +0x966
github.com/kubernetes-incubator/kube-aws/core/controlplane/config.Cluster.Config(0xc4201c2ff0, 0x1, 0x1, 0x0, 0x0, 0xe227ab, 0x9, 0x0, 0x0, 0x0, ...)
        /go/src/github.com/kubernetes-incubator/kube-aws/core/controlplane/config/config.go:761 +0x341
github.com/kubernetes-incubator/kube-aws/core/root.StackAssetsRendererFromFile(0xe25a66, 0xc, 0xc4201c2e10, 0xe1e126, 0x4, 0xe1dfe6)
        /go/src/github.com/kubernetes-incubator/kube-aws/core/root/renderer.go:14 +0x10d
github.com/kubernetes-incubator/kube-aws/cmd.runCmdRenderStack(0x14d21c0, 0x14f6ab8, 0x0, 0x0, 0x0, 0x0)
        /go/src/github.com/kubernetes-incubator/kube-aws/cmd/render.go:71 +0x3d
github.com/kubernetes-incubator/kube-aws/vendor/github.com/spf13/cobra.(*Command).execute(0x14d21c0, 0x14f6ab8, 0x0, 0x0, 0x14d21c0, 0x14f6ab8)
        /go/src/github.com/kubernetes-incubator/kube-aws/vendor/github.com/spf13/cobra/command.go:647 +0x3f8
github.com/kubernetes-incubator/kube-aws/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x14d23e0, 0xc420177f50, 0x0, 0x0)
        /go/src/github.com/kubernetes-incubator/kube-aws/vendor/github.com/spf13/cobra/command.go:726 +0x339
github.com/kubernetes-incubator/kube-aws/vendor/github.com/spf13/cobra.(*Command).Execute(0x14d23e0, 0xc4200001a0, 0xc4200001a0)
        /go/src/github.com/kubernetes-incubator/kube-aws/vendor/github.com/spf13/cobra/command.go:685 +0x2b
main.main()
        /go/src/github.com/kubernetes-incubator/kube-aws/main.go:10 +0x2d

It looks like it's failing on etcd in the spec. By default, the cluster.yaml has the etcd params commented out, but it appears they are required or otherwise leading to this error.. after adding in a section for etcd, I get:
ᐅ kube-aws render stack
Success! Stack rendered to ./stack-templates.

Next steps:
1. (Optional) Validate your changes to cluster.yaml with "kube-aws validate"
2. (Optional) Further customize the cluster by modifying templates in ./stack-templates or cloud-configs in ./userdata.
3. Start the cluster with "kube-aws up".

@ketzacoatl Hi, thanks for trying kube-aws!
Would you mind sharing us your cluster.yaml?
AFAICS at this moment, you’re perhaps missing subnets: in your cluster.yaml?

The cluster.yaml I received from kube-aws init had the etcd section fully commented out. Though it seems (at least with my spec, which includes references to existing VPC, subnets and route table), this section is required.
By adding the etcd section like:
etcd:
  instanceType: t2.medium
  rootVolume:
    size: 30
    type: gp2
  subnets:
    - name: foo-01-az-a
    - name: foo-02-az-b

The panic goes away. kube-aws should catch and throw a human readable message if the etcd section is missing, but required for one reason or another.

FYI, an etcd cluster requires one or more public subnets or private subnets by default according to your setup. The part of the setup involves very a confusing logic explained in #929 so I'm going to make it easier by removing the logic.
Explicitly setting etcd.subnets[] overwrites the defaults hence no error.
Anyway, emitting a panic instead of an useful error for a misconfiguration is an orthogonal problem to that. I'm fixing it in a PR corresponds to this issue 😉


Update dependency uvicorn to v0.30.1

This PR contains the following updates:

Package
Type
Update
Change

uvicorn (changelog)
project.dependencies
minor
==0.29.0 -> ==0.30.1

Release Notes

encode/uvicorn (uvicorn)
v0.30.1
Compare Source
Fixed

Allow horizontal tabs \t in response header values (#2345)

v0.30.0
Compare Source
Added

New multiprocess manager (#2183)
Allow ConfigParser or a io.IO[Any] on log_config (#1976)

Fixed

Suppress side-effects of signal propagation (#2317)
Send content-length header on 5xx (#2304)

Deprecated

Deprecate the uvicorn.workers module (#2302)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

happening in https://github.com/robert-koch-institut/mex-backend/pull/45


Native base components make app slower by using FowardRef

Description
My app is mostly written with native base, it is quick and convenient. But somehow it is really slow on android. I used React Native Debugger Profiler and found out that those native base components are all using FowardRef, which seems to make app render slower. I actually rewrote one of the screen with purely react native and the render duration decreased from 180ms to 80ms. Anyone notices this issue?
CodeSandbox/Snack link
no code sandbox link required
NativeBase Version
3.3.1
Platform

[X] Android
[ ] CRA
[X] Expo
[X] iOS
[ ] Next

Other Platform
No response
Additional Information

@Wei102193 Thanks for reporting! We'll look into this.

I am having the same issue. I rewrote my entire react-native app with native-base because of its simplicity but when we did our final preproduction testing, the app is running very slow on android. For ios, it seems to be working fine maybe it is slower than pure react-native but the difference is not noticeable on ios.

@Wei102193 Thanks for reporting! We'll look into this.

Is there any way to track the progress about performance?
Right now it is indeed crazy slow on android in production; I would love to see some follow up on this issue.

@Wei102193 Thanks for reporting! We'll look into this.

Is there any way to track the progress about performance? Right now it is indeed crazy slow on android in production; I would love to see some follow up on this issue.

Yes, you can use Profiler from React Native Debugger to check the render duration. As I said I rewrote one of my screen with only React Native, the render duration decreased from 180ms to 80ms. It was not even a complex screen. I think the more Native Base components you use, the slower you app will be, especially on Android.
https://docs.expo.dev/workflow/debugging/
https://www.youtube.com/watch?v=00RoZflFE34

I'm sorry I should have clarified, by tracking I meant traking the progress of the native-base team on this issue.
@surajahmed
Your post was already very clear @Wei102193 and I confirmed I faced the same issue.

Hi @surajahmed
Can you please update us on this issue? or at least have a little more clarity regarding its validity.
The application I am working on is near complete and we have to push it to production but if this issue is valid and we have to stop and recode everything again.
I hope you understand my problem. Thanks

Okay here is my update after rewriting most components in pure react native:
performance is day and night. It feels SO MUCH SMOOTHER without native-base, it's unbelievable.
HOWEVER, I am still using nativebase for a few specific components, for dark mode and a few extra stuff.
But, as soon as I have a list of many items/components, then right away I switch said components to react-native, and that itself should save you a lot of performance without necessarily writing your entire code.
Basically, keep wrappers etc with native vase, but when you are coding a list of items, make sure said list is react native.
It's 20% effort for 80% result for the time being, while waiting for native base to improve performances.

@pierroo Thank you for sharing your solution. Seeing all the comments above, I assume this problem is actually valid.
I think fixing this issue should be on the top priority list of the native-base team @surajahmed. I personally loved the library and the approach but it's sad that we can't use it in production as-is for now.
I hope this issue will be resolved soon.

While the issue described here is regarding Mobile, I am experiencing a similar issue using native base with NextJS. The biggest issue is observed on inputs that use text like Input and TextArea. Writing fast on the input does not provide instant feedback but takes a while between typing fast and seeing what was typed reflected in those inputs. Also, there are some slow animations. So I guess the issues are in the core and not the platform-specific implementation.
Does the team have a deadline? I am asking because started to implement something that needs to go to prod in 2 months but if the issue remains I will need to replace Nativebase.

Closing this issue as it is actually the same issue as https://github.com/GeekyAnts/NativeBase/issues/4302, Please follow up on it there, Thanks.


tf2 keeps crashing after i load itemtest then enter casual

Fedoraware Version Date:
Config used:

Description:

Steps to reproduce:

[ ] I am able to consistently reproduce this error

Steps to reproduce the behavior:

Enable X
Do Y
Notice Z

Additional context

[ ] I have included the steps to reproduce to the best I am able to share.

fedorawave broke by a tf2 update wait for a dev to update the thing and it should be fixed

thats i know


Wrong subsection highlighting

In the line 109 of this README file, the first hash mark is shown in different color than the second one.

Notice: This plugin is no more maintained and it has been removed from Jetbrains plugins repository. There is a Markdown plugin officially supported by Jetbrains.


New option --display-only-failed for junit format

Speeds up test report processing for large codebases and helps address
the sorts of concerns raised at
https://github.com/mikian/rubocop-junit-formatter/issues/18.
In one case for me, this reduced the number of testcase xml elements from 66,000 to 1, which made a material difference in terms of jenkins test report load times.
Refactors file_finished method in junit_formatter.rb to reduce
complexity.
Fixes buggy error message when --disable-uncorrectable is run without
--auto-correct, which I noticed because I added similar error messaging
when you try to run --display-only-failed without --format junit.
Tests, CHANGELOG.md, and help message updates to accompany new option

I'm fine with the proposed change. I think it'd be a good idea to also mention it here https://docs.rubocop.org/rubocop/formatters.html#junit-style-formatter

Corrected the two specific issues and updated the relevant documentation. I love this tool, @bbatsov, thank you!

Thanks for tackling this! I'll do the small doc change I mentioned myself.


xorg.xorgserver: 1.18.4 -> 1.20.14 on Darwin (still broken)

Description of changes
Perviously #207149.
Previously, Darwin was kept on 1.18 because more recent versions were
broken, but now 1.18 is also broken on Darwin, so we might as well get
rid of the special case and bring Darwin forward.  With these changes,
xQuartz builds on Darwin, but when run it will exit immediately.
This makes Darwin use the same derivation as Linux by default, which
will enable further cleanups.  But as a result, we have to fix some
Linuxisms.

Only add libdrm dependency on compatible platforms.
Add libepoxy dependency for all platforms.
Add bootstrap_cmds dependency on Darwin.
Disable glamor on Darwin.

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

@ofborg build quartz-wm quartz-wm.passthru.tests xorg.xorgserver xorg.xorgserver.passthru.tests


Proposal: Pre-Build images in Github

This is a proposal as requested by @yanokwa at
https://forum.getodk.org/t/host-odk-central-docker-images-on-github-container-registry/29812/19?u=mattelacchiato
It introduces the usage of Github actions to build the docker images in
Github and host them at ghcr.io (the github package repository). For
open source projects, the infrastructure is for free.
Additionally, I've removed the unnamed volumes from the
docker-compose.yml. The reason is that unnamed volumes are hard to
backup. Currently, the enketo secrets are not part of the backup, which
is really bad if you have to recover your installation and all public
links are not working anymore for submitters.
For the same aspect of easier backup on OS-level, I moved the postgres
and redis folder to a local volume, too.
I switch the secrets docker base image from node to alpine, which is
much more lightweight. We don't need node for a simple bash script
execution.
This setup will increase the benefits for experienced administrators
without removing any convenience for beginners.

unless you can provide a lot of automation and foolproofing around it, i think asking people to run commands during upgrade to prevent data loss is too much to ask. not everybody reads the instructions when they upgrade. as mentioned, we have the same concerns but we stopped down this road because we tried very hard to come up with an answer we felt we could trust but came up short. we are interested in naming these volumes but i need to see a really good answer for deployment/migration.
my suggestion would be to drop that element from the pr and open a new one focused on that if you're interested in tackling it. if you are, know that i'm also interested in moving to postgres 14, which seems like a related problem area (locate and perform the upgrade on the volume and associate it back to a 14.x image).
as for alpine, that's fine. number of connections can be just as bad (or worse) than download size and i'd still rather stick to the minimum we can offer for the sake of those with poor connections but if you feel strongly about alpine being included i guess i don't care that much. thanks for catching that it was still on 12.

Yeah, I will shrink this MR down. Hopefully within the next 2 weeks ;-)

Any update on this?

I started a slimmed-down version of these changes in #546 (based on this PR, thank you @mattelacchiato!), in case it could be merged in smaller steps.

Thanks again for getting us started on this, @mattelacchiato! We're picking it back up in earnest at https://github.com/getodk/central/pull/676!

Oh, wow! Thank you for your heartening feedback! I'm happy that the effort was helpful ❤


feat: support nestjs 10

Nest.js has recently released v10. Thus, this PR make the lib to support Nest.js 10. Requested by #249

Codecov Report

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

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@           Coverage Diff            @@
##             main      #250   +/-   ##
========================================
  Coverage        ?   100.00%
========================================
  Files           ?         8
  Lines           ?       205
  Branches        ?        31
========================================
  Hits            ?       205
  Misses          ?         0
  Partials        ?         0


Feature : expose TrackError

Description
Expose TrackError function in Crashes Cordova Plugins

@calca Thanks for using App Center. Currently, we expose handled error functionality only for Xamarin apps. It's on our roadmap to support it for other platforms but there is no ETA yet. We will keep this thread open for visibility and keep you posted once we plan to support it for Cordova.

@elamalani the API is not available on Android / iOS Native library ?

This would be very good to have. Currently I'm abusing analytics, but that is rather limited, as the events are truncated and especially stacktraces go missing.

@calca No, the API is not available for native iOS and Android. It's only available in Xamarin SDK right now.

Hi, we want to switch from IonicPro to AppCenter, so we need the Errorlogging plz :)


Hello i want to know

I want to know how you injected it into explorer.exe and where is the specific code

It uses RunPE (process hollowing) here:
https://github.com/UnamSanctam/SilentETHMiner/blob/abb99bc6151fbcb1bf1900ddf1ba678675bbf30d/SilentETHMiner/Resources/Program.cs#L335
My new miner has also been released at: https://github.com/UnamSanctam/SilentCryptoMiner

Thank you UnamSanctam

I know your new miner, I made a new thing myself and need injection, thank you very much

No problem, and good luck with your project.


Add 2 additional keys for each lane

Resolves #43

This is almost verbatim the same as a branch I have locally, even the enum cases and descriptions. 😅
I'd like to see the lane selection done as an extension on the enum though rather than adding more || to the conditions.
Something like this:
public static class RushActionExtensions
{
    public static LanedHitLane Lane(this RushAction action) =>
        action switch
        {
            RushAction.GroundPrimary => LanedHitLane.Ground,
            RushAction.GroundSecondary => LanedHitLane.Ground,
            RushAction.GroundTertiary => LanedHitLane.Ground,
            RushAction.GroundQuaternary => LanedHitLane.Ground,
            RushAction.AirPrimary => LanedHitLane.Air,
            RushAction.AirSecondary => LanedHitLane.Air,
            RushAction.AirTertiary => LanedHitLane.Air,
            RushAction.AirQuaternary => LanedHitLane.Air,
            _ => LanedHitLane.Ground
        };
}

///

public virtual bool LaneMatchesAction(RushAction action) => action.Lane() == HitObject.Lane;

My bad, didn't check if anyone else was already working on it, lol. Also, you can extend enums? You learn something new every day, I suppose.

My bad, didn't check if anyone else was already working on it, lol.

It was only a local branch for testing, lower priority for me.

Also, you can extend enums? You learn something new every day, I suppose.

Even easier in Swift, which is where most of my previous non-C# experience is from:
extension RushAction {
    var lane: LanedHitLane {
        switch self {
            case .groundPrimary, .groundSecondary, .groundTertiary, .groundQuaternary: return .ground
            case .airPrimary, .airSecondary, .airTertiary, .airQuaternary: return .air
            default: return .ground
        }
    }
}


Fresh install of @angular/cli fails in Fedora 26 and ubuntu 16 LTS

Bug Report or Feature Request (mark with an x)
- [ ] bug report -> please search issues before submitting
- [ ] feature request

A fresh install of cli fails in fedora and ubuntu. The issue with node-sass it can't create the folders due to EACCESS issue.
i have rectified the problem in fedora by removing node_modules folder from /usr/lib/node_modules/@angular/cli and running npm install by root user. But this doesn't solved the issue in ubuntu. I still get error
Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/@angular/cli/node_modules/node-sass/build' gyp ERR! System Linux 4.10.0-37-generic gyp ERR! command "/usr/bin/node"<EMAIL_ADDRESS>"rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd /usr/lib/node_modules/@angular/cli/node_modules/node-sass gyp ERR! node -v v8.7.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok  Build failed with error code: 1
Versions.
@angular/cli: 1.4.9
node: 8.7.0
os: linux x64

Repro steps.
A fresh install of nodejs and cli in fedora and ubuntu

The log given by the failure.
EACCES user "root" does not have permission to access the dev dir<EMAIL_ADDRESS>gyp WARN EACCES attempting to reinstall using temporary dev dir<EMAIL_ADDRESS>gyp verb tmpdir == cwd automatically will remove dev files after to save disk space

Desired functionality.

Mention any other details that might be useful.

I suggest follow instructions on this page.

I found that one before. But it's suggests to create a new directory for npm global modules. If we do like so it will be for the current user right?
The error is it's not installing the node-gyp for node-sass.

This is indeed a problem with permissions in NPM, as shown in the link by @sarunint. I'm sorry but there isn't anything we can do about it in Angular CLI. You really need to fix your npm setup permissions.

@filipesilva I have found the issue. It's with node-sass. node-sass require node-gyp and node-gyp failed to install . The solution are to
npm -g @angular/cli --unsafe-perm.
or
change npm permission https://docs.npmjs.com/getting-started/fixing-npm-permissions
More details in here https://github.com/nodejs/node-gyp/issues/115


Hook up tooling for reference documentation

Initial inline documentation && generation
Documentation publication to github pages

Added a new rake task, similar to the one used for the JS client. This task will generate the docs, commit and push the changes to the corresponding project's Github pages (updating the online docs).
Example:

rake docs:pages


Support ngcc running on 3p packages that don't ship Angular ivy instructions

There is a workaround for this here: https://github.com/aspect-build/bazel-examples/pull/191

I think Angular now recommends that libraries ship the angular compiler codegen, so ngcc "compatibility compiler" is close enough to End of Life that we'll never fix this.
Closing as obsolete.


Making menu aligned at proper position/

As it is not looking good,

I want to make it proper.
Could you please assign me this issue under hacktoberfest2022?

@Pallavibahekar plz do the necessary changes


Can we have RouteGuards?

Hi, I'm building a Flutter Website in one of my company projects and got really interested in VRouter after a tt made by Luke Pighetti about this package, but I don't think you currently support RouteGuards and that's a really important feature to me. Are there any plans on including something like it?

VGuard are supported and very powerful in VRouter.
Here is an example: https://vrouter.dev/guide/Examples/Redirection
The trick is to use the following VRouteElement: VGuard

That's exactly what I needed! Didn't saw it the first time I've looked into the docs.


Allow user to adjust docSpec.

The Javascript code for your own entry editor can now also be used to customize the docSpec, influencing how Xonomy (or your custom editor) presents the document. This allows you to hide certain elements, make them read-only, expand them by default, etc. To do this, add an adjustDocSpec function that takes the docSpec as a parameter. An example has been added to the included example.

I accidentally committed changes in package-lock.json. I'll close this and open a new pull request.


M3-1313 Collapse Attachements

Purpose
If support ticket has greater than 5 attachments, hide the rest behind a "Show More Files" toggle

Coverage decreased (-0.01%) to 26.379% when pulling 2dc8fd24763471e47c96bdf1451e8e93ebae5e66 on martinmckenna:M3-1313-collapse-attachments into 44e131c7393dc86211fee31608df42431c0f8c71 on linode:develop.

@martinmckenna styling and markup added


We are now welcoming nominations to the CC Board of Directors. Each year, we seek nominations from the Creative Commons community for thoughtful and talented individuals invested in the future of the organization. The CC Board of Directors guides the strategic direction of Creative Commons, provides valuable expertise in key programmatic areas, and champions the…

Join the Creative Commons Board of Directors


wasm-mutate: Clean up egg rule definitions and extract smallest AST size expression when reducing

cc @Jacarte

Oh, the other thing that this does is make the rules unidirectional (most are bidirectional by default) when we are reducing, so that we only make the expression smaller. This could, in theory, miss out on some size-reducing optimizations that take a long, circuitous route to get to their final form, but I think that will be pretty rare in practice and we should get a nice speed up this way since we are dealing with fewer rewrite rules.


mdbook-open-on-gh: 2.3.1 -> 2.3.3

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/badboy/mdbook-open-on-gh/releases.
meta.description for mdbook-open-on-gh is: mdbook preprocessor to add a open-on-github link on every page
meta.homepage for mdbook-open-on-gh is: https://github.com/badboy/mdbook-open-on-gh
Updates performed

Rust version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.3.2 with grep in /nix/store/scx0jdrkivc5sk6s68zm4imvgayd15m7-mdbook-open-on-gh-2.3.2
found 2.3.2 in filename of file in /nix/store/scx0jdrkivc5sk6s68zm4imvgayd15m7-mdbook-open-on-gh-2.3.2

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
mdbook-open-on-gh

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/scx0jdrkivc5sk6s68zm4imvgayd15m7-mdbook-open-on-gh-2.3.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A mdbook-open-on-gh https://github.com/r-ryantm/nixpkgs/archive/a1fed0d5c493a097bb2f43579be8745d4b0bb1f6.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/scx0jdrkivc5sk6s68zm4imvgayd15m7-mdbook-open-on-gh-2.3.2
ls -la /nix/store/scx0jdrkivc5sk6s68zm4imvgayd15m7-mdbook-open-on-gh-2.3.2/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

mdbook-open-on-gh

Maintainer pings
cc @matthiasbeyer for testing.

2.3.2 was yanked, updated to 2.3.3


Mixed two-series chart - cannot define minimax for distinct Y scales

Looks like feature request, but it's so strange, and looks like bug.
Where is Mixed time-series chart, that can show 2 set of data on distinct 2 Y scales:

Both scales has own config expect... min-max! They share it!
So in example above i can set 10M-20M and lost line (it will be at bottom),
and I cannot set 0.3 - 0.6 because it will breack down bars!
I think it's BUG, because main goal of TWO-Y charts is to allow show 2 different rows with 2 different measurement at Y axis, and min-max is most freaquently used feature of such charts.... Lack of it here looks like bug

Confirming this observation

Closing this as stale since it's been silent for so long, and we're trying to steer toward a more actionable Issues backlog. If people are still encountering this in current versions (currently 3.x) please re-open this issue, open a new Issue with updated context, or raise a PR to address the problem. Thanks!


[enhancement]New function

I added two new functions according to my own needs.
★1. CompileFromString -> Instance.cpp
2. CompileFromFile -> Instance.cpp
I hope it helps :)
Instance.h Instance.cpp
Compiler.h Compiler.cpp

Hello, thank you for your interest!
You can make a PR or will have to wait once i will have time for this


Add cidr range firewall and removed network tags

Added cidr range firewall and removed network tags

Looks, egress rules are only created. Not sure if I am missing something, could not see ingress.
compute egress rule is also created, in storage-only mode.
60sec wait may not be required in gcp, need to investigate.
In the inventory, the "storage_cluster_instance_ids": ["6394890111382239406","1037653424555473070","6095985740772587694","674473927763343534"] need to be replaced with self-link.

ingress rule already exits at line 80, 90
removed egress rules for compute
bypassed 60sec wait by introducing new var wait_for_instance
changed storage_cluster_instance_ids to self_links
https://github.com/IBM/ibm-spectrum-scale-cloud-install/pull/354/commits/4171d746cf59ae437e0baae33b183acc4154d7ed


No way to access default, minimum, maximum on Schemas that are integer type:

{
  "components": {
    "schemas": {
      "TokenExpirationSeconds": {
        "type": "integer",
        "description": "The number of seconds until the generated token expires.",
        "format": "int32",
        "default": 3600,
        "example": 3600,
        "minimum": 15,
        "maximum": 86400
      },
      "PersonalAccessToken": {
        "type": "object",
        "properties": {
          "expires_in": {
            "$ref": "#/compnenets/schemas/TokenExpirationSeconds"
          }
        }
      }
    }
  }
}

All i get in the generated code is
case class PersonalAccessToken(expiresIn: Option[Int] = Option(3600))

I'd ideally be able to access these constants in some way. Only the default is present in the generated code at all.

Hello, please pardon the delay in response,
What's the use case for accessing these values? There's a guardrail module that does validation using the refined library in Scala, would that be sufficient?

What's the use case for accessing these values?

I just want to be able to access these constant for business logic purposes. Right now I'm having to re-define them, and so the constants defined in code could get out of sync with what's defined in the api spec.

There's a guardrail module that does validation using the refined library in Scala, would that be sufficient?

you mean a request that, say, violates the minimum or maximum will get rejected? that's good, but one might still need  access to them still. (e.g. default)

Got it. I don't have a great way to handle that at the moment, I really don't like how the default arguments are expressed today but I also don't really like the idea of defining a whole new constant object and exposing that to the caller.
Do you have an idea of what this would feel like to use? What would be the most useful and the least breaking change to the user?

If we take this generated schema for example:
package com.damlhub.openapi.definitions
import cats.syntax.either._
import io.circe.syntax._
import cats.instances.all._
import _root_.com.damlhub.openapi.Implicits._
case class Parties(result: _root_.scala.Vector[PartyDetails] = Vector.empty, status: Int = 200)
object Parties {
  implicit val encodeParties: _root_.io.circe.Encoder.AsObject[Parties] = {
    val readOnlyKeys = _root_.scala.Predef.Set[_root_.scala.Predef.String]()
    _root_.io.circe.Encoder.AsObject.instance[Parties](a => _root_.io.circe.JsonObject.fromIterable(_root_.scala.Vector(("result", a.result.asJson), ("status", a.status.asJson)))).mapJsonObject(_.filterKeys(key => !(readOnlyKeys contains key)))
  }
  implicit val decodeParties: _root_.io.circe.Decoder[Parties] = new _root_.io.circe.Decoder[Parties] { final def apply(c: _root_.io.circe.HCursor): _root_.io.circe.Decoder.Result[Parties] = for (v0 <- c.downField("result").as[_root_.scala.Vector[PartyDetails]]; v1 <- c.downField("status").as[Int]) yield Parties(v0, v1) }
}

status: Int = 200 could be accessible to users from their own code like this:
Parties.Defaults.status
(and perhaps also the generated case class Parties could reference that same constant as well instead of inlining while we're at it)
So to do that i think we can just nest another object inside object Parties:
object Parties {
   ....

   object Defaults {
     val status: Int = 200
  }
}

I don't think something like this would be a breaking change?


Cannot create a proposal via API with voting delays

Expected behavior
I can create a proposal that has a global voting delay set via the API by also calculating and setting the delay.
Actual behavior
The API creates a timestamp that is either 1 second later than when the delay was calculated. This results in a failure since the service calculate the delay off of the timestamp and realizes it is 1 second off from the global setting.
Steps to reproduce the behavior

Set a global setting in a space
Use the SnapshotJS API to create a proposal, setting the delay from Date.now()
Notice how the timestamp in the signing is 1 second off from the projected delay.

Hi, @jamesdobry can you provide us the code to reproduce this, ideally on a sandbox environment, what are the values you have given for delay? Did you check how is it handled on snapshot.org?


refactor: use for loop replace spread to fix stack overflow

Initial checklist

[x] I read the support docs
[x] I read the contributing guide
[x] I agree to follow the code of conduct
[x] I searched issues and discussions and couldn’t find anything or linked relevant results below
[x] I made sure the docs are up to date
[x] I included tests (or that’s not needed)

Description of changes
Main change is use for replace w/ spread opreator [...slice]
When I try to parse a large markdown file, about 1.6 Mb, I meet an issue RangeError: Maximum call stack size exceeded

I debugged the source code and found that the error came from the slice line. I suspected that the spread operator caused the stack overflow.

After, change it to for, the issue has fixed.

sure, I have removed unnecessary comment, thank you for the review and your time


fix: deleteSubscriptionHandler, check exist and order

PR Description
Type of change

[x] Bug fix

Summary of the change and which issue is fixed
Main changes: fix deleteSubscriptionHandler

Checklist

I have run format.sh under script
I have commented my code, particularly in hard-to-understand areas
New and existing unit tests pass locally with my changes

I think we should check if the request is sent to the right server first. There are two reasons:

Each node should only perform the tasks it is supposed to perform, that is, the priority of checking whether the current request is sent to the correct node should be the highest.
Getting data from ZK is slower than calculating hashring, which means, if we do ZK request first, then we find it's not the current node's duty to perform the request, we should pay more time for the network request.


The application does not allow the user to view the “Sign Up Now” button in the “Prices” section on Apple devices.

Description:
When the user clicks on a price-item to view its properties nothing happen unless the user click where the hidden button is located.
-Env:
Using the Fitness Blueprint
Device: Iphone 7
Ipod 5
IOS:10.3
REPRODUCIBILITY LEVEL:
Always
STEPS:
Steps

Open the Crafter studio with the Fitness site.
On the site preview, go to the Prices section.
Click on a Price-item.
Click where the hidden button is located.

CURRENT RESULT:
The application does not allow the user to view the “Sign Up Now” button in the “Prices” section on Apple devices, unless the user click where the hidden button is located.
https://www.screencast.com/t/i3Dm1BQTG
EXPECTED RESULT:
The application should display the “sign Up Now” button properties, when the user clicks in any area of the price-item(in the browser this is a hover).

FIxed

Bug verified and closed as fixed in build c684dfc.


updating standalone/inline test links

Going through documentation online I noticed these were going to 404s so I updated them.

Oops, I just merged another PR doing the same. Thank you nonetheless.


feat(merge): Master moderator role select

🍰 Pullrequest
merge  #3031 an #3030
Issues

merge #3031 #3030

This was done in another PR


Add azd package to context menus and command palette

Closes #1839

VSCode Extension Installation Instructions

Download the extension at https://azuresdkreleasepreview.blob.core.windows.net/azd/vscode/pr/1849/azure-dev-0.5.0-alpha.1.vsix
Extract the extension from the compressed file
In vscode
a. Open "Extensions" (Ctrl+Shift+X)
b. Click the ...\ menu at top of Extensions sidebar
c. Click "Install from VSIX"
d. Select location of downloaded file

VSCode Extension Installation Instructions

Download the extension at https://azuresdkreleasepreview.blob.core.windows.net/azd/vscode/pr/1849/azure-dev-0.5.0-alpha.1.vsix
Extract the extension from the compressed file
In vscode
a. Open "Extensions" (Ctrl+Shift+X)
b. Click the ...\ menu at top of Extensions sidebar
c. Click "Install from VSIX"
d. Select location of downloaded file

VSCode Extension Installation Instructions

Download the extension at https://azuresdkreleasepreview.blob.core.windows.net/azd/vscode/pr/1849/azure-dev-0.5.0-alpha.1.vsix
Extract the extension from the compressed file
In vscode
a. Open "Extensions" (Ctrl+Shift+X)
b. Click the ...\ menu at top of Extensions sidebar
c. Click "Install from VSIX"
d. Select location of downloaded file


[master] Add API to query if a host is an SSI cluster member

Return SSI cluster as a list if host is an SSI cluster member,
otherwise, return [].
Signed-off-by: Shu Juan Zhang<EMAIL_ADDRESS>

@jichenjc @bjhuangr @SeanHQF Please review the code first. UT is under working.

Have updated according to comments and added UT.

And submit another PR to add doc for the new API

And submit another PR to add doc for the new API

And submit another PR to add doc for the new API

will do.


system_load measurement missing

Missing system_load measurement with a new telegraf-0.1.5-1.x86_64.rpm and InfluxDB v0.9.3-rc1

Looks like
# Read metrics about system load
[system]
  # no configuration

was removed from telegraf.conf
Any special reason for this change?

There was no particular reason to remove it, I just wanted telegraf's default config entries to be fairly stream-lined and without external dependencies (such as a mysql server). So that being said, system load is probably one that actually should stay.
I'll add it back in for the next release :+1:, thanks for the feedback!

Thanks for the hard work. Really appreciated.


[Removal]:

Hotspot Name
Dizzy Wooden Pike
Hotspot b58 Address
11aHLiTf82Mz4ZuDTaYWmvN1pid8syXicQd9KhfLfaC9WbKFYRh
Discord Handle
No response
Hotspot Manufacturer
Heltec Automation
Removal Reason
To whom it may concern, My friends and I were both deployed in the real location  and somehow blacklisted. I did not pay attention to the drop in earnings since February 1. They were also not be found on https://blacklist.longap.community/. Then I found the list at denylist.csv. I hope the official will remove my machine from blacklist as soon as possible. Thank you very much.
Modifications
No
Extra forwarders
No
Extra antennas
No
Additional Information
Dear Helium team,
Thank you very much for supporting us all the time. I am writing this e-mail about some machine problems. I bought some machines several days ago, however when everything was set up, the earnings appeared very low. I found them are banned spots through website. But the truth was that I deployed them at the right location to provide services to local devices as part of the network.
Please use your algorithm again to check the authenticity of the location, it will prove my innocence and helplessness.
Thanks a million again for your kind assistance!

We have taken into account this removal request in the next iteration of the denylist. It may take some time before it's processed. This is an automated comment due to the volume of addition and removal requests. A future tool is in the works to provide more insight into the analysis approach made by the Helium team and community members that maintain this list.


Adds IQE_RP_ARGS reportportal and IQE_IBUTSU_SOURCE args to CJIs

There are two variables those were added to iqecore to integrate with report-portal and also specify ibutsu-source for the test run

cc @bsquizz


Make Cesium release server work on Node 12.

While we still can't use Node 12 for Cesium development, this change is to make sure Cesium release zips can actually work under Node 12.

Thanks for the pull request @mramato!

:heavy_check_mark: Signed CLA found.
:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

:grey_question: Unit tests were not updated.

Make sure you've updated tests to reflect your changes, added tests for any new code, and ran the code coverage tool.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.
[ ] Works (or fails gracefully) in IE11.

Works for me in Node 10.19.0 and 12.16.1


Plan for new deployments of the app

For next deployments of the UI uploader, we will need to agree a ‘downtime’ window, as when redeploying all uploads in process will be interrupted.
We need to think moving forward about ways to prevent interruptions to users - could we use 2 EBI VMs and 'trust' the load balancer to:

switch over seamlessly during file transfer if one VM is taken down for redploy
maintain submission through the same VM if transfer has been started on one

@mcourtot A deployment has been done just now with most fixes.

@dipayan1985 what happens when we redeploy on Embassy?

@mcourtot
I believe below steps would do:

Getting confirmation from Jeena/ Nadim that no submitters are lined up for the day and they are not planning to do any tests
We announce a 2 hour downtime in our internal covid-util slack channel
We do the deployment and do a round of test
If 1,2 and 3 are all OK, we let Jeena's team to do more tests
If 4 is OK, it gives final confirmation that we are going ahead with Embassy S3. We detach our IAM users in the AWS as we will no longer use any of those.
We clear the S3 space we are using in AWS, which includes deleting files that are there in the bucket so that we don't incur more AWS costs for this purpose.

Does the above sound OK to you?


Sign message / resource during Create() and nix Sign() method.

Re-opening after some discussion with @mistermoe:
The desire is actually to follow the pattern in https://github.com/TBD54566975/tbdex-go/pull/45, i.e.

Add an option for .create() to sign the message
Also have a distinct .sign() function

cc: @phoebe-lew


Setup fixes

Little bit of change is required otherwise everything looks good. Thanks

What other changes are you asking for


Jetson nano

hi...
Can i use jetson nano for arm dev board
thanks
rizki

yes
Adrian Stucker
513.341.LENS
On Wed, Jun 26, 2019 at 5:33 AM qiwalker<EMAIL_ADDRESS>wrote:

hi...
Can i use jetson nano for arm dev board
thanks
rizki
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/linorobot/linorobot/issues/30?email_source=notifications&email_token=AJFUGIK3LEH7J7N6FEUBGC3P4NO3LA5CNFSM4H3RYLU2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G3ZOJ2Q,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJFUGIL4BIZPNIKNIY6KVP3P4NO3LANCNFSM4H3RYLUQ
.

Thanks @datadrian for confirming. Closing this now


WIP global: admin modelviews registration

Added model views registration through entry points

This PR provides relevant admin registration code: https://github.com/inveniosoftware/invenio-pidstore/pull/30

Seems like tests are failing due to isort. Just comment it out in run-tests.sh

That's interesting as the commit that made these fail was: https://github.com/krzysztof/invenio-admin/commit/9c0b1116912a896fd0baf12b4630db8386f92399
And the failing tests are only development tests, which passed before when invenio-db was not in the development dependencies..

Merged via 28f521521bd74673dfbdcb80a73ce65145a17501


Add built with for ng2-completer

@robisim74 thanks for the excellent starter!
used it in ng2-completer and thought it'd be appropriate to add it to the built with list.

fixed


What is the unit of virials❓ [QUESTION]

I'd like to train virials as well. Could you point out what unit is used for the virial fitting?

Sorry for the unclear description. I want to train on energy, forces, and virials (not stresses). I need to know which unit I have to use for fitting virials so that I can adjust them to the suitable format.

Aha, I see:  we do not do any unit conversions for either virials or stress, since nequip has no formal sense of units and just inherits the units of the dataset. So presumably eV in this case.
See for some more details comments throughout: https://github.com/mir-group/nequip/blob/develop/nequip/nn/_grad_output.py#L346-L351

Hi, @Linux-cpp-lisp .  In my recent time I have found that allegro is not accurate in predicting stress with eV/A3 units due to its very small value and I wonder if I am using the units incorrectly. As you mentioned, there is no formal sense of unit in allegro (https://github.com/mir-group/nequip/issues/404). So,
If I use ZBL with unit of metal and am training a model that can run MD with metal units using lammps, should I use eV for energy, eV/A for forces and Bars for Stress?

Hi, @Linux-cpp-lisp . In my recent time I have found that allegro is not accurate in predicting stress with eV/A3 units due to its very small value and I wonder if I am using the units incorrectly. As you mentioned, there is no formal sense of unit in allegro (https://github.com/mir-group/nequip/issues/404). So,
If I use ZBL with unit of metal and am training a model that can run MD with metal units using lammps, should I use eV for energy, eV/A for forces and Bars for Stress in my training dataset? and do the weights in the loss functions need to be rebalanced?


correct the comment line

What type of PR is this?

Uncomment only one  /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
/kind bug
/kind documentation
/kind enhancement
/kind good-first-issue
/kind feature
/kind question
/kind design
/sig ai
/sig iot
/sig network
/sig storage
/sig storage

/kind enhancement
What this PR does / why we need it:
Correct some comment lines who have obvious mistakes.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

Does this PR introduce a user-facing change?

other Note

/lgtm
/approve


CI is terribly outdated

I was trying to fix a CI on macOS/stack and went here for advice, but I found that CI tests only GHC 8.10 and<EMAIL_ADDRESS>which are both quite outdated now:
https://github.com/haskell-cryptography/HsOpenSSL/blob/05118c07edbfb8a52652ce7e36427a24be0ce0d3/.github/workflows/haskell.yml#L18-L24
(My CI regression: https://github.com/hackage-trustees/hackage-cli/actions/runs/9076812522/job/24940341265#step:8:117)

@vshabanov : I think it is important to have a CI that covers a wide range of GHC versions and some contemporary setups.  (E.g. how about GHC 9?)
E.g. I am getting build failures for HsOpenSSL here, but without HsOpenSSL having a working CI itself, it is tedious to investigate this: https://github.com/haskell-hvr/http-io-streams/actions/runs/9734337346/job/26862232728?pr=20
HsOpenSSL current promises to support GHC >= 7.10 (base >= 4.8), but where is the evidence for this?  Usually CI should deliver the evidence.


New version: ClimateERA v0.3.1

Registering package: ClimateERA
Repository: https://github.com/natgeo-wong/ClimateERA.jl
Created by: @natgeo-wong
Version: v0.3.1
Commit: cf63e289540e9142e344e804f0c8dd78042fea97
Reviewed by: @natgeo-wong
Reference: https://github.com/natgeo-wong/ClimateERA.jl/commit/cf63e289540e9142e344e804f0c8dd78042fea97#commitcomment-37262773
Release notes:

Modified file handling for downloading data, and eratmp2raw function

Stop merge please.


When recipient times out, BadCodeError is shown when in reality it is connection time out and not bad code

As reported in #79, when connection times out, the error code is somewhat misleading to the user. We need a different error code and corresponding message to convey the connection timeout to the user.

The suggested error title and text is this:
Connection time-out

It looks like the connection between you and the sender was briefly lost.
Please ask the sender for a new code.


Documentation for Using Tokens via PowerShell Appears to be Incorrect

:lady_beetle: Describe the bug
In the documentation here: https://docs.ntfy.sh/publish/#access-tokens
The PowerShell 7+ example is
# With PowerShell 7 or greater, we can use the Authentication and Token parameters
$Request = @{
  Method = "POST"
  URI = "https://ntfy.example.com/mysecrets"
  Authorization = "Bearer"
  Token = "tk_AgQdq7mVBoFD37zQVN29RhuMzNIz2"
  Body = "Look ma, with auth"
}
Invoke-RestMethod @Request

I tried this out and encountered two problems using Invoke-RestMethod as used in the example in the ntfy documentation.

The parameter Authorization should be Authentication - your comment mentions the correct parameter but the example uses the a parameter that doesn't exist.
PowerShell requires the token be a SecureString

Understandably, the second issue might require some explanation for anyone not familiar with PowerShell but the code below technically works. Ideally you'd want to import a SecureString from a file or vault or something but I don't see any other token examples make an effort to keep the token secret so I didn't bother with that in my recommended correction - I just convert on the fly which is absolutely not recommended.
# With PowerShell 7 or greater, we can use the Authentication and Token parameters
# The Token parameter must be in the form of a System.Security.SecureString

$Request = @{
  Method = "POST"
  URI = "https://ntfy.example.com/mysecrets"
  Authentication = "Bearer"
  Token = ConvertTo-SecureString "tk_AgQdq7mVBoFD37zQVN29RhuMzNIz2" -AsPlainText
  Body = "Look ma, with auth"
}
Invoke-RestMethod @Request

:computer: Components impacted
Documentation regarding Access Tokens and PowerShell 7+
:bulb: Screenshots and/or logs
Re 1:
|
|  Invoke-RestMethod @Request
|                    ~~~~~~~~
| A parameter cannot be found that matches parameter name 'Authorization'.

Re 2:
|
|  Invoke-RestMethod @Request
|                    ~~~~~~~~
| Cannot bind parameter 'Token'. Cannot convert the value of type "System.String" to type "System.Security.SecureString".

:crystal_ball: Additional context

All the PowerShell stuff is contributed by other people, so I do not know what is best practice or works. WOuld you be able to create a pull request with your suggestions?

Done - I just created my first PR ever! Hopefully I did it correctly?

Congrats on your first-ever PR. You did everything right. Thank you for your contribution!


Lab link with double path

lab links have the UDF-DevOps-Base in the URL twice.

fixed with PR#35


Health rolling negative

Problem
Health is being subtracted from even after its zero. Shouldn't be a problem after death is implement but is a bug in current release.
Bugged Lines
https://github.com/F28WP-Dubai-Group-6/LunarLander/blob/7d6d86f3c8bd8642cefc78ddaf18e783d5333d45/server/src/Game/Collision.js#L33
Potential Solution
Guard the damage routine with an if block. Only allow subtraction of damage if the health is greater than 0.

i think i did do it in prev version willo fix this
On Thu, Nov 5, 2020 at 5:33 PM Faraz Shaikh<EMAIL_ADDRESS>wrote:

Problem
Health is being subtracted from even after its zero. Shouldn't be a
problem after death is implement but is a bug in current release.
Bugged Lines
https://github.com/F28WP-Dubai-Group-6/LunarLander/blob/7d6d86f3c8bd8642cefc78ddaf18e783d5333d45/server/src/Game/Collision.js#L33
Potential Solution
Guard the damage routine with an if block. Only allow subtraction of
damage if the health is greater than 0.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/F28WP-Dubai-Group-6/LunarLander/issues/56, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AOKF3KZNYGRFDPEACVAQMBDSOKSTNANCNFSM4TLLZZEQ
.


Not loading settings/prefs.ttl

See https://gitter.im/solid/solidcommunity.net?at=5fb41decbf955735eb8672aa

As the GET comes back with a 401 unauthenticated and nothing more is done about it does this suggest this is a problem in solid-auth-client?

Ah, but I tried to log in to https://michielbdejong.solidcommunity.net/public/ using my https://michielbdejong.solidweb.org/profile/card#me identity, and could not reproduce this bug.
Also from https://gitter.im/solid/solidcommunity.net?at=5fb6583dbf955735eb8be3cf it seems that timbl.com was using an outdated custom mashlib, so that was probably causing that.
See also https://gitter.im/solid/solidos?at=5fb65d132a354407153544bd
Closing this now, @timbl please reopen if the issue reappears.
Thanks!


How fast if the yolo face detection with pre-trained model?

In FPS, thanks for your work.

I measured it on a GTX1070, and the CNN forward pass takes ~230ms for a small (416x416 I think?) image.  So about 4 FPS.  The GPU is being used, but only about 3%.  Not sure what's going on, but it's disappointing.
I've been cleaning up https://github.com/leopd/SFD_pytorch/ and have it running at about 10-15 FPS (depending on how many faces in view) at 640x480.


Version selectors 1.x/1.0.x result in 400 response errors on install

We use bun in various parts of the expo/expo repository, e.g. here. Like the node setup action, we use a version selector with a .x, e.g., node-version: 18.x.
This seemed to work until some days ago when our CI started failing with the following message:

A quick test showed that using the exact version number does seem to work, but 1.x or 1.0.x won't anymore. Is this something that never should have worked, or a bug? 😄

request
response

1.0.x

1.x

1.0.11
✅ - but big image, see below

latest
✅ - but big image, see below

See 1.0.11 response

See latest response

If this shouldn't have worked from the start, consider adding it 😄 The benefit of bun-version: 1.x over bun-version: 1 is that YAML will cast the value as a string instead of a number.

This is an issue with bun's api, sadly, I can't do anything with it. Electorid must solve it.

I'd figure as much 😄 Thanks for pulling in the right person to solve it.

Looks like this is already fixed.

Looks like this is already fixed.

It isn't. It's giving a different error now. When I try 1.x, I get this 404 error:
Run oven-sh/setup-bun@v1
  with:
    bun-version: 1.x
    no-cache: false
Downloading a new version of Bun: https://bun.sh/download/1.x/linux/x64?avx2=true&profile=false
Error: Error: Unexpected HTTP response: 404

I guess we should re-open this issue. And maybe link it to an issue on bun side?

Looks like this is already fixed.

It isn't. It's giving a different error now. When I try 1.x, I get this 404 error:
Run oven-sh/setup-bun@v1
  with:
    bun-version: 1.x
    no-cache: false
Downloading a new version of Bun: https://bun.sh/download/1.x/linux/x64?avx2=true&profile=false
Error: Error: Unexpected HTTP response: 404

I guess we should re-open this issue. And maybe link it to an issue on bun side?

I tried it and it works. Maybe you can try again? :D

Also failing for "1.x"

Also failing for "1.x"

can you show the details (click on the first line)?

Something wrong is with bun's download api again. https://github.com/oven-sh/setup-bun/actions/runs/9020175817

The issue seems triggered each time a bun new version is in the release pipeline: new version seems to be announced to the download system before the pipeline has finished. And failback to previous matching latest version does not seem to work.

The issue seems triggered each time a bun new version is in the release pipeline: new version seems to be announced to the download system before the pipeline has finished and binaries are available. And fallback to previous matching latest version does not seem to work.

The error pattern seems more related to an call to an API that is rate limited if the version contains some kind of wildcard.  It seems to involve a call to a rate limited API get a list of the available bun versions which is failing.

The issue seems triggered each time a bun new version is in the release pipeline: new version seems to be announced to the download system before the pipeline has finished and binaries are available. And fallback to previous matching latest version does not seem to work.

The error pattern seems more related to a call to an API that is rate limited if the version contains some kind of wildcard. It seems to involve a call to a rate limited API get a list of the available bun versions which is failing.

I'm considering implementing wildcard resolution into the action itself instead of using API for it. It would resolve all the issues we're currently facing.

I'm considering implementing wildcard resolution into the action itself instead of using API for it. It would resolve all the issues we're currently facing.

With a static file containing all the shipped bun versions like https://nodejs.org/download/release/index.json, it will allow tools like setup-bun to get it, cache it and refresh it only if needed. Adding its generation to the bun release process should not be too hard. Adding a way to get its content hash will help tools a knowing if a refresh is needed.
~ ᐅ

Just ran into this issue on a private repository while using the 1.x selector. I went with Cedric's fix and changed it into latest.
As far as I'm aware, this shouldn't be a hard thing to fix, so let's hope for the best for now I guess.

Pull request https://github.com/oven-sh/setup-bun/pull/93 should resolve all this issues. You can try the development version of setup-bun by using oven-sh/setup-bun@feat/implement-wildcard-resolution-into-the-action (i hope that reference works)

Not only 1.x, 1 will fail also


show WpfPlot in Toolbox

try to get WpfPlot to show in the WPF toolbox, ideally without requiring a xmlns definition #151

accomplished by e3e7dd83dd7df61bd1917115517b88bfae1aa1db


fix clippy error

  self.dir.take().unwrap().into_path() ->   self.dir.take().unwrap()

Unless I am mistaken, this will result in DO_NOT_ERASE_TESTS failing to have the desired effect of retaining the intermediate test content.  cf. https://docs.rs/tempfile/latest/tempfile/struct.TempDir.html#method.into_path
More usefully I think the line should just be prefixed with let _ =


Fix selection not being reset on escape send

This is probably a bit controversial change, however I don't see much difference between Action::Esc and arbitrary user input for selection clearing.
What do you think @chrisduerr, @nixpulvis?
Fixes: #2925

I like the idea behind this. Nice UX improvement IMO.


b'no such manifest

docker manifest inspect ghcr.io/plhw/lab-docker/php@sha256:b542bffe4c15244b7e073d711ac91b4cdb71208e2d6bbb8846e1dd576cfa3f51
Traceback (most recent call last):
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/clean_ghcr.py", line 231, in <module>
    delete_pkgs(
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/clean_ghcr.py", line 131, in delete_pkgs
    deps_pkgs = get_deps_pkgs(owner, tagged_pkgs)
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/clean_ghcr.py", line 95, in get_deps_pkgs
    ids.extend(get_image_deps(image))
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/clean_ghcr.py", line 100, in get_image_deps
    manifest_txt = get_manifest(image)
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/clean_ghcr.py", line 110, in get_manifest
    raise Exception(res.stderr)
Exception: b'no such manifest: ghcr.io/plhw/lab-docker/php@sha256:b542bffe4c15244b7e073d711ac91b4cdb71208e2d6bbb8846e1dd5[76](https://github.com/plhw/lab-docker/actions/runs/4572531190/jobs/8071994976#step:3:76)cfa3f51\n'
Error: Process completed with exit code 1.

and
docker manifest inspect ghcr.io/plhw/lab-docker/php@sha256:b542bffe4c15244b7e073d711ac91b4cdb71208e2d6bbb8846e1dd576cfa3f51
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/clean_ghcr.py", line 231, in <module>
    delete_pkgs(
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/clean_ghcr.py", line 131, in delete_pkgs
    deps_pkgs = get_deps_pkgs(owner, tagged_pkgs)
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/clean_ghcr.py", line 95, in get_deps_pkgs
    ids.extend(get_image_deps(image))
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/clean_ghcr.py", line 100, in get_image_deps
    manifest_txt = get_manifest(image)
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/v2/clean_ghcr.py", line 110, in get_manifest
    raise Exception(res.stderr)
Exception: b'manifest unknown\n'

      - name: "Purge Untagged Packages"
        uses: Chizkiyahu/delete-untagged-ghcr-action@v2
        with:
          token: ${{ secrets.PAT_TOKEN }}
          repository_owner: ${{ github.repository_owner }}
          untagged_only: true
          owner_type: org # or user
          except_untagged_multiplatform: true

Looking at my packages, which are multiplatform, i did notice packages with an unknown/unknown platform in them, which is weird also...
anyway, mayby there is a simple fix... thx!

@basz  can you send me an example of how you create the images?
so I can debug this

I have the following action that I run manually on my M1 laptop with 'act'. Arm is then build locally and amd on the linux box. I have no idea where that unknown/unknown comes from. That seems to be something that was introduced since i fugured this out.
act --actor basz --secret-file=.secrets --container-architecture linux/amd64 --job build-and-push-docker

on:
  workflow_dispatch:
  # schedule:
  #   - cron: "0 0 * * 0,3"
  # push:
  #   branches:
  #     - "main"

name: "Build And Push PHP Docker Images"

jobs:
  build-and-push-docker:
    name: "Build And Push PHP Docker Images"

    runs-on: ${{ matrix.operating-system }}

    strategy:
      fail-fast: false
      matrix:
        php-version:
          - "8.1"
          - "8.2"
        php-target:
          - "cli"
          - "fpm"
        operating-system:
          - "ubuntu-latest"

    steps:
      - name: "Checkout"
        uses: actions/checkout@v3

      # - name: Set up QEMU
      #   uses: docker/setup-qemu-action@v2
      #   platforms: amd64,arm64

      # @see https://github.com/docker/setup-buildx-action#quick-start
      - name: Set up Docker Buildx
        id: buildx
        uses: docker/setup-buildx-action@v2
        with:
          install: false
          driver: docker-container
          config: .github/buildkitd.toml
          # buildkitd-flags: --debug

      - name: "Append AMD buildx"
        uses: baschny/append-buildx-action@v1
        with:
          builder: ${{ steps.buildx.outputs.name }}
          endpoint<EMAIL_ADDRESS>          platform: linux/amd64
          node_name: ${{ steps.buildx.outputs.name }}
          ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}

      - name: Inspect builder
        run: |
          echo "Name:      ${{ steps.buildx.outputs.name }}"
          echo "Endpoint:  ${{ steps.buildx.outputs.endpoint }}"
          echo "Status:    ${{ steps.buildx.outputs.status }}"
          echo "Flags:     ${{ steps.buildx.outputs.flags }}"
          echo "Platforms: ${{ steps.buildx.outputs.platforms }}"

      - name: Login to GitHub Container Registry
        uses: docker/login-action@v2
        with:
          registry: ghcr.io
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}

      # https://blog.driftingruby.com/docker-builds/

      - name: "Build ${{ matrix.php-version }}-${{ matrix.php-target }}"
        working-directory: php
        run: |
          docker buildx build . --cache-from ghcr.io/plhw/lab-docker/php:${{ matrix.php-version }}-${{ matrix.php-target }} \
                                --target php-${{ matrix.php-target }} \
                                --build-arg PHP_VERSION=${{ matrix.php-version }} \
                                --file php-${{ matrix.php-target }} \
                                --platform linux/arm64,linux/amd64 \
                                --push \
                                --tag ghcr.io/plhw/lab-docker/php:${{ matrix.php-version }}-${{ matrix.php-target }}

          if [ "${{ matrix.php-target }}" = "cli" ] ; then \
            docker buildx build . --cache-from ghcr.io/plhw/lab-docker/php:${{ matrix.php-version }}-${{ matrix.php-target }} \
                                  --target composer-${{ matrix.php-target }} \
                                  --build-arg PHP_VERSION=${{ matrix.php-version }} \
                                  --file php-${{ matrix.php-target }} \
                                  --platform linux/arm64,linux/amd64 \
                                  --push \
                                  --tag ghcr.io/plhw/lab-docker/composer:${{ matrix.php-version }} \
          ; fi

          if [ "${{ matrix.php-target }}" = "fpm" ] ; then \
            docker buildx build . --cache-from ghcr.io/plhw/lab-docker/php:${{ matrix.php-version }}-${{ matrix.php-target }} \
                                  --target php-${{ matrix.php-target }}-xdebug \
                                  --build-arg PHP_VERSION=${{ matrix.php-version }} \
                                  --file php-${{ matrix.php-target }} \
                                  --platform linux/arm64,linux/amd64 \
                                  --push \
                                  --tag ghcr.io/plhw/lab-docker/php:${{ matrix.php-version }}-${{ matrix.php-target }}-xdebug \
            && \
            docker buildx build . --cache-from ghcr.io/plhw/lab-docker/php:${{ matrix.php-version }}-${{ matrix.php-target }} \
                                  --target php-${{ matrix.php-target }}-opcache \
                                  --build-arg PHP_VERSION=${{ matrix.php-version }} \
                                  --file php-${{ matrix.php-target }} \
                                  --platform linux/arm64,linux/amd64 \
                                  --push \
                                  --tag ghcr.io/plhw/lab-docker/php:${{ matrix.php-version }}-${{ matrix.php-target }}-opcache \
          ; fi
        env:
          PHP_VERSION: ${{ matrix.php-version }}

@basz this needs a private machine that I don't have to run this
please build a docker a toy image and push it to a new repo with admin access for me
FROM alpine:latest
RUN echo "hi"

so I can debug the GitHub API

@basz
what is the output if you run
1
docker manifest inspect ghcr.io/plhw/lab-docker/php@sha256:b542bffe4c15244b7e073d711ac91b4cdb71208e2d6bbb8846e1dd576cfa3f51

2
docker buildx imagetools inspect ghcr.io/plhw/lab-docker/php@sha256:b542bffe4c15244b7e073d711ac91b4cdb71208e2d6bbb8846e1dd576cfa3f51

Different sha 'cause that has been deleted manually...
docker manifest inspect ghcr.io/plhw/lab-docker/php@sha256:b542bffe4c15244b7e073d711ac91b4cdb71208e2d6bbb8846e1dd576cfa3f51
manifest unknown
docker buildx imagetools inspect ghcr.io/plhw/lab-docker/php@sha256:b542bffe4c15244b7e073d711ac91b4cdb71208e2d6bbb8846e1dd576cfa3f51
Name:      ghcr.io/plhw/lab-docker/php@sha256:b542bffe4c15244b7e073d711ac91b4cdb71208e2d6bbb8846e1dd576cfa3f51
MediaType: application/vnd.docker.distribution.manifest.list.v2+json
Digest:    sha256:b542bffe4c15244b7e073d711ac91b4cdb71208e2d6bbb8846e1dd576cfa3f51

Manifests:
  Name:        ghcr.io/plhw/lab-docker/php@sha256:027dae450e3d4629b3ad99456f9d4dd192010a1ecde4318947502f19b86e0337
  MediaType:   application/vnd.oci.image.manifest.v1+json
  Platform:    linux/arm64

  Name:        ghcr.io/plhw/lab-docker/php@sha256:87fe47ddca82df61ceaba096c27945d62c5c5eb793f340b170e4812661c68822
  MediaType:   application/vnd.oci.image.manifest.v1+json
  Platform:    unknown/unknown
  Annotations:
    vnd.docker.reference.type:   attestation-manifest
    vnd.docker.reference.digest: sha256:027dae450e3d4629b3ad99456f9d4dd192010a1ecde4318947502f19b86e0337

  Name:        ghcr.io/plhw/lab-docker/php@sha256:cb755e7435191881da12401abf94cf7b2a3ed48d5a146f11341669c51b55bf41
  MediaType:   application/vnd.oci.image.manifest.v1+json
  Platform:    linux/amd64

  Name:        ghcr.io/plhw/lab-docker/php@sha256:8c467d0740c61a676bb45abaaeb59604d04c926747267885b92d581c786d75f2
  MediaType:   application/vnd.oci.image.manifest.v1+json
  Platform:    unknown/unknown
  Annotations:
    vnd.docker.reference.digest: sha256:cb755e7435191881da12401abf94cf7b2a3ed48d5a146f11341669c51b55bf41
    vnd.docker.reference.type:   attestation-manifest

Different sha 'cause that has been deleted manually...
docker manifest inspect ghcr.io/plhw/lab-docker/php@sha256:b542bffe4c15244b7e073d711ac91b4cdb71208e2d6bbb8846e1dd576cfa3f51
manifest unknown
docker buildx imagetools inspect ghcr.io/plhw/lab-docker/php@sha256:b542bffe4c15244b7e073d711ac91b4cdb71208e2d6bbb8846e1dd576cfa3f51
Name:      ghcr.io/plhw/lab-docker/php@sha256:b542bffe4c15244b7e073d711ac91b4cdb71208e2d6bbb8846e1dd576cfa3f51
MediaType: application/vnd.docker.distribution.manifest.list.v2+json
Digest:    sha256:b542bffe4c15244b7e073d711ac91b4cdb71208e2d6bbb8846e1dd576cfa3f51

Manifests:
  Name:        ghcr.io/plhw/lab-docker/php@sha256:027dae450e3d4629b3ad99456f9d4dd192010a1ecde4318947502f19b86e0337
  MediaType:   application/vnd.oci.image.manifest.v1+json
  Platform:    linux/arm64

  Name:        ghcr.io/plhw/lab-docker/php@sha256:87fe47ddca82df61ceaba096c27945d62c5c5eb793f340b170e4812661c68822
  MediaType:   application/vnd.oci.image.manifest.v1+json
  Platform:    unknown/unknown
  Annotations:
    vnd.docker.reference.type:   attestation-manifest
    vnd.docker.reference.digest: sha256:027dae450e3d4629b3ad99456f9d4dd192010a1ecde4318947502f19b86e0337

  Name:        ghcr.io/plhw/lab-docker/php@sha256:cb755e7435191881da12401abf94cf7b2a3ed48d5a146f11341669c51b55bf41
  MediaType:   application/vnd.oci.image.manifest.v1+json
  Platform:    linux/amd64

  Name:        ghcr.io/plhw/lab-docker/php@sha256:8c467d0740c61a676bb45abaaeb59604d04c926747267885b92d581c786d75f2
  MediaType:   application/vnd.oci.image.manifest.v1+json
  Platform:    unknown/unknown
  Annotations:
    vnd.docker.reference.digest: sha256:cb755e7435191881da12401abf94cf7b2a3ed48d5a146f11341669c51b55bf41
    vnd.docker.reference.type:   attestation-manifest

so it look like that for some reason docker buildx imagetools inspect  works better than docker manifest inspect
so we needs to update in https://github.com/Chizkiyahu/delete-untagged-ghcr-action/blob/1e4bcb5c2b8399efcc1b6e68f229bb83f40a601e/clean_ghcr.py#L106
I will update the code

repo created and ran build task as above...
I used these two dockerfiles. I think you accept my invite first before i can grant you access to the packages pages...
FROM alpine:latest as php-cli
LABEL org.opencontainers.image.source=https://github.com/bushbaby/delete-action-issue

RUN echo "hi"

FROM php-cli as php-cli-blackfire
FROM php-cli as php-cli-opcache
FROM php-cli as php-cli-xdebug
FROM php-cli as composer-cli
FROM php-cli as composer-cli-1x

FROM alpine:latest as php-fpm
LABEL org.opencontainers.image.source=https://github.com/bushbaby/delete-action-issue

RUN echo "hi"

FROM php-fpm as php-fpm-blackfire
FROM php-fpm as php-fpm-opcache
FROM php-fpm as php-fpm-xdebug
FROM php-fpm as composer-fpm
FROM php-fpm as composer-fpm-1x

@basz
i created branch buildx_inspect
please check that is working
and than I will create an new version

ah.
Run Chizkiyahu/delete-untagged-ghcr-action@buildx_inspect
Run actions/setup-python@v4
Installed versions
Run pip install -r /home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/buildx_inspect/requirements.txt
Collecting requests
  Downloading requests-2.2[8](https://github.com/plhw/lab-docker/actions/runs/4588453243/jobs/8102675332#step:3:9).2-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 kB 1.5 MB/s eta 0:00:00
Collecting charset-normalizer<4,>=2
  Downloading charset_normalizer-3.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux20[14](https://github.com/plhw/lab-docker/actions/runs/4588453243/jobs/8102675332#step:3:16)_x86_64.whl (199 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.2/199.2 kB 9.0 MB/s eta 0:00:00
Collecting idna<4,>=2.5
  Downloading idna-3.4-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 11.7 MB/s eta 0:00:00
Collecting urllib3<1.27,>=1.21.1
  Downloading urllib3-1.[26](https://github.com/plhw/lab-docker/actions/runs/4588453243/jobs/8102675332#step:3:30).15-py2.py3-none-any.whl (140 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.9/140.9 kB 23.1 MB/s eta 0:00:00
Collecting certifi>=2017.4.17
  Downloading certifi-2022.12.7-py3-none-any.whl (155 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.3/155.3 kB 31.4 MB/s eta 0:00:00
Installing collected packages: urllib3, idna, charset-normalizer, certifi, requests
Successfully installed certifi-2022.12.7 charset-normalizer-3.1.0 idna-3.4 requests-2.[28](https://github.com/plhw/lab-docker/actions/runs/4588453243/jobs/8102675332#step:3:32).2 urllib3-1.26.15
Run args="--token *** "
args: --token ***  --repository_owner plhw  --untagged_only true  --except_untagged_multiplatform true  --owner_type org
Traceback (most recent call last):
docker buildx imagetools inspect ghcr.io/plhw/lab-docker/php@sha256:fa62eca220c509c6bbcd8085e45a46534a5b9387476dd6c53ff5fb84996dc5e7 --format "{{json .Manifest}}"
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/buildx_inspect/clean_ghcr.py", line 231, in <module>
    delete_pkgs(
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/buildx_inspect/clean_ghcr.py", line 131, in delete_pkgs
    deps_pkgs = get_deps_pkgs(owner, tagged_pkgs)
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/buildx_inspect/clean_ghcr.py", line 95, in get_deps_pkgs
    ids.extend(get_image_deps(image))
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/buildx_inspect/clean_ghcr.py", line 100, in get_image_deps
    manifest_txt = get_manifest(image)
  File "/home/runner/work/_actions/Chizkiyahu/delete-untagged-ghcr-action/buildx_inspect/clean_ghcr.py", line 110, in get_manifest
    raise Exception(res.stderr)
Exception: b'ERROR: failed to copy: httpReadSeeker: failed open: content at https://ghcr.io/v2/plhw/lab-docker/php/manifests/sha256:b2189c5d99afcf85b7a2209455837017dfa6a178de82[29](https://github.com/plhw/lab-docker/actions/runs/4588453243/jobs/8102675332#step:3:33)260[33](https://github.com/plhw/lab-docker/actions/runs/4588453243/jobs/8102675332#step:3:37)78caecf3fbc[42](https://github.com/plhw/lab-docker/actions/runs/4588453243/jobs/8102675332#step:3:46) not found: not found\n'
Error: Process completed with exit code 1.

the repo "https://github.com/bushbaby/delete-action-issue"
is empty
did you push something to the repo?
did connect the docker image to the repo?

repo online

plus failing job : https://github.com/bushbaby/delete-action-issue/actions/runs/4588802273/jobs/8103267528

I need at least read access to the docker images container
did you connect that package to the repo?
I need access to the docker image

or you can add me in Package settings -> Manage access

try now

try now

still not working
get to https://api.github.com/orgs/bushbaby/packages?package_type=container
return 200 with an empty list
when I using my token

now?

the error for me starts when I try to run pull
docker pull ghcr.io/bushbaby/delete-action-issue/php:8.1-fpm-opcache
did pull working for you on your mac?

uhm. that's weird.
docker pull ghcr.io/bushbaby/delete-action-issue/php:8.1-cli pulls ok...
no idea what that could be

On you Mac is same error ?
If yes
The problem is probably something with build or push

some pull ok some do not
maybe one the cause is this additional job... running next to yours...
https://github.com/bushbaby/delete-action-issue/actions/runs/4588802273/jobs/8103717098
Total versions deleted till now: 12

reason for using two actions is that I what untagged packages deleted. But in addition want tagged packages deleted (with some constraints) which is something your action is not capable of i remember correctly...

for debug
delete all manual for Github gui
and than only build and try to run pull
and run only delete-untagged-ghcr-action action

another option to debug
is delete all
and then trying to build with QEMU instead of "append-buildx-action"
or disable AMD for test

test 1.
i deleted the php packages and rebuild using the actions. 8 images appeared.
I am then able to pull every image...
I then ran the delete-untagged-ghcr-action action which then suprisinlgy delete a bunch of stuff
https://github.com/bushbaby/delete-action-issue/actions/runs/4589441325/jobs/8104330113#step:3:80

you want me to do the same with only arm?

so probably the bug start because both action run in the same time
try to run my action
and after actions/delete-package-versions with needs: purge-untagged-packages
so they don't run at same time

hm, that makes sense.
However on the next run it still run into issues.
I think maybe 'actions/delete-package-versions@v4' also deletes untagged versions that are part of a multiplatform package... It has a flag of delete-only-untagged-versions but not the reverse 'delete-only-tagged-versions'.
I guess that action is simply incompatible for multiplatform containers.
Anyway thanks for working on this. Very much appreciated!

https://github.com/actions/delete-package-versions/issues/90

@basz
Is look like that you can modify the clean_ghcr.py to do what you doing with actions/delete-package-versions@v4 without to match work
you can debug and write on clean_ghcr.py directly


Alignment of Navigation Bar for Mobile View

Alignment of Navigation Bar for Mobile View
Alignment for navigation bar is distorted for mobile view for logged in and logged out view
Steps to Reproduce (if applicable)

Just minimize the screen to mobile size or change device type from developer inspect tools

Expected Behavior
All the icons should be aligned properly
Current Behavior (SS)

@varun-singhh Sir,
I would like to work on this issue.
Could you assign me this issue under GSSoC'23.
Thanks in Advance.
Regards,
Jeyavishnu @vishnu9865

I want to work on this issue

@vishnu9865 this issue was already raised by @SoumyadeepOSD so assigning him.
@SoumyadeepOSD  over to you.


Recommended setting for PYTHONPATH overwrites user's default in 19.8.0

Once the BBP installation completes, the following addition to the user's .bash_profile is recommended:
export PYTHONPATH=/gpfs/alpine/proj-shared/geo112/CyberShake/software/bbp/bbp-19.8.0-python3/bbp/comps
However, this will overwrite any custom PYTHONPATH modifications the user has made.  I suggest changing this to:
export PYTHONPATH=/gpfs/alpine/proj-shared/geo112/CyberShake/software/bbp/bbp-19.8.0-python3/bbp/comps:${PYTHONPATH}

Add BBP's comps directory to users' PYTHONPATH, keeping what is already there. Added to dev branch with commit 09ab4d2


Add websocket support

This moves the REST stuff to its own module (still accessible on top level as before) and adds a AutomoverSession class which takes care of logging in and refreshing the access token whenever needed in the background. But more importantly; it adds support for the websocket API.

Sounds interesting. Where did you get the information about the websocket? Is it documented by husqvarna?
Is the code already working?

It was mentioned here: https://github.com/Thomas55555/husqvarna_automower/issues/97 I hadn't heard about it so I googled it and found some websocket info in the API docs: https://developer.husqvarnagroup.cloud/apis/Automower+Connect+API#/readme
The code seems to do its job, I have used a script similar to the one I pasted in the readme. Feel free to try it. I'm now working on integrating it in home assistant instead of the polling.

So, now websockets are working in home assistant! No more polling :-) I will use it for a couple of days to shake out bugs, then try this PR together with the current husqvarna_automover integration to ensure that this PR is backwards compatible. Then, if you are satisfied we can merge this and I will move on with making a PR for the integration updates.

It was mentioned here: Thomas55555/husqvarna_automower#97 I hadn't heard about it so I googled it and found some websocket info in the API docs: https://developer.husqvarnagroup.cloud/apis/Automower+Connect+API#/readme
The code seems to do its job, I have used a script similar to the one I pasted in the readme. Feel free to try it. I'm now working on integrating it in home assistant instead of the polling.

I'm a little bit low on time, so I wait for your results.
My goal is not to store username and password of the users in home assistant. So we can leave this function
async def login(self, username: str, password: str) in the python module. But for the integration in home assistant, we can pass the access token from entry.data.get(CONF_TOKEN) to the aioautomower module.

Correct, I haven't affected how that is working so it should be fine. The websockets are still updating my mower perfectly, even slightly faster (~500ms) than the native app ;-)

I have run this for a couple of days now, both as a standalone test script just with this repo and also integrated into home assistant. This PR works both with my updated websocket integration and is backwards compatible with the current integration (running that now just for verifying). So I think this is ready to go!


Random mixin crashes after adding MixinExtras

I've recently bundled MixinExtras 0.3.3 in my mod Create: Connected. Since then, I've received multiple crash reports caused by random mixin errors thrown by other mods. I can only assume they are related to MixinExtras because previous versions of C:Connected work fine. Other than the snippet provided in readme, are there other things I need to setup to build and publish mods with MixinExtras?
C:Connected is on Forge 1.18.2/1.19.2/1.20.1
Here's the build script:
https://github.com/hlysine/create_connected/blob/main/build.gradle
Thanks for the help!

0.3.3 causes issues with some setups as now mentioned in its release notes. Please update to 0.3.5 and reopen with logs if the issues continue.


Add a button to clear the current query to the search field in the settings menu

gone in v8
Is commenting here enough or should I open a new issue?

Is it really that important? I feel like hitting Ctrl + S and Delete is much faster than moving the mouse all the way to the right to clear it. I removed it because SG doesn't offer this functionality in the native search boxes, and since I'm copying them now, I wanted to keep it with a similar look.

because SG doesn't offer this functionality

ehhhh, the whole scripts  reasoning is to improve the severely lacking SG functionality ;-)

hitting Ctrl + S and Delete is much faster

Not for my usage  at least

moving the mouse all the way to the right

it can be on the left side instead

really that important

Makes things easier, the whole point of everything ;-)

I asked because adding too many extra features that aren't really that important contributes to the bad performance that the script has, but I'll add a feature for it.


[MM-34390] Add Apps bindings selectors

Summary
This PR introduces a memoized selector for appsEnabled, and a makeAppBindingsSelector to use per location.
Ticket Link
Fixes https://mattermost.atlassian.net/browse/MM-34390

/update-branch


explanation of 1 CSV rule on non-anchor outputs

I was just catching up on this topic. Thanks for the write up. In it there is this paragraph:

This ensures that there are only two outputs that can be used for CPFP: the newly added anchors. One of them can be used by us, the other by the remote participant. This ensures that whatever a malicious participant may do to prevent the commitment transaction from confirming in time, the honest participant always has an opportunity to leverage the CPFP carve-out rule to bump the fee at least once.

Why would an honest participant "not always have an opportunity to leverage CPFP carve-out rule" if there are more than two outputs that don't have a CSV?
It's mentioned in the mailing list https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2018-November/016518.html but it isn't explicitly stated why this is true.

Yes it's to avoid a malicious counterparty using first a HTLC output to reach limit_descendant_size with a chain of broad transactions and then occupying its dedicated carve-out output to fulfill the extra package space permitted by the carve-out rule (EXTRA_DESCENDANT_TX_SIZE_LIMIT) thus preventing a honest party to use its own output.
Merging them is problematic too as it would allow an attacker to reach package limits and thus prevent honest RBFs. As of today, if your package has reach ancestors/descendants limits, we only allow to replace one conflicted transaction part of this package due to DoS concerns. By chaining first, an attacker would block your capacity to RBF.

Hmm. Ok so we have 1 tx with 3 outputs (commitment, and anchors). If commitment was not CSV'd then an attacker could create a transaction chain that spends commitment only but doesn't pay a good fee. Then they also spend the anchor output with a low fee also.
Bitcoin is going to enforce that there can be no more RBF spends from this transaction because 1) limit limit_descendant_size and 2) EXTRA_DESCENDANT_TX_SIZE_LIMIT has been taken up by the anchor output spend.
I think this could be explained better as we CSV all other outputs to make sure that a malicious party does not control more than one non-CSV'd output. That way an honest party with an anchor output will be able to use CPFP.

Yes there is other side-benefit of CSV'ing second-stage transaction, in case of successful pinning you can't spend both commitment/HTLC in same block and thus if an attacker delay your incoming claim for long enough, when commitment confirms you still have a chance to win the HTLC race.

Exactly like @ariard said ;)
I'll modify this paragraph to explain this more thoroughly, thanks for the feedback, this is indeed one of the many subtleties!


read_gtf function works slowly

I aimed to load a GTF file that I downloaded from GENCODE  and I noticed genomicranges.read_gtf works very slowly! Personally, I gave up and switched to biobear (developed by @tshauck). I thought you might like to use the magic of "Rust as its backend". I'm big fan of BiocPy but so far the R alternatives are still faster. Any thoughts?

Thank you for raising this. I haven't spent time writing parsers, exactly to take advantage of existing IO libraries like biobear.
A simple solution is to add a from_polars interface. @tshauck, I would love to collaborate and would be really nice to add a to_genomicranges() method in biobear. Would that be of interest  for you or should we minimize the deps and keep them separate?

Thanks for raising this @abearab! ... @jkanche that would be of interest to me. I don't mind managing the additional optional dependency (technically polars is optional for biobear). I can have a look and follow up after I see what it'd take.

Thanks for raising this @abearab! ... @jkanche that would be of interest to me. I don't mind managing the additional optional dependency (technically polars is optional for biobear). I can have a look and follow up after I see what it'd take.

Of course! I'm looking forward to these updates and thank you both for quick responses!

Here are some example codes I used recently, maybe that helps:
# Path to the GTF file
GTF = '~/genomes/hg38/gencode.v46/gencode.v46.annotation.gtf'

session = bb.new_session()

gtf_df = session.read_gtf_file(GTF).to_polars()

# Filter for transcripts and create tx2gene DataFrame
tx2gene = gtf_df.filter(
    pl.col('type') == 'transcript'
).with_columns([
    pl.col('attributes').map_elements(
        lambda x: extract_attribute(x, 'transcript_id'), return_dtype=pl.Utf8).alias('transcript_id'),
    pl.col('attributes').map_elements(
        lambda x: extract_attribute(x, 'gene_id'), return_dtype=pl.Utf8).alias('gene_id')
]).select(['transcript_id','gene_id']).to_pandas()

# Filter for genes and create gene2name DataFrame
gene2name = gtf_df.filter(
    pl.col('type') == 'gene'
).with_columns([
    pl.col('attributes').map_elements(
        lambda x: extract_attribute(x, 'gene_id'), return_dtype=pl.Utf8).alias('gene_id'),
    pl.col('attributes').map_elements(
        lambda x: extract_attribute(x, 'gene_name'), return_dtype=pl.Utf8).alias('gene_name')
]).select(['gene_id','gene_name']).to_pandas()

@abearab and @tshauck:
Thank you for the issues and the connection with biobear. I added a from_polars class method to initialize GenomicRanges from a polars DataFrame. Example:
from genomicranges import GenomicRanges
import polars as pl
from random import random

df = pl.DataFrame(
    {
        "seqnames": ["chr1", "chr2", "chr1", "chr3", "chr2"],
        "starts": [101, 102, 103, 104, 109],
        "ends": [112, 103, 128, 134, 111],
        "strand": ["*", "-", "*", "+", "-"],
        "score": range(0, 5),
        "GC": [random() for _ in range(5)],
    }
)

gr = GenomicRanges.from_polars(df)
print(gr)

There's a couple of different ways of initializing a GRanges (https://biocpy.github.io/GenomicRanges/tutorial.html#construct-a-genomicranges-object) object, Let me know if you run into any issues. In the mean time i will be looking into integrating with biobear's parsers.

Very cool, not to be lazy, but I wonder if I need to add something to BioBear? It looks like I can do:
from genomicranges import GenomicRanges
import biobear as bb

session = bb.new_session()

df = session.read_gtf_file("python/tests/data/test.gtf").to_polars()
df = df.rename({"seqname": "seqnames", "start": "starts", "end": "ends"})

gg = GenomicRanges.from_polars(dd)

# do stuff w/ a genomic ranges
print(len(gg), len(df))
77 77

which is somewhat annoying due to the renames, but seems to retain some flexibility for more general manipulation like filtering. If I'm not thinking of a good use case happy to add it, but I can at least at some an example to the docs of the integration.

I agree, may be an example in the docs would help new users to jump between these representations.

Update the docs here: https://www.wheretrue.dev/docs/exon/biobear/genomicranges-integration

awesome! that looks great.
likewise, I've also added the snippet to the README this morning - https://github.com/BiocPy/GenomicRanges?tab=readme-ov-file#from-biobear.
Hope this helps!


Model size with averaging checkpoints and fp16

Does average_checkpoints support fp16?
I have a model trained with standard fp precision. The size of each model checkpoint including the averaged checkpoint is 454 MiB. When I train with fp16, I am able to reduce the size for each model checkpoint to 378 MiB. However, the averaged checkpoint model increases back to the original 454 MiB.
In both tests, I average the last 10 checkpoints generated,

I think it is because the averaging is performed on CPU, which is not compatible with fp16 and requires a conversion to float:
lambda s, _: torch.serialization.default_restore_location(s, 'cpu')
...
           if isinstance(p, torch.HalfTensor):                 p = p.float()
I solved the issue performing the averaging on GPU, replacing 'cpu' by 'cuda':
lambda s, _: torch.serialization.default_restore_location(s, 'cuda')

Yes @patrik-lambert is correct in his explanation.


Feat: Add fleet plugin submariner

What type of PR is this?

/kind api-change
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #657

/kind api-change
/kind feature

Will defer to @LiZhenCheng9527


Initialize throws error on iOS 9

First of all, thanks for this really helpful library. I am facing an issue on devices running iOS 9.3.3. After checking the XCode-logs I found that the follwoing lines are causing an exeption:
RCTAppleHealthKit+TypesAndPermissions.m:
52: @"MindfulSession" : [HKObjectType categoryTypeForIdentifier:HKCategoryTypeIdentifierMindfulSession]
...
119: @"MindfulSession" : [HKObjectType categoryTypeForIdentifier:HKCategoryTypeIdentifierMindfulSession],

After commenting out those lines, the initialization works fine again for me. Could it be that MindfulSessions are not supported in iOS 9?

Hey @c-goettert checkout the new 0.7.2v release. This should no longer be an issue
Thanks,

Seems to work now, thanks.


request for license

I hereby kindly ask the maintainer to add a license for this nice piece of code.
Thank you.

Hi sorry for the late reply.
License file hereby added.


test for viz with exception in rewrite rule [pr]

TestVIz.test_track_rewrites_with_exception -> exception in the fxn decorated with @track_rewrites
TestViz.test_track_rewrites_with_exception_alt -> exception in the rewrite rule rhs
both viz up to the point of exception:

This was for demo that VIZ tracks graphs up to exceptions as long as there is at least one call to graph_rewrite.