llvm 15, 16: add zstd support

Description of changes
Since llvm 16 support using zstd as its compression method, we should also support that.

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] 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.11 Release Notes (or backporting 23.05 Release notes)

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

[ ] Fits CONTRIBUTING.md.

(for anyone following along, this is another attempt at #238266)

Thanks for continuing to work on this; a few more things:
* [x]  can you change your commit to start with `llvm_16` instead of `llvm 16`? ofborg picks up the former and it's convention

* [ ]  as [mentioned in #238266 LLVM 16+](https://github.com/NixOS/nixpkgs/pull/238266#pullrequestreview-1484846591) has a [`LLVM_USE_STATIC_ZSTD` option](https://github.com/llvm/llvm-project/commit/fc1da043f4f9198303abd6f643cf23439115ce73); given the direction [bzip2, zstd: Add `enableStatic` option #237563](https://github.com/NixOS/nixpkgs/pull/237563) is headed (i.e. potentially having static/dynamic library outputs present with `isStatic = false`/`isStatic = true` respectively IIUC) I think it'd be good to add something like this to `cmakeFlags`:
  ```nix
  ++ lib.optional enableZstd "-DLLVM_USE_STATIC_ZSTD=${toString stdenv.hostPlatform.isStatic}"
  ```

* [ ]  as mentioned, now that we're targeting `staging` anyways we can apply these changes (minus the `LLVM_USE_STATIC_ZSTD` bit) to `llvmPackages_15` in this PR

Is it necessary to mention this change in release note or something like that?

Thanks for continuing to work on this; a few more things:

[x]  can you change your commit to start with llvm_16 instead of llvm 16? ofborg picks up the former and it's convention

[x]  as mentioned in #238266 LLVM 16+ has a LLVM_USE_STATIC_ZSTD option; given the direction bzip2, zstd: Add enableStatic option #237563 is headed (i.e. potentially having static/dynamic library outputs present with isStatic = false/isStatic = true respectively IIUC) I think it'd be good to add something like this to cmakeFlags:
nix     ++ lib.optional enableZstd "-DLLVM_USE_STATIC_ZSTD=${toString stdenv.hostPlatform.isStatic}"

[x]  as mentioned, now that we're targeting staging anyways we can apply these changes (minus the LLVM_USE_STATIC_ZSTD bit) to llvmPackages_15 in this PR

Besides, I set CmakeFlags LLVM_PREFER_STATIC_ZSTD in llvm 15 due to this

Is it necessary to mention this change in release note or something like that?

I think that's not necessary; this isn't a breaking change and enableZstd is enabled by default (users won't have to do anything to get the feature).

Besides, I set CmakeFlags LLVM_PREFER_STATIC_ZSTD in llvm 15 due to this

Ah, I traced LLVM_PREFER_STATIC_ZSTD to https://github.com/llvm/llvm-project/commit/c0b4f248df79f184adba856f13a950a53c881f3f and assumed it didn't make it into LLVM 15 (it was introduced after 15.x branched) but it turns out that this and the commit changing it to LLVM_USE_STATIC_ZSTD were backported to LLVM 15.
So we can just mirror the change you made to llvmPackages_16 exactly.

given the direction #237563 is headed

FYI, moved to #243161

ping @rrbutani
Can this be merged now?
Or need more improvements?

Hey @SaltyKitKat, I'm sorry this was dropped.
Now that #258614 is merged can you please update this PR to apply the same changes to llvmPackages_17 and llvmPackages_git?
I'll try to rebase and test that these changes are still good when applied to up-to-date staging today evening; if everything builds we can merge this.

I'm locking and closing this pull request, because through the rebase you inadvertently requested many maintainers for review, which subscribed them to update notifications, resulting in unnecessary spam inside everyone's inbox. While we can remove their review requests, we sadly cannot unsubscribe anyone.
Please create a new pull request and for the next time remember to set your PR to draft status before rebasing. In draft status, you can preview the list of maintainers that are about to be requested for review, which allows you to sidestep this issue.


LILYGO T-A7670E No LED when powered by 18650 battery

My board lights up the blue led lights when I power the board with USB and solar power. If I power the board with 18650 4,2v battery the LED's wont turn on. I've checked and see that the board delivers 3,3v on both sides of the solder pads. Is it normal that the LED should not light up when powering by Battery?

The blue light will only light up when charging, not when powered by battery.


yarn packages not installed automatically

First of all, thanks for the repo. Take all my stars.
I just installed with CocInstall coc-solidity and had to manually go to my coc installation folder to install the node dependencies. Simply cd /Users/hex/.config/coc/extensions/node_modules/coc-solidity && yarn. Maybe there is a way to do this automatically when the package is installed from CoC?

I will fix it in next release. Now I am rewriting a solidity lsp to provide more features, such as hover documentation.

New version released with new language server. And this issue should be resolved.


zerocopy support

I'm already using Google's zerocopy in my crate and want to start using object. Would a PR adding support for zerocopy bee accepted? Theoretically, the whole pod module could also be replaced by it.

The zerocopy crate can't be used as dependency of libstd as it doesn't have the rustc-dep-of-std hack. Libstd depends on object through the backtrace crate. As any zerocopy integration has to be optional.

Some information on the rustc-dep-of-std hack, since I didn't know about it before: https://github.com/rust-lang/wg-cargo-std-aware/issues/51.

The pod module is small, does exactly what this crate needs, and can't be replaced (as bjorn3 says).
Can you give an example of what adding zerocopy support would enable you to do that you can't easily do without it? Can you give a reason for choosing zerocopy instead of another option (bytemuck is the most common alternative)?
I have looked at both zerocopy and bytemuck in the past and my impression was they don't gain us anything. In particular, we can't use their derive support because they don't support type parameters (needed for endianness).

we can't use their derive support because they don't support type parameters (needed for endianness).

 :(

Can you give an example of what adding zerocopy support would enable you to do that you can't easily do without it?

Using the crate's structs in my own zero-copy-derived structs, with safety guaranteed by zerocopy.

Can you give a reason for choosing zerocopy instead of another option (bytemuck is the most common alternative)?

I wasn't aware of bytemuck, interesting. It doesn't seem to have endianness support though/

Using the crate's structs in my own zero-copy-derived structs, with safety guaranteed by zerocopy.

Ok, but the safety can't be guaranteed because the derive doesn't support this crate's structs (unless it has changed since I last looked). So is there still any value to this?

I wasn't aware of bytemuck, interesting. It doesn't seem to have endianness support though

We would still need to define our own endianness types, whether we use zerocopy or bytemuck, since zerocopy doesn't have an equivalent of Endianness.

Ok, but the safety can't be guaranteed because the derive doesn't support this crate's structs (unless it has changed since I last looked). So is there still any value to this?

The safety can be guaranteed for my own crate when I use zerocopy, since I don't use generic endianness there.

We would still need to define our own endianness types, whether we use zerocopy or bytemuck, since zerocopy doesn't have an equivalent of Endianness.

Ah, the Endianness type is some kind of run-time dynamic endianness?

The safety can be guaranteed for my own crate when I use zerocopy, since I don't use generic endianness there.

So you're not using this crate's structs in your own zero-copy-derived structs then. To be clear, it's going to be a high bar to add support here. You'll need to give a code example of what it allows you to do. Simply avoiding importing another trait in your crate isn't enough.

Ah, the Endianness type is some kind of run-time dynamic endianness?

Yes.

The safety can be guaranteed for my own crate when I use zerocopy, since I don't use generic endianness there.

So you're not using this crate's structs in your own zero-copy-derived structs then.

Yes, I currently can't derive zerocopy's traits because this crate doesn't implement them on its types. This is basically the reason for this feature request.

You'll need to give a code example of what it allows you to do. Simply avoiding importing another trait in your crate isn't enough.

Makes sense. Since I don't have a finished crate, I'll close this feature request. I'll come back if I ever finish this project.

Also object can't make use of the zerocopy derive macros anyway as libstd can't (directly or indirectly) depend on any proc macro without breaking cross compilation support.


How to deploy the .zip package to Lambda?

Thank you for creating a process that automatically generates a complete package ready to be uploaded to S3. I am curious about the next steps. Should I add this package as a layer when creating a new function on Lambda or is there another recommended method?

@wtznc you can import the generated zip from local machine using AWS Console. See "Creating and updating functions with .zip files using the console" from aws docs Creating and updating Python Lambda functions using .zip files,

Thanks for getting back to me, problem solved :)


CALL_METHOD_NOT_IMPLEMENTED with devel version (but not standalone)

On a 731 system with the current dev version (https://github.com/abapGit/abapGit/commit/d856b4ed91c5c190e8ed6e1a47ce98a2ded05193), browsing a repository (tried abapGit and abap2xlsx) leads to a dump with CALL_METHOD_NOT_IMPLEMENTED; interesting enough, this does not happen with the standalone version and, according to memory, is a fairly recent issue (I've been using aG often on this system in the last days). Relevant fact: kernel was upgraded just last week (kernel release 722, sup pkg 1200, abap load 1780, cua load 41)

whats the name of the method?

It was tried to call a not-implemented method "ZIF_ABAPGIT_REPO_CHECKSUMS~GET"
in the class "ZCL_ABAPGIT_REPO_CHECKSUMS".

are there any diffs, are you running the latest dev edition?

I have updated the repo before submitting the report, to the version linked above. One thing to try would be downloading the newer standalone and comparing with that one, hold on... nope, even the current standalone has no problems.
In the $abapgit package there are a number of warnings for unsupported pragmas (yellow) but no errors; in abap2xlsx just one warning.

I never had this problem. The repo certainly contains the method implementation:
https://github.com/abapGit/abapGit/blob/main/src/repo/zcl_abapgit_repo_checksums.clas.abap#L176
Changing kernel requires recompile of all ABAP code. This is usually automatic. You could force activation manually or run SGEN

@mbtools I ran the same test on another system where the kernel was not recently updated and had no problems, so it is definitely a code generation issue. I will liaison with Basis colleagues to re-run SGEN at a time when it is convenient and safe to do so. Closing now, thanks.

We ran SGEN but the situation is unchanged: standalone still runs ok, devel version still dumps, on another system (also upgraded) there is no issue. Will update when we find out what's wrong.

delete zcl_abapgit_repo_checksums and zif_abapgit_repo_checksums. then pull the dev version again using the stand-alone prg.

Now I am really puzzled: it still  happens. Even tried removing and reinstalling the standalone version, in addition to the suggestion above.

looks like deserializing the class or interface does not work on 731. bug in AG or SAP?
or
there's an exit in place that changes things
let's use some hardcore tool to compare systems for the class and interface:

zbc_table_browser.zip
tool and output from my system is attached. run it in the 731 and then diff the outputs.

Reopening to match current status of issue and attaching the output from our 731 systems.
First thing I notice is that we don't have entries in SEOREFTODO (for ZCL) and in SEOREFPROT (for ZIF), other differences are harder to read for me.

these two tables are not relevant (a log)
next test:

delete class/interface
recreate manually (se24)

Deleted class ok, deleted interface ok, created interface, got odd (harmless?) XT465 message (Parameter LSM not in version 0462 of tp configuration), created class (3 files), restarted aG devel, successfully browsed own repository, started celebratory dance too soon... when I pulled the new changes and activated, I still got a dump... finished the pull with the standalone version and now the devel version also works.
Thanks, closing.

funny thing, i recently got XT465 too. SAP Note 2346328 - Source-code-based Class Builder (SE24): Display of unexpected message following activation.

Anyhow, another pull of the devel version and the issue is there again, still with ZIF_ABAPGIT_REPO_CHECKSUMS~GET_CHECKSUMS_PER_FILE
However the usual trick of deleting and restoring class and interface apparently doesn't cure it. Oh well....

I fixed XT465 when creating packages (https://github.com/abapGit/abapGit/pull/6141). Otherwise it remains a mystery

I also updated the standalone version today so it should already be good; it's a bit annoying that I have to update manually but at least it works. What do you say, we leave it closed for now? After all, at the moment I only encountered this issue on one system.

Agree 👍

Direct links to sources, because lazyness!
ZIF_ABAPGIT_REPO_CHECKSUMS)

XML
ABAP

ZCL_ABAPGIT_REPO_CHECKSUMS )

XML
ABAP
Local
Test

Once more, cleaned up, redownloaded sources, verified that dev version was again working correctly.
Let aG redownload the class (because of a spurious formatting issue, suits my purpose anyway) and the dump is back.
Verified that class still has method implementation of zif_abapgit_repo_checksums~get, doubleclicked to navigate... and promptly ended up in the standalone source. Gut feeling is that aG is innocent here, I had a look among the support notes but I am unsure which one, if any, to recommend to Basis colleagues.

Using a system covered by our support contract, after applying the fix for #6234 directly in class zcl_abapgit_convert, I ran the dev version and managed to reproduce the issue but not the workaround: removing and recreating class and interface does not relink where-used correctly, it's even worse / better depending on how you look at it ;)
We'll now try to get SAP involved, will update here as needed.

Different place in the code, same result, same broken navigation.
I have now made a short animated gif with the whole sequence, we'll share it with SAP.

Yet another try, different method, same issue.


docs: add Github Action link

Codecov Report

Merging #351 (379eba9) into main (704f407) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #351   +/-   ##
=======================================
  Coverage   79.48%   79.48%
=======================================
  Files          28       28
  Lines        1867     1867
=======================================
  Hits         1484     1484
  Misses        383      383

Continue to review full report at Codecov.

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

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

v5.9.0
GitHub release

Your semantic-release bot :package::rocket:


Cache route will cause "Route [sudosu.login_as_user] not defined."

Dear author @mrterryh,
As the title mentioned, if I cached the route, it showed "Route [sudosu.login_as_user] not defined."
If I use php artisan route:clear to clear the route cache, it can work functionally.
I search for the related issue in this repository with no result, so I open this issue to look for the answer.
Please give me some hints if I didn't set my environment correctly.

I solved the problem by add route to web.php.
The main reason that I had that error is because I used different middleware.
Route::group([
    'prefix' => 'sudosu',
    'namespace' => 'VIACreative\SudoSu\Controllers',
    'middleware' => ['CHANGE TO CUSTOM MIDDLEWARE']
], function () {
    Route::post('/sudosu/login-as-user', 'SudoSuController@loginAsUser')
        ->name('sudosu.login_as_user');

    Route::post('/sudosu/return', 'SudoSuController@return')
        ->name('sudosu.return');

    Route::post('/sudosu/logout', 'SudoSuController@logout')
        ->name('sudosu.logout');
});


New: Add ENC exchange set

This PR implements the Add ENC exchange set sample. Please read its design at /designs/AddENCExchangeSet
The original issue is at /common-samples/issues/483
Branch: https://github.com/Esri/arcgis-runtime-samples-ios/tree/Ting/New-AddENCExchangeSet-vNext/arcgis-ios-sdk-samples/Layers/Add ENC exchange set

Other comments have been addressed except the portal item folder structure problem. Mentioned in our channel and is waiting for feedback.

@saratchandrakarumuri Please take a look at this new sample. Thanks!


rbd-nbd: expand volume support

Describe the feature you'd like to have
Tracker issue to implement the missing bits and qualify volume expansion backed by the rbd-nbd mounter

@Madhu-1 can this be a 3.4.0 item?

we can target but not sure it will make it as we have more priority items on the list for 3.4.0

This is mostly qualification only item, unless there are any surprises, I don't expect we need to make much changes.

This also covers E2E and documentation right?

This also covers E2E and documentation right?

Yes, we can also include e2e if needed but I thought of manually running them locally and moving to qualified initially.


FRONTEND: Adds HIV Diagnoses time series data

Description
Preview Link

Click to demo updates
Motivation and Context

Has this been tested? How?

Screenshots (if appropriate):
Types of changes

Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality or updates content)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
Refactor (code improvement that doesn't affect UI)
Chore (developer productivity fix that doesn't affect the user)

Which of our user persona(s) will this feature primarily benefit and how?

Data Diver: contributes to the body of knowledge surrounding health equity (e.g. analysts, researchers, professors in academic or corporate settings)
Data Interpreter: connects others by translating complex data into something actionable (e.g. think tank or legislative settings)
Informer: helps everyday people understand important current events (e.g. journalists working in storytelling settings)
Persuader: passage of legislation by presenting concise and compelling arguments (e.g. staff members, policy advisors in legislative or nonprofit settings)

This is awesome @eriwarr ! I know you didn't submit for review yet but I had a chance to check on it and wanted to leave these comments so you could get to them ASAP in the morning and so i don't forget.

We need to update the group to color mapping for the time charts; we are showing Two or more races (NH) now, but only have COVID ones defined Two or more races and Unrepresented race (NH) so i think just add a new entry with the HIV one and you can use the same dark red color since those two groups will never be on the same screen
Same, this is the first time chart since covid that will show by age, so we should defined the HIV age group colors; you can basically just try to match them up with the COVID ones there already in a way that looks pretty haha
i fixed a missing hyphen in the node check so the node checks weren't actually running on github, so anyways now your tests are failing on the county level dataset


RSS increases but heapTotal/heapUsed does not.

On taking a heap snapshot using the library, it seems like RSS increases and never comes back down. But heapTotal/heapUsed does not. Is there a native memory leak in the library?

https://github.com/hyj1991/v8-profiler-next/blob/master/src/heap_snapshot.cc#L90

Actually it just calls the serialization function provided by v8.

@hyj1991 are you saying that the serialization is cause for RSS increase?


TEST ISSUE

TEST ISSUE: Testing to see if the auto-labeling is working.

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

ID: 6f8acbbf-c9d4-7041-c1a7-ec9ce8f0981b
Version Independent ID: c98be365-408d-7ee6-cb74-14c44d01b0b8
Content: Server-side ASP.NET Core Blazor additional security scenarios
Content Source: aspnetcore/blazor/security/server/additional-scenarios.md
Product: aspnet-core
Technology: aspnetcore-blazor
GitHub Login: @guardrex
Microsoft Alias: riande

@Rick-Anderson @tdykstra @wadepickett ... Blazor labels aren't being applied. There might be a regression in the labeling system.


The classes extending the sealed class to be inlined inside the sealed class

I red that one of the main use cases for sealed class is to function as enum classes in a way. If that is so does not it make sense for the implementation of polymorphism to be:
sealed Superclass {
data class SubtypeA: Superclass
data class SubtypeB: Superclass
}
This way we can later access the two subtypes via  Superclass.SubtypeA and Superclass.SubtypeB effectivly it starts functioning similar to enum
PS; I noticed that when companion object configuration is set a companion object is not generated in the Polymorphism case. Is this a bug ?

I'm sure there are pros and cons to both approaches, but that is my personal preference is not to nest as I don't like the longer signatures. Either way, I'd be reluctant to revisit the polymoprphic implementations for anything short of a bug, they are brittle and time-consuming to change.
Yes, I would say the lack of companion object is a  bug/oversight when we added it a few weeks ago.


Change string to boolean in functions-bindings-service-bus.md

I'm not certain this is the correct change (as in, I haven't ran it locally) but it looks like the matching C# class is expecting a boolean: https://github.com/Azure/azure-functions-servicebus-extension/blob/cd7528ae4aab8ba90531a90e33e41b4e46cc4801/src/Microsoft.Azure.WebJobs.Extensions.ServiceBus/Config/BatchOptions.cs#L25

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

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

Looks good; we'll merge. Thanks @kendaleiv.


Unable to write description of contact us form

Describe the bug
Unable to type something in the description of the contact us form.
Screenshots

Please assign me this issue under GSSOC'23

Already resolved


Task: Implement CI via automated testing

Minimum requirement:-

[x] Run full Herald API tests for latest iOS release for every new or updated PR, and add as a PR check.

Stretch requirement:-

[ ] Execute for all supported iOS versions, if possible with the limited MacOS build infrastructure we have

Skipping all-platforms test given amount of time a single environment takes. Will consider in a future version for all PRs to master/main branch.


bdd-spring-1557254568 to 0.0.1

Promote bdd-spring-1557254568 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

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


[#155653889] Bump stemcell

What
Bump default stemcell to 3541.9 and make a separate 3468 alias to keep logsearch and graphite on that range. Bump 3468 to latest in the range too.
How to review
Deploy to dev env.
Who can review
Anyone but @camelpunch

I am still reviewing it... sorry for being slow.

I've got an error in api availability test, but most likely unrelated to this test:

  Expected

      <map[*monitor.Task]map[string]int | len:1>: {

          {

              name: "Listing all apps in a space",

              fn: 0x79cca0,

          }: {

              "Failed to connect to Cloud Foundry API: Error getting token: Post https://uaa.hector.dev.cloudpipeline.digital/oauth/token: EOF": 1,

          },

      }

  to be empty

Deploying UAA isn't a ZDD so sometimes we see this.


Measurable: convert capability store to measure store

Not doing this as new measurable store completely replaces the capability features


[PE-D][Tester E] A Candidate That Has Already Been Hired Can Still be Rejected

Problem Description
After a candidate has been hired, there should be functionality implemented to ensure that the candidate cannot be rejected anymore. If the group wants to allow users to fire the employee, there should be another command called fire instead of allowing the user to reject the candidate after hiring/
code to run to reproduce the bug

execute hire n/Alex Yeoh j/software engineer
execute reject n/Alex Yeoh j/software engineer

Actual Output
Software Engineer Alex Yeoh hired

Software Engineer Alex Yeoh's status is changed to being rejected.

Expected Output
The app should print an error saying that Software Engineer Alex Yeoh cannot be rejected anymore since he has already been hired.

Labels: severity.Low type.FunctionalityBug
original: yongkheehou/ped#8

Feature suggestion, unable to change in v1.6


How update field?

If I add delete. That field will be deleted from the database. But how to add it? For specific avatar?
this.props.fields.avatar.updateField({
	uuid: i.uuid.value,
	delete: true
});

How update field?
avatar[]
avatar[].delete
avatar[].uuid

And how remove by id
this.props.fields.avatar.removeField({
	uuid: i.uuid.value
});

Hi, thanks for coming by.
Please use StackOverflow for usage questions. This is the only way to ensure the same question doesn’t get asked many times in a row, and that folks who have the same question in the future will be able to find it. (Github search is pretty much useless.)
Sorry we couldn’t answer your question here. Please feel free to post a link to the StackOverflow question, and I’ll be happy to try to answer it.

@erikras help me pleace. I banned it SO


How to build Cargo from GIT on FreeBSD?

/usr/local/bin/python src/etc/dl-snapshot.py x86_64-unknown-freebsd
Traceback (most recent call last):
  File "src/etc/dl-snapshot.py", line 31, in <module>
    raise Exception("no snapshot for the triple: " + triple)
Exception: no snapshot for the triple: x86_64-unknown-freebsd
gmake: *** [target/snapshot/bin/cargo] Error 1

I hacked that Gist to get it working with a more recent snapshot, and added the ability to bootstrap up to the latest version. See https://csperkins.org/research/misc/2015-01-02-cargo-freebsd.html for details.

When might we be able to build cargo on FreeBSD 10.1 more directly?  I'm new to rust and just want to play with it awhile.  I'm inclined to try reading through the book without a working cargo.  I understand it is at 1.0 alpha so an update and rebuild every couple of days or so is okay but I probably don't have the time for a long rebuild of cargo each time I want to update rust.

Once it's bootstrapped, updates are pretty quick.

Thanks.  So decided to give it a try but v5 and v4 both stop when trying to
build the first stage with gmake.  I don't see where this error message is
even coming from.  Earlier, I was able to get rustc built from git
directly, so I think I have the correct tools in place for the
environment.  Maybe tomorrow this error message will make more sense to
me...
Specify at least 1 interface
/home/frank/src/rust-nightly-2014-12-12/mk/stage0.mk:17: recipe for target
'x86_64-unknown-freebsd/stage0/bin/rustc' failed
On Sat, Jan 10, 2015 at 5:13 PM, Colin Perkins<EMAIL_ADDRESS>wrote:

Once it's bootstrapped, updates are pretty quick.
—
Reply to this email directly or view it on GitHub
https://github.com/rust-lang/cargo/issues/429#issuecomment-69474314.

@csperkins I downloaded your build-cargo-freebsd-v7.sh on my FreeBSD/amd64 10.1-RELEASE-p5 VPS and added a new user which I ran the script as in a screen. As expected, it is going slow and it's not yet finished running.
The VPS does not have a lot of RAM, only 512MB. I have 1024MB swap. It might happen that it will be killed before finishing, we'll see.
Anyway, I was wanting to let you know that there is a little thing I changed in the script. Here is the diff:
--- build-cargo-freebsd-v7.sh.orig	2015-01-29 19:52:54.000000000 +0000
+++ build-cargo-freebsd-v7.sh	2015-01-29 20:19:54.000000000 +0000
@@ -69,7 +69,7 @@

 if [ ! -d $PREFIX/target ]; then
   echo "*** mkdir $PREFIX/target"
-  mkdir $PREFIX/target
+  mkdir -p $PREFIX/target
 fi

 # =================================================================================================

Thanks for the fix.
With only 512MB RAM the initial build is going to be alarmingly slow – last time I tried to bootstrap from scratch it ran overnight on a server with 64 cores and 512GB RAM...

On first attempt, it stopped though I didn't see any message about a process getting killed. I'm rerunning it now, this time doing ./build-cargo-freebsd-v7.sh 2>&1 | tee -a build-cargo-freebsd-v7.log so I'll have a complete log which is easier to read than using page up and page down inside the screen. (I have also reduced the amount of swap from 4G extra to 3G extra for a total of 4G instead of 5G.)

The second attempt ended with an error, unfortunately.
It said cc: error: linker command failed with exit code 1 (use -v to see invocation) and on the line before that, note: /usr/bin/ld: cannot find -lflate. I'm not sure whether this is referring to a rust library or an external library.
Full log in case anybody could take a look: https://gist.githubusercontent.com/erikano/1ccb7ad4eb37e23a7d2c/raw/build-cargo-freebsd-v7.log

I have gotten it to go further. After where it failed, I first did pkg install cmake since that was missing and I hadn't noticed. Then, manually as the user and without removing the failed stuff, I did:
export TARGET=/home/rust/src/cargo-freebsd/target
export LD_LIBRARY_PATH=$TARGET/rust-nightly-2014-12-12/lib
export CARGOLIB=$TARGET/cargo-bootstrap/lib
export RUSTC=$TARGET/rust-nightly-2014-12-12/bin/rustc
cd cargo/bootstrap/libgit2/build/
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/apps/cargo -DBUILD_SHARED_LIBS=ON
cmake --build . --target install

Then attempted to run $RUSTC cargo/bootstrap/cargo/src/bin/cargo.rs -L $HOME/apps/cargo/lib -L $CARGOLIB --out-dir $TARGET/cargo-bootstrap/bin -lflate-4e7c5e5c -lcurl -lssl -lcrypto -lz -lssh2 -lgit2 (notice I've replaced -lflate with -lflate-4e7c5e5c) and found out that libgit2 was missing so I did pkg install libgit2 and ran the rustc command for cargo.rs again.
Then checked to see that file $TARGET/cargo-bootstrap/bin/cargo existed, which it now did so proceeded copying from the script:
mkdir -p $HOME/apps/cargo/bin
install -m 755 $TARGET/cargo-bootstrap/bin/cargo  $HOME/apps/cargo/bin/
echo "0caa5b58fd4aac95d3388bed878797becf544215" > $HOME/apps/cargo/cargo-version.txt

Attempted to run ./apps/cargo/bin/cargo --version but got Shared object "libgit2.so.21" not found, required by "cargo". Ok, export LD_LIBRARY_PATH=$HOME/apps/cargo/lib:$LD_LIBRARY_PATH. Try again ./apps/cargo/bin/cargo --version.
cargo 0.0.1

So far, so good. So now I think the script by @csperkins should be able to continue. I'm going to try. First, I log out and back in just to be sure that the environment variables I had set don't affect the script. I then start a screen and do ./build-cargo-freebsd-v7.sh 2>&1 | tee -a build-cargo-freebsd-v7.cont.log. We'll see how it goes.

I updated the script referred at https://github.com/rust-lang/cargo/issues/429#issuecomment-57814722
https://gist.github.com/hnakamur/4b85c051bfbc518c64df
However rustc panicked while building rust-encoding.
https://gist.github.com/hnakamur/4b85c051bfbc518c64df#comment-1461070
I want to fix this but don't know how. Could someone help me, please?

I got the following errors while running CaptainHayashi's script at https://github.com/rust-lang/cargo/issues/429#issuecomment-68529665
[ 57%] Building C object CMakeFiles/git2.dir/src/openssl_stream.c.o
CMakeFiles/git2.dir/build.make:1710: recipe for target 'CMakeFiles/git2.dir/src/openssl_stream.c.o' failed
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/git2.dir/all' failed
Makefile:117: recipe for target 'all' failed

--- stderr
/home/vagrant/.cargo/registry/src/github.com-1ecc6299db9ec823/libgit2-sys-0.1.3/libgit2/src/openssl_stream.c:100:18: error: variable has incomplete type 'struct in6_addr'
        struct in6_addr addr6;
                        ^
/home/vagrant/.cargo/registry/src/github.com-1ecc6299db9ec823/libgit2-sys-0.1.3/libgit2/src/openssl_stream.c:100:9: note: forward declaration of 'struct in6_addr'
        struct in6_addr addr6;
               ^
/home/vagrant/.cargo/registry/src/github.com-1ecc6299db9ec823/libgit2-sys-0.1.3/libgit2/src/openssl_stream.c:111:18: error: use of undeclared identifier 'AF_INET'
        if (p_inet_pton(AF_INET, host, &addr4)) {
                        ^
/home/vagrant/.cargo/registry/src/github.com-1ecc6299db9ec823/libgit2-sys-0.1.3/libgit2/src/unix/posix.h:31:40: note: expanded from macro 'p_inet_pton'
#define p_inet_pton(a, b, c) inet_pton(a, b, c)
                                       ^
/home/vagrant/.cargo/registry/src/github.com-1ecc6299db9ec823/libgit2-sys-0.1.3/libgit2/src/openssl_stream.c:115:18: error: use of undeclared identifier 'AF_INET6'
                if(p_inet_pton(AF_INET6, host, &addr6)) {
                               ^
/home/vagrant/.cargo/registry/src/github.com-1ecc6299db9ec823/libgit2-sys-0.1.3/libgit2/src/unix/posix.h:31:40: note: expanded from macro 'p_inet_pton'
#define p_inet_pton(a, b, c) inet_pton(a, b, c)

3 errors generated.
gmake[3]: *** [CMakeFiles/git2.dir/src/openssl_stream.c.o] Error 1
gmake[2]: *** [CMakeFiles/git2.dir/all] Error 2
gmake[1]: *** [all] Error 2
task '<main>' panicked at 'assertion failed: cmd.stdout(InheritFd(1)).stderr(InheritFd(2)).status().unwrap().success()', build.rs:80

Makefile:78: recipe for target 'cargo-x86_64-unknown-freebsd' failed
gmake: *** [cargo-x86_64-unknown-freebsd] Error 101
*** Build failed - skip? (y/n)

@hnakamur there's a new script written by @dhuseby which was used to bootstrap Cargo on bitrig which may help on FreeBSD as well!

@alexcrichton Thanks! I will try that.

This is a known bug in libgit2-sys, which is missing some includes for FreeBSD. The simplest fix is to edit the downloaded source, adding:
 #include <sys/socket.h>
 #include <netinet/in.h>

just before the #include <arpa/inet.h> around line 56 of common.h in the libgit2-sys download (looking at the errors, this will be /home/vagrant/.cargo/registry/src/github.com-1ecc6299db9ec823/libgit2-sys-0.1.3/libgit2/src/common.h on your machine).
Colin
On 27 May 2015, at 00:56, Hiroaki Nakamura<EMAIL_ADDRESS>wrote:

I got the following errors while running CaptainHayashi's script at #429 (comment)
[ 57%] Building C object CMakeFiles/git2.dir/src/openssl_stream.c.o
CMakeFiles/git2.dir/build.make:1710: recipe for target 'CMakeFiles/git2.dir/src/openssl_stream.c.o' failed
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/git2.dir/all' failed
Makefile:117: recipe for target 'all' failed
--- stderr
/home/vagrant/.cargo/registry/src/github.com-1ecc6299db9ec823/libgit2-sys-0.1.3/libgit2/src/openssl_stream.c:100:18: error: variable has incomplete type 'struct in6_addr'
struct in6_addr addr6;
^
/home/vagrant/.cargo/registry/src/github.com-1ecc6299db9ec823/libgit2-sys-0.1.3/libgit2/src/openssl_stream.c:100:9: note: forward declaration of 'struct in6_addr'
struct in6_addr addr6;
^
/home/vagrant/.cargo/registry/src/github.com-1ecc6299db9ec823/libgit2-sys-0.1.3/libgit2/src/openssl_stream.c:111:18: error: use of undeclared identifier 'AF_INET'
if (p_inet_pton(AF_INET, host, &addr4)) {
^
/home/vagrant/.cargo/registry/src/github.com-1ecc6299db9ec823/libgit2-sys-0.1.3/libgit2/src/unix/posix.h:31:40: note: expanded from macro 'p_inet_pton'
#define p_inet_pton(a, b, c) inet_pton(a, b, c)
^
/home/vagrant/.cargo/registry/src/github.com-1ecc6299db9ec823/libgit2-sys-0.1.3/libgit2/src/openssl_stream.c:115:18: error: use of undeclared identifier 'AF_INET6'
if(p_inet_pton(AF_INET6, host, &addr6)) {
^
/home/vagrant/.cargo/registry/src/github.com-1ecc6299db9ec823/libgit2-sys-0.1.3/libgit2/src/unix/posix.h:31:40: note: expanded from macro 'p_inet_pton'
#define p_inet_pton(a, b, c) inet_pton(a, b, c)
3 errors generated.
gmake[3]: *** [CMakeFiles/git2.dir/src/openssl_stream.c.o] Error 1
gmake[2]: *** [CMakeFiles/git2.dir/all] Error 2
gmake[1]: *** [all] Error 2
task '' panicked at 'assertion failed: cmd.stdout(InheritFd(1)).stderr(InheritFd(2)).status().unwrap().success()', build.rs:80
Makefile:78: recipe for target 'cargo-x86_64-unknown-freebsd' failed
gmake: *** [cargo-x86_64-unknown-freebsd] Error 101
*** Build failed - skip? (y/n)
—
Reply to this email directly or view it on GitHub.

--
Colin Perkins
https://csperkins.org/

@csperkins Thanks for the info.
I found the it is already fixed in the latest libgit2: Merge pull request #2844 from rakuco/netinet-include-fixes · libgit2/libgit2@65bc22f
So I forked git2-rs and update Cargo.toml to use the latest version of libgit2-sys.
https://github.com/alexcrichton/git2-rs/compare/master...hnakamur:update_libgit2_sys
Also I updated my build script.
Revisions · build-cargo-freebsd.sh
Now I got the following error:
+ rustc deps/openssl-sys/src/lib.rs --crate-type lib --crate-name openssl_sys --out-dir target -L target/
deps/openssl-sys/src/probe.rs:2:5: 2:32 error: unresolved import `std::io::fs::PathExtensions`. Could not find `fs` in `std::io`
deps/openssl-sys/src/probe.rs:2 use std::io::fs::PathExtensions;
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error

I googled about this, but I couldn't find a workaround.

I tried https://github.com/dhuseby/cargo-bootstrap and got "can't find crate for openssl_sys" error.
I made an issue about that: can't find crate for openssl_sys on FreeBSD10.1 · Issue #3 · dhuseby/cargo-bootstrap

@hnakamur which toolchain are you using on FreeBSD 10.1?  Is it clang or gcc?  IIRC you can choose at install, right?

@dhuseby I use clang 3.4.1.
$ cc --version
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: x86_64-unknown-freebsd10.1
Thread model: posix

I built rustc with the following steps.
sudo pkg install -y python gmake git
git clone https://github.com/rust-lang/rust.git
cd rust
./configure
gmake
sudo gmake install

I just made some fixes to my bootstrap.py script that makes it succesfully bootstrap cargo on FreeBSD.  I was able to generate a cargo executable with the script and then build cargo from source using the exe as --local-cargo.  Cargo works great on FreeBSD now. :+1:

@dhuseby Thanks! I will try the latest version of dhuseby/cargo-bootstrap.


missing file

Your work is excellent, and the code is very helpful. Could you please share the JSON file for the validation set?
Thank you very much!


Look into some useful extension methods...

Not sure what but I imagine different devs have different helpers...

could be an image url with null check for example

Some ideas: https://github.com/rhythmagency/rhythm.umbraco.extensions/tree/master/trunk/Rhythm.Extensions/Rhythm.Extensions/ExtensionMethods

and this https://github.com/rasmuseeg/Our.Umbraco.Picture

added a couple


Date Picker Holidays Color

hi
days  weekend(Saturday or Sunday and Friday for jalali date ) or year holidays to red color , is a feature that makes the component more beautiful and better

I agree, we need a solution for that, maybe a func like the one that has just been PRed which allows to disable certain dates.

Hi! Is this still a desired feature?
If so, I'd like to take a crack at it - my thought was to have a parameter which accepted an array of dates dates (with specific colors?) to the component; that way users could specify which holidays they want to stand out (there are so many holidays, one could argue the whole year would just be one holiday after another).

Actually we already have this functionality. Check this out https://mudblazor.com/components/datepicker#disable-or-customize-days
You can set a func that configures the CSS classes to be applied to the specific days.


[Bug] import of package.json files are not hot reloaded

What version of vite are you using?
4.2.1
System info and storybook versions
System:
Windows
Binaries:
npm: 8.19.3
node: 16.19.1
npmPackages:
    "@storybook/addon-actions": "^7.0.5",
    "@storybook/addon-docs": "^7.0.5",
    "@storybook/addon-essentials": "^7.0.5",
    "@storybook/addon-links": "^7.0.5",
    "@storybook/api": "^7.0.5",
    "@storybook/react": "^7.0.5",
    "@storybook/react-vite": "^7.0.5",

Describe the Bug
I have a story that looks something like this:

import pkgJson from '../package.json'
export const MyStory = () => {
  return

Dependencies

        {JSON.stringify(pkgJson.dependencies)}

}

The initial value loads fine, but it does not hot reload on changes to the package.json. This seems to work fine with other json files and only affects package.json files. I've also tried importing using raw: import pkgJson from '../package.json?raw', but I get the same result
Link to Minimal Reproducible Example
No response
Participation

[X] I am willing to submit a pull request for this issue.

Closing in favor of: https://github.com/storybookjs/storybook/issues/22114


Profiling and some small optimization

Optimizations:

Changed double to float
RNG is now in the threadpool
Split up the std::transforms seperately between intensities and ranges
Basic profiler (tied to timekeeper). use START_PROFILE and END_PROFILE to  start and end the proflier


TypeError: 'float' object cannot be interpreted as an index

Getting an odd casting error on up-do-date pyFASST while attempting some blind source separation... have tried reinstalling numpy and scikits.audiolab to no avail:
Python 2.7.13 :: Anaconda 4.3.0 (x86_64)
numpy 1.13.0
scikits.audiolab 0.11.0
pyFASST 0.9.3
pip install -U numpy scikits.audiolab pyfasst
import pyfasst.audioModel as am
model = am.MultiChanNMFInst_FASST(audio='stereo.wav',nbComps=2, nbNMFComps=32, spatial_rank=1,verbose=1, iter_num=50)

('Computing the chosen signal representation:', 'stft')
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "/Users/peckjon/anaconda/lib/python2.7/site-packages/pyfasst/audioModel.py", line 2339, in __init__
    self.comp_transf_Cx()
  File "/Users/peckjon/anaconda/lib/python2.7/site-packages/pyfasst/audioModel.py", line 278, in comp_transf_Cx
    self.tft.computeTransform(self.audioObject.data[:,n],)
  File "/Users/peckjon/anaconda/lib/python2.7/site-packages/pyfasst/tftransforms/stft.py", line 382, in computeTransform
    fs=self.fs, nfft=self.ftlen
  File "/Users/peckjon/anaconda/lib/python2.7/site-packages/pyfasst/tftransforms/stft.py", line 47, in stft
    data = np.concatenate((np.zeros(lengthWindow/2.0), data))
TypeError: 'float' object cannot be interpreted as an index

I can resolve the error by casting lengthWindow to int and changing the offending line to np.zeros(lengthWindow/2) (plus a few similar lines later on), but this results in empty output files, so clearly I'm missing something... (among others, why would one ever attempt to use a float as a parameter to np.zeros!?)

I think you've got the wrong project, this is sbt-concat, which is an sbt plugin written in Scala to concatenate javascript/css files. This project has absolutely nothing to do with python, numpy or pyfasst.


How to convert UFF model into TensorRT engines

I checked the https://github.com/CnnDepth/tensorrt_samples/tree/master/sampleUffFCRN
But i am not able to understand how do i run it.
How to build that project and run it exactly?
Thank you

You can build the engine using tx2_fcnn_node. Check "Compile the engine" in the Compile section. Building the engine with sampleUffFCRN is outdated.

Thank you for a prompt reply.
I ran it and when i rosrun the command I get segmentation fault.
But everything else works.Hope that won't make a problem .
The depth map i am getting is not that great.
Is there anything to be changed for better depth map.
My image is calibrated.

Yes, segmentation fault sometimes occurs, but the engine should compile anyway.
It's hard to estimate what do you actually mean by "not that great". The overall quality depends on several parameters:

Camera quality.
The environment you are operating in. The deep learning approaches in depth reconstruction are not an universal solution. The environment should look similar to the training data, e.g. NYU Dataset v2. So the neural network's quality is better indoor, then outdoor, camera should be on ~1m height and etc.
The data formats. Make sure you pass the image in right color scheme.

Okay I will check all those things.
Is there any benchmark of all the pre-trained model given by you.
Thank you.

The output name for resnet_interleaving_2shortcuts_640x480 model is tf/reshape_1/Reshape. To build engine from this model, use following command:
rosrun tx2_fcnn_node fcrn_engine_builder --uff=./resnet_interleaving_2shortcuts_640x480.uff --uffInput=tf/Placeholder --output=tf/reshape_1/Reshape --height=480 --width=640 --engine=./test_engine.trt --fp16

Yeah that worked.
Thank you


WtD fixit: Readability improvements for Troubleshooting

Fixes https://github.com/kubeflow/website/issues/1357

This change is

/lgtm
/approve


[Automated] Upgrade to latest dependencies

Produced via:
./hack/update-deps.sh --upgrade
./hack/update-codegen.sh

/cc n3wscott vagababov
/assign n3wscott vagababov

cc @evankanderson  — interesting failure: just killed https://github.com/knative/pkg/pull/1758/checks?check_run_id=1191001391
/retest
/lgtm

well and https://prow.knative.dev/view/gs/knative-prow/pr-logs/pull/knative_pkg/1758/pull-knative-pkg-unit-tests/1311479155199578113 for your collection too :)


Enable dual-mesh 3dvar in cold-start scenarios that can use any outerMesh

Description

Dual-mesh 3dvar is enabled in cold-start scenarios by running the init_atmosphere on both of the inner loop and ensemble meshes using the identical ungrib file that was used on the outer loop mesh. The ExternalAnalysisToMPAS-{{mesh}} cylc task has multiple mesh-specific versions, each feeding the appropriate mesh name to ExternalAnalysisToMPAS.csh.  The same templating applies for LinkExternalAnalysis-{{mesh}}.

Any user can run 3dvar for any date they wish as long as the model.innerMesh and model.ensembleMesh are both equal to either 120km or 60km (only two meshes for which we have a static B). The outer mesh can be freely changed, including to variable resolution meshes, in order to fit particular applications. There is no need to generate any of the inner, outer, or ensemble mesh data offline, except for (1) static B, and (2) ensemble forecasts and (3) localization for 3denvar or 3dhybrid.

All substitution variables in streams.atmosphere and streams.init_atmosphere are enclosed in double braces.

ArgMesh is also added to forecast.csh, which might eventually be used to run ensemble and central deterministic forecast members on different meshes in a single workflow.  That functionality is not enabled here, however.

Issue closed
Closes #122
Tests completed

[x] 3dvar_OIE120km_WarmStart
[x] 3denvar_OIE120km_WarmStart
[x] 3dvar_OIE120km_ColdStart
[x] 3denvar_O30kmIE60km_WarmStart
[x] eda_OIE120km_WarmStart

Re-ran tests with latest develop merged. Fixed a bug in /forecast.csh.  All tests passed. Merging.


help

I used pdb to debug it and found that when it exec "loss.backward()" in function run_epoch. It told me that "Segmentation fault (core dumped)". I will appreciate if you can help me. @awni

If you can tell me which version of the different libraries you are running that would help to debug.
E.g. Python, CUDA, CuDNN, PyTorch, etc.


'Device' Doesnt support that..

I get many "Device" Doesnt support that responses from Alexa.
the deiscovery works wekk onport 80.
however when i try to activate "Turn 'DeviceName' On" or "Turn On 'DeviceName'" i getting mosty response from alexa
Device Doesnt Support That.
using Echo 3rd Gen
version 0.1.9

@Levynger, did you mange to resolve this?

I have the same issue.  Tried changing output to on & payload with no luck... trying.
running in v1.0.4 and running v 0.1.8 of the node

Have you tried to update your Echo firmware?

@bobneubaum-personal , @Levynger Do you have any update on this issue? Is it still reproducible?


Route caching results in 405 Method Not Allowed for root path

Laravel Version: 7.11.0
PHP Version: 7.3.5
Database Driver & Version: N/A

EDIT (platform sepcs):

Platform: Windows 10
Apache 2.4.39 (using WAMPP 3.1.9)

Description:
It appears that as soon as you call php artisan route:cache, the GET / route returns a 405 Method Not Allowed error. I originally encountered this in a running project, but after updating all packages, the issue still persisted.
I've browsed through the issues and there appears to have been done some work related to routing, mainly https://github.com/laravel/framework/issues/32228 , https://github.com/laravel/framework/issues/31756 and https://github.com/laravel/framework/issues/31768 , however I couldnt track down any issue that could remain.
Steps To Reproduce:
I can reproduce it using a fresh Laravel project:

composer global require laravel/installer
laravel new laravel-route-bug
Go to the directory
Run composer install
Remove the single route from routes/api.php (not cacheable because closure)
Change the route in routes/web.php to:

Route::get('/', ['uses' => 'Controller@index', 'as' => 'index.index']);

Add this function to the root controller in app\Http\Controllers\Controller.php:

public function index() {
    return 'this is index';
}

Create .env copy from .env.example and call php artisan key:generate
Call php artisan route:cache (should execute successfully now)
Go to the base url of your project in your browser. You should encounter the error message:

The GET method is not supported for this route. Supported methods: HEAD.

reproduction works right here! you might be making a simple mistake!
or this might not be a framework issue!

I followed your steps and can't recreate it either. Will ping @driesvints just in case.

I have some additional information which I encountered during testing:
I always develop my applications using simple http://localhost/someproject/public URLs. This has always worked perfectly (at least in v6.x, it could be that I just haven't encountered this issue since v7.0.0).
I notice that the issue is gone when I create a vhost for laravel-project.loc and point it to the correct directory, and then call the application using http://laravel-project.loc.
For what it's worth, here's a gist of the route file that is being generated:
https://gist.github.com/bert-w/1ea42bb124de4b857d62f04d0ad856aa
I tried tracing down the issue through xdebug, but it sent me far into the Symfony routing package, to be exact here: https://github.com/symfony/routing/blob/master/Matcher/Dumper/CompiledUrlMatcherTrait.php#L90
This line tries to find the correct route in the compiled routes file app/bootstrap/cache/routes-v7.php (see the gist above), but it does so using the variable $trimmedPathinfo = '/someproject/public' (which results in no matches, since it has to be /  to be able to find the correct route).
I wish I knew where to look to find the issue; there's just a lot to go through.

@bert-w we don't support Laravel in a subdirectory: https://laravel.com/docs/7.x/installation#directory-configuration

Thanks, I didnt know about that restriction. Something did change between 6.x and 7.x that caused this to break though. Quite possibly one of the updated Symfony modules.
It's just a minor issue then if this only affects a development environment. I can live with not-executing php artisan route:cache on my local environment :)

If it helps @bert-w - We hit this on select environments during upgrades to L7. We tracked it down to a trailing slash on url. Which makes sense with the comments about subdirectories.
Some environments had like
foo.example.com/

and the working ones
foo.example.com

So the URL would become
foo.example.com//api/bar

and die out
{
    "message": "The POST method is not supported for this route. Supported methods: GET, HEAD."
}

I imagine something in newer Symfony is a bit more strict, but boy that sent me on a search.

I can confirm I have the same problem and website is under http://my-domain/apps123 who is redirected to http://my-domain/apps123/
Please try to reproduce with sub folder domain.

After updating to 8.83.24 getting this error from this line:
        return back()->with('message', 'CV updated successfully');

Works OK:
        return redirect(route('user.profile.edit', $user))
            ->with('message', 'CV updated successfully');

        Route::group(['as' => 'profile.'], function () {
            Route::group(['prefix' => 'profile'], function () {
                Route::get('edit', [ProfileController::class, 'edit'])->name('edit');
                Route::post('update', [ProfileController::class, 'update'])->name('update');
            });
        });


fix: support for zksync-ethers sdk instead of depricated zksync-web3

Transition from the deprecated zksync-web3 SDK to the newer zksync-ethers SDK, which aligns with the respective versions of the ethers.js library. The zksync-ethers SDK has different versions for compatibility with different versions of ethers.js: version 5.x for ethers.js v5 and version 6.x for ethers.js v6. This transition likely involves updates to the SDK to utilize the features and changes introduced in the newer versions of ethers.js, ensuring better compatibility and performance with the latest tools and libraries in the Ethereum ecosystem.

Please release new version @wighawag
https://github.com/wighawag/hardhat-deploy/pull/514

Thanks!
Done with #511


cmd/compile: Possible stack corruption when passing pointer to a "named return variable" to deferred function

Repro code: https://github.com/prashantv/defer-repro/blob/master/main.go
(The current version is the simplest repro, but takes longer to run. Older versions crash faster but have more code)
Using named returns, and passing a pointer to the return value to another function seems to cause some sort of stack corruption sometimes. Running the code tends to crash either either:
panic: runtime error: growslice: cap out of range

goroutine 480 [running]:
fmt.(*fmt).padString(0xc824ec82c8, 0x22e0, 0xc823ee0210)
        /usr/local/Cellar/go/1.5.1/libexec/src/fmt/format.go:130 +0x406
fmt.(*fmt).fmt_s(0xc824ec82c8, 0x22e0, 0xc823ee0210)
        /usr/local/Cellar/go/1.5.1/libexec/src/fmt/format.go:322 +0x61
fmt.(*pp).fmtString(0xc824ec8270, 0x22e0, 0xc823ee0210, 0xc800000076)
        /usr/local/Cellar/go/1.5.1/libexec/src/fmt/print.go:518 +0x144
fmt.(*pp).printArg(0xc824ec8270, 0xc7ac0, 0xc824e24020, 0x76, 0x0, 0x0)
        /usr/local/Cellar/go/1.5.1/libexec/src/fmt/print.go:797 +0xd91
fmt.(*pp).doPrint(0xc824ec8270, 0xc823a77f08, 0x2, 0x2, 0xc824e20101)
        /usr/local/Cellar/go/1.5.1/libexec/src/fmt/print.go:1254 +0x258
fmt.Fprintln(0x3a91c0, 0xc82000a3c0, 0xc823a77f08, 0x2, 0x2, 0x0, 0x0, 0x0)
        /usr/local/Cellar/go/1.5.1/libexec/src/fmt/print.go:254 +0x67
main.instrument.func1()
        /Users/prashant/gocode/src/github.com/prashantv/defer-repro/main.go:22 +0x1ae
main.methodWithError(0x0, 0x0)
        /Users/prashant/gocode/src/github.com/prashantv/defer-repro/main.go:28 +0xf7
main.main.func1()
        /Users/prashant/gocode/src/github.com/prashantv/defer-repro/main.go:13 +0x18
created by main.main
        /Users/prashant/gocode/src/github.com/prashantv/defer-repro/main.go:15 +0x3a

or with
runtime:objectstart Span weird: p=0xc8246b2000 k=0x6412359 s.start=0xc8246b2000 s.limit=0xc8246b4000 s.state=2
fatal error: objectstart: bad pointer in unexpected span

goroutine 1025 [running]:
runtime.throw(0x132d20, 0x2b)
        /usr/local/Cellar/go/1.5.1/libexec/src/runtime/panic.go:527 +0x90 fp=0xc82002fe10 sp=0xc82002fdf8
runtime.heapBitsForObject(0xc8246b2000, 0x0, 0x0, 0xc800000000, 0x580988)
        /usr/local/Cellar/go/1.5.1/libexec/src/runtime/mbitmap.go:217 +0x287 fp=0xc82002fe48 sp=0xc82002fe10
runtime.scanobject(0xc824682c40, 0xc82001e720)
        /usr/local/Cellar/go/1.5.1/libexec/src/runtime/mgcmark.go:878 +0x239 fp=0xc82002ff18 sp=0xc82002fe48
runtime.gcDrainUntilPreempt(0xc82001e720, 0x7d0)
        /usr/local/Cellar/go/1.5.1/libexec/src/runtime/mgcmark.go:741 +0x152 fp=0xc82002ff50 sp=0xc82002ff18
runtime.gcBgMarkWorker(0xc82001d500)
        /usr/local/Cellar/go/1.5.1/libexec/src/runtime/mgc.go:1329 +0x474 fp=0xc82002ffb8 sp=0xc82002ff50
runtime.goexit()
        /usr/local/Cellar/go/1.5.1/libexec/src/runtime/asm_amd64.s:1696 +0x1 fp=0xc82002ffc0 sp=0xc82002ffb8
created by runtime.gcBgMarkStartWorkers
        /usr/local/Cellar/go/1.5.1/libexec/src/runtime/mgc.go:1239 +0x93

Modifying methodWithError to not return directly, but set to the return variable, stops the panic.
func methodWithError() (err error) {
	defer instrument(&err)()
	err = errors.New("error")
	return err
}

Version information:
$ go version
go version go1.5.1 darwin/amd64
$ uname -prsv
Darwin 15.2.0 Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64 i386

(Does not seem OSX specific however, we also saw this issue on Linux x64)

Preliminary guess: problem with escape analysis.  Sending to @dr2chase to check.

It looks like maybe it's a missing write barrier due to err escaping to the heap.  Both the working and failing programs are being compiled as roughly:
func methodWithError() (err error) {
    perr := new(error)
    defer instrument(perr)()
    *perr = errors.New("error")
    err = *perr
    return
}

However, the difference is that the implicit *perr = errors.New("error") assignment only uses a write barrier for the iface.data field in the working program (i.e., with the explicit err = errors.New("error") assignment).
CC @aclements

I think this is worthy of 1.5.3, if there is one.


slim fails loading python modules in build

I was trying to slim an image that works perfectly , but when running this command :
slim build --target mailserver:latest --tag mailserver:slim --exec "python3 mailserver.py" --expose 2025 -http-probe=false --preserve-path /home/pmail/.local/lib/python3.9/site-packages it seems fails to load the library I installed with pip3 in requirements :
slim[build][exec]: output: Traceback (most recent call last):
slim[build][exec]: output:   File "/home/pmail/mailserver.py", line 4, in <module>
slim[build][exec]: output:     from aiosmtpd.controller import Controller
slim[build][exec]: output: ModuleNotFoundError: No module named 'aiosmtpd'

however if I run the image import is ok :
gcasale@deb-hp-8300:~$ docker attach a40d0f417e0f
pmail@a40d0f417e0f:~$ python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from aiosmtpd.controller import Controller
>>>

how can I solve this issue ?

it worked in this way : slim build --target mailserver:latest --tag mailserver:slim --exec "su -c 'python3 mailserver.py' pmail" --expose 2025 -http-probe=false ,  was not getting pmail user for running the command.Not taking the USER from Dockerfile , even using option --run-target-as-user


[CMT-1003-1379] translate(hindi): yearn-v3 (article)

hindi translation

@Urs4Maj0r please check this PR


fix(cdc): fix the filter expression of CdcFilter executor

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Change the filter expression to filter upstream source chunk by the value of _rw_table_name, which is prefixed by the schema name of the table. e.g. public.t1.
The previous expression only filter by table name w/o schema name.
close https://github.com/risingwavelabs/risingwave/issues/17890
Checklist

[ ] I have written necessary rustdoc comments
[ ] I have added necessary unit tests and integration tests
[ ] I have added test labels as necessary. See details.
[ ] I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features #7934).
[ ] My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
[ ] All checks passed in ./risedev check (or alias, ./risedev c)
[ ] My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)

[ ] My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

[ ] My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

🤔 Will there be compatibility issue?

🤔 Will there be compatibility issue?

For already created sqlserver cdc table, it should be fine since it will use old implementation persisted in meta store. But new table needs to prefix the upstream table with database name.

Please help update the doc correspondingly. Thanks!


Class names inconsistency

Should margins, padding, border, transforms be changed from p- | m- | b- | t- => pad-t- | mar-t- | border-t- | trans-t-| for beginner readability. This would be a breaking change.

+1

Single letter classes will replaced in favor of full names or abbreviations where long, eg. pad- width- trans grad

Name style conflict between g-1 using pixels & gap as rem variables

So decided to map out all the utility classes prioritizing that vue would make classless components anyhow, and there will be some learning curve. Seemed actually the more intuitive practice, given Javascript affinities, is to write in CamelCase!
Rad1
BordL1
GradDarken
Blend
Color,BgColor,BordColor
Ht1,ViewHt1,Wid,ViewWid
B,L,R,T
Flex,Grow
GridGap1, GridSpace1
GridCols1, GridRow1
GridColSpan1, GridRowSpan1
Opa1
MarGap1,Mar1,MarT1
PadGap1,Pad1,PadT1
Shad
TransT1

Removed Gap classes in favor of isSpace variant


integrate numpy datetime64 for greater range of years

how much does the code change? how much does numpy.datetime64 help, how heavy of a dependency is this?
could this be optional, for people who need the expanded year range but not installed by default?

benchmarking / documentation:

[ ] how long does it take to run the test suite with/without numpy?
[ ] how big is the installation size with/without?

next steps:

check numpy depedencies; check 1.2 and 2.0 - difference in size? does the change break anything?
fully implement clean numpy datetime shims and add typing, tests, docs, etc
document numpy integration and any information about recommended versions, dependencies, etc.

From NumPy installation docs:

NumPy doesn’t depend on any other Python packages, however, it does depend on an accelerated linear algebra library - typically Intel MKL or OpenBLAS. Users don’t have to worry about installing those (they’re automatically included in all NumPy install methods)

@ColeDCrawford as I close this out, I remembered you wanted some benchmarking / assessment on the numpy inclusion.  The test suite is pretty fast either way, and we've also been expanding the functionality in other ways, so it's not a strict comparison.
Running a checkout of the 0.2 tag, I get

113 passed in 0.11s

Running in current develop, I get

138 passed in 0.16s

I compared the virtualenv size when installing version 0.2 and current develop. Without numpy, the virtualenv is 14MB; with numpy it's 46MB. Looking at the folders in the sitep ackages for the latter, the numpy folder is 31MB on its own.
Let me know if you think any of this needs to be documented in the changelog or elsewhere.

Nice, thanks for remembering that. Seems like a negligible performance difference with the main change being the payload size, but we knew about that going in. I think it would be nice to note in the changelog for the v1.0 release


Added hasRegisteredComponent to World and ComponentManager

The goal here is to be able to check whether a component has already been registered to the world before adding it, which can be helpful when different init sequences rely on the same components.

Thanks!


v2

[x] - Individual pages to finish
[x] - Sorting to finish
[x] - Pagination to finish
[x] - Add the redirect page
[ ] - Update the data file
[x] - IP pages
[x] - Address pages
[x] - Update README
[x] - Take screenshots of flagged sites.

Bugs:

[ ] - Slackbot needs to be fixed
[x] - getCache().scams is full of duplicates, not sure why

Slackbot needs to be fixed

Hey @MrLuit - what specifically is wrong with the current version?

@409H Newlines can sometimes display https://etherscan.io/address/ at the end of a report, and the 'Found in database / Not yet found in database' isn't very accurate. Using the new API that can be resolved very easily.

@MrLuit What is required to fulfil point "Update the data file"?

@409H Both the legit_urls.yml and the scams.yml in the v2 branch need to be copied from the master branch. That's all


Uncaught SyntaxError: Unexpected token :

How to use this new Turbolinks 3.0 (branch: 'master') with Rails 4.2?
I'm trying and I got from Chrome this error:
Uncaught SyntaxError: Unexpected token :
If I use partial replacement like this:
<%= link_to "Something", root_path %>
and then in the same page:
<script> Turbolinks.visit(url, { change: 'areaDiv' }); </script>
The page is reloaded entirely and I got that error. How to do?

This doesn't give us enough information to replicate the issue. Could you put an example app on GitHub/Heroku?

I can't post on Heroku. I have a standard Rails app 4.2.
I added in Gemfile the turbolinks gem from tighub branch master and now I use in my views index.html.erb a link_to from sidebar to update div "areaDiv".
The link_to is on the same page. It'a a link with params that filter the query from controller.
I repeat, all too standard.
But it just doesn't work.
The page just reload entire, like normal link.
Question: I have to put thi in index.html.erb:
 <%= link_to "Something", root_path({category: category.name, game: game}) %>
and then I have to write this below the "link_to"?
<script> Turbolinks.visit(url, { change: 'areaDiv' }); </script>
I don't understand how to do. Is there an example on a standard app?
I need the transformation in views, not in controller. Because I have a standard menu just with some category filter.
How to do partial replacement in this way?
I think turbolinks partial replacement is for not use heavy javascript framework like angular. Because simply partial replacement is not too much complicated to use it with Angular. I'm wrong?

Did you include turbolinks.coffee in your javascript bundle?

and then I have to write this below the "link_to"?

No. You need to run that javascript code dynamically, not put it in a <script> tag.
This doesn't sound like a Turbolinks issue. Until you have an example code / repro steps, please use the mailing list or StackOverflow for questions/help, where a wider community will be able to help you.

Can you post an example for learn to me how to: "run that javascript code dynamically, not put it in a

@ginolon a quick Google search for "javascript tutorial" or "turbolinks tutorial" will give you plenty of examples. I don't have time to help you beyond issues directly caused by Turbolinks, sorry.

I'm usign onclick: in "link_to". I'm wrong?


Fix JS errors with some codemirror modes

Always load all CodeMirror modes in view.html since some CodeMirror modes depend on others.
This fixes #43.
Add CodeMirror simple addon which is needed by some modes.

Thanks!


State that action :resize on a lv is actually a extend

Took me a while to understand, that you only can extend, since lvextend is used, not lvresize. For one how is trying to actually downsize a lv, this was hard to understand, since

lvm_logical_volume 'root' do
  group 'debian-8-vg'
  size '20G'
  action :resize
end

will not through any errors, eventhough the lv is 40G big right now, ti will just say "up to date" - all good. But well, of course the LV is not shrinked due to the use of lvextend https://github.com/chef-cookbooks/lvm/blob/master/libraries/provider_lvm_logical_volume.rb#L255
There should be a big fat notice or rather rename it to :extend (leave room for a real resize..) and make it for now deprecated to use :resize, while still mapping it to extend until the next major release or whatsoever

@EugenMayer Care to open a PR to update the documentation in the readme?

Closed via #160


Questions about training code for UltraRM/UltraCM

Great Work! And thanks for the contribution. May I ask you if you have plans to release the training code for UltraRM/UltraCM?

+1，Any plan for this issue?

Thanks for your interest!
For reward modeling, we use code in this repo: https://github.com/Dahoas/reward-modeling
For critique modeling, we use the code in our sister repo: https://github.com/thunlp/UltraChat
I also recommend HuggingFace TRL for easy implementation: https://huggingface.co/docs/trl/index

Thank you!
And do you have plans to open-source the out-of-box code for training? I'm somehow interested in continuing fine-tuning UltraRM for a domain-specific dataset so the detailed training code might help that.


LightGBMClassificationModel.fit gives raise Py4JNetworkError("Answer from Java side is empty") py4j.protocol.Py4JNetworkError: Answer from Java side is empty

Describe the bug
LightGBMClassificationModel.fit Cannot handle too much data. Fails without even having to collect anything at the driver.
I LightGBMClassificationModel.fit on data(10000,241) - It executes perfectly
I LightGBMClassificationModel.fit on data(100000,241) - It executes perfectly
I LightGBMClassificationModel.fit on data(1000000,241) - The error shows up
I do not ever get WARN WindowExec: No Partition Defined for Window operation! Moving all data to a single partition, this can cause serious performance degradation..
To Reproduce
I can upload an entire example if necessary but since this error shows up only when I read all the rows in my data (I keep all the other configuration same) I hope it would not be necessary. Please do let me know in case it is needed
Expected behavior
The execution can be slow by switching to disk caching but it should not fail IMO.
Info (please complete the following information):
Python 3.9.7
pyspark 3.2.0 (pip install pyspark)
sc session:
pyspark.sql.SparkSession.builder.appName("MyApp") \
            .config("spark.jars.packages", "com.microsoft.azure:synapseml_2.12:0.9.4") \
            .config("spark.jars.repositories", "https://mmlspark.azureedge.net/maven") \
            .config("spark.driver.memory", "8g")\
            .getOrCreate()

** Stacktrace**
----------------------------------------=====>                     (8 + 5) / 13]
Exception occurred during processing of request from ('<IP_ADDRESS>', 35340)
Traceback (most recent call last):
  File "/home/nitin/miniconda3/envs/pyspark/lib/python3.9/socketserver.py", line 316, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/home/nitin/miniconda3/envs/pyspark/lib/python3.9/socketserver.py", line 347, in process_request
    self.finish_request(request, client_address)
  File "/home/nitin/miniconda3/envs/pyspark/lib/python3.9/socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/home/nitin/miniconda3/envs/pyspark/lib/python3.9/socketserver.py", line 747, in __init__
    self.handle()
  File "/home/nitin/miniconda3/envs/pyspark/lib/python3.9/site-packages/pyspark/accumulators.py", line 262, in handle
    poll(accum_updates)
  File "/home/nitin/miniconda3/envs/pyspark/lib/python3.9/site-packages/pyspark/accumulators.py", line 235, in poll
    if func():
  File "/home/nitin/miniconda3/envs/pyspark/lib/python3.9/site-packages/pyspark/accumulators.py", line 239, in accum_updates
    num_updates = read_int(self.rfile)
  File "/home/nitin/miniconda3/envs/pyspark/lib/python3.9/site-packages/pyspark/serializers.py", line 564, in read_int
    raise EOFError
EOFError
----------------------------------------
ERROR:root:Exception while sending command.
Traceback (most recent call last):
  File "/home/nitin/miniconda3/envs/pyspark/lib/python3.9/site-packages/py4j/clientserver.py", line 480, in send_command
    raise Py4JNetworkError("Answer from Java side is empty")
py4j.protocol.Py4JNetworkError: Answer from Java side is empty

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nitin/miniconda3/envs/pyspark/lib/python3.9/site-packages/py4j/java_gateway.py", line 1038, in send_command
    response = connection.send_command(command)
  File "/home/nitin/miniconda3/envs/pyspark/lib/python3.9/site-packages/py4j/clientserver.py", line 503, in send_command
    raise Py4JNetworkError(
py4j.protocol.Py4JNetworkError: Error while sending or receiving
---------------------------------------------------------------------------
Py4JError                                 Traceback (most recent call last)
/tmp/ipykernel_1227645/3903106392.py in <module>
      1 # lp = LineProfiler()
----> 2 scores = est.train_evaluate_cv('./mar19/training_data.csv', 'hash_CR_ACCOUNT_NBR', \
      3                                'flag__6_months', None, save_results=True,\
      4                               evaluate = True)

~/pymonsoon/./ml_auto_spark/cv_estimator.py in train_evaluate_cv(self, data_path, index, label, nrows, save_results, evaluate)
    308         df_modeling = self.prepare_modeling_data(df, self.n_splits, train=True).persist()
    309         print("Training Models")
--> 310         self.train_cv(df_modeling)
    311         print("Computing CV save artefacts")
    312         df_post_prediction = self.predict_oof_cv(df_modeling, evaluate=evaluate)

~/pymonsoon/./ml_auto_spark/cv_estimator.py in train_cv(self, df)
    131             self.run_params.update(update_params)
    132             model = self.model.setParams(**self.run_params)
--> 133             model = model.fit(df)
    134             self.trained_models.append(model)
    135

~/miniconda3/envs/pyspark/lib/python3.9/site-packages/pyspark/ml/base.py in fit(self, dataset, params)
    159                 return self.copy(params)._fit(dataset)
    160             else:
--> 161                 return self._fit(dataset)
    162         else:
    163             raise TypeError("Params must be either a param map or a list/tuple of param maps, "

/tmp/spark-6102c3e3-6d12-4007-8b72-8a4d20f8e325/userFiles-a7fdb181-3cd5-4dd2-b745-f59b96544e25/com.microsoft.azure_synapseml-lightgbm_2.12-0.9.4.jar/synapse/ml/lightgbm/LightGBMClassifier.py in _fit(self, dataset)
   1445
   1446     def _fit(self, dataset):
-> 1447         java_model = self._fit_java(dataset)
   1448         return self._create_model(java_model)
   1449

~/miniconda3/envs/pyspark/lib/python3.9/site-packages/pyspark/ml/wrapper.py in _fit_java(self, dataset)
    330         """
    331         self._transfer_params_to_java()
--> 332         return self._java_obj.fit(dataset._jdf)
    333
    334     def _fit(self, dataset):

~/miniconda3/envs/pyspark/lib/python3.9/site-packages/py4j/java_gateway.py in __call__(self, *args)
   1307
   1308         answer = self.gateway_client.send_command(command)
-> 1309         return_value = get_return_value(
   1310             answer, self.gateway_client, self.target_id, self.name)
   1311

~/miniconda3/envs/pyspark/lib/python3.9/site-packages/pyspark/sql/utils.py in deco(*a, **kw)
    109     def deco(*a, **kw):
    110         try:
--> 111             return f(*a, **kw)
    112         except py4j.protocol.Py4JJavaError as e:
    113             converted = convert_exception(e.java_exception)

~/miniconda3/envs/pyspark/lib/python3.9/site-packages/py4j/protocol.py in get_return_value(answer, gateway_client, target_id, name)
    332                     format(target_id, ".", name, value))
    333         else:
--> 334             raise Py4JError(
    335                 "An error occurred while calling {0}{1}{2}".
    336                 format(target_id, ".", name))

Py4JError: An error occurred while calling o52.fit

Additional context

@Nitinsiwach really sorry, from the given information I really don't know what the issue could be.  The "root" error message seems to be "py4j.protocol.Py4JNetworkError: Answer from Java side is empty".  I'm really not sure how it's related to lightgbm classification model.  I do see that you said it started failing on more data.  Perhaps it ran into OOM, and only increasing number of nodes or machine RAM might help.


Design: Generic purl retrieval

Description
OCI registries are great - but right now they're not completely universal no matter how much I wish :) I think over time we could try to support safely retrieving artifacts from any artifact manager.
The most widely used way to declare package locations is with PURL, and these are used in SBOMs and other tooling. They're also found in slsa/in-toto provenance.
PURLs aim to contain enough information to locate and retrieve a package, so I think it should be sufficient for sget to... locate and retrieve a package!
I'm not aware of other efforts to universally fetch anything in PURL, but it would definitely be useful.

I need to read up on perl. We had discussed using other storage systems. From talking to a few people they were a little hesitant to use OCI as they would prefer their users to pull git direct (raw githubusercontent) and there not be a chance of race condition between the source code being updated and then pushed to the registry.

PURL isn't perfect, but it's pretty good and the community is active and willing to address feedback. They support git URLs and generic HTTP fetching, which should work for the generic support: https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst
In general the PURL types try to support fully pinned references where the ecosystem permits. This is where sget can shine, by encouraging the safe patterns of fetching content from purls as much as possible!

I had a deeper look on the package url specification over the last few days. The generic type is currently missing a parameter for signatures, hence I proposed the addition of such a parameter: https://github.com/package-url/purl-spec/pull/145
Furthermore, I am currently working on the package url Go implementation: https://github.com/package-url/packageurl-go/pull/28
I am aware that this is the Rust implementation for sget, but I am confident this might be useful for further sget rust development.
One "problem" I have with package url is that it feels not naturally. Just have a look at this example here.
The latest version of sget behaves like this:
$  sget us.gcr.io/dlorenc-vmtest2/readme@sha256:4aa3054270f7a70b4528f2064ee90961788e1e1518703592ae4463de3b889dec

With package url support the above line would become this:
$ sget pkg:oci/readme@sha256:4aa3054270f7a70b4528f2064ee90961788e1e1518703592ae4463de3b889dec?repository_url=us.gcr.io/dlorenc-vmtest2/readme&tag=latest

The generic package url would be even more complex:
$ sget pkg:generic/openssl@1.1.10g?download_url=https://openssl.org/source/openssl-1.1.0g.tar.gz&signature_url=https://openssl.org/source/openssl-1.1.0g.tar.gz.asc&checksum=sha256:de4d501267da

This may be just my subjective feeling, but I am afraid that the package url might make using sget tremendously more difficult.
I see also issues with blob distribution at the moment. Some websites sign their checksum files instead of the blob artifacts and other sign their blob artifacts... sget should support both and I am not sure if the generic pkg url could support both in the current state.
Don't get me wrong, I am not against package url, I just have the feeling that we either need very good documentation for this, or something that generates package urls or  software developers provide a copy-pastable sget string on their website.
Cross-Linking my PR for the Go implementation: https://github.com/sigstore/cosign/pull/1190

yep, those URLs are overly complex (and as per for the twitter thread) wide open for typo / bidi trojan attacks. I don't have anything substantial to offer around a better implementation, but going to spend some time thinking this over.

sget should support both and I am not sure if the generic pkg url could support both in the current state.

Shall it? or do we want to "enforce" a standard? If so, we might want to discuss this as well...

@lukehinds  what are bidi attacks exactly? Can you share some link about it? I think we cannot do that much about typos in URLs, right?

bidi trojan attacks

sure, https://threatpost.com/trojan-source-invisible-bugs-source-code/175891/
the paper: https://trojansource.codes/trojan-source.pdf

the paper: https://trojansource.codes/trojan-source.pdf

Ah okay. Bidi attacks are encoding attacks, for example in source code. I read about that earlier, I just didn't know the term for it.
I don't have an answer for a proper protection against such an attack.

I don't have an answer for a proper protection against such an attack.

No one does right now, so we should not let it hold us back from trying to solve the issue at hand.

One "problem" I have with package url is that it feels not naturally

I have a thought along the same lines. I think supporting purl might not be a bad idea, but I think more thought is needed on what kind of user we'd intend to benefit from having this support in sget.
I think the folks that would benefit from purl support are the people already using purls in their workflows. If neither a software's users nor its maintainers are familiar with purls, I'd want to understand why they'd need to learn about purls in order to use sget.
For the folks that are already familiar with purls, there are some neat applications. For example, if an SBOM had a purl for each listed software package, the SBOM could be used as an input to sget, to reinstall all software into a fresh environment / image.
IMHO, software publishers are already publishing their software to a place, and for them to adopt sget, they want to use the minimum amount of thought and information needed to point to that place. For example, a lot of software gets published to GitHub Releases. A lot gets published to S3 and similar object storage backends. Installation scrips also appear in the projects' git repo. What's the easiest message for software maintainers to tell their users about how to access this software in a verified manner?
Also, to oversimplify, there are two kinds of packages that purls describe: executable software and software libraries. Do we expect language ecosystems to use sget in place of their ecosystem-specific tooling (e.g. npm) to obtain libraries? My assumption has been "no", that we were focusing on ways for users to install runnable software. Is that correct?

Do we expect language ecosystems to use sget in place of their ecosystem-specific tooling (e.g. npm) to obtain libraries? My assumption has been "no", that we were focusing on ways for users to install runnable software. Is that correct?

This is my understanding, too. Everything else would lead to reimplementing existing package managers with sget.

I agree with all of this! Purls are way too clumsy to work with by hand so we'll need a layer on top. Supporting them directly in the SBOM case would be a real killer feature though!


DS4 Windows Issue (Unable to Install Drivers) {WEBSITE is OFFLINE}

Hello,
I've decided to reinstall my DS4 Drivers because I had an issue with my PS4 Gamepad, it suddenly stopped getting any signal from DS4 Windows and acted as a simple PS4 Gamepad.
Upon reinstalling, all DS4Windows is doing is "Opening Installer" for several minutes and fail to do so, I've tried to go on the official website to grab another set of files in case those became corrupt and to my surprise, the website has gone offline.
Apparently the bandwidth limit had been exceeded and I'm pretty sure the installer gets files from said website, it opens the installer and downloads the required files to install DS4 Drivers.
Could you help me out solve this problem? Do you have a copy of your DS4 Windows for offline installation usage?

@xdantey The site appears to be up at this time. If you are referring to "Step 1: Install the DS4 Driver", then you are correct in regards to the installer retrieving a file from the site (http://ds4windows.com/Files/Virtual Bus Driver.zip). I would suggest downloading that file if there have been intermittent site outages. Simply running and installing ScpDriver should address the first step.

so im getting the
Bandwidth Limit Exceeded
The server is temporarily unable to service your request due to the site owner reaching his/her bandwidth limit. Please try again later.
error when i try to just pull up the standard site... does anyone have the vbus file downloaded? if so can your share it? cuz the site is most def not functioning ATM.

i found a workaround
https://ds4-to-xinput-wrapper.en.softonic.com
this thing has the virtual bus file with it! grab and install! ds4 is now working and detects my controller!!! woot!

You can get the zip from WayBack Machine. (https://web.archive.org/web/20170311022846/http://ds4windows.com/Files/Virtual Bus Driver.zip)
But what do you do with it after?

Yes, just run ScpDriver.exe and after that start DS4Windows and the Install window won't pop up (at least on win10)

yup. and i couldn't find that location prior to what i found. the more options the better imo.

You can grab it from here. And yes, I have not bothered to buy a domain name.
http://<IP_ADDRESS>/ds4windows/files/Virtual Bus Driver.zip

You can grab it from here. And yes, I have not bothered to buy a domain name. "LOL, WE DONT MIND ABOUT THE DOMAIN NAME"
thanks

go to https://github.com/Ryochan7/DS4Windows/releases
it's a great solution

wow almost a year and no fix?

Thank you so much for the ScpDriver.exe solution, I was also facing this annoying problem.

I cannot detect the PS4 controller ; What I do ?

My suggestion to all is to use input mapper. It's an alternate program since this one is no longer properly supported. Consider the unofficial successor.

I test InputMapper fairly frequently but neither version 1.6 nor 1.7 work that well. Neither version can get the most basic DS4 to XInput mapping system right. There have been some interesting developments but Wobbles really should have just focused on getting XInput mapping working well with 1.7 before jumping into implementing other features. Testing the most recent 1.7 build (1.7.6811.34320) with HTML5 Gamepad Tester shows that the full analog stick range is not even being used for the output XInput device.
https://github.com/Ryochan7/DS4Windows

Again it's an alternative. Use whatever works for you. This is the option for those that don't want to try and debug this... Our can't get this working... Input mapper is another option. That one is just actively supported. Just updated this month... Not saying one is necessarily better then the other... Everyone can choose for what to use.. But may not know of other options.

Still an issue


Fill PNN in FWJR

#5344 need to be done first
Need to find how the location is set in file.
https://github.com/dmwm/WMCore/blob/master/src/python/WMComponent/JobAccountant/AccountantWorker.py#L472

@ticoann can be closed with merging of PNN patch


CardMedia horizontally aligned with CardText

N00b here 😄
I´m trying to theme a Card so that CardMedia can be aligned to the left/right with CardText (as demonstrated here:

https://material.io/guidelines/components/cards.html#cards-usage
Is my understanding correct that I create a new CardMedia and CardText theme, overriding this for example?
.cardMedia {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;

  &.wide,
  &.square {
    width: 100%;

    & .content {
      height: 100%;
      position: absolute;
    }

    & .content > iframe,
    & .content > video,
    & .content > img {
      max-width: 100%;
    }
  }

  &::after {
    content: '';
    display: block;
    height: 0;
  }

  &.wide::after {
    padding-top: 56.25%;
  }

  &.square::after {
    padding-top: 100%;
  }

  & .content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    left: 0;
    overflow: hidden;
    position: relative;
    top: 0;
    width: 100%;
  }

  & .contentOverlay {
    & .cardTitle,
    & .cardActions,
    & .cardText {
      background-color: var(--card-text-overlay);
    }
  }

  & .cardTitle {
    & .title,
    & .subtitle {
      color: var(--card-color-white);
    }
  }
}

Thanks for contributing!

Yes, that's it, you have to override the theme of the card component.


no working for xcode 6.3.2

no working for xcode 6.3.2,  but xcode 6.3.1 is ok before，why？

UUID is changed in 6.3.2, so you need to download the latest source and build again.

I have downloaded the latest version ,but no working still

在 2015年5月25日，上午10:07，Wei Wang<EMAIL_ADDRESS>写道：
Closed #117 https://github.com/onevcat/VVDocumenter-Xcode/issues/117.
—
Reply to this email directly or view it on GitHub https://github.com/onevcat/VVDocumenter-Xcode/issues/117#event-312715771.

Double check your UUID matches xcode 6.3.2 ones and build it again - Mine is working great, so should be your code problem.

i do not know how to do ?

在 2015年5月25日，上午11:28，Xuan<EMAIL_ADDRESS>写道：
Double check your UUID matches xcode 6.3.2 ones and build it again - Mine is working great, so should be your code problem.
—
Reply to this email directly or view it on GitHub https://github.com/onevcat/VVDocumenter-Xcode/issues/117#issuecomment-105113473.

Use defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID and then add the  UUID to VVDocumenter-Xcode -> VVDocumenter-Xcode-Info.plist -> DVTPlugInCompatibilityUUIDs

I have added the UUID ,but no working still

I have checked in the VVDocumenter-Xcode-Info.plist , the xcode UUID is residing there but the plugin is not showing up in the xcode. Kindly let us have a solution asap.


[moveit_ros.current_state_monitor]: Didn't receive robot state (joint angles) with recent timestamp within 10.000000 seconds.

Hello Everyone,
@peterdavidfagan I have set up a Gazebo simulation with 2 UR manipulators and I'm attempting to control one UR robot using moveit_py. I've followed the necessary configuration steps from "moveit2_tutorials", and I am also setting 'use_sim_time' to true in Gazebo and all related nodes. However, I'm encountering an issue where 'current_state_monitor.cpp' is not receiving joint_angles with recent timestamps.
I've verified that joint states are being published in the correct sim time using "ros2 topic echo /joint_states" and "ros2 topic echo /clock", but it seems that the requested time reflects my PC's total run time instead of the current simulation time step. I tried several ways to set the 'use_sim_time' param to true globally before initializing 'moveit_py' but it's not working out.
Any guidance on resolving this would be greatly appreciated.
Thank you.
Error message:

'ur_sort.py':

by adding use_sim_time: True in the moveit config dict you'll be able to get to monitor planning running but
it will fetch another error
terminate called after throwing an instance of 'rclcpp::exceptions::InvalidParameterValueException'
  what():  parameter 'qos_overrides./clock.subscription.durability' could not be set:
Aborted (core dumped)

Python code
moveit_config_dict.update({'use_sim_time' : True})

I experience the same problem when using the moveit_servo servo_node in combination with Gazebo simulation. I launch all nodes with the 'use_sim_time' set to True, however the current_state_monitor still seems to use wall time. Did you found a solution?


[issue-65] Rework FlinkPravegaInputFormat to use batch client

Change log description

Reworks the FlinkPravegaInputFormat to use the experimental Pravega batch client.
Expand current IT tests for the input format. The tests now additionally cover the following verifications: 1) reading multiple streams with batch, 2) multiple passes, and 3) rewinds input format in case of failures.
Previous configuration of the input format such as startReadTimestamp and eventReadTimeout is removed, since they are no longer relevant / useful after switching to the batch client.

Purpose of the change
This PR closes #65 and #56.
As discussed in #65 and #56, the use of reader groups / the EventStreamReader API does not work well in batch scenarios, which only allows Pravega segments to be read sequentially. There's also the problem that residual reader group states does not (gracefully) allow the input format to have multiple passes, or even re-executions on job failures.
This PR reworks the input format to use the experimental batch client instead.
How to verify it

The original FlinkPravegaInputFormatTest.testBatchInput() is expanded to verify multiple passes of the input format, as well as reading a set of multiple input streams.
A new FlinkPravegaInputFormatTest.testBatchInputWithFailure() is added to verify the behaviour in the presence of failures.

The above tests all fail without the rework in FlinkPravegaInputFormat.

@EronWright thanks for the review!
I've addressed your comments. Also, a follow-up issue for writing proper unit tests for the input format was already opened here: https://github.com/pravega/flink-connectors/issues/78.

This is great, thanks so much.    If you have a little more time, just make use of Segment::hashCode() and we're good to merge.

@EronWright updated 👍


Fix "Adding versioning to non-temporal tables"

I don't know what has been going on with these changes recently, but the most recent update removed the PERIOD FOR SYSTEM_TIME clause making it invalid SQL. This change adds this line back in, in the exact same fashion as before.

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

@jborsecnik

#label:"aq-pr-triaged"

There was a recent update that was merged accidentally and I’m looking at fixing it. Thank you for drawing attention to this.

#please-close


Update repositories.txt

Hello @akkoyun. The requested change is now in progress.
Unlike submissions, this type of request is still handled manually. The Library Manager index maintainer occasionally comes through to clear all the outstanding requests and closes those PRs when that is done. If you are subscribed to the linked issue/PR, you'll get a notification at that time: https://github.com/arduino/library-registry/pull/1092