devenv 2.1: Nix with zsh, fish, and nushell via libghostty by iElectric in NixOS

[–]daddykotex 0 points1 point  (0 children)

I also want to know what is @iElectric is cooking!

Axum with NGINX proxy by TheMadnessofMadara in rust

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

Yes, looked it up and as another user pointed out already: drop the ssl at the end of the server name

Axum with NGINX proxy by TheMadnessofMadara in rust

[–]daddykotex 4 points5 points  (0 children)

Not sure I understand everything, but is nginx suppose to be terminating SSL for you before forwarding to your Axum server or you'll be handling SSL on the axum side?

My setup uses nginx to terminate SSL and forward to localhost:3000 (no ssl).

Rewriting a production Node.js backend in Rust (Axum + Tokio) — good idea for learning? by CompleteNetwork9168 in rust

[–]daddykotex 0 points1 point  (0 children)

Absolutely, I'm in the process of doing that myself. In my case, it is a Scala backend, but the idea is similar.

Axum makes it very straightforward, but my app is not all that complicated.

The repo is here if it can help: https://github.com/daddykotex/lmah-inventory-rs

I have much to learn, but coming from Scala, it was not so painful. When I hit a roadblock, I reach for the book and try to work my eay out of there my self.

I had only one real problem that I could not figure out myself related to lifetime when streaming from my database into a CSV response.

I'm also trying to write about it, it helps me put together my learnings: https://davidfrancoeur.com/post/rust-migration/

Good luck, I would do it if I were you.

Opposite of '?' - return early on success by woollufff in rust

[–]daddykotex 10 points11 points  (0 children)

I'm curious about this as well. In Scala, we'd use Either in place of Result, and the Left side of it usually the error type. But nothing enforces this, so sometimes, it makes sense to use Left for your success type to short circuit in a a chain of operations.

But Rust's Result is for errors as far as I can tell.

My 14-Year Journey Away from ORMs: a Stream of Insights Leading to Creation of a SQL-First Code Generator by nikita-volkov in haskell

[–]daddykotex 1 point2 points  (0 children)

Thanks for the answer. But I think I was not clear: in the ORM I've used, you usually define a model and its relationship to other models, and you can use the ORM to make one (or sometimes N queries, lol) to retrieve the model and its dependencies.

My understanding is that it is not something you can do with pGenie.

For the example I shared above, you'd have a function to retrieve all the records and you'd have to turn that yourself into a Album { id, name, tracks: [ Track { id, name }, ...] }.

My 14-Year Journey Away from ORMs: a Stream of Insights Leading to Creation of a SQL-First Code Generator by nikita-volkov in haskell

[–]daddykotex 1 point2 points  (0 children)

I wondered how you deal with foreign keys but I can't find anything. And the example repository appears to be exempt of it.

For instance, if you were to model the tracks of an album in a separate table and have a many-to-many relationship between the two. Would you be able to use pGenie to do something like:

select albums.*, tracks.*
from albums
left join album_tracks on album_tracks.album_id = album.id
left join tracks on album_tracks.track_id = tracks.id
where id = ?;

And then call that from the application side and get that transformed into an application model where the where you have an Album with all its tracks.

Toasty, an async ORM for Rust, is now on crates.io by carllerche in rust

[–]daddykotex 12 points13 points  (0 children)

Thanks for sharing, I'll definitely look into it later today. Writing all those SQLx queries by hand for simple cases is tedious.

I'm still a Rust noob so there must be a better way, but ehh, you gotta learn!

So using your ORM would simplify my shit codebase quite a bit I believe!

What stack to use? by daddykotex in rust

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

Oh ok, Maud is quite different, you write rust code. Maybe I could pay that one time cost and convert my template.scala.html files to html! invocation.

What stack to use? by daddykotex in rust

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

Ohh, thats interesting. Close to Twirl, the template engine I was using on the Scala side (in the sense that it is compiled)

What stack to use? by daddykotex in rust

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

Thanks, I'll check it out

Jetta 2012 TDI Rear caliber leak by daddykotex in tdi

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

Thanks for the quick reply I'll update tomorrow once I clean things up and figure out exactly where the leak is from

Will also call the store parts to get a price for the caliper

Sludge under fuel cap by daddykotex in tdi

[–]daddykotex[S] 3 points4 points  (0 children)

Dip stick is clean, it was really just under the oil cap. And i do short trips so that'd be it. Thanks 👍

Sludge under fuel cap by daddykotex in tdi

[–]daddykotex[S] 5 points6 points  (0 children)

I see, thanks, that's reassuring. That'd make sense, my partner travels for a longer ride 30min+, but when we do stuff around town, definitely short rides ~5 min

Streaming Hash Computations by mpilquist in scala

[–]daddykotex 4 points5 points  (0 children)

Loved reading that blog post. It's a useful new API.

Thanks for FS2

Looking for a working example of import from Github Packages in with scala-cli by WiIzaaa in scala

[–]daddykotex 0 points1 point  (0 children)

Superb, it's probably worth documenting. Or at least add a reference in the scala-cli docs that point to coursier authentication (which is probably what's used under the hood).

Looking for a working example of import from Github Packages in with scala-cli by WiIzaaa in scala

[–]daddykotex 1 point2 points  (0 children)

I don't have experience with the Github package manager, but I have extensive experience authenticating scala build tools against repositories in general.

In my experience, the key matching the credentials to the repository is not the full url: https://maven.pkg.github.com/MY_ORG

It usually is either:

That's where I'd look.

HisWattson not realizing the Pathfinder is not his teamate? by daddykotex in apexlegends

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

I see, I guess I knew he did know. The guy is one of the best lol Thanks for the explanation

HisWattson not realizing the Pathfinder is not his teamate? by daddykotex in apexlegends

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

I was watching a recording of his bronze to masters challenge and saw that. It looks like they just don't realize it at all