text:
#149 urlencode the redirect_to parameter in the confirmations urls.

What kind of change does this PR introduce?
Fixes #149
What is the current behavior?

With SITE_URL = http://localhost:5000/#/
Send an invite email.
Click on the link in the invite email : http://localhost:8000/ext/auth/verify?token=LxSrVKfTNFRFJK4qhF0wHA&type=invite&redirect_to=http://localhost:5000/#/
-> The link is opened by the browser which strips the url on '#/', so Gotrue receives a wrong redirect_to url : http://localhost:5000/ instead of http://localhost:5000/#/ . Then the user is not redirected at the expected location.

What is the new behavior?
The redirect_to url is url encoded. Then when a browser opens such a link, the value of redirect_to is treated as a HTTP request parameter and is not stripped anymore.

Has this gotten any traction?

The issue here is that people are likely relying on the bad behavior now. So I think there will need to be a flag to enable it or it needs to be behind a major version bump.

I think it looks great otherwise. I really want this fix as well and appreciate your efforts.

Looks like everything is configured through ENV vars so....
Update the readme to document the flag:
URL_ENCODE_REDIRECT=true
Then edit the code to check for the flag. Looks like you will need to add it to the configuration here?
https://github.com/supabase/gotrue/blob/master/conf/configuration.go
And then add an if else around your edits I suppose.
Document that this should be removed and enabled in the next major version bump. Not sure where, I would make a comment in the gomod file *shrug

The issue here is that people are likely relying on the bad behavior now. So I think there will need to be a flag to enable it or it needs to be behind a major version bump.

Thanks for your feedback. I see your point but in another hand I think that :

This is a bug, and this is not a kind of thing which should be parameterized.
It would not really break anything because since a URL containing a hash doesn't work , we should not have a URL containing a hash in our Gotrue config. For example I would have like to use a redirect URL like this : https://host/#/authent  but only the https://host/ part is used by Gotrue, so I changed my setting to https://host/ .
So yes this bug fix would break the environment of people if they keep a redirect_to url with a hash, but then they could fix it by changing this setting.
Since Supabase is in beta, I think that it is ok to break some people's environments or workarounds, especially if these workarounds were made to address the issue being corrected by the breaking bug fix. No ?

It would not break my app but it could others. Here is my fragile workaround:
        Email link:
        // https://a.supabase.co/auth/v1/verify?token=&type=recovery&redirect_to=http://example.com:6663/#authed?
        Opens app:
        // http://example.com:36969/#access_token=&expires_in=3600&refresh_token=&token_type=bearer&type=recovery

    Uri uri;
    if (configuration.location!.startsWith("access_token")) {
      uri = Uri.parse('authed?' + configuration.location!);
    } else {
      uri = Uri.parse(configuration.location!);
    }

    switch (uri.path) {
      case "authed":
        var response = await supaClient.auth
            .getSessionFromUrl(Uri(queryParameters: uri.queryParameters));

        if (response.error != null) {
          _token = response.data?.persistSessionString;
        } else {
          Logger.root.info("NOT AUTHED");
        }

        Logger.root.fine("before query switch");
        switch (uri.queryParameters['type']) {
          case 'recovery':
            ScaffoldMessenger.of(context!).showSnackBar(
              const SnackBar(
                behavior: SnackBarBehavior.floating,
                content: Text('Authenticated. Please change your password.'),
              ),
            );
            Logger.root.fine("in recovery");
            floorTwo = FloorTwo.reset;

            break;
          case 'signup':
            ScaffoldMessenger.of(context!).showSnackBar(
              const SnackBar(
                behavior: SnackBarBehavior.floating,
                content: Text('Confirmation Successful!'),
              ),
            );
            floorOne = FloorOne.map;

            Logger.root.fine("in signup");
            break;
        }

I could have written this workaround in a way that could not be robust to it suddenly working again. However, I would personally rather it be fixed like you suggest.

Hey @tartard and @MateusAmin, thanks for your inputs! AFAIK, even if this PR is merged, it won't work if you're using the supabase-js client library because it strips out the fragment after storing the tokens in the local session here. We'll need to scope out the client libraries that will be affected and patch them accordingly.

Hi @kangmingtay , right, I opened a PR in gotrue-js to address this : https://github.com/supabase/gotrue-js/pull/112
But I didnt check if it is also present in other client libraries

have you tried url encoding the redirect before passing it to gotrue?
what is the behaviour if we set SITE_URL = http://localhost:5000/%23/

also thanks for the PR and the discussion. you all rock :)

have you tried url encoding the redirect before passing it to gotrue?
what is the behaviour if we set SITE_URL = http://localhost:5000/%23/

@awalias It works actually if I set SITE_URL = http://localhost:5000/%23/ ...
I was sure that I tried before and it didn't work, both on app.supabase.io and local docker with firefox and chromium, but since that time I updated my navigators, docker images and June beta was released... But it is more likely that I messed my previous tests, I will try again to reproduce the problem  with  SITE_URL = http://localhost:5000/%23/ set .
However it doesn't work when I set the http param redirect_to=http://localhost:5000/%23/ when I call the invite endpoint with Postman.

Hey this PR has been outdated for a long while now. I'll close it, but if you still wish to contribute please re-open it or submit a new one!

authors: MateusAmin awalias hf kangmingtay tartard

repo: supabase/gotrue


text:
Clean up wal-g installation

RIght now /root/go directory occupies 1.1 GB which reduces the spaces we have for postgres. After we make the wal-g binary, we should clean this up

will add to #44

source: gharchive/issue

authors: dragarcia inian

repo: supabase/postgres

license: PostgreSQL

license_type: permissive

license_source: github-api


text:
Update README.md

What kind of change does this PR introduce?
Typo in README example.
Additional context
This lost me about 30 minutes so it may save some other poor soul.

Thank you @o8e. Sorry about the time lost!

source: gharchive/pull-request

repo: supabase/vue-supabase

license: MIT


text:
feat: failover on bind error

Description
This PR adds ability to switch providers when bind is unsuccessful (related to https://www.notion.so/superface/Mails-are-not-send-from-Brain-7462ed7c349c45e8940749bbd0cd5c48#9bbf5ebde54e4dbaa5c54caa36fb6279). If the overall approach is ok I will add/fix tests and handle all resolution cases

Motivation and Context

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] I have updated the documentation accordingly. If you are changing code related to user secrets you need to really make sure that security documentation is correct.
[x] I have read the CONTRIBUTION_GUIDE document.
[x] I haven't repeated the code. (DRY)
[x] I have added tests to cover my changes.
[ ] All new and existing tests passed.

I switched to bypassing the policy logic - in case of circuit breaker it would not switch.
In case of error during bind we should switch to second provider if we can - providerFailover is true and we have second provider.

@Jakub-Vacek I think it would be better if the router could react to the error kind instead. So we'd add a new error variant to https://github.com/superfaceai/one-sdk-js/blob/d737f542aeb05fcda733e2d7dbdd95a4ee8b33f8/src/client/failure/policy.ts#L57 and then the policy would react to it by temporarily setting the number of retries to zero (e.g. switching right away). What do you think?

Well, my solution is hacky, yours feels less hacky :D I will try it over the weekend.

@TheEdward162 weekend is over (😅) and I tried to rewrite it according to your comment.

repo: superfaceai/one-sdk-js


text:
Add function to handle subscriptions when applying buffered changes

We discovered we weren't processing subscriptions for changes being applied all at once when all buffered versions were received. This caused some changes not to update subscriptions.
This PR adds a function to handle exactly that situation.
It's a bit painful and some buffering in memory is required unless we change the logic more extensively.

@somtochiama I would appreciate a review on this. I think this works as intended and will prevent heartburn in the future.

repo: superfly/corrosion


text:
Render errors as JSON in the API

A side note: I would like to eventually implement DRYer error handling
as shown in this article: http://blog.golang.org/error-handling-and-go.
Unfortunately, I'm not sure that strategy will work with mux, the HTTP
router we are using. I think the answer is Middleware, but whatever the
case, we need to be able to define our CRUD actions as funcs that return
an error. Then, in only one spot, we will control the formatting and
rendering of the error.

Coverage remained the same at 63.889% when pulling aad665ae16dbeb2d917363f3bf8d67920d976bd5 on better_api_errors into e86a550b96a2d605df688e818e1d44aedd46ffaf on master.

authors: FestivalBobcats coveralls

repo: supergiant/supergiant

license_source: bigquery


text:
How to play?

Which key use to start the game?

None. You have to put on a VR headset and use the controllers to punch the START message

authors: feiss xpcrts

repo: supermedium/supersays


text:
Remove async prefix from JSDOC?

I'm wondering should we remove async prefix from JSDOC and use @returns Promise<T> instead?
For me it's seems more semantically correct. Moreover, in client code we don't have async funcs and for the non-ES6 code (e.g. in tests) this funcitons looks like regular funcs which returns Promises.
\cc @AndreyBelym @AlexanderMoskovkin @VasilyStrelyaev

We were thinking about that. But I think it may be hard to describe that the getInstallations function returns a Promise that "returns" BrowserInfo with jsdoc. While async getInstallations() ⇒ Object.<string, BrowserInfo> looks clearly.

Promise<Dictionary<string, BrowserInfo>>? However, it's more clear when current implementation, anyway then we will have Hammerhead client API described, we'll not be able to use async

We don't have to use wordy phrasing just because we formally write Promise<Object.<string, BrowserInfo>>. We can say a kind of 'returns [smth] through a Promise'.
If it's technically more correct and helps us avoid confusion in certain cases - than let's return back to Promises in JSDOC.

We can say a kind of 'returns [smth] through a Promise'.

We can't. We should use JSDOC notation

Plus: it's not true that we return e.g. browserInfo from async func. We return Promise. So, current solution is misleading at least.

We can't. We should use JSDOC notation

If we change the phrase 'returns a Promise that returns a list' to 'returns a list through a Promise' - do we reaaly break a notation?

@VasilyStrelyaev you don't get it. We don't have phrases, we can use just types, e.g.:  Promise<string>

we must be discussing different things...

@VasilyStrelyaev then can you clarify your statement pls )

@inikulin ok, then...
first thing I don't get is what you mean when you say "we don't have phrases only types"
what I see is that we can add descriptions to virtually everything
http://usejsdoc.org/tags-returns.html

@VasilyStrelyaev I thought we were talking about return type which is the subject of debate in this issue.

@inikulin yep, and then @AlexanderMoskovkin expressed a doubt that we can convey everything with a return type. Which, my point, is not a problem if (a) our return type is formally correct and (b) we add a clear description.
However, I misread @AlexanderMoskovkin 's message and thought he said we would have to use long and vague descriptions. That's where all the confusion in this thread came from.

repo: superroma/testcafe-browser-natives


text:
The script header should be removed when the script is requested by the client script (T296958) (fix #183)

/cc @inikulin @churkin

\r-

FPR

\r-  Just minor issues left

FPR

lgtm

lgtm

authors: LavrovArtem churkin inikulin

repo: superroma/testcafe-hammerhead


text:
🛑 Node - tr-2d50afca.yalaso.top is down

In db5f3a9, Node - tr-2d50afca.yalaso.top (http://tr-2d50afca.yalaso.top/api/v1/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Node - tr-2d50afca.yalaso.top is back up in 02cd770.

repo: superrr-vpn/status


text:
5.4.0里 饼图的 label  formatter {d} 值的百分比异常

5.4.1里他们修复了这个问题。希望可以集成一下。
谢谢。
label: {
show: true,
position: 'inside',
formatter: '{d}%',
fontSize: 16,
},

感谢反馈，已有升级至 5.4.2 的打算，预计本周内发布，见提交：https://github.com/supervons/react-native-echarts-pro/commit/cb7496b82a46aa0e3e7fcdf1330ec905c5c3b690

等待。

1.9.1 版本已发布，EChats 版本更新至 5.2.4，详见 Tag-1.9.1 @Imagine-Tom

authors: Imagine-Tom supervons

repo: supervons/react-native-echarts-pro


text:
Hash to scalar

Is there any chance of getting hash to scalar implemented?
https://www.ietf.org/archive/id/draft-irtf-cfrg-hash-to-curve-10.html#section-5-4
The hash_to_field function is also suitable for securely hashing to scalars. For example, when hashing to scalars for an elliptic curve (sub)group with prime order r, it suffices to instantiate hash_to_curve with target field GF(r).
I've been working on adding it but wanted to check the viability of this change before going too much further with it.

The project's prime objective is to comply with the specific specifications, hash-to-curve and bls-signature. This doesn't mean that everything else is off the table, but it means that anything extra is expected to raise above mere proclamation of a possibility. In other words, is there a specification, application or proposed draft?

Not sure that hash to scalar will be formalized in a spec, definitely doesn't look to be soon, so I'll close this issue for now.
The only thing I could find close to a spec is zkcrypto/bls12_381/hash_to_curve/scalar #L20 but this is behind the 'experimental' feature flag so seems some way off being suited for inclusion in blst.

Hmmm... Latest hash-to-curve draft added separate test vectors for expand_message_xmd. This effectively puts pressure on blst to export expand_message_xmd. And if it is exported, then you can combine it with blst_scalar_from_be_bytes to hash to scalar, right?

I would be happy to see expand_message_xmd exported. This would enable the functionality I'm looking for without explicitly labeling it, but I guess it goes against keeping the api surface small. Seeing that you're looking to macro-ify the api maybe later if hash-to-scalar becomes more explicit then it can be added.

I'm targeting rust.

Now build/refresh.sh is executed. Thanks for the links!

authors: dot-asm iancoleman

repo: supranational/blst


text:
Saving synthdefs as .scsynthdef file?

I was just wondering if there is currently an equivalent to the writeDefFile method so i can save  synthdefs i make as .scsynthdef files on my hard drive. Thanks

There's no one-shot method for doing this, but it's quite easy with two ingredients: Path.write_bytes() and SynthDef.compile().
Let's define a trivial SynthDef:
>>> from supriya import synthdef, ugens
>>> @synthdef()
... def example():
...     ugens.Out.ar(source=ugens.SinOsc.ar())
...

>>> example
<SynthDef: example>

>>> example.compile()
b'SCgf\x00\x00\x00\x02\x00\x01\x07example\x00\x00\x00\x02C\xdc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x06SinOsc\x02\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff\xff\x00\x00\x00\x01\x02\x03Out\x02\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

>>> print(example)
synthdef:
    name: example
    ugens:
    -   SinOsc.ar:
            frequency: 440.0
            phase: 0.0
    -   Out.ar:
            bus: 0.0
            source[0]: SinOsc.ar[0]

Then write it to disk:
>>> from pathlib import Path
>>> # Note I'm using .scsyndef, not .scsynthdef: scsynth seems to get grumpy about the extra "th" for some reason.
>>> path = Path("~/Desktop/my-synthdef.scsyndef").expanduser()
>>> path.write_bytes(example.compile())
110

We can also read it back from disk and decompile it back into a SynthDef object in Python:
>>> from supriya.ugens import decompile_synthdef
>>> compiled = path.read_bytes()
>>> decompiled = decompile_synthdef(compiled)
>>> print(decompiled)
synthdef:
    name: example
    ugens:
    -   SinOsc.ar:
            frequency: 440.0
            phase: 0.0
    -   Out.ar:
            bus: 0.0
            source[0]: SinOsc.ar[0]

... Or we can boot a server and have it load the SynthDef (in case you haven't figured this part out yet):
>>> from supriya import Server
>>> server = Server().boot()
>>> _ = server.load_synthdefs(path)

awesome, thank you for the detailed response!

You're welcome, darling.

repo: supriya-project/supriya


text:
作者是骗子，星星都是假的，项目根本用不了🖕

作者是骗子🤥，星星都是假的，项目根本用不了

什么玩意啊

感到羞耻 🤮

是啊，太恶心了 +2

请好好做人 🤥

我说呢，这破项目居然有五百多颗？ 🖕

请好好做人

骗子 🖕🖕

repo: sureJiang/MSNotificationProtector


text:
workflows: release script

@tobiemh asked if we can have a automatic npm publish script when a new tag is pushed. (see https://github.com/surrealdb/surrealdb.js/issues/24#issuecomment-1251945782)
This issue is to discuss this. There are 2 options:

Only have run npm publish on new tag
Have a full worflow described as below for it.

You would trigger it manualy like in grafik

You choose what type of release you want and klick "run". The action will do (in this order):

Calculate new version (depending if this is a major, minor or patch)
Update package.json and commit
Install npm dependencies
Run npm run build
Run npm run publish
Add a tag with calculated version and push version

I would say, no need for the workflow. Just the simple npm publish when a new tag for the moment.
Either way the process of creating a new version is manual, but would be great to get the publishing to NPM (Deno is automatic already obviously) through the API.


text:
Disable spinner progress bars when downloading files

Only audit "Downloading file" messages when the file length is unknown
Could not figure out the underlying issue and opted for an "easy" fix given the only files with unknown lengths that EIB is downloading so far are the RKE2 and k3s installer scripts (which are just few bytes in size)
Closes https://github.com/suse-edge/edge-image-builder/issues/364

Pre-caching output:
Generating image customization components...
Identifier ................... [SUCCESS]
Custom Files ................. [SKIPPED]
Time ......................... [SKIPPED]
Network ...................... [SUCCESS]
Groups ....................... [SKIPPED]
Users ........................ [SUCCESS]
Proxy ........................ [SKIPPED]
Rpm .......................... [SKIPPED]
Systemd ...................... [SKIPPED]
Elemental .................... [SKIPPED]
Suma ......................... [SKIPPED]
Embedded Artifact Registry ... [SKIPPED]
Keymap ....................... [SUCCESS]
Configuring Kubernetes component...
The Kubernetes CNI is not explicitly set, defaulting to 'cilium'.
Downloading file: rke2_installer.sh
Downloading file: rke2-images-core.linux-amd64.tar.zst 100% |███████████████████████████████████████████████████████████████████████| (780/780 MB, 112 MB/s)
Downloading file: rke2-images-cilium.linux-amd64.tar.zst 100% |█████████████████████████████████████████████████████████████████████| (367/367 MB, 115 MB/s)
Downloading file: rke2.linux-amd64.tar.gz 100% |██████████████████████████████████████████████████████████████████████████████████████| (34/34 MB, 116 MB/s)
Downloading file: sha256sum-amd64.txt 100% |█████████████████████████████████████████████████████████████████████████████████████████| (3.9/3.9 kB, 32 MB/s)
Kubernetes ................... [SUCCESS]
Certificates ................. [SKIPPED]
Building RAW image...
Kernel Params ................ [SKIPPED]
Image build complete!

Post-caching output:
Generating image customization components...
Identifier ................... [SUCCESS]
Custom Files ................. [SKIPPED]
Time ......................... [SKIPPED]
Network ...................... [SUCCESS]
Groups ....................... [SKIPPED]
Users ........................ [SUCCESS]
Proxy ........................ [SKIPPED]
Rpm .......................... [SKIPPED]
Systemd ...................... [SKIPPED]
Elemental .................... [SKIPPED]
Suma ......................... [SKIPPED]
Embedded Artifact Registry ... [SKIPPED]
Keymap ....................... [SUCCESS]
Configuring Kubernetes component...
The Kubernetes CNI is not explicitly set, defaulting to 'cilium'.
Downloading file: rke2_installer.sh
Kubernetes ................... [SUCCESS]
Certificates ................. [SKIPPED]
Building RAW image...
Kernel Params ................ [SKIPPED]
Image build complete!

This is a good call given the time left and potential first impression issues we have with customers seeing it pre-fix.

authors: atanasdinov jdob

repo: suse-edge/edge-image-builder


text:
Activity crashes

I cloned your project but it doesn't seem to be able to run, getting different errors each time. Don't know what it could be.
Also, is there a way to not use an action bar? (the one on top)
check the stack trace here: https://hastebin.com/share/ifagofosiw.php

my styles.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
    <style name="Theme.Prueba" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
        <item name="colorPrimary">@color/purple_200</item>
        <item name="colorPrimaryVariant">@color/purple_700</item>
        <item name="colorOnPrimary">@color/black</item>
        <item name="colorSecondary">@color/teal_200</item>
        <item name="colorSecondaryVariant">@color/teal_200</item>
        <item name="colorOnSecondary">@color/black</item>
        <item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
    </style>
</resources>

seemed to get fixed by creating a new project... love android

repo: susonthapa/curved-bottom-navigation


text:
pull

pull

pull

repo: sussuq/vite-vue-bpmn-process


text:
Where are the front end files

Hi, Thank you for sharing this code, I wanted to test and see how it was working cause I wanted to build an SRS app, but I could not find the frontend files for this project, it seems like this code is just a backend API.
Thank you 😁

If there were are frontend files they'd be in the resources/js directory.
Unfortunately there aren't any because I didn't really do much with this project. I've been without a computer and internet for 6-8 weeks. But that just changed and I plan to get back into the swing of things and start working on projects again soon.
So maybe keep an eye on the repository.

There's some stuff here that may or may not be of use to you but there's really not much and I doubt it's any good, it was just basically me learning Vue and taking a very first attempt at some basic SRS stuff. I don't think that repo will be updated, nor will it be supported. But this one may well be!

authors: rizerzero sustained

repo: sustained/ascension


text:
Added University of Limerick

I added a new university file and details about the University of Limerick

I would remove Leipzig, and then I would ask Clare Dillon how LERO should be added. It's not just Limerick university.

This should be under LERO, not Limerick. Closing for now.

authors: RichardLitt Victorybrown

repo: sustainers/academic-map


text:
Redeploy from staging or remove staging

The main site is a couple weeks out-of-date. Can we redeploy from staging? Personally, I'd just get rid of staging as I'm not sure it's worth the overhead

I agree, not sure that we need it and changes can be more easily pushed without it.

I think we could definitely use some kind of GitHub action that runs every week or so that re-deploys the website. I'd like to keep the staging branch, it's a nice sanity check and stops us from bringing the site down 🙏 I don't have much experience writing GH actions though, I'll have to take a look during the week.

An action would be nice, but I haven't used them either. Sounds like a plan though.

As it's now, the staging branch doesn't exist anymore.
Closing the issue

authors: MacFJA benmccann brittneypostma kevmodrome


text:
Referencing a worker with URL breaks the build

Describe the bug
Running npm build breaks with Error: Could not find file "node_modules/.pnpm/@sveltejs+kit@1.15.4_svelte@3.58.0+vite@4.2.1/node_modules/@sveltejs/kit/src/runtime/client/start.js" in Vite manifest. This is caused by referencing a worker js file using new Worker(new URL(.., import.meta.url))
Even if this is caused by something like an invalid worker file (which it isn't, since it works fine in dev mode), the error message (or creation of start.js) should not break because of this
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-e7zbcm?file=src/routes/+layout.svelte
See src/routes/+layout.svelte. Reproduce by running npm run build
Logs
No response
System Info
Reproable in stackblitz. Latest packages

Severity
blocking an upgrade
Additional Information
Unable to release a package using sveltekit due to the bug

Duplicate of https://github.com/sveltejs/kit/issues/9528

authors: bluwy wyozi

repo: sveltejs/kit


text:
Fix adapter-netlify query params splitting (#1466)

Instead of manually recreating the query parameters object from Netlify Functions' queryStringParameters object it is directly using the rawQuery object to create the URLSearchParams.
Fixes #1466
Before submitting the PR, please make sure you do the following

[x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[ ] Ideally, include a test that fails without this PR but passes with it.

Tests

[x] Run the tests with pnpm test and lint the project with pnpm lint

Changesets

[x] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpx changeset and following the prompts

It looks to me like adapter-begin should be updated in the same way:
https://github.com/sveltejs/kit/blob/06380d7c9eb40a8ade90ac1cedb30e797060d884/packages/adapter-begin/src/index.js#L10
Would you mind updating that one as well?

It looks to me like adapter-begin should be updated in the same way:
https://github.com/sveltejs/kit/blob/06380d7c9eb40a8ade90ac1cedb30e797060d884/packages/adapter-begin/src/index.js#L10
Would you mind updating that one as well?

Sure thing, I updated that one as well.

authors: adamjkb benmccann


text:
:sparkles: NEW: detail todo

I wanted to contribute to the awesome svelteKit and took a help wanted topic. https://github.com/sveltejs/kit/issues/4225
I added in the demo app a parameterized routes [uid] showing the title of the todo, a previous button, and a back button.
Here is the result:

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[ ] Ideally, include a test that fails without this PR but passes with it.

Tests

[ ] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[ ] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpx changeset and following the prompts. All changesets should be patch until SvelteKit 1.0

Thanks - but closing due to concerns raised in the originating issue.

authors: antony jycouet


text:
blog: "What's new in Svelte" March newsletter

Let me know if I missed anything!

Going to publish the Svelte Summit website probably on thursday, would be great if we can have a bit about that in there - if you're open to merging after it's released?

if you're open to merging after it's released?

I don't mind merging and sending out the newsletter Thursday morning (my time). That's only a day delay :) Any later than that, though, is probably a problem

@DreaminDani I'll make sure it's up! Thanks 🙏

authors: DreaminDani kevmodrome

repo: sveltejs/sites


text:
Error with no valid BB Code parsing

In node.js, I have a error when I typed
> var BBCodeParser = require('bbcode-parser');
undefined
> var parser = new BBCodeParser(BBCodeParser.defaultTags());
undefined
> parser.parseString('[b]Bold text[/b]');
'<b>Bold text</b>'
> parser.parseString('[]Bold text[/b]');
TypeError: Cannot read property 'isValid' of null
    at BBCodeParser.parseString (/tmp/node_modules/bbcode-parser/bbCodeParser.js:50:23)
    at repl:1:8
    at REPLServer.defaultEval (repl.js:132:27)
    at bound (domain.js:254:14)
    at REPLServer.runBound [as eval] (domain.js:267:12)
    at REPLServer.<anonymous> (repl.js:279:12)
    at REPLServer.emit (events.js:107:17)
    at REPLServer.Interface._onLine (readline.js:214:10)
    at REPLServer.Interface._line (readline.js:553:8)
    at REPLServer.Interface._ttyWrite (readline.js:830:14)

I solved it by changing isValid method in bbCodeParserTree.js, like that :
    BBCodeParseTree.prototype.isValid = function () {
        //An tree without subtrees is valid
        if (this.subTrees.length == 0) {
            return true;
        }
        this.subTrees.forEach( function(value,i){
            var currentTree = value//this.subTrees[i];

            if ( currentTree == null || !currentTree.isValid()) {
                return false;
            }
        })

        return true;
    };

Is this solution the good one ?

Sorry I solved it by changing bbCodeparser.js like this :
   BBCodeParser.prototype.parseString = function (content, stripTags, insertLineBreak) {
        if (stripTags === void 0) { stripTags = false; }
        if (insertLineBreak === void 0) { insertLineBreak = true; }
        //Create the parse tree
        var parseTree = BBCodeParseTree.buildTree(content, this.bbTags);
        //If the tree is invalid, return the input as text
        if (parseTree == null || !parseTree.isValid()) {
            return content;
        }
        //Convert it to HTML
        return this.treeToHtml(parseTree.subTrees, insertLineBreak, stripTags);
    };

Yes, the method should check for null, and has been updated to NPM.

repo: svenslaggare/BBCodeParser

license: mit


text:
swagger project edit - cannot get /

I'm completely new to the project and was just following the 5 steps in the README. However step 3 fails.
The server starts and opens my browser at http://127.0.0.1:34407/#/edit however all I get is a 404 with a Cannot GET / error message.
Maybe there's a step missing in the README?
In case it matters:
$ node --version
v7.7.2
$ npm --version
4.4.1
$ uname -a
Linux perd 4.10.1-1-ARCH #1 SMP PREEMPT Sun Feb 26 21:08:53 UTC 2017 x86_64 GNU/Linux

I was also getting this error becouse I had swagger installed locally as devDependency, but it seems that it also needs swagger-editor package in order to work.

That's it! I installed swagger-edit and it worked. Thanks!

Good spot @splitbrain. Might be better if a sensible error message is shown in this case though, would it be worth re-opening this issue and updating it to something like:
If swagger-editor is not installed, show a sensible error message
WDYT?

I guess we can make a better error message as @dwmkerr suggests.

I just added it with: npm install --save-dev swagger-editor and all work as expected.

I think the correct way to proceed is add swagger-editor as peer dependency.

Given the codebase is auto-generated - why not just add it the the devDependencies? and also to the README that you need to install devDeps?

Also the readme says to install swagger globally, in which case the editor seems to need to be installed globally as well.
Great project guys - thanks for all your contributions!

Installing swagger-editor globally solved it for me.
sudo yarn global add swagger-editor
Tried it as a devDependencies and didn't work. Once the package was installed globally, it worked fine with a new project (swagger project create hello-world)

I installed both swagger and swagger-editor globally but it didn't work. I am trying to install on windows 10 :(

authors: DanielRamosAcosta dwmkerr imcspandey jonathanfallon rmariuzzo saisankargochhayat splitbrain subos2008

repo: swagger-api/swagger-node


text:
How to get the body payload?

I am hoping this is a defect against documentation.
I am unable to retrieve the body payload for a POST operation.
Using the Swagger-Petstore sample, the POST to /pet has a body parameter defined as:
{
  "in": "body",
  "name": "body",
  "description": "Pet object that needs to be added to the store",
  "required": true,
  "schema": {
     "$ref": "#\/definitions\/Pet"
  }
}

Here is my sample code:
import io.swagger.models.Operation;
import io.swagger.models.Path;
import io.swagger.models.Swagger;
import io.swagger.models.parameters.Parameter;
import io.swagger.parser.SwaggerParser;

public class PetPostBody {

    public static void main(String[] args) {
	Swagger swagger = new SwaggerParser().read("http://petstore.swagger.io/v2/swagger.json");

	Path pet = swagger.getPath("/pet");
	Operation post = pet.getPost();
	Parameter body = null;
	for (Parameter param : post.getParameters()) {
	    if (param.getIn().equals("body"))
		body = param;
	}
	body.get???
    }
}

How do I retrieve the payload?
The only things that I can see (in debugger) for body is schema but that is access protected(?), and under that is genericRef (access private) that points to the definitions.
What am I missing?

I think this is a duplicate of #473
:(

Forgive me if I misunderstand your question but in case this helps . . .
In swagger-parser 1, I use io.swagger.models.parameters.BodyParameter.getSchema()
In swagger-parser 2, I use io.swagger.oas.models.media.MediaType.getSchema()

I am using swagger-parser 1. Version 2 is still RC?
Using your code above, I can only see schema.getReference() and then iterating over swagger.getDefinitions() until I find the one I am interested in?
I guess I was naively(?) expecting the library to do all that for you.

The model matches the Swagger/OAI document.  If the Swagger has a $ref then you will get a schema object that describes that $ref.

I can only see something like:
Model schema = bp.getSchema();
String reference = schema.getReference();
// I do not see how to get 'simpleRef', so:
String simpleRef = reference.replaceFirst(".*/", "");

Map<String, Model> definitions = swagger.getDefinitions();
Model definition = definitions.get(simpleRef);
Map<String, Property> bodyProperties = definition.getProperties();
// now I can construct the body for my POST

Is this the correct approach?

In swagger-parser 1 you can check model should be instanceof RefModel which has a get$ref() method.
Not that you care, but I'll also mentoin that in swagger-parser2 the Schema class I mentioned similarly hasget$ref() method.  The new OAI 3 model is much cleaner, much less instanceof stuff like what you have to do with the older Swagger model.

Looks like schema.get$ref() and schema.getReference() get you the same thing ... at least in my case. So the approach I posted above is the correct way forward?
Our development has decided to use an API framework that only generates OAI2, and only partially at that. I do not have any say in that.

authors: SiKing benken-parasoft

repo: swagger-api/swagger-parser


text:
upgrade to JUnit 4.13 RC1

this is the latest release of JUnit4

Hi, thanks for the PR, we are going to keep using the stable version.

obsolete.

what about 4.12.x?

JUnit 4.13.x is expected to be released very soon
https://github.com/junit-team/junit4/issues/1496

ok no problem then, we'll wait.

authors: gracekarina sullis


text:
Update the demo video

The vimeo link is way too old!

Hi, I know that you self-assigned the demo, but I was bored and decided to make one! Here's the Vimeo link: https://vimeo.com/226022581
Tell me if I can PR :)
Sent from my Xiaomi MI MAX 2 using FastHub

Hi Miko, that's an awesome demo! 😄
I really liked the part towards the end. You should definitely send a PR. 🎉

authors: Redseb swapagarwal

repo: swapagarwal/JARVIS-on-Messenger


text:
[Feature] Addition of "Deals" Page in the Navigation Bar

Description
I propose adding a "Deals" page to the navigation bar, which will highlight upcoming sales, exclusive discounts, and promotional offers. This feature will allow customers to stay informed about time-sensitive deals, enhancing their shopping experience and driving engagement.
@swaraj-das please assign me this issue. I would like to work on this
Screenshots
No response
Checklist

[X] I have checked the existing issues.
[X] I have read the Code Of Conduct
[X] The changes don't break the code
[X] Please attach the screenshots and video of the development work once it is done

@Nitheesha33 @opbot-xd No need to add it in the navbar. You can add this in the hero section as slider, where customers can see the ongoing or upcoming deals.

@swaraj-das Please add a label with the appropriate level

repo: swaraj-das/Collect-your-GamingTools


text:
Updated project to Ember 2.4 & Added small new feature

Hey, I found this component quite useful, but I wanted to add a small feature (the ability to pass in a label for the Save button).
I forked your repo, added the feature, went to add a test, and found that I couldn't get the tests to run at all. I spent a few hours yesterday trying and got nowhere. Might be an ember-cli version issue, might be something else entirely. Testem just stalled out 'waiting for runners' no matter what I did.
Anyways, I ended up generating a new addon (using ember-cli@2.4.3) and bringing your code and tests into that new project. I changed as little as possible along the way (a few things to prevent jshint from yelling).
Of course, now this is a substantial PR that (being based on a project generated using a more recent version of Ember) may not fit your needs...on the other hand, maybe this is useful for other people looking to contribute.
I apologize if this seems presumptive. I'll understand if you would rather keep the project scaffolding as it was.
In that case, I could make a new PR with just the changes to ember-inline-edit.js, ember-inline-edit.hbs, and ember-inline-edit-test.js (the small new feature) and ignoring all the other file changes.
Or whatever you think is best :)

This is a wonderful PR! :smile:
I ran the tests locally and everything seems fine. I'll merge this.
One thing though: can you please commit the previous README back? It seems to have gone back to the default ember-cli README in this commit.
Thank you so much! :smiley:

Ah happy to hear that. I'll restore the readme, I think I briefly went diff-blind.

On Apr 13, 2016, at 10:51 PM, Swastik notifications@github.com wrote:
This is a wonderful PR!
I ran the tests locally and everything seems fine. I'll merge this.
One thing though: can you please commit the previous README back? It seems to have gone back to the default ember-cli README in this commit.
Thank you so much!
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

Ok, I've updated the README, so this should be good to go.

Thank you! I've merged it; I'll publish a new release tomorrow. :smiley:

Hi @swastik, any chance this feature will be releasing soon? Many thanks!

@mwadden — Sorry, I totally forgot! 😃
I've published it now. The version is 0.1.5.

authors: jakemoves mwadden swastik

repo: swastik/ember-inline-edit


text:
fix(swc): Fix bugs

Issues

[ ] https://github.com/Brooooooklyn/swc-node/issues/210

Could you fix https://github.com/swc-project/swc/issues/1252  in the meantime?

Could you fix https://github.com/swc-project/swc/issues/1252  in the meantime?

@Brooooooklyn Of course. I'll fix it along with the pr.

@Brooooooklyn Of course. I'll fix it along with the pr.

repo: swc-project/swc


text:
refactor(bindings): Rename crates

Description:
This is a groundwork for @swc/css and @swc/html.

@Brooooooklyn Does napi support publishing multiple node packages from single repository?

Does napi support publishing multiple node packages from single repository?

Sure, I'll send a pr tomorrow based on yours

Thank you!


text:
Add support for System.Numerics.Complex[]

Why do you use your own Complex class for complex numbers, now C# has a built-in class and it looks like it can do the same thing as yours?

Hi @AlexandrSpirin, this is a good question! I think the reason I implemented my own complex number class is so it could be minimal and simple, and easily ported to other languages. Compare the complexity of these two classes:

https://github.com/swharden/FftSharp/blob/main/src/FftSharp/Complex.cs

https://github.com/microsoft/referencesource/blob/master/System.Numerics/System/Numerics/Complex.cs

I recognize that people who already have data in System.Numerics.Complex[] would expect a FFT library to be able to work with that standard data type. We could add support for this in a non-breaking way by overloading these two functions with essentially identical code:
https://github.com/swharden/FftSharp/blob/8015e0dc504edd01c02ae6b9c9d334dc33d9bda5/src/FftSharp/Transform.cs#L20-L66
If you want to create a PR I would be happy to review it! Bonus points for demonstrating the new usage in the readme and in a new test. If you decide not to that's okay, I'll leave this issue open and implement this next time I work in this code base.
Thanks again for pointing this out!
Scott

Following-up, I'm moving these methods into their own static class with a simpler API that resembles Math.NET
// Apply FFT in place
System.Numerics.Complex[] samples = { /* */ };
FftSharp.FFT.Forward(samples);

// Get FFT from real data array
double[] samples = { /* */ };
System.Numerics.Complex[] fft = FftSharp.FFT.Forward(samples);

authors: AlexandrSpirin swharden

repo: swharden/FftSharp


text:
Add Dependency Graph Workflow

GitHub's dependency graph features only support parsing Package.resolved, which most libraries don't check in. In order to workaround this, GitHub offers the Dependency Submission API to allow packages to submit their own package graph. We should offer a workflow to make it easy for packages to submit this.
Essentially it just needs to run swift package resolve, parse the results and send them to the API. There's a toolkit here and examples of other languages here

+1

repo: swiftlang/github-workflows


text:
Fetching dependencies declared in swift-java.config

This will allow Swift users to fetch Java dependencies and "just use them".
It will become a pre-step to extract steps, such that we can "pull that dependency and expose the API I need from it" while we prepare the whole classpath for it etc.
// MyProject/Sources/JavaReactiveStreams/swift-java.config
{
  "dependencies": [
    "org.reactivestreams:reactive-streams:1.0.4"
  ],
  // FIXME: we should not need to express this classpath!
  "classPath": "JavaKit/build/classes/java/main",
}

So effectively we can expose existing Java libraries using such mini modules and such config file.
Example:
Java2Swift --fetch Samples/JavaDependencySampleApp/Sources/JavaKitExample/swift-java.config
[swift-java] Initialize JVM with classpath: JavaKit/build/classes/java/main
[debug][swift-java] Fetch dependencies: ["org.reactivestreams:reactive-streams:1.0.4"]
[trace][swift-java][JavaVirtualMachine] init complete JavaVirtualMachine(0x00000001049ef450)
[info][swift-java/DependencyResolver] Fetch dependencies: [org.reactivestreams:reactive-streams:1.0.4]
[info][swift-java/DependencyResolver] projectBaseDirectoryString =  /Users/ktoso/code/swift-java
[info][swift-java/DependencyResolver] Gradle API not available on classpath, bootstrap DependencyResolver dependencies: [dev.gradleplugins:gradle-api:8.10.1]
[info][swift-java/DependencyResolver] Bootstrap gradle-api for DependencyResolver: [dev.gradleplugins:gradle-api:8.10.1]
[info][swift-java/DependencyResolver] Bootstrap dependencies using project at: /var/folders/hn/c22y4jsn4j74mw23_kpgn88w0000gn/T/swift-java-dependency-resolver14393824301967899957
[info][swift-java/DependencyResolver] Prepared dependency resolver bootstrap classpath: 48 entries
[info][swift-java/DependencyResolver] Cache DependencyResolver dependencies classpath at: '/Users/ktoso/code/swift-java/.build/JavaKitDependencyResolver.classpath.swift-java'. Subsequent dependency resolutions will use gradle-api.
[info][swift-java] Resolved classpath for 1 dependencies of 'JavaKitExample': classpath entries: 3... done.
[debug][swift-java] Classpath entry: /private/var/folders/hn/c22y4jsn4j74mw23_kpgn88w0000gn/T/java-swift-dependencies6600421546298984751/build/classes/java/main
[debug][swift-java] Classpath entry: /private/var/folders/hn/c22y4jsn4j74mw23_kpgn88w0000gn/T/java-swift-dependencies6600421546298984751/build/resources/main
[debug][swift-java] Classpath entry: /Users/ktoso/.gradle/caches/modules-2/files-2.1/org.reactivestreams/reactive-streams/1.0.4/3864a1320d97d7b045f729a326e1e077661f31b7/reactive-streams-1.0.4.jar

Squashed it all, will do followups to cleanup and add more things to this workflow.

repo: swiftlang/swift-java


text:
Regression compiling non-throwing compactMap

Description
The following code compiles fine with Swift 5.x, but Swift 6 produces a bogus diagnostic.
Reproduction
import AppKit

open class Base: NSView {
  override public init(frame: NSRect) {
    super.init(frame: frame)
  }

  @available(*, unavailable)
  public required init?(coder _: NSCoder) {
    fatalError("init(coder:) has not been implemented")
  }
}

final class Subview<View: NSView>: Base {
  var views: [View] {
    let views: [NSView] = []
    // Call can throw, but it is not marked with 'try' and the error is not handled
    return views.compactMap(f)
  }

  private func f(_ view: NSView) -> View? {
    return nil
  }
}

Expected behavior
The code should compile fine, but instead produces

Call can throw, but it is not marked with 'try' and the error is not handled

Environment
swift-driver version: 1.109.2 Apple Swift version 6.0 (swiftlang-6.0.0.3.300 clang-1600.0.20.10)
Target: arm64-apple-macosx14.0
Additional information
I haven't been able to reduce this further without NSView.

I can't reproduce this on main

This is still reproducible with Xcode 16 RC.

authors: NachoSoto hborla

repo: swiftlang/swift


text:
[6.0][update-checkout] Add swift-testing to release/6.0.0 scheme

Add swift-testing:release/6.0.0

@swift-ci Please test


text:
[concurrency] Implement _runOnMainActor

This PR implements the new runtime routine swift_task_isOnMainActor() which returns true if one is on the main actor. It does this by in non-Swift Concurrency code checking for the main thread and in swift concurrency mode returns true if the current executor is the main executor. I backwards deploy it back to Swift 5.1 on Darwin by using swift runtime APIs and dispatch APIs.

Doing this in a different PR.


text:
Use proxy types for package private properties

I think that while public functions giving access to private properties does the job, they pollute the global namespace of TokamakCore, while for every property you need to create a separate function. These functions read a bit weird at their place of use, so I'm wondering whether the Proxy pattern could work better here. While it's more verbose, I find it a bit more readable, while also adding some sort of structure here for grouping multiple properties if needed.
CC @j-f1, this is something you might want to use in #125.

Fails

:no_entry_sign:

Sources/TokamakCore/Views/Button.swift#L21 - FIXMEs should be resolved (this should be internal). (todo)

:no_entry_sign:

Sources/TokamakCore/Views/SecureField.swift#L21 - FIXMEs should be resolved (this should be internal). (todo)

:no_entry_sign:

Sources/TokamakCore/Views/TextField.swift#L21 - FIXMEs should be resolved (this should be internal). (todo)

:no_entry_sign:

Sources/TokamakCore/Views/TextField.swift#L43 - FIXMEs should be resolved (implement this method, which u...). (todo)

:no_entry_sign:

Sources/TokamakDOM/Views/Text.swift#L149 - Line should be 100 characters or less: currently 103 characters (line_length)

  Generated by :no_entry_sign: Danger Swift against a65c37cbba667066c333590471c72f94a89fe19a

Should there be a _Proxy protocol to save on some boilerplate?
protocol _Proxy {
  associatedtype Subject : View
  var subject: Subject { get }
  init(_ subject: Subject)
}

extension _Proxy {
  init(_ subject: Subject) { self.subject = subject }
}

I’m not exactly sure how this works for things like styles where we want to be able to directly tag the view objects before rendering them.

IDK, as far as I know, at least according to compiler engineers on Swift Forums a plain struct with a single field is equivalent to using the value of that single field directly. I also hope that when inlining is applied, there really ырщгдв be no noticeable performance overhead with proxies. On the other hand, as soon as you introduce protocols and extensions, it adds all the runtime metadata cruft, which could have some impact in these hot code paths.
I think we could apply some meta-programming magic to reduce the amount of boilerplate at some point, probably similar to Sourcery or GYB, but without the textual substitutions unsafety. I think I got a few ideas for that inspired by Rust macros and SwiftSyntax, but nothing ready to be shown yet...

Fails

:no_entry_sign:

Sources/TokamakDOM/Views/Text.swift#L149 - Line should be 100 characters or less: currently 103 characters (line_length)

  Generated by :no_entry_sign: Danger Swift against a19d367182e03be5fe47c23829d25f5ab79d23cb

Fails

:no_entry_sign:

Sources/TokamakCore/Views/TextField.swift#L41 - FIXMEs should be resolved (implement this method, which u...). (todo)

  Generated by :no_entry_sign: Danger Swift against e297abc20f43053e2d9b0860b44576ad8dd193fd

Fails

:no_entry_sign:

Sources/TokamakCore/Views/TextField.swift#L41 - FIXMEs should be resolved (implement this method, which u...). (todo)

  Generated by :no_entry_sign: Danger Swift against dc792ae14b05cdeb2ab6ee640b7c7a0c80d3f332

Fails

:no_entry_sign:

Sources/TokamakCore/Views/TextField.swift#L41 - FIXMEs should be resolved (implement this method, which u...). (todo)

  Generated by :no_entry_sign: Danger Swift against dc792ae14b05cdeb2ab6ee640b7c7a0c80d3f332

@carson-katri this one's ready for review too 🙂

authors: MaxDesiatov carson-katri ie-ahm-robox j-f1

repo: swiftwasm/Tokamak


text:
Demo site: 504 gateway server did not receive a timely response.

Website answers, but proxy receives error:
tried several sites and get the same error.

Error response
Error code 504.
Message: Gateway timeout.
Error code explanation: 504 = The gateway server did not receive a timely response.

Does this still happen?

On www.news.com
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /www.news.com.
Reason: Error reading from remote server
Apache/2.4.10 (Debian) Server at proxy.donttrustrobots.nl Port 443

on www.theledger.com  or www.cnn.com
Error response
Error code 504.
Message: Gateway timeout.
Error code explanation: 504 = The gateway server did not receive a timely response.

You're attempting to access those websites over port 443 (HTTP+TLS) while those websites do not support this. Opening a session on port 80 will work as normal.
Better handling for falling back to HTTP when HTTPS is not available is planned for the 1.2 release.

I'm seeing a 504 error code for any HTTPS website. I have a certificate from Let's Encrypt and HTTPS works on the home page. Any idea what might be causing the error?

authors: Argure hbgconstable ingramleedy

repo: swiperproxy/swiperproxy


text:
How to set a relation to "null"?

Hi @JaZo ! Just don't figure how to set a relation to null when saving a content which had a previous relation set.
Relation "publisher" is a hasOne relation
This is the attributes/relations array prior to hydration. this array works as expected.
$ordineAttributes = [
                    note => $datiForm['note'],
                    'totale_ordine' => $datiForm['totale_ordine'],
                    'stato' => [
                        'id' => base64_decode($datiForm['stato'])
                    ],

/* THIS IS THE RELATION I WANT TO EVENTUALLY SET TO NULL (OR SOMEWHAT SIMILAR) */
                    'publisher' => [
                         'id' => $datiForm['publisher']
                    ],

                    'cliente' => [
                        'id' => $datiForm['cliente_id']
                    ],
                    'righe_ordine' => $ids,
                ];

$itemOrdineDocument = $itemHydrator->hydrate(
                        $typeMapper->getMapping('node--ordini'),
                        $ordineAttributes,
                        $orderID
                );

I already tried to:

[x] pass an empty publisher array
[x] pass publisher => null
[x] pass "id" => "none"
[x] pass "id" => "null"
[x] pass "id" => null
[x] pass "id" => 0

Of course, if I completely remove the publisher entry from the ordineAttributes array, the hydrator steps over and leaves the previous value unchanged.
What I'm doing wrong?
I also get errors when I do
$itemOrdineDocument->unsetRelation('publisher');
$ordineRepo->save($itemOrdineDocument);

I also get errors when I do
$itemOrdineDocument->unsetRelation('publisher');
$ordineRepo->save($document);

Good point! Currently you can't set a relation to null using the ItemHydrator, but you can do it manually:
$item = $typeMapper->getMapping('node--ordini');
$item->publisher()->dissociate();

I'll leave this issue open to implement this in the ItemHydrator!

@JaZo fantastic! So I was hitting the point. I implemented

Good point! Currently you can't set a relation to null using the ItemHydrator, but you can do it manually:
$item = $typeMapper->getMapping('node--ordini');
$item->publisher()->dissociate();

I'll leave this issue open to implement this in the ItemHydrator!

@JaZo fantastic! So I hit the point. Figuring out the way to workaround that, I implemented the setter exactly as you stated, really little before you wrote the comment :-D

@V-Orbit, 1.0.0 is released 🎉 and this release includes this fix!

Fantastic work @JaZo! I'll update the library immediately! thanks for your help 💓

authors: JaZo V-Orbit

repo: swisnl/json-api-client


text:
Add - /accounts - "firstEntryId & "lastEntryId"

Contact Details
ask@oli.chatelain:-)
Issue category
Refinement
Issue description
Add a low-watermark ("firstEntryId") and a high-watermark ("lastEntryId") to the account details endpoint.
Issue reasoning
To allow a fast update of the transaction data, a low- and high-watermark would allow:

Delete old data (supporting FinMa request to stay in sync)
Add old data only if available

Request
Add to GET /accounts and GET /accounts/{account-id} this two mandatory fields in the response on each account:

firstEntryId: The oldest entry still valid
lastEntryId: The youngest entry still valid

Proposed change
tbd after "Grundsatzentscheid"

Affected API's
AIS
Code of Conduct

[X] I agree to follow this project's Contribution Guidelines

Meeting Notes 12.12.24
The new issue needs to be presented by @ochatelain on next meeting.

authors: ochatelain svenbiellmann

repo: swissfintechinnovations/ca-payment


text:
Update test blueprints to use let

Updating the test blueprints to use let instead of var

:+1:

Released in v0.9.8.

authors: Dhaulagiri rwjblue

repo: switchfly/ember-cli-mocha


text:
feat: introduce onerror attribute

Onerror attribute is used on the img tags as fallback, in case the original image is not found.

@swlkr anything on this?

Oh I saw this, yes, missing so many html attrs, I really need to get releases happening automatically, this will show up in crates.io at some point, but you can always use main instead of your fork in the mean time.
Also for any missing attrs, you can use .attr("onerror", "") too
LGTM

authors: enismustafaj swlkr

repo: swlkr/ryde


text:
scrub_doublets still completes without annoy, nearest neighbor search

First of all, thank for scrublet! I have been using for a while now, and much prefer it over the alternatives.
As for the issue, it's a bit niche but can potentially cause serious silent issues on an HPC. Even if annoy is installed, loading can fail if a semi-recent version of gcc is not currently in the user's path. For HPC users, this would generally require loading a GCC module. In my case, module load gcc/11.2.0 restores the missing library and solves the issue.
Minimal code to reproduce the issue:
import scrublet as scr
mport scipy.io
import os
import gzip
import pandas as pd

counts_matrix = scipy.io.mmread(gzip.open("path/matrix.mtx.gz")).T.tocsc()
scrub = scr.Scrublet(counts_matrix, expected_doublet_rate = 0.1)
doublet_scores, doublets = scrub.scrub_doublets(min_counts=2, min_cells=3, min_gene_variability_pctl=85, n_prin_comps=30)

And the behavior:
Preprocessing...
Simulating doublets...
Embedding transcriptomes using PCA...
Calculating doublet scores...
Could not find library "annoy" for approx. nearest neighbor search
Automatically set threshold at doublet score = 0.62
Detected doublet rate = 0.4%
Estimated detectable doublet fraction = 4.5%
Overall doublet rate:
        Expected   = 10.0%
        Estimated  = 8.1%
Elapsed time: 10.9 seconds

In this case, doublet rate is still estimated, but apparently without finding nearest neighbors for simulated doublets. Or perhaps another method is used? Still, would be worth throwing a stronger warning of some sort or even failing in this case. If this analysis is automated, these sorts of messages may be missed entirely.

And for clarity, this is what happens if I import annoy without a gcc module loaded, even though annoy is installed in my virtual environment:

repo: swolock/scrublet


text:
Implement Proton SMTP Submission Adapter

This PR adds an adapter for Proton SMTP Submission leveraging the SMTP Submission token connecting directly to Proton SMTP, not requiring ProtonBridge to be running as used in the ProtonBridge adapter.
The Proton token can be generated from ProtonMail -> Settings -> IMAP/SMTP:

This is no different from SMTP. I don't think this needs to be another adapter. I accepted the bridge one because it's special. I'll move your config to the docs part of PhotonBridge to show how it's normally configured without a bridge.

authors: mandax princemaple

repo: swoosh/swoosh


text:
🛑 BestQA is down

In c7b9386, BestQA ($SECRET_SITE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: BestQA is back up in 5570c07.

repo: swuecho/upptime


text:
🛑 Random site is down

In 957d478, Random site (https://www.southernjive.co.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Random site is back up in 9a25d53.

repo: sxa/aoupptime


text:
🛑 Random site is down

In baf5494, Random site (https://www.southernjive.co.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Random site is back up in abaa540.


text:
Unplugin-vue-single-define fails with two script tags

Describe the bug
I got this error:
[plugin:unplugin-vue-single-define] Unexpected token, expected "from" (2:12)
.../ui/src/components/ds/IconButton.vue:2:12
1  |  <script setup lang="ts">

... as soon as I added:
<script>
export default {
  inheritAttrs: false
}
</script>

Is the use of defineOptions an absolute requirement?
Reproduction
just put in

I didn't get your point. Please provide more detail and code.
Note: Using two script blocks is not recommended while using Vue Macros. Please try to use <script setup> only instead.

We temporarily close this due to the lack of enough information. Please provide a minimal reproduction to reopen the issue. Thanks.
https://antfu.me/posts/why-reproductions-are-required

Note: Using two script blocks is not recommended while using Vue Macros.

Why? This is a perfectly valid scenario that Vue SFCs support.

Yes, it's just a suggestion which means it's not first-class support. Please provide a reproduction and I can figure out the problem.

It looks like this is an error message prompt issue.
When the language of two <script> does not match, without the reactivity-transform plugin enabled, vite prompts:
[plugin:vite:vue] [@vue/compiler-sfc] <script> and <script setup> must have the same language type.
If the reactivity-transform plugin is enabled, vite prompts for:
[plugin:unplugin-reactivity-transform] Unexpected token, expected "," (3:8)
minimal reproducible code
<script>
export default {}
</script>
<script setup lang="ts">
defineProps<{
    size?: string | number
    minSize?: string | number
}>()
</script>

<template>
    <div> {{ size }} {{ minSize }} </div>
</template>

Fixed in unplugin-vue-macros@2.1.

authors: ipcjs matthew-dean sxzz

repo: sxzz/unplugin-vue-macros


text:
🛑 Concrete Tree is down

In 0a83a7c, Concrete Tree (https://concretetree.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Concrete Tree is back up in a773f8a after 28 minutes.

repo: symapex/upsite


text:
🛑 Bricktically is down

In 3e4c0d5, Bricktically (https://bricktically.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Bricktically is back up in e9b0df6 after 10 minutes.


text:
🛑 Concrete Tree is down

In f8ed539, Concrete Tree (https://concretetree.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Concrete Tree is back up in a762b2e after 39 minutes.


text:
🛑 Blooming Pots Landscaping is down

In 962bca2, Blooming Pots Landscaping (https://bloomingpotslandscaping.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Blooming Pots Landscaping is back up in da0951b after 52 minutes.


text:
🛑 Alpha Landscaping is down

In 8a7abe4, Alpha Landscaping (https://alpha-landscaping.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Alpha Landscaping is back up in 0e4482c after 20 minutes.


text:
🛑 Decor and Scape is down

In 81e52a8, Decor and Scape (https://decorandscape.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Decor and Scape is back up in 606f12c after 34 minutes.


text:
🛑 Alpha Landscaping is down

In a7517e6, Alpha Landscaping (https://alpha-landscaping.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Alpha Landscaping is back up in e452c46 after 23 minutes.


text:
🛑 The AZ Clean Expert is down

In 2c6c35e, The AZ Clean Expert (https://theazcleanexpert.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: The AZ Clean Expert is back up in cbfa0bf after 3 hours, 33 minutes.


text:
🛑 Environ Work is down

In cab5886, Environ Work (https://environwork.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Environ Work is back up in 74c9af5 after 31 minutes.


text:
🛑 Superior Surface is down

In c0a5afe, Superior Surface (https://superior-surface.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Superior Surface is back up in 4210283 after 10 minutes.


text:
🛑 Cleanary Sandiego is down

In e86bf09, Cleanary Sandiego (https://cleanarysandiego.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Cleanary Sandiego is back up in fc50789 after 3 hours, 31 minutes.


text:
🛑 Tidy Culture Mesa is down

In 838d18d, Tidy Culture Mesa (https://tidyculturemesa.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Tidy Culture Mesa is back up in 98246b4.


text:
🛑 Boosted Audio is down

In b2cf67d, Boosted Audio (https://boostedaudioor.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Boosted Audio is back up in 7f6879a.


text:
🛑 Ingles Genie San Antonio is down

In 19f7bf3, Ingles Genie San Antonio (https://inglesgeniesanantonio.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ingles Genie San Antonio is back up in 385bd4f.


text:
🛑 Dragues Well Repair is down

In bb55645, Dragues Well Repair (https://dragueswellrepair.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Dragues Well Repair is back up in 3696f33 after 51 minutes.


text:
🛑 Get Fence Lab is down

In 627feb1, Get Fence Lab (https://getfencelab.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Get Fence Lab is back up in 5592fe6 after 45 minutes.


text:
🛑 Floor Bright Cleaning is down

In a85eaff, Floor Bright Cleaning (https://floorbrightcleaning.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Floor Bright Cleaning is back up in 6965cc0.


text:
🛑 Prism Carpet Cleaning is down

In 4d45707, Prism Carpet Cleaning (https://prismcarpetcleaningtx.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Prism Carpet Cleaning is back up in 9cf2caf after 23 minutes.


text:
🛑 Tidy Helpers CA is down

In b0b5c84, Tidy Helpers CA (https://tidyhelpersca.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Tidy Helpers CA is back up in b8e79bb after 26 minutes.


text:
🛑 Clean Kind is down

In 0da9624, Clean Kind (https://cleankindphx.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Clean Kind is back up in eebf88e after 15 minutes.


text:
🛑 Everlast Deck is down

In 96f497d, Everlast Deck (https://everlastdeck.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Everlast Deck is back up in e4ebf7b after 44 minutes.


text:
🛑 Cleanaroo is down

In 79b995f, Cleanaroo (https://cleanaroonv.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Cleanaroo is back up in 7de23a7 after 10 minutes.


text:
🛑 Tidy Cleaners is down

In 981152e, Tidy Cleaners (https://tidycleanerstx.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Tidy Cleaners is back up in a673d07 after 1 hour, 6 minutes.


text:
🛑 Sprint Fence is down

In cf7f6fd, Sprint Fence (https://sprintfence.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Sprint Fence is back up in e31f074 after 1 hour, 30 minutes.


text:
🛑 Cleanaroo is down

In 4aa6d17, Cleanaroo (https://cleanaroonv.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Cleanaroo is back up in 42d4919 after 1 hour, 11 minutes.


text:
🛑 Absolute Landscape Solutions is down

In b45409e, Absolute Landscape Solutions (https://absolutelandscapesolutions.com/) was down:

HTTP code: 503
Response time: 196 ms

Resolved: Absolute Landscape Solutions is back up in d8013c8.


text:
🛑 Audiohive is down

In a717f89, Audiohive (https://audiohivetx.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Audiohive is back up in 9196c12.


text:
🛑 Bring Back Clean is down

In da25bed, Bring Back Clean (https://bringbackclean.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Bring Back Clean is back up in 4e8abe9 after 22 minutes.


text:
🛑 Concrete Tree is down

In da065d0, Concrete Tree (https://concretetree.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Concrete Tree is back up in 3e58092 after 49 minutes.


text:
🛑 Giveme Green is down

In 5fc82c8, Giveme Green (https://giveme-green.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Giveme Green is back up in 65f6834 after 41 minutes.


text:
[React] Add permanent option to react_component function

Q
A

Bug fix?
yes

New feature?
yes

Issues
Fix #...

License
MIT

(Issue reported on a work project)
Using Turbo data-turbo-permanent creates race conditions that lead to the controller code failing to keep or reload the component.
In the current implementation, the Stimulus controller unmounts the component then tried to create it again.. which cannot be done:

Once you call root.unmount you cannot call root.render again on the same root. Attempting to call root.render on an unmounted root will throw a “Cannot update an unmounted root” error. However, you can create a new root for the same DOM node after the previous root for that node has been unmounted.

https://react.dev/reference/react-dom/client/createRoot#root-unmount

~The proposed implementation uses a short delay before calling unmount. It is "morphing-library-agnostic", and will work with any Turbo-like framework, with no impact on the existing projects using UX React (except a bug fixed 😅 ).~
New implementation:
A new option permanent prevent the "unmount" of the component when set to true
{# This component will not be unmounted on "disconnect" #}

{{ react_component('MyComponent', props, {permanent: true}) }}

This allows to avoid the bug when a component is disconnected and immediately reconnected (ex with Turbo)

Hello @smnandre, I work on a website for a french media company which include a audio player which is implemented using react. We tried to use symfony/ux react component with turbo and a data-turbo-permanent attribute to allow the non stop music playing during navigation.
We discovered that it was not possible with the current code like you said. But it was easily fix moving the connect function to the initialize function and removing the disconnect entierly.
Should we use your implementation instead ? Would we see bugs with our solution ?
It seems to me that using only initialize lifecycle is more coherent for a permanent component.

Hi @codisart !
I changed the implementation to avoid playing with timeouts/delays.

Thanks Simon.

authors: codisart kbond smnandre

repo: symfony/ux


text:
Tweak Live Collection docs

Q
A

Bug fix?
yes (docs)

New feature?
no

Tickets
Fix #456

License
MIT

Thank you @1ed.


text:
Command + Q on Mac should behave like Chrome

I always accidentally press Command + Q when I want to switch tabs closing Symphony. On Chrome a prompt shows up instead "Hold Command + Q to quit". If I press it again, it will close straight away. If I hold Command + Q it will also close the browser.
@sasha-symphony

Thank you @axeleriksson147, that makes sense. I'll bring this up with the PM.

repo: symphonyoss/SymphonyElectron


text:
[MonorepoBuilder] "merge" command bug

PHP: Any version
symplify/monorepo-builder: 8.2.2 (latest stable)

Reproduction

composer.json:

{
    "name": "vendor/name",
    "type": "library",
    "homepage": "example.com",
    "support": {
        "issues": "https://github.com/example/issues",
        "source": "https://github.com/example"
    },
    "authors": [
        {
            "name": "John Doe",
            "email": "john.doe@example.com"
        }
    ]
}

Run merge command

Actual
{
    "name": "vendor/name",
    "require": { ... },
    "replace": { ... }
}

Expected
{
    "name": "vendor/name",
    "type": "library",
    "homepage": "example.com",
    "support": {
        "issues": "https://github.com/example/issues",
        "source": "https://github.com/example"
    },
    "authors": [
        {
            "name": "John Doe",
            "email": "john.doe@example.com"
        }
    ],
    "require": { ... },
    "replace": { ... }
}

Conclusion

type has been removed (important)
homepage has been removed
support has been removed
authors has been removed
// Not in the examples, but is also removed by "merge" command
bin has been removed (important)
keywords has been removed
readme has been removed
time has been removed
funding has been removed
include-path has been removed
target-dir has been removed
archive has been removed
abandoned has been removed
non-feature-branches has been removed

I can't see "require" section in the input config. Where does it come from?

P.S. in the https://github.com/symplify/symplify/blob/master/packages/composer-json-manipulator/src/ValueObject/ComposerJson.php file all sections are hardcoded.
This is a problem because does not allow to specify other sections: https://getcomposer.org/doc/04-schema.md#properties And more than half of the allowed sections were skipped.
I suggest making this file ArrayAccess as compatibility, leaving getters/setters for specific keys. Like:
final class ComposerJson
{
    private $payload = [];
    private $fileInfo;

    // ....

    public function setName(?string $name): void
    {
        $this->payload[self::KEY_NAME] = $name;
    }

    public function getName(): ?string
    {
        return $this->payload[self::KEY_NAME] ?? null;
    }

    // etc...
}

In addition to this the ComposerJsonFactory::createFromArray should not contain checks if(isset($composer['some'])) { ... }. I suggest a something like: return new ComposerJson($jsonArray). This will allow not to lose important information from json file.

That sounds dangerous.
Failing test case is needed, so we have it covered.

I can't see "require" section in the input config. Where does it come from?

@TomasVotruba this is not really important information in this issue. If the monorepo-builder merge command is executed, it is created from dependencies.
The problem is that it is not possible to keep the information in the list above in the root package. Including the use of data_to_append section.
data_to_append:
    homepage: 'https://example.com'

That sounds dangerous.

I agree. However, the Composer himself will check and say which sections are filled incorrectly.

@TomasVotruba Here is an example of what I suggested: https://github.com/symplify/symplify/pull/2065

Closing as test is still missing and we need it to continue.

authors: SerafimArts TomasVotruba

repo: symplify/symplify


text:
First element stuck in the same line with open bracket in non-indexed multiline array

Hi,
I am trying to figure out is this intended (valid style) or my configuration is wrong:
$cities = ['Belgrade',
    'Berlin',
    'Paris',
    'Warsaw'];
// or
$cities = ['Belgrade',
    'Berlin', 'Paris',
    'Warsaw'];

Somehow I ended up with configuration that don't catch above case for non-indexed array,
where first item is in the same line with [.
I have this line only related to arrays in config:
$containerConfigurator->import(SetList::ARRAY);
I expect, when they are multiline (cannot fit in one line all together),
to be every item in it's own line, with coma, having [ before and ] after:
$manyCities = [
    'Belgrade',
    'Berlin',
    'Paris',
    'Warsaw',
];

otherwise:
$fewCities = ['Belgrade', 'Berlin', 'Paris', 'Warsaw'];

This is not index array!
We have many examples of how to format a multiline array.
But there aren't exactly the same examples:
https://github.com/symplify/coding-standard/blob/b4710c7d5a1f3d350e2acbf6441d0672d946ac95/tests/Fixer/ArrayNotation/StandaloneLineInMultilineArrayFixer/Fixture/correct3.php.inc

Hi, thanks for reporting. The array set consists of many rule, some of them external in PHP CS Fixer.
It also depends on LineLenghtFixer, that breaks long arrays to separated lines.
Which exactly rule is responsible this? Could you send failing test case to the file.

<?php
// src/multilineArrays.php
$cities = ['Belgrade',
    'Berlin',
    'Paris',
    'Warsaw'];
// or
$cities = ['Belgrade',
    'Berlin', 'Paris',
    'Warsaw'];

$ ecs init

enable $containerConfigurator->import(SetList::ARRAY);
or in fact any of rules.
ecs check src/multilineArray.php

1) src/multilineArray.php

    ---------- begin diff ----------
@@ -3,8 +3,8 @@
 $cities = ['Belgrade',
     'Berlin',
     'Paris',
-    'Warsaw'];
+    'Warsaw', ];
 // or
 $cities = ['Belgrade',
     'Berlin', 'Paris',
-    'Warsaw'];
+    'Warsaw', ];
    ----------- end diff -----------

Applied checkers:

 * PhpCsFixer\Fixer\ControlStructure\TrailingCommaInMultilineFixer

For this case, it's better to use LineLenghtFixer

Ok. will check that.
Is there no way to say, if array is multiline, brackets has to be in their own lines?
After playing with line length, no changes were triggered until the configured line length caught the first line.
Let's update example as in current one (B) first and second has the same length.
$cities = ['Belgrade',
    'Berlin', 'Paris or some other longer line',
    'Warsaw'];

The first line length is 23, the second 49 and the 'Paris ...' element alone is 33 with quotes.
With config:
$services->set(Symplify\CodingStandard\Fixer\LineLength\LineLengthFixer::class)
        ->call('configure', [[
            Symplify\CodingStandard\Fixer\LineLength\LineLengthFixer::LINE_LENGTH => 22,
        ]]);

No changes are made! Same with any number >= 22.
With <= 21, it hits first element and rearranges array:
-$cities = ['Belgrade',
-    'Berlin', 'Paris or some other longer line',
-    'Warsaw'];
+$cities = [
+    'Belgrade',
+    'Berlin',
+    'Paris or some other longer line',
+    'Warsaw'
+];
    ----------- end diff -----------

Applied checkers:

 * Symplify\CodingStandard\Fixer\LineLength\LineLengthFixer

At the moment there is no such detection. It could cool though :+1:
Some ArrayListNewlineFixer. Be sure to ask directly at https://github.com/FriendsOfPHP/PHP-CS-Fixer, there is many smart folks who might help to find such rule.

authors: TomasVotruba vukanac


text:
Enable/Disable Scheduler Support via an Environment Variable

It would be great to have the ability to enable schedulerSupport via an environment variable.
This would require updating the <broker ...> tag in the conf/activemq.xml to include schedulerSupport="true"
<broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.data}">
change to
<broker xmlns="http://activemq.apache.org/schema/core"
      brokerName="localhost" dataDirectory="${activemq.data}" schedulerSupport="true" >

This would allow messages to be scheduled and/or have a deliveryDelay.
Thank you for your project and thank you in advance for considering this request.

@jesusbrat Great idea! Thanks to @samholton for the fast implementation. Will include it in the next release.

authors: jesusbrat tholu

repo: symptoma/activemq


text:
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module

I got this issue with the synapse protocol version v93. Node version v1.14.18.1
../node_modules/@synapseprotocol/sdk/dist/index.js
require() of ES modules is not supported.

Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from ../node_modules/@synapseprotocol/sdk/package.json.

Hey @dlpigpen, can you try using NodeJS v16 (preferably the latest Gallium LTS, v16.4.2) or v17?
We only test and guarantee compatibility with those version ranges; see the wiki page for details.

repo: synapsecns/sdk

license: ISC


text:
Merge developer-1 with main

Merging developer-1 branch with main
The following additions were made:

added three new Jupyter notebooks
added 'image' directory containing required screenshots for questions 11 and 12

Ready for merging


text:
fix: properly show the initial value for the form fields in all cases

We should compute the configuredProperties in the configuration page since it depends on the mode (adding vs editing) and the page we are currently on.
Relative issue https://github.com/syndesisio/syndesis/issues/5686

PR Storybook available here

repo: syndesisio/syndesis-react


text:
Service won't start (pfsense)

I'm a complete novice in pfsense/fresbsd but quite an old user of Roon. Udp-proxy-2020 has solved a problem I wished it was addressed so long ago by Roon  themselves. And for that I really appreciate your work and thank you for this project.
I followed the startup script for pfsense and kinda made ir work. I'm in version 2.6.0 of pfsense.
I get this error when starting the service (Checked several times the file content and locations but no change in error) :
[admin@pfSense]/root: service udp-proxy-2020 start
/usr/local/etc/udp-proxy-2020.conf: udp-proxy-2020: not found
After several attempts I tried the direct way and worked (same instructions present in the conf file):
[admin@pfSense]/root: udp-proxy-2020 --port 9003 --interface bridge0,tun_wg0 --cache-ttl 300
I assume the problem is caused by something I'm missing but would not recognize the issue even if stared at me. I assume because of this error, auto-start on boot won't work. I would really appreciate you help.
I also get this warning messages every few minutes of music streaming:
WARNING Unable to send 130 bytes from bridge0 out tun_wg0: send: Address family not supported by protocol family
WARNING Unable to send 130 bytes from bridge0 out tun_wg0: send: Address family not supported by protocol family
WARNING Unable to send 130 bytes from bridge0 out tun_wg0: send: Address family not supported by protocol family
Are this alerts of any concern?
Thanks in advance.

the warnings aren't an issue.  I see the same thing on pfSense with Wireguard.  just has to do with some other packets Roon sends that aren't important in this config.
service udp-proxy-2020 start not working seems like you have something misconfigured but you didn't provide enough information for me to guess why.  I'd re-read the installation instructions and ensure you've done each step correctly.
Sorry, I can't make the startup scripts easier... FreeBSD/pfSense packaging is a bit of a mess and I don't have the time to dig deeper to figure it out.

Figured out what was happening. Now running with no issues. Thanks for your quick reply.

authors: Obeja synfinatic


text:
reminder - shift efi changes to last step after modules

"I guess I should shift the EFI changes to the last step after the modules " - as per telegram - placing here.

Already did, thanks!

repo: sysrich/tik


text:
[Low priority feature request]: Display registered user email address in profile settings

Summary
This is a minor feature request, but I cannot find where the user email used to register on an instance is displayed. Showing what email an user used for registration would be a nice addition to the user settings screen?

Since the email option is enabled on misskey.m544.net, does that mean it's already implemented, but optional to turn it on/off?

Environment
misskey.xyz
Misskey 10.70.1

@tamaina Thanks for explaining this. It's what I thought, but wasn't sure this is how it worked.

repo: syuilo/misskey


text:
Pleromaとつながらないのを修正

Pleromaとつながらないのを修正
Follow, Unfollow, Create Note, Delete Note, Favorite, Renote あたりまで確認
#1828 #2358 の修正も含む

Content-Typeを送ってなかったので、送るようにした。
keyIdが古い形式だったので、新しい形式で送るようにした。
Activity id を送ってなかったので、送るようにした。
HTTP Signatureを検証する際にDateヘッダが含まれてないとエラーになるので、除外した。
Create Note の activity の階層にもtoが必要そうなので、追加した。
Create Note, Announce, Undo Follow, Delete でも actor を送るようにした。

例えば Create Note Activity は以下のように修正
  id: Activity ID   ←追加
  actor: ユーザー   ←追加
  type: 'Create'
  to: TO   ←追加(下にあるのと同じ)
  cc: CC   ←追加(下にあるのと同じ)
  object:
    id: Note ID
    attributedTo: ユーザー
    type: 'Note'
    to: TO
    cc: CC

ありがとうございます！！🙏🙏🙏

Pleroma対応ありがとうございます!!


text:
プロフィールバナーがやけに赤いのを修正

このくらいでどうかなと
Before(light)

↓
After(light)

After(dark)

ありがとうございます 👍


text:
Web development with Rocket

Description:
I am working on my first web application in Rust using the Rocket framework.
In this presentation I'll show what I've learned so far and how can you get started developing a web application using Rust Rocket.
Length:
40 minutes.

Done on 2024.05.09 See https://rust.org.il/code-mavens


text:
Looking forward to adding the function of QR code scanning and sharing

I have to admit that MicroBin is very easy to use, but the mobile phone is used too frequently. If two unfamiliar mobile phones communicate with each other, it is not possible to obtain the shared URL. Every time I enter the URL in the browser, it is too difficult to input on the mobile phone. Longer.
If you add the function of QR code, it is really important to use mobile phone scanning to quickly open the web page and obtain the shared content.
I am looking forward to adding the QR code sharing function.

It enables, when in config, like .env, you set this variable, which is, as config comment tells, required for QR to work:
export MICROBIN_PUBLIC_PATH=<your public site URL>

and obviously:
export MICROBIN_QR=true

It's all in .env, at least.

Thank you DX37, like you explained this feature already exists.

authors: DX37 sunteta szabodanika

repo: szabodanika/microbin


text:
Demo: "hidden" demo has script error, blocks demo functionality

Calling postMessage with a single argument.

Fixed.

authors: ChumpChief szager-chromium

repo: szager-chromium/IntersectionObserver


text:
May I ask what tool you use to draw the model architecture figure in readme?

thanks a lot

That was done in lua with https://github.com/szagoruyko/iterm.torch
pytorch can visualize model graphs with tensorboard or with https://github.com/szagoruyko/pytorchviz

authors: ParadoxZW szagoruyko

repo: szagoruyko/wide-residual-networks


text:
A Question on minified filenames

I have a question on filenames of minified css/js files.
Suppose a modify a css file's contents. Does W3TC change the filename? Doesn't look like it. Perhaps that's the reason for query strings.
Autoptimize on the other hand generates a different filename and doesn't need a query string.
Anyway, my issue is more of a question for discussion than reporting an issue. Glad if someone can help me on this.

Of course this question is for the automatic mode.

It's been a while since i worked on the minify section but if i recall it does change the file name ever so subtly when you clear the minify cache.  We had to modify the behavior of minified hashed names by postfixing a key version (hashed in) which is what results in a new overall name.
Try comparing minified file names (using a search box since it might be hard to spot) after clearing the minify cache..you should see a subtle difference.

Thanks Amiga. I did some experiments in the automatic mode. Changed the CSS file and found that clearing caches creates the right file but the filename is still the same.

Ahhh...what version of w3-total-cache-fixed are you using?

The 0.9.5.x.
i think it's not really a bug but a feature, although I think it could be improved.
The reason is that otherwise the plugin would need to check the hash each and every time. So the minified filename is named according to the name of the filenames (or something else). In addition, that's the reason the query string feature is given. The filename stays the same ... query string needs to be changed manually.
The reason I intended to discuss is that something better might be done. Such as detection file changes (css or js) and then making this automatic.

Ahhh 0.9.5.x....the feature i was referring to is in our 0.9.4.x generation only.  I haven't added the name change feature into 0.9.5.x yet.  Sorry about that.
I totally agree with you that minified filenames need to change.  At present though they do change for 0.9.4.x gen users (we maintain both versions but 0.9.4.x still gets the most attention because we still have several people  that depend on it..but we intend to shift all our features we keep adding to 094x to 095x eventually) but it doesn't do that based on file change but in fact it changes (subtly) when you clear the minified cache.  It was done to correct a major issue people were reporting in the wp support forum.  Took forever for us to figure out what was going on...but it was a fun challenge.
In the 0.9.5.x generation the minfied file name is simply a md5 hash of each of the filenames separated by commas: e.g., file1.ext,file2.ext
In the 0.9.4.x generation there is a slight difference.  The minfied file name is simply a md5 hash of each of the filenames separated by commas and a postfixed minified version (to correct the major issue i discussed above): e.g., file1.ext,file2.ext,ver=# ...this results in a slightly new filename on a minify cache clear.
I'm happy to provide more details as to why that is, or happy to discuss other approaches.
Another approach would be to expand the 094x approach by also including a  e,g,  file1.ext=,file2.ext=,ver=#  which when u delete or clear just your page cache but not the minified cache (or u just dont have page cache on) the minified file would be forced to have a new name when the js/css file(s) change.  It would still change the minified filename when u cleared the minify cache but it would also now change by simply modifying the the js/css file too -- but again, this would be dependent on the page cache being cleared (or manually deleted) so that the page when regenerated would need to form a new minified name and notice the file size has changed.  Not sure if this approach is overkill since the 094x approach will change the name already when u clear the minified cache -- so just duplicating this approach to 095x could be all one needs.
Cheers
Kimberly :octocat:

Very useful information @amiga-500. Lots to think about. Merry Christmas!


text:
Server Side Events not sent to client

This is what I have tried with
Server side
app.get('/api/events', (req, res) => {
        res.setHeader('Content-Type', 'text/event-stream');
        res.setHeader('Cache-Control', 'no-cache');
        res.setHeader('Connection', 'keep-alive');
        res.flushHeaders();

        const interval = setInterval(() => {
            const message = `data: ${new Date().toLocaleTimeString()}`;
            console.log('- server send', message);
            res.write(message);
        }, 1000);

        req.on('close', () => {
            clearInterval(interval);
        });
    });

Client side
const retry = false;
const serverEvent = new EventSource('api/events')
serverEvent.onmessage = (msg) =>  console.log(msg)
serverEvent.onerror = e => console.error(e.toString());
serverEvent.onopen = e => console.info('Server Event is open for business', e)
serverEvent.addEventListener('error', (e) => {
    console.error(e);

    // determine whether or not to retry
    if (!retry) {
        serverEvent.close();
    }
});

serverEvent.addEventListener('close', () => {
    serverEvent.close();
    showMessage('Connection Closed');
});

serverEvent.addEventListener('message', (ev) => {
    console.log(ev.data);
});

DevTools > Network tab shows size incrementation but EventStream Tab doesn't show any data.
The same route and frontend functionality works with express.
I tried adding the route URL to ignorePahts in ViteConfig, but it doesn't work ( error adding headers after flushHeaders)
ViteExpress.config({
    ignorePaths: /events/,
})

If I close the connection after a few iterations, I get all messages at once in the client, but if I leave it open, no message is coming or is cached somewhere by Vite-express.
How should SSE be implemented to work with ViteExpress?

Problem solved :D
Server-side I had to add double \n  and the message is sent to the client.
res.write('message: my custom message\n\n');
I checked some examples it should be only one \n, for Vite-Express it has to be 2.

repo: szymmis/vite-express


text:
How to use vitest?

Hey @szymmis, we are beginning to use your plugin everywhere at my job (which is a lot of repos), and we are migrating from jest to vitest. A coworker of mine had an issue grabbing some HTML with vitest to validate its content... do you have a preferred way of doing this? Not sure if our app being served by express is causing the issue, or if it is a separate thing. Here is the error:
@vitejs/plugin-react can't detect preamble. Something is wrong. See https://github.com/vitejs/vite-plugin-react/pull/11#discussion_r430879201

We checked out that link but it didn't resolve our issue. Not sure if you know of any projects that use your plugin with vitest, I'd like to see if there's any difference in config. Whatever you can advise will be helpful. Thanks!

Hi @BryceBlankinship, unfortunately I don't know any project that uses vitest in vite-express app and I also didn't use it myself. How I test vite-express served HTML is by using puppetier so that react has possibility to render. Maybe that's something you can look into, you can take a look at a test suite but I use some custom testing code instead of vitest (I plan to migrate to vitest in the future)
Do these tests work when using jest? How and when do you extract this HTML, can you show me some snippet? Maybe I'll be able to deduct something out of it.

Hi @BryceBlankinship, any updates on this issue? Or should I just close it, as a month have passed.

Yea you can close he found a solution thanks

authors: BryceBlankinship szymmis


text:
[WIP] Adds optimisation with constraints

Following

https://aip.scitation.org/doi/pdf/10.1063/1.471864
https://onlinelibrary.wiley.com/doi/10.1002/(SICI)1096-987X(199706)18:8<1079::AID-JCC12>3.0.CO;2-8

Codecov Report

Merging #7 (9af1782) into opt (673dced) will decrease coverage by 0.02%.
The diff coverage is 96.66%.

@@            Coverage Diff             @@
##              opt       #7      +/-   ##
==========================================
- Coverage   96.22%   96.20%   -0.03%
==========================================
  Files         100      100
  Lines       10068     9977      -91
==========================================
- Hits         9688     9598      -90
+ Misses        380      379       -1

Flag
Coverage Δ

unittests
96.20% <96.66%> (-0.03%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

autode/opt/coordinates/primitives.py
98.03% <96.55%> (-1.97%)
:arrow_down:

autode/opt/coordinates/dic.py
100.00% <100.00%> (ø)

autode/conformers/conformers.py
98.11% <0.00%> (-1.89%)
:arrow_down:

autode/utils.py
92.59% <0.00%> (-0.88%)
:arrow_down:

autode/smiles/angles.py
94.50% <0.00%> (-0.50%)
:arrow_down:

autode/transition_states/transition_state.py
69.38% <0.00%> (-0.42%)
:arrow_down:

autode/reactions/multistep.py
94.44% <0.00%> (-0.16%)
:arrow_down:

autode/wrappers/base.py
97.29% <0.00%> (-0.14%)
:arrow_down:

autode/wrappers/XTB.py
93.22% <0.00%> (-0.14%)
:arrow_down:

autode/transition_states/ts_guess.py
90.47% <0.00%> (-0.12%)
:arrow_down:

... and 27 more

Continue to review full report at Codecov.

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

Seemingly it's not possible to apply constraints by adding inverse distance primitives and projecting the delocalised internal coordinates onto them 😕


text:
fix: add NaN check to level-control-aspect

Proposed Changes
Added a isNaN check to level-control-aspect
Related Issues
#253

I'm not a JS dev and i haven't tested this except in the browser console but I figured this might make fixing a little easier

Thank you for contributing! 🎉

You have added the NaN check in LevelControl which is fine and fixes the issue for now. Anyway the Light device should not return NaN in the getValue function. Probably we are missing a null check there. I can add it later, but if you like you can do it, too.
The linter failed because of line breaks you introduced. Simply run npm run prettier:fix and npm run eslint:fix on root level of the project.

i did a fix in the mean time.
thank you for your contribution! 👍 🎉


text:
bug: Vercel build fails with "Error: Cannot find module '/vercel/path0/install.js'"

Provide environment information
System:
OS: macOS 13.6.1
CPU: (8) arm64 Apple M1
Memory: 58.92 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm
bun: 1.0.11 - ~/.bun/bin/bun
Describe the bug
I come across this error when trying to deploy on Vercel. This happens when trying to deploy a project I had been working on and then also when trying to deploy a fresh create-t3-app which I made no changes to.
on both of these occasions, I selected to use the following options: ts, tailwind, trpc,  nextAuth, drizzle, App router

Link to the project I had been working on: https://github.com/DanClubb/Trello-Clone
Link to fresh t3 app: https://github.com/DanClubb/drello

I am able to run locally however when I try to deploy through the Vercel dashboard I get the following logs

Reproduction repo
https://github.com/DanClubb/drello
To reproduce

Follow the installation instructions, select all options listed above (npm create t3-app@latest) or clone/fork https://github.com/DanClubb/drello
Get it running locally by creating env variable DATABASE_URL, DISCORD_CLIENT_ID, DISCORD_CLIENT_SECRET
Go to vercel, create the project
Add the env variables
Trigger a build
You get the error and the build fails

Additional information
No response

Updating the Vercel project settings to use Node 20 fixed this issue for me

Updating the Vercel project settings to use Node 20 fixed this issue for me

Ah, yes. This has worked thank you

@DanClubb Hey, if the issue has been resolved, please mark it as so.

authors: DanClubb RedBeardEth kakeWasTaken


text:
fix: Import .env file for sensitive data

Closes #
✅ Checklist

[ ] I have followed every step in the contributing guide (updated 2022-10-06).
[ ] The PR title follows the convention we established conventional-commit
[ ] I performed a functional test on my final commit

Changelog
[Short description of what has changed]

Screenshots
[Screenshots]
💯

Do we want this?
In my experience passing env vars to docker compose the way we are doing in the existing docs is more common in production apps than juggling env files. And including both in the docker-compose certainly doesn't make sense. Either way this is only intended to be a starting point that works with a stock app, which people can then customize to suit their needs.


text:
Unknown locale es

Hello @tabalinas great plugin... give us in the company a lot of solutions... but I have faced a little issue, when loading the localization file, for es language... it gets me an Uncaught Error: unknow locale es.
Could you please help me solve this problem?
This is in my header...
<link type="text/css" rel="stylesheet" href="<%= path%>/js/jsGrid/jsgrid.min.css" />
	<link type="text/css" rel="stylesheet" href="<%= path%>/js/jsGrid/jsgrid-theme.min.css" />
	<script type="text/javascript" src="<%= path%>/js/jsGrid/jsgrid.min.js"></script>
	<%  if( locale  != null && locale.toString().equals("es_MX") ) { %>
	<link type="text/css" rel="stylesheet" href="<%= path%>/js/jsGrid/i18n/jsgrid-es.js" />
	<% } %>

And then my js goes like:
<script type="text/javascript">
 $(document).ready(function(){
	 jsGrid.locale("es");
	 $("#jsGrid").jsGrid({
</script>
...

Are you sure the locale file is linked?
Since you have a condition for the <link>, maybe it's not true?

Is it there, because I can see it using dev tools...

I guess then it's because you are linking js script as a cs stlysheet J
<link type="text/css" rel="stylesheet"

.o. fool of me... didn't notice that detail... thanx a lot, works like a charm...

repo: tabalinas/jsgrid