News for hackers. Stuff that matters.

greenmartian

Re:Solving Wordle with uv's dependency resolver on Thursday July 10, 2025 @02:57AM (#44518106)
So I use the same extension and this piqued my interest. On a standard website, FoxyGestures will pop a status box at the bottom, with the gesture you just drew (UDUDLRLR etc). This is done by appending a div at the end of the html body.

It so happens that the website has a CSS style[0] for the last div in the body with no class and no id (search for `body>div:last-child` in the css) - and use it to indicate "admonition-danger" (maybe to show errors?).

[0]: https://mildbyte.xyz/main.css

Re:Nvidia Is Full of Shit on Tuesday July 08, 2025 @10:57PM (#44505976)
I just read your comment today. And the good news is, someone just found the commit that triggered the sleep issue literally a couple hours ago. Fingers crossed a fix is incoming.
In `pwsh` (that's the xplat version of powershell, v7+), default encoding for Out-File is `utf8noBOM`.
Re:Recent AI model progress feels mostly like bullshit on Monday April 07, 2025 @01:20AM (#43608001)
When told, "only room for one person OR one animal", it's also the only one to recognise the fact that the puzzle is impossible to solve. The farmer can't take any animals with them, and neither the goat nor wolf could row the boat.
Re:Recent AI model progress feels mostly like bullshit on Monday April 07, 2025 @01:04AM (#43607910)
Weird thing is, in Google AI Studio all their models—from the state-of-the-art Gemini 2.5Pro, to the lightweight Gemma 2—gave a roughly correct answer. Most even recognised the packing efficiency of spheres.

But Google search gave me the exact same slop you mentioned. So whatever Search is using, they must be using their crappiest, cheapest model. It's nowhere near state of the art.

Re:How I pwned a major New Zealand service provider on Thursday March 27, 2025 @08:49PM (#43500081)
> .. Australia could improve a lot but hotels will take a credit card scan

I've not had this done to me in Australia since late 90s early 00s. These days all it takes is a simple tap (or chip swipe) to put a temporary Hold[0] that's released on check-out (or next day).

[0]https://en.wikipedia.org/wiki/Authorization_hold

Re:In Defense of Text Labels: Why Icons Alone Aren't Enough on Monday February 24, 2025 @12:11AM (#43156008)
Ironically, Visual Studio introduced monochrome icons in the early 2010s, and the protestations were so deafening that they introduced colours back in.

Fast-forward a decade, and nobody even bats an eye. I also struggle visually navigating around VSCode when I'm not using a keyboard, but we seem to be a minority.

Re:Ask HN: Can we get a HN background color (dark mode) on Sunday February 16, 2025 @10:33PM (#43074797)
There are two wins in this. 1) Firefox. Which means you also get the extension on mobile. 2) Dark Reader works on all websites (and you can turn it off for sites don't play well, which isn't many).
Re:Why I Hate the Index Finger (1980) on Tuesday November 19, 2024 @08:26PM (#42189938)
I've got the inverse problem. Middle is my trigger finger. And when it's tired, I fall back to using the index finger. With games that are sensitive to analog trigger levels (e.g. car throttle), it's extremely noticeable how much my precision degrades when using the index.

Always chalked it up to not enough practice. After reading this paper, I feel somewhat vindicated. It's not my fault, it's the finger's.

Re:Even Microsoft Notepad is getting AI text editing now on Thursday November 07, 2024 @09:57PM (#42083671)
MPC-HC ain't dead. It's still getting a couple updates a month.

https://github.com/clsid2/mpc-hc/releases

Re:Touchscreens are out, and tactile controls are back on Monday November 04, 2024 @12:25AM (#42038758)
I believe they removed the stalk in last year's model.
Re:The Monospace Web on Wednesday August 28, 2024 @01:37AM (#41376287)
Firefox allows users to choose a global preferred font, but also individual Serif, Sans-Serif, and Monospace preferred fonts. Which means this site, which correctly specifies `monospace` as a font fallback, does show correctly in my preferred monospace font.
>If you do the latter you'd lose automatic updates.

Obtainium[1] will give you automatic updates from most sources, including Github/Gitlab/Codeberg and F-Droid repos. Especially relevant to this discussion, since Aegis 3.0 hasn't hit F-Droid yet, as at the writing of this comment.

[1] https://github.com/ImranR98/Obtainium

Re:Kagi search reached 20k paying members on Wednesday January 24, 2024 @11:39PM (#39126255)
Interesting that HN is pinned way more than stackoverflow.
Re:Penrose – Penrose on Monday January 15, 2024 @01:42AM (#38998042)
Our team uses diagrams-as-code (plantUML) to document processes, interactions, and state machines. Because our use case is functional, they don't have to look good - just good enough and understandable.

Some reasons on why we still use them: (1) They're source-control friendly. And (2) in some cases, we could generate them directly from code. We deal with a lot of state machines on embedded devices, and whenever management asks for "documentation", we run a transformer script that consumes the source code and spits out state diagrams that would placate them.

There are some interesting points there.

1. (For those on the state-owned retailer/distributor) Although you can't be credited for any generation over 100% (up from 65%), the extra credit does carry over in a 6-monthly cycle (up from 3). Which means, while you can't make a profit out of your generation, it does cater for seasonal variations to keep your bill at zero. Not the best, but not terrible.

2. (For private retailers) As you said, there's nothing requiring them to do anything.

Also of interest is that, even with deregulation efforts in the early 2000s, the state still holds near-monopoly level of distribution/retail - especially in the residential market. The small number of private operators are either remote, or focused on industrial complexes.

On the generation side, there's plenty of major private players, but most of them simply sell to the state (again, because of the near-monopoly).

Re:The Problem with Dependency Injection Frameworks on Sunday January 08, 2023 @10:41PM (#34306477)
> Or they use macros

Dark magic is still magic...