HN user

agateau

537 karma
Posts21
Comments51
View on HN
agateau.com 2mo ago

In Praise of Aegis Authenticator (and KDE Connect)

agateau
3pts0
agateau.com 3mo ago

Commit Messages

agateau
2pts0
gitlab.com 1y ago

Show HN: Regex Night: regular-expression pretty printer and linter

agateau
3pts0
agateau.com 2y ago

Clyde: A cross-platform package manager for pre-built applications

agateau
4pts0
agateau.com 3y ago

The gentle art of making patches easier to review

agateau
1pts1
shop.fairphone.com 3y ago

Fairbuds XL Headphones – repairable headphones

agateau
5pts0
github.com 3y ago

Show HN: Tmfi: The Missing Firefox Installer

agateau
2pts0
github.com 3y ago

Show HN: Clyde, package manager for prebuilt applications

agateau
2pts0
agateau.com 4y ago

Git log is not a changelog

agateau
124pts88
agateau.com 5y ago

Automatically publishing your build artifacts

agateau
23pts5
github.com 5y ago

Show HN: Git uff – get the URL for a file from a Git checkout

agateau
2pts0
agateau.com 5y ago

Donation page "not compliant with Google Play Policies"

agateau
346pts290
agateau.com 5y ago

Show HN: Git-bonsai, a tool to clean your Git branches

agateau
1pts0
agateau.com 6y ago

Simplifying unit tests using a custom markup language

agateau
1pts0
agateau.com 6y ago

Generating reports with Python, Markdown and entr

agateau
4pts0
github.com 7y ago

Show HN: Nanonote, a minimalist note taking application

agateau
5pts0
agateau.com 7y ago

Building Qt Apps with Travis CI and Docker

agateau
2pts0
news.ycombinator.com 8y ago

Ask HN: How do you use metrics reported by your products?

agateau
1pts0
medium.com 9y ago

Gnirehtet – Reverse-tethering tool for Android

agateau
64pts13
peppercarrot.com 9y ago

My fight against CDN libraries

agateau
298pts141
news.ycombinator.com 9y ago

Ask HN: Do you log your time at work?

agateau
25pts25

Most LLM articles depress me. At least this one made me smile, even if it's more about turning a dog into a random generator and generating games from random input.

I have a very long regular expression (email validation of course) that doesn't fit on one line but no solutions I have found properly break the lines on page overflow.

Have you considered manually splitting the regular expression into multiple lines in the source document, using something like the `VERBOSE` mode from Python re module [1]?

[1] https://docs.python.org/3/howto/regex.html#using-re-verbose

I loved my HP 48G when I was in school (even if it was much slower than the Ti 81 it replaced when it came to graphing). I regret throwing it away because of the nostalgia, but I don't feel a need for using it these days.

As such I am genuinely curious about what rewards you get from using an engineering calculator in your work. That's an honest question: I would really like to have an excuse to get my hands on a 48G again!

A little known fact about executables on Windows is that while it's not possible to remove a running executable, it's possible to rename it.

I use this in Clyde [1]: on Windows, when clyde needs to upgrade itself (which means uninstalling vN and installing vN+1) it renames itself from `clyde.exe` to `_clyde.exe`. I leave the old `_clyde.exe` around, but a nicer implementation could remove on the next start.

[1] https://github.com/agateau/clyde

I use ripgrep everywhere, not only in my own repositories, so the first approach won't work for me. The second one, on the other hand, sounds like a really good idea, going to look into it, thanks.

And of course, thanks for this wonderful tool!

I love that ripgrep honors .gitignore, but the fact that it skips hidden files is annoying because of questionable decisions from tool makers who insist their configuration files should be hidden files. It is especially infuriating when working with GitHub and GitLab configuration directories. On the other hand I never want ripgrep to enter the .git directory.

I recently came up with this alias to make ripgrep do what I want: do not skip hidden files, except for the .git directory:

alias rg="rg --hidden --glob '!.git/'"

(Note: if you try entering this alias interactively, you may have to escape the '!'...)

This is the kind of tools I dislike. It does generate a "nice looking changelog", but the result is not as useful as a separately written changelog, because the content is not curated, so the signal-noise ratio can be quite high.

(Author here) Yes, "release notes" is probably the appropriate term. The issue remains however: many projects generate their release notes from their git commit messages.

Regarding the conflicts issue, this is where tools like Changie can help: instead of modifying one single file, every merge adds its own separated entry. They are then assembled together at release time with `changie batch $VERSION` to produce a single file for $VERSION, then merged into the global changelog/release notes file with `changie merge`.

I very much agree with this. Sometimes it's good to stop and think about what is lost when automating a task instead of doing it manually.

(author here)

I thought I would answer to some of the comments here.

It's their place, their rules

Definitely true. And I am not going to try to go against those rules. But I believe I am allowed to voice my opinion about them.

Use in-app purchases instead

This is definitely a valid option, but that requires diving into Google Pay, which from what I understand is not the easiest API to work with. It also means I have to maintain additional code for Google Play. More not-so-fun work to do for a side project.

Make it a paid game

Another valid option, but given how everybody is used to free games on Android, I doubt it would get much success. It also does not help that Google Play disallows switching a published app from free to paid and vice-versa: it's a one-way decision.

I might end up going that way though, because it has the advantage of not having to write store-specific code. Pixel Wheels is not Android only: it also works on Linux, Windows and macOS, so not having to deal with store-specific requirements gives me more time to work on the game itself. The game would still be available for free on F-Droid and for pay-what-you-want on itch.io.

I also happen to run other open-source projects, and my goal with donations is to get people to support this open-source work, not just my work on this particular project. I don't expect to ever live from this: in my wildest dreams donations would let me spend a work-day per week or every two weeks to work on open-source projects.