News for hackers. Stuff that matters.

meribold

Re:Pushes to arch AUR are suspendended right now. on Sunday August 02, 2026 @03:18PM (#49147430)
The explicit expectation with the AUR has always been that you can't blindly trust the PKGBUILD files. It's more like running an installer from a random website on Windows than it is to using official distro repositories. I think the wiki also always advised against using AUR helper tools that blur the lines between official repositories and the AUR.
Re:It's time to talk about my writerdeck on Sunday May 24, 2026 @07:04AM (#48256286)
Lots of comments here are also massively overestimating the amount of time/effort that creating this setup required.
The new latest version (commit 806789e4d454b, 307 bytes) should also work. It no longer sets p_memsz to something unreasonably large, which was most likely the issue with the 301-byte and 298-byte versions from a few days ago.
I fixed the most likely culprit now (excessively large p_memsz value). It cost a few bytes; the new executable size is 307 bytes.
Looks like I may have stretched what values are acceptable for p_filesz/p_memsz too far. What's your kernel version? (I tested it on 6.8.0 and 4.4.0.) Perhaps the 316-byte version at commit 451827cfd5399074 (before that particular hack was introduced) would work.
GP is likely referring to how fields in the ELF and program header are abused for instructions and data in a way that happens to not break things on Linux.
If the savings are about `mov $1, %edi` and `mov $10, %ecx`, those 32-bit immediate values line up with the higher bytes of p_filesz and p_memsz in the program header, which have to be zero [1]. If not, what are they? :)

[1]: https://github.com/meribold/btry/commit/8ef5a4ce58ae73c489d2...

My terminal "warns" about them thanks to using a bitmap font that has no (significant?) Unicode coverage beyond code points 0 to 255.
Re:The all-in-one PC: Raspberry Pi 500 on sale now at $200 on Friday September 26, 2025 @06:07AM (#45384758)
This seems like it would be great together with a pair of display glasses (like those from XREAL, for example). But I wish it had a TrackPoint.
Re:GPT-5 on Thursday August 07, 2025 @06:20PM (#44831096)
Sad to see GPT-4.5 being gone. It knew things. More than any other model I'm aware of.
Re:Dotfiles feel too intimate and personal to share on Wednesday August 06, 2025 @01:30PM (#44815021)
Such a nefarious package could also read browser cookies, SSH keys, emails, photos, and a million of other things.
Re:The Append-and-Review Note on Saturday July 26, 2025 @11:01AM (#44694621)
That depends on the messenger app. Telegram, for instance, supports backing up messages as HTML and/or JSON.
Re:The Append-and-Review Note on Saturday July 26, 2025 @09:15AM (#44693848)
> person who managed to put their words online

He also managed to do quite a lot of other things: https://en.wikipedia.org/wiki/Andrej_Karpathy

Re:The Append-and-Review Note on Saturday July 26, 2025 @09:04AM (#44693801)
This system seems quite similar to sending messages to oneself on Signal/Telegram/whatever. What I like about using messenger apps is that every note gets a timestamp and that messenger apps are, in my experience, more polished than note-taking apps.
There are screen-locking programs that don't hide what's on the screen (for example `alock` and `xtrlock`). So you can use one of those in a script that also launches this tool.
Re:Undergraduate Upends a 40-Year-Old Data Science Conjecture on Tuesday February 11, 2025 @10:58AM (#43014371)
Good point. Perhaps we could store the length of the common prefix from the last time we went left as well as from the last time we went right. The minimum of those two should remain a common prefix with the search key for the rest of the lookup and should therefore be safe to skip during subsequent comparisons.
Re:Undergraduate Upends a 40-Year-Old Data Science Conjecture on Tuesday February 11, 2025 @07:53AM (#43012199)
You don't need to compare the whole key most of the time. I think the amortized cost for a comparison is in O(1).
What's better about the T440 compared to the successors up to the T480? I'd consider the T440 a low point due to the lack of TrackPoint buttons.
> "git oldest-ancestor brancha branchb" does what it says.

The oldest (common) ancestor of two revisions would typically be the initial commit. I assume your alias really finds the last (most recent) common ancestor. But are you aware of the `git merge-base` builtin? Your alias looks an awful lot like it.

> I had to have a multi-day argument over the precise way to define constants in Perl

Couldn't you have used whatever the other person was suggesting even if the change was pointless?

Re:Why I Prefer RST to Markdown on Wednesday July 31, 2024 @05:49PM (#41123838)
Maybe Markdown doesn't allow arbitrary nesting of inline markup, but the combinations I actually wanted so far work. With reStructuredText, OTOH, I ran into limitations even though I didn't try to commit typographic atrocities.
Re:Why I Prefer RST to Markdown on Wednesday July 31, 2024 @01:50PM (#41121440)
Wasn't reStructuredText the one where you can't make text a link if any of it is bold/italic/monospaced? IIRC, nesting of inline markup is generally not possible. It works in Markdown…
Re:Microfeatures I Love in Blogs and Personal Websites on Sunday June 30, 2024 @11:02AM (#40837539)
I tried figuring out whether Firefox can be made to never open a new tab in response to a normal left click on a link. The advice I found is setting `browser.link.open_newwindow.restriction` to 0 and `browser.link.open_newwindow` to 1 in about:config [1]. But it works a little too well: clicking on a link outside of Firefox also no longer opens a new tab.

[1]: https://superuser.com/questions/260129/open-link-in-the-same...

Re:Notes on implementing dark mode on Friday June 28, 2024 @02:08PM (#40823280)
There's one more detail along the lines of theme changes in other tabs and theme preference changes from the OS/browser: activating the correct theme following history navigation. When I navigate to another page of the author's site, change the theme from light to dark, and then use my browser's back button, I get the light theme again. On my own site I use the `pageshow` event to fix this (https://github.com/meribold/meribold.org/blob/afe6885/_inclu...).

The extra effort is only needed on Firefox and Safari, though. Chromium already handles this somehow.

Older »