HNHacker News
TopNewBestAskShowJobs

darnir

249 karma · joined November 2, 2016

submissionscomments
darnir··on Linux 7.1
Funnily, I have been that guy at the last 3 places I've worked at. Every place has some amount of cruft code, and I love sniffing it out and deleting it.
darnir··on Show HN: WhatCable, a tiny menu bar app for inspecting USB-C cables
If you end up doing that, please post it here. I'd be a very happy user of that extension
darnir··on Trump to impose $100k fee for H-1B worker visas, White House says
Uhh. No. That's a common misconception held by people that don't actually read their T&Cs. Your worth authorization is tied to "a" employer for the first two years. The employee is completely free to quit and enter into a contract with another employer. All you have to do is go get the name of the employer updated. It's just a formality and nothing else.

Yes, you have three months to find a new job if you're fired, but it's Europe, you most likely got at least a 3 month notice as well.

darnir··on Annotated Unix Magic Poster
One of the previous times this was posted, someone offered to print and ship them. I got a A2 sized canvas print. It hangs in my home office now.
darnir··on I struggled with Git, so I'm making a game to spare others the pain
Anecdata don't make facts
darnir··on 3 in 10 Companies Currently Have Fake Job Postings Listed
I applied to one of those positions at Canonical. Their hiring process is so bad, I noped out. No wonder they have open positions all the time, since serious engineers are not going to put up with those shenanigans.

What does my high school GPA and traits have to do with my work as a senior kernel engineer? It reeks of cliques and I want nothing to do with it.

darnir··on How to download a copy of a website using Wget
It should not break `--page-requisites`. If it does please file a bug report with a reproducer
darnir··on How to download a copy of a website using Wget
That's pretty easy with Wget. You can use `--accept-regex` to define the paths your recursion should follow.
darnir··on Jeff Lawson buys The Onion
Just a heads up, but you've swapped the links and the titles.
darnir··on Autoconf makes me think we stopped evolving too soon
That's a very nice summary. But you're missing one crucial point. These are GNU tools and if you use them within that ecosystem, you also often use gnulib.

Gnulib is effectively the GNU Portability Library. Your fancy, new, auto generated configure script can find all the differences, but someone still needs to account for them and write alternative code to support the various platforms. This is where gnulib comes into play. It reads all the configure checks and plugs in replacements / stubs for whatever is different. This allows you, the developer to simply target GNU/Linux in your code while gnulib handles everything else (and pretty automatically) making is portable across all the unices and even non UNIX systems.

darnir··on Debian on xz-utils: revert to version that does not contain changes by bad actor
Well, yes. And I chose to exercise that right.

The point of the anecdote is to supplement the parent poster by stating that their hypothetical scenarios are already happening.

We should have better testing and more eyes on incoming code for projects we depend on. But my point I guess is that vetting maintainers is not an option.

darnir··on Debian on xz-utils: revert to version that does not contain changes by bad actor
This exact thing happened to me. I maintain a fairly popular free software project. A few years ago, I received an email from a nasa.gov domain claiming that they want to use the project internally and are auditing all their suppliers. They wanted documentation on me and on how I audit my supply chain for the project. Not cool. I don't have time for these shenanigans in my personal time.
darnir··on CLI user experience case study
That used to be a fairly common standard. You'll notice nearly all the old GNU / BSD tooling use this paradigm. It is even codified in GNU's coding principles. In fact, when you do that, you can even merge all the single character flags together. For example, I can type, `ls -lah` instead of `ls -l -a -h`. Pretty handy.

My pet peeve is commands not supporting -h for help and making me write --help. This is especially worse when the command already supports single character arguments.

darnir··on Paperless-ngx – Open source document management system
Specifically in the case of paperless-ngx, I use their export facility from a cron job. The export is plaintext and contains all the information needed to recreate the postgres db and the learned identifiers. In case of a disk failure (and I've had one with my paperless store), I just reimported the previous days backup from my offline backup of paperless' export.
darnir··on Paperless-ngx – Open source document management system
The only hard dependencies are Redis and Postgres. The official stance is to run them from the provided docket compose and the container for paperless-ngx itself is kept updated and working for the stable containers of redis and postgres.

Tika and Gotenburg are additional features for scanning and converting MS Office documents to PDF. Not necessary and I don't use them in my setup at all. Same with sftpgo. I'm not sure for its usecase. But paperless doesn't directly depend on it in anyway.

darnir··on The curl-wget Venn diagram
Yes, you can :)
darnir··on The curl-wget Venn diagram
A new option to strip query parameters from the output filename would be interesting. But its not so simple. When combined with recursion, one will often see a lot of pages with the same name but different query parameters. How should they be stored on disk? There's a couple of different issues I can think of.

However, if the potential issues can be resolved with sane defaults, I think this would be a great new switch to add.

darnir··on The curl-wget Venn diagram
The -O option, not the -o option. The capital O sets the output file, while the small o in your comment sets the log filename.
darnir··on The curl-wget Venn diagram
Wget will give you an equivalent with the --content-dispisition flag. I would like for it to be the default, but it would likely break backwards compatibility with some scripts that except a different output filename.
darnir··on Ask HN: Share a shell script you like
If you like the timestamp function, this is available as a tool in the `moreutils` package as `ts`. You can simply pipe the output of any command to ts and have a timestamp prepended to each line it outputs. Extremely useful for streaming logs
darnir··on Why the AGPL is often unenforceable (2015)
You're absolutely correct and if I'm not wrong this is a common loophole used by companies to get around the AGPL (when they really want to)

That is, contract the development to a third party. Let's say A wants proprietary modifications to an AGPL product (X). A contracts B, a solutions provider to make the changes. B is legally required to provide the changes to their X.1 product to anyone that uses it. However, only A is their direct user. Now since A did not modify X to X.1 they are not required to provide a direct download link in the application to the sources for X.1

I'm unsure if GPL style protections still apply and I as a user can request the sources from A by making an explicit request. (I guess not, since they never shared the application with me, only access to it via the network)

darnir··on A definitive guide to Docker in 2023
I thought this was an exaggeration and decided to read it nonetheless. Nope, you're right. It's a fluff piece that's extremely low signal to noise.

Large parts of it are long winding without getting to the point and then it suddenly moves to using terms that haven't been introduced.

Avoid this piece.

darnir··on A confession exposes India’s hacking industry
I wouldn't say its siloed off. Its often on popular forges like Github and Gitlab. But also on smaller ones like sourceforge, GNU Savannah, sourcehut, etc. My point being that a lot of the free software movement in India doesn't create the hot new Rust / Go app. Its more focused on smaller things or on using the existing tools
darnir··on A confession exposes India’s hacking industry
I don't know about the others, but there are indeed people like me in India developing and maintaining non-cool, not on Github, free software. If you're here on Hacker News, there's actually a pretty good chance you've run, directly or indirectly, code I've written without even registering it.
darnir··on Show HN: Open sourcing Harmonic, my Android Hacker News client
I'm glad you liked it. But I'm curious, why would you want to avoid f-droid builds?
darnir··on Show HN: Open sourcing Harmonic, my Android Hacker News client
Others have mentioned Materialistic and Glider. Both are great options that I used for a few years. However, I've recently changed to Hacki. It's also in the core F-Droid repo and works great for me as a HN client. Since it will even try to notify you of replies
darnir··on Implement DNS in a Weekend
That is an excellent website. Thank you for bringing my attention to it
darnir··on Show HN: All desktop software calculators are wrong, so I had to build my own
Its still unreadable on mobile. 10% or less of the screen is being used for the text
darnir··on Show HN: All desktop software calculators are wrong, so I had to build my own
The website layout is absolutely broken on Firefox on Android.
darnir··on Ask HN: What is the best but the simplest way to host NextCloud for a family?
The simplest would be to let someone else host it for you. There's a lot of decent nextcloud hosts out there.

I believe Hetzner just revised their pricing and are amazingly competitive.

Page 1 of 2Next →