HNHacker News
TopNewBestAskShowJobs

toomanybeersies

10,290 karma · joined December 22, 2015

submissionscomments
toomanybeersies··on The case against masks at school
I would've said it was more a case of Goodhart's law:

> When a metric becomes a target, it ceases to be a good metric

The public health equivalent of the broken window fallacy would be maximising the spread of disease in order to boost the medical industry.

toomanybeersies··on APKTool: A tool for reverse engineering Android APK files
At one of my former jobs, I was working on an automated testing product that could MITM requests (for testing analytics, etc.)

Android has this really annoying feature where apps don't trust self-signed CA certs (but Chrome & webviews do, strangely). You either need to need to add it to the app's network_security_config.xml, or root the device and add it as a system CA.

I looked into using apktool as part of a pipeline to inject our self-signed CA as a custom trust anchor when customers uploaded their APK for testing. But in the end, we found it was easier and simpler to just add a the cert as a system CA on a custom rooted AVD.

That whole project really made me appreciate that no matter how shit I feel web dev is some days, at least I'm not an android developer.

toomanybeersies··on More than 1M fewer students are in college, the lowest numbers in 50 years
At that point, you may as well just get a plumber delivered with the tools too.
toomanybeersies··on More than 1M fewer students are in college, the lowest numbers in 50 years
Diagnose and fix things with what? Most people don't own plumbing tools.
toomanybeersies··on Using Git commit message templates to write better commit messages
The other day I tried doing a git blame on a line of code. Since we use squash + merge for PRs, it pointed to a 1000 line commit with a message similar to:

  Refactor widget (#1234)
  
  * wip
  * wip
  * wip
  * fixes
  * pr review
I opened the old PR on Github, and all it contained was a link to the Trello card for the task, where I finally found some context and description for the changes.

It's ridiculous.

toomanybeersies··on Using Git commit message templates to write better commit messages
> Implement automation to flag and block/reject bad commit messages.

They'll just use `git commit -n` to skip the pre-commit hook.

And if it's verified in CI (e.g. with Danger), someone will just create a script to automate writing commit messages that pass the good commit message test.

toomanybeersies··on Using Git commit message templates to write better commit messages
> Plus what if you want to just save off your current status and log off for the day

Strictly speaking, that's what git stash [1] is for. Not so ideal if you want to push your WIP changes to Github though.

[1] https://git-scm.com/docs/git-stash

toomanybeersies··on Strengthening our efforts against the spread of non-consensual intimate images
There's also cold spray additive manufacturing, a 3d printing technique that involves spraying high velocity metal powder to build layers: https://en.wikipedia.org/wiki/Cold_spray_additive_manufactur...
toomanybeersies··on Toyota to remanufacture cars up to three times in UK
In my (Australian) experience, the three main reasons cars get scrapped are engine failures, transmission problems, and kangaroos.

Rust is much less of a problem for anything manufactured this century. Suspension is pretty cheap to fix, it cost me <$2000 to get my entire front suspension replaced a while back.

toomanybeersies··on France opens terror investigation after Dakar rally vehicle is hit by blast
I wouldn't take Reddit or Twitter posts as anything close to representing the vox pop.
toomanybeersies··on Drug ring hid $1B worth of coke on a single ship
Tobacco smuggling is big business in Australia. Mostly because a regular pack of cigarettes costs $40 these days, compared to $15 for a pack of bootlegged Indonesian Marlboros.

For the 2020 financial year, Australia imported 11,064 tonnes of legally cleared (taxed) tobacco. The government estimates there was 770 tonnes of untaxed tobacco successfully grown/imported, or 6.2% of all tobacco smoked in Australia. [1]

Recently a guy was handed almost 2 years of house arrest for importing 10 million cigarettes [2], which is roughly 10 tonnes, give or take. There's plenty more cases where entire containers full of cigarettes have been seized.

[1] https://www.ato.gov.au/About-ATO/Research-and-statistics/In-...

[2] https://www.acic.gov.au/media-centre/media-releases-and-stat...

toomanybeersies··on Drug ring hid $1B worth of coke on a single ship
Alcohol and tobacco are legal, but you'll still land in prison if you get caught smuggling 20 tonnes of either.
toomanybeersies··on Is It Time for the JavaScript Temporal API?
I wonder how much of that has to do with the fact that ISO8601 was relatively newer back then (published 1988), and date formats were much less standardised 20+ years ago.

For instance, RFC 1945 (HTTP 1.0) specifies three acceptable date formats. Add ISO dates, and now you're writing software that needs to handle 4 different formats. Easier to just use a heuristic parser that's capable of accepting HTTP, email, Usenet, and ISO timestamps.

Fortunately, these days it's generally considered a bad idea to use anything but ISO timestamps, with the exception of a former colleague who tried arguing that DD/MM/YYYY was an acceptable format to be transmitting and storing dates in.

toomanybeersies··on Nikon F-Mount
I used to own an EOS 650. I found it pretty amazing that it was compatible with literally every Canon EF lens ever produced (although it didn't completely support some features, such as image stabilisation).

Unfortunately, my EOS 650 was stolen, but I replaced it with an EOS 55, which is even better (it also supports E-TTL speedlites). It's incredible how good the autofocus is for a camera built in the 90s. In my opinion, it wasn't until ~5 years ago that mirrorless cameras reached parity for autofocus performance.

The Canon EOS film cameras really blew Nikon out of the water. The loss of compatibility with the old FD mount lenses was more than compensated for by the massive gain in functionality they achieved by building a new lens mount designed specifically for autofocus.

toomanybeersies··on Is It Time for the JavaScript Temporal API?
I'm happy to see that it includes primitives of varying precision, specifically, that it includes PlainDate [1], which represents a calendar date, with no timezone. This year, I've spent far too many days, probably weeks, fixing tedious bugs due to incorrect handling and parsing/formatting/reparsing of dates.

[1] https://tc39.es/proposal-temporal/docs/plaindate.html

toomanybeersies··on Is It Time for the JavaScript Temporal API?
That hasn't been the case in JS for almost a decade.

parseInt('0700') returns 700. But parseInt('0x700') will be parsed as octal, so now it's just a more subtle gotcha.

Loose parsers (such as parseInt(), and Date.parse() in JS) are one of the worst ideas ever. Nothing like tracing a bug, and finding that a junior dev is trying to parse DD/MM/YYYY strings using Date.parse(), except that instead of throwing on trying to parse an incorrect [non-RFC] format, the parser makes a best-guess and propagates an incorrect date because it was parsed as MM/DD/YYYY.

toomanybeersies··on Unwanted Corkpull
You don't even need a Swiss Army Knife, if you don't drink a lot of corked wine, a shoe will do just fine [1].

Seriously though, Swiss Army Knives are the epitome of "jack of all trades, master of none". It's so much better to use the proper tool for the job. I've had the same $10 sommelier knife longer than I've ever owned a Swiss Army Knife (since my wine knife stays in the kitchen drawer).

[1] https://www.youtube.com/watch?v=fXihX13xjqQ

toomanybeersies··on No one is certain what Roman bronze dodecahedrons were used for (2018)
It is thought that these tribes worshipped Satoshi Nakamoto, who they believed to be the creator of Bitcoin, and that when the final bitcoin was "mined", a new era would begin.

It is unknown if Satoshi Nakamoto was in fact a real person, as there is there are no surviving primary sources or direct evidence of his existence.

toomanybeersies··on Alexa suggests lethal challenge to child
Maybe I'm biased, but I really love the AU/NZ plugs and sockets.

Out of all the different standards, they're probably the least ugly looking; switched outlets are a (literal and figurative) lifesaver; and it's incredibly useful that you can put a 10 amp plug in a 15 amp socket, but not a 15A into a 10A.

toomanybeersies··on Apple said to be preparing for iPhones without SIM card slot in 2022
I think it's a reasonable assumption that if you own an iPhone, you have access to the internet.
toomanybeersies··on The Rise and Rise of Corrugated Iron
For starters, metal interior panels seems like a great way to get electrocuted.
toomanybeersies··on The Rise and Rise of Corrugated Iron
Perhaps the most unorthodox use of corrugated iron was the Bob Semple tank [1] of WWII. It was basically a corrugated iron shell on a Caterpillar D8 chassis, with 6 machine guns for armament. The eponymous designer and New Zealand's Minister for Works at the time, Bob Semple, based his design off a photo of an American tank he had on a postcard.

Needless to say, it wasn't exactly successful. Only 3 prototypes were built, none were used in combat, and they were eventually converted back into tractors.

[1] https://en.wikipedia.org/wiki/Bob_Semple_tank

toomanybeersies··on The Rise and Rise of Corrugated Iron
It's galvanised. These days you can also get pre-finished corrugated iron (Colorbond), which also has a layer of polyester paint baked on.
toomanybeersies··on Running your own email is increasingly an artisanal choice, not a practical one
> Make spam expensive using proof of stake

That's already a thing. Hashcash [1], the PoW algorithm underpinning Bitcoin, was originally conceived as a method to prevent email spam.

[1] https://en.wikipedia.org/wiki/Hashcash

toomanybeersies··on Georgia teacher read the fine print and won $13K (2019)
> he'd often send the blog posts to the paper authors he was corresponding with and no one pointed it out yet

That's not necessarily because they don't read his blog posts. There's every chance they read them and notice the misspelled acronym, but just assume it's a typo and don't mention it. It comes across as rude and petty to nitpick someone's critical writing by pointing out their typos.

toomanybeersies··on Georgia teacher read the fine print and won $13K (2019)
> what advantage is there in keeping the obtuse language?

Because if a new legal vocabulary was introduced, I would now have to read contracts in both "old legalese" and "new legalese".

I don't think it really matters how clearly contracts are written or how simple the language is; most people won't read them anyway.

toomanybeersies··on Georgia teacher read the fine print and won $13K (2019)
Most people have the (incorrect) understanding that anything and everything in a contract is binding, to the point you could demand their first born child as a deposit for a lease and they'd shrug and say "it's in the contract, so I guess I have to".
toomanybeersies··on Great engineering teams focus on milestones instead of projects
In my experience, there's no architecture or methodology that can make bad engineers build good software. But there's definitely ways to ensure that good engineers end up making shit software.
toomanybeersies··on Canada's public health agency admits it tracked mobile devices during lockdown
Do you live in the same Australia that I'm living in? Because that's not what I've observed at all, at least in Victoria.

For better or worse, the vase majority of Australians have complied with whatever restrictions and mandates that governments have put in place. VIC and NSW, which have borne the brunt of cases and broadly mandated vaccination, have ~95% of people aged 16+ vaccinated. People have generally complied with lockdown restrictions and requirements to wear masks.

Despite the media attention they garner, the protests involve a small minority of people. Victoria didn't see any significant opposition to lockdowns until the later half of this year. Most people seem happy enough getting paid $700 a week to sit at home and play Xbox.

That said, I have noticed that increasingly people are not bothering with the more tedious requirements such as wearing masks and checking in. I wouldn't say anywhere close to "largely ignored" though. I get the impression (from people I know) that it's mostly due to fatigue and risk habituation, rather than alienation.

toomanybeersies··on BusKill – A USB kill cord for laptops
Even easier: just pull the wall plate out, then hook up the UPS behind it with couple of tap splices.
← PreviousPage 3 of 34Next →