HNHacker News
TopNewBestAskShowJobs

l0b0

4,468 karma · joined June 6, 2016

Blog: https://paperless.blog/

My book, The newline Guide to Bash Scripting: https://www.newline.co/courses/newline-guide-to-bash-scripting

[ my public key: https://keybase.io/l0b0; my proof: https://keybase.io/l0b0/sigs/-sU_dPlI9HzZthatZd5JCO9gZLIX2_pvhEeNmJDCjLQ ]

submissionscomments
l0b0··on I won't be renewing my Pinboard subscription
Hopefully coming soon to your favourite distro: https://github.com/NixOS/nixpkgs/issues/341665 :)
l0b0··on Nightly Rust Development with Nix
Self-posting this, mostly to hear if there's anything wrong or suboptimal about this solution. I've been using Nix for a bit, but I'm almost completely new to Rust.
l0b0··on IKEA launches secondhand marketplace to compete with eBay
I assume so, because I've done it (repeatedly) and there's never any glue involved. The Billy book cases used nails for the back board, but it's easy to get those out by tapping the board from the front.
l0b0··on Please do not attempt to simplify this code
Some of this looks real bad though, like `if !found … else …`. Why the double negative, when you're going to have both branches anyway?
l0b0··on For advertising, Firefox now collects user data by default
On NixOS, set

  programs.firefox.policies.Preferences."dom.private-attribution.submission.enabled" = false;
(https://gitlab.com/engmark/root/-/commit/bbb3ff9efb878ddda38...)
l0b0··on A bunch of programming advice I'd give to myself 15 years ago
Agreed. "Perfect" code doesn't exist, but good code is written with the understanding that bugs happen, and exposes information at the right level for people to get the feedback they need, when they need it.
l0b0··on Parable of the Sofa
I bought an IKEA 2-seat sofa + 3-seat sofa bed in 2005. I tightened the bed springs maybe five years ago, and cut a piece of plywood to put between the bed and cushions to heighten them and to avoid constantly wearing the springs. Aside from that, it's been moved four times, never had a rip, and still looks pretty new except for a little scuffing on the corners. The thing is rock solid, and some of the best money I ever spent.
l0b0··on Leaked OpenAI documents reveal aggressive tactics toward former employees
I would like to answer that, but OpenAI could probably spend $100,000 per detractor to crush them and still laugh all the way to the bank.
l0b0··on Caniemail.com – like caniuse but for email content
Is there something like this for features techies might care about? Like some sort of guarantee of at-rest encryption, SMTP/IMAP/POP/etc support, end user encryption, reasonably fast search, backup/restore, etc.

GNOME Evolution and Thunderbird, at least last I used it, have abysmal search speed, taking seconds to search through a local DB of a few thousand emails. So they're clearly using search tech much inferior to a local DB with indexes.

l0b0··on Simplicity is an advantage but sadly complexity sells better (2022)
These weren't fatal to the project or team, but did contribute extra work for net negative value (slower & more maintenance, with no relevant extra features):

- Using Kubernetes to host an application when Docker Compose would do (specialist application with <10 concurrent users).

- Using DynamoDB to store a few kB of temporary data in a processing pipeline, despite having several existing PostgreSQL instances already and no DynamoDB ones.

l0b0··on Scripts should be written using the project main language
Much more nuanced, thank you! For one thing, you need a language to bootstrap your environment in dev envs and CI. You wouldn't want to write a Python script which has to support a bunch of minor versions (with vastly different capabilities) just to run `poetry install`.
l0b0··on What are the "worst" spelling bee pangrams?
[1] has a couple of references to lists of common words used as inspiration.

[1] https://gitlab.com/engmark/xkcd-passphrase-generator

l0b0··on Nix is a better Docker image builder than Docker's image builder

  >  I spent a half a day or so relatively recently trying to build our CI base image with Nix (at the recommendation of our infra team), but it was huge, and some stuff didn't work because of linking issues.
You must be talking about the official Nix Docker image[1], which indeed is huge. I've been using it for years for a handful of projects, but if the size is an issue you can use the method mentioned in the article and build a very minimal image with only the stuff you specify.

[1] https://hub.docker.com/r/nixos/nix/tags

l0b0··on Nix is a better Docker image builder than Docker's image builder
Where on Earth are you getting that result from? [1] gives an 11 MB image.

[1] https://nix.dev/tutorials/nixos/building-and-running-docker-...

l0b0··on I'm excited about Darklang
GitLab Pages lets you use your own domain. I do for my blog, and it was super easy.
l0b0··on Read it never
No, for the main reason that when I do want (and have the time) to read about some topic, finding the good stuff is actually really hard. Keeping a record of promising and already read things (marked appropriately) has been immensely useful.
l0b0··on Flexible schemas are the mindkiller
I suspect the idea of effort being valued in itself has something to do with it. The more effort it takes, the more worthy must be. The alternative is to admit that the work was wasted, is wasted, and will continue to be wasted until the org dies or someone gets so disgusted with the status quo that they invoke the gods of sunk cost, flushing the whole thing down where it belongs.
l0b0··on Programming book authors: put all the code in the book
Done & done. This was one of my own bugbears. Thankfully Bash does not have a lot of boilerplate.
l0b0··on Open Source Games
Mostly broken :(
l0b0··on Figure out who's leaving the company: dump, diff, repeat
Now to figure out how the frig to implement this at $work.
l0b0··on Billion file filesystem
If you have GNU find,

  find . -mindepth 1 -maxdepth 1 -printf x | wc -c
performs about the same and includes dotfiles (not "." or "..", though) in the count.
l0b0··on Ask HN: Does Microsoft Teams work in Firefox for you?
Just `pkgs.firefox`. I don't use Wayland, as mentioned, because of the screen sharing issue.
l0b0··on Ask HN: Does Microsoft Teams work in Firefox for you?
WFM on NixOS unstable. To use screen sharing I need to log into GNOME with X, not Wayland.
l0b0··on A Theory of Grift
Which is literally impossible to answer, because we don't have access to counterfactual statistics.
l0b0··on A Theory of Grift
Which one of those has killed the most civilians since 2003?
l0b0··on Bug Thread
:shudder: It's the next generation of Rickrolling.
l0b0··on Bug Thread
Or the not-so-fun version of that, finding the question I posted on Stack Overflow years ago with zero answers. :cry:
l0b0··on Ask HN: How can I make local dev with containers hurt less?
Nix shells are excellent for this. See simple [1], intermediate [2], and complex [3] examples.

[1] https://gitlab.com/engmark/engmark.gitlab.io

[2] https://gitlab.com/engmark/mypy-exercises

[3] https://github.com/linz/emergency-management-tools

l0b0··on Generating SVG for the prime knots
Love the double hearts in https://prideout.net/blog/svg_knots/knots/8_5.svg
l0b0··on Show HN: I made an interactive math crossword puzzle with infinite levels
Try swapping the 1 and 7 :)
← PreviousPage 2 of 32Next →