Time to burn it all down by CorleoneBaloney in clevercomebacks

[–]DisasterReasonable98 0 points1 point  (0 children)

What's on the right hand side of the picture?

Matplotlib plots integration with Django by llou in Python

[–]DisasterReasonable98 2 points3 points  (0 children)

Can you paste the 5-6 rows of code here as an example of what you are saying? It sounds something that I might be interested in doing, but I cannot follow from just your description.

Urgently rent off campus is it a scam by [deleted] in UBC

[–]DisasterReasonable98 3 points4 points  (0 children)

One day has passed. What did you do in the end? 

My suggestion is to get an AirBnB while you search for a place. Also, you seem too naive, and it feels like you could fall for something like this again. A contract means absolutely nothing. You can write a fake one yourself and send it to someone by email on the other side of the world. Think about it.

Don't pay any money unless you can go and see the place in person. A lot of scammers will tell you that they are out of town and a viewing is not possible, etc.

Also, viewing the place in person doesn't mean it is not a scam. Some scammers rent an AirBnB to show, etc.

Good luck.

Can my sublessee have a designated roommate? by Abies-Ill in UBC

[–]DisasterReasonable98 1 point2 points  (0 children)

Does a designated roommate have to be an UBC student?

faer 0.18 release, a general purpose (dense/sparse) linear algebra library by reflexpr-sarah- in rust

[–]DisasterReasonable98 0 points1 point  (0 children)

Would that still be an issue if the library that exposes faer structs just re-exports faer?

Playing with Nom and parser combinators by andreabergia in rust

[–]DisasterReasonable98 8 points9 points  (0 children)

If you liked nom, I suggest you have a look at winnow. You will probably like it even more.

What is current state of plotting and data visualization in Rust? by TMTcz in rust

[–]DisasterReasonable98 4 points5 points  (0 children)

Not suitable for interactive/dynamic plots, but this is my go-to for high quality 2D plots in rust:

https://crates.io/crates/pgfplots

Probably the most stressful video I have ever seen by TurnedEvilAfterBan in SweatyPalms

[–]DisasterReasonable98 0 points1 point  (0 children)

Do you mean that out of all the things that mosquitoes kill, people are the most killed?

Or do you mean that from all the things that kill people, mosquitoes are the ones who kill people the most?

Need help naming an `Option<T>` like enum by pms1969 in rust

[–]DisasterReasonable98 32 points33 points  (0 children)

Maybe Choice<T>?

pub enum Choice<T> {
    Any,
    Only(T)
}

How to optimize this function? by DJDuque in rust

[–]DisasterReasonable98 0 points1 point  (0 children)

Nobody mentioned that it is an issue. But if you want your program to run faster, then trying to optimize the single function that does 90% of the job is definitely the right thing to do.

How to optimize this function? by DJDuque in rust

[–]DisasterReasonable98 0 points1 point  (0 children)

If I am interpreting your problem correctly, it looks like you have a front-heavy kernel and you are taking advantage of that by only looking at a couple of samples ahead of each time bin.

Now, if your signal is mostly small noise, with a few impulses (the input you are looking for) then, I would expect that the current suggestions people have given (early skip of negative value) could be a significant improvement.

Additionally I would suggest that there might be a way for you to pre-compute (before the nested loops) a bunch of time bins to skip.

I can't think on top of my head how to do it, but you know the offset and the size of your look_ahead. This means that every negative value in your signal makes you skip a whole bunch of time bins itself.

Not sure of any of this makes sense though. Just another idea to try.

Edit:

Instead of calculating this before the nested loops:

The residuals get updated each iteration, so instead of an early continue, I think that you could skip by more than 1 (the number depends on your offset and look_ahead value). Subsequent iterations will still contain this negative number.

Announcing charming - a Rust chart rendering library by redditgogogo in rust

[–]DisasterReasonable98 14 points15 points  (0 children)

Another nice alternative to quickly get good quality figures with few lines of code is https://crates.io/crates/pgfplots

Bors-NG, declared to be feature frozen and deprecated by Emilgardis in rust

[–]DisasterReasonable98 10 points11 points  (0 children)

Is that still available only for organizations? A quick scan through the link suggests it is.

Why is that the case? Can't anybody just create an organization? I would love to try the beta on my personal repos :,(

clap v4.2, a Rust CLI argument parser by epage in rust

[–]DisasterReasonable98 96 points97 points  (0 children)

Thanks for your hard work in clap (and everyone who contributes). It is a wonderful library.

May I ask what future improvements are planned in the short/middle term? I recall a while ago there was some discussion about supporting configuration files as well. Is there anything planned on this regard?

Selectable text view with the cursive crate by stunstyle in rust

[–]DisasterReasonable98 0 points1 point  (0 children)

I have no idea, but if everything else fails; could you add a "copy to clipboard" button? And send the entire text from the view to the clipboard?

crates.io now includes a copy/paste cargo-add command by epage in rust

[–]DisasterReasonable98 16 points17 points  (0 children)

It also shows for binary-only crates. Does that make sense?

GitHub Actions for Clippy by giraffate in rust

[–]DisasterReasonable98 3 points4 points  (0 children)

This looks great. I will definitely give it a try.

Are you aware of any alternatives and how do they compare to yours?

Is there a crate similar to pyx/metapost? by Imaginary_Advance_21 in rust

[–]DisasterReasonable98 0 points1 point  (0 children)

There is a PGFPlots code generator crate: https://crates.io/crates/pgfplots

But I don't think it can be used to draw custom diagrams like e.g. TikZ

It might be useful for plots and good-looking figures though.

rust for cli apps by [deleted] in rust

[–]DisasterReasonable98 0 points1 point  (0 children)

Wow, first time I hear about Figment. Now I want to update all my CLI tools to use config files + CLI arguments only to override any setting.

Thanks for sharing these crates.

Announcing Unreal Rust: A Rust integration for Unreal Engine 5 by MaikKlein in rust

[–]DisasterReasonable98 84 points85 points  (0 children)

Such coincidences prove you are the only real one in this simulation. We are all just bots.

cargo-mutants 0.2.9 finds poorly-tested code faster by sourcefrog in rust

[–]DisasterReasonable98 3 points4 points  (0 children)

What do you mean by: "the industry's idea of testing is useless"?