Better HN
topnewbestaskshowjobs
Log inSign up

jon-wood

8,664 karma · joined Nov 6, 2012 (14y ago) · 2,460 submissions

Developer, gamer, random tinkerer.

jon@blankpad.net

Submissions

comment 1d ago · link · parent

Typing a reasonably strong SSH key passphrase many times a day is deeply annoying, and the alternative to that is running ssh-add once a session and then anything else running as your user being able to use it with impunity.

Agents like Bitwarden and 1Password are more granular in their authorisation, in 1Password’s case I tap the fingerprint reader on my laptop when a process in a specific terminal first requests SSH key access to authorise that, after which it can use it as much as it likes until the session times out. Doing so however doesn’t mean that some other process spawned by some malware can also use it, that’s going to pop a prompt up again.

comment 1d ago · link · parent

I’m currently trying to get to a point where I don’t keep long lived credentials on disk, and as much as possible keep them out of environment variables as well. I don’t want random processes running as my user account to be able to go sniff out my GitHub, AWS, and so on API tokens. Unfortunately It’s a massive pain to get right at the moment. I particularly don’t want long lived credentials where if a process sends them to a server somewhere they’re valid for ages afterwards.

SSH keys are pretty much solved, I’m using 1Password’s SSH agent similar to what OP is doing with Bitwarden. It works wonderfully.

Various API keys are a pain in the backside. 1Password has some features which kind of maybe help by allowing you to keep credentials in 1Password and then exposing them either as a named pipe that requires auth to read, or via CLI wrappers that inject the credentials at runtime. Both of those still require long lived credentials though.

At some point I’ll probably snap and build something analogous to what 1Password are doing but using OAuth or similar to request short lived, scoped, credentials as needed. I assume there’s approximately six hundred things like this which are targeted at agent use but I’d like something that doesn’t require me to run everything in a sandbox.

comment 2d ago · link · parent

It’s totally doable, as with all things in this industry the bulk of the work is proving you can already do it before someone employs you. Build some toy projects, learn how to use embedded Rust or C, maybe write some blog posts but at the very least have some code on GitHub you can point potential employers at.

You’re also going to have to get comfortable with some level of electronics, because it’s very rare someone wants embedded development done that doesn’t interact with the outside world in some way, and that’s going to require knowing how to drive some IO.

comment 4d ago · link · parent

One small thing that's changed is that Southampton's cruise ship terminal now has shore power for docked ships, which means that they don't have to run their engines while docked just to keep the lights on. Obviously that doesn't help when at sea, but as a local resident I'm grateful for it.

https://www.abports.co.uk/news-and-media/latest-news/2022/sh...

comment 4d ago · link · parent

Use hooks. Prompts are for guiding an agent towards a goal. If you want it to never, ever, do a thing then write some hooks that detect an attempt to use git and refuse the tool use. "Is the `git` executable in this command line" is entirely deterministic and doesn't require throwing an LLM running on 15 GPUs at the problem.

comment 4d ago · link · parent

I think you're probably overthinking things. Split your changeset into a series of commits each of which encapsulates one step along the way to achieving the overall goal of your changeset.

As an example, you might end up with "Refactor to facilitate adding feature X", "Data models for X", "API endpoints for X", "UI for X". Each of those would contain all the code/tests/documentation for each of those steps.

The nice thing about jj is that it makes it really easy to have a bunch of messy commits locally as your bouncing around the place, followed by squashing/splitting things as appropriate. In practice that first refactor commit might only come into existence very late after you've built a bunch of endpoints and done some refactoring along the way.

comment 4d ago · link · parent

I'm not too bothered about the backing store but I really want to see some forges gain support for code review based on jj changes rather than git branches and commits. The Github model absolutely sucks if you're someone who likes to keep a coherent history because if you squash the resolution of PR comments into the parent commits nobody can see what changed between when the comments were made and now.

Basing code review on changes and changesets would mean that the evolution of each change could be seen in isolation, which would also mean that you immediately do away with awkward workarounds like PR stacks.

comment 4d ago · link · parent

As others have said, the head commit is effectively a staging area, it just contains everything that you've done which you can then split/squash/rebase as you see fit. `jj split -i` felt like magic the first time I used it.

Automatic bookmark naming is 100% cursed, I always name them, and also don't subscribe to this weird one commit per-bookmark/PR thing people seem to have adopted. You can use bookmarks just like git branches in practice.

Rebasing is so much nicer than doing the same thing with git because its going to do its best to finish the job, then leave you with a coherent set of conflicts you can clean up one commit at a time. Its still conflict resolution, and it still sucks, but at least you feel less like you're fighting the tooling.

Finally, workspaces exist and work reasonably well. Annoyingly Claude Code specifically has real trouble interacting with them, and last I tried in agent mode refused to accept that a jj workspace is just as valid a mechanism as a git workspace. They may have fixed that by now, its been a while since I tried.

comment 6d ago · link · parent

You're comparing apples and oranges here. Regulated medicines such as vaccines have an established process for reporting adverse events, and the threshold for doing so is incredibly low. If energy drinks were regulated in the same way you'd see a ton more reports because doctors would be submitting one whenever someone comes to them saying their heart rate goes up or they have trouble sleeping when they drink an energy drink.

comment 1w ago · link · parent

As much as it makes me cringe every single time someone says their wifi is down when its the internet connection, or their internet isn't good enough to stream from the Playstation downstairs to their phone upstairs, for the majority of people everything being one bundle is probably a net benefit because they just don't want to think about things at the level of granularity required.

What I would like to see is consumer hardware making better distinctions here, and providing more (actionable) detail on what the problem is. "Oops, there's been a problem" and messages of the like really don't help people in knowing things like running an ethernet cable upstairs would help them out.

I'd also absolutely love to see ISPs pushing a reset of the default SSID and passphrase on their all-in-one devices when people migrate from one provider to another, because its absolutely ridiculous the number of people who end up going round changing every device in their home from one impenetrable IspName-AE32C SSID to another when they could instead have changed two settings on the AP instead.

comment 1w ago · link · parent

It depends what you mean by scaling. Mosquitto is impressively performant so you can go a long way just running a single instance on a server with a decent chunk of RAM and a reasonable CPU.

HA is a more difficult thing to solve, I believe Cedalo sell a version with HA support which may solve all this but the open source version doesn’t really have any good answers. The usual approach seems to be setting up topic replication between all your nodes and putting a load balancer in front.

Thankfully the system I’m responsible for can tolerate outages so we just work on the basis that we have regular snapshots and can stand up a new instance if the one handling traffic fails, with the fault tolerance sitting on the client side with messages being queued for transmission when the connection comes back.

comment 1w ago · link · parent

This is all getting quite silly but really large sites with critical power needs (hospitals, factories, data centres, etc) will sometimes have two independent grid supplies running in from separate substations, preferably going as far back down the chain as possible before hitting a single point of failure. They'll also have UPS and diesel generators able to kick in and keep things running if somehow they entirely lose grid power. Its all totally doable, but as you say for most people going to the local library or a coffee shop is a perfectly fine fallback plan.

comment 1w ago · link · parent

I just had a very basic poke at `fm` which runs models locally it was at least able to spit out fizzbuzz in both Python and Rust impressively fast. Whether its any good wrapped in a coding harness remains to be seen.

comment 1w ago · link · parent

This was the first time I've encountered App Attest and it seems like a pretty solid solution to the problem of having to trust that a request from someone else's device is in fact originating from your own app rather than an extracted key of some form.

comment 1w ago · link · parent

Set the following in your SSH config, which will cause SSH to establish a single control channel when it first opens a connection to a host and maintain it until there's been 10 minutes of inactivity. That way the first connection requires auth for your SSH agent but it can then be reused for things like SFTP channels or opening another terminal.

  Host \*
    controlMaster auto
    controlPath ~/.ssh/master-%r@%n:%p
    controlPersist 10m

comment 1w ago · link · parent

There’s a middle ground between not writing any sort of design documentation at all and insisting that every little detail is nailed down in a Word document and carefully laid out on a Gantt chart before a single line of of code can be written.

Sometimes jumping straight in and seeing what happens is the right path, other times the changes you’re making will impact a bunch of systems and teams so coming to some agreement on what’s being done is valuable.

comment 1w ago · link · parent

I’m glad someone called that out. No one person being able to get a change from their laptop to production without review is a baseline requirement of a lot of certifications, because while I trust the other people on my team the security team at a client’s client have no reason to.

Self review is absolutely a thing you can get away with in the early days of a startup, and at some point will probably be necessary because you’ve only got one developer, but if you have enterprise clients just turning off review requirements is a fast track to losing those clients.

comment 1w ago · link · parent

They're not full, people just aren't willing to increase density so the only option is an ever larger sprawl of houses rather than apartment blocks.

comment 1w ago · link · parent

A leak sensor is the simplest home automation sensor possible. Its literally just a bare wire connected to ground, another connecting to a digital IO. You put the two bare wires on the floor a little distance apart and write some code to fire off an alert if the IO ever reports being connected, because if it is that means something conductive is sitting between the two wires.

comment 1w ago · link · parent

Two thoughts on this:

1. The Secure Enclave being inaccessible when you're not present is a feature, not a bug. If you need to run headless then its not the correct solution to your problem and you'll have to find another.

2. You don't need an SSH agent proxy, you can use a `match` block in your `ssh_config` with something like `host * exec "test -z $SSH_TTY` to check whether you're operating over an SSH connection and select Secretive's SSH agent if you're using the machine locally.

comment 2w ago · link · parent

I find it very amusing that all the homelab people are so endlessly surprised that they can run Linux software on a Linux device just because its got a slightly different form factor, or less RAM than other Linux devices. Other than the form factor this one isn't even that exotic - its an ARM Cortex device running Debian, and surprise surprise, it can run anything another Debian device could.

comment 2w ago · link · parent

What a bleak future. People can’t have any protection for things they pour thousands of hours of work into because the needs of Anthropic have to take precedence.

In the case of NFSU2, a game which EA refuse to make available anywhere, I’m fine with people throwing a free version on the internet but let’s not throw the baby out with the bathwater here. Copyright is a part of what allows small indie studios making fun things possible because it means it’s viable to sell those things and pay people’s salaries. Maybe if along with the machine god and death of copyright we also get some form of wealth distribution which means people don’t need to fund food and shelter via their work I’ll get on board but I’m not holding my breath here.

comment 2w ago · link · parent

This game ran smoothly on a PlayStation 2, which is massively less performant than even the cheapest phones these days.

comment 2w ago · link · parent

Despite rumours to the contrary not everything is best interacted with via an LLM. If you want to go to that degree then have at it, all you need is an old school TTY on a serial cable, but the rest of us quite like having UIs designed to fulfil a purpose rather than a soup of Claudeish prose describing a progress bar.

comment 2w ago · link · parent

If only OpenAI had some sort of cluster of thinking machines they could apply to generating such a report.

comment 2w ago · link · parent

Their announcement literally says that Conductor Local will be supported into 2027, which is 2 months away. Now is not the time to be jumping on board with it.

comment 2w ago · link · parent

I suspect you're being intentionally obtuse here but the PHP Foundation isn't where PHP gets written. Zend are the closest we have to the PHP company I guess, and they have approximately 100 employees, then you've got however many people are employed either as contractors or by other companies with a primary focus of working on PHP itself.

comment 3w ago · link · parent

Somewhat off topic now, but Nolan is fairly famous for being intricately involved with every aspect of the films he directs. He's constantly behind a camera checking out what shots are going to look like, pushing the limits of where you can put an IMAX camera, and coordinating with set builders to do ridiculous stuff like building a reproduction harbour jetty.

comment 3w ago · link · parent

> It seems to work well, mainly hurts when the problems are invisible, so security, backups, breaking migrations, perf, maintenance over time (language / runtime updates, dep updates, server updates etc). All the stuff that hurts if you have never been responsible for the uptime of something before. Not knowing that software is never "done". But junior devs trip on those exact same things.

If we continue from your "water comes from the tap" example this situation feels like someone who has no experience of plumbing deciding they're going to replace their bathroom without bothering to find out how any of it works. They'll possibly end up with a bathroom that superficially works but they're also liable to find problems down the line with leaks, things not draining properly, or water pressure issues.

Some of the people writing software purely via LLMs are even turning this into a business, which I guess would be analogous to deciding you're going to run sewage treatment for a small city without understanding anything about how that works. It'll mainly hurt when the problems are invisible, so food poisoning, or inlets backing up and overflowing into a nearby river.

comment 3w ago · link · parent

While I applaud the sentiment here how many people work for an organisation that would be ok giving full Slack access to something like this, especially given the complete lack of information on how that data is being processed beyond an incredibly vague mention of Cloudflare in the privacy policy?
12345
82