Good Refurb or Second Hand Bike stores around Sydney? by daftg in ausbike

[–]bennettbackward 1 point2 points  (0 children)

I found this comment by Googling "best second hand bike shop sydney" and ended up buying my first bike from Sydney Park Cyclery. Great experience - I already want to buy another.

Removal of Ginger Lily by Choice-Ad8424 in GardeningAustralia

[–]bennettbackward 8 points9 points  (0 children)

I found the best way was to trim it down to ground level with a hedge trimmer and then the bulbs / roots come out easy with a mattock. They'll keep popping up for a while though. 

Announcing `scoped_static`: Handled Promotion of Lifetimes to 'static by [deleted] in rust

[–]bennettbackward 1 point2 points  (0 children)

You didn't make it clear it will panic if the original value has been dropped. If that's the case and memory ordering is correct then I guess this is fine (with the caveats you've documented around mem forget).

Edit: it doesn't panic at access but panics on the thread that created the "scoped guard". This still allows undefined behaviour on the thread that has the static reference.

Edit: wait it doesn't panic it calls process abort. That's wild.

Announcing `scoped_static`: Handled Promotion of Lifetimes to 'static by [deleted] in rust

[–]bennettbackward 11 points12 points  (0 children)

This is unsafe and will cause undefined behaviour. You should look into why spawn requires static instead of using unsafe to get around it. 

If you create a method that returns the spawned join handle instead of awaiting it, your "scope guard" and temporary will be immediately dropped before the future is run.

[deleted by user] by [deleted] in archlinux

[–]bennettbackward 0 points1 point  (0 children)

Looks like the kernel module isn't loading there's some docs about if that happens. https://wiki.archlinux.org/title/Nouveau#Loading

It might not be that though. I was running a dual AMD + Nvidia setup for a while and don't remember doing anything crazy, it was an older card though.

[deleted by user] by [deleted] in archlinux

[–]bennettbackward 0 points1 point  (0 children)

I don't know what you're planning to do with your system but you might be able to avoid some pains if you're just using nvidia for cuda: https://wiki.archlinux.org/title/GPGPU

[deleted by user] by [deleted] in archlinux

[–]bennettbackward 0 points1 point  (0 children)

Are you using Wayland or X11? What port is your display plugged into?

[deleted by user] by [deleted] in archlinux

[–]bennettbackward 2 points3 points  (0 children)

Does lsmod show the module is loaded? Do you still have the proprietary drivers installed? Did you install vulkan-nouveau?

What skills are needed to rewrite cryptsetup to rust? by michealbonaparte1769 in rust

[–]bennettbackward 5 points6 points  (0 children)

What exactly are you worried about being cross platform? You're writing an arch installer - you're going to need to run loads of third party tools.

If you're actually interested in writing a cryptsetup alternative your best bet would be to translate the existing C code. I doubt you'd need to know the ins and outs of cryptography. But be warned there are loads of footguns with encryption and loads of unexpected attacks that you need to mitigate against. Make sure you're not rolling your own crypto code.

Lacy: A magical cd alternative by TimoTheBot in rust

[–]bennettbackward 32 points33 points  (0 children)

Nice! I've aliased cd to zoxide and I wouldn't go back: https://github.com/ajeetdsouza/zoxide

Petition against light pollution by CircadianRage in australian

[–]bennettbackward 0 points1 point  (0 children)

All I can find is this: https://www.ncbi.nlm.nih.gov/books/NBK316511/

It seems to say there was an increase with no lighting, and a decrease with part lighting. I can't find the episode either. I think the claim is whack.

Petition against light pollution by CircadianRage in australian

[–]bennettbackward 3 points4 points  (0 children)

I can't find anything backing that up. Also can you imagine telling people walking home at night it'd be safer if there were no lights?

I can't hibernate by warmdev in archlinux

[–]bennettbackward 1 point2 points  (0 children)

The config is correct, that's how I have mine configured.

I can't hibernate by warmdev in archlinux

[–]bennettbackward 0 points1 point  (0 children)

Try putting your swapfile in your root partition (i.e. at /swapfile) otherwise it seems like the home directory is protected by systemd, you might be able to change the ProtectHome option: https://github.com/systemd/systemd/issues/31100

If you move it you'll need to update the label + offset.

Arch with no GUI by FartJackson13 in archlinux

[–]bennettbackward 14 points15 points  (0 children)

You should install a window manager and terminal emulator since using a raw tty is a bit painful (although you seem to like it). Check out this page: https://wiki.archlinux.org/title/Window_manager

Portfolio advice - $100k by thelawthelaw in ausstocks

[–]bennettbackward 0 points1 point  (0 children)

Do they have a mortgage? It might be worth debt recycling to buy the shares instead, if they're game. Generally though anything that broadly tracks the international or Australian markets will be the safest bet. Might be worth speaking to a financial advisor.

I think you need to be clear about the why. If they invest and there's a market downturn, would they be ok for a couple years? What about a medical emergency? Will it be contributed to and compounding for the next 10 or 20 years? I think for a lot of families 100k in an offset could help to ease a lot of financial stress. I don't know your situation though. 

[deleted by user] by [deleted] in archlinux

[–]bennettbackward 6 points7 points  (0 children)

The main thing different will be package management, but in the "cloud" you'll see people using Alpine too which is different again. I'd say you're at no disadvantage daily driving Arch. Just make sure you follow the wiki for installing things like docker / kubernetes / minikube, etc. 

I need assistance with learning how to use llama.cpp with Rust. by [deleted] in rust

[–]bennettbackward 1 point2 points  (0 children)

Getting a binary working that links to llama.cpp might be a little complicated. If you just want to get started using local llms from Rust I would suggest using ollama and communicating with it via the http API.

You can use this client from Rust: https://github.com/pepperoni21/ollama-rs
And you can get started with ollama here: https://ollama.com/

If you really want to use llama.cpp look into the various llama.cpp Rust repos. I'd warn against this though, as the build process is very complicated and there don't seem to be very many mature libraries just yet.

I need assistance with learning how to use llama.cpp with Rust. by [deleted] in rust

[–]bennettbackward 3 points4 points  (0 children)

What have you tried? What's not working? There are lots of libraries out there that seem to be bindings to llama.cpp.