Archive for category Software Development

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

“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

Even Faster Django Unit Tests

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

3 Comments

Workaround for Subclipse crash

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

,

1 Comment

Linking Javascript

This is an idea that I’ve been kicking around for a while. Back in the C days, when most everything was determined at compile time, life was simple. You wrote your program, you preprocessed it, you compiled it, then you linked it. Linking is the cool part. The linker would determine exactly which bits of […]

,

Leave a comment

A simple stopwatch in C#

For whatever reason, periodically I find myself wanting an electronic stopwatch. No fancy features, just a start button and elapsed time. Several months ago I found one, but I lost it and it didn’t do what I wanted anyway. Fortunately, I have mad C# skills, so I pounded one out a few months ago. Download […]

,

1 Comment

My new favorite C# operator: The null coalesce operator (??)

Up until now my favorite operator was probably the ternary operator. Not that I’ve spent a lot of time thinking about it. It is kinda weird to have a favorite operator, I suppose. But hey, strange things happen to the minds of people who write software for a living.

Leave a comment