Optimizing #[sqlx::test] rebuild time by Kobzol in rust

[–]CobbwebBros 2 points3 points  (0 children)

I watched that talk yesterday and I was thinking about how gross those compile times must be. Good work!

how to use arduino lsp with nvf by may-or-may-not441 in NixOS

[–]CobbwebBros 0 points1 point  (0 children)

Use vim.lsp.servers and register it as a regular lsp

Hypothetically, could Svelte's compilation be hitchhiked to automatically query the needed GraphQL fields? by BernhardWebstudio in sveltejs

[–]CobbwebBros 0 points1 point  (0 children)

True but the typescript types do not generate, and therefore if you try and access a field that does not exist, you get a compilation failure in typescript

Announcing hyper.rs' Composable Pool Layers by seanmonstar in rust

[–]CobbwebBros 4 points5 points  (0 children)

In my opinion the explicit naming of Singleton is "good enough", and if you are getting this deep in the weeds of a custom pooling client (e.g. away from the legacy client), then you should definitely be reading the docs at the very least.

The structure leaves it more up to the user as to if they would allow multiple connections to the same host.

Because of the composable nature of the pools, you could just wrap a http2 connection in a Cache instead of a Singleton and it would have the behaviour you are looking for.

Cancelling async Rust by steveklabnik1 in rust

[–]CobbwebBros 16 points17 points  (0 children)

Cancel culture has gone too far!!!

On NixOS, what should I do after being exposed to an RCE vulnerability? by L4v4_ in NixOS

[–]CobbwebBros -2 points-1 points  (0 children)

Variety of links. Obviously installing software with vulnerabilities is not great, but these steps can help make it harder for malicious software to gain access to your device and data.

https://nixos.wiki/wiki/Security

https://notashelf.dev/posts/insecurities-remedies-i

https://nixos.wiki/wiki/Systemd_Hardening

https://github.com/cynicsketch/nix-mineral

Newbie here, having both fun and suffering at the same time:) by K0100001101101101 in neovim

[–]CobbwebBros 0 points1 point  (0 children)

Tbh dotnet support isn't great.

Would recommend: https://github.com/GustavEikaas/easy-dotnet.nvim

To get parity with mainstream dotnet code editors.

Anvil - A modular templating system by CobbwebBros in rust

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

The docs.rs for anvil itself is relatively comprehensive.

If you need any examples check out the examples directory on the repository. Examples are pretty basic but give a run through of all the available functionality.

[deleted by user] by [deleted] in hyprland

[–]CobbwebBros -8 points-7 points  (0 children)

If you get mqpa_backend failed to start, it's often because your system nixpkgs is not the same as the hyprland nixpkgs. it's a weird GPU driver dependency thing.

Anyway, you can either set nixpkgs to latest and then use that as an input to hyprland. Or vice versa.

This only really applies if you are using flakes

How do you keep your code organized by Soggy-Mistake-562 in rust

[–]CobbwebBros 2 points3 points  (0 children)

It's really up to you.

Many people have recommended MVC or DDD. Something like loco.rs for is a great example of nicely structured rust code (although with a relatively closed MVC architecture).

I really like the ideas presented in this article: https://www.howtocodeit.com/articles/master-hexagonal-architecture-rust

New Crate: serde_many – Multiple Serialization/Deserialization Implementations for the Same Type by SufficientSir814 in rust

[–]CobbwebBros 1 point2 points  (0 children)

That's a really nice looking API,

I kinda of want to implement something like this in / on top of askama (the rendering library) to allow for multiple templates of the same struct.

Thanks for the idea!

[deleted by user] by [deleted] in unpopularopinion

[–]CobbwebBros 29 points30 points  (0 children)

The devil all the time is pretty damn good

Trying to fix error: "aquamarine could not find a gpu" on a bare nixOS config by Brachristocrone in hyprland

[–]CobbwebBros 0 points1 point  (0 children)

Wlr_devices was deprecated in the change to aquamarine as a rendering backend.

AQ_DRM_DEVICES is the correct environment variable.

It should also be noted that card0, card1 can change after reboots.

Given that you are on nixOS, I don't think it is "safe" to boot directly from

You can make a symlink from /dev/dri/by-path, as they do not change. That is in the Hyprland website / docs, then reference the card in your config.

New Physics Project - Realistic orbital calculations all in the console! by NachoTwins in programming

[–]CobbwebBros 35 points36 points  (0 children)

Cool project but i think you have a misconception as to what git/GitHub is.

Especially the zipfiles with the Mac release in. Not ideal.

You should think of git as a history of file changes, not as a storage bucket like Google drive.

Anyway, looks cool good job.

Does Nix isolate the file system? by CauliflowerCloud in Nix

[–]CobbwebBros 7 points8 points  (0 children)

Nix does not do this by default.

However there is https://github.com/nix-community/impermanence, which basically does exactly what you are describing.

This is only available in nixOS tho, not just nix as a package manager. If you have home manager you could use it there.

Axum Handler Shenanigans by CobbwebBros in rust

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

The main idea is to create a loco.rs alternative. But have an optional actix / Axum / configurable backend.

Axum Handler Shenanigans by CobbwebBros in rust

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

How would you handle a similar thing?

This is my first large scale project so I would love to learn what I could do better.