HNHacker News
TopNewBestAskShowJobs

brian_cunnie

870 karma · joined September 8, 2015

submissionscomments
brian_cunnie··on Gene-Engineered Mouth Bacteria
> doctors are prescribing it left and right while there is money to be made

I think that's painting with a broad brush the motivations of doctors. Case in point: when diagnosed with diabetes, my doctor suggested attempting a modified diet before she'd prescribe medications (such as ozempic). She got no money from a modified diet.

Furthermore, I don't think she would've gotten any money had she prescribed medication; in the US, there's a "Medicaid/Medicare anti-kickback statute" [0]

I suspect that those motivated by money would be more inclined to pursue a lucrative career in finance rather than the long, arduous, and expensive path of becoming a doctor.

[0] https://journalofethics.ama-assn.org/article/it-legal-physic...

brian_cunnie··on The world in which IPv6 was a good design (2017)
I must admit I'm at a loss about this IPv6 hate. I love IPv6.

I love that (almost) every IPv6 subnet is a /64. Just this morning I assumed an IPv4 subnet was a /24, only to discover it was a /20, causing me to spend a couple of minutes re-working.

I love that (almost) every IPv6 is a /64 because you'll never have to widen a subnet because you started of with a /24, but then after your office grew to 200 people you had to switch to a /20. And no matter how automated you are, there are always some important devices that have static IPs and that you have to reconfigure manually.

I love that every IPv6 client gets a routable IP. This means NAT isn't necessary. NAT is a clever hack, but we've grown so accustomed to it that we've become blind to its failings. I've had to trace packets coming out of a corporate NAT, then into an AWS ELB (Elastic Load Balancer) back into a different NAT. With the IP address remappings, it's awful

IPv4 NAT can also lead to IP address collisions. Your home subnet is 192.168.0.0/24? And so's your work? Good luck VPN'ing in.

I like that IPv6 has an abundance of IPv6 addresses—I don't need to share the ports on my sole IPv4 address to 5 different machines.

brian_cunnie··on The world in which IPv6 was a good design (2017)
> there were like 5 updates of OPNsense in the last year where different IPv6 issues were fixed (and others have been introduced)

That's a bummer. I've been using FreeBSD + pf at home for years now, and it's been smooth sailing.

> my ISP only hands out /64-Prefixes, and these are also dynamic, which makes configuration more difficult

Comcast/Xfinity hands out a /60, which means I get 16 x /64 subnets. And they haven't changed my subnets in at least four years. Pro-tip: when you change firewall hardware, keep the same MAC addr to keep the same IPv4, keep the same DHCP Unique Identifier (DUID) (/var/db/dhcp6c_duid on FreeBSD) to keep the same IPv6 subnets.

brian_cunnie··on Review of Hetzner ARM64 servers and experience of WebP cloud services on them
I like the article, but I wish there had been an "Abstract" or "Executive Summary" at the top so that I'd be spared having to read the entire article to find out the results. I'd like to have seen something along the lines of the following:

"We found Hetzner's ARM64 offering, specifically the CAX21 with 4 cores, 8GB at $8.40/month, to be a performant and cost-effective alternative to x86_64-based solutions."

brian_cunnie··on More notes about pain as a game mechanic
I’m American, and as a kid I loved playing the game “Cream the Carrier” (tackle the ball-carrier). The closest analogue as an adult was rugby, and there are four rugby clubs in San Francisco, so I played for one of them.
brian_cunnie··on TV doctors say annual checkups save lives – real doctors call bullshit (2016)
My annual checkup uncovered that I was a raging type II diabetic with an A1c of 8.7 (higher is worse, 4-6 is normal). I changed my diet. Cost to my insurer over the last eleven years? ~$600.

My friend Leroy Nova didn't find out he had diabetes (no annual checkup) until he passed out on a BART (Bay Area Rapid Transport) platform. He spent a month in the hospital in a coma. At $10k/night (typical), it cost $300k.

brian_cunnie··on More notes about pain as a game mechanic
After 15 years of playing rugby, where pain is an ever-present game mechanic, I will say this:

My hardest season was the one where I had shin splints. You'd think the concussions, the hematomas, the separated ears, the stomped feet, the scraped hands, the black eyes would be painful, and you'd be right: they're painful. But not as much as the shin splints. Go figure.

brian_cunnie··on IBM PC 8088 replaced with a Motorola 68000
Don't forget that Intel had an incumbent advantage: the IBM Displaywriter used the 8086 processor [0]. IBM was already familiar with integrating Intel microprocessors into their equipment.

[0] https://en.wikipedia.org/wiki/IBM_Displaywriter_System

brian_cunnie··on The Role of Diet on the Gut Microbiome, Mood and Happiness
> fats vs proteins vs carbohydrates

There's a Stanford professor who did a study comparing low-carb vs. low-fat diets. The surprising result: both groups lost weight.

My take (speculative): both groups cut out a lot of processed food. It's the processed food that's making us fat.

brian_cunnie··on The simplicity of single-file Golang deployments
AWS Lambda is basically cgi-bin. Except, of course, they re-branded it as an exciting new technology, which I think was a clever move on their part.
brian_cunnie··on Our production servers were suspended by Google Cloud
Only one email from Google Cloud? That's weird: I got four when my Wells Fargo debit card was compromised on 2/28/2023.

- 2023-03-04 "Your Project: nono is at risk of suspension"

- 2023-03-04 "Action required: your billing account 0028C9-xx-yy is past due or has invalid payment information"

- 2023-03-04 "Google Cloud Platform & APIs: Update your payment method to keep services"

- 2023-03-04 "Google Cloud Platform & APIs: Payment was declined for 0028C9-xx-yy"

Similarly, I got four emails from Digital Ocean, but only one from AWS.

brian_cunnie··on Ivy League Schools Sure Look Like a Cartel
> It has historical roots in excluding Jewish students

I'm glad the Ivy (Penn) that I graduated from over thirty years ago was enlightened enough to admit good students regardless of whether they were Jewish. Or Asian.

> athletics has been a backdoor for admissions ... used to exclude ... those outside the upper class.

The student athlete I knew, my roommate Tony Tomaska, was the son of a Chicago policeman. He played for the football team. He was working class, not upper class.

brian_cunnie··on Reducing technical debt by valuing comments as much as code
> I see a method that sounds like that and a 429 and I have a pretty good idea of what is going on

Yes, you're a seasoned HTTP developer. The comment isn't meant for someone like you. It's meant for the other developers on a shared codebase who may not know much beyond the standard HTTP status codes (200, 400, 403, 404, 503).

> taking up more lines to describe the method than execute it

It's a one-line comment. the Ruby code with the exponential backoff, eight lines. It does not take up more lines than the method.

brian_cunnie··on Reducing technical debt by valuing comments as much as code
> then that person can refer to the VCS blame (e.g. git blame) logs to find what _should_ be a detailed commit message explaining all of the 'in the moment' reasoning for why and how the code was written

Agreed, they "_should_" write the reason why, but many committers unfortunately write the "what" rather than the "why".

I like comments in code, and they're the first thing I read when, say, browsing the kernel or the Golang standard libraries/packages. And I appreciate that you don't find them as useful--more power to you!

brian_cunnie··on Reducing technical debt by valuing comments as much as code
> I very rarely see a comment which is genuinely both well placed and useful

Your experience is different than mine: I write software which interacts with cloud (Amazon AWS, Google Compute Platform, VMware vSphere), and a well-placed comment describing the quirks of whatever platform I'm working with helps immeasurably, e.g.

> VMware NSX will throttle us with an HTTP Status 429 "Too Many Requests" if > 100 API calls/second. In that case, we back off and retry rather than fail.

brian_cunnie··on Ask HN: I'm 40 and feel my mental ability declining. Programming seems harder.
I agree: I'm 58, and I'm not as sharp as the twenty-year-olds, thirty-year-olds, and even forty-year-olds that I pair-program with. To be more specific, the younger developers seem to have a certain mental elasticity that is now beyond me: they can store more in their short-term memory, and they grok code faster than I do.

My brother, who's 18 months my junior and a developer like me, shares the same sentiment: "It's like I used to have 20 registers, and now I'm down to 12".

It's comforting to believe that age hasn't diminished us, but working directly with my juniors has disabused me of that notion.

I feel that Tennyson put it best when he said, "Though we are not now the strength which in old days moved earth and heaven, that which we are, we are."

brian_cunnie··on Why Solana was decimated by Bankman-Fried’s downfall
> Bitcoin is used increasingly as a tool against French colonial CFA Franc in Africa

To quote hn_zorba [0], who replied to a similar comment you made:

> There's no mention of CFA Francs in that article? Also the bitcoin experiment that this article briefly talks about has since become a failure - though that's probably more on the incompetence of the rollout than bitcoin.

[0] https://news.ycombinator.com/item?id=34165882#34168577

brian_cunnie··on What’s in a PR statement: LastPass breach explained
If you have an business account, migration is non-trivial: It's not uncommon to have hundreds of shared folders of secrets accessible by hundreds of teams.

The meta information (which user account belongs to which team, which team has what kind of access {none,read-only,read-write} to which folder) is not trivial to migrate.

brian_cunnie··on Ask HN: Azure has run out of compute – anyone else affected?
True. When Nextel was bootstrapping in the 90's, a VP said, "We have to buy gas for the car now. Later we'll buy the seat belts"
brian_cunnie··on My ADHD founder toolbox
> psychiatric meds you can get on and off safely at any time

Maybe you can get off them safely, but not always easily. My alcohol/drug recovery group is filled with people who couldn't easily get off them, like my friend N., who rather than swallowing his medication (Ritalin?), he crushed it & snorted it like cocaine.

brian_cunnie··on Justice Department announces takedown of catalytic converter theft ring
> They [the police] really don't care

I don't think it's something you can lay at the feet of the SF Police Department. I asked Pete McLaughlin, SFPD (retired), why the police don't go after bike thieves more aggressively.

"Our hands are tied," he said. "They [the thieves] know the most we can do is give them a citation, and they'll be out that afternoon."

California has a history of being lenient with non-violent crime, which is appropriate in some cases, but maybe not in others. Maybe leniency is the wrong approach for some of these bike thieves.

But it's complicated. I heard Jerry Brown (former California Governor) talk about how ~10% of the state budget goes to prisons, and he's not comfortable with such a large amount, and I agree--throwing people in jail is expensive!

brian_cunnie··on Justice Department announces takedown of catalytic converter theft ring
> When the cops don’t show up to take a report

In San Francisco I didn't need the cops to show up to file a report--I filled it out online! It's easier than ever to file a report these days.

brian_cunnie··on The Perfect Commit
Sometimes the code isn't clear because the reason for the "if" has nothing to do with the code and everything to do with externalities.

For example, I wrote a DNS server that had to take into account that on many Linux systemd distributions a daemon `systemd-resolve` binds to 127.0.0.54:53, preventing my DNS server from binding to INADDR_ANY port 53.

So my DNS server has a contorted piece of code that, when binding to INADDR_ANY fails, iterates through all the interfaces and all the IP addresses and binds to each one individually.

Anybody looking at the code would rightfully ask, "What the heck?", but if they read the commit messages, the reason becomes clear.

brian_cunnie··on The Perfect Commit
> An issue is more valuable than a commit message

Watch out! An issue is more ephemeral than a commit message: The issue might not always last, but the commit message will. If, say, a project is re-hosted from GitHub to an internal GitLab instance. Or maybe the original project dies, and all the active work is done on a fork. In such cases, the original issues are gone, but the commit messages stay.

So put everything that's important into the git commit message. Don't assume the issue will always be there.

I learned this the hard way when the company I worked at used something similar to GitHub issues (Pivotal Tracker stories) to record the important background to a commit, which was great until the story was purged (because, say, the Tracker project was deleted).

brian_cunnie··on Work is work, in which returns diminish (2020)
> author is a bit stuck in his own head ... passingly mentions obscure terms for no reason

My sentiments exactly.

brian_cunnie··on DJI Drone Flies over the Top of Mount Everest
Agreed. I couldn't finish watching it because of the excessive cuts.
brian_cunnie··on Austrian ISPs Block Cloudflare IP addresses after apparent court order
My mother's cable provider, Optimum Cable, routes DNS traffic to their own DNS servers.

To make matters worse, they engage in gratuitous blocking; for example, they won't resolve addresses of private networks (192.168.x.y, 10.x.y.z, etc...). For example, 192.168.1.1.nip.io won't resolve on my mom's network, but will almost everywhere else.

The solution, as another poster pointed out, was to use DNS-over-TLS.

brian_cunnie··on Hetzner to Offer First Arm-Based Dedicated Servers in Europe
I'm a die-hard Hetzner fan, too. I have personal servers on AWS, Azure, Digital Ocean, GCP, and Vultr, but I think my Hetzner server is my favorite & provides the biggest bang for the buck.

Oh, and I'm American, I speak English, and I live in San Francisco.

brian_cunnie··on VanMoof’s team of ‘bike hunters’ appears to succeed where the city doesn’t
This article focuses on thievery at the expense of vandalism.

I leave my bike locked up outside overnight in San Francisco [0], and with three sturdy locks I'm not worried about thieves, but the vandals are another story. Ten days ago I came outside to discover they had set my bike seat on fire, which also ruined the rear tire and tube, along with some cosmetic damage. Total cost to repair: $283. My bike is vandalized typically every 90 days or so.

[0] https://briancunnie.medium.com/how-to-lock-your-bike-overnig...

brian_cunnie··on VanMoof’s team of ‘bike hunters’ appears to succeed where the city doesn’t
> ... signals the decline of the local government police forces.

I don't think it's something you can lay at the feet of the SF Police Department. I asked Pete McLaughlin, SFPD (retired), why the police don't go after bike thieves more aggressively.

"Our hands are tied," he said. "They [the thieves] know the most we can do is give them a citation, and they'll be out that afternoon."

California has a history of being lenient with non-violent crime, which is appropriate in some cases, but maybe not in others. Maybe leniency is the wrong approach for some of these bike thieves.

But it's complicated. I heard Jerry Brown (former California Governor) talk about how ~10% of the state budget goes to prisons, and he's not comfortable with such a large amount, and I agree--throwing people in jail is expensive!

Lastly, when the SFPD was needed, they move fast: I had a home invasion a couple of years ago (a guy kicking in my window, trying to break in), and five police were in my apartment within minutes of the 911 call. Worth 20 stolen bikes IMHO.

← PreviousPage 2 of 7Next →