Recent posts

Polymorphic C#: override vs. new

An important part of polymorphism in C# is the virtual keyword, which allows you to mark methods, properties, or events as being overridable in derived classes. I came across this nice puzzle which helps explain the difference between the new and the override keywords:  read full post

Building an array from functions

I’ve been working with lambda expressions lately for a project, and one of the things I needed to do was use them to build a basic array data structure. Out of sheer boredom, I wondered if I could translate this to C#, because hey, why not? Turns out I can, very easily actually. Here’s how it goes:  read full post

String swapping

It’s a very basic question: given two strings a and b, how would you swap their values?  read full post

Asus Eee Note EA800: unboxing and first impressions

Shipping from Taiwan: 2 days. Time spent lying around customs and post office warehouses (slackers!): 2 weeks. Oh well, it’s here now. Time to unpack!  read full post

F# Units of Measure

I stumbled upon Units of Measure while reading a book on F#. They allow you to add some metadata to a value (can be of any type, but is aimed at integer and floating-point values) with some additional information describing the unit this value denotes, such as centimeters, kilograms, etc.  read full post

Customer loyalty with software?

Years ago, when I was stupid, I used Adobe Reader to view my PDF files. I didn’t like it, but didn’t know any better. Then, I discovered Foxit Reader. Compared to Adobe’s sluggish, bloated monster, Foxit was like a breath of fresh air. It was lightweight, snappy, and responsive. It did everything Adobe Reader did, only without mutilating your system’s resources. I happily installed it and never looked at Adobe again. Happier times were ahead.  read full post

Some brief downtime

My blog was off the air for a short while as I struggled with the new router’s settings. I sincerely apologize to all my readers (bored search engine crawlers). The router in question (a D-LINK DIR-655, hardware version B1, firmware 2.00) does a fine job router-wise, but I’ve seen some strange quirks that I want to shine a light on.  read full post