News for hackers. Stuff that matters.

L3viathan

Option-Shift-Hyphen.

Just --- only works when you have the text replacement thing on (the same thing that turns (C) into ©).

That sample was complete though as long as there wasn't too many tweets. I.e, as long as your query was specific enough, you _did_ get all tweets.
Re:Look, Another AI Browser on Wednesday October 22, 2025 @02:31PM (#45673255)
Firefox still exists.
Re:Show HN: Uber for Flights on Friday October 03, 2025 @07:22AM (#45461599)
Why does it have to have a chat interface? What's wrong with entering airports in different fields? I'm not convinced it's needed for a "routine trip" feature, you could just have some sort of bookmark feature..
Re:Debian 13 "Trixie" on Sunday August 10, 2025 @08:36AM (#44854776)
You uninstall all snaps, uninstall snapd, and block it from being installed via APT.

Then you add e.g. the mozilla PPA such that its firefox package gets installed instead.

Re:HTMX is hard, so let's get it right on Monday August 04, 2025 @08:47AM (#44785071)
You can do that if you want to. It'll just be slower.
While true, that is true for everyone, there's no special law about police.
Re:Too Many Open Files on Friday June 06, 2025 @07:08PM (#44205957)
Nitpick, but:

> At its core, a file descriptor (often abbreviated as fd) is simply a positive integer

A _non-negative_ integer.

> more people have an intuitive sense for how heavy a ton is compared to elephants

Yeah, I think most elephants don't have a good sense of _any_ man-made unit.

Re:Discworld Rules on Sunday March 09, 2025 @02:06PM (#43311898)
> It isn’t, like, a hidden fact or anything.

It really is, in-universe. Almost noone knows this save other maiar. The wizards are perceived as men by most people, them being maiar is far from common knowledge.

Re:How X-Plane Works on Wednesday February 19, 2025 @06:59AM (#43101131)
As a Mac user, your best bet is probably X-Plane. There's only a few short tutorials, but given your history you should have no issues :)
Re:Valve releases Team Fortress 2 game code on Wednesday February 19, 2025 @02:48AM (#43099703)
Well in a sense you are right that it is lazy, in that it would be quite a lot of work to disentangle those parts.

So they could probably do it, but it would be costly, while just releasing the TF2 code is basically free.

Re:Markdown's Big Brother: Say Hello to AsciiDoc on Thursday February 06, 2025 @07:34AM (#42961766)
Only technically.

By that name, yes, but much of Markdown was "discovered" rather than invented, having been used in email/newsgroups/... for a long time.

Re:Ruff: Python linter and code formatter written in Rust on Tuesday January 21, 2025 @04:58AM (#42778251)
The point they're trying to make, I think, is: Black/Ruff format, or any other formatter necessarily need to operate on universal rules. In context, sometimes these rules don't make sense. I still would love some kind of stateful linter and formatter, where it suggests me changes that I can then accept or ignore (and won't be told about again).

Formatters _are_ a compromise. They make your coworkers' code nicer, and your code worse.

At the very least they could trigger a real qualified human review of it immediately.
Re:Just: Just a Command Runner on Saturday December 07, 2024 @04:54PM (#42353144)
You can put `./scripts` in your $PATH, if you want.
Re:I made an ls alternative for my personal use on Sunday November 24, 2024 @03:25PM (#42230228)
I think ripgrep specifically is counted in the comment you reply to as a tool that _does_ do one thing well, and that one should use it (or grep) in combination with an ls, instead of giving ls filtering abilities.
Re:Go-Safeweb on Thursday November 14, 2024 @03:18AM (#42134122)
> as there's no guarantee it will be maintained

As opposed to official projects like Allo, Wave, Reader, etc. that will?

> if you [] live in a country where it is just easy to cross borders as a part of life, [] providers still charging ridiculous fees

What places other than the EU does the "easy to cross borders as a part of life" apply to?

Re:Building a Single-Page App with Htmx on Monday October 07, 2024 @01:20PM (#41768396)
While I agree with this project being a bad idea, both 1 and 2 are addressed by HTMX itself, via hx-preserve and Out-Of-Bounds swaps.
Huh? Messing with the system Python install absolutely can break your system.

Just use venvs, or install separate Python versions for development e.g. via pyenv. You likely don't want to use the relatively outdated Python version shipped with Debian anyways.

Re:Eza: A modern, maintained replacement for ls on Monday July 22, 2024 @01:39PM (#41037129)
Steam Locomotive, an annoying little ASCII art film to punish you for typos. Funny exactly once.
Re:Eza: A modern, maintained replacement for ls on Monday July 22, 2024 @01:33PM (#41037062)
It's saying "modern, maintained", implying that ls is either not maintained (wrong), or ls is not modern (can be argued to be true). Only one of those two properties need to hold for the entire label to fit.
> Going from 1 install to 270 installs is a 270% increase

No, it's a 270x increase. In percent that's much higher.

These kind of things are also why four colours are actually _not_ always enough, in the real world. Countries can have exclaves :)
Re:Python: 10 Cool Tricks with the * Operator on Tuesday June 18, 2024 @11:59AM (#40719331)
> any generator. For example, the classic range

`range` is not a generator.

Regarding number 8, instead of `Counter` you can also use dicts:

`unique = list(dict.from_keys(iterable))`

Re:How to Untangle Phone Numbers on Thursday June 13, 2024 @05:22PM (#40674935)
Maybe not a regular customer, but there's other reasons you might have a phone field:

> In Israel, certain advertising numbers start with a *.

> In New Zealand, non-urgent traffic incidents can be reported by calling *555 from a mobile phone.

Re:iOS404 on Tuesday April 16, 2024 @07:19AM (#40050654)
The counter-proposal is: don't do it. This comment by the Apple guy sums it up well IMHO:

> Colleagues and I have discussed this and don't see a way to grant write access to the end user's local file system in a way that safeguards the end user's interests.

Re:iOS404 on Tuesday April 16, 2024 @05:54AM (#40050147)
Because there's typically at least a minimum of safety checks before an app can go into the app store, whereas a website can do whatever it wants (and can).
Re:The Disappointing Tea.xyz on Tuesday February 27, 2024 @03:14AM (#39521468)
Likewise. I _did_ sell those stellar tokens they gave to (longtime?) users for about 50 bucks though, before deleting my account.

Older »