Get a random subsequence of elements
Posted by Seth in Software Development on January 16, 2011
Here’s a bit of code to create a sequence of random elements of a desired length, initialized from another sequence.
1934 Ford Sedan, by Arcade Manufacturing Co.
Posted by Seth in Ancient Technology on November 28, 2009
Occasionally I sell stuff on eBay, usually antique toys. I’m excited enough about this car that I thought I’d share a few pictures of it before I put it up for auction. This car is both very hard to find and in very good condition (aside from the missing wheel).
“Using Relative URL Protocol Schemes” or “One Less Special Case for IE”
Posted by Seth in Software Development on November 16, 2009
So the other day I was perusing through some of the RFCs, and came across RFC 1808. It’s called “Relative Uniform Resource Locators.” Of particular interest is section 2.4.3, “Parsing the Network Location/Login,” which says something like: “Hey, remember the last time you were creating a web application that needed to run in both HTTP [...]
Someone’s not thinking …
Ever run low on disk space? Ever try to free up disk space by deleting so-called temporary files? (After all, they’ve been abandoned by their programmer, might as well put them out of their misery.) A few weeks ago I ran into this situation on a Windows 2003 R2 Server. This is what it told [...]
F1 help in Windows [XP] Explorer
Posted by Seth in Luser Tricks on October 18, 2009
Have you ever accidentally hit the F1 key in Explorer when you meant F2 (or 1, or Esc)? Normally missing a key isn’t a big deal, but in this case F1 triggers the Windows help center. Help may be valuable sometimes (I wouldn’t know, I’ve never used it), but for me, the accidental keypress costs [...]
On the Economy of Light Bulbs
On May 17th, 2003, I bought this compact fluorescent light bulb for $5.99. A couple days ago it finally stopped working, ending it’s 76 month career of generating photons.
Get your motherboard model in Linux
If you ever need to remotely determine the motherboard model of your linux server, try using dmidecode. This dumps the BIOS information, and that will usually yield the motherboard model.
Even Faster Django Unit Tests
Posted by Seth in Software Development on August 13, 2009
Last year, I wrote about speeding up django unit tests. With this method, I’ve been able to significantly reduce the time it takes to run my unit tests. But I still have a real short attention span. If anything, it’s shorter than it was last year. I also have an additional problem: I tend to [...]
Workaround for Subclipse crash
Posted by Seth in Software Development on August 2, 2009
A couple weeks ago I tried to setup Aptana on my Mac, but was quite disappointed to find out that whenever I used Subversion, the JVM would crash. It took a while, but this morning I narrowed down the problem. The JavaHL native client for Subclipse adapter was blowing up the JVM. In retrospect, I [...]