HNHacker News
TopNewBestAskShowJobs

gunapologist99

2,003 karma · joined June 24, 2021

submissionscomments
gunapologist99··on Building a highly-available web service without a database
Redis is best as an in-memory cache, not a database. Having used it in production for roughly a decade, I don't trust it's on-disk capabilities (AOF/RDB etc) as either solid or reliable (or even performant) in an emergency scenario, especially with DR or DB migration in mind.
gunapologist99··on Building a highly-available web service without a database
It's interesting you say "backup/recovery" as a strong point of relational databases (servers), because backup and recovery on hot databases have always been a challenge.

With many enterprise databases these days, often "incremental" or other seemingly required backup modes are not included in the "community source" versions; perhaps because surely if you want your database to be backed up safely and then come back online safely, you certainly will fall into the "contact us for quote" enterprise customer demographic.

At least, with SQLite, copying even a hot (in-use) db file to a remote server will usually "just work", with the potential loss of a few transactions, but with most other database/servers, you definitely can't just backup the data directory occasionally and call it a day.

gunapologist99··on Susan Wojcicki has died
This sample size of one would seem to disagree. Stress is stress, and the outcome can certainly be the same in the end. RIP
gunapologist99··on IRC Will Never Die (2021)
But it was already kinda fringe, even back in the late 90's. People would talk on AIM or AOL chat, but it was rarer to find IRC users among the hoi polloi.
gunapologist99··on How we migrated onto K8s in less than 12 months
From https://stackoverflow.com/questions/24418815/how-do-i-instal... , here's an example that you can just paste into your load balancing LaunchConfig and never have to log into an instance at all (just add your own runcmd: section -- and, hey, it's even YAML like everyone loves)

  #cloud-config
  
  apt:
    sources:
      docker.list:
        source: deb [arch=amd64] https://download.docker.com/linux/ubuntu $RELEASE stable
        keyid: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
  
  packages:
    - docker-ce
    - docker-ce-cli
gunapologist99··on How we migrated onto K8s in less than 12 months
It's worth bearing in mind that, although any of these can be accomplished with any number of other products as you point out, LB and Horizontal Scaling, in particular, have been solved problems for more than 25 years (or longer depending on how you count)

For example, even servers (aka instances/vms/vps) with load balancers (aka fabric/mesh/istio/traefik/caddy/nginx/ha proxy/ATS/ALB/ELB/oh just shoot me) in front existed for apps that are LARGER than can fit on a single server (virtually the definition of horizontally scalable). These apps are typically monoliths or perhaps app tiers that have fallen out of style (like the traditional n-tier architecture of app server-cache-database, swap out whatever layers you like).

However, K8s is actually more about microservices. Each microservice can act like a tiny app on its own, but they are often inter-dependent and, especially at the beginning, it's often seen as not cost-effective to dedicate their own servers to them (along with the associate load balancing, redundant and cross-AZ, etc). And you might not even know what the scaling pain points for an app is, so this gives you a way to easily scale up without dedicating slightly expensive instances or support staff to running each cluster; your scale point is on the entire k8s cluster itself.

Even though that is ALL true, it's also true that k8s' sweet spot is actually pretty narrow, and many apps and teams probably won't benefit from it that much (or not at all and it actually ends up being a net negative, and that's not even talking about the much lower security isolation between containers compared to instances; yes, of course, k8s can schedule/orchestrate VMs as well, but no one really does that, unfortunately.)

But, it's always good resume fodder, and it's about the closest thing to a standard in the industry right now, since everyone has convinced themselves that the standard multi-AZ configuration of 2014 is just too expensive or complex to run compared to k8s, or something like that.

gunapologist99··on 1970 Clean Air Act was intended to cover carbon dioxide
Agreed. It's also a lot harder, more expensive, and much more easily detected to buy off the majority of Congress than a single President or Secretary.
gunapologist99··on 1970 Clean Air Act was intended to cover carbon dioxide
Well, also what happened in the last 40 years was that the administrative state exploded in size.

And, now, for every new law that Congress passes, unelected bureaucrats in federal agencies create TWENTY-SEVEN new laws. https://www.forbes.com/sites/waynecrews/2017/08/15/how-many-...

And the size of the federal government has become simply immense, even discounting the size of the world's largest military. It's by far the world's largest employer in terms of monetary spend.

So, overturning Chevron was just a tiny step toward curbing the massive power that government agencies have over the citizens that they purport to serve.

gunapologist99··on 1970 Clean Air Act was intended to cover carbon dioxide
If a supermajority of people agree on both the purpose and implementation of anything, then their elected representatives will easily come to an agreement as well. That's literally how laws get passed.

Conversely, not passing laws is a feature, not a bug.

> Alternatively, we pass giant tomes of legislation (esp budgets) which literally nobody can understand let alone agree on.

I agree. These massive laws are rushed through precisely because leadership knows that people won't have enough time for debate, let alone in proper order.

gunapologist99··on 2.9B hit in one of largest data breaches; full names and SSNs exposed
(It's a myth that there's an IRS 7 years 'statute of limitations'. It's far more nuanced than that: https://www.irs.gov/businesses/small-businesses-self-employe... )

However, it's still a reasonable time frame, and also, probably coincidentally, 7 years after the last update on any individual record is how long it will take to essentially reboot your U.S. credit report, so seven years sounds quite reasonable.

gunapologist99··on "Sitting Duck" DNS Flaw Is a Red Herring
Krebs has some respect in the community for things like haveIbeenpwned and his in-depth exploration of various security issues, but it looks like he got this one wrong.
gunapologist99··on Parody site ClownStrike refused to bow to CrowdStrike's bogus DMCA takedown
In that case, you might just email your host's support team and ask them directly.
gunapologist99··on Parody site ClownStrike refused to bow to CrowdStrike's bogus DMCA takedown
Check the terms of service and the acceptable use policy of your host; even if the DMCA doesn't apply to you directly, it would apply to a U.S. based host, and you agreed to their terms when you became their customer.
gunapologist99··on Twitter kills its San Francisco headquarters, will relocate to South Bay
... a literal sniff test? from what I hear (not having been there in more than a few years), it's become quite a problem.
gunapologist99··on Show HN: I built a simple, open-source tool to manage servers and SSH keys
Not exactly. Yes, the certs expire, so they can't log in again, but existing sessions are not terminated.

With Userify, sessions (like tmux or screen) actually get terminated within seconds when the user's access is removed. That doesn't happen at all with certificates.

If someone's certificate expires, but they're still logged in, they'll stay logged in, because there is no mechanism to kill their session (and they can channel all kinds of things over their logged-in session).

That's an absolute nightmare for compliance.

gunapologist99··on Show HN: I built a simple, open-source tool to manage servers and SSH keys
Yeah, you can go a long way with a single line added to the top of your .ssh/config like:

    Include ~/.ssh/config.d/2024/*
gunapologist99··on Show HN: I built a simple, open-source tool to manage servers and SSH keys
cassh is a manager for CA's in SSH. CA's were added to SSH to satisfy people who thought PKI was a good idea; it's not, and SSH pubkeys are far better IMO. Better to use a tool like Userify (or similar like SSH.com) for pubkey management.
gunapologist99··on Show HN: I built a simple, open-source tool to manage servers and SSH keys
One key per laptop.
gunapologist99··on Show HN: I built a simple, open-source tool to manage servers and SSH keys
(Or Userify installed with Ansible..)
gunapologist99··on He Skipped College to Become a Repairman. He's on His Way to $175k a Year
You're right, and there are probably also many opportunities to invent new tools and techniques and pursue entrepreneurship, for those so inclined.
gunapologist99··on How the Regime Captured Wikipedia
"inside the cultural revolution at wikipedia, which pivoted it from a decentralized database of all the world's knowledge to a top-down social activism and advocacy machine" (by Ashley Rindsberg)
gunapologist99··on He Skipped College to Become a Repairman. He's on His Way to $175k a Year
Exactly - two guys in the plumbing dept were happy to haul it up to the attic and install it. They probably quadrupled their hourly rate for a few hours and got finished by 9pm on a Friday night.. so they probably burned through some of that $250 each shortly thereafter :)
gunapologist99··on He Skipped College to Become a Repairman. He's on His Way to $175k a Year
I agree. I love coding and don't think I'd like non-creative work as much, but there's definitely nothing wrong with trades; it's honorable work, and I'd encourage anyone to seriously consider it if they weren't sure what they wanted to do.
gunapologist99··on He Skipped College to Become a Repairman. He's on His Way to $175k a Year
Agreed. And he probably doesn't even have to. (Incidentally, swing by your local big box store at closing time and ask the guys in plumbing if they want to make $500 or $1000 by putting in a water heater tonight; that worked for me, anyway, even on a Friday night.)

I just paid $4,000 for a very experienced plumber and his apprentice to replace a tankless water heater that I could buy new on Ebay for $1,200. That extra $2,800 was pure profit for a job that took four or five hours, and I also had to wait a day before he could fit me in.

gunapologist99··on He Skipped College to Become a Repairman. He's on His Way to $175k a Year
Not all trades require additional backbreaking labor in order to make top rates.

Some of these trades have specialties that require a great deal of training, skill, and experience, and pay is commensurate.

For example, telecom, electrical, plumbing, and HVAC work is frequently not backbreaking work but still great rates. There are probably many more jobs in unionized or defense (or both) which have great salaries or rates, but without a lot of backbreaking work involved.

As a bonus, once you've learned the ropes and gain more experience, you are well on your way to becoming a foreman or even entrepreneur, if so inclined.

As a college student without any experience, it makes sense that you would end up trading your young and fit body for higher pay, but that isn't always the case. Experience in that individual industry will help you see what the possible upgrade paths are.

gunapologist99··on A year of Meta's news ban in Canada
Agreed, except that those people who haven't agreed to the ToS also have no legitimate right to the work outside of a separate agreement with the publisher.

Just putting it on Reddit doesn't make it fair game for everyone.

Similarly, posting a news article to Facebook grants FB the same rights, more or less, but it doesn't grant Joe Random the right to re-publish the same article unless he makes an outside deal with the original author.

gunapologist99··on Russ Cox is stepping down as the Go tech lead
And Daniel Robbins at Gentoo, who recently (and sadly) stepped down from Funtoo as well.
gunapologist99··on Russ Cox is stepping down as the Go tech lead
Exactly. And it's in writing!

The backwards compatibility promise:

https://go.dev/doc/go1compat

gunapologist99··on How the electricity markets respond to a nuclear trip
Neither of these points are conflicting with my argument. Just because batteries are being deployed it (and I agree that it's cheaper and faster, but not necessarily better on all axes) doesn't mean that their manufacturer is not damaging the environment.

In fact, battery manufacture is not damaging the environment in most places where first-world people live, so perhaps they just don't care, but I think that's pretty sad.

gunapologist99··on After 10 years, Yelp gave my app 4 days
Especially since there were apparently complaints that Yelp was doing pay-to-play with good reviews for a while, which diminishes the truthiness value of any reviews:

https://www.dailydot.com/via/yelp-extortion-lawsuit/

https://cutthroatmarketing.com/heres-why-you-shouldnt-advert...

https://www.reddit.com/r/smallbusiness/comments/h9ohs6/has_a...

(Anecdotally, I also seem to be seeing this on Google Maps now! It seems like highly rated but local restaurants don't even show up on the map at all until I zoom in literally to the building -- perhaps because the owners don't pay for ads? Crazy if true... and Bing maps seem to not have all the restaurants or ratings, and you can't seem to filter based on rating either, which seems like a massive Bing fail. Maybe the review apps were always destined to crumble under a business model that encourages dishonesty on both sides..)

← PreviousPage 4 of 31Next →