Galaxy Nexus (CDMA)

Posted on Sat 12 May 2012 in blog

Well after several months of putting up with my rebooting (sometimes looping) when I used any substantial amount of 3G data, I decided to upgrade. I was looking at the HTC Rezound and the Samsung Galaxy Nexus, and found this really good comparison article on phoneArena. Ultimately, after many recommendations …


Continue reading

Never knew Downloader.Agent2.BBLD was so simple

Posted on Sun 29 April 2012 in blog

I had just started writing a new C++ console app (under Visual Studio 2010 10.0.40219.1 SP1Rel) to test something out, and had just this:

#include <stdio.h>
#include <Windows.h>

int main(int argc, char** argv)
{
    return 0;
}

I unintentionally clicked Start Debugging, and much to my …


Continue reading

SSDs and Windows 'Users' Directory

Posted on Thu 27 October 2011 in blog

After getting my new SSD installed, I really wanted to get everything setup so that my data was safe on the 1 TB RAID 1 array. This meant somehow moving the Users directory from C:\ (the SSD) to D:\ (the RAID).

The two main approaches are:

  1. Use an unattend.xml …


Continue reading

New PC!

Posted on Thu 27 October 2011 in blog

I finally built a new computer. My previous one was a Pentium D machine I built my sophomore year of college, in 2007. I had seen evidence of bad capacitors over a year ago, but hadn't had any problems until recently. Since June, my system's stability had been getting worse …


Continue reading

A real Python parse integer function

Posted on Wed 21 September 2011 in blog

Is anyone else annoyed by the fact that int() in python is retarded and can't tell the difference between decimal, hex, and octal?

Your solution:

def parseint(val):
    if isinstance(val, int):
        return val
    if not isinstance(val, (unicode,str)):
        return None

    try:
        if val.startswith('0x'):
            return int(val …

Continue reading