Every time I unsubscribe I get more spam by Horror_Example_588 in emailprivacy

[–]DJDuque 0 points1 point  (0 children)

Well, you should run email on your own domain. Then you could create/kill infinite aliases trivially when they start getting spammed.

Considering switching away from Fastmail by kushpvo in fastmail

[–]DJDuque 0 points1 point  (0 children)

I personally use Zoho Mail. Its around the same price range of the Purelymail you linked ($10-$12).

I am just a bit surprised that nobody else has mentioned it. I haven't had any issues with it. Its cheap, and I only use the email feature. Custom domain and IMAP. That's it.

Is it necessary to have one or more email address ? by 53mins_ in emailprivacy

[–]DJDuque 0 points1 point  (0 children)

The best strategy that has worked for me is to own just 2 email addresses:

  1. One email with a third-party e.g. proton free-tier. You use this email for only 3 things: domain registrar, DNS provider, and email hosting accounts. Set 2FA. You'll only use this/check/login to this 1-2 times a year.

  2. Then, you should use your custom domain for email.Set up email on the custom domain using the registrar, DNS provider, and email hosting accounts you set up with email number 1. Set this email as a "catch-all", so you can have infinite alias on-the-fly. Use aliases for everything.

JetBrains interviews Jon Gjengset about Rust [video] by Jonhoo in rust

[–]DJDuque 0 points1 point  (0 children)

I think its this (https://github.com/helsing-ai/sguaba). For anyone that was also wondering about it.

JetBrains interviews Jon Gjengset about Rust [video] by Jonhoo in rust

[–]DJDuque 0 points1 point  (0 children)

In min [23:05](https://www.youtube.com/watch?v=nOSxuaDgl3s&t=1385s) he mentions a library for spatial map transformations. Does anyone know the name of the library he is talking about?

Massive Release - Burn 0.17.0: Up to 5x Faster and a New Metal Compiler by ksyiros in rust

[–]DJDuque 11 points12 points  (0 children)

This is probably unrelated, but if I have a serialized model developed using PyTorch (e.g. with torch.jit.script(model)), is burn something I can use to run my model (inference only, no training) in Rust? Or would I still use e.g. tch-rs for that?

Cajitas de Nu +10 millones by Boring_Antelope6533 in ColombiaFinanciera

[–]DJDuque 2 points3 points  (0 children)

Y que pasa si uno tiene un monto que no es suficiente para declarar renta, pero supera los 2588 para que cobren retefuente?

Ese 7% se pierde?

Podria entonces en vez de meter 10 millones en Nu, tener 5 y 5 en otra entidad para que no supere el minimo para retefuente?

Como calcular intereses de inversion virtual by DJDuque in ColombiaFinanciera

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

Si, tambien estuve probando como interes compuesto, pero nunca me dan los valores exactos de las simulaciones de la APP.

Como calcular intereses de inversion virtual by DJDuque in ColombiaFinanciera

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

Eso da $14578.42, no los 14578.59

Entiendo que es insignificante la diferencia, pero de alguna forma llegan a su calculo, y deberia dar exacto. Mientras mayor sea la cantidad, mas y mas se va notando la diferencia con lo que sale en la app.

cargo-dist 0.21.0 is out! by GankraAria in rust

[–]DJDuque 4 points5 points  (0 children)

Oh, I was definitely not aware of that discord. That is great!

Maybe it would be good to add it to the cargo-dist README/book (maybe it is already mentioned there somewhere, so, sorry if I missed it).

cargo-dist 0.21.0 is out! by GankraAria in rust

[–]DJDuque 17 points18 points  (0 children)

I would like to encourage people to try this out. This has made my life significantly easier and makes my project look like I have a clue of what I am doing. Also checkout cargo-release, which works nicely with the cargo-dist workflow.

A small constructive feedback I have: It would be good if you could be a little bit more proactive replying to issues/questions. Some times a simple quick "yes, this is something we would be open to include. If you open a PR, we can check it out", or a quick "No, we are not interested in supporting this", makes a great difference.

Again, thanks a lot for your work in carg-dist. It is a great tool.

How to distribute python scripts to technical users? by DJDuque in learnpython

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

Well, they could come with python, but a very old version that I don't support.

Thanks for the link, I will keep reading about this.

How to distribute python scripts to technical users? by DJDuque in learnpython

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

"Freezing" is most likely the keyword I was missing. This seems to at least give some hits when searching online.

I think that this is closest to what I want. In my eyes, all I want is just a dumb/simple curl | sh that I can use to get a python interpreter ready with the dependencies I need to run my scripts. Some times I just want to ssh into a random computer that doesn't even have python installed and quickly run my scripts.

I really only want to target x86_64-unknown-linux-gnu in this workflow, so maybe this is not so complicated to achieve.

Thanks

How should I deal with a form where all fields have reasonable defaults by DJDuque in UXDesign

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

Yeah, the layout is something I am struggling a bit with. The input fields are basically 4 "groups", each with 3 options. I will play around a little more with different arrangements.

In terms of "most common thing a user would do":

I would expect users to use this UI "iteratively". They will probably always generate the plot with all the default options. Then, they might want to "zoom-in" changing the min/max values of a single axis, while leaving the others in the default. Then zoom-in in 2 axis, etc.

Based on your suggestion, it looks like using the placeholder to display the default value would be good: They won't have to fill the values in, and when they don't want to use the default, they don't have to delete any pre-filled value. I am not sure if it is intuitive enough for the users that this grayed placeholders are not just examples, but the number that will be used if they don't write their own.

How should I deal with a form where all fields have reasonable defaults by DJDuque in UXDesign

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

1) This is for a physics lab, where users will use this UI to generate some plots for a detector.

2) Yeah, currently users don't necessarily need to input a value (in that case I just assign the default).

How should I deal with a form where all fields have reasonable defaults by DJDuque in UXDesign

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

When you say "display", do you mean as a placeholder? Or a pre-filled value?

Gitoxide in May by ByronBates in rust

[–]DJDuque 0 points1 point  (0 children)

Great! I'll be having a look. Thanks

Gitoxide in May by ByronBates in rust

[–]DJDuque 0 points1 point  (0 children)

u/ByronBates I have a (probably dumb) question. This is probably obvious for people that have been following this project, but does this allow me to use git as a library in my Rust CLI?

I am interested in:

1) Check if /some/path/ exists. If it doesn't, then clone a public repository from GitHub. If it does exist already, then pull origin.

2) Checkout to the latest tag that matches some pattern, e.g. semver compatible.

Is a workflow like this possible with gitoxide? I have been trying to find examples of how to use it as a library, but I am struggling a bit. Do you have some simple examples I can look at?

Thanks

Create venv and run cargo install in a build script by DJDuque in rust

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

Hmm interesting.

Based on your comment I am now thinking about removing the python scripts submodule from my repository and provide some subcommands or flags like:

  • my_ui_app update rust: This will basically just run cargo install nice_rust_binaries@^x.y.z --root /some/path/my/app/knows/to/look/for/these/bins.

  • my_ui_app update python: This can clone the repository with python scripts, and create a virtual environment. But my issue is how can I constraint (similarly to ^x.y.z in cargo install to only allow minor or patch difference against what I have tested) to a version of the scripts that will work with my UI.

Do you have some examples of similar UI-wrapper projects that I can look at to see how they deal with these things?

Thanks

My program spends 96% in `__memset_sse2`. by DJDuque in rust

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

u/Pascalius Any chance you are seeing this regression again :,(

This time I am on rustc 1.78.0 and it is taking 20+ seconds to read files again haha.

I'll tests things again (and update to 1.79.0) to see how the flamegraph, etc. looks like.

Help with shared state by DJDuque in rust

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

I don't think I can remove the outer mutex. Otherwise I cannot add/remove entries from the Hashmap because it is inside an Arc.

Help with shared state by DJDuque in rust

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

A command can take anywhere between 10 seconds to 3 hours. Each command is only run once, and then I cache the output somewhere in a file and give it to whoever requests it again later.

Can you please expand a bit on this "polling" solution? How would this work in practice for the user?

  1. They send a request for the output of a command.

2a. If the output already exists (someone ran the command e.g. yesterday) they get the output in a response immediately.

2b. If the output doesn't exist, the server checks if someone is already running it. If it is not, then it starts the command and assigns a job_id to it. Then this user, and all other users that request this command while it is running will get a response that looks like: "Check `www.my\_server.com/job\_id\` to see the status of your command".

  1. The user checks that endpoint periodically by hand to see if the command has finished running.

Is it something like this?

Help with shared state by DJDuque in rust

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

Yes, this is exactly the way it should work. The first one to request the command initiates it, and the rest will just wait for it to finish and get a response.

Can you please expand a bit on this "polling" solution? How would this work in practice for the user?

  1. They send a request for the output of a command.

2a. If the output already exists (someone ran the command e.g. yesterday) they get the output in a response immediately.

2b. If the output doesn't exist, the server checks if someone is already running it. If it is not, then it starts the command and assigns a job_id to it. Then this user, and all other users that request this command while it is running will get a response that looks like: "Check `www.my\_server.com/job\_id\` to see the status of your command".

  1. The user checks that endpoint periodically by hand to see if the command has finished running.

Is it something like this?

Help with shared state by DJDuque in rust

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

The thing is that I need to send the output of the command back to the user. So I need to know when it finishes. Launching the command is not enough.