HNHacker News
TopNewBestAskShowJobs

angrygoat

3,597 karma · joined September 18, 2014

https://grahame.dev/

[ my public key: https://keybase.io/grahame; my proof: https://keybase.io/grahame/sigs/6dBCi0Tz9tPB9Ol-1vfm3GzBKcerqzjiH57YFG_hpOs ]

submissionscomments
angrygoat··on WordPress security plugin Hide My WP addresses SQL injection, deactivation flaws
SQL injection draws attention to the fact that almost all web applications run as root, in regards to the most important asset: the data.

It’s odd that this hasn’t got more attention. It should be easier to write backends that tie data access more closely to user credentials without the backend trying to enforce that itself. Is there anything out there that makes this easy to do?

angrygoat··on Bayesian Optimization Book
Another high quality, freely available read on Bayesian data analysis is this by John K. Kruschke: https://www.r-5.org/files/books/computers/algo-list/statisti...
angrygoat··on Extreme Ironing
A fairly good example, from the RAF in the Falkland Islands https://youtu.be/xyA9hpfBsB4?t=149
angrygoat··on Uber prices seem to increase when phone battery is low
I struggle to see a legitimate reason for an app to be able to access battery level. It's pretty unlikely that app is going to change behaviour to preserve battery life – that's probably better handled by the OS slowing things down. Better to simply deny the app this information.
angrygoat··on The unreasonable effectiveness of just showing up everyday
I'm in formation for ordained ministry in a Christian tradition, and something that's really emphasised is the need to say the 'Daily office' – two short services at the beginning and end of the day. Ideally with other people, but in the end you often being alone.

It felt like busy work at the start, but it's a surprisingly powerful way of focussing the day upon a particular intention – in my case, putting everything I do in the day into the context of my religious tradition.

Personally I've always struggled with habits and routine, but I've now got quite a powerful experience of what persistence can do, with a fairly small commitment in time.

angrygoat··on PostGIS at 20, the Beginning
It has also taken a whole subfield, GIS, which was seen as difficult, expensive, and specialised, and made it possible to easily include geospatial functions in all sorts of projects.
angrygoat··on M1racles: An Apple M1 covert channel vulnerability
Yes, exactly. Multics actually tried, here's a memo from 1974 discussing the issue: https://multicians.org/mtbs/mtb696.html

Paged shared libraries, signalling by ramping up and down CPU usage, there are an enormous number of possible covert channels.

angrygoat··on Dropbox to cut 11% of its global workforce
> and it's an increasingly difficult case to make for a home user, as all of the alternatives are pretty good.

Yeah, this. I've found myself drifting over to OneDrive for personal use; it's pretty good at least on macOS, and Dropbox is just one-more-thing running all of the time.

But also, almost every time I log into their service I get popups bugging me to upgrade, it happened just now. I pay ~ $100/yr at the moment and I guess I've been too lazy to eliminate that expense by moving everything to one provider. Today might be the day to change that.

angrygoat··on Debian discusses vendoring again
A snippet of a quote from Pirate Praveen in the article.

> All the current trends are making it easy for developers to ship code directly to users. Which encourages more isolation instead of collaboration between projects.

This is where I would respectfully disagree. As a dev, packaged libraries from the system are often fine – until I hit a snag, and need to work with the devs from another project to work out a fix. With cargo/node/yarn/poetry/gopkg/... I can send a PR to another project, get that merged, and vendor in the fix while all of that is happening.

If I can't do that, I'm left with hacky workarounds, as upstreaming a fix and then waiting up to 12 months (if I'm on a six-month release tempo OS) for the fix to be available to me is just not practical.

Being able to work on a quick turnaround with dependencies to fix stuff is one of the huge wins with modern build tools.

angrygoat··on Tech Preview of Docker Desktop for M1
The battery impact of having Docker running with a few containers seems greatly decreased on Apple Silicon. I used to be reluctant on my Intel MBP to use Docker if I was out and about - working in a cafe between meetings for example - because my battery life would shrink immensely. That doesn't seem to apply in the same way on m1 (running ARM64 containers) which is a huge win.
angrygoat··on Computer input latency from 1977-2017 (2017)
This reminds me of graphing calculators in the late 90s when I was at school. I initially had a HP, but it took what felt like 500ms to respond when I pressed a key. I switched to a TI-83 and it was chalk and cheese - instant response; you could even write programs in assembly. There was a small cottage industry of traded programs for it.
angrygoat··on Docker fails to launch on Apple Silicon
I guess the flip side is that, hopefully, the Docker ecosystem will start getting a lot better at multi-arch, at least for x86-64 and ARM. I just ordered an M1 MBP and I'll be quite happy to start thwacking bugs in images and upstreaming the fixes.
angrygoat··on Why are some bilingual people dyslexic in English but not their other language?
That's a funny sketch, but there is literally a standardised minimal set of English just to deal with this potential problem https://en.wikipedia.org/wiki/Aviation_English
angrygoat··on We spent two weeks hunting an NFS bug in the Linux kernel (2018)
I used to work with a fairly large HPC environment which had a large number of NFS attached disks. One of the issues we ran into was unlink() on ext4; it could take quite a long time for large (TB..) files on busy servers. NFS would eventually timeout the request, the client would retry the operation, and get ENOENT back. It turned out that while ext4 blocked until it'd finished every detail of unlink(), the name was immediately removed from the filesystem namespace.

NFS is in the category of works well enough, but the edge cases are a mile wide!

angrygoat··on rg3d: Rust 3D game engine with an FPS demo game and scene editor
Video of the demonstration FPS here: https://www.youtube.com/watch?v=UDn8ymyXPcI
angrygoat··on Raspberry Pi as a local server for self hosting applications
I've got IPv6 from my ISP - I gave my pi a static v6 IP, set up cloudflare and told it that v6 IP, and cloudflare handles making it available to the v4 internet. Has worked pretty well so far, just for tinkering stuff, nothing 'production'.
angrygoat··on Ask HN: Google Drive/Office 365 alternatives
Ah, thanks – it sounds like it's better than when I was bitten by this (three or four years ago.)
angrygoat··on Ask HN: Google Drive/Office 365 alternatives
The biggest downside with Google's offering (I don't know about Zoho) is that there is no way to easily export all of your documents to an array of bytes that can be saved in another system – also known as a file.

Seriously – if you use Docs or Sheets and want to move off, you've either got to manually export everything to an interchangeable format, or just give up and leave a bunch of stuff behind.

This is a particular pain when shifting between Google accounts, or closing an account down (for example, at the end of a job.)

angrygoat··on Just because it's there doesn't mean you should use it
Someone once handed me one of these when I asked for an extension cord, and I didn't notice. I plugged one end of it in, reached around for the other, and copped 240V AC. Luckily the house had an RCD (mandatory here in Australia), so I just ended up with a very sore arm. I was in a basement alone so it could have been very bad.

Male-to-male cables absolutely should not be made up.

Apparently some people make them for plugging caravans in to external power as a sort of hack.

angrygoat··on Show HN: My GitHub Readme Is Interactive
Commit two hours ago: "Implement rate limit" :-)
angrygoat··on iPhone audio detectable with AM radio
Excellent that there is accessibility support, but at what range can people pick my calls up – especially with a directional antenna?
angrygoat··on αcτµαlly pδrταblε εxεcµταblε
Interesting point about the x86-64 patents expiring and the possibility of third parties making chips for that instruction set. Is it just so big and clunky that the energy is with ARM / RISC-V?
angrygoat··on Everything old is new again: binary security of WebAssembly
True, but there's not much point mining for crypto if the WASM module's gateway to the DOM/JS/... doesn't let you export the result.
angrygoat··on Everything old is new again: binary security of WebAssembly
WASM and the surrounding Javascript model offer a lot of opportunities to minimise the damage if something gets exploited.

Say you are running OCR via some C library you have compiled to WASM: wrap that functionality up with an interface, compile that to WASM, and only pass it the image data you're happy for it to see. If someone exploits that binary with a malicious image, there's nothing inside the container except the code and the image itself, so hopefully the damage is contained.

If folks start compiling large amounts of their functionality into one single chunk of WASM, which has a complex interface with the DOM/JS, then I can see how these exploits could become an issue.

angrygoat··on IPv4, IPv6, and a sudden change in attitude
That makes sense - thanks for that!
angrygoat··on IPv4, IPv6, and a sudden change in attitude
The 'noise' on this plot of Google IPv6 adoption is interesting: https://www.google.com/intl/en/ipv6/statistics.html

It looks quite periodic when you zoom in: at first I thought it might be different adoption rates in different timezones, but there's only one sample available per day so that doesn't explain it. Anyone know what might be going on?

angrygoat··on Certificate Transparency: a bird's-eye view
It's interesting that CT effectively publishes all of your HTTPS endpoints. Using your example, it's possible to see a bunch of twitter hosts it might be hard to find otherwise. This effect of CT has been surprisingly uncontroversial, in contrast to DNSSEC where enumeration concerns have probably delayed adoption:

https://www.cloudflare.com/dns/dnssec/dnssec-complexities-an...

I suppose you can get around enumeration concerns with CT by using a wildcard cert. It's always seemed odd to me to worry about information in a public database like DNS being retrievable on bulk anyway - that approach is just security by obscurity.

angrygoat··on Rust 1.45
This rather niche fixing of unsafe behaviour is excellent: https://blog.rust-lang.org/2020/07/16/Rust-1.45.0.html#fixin...

I spent a few years as a scientific programmer and this is exactly the sort of thing that just bites you on the behind in C/C++/Fortran: the undefined behaviour can actually manifest as noise in your output, or just really hard to track down, intermittent problems. A big win to get rid of it.

angrygoat··on Ask HN: How do you learn new libraries without much documentation?
xadoc's last point is really important. The missing documentation is clearly impacting your productivity: you absolutely should raise this as in issue with more senior devs or management. There are a number of ways to respond, and they should be pleased that you have flagged the issue early.
angrygoat··on Moving from TypeScript to Rust / WebAssembly
I'll see your legacy C/C++ and raise you legacy Fortran 77 :)
← PreviousPage 3 of 8Next →