25,928 karma · joined Aug 31, 2009 (17y ago) · 6,811 submissions
comment 7h ago · link · parent
I assure you this is not pedantry or a nitpick. The classic case here is if you want to borrow a local variable inside a thread… you need to ensure that the thread lifetime is bounded from above by the lifetime of the borrowed variable. This is why we have weird workarounds like std::thread::scope. If we could just express an upper bound on lifetime, it wouldn’t be necessary.
comment 17h ago · link · parent
Categorically false. People do need that. People lack confidence in their own judgment and place too much weight on the opinions of others. Or perhaps, people try too hard to make something that cannot be criticized.
The result? People spend too much time polishing their writing and less time on the more important parts.
> If you prefer to waste people's time, that's your business.
It’s not a binary choice in the first place. I want people to think of this more as as a space of possibilities. As a writer, you’re making decisions without a complete understanding of your reader or a complete understanding of what you are writing about.
In the end you should be pressing “publish” and it’s normal to press that button for posts that still waste your readers’ time.
The internet has kind of made people into defensive writers, which is bad, and I think this article’s admonition is an extension of that.
comment 1d ago · link · parent
Back in years past there were horror stories of people putting their data into Glacier and then getting hit with some kind of inscrutable bill when they retrieved it. Those days are gone.
comment 2d ago · link · parent
Maybe you are optimizing for the enjoyment of blogging. Maybe you are optimizing for getting your thoughts down in fixed form, because you think there you have something important to say. Maybe you are optimizing for blogging as a habit. It takes time to edit blog posts down and make them brief, and if you have other shit to do, the posts could be longer.
Next, you don't know whether a blog post will be popular / reposted / recirculated. It happens after you write it. By then, it is too late to decide whether you want to write it carefully.
Rather than assume people are not interested in my blog posts, I just believe that I don’t know which blog posts of mine people want to read, and then I’m happy when one gets higher readership.
comment 3d ago · link · parent
1. Start by describing your data access patterns. How much data, how often to retrieve it.
2. Fire up a spreadsheet and plug in different options. Consider lifecycle rules while you’re at it.
The parent comment explicitly said “never accessed” so if your data access pattern is different, you will (obviously) choose a different option.
comment 5d ago · link · parent
As a historical note, this practice has been mostly unworkable for a long time. I haven’t met anyone who does this.
The basic idea for this technique is to use a spot meter to measure both the dark and light parts of your scene, and adjust exposure and development time to map those to the correct tonal values. There some big reasons people don’t do this:
- You can’t change development for pictures in roll film,
- We have good variable contrast paper,
- It’s harder to do in color.
comment 1w ago · link · parent
Your camera has some sensor which records some range of values. The range is a lot wider than your monitor can reproduce and generally follows some curve up to a maximum value, where the highlights clip.
Log is something of a fantasy in that it represents an idealized, mathematical idea of what your camera does, but it does not really correspond to what the sensor does or what the monitor displays. You can convert your video to log, or from log, but the log data itself is only really useful as an intermediate step when post-processing. I don’t think you need to capture in log. I would just go for some “regular” wide like Canon’s Wide DR.
YMMV, I am a little old-school about these things and there is a lot of stuff that I prefer to do in-camera. (Be warned that while doing things in post gives you flexibility to undo your work and change your mind, there are a lot of things you can’t reasonably do in post… even things that seem basic like white balance are better to do with lighting or filters, and if you don’t understand the sensitometry then you can easily end up with footage that you can’t rescue in post.)
comment 1w ago · link · parent
It feels like, I don’t know. You go to somebody’s house and they have one plate, one cup, one spork. They’re living in a 30th floor walk-up, but one of the windows is missing so there’s a giant hole in the wall.
That’s kind of the subjective experience I get when I see people using GitHub actions.
comment 1w ago · link · parent
Same for Windows.
I may be a little old-school about this. That’s fine. I think most people out there who are trying to support multiple platforms with their code should be going one of three directions—(1) some kind of web app, (2) an open-source tool where end-users compile it or run it in their Python interpreter or Node.js or whatever, or (3) a pre-built binary for systems they personally run at home.
I also am not writing out, like, an essay on how to replace GitHub actions for every possible use case that people have GitHub actions for. I am just providing some suggestions for one possible direction. If you get off GitHub actions, you are going to end up with something that is missing some of the features that GitHub actions, maybe some features that you like. The same is true in the reverse—if you switch to GitHub actions, you will obviously lose features that were present in whatever other system you had before. GitHub actions is, after all, completely terrible and switching to it would just be a kind of disaster in a bunch of different ways.
I don’t like to put this kind of wall-of-text disclaimer in comments on HN, and hopefully y’all can figure this stuff out without the wall-of-text disclaimer. It would be kind of… absurd… perhaps, to expect some random commentator on Hacker News to give you exactly the answer that satisfies your needs, unless you put those needs in a question.
Instead I limited myself to two suggestions. If you don’t like them, then figure something else out yourself. You will not have trouble making something better than GitHub actions.
comment 1w ago · link · parent
You don’t have to go Jenkins, it’s just that GitHub Actions are uniquely bad and I would avoid them.
If you are relying on the free version of GitHub actions for small projects, I would consider just running something on a NUC or Pi at home.
comment 2w ago · link · parent
Back then, I didn’t use Terraform or anything like that, but I had text files with logs that described the DNS setup in detail so I could fix things. By grepping through the logs, I’m able to put a definitive bound on when I added DMARC—it was no later than June 2016, over 10 years ago.
At the time I thought, “Obviously, we should all be setting this up, because recipients will start rejecting mail from insecure domains, if they don’t already.” This was also back when I self-hosted email. I eventually stopped doing that because I thought it was too time-consuming.
comment 2w ago · link · parent
On the other hand, 3.5" disks have higher magnetic coercivity, which makes them less susceptible to data loss from stray magnetic fields (e.g. nearby motors).
comment 2w ago · link · parent
YMMV. I’m sure a lot of people were shoving these things into backpacks, and this was post-2000, so the quality of disks for sale was poorer than it was in the 90s and 80s.
I’ve also (since then, for myself) repaired drives. The drives fail because they’re mechanical and have motors, and anything that moves or has a motor in it will need some kind of service. Servicing a floppy drive requires specialized equipment which is hard to find (or requires a lot of patience—it’s possible to repair a floppy drive with just a screwdriver, but it’s not fun; guess how I know?)
comment 2w ago · link · parent
—which happened often enough. Tape stuck in a drive, operator has to go into the tape library to fish it out. You have to turn the robots off first. Individual tape errors were invisible because we used erasure codes. We would have to see, like, four correlated failures in order to lose data.
I did the math and we were comfortable with that level of redundancy, based on our data for how often tapes fail. When I say I did the math, I mean I personally did the math, but I don’t have the figures handy.
comment 3w ago · link · parent
Before that point, you are probably going to have too much trouble generalizing.