Ask HN: Most interesting tech you built for just yourself?
1901 pointsMaybe you've created your own AR program for wearables that shows the definition of a word when you highlight it IRL, or you've built a personal calendar app for your family to display on a monitor in the kitchen. Whatever it is, I'd love to hear it.
Comments (1,792) 625 threads
Earlier commentshttps://github.com/nicko88/HTWebRemote
It's not all that impressive per say, but a number of people seem to really like it.
Also an app to add a "wind" effect to a home theater as well.
https://github.com/nicko88/HTFanControl
Back then, it involved an Arduino, the internals of a Wii MotionPlus (cost effective way to get the gyro sensors), a plywood frame, and the open-source 'MultiWii' code.
That first build never flew well, but soon afterwards it started to become much easier to build a very stable quadcopter, as all-in-one flight controller boards started to appear, along with more knowledge of which brushless motors, props, and ESCs worked well together.
Unmaintained code: https://github.com/maebert/SaunaControl
I was fascinated by the story of David A. Scott, who was obsessed with "bijective compression". It means compression programs where all files are valid archives, and moreover no two archives decompress to the same file. So no magic number file signatures, no checksums, no redundancy whatsoever. Scott felt that compression algorithms that didn't have this property were wasteful, and of course, in a narrow technical sense he was right. There are of course a number of practical reasons why we tolerate a little redundancy.
But he wouldn't let practicality stop him. He made bijective versions of many common compression algorithms. He made a bijective Huffman encoder (one where you'll never get "unexpected end of file"), a bijective arithmetic encoder, and even a bijective LZ variant. But most impressive of all, he made a bijective BWT version.
The Burrows-Wheeler transform is fascinating on its own, and it's almost bijective. It sorts letters in a text by their context, so that letters with similar context appear close to each other. In a strange vaguely DFT-like way, it switches long-distance and short-distance patterns around. The result is, in a typical text, long runs of the same letter, which can be easily compressed.
But the traditional BWT technically works only up to rotation. You get a rotation of the original string back when reversing it, but you don't know if it's the right rotation. You need to store a tiny piece of extra information, either the index of the rotation, or a single sentinel character known to be the last (or first) letter in the original string. Getting rid of that last piece of information seemed impossible, but Scott figured out a way to do it!
The result is that we have a truly bijective version of the BWT transform. Now I'm no mathematician, but surely that is beautiful? It's a true permutation now, that still does the weird low-order higher-order swapping thing, that you could surely analyse with many algebraic approaches that wouldn't work for the original.
Anyway, what I did was implement this transformation on the lines or pixels of an image. So you get an effect similar to the "pixel sort" effect that glitch artists were into for a while, but it's reversible. I guess it's not really useful for anything other than making glitch art, but it's at least a program that does something pretty unique, and which only a very specific kind of weirdo would have the skills and inclination to write (namely me).
"Glitch art"
It sounds like the real art is the algorithm and code. Would love to see it.
https://gist.github.com/HaraldKorneliussen/2bf20ca4f4f28c1aa...
I implemented a slightly more efficient version of it that uses a prefix doubling strategy to do the string sorting step, as well as some glue code to make it work on lines and pixels, but that code is too messy to share for now.
All comments shown.
Couldn't load more comments. Check your connection and try again.