News for hackers. Stuff that matters.

tynorf

Re:Apple introduces the new 14‑inch MacBook Pro with M6 on Wednesday October 28, 2026 @11:13AM (#50275060)
While I was expressing an ideal setup, it isn’t all or nothing. A single backup is still better than none at all.

I suppose I didn’t specify exactly what I would recommend to someone who thinks it’s too hard, so here is that:

1. Install Backblaze. This is basically fire and forget. 2. (1) is enough for most people, but if interested (and on a Mac, which is what I’m familiar with), plug in an external SSD once a week or so for Time Machine. Setup involves clicking on the drive in the setup wizard and specifying an encryption password.

I don’t know about “ultra” robust, but this gives you protection from accidental deletions, natural disasters happening to your computer, hardware failures, and corruption from software bugs. The ongoing maintenance is plugging in a hard drive once a week.

If that is too much effort, just (1) provides natural disaster and hardware failure protection. It helps somewhat with the others but Backblaze only saves versions for 60 days and that’s a tight window to notice subtle corruption of e.g. your photos.

Re:Apple introduces the new 14‑inch MacBook Pro with M6 on Tuesday October 27, 2026 @04:19PM (#50265207)
> PSA to make sure devices with non-removable storage are backed up!

Really this should be devices full stop. Also, "backed up" should include no fewer than two backups on different media and in different physical locations e.g. Time Machine to an external SSD _plus_ continuous cloud backup.

They still need to buy said RAM from all the same players.
Re:ArenaAllocators don't play nicely with ArrayLists on Wednesday August 12, 2026 @10:45AM (#49273199)
FWIW, if you aren’t interleaving other allocations (which includes on other threads), the ArenaAllocator in Zig doesn’t have this problem. If you attempt to resize the most recent allocation, it will do so in place if possible.

https://ziglang.org/documentation/0.16.0/std/#std.heap.Arena...

Re:Lightning Memory-Mapped Database Manager (LMDB) 1.0 on Thursday July 02, 2026 @08:01PM (#48768999)
IIRC: it is to leverage the OS page cache rather than having a separate buffer pool in user land. By default lmdb uses normal pwrite/fsync for the write path, but can optionally use a writable mapping and (presumably) msync.

However, some people think there are problems with this usage: (pdf warning) https://www.cidrdb.org/cidr2022/papers/p13-crotty.pdf

Re:Why users cannot create Issues directly on Friday January 02, 2026 @09:40PM (#46472244)
The computer has 18GB of total RAM so I would hope that it’s already trying to conserve memory.

It’s kind of humorous that everyone interpreted the comment as complaining about Chrome. For all I know, it’s justified in using that much memory, or it’s the crappy websites I’m required to use for work with absurdly large heaps.

I really just meant that at least for work I need more than 8GB of RAM.

Re:Why users cannot create Issues directly on Thursday January 01, 2026 @11:15PM (#46461341)
Chrome on my work laptop sits around 20-30GB all day every day.
Re:Common Mistakes in Modularisation on Thursday February 29, 2024 @10:34AM (#39550710)
Perhaps a small nit, but the “design space tree” looks more like a directed graph.
Re:Duplicity on Wednesday January 24, 2024 @02:48PM (#39121799)
You can try setting `export PYTHONWARNINGS="ignore"` to suppress warnings.
Anecdotally, I fly round trip out of SEA ~3 times a year and experience very bad turbulence on about half the flights. Earlier this year it was bad enough to suspend drink service.
Re:What I learned getting acquired by Google on Thursday November 09, 2023 @07:00PM (#38213109)
> At Amazon you can't even open the building next door without approval.

This is not true.

Re:System Design 101 on Wednesday October 25, 2023 @09:11PM (#38020523)
This is a very important point.

I'd argue all these "publish your DB schema as a GraphQL endpoint" frameworks that seem to proliferate have done a lot of damage to GraphQL's reputation. Strongly coupling data to presentation seems like such an obvious anti pattern, yet tools doing just that seem to be very popular for some reason.

Re:Transactions Are Not Locks (2022) on Saturday October 21, 2023 @10:56PM (#37972438)
You might be interested in this: https://brandur.org/idempotency-keys
Re:Versioning data in Postgres? Testing a Git like approach on Friday October 20, 2023 @01:43PM (#37959193)
The objects directory stores every file (and tree, commit, etc). Pack files are an optimization storing diffs.
Cassandra does not make you immune to database issues: https://monzo.com/blog/2019/09/08/why-monzo-wasnt-working-on...
The interior has been aluminum, but the band around the outside has been stainless steel.

> Ceramic Shield front, Textured matte glass back and stainless steel design

https://support.apple.com/kb/SP875?viewlocale=en_US&locale=e...

Re:Speed Up C++ Compilation on Sunday August 06, 2023 @12:14AM (#37018933)
Yes, that would be a different reason to prefer worktrees (that I mostly agree with). I was responding to the specific storage space claim.
Re:Speed Up C++ Compilation on Saturday August 05, 2023 @06:13PM (#37016768)
FWIW, local git clones use hard links for object files, so share a lot of their data.

https://www.git-scm.com/docs/git-clone#Documentation/git-clo...

Re:How small is the smallest .NET Hello World binary? on Monday July 10, 2023 @01:08AM (#36662357)
I'm pretty sure part of the contract with gzip (and compression in general) is that applying it N times is undone by decompressing N times.

The size definitely gets bigger with each iteration:

  $ echo text >0.txt
  $ for i in {0..9}; do                             
  gzip <$i.txt >$((i + 1)).txt
  done
  $ ls | sort -n | xargs -n1 wc -c
       5 0.txt
      25 1.txt
      46 2.txt
      69 3.txt
      82 4.txt
     105 5.txt
     120 6.txt
     143 7.txt
     161 8.txt
     184 9.txt
     207 10.txt
Re:AWS us-east-1 outage on Tuesday December 07, 2021 @01:51PM (#29476605)
Something like this? https://stop.lying.cloud/
Re:fs.promises.readFile is 40% slower than fs.readFile on Wednesday March 03, 2021 @07:45PM (#26337117)
I believe orf is talking about the read(2) syscall, which is blocking.
OWASP is a good resource for web security related topics. i.e. https://cheatsheetseries.owasp.org/cheatsheets/Authenticatio...
I think the classic example is article list with author details. You load the articles (one query), then for each article you load its author (N queries). Naive use of an ORM causes this:

  articles = Article.load(limit=10)
  for article in articles:
    # .author implicitly runs a query
    author_name = article.author.name
This can be avoided in ORMs providing prefetching (e.g. `Article.load(eager_load='author')`).
Re:Strict APIs vs. Forgiving APIs on Wednesday October 28, 2020 @12:08PM (#24920442)
I believe being lenient in accepting input is what leads to SSRF attacks (HTTP request smuggling via disagreeing `transfer-encoding` and `content-length` headers).
Re:Dockerfile Security Best Practices on Wednesday October 14, 2020 @02:07PM (#24779609)
Probably either via a third party service (such as AWS secrets manager), or mounted as files scoped to the user your process is running as (which is not root, right? :) ).
Re:Why is Apple acting like an asshole? on Wednesday September 16, 2020 @03:29PM (#24496555)
Just a point of clarification: native app notifications on iOS are absolutely opt-in. If the app wants to send notifications it requires a dialogue and user confirmation.

Disappointingly, Apple makes an exception for their first party apps.

Re:Firefox 80 on Tuesday August 25, 2020 @02:55PM (#24274703)
Out of curiosity, how many windows/tabs? I routinely launch FF with dozens of windows/hundreds of tabs and I've never had macOS kernel panic in that case.
Re:I Want Off Mr. Golang's Wild Ride on Friday February 28, 2020 @12:38PM (#22444537)
Curious: what is your definition of strongly typed, contrasted with weakly typed? How about static vs dynamic?
Re:Let's Destroy C on Thursday January 30, 2020 @12:49PM (#22193446)
I haven't actually watched it in a while, but are you referencing this talk by Chandler Carruth? https://youtu.be/yG1OZ69H_-o
Re:How to Exit Vim on Wednesday January 08, 2020 @01:35PM (#21994343)
Unfortunately:

  E183: User defined commands must start with an uppercase letter

Older »