Get a random subsequence of elements

Here’s a bit of code to create a sequence of random elements of a desired length, initialized from another sequence.

Advertisements

,

Leave a comment

Source code clip of the day

Leave a comment

1934 Ford Sedan, by Arcade Manufacturing Co.

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).

Leave a comment

“Using Relative URL Protocol Schemes” or “One Less Special Case for IE”

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 […]

,

Leave a comment

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 […]

Leave a comment

F1 help in Windows [XP] Explorer

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 […]

,

Leave a comment

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.

Leave a comment