Better HN
topnewbestaskshowjobs
Log inSign up

dllu

2,183 karma · joined Jan 13, 2012 (14y ago) · 338 submissions

http://daniel.lawrence.lu
Submissions

comment 4d ago · link · parent

Funny how GIMP spawned the Gimp Toolkit, aka GTK, which is widely used in Linux, and yet GIMP's own UI seems to have long languished as a rather outdated design. Glad that they have tests, though, and hope they continue to improve it.

comment 5d ago · link · parent

I use my Tesla Model S as a garage door opener. It has Homelink and I can trigger it from the Tesla app. Most expensive garage door opener ever.

comment 1w ago · link · parent

Pelicans still not saturated. No chain or front fork offset, and Astra added a rather disconnected detail on top of the pelican's head. Still, we've come a long way since the early days. Very exciting for the future of pelican cyclists!

comment 1w ago · link · parent

Here's a 7388 x 5097 photo I took from a friend's Cessna of the Mission from a similar angle in 2018 which provides a nice point of reference for comparing the fine details:

https://i.dllu.net/2018-04-14-23-31-28_DSC04018_6201e8e3a215...

You can see some buildings, like 350 Treat Ave, which is a white warehouse in the middle of the photo, are blended from two colors in this isometric viewer. It's yellow on the left and grey on the right, when in fact it is uniformly white throughout. This is probably due to image generation running separately on two tiles and then blending them together.

Still, from a distance, this looks great.

5.

Need for Speed Porsche Unleashed in the Browser(daniel.lawrence.lu ↗)

4 points · by dllu · 2w ago · 1 comment

comment 2w ago · link · parent

Also: https://xkcd.com/687/

comment 2w ago · link · parent

Work (energy) is force times distance. Since we're talking about energy divided by distance, it's actually just average force.

Actually newtons are just a constant factor (3.6) compared to Wh per km, since there are 3600 seconds in a hour while there are 1000 watts in a kilowatt. For example 144 Wh/km (or 14.4 kWh/100 km) would simply be 518 N. This also means that pushing along a Tesla on the highway at constant speed is roughly as hard as holding a 50 kg weight, giving you an intuitive sense of how "hard" it is to keep things moving.

Of course, in everyday life, since we buy electricity from our utilities in kWh rather than joules, it's more convenient to talk about kWh per km (or per mile).

comment 2w ago · link · parent

With dimensional analysis you can cancel it all the way out until it's just Newtons, which is actually just the average drag force times some efficiency multiplier.

comment 2w ago · link · parent

Cybertruck uses like a fifth of the energy of a full size gas pickup truck and is only like 50% more than a typical smaller sized EV. The truth is that most homes don't use much energy apart from hvac. The Chevy Bolt can also power a home for several days if you only have the fridge and lights running.

comment 2w ago · link · parent

> In today’s age of data collection and privacy concerns, I prefer to pay for my blogging platform or hosting.

Not sure if that is necessary. Tons of great static blog generators these days, like Jekyll and stuff. I personally use my own vibe-coded markdown-based one [1]

[1] https://github.com/dllu/dllup-rs

comment 2w ago · link · parent

The blog post says

> Images 2.6 is available globally today in ChatGPT and Codex across all subscription tiers on desktop, mobile, and web.

But I just updated my codex-cli to the latest version (still 0.166.0) and it is still unable to generate gifs. Very disappointing

comment 1mo ago · link · parent

Cool idea! I had lots of fun looking at stuff nearby.

Right now it seems that it simply removes links for stuff without a geotag that's nearby. But many articles are in fact nearby and are simply missing geotags, or perhaps encompass a slightly larger area where only a part of it is close by. Also, all the pictures don't have working links so I can't click on a picture to make it bigger.

comment 1mo ago · link · parent

Lack of anti cheat is rather outdated perception of Windows on Arm. Most popular competitive games like League of Legends have native arm versions now.

comment 1mo ago · link · parent

I recently had the displeasure of using Passkeys:

- trying to sign in to Okta on my personal Linux desktop computer. It has bluetooth and I had my phone right next to me, also with bluetooth turned on. But Firefox simply refuses to even show the option for "connect to your phone" or to give a QR code... it just said "tap your security key or biometric device". I had neither; my passkey is on my phone. Then it timed out and I gave up trying to log in.

- trying to sign in on my work Macbook using Google Chrome (enterprise managed one). For some reason, upon scanning the QR code, my phone was stuck on "Connecting..." and timed out. I had bluetooth turned on on both devices, they were five centimeters apart, both were connected to internet with a great gigabit connection. It turns out, I had to quit and restart Chrome and it magically started working.

- trying to sign in on my work desktop using a physical Yubikey remotely using VNC. It's not possible by design. I had to get my coworker to press my Yubikey in the office.

- trying to get Muse and OpenAI Dot to sign in using a passkey. It's not possible by design.

Generally, the user experience is really horrible with passkeys. It is also ironic that it trusts my phone (used for shitposting; easily lost or stolen) instantly, but simply refuses to trust my personal Linux desktop computer, which is fully encrypted, securely stored in my house, and contains all my life's work and everything that is dear to me.

comment 1mo ago · link · parent

I wonder if they were already training AI on decompiled games. It's plausible that the large labs are already using AI to decompile existing software way before random people on the internet found out this was possible. That would also explain why some AI are oddly good at generating video games.

comment 1mo ago · link · parent

My complaint applies specifically to the CLI. I have never used the gui app. Here are the various goal-breaking bugs I've run into:

- Goals get blocked due to .git and other stuff becoming randomly read-only when daemon auto-updates in the background (the linked issue in my comment above)

- Goals get blocked due to transient "Selected model is at capacity"

- Goals get blocked due to "Codex ran out of room in the model's context window". Somehow, both auto-compaction and manually running /compact don't work. https://github.com/openai/codex/issues/52567#issuecomment-61...

- Goals get blocked due to bwrap randomly failing with `bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted`. I traced this one to `apparmor` on Ubuntu 24.04 interfering with bwrap and found a local workaround.

comment 1mo ago · link · parent

The daemon has many bugs. For example, when auto-updating, it would randomly ruin the permissions and block the goal as .git became read-only. Generally, it is extremely annoying how many bugs Codex has. I basically can't trust it to execute on any goal since it would often get blocked every few hours due to random bugs.

https://github.com/openai/codex/issues/52251#issuecomment-60...

comment 1mo ago · link · parent

new one is actually smaller than the original (3760 mm long vs 3830 mm). but batteries and modern safety makes it heavier

comment 1mo ago · link · parent

He has a writeup about the office and desk setup too: https://arslan.io/2025/11/18/my-two-part-desk-setup/

comment 1mo ago · link · parent

Chess is an interesting case. I remember in 2023, GPT 3.5 or something used to be surprisingly good at chess. There was even a "stochastic parrot chess" website [1]. I recall it was playing decently at around a 1800 level. Even as a fairly okay player myself (2100 bullet on lichess), I struggled to beat it. However, modern LLMs are a lot worse at chess. I guess having too much chess data in the training set probably regressed performance on stuff that actually matters, like coding.

[1] parrotchess.com, no longer available. Previous discussions: https://hn.algolia.com/?q=parrotchess.com

21.

507 Mechanical Movements – in 3D(507movements3d.com ↗)

2 points · by dllu · 1mo ago · discuss

comment 2mo ago · link · parent

Yeah but on the US government website [1] it says

> Submit the original, unchanged photo.

> Do not change your photo using computer software, phone apps or filters, or artificial intelligence.

and many other countries have similar requirements.

EDIT: I just read the "Common Questions" that says: "This editor crops and centers the photo you provide and can replace the background. It does not invent or beautify a face." I guess that's not as bad then. Still mildly iffy and weird marketing though.

[1] https://travel.state.gov/en/passports/apply/help/photos.html

comment 2mo ago · link · parent

Also, I don't have a monopoly on "pictures that look like this".

Adam Magyar and Jay Mark Johnson have line scan photos in fine arts as well, and they were in fact a big source of inspiration when I started out on my own line scan journey in 2017.

- https://www.magyaradam.com/wp/?page_id=368

- https://www.jaymarkjohnson.com/works

Seth Itow, Philomena, and Elm-chan both also have hobbyist line scan camera setups:

- https://www.sethitow.com/posts/2026-linescan/

- https://philo.gay/linecam/

- https://elm-chan.org/works/lcam/report.html (be sure to scroll down and click on the train pics)

There are also Japanese rail fans:

- https://kr64.seesaa.net/ with a bewilderingly huge collection of trains all over Japan,

And faux-line scan cameras using regular video cameras, stitching together thin chunks rather than 1 px columns:

- https://railfile.jp/

- https://x.com/yamakox/status/2089934720759144653

- https://kakeyama.image.coocan.jp/index.htm

- https://trains.jo-m.ch/#/trains/list

Line scan cameras are also commonly used for machine vision in the rail industry to inspect trains for damage and detect graffiti and stuff. And conversely, line scan cameras mounted on trains are used to inspect rails and tunnels.

comment 2mo ago · link · parent

I actually reached out to Philo on GitHub Issues but she hasn't responded yet [1]. I also mentioned her cool camera on my blog [2].

By the way, I recognize your username as the person that Philo credits with "rewriting grindstone in idiomatic NumPy". That's super cool!

[1] https://github.com/FlamingSpork/grindstone/issues/1

[2] https://daniel.lawrence.lu/blog/2026-06-12-standalone-cnc-li...

comment 2mo ago · link · parent

I just set up a shop at https://shop.lawrence.lu/. I also emailed Rick Laubscher and Alison Cant at streetcar.org [1] yesterday but they haven't gotten back to me yet.

[1] https://www.streetcar.org/about-sfmsr/

comment 2mo ago · link · parent

If you want to use a regular phone or camera, check out TrainScanner!

https://github.com/vitroid/TrainScanner

It converts a regular video into a line scan style photo. It works by stitching together small chunks rather than 1px thin slices, so the background has a repetitive texture rather than being smooth horizontal stripes. But at lower resolutions, it looks similar, especially if you pick a spot with a clean background. Also the trains turn out very detailed.

Example work by Kakeyama from Japan using this: https://kakeyama.fan.coocan.jp/tec/e5e8r.htm

comment 2mo ago · link · parent

If people are moving, they may get stretched or distorted. But they won't ever get blurry, since the capture rate is like 10,000 lines per second.

comment 2mo ago · link · parent

Muni heritage weekend was shot on my new Voigtlander Apo Ultron 90mm f/2. The line scan camera's sensor is 28mm long so any APS-C lens will work, not necessarily full frame. I modded my line scan camera from Nikon F mount originally to Sony E mount so that I can use more compact high quality lenses like M mount ones.

Previously I've also used these full frame lenses:

- Myutron 50mm f/2.6 (Shinkansen N700A, SF Cable Car 2017)

- Voigtlander Nokton 58mm f/1.4 (Brisbane Queensland EMU)

- Samyang 135mm f/2 (Madrid AVE Class 102 and Shanghai maglev)

- Voigtlander Apo Lanthar 125mm f2.5 (Yamanote Line, CR400AF)

- Voigtlander Apo Skopar 90mm f/2.8 (London Tube photos)

- Voigtlander Ultron 35mm f/1.7 (Hong Kong trams)

and APS-C lenses:

- Cheecar 50mm f/1.2 (Osaka trains)

- Samyang 85mm f/1.8 CS (Caltrain)

comment 2mo ago · link · parent

I took one of my baby on the swing. It needed custom polar coordinate dewarping:

https://i.dllu.net/swing_07_7668f7f16ff7ac2a.png

Also motorcycle cops:

https://commons.wikimedia.org/wiki/File:San_Francisco_Police...

comment 2mo ago · link · parent

OP here, ask me anything! I've also written about the process previously:

- Line scan camera image processing: https://daniel.lawrence.lu/blog/2025-09-21-line-scan-camera-... Previous discussions:

  - https://news.ycombinator.com/item?id=44996938

  - https://news.ycombinator.com/item?id=46383593

  - https://news.ycombinator.com/item?id=46388084
- Standalone line scan camera hardware: https://daniel.lawrence.lu/blog/2026-06-12-standalone-cnc-li...

- Line scan camera image processing 2: https://daniel.lawrence.lu/blog/2026-08-02-line-scan-camera-...

12345
12