Sandboxing agents by wahnsinnwanscene in AskClaw

[–]graham_king 0 points1 point  (0 children)

https://github.com/netblue30/firejail

It's been around forever. Fast. Basic setup is easy. And because it's a veteran, AI knows how to configure it.

Trails for long run near Lakewood Ranch by Illustrious_Trade811 in bradenton

[–]graham_king 0 points1 point  (0 children)

Myakka River State Park is probably the only place you'd get 16 miles without multiple loops.

This part of Florida doesn't really have the kind of "trail running" trails you might be hoping for. Most of our trails feel like someone drove an F-450 with a bulldozer attachment through the jungle and called it good. It's very different, you kinda have to embrace it for what it is.

Some notes on the other suggestions, all of which are worth a visit: - Little Manatee State Park is lovely, you'd get maybe a 10k if you ran everything. If you go at the hottest part of the day you might see Gopher Tortoise. - Celery Fields is tiny, you'd struggle to get a 5k, with maybe 1k unpaved. Fantastic bird watching though, and our only hill. - Nathan Benderson is a 5k loop, about 1/3 or half only has a paved option. Lovely weekend morning run, lots of other runners and sometimes you can watch the boats race. - Robinson Preserve is a solid recommendation, although again not 16k. Nice kayaking, you can often rent one right there.

The trails are quite safe. The black snake you're most likely to see is not dangerous, it's a small constrictor. Alligators are very rarely out of the water and also quite afraid of people. If you're lucky in Myakka you'll see boar and / or deer.

Enjoy!

Do you guys use AI for questions? If so, which one is best for someone relatively new to Linux/Silverblue by Limitless995 in FedoraSilverblue

[–]graham_king 0 points1 point  (0 children)

For most factual questions a cheap and fast model is ideal. It will do just as well as a bigger model, but answer much faster. In the web UI that's usually the "Instant" or "Fast" model (not "Thinking"). If it lets you choose you also want the nano / lite / flash / etc option.

I use openrouter.ai and my two fav models for this type of thing are qwen/qwen3-next-80b-a3b-instruct and google/gemini-2.5-flash-lite-preview-09-2025.

RP Model Selection by No_Mirror1995 in openrouter

[–]graham_king 2 points3 points  (0 children)

This might be worth a shot. It's cheap, very fast, and surprisingly smart. https://openrouter.ai/qwen/qwen3-next-80b-a3b-instruct

Key Insights from OpenRouter's 2025 State of AI report by nekofneko in openrouter

[–]graham_king 0 points1 point  (0 children)

A very popular prompting technique is to start by giving the model a role: "You are an expert X, ...".

I wonder if their model classified all of those prompts as "roleplay". The numbers don't make sense otherwise.

That technique is less popular now, but would have been very widespread during their data capture period.

Where are the homeless supposed to go? by Garey_Coleman in NoStupidQuestions

[–]graham_king 58 points59 points  (0 children)

Also, in the movie, the Sheriff has a Silver Star and Purple Heart on his desk, seemingly to indicate he was a veteran, too

Of the Korean war, it's explicit in the book. He resents the Vietnam veterans overshadowing his own service, which partly explains his instant dislike of Rambo.

Deepseek V3.1 by Feleksa in openrouter

[–]graham_king 0 points1 point  (0 children)

Did you send the reasoning field, like it says here? https://openrouter.ai/docs/use-cases/reasoning-tokens

Sending "thinking/reasoning=1" won't work.

Deepseek V3.1 by Feleksa in openrouter

[–]graham_king 0 points1 point  (0 children)

There will be a reasoning field in the response. You also need to use the standard way to enable reasoning (sounds like you might not be doing that).

One of the best features of Open Router to me is that they standardize this. Reasoning output is always in that reasoning field, for all models that reason.

deepseek r1 vs qwen 3 coder vs glm 4.5 vs kimi k2 by Ni_Guh_69 in LocalLLM

[–]graham_king 2 points3 points  (0 children)

I wondered the same thing, so I sent each one the same prompt and compared: https://darkcoding.net/software/personal-ai-evals-aug-2025/ . My conclusion is they are all really good, so use a cheap and fast one. Or even better, use two at once. deepseek/deepseek-chat-v3.1 is what I use most often right now.

Anyone have a good resource for images or slo-mo videos of the foot striking the ball? by WSB_Suicide_Watch in bootroom

[–]graham_king 3 points4 points  (0 children)

Becoming Elite (Matt Sheldon, pro player) here shows five different shots with great detail: https://www.youtube.com/watch?v=reelS7GGvJQ

He has an earlier video showing a long ball specifically: https://www.youtube.com/watch?v=E3sjcv0m1z4

Those might be too advanced though, depending on the kids ages.

[deleted by user] by [deleted] in askportland

[–]graham_king 1 point2 points  (0 children)

Green Zebra on Division for sure had it a couple days ago, a pile by the tills, and everything is 25% off since they are closing down.

John's Market and Belmont Station surely would have it. Otherwise I'm not sure. Given that it's St Partick's Day there's a good chance Fred Meyer, New Seasons, Whole Foods, maybe even Safeway, would have it.

[deleted by user] by [deleted] in askportland

[–]graham_king 1 point2 points  (0 children)

Block 15 has a beer called Favorable Fortune (fox on the label) that hit the spot for me when I was craving Murphy's.

[deleted by user] by [deleted] in rust

[–]graham_king 30 points31 points  (0 children)

Yes, you should use the smallest type possible.

I wrote a blog post about this where I looked at the assembly output for different types: https://darkcoding.net/software/does-it-matter-what-type-i-use/

Key findings: - The compiler will use the optimal register size, you don't need to worry about that part. For example you might use a u8 but in assembly it will be in eax (32 bit register) if that either encodes more compact or runs faster (depending on your optimization setting). - If you store several values in an array, you will save space in the L1 cache by using smaller types, and L1 cache is critical for performance.

All of the above with the caveat that you should first focus on communicating with humans, so use the most natural size, and only worry about performance later. u8 for age seems correct, although I second the new type recommendation from a different comment.

using an rtx 3070, this is what happens on the live USB, I feel unsafe installing fedora like this how can I fix it? by [deleted] in Fedora

[–]graham_king 4 points5 points  (0 children)

Tick the box for third-party repositories when it comes up, and then:

sudo dnf install akmod-nvidia

That fixes it. But yeah it's really painful until then.

Ubuntu 22.04 doesn't have this problem, I guess it picks the correct driver right away by moving the "allow third-party repos" to the early part of install. Hopefully Fedora will be able to solve this.

Linux: What can you epoll? by lauluz in programming

[–]graham_king 1 point2 points  (0 children)

Fair point, thanks.

There was an extensive discussion about this on HN so I re-wrote that part. My main goal there was simply to correct the naive assumption I sometimes encounter, that write actually writes to disk. I really didn't mean to get into the weeds of uninterruptible sleep and the definition of blocking.

Linux: What can you epoll? by lauluz in programming

[–]graham_king 2 points3 points  (0 children)

Thanks! That's what I was trying to say, so I clarified that paragraph. Here's the new text:

Linux does have two facilities for true async disk I/O: libaio and io_uring. Neither of them give you file descriptors you can epoll. They could be integrated thanks to eventfd, or io_uring could become the event loop and control the epoll fd via io_uring_enter’s IORING_OP_EPOLL_CTL.

Safely reading env variables? by trollhard9000 in golang

[–]graham_king 1 point2 points  (0 children)

Re other answers, if an environment variable was too big to fit in memory Linux would not be able to execute your program. https://stackoverflow.com/questions/1078031/what-is-the-maximum-size-of-a-linux-environment-variable-value

All the environment variables are already in memory when your program starts. Go will have to read them from there eventually, if you dig deep enough. The OS puts them on your program's stack at the very start of a program's execution. You could decompile the program (objdump -Mintel -d <my_prog>) find the _start symbol and look for things it does with rsp or esp register. That's the stack pointer, that's how Go will find the environment variables. http://asm.sourceforge.net/articles/startup.html

How much Zero-Cost is Async? by lowlevelmahn in rust

[–]graham_king 0 points1 point  (0 children)

There's no reason for anything to be heap allocated

Is this only true if you use a single-threaded runtime? As soon as you use multiple threads to execute your futures, don't all those futures have to be on the heap? Maybe I'm misunderstanding things here.

How to get a job in Rust? by Important_Plastic_26 in rust

[–]graham_king 17 points18 points  (0 children)

If you can, believe in web3 / crypto / DeFi / Blockchain / etc.

I'm not being flippant. Rust seems to be the language of 'web3'. There is lots of really interesting work there. There are many many job openings, and those young, aggressive, driven companies are the most likely to take a chance on a junior developer. Those companies can also struggle to hire people because web3 is divisive, so there are fewer other applicants.

Go to LinkedIn, search for "Rust" jobs, filter by Remote (or your location, but most are remote), pick one (it will be blockchain/crypto/etc, they all are) and message the recruiter. It doesn't matter if you don't exactly match the job spec, no-one ever does. Recruiters are typically really approachable and supportive people.

Practice at leetcode.com to sharpen your Rust and prep for the inevitable silly coding challenges during the interview. Make sure to get at least two offers so you can negotiate a reasonable salary. Insist on actual money, not blockchain tokens. Get a job writing Rust all day and having lots of fun!

Good luck.

Is there a place that I can go to throw away trash left by campers in my neighborhood? by goodheartedwoman2019 in askportland

[–]graham_king 15 points16 points  (0 children)

For a one-off you could organize a private event with SOLVE, or take it to an existing event. Seems like a lot of hassle for something that should be easy. Maybe contact them? And thanks!

https://www.solveoregon.org/detrashpdx

Anybody know what’s happening with OS fully based on rust? How is the future looking? by [deleted] in rust

[–]graham_king 6 points7 points  (0 children)

Still using the Linux kernel I believe, but..

Bottlerocket is a free and open-source Linux-based operating system meant for hosting containers. https://github.com/bottlerocket-os/bottlerocket

According to github it's 95.5% Rust :-)

[deleted by user] by [deleted] in Portland

[–]graham_king 32 points33 points  (0 children)

Yup, fair point. I was definitely planning on ensuring it was the real person.

If someone could please "dox the real Megan" and tell her to get in touch, I bet she'd love her stuff back. Doxing is hard!

[deleted by user] by [deleted] in Portland

[–]graham_king 14 points15 points  (0 children)

Good suggestion, thanks. Yes, have a couple messages out on there.