Took hours to download mainnet-beta snapshot

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

What is the outcome that you are trying to reach?
Reducing time to download snapshot
Downloading snapshot from known validator can take hours to finish since the speed is low.
Describe the solution you would like

Adding downloading snapshot in user-data script. Following is a sample script

cd /var/solana/data/ledger
wget --trust-server-names http://entrypoint3.mainnet-beta.solana.com/snapshot.tar.bz2
wget --trust-server-names http://entrypoint3.mainnet-beta.solana.com/incremental-snapshot.tar.bz2
sed -i "s/--log -/--no-snapshot-fetch --log -/g" /home/solana/bin/validator.sh
cd -

leverage  https://github.com/c29r3/solana-snapshot-finder
TBD

Describe alternatives you have considered

Additional context

Thank you for suggestion! Will explore it as an add-on feature for Solana. Depending on location, snapshot download time varies. For the last couple of tests it took 1.5-2 hours to download the snapshot the default way. How long does it take to do it with the suggested script?

Thank you for suggestion! Will explore it as an add-on feature for Solana. Depending on location, snapshot download time varies. For the last couple of tests it took 1.5-2 hours to download the snapshot the default way. How long does it take to do it with the suggested script?

depend on the location & bandwidth, snapshot only takes several minutes. how to support this way.


add tornado httpserver.HTTPRequest support

Apparently tornado uses a separate HTTPRequest in the server; who knew.
This adds support for it as well.

Where's my cute animal picture?

Where's my cute animal picture?

Oof, I blew it again!
Here's an extra-cute fennec fox for your troubles: http://www.shanalogic.com/wordpress/wp-content/uploads2/2012/12/tumblr_mdcd89j3Qn1rw6hhbo1_500.jpeg

Travis-ci is having a bad day
https://www.traviscistatus.com/
Will check back on this tomorrow and see if they've got their ducks in a row.

:+1: here's hoping travis feels better soon

Available up on pypi as 5.2.1

Thanks!


Build fails when using a path using colon character

Steps to reproduce
Originally reported against Visual Studio for Mac - https://devdiv.visualstudio.com/DevDiv/_workitems/edit/807811
Wondering if it is valid to use a directory with ':' on the Mac and for msbuild to support this. Using dotnet sdk as an example:

mkdir test:abc
cd test:abc
dotnet new console
dotnet build

Expected  behavior
Build should work?
Actual behavior
Build fails:
dotnet build
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 30.61 ms for ~/Projects/Tests/test:abc/test:abc.csproj.
/usr/local/share/dotnet/sdk/2.1.503/15.0/Microsoft.Common.props(66,3): error MSB4019: The imported project "~/Projects/Tests/test:abc/obj/test:abc.csproj.*.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. [~/Tests/test:abc/test:abc.csproj]

Build FAILED.

/usr/local/share/dotnet/sdk/2.1.503/15.0/Microsoft.Common.props(66,3): error MSB4019: The imported project "~/Projects/Tests/test:abc/obj/test:abc.csproj.*.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. [/Users/matt/Projects/Tests/test:abc/test:abc.csproj]
    0 Warning(s)
    1 Error(s)

The obj directory contains:
project.assets.json
test:abc.csproj.nuget.cache
test:abc.csproj.nuget.g.props
test:abc.csproj.nuget.g.targets
Environment data
msbuild /version output:
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core
OS info:
Mac OS 10.13.6

For the most part, MSBuild only supports path components that would be valid on both Windows and macOS. Windows bans : in filenames, so this is probably "expected".
I'd be interested in knowing exactly why this failed, though--if it's easy to fix I don't think I'd object to doing so.


Create the first chapter of an Applier tutorial

We want to get new users up and running quickly with OpenShift Applier. To that, we want to have a tutorial that begins with the most minimal useful thing that you can run with applier, and slowly builds up (in complexity) and out (in scope). For the first "chapter", we will walk through the Applier equivalent of:

Logging into OpenShift
Running oc new-project
Running oc new-app ...

We should make sure and point out the advantages of this approach, and cite the limitations of oc new-app described in the template guide: http://v1.uncontained.io/playbooks/fundamentals/template_development_guide.html#kickin-it-off-with-some-oc-new-app

Related to: #23

First pass on the slim "get started/first time run" repo: https://github.com/pcarney8/rh-applier-quickstart

Would the first lab of enablement not cover this??
https://rht-labs.github.io/enablement-docs/#/1-the-manual-menace/README?id=step-by-step-instructions

Close. I believe we're looking for something even thinner than what you
have though. Discuss on Friday?
On Tue, May 29, 2018, 11:34 AM Donal Spring<EMAIL_ADDRESS>wrote:

Would the first lab of enablement not cover this??
https://rht-labs.github.io/enablement-docs/#/1-the-manual-menace/README?id=step-by-step-instructions
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/redhat-cop/openshift-applier/issues/24#issuecomment-392822226,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEJzhBQFLoBz_NKQOEaChwJxv3moWaHWks5t3WpngaJpZM4UONp9
.

@pcarney8 @oybed @logandonley i believe we can close this out now that we have a katacoda tutorial, correct?


Fix API version in yr weather provider call

Fixes #3227
and also

removes unused code
de-duplicates code fragments
fixes typos
inlines code
adds more weather util tests

@martingron and @Justheretoreportanissue would you be so kind to check if I didnt mess anything up?

LGTM but what about my comment in the issue

We should introduce apiVersionSunrise and apiVersionLocationforecast so users can change this in config.js.

can you add this too? So users could change this in config.js without waiting for next release or hacking the code

can you add this too? So users could change this in config.js without waiting for next release or hacking the code

will do that, until then I revert this to a "draft"

I noticed that sometime in the last couple of days they've switched off the 2.3 API for the sunset data too (i.e. line 355) so that's now returning a 404.
I've had a quick look at the doco and api response, and it appears that the 3.0 API has changed a fair bit for sunset - so wouldn't be as simple as bumping the number. Though it does look like you can now give it a date including timezone to get the sunrise/sunset data so the code in this provider which has logic for whether it should look at the "today" data or the "tomorrow" data could probably be simplified to just request whichever is needed. Would you prefer me to raise that as a seperate issue?


fix(#1898): Ignore empty headers to prevent sending request error

Description
Empty headers (in request or in collections) are ignored to prevent sending request error. (https://github.com/usebruno/bruno/issues/1898)
Contribution Checklist:

[X] The pull request only addresses one issue or adds one feature.
[X] The pull request does not introduce any breaking changes
[X] I have added screenshots or gifs to help explain the change if applicable.
[X] I have read the contribution guidelines.
[X] Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
Publishing to New Package Managers
Please see here for more information.

Thank you @AntoninHuaut !
This will go out in the 1.13.0 release. Please subscribe to Discord announcement channel to stay notified on the releases.


Please make compatible for 4.21

Please Reply.

Please reply.

@AnarAwards I just got back in school so I've been busy lately. I'll try to recreate the issue tonight.

I think the issue is that it requires Visual Studios 2015, and i'm currently using visual studios 2017. I know your a busy student, but since your done the first release, could you please upgrade it to visual studios 2017? I’m really interested in this project because its is very unique. Thank you!

Hi @yassernoori my apologies. I'm currently trying to troubleshoot this now. I am also using Visual Studio 2017. I will update this thread very soon with how I normally run this project after I download the repository.

Have you fixed the issue yet?

Hi @yassernoori it seems that there's an issue with the plugins. Trying to fix this so that people don't have to manually add the plugins themselves.

Hi @yassernoori I'm sorry for the long wait, but please try the following the instructions in the README from this 92ecd810f40bde215dbbf046e309d456db6fd8cd and let me know if you're able to run the game.

I've confirmed with other people that the instructions in the readme work, so if you're still having issues related to building and running, then ask on my discord: https://discord.gg/2xbR5qT


not wait for stdout complete

Signed-off-by: Kang.Zhang<EMAIL_ADDRESS>
What type of PR is this?
/kind bug

What this PR does / why we need it:
critest hung at attach, currently crio skip this test
Which issue(s) this PR fixes:
Fixes #410

Special notes for your reviewer:
None
Does this PR introduce a user-facing change?

None

thanks @kangclzjc !


Trains fly for longer than expected

(Continuing from https://github.com/robot256/MultipleUnitTrainControl/issues/14 because the bug appears to be in RenaiTransportation)
I added some code to warn when trains were still in the air after their air time had elapsed. This apparently happens a lot, and I wouldn't be surprised if nuclear fuel made it worse to the point that the train actually breaks apart upon landing due to the speed differentials:

How did you determine how much longer than expected the train took to land?

I stuck this in the tick handler for trains:
		if (game.tick - properties.LaunchTick) > properties.AirTime then
			game.print("WARNING: Train " .. PropUnitNumber .. " in the air for " .. (game.tick - properties.LaunchTick) - properties.AirTime .. " ticks longer than expected")
		end

but I just realized I stuck it outside the landing check if, and trains aren't removed until the entire train has landed :flushed: The message still gets printed a lot, but with only one tick of difference.

One thing I noticed about trains that break p is that they actually break up immediately upon launching, not upon landing. They also "count" as multiple entities as far as magnet ramps are concerned so they trigger the notice about depleted buffers:

There are two things I can think of that might be related to this.

When calculating when the train is going to land, the result of the calculation is rounded up to the nearest whole number since ticks are whole numbers. Since it's just rounding up it should only add on an extra tick, not 2-20 like in your screenshot, but maybe there is something else amplifying that rounding.

When a train hits the ramp, it doesn't actually maintain full speed. It slows down ever so slightly because it just hit something and that slightly slower speed is what is used to calculate the landing tick, pull the following carriages, and push the landing carriages. Since landing tick is calculated based on the train's speed, that slight reduction in speed on impact might make more of a difference for trains going at higher speeds with nuclear fuel, and there might be some attributes that use the slightly faster speed for its calculations, but I've used nuclear fuel trains before and everything worked okay so I'm not sure why suddenly this would be a problem.

Was it confirmed that the problem happens isn't related to that mod and still happens with just RT?

Another question, did you only see this happening after your new animation code was put in? I noticed in the other issue post you had a gif showing the spinning carriages and I noticed that the leading locomotive was actually fine and it was only the following carriages that spun. There's a section in the entity_damaged script that transfers some of the information from the leading carriage to its followers. A small difference in that information transfer combined with the higher speeds and new animation code might be what is causing the discrepancy which was unnoticable at slower speeds

I've been trying on a test map for a while and I haven't been able to recreate this issue with the spinning carriages or separating trains. Whether slow or fast, trains don't seem to do this, but in the save file from the other post the separation does happen so the issue is legit. But for the time being I can't recreate it to investigate further

Sorry for the delay, been busy with something else.
I've managed to recreate this on the test map with only RT installed. After a few iterations of the bug not happening, I've identified what seems to be the key cause of the bug: different fuel types in each loco.
I neglected to consider (or even remember) this, but in the save I posted, I would get rid of excess wood by putting it in the train to be burned. Over time, the distribution of the wood became such that the front loco was burning nuclear fuel and the back loco was burning wood. Replicating that into the test setup got the bug to reappear. I'm going to hazard a guess that this only shows up where the train is traveling faster than the second loco's independent max speed.
I've tested the following fuel combinations (using an L-C-L off a magnet ramp):

Loco 1
Loco 2
Bugged?

Nuclear
Rocket
No

Nuclear
Solid
Maybe

Nuclear
Wood
Yes

Nuclear
None
Yes

Rocket
Nuclear
No

Rocket
Solid
Maybe

Rocket
Wood
Yes

Rocket
None
Yes

Solid
Nuclear
No

Solid
Rocket
No

Solid
Wood
No

Solid
None
No

Wood
Nuclear
No

Wood
Rocket
No

Wood
Solid
No

Wood
None
No

Entries with maybe are where the train didn't separate but might have glitched graphically upon landing.
The test map also allows me to confirm that the problem happens for both magnet ramps and regular ramps, though only magnet ramps suffer the graphical spin issue, presumably due to the fact that they change the speed calculations. Magnet ramps also produce the issue across a wider variety of train-fuel combinations, probably for the same reason.
I created the new animation code because I was debugging this issue, but to be safe and ensure that it wasn't my code that caused it, I installed version 0.5.5 of RT (randomly chosen to be "a while ago") and confirmed the issue was still present.
Here's a debug map that reproduces the issue, including both magnet and regular ramps that can be chosen by turning the attached combinator on or off:
jump test.zip

Wow I never would have thought of that, that's some good detective work 🔍. That would make sense because I'm pretty sure that even with commands you can't set a train's speed to go faster than its allowed max. So locomotives after the first with slower fuels will take slightly longer to reach the ramp and that causes the desync. I'm not certain but maybe even a train with 3 nuclear fuel locomotives can't run as fast as a train with just 1 nuclear fuel locomotive? If that's the case, it seems like the only way to really fix this would be to add a ghost locomotive to the back of a train when it jumps with the fastest possible fuel type. I'll try that to see if it fixes it and for now I'll add it on the mod page as a recognized issue

An idea I had is to replace the fuel of every loco in the train with the same type as the first loco (and obv restore it when it lands), but I'm not sure if that will take effect immediately or if it's even feasible to do in the mod code without large changes to how the train data is stored.

So actually there is a command for trains that use fuels LuaEntity.burner.currently_burning which lets you change what kind of fuel a locomotive is using which is super convenient cause that's exactly what we're looking to do. So in theory if the train separation and late landing does come from the difference in fuel types, when a train hits a ramp we would just have to change currently_burning of all locomotives in the train to the fastest possible fuel then when it lands have it switch back. I'll give this a shot over the holidays

Should be fixed in 0.6.8. Made a change where when a train hits a ramp, it notes what all locomotives are currently burning before switching them all to the fastest fuel item prototype. Then just before each other locomotive hits the ramp, it switches back.


Terminal: Switching terminal background color doesn't react appropriately

Testing #85971

Open a terminal
Select some text
Open settings and change terminal.selectionBackground through workbench.colorCustomizations

When using canvas, it appears the entire selection is gone
When using experimentalWebgl, selected text gets cheesy and the selection background color doesn't change:

@joaomoreno I think the canvas case is fine as opaque selections don't work, I was thinking about forcing opacity when using canvas/dom to help with this https://github.com/xtermjs/xterm.js/issues/2594
Upstream for webgl: https://github.com/xtermjs/xterm.js/issues/2595

The canvas thing you mention is an inconsistency, but I want to remove the canvas renderer soonish so it's not worth the effort to fix such an obscure bug.

There are still rendering glitches which go away once I reselect:

Yeah that was the original bug, I might not have updated xterm properly.

This is fixed, the selection disappearing for canvas only is tracked in https://github.com/xtermjs/xterm.js/issues/4057


CORGI-805 add back cdn relations

This essentially reverts the changes made for CORGI-727. I kept some of the refactoring, and cleaned up the code a little bit. This should get coverage for RHEL Z-Streams back up to parity with Deptopia.
To execute the code after merging, without waiting for the weekly task, manually run setup_pulp_relations task, and then loadpulpdata management command for the desire stream(s).

@RedHatProductSecurity/corgi-devs please review

This code looks...familiar 😁 I don't fully remember what I removed, but this looks like enough of it, and I assume you're looking at the diff so haven't missed anything.
I also don't remember what the side-effects were when we removed this the first time. Do we need to change something about the taxonomy-saving code to handle the CDN_REPO relations, or do we need to write some migration for something?
Sorry if that's really vague, I just remember the removal being more complicated so I thought adding it back wouldn't be this simple. I guess we can merge this, run the tasks, and see if all the relations get created / components get linked to products correctly now. Thanks for fixing this!

There was a related change CORGI-778 which adjusted the save_product_taxonomy function. That's probably the only change we really needed, not this one.


test: add enforcer react-native test

Signed-off-by: Shivansh-yadav13<EMAIL_ADDRESS>

@Zxilly @nodece pls review

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 75.694%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1312

Relevant Lines:
1649

💛  - Coveralls

You also need to add a workflow for this PR

@nodece @Zxilly how can I fix this error? pls help

Please check CI.

@nodece IG symlink does not work in react-native, maybe I should try https://github.com/callstack/repack
what do you think?

I remember the react-native with test library, you don't need to re-install a test library, link to https://reactnative.dev/docs/testing-overview.


Add ibus unicode input support

Close https://github.com/neutrinolabs/xrdp/issues/1990 . This PR was made by me and @matt335672. It introduced serveral unicode input interfaces and has the ibus interface implemented (That means you should have ibus configured in the server side first).
The unicode input is a kind of method of sending unicode codes directly from the client to the server. With it, you can input any characters or glyphs (like Emoji 😁) even if they are not present in the keymap of the keyboard. It is typically used by mobile devices like Android\iOS phones, especially in Asia languages.
Another benifit of the unicode input is you can use your device's voice input to generate a bunch of texts quickly. Although we only have the ibus implemented now, it is easy to do for other input services like fcitx.
@matt335672 This is the latest rebased. Sorry I made merge before.

@seflerZ - I've had a weekend break and have come back to discover a slightly fuller inbox than I was expecting. I'll got on to this as soon as I've cleared the backlog. Sorry.

No problem. Take your time.

Okay. I'll apply the patch.

Great to see people using this before we've merged it into devel.
@seflerZ - thanks again for driving this.

This feature takes advantage of iBus input. Have you tested whether iBus works with the passport field?

@JulyIghor I'm using Microsoft Edge, but I think it's similar. I don't have problems of password input fields.

@JulyIghor Sorry, no. I think it is the field's word limitation which prevent you from entering non-latin passwords. Usually this is enforced by the website programmer or JS framework.

I had a problem when I used this feature. I'm using Ubuntu 22.04 LTS desktop.
Chinese input does not work sometimes. View the following logs:
8月 29 14:29:23 qingteng /usr/libexec/gdm-wayland-session[1523]: dbus-daemon[1523]: [session uid=132 pid=1523] Activating service name='org.freedesktop.portal.IBus' requested by ':1.35' (uid=132 pid=2191 c>
8月 29 14:29:23 qingteng /usr/libexec/gdm-wayland-session[1523]: dbus-daemon[1523]: [session uid=132 pid=1523] Successfully activated service 'org.freedesktop.portal.IBus'
8月 29 14:29:44 qingteng xrdp-chansrv[2331]: [ERROR] [xrdp_input_unicode_init(input_ibus.c:232)] xrdp_ibus_init: Timed out waiting for iBus daemon
8月 29 14:29:45 qingteng systemd[2301]: Starting IBus Daemon for GNOME...
8月 29 14:29:45 qingteng dbus-daemon[2317]: [session uid=1000 pid=2317] Activating service name='org.freedesktop.portal.IBus' requested by ':1.65' (uid=1000 pid=2674 comm="/usr/bin/ibus-daemon --panel disa>
8月 29 14:29:45 qingteng systemd[2301]: Started IBus Daemon for GNOME.
8月 29 14:29:45 qingteng dbus-daemon[2317]: [session uid=1000 pid=2317] Successfully activated service 'org.freedesktop.portal.IBus'
8月 29 14:30:07 qingteng xrdp-chansrv[2331]: [INFO ] [xrdp_input_unicode_init(input_ibus.c:237)] xrdp_ibus_init: Initializing the iBus engine
8月 29 14:30:07 qingteng xrdp-chansrv[2331]: [INFO ] [xrdp_input_unicode_init(input_ibus.c:248)] xrdp_ibus_init: iBus connected
8月 29 14:32:26 qingteng xrdp-chansrv[2331]: [INFO ] [xrdp_input_ibus_engine_enable(input_ibus.c:94)] xrdp_ibus_engine_enable: IM enabled
8月 29 14:32:26 qingteng xrdp-chansrv[2331]: [INFO ] [xrdp_input_enable(input_ibus.c:70)] xrdp_ibus_init: input method switched sucessfully, old input name: xkb:us::eng
8月 29 14:36:03 qingteng xrdp-chansrv[2331]: [INFO ] [xrdp_input_unicode_destroy(input_ibus.c:197)] xrdp_input_unicode_destory: ibus engine rolling back to origin: xkb:us::eng
8月 29 14:36:03 qingteng xrdp-chansrv[2331]: [INFO ] [xrdp_input_ibus_engine_disable(input_ibus.c:101)] xrdp_ibus_engine_disable: IM disabled
8月 29 14:36:05 qingteng xrdp-chansrv[2331]: An object is already exported for the interface org.freedesktop.IBus.Service at /org/freedesktop/IBus/Factory
8月 29 14:36:05 qingteng xrdp-chansrv[2331]: [INFO ] [xrdp_input_unicode_init(input_ibus.c:237)] xrdp_ibus_init: Initializing the iBus engine
8月 29 14:36:05 qingteng xrdp-chansrv[2331]: [INFO ] [xrdp_input_unicode_init(input_ibus.c:248)] xrdp_ibus_init: iBus connected
8月 29 14:36:13 qingteng xrdp-chansrv[2331]: [INFO ] [xrdp_input_enable(input_ibus.c:70)] xrdp_ibus_init: input method switched sucessfully, old input name: xkb:us::eng
8月 29 14:36:13 qingteng xrdp-chansrv[2331]: [INFO ] [xrdp_input_ibus_engine_enable(input_ibus.c:94)] xrdp_ibus_engine_enable: IM enabled
8月 29 14:36:13 qingteng xrdp-chansrv[2331]: ibus_engine_commit_text: assertion 'IBUS_IS_ENGINE (engine)' failed
8月 29 14:36:13 qingteng xrdp-chansrv[2331]: ibus_engine_commit_text: assertion 'IBUS_IS_ENGINE (engine)' failed
8月 29 14:36:13 qingteng xrdp-chansrv[2331]: ibus_engine_commit_text: assertion 'IBUS_IS_ENGINE (engine)' failed
8月 29 14:36:13 qingteng xrdp-chansrv[2331]: ibus_engine_commit_text: assertion 'IBUS_IS_ENGINE (engine)' failed
8月 29 14:36:42 qingteng xrdp-chansrv[2331]: [INFO ] [xrdp_input_unicode_destroy(input_ibus.c:197)] xrdp_input_unicode_destory: ibus engine rolling back to origin: xkb:us::eng
8月 29 14:36:42 qingteng xrdp-chansrv[2331]: [INFO ] [xrdp_input_ibus_engine_disable(input_ibus.c:101)] xrdp_ibus_engine_disable: IM disabled
8月 29 14:36:44 qingteng xrdp-chansrv[2331]: [INFO ] [xrdp_input_unicode_init(input_ibus.c:237)] xrdp_ibus_init: Initializing the iBus engine
8月 29 14:36:44 qingteng xrdp-chansrv[2331]: [INFO ] [xrdp_input_unicode_init(input_ibus.c:248)] xrdp_ibus_init: iBus connected
8月 29 14:36:44 qingteng xrdp-chansrv[2331]: An object is already exported for the interface org.freedesktop.IBus.Service at /org/freedesktop/IBus/Factory
8月 29 14:36:55 qingteng xrdp-chansrv[2331]: [INFO ] [xrdp_input_ibus_engine_enable(input_ibus.c:94)] xrdp_ibus_engine_enable: IM enabled
8月 29 14:36:55 qingteng xrdp-chansrv[2331]: [INFO ] [xrdp_input_enable(input_ibus.c:70)] xrdp_ibus_init: input method switched sucessfully, old input name: xkb:us::eng
ibus_engine_commit_text: assertion 'IBUS_IS_ENGINE (engine)' failed  . --- always this error.

I looked at the process information on the system , both gnome-shell and systemctl started an ibus process at the same time. When I disable the ibus process started by systemctl, the effect is the same. I don't know what the problem is. I'm not familiar with ibus. Can you help me analyze it?

@mengsongshan Open an issue if you encountered problems. The log tells everything goes, but the assersion fail unexpectly. You can describe the issue with more details. That is, can you input the ASCII text only or totally unavailable.

Agreed - we need a separate issue to look into this.

@mengsongshan Open an issue if you encountered problems. The log tells everything goes, but the assersion fail unexpectly. You can describe the issue with more details. That is, can you input the ASCII text only or totally unavailable.

input the ASCII text no pro I'm going to sort out the various scenarios, analyze the causes, and if I'm going to determine the various scenarios of the problem, I'm opening a issue.


Add Scale Generator exercise

Add Scale Generator exercise in Swift

@masters3d I'm tempted to leave this as is if we're dropping Swift 3 soon.

Lets do it. We will need to update the package format at some point but we can start tracking 4.1x changes now. https://github.com/exercism/swift/pull/326

Merge when you are ready


New Release supporting latest version of Django?

Hi,
I have been using Mezzanine on a project for a while and I now have to inevitably update the Django version. My current Django version is 1.6. From the latest version of Mezzanine on Github, I see that Django 1.7 and 1.8 are supported but no release has been made since updating the Django versions.
In order to use the latest Mezzanine, I have to rely on the latest master version, which I am not very comfortable doing. Is it possible to make a release officially supporting Django 1.7 and/or 1.8?

No need to open an issue for this, thanks!

Hello @stephenmcd ,
Sorry if this is not the correct place to post this.
What would be the better place to make the request or any similar request in future?

The request is redundant - a new release will be made as soon as it's ready.
That aside, you'd want the mailing list, not the issue tracker.
Thanks.

@stephenmcd, Where can I find what is making it not ready? How can I make it ready?

@gavinwahl it's not always that simple, many things in life take priority - anyway it's out now.

:v:


Added order clause to generate reliably order scripts for storage in source management

I added this parameter as I generate scripts defining lookup tables for storage in source management when a release is made. Defining an ordering makes it easier to detect differences in the generated output.

Hi @borealissw ,
The feature has been already requested by @rpagyc in the issue #4 and was implemented in the commit bd682f96d30cc47e1ba19ff6c1b9492f18905f16.
Regards,


Kiricon/upload from url

Fixes #58

[x] Tests and linter pass
[x] Code coverage does not decrease (if any source code was changed)
[ ] Appropriate docs were updated (if necessary)

A new method called uploadFromURL has been added to the Bucket object.
The method does the same thing the upload method does, save the localpath argument is now meant to be a url string.
Due to the file being remotely hosted, the option  property resumable it not being taken in to account.
I'm sure of the best way to go about writing them up considering the majority of shared functionality between the upload and uploadFromURL methods.
Let me know what I can improve and I'll be glad to make the change. This is a feature I've been needing for a very long time.

Thank you very much for the PR! What do you think about accepting a URL path right to .upload()? There are a couple ways  we could differentiate between a URL and a local path that I can think of;

isUrl = /^https*:/.test(filePath)
fs.exists(filePath)
A module on npm that handles this for us?

@stephenplusplus I like that idea a lot, initially I wasn't sure if it would be confusing or not but it would save a ton of repetition in the code base, docs and unit tests. If I close out this PR and open a new one with those changes changes mentioned would you be willing to take a look at that one?
(Honestly would be easier for me to just open a new PR, the first one didn't take a too long).

Sure, whatever is easiest for you. Although, if you just push to this branch and keep this PR alive, we would have a smaller footprint if we ever need to look back and read how this feature was introduced and the discussions we had about it. That's a big "if", though, so whatever you prefer!

@stephenplusplus Fair point you bring up, I'll see what I can do to preserver the audit trail for this feature.

@stephenplusplus Implemented the changes we had talked about along with adding some docs.
I hard reset the branch to remove all changes and rewrite the code but now it looks like the cirlceci server is now drying to pull old data from before the reset.
When you get the chance rebuilding without cache should fix the build errors.

I just kicked off a new build and it failed again. Trying to ascertain why.

Rebuilding without cache does not seem to be helping. I will open an issue with CircleCI. In the meantime, could we trouble you to just start another PR with a new branch name? Lousy for audit trail but we can get your change merged. :-D

Tests pass. :-)
Leaving this in @stephenplusplus's capable hands as far as what else (if anything) needs to happen for this to be merged.

@lukesneeringer Thank you very much for taking the time out of your day to help debug CircleCI. I really appreciate it!

@stephenplusplus Made the 3 changes you recommend and updated the unit tests to reflect them.
Not sure why the lint check on CircleCI is failing, looks like a configuration issue.

@Kiricon I pushed a few changes to add some tests and add some resumable-detection when the path is a URL. Can you please give it a sanity check?

Thank you @Kiricon!


[Lifecycle] Unable to provision Linkerd control plane

Description
The Linkerd adapter has new logic checks for objects. Provisioning Linkerd and providing linkerd as the namespace, the following error is returned:
Screenshots

Im unable to replicate @leecalcote. I ran install linkerd in linkerd namespace and I've got them all installed.

Let’s get on a call...
Sent from my mobile

On Oct 12, 2020, at 2:14 AM, abishek<EMAIL_ADDRESS>wrote:

Im unable to replicate @leecalcote. I ran install linkerd in linkerd namespace and I've got them all installed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.


Fikrimuhal master

In place of #23
cc @aladagemre

Thanks for the merge and the post-fixes. I just saw the comments.


Bad xdg_positioner behavior with inkscape

System Info and Version
 System/Version info
Hyprland, built from branch main at commit 553232a3e4c112c8511309e6b685cb614895e714  (hyprctl: Add Config Flag to `hyprctl systeminfo` (6160)).
Date: Sat May 25 22:46:07 2024
Tag: v0.40.0-137-g553232a3, commits: 4743

flags: (if any)

System Information:
System name: Linux
Node name: fluffy
Release: 6.9.1-zen1-2-zen
Version: #1 ZEN SMP PREEMPT_DYNAMIC Wed, 22 May 2024 13:47:12 +0000

GPU information:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU106 [GeForce RTX 2060 Rev. A] [10de:1f08] (rev a1) (prog-if 00 [VGA controller])
11:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev c1) (prog-if 00 [VGA controller])

os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo

plugins:

Bug or Regression?
Regression
Description
Long popups appear detached on wrong height.
While bisecting I found that it's caused by 0cfdde3d1acbfbf698af17f6986fbc4d644214da

Edit:
It appears that almost all popups are wrongly positioned when they would be partially off screen.
How to reproduce
Can be reproduced by opening page format drop down in inkscape.
Inkscape > File > Document properties > Format
Crash reports, logs, images, videos
No response

Can confirm, popups for many apps are either not in the right position, or off center. For example, the Vesktop splash screen is off to the top left of my monitor whereas on 0.40.0 it was centered.

I do realize, I'll work on this after #6268 is done and merged

this should fix this.

should be fixed

:+1:

coolio

https://github.com/hyprwm/Hyprland/commit/d6337146bb99a20c96c89b7693f4ad726455f6ba actually messes with expanding popups...

on it

done

now it just crashes hyprland :rofl:
hyprlandCrashReport23767.txt

it does not. Pull again :)


[YUNIKORN-1414] Adding Chinese translations of Sorting Policies

What is this PR for?
Adding Chinese translations of Sorting Policies.
Fix the broken links.
What type of PR is it?

[ ] - Bug Fix
[ ] - Improvement
[ ] - Feature
[x] - Documentation
[ ] - Hot Fix
[ ] - Refactoring

Thanks for addressing the comments and fix the broken link


Updated docs generator

Closes #2277, closes #2278, closes #2279
Proposed Changes
Created one page with all queries
Added download button to download queries tables on csv format
Now it is possible to filter or sort queries' tables
Summary results now are sorted by severity and query name
I submit this contribution under Apache-2.0 license.

@felipe-avelar I restored your branch so you can continue working on it after the revert
cc: @ruigomescx


Fix scale_cost to LRGeometry, float/max-bound

Fixes the following:

not passing scale_cost when creating LRCGeometry from PointCloud
float scale cost in LRCGeometry
'max_bound' scale cost in LRCGeometry

I've parametrized 1 existing test and added checks for this.

confirming that works and produces comparable results with no LR GW for moscot applications


OpenMP on Mac OS

Significant warnings are issued suggesting that Mac OS openMP does not work with the system
installed clang toc comile Corrfunc.
Following,
https://iscinumpy.gitlab.io/post/omp-on-high-sierra/
explains how to use the existing clang on Mac OS and still use openMP.
I tested this on Mojave 10.4.1 and it works well.
I used home-brew:
brew install libomp
And added in common.mk
Add any compiler specific flags you want
CFLAGS ?= -Xpreprocessor -fopenmp
Add any compiler specific link flags you want
CLINK ?=  -lomp
If a kernel crashes it can happen when two openMP libs are installed.
To avoid this you can add this in your python script:
import os
os.environ['KMP_DUPLICATE_LIB_OK']='True'
Or set the variable in your shell environment.
Speed up on MacBook pro is as expected.
Perhaps common.mk could be adjusted to suggest this possibility given how many
astronomers use Macs?
Best,
Tom

Thanks for the report!  common.mk should currently print out the following advice:
../common.mk:302: Compiler is Apple clang and does not support OpenMP
If you want OpenMP support, please install clang with OpenMP support
For homebrew, use "brew update && (brew outdated xctool || brew upgrade xctool) && brew tap homebrew/versions && brew install clang-omp"
For Macports, use "sudo port install clang-3.8 +assertions +debug + openmp"

But possibly we'd prefer to just install libomp instead of clang-omp?  If the latter happens to fix the duplicate OpenMP library issue, then that would be a strong argument in its favor (seems unlikely though).  I've also found that -Wl\,--as-needed in the linker args can help avoid a lot of mischief in loading duplicate OpenMP libs.
I don't have a Mac, but if you or @manodeep could test that linker arg, it could help us decide on a path for stable OpenMP for clang.

Thanks Tom!
One of the goals of Corrfunc is to ensure that the code compiles on all systems. Supporting OpenMP  automatically in a Mac is a complex task, and that's why we only try to do the minimum and leave the responsibility on the user. For reference, I use Corrfunc with OpenMP regularly on my MAC laptop, but I have installed the necessary clang with the OpenMP support.
That being said, the section of the common.mk dealing with clang-omp, and the OpenMP checking + info messages can certainly be improved. And better yet, we could add in documentation on how to install libomp (or libgomp?) on OSX, and then enable OMP support at compile time.
@lgarrison The linker on OSX does not support the --as,needed flag :(

If we were thinking of supporting cases where conda is not available, then this page might be useful


Time Diff

It'd be great if the Last Config Refresh also displayed time since last refresh, just as a basic +1h22m sorta format. Not deathly essential, just would be useful, esp for testing.

I'm going to need something like this too since at some point I'm going to
need a script to reap old machines from the database.
On Sat, Oct 17, 2015 at 8:58 AM Scott J. Roberts<EMAIL_ADDRESS>wrote:

[image: screen_shot_2015-10-17_at_9_12_05_am]
https://cloud.githubusercontent.com/assets/44774/10559077/63d5bcbc-74b5-11e5-92b9-7223d88e2de7.png
It'd be great if the Last Config Refresh also displayed time since last
refresh, just as a basic +1h22m sorta format. Not deathly essential, just
would be useful, esp for testing.
—
Reply to this email directly or view it on GitHub
https://github.com/heroku/windmill/issues/31.

It would still be a calculated field, but I think it could be useful, as well as an API endpoint.


Subscriber Pusher events

Hello,
I hava a problem and I don't understand how to fix it.
I am working with Symfony 4.4 and I follow the "Pusher & Push Handler" section (https://github.com/GeniusesOfSymfony/WebSocketBundle/blob/2.x/Resources/docs/Pusher.md).
The method $pusher->push works perfectly and I want to add a Subscriber but no PushHandlerEvent exists.
When I tried to add the code
public static function getSubscribedServices() {
  array_merge(parent::getSubscribedServices(), [
    gos_web_socket.pusher.wamp' => WampPusher::class,
  ]);
}

There is this Exception :
The service "App\Controller\HomepageController" has a dependency on a non-existent service "Gos\Bundle\WebSocketBundle\Pusher\Wamp\WampPusher"
I think I need to add a config to the service but wich one  ?
The service :
App\Controller\HomepageController:
    arguments:
      '$pusher'<EMAIL_ADDRESS>
Thanks in advance !

The pusher service IDs aren't aliased to their class names, try this for your getSubscribedServices() method:
public static function getSubscribedServices() {
  array_merge(parent::getSubscribedServices(), [
    'gos_web_socket.pusher.wamp' => 'gos_web_socket.pusher.wamp',
  ]);
}

Key and Value are the same ?
I have this error :

Yes, key and value are the same.  Looking at https://symfony.com/doc/current/service_container/service_subscribers_locators.html, it looks like this should work too:
public static function getSubscribedServices() {
  array_merge(parent::getSubscribedServices(), [
    'gos_web_socket.pusher.wamp',
  ]);
}

I resolve the error with "?" before the class but still no events :(
public static function getSubscribedServices() {
    return array_merge(parent::getSubscribedServices(), [
      'gos_web_socket.pusher.wamp' => '?'.WampPusher::class
    ]);
  }

There is my subsriber and the logs. Am I doing it wrong?
namespace App\EventSubscriber;

use Psr\Log\LoggerInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Gos\Bundle\WebSocketBundle\Event\PushHandlerEvent;

class PushHandlerEventSubscriber implements EventSubscriberInterface
{

  private $logger;
  public function __construct(LoggerInterface $logger) {
    $this->logger = $logger;
  }

  public static function getSubscribedEvents(): array {
    return [
      PushHandlerEvent::class => 'onEvent'
    ];
  }

  public function onEvent(PushHandlerEvent $event) {
    $this->logger->info("into PushHandlerEventSubscriber");
    $this->logger->info($event);
  }
}

[2020-02-19 19:08:32] websocket.INFO: Starting web socket [] []
[2020-02-19 19:08:32] websocket.INFO: Launching Ratchet on <IP_ADDRESS>:1337 PID: 23898 [] []
[2020-02-19 19:08:38] request.INFO: Matched route "notification". {"route":"notification","route_parameters":{"_route":"notification","_controller":"App\\Controller\\HomepageController::notification"},"request_uri":"http://localhost:8000/notification","method":"GET"} []
[2020-02-19 19:08:38] websocket.WARNING: User firewall is not configured, we have set ws_firewall by default [] []
[2020-02-19 19:08:38] websocket.DEBUG: INSERT CLIENT 426 {"token":"[object] (Symfony\\Component\\Security\\Core\\Authentication\\Token\\AnonymousToken: AnonymousToken(user=\"anon-1261928115e4d79a6a9743036560542\", authenticated=true, roles=\"\"))","username":"anon-1261928115e4d79a6a9743036560542"} []
[2020-02-19 19:08:38] websocket.INFO: anon-1261928115e4d79a6a9743036560542 connected {"connection_id":426,"session_id":"1261928115e4d79a6a9743036560542","storage_id":"426"} []
[2020-02-19 19:08:38] websocket.INFO: Publish in acme/channel [] []
[2020-02-19 19:08:38] websocket.DEBUG: GET CLIENT 426 [] []
[2020-02-19 19:08:38] websocket.DEBUG: User anon-1261928115e4d79a6a9743036560542 published to acme/channel [] []
[2020-02-19 19:08:38] websocket.DEBUG: Matched route "acme_topic" [] []
[2020-02-19 19:08:38] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2020-02-19 19:08:38] websocket.DEBUG: GET CLIENT 426 [] []
[2020-02-19 19:08:38] websocket.DEBUG: REMOVE CLIENT 426 [] []
[2020-02-19 19:08:38] websocket.INFO: anon-1261928115e4d79a6a9743036560542 disconnected {"connection_id":426,"session_id":"1261928115e4d79a6a9743036560542","storage_id":"426","username":"anon-1261928115e4d79a6a9743036560542"} []

The question mark thing just marks the service as optional, that wouldn’t fix the initial problem of the pusher not being a known service since it isn’t registered by class name.
Do you have the pushers enabled?  They are unwired from the container when disabled, that would cause the service to not be found.

@mbabker sorry if wrong area to ask, but seems the current documentation is a total mess :( do you have some documentation for symfony 4.4?

Admittedly I don't think the ping stuff ever got documented beyond it being included in the configuration reference dump.
gos_web_socket:
    ping:
        services:
            -
                name: 'database_connection'
                type: 'doctrine'

That'll set up a ping service using the default database_connection service that DoctrineBundle makes.  If you have multiple connections then add separate services for each connection you want it to ping.
It's not a surefire way of keeping you from hitting the "MySQL server has gone away" error but it does help.

@mbabker any idea what can cause this issue?
request.CRITICAL: Uncaught PHP Exception Gos\Component\WebSocketClient\Exception\BadResponseException: "Could not extract response body from stream." at /vendor/gos/websocket-client/src/Wamp/Client.php line 191

It comes from here, it looks like something is creating a malformatted response.

Since it's deprecated, I think we can close this issue and this question is no longer relevant.
But I have an other one now ! I see the question on issue #417 but I don't have an answer ...
How I push data on my websocket with symfony/messenger ?

Make a MessageHandlerInterface that sends a message to the websocket HTTP endpoint.  All the websocket stuff at this part of your stack should be services anyway and usable no matter the context, the Messenger recommendation is really more geared toward the AMQP implementation than the WAMP implementation of the pushers.
<?php declare(strict_types=1);

namespace App\Messenger\Handler;

use App\Messenger\Message\WebsocketTopicPublish;
use App\Websocket\Client\WebsocketClient;
use Symfony\Component\Messenger\Handler\MessageHandlerInterface;

final class BroadcastMessageToWebsocketServer implements MessageHandlerInterface
{
    private WebsocketClient $websocketClient;

    public function __construct(WebsocketClient $websocketClient)
    {
        $this->websocketClient = $websocketClient;
    }

    public function __invoke(WebsocketTopicPublish $command): void
    {
        $this->websocketClient->publish($command->payload, $command->route);
    }
}

So now you're asking what my WebsocketClient is, aren't you?
<?php declare(strict_types=1);

namespace App\Websocket\Client;

use Gos\Bundle\WebSocketBundle\Router\WampRouter;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerAwareTrait;
use Ratchet\Client\WebSocket;

final class WebsocketClient implements LoggerAwareInterface
{
    use LoggerAwareTrait;

    private const MSG_WELCOME = 0;
    private const MSG_PREFIX = 1;
    private const MSG_CALL = 2;
    private const MSG_CALL_RESULT = 3;
    private const MSG_CALL_ERROR = 4;
    private const MSG_SUBSCRIBE = 5;
    private const MSG_UNSUBSCRIBE = 6;
    private const MSG_PUBLISH = 7;
    private const MSG_EVENT = 8;

    private WampRouter $router;
    private PawlClient $client;

    public function __construct(WampRouter $router, PawlClient $client)
    {
        $this->router = $router;
        $this->client = $client;
    }

    /**
     * Calls a RPC handler on the websocket server.
     *
     * @throws \InvalidArgumentException if an invalid $data type was given
     */
    public function call(array $payload, string $routeName, array $routeParameters = []): void
    {
        $this->client->connect()
            ->then(
                function (WebSocket $connection) use ($data, $routeName, $routeParameters) {
                    $this->logger->debug('Client connection resolved');

                    $route = $this->router->generate($routeName, $routeParameters);

                    $this->logger->debug('Calling RPC function on websocket server', ['route' => $route, 'payload' => $payload]);

                    try {
                        $message = json_encode(array_merge([self::MSG_CALL, uniqid('', true), $route], $payload), JSON_THROW_ON_ERROR);

                        $connection->send($message);
                    } catch (\JsonException $exception) {
                        $this->logger->error('Could not encode message to call RPC function on websocket server.', ['exception' => $exception]);

                        throw $exception;
                    } finally {
                        $connection->close();
                    }
                },
                function (\Throwable $throwable): void {
                    $this->logger->error('Client connection rejected', ['exception' => $throwable]);
                }
            );
    }

    /**
     * Publishes to a Topic on the websocket server.
     *
     * @throws \InvalidArgumentException if an invalid $data type was given
     */
    public function publish(array $payload, string $routeName, array $routeParameters = []): void
    {
        $this->client->connect()
            ->then(
                function (WebSocket $connection) use ($data, $routeName, $routeParameters) {
                    $this->logger->debug('Client connection resolved');

                    $route = $this->router->generate($routeName, $routeParameters);

                    $this->logger->debug('Publishing message to websocket server', ['route' => $route, 'payload' => $payload]);

                    try {
                        $message = json_encode([self::MSG_PUBLISH, $route, $payload, [], []], JSON_THROW_ON_ERROR);

                        $connection->send($message);
                    } catch (\JsonException $exception) {
                        $this->logger->error('Could not encode message to publish to websocket server.', ['exception' => $exception]);

                        throw $exception;
                    } finally {
                        $connection->close();
                    }
                },
                function (\Throwable $throwable): void {
                    $this->logger->error('Client connection rejected', ['exception' => $throwable]);
                }
            );
    }
}

And what about the PawlClient?  It's a very thin wrapper around https://github.com/ratchetphp/Pawl to help with being able to unit test things since Pawl's API is function driven.
<?php declare(strict_types=1);

namespace App\Websocket\Client;

use Ratchet\Client;
use React\Promise\PromiseInterface;

final class PawlClient
{
    private string $websocketServerUri;

    public function __construct(string $websocketServerUri)
    {
        $this->websocketServerUri = $websocketServerUri;
    }

    public function connect(): PromiseInterface
    {
        return Client\connect($this->websocketServerUri, ['wamp']);
    }
}

Thank you very much, I will test that !

I have a new question, I think my "websocketServerUri" parameter is not good, because there is not an error but the then function is never call. Did I miss something ?
I set "wss://<IP_ADDRESS>:8888", here is my config (I use a ssl)
gos_web_socket:
  server:
    port: 8888
    host: <IP_ADDRESS>

Into the log, I have this, no errors but no messages from the then function.
17:55:24 INFO      [messenger] Received message Gus\GameBundle\Services\Websocket\WebsocketMessage ["message" => Gus\GameBundle\Services\Websocket\WebsocketMessage^ { …},"class" => "Gus\GameBundle\Services\Websocket\WebsocketMessage"]
17:55:24 INFO      [app] into publish ...
17:55:24 INFO      [app] connect PawlClient wss://<IP_ADDRESS>
17:55:24 INFO      [messenger] Message Gus\GameBundle\Services\Websocket\WebsocketMessage handled by Gus\GameBundle\Services\Websocket\WebsocketMessageHandler::__invoke ["message" => Gus\GameBundle\Services\Websocket\WebsocketMessage^ { …},"class" => "Gus\GameBundle\Services\Websocket\WebsocketMessage","handler" => "Gus\GameBundle\Services\Websocket\WebsocketMessageHandler::__invoke"]
17:55:24 INFO      [messenger] Gus\GameBundle\Services\Websocket\WebsocketMessage was handled successfully (acknowledging to transport). ["message" => Gus\GameBundle\Services\Websocket\WebsocketMessage^ { …},"class" => "Gus\GameBundle\Services\Websocket\WebsocketMessage"]

If I set an other value for websocketServerUri, I have the attended error message :
17:56:15 ERROR     [app] Client connection rejected ["exception" => InvalidArgumentException { …}]

The URI looks right, without knowing what the InvalidArgumentException is it's hard to say what else is going on in there.

I have the InvalidArgumentException if I set "<IP_ADDRESS>" for example.
If I set the Uri "wss://<IP_ADDRESS>:8888" I don't have an error, that's why I don't understand what is happening.

WebsocketTopicPublish

thx for this example, what is WebsocketTopicPublish ?

It's just a message DTO for use with Messenger, it has the same public properties as the client's publish method arguments.

This thread has really helped me out today, but I am having a strange problem with Symfony's Messenger component.
I'm using a very close variation of the classes defined above (https://github.com/GeniusesOfSymfony/WebSocketBundle/issues/405#issuecomment-691281586).
Watching the log output of 'bin/console messenger:consume' I can see the handler receive the Message from the bus and pass the Message to my handler but  for some reason the handler doesn't connect to my socket server until I kill the  messenger:consume job at the CLI. Once the worker has been told to stop the handler will connect and send each message that the handler had been sent.
Has anyone seen this behaviour? Is there a configuration message that I am missing somehow?


[Issue]: python -c "import torch;print(torch.cuda.is_available())" returns False

Problem Description
I restrictly Follow the steps here to install amdgpu driver and rocm-6.1.0 and hip sdk.
rocminfo and rocm-smi and amd-smi run successfully.
But when I try to run pytorch with conda environment, it cannot detect any GPUs.
I also tried docker from rocm/pytorch in docker hub. and it also failed.
I also tried to install all the driver and rocm and hip by using AMDGPU installer, an it also failed.
(PyTorch) loong@home:~$ python -c "import torch;print(torch.cuda.is_available())"
False

Operating System
Ubuntu 22.04.4 LTS (Jammy Jellyfish)
CPU
Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
GPU
AMD Radeon RX 7900 XTX
ROCm Version
ROCm 6.1.0
ROCm Component
No response
Steps to Reproduce

Follow the steps here o install amdgpu driver and rocm-6.1.0 and hip sdk.
conda create -n PyTorch python=3.10 -y
conda activate PyTorch
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1/torch-2.1.2%2Brocm6.1-cp310-cp310-linux_x86_64.whl
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1/torchvision-0.16.1%2Brocm6.1-cp310-cp310-linux_x86_64.whl
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.1/pytorch_triton_rocm-2.1.0%2Brocm6.1.4d510c3a44-cp310-cp310-linux_x86_64.whl
pip install --force-reinstall ./torch-2.1.2%2Brocm6.1-cp310-cp310-linux_x86_64.whl ./torchvision-0.16.1%2Brocm6.1-cp310-cp310-linux_x86_64.whl ./pytorch_triton_rocm-2.1.0%2Brocm6.1.4d510c3a44-cp310-cp310-linux_x86_64.whl
python -c "import torch;print(torch.cuda.is_available())"

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
ROCk module version 6.7.0 is loaded
HSA System Attributes
Runtime Version:         1.13
Runtime Ext Version:     1.4
System Timestamp Freq.:  1000.000000MHz
Sig. Max Wait Duration:<PHONE_NUMBER>3709551615 (0xFFFFFFFFFFFFFFFF) (timestamp count)
Machine Model:           LARGE
System Endianness:       LITTLE
Mwaitx:                  DISABLED
DMAbuf Support:          YES
==========
HSA Agents

Agent 1

Name:                    Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
Uuid:                    CPU-XX
Marketing Name:          Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
Vendor Name:             CPU
Feature:                 None specified
Profile:                 FULL_PROFILE
Float Round Mode:        NEAR
Max Queue Number:        0(0x0)
Queue Min Size:          0(0x0)
Queue Max Size:          0(0x0)
Queue Type:              MULTI
Node:                    0
Device Type:             CPU
Cache Info:
L1:                      32768(0x8000) KB
Chip ID:                 0(0x0)
ASIC Revision:           0(0x0)
Cacheline Size:          64(0x40)
Max Clock Freq. (MHz):   4700
BDFID:                   0
Internal Node ID:        0
Compute Unit:            8
SIMDs per CU:            0
Shader Engines:          0
Shader Arrs. per Eng.:   0
WatchPts on Addr. Ranges:1
Features:                None
Pool Info:
Pool 1
Segment:                 GLOBAL; FLAGS: FINE GRAINED
Size:                    65781560(0x3ebbf38) KB
Allocatable:             TRUE
Alloc Granule:           4KB
Alloc Recommended Granule:4KB
Alloc Alignment:         4KB
Accessible by all:       TRUE
Pool 2
Segment:                 GLOBAL; FLAGS: KERNARG, FINE GRAINED
Size:                    65781560(0x3ebbf38) KB
Allocatable:             TRUE
Alloc Granule:           4KB
Alloc Recommended Granule:4KB
Alloc Alignment:         4KB
Accessible by all:       TRUE
Pool 3
Segment:                 GLOBAL; FLAGS: COARSE GRAINED
Size:                    65781560(0x3ebbf38) KB
Allocatable:             TRUE
Alloc Granule:           4KB
Alloc Recommended Granule:4KB
Alloc Alignment:         4KB
Accessible by all:       TRUE
ISA Info:

Agent 2

Name:                    gfx1100
Uuid:                    GPU-85631fd855c9cea1
Marketing Name:          Radeon RX 7900 XTX
Vendor Name:             AMD
Feature:                 KERNEL_DISPATCH
Profile:                 BASE_PROFILE
Float Round Mode:        NEAR
Max Queue Number:        128(0x80)
Queue Min Size:          64(0x40)
Queue Max Size:          131072(0x20000)
Queue Type:              MULTI
Node:                    1
Device Type:             GPU
Cache Info:
L1:                      32(0x20) KB
L2:                      6144(0x1800) KB
L3:                      98304(0x18000) KB
Chip ID:                 29772(0x744c)
ASIC Revision:           0(0x0)
Cacheline Size:          64(0x40)
Max Clock Freq. (MHz):   2482
BDFID:                   768
Internal Node ID:        1
Compute Unit:            96
SIMDs per CU:            2
Shader Engines:          6
Shader Arrs. per Eng.:   2
WatchPts on Addr. Ranges:4
Coherent Host Access:    FALSE
Features:                KERNEL_DISPATCH
Fast F16 Operation:      TRUE
Wavefront Size:          32(0x20)
Workgroup Max Size:      1024(0x400)
Workgroup Max Size per Dimension:
x                        1024(0x400)
y                        1024(0x400)
z                        1024(0x400)
Max Waves Per CU:        32(0x20)
Max Work-item Per CU:    1024(0x400)
Grid Max Size:<PHONE_NUMBER>(0xffffffff)
Grid Max Size per Dimension:
x<PHONE_NUMBER>(0xffffffff)
y<PHONE_NUMBER>(0xffffffff)
z<PHONE_NUMBER>(0xffffffff)
Max fbarriers/Workgrp:   32
Packet Processor uCode:: 92
SDMA engine uCode::      20
IOMMU Support::          None
Pool Info:
Pool 1
Segment:                 GLOBAL; FLAGS: COARSE GRAINED
Size:                    25149440(0x17fc000) KB
Allocatable:             TRUE
Alloc Granule:           4KB
Alloc Recommended Granule:2048KB
Alloc Alignment:         4KB
Accessible by all:       FALSE
Pool 2
Segment:                 GLOBAL; FLAGS: EXTENDED FINE GRAINED
Size:                    25149440(0x17fc000) KB
Allocatable:             TRUE
Alloc Granule:           4KB
Alloc Recommended Granule:2048KB
Alloc Alignment:         4KB
Accessible by all:       FALSE
Pool 3
Segment:                 GROUP
Size:                    64(0x40) KB
Allocatable:             FALSE
Alloc Granule:           0KB
Alloc Recommended Granule:0KB
Alloc Alignment:         0KB
Accessible by all:       FALSE
ISA Info:
ISA 1
Name:                    amdgcn-amd-amdhsa--gfx1100
Machine Models:          HSA_MACHINE_MODEL_LARGE
Profiles:                HSA_PROFILE_BASE
Default Rounding Mode:   NEAR
Default Rounding Mode:   NEAR
Fast f16:                TRUE
Workgroup Max Size:      1024(0x400)
Workgroup Max Size per Dimension:
x                        1024(0x400)
y                        1024(0x400)
z                        1024(0x400)
Grid Max Size:<PHONE_NUMBER>(0xffffffff)
Grid Max Size per Dimension:
x<PHONE_NUMBER>(0xffffffff)
y<PHONE_NUMBER>(0xffffffff)
z<PHONE_NUMBER>(0xffffffff)
FBarrier Max Size:       32
*** Done ***
Additional Information
OS:
NAME="Ubuntu"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
CPU:
model name      : Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
GPU:
Name:                    Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
Marketing Name:          Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
Name:                    gfx1100
Marketing Name:          Radeon RX 7900 XTX
Name:                    amdgcn-amd-amdhsa--gfx1100

This may help
https://github.com/ROCm/pytorch/issues/1398#issuecomment-2078615130

This may help ROCm/pytorch#1398 (comment)

No help.

@Looong01 Have you tried --force-reinstall to see if it works? Thanks!

@Looong01 Have you tried --force-reinstall to see if it works? Thanks!

I tried and no help.

Btw, I have 2 user accounts(A and B) in my system(Ubuntu 22.04.4). All of those have sudo Permissions. A runs this successfully and returns True, but B doesn't.
And I think this may help:
$ getent group
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:syslog,A
tty:x:5:
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:
fax:x:21:
voice:x:22:
cdrom:x:24:A
floppy:x:25:
tape:x:26:
sudo:x:27:A,B
audio:x:29:
dip:x:30:A
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:A
sasl:x:45:
plugdev:x:46:A
staff:x:50:
games:x:60:
users:x:100:
nogroup:x:65534:
systemd-journal:x:101:
systemd-network:x:102:
systemd-resolve:x:103:
messagebus:x:104:
systemd-timesync:x:105:
input:x:106:
sgx:x:107:
kvm:x:108:
render:x:109:A
lxd:x:110:A
_ssh:x:111:
crontab:x:112:
syslog:x:113:
uuidd:x:114:
tcpdump:x:115:
tss:x:116:
landscape:x:117:
fwupd-refresh:x:118:
A:x:1000:
B:x:1001:

It looks to me like user B is not in the render group. At some point the user needed to be in the render and/or video group. I would suspect that this is the reason why user B is not working while user A is.
For pytorch I only use the instructions found on there page but I don't have your GPU.

sudo usermod -a -G render,video B

sudo usermod -a -G render,video B or if logged in as user B: sudo usermod -a -G render,video $LOGNAME

Thank u very much! It works.
Btw, Could u AMD engineer add this commandsudo usermod -a -G render,video $LOGNAME and instructions in the docs of ROCm installation, like "https://rocm.docs.amd.com/"? Bc it is really confused for us to find the problems by ourselves. It has been there for half year!

Hello, I keep encounter this problem in Docker.

I use rocm/pytorch:rocm6.1.3_ubuntu22.04_py3.10_pytorch_release-2.1.2 this image which is pulled from docker hub.
Run this image by docker run -itd --name rocm6.1.3 --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --device=/dev/kfd --device=/dev/dri --group-add video --group-add render --ipc=host --shm-size 32G rocm/pytorch:rocm6.1.3_ubuntu22.04_py3.10_pytorch_release-2.1.2
Get in this container, Attach the shell. Then python -c "import torch; print(torch.cuda.is_available())".
Get False

Hi @Looong01. Internal ticket has been created to investigate your issue. Thanks!

I run my docker by rootless mode.

Hi @Looong01,
Can you try running docker without rootless mode? You might be running into a groups-related issue in rootless mode because of the way group IDs are remapped; so your container may think it's in render/video groups but those map to different groups from the perspective of the host (and therefore deny you access to the GPU hardware).
There is a somewhat similar limitation with Podman running in rootless mode discussed here: https://github.com/ROCm/ROCm/issues/3144
When I try running these commands: https://github.com/ROCm/ROCm/issues/3072#issuecomment-2414587611 in a rootful docker, there is no issue and my Pytorch reports:
# python -c "import torch; print(torch.cuda.is_available())"
True

Hi @Looong01,
Can you try running docker without rootless mode? You might be running into a groups-related issue in rootless mode because of the way group IDs are remapped; so your container may think it's in render/video groups but those map to different groups from the perspective of the host (and therefore deny you access to the GPU hardware).
There is a somewhat similar limitation with Podman running in rootless mode discussed here: #3144
When I try running these commands: #3072 (comment) in a rootful docker, there is no issue and my Pytorch reports:
# python -c "import torch; print(torch.cuda.is_available())"
True

Yeah, ur right. In docker without rootless mode, it works. But rootless mode doesn't. While rootless mode is necessary for me. Could u pls help to solve this problem?

There are a number of existing issues discussing the use of ROCm in a rootless container. For example:

https://github.com/ROCm/ROCm/issues/1549
https://github.com/ROCm/ROCm-docker/issues/90

Please have a look at those discussions and let us know if that helps you.


PLAT-7050: add velero policy and test bucket

testing - do not merge
ensures all the necessary policies are available to the node-level deployment role as provided in: https://github.com/vmware-tanzu/velero-plugin-for-aws#option-1-set-permissions-with-an-iam-user

closing since the branch name isn't compatible w/ some of our automation - reopened as https://github.com/dominodatalab/terraform-aws-eks/pull/118


ENH: added citations

fixes #29

a DOI seems unlikely at this point — too close to the wire. So I think we can merge this and I can toss in a last-minute DOI in a separate PR if needed.


adds watch-list implementation without breaking changes

Motivation
Implement support for watch-list.
We have 18000 namespaces in our cluster, we store custom resources where some collections have large schemas and the cardinality is also in the 100k's. For example, when a client doesn't use pagination our API server memory usage can balloon up to 2-300 GB under certain conditions
Solution
The most important goal is to reduce memory pressure on the API server. It would be nice to be able to reduce it on the client side too, in that case, we also care about knowing when the initial sync and or resync is in progress or at the very least completed.
Since this is for a new k8s version, I think it might be ok to change the watch event contract slightly.  I've come up with a couple of approaches
Option 1: do nothing, still accumulate everything in a vec and emit Event::Restarted as the first event, when this streaming model is enabled. The name of the event is a bit weird, and it could maybe be renamed to express intent better although that would introduce breaking changes
Option 2: Modify the applied event to have an option or an enum value to indicate if we're still in the initial listing state
Option 3: Introduce 2 new events, one that indicates a relist is starting and one that indicates the relist is completed, this can then remove the need for the Restarted event because these 2 new events give enough signal.
Option 4: stop being helpful and just expose the same events as the plain k8s API
Personally I'm in favor of option 3. Option 3 will allow for keeping client-side memory usage low, and it would allow for flagging a store as in or out of sync.
This PR currently holds option 1
This is a draft, so it's not signed. I'll work through what is required to submit PR's from my work email for the final PR. I just wanted to gather feedback.
closes: #1254

Hey, thanks a lot for this, and while this is going further than the original help-wanted issue (as the runtime is a little less clear), I appreciate the taking the initiative in an open-minded way with several options. I'll leave some comments on the PR, but some high level comments first:
Personally, I am leaning towards option 3 also for the watcher side of things just as that's one of the few things that can actually help with the client spikiness. An option 3 would necessarily involve buffering at the reflector side, but that would actually help people both using reflectors and people just watching:

watcher users get everything as it comes in
reflector users can prune before caching (using WatchStreamExt::modify) because the raw events are passed through from watcher before it is buffered - so it is still a spike, but it's a more controllable spike

Note also that in general the aim is not to abstract away the k8s api. Particularly, kube-core and kube-client should just do the k8s api (where copy-pasted doc-strings are often a thing for the same parameters).  So i don't think 3 and 4 are necessarily in conflict.

I was thinking that because it's an API change, we could create a watcher2 or streaming_watcher, that has the event contract from option 3. That way we can mark the previous implementation as deprecated, and carry it forward a few versions before removing it. That would give people who depend on this library time to move to the new implementation instead of it being forced on them.

I've addressed the comments

I'll add a namespace example reflector that shows the watch list behavior. Do I feature gate all the doc comments I made?

I've added an example now and updated the k3d configuration that enables the feature gate

There's nothing really blocking from the k8s-openapi side to release their new minor with v1_27 (as we have both tested that it works)

Cool. I'll release it this weekend then.

I would like to get past this hurdle of CI yes. Unfortunately I have to do planning and roadmap work for my project (this library is part of said project) and will need to spend a lot of time in google docs instead of in code this weekend. The failures are about building k8s-openapi so I'm going to wait for a release on that.
I think the tests etc passed when I ran them locally so hopefully this will build here too. If not I can take a look again next weekend perhaps.

I don't know what to do with CI.
I can run the just tasks just fine on my computer but as soon as I try to do it with act the deny starts failing and something that's supposed to set up k3d keeps telling me that kubectl can't be found.
So it's difficult to get this to work for me atm. This could use some help from somebody who knows the entire toolchain

I don't know what to do with CI. I can run the just tasks just fine on my computer but as soon as I try to do it with act the deny starts failing and something that's supposed to set up k3d keeps telling me that kubectl can't be found.

I think a lot of the CI failures atm is due to resolver (because it's getting the multiple k8s-openapi versions enabled message). Don't worry about the deny failure, will fix that in main (related to us not maintaining a lockfile).

I undid the resolver = 2 thing, hopefully that makes it go further.
When I run locally most things seem to succeed but there is one thing that can not find kubectl and it will just hang on that

Had another look over of this and did another test, and this seems fine to me. Resolved a few comments as per strategy in https://github.com/kube-rs/kube/pull/1281/files (which is nice to be able to justify as it does make invalid states unrepresentable).
One doc nit remains (config member doc suggestion), and the other two threads are just notes for the future. I am otherwise happy with this. Easy to opt-in, hard to do the wrong thing, works well, CI now green. Clean addition. Thanks a lot for doing this!

I updated the doc and added that extra constructor method

Thanks, looks good! But needs the DCO signoff again now.


Network between VM nodes is inconsistent

Describe the bug
Hello,
This bug might not be related to Orbstack. But creating a Docker Swarm used to work and now it doesn't with network between nodes failing. I have created a cluster with three nodes.
Installed using the helper script from Docker.  And initiated swarm.
I created an nginx service with docker --context swarm-orb service create --mode global -p 9292:80 nginx.
Then test from my Mac with curl http://manager.orb.local:9292/. This doesn't always work and usually hangs.
Possibly related to https://github.com/orbstack/orbstack/issues/1439 but I wasn't able to find a solution there.
To Reproduce

orb create debian manager
orb create debian worker1
orb create debian worker2
Install Docker on all three using https://docs.docker.com/engine/install/debian/#install-using-the-convenience-script
docker swarm init on manager
docker swarm join from manager token on all workers
Create a new docker context with docker context create swarm-orb --docker "host=ssh://manager@orb"
Create a test service docker --context swarm-orb service create --mode global -p 9292:80 nginx

Expected behavior
curl http://manager.orb.local:9292/ hangs and doesn't return any results. Some times it works.
Diagnostic report (REQUIRED)
OrbStack info:
Version: 1.8.1
Commit: 442ca0f634f1e62aa1f00c2c54353e69830cc4d5 (v1.8.1)
System info:
macOS: 15.1 (24B83)
CPU: arm64, 8 cores
CPU model: Apple M3
Model: Mac15,13
Memory: 16 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-11-17T16-35-45.683790Z.zip

Screenshots and additional context (optional)
No response

Fixed for the next version.

Released in v1.9.0.


Mad Mad not working

I can't get this to work with Mad Max.
I used the 64bit version but I haven't tried renaming the dll because I have no idea what to rename it to.
Halp?

I have no idea either, as I do not have that title.
You would have to check the dependencies yourself, wait until x360ce has it on their compatibility list, or upload the main executable file somewhere and post it here.

How do I check the dependencies?

You could try with this: http://www.dependencywalker.com/

Here is the main exe:
https://mega.nz/#!jtQHXYjQ!mxzpMn-awJ3ZSasbuW_BX5SpJYyvxVgi9Z-HT7_uYeM

It seems to load XINPUT9_1_0.dll so try that name.

k ty I will try


Remove Held messages, not release or re-add them to queue

Hi,
As disucesed in https://github.com/atech/postal/issues/239 https://github.com/atech/postal/issues/257 https://github.com/atech/postal/issues/256
There are options to reapply the held messages to the queue. But how to remove them? Or better from a particular sender if there was a smtp flood? I now have a held queue of 10000 mails to non existing user due to incorrect smtp client connection which flooded the root user mails. In exim I would do smth like this:
exiqgrep -i -f root@localhost | xargs exim -Mrm

Hello, we've about 1000 messages held, nevere cleaned by the system.
How can we delete all at once?
"You can leave the messages in the system and they will be filtered out by the passage of time."
Seems not true


gpsbabel: 1.7.0 → 1.8.0

Description of changes

adopt package
add debian patches
fix on darwin (https://hydra.nixos.org/build/177112712/nixlog/1)
map preview disabled on darwin since qtwebengine is broken on darwin
build documentation

ZHF: #172160
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 174284 run on x86_64-darwin 1

2 packages built:

gpsbabel
gpsbabel-gui

nixpkgs-review happy, macos 10.15 & nixos x86_64. gui works, macos 10.15.


No preference for Keybase folder placement in macOS Finder sidebar

Problem: Keybase folder appears in Finder sidebar any time the app is restarted or updated.
Steps to recreate: Go to Mac, install Keybase, voilà, Keybase folder in the sidebar. Quit Keybase and restart it, voilà, Keybase folder in the sidebar.
Expected result: No Keybase folder in the side bar.
Solution: Preference to control whether or not Keybase folder is in Finder sidebar.

+1

@zanderz In version 2.1.2-20180625190314+836e4aeaca, we can remove it from sidebar, we can disable Keybase in Finder, you can find the setting in Settings -> Files -> Finder integration (I checked, we need to remove it from sidebar first, then disable the setting)

This doesn't have any effect.  So annoying.

Slightly different situation over here: I didn't remove the Keybase item from my Finder favorites before uninstalling Keybase. Now I am unable to remove the favorite – I get the same error as @iMerica above.


In the version of OSL I am using 'orthogonalize' does not work but 'orthogonalise' does

https://github.com/OHBA-analysis/Quinn2018_TaskHMM/blob/1f48359016c26b1cec0f92447a2c69cb9cd808eb/scripts/hmm_2_envelope_estimation.m#L46

Good spot. This updated after I had finalised the analysis in the paper but is correct for current versions. I'll commit a fix


[#1708] Improvement(mysql): Backquote table name or else to avoid potential

What changes were proposed in this pull request?
Backquote table name or else to avoid potential
Why are the changes needed?
Fix: #1708
Does this PR introduce any user-facing change?
NO
How was this patch tested?
UT/IT

@Clearvive
Is it okay for MySQL? Does PG have similar issues?

Please fix the PR title.


Loading dataloader-sequelize with require

I will start off by saying that I am new to dataloader-sequelize; however, I am interested in using this on a GraphQL/Sequelize project at working.  I have been trying to get a basic example up and running and ran into small potential bug/or bad practice on my part.  As a note I was following the instructions on the main Readme.
when you import the project using just require
const dataloaderSequelize = require('dataloader-sequelize');
what you are returned is not a function but an object.  For example:
const dataloaderSequelize = require('dataloader-sequelize');
console.log( 'dataloader',dataloaderSequelize );
---console log output
dataloader { getCacheKey: [Function: getCacheKey],
resetCache: [Function: resetCache],
default: [Function] }
I worked around this issue as follows:
const dataloaderSequelize = require('dataloader-sequelize').default;
and then I was able to get up and running.  Is this the expected behaviour?
I am not sure if referencing the

Yep, this is the expected behaviour. This is because we are using es6 modules, which allows us to export several modules / functions. When you use es6 import it uses the default import by default, by when using require, you have to access the default property (because require predates es6 modules).
You are welcome to add this to the readme :)


[WIP] Ark v0.10 compat

I have yet to test this in an actual cluster, but here's an early pass at updating the Portworx plugin against the Ark v0.10 plugin API.

@nrb Changes look good to me. Let me know if you need help testing it out.
From the API changes it looks like the config from the SnapshotLocation will be sent to the plugin instead of the ark config, so the existing local and cloudsnaps should also work as long as the options mentioned here are passed in the config: https://docs.portworx.com/scheduler/kubernetes/ark.html#configure-ark-to-use-portworx-snapshots

Thanks @disrani-px. And yeah, that's correct - the Config CRD is now gone, with location-specific configuration being put into the associated CRDs and anything server-wide moved into command line flags/args on the deployment.

Hi @disrani-px.  I still intend to test this myself, but have been caught up in a few other things. Feel free to give it a test and let us know if there's anything we missed on docs/examples if you have the bandwidth!

I just verified that local and cloud snaps work with this plugin and ark v0.10

I will need to update our docs but that can be done after this change goes in.

@nrb Let me know if there's anything else to be updated. Otherwise, I can merge this.

Thanks @disrani-px - I don't think any more changes are needed. I will still double check multiple providers to make sure we're handling that correctly.


Allow for setting empty and full levels using API

It would be nice if the the range values for the empty and full cistern could be set using an API call. The idea is to have two endpoints e.g. /cistern/levels/empty and /cistern/levels/full that can be read (GET) and set (PUT). When setting the values without providing a value, the current fluid level should be used.

Maybe we can use an embedded database for storing the level information (see e.g. sled).


Implement VirtualFunctionTable / VirtualTableShape

Here's an implementation for these types, based on the structs in Microsoft's headers.
Fixes #137

Friendly ping @willglynn


Support number of workers for the virtual cluster

also add a make target to redeploy the containers on the cluster for an easy development cycle
Signed-off-by: Sebastian Sch<EMAIL_ADDRESS>

/lgtm

lets discuss this one in a meeting.
my  thoughts:
tests should be agnostic as possible to the k8s distro (upstream, ocp)
any ocp specific prep scripts or ocp specific tests should be out of tree in a different repo.
GH Actions can easily clone more than one repo.

@adrianchiris I agree that is why we have a separate repo for OCP specific tests using the sriov operator under the cnf-feature-deploy repo
https://github.com/openshift-kni/cnf-features-deploy/blob/master/cnf-tests/testsuites/e2esuite/dpdk/dpdk.go
https://github.com/openshift-kni/cnf-features-deploy/blob/master/cnf-tests/testsuites/e2esuite/sctp/sctp_sriov.go
https://github.com/openshift-kni/cnf-features-deploy/blob/master/cnf-tests/testsuites/e2esuite/vrf/vrf_sriov.go
and I may in the future clone that repo as part of CI system here, but the script to deploy the cluster (can be vanilla ocp k3s or others) with the PR build operator should be in the operator repo if you ask me.

To me, it makes more sense to have as few as possible references to non-vanille k8s in this repo. Again, it's not black and white. I understand the need to trigger a job that is testing a vendor-specific release. That's ok imo as long as there is a single entry point to kick off all kinds of vendor-specific testing. In short, I'm in line with @adrianchiris
Regarding the actual code, I never liked the fact that we had if openshift in upstream. Better to abstract those things away too and call a generic thing instead that can be dynamically replaced by an instance of something specific downstream.

To add some detail to my previous comment, it's important to realize that there are two parts: "vendor specific testing" and "code related stuff". For this PR, let's focus on the first part only.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.09%) to 25.71%

Totals

Change from base Build<PHONE_NUMBER>:
0.09%

Covered Lines:
2328

Relevant Lines:
9055

💛  - Coveralls


[Feature Request]: solution for leetcode 925

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
I would like to add solution in c++,java,python, javascript for leetcode problem 925. Long Pressed Name
Use Case
solution for leetcode 925
Benefits
No response
Add ScreenShots
No response
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

@Ajay-Dhangar can you please assign this to me.


imgur gifs with incorrect extension don't rip properly

If I look on the user page https://www.reddit.com/user/funinthesun88 - all the links to gifs on imgur have a .jpg extension rather than .gif. When I rip this user I end up with ~12KB files that seem to just be jpg captures of one frame of the .gif. It doesn't seem ripme can handle gif downloads properly when the extension is wrong.

User has deleted their account. I'l try to find another example, but should be easy to repo.

Generally if you rename the file extension from .jpg to .gif you would see that it was actually a gif with the wrong extension in the album. In this case, 12 KB does seem too small to be a .gif. Could be a problem that needs investigating.


Add force flag to kubeadm upgrade command

Issue #, if available:
Kubeadm upgrade command does a version comparison check between the cluster Kubernetes version and the kubeadm verison and proceeds with the upgrade only when the version skew is satisfied. For InPlace upgrades as we consume the kubeadm built from EKS-D and which has it's own versioning that depends on a commit hash, so there could be cases when this version check could fail. Example below:
	- Specified version to upgrade to "v1.27.15-eks-1-27-36" is higher than the kubeadm version "v1.27.15-eks-0549c7e". Upgrade kubeadm first using the tool you used to install kubeadm

Description of changes:
As there are no specific flag that could be passed on to skip this version check, add a force flag to the upgrade command so that the upgrade is forcefully tried in event of the failure.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/cherry-pick release-0.20

/cherry-pick release-0.19


chore(main): release 1.1.4

:robot: I have created a release beep boop
1.1.4 (2023-01-20)
update

更新全部商品、增加搜索 (033431f)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/School-of-Website-Engineering/Knock-Ding-Yanxuan/releases/tag/v1.1.4 :sunflower:


Update mysql-connector-java to 8.0.20

Consider using version 8.0.20 as default
Keep integrations tests against 5.1.49, 6.0.6

Fixed by 7385392e388f9cba22bc3e73126ed9b5c1ed9fb0


Port to Commodore 128 in C128 mode

Are there plans to make it work on Commodore 128 in C128 mode?
It Is hard to make it work?
Best Regards

Hi
Well first I must admit that I don't know the C128 very well..
Targeting the compiler to other platforms is currently on the way and we're working on the C Puls/4 and VIC-20 targets. Adding other targets should be relatively easy.
I think the bottleneck is the assembler backend, which is DASM in our case. We can only target those CPU's that DASM supports.
What CPU is ticking in the C128 when in C128 mode? Forgive me for the dumb question ;-)

Hi:
The c64 and the c128 does not vary very much. The processor it uses is 8502, that is complete compatible with the 6502, only it can run at 2mhz. 1mhz default.The memory mapping of c128 vary some but not too, much because it have 128k of ram and can be expanded to 2mb, and the rom it have is larger.But on the basis much of the programs can run on a c128 with some patches.
Atte,...
Oscar D. Flor R.
Tel. (595) 981 683-482
El domingo, 22 de diciembre de 2019 11:36:04 a. m. GMT-3, Csaba Fekete<EMAIL_ADDRESS>escribió:

Hi
Well first I must admit that I don't know the C128 very well..
Targeting the compiler to other platforms is currently on the way and we're working on the C Puls/4 and VIC-20 targets. Adding other targets should be relatively easy.
I think the bottleneck is the assembler backend, which is DASM in our case. We can only target those CPU's that DASM supports.
What CPU is ticking in the C128 when in C128 mode? Forgive me for the dumb question ;-)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Okay, so far it seems doable but requires quite a lot of research from my side. Are you interested in contributing to the project? Either with your advises or with actually porting the runtime library to the C128. It's a pretty small library, less than 1K currently. Thanks

Yes!I want to collaborate in whatever i can. I have full c128 documentation available. And I know some of programming. Maybe I can help with something. I'm not strong on assembler but I will do that I can.
Atte,...
Oscar D. Flor R.
Tel. (595) 981 683-482
El domingo, 22 de diciembre de 2019 5:51:53 p. m. GMT-3, Csaba Fekete<EMAIL_ADDRESS>escribió:

Okay, so far it seems doable but requires quite a lot of research from my side. Are you interested in contributing to the project? Either with your advises or with actually porting the runtime library to the C128. It's a pretty small library, less than 1K currently. Thanks
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

That's great! Things we can start with:

Read thread no #82 for some background
Check these files: https://github.com/neilsf/XC-BASIC/tree/feature/multiarch/lib/c64 - it should be enough to rewrite these three for any target system including the C128
Join our Slack channel where we can discuss all the details. Here's the public link: https://join.slack.com/t/xcbasic/shared_invite/enQtODM1NjI3MTE0MDM1LTZlOTg5NmU5OWVkM2ZkZjE4OTU4MjgyM2U0MWUxMzhmZGYwMDlhOWQyYTY5MTYxMzI3ZDQ3MzgzNzA5YzFhODU

Many thanks

* Join our Slack channel where we can discuss all the details. Here's the public link: https://join.slack.com/t/xcbasic/shared_invite/enQtODM1NjI3MTE0MDM1LTZlOTg5NmU5OWVkM2ZkZjE4OTU4MjgyM2U0MWUxMzhmZGYwMDlhOWQyYTY5MTYxMzI3ZDQ3MzgzNzA5YzFhODU

This invite link is no longer active.
I think something is wrong.

It just expired. Here's the new one:
https://join.slack.com/t/xcbasic/shared_invite/enQtODcyNTUwODk4MTE0LWZkNzEzZTRjMTA3ODA3MTVjNTY0NDIwMjFjZjJmNzdmNjNlMWNiNDljNTNhOTI1ODhjYzNhMTlkNDJiNGFiOGI


Improve social media presence

The links to Testausserveri could be improved on several platforms by adding OpenGraph and Twitter meta tags. Currently, only projects have OpenGraph meta tags, but in my opinion, the main page should also be visually appealing on social media. For example, a graphic of Testausserveri could be displayed when the page is linked. 😸
Reference:

If we migrate to the Next.js App Router (currently beta, but soon stable), there is a pretty nice Metadata API that can be used for this.
https://beta.nextjs.org/docs/api-reference/metadata

I implemented something like this for a project I was working on. It could also work well here.
export default function Meta({
  title,
  description,
  image,
  url,
  contentType,
}: Meta) {
  if (!url && typeof window !== "undefined") {
    url = window.location.href;
  }

  return (
    <Head>
      {/* Content metadata */}
      <title>{title}</title>
      <meta name="description" content={description} />
      <meta property="description" content={description} />

      {/* Open Graph metadata*/}
      <meta property="og:title" content={title} />
      <meta property="og:url" content={url} />
      <meta property="og:type" content={contentType || "website"} />
      <meta property="og:description" content={description} />
      <meta property="og:image" content={image} />

      {/* Twitter metadata */}
      <meta name="twitter:title" content={title} />
      <meta property="twitter:url" content={url} />
      <meta name="twitter:card" content="summary_large_image" />
      <meta name="twitter:description" content={description} />
      <meta name="twitter:image" content={image} />
    </Head>
  );
}

As @Eldemarkki already mentioned app router has new metadata API and since app router is not stable I don't see any point using the old way.

FYI:
OpenGraph already implemented in following routes:

https://github.com/Testausserveri/testausserveri.fi/blob/coal/pages/projects/[slug].tsx#L173-L178
https://github.com/Testausserveri/testausserveri.fi/blob/coal/pages/koneet-kiertoon.tsx


Software License Not Found

There does not appear to be a license associated on behalf of this project/code.  Which software license is intended to be applied for usage?

Good catch! Added a LICENSE.  Thanks!


data discrepancies?

hi hi, looking at this game:
https://www.pro-football-reference.com/boxscores/200009030nor.htm
game_id in the CSV is<PHONE_NUMBER> in file play_by_play_2000.csv.gz
i'm looking at total_home_score and total_away_score and the end of game score is 9-12, NOR-DET. however, sports ref has the game at 10-14, NOR-DET. ESPN has a box score that's also similar (http://www.espn.com/nfl/2000/20000903/recap/detnor.html) so i'm guessing the 10-14 score is the "real" score. unsure how persistent this is across the data, but this was one error i found.

Hi Nick, thanks for using the data! This is a bug in the underlying data provided by the NFL (RIP) where the NFL did not record point-after-touchdowns following defensive touchdowns (including punt returns). You found a game with two of those!
pbp %>%
  filter(home_team == 'NO' & away_team == 'DET') %>%
    filter(play_id %in% c(330,365, 2686, 2767)) %>%
  select(desc, posteam, total_home_score, total_away_score)

# A tibble: 4 x 4
  desc                                                                                posteam total_home_score total_away_score
  <chr>                                                                                <chr>              <dbl>            <dbl>
1 "(9:46) S.Case pass intended for D.Sloan INTERCEPTED by S.Knight at DET 37. S.Knight for 37 y~ DET                    6                0
2 "T.Gowin kicks 65 yards from NO 30 to DET 5. D.Howard to DET 20 for 15 yards (T.Franz)."       DET                    6                0
3 "(2:28) T.Gowin punts 58 yards to DET 5, Center-K.Houser. D.Howard for 95 yards, TOUCHDOWN.\n~ NO                     6               12
4 "J.Hanson kicks 66 yards from DET 30 to NO 4. C.Morton pushed ob at NO 49 for 45 yards (J.Han~ NO                     6               12

So following the scores, the next plays are kickoffs, not the points after (the second one was a 2 point conversion).
This also affected nflscrapR as well, BUT I just checked the new API and the NFL has fixed this issue there. So stay tuned...


Add collaborators to this repo

Comment below to be added as a collaborator
We will all be using this repository today. Even though it's public right now, you will not be able to make changes until you're given the correct permissions. We've automated this process via the GitHub API. Once you comment, we will add you as a collaborator.
You'll start to receive a lot of emails. (❗) You can slow these down immediately by clicking the Unwatch button at the top of the page and selecting either the Participating and @mentions or Ignore option.

Sathya

Satish

Paul Kratz

Tanisha Jain

Ravi

Chandra M

Krishna Varada

Vijitha-vitech

Ron Chen

This is Srikanth

Sudhakar

Anupriya here

Altin


CLA, commercial use, contributor compensation, etc

Since we haven't solved the issue of commercial use by us vs other companies, this issue should exist.
Taking from https://github.com/ScuffleTV/scuffle/issues/9#issuecomment-1408296941

I assume you want to prohibit big companies from commercial use, but you'll need to make an exception for yourself. Related: https://opensource.stackexchange.com/questions/4875/open-source-license-to-prevent-commercial-use
Basically, it should be possible to achieve what you want, but with much effort. The general strategy seems to be [open-source license like GNU GPLv3] for non-commercial use, contributor agreement to maintain ownership of the whole project, separate commercial license.
It's also of note that prohibiting commercial use might be against point 6 of the OSD https://opensource.org/osd-annotated

The open-source license is picked, so that part is done. But we have no CLA, no commercial use prohibition and no commercial use license.
And without an agreement on how contributors will get shares or any other form of compensation, it all relies on a word of honor from @TroyKomodo (company owner), which might be not enough for a lot of contributors.

I agree, I will work on getting a CLA, and looking into a commercial license agreement.

agreement on how contributors will get shares

This is a bit of a iffy situation.
Currently in the early stage in which we are at the company we are not really able to do that.
If your soul purpose for contributing on this project is to get shares then I would advise you to not contribute.
At the time of writing we are not funded by a VC we do not have hiring capital, we do not generate a revenue.
The idea around giving shares to contributors still stands. However it is not just you write some code and you get some shares. Its when I notice that you are over the course of the project you have decided to take an effort to help with building out this platform and are active and are reliable. To which then I will be the one who reaches out and offers you a share contract. Having a guideline might prove tricky because the question becomes is what do I see as "quantified effort". And having it in a guideline creates this weird environment where people will aim to follow the guideline as a checklist, aiming to acquire shares and then poof as soon as they get them.
I am aiming to cheat people.
This is an opensource project, most opensource projects do not have this prospect of earning share. Most people are likely not even aware of the fact that there is a possibility of earning shares.

which might be not enough for a lot of contributors

This is fine, I would rather not want people to contribute if they are concerned about the legal grounds of compensation for their contributions. The whole idea of the project is to make something cool and to have fun while doing it. To be able to play around with a real production environment and have it cost virtually nothing.
Hope that clears it up a bit.

And having it in a guideline creates this weird environment where people will aim to follow the guideline as a checklist

Yeah, it's basically impossible to formally define guidelines that won't be cheated/circumvented/etc. It's not in our interests for people to be optimizing their work to some abstract guidelines instead of just making good contributions.
Simply put, shares are more of a bonus. We should just think of it like a regular open-source project Okayge 👍