News for hackers. Stuff that matters.

james_a_craig

Re:Don't fall into the anti-AI hype on Monday January 12, 2026 @11:59AM (#46591161)
Yeah, I was just trying to keep to the letter of what you'd said - you asked for it just to use OpenGL/GLFW bindings, not other libraries, so I didn't want to install cl-opengl and cl-glfw, and told it just to use its own FFI.
Re:Don't fall into the anti-AI hype on Monday January 12, 2026 @09:44AM (#46589201)
"Please write me a program in Common LISP (SBCL is installed) which will render a simple "hello world" triangle in OpenGL. You should use only OpenGL and GLFW (using sbcl's FFI) for this, not any other existing 3D graphics framework."

This worked in codex-cli, albeit it took three rounds of passing back the errors. https://gist.github.com/jamesacraig/9ae0e5ed8ebae3e7fe157f67... has the resulting code.

Re:Qwen-Image: Crafting with Native Text Rendering on Tuesday August 05, 2025 @05:32AM (#44796009)
In their own first example of English text rendering, it's mistakenly rendered "The silent patient" as "The silent Patient", "The night circus" as "The night Circus", and miskerned "When stars are scattered" as "When stars are sca t t e r e d".

The example further down has "down" not "dawn" in the poem.

For these to be their hero image examples, they're fairly poor; I know it's a significant improvement vs. many of the other current offerings, but it's clear the bar is still being set very low.

This article is literally the reason why people crave summary, because it was so content-free that it was a waste of my time to have read it all. It was a lecture extolling the virtues of repetition while simultaneously displaying none of them.
Re:You Must Listen to RFC 2119 on Thursday July 03, 2025 @08:39AM (#44454402)
RFC1459, the IRC one. I wrote the QuakeNet channel services once upon a time.
Yeah, it’s as if they wrote a program to calculate pi in a float and saved the output. Very strange choice given how many places the value of pi can be found.
Childhood exposure to pi generation algorithms; the correct version above was from memory.
For some reason the value of Pi given in the C++ code is wrong!

It's given in the source as 3.14159274101257324219 when the right value to the same number of digits is 3.14159265358979323846. Very weird. I noticed when I went to look at the C++ to see how this algorithm was actually implemented.

https://github.com/alexandrefrancois/noFFT/blob/main/src/Res... line 31.

Re:Canon EF and RF Lenses – All Autofocus Motors on Tuesday March 11, 2025 @10:03AM (#43332552)
Some - not all - of the EF lenses have a distance encoder as well. It's fairly approximate; I think it exists mostly for the benefit of the flash system, which needs a rough starting point for the distance in some of the open-loop modes.

For the current Olympus ones, I think there's a broadly similar encoder on the ones with proper manual focus scales, and the pure fly-by-wire ones reset focus at connection so the camera can work it out.

There's a list of the EF lenses and which forms of distance information they provide here: https://web.archive.org/web/20130425064359/http://www.lenspl...

Re:Can You Get Root with Only a Cigarette Lighter? on Tuesday October 08, 2024 @05:07AM (#41775231)
Even your example of discharging a capacitor can end up with a pulse both directions, caused by the inductance of the wires.

In this specific situation, there's no common reference level, and so the induced pulse will go both directions. You can think of this as being about the edges of the pulse being the parts that actually cause radio to be transmitted, and there's both a positive-going edge and a negative-going edge on a pulse.

Re:Can You Get Root with Only a Cigarette Lighter? on Tuesday October 08, 2024 @05:04AM (#41775219)
Sign matters as well as magnitude. The pulse created will have both a positive and negative part - waveform sort of like --^v-- and so you can get either direction bit flip. It's not equivalent to connecting a battery to the pin; EMI's more like AC in that it goes both directions.
Thanks for the suggestions - I'll definitely have a poke at it in TDR mode, that's a good plan.

Thanks also for the scikit-rf driver - I've an 8753ES as well, and I've used scikit-rf with that, but not yet with the 8510.

Thanks, it's really useful to have a reference point. Having played about a bit with which device is left to warm up, I'm fairly sure it's the 85102 (IF box) that's drifting. I've also tried my old 8350B sweeper instead of the 8341B and although the pattern's very different (different band-switch points) it drifts about equally badly. The odd bit is that it looks like it's related to the sweep position - I get a sawtooth effect as it drifts, like so: https://www.jamiecraig.com/wp-content/uploads/2024/06/image....
One of the few places you run into fellow 8510C users. How stable do you find your calibration on the 50GHz 83650 setup? My 20GHz one with the 8341B is very, very, very drifty for the first couple of hours after powerup (i.e. a good load goes from -60dB to about -15dB half an hour after calibration), but I'm not sure whether it's normal or something up.
A dissenting opinion on the design - for me, this presentation was like watching a video to find information; too slow paced, and it made me impatient the whole time. The original notebook format was far better in that regard. The layout within each section is beautiful, but the animation and the scroll-sensitive layout (vs. just having a series of static diagrams) makes it unpleasant for me to read.

The content's excellent and it was fascinating to see how the differences between characters and karts play out though!

Re:Why does the USA use 110V and UK use 230-240V? on Tuesday August 29, 2023 @11:00AM (#37308933)
On UK plugs at least, there are shutters and you need to insert something into the earth pin slot before they will allow you to access the live/neutral pins. On better sockets, the shutters then need simultaneous pressure on both live/neutral to completely release. The actual contacts in the socket are recessed too.

UK plugs and sockets are really, really, really safe. Except to stand on.

Re:What happened with Asus routers this morning? on Thursday May 18, 2023 @05:04AM (#35985606)
No, it's Vyatta-based.
I keep an LTO tape robot around for just exactly that reason. I trust backblaze, but I don't trust them to the point of not writing off a weekly/monthly/yearly tape set.
Re:All Bitcoin private keys are on this website on Tuesday December 21, 2021 @06:10AM (#29636225)
So, after a few minutes on the site, I found a half-dozen private keys with several transactions, but zero balance. Is the key-space so densely populated that this is expected? Edit: Never mind, I'd misclicked on the "last page" button, which has a page with a fair few transactions showing.
Re:When People Carved Turnips Instead of Pumpkins for Halloween on Saturday October 23, 2021 @06:56AM (#28967287)
This is still pretty common in Scotland - I've done it mostly every year since I was a child. They give you a much creepier lantern than pumpkins do, but they can smell awful as the candle cooks them a bit, and they collapse spectacularly over the next few days.
Re:Ask HN: What physical product do you make? on Thursday April 02, 2020 @08:35AM (#22758249)
Lighting systems - most usually illuminated props of various varieties for ceremonies of big events; things broadly like the Olympics. It's fun but generally NDA'd to hell, unfortunately.
There's a proper reset procedure much like the GE bulbs too, though - On-Off at 3-to-5 second intervals 5 times.
Re:Using Python to Get Free Chicken Sandwiches on Monday June 03, 2019 @10:38AM (#20083525)
What happened to responsible disclosure? I mean, fair enough demonstration of how to do something like this, but at least give the company a chance to fix it before publishing to the world.
I use https://pwsafe.org/ (or a few other file-format compatible apps on different platforms) and keep my password file (still with its own passphrase) in a keybase ( https://keybase.io/ ) private filesystem. Keybase's filesystem does a dropbox-style thing to take care of sync, and pwsafe doesn't need to know anything about the internet.
I really like this, not just because it makes a good point on performance, but because it also provides a nice, simple, idiomatic example of a service with a custom protocol in python, using asyncio.

I'd like to see the same thing in a few different languages, just for fun - perhaps a Perl or Rust redis, for example.

Re:Solo – Open-source FIDO2 security key on Friday August 17, 2018 @04:54AM (#17781290)
So far, the tomu only supports U2F though. Is anyone working on FIDO2 for it?
Re:A new security header: Feature Policy on Monday July 30, 2018 @09:04AM (#17644105)
Surely this header should be an allow list, not a block list? Disable features from iframes etc. until permitted, if the header's present, so that you never end up with unexpected activity from external sources.
Come on, you need to encode it if you're counting bytes not characters, even if that's equivalent for this particular string. :)

8*len("I'm wrong".encode('utf-8'))

Re:IRC necromancy on Sunday November 19, 2017 @11:02AM (#15734395)
I'm also known as MadHacker, and I'm the original author of one of the other Q variants on the list (Q3). It's good to see people still interested in the history of IRC, especially as it seems to be slowly dying, sadly. I've spoken to the author about the various sets of source code for QuakeNet's services, but the versions linked are the best we can find just now. If there's anyone out there with old copies of any of the Q variants, it'd be good to hear from you. -- MadHacker@quakenet
Re:How I didn't become a SoundClouder on Monday July 10, 2017 @07:57AM (#14735110)
The failure rate on fizzbuzz is spectacular. That's why; far too many resume/CVs are full of nonsense. It's not always the candidate's fault, either. When doing technical interviews for contractors, I've gotten into the habit of giving the candidates the version of their CV passed to me by their agencies to check; a good percentage of candidates horrified to see what had been claimed by the employment agency on their behalf.

Older »