Recent submissions

Comment · 20 days ago
Comment · 1 month ago
The first iteration has a 100% chance of being marked as a winner. It only balances out to the same odds as a random selection because of the chances of it getting overwritten by the succeeding files.
Comment · 1 month ago
There is a setting for it, it's just not exposed in the GUI.

sudo pmset -a disablesleep 1

As mentioned by the other commenter, `caffeinate -s` also works, but with the caveat that a) the command has to be running and b) the laptop has to be plugged in to power. Configuring disablesleep=1 completely prevents sleep and lasts until you manually configure it back to 0.

Comment · 1 month ago
Their post history has several posts related to PostmarketOS on the Fairphone, so kind of, possibly? pmOS does have Waydroid to run Android apps, though, which also relies on AOSP.
Comment · 2 months ago
Haven't they? Tahoe was released which had quite a negative reception, widely considered a regression in terms of performance and UI/UX, while Linux has been gaining significant traction (especially in the gaming space).
Comment · 2 months ago
Ctrl-P-A then typing sudo is just as easy, it's simply up to preference
Comment · 3 months ago
HN has an official API that returns JSON objects.

Meanwhile Google actively blocks and attempts to pursue legal action against scrapers. Not to mention prohibiting it through TOS (getting your Google account revoked can be life-ruining for many people).

Comment · 4 months ago
The scenario described in the OP does not involve commenting on a private video. It involves commenting on any public video, then the uploader clicks on a suggested prompt in YouTube Studio which supposedly processes the comment and creates a URL with the title of a different video.
Comment · 4 months ago
Comment · 5 months ago
> little do they know Ruby is a slower language than Go

Isn't it generally expected for a feature-packed interpreted language to be slower than a minimal compiled language?

Comment · 5 months ago
`caffeinate` is primarily designed to prevent sleeping due to inactivity. It doesn't prevent sleeping due to lid closure while on battery.

`sudo pmset -b disablesleep 1` (0 to revert) works, although it doesn't exactly roll off the tongue.

Comment · 6 months ago
Not really. From my understanding, in AP, your account belongs to an instance and your data is then synced to other servers. If the instance goes down, your account is gone.

In ATP, your data is stored in the "Atmosphere", hosted on decentralized "Personal Data Servers" (PDS). The app then simply parses and filters that data. They can apply moderation actions by choosing not to display or read certain posts, but your data still exists and another app could choose to display it. Similarly, if the app goes down, your data is still perfectly intact in the Atmosphere.

It might then seem like the PDS is equivalent to an AP instance, but as mentioned, they are decentralized. Identity is verified through signatures, so if your PDS goes down, you can migrate to a new one as long as you have your signing keys. Therefore, the account belongs to you and not any specific server.

Comment · 6 months ago
Ah, right. It would have to be `strings -n 1`, then.
Comment · 6 months ago
The implication is that the random-looking data did not contain ASCII characters other than the parts of the flag
Comment · 6 months ago
Wouldn't strings(1) have worked for this?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton