How to implement "passtive" subproject to get data from AP or STA？

Describe the bug
The CSI of the two ESP32 boards cannot be obtained after burning the passive subproject into the third ESP32.
Tool Settings

Baud Rate: [e.g. 1552000]  (using a lower baud rate WILL cause issues. this is the most common issue)
WiFi Channel per Device: [4]
FreeRTOS > Tick rate (Hz): [1000]

To Reproduce
Steps to reproduce the behavior:

Build project(s)  active_ap, active_sta, passive

Flash project(s)  active_ap, active_sta, passive to 3 ESP32s

menuconfig：

When using channel 4 for above 3 projects, I can not sniffer any data from other device, and unable to get data from AP or STA. While CSI can be normally obtained between AP and STA.

Desktop (please complete the following information):

OS: [Ubuntu]

Actually I have get some information when monitor "passive" and encounter some problems as follows

I am unable to test right now, but previously I have seen these panic_abort messages randomly as well. I found reflashing the ESP32 or trying a new ESP32 would often fix the issue.  Try something like this:
idf.py fullclean  # Cleans old build files
idf.py flash monitor

@Sunlu2333 can you please share how to get the csi data using two esp32s

Follow the readme guide and add command ”idf.py set-target esp32“ according to your type of board（e.g. esp32s2、esp32, etc）before "idf.py build".

I am unable to test right now, but previously I have seen these panic_abort messages randomly as well. I found reflashing the ESP32 or trying a new ESP32 would often fix the issue. Try something like this:
idf.py fullclean  # Cleans old build files
idf.py flash monitor

Thank you for your answer. I found that I forgot to check the channel state information in the wifi configuration, and now it works normally. But I have a new problem: When I use one ESP32 board as AP and two ESP32 boards as STAs, which ping the same AP at the same time, and the fourth ESP32 board is assigned to passive, I can only receive CSI from one of the STAs, and the number of packets received is very small (All four boards work in channel 4). Can you give me some suggestions?

For future reference: panic_abort may be caused by not enabling:
Component config > Wi-Fi > WiFi CSI(Channel State Information)

in menuconfig. Thanks for sharing this!
Your second question is a good one. If you have one AP and two STAs, typically one of the STAs overwhelms the AP and the other STA suffers as a result. One solution to this is to allow time between packet transmissions so that both STAs transmit equally. Unfortunately we do not have any public implementations for successfully using multiple STAs with one AP. However, if you are interested in working on implementing and evaluating this project, please let me know. We could always use the help! Thanks!
Also, based on your screenshots, I would suggest increasing the BAUD_RATE so that more CSI data can pass through the serial port.

Follow the readme guide and add command ”idf.py set-target esp32“ according to your type of board（e.g. esp32s2、esp32, etc）before "idf.py build".

@Sunlu2333 which version of the esp-idf are you using? Should idf.py set-target esp32 should be added to the README, or is the default value always esp32?

@Sunlu2333 can you please elaborate on how to print the csi data when using 2 esp32s one for active_ap and the other for active_sta

version: idf 4.4

I'm not sure, but without this command, I saw nothing when opening the monitor.
Before:

After:

How to plot the collected data in the csv file  using matlab or any other tools @StevenMHernandez @Sunlu2333

I believe this issue has been solved. @Sunlu2333, please let me know if you have any other issues with the project.


[console] Api creation some refactor

Issue
N/A
Description
Small refactoring for new code committed for v4 api creation wizard.
Additional context

📚  View the storybook of this branch here

🚀 CI was able to deploy the build of this PR, so you can now try it directly here
Notes: The deployed app is linked to the management API of APIM master. (Same login and password as APIM master)

Clean commit message and add new one to clean scss '@use'


Feeding could handle an empty buffer more gracefully

The CBC encryption feeding example in the README currently reads something like:
encrypter = pyaes.Encrypter(pyaes.AESModeOfOperationCBC(key, iv))
ciphertext = encrypter.feed(plaintext)
# Make a final call to flush any remaining bytes and add paddin
ciphertext += encrypter.feed()

If you pass in an empty string as the plaintext, this results in:
.../.venv/lib/python2.7/site-packages/pyaes/blockfeeder.pyc in feed(self, data)
    163
    164         if self._buffer is None:
--> 165             raise ValueError('already finished feeder')
    166
    167         # Finalize; process the spare bytes we were keeping

ValueError: already finished feeder

This could be made ever so slightly more reliable by changing this line to:
if data is None:

This would make it easier to have a generic encrypt_aes function taking an arbitrary string, without having to handle an empty string as a special case.
Does that seem like a sensible approach?

That absolutely makes sense.
Sorry this has taken so long to get to. I will add a test case this weekend for that case (to reproduce the issue), make that change, and get it updated.

Fixed and updated in pypi.
Thanks!

@ricmoo thank you for the fix!
for the record, fixed in https://github.com/ricmoo/pyaes/commit/23a1b4c0488bd38e03a48120dfda98913f4c87d2

Ah yes! Thank you for including that.


Logic behind input shape change

I'm converting a MobileNet V2 style model, which has an input tensor of 256x256x3 (height, width, channels). After conversion the tensor comes out as 3x256x256, which experimentally turns out to be (channels, height, width). It is of little consequence to me as I have to preprocess the data anyway, but I am curious about the logic behind this shape change, and why just the channels have gotten to the front without the height / width order changing. Does this have something to do with CoreML internals?

Yes, that's just a chosen internal representation of images/feature maps in coremltools.

Okay, thanks for the info, I was just a bit puzzled. The model's working perfectly (and significantly faster than with tflite on Android...) so thanks for all the good work!


add preparser to julia native

I've started working on #47. This is just a quickly thrown together draft but read_keywords should correctly translate any valid .inp file (as defined here) into julia native datatypes while parsing the input as much as possible without any knowledge about the individual keyword specifications. This should make it easier to add support for more keywords in the future.
Is that something thats going in the right direction or should I take a different approach?

Thanks for the draft!

Is that something thats going in the right direction or should I take a different approach?

If you mean as a pre-step before actually parsing the input data, but I'm not sure what the advantage is over parsing it directly in place apart from the availability of the intermediate data-structure. I don't think this strategy can be used for parsing in the end though, since AFAIU it is required to know the specific keywords to parse the file correctly. For example, in the file I linked to in the issue,
everything between the line "*Step, name=Step-1" and "*End Step" belongs to the first load step, and should naturally be grouped. But for materials, there is only "*Material, name=usermat_elastic" followed by a set of belonging keys which specifies it, but no "*End Material" (not a great design IMO, but we can't change that)
So I think the more suitable option is to have a nested structure, and not a linear vector.
data = Dict(
    :parts => Dict{String, AbaqusPart}(p1 => AbaqusPart(), p2 => AbaqusPart()),
    :assembly => AbaqusAssembly(), # Or maybe [Ordered]Dict{String, AbaqusInstance}
    :materials => Dict{String, AbaqusMaterial}(),
    :steps => OrderedDict{String, AbaqusStep}()
    )

Where the AbaqusStep would need to contain a list of boundary conditions etc.
But as you say, this will be less flexible than simply parsing each key separately, but doing only that doesn't make that much sense to me in this package, since I don't think it gives much extra value wrt. how to use the data later.
And doing this properly might be a quite big task, which in the end might turn out to lead to too much code for it to be suitable for inclusion here. I don't want to be too dismissive (cause I think if it can be done in a sleek fashion it would be very nice), but also I don't want you to spend hours on implementing only for the PR not getting accepted (since this would be a nice-to-have addon, but not the core functionality of the package).

Thanks for the Feedback! However, I still think that it's usefull to first parse the .inp file directly into the julia native datastructure before interpreting the data. This parsing step doesn't remove any information, it just makes it easier to work with the data.
I've implemented the read_mesh function using this preparser. It's more robust than the current implementation (it should fix #31) and the overall amount of code has reduced as well.
I do agree that we should use a nested data structure if we want to properly support boundary conditions in the future. However, using this preparser should be a big step in the right direction, as it would make it much easer to construct this nested data as we then don't have to worry about parsing this data on the fly now.


PassthroughCluster doesn't support gRPC

Bug description
when a request inside the mesh tries to go outside the mesh by default it will go through PassthroughCluster.  This gRPC request is failing and envoy log says
HTTP/2" 200 UC "-" "-" 807 0 2 - "-" "grpc-go/1.25.0" "081edcb4-ff81-4a61-9a06-ec610533cfb3" "mygrpc.mydomain.com:80" "<IP_ADDRESS>:80" PassthroughCluster - <IP_ADDRESS>:80 <IP_ADDRESS>:55762 - -
It is working properly when disabling Istio proxy. Also, the HTTP request is working properly
Expected behavior
PassthroughCluster cluster should support this since it is TCP proxy
Steps to reproduce the bug
Make a gRPC request to outside the mesh
Version (include the output of istioctl version --remote and kubectl version and helm version if you used Helm)
➜ istioctl version --remote
client version: 1.4.0
citadel version: 1.4.0
galley version: 1.4.0
ingressgateway version: 1.4.0
pilot version: 1.4.0
pilot-ingressgateway version:
sidecar-injector version: 1.4.0
data plane version: 1.4.0 (22 proxies)

➜ kubectl version
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T23:41:55Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"14+", GitVersion:"v1.14.7-gke.23", GitCommit:"81c87c699557fed991e292cd328b2129c2f242a2", GitTreeState:"clean", BuildDate:"2019-11-07T19:23:23Z", GoVersion:"go1.12.11b4", Compiler:"gc", Platform:"linux/amd64"}

➜ helm version
Client: &version.Version{SemVer:"v2.11.0", GitCommit:"2e55dbe1fdb5fdb96b75ff144a339489417b146b", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.14.3", GitCommit:"0e7f3b6637f7af8fcfddb3d2941fcc7cbebb0085", GitTreeState:"clean"}

How was Istio installed?
Using Helm with Istio multicluster shared control plane (single-network) setup
Environment where bug was observed (cloud vendor, OS, etc)
GKE 1.14

Were you able to get an example we can reproduce?

@howardjohn sorry for the late response
I have tested with different service and it was returning the same error in the PassthroughCluster
[2020-05-16T05:28:42.247Z] "POST /proto.CustomerService/AddPerson HTTP/2" 200 UC "-" "-" 19 0 2 - "-" "grpc-python/1.19.0 grpc-c/7.0.0 (linux; chttp2; gold)" "0eb5422b-4fb8-419c-9181-02a19a5ad81a" "othergrpc.example.com:80" "<IP_ADDRESS>:80" PassthroughCluster - <IP_ADDRESS>:80 <IP_ADDRESS>:50428 - -
One thing that I notice is that this is failing only if the target port is 80 but when I tested with other port (e.g. 9090) it was working fine. So to reproduce this you can create gRPC server outside the mesh which listen to port 80 and try to deploy a client to access that server inside a mesh with istio-proxy sidecar

I am fairly sure https://github.com/istio/istio/pull/24712 will fix this. Would be great if you can try it

Hey, thank you for this! Can you point me to the doc where we can use the Istio setup in the master branch?

you can download the latest builds from https://github.com/istio/istio/wiki/Dev Builds

Did you get a chance to try this out?

I have tested this myself so I will assume its resolved. If you did get a chance to test it and see issues still, please reopen,

Hi, I also have this problem in istio 1.6.7....
While my scenario is a little different. I send a GRPC stream to a clusterIP with a "wrong destination url". In this case, the "wrong destination url" means url in http is not "service.namespace.svc.cluster.local" or just in short "service.namespace".
So as I understand it, the grpc stream is listened to by the clusterIP listener. But since the domain doesn't match in the router, the stream will be intercepted by allow_any and processed by passthroughputcluster.
However, an error will occur. According to the client logs, gprc http2 is converted to http1.1.
For comparison, in the same scenario, there is no problem with using http1.1 to transfer data.
I see that you have fixed the default passthroughcluster grpc transmission problem, can you please tell me if the same problem exists in the passthroughcluster of the router with a allow_any route after listened by a listener on a cluterIP?


Add pyproject.toml for Custom Node Registry

We are building a global registry for custom nodes (similar to PyPI). The registry makes using custom nodes more reliable by reserving globally unique names for each custom node, and supporting semantic versioning.
Here’s some more information on the registry.
Action Required:

[ ] Go to the registry. Login and create a publisher id. Comment it here and we will update the PR (or just merge it and change it yourself).
[ ] Write a short the description.
[ ] Merge the separate Github Actions PR and run the workflow.
If you want to publish the node manually, install the cli and run comfy node publish

Please message me on Discord if you have any questions!

Hey @ParisNeo !!! Saw that you approved the PR which is amazing!!!!! Just a few last steps to get you onboarded 🚀
Steps:

Go to the registry. [https://www.comfyregistry.org/]
Login and create a publisher id.
Update the toml file with your publisher ID, and publish your node either through the CLI or with GH Actions!

There's also like a 1minute video we made too teehee - https://youtu.be/WhOZZOgBggU
Let me know if there is anything else I can help with!!

@ParisNeo, wondering if there's any way we can support you on this PR!

Hi. I'm sorry for the delay. The nodes are currently broken beceause of a huge upgrades in lollms that requires me to make many changes. I'll get back to you when i finalement sh fixing everything.

of course! that sounds great - hope to see you guys soon on the registry
haha
On Sat, Jun 22, 2024 at 9:01 AM Saifeddine ALOUI @.***>
wrote:

Hi. I'm sorry for the delay. The nodes are currently broken beceause of a
huge upgrades in lollms that requires me to make many changes. I'll get
back to you when i finalement sh fixing everything.
—
Reply to this email directly, view it on GitHub
https://github.com/ParisNeo/lollms_nodes_suite/pull/2#issuecomment-2184024749,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BG3AD2NZXJRLZGKDYNEGREDZIVYRLAVCNFSM6AAAAABIETM3OSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGAZDINZUHE
.
You are receiving this because you authored the thread.Message ID:
@.***>


Upgrade peerDependencies history to v2?

Any plan on upgrading history to v2?

See https://github.com/rackt/scroll-behavior/issues/28.


[DRAFT] Add reverse map for afffected by relationship of stores

This reverse map will store all affected by relation ship for the constituents of groups. Beaware that I don't find a good solution now to calculate the relationship change simply based on the store changes, because we can not know the full stores tree diagram from one single store changes. So the way I used here is calculate it by full scan after the store changes, and replace the result in the map. So this will bring performance problem during the store change process. We must be aware of this.

I think one thing I missed in this PR is: how to migrate or construct this reverse map in indy migration?

I wonder if we could do the reverse-map construction as a migration step on boot? Then, we could maintain it when things change. We might also be able to look to see whether the reverse map is empty and skip the migration step (at boot) if it contains data...

Close this as included in https://github.com/Commonjava/indy/pull/1480


added EscoCoin Token (#1190)

Token Website
https://escocoin.com/
Token Contract
https://etherscan.io/token/0x7163436b8EfFfB469F6BB81cc908b1661d4795e6
Token Socials
https://t.me/escocoinofficial
https://twitter.com/escocoin

Your image size is pretty big - are you able to improve SVG to reduce it to < 10Kb?

png will work ?

No SVG is required - this has to be vector file

For Price you can use CoinMarketCap link
https://coinmarketcap.com/currencies/esco-coin/

Thanks for approval how much time will it take to reflect on metamask also what about price ?


Upgrade angular version to latest

Hi,
Any idea why I got the below list of errors , on npm run serve.dev ?
thanks very much
Lior
app/app.ts(1,58): error TS2307: Cannot find module 'angular2/angular2'.
app/app.ts(2,63): error TS2307: Cannot find module 'angular2/router'.
app/components/alerts/alerts.ts(1,47): error TS2307: Cannot find module 'angular2/angular2'.
app/components/dashboard/dashboard.ts(1,31): error TS2307: Cannot find module 'angular2/angular2'.
app/components/dashboard/dashboard.ts(3,22): error TS2307: Cannot find module 'components/alerts/alerts'.
app/components/dashboard/dashboard.ts(6,25): error TS2307: Cannot find module 'components/rd-loading/rd-loading'.
app/components/dashboard/dashboard.ts(7,24): error TS2307: Cannot find module 'components/rd-widget/rd-widget'.
app/components/dashboard/dashboard.ts(9,30): error TS2307: Cannot find module 'components/rd-widget-header/rd-widget-header'.
app/components/dashboard/dashboard.ts(10,28): error TS2307: Cannot find module 'components/rd-widget-body/rd-widget-body'.
app/components/dashboard/dashboard.ts(11,30): error TS2307: Cannot find module 'components/rd-widget-footer/rd-widget-footer'.
app/components/dashboard/dashboard.ts(13,30): error TS2307: Cannot find module 'components/server-list-view/server-list-view'.
app/components/dashboard/dashboard.ts(14,33): error TS2307: Cannot find module 'services/server_list'.
app/components/dashboard/dashboard.ts(16,28): error TS2307: Cannot find module '
....

I have the same issues and I see then no theme. Looks like the css is missing on the site. I will try to take a look into the code as well..

@lmessinger did you manage solving your problem ?

hi @all I have started to upgrade angular to latest version in angular-upgrade branch

Hi @all,I have upgraded angular to latest version so this should be fixed this


Laravel module + Doctrine ORM cleanup not working

What are you trying to achieve?
Rollback transactions between each test
What do you get instead?
Database changes not reverted

Provide console output if related. Use -vvv mode for more details.

vendor/bin/codecept -vvv run api
Codeception PHP Testing Framework v4.1.4
Powered by PHPUnit 8.5.4 by Sebastian Bergmann and contributors.
Running with seed:

Api Tests (2) --------------------------------------------------------------------------------------------------------
Modules: \Helper\Api, Cli, Laravel5, REST
----------------------------------------------------------------------------------------------------------------------
Recreating database...
Dropped all tables successfully.
Database seeding completed successfully.
done!
UserRegistrationCest: Registration success test
Signature: UserRegistrationCest:registrationSuccessTest
Test: tests/api/UserRegistrationCest.php:registrationSuccessTest
Scenario --
**[Database] Transaction started**
I send post "http://api.project.local/v1/auth/register",{"email":"davert@codeception.com","phone":"+380670000222","pa...}
[Request] POST http://api.project.local/v1/auth/register {"email":"davert@codeception.com","phone":"+380670000222","password":"password","firstName":"firstName","lastName":"firstName","username":"username","inviteHash":"invite","nationality":"nationality","country":"USA","city":"NY","street":"Park Avenue","homeNumber":"256","zip":"23699","birthDate":"1988-01-01"}
[Request Headers] []
[Page] http://api.project.local/v1/auth/register
[Response] 201
[Request Cookies] []
[Response Headers] {"cache-control":["no-cache, private"],"date":["Fri, 08 May 2020 13:23:10 GMT"],"content-type":["application/json"]}
[Response] {"result":{},"version":"v0.0.1","memory-c":40.9822,"memory-p":41.1235}
I see response code is 201
I see response is json
I can see response contains json {"result":[]}
PASSED

**[Database] Transaction cancelled; all changes reverted.**

UserRegistrationCest: Registration success2 test
Signature: UserRegistrationCest:registrationSuccess2Test
Test: tests/api/UserRegistrationCest.php:registrationSuccess2Test
Scenario --
**[Database] Transaction started**
I send post "http://api.project.local/v1/auth/register",{"email":"davert@codeception.com","phone":"+380670000222","pa...}
[Request] POST http://api.project.local/v1/auth/register {"email":"davert@codeception.com","phone":"+380670000222","password":"password","firstName":"firstName","lastName":"firstName","username":"username","inviteHash":"invite","nationality":"nationality","country":"USA","city":"NY","street":"Park Avenue","homeNumber":"256","zip":"23699","birthDate":"1988-01-01"}
[Request Headers] []
[Page] http://api.project.local/v1/auth/register
[Response] 422
[Request Cookies] []
[Response Headers] {"cache-control":["no-cache, private"],"date":["Fri, 08 May 2020 13:23:11 GMT"],"content-type":["application/json"],"access-control-allow-origin":[null],"vary":["Origin"]}
[Response] {"version":"v0.0.1","messages":[{"severity":"error","text":"The given data was invalid.","code":422}],"validation":{"phone":["The phone has already been taken."],"username":["The username has already been taken."],"email":["The email has already been taken."]},"memory-c":43.3535,"memory-p":43.3658}
I see response code is 201
FAIL

**[Database] Transaction cancelled; all changes reverted.**
----------------------------------------------------------------------------------------------------------------------
Tests ran into 'codeception' environtment

Time: 11.5 seconds, Memory: 44.50 MB

There was 1 failure:

---------
1) UserRegistrationCest: Registration success2 test
Test  tests/api/UserRegistrationCest.php:registrationSuccess2Test
Step  See response code is 201
Fail  Expected HTTP Status Code: 201 (Created). Actual Status Code: 422 (Unprocessable Entity)
Failed asserting that 422 matches expected 201.

Scenario Steps:

2. $I->seeResponseCodeIs(201) at tests/api/UserRegistrationCest.php:56
1. $I->sendPOST("http://api.project.local/v1/auth/register",{"email":"davert@codeception.com","phone":"+380670000222...})at tests/api/UserRegistrationCest.php:41

/www/refactor/vendor/phpunit/phpunit/src/Framework/Constraint/IsEqual.php:96
/www/refactor/vendor/phpunit/phpunit/src/Framework/Assert.php:2887
/www/refactor/vendor/phpunit/phpunit/src/Framework/Assert.php:602
/www/refactor/vendor/codeception/lib-asserts/src/Codeception/Util/Shared/Asserts.php:41
/www/refactor/vendor/codeception/lib-innerbrowser/src/Codeception/Lib/InnerBrowser.php:1671
/www/refactor/vendor/codeception/module-rest/src/Codeception/Module/REST.php:1269
/www/refactor/vendor/codeception/codeception/src/Codeception/Step.php:268
/www/refactor/vendor/codeception/codeception/src/Codeception/Scenario.php:76
/www/refactor/tests/_support/_generated/ApiTesterActions.php:3351
/www/refactor/tests/api/UserRegistrationCest.php:56
/www/refactor/vendor/codeception/codeception/src/Codeception/Lib/Di.php:127
/www/refactor/vendor/codeception/codeception/src/Codeception/Test/Cest.php:138
/www/refactor/vendor/codeception/codeception/src/Codeception/Test/Cest.php:150
/www/refactor/vendor/codeception/codeception/src/Codeception/Test/Cest.php:82
/www/refactor/vendor/codeception/codeception/src/Codeception/Test/Test.php:88
/www/refactor/vendor/phpunit/phpunit/src/Framework/TestSuite.php:597
/www/refactor/vendor/codeception/phpunit-wrapper/src/Runner.php:117
/www/refactor/vendor/codeception/codeception/src/Codeception/SuiteManager.php:161
/www/refactor/vendor/codeception/codeception/src/Codeception/Codecept.php:196
/www/refactor/vendor/codeception/codeception/src/Codeception/Codecept.php:163
/www/refactor/vendor/codeception/codeception/src/Codeception/Command/Run.php:503
/www/refactor/vendor/codeception/codeception/src/Codeception/Command/Run.php:397
/www/refactor/vendor/symfony/console/Command/Command.php:255
/www/refactor/vendor/symfony/console/Application.php:1001
/www/refactor/vendor/symfony/console/Application.php:271
/www/refactor/vendor/symfony/console/Application.php:147
/www/refactor/vendor/codeception/codeception/src/Codeception/Application.php:117
/www/refactor/vendor/codeception/codeception/app.php:46
/www/refactor/vendor/codeception/codeception/app.php:47
/www/refactor/vendor/codeception/codeception/codecept:7

Artifacts:

Html: /www/refactor/tests/_output/UserRegistrationCest.registrationSuccess2Test.fail.json
Response: /www/refactor/tests/_output/UserRegistrationCest.registrationSuccess2Test.fail.json
Body: {"version":"v0.0.1","messages":[{"severity":"error","text":"The given data was invalid.","code":422}],"validation":{"phone":["The phone has already been taken."],"username":["The username has already been taken."],"email":["The email has already been taken."]},"memory-c":43.3535,"memory-p":43.3658}

FAILURES!
Tests: 2, Assertions: 5, Failures: 1.

Provide test source code if related

<?php

/**
 * Class UserRegistrationCest
 */
class UserRegistrationCest
{

    /**
     * @param ApiTester $I
     */
    public function registrationSuccessTest(ApiTester $I)
    {
        $I->sendPOST(route('api.v1.auth.register'), [
            'email'       =><EMAIL_ADDRESS>            'phone'       => '+380670000222',
            'password'    => 'password',
            'firstName'   => 'firstName',
            'lastName'    => 'firstName',
            'username'    => 'username',
            'inviteHash'  => 'invite',
            'nationality' => 'nationality',
            'country'     => 'USA',
            'city'        => 'NY',
            'street'      => 'Park Avenue',
            'homeNumber'  => '256',
            'zip'         => '23699',
            'birthDate'   => '1988-01-01',
        ]);
        $I->seeResponseCodeIs(\Codeception\Util\HttpCode::CREATED); // 201
        $I->seeResponseIsJson();
        $I->canSeeResponseContainsJson(['result' => []]);
    }

    /**
     * @param ApiTester $I
     */
    public function registrationSuccess2Test(ApiTester $I)
    {
        $I->sendPOST(route('api.v1.auth.register'), [
            'email'       =><EMAIL_ADDRESS>            'phone'       => '+380670000222',
            'password'    => 'password',
            'firstName'   => 'firstName',
            'lastName'    => 'firstName',
            'username'    => 'username',
            'inviteHash'  => 'invite',
            'nationality' => 'nationality',
            'country'     => 'USA',
            'city'        => 'NY',
            'street'      => 'Park Avenue',
            'homeNumber'  => '256',
            'zip'         => '23699',
            'birthDate'   => '1988-01-01',
        ]);
        $I->seeResponseCodeIs(\Codeception\Util\HttpCode::CREATED); // 201
        $I->seeResponseIsJson();
        $I->canSeeResponseContainsJson(['result' => []]);
    }
}

Details

Codeception version:
PHP Version: 4.1.4
Operating System: Unbuntu 20.04
Installation type: Composer
List of installed packages (composer show)

asm89/stack-cors                      1.3.0     Cross-origin resource sharing library and stack middleware
barryvdh/laravel-cors                 v0.11.4   Adds CORS (Cross-Origin Resource Sharing) headers support in your...
barryvdh/laravel-ide-helper           v2.7.0    Laravel IDE Helper, generates correct PHPDocs for all Facade clas...
barryvdh/reflection-docblock          v2.0.6
behat/gherkin                         v4.6.2    Gherkin DSL parser for PHP 5.3
beyondcode/laravel-dump-server        1.3.0     Symfony Var-Dump Server for Laravel
cakephp/chronos                       1.3.0     A simple API extension for DateTime.
codeception/codeception               4.1.4     BDD-style testing framework
codeception/lib-asserts               1.12.0    Assertion methods used by Codeception core and Asserts module
codeception/lib-innerbrowser          1.3.1     Parent library for all Codeception framework modules and PhpBrowser
codeception/module-asserts            1.2.1     Codeception module containing various assertions
codeception/module-cli                1.0.2     Codeception module for testing basic shell commands and shell output
codeception/module-db                 1.0.1     WebDriver module for Codeception
codeception/module-doctrine2          1.0.1     Doctrine2 module for Codeception
codeception/module-laravel5           1.1.0     Codeception module for Laravel 5 framework
codeception/module-phpbrowser         1.0.0     Codeception module for testing web application over HTTP
codeception/module-rest               1.2.0     REST module for Codeception
codeception/module-symfony            1.1.0     Codeception module for Symfony framework
codeception/phpunit-wrapper           8.1.2     PHPUnit classes used by Codeception
codeception/stub                      3.6.1     Flexible Stub wrapper for PHPUnit's Mock Builder
composer/ca-bundle                    1.2.7     Lets you find a path to the system CA bundle, and includes a fall...
composer/composer                     1.10.6    Composer helps you declare, manage and install dependencies of PH...
composer/semver                       1.5.1     Semver library that offers utilities, version constraint parsing ...
composer/spdx-licenses                1.5.3     SPDX licenses list and validation library.
composer/xdebug-handler               1.4.1     Restarts a process without Xdebug.
creof/doctrine2-spatial               1.2.0     Doctrine2 multi-platform support for spatial types and functions
creof/geo-parser                      2.2.1     Parser for geography coordinate strings
creof/wkb-parser                      v2.3.0    Parser for well-known binary (WKB/EWKB) object data
creof/wkt-parser                      2.2.0     Parser for well-known text (WKT) object strings
defuse/php-encryption                 v2.2.1    Secure PHP Encryption Library
dnoegel/php-xdg-base-dir              v0.1.1    implementation of xdg base directory specification for php
doctrine/annotations                  1.10.2    Docblock Annotations Parser
doctrine/cache                        1.10.0    PHP Doctrine Cache library is a popular cache implementation that...
doctrine/collections                  1.6.4     PHP Doctrine Collections library that adds additional functionali...
doctrine/common                       2.12.0    PHP Doctrine Common project is a library that provides additional...
doctrine/dbal                         2.10.2    Powerful PHP database abstraction layer (DBAL) with many features...
doctrine/event-manager                1.1.0     The Doctrine Event Manager is a simple PHP event system that was ...
doctrine/inflector                    1.3.1     Common String Manipulations with regard to casing and singular/pl...
doctrine/instantiator                 1.3.0     A small, lightweight utility to instantiate objects in PHP withou...
doctrine/lexer                        1.2.0     PHP Doctrine Lexer parser library that can be used in Top-Down, R...
doctrine/migrations                   v1.8.1    Database Schema migrations using Doctrine DBAL
doctrine/orm                          v2.7.2    Object-Relational-Mapper for PHP
doctrine/persistence                  1.3.7     The Doctrine Persistence project is a set of shared interfaces an...
doctrine/reflection                   1.2.1     The Doctrine Reflection project is a simple library used by the v...
dragonmantank/cron-expression         v2.3.0    CRON for PHP: Calculate the next or previous run date and determi...
egulias/email-validator               2.1.17    A library for validating emails against several RFCs
facade/flare-client-php               1.3.2     Send PHP errors to Flare
facade/ignition                       1.16.1    A beautiful error page for Laravel applications.
facade/ignition-contracts             1.0.0     Solution contracts for Ignition
fideloper/proxy                       4.3.0     Set trusted proxies for Laravel
filp/whoops                           2.7.2     php error handling for cool kids
firebase/php-jwt                      v5.2.0    A simple library to encode and decode JSON Web Tokens (JWT) in PH...
flow/jsonpath                         0.5.0     JSONPath implementation for parsing, searching and flattening arrays
fzaninotto/faker                      v1.9.1    Faker is a PHP library that generates fake data for you.
giggsey/libphonenumber-for-php        8.12.3    PHP Port of Google's libphonenumber
giggsey/locale                        1.8       Locale functions required by libphonenumber-for-php
guzzlehttp/guzzle                     6.5.3     Guzzle is a PHP HTTP client library
guzzlehttp/promises                   v1.3.1    Guzzle promises library
guzzlehttp/psr7                       1.6.1     PSR-7 message implementation that also provides common utility me...
hamcrest/hamcrest-php                 v2.0.0    This is the PHP port of Hamcrest Matchers
intervention/image                    2.5.1     Image handling and manipulation library with support for Laravel ...
itsgoingd/clockwork                   v4.1.3    php dev tools integrated to your browser
jakub-onderka/php-console-color       v0.2
jakub-onderka/php-console-highlighter v0.4      Highlight PHP code in terminal
jdorn/sql-formatter                   v1.2.17   a PHP SQL highlighting library
jean85/pretty-package-versions        1.2       A wrapper for ocramius/package-versions to get pretty versions st...
justinrainbow/json-schema             5.2.9     A library to validate a json schema.
laminas/laminas-code                  3.4.1     Extensions to the PHP Reflection API, static code scanning, and c...
laminas/laminas-eventmanager          3.2.1     Trigger and listen to events within a PHP application
laminas/laminas-zendframework-bridge  1.0.3     Alias legacy ZF class names to Laminas Project equivalents.
laravel-doctrine/migrations           1.3.2     Doctrine Migrations for Laravel
laravel-doctrine/orm                  1.5.7     A Doctrine ORM bridge for Laravel 5
laravel/framework                     v6.18.13  The Laravel Framework.
laravel/homestead                     v9.4.1    A virtual machine for web artisans.
laravel/horizon                       v3.7.2    Dashboard and code-driven configuration for Laravel queues.
laravel/passport                      v7.5.1    Laravel Passport provides OAuth2 server support to Laravel.
laravel/telescope                     v2.1.7    An elegant debug assistant for the Laravel framework.
laravel/tinker                        v1.0.10   Powerful REPL for the Laravel framework.
laravel/ui                            v1.2.0    Laravel UI utilities and presets.
lcobucci/jwt                          3.3.1     A simple library to work with JSON Web Token and JSON Web Signature
league/commonmark                     1.4.3     Highly-extensible PHP Markdown parser which fully supports the Co...
league/event                          2.2.0     Event package
league/flysystem                      1.0.67    Filesystem abstraction: Many filesystems, one API.
league/iso3166                        2.1.5     ISO 3166-1 PHP Library
league/oauth2-server                  7.4.0     A lightweight and powerful OAuth 2.0 authorization and resource s...
mockery/mockery                       1.3.1     Mockery is a simple yet flexible PHP mock object framework
monolog/monolog                       2.0.2     Sends your logs to files, sockets, inboxes, databases and various...
moontoast/math                        1.2.1     A mathematics library, providing functionality for large numbers
myclabs/deep-copy                     1.9.5     Create deep copies (clones) of your objects
nesbot/carbon                         2.33.0    An API extension for DateTime that supports 281 different languages.
nette/bootstrap                       v3.0.1    🅱 Nette Bootstrap: the simple way to configure and bootstrap y...
nette/di                              v3.0.3    💎 Nette Dependency Injection Container: Flexible, compiled and...
nette/finder                          v2.5.2    🔍 Nette Finder: find files and directories with an intuitive API.
nette/neon                            v3.1.2    🍸 Nette NEON: encodes and decodes NEON file format.
nette/php-generator                   v3.3.4    🐘 Nette PHP Generator: generates neat PHP code for you. Suppor...
nette/robot-loader                    v3.2.3    🍀 Nette RobotLoader: high performance and comfortable autoload...
nette/schema                          v1.0.2    📐 Nette Schema: validating data structures against a given Sch...
nette/utils                           v3.1.1    🛠 Nette Utils: lightweight utilities for string & array manipu...
nikic/php-parser                      v4.4.0    A PHP parser written in PHP
nunomaduro/collision                  v3.0.1    Cli error handling for console/command-line PHP applications.
nunomaduro/larastan                   v0.4.3    Larastan - Discover bugs in your code without running it. A phpst...
ocramius/package-versions             1.8.0     Composer plugin that provides efficient querying for installed pa...
ocramius/proxy-manager                2.8.0     A library providing utilities to generate, instantiate and genera...
opis/closure                          3.5.1     A library that can be used to serialize closures (anonymous funct...
paragonie/random_compat               v9.99.99  PHP 5.x polyfill for random_bytes() and random_int() from PHP 7
phar-io/manifest                      1.0.3     Component for reading phar.io manifest information from a PHP Arc...
phar-io/version                       2.0.1     Library for handling version information and constraints
phpdocumentor/reflection-common       2.1.0     Common reflection classes used by phpdocumentor to reflect the co...
phpdocumentor/reflection-docblock     5.1.0     With this component, a library can provide support for annotation...
phpdocumentor/type-resolver           1.1.0     A PSR-5 based resolver of Class names, Types and Structural Eleme...
phpoption/phpoption                   1.7.3     Option Type for PHP
phpseclib/bcmath_compat               1.0.5     PHP 5.x/7.x polyfill for bcmath extension
phpseclib/phpseclib                   2.0.27    PHP Secure Communications Library - Pure-PHP implementations of R...
phpspec/prophecy                      v1.10.3   Highly opinionated mocking framework for PHP 5.3+
phpstan/phpdoc-parser                 0.3.5     PHPDoc parser with support for nullable, intersection and generic...
phpstan/phpstan                       0.11.19   PHPStan - PHP Static Analysis Tool
phpunit/php-code-coverage             7.0.10    Library that provides collection, processing, and rendering funct...
phpunit/php-file-iterator             2.0.2     FilterIterator implementation that filters files based on a list ...
phpunit/php-text-template             1.2.1     Simple template engine.
phpunit/php-timer                     2.1.2     Utility class for timing
phpunit/php-token-stream              3.1.1     Wrapper around PHP's tokenizer extension.
phpunit/phpunit                       8.5.4     The PHP Unit Testing framework.
predis/predis                         v1.1.1    Flexible and feature-complete Redis client for PHP and HHVM
psr/container                         1.0.0     Common Container Interface (PHP FIG PSR-11)
psr/http-factory                      1.0.1     Common interfaces for PSR-7 HTTP message factories
psr/http-message                      1.0.1     Common interface for HTTP messages
psr/log                               1.1.3     Common interface for logging libraries
psr/simple-cache                      1.0.1     Common interfaces for simple caching
psy/psysh                             v0.9.12   An interactive shell for modern PHP.
ralouphie/getallheaders               3.0.3     A polyfill for getallheaders.
ramsey/uuid                           3.9.3     Formerly rhumsaa/uuid. A PHP 5.4+ library for generating RFC 4122...
scrivo/highlight.php                  v<IP_ADDRESS> Server side syntax highlighter that supports 185 languages. It's ...
sebastian/code-unit-reverse-lookup    1.0.1     Looks up which function or method a line of code belongs to
sebastian/comparator                  3.0.2     Provides the functionality to compare PHP values for equality
sebastian/diff                        3.0.2     Diff implementation
sebastian/environment                 4.2.3     Provides functionality to handle HHVM/PHP environments
sebastian/exporter                    3.1.2     Provides the functionality to export PHP variables for visualization
sebastian/global-state                3.0.0     Snapshotting of global state
sebastian/object-enumerator           3.0.3     Traverses array structures and object graphs to enumerate all ref...
sebastian/object-reflector            1.1.1     Allows reflection of object attributes, including inherited and n...
sebastian/recursion-context           3.0.0     Provides functionality to recursively process PHP variables
sebastian/resource-operations         2.0.1     Provides a list of PHP built-in functions that operate on resources
sebastian/type                        1.1.3     Collection of value objects that represent the types of the PHP t...
sebastian/version                     2.0.1     Library that helps with managing the version number of Git-hosted...
seld/jsonlint                         1.8.0     JSON Linter
seld/phar-utils                       1.1.0     PHAR file format utilities, for when PHP phars you up
squizlabs/php_codesniffer             3.5.5     PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detec...
swiftmailer/swiftmailer               v6.2.3    Swiftmailer, free feature-rich PHP mailer
symfony/browser-kit                   v5.0.8    Symfony BrowserKit Component
symfony/console                       v4.4.8    Symfony Console Component
symfony/css-selector                  v5.0.8    Symfony CssSelector Component
symfony/debug                         v4.4.8    Symfony Debug Component
symfony/dom-crawler                   v5.0.8    Symfony DomCrawler Component
symfony/error-handler                 v4.4.8    Symfony ErrorHandler Component
symfony/event-dispatcher              v4.4.8    Symfony EventDispatcher Component
symfony/event-dispatcher-contracts    v1.1.7    Generic abstractions related to dispatching event
symfony/filesystem                    v5.0.8    Symfony Filesystem Component
symfony/finder                        v4.4.8    Symfony Finder Component
symfony/http-foundation               v4.4.8    Symfony HttpFoundation Component
symfony/http-kernel                   v4.4.8    Symfony HttpKernel Component
symfony/mime                          v5.0.8    A library to manipulate MIME messages
symfony/polyfill-ctype                v1.15.0   Symfony polyfill for ctype functions
symfony/polyfill-iconv                v1.15.0   Symfony polyfill for the Iconv extension
symfony/polyfill-intl-idn             v1.15.0   Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-mbstring             v1.15.0   Symfony polyfill for the Mbstring extension
symfony/polyfill-php72                v1.15.0   Symfony polyfill backporting some PHP 7.2+ features to lower PHP ...
symfony/polyfill-php73                v1.15.0   Symfony polyfill backporting some PHP 7.3+ features to lower PHP ...
symfony/process                       v4.4.8    Symfony Process Component
symfony/psr-http-message-bridge       v1.3.0    PSR HTTP message bridge
symfony/routing                       v4.4.8    Symfony Routing Component
symfony/serializer                    v5.0.8    Symfony Serializer Component
symfony/service-contracts             v2.0.1    Generic abstractions related to writing services
symfony/translation                   v4.4.8    Symfony Translation Component
symfony/translation-contracts         v2.0.1    Generic abstractions related to translation
symfony/var-dumper                    v4.4.8    Symfony mechanism for exploring and dumping PHP variables
symfony/yaml                          v5.0.8    Symfony Yaml Component
theseer/tokenizer                     1.1.3     A small library for converting tokenized PHP source code into XML...
tijsverkoyen/css-to-inline-styles     2.2.2     CssToInlineStyles is a class that enables you to convert HTML-pag...
vlucas/phpdotenv                      v3.6.4    Loads environment variables from `.env` to `getenv()`, `$_ENV` an...
webimpress/safe-writer                2.0.1     Tool to write files safely, to avoid race conditions
webmozart/assert                      1.8.0     Assertions to validate method input/output with nice error messages.
zendframework/zend-diactoros          2.2.1     PSR HTTP Message implementations

Suite configuration:

actor: ApiTester
modules:
    enabled:
        - \Helper\Api
        - Cli
        #- Db
        #- Doctrine2:
            #connection_callback: ['Doctrine\Common\Persistence\ManagerRegistry', 'getManager']
            #connection_callback: ['Doctrine\ORM\EntityManagerInterface', 'getConnection']
            #cleanup: true
        - Laravel5:
            environment_file: .env.codeception
            cleanup: true #wrap each test in ORM transaction
            #depends: Doctrine2
        - REST:
            url: http://api.project.local/v1/
            depends: Laravel5
            part: Json
extensions:
  enabled:
    - \Extension\Api

At the end the first test passed but the second one which is trying to insert the same db record fails and the previous one is not removed.
What's specific in this project is that is uses Laravel (6.18.13) with Doctrine (1.5 provided by laravel-doctrine/orm). I tried everything possible I could find without success.
What's obvious is [Database] Transaction started / [Database] Transaction cancelled; all changes reverted.
Could it be that the Laravel5 module only supports Eloquent?
Refering here https://codeception.com/for/laravel#functional-tests it is stated:
"Codeception will also use Eloquent to cleanup changes to database by wrapping tests into transaction and rolling it back in the end of a test. This makes tests isolated and fast. Laravel5 module allows to access services from DIC container, user authentication methods, fixture generators, check form validations and more."
If so what options do I have to make this work with Doctrine?

@TavoNiievez Would it be possible to implement DoctrineProvider interface in Laravel module?
Symfony implementation

@TavoNiievez Would it be possible to implement DoctrineProvider interface in Laravel module?
Symfony implementation

Would it be possible to implement the DoctrineProvider interface in the Laravel module?

Absolutely yes.
However, by far, that's not the biggest challenge.
To implement this method, we should also check that the integration of the Doctrine and Laravel modules works in their entirety. To achieve that, we should then have another 2 branches in the test project where Eloquent is replaced by Doctrine, for the two Laravel versions that are currently being tested (6.x LTS and the most recent 8.x main).
The most popular way to integrate the Doctrine ORM into Laravel is with the lavarel-doctrine project, although it is currently possible to install it in Laravel 8 "laravel-doctrine/orm": "1.7.*", with few dependencies changes:
  - Downgrading doctrine/inflector (2.0.3 => 1.4.3)
  - Downgrading doctrine/dbal (3.0.0 => 2.12.1)

The operation of that library with PHP 8 is uncertain.
There are complete but somewhat outdated guides with which you can achieve this in the test project, updating some things like the validation in Laravel, Use xml as a format for mapping instead of yaml (since this last is deprecated) and well, no need for Laravel Passport for this purpose.
I personally don't use Laravel + Doctrine configurations in my personal projects, so I can gladly guide the process if anyone is interested in forking the test project and integrating Doctrine for the two branches mentioned.
From there the implementation of _getEntityManager() can be carried out, and tests could be written to verify the integration, as well as update create the corresponding documentation.

Would it be possible to implement the DoctrineProvider interface in the Laravel module?

Absolutely yes.
However, by far, that's not the biggest challenge.
To implement this method, we should also check that the integration of the Doctrine and Laravel modules works in their entirety. To achieve that, we should then have another 2 branches in the test project where Eloquent is replaced by Doctrine, for the two Laravel versions that are currently being tested (6.x LTS and the most recent 8.x main).
The most popular way to integrate the Doctrine ORM into Laravel is with the lavarel-doctrine project, although it is currently possible to install it in Laravel 8 "laravel-doctrine/orm": "1.7.*", with few dependencies changes:
  - Downgrading doctrine/inflector (2.0.3 => 1.4.3)
  - Downgrading doctrine/dbal (3.0.0 => 2.12.1)

The operation of that library with PHP 8 is uncertain.
There are complete but somewhat outdated guides with which you can achieve this in the test project, updating some things like the validation in Laravel, Use xml as a format for mapping instead of yaml (since this last is deprecated) and well, no need for Laravel Passport for this purpose.
I personally don't use Laravel + Doctrine configurations in my personal projects, so I can gladly guide the process if anyone is interested in forking the test project and integrating Doctrine for the two branches mentioned.
From there the implementation of _getEntityManager() can be carried out, and tests could be written to verify the integration, as well as update create the corresponding documentation.

This was the way I implemented it locally... not sure if it is the best but it works:
    public function _getEntityManager()
    {
        if (!$this->client) {
            $this->client = new LaravelConnector($this);
        }
        return $this->app['em'];
    }

However, I can confirm that just adding it does not solve this issue.

This was the way I implemented it locally... not sure if it is the best but it works:
    public function _getEntityManager()
    {
        if (!$this->client) {
            $this->client = new LaravelConnector($this);
        }
        return $this->app['em'];
    }

However, I can confirm that just adding it does not solve this issue.

What's wrong with this issue is that, for some reason, the _before hook of the Doctrine module executes before the one of the Laravel module, while the _after hook of the Doctrine module never executes.
Adding the following makes both the Doctrine integration and the cleanup: true option work:
    public function _getEntityManager()
    {
        if (!$this->client) {
            $this->client = new LaravelConnector($this);
        }
        return $this->app['em'];
    }

and...
    public function _before(TestInterface $test)
    {
        $this->client = new LaravelConnector($this);

        $this->getModule('Doctrine2')->_before($test);
    }

    public function _after(TestInterface $test)
    {
        $this->getModule('Doctrine2')->_after($test);
    }

Of course, this is not the best solution...
It is still necessary to check details such as that the memory is cleaned correctly.
But now that there is where to do tests ( https://github.com/TavoNiievez/laravel-module-tests/tree/doctrine ) it should be easier to solve these problems.


add config file watch and resta mig-parted

Fixes: https://github.com/NVIDIA/mig-parted/issues/108

Can you please review per @klueska


add glibc/lib to library search paths

Issue
When running Talos Linux, the Nvidia driver libraries are located under /usr/local/glibc/lib, and the binaries under /usr/local/bin. Using the default search paths, and a driver-root value of /usr/local the validator is able to locate the binaries, but not the libraries.
Proposed solution
Add "glibc/lib" to the library search path. This has been tested to work on a Talos cluster running 1.8.1, production drivers (550.90.07) and H100 GPUs
This PR is part of a set of PRs to better support Talos Linux for the GPU Operator.

Closing due to https://github.com/siderolabs/extensions/commit/c7eb3771943eba55ec5fe61f7a31e6fce61d73d5


Template snippets for the generator

After creating a few templates I find myself reusing template snippets and merely change the raw code being generated. Maybe we should gather these template snippets in the wiki? This might also ease and help people to start creating templates by providing learning by example. Also we might be able to optimize and simplify many templates by having a discussion how and what to include in the snippets.
Schema example
For schemas in Java I would create the template like code snippet 1, in a file named $$schema$$.java. For Nodejs I would create the template like code snippet 2 in a file named $$schema$$.js. These are more or less the same with only the raw code being changed.
package com.async.generated;

public class {{schema.uid()}} {

{%- for propertyName, property in schema.properties() %}
    public {{property.type() | toJavaType}} {{propertyName}};
{%- endfor %}
    public {{schema.uid()}}(
      {%- set counter = 0 %}
      {%- for propertyName, property in schema.properties() %}
      {%- if property.required()%}
      {%- if counter == schema.properties().length %}
      {{ property.type() | toJavaType }} {{ propertyName }}
      {%- else %}
      {{ property.type() | toJavaType }} {{ propertyName }},
      {%- endif %}
      {%- set counter = counter +1 %}
      {%- endif %}
      {%- endfor %}) {
      {%- for propertyName, property in schema.properties() %}
      {%- if property.required()%}
      this.{{ propertyName }}={{ propertyName }};
      {%- endif %}
      {%- endfor %}
    }
}

Code snippet 1. `toJavaType` filter is just to convert JSON schema type to Java types.

export default class {{ schema.name() }} {
  {%- for propertyName, property in schema.properties() %}
      {%- if property.required()%}
  public {{ propertyName }}:{{ property.type() }};
      {%- else %}
  public {{ propertyName }}?:{{ property.type() }};
      {%- endif %}
  {%- endfor %}
  constructor(
      {%- set counter = 0 %}
      {%- for propertyName, property in schema.properties() %}
      {%- if property.required()%}
      {%- if counter == schema.properties().length %}
      {{ propertyName }}:{{ property.type() }}
      {%- else %}
      {{ propertyName }}:{{ property.type() }},
      {%- endif %}
      {%- set counter = counter +1 %}
      {%- endif %}
      {%- endfor %}
      ) {
      {%- for propertyName, property in schema.properties() %}
      {%- if property.required()%}
      this.{{ propertyName }}={{ propertyName }};
      {%- endif %}
      {%- endfor %}
  }
}

Code snippet 2.

Given the suggested from https://github.com/asyncapi/asyncapi/issues/312 instead of using the wiki, we could make markdown files in the docs directory. Adapting issue.

I'd love to pick this one and do the initial setup, would also move API.md and AUTHORING.md to the docs folder and add some ToC in the main readme

Will snippets be templates? Or is it something you're thinking to offer as part of the generator library? I think this issue raises a bigger one: template composability, i.e., using templates inside other templates. It's somehow related to my comment here.

I think the idea is just to have a library/list of snippets/recipes, that others can easily use. It would just be a part of the docs, so it is easier for others to kick off with templating. Once the list grows we can think on some reusability library or whatsoever. This one is just about docs imho

Oh ok! Sounds good to me. Including them as template partials or "sub-templates" later on shouldn't be hard.

@jonaslagoni I crafted a draft PR for this issue #224
I will need your support for the structure of the information about recipes. I did not touch templates yet, so I do not want to play a smart ass here.

@jonaslagoni PR ready for review https://github.com/asyncapi/generator/pull/224/files
let me know what you think about the proposed structure. I already added another recipe for getting separate list of channels depending on operations. When I was learning templates it was not obvious for me that .hasSubscribe functions are available and was working on workarounds, I think it will be useful for others.


Train/Inference Random Model using this Library.

Hi there,
I am trying to re-produce the result of your experiment, and the provided code seems only contains the function of error analysis. On the other hand, I found a function "create_trainer_engine", which seems used to train the model.
I am confused if the pack of code is only used for error analysis or it can be extended to generate the accuracy results of your paper. I understand this might need some efforts but I am trying to figure out if this can work. Thanks!
In addition, it seems that only Hopper arch from Nvidia (GH100) supports FP8 operation at the moment, is there any other options if I would like to train/inference the model using FP8?
Thanks again for reading the message.

Yes, our repository contains the code to reproduce the inference results with the quantized model (see image_net.py), please refer to the README file for further instructions:
https://github.com/Qualcomm-AI-research/FP8-quantization/blob/main/README.md

So does your code support FP8 training of QAT? I see that you have written some STE functions, but not finished yet.

class FP8QuantizerFunc(Function):
    @staticmethod
    def forward(ctx, x_float, bias, num_exponent_bits):
        return quantize_to_fp8_ste_MM(x_float, bias, num_exponent_bits)

    @staticmethod
    def backward(ctx, grad_output):
        return grad_output, None, None

The STE is defined but never used. Is this STE work?

I see, thanks for the answer! That is helpful to me, wish you a nice day.


create_session with user mode

Using 3 classes TenantSession, ProviderAsTenantSession and ProviderSession, all inherit from Session. End user uses only create_session.
Factory function checks user mode. To create session just pass url, port, username, password and optional subdomain (used just to specify to which tenant to switch while creating ProviderAsTenantSession).
tenant_session = create_session(sub_domain_1, port, username_tenant, password)
print(type(tenant_session))
# <class 'vmngclient.session.TenantSession'>

provider_session = create_session(domain, port, username_provider, password)
print(type(provider_session))
# <class 'vmngclient.session.ProviderSession'>

provider_as_tenant_session = create_session(domain, port, username_provider, password, subdomain=subdomain)
print(type(provider_as_tenant_session))
# <class 'vmngclient.session.ProviderAsTenantSession'>

tenant_session = create_session(sub_domain_1, port, username_tenant, password, subdomain=sub_domain_2)
# vmngclient.session.SessionNotCreatedError: Session not created. 'subdomain' passed to tenant session, cannot switch to tenant from tenant user mode.

This solution works both with domain name and IP address.

This issue was migrated from an old repository: https://github.com/CiscoDevNet/catalystwan/pull/17


chore(ci) : update dependencies and define caches

setup dependabot
update current dependencies
define caches for cabal, go , gradle, pip, spm

:wave: @mmorel-35 thanks for opening this.  Adding dependabot is 👍  in general, though I'm curious if there is any context around this update since the PR body is pretty sparse.
Were you finding any issues with the tool as-built?  Or is this preventative for future updates?

Hi ! There was no issue. I like the tool. I just want to help the project to spare time in the developement. With the bot you just validate he PR and with the cache you have you can do more builds in the same time .

Hi! I will follow your préconisations.
By the way, I took examples from actions/cache. https://github.com/actions/cache/blob/main/examples.md
If they missed something then it might worth helping them complete it in the process.

If they missed something then it might worth helping them complete it in the process.

actions/cache and actions workflows in general provide the configurability that licensed needs.  TBH I don't have any specific requests from the actions/cache owners to make the usage better here. I'm guessing this tool falls into a smaller class of tools and applications that needs to test across a number of different versions of dependent tools and frameworks beyond what the tool itself is built on.
Is there anything specific you had in mind that was missing?

I was thinking of documentation completion. For example with the cabal cache, there is no hashed file in the documentation as it can be seen for many other languages and tools

Ah got it.  Maybe that's something you'd like to open a PR on the actions/cache repo to update?  In any event, this change is looking good, thanks for opening this up and keeping things running smoothly 🙇


add FreeBSD support

works fine in test-conditions. will try it out later in production.

I'd recommend pulling this one as its been opted for in http://www.FreeBSD.org/cgi/query-pr.cgi?pr=ports/162252

as there is now a native way to have request-id in nginx this pull-request is not necessary for me, so i am closing it.


feat: nuxt-uploadthing module

cc @danielroe

@danielroe would you be willing to help me get this ready? You recommended we importing types and referece those etc and I didn't quite understand how that was supposed to happen

Current dependencies on/for this PR:

main

PR #293

PR #401   👈

This stack of pull requests is managed by Graphite.


Fix Graph size calculation bug caused by scrollbar appearing.

Summary
The Vega graph components use the window:resize event to re-calculate their own size. However, it turns out that this event is not triggered when a scrollbar is shown or hidden. This lead to some graphs having the wrong size if more content was loaded later and making the scrollbar appear.
This little fix listens to the window.visualViewport:resize event, which is triggered when a scrollbar is shown or hidden, and re-dispatches a new window:resize event. This forces Vega graphs to recalculate as normal, and it shouldn't cause issues for other elements.
Fixed

The Vega graphs did not re-calculate their size when a scrollbar appeared, which meant that for small windows the CPU Usage graph would be a little too wide when the Memory Usage graph appeared.

I should probably do something to not trigger the event twice when the window actually does resize...


parameterized type aliases not supported ?

Trying to make my life easier with shorter type-casting (which cannot be avoided to the type system limitations :p)
If I write :
function y(): any { return {} }
const x = ( y() : { value: number, (arg: number): void } );
x(33);

It works.
However, If I create an alias for the above type, the last line no longer typecheck.
function y(): any { return {} }
type Action<T> = { value: T, (arg: T): void };
const x = ( y() : Action<number> );
x(33);

The error is : function call  Expected polymorphic type instead of Default import from blabla

@AlexGalays can you paste the whole example with the import? The code above seems to work fine by itself, but from the error message it looks like we're missing an easy case when taking apart imports, so some more information might result in an immediate fix. cc @jeffmo

Looks like we'll need some more details to help troubleshoot this. It's been a while, so I'm going to close this out -- but feel free to re-open if more details come to light.


Multiple Samsung TV remote on main menu

I would like to ask feature to show multiple tv remove on the main menu so I could manage multiple TVs in my home.

I'm not gonna add more remotes on the same screen but I could have a dropdown like the xbmc modules have. Would that work for you?

yes sure, happy with a dropdown approach - more cleaner

Great, I have no eta tho.

sure, no rush ;-) enjoy yr day!

@elRadix Can you test this branch? https://github.com/Hellowlol/HTPC-Manager/tree/sremote
I only have one tv to test with.

@elRadix Have you had a change to test the mention branch?

Feel free to reopen the issue once the feature is tested:)


How to remove duplicate channels?

Hi everyone,
I'm a first time user of the MNE library. I'm trying to read a bunch of EDF files (from the CHBMIT EEG database). I type the following code on my Python interpreter and get this error.
filename = 'chb04_07.edf'
raw = mne.io.read_raw_edf(filename)
RuntimeError: Channel names are not unique, found duplicates for: set([u'T8-P8'])
[Note: As many as 100 files or so have caused this problem]
I understand one channel (T8-P8) has been duplicated but I don't know of a straightforward way to remove that entry. Is there any way to get out of this problem? I really need to read them all.
Thanks a lot

Madhav

I'm not sure if we want to change the current behavior since having duplicate channels can cause problems later. My advice would be to try to fix the files by commenting out the part that raises the error and then

read the file.
drop the duplicate channel,
save it as a fif-file.

After that make sure to uncomment the line that raises the error so it works like before. I checked the file and this work flow seems to work fine.
import mne
raw = mne.io.read_raw_edf('chb04_07.edf', preload=True)
raw.drop_channels(['T8-P8'])
raw.save('chb04_07_raw.fif')

Actually, seems like this is somewhat related to https://github.com/mne-tools/mne-python/issues/3876. So perhaps we shall introduce an exclude parameter to help deal with stuff like this.

it's related to this:
https://github.com/mne-tools/mne-python/pull/3813
I think it's fixed in master?

I think it's fixed in master?

No, that was for the tal channel combination. This data file here actually has one channel doubled. Seems like some kind of error in the acquisition.

ok then I would suggest to deduplicate at reading time by appending
some -1 or -2 to the channel name. An raise a warning.


Update Chat Spam

Can you add a config or something that disables that?
It doesnt need to show up every time I load my world.
The "Fixed Compat with Eplus" and lines before it.

There already is a config for it


FIPS user guide: explain "bcrypt", simplify

Address "bcrypt" directly in the FIPS user guide, because it shows up later in identifiers in this doc. I believe we're good at referring to it as CNG everywhere else, but it's not possible when talking about the actual calls.
Also, try removing the manual TOC and point readers at the GitHub Outline feature. I think it's relatively new that it actually opens a persistent sidebar with a search feature. IMO that makes it usable. I don't think there was a particular reason we had the manual TOC other than that feature not being ready/usable. I did it in this PR so that people are more likely to see/read the first few sections before the API list begins.

I don't think there was a particular reason we had the manual TOC other than that feature not being ready/usable

(Talking as the primary maintainer of the fips/UserGuide.md) That TOC is automatically regenerated by the Markdown All in One VS Code extension whenever a section is added or updated, so keeping up to date is trivial.
I would vote for keeping it given the previous fact and that it does provide value when viewing the file outside GitHub.

(Talking as the primary maintainer of the fips/UserGuide.md) That TOC is automatically regenerated by the Markdown All in One VS Code extension whenever a section is added or updated, so keeping up to date is trivial.

Interesting, I had no idea... I remember seeing broken links, was that just a matter of running it again?
I'll put it back in and add a comment to mention that it's generated (and how).
I didn't think that anyone reads this outside of the hosting on GitHub.


Added support for API 26+

Updated compileSdkVersion and targetSdkVersion to 27
Updated Gradle to 4.9
Updated Android Plugin for Gradle to 3.1.3

Thanks for your PR，I would merge this commit except for change in DefaultItemAnimator.java

Please release a new version with these changes. I want to implement your library from Maven. Thanks!


sensor calibration

I'm following the instructions you provided for Kinect calibration
https://github.com/code-iai/iai_kinect2/blob/master/kinect2_calibration/README.md
I have the forrowing running

roscore
rosrun kinect2_bridge kinect2_bridge _fps_limit:=2
rosrun kinect2_calibration kinect2_calibration chess5x7x0.03 record color

I get the following error message, but I'm able to save the images
[ERROR] Tried to advertise a service that is already advertised in this node [/kinect2_calib_1461090415983227522/compressed/set_parameters]
[ERROR] Tried to advertise a service that is already advertised in this node [/kinect2_calib_1461090415983227522/compressed/set_parameters]
should I just ignore the error messages?

just ignore it


Fixes script analyzer issues in MSFT_xWindowsOptionalFeature.psm1 - Fixes #494

Pull Request (PR) description
This PR fixes PSSA issues in xWindowsOptionalFeature
This Pull Request (PR) fixes the following issues

Fixes #494

Task list

[x] Added an entry under the Unreleased section of the change log in
CHANGELOG.md. Entry should say what was changed, and how that affects
users (if applicable).
[ ] Resource documentation added/updated in README.md.
[ ] Resource parameter descriptions added/updated in README.md, schema.mof
and comment-based help.
[ ] Comment-based help added/updated.
[ ] Localization strings added/updated in all localization files as
appropriate.
[ ] Examples appropriately added/updated.
[ ] Unit tests added/updated. See
DSC Resource Testing Guidelines.
[ ] Integration tests added/updated (where possible). See
DSC Resource Testing Guidelines.
[x] New/changed code adheres to
DSC Resource Style Guidelines and Best Practices

This change is

Codecov Report

Merging #555 into dev will not change coverage.
The diff coverage is 100%.

@@         Coverage Diff         @@
##            dev   #555   +/-   ##
===================================
  Coverage    74%    74%
===================================
  Files        27     27
  Lines      4027   4027
  Branches      4      4
===================================
  Hits       3007   3007
  Misses     1016   1016
  Partials      4      4


About the pretrained checkpoints of Reference Net

In the paper, you said weights of the spatial cross-attention modules of ReferenceNet was optimized.
But, why both Reference Net and runwayml/stable-diffusion-v1-5 have same checkpoints?
They have equal sha256 results:
Reference Net checkpoints: https://huggingface.co/fudan-generative-ai/hallo/blob/main/stable-diffusion-v1-5/unet/diffusion_pytorch_model.safetensors
Original SD 1.5 checkpoints: https://huggingface.co/fudan-generative-ai/hallo/blob/main/stable-diffusion-v1-5/unet/diffusion_pytorch_model.safetensors

Oh, I am really sorry. I totally misunderstood your words. I solved it.

.


Fixed Lz issue 967

.NET Edge cases are now handled properly

but to be fair, this is too low-level for me to know what exactly you are doing :-D

I'll gladly explain it to you on a call :-)


Stereochemistry is lost when converting from SMILES to SDF in Python

When converting from isomeric SMILES to SDF, stereochemistry information is lost even when using the includeStereo flag with Chem.MolToMolBlock.
Here's an example:
from rdkit import Chem

mol = Chem.MolFromSmiles('CC(C)(C)NC[C@@H](C1=CC(=C(C=C1)O)CO)O')
new = Chem.MolFromMolBlock(Chem.MolToMolBlock(mol, includeStereo=True))

print "From SMILES\n-----------"
for atom in mol.GetAtoms():
    print atom.GetChiralTag()

print "\nFrom SDF\n--------"
for atom in new.GetAtoms():
    print atom.GetChiralTag()

The output is:
From SMILES
-----------
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_TETRAHEDRAL_CW
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED

From SDF
--------
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED
CHI_UNSPECIFIED

I agree MolFromSmiles should not compute 2D coordinates, that is too expensive.
However we were just bitten by MolToMolBlock not writing out stereo information when reading from a stereo SMILES, even when 'includeStereo=True'. I would propose that when MolToMolBlock's includeStereo flag is 'True',  MolToMolBlock should automatically call Compute2DCoords on the molecule.
I would even go so far as proposing that 'includeStereo' should default to 'True', and MolToSmiles isomericSmiles should default to 'True' as well. But I could see that as "backwards breaking" and include that as part of those changes.

Pinging this again as I just ran into this again this morning. Also spent half a day last week helping a modeler debug a stereochemistry issue that came down to RDKit not saving stereo chemistry by default when converting from SMILES to SDF.
I think it comes under the "we should be saving stereo by default" everywhere strategy that I think we should switch over to.

@coleb : thanks for ping this again
I think it makes sense to make the suggested changes as part of the "make the default arguments more correct" effort that I want to do for the next release.
I'll start putting together a branch for that.


IndexError: The shape of the mask [1, 1568] at index 1 does not match the shape of the indexed tensor [1, 1569, 576] at index 1

What should I do if I get an error like this when I try to run a file named videomamba_pretrain.py: The shape of the mask [1, 1568] at index 1 does not match the shape of the indexed tensor [1, 1569, 576] at index 1?

/lib/python3.10/site-packages/torch/nn/modules/module.py"，line 1527, in _call_impl
return forward_call(*args, **kwargs)
/videomamba_pretrain.py, line 437, in forward
x_clip_vis = self.forward_features(x.to(device), mask)
/videomamba_pretrain.py, line 391, in forward_features
x_vis = x[~mask].reshape(B, -1, C) # ~mask means visible
IndexError: The shape of the mask [1, 1568] at index 1 does not match the shape of the indexed tensor [1, 1569, 576] at index 1

Can you check the output share here, since I have added extra zero for cls_token?

I'm trying to do what you say, but when I try to debug the run_videomamba_pretraining.py file, I jump straight to the modeling_pretraining.py file, so I might need to look at it again.

In videomamba_pretrain.py
def forward_features(self, x, mask=None):
x = self.patch_embed(x)
B, C, T, H, W = x.shape
x = x.permute(0, 2, 3, 4, 1).reshape(B * T, H * W, C)
print("x_1[shape]", x.shape)
cls_token = self.cls_token.expand(x.shape[0], -1, -1)  # stole cls_tokens impl from Phil Wang, thanks
x = torch.cat((cls_token, x), dim=1)# torch.Size([8, 197, 576])
x = x + self.pos_embed
print("x_2[shape]", x.shape)# torch.Size([8, 197, 576])
# temporal pos
cls_tokens = x[:B, :1, :]
x = x[:, 1:]
print("x_3[shape]", x.shape)
x = rearrange(x, '(b t) n m -> (b n) t m', b=B, t=T)
x = x + self.temporal_pos_embedding
print("x_4[shape]", x.shape)
x = rearrange(x, '(b n) t m -> b (t n) m', b=B, t=T)
print("x_5[shape]", x.shape)
x = torch.cat((cls_tokens, x), dim=1)
print("x_6[shape]", x.shape)
# mask
print("mask", mask.size())
x_vis = x[~mask].reshape(B, -1, C)
    x_6[shape] torch.Size([1, 1569, 576]),but mask torch.Size([1, 1568]),I think that might be the problem

我刚开始想尝试运行一下看看能否正常运行videomamba_pretrain.py中，我排除了一下错误，在forward_features中，我查看了参数的size
def forward_features(self, x, mask=None):
x = self.patch_embed(x)
B, C, T, H, W = x.shape
x = x.permute(0, 2, 3, 4, 1).reshape(B * T, H * W, C)
print("x_1[shape]", x.shape)
cls_token = self.cls_token.expand(x.shape[0], -1, -1) # stole cls_tokens impl from Phil Wang, thanks
x = torch.cat((cls_token, x), dim=1)# torch.Size([8, 197, 576])
x = x + self.pos_embed
print("x_2[shape]", x.shape)# torch.Size([8, 197, 576])
temporal pos
cls_tokens = x[:B, :1, :]
x = x[:, 1:]
print("x_3[shape]", x.shape)
x = rearrange(x, '(b t) n m -> (b n) t m', b=B, t=T)
x = x + self.temporal_pos_embedding
print("x_4[shape]", x.shape)
x = rearrange(x, '(b n) t m -> b (t n) m', b=B, t=T)
print("x_5[shape]", x.shape)
x = torch.cat((cls_tokens, x), dim=1)
print("x_6[shape]", x.shape)
mask
print("mask", mask.size())
x_vis = x[~mask].reshape(B, -1, C)
x_6[shape]的torch.Size([1, 1569, 576]),但是mask的torch.Size([1, 1568]),我排除到这里后面就基本没法运行了，应该是我自己的问题，还是感谢您的解答。

ok，我明白了谢谢解释


Correctly provide file locations for errors and warnings when using preprocessors

Uses Mozilla's source-map library to parse the sourcemaps from preprocessors to correctly return the error/warning location in the original file.
Fixes #83

Could use https://github.com/jridgewell/trace-mapping which is smaller

Gonna hold off releasing this since it looks like Svelte is slowly moving towards a v4 release which will unbundle it's dependencies (one of which is @jridgewell/trace-mapping) so I can do this will effectively no overhead


Feature : Animation List for one file

Add a feature for have multiple animations in one piskel file like in Spine.

It will be easier to maintain the complex sprites by switching beetween all related images :

playerWalk
playerJump
playerShoot

A really nice idea! :+1:

I like the idea :) Don't know how to integrate this in Piskel yet, but I'll try to think about it.
Any suggestions how/where it should be added ?
Options I'm thinking about :

a small UI on top of the frame list
a new toolbox on the right of the drawing area (but then we need to make all the toolboxes collapsible/configurable ... there's just too many of them)
a new collapsible panel on the right of the screen (but that seems counter intuitive to have it here)

A small UI on top of the frame list should be great !

This is probably the only reason why I still haven't switched/committed to piskel fully. I think a small UI on the frame list would be sufficient too!

Multiple animations in one project is a must have. I would suggest to start with simple JSON editor for defining animation names and their respective frames (either explicit number list or ranges). With such editor in place next step would be adding a simple drop-down menu allowing to select animation (possibly with predefined 'all' option for all the frames). Once the animation is chosen the preview should loop only its frames, also selecting next/prev frame should be limited to current frame list or range.


support network_type parameter

what
RDS cluster can be run in two network modes - IPV4 or DUAL.
Underlying module already supports this parameter

why
It can be mandatory to enable it to be able to connect from ipv6 only runtimes

references
Closes https://github.com/cloudposse/terraform-aws-rds-cluster/issues/175

/terratest


[PE-D] Adding special characters into the email attribute in the json file crashes the app.

Step to reproduce the bug:

Add some special characters in the email attribute of the json file.

Save and close the file.
Re-launching the app would delete the original data of tach.

Labels: type.FunctionalityBug severity.High
original: tandeshao/ped#23

Related to #142, will be fixed when #142 is fixed


Generic abstract RelationshipEntity not working

I started looking at Neo4j today and am now running some tests with OGM. The library is really awesome, thanks for your work! However, when playing around with model abstractions, I encountered the following setup which throws an exception:
@NodeEntity
public class A {
   @GraphId
   private Long id;
   @Relationship(type = "R", direction = Relationship.OUTGOING)
   public R r;
}

@NodeEntity
public class B {
   @GraphId
   private Long id;
   @Relationship(type = "R", direction = Relationship.INCOMING)
   public R r;
}

// Generic base class for relationships
public class BaseR<S, T> {
   @GraphId
   private Long id;
   @StartNode
   private S fromNode;
   @EndNode
   private T toNode;

   protected BaseR(S fromNode, T toNode) {
      this.fromNode = fromNode;
      this.toNode = toNode;
   }
}

@RelationshipEntity
public class R extends BaseR<A, B> {
   public R(A fromNode, B toNode) {
      super(fromNode, toNode);
   }
}

The code I test with is
   @Test
   public void testUsingAbstractRelationShip() {
      A a = new A();
      session.save(a);

      B b = new B();
      session.save(b);

      R r = new R(a, b);
      a.r = r;
      b.r = r;

      session.save(a); // --> throws exception below
   }

And here comes the exception:
java.lang.RuntimeException: @StartNode of a relationship entity may not be null
    at org.neo4j.ogm.mapper.EntityGraphMapper.getStartEntity(EntityGraphMapper.java:510)
    at org.neo4j.ogm.mapper.EntityGraphMapper.haveRelationEndsChanged(EntityGraphMapper.java:390)
    at org.neo4j.ogm.mapper.EntityGraphMapper.getRelationshipBuilder(EntityGraphMapper.java:363)
    at org.neo4j.ogm.mapper.EntityGraphMapper.link(EntityGraphMapper.java:326)
    at org.neo4j.ogm.mapper.EntityGraphMapper.mapEntityReferences(EntityGraphMapper.java:277)
    at org.neo4j.ogm.mapper.EntityGraphMapper.mapEntity(EntityGraphMapper.java:158)
    at org.neo4j.ogm.mapper.EntityGraphMapper.map(EntityGraphMapper.java:91)
    at org.neo4j.ogm.session.delegates.SaveDelegate.save(SaveDelegate.java:67)
    at org.neo4j.ogm.session.delegates.SaveDelegate.save(SaveDelegate.java:43)
    at org.neo4j.ogm.session.Neo4jSession.save(Neo4jSession.java:386)
    at .a.b.c.GenericTypesTest.testUsingAbstractRelationShip(GenericTypesTest.java:40)

It's interesting, as the base class without the generic types S and T does work as expected (although this breaks the reusability of the base relationship entity):
public class BaseR {
   @GraphId
   private Long id;
   @StartNode
   private A fromNode;
   @EndNode
   private B toNode;

   protected BaseR(A fromNode, B toNode) {
      this.fromNode = fromNode;
      this.toNode = toNode;
   }
}

@RelationshipEntity
public class R extends BaseR {
   public R(A fromNode, B toNode) {
      super(fromNode, toNode);
   }
}

As soon as published, the following workaround came to my mind: Use another base class (or interface) for the NodeEntities and code against them. This removes the need for generics. Here's a working example:
// Base Entity class
public class BaseE {
   @GraphId
   private Long id;
}

@NodeEntity
public class A extends BaseE {
   @Relationship(type = "R", direction = Relationship.OUTGOING)
   public R r;
}

@NodeEntity
public class B extends BaseE {
   @Relationship(type = "R", direction = Relationship.INCOMING)
   public R r;
}

public abstract class BaseR {
   @GraphId
   private Long id;
   @StartNode
   private BaseE fromNode;
   @EndNode
   private BaseE toNode;

   protected BaseR(BaseE fromNode, BaseE toNode) {
      this.fromNode = fromNode;
      this.toNode = toNode;
   }
}

@RelationshipEntity
public class R extends BaseR {
   public R(A fromNode, B toNode) {
      super(fromNode, toNode);
   }
}

Fixed in 2.0.0-SNAPSHOT

I'm using version 2.0.3, and I'm still getting this exception on generic relations.
Classes example
public class RelationEntity<O,T> {
    @GraphId
    public Long id;

    @StartNode
    public O orign;

    @EndNode
    public T target;

    @DateLong
    public Date createdAt;

}

@RelationshipEntity(type = "OWNS")
public class Owns<T> extends RelationEntity<User,T> {
    public Boolean isProfile;
}

java.lang.RuntimeException: @StartNode of a relationship entity may not be null
at org.neo4j.ogm.context.EntityGraphMapper.getStartEntity(EntityGraphMapper.java:611)
at org.neo4j.ogm.context.EntityGraphMapper.haveRelationEndsChanged(EntityGraphMapper.java:476)
at org.neo4j.ogm.context.EntityGraphMapper.getRelationshipBuilder(EntityGraphMapper.java:444)
at org.neo4j.ogm.context.EntityGraphMapper.link(EntityGraphMapper.java:406)
at org.neo4j.ogm.context.EntityGraphMapper.mapEntityReferences(EntityGraphMapper.java:337)
at org.neo4j.ogm.context.EntityGraphMapper.mapEntity(EntityGraphMapper.java:207)
at org.neo4j.ogm.context.EntityGraphMapper.map(EntityGraphMapper.java:133)
at org.neo4j.ogm.session.delegates.SaveDelegate.save(SaveDelegate.java:69)
at org.neo4j.ogm.session.Neo4jSession.save(Neo4jSession.java:369)

This is still broken. Reopening.

Fixed in master (for 3.x release).
It still won't work for class Owns<T> extends RelationEntity<User,T>  use cases, but should work for class Owns extends RelationEntity<User, User> - we use the types in query generation so this can't be (at the moment) completely generic.


Load sql file option

Added an option to load an SQL file instead. This should be useful for live hands-on sessions so that participants need not setup their own relational database

@wjteo isn't this the same as https://github.com/mongodb-developer/relational-migrator-lab/blob/main/docker/sample-postgres-library/init/1-library-schema-and-data.sql ?
I mean, you can run a local Docker container just in case to be able to run the Lab. Or are participants going to use that SQL differently? They'll still need to create a new database, right?
I don't understand what this file accomplishes, sorry, can you please elaborate on the use case this solves? Thanks!

@dfreniche the sql file i added only contains the schema and no data. in relational migrator users can create a project by uploading an sql schema file without any database. In this way developers can proceed having the experience of shaping the output mongodb schema, but they wont be able to run the live migration


primeng version v16.7.1 is not working with formly

primeng version v16.7.1 is not working with formly and @ngx-formly/primeng any idea why?
Any help or pointers appreciated Thanks

It was more to do with primeng new version formly works as expected.


Checking For Neon Number

Have you read the Contributing Guidelines on Pull Requests?
Yes
Description
Its my first time to contribute in open source project and to work in git .so, I decided to start with implementing
this issue as it consider an easy one for my starting to learn with it how to contribute and make PR.
why I choose this specific issue? because I check the Math section in python and I didn't find any algorithm for checking
neon number  and I think its important to be there.
Checklist

[ Yes] I've read the contribution guidelines.
[Yes ] I've checked the issue list before deciding what to submit.
[ Yes] I've edited the README.md and link to my code.

Related Issues or Pull Requests
#4810

Please make an issue here and raise a PR, for an article as part of our Docs repository: https://github.com/TesseractCoding/NeoAlgo-Docs
It would be much appreciated. Thanks!


AbstractUser versus AbstractPerson

What is the difference between these two? Which one should I implement to create users that need to login for my app?

You can name the entity classes however you want it's up to you :)

But they are implemented slightly differently like AbstractUser is more simple than the AbstractPerson

Those are examples and test code it doesn't reflect any particular use case exactly, define the fields as needed by your application

What does Serializable do?

https://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html


Use the modal react-native-web provides

We now use the code from this PR: https://github.com/necolas/react-native-web/pull/1698
This is the one that is getting merged in the future. Till then I'll use my PR code.
https://github.com/necolas/react-native-web/pull/1646

The modal is merged in React Native Web: 0.14.0! :-)


OpenGL error on nvidia

Zwift did not open after running the zwift script. The container was properly running.
When manually starting Zwift inside the container, there was the following error:
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext

Changing VGA_DEVICE_FLAG="--gpus all" to VGA_DEVICE_FLAG="--device nvidia.com/gpu=all" did fix the issue for me. I suspect there were some changes in the nvidia-container-toolit. This fix might require generating a CDI specification as shown here https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/1.14.3/cdi-support.html.
nvidia-container-toolkit: 1.14.3
podman: 4.7.2

might have been related to #44


spirv-fuzz: Avoid creating blocks without parents

The validity check during fuzzing and in unit tests is strengthened to
require that every block has its enclosing function as its parent.
TransformationMergeFunctionReturns is fixed so that it ensures parents
are set appropriately.
Fixes #3907.

I think the "force render red" tool is still broken. We should just make AddBasicBlock set the parent, as all callers do this anyway. The ir_builder code is bit more subtle, but I think it basically the same.

I have opened #3912 to propose the idea of fixing AddBasicBlock so that it sets the parent.

I have also fixed ForceRenderRed.


[Off-canvas] Disable the closing on ESCAPE keyDown

Description
I don't find written anywhere how to disable the closing of the off-canvas on ESCAPE keyDown, how can I do that?
Checklist

[x] I have read and follow the CONTRIBUTING.md document.
[x] here are no other issues similar to this one.
[x] The issue title and template are correctly filled.

Hi, this is an accessibility feature and should not be disabled.
https://www.w3.org/TR/wai-aria-practices-1.1/examples/dialog-modal/dialog.html#kbd_label

Escape
Closes the dialog.

Ok thank you


Tool name

I understand that the current Brict name is quite short and easy to remember.
But I would like to propose some name that talks by itself.
Maybe support-helper.sh
Or tdx-support-helper.sh
I really think that this name shows one of the main usages of this tool: to help Toradex support during early (maybe the first) steps of support.
What do you guys think? :)

Maybe suphelper.sh / tdx-suphelper.sh
A little word play on the "confusion" between support and support.

@leograba since you thought about the name "brict", what do you think about @griloHBG comments?
I personally agree with him, that "support-helper" is more intuitive (although I think it is a little long, but definitely easier to understand).
Just a reminder @griloHBG, we dropped the ".sh" extension =) Now it's just the name without any extension.

Just a reminder @griloHBG, we dropped the ".sh" extension =) Now it's just the name without any extension.

Oh ok. Makes sense :D

You guys know customers better, I don't have any additional thoughts to add.
If you'd prefer to rename it to anything more convenient, that sounds good.

Thanks, @leograba. @griloHBG I think we need to add "info" or something related to the name, so our customers will know this script will just get their hardware/software info... What do you think?

@griloHBG what do you think about tdx-info?

Added PR #16

Merged #16


Trying to get in touch regarding a security issue

Hey there!
I'd like to report a security issue but cannot find contact instructions on your repository.
If not a hassle, might you kindly add a SECURITY.md file with an email, or another contact method? GitHub recommends this best practice to ensure security issues are responsibly disclosed, and it would serve as a simple instruction for security researchers in the future.
Thank you for your consideration, and I look forward to hearing from you!
(cc @huntr-helper)

Hi @JamieSlome, not sure how I never saw this but my email address is zac at my username dot com (and should also be listed publicly on my profile for anyone logged in to GH). I'll look into adding SECURITY.md files in all my active projects :)

Hi @zacanger - no worries and thank you for your response :)
We sent a couple of e-mails out a while ago but didn't get a response. If it is easier, you can find the report directly here:
https://huntr.dev/bounties/79cf0270-32ec-4403-bf1d-c032f5894e6f/
It is private and only accessible to you 👍


changed default for VertexAIEmbeddings

Replace this entire comment with:

Description: @kurtisvg has raised a point that it's a good idea to have a fixed version for embeddings (since otherwise a user might run a query with one version vs a vectorstore where another version was used).
In order to avoid breaking changes, I'd suggest to give users a warning, and make a model_name a required argument in 1.5 months.

+1 to this. Pinning a version of the model make results predictable and repeatable.

makes sense, thank you all!


fix multi-python test action

The fix to the multi-Python unit testing let to the discovery that datetime.fromisoformat() was introduced in Python 3.7.
Bumping the minimum supported Python version to 3.7


LZW

Implemented LZW for use with geoTiffs.

Passes LZW test.
Needs more error handling.
Probably not yet compatible with node.
compression code could use optimization.
Needs input from geotiff.js author.

This looks very promising! Have you tested it also with images that have bands with other datatypes than Byte? Like a floating point datatype?

I had not. I added a test for float64 and one that uses bands. They both seem to work now.
The float64lzw test seems kind of slow (4.5 sec on my laptop), and I'm not sure how to fix that.

This was merged manually with<PHONE_NUMBER>2c36c931a333366333b90b8c68bfdd, dd868fa3de300eac35ac2b827b38136dec1db3a5, c1171d252697bedd6186a88e83768c260ac1b195.
I finally got around to do it, sorry for the long waiting time! ;)
I took the liberty to clean up the files (I removed the second file and put everything in the compression/lzw.js) and some details (slightly different class structure) but the logic is the same as before.
Thank you @m0ose for contributing!

Hi m0ose, constantinius, I'm trying to use geotiff.js for geotiffs with LZW compressed RGB (3 band).
It seems from the comment above that this should work, but it is giving me nonsense at the moment.
Any tips on usage??

I am willing to play around with it. Could you post a link to a file that isn't working?

Thanks m0ose... my test page is here:
http://www.mappazzo.com/test/geotiff.html
the compressed file is at:
http://www.mappazzo.com/test/data/ASBAquatic20161120.tif

That was an interesting output. It took a while to figure out what was going on. I think it is fixed in https://github.com/constantinius/geotiff.js/pull/12 , but could still use some testing.


Add grouping option to Inventory Viewer

Closes #2771
Adds an option to have the inventory viewer group the same items together.
Now with an option to show the number of empty slots remaining in your inventory

Added option to show free slots remaining. Let me know if I've done anything really badly wrong

How are the items sorted? I would think it'd be better to do it by the first time each item appears in the inventory

Its currently using set for w/e reason so I dont think its order makes any sense anymore

Natural order of multiset

Updated and refactored the code, and made it use the old method of gathering the items.

Moved the grouped placeholder stuff to the first commit, since it makes more sense to be in there anyway

Added to the hub with runelite/plugin-hub#189