TIL: http://stackoverflow.com/questions/1103149/non-greedy-regex-matching-in-sed It turns out, sed has no concept of a non-greedy match. You have to use perl or some other advanced tool to get that regex feature. The workaround given at Stack Overflow only works if you have a single character ending match delimiter (in this case, it was [^/]+ to match until the
looks pretty cool. This project claims to want to apply the PKI web-of-trust to different services like web browsing and SSH. By querying the public keys stored on key servers, you wouldn’t need to guess that the remote site was providing their actual key the first time you connect, like you normally would when connecting
I learned today that tools like Firebug won’t display the headers on a file that would normally be downloaded (as opposed to say, displayed in a browser). The solution? The command line, of course. I wanted to make sure a web server was setting the right MIME type for an mp4 video. curl -I http://path.to/videos/vid.mp4
I was thinking the other day, gzip is all fine and good, but why doesn’t rsync support other compression methods? There are a few use cases where using LZO (a very low latency compression algorithm) would be a better choice. One such case would be when operating with a relatively slow CPU, such as on
On Ubuntu 12.04, rsync has the --skip-compress=LIST option, which is fricken’ rad since it defaults to skipping files with the extensions 7z, avi, bz2, deb, gz, iso, jpeg, jpg, mov, mp3, mp4 ogg, rpm, tbz, tgz, z and zip. So before, when we used to agonize over whether to use the -z option if the
How have I not known about this? Inconceivable! Here’s a WebUpd8 article on zRam. This zRam software looks like the bees’ knees for low-memory systems, of which I have a few. Crazily, all one needs is a sudo apt-get install zram-config to get it going.
To be more accessible, I don’t think it would be that difficult to replace their existing system with one that just uses layered animated gifs with transparency. Even if you had to store a different gif for the different speeds that the radar data can playback, it at least allows for a short period of
awk -F, '{print $1}' CSV | sort | uniq -c | grep -vw 1 | tee /dev/tty | wc -l UPDATE: I went back and saw this post and thought to myself, “Self, why didn’t you annotate this garbage, you cheeky bastard?” OK, so the first part is pretty clear: get the first (or whichever)
Being a fan of the New England Patriots isn’t always easy. That’s an understatement. Not like how habitually losing teams never seem to build enough expectation to let down their fans to a significant degree, the Pats like to really show how great they are before pulling the rug out from under you. The shared
I’ve written about how language can be used to control the debate in politics before. I’ve also posted before about a complete and total prosecutorial overreaction to Aaron Swartz publishing of the JSTOR documents. It seems they’re not totally disconnected ideas.