Top posts
Every blog post that took off on Hacker News, ranked by the votes of its best submission. 49,254 posts.
To approximate 52! by hand, compute 54! and divide by 3000
Some time ago I gave a talk in which I showed that something unexpected happened with a deck of playing cards. I had some volunteers try it, and while they did so I talked about just how many orderings there are for 52 cards. I computed (an approximation to) $52!$ (52 factorial) by hand. It's not so hard - you just…
Notes on training BERT from scratch on an 8GB consumer GPU
I trained a BERT model (Devlin et al, 2019) from scratch on my desktop PC (which has a Nvidia 3060 Ti 8GB GPU). The model architecture, tokenizer, and trainer all came from Hugging Face libraries, and my contribution was mainly setting up the code, setting up the data (~20GB uncompressed text), and leaving my computer…
How does Shazam work?
Explore how Shazam and song identification work through interactive visualizations: spectrograms, constellation maps, hash fingerprints, and time-offset matching.
Everything You Should Know About Sound (2016)
We all know what sound is. Except actually, no we don't. Let's fix that.
An Apple II Tale
I’ve been an active IRC users for nearly 25 years now, and for many of those years I was a denizen of the #a2c.chat channel on the irc.a2central.com IRC server. (IRC stands for Internet Relay Chat, a channel-based internet text … Continue reading →
A ChatGPT Emacs Shell
UPDATE: has evolved a bit and is now on MELPA. I had been meaning to give ChatGPT a good try, preferably from Emacs. As an eshell fan, ChatGPT seemed ...
Books of a Highly Effective Programmer (2009)
Like many programmers, I’m always on the lookout for the perfect programming book. Over the years I have tried to enumerate a few key examples , however after reading them all I am still left wanting. However, I recently came across a couple interesting blog posts [^motivation] that motivated me that the only way to…
Reverse-engineering the multiplication algorithm in the Intel 8086 processor
While programmers today take multiplication for granted, most microprocessors in the 1970s could only add and subtract — multiplication r...
Making a 88x31 button book using ImageMagick
Making an 88x31 book-button using ImageMagick
1984
“There was of course no way of knowing whether you were being watched at any given moment. How often, or on what system, the Thought Police plugged in on any individual wire was guesswork. It was even conceivable that they watched everybody all the time. But at any rate they could plug in your wire […]
Hacking Team and a case of BGP hijacking
After just a few hours the Hacking Team emails archive has already provided many tasty leaks. I want to focus on a routing security issue since this is my main research activity for this year.