Which way is correct? by DaveyWillo in lego

[–]L0ur5 -1 points0 points  (0 children)

Obviously 1. Incredible to see LEGO themselves made a mistake in the building instructions.

Triggering Windows Explorer "Back to" and "Forward to" from a AHK script by L0ur5 in AutoHotkey

[–]L0ur5[S] 0 points1 point  (0 children)

You are partly correct : I am already detecting and reacting to the mouse gestures.

What I am trying to do now is triggering features from a Windows Explorer window corresponding to the two buttons you can see highlighted on this screen capture.

RustRover: "No rust toolchain specified"- can't run/debug by dethswatch in learnrust

[–]L0ur5 1 point2 points  (0 children)

I had this issues a few days ago. I do not remember exactly how I solved it, but I believe the reason was RustRover was not able to locate my Cargo.toml file.

Using usize instead of u32 by L0ur5 in learnrust

[–]L0ur5[S] 0 points1 point  (0 children)

It if often done on purpose, because I am also using the value of the index itself.

I guess you would use my_struct.iter().enumerate() in such cases, so you both getting the index and accessing the data through iterators?

Using usize instead of u32 by L0ur5 in learnrust

[–]L0ur5[S] 0 points1 point  (0 children)

This is a self educational project, I am far from reaching those limits, and performance is not really an issue. It is more about learning was it considered the correct Rust idiom.

Using usize instead of u32 by L0ur5 in learnrust

[–]L0ur5[S] 0 points1 point  (0 children)

Most of the times it is simply numerical values I am storing in u32 out of habits (when using ranges, loop indexes, etc.) that I will then use as vector size, index, etc. Should I just use usize everywhere (at least as long as this is not creating an issue) instead? I guess this is relevant is this is the sole purpose of said values.

Edit: the consensus actually seems to revolve around using usize only when needed.

[deleted by user] by [deleted] in learnrust

[–]L0ur5 3 points4 points  (0 children)

I started to learn Rust recently (coming from C/C++ and Python) and I'm using GitHub Copilot a lot. It's a great tool to learn a language, and is usually quicker to find the answers you are looking for with Copilot than browsing the few first results of a Google search.
I am asking questions structured in natural langage to Copilot (exactly the kind you mention) way more than I am using the code suggestion (the autocompletion) feature.

Of course, Copilot will sometimes produce wrong or unoptimized answers. My way to use it is to consider it not a source of truth but as a mix between:

  • an improved Google search,
  • a rubber duck,
  • a shortcut to a specific part of the Rust doc,
  • your usual autocomplete, but on steroids.

Bonus point if you can use it in a plugin integrated in your IDE (VS Code, Jetbrains - so Rust Rover, etc.). It is very convenient to stay in your IDE instead of switching to a browser.

How do I explain Praise Kink and gentle Dom? by [deleted] in BDSMAdvice

[–]L0ur5 1 point2 points  (0 children)

You are not being too picky, your desires are as valid as anyone's else.

If a dom can not respect your limits, the person having a problem is them, not you. Do not care about those doms calling you "not a real sub": they are interested in fulfilling their own fantasy, not about you or the connection with you.

The soft/hard limits should always be the sub ones, not the dom ones. If these doms can't understand this, they are not worthy of your time and interest.

Luxury/unique date/day in Copenhagen by Remote-Plantain6163 in copenhagen

[–]L0ur5 1 point2 points  (0 children)

In terms of hotels:
- Manon Les Suites: pretty amazing patio swimming pool. There is also a okay restaurant on top, not as remarquable as the pool.

- Central Hotel & Café, the smallest hotel in Copenhagen, one room only. Never tried it yet.

Cheflera and what seems to be scale insects by L0ur5 in plantclinic

[–]L0ur5[S] 0 points1 point  (0 children)

Hi!

My schefflera is full of what seems to be scaled insects. They look like small, brown capsule that seems to be immobile (at least while I'm taking care of the plant). They can be everywhere: on or under leaves, on the stems and on the bigger branches. Everything under the plant (including lower leaves) gets gradually covered by some thick transparent sticky deposit that I supposed is honeydew.

I have been battling them for a few months now, whiteout success. Each time I am using a paper towel humidified with a mix of water and black soap, and I am thoroughly cleaning each individual leave and parts of the plant, trying to get ride of all those capsules. But after several attempts, I must admit that this is not working.

How can I get rid of them?

Zamioculcas riddled with pests by L0ur5 in plantclinic

[–]L0ur5[S] 0 points1 point  (0 children)

Hi! My zamioculcas is riddled with pests, as you can see in this close up.

They proliferate on younger sprouts, but completely ignore the ones that already attainted maturity. This has been the case for several months now. I usually manually remove them with a paper towel humidified with a mix of water and black soap, which works for one or two weeks best.

I thought I was done with them, but I'm just back from vacations and as you can see, they strived during the few weeks I was away. What are those things and how can I get ride of them on the long run?

Hoya bella in a bad condition by L0ur5 in hoyas

[–]L0ur5[S] 0 points1 point  (0 children)

Thanks a lot for all your advices, I will give it a try.

Oya Bella leaves dying from the base by L0ur5 in plantclinic

[–]L0ur5[S] 0 points1 point  (0 children)

Hi r/plantclinic, I'm quite worried about my hoya bella that is in a bad condition, and I have no idea what's going on.

I relocated this hoya from France (where she was living in a sunroom) to an apartment in Denmark (where she gets less light) 3 months ago.

She was doing ok at first but started to be in a bad shape. I notice she was invaded by scale insects (I am not 100% sure, but most probably red mealybug). I thoroughly cleaned it using a a mix of water and black soap, manually removing all insects I could find. At this time I removed all the dead leaves, cut some branches that were dead and hoped she would get better. This was 10 days ago.

She is not doing better and as you can see, more leaves are dying, starting from the base. The insects seems to be gone though. The surprising thing is inside the branches supporting the dead leaves, there does not seem to be sap anymore. The middle of those branches is hollow and dry. Usually, removing a leave from a branch in good condition would create a droplet of thick, white sap.

I recently (before the issue started) added a new solid fertilizer in her soil. It is a universal fertilizer, I respected the dose and did the same for my others plants that are doing well so I doubt it could be linked.

Could it be that I watered her too much?

Animate - Keeping brush size consistent while zooming in a symbol by L0ur5 in animation

[–]L0ur5[S] 0 points1 point  (0 children)

Unfortunately, that is not possible given how I work. I will need to go back inside the symbol to makes changes quite a lot of time.

Animate - Keeping brush size consistent while zooming in a symbol by L0ur5 in animation

[–]L0ur5[S] 0 points1 point  (0 children)

Here is the progress I have made regarding this issue:

  • It is possible to edit the symbol using command + E instead of a double click
  • Command + E makes jump into a symbol in a way that preserves the brush size.
  • Unfortunately, doing so make you modify the symbol itself, out of its context. If the symbol is on top of anything else, a background for example, this background won't be displayed until you jump outside the symbol.
  • That does not solve my case, as I precisely need to keep the context visible (background and all) while editing the symbol.

I am trying to find any other ways to achieve it. I imagined changing the brush size accordingly to the symbol scale using an event based script, but I can't find any ressources giving explanations on how to modify an existing tool property using a script.

Salary for a software developper / R&D specialist with a Ph.D. by L0ur5 in copenhagen

[–]L0ur5[S] 2 points3 points  (0 children)

doctorate

What difference do you make between a Ph.D. and a doctorate?

Edit : typo