31 Jan 2008

South African ID Number Checker

Update 26 August 2010: A new and better version of this Excel file has been made available. Please go to South African ID Number Checker in Excel version 2 to get it.
Update 11 August 2011: Want this as an app for your smartphone? Click here
A few days back I wanted to validate a list of ID numbers, and previously I have done the basics (length, date etc...) but I decided to do the full thing this time. So I search for the rules and found this post, which explains it nicely and contains some C# code. However for me C# didn't cut it as I wanted to process an Excel spreadsheet. So I whipped together a nice one which does the following checks:
  • Length
  • Valid Date
  • Date is in the past
  • Gender Flag
  • Nationality Flag
  • Check Bit
I've hidden the calculation cells so you can just unhide if you want to see the calculations. When I ran my list through it the failures came in two forms, obvious failures (things like 1000000000000) or check bit failures. Since I don't know which are real/valid in my list I am not sure if the check bit is 100%, but it did work fine for real ones I put in myself.
Anyway you can grab it below in the attachments section (You can grab the version 2 from the link above).

24 Jan 2010: I have disabled comments on this post as I am getting a lot of people asking me about who ID numbers belong to, how to track people based on ID's or what someones ID is. None of those I can answer as I do not work for the govt, police etc... If you have questions on the technical aspects of ID numbers please contact me using the contact form option.

09 Jan 2008

Trend Micro OfficeScan Password when Uninstall - How to Bypass

This is a great proof of how NOT to protect software. When you try to uninstall it can ask for a password configured by the network admin, but what it the server admin, servers or entire infrastructure is gone basically giving you no chance of getting the password back. Well facing that scenario myself, I hacked around and found a work around.
First off I would not have figured this out if it wasn't for a similar post about bypassing the protection on the server available at http://www.sbsfaq.com/Lists/FAQs/DispForm.aspx?ID=23
The differences on the client side (compared with article above) start with the location of the file it's in C:\Program Files\Trend Micro\OfficeScan Client. Next the keys are a little different, first you need to find the [INI_CLIENT_SECTION] and in that file, change the following keys:
  • Client_Allow_Uninstall to 1
  • Client_Allow_Unload to 1
  • Uninstall_Pwd to 70
  • Unload_Protect to 0
  • RemoveCTA to 1
Save the ini file and launch the uninstall. Now enter 1 as the password and viola it's gone! From a development point of view this is an example of how not to use encryption. The machine encryption in the patterns&practises Enterprise Library is a much better place to start, and in addition you should also look into using hash to sign files like this, so that tampering with them, invalidates them and requires an update from the server.
02 Jan 2008

There is blood in my alcohol stream

Long running comment with people I know is the one "There is blood in my alcohol stream" (sometimes changed to "There is blood in my coffee stream"). Anyway someone finally proved it is possible, albeit that it is scary that it was only found out because she was driving at the time (or passing out while driving). More on her at http://seattletimes.nwsource.com/html/localnews/2004094566_webdui27m.html (via http://blogs.msdn.com/oldnewthing/archive/2008/01/02/6950841.aspx).
22 Oct 2007

My wandering thoughts

So after travelling so much last week (around 3000km, but not all at once) I finally enjoyed around 12 hours of sleep after the Bokke win against the English on Saturday. However during travelling I had some interesting thoughts I wanted to share:

  • Why can you gargle in private without messing, but not in public?
  • Why do I always get a seat on an airline with something wrong with it, forcing me to talk to airhostesses?
  • Men serving drinks on a plane are airhostesses.
  • I love how, when someone from a competitor company joins, there is almost a want to tie him to a chair in a dark room with a bright light until he tells all his secrets.
  • Why does the rain ALWAYS follow me to the coast?
  • Real developers get together after 7pm.
  • The state of confusion with woman is not a constant for men, it increases exponentially with each interaction.
  • Never trust a project manager.
  • When someone is truly grateful for my help, I feel bad about charging them.
  • I'm glad project managers charge for my time and not me.
  • Ever notice how people driving slower than you are idiots while people driving faster are reckless? Love how I am always perfect ;)
  • I am glad I am not English (as in the country, not language)
  • I wish the national pride that swells from 80 minutes of rugby could last 80 years.
21 Sep 2007

Report the idiot

My last post about the winner of idiot of the year, has prompted me to report him for racist comments on his blog. Hopefully blogger will shut this idiot down. If you wish to do the same you can at: http://help.blogger.com/?page=troubleshooter.cs&problem=&contact_type=main_tos&Submit=Submit
21 Sep 2007

What a loser

Searching for something else, I found the biggest loser in South Africa. This retard runs a website called South Africa Sucks (southafricasucks.blogspot.com - not linking on purpose since I don't want to raise his Google ratings etc...)

This is the type of person who has blinkers on to all the good and prefers to complain, constantly. Besides the fact the site is horribly racist it's just plain idiotic. Why can't these morons just move to Canada, or America or UK or where ever they think is better and leave the rest of us who really care alone.

Update: If you want to report the idiot see: http://www.sadev.co.za/node/103

20 Aug 2007

Today is such a day

People aren’t chocolates. D’you know what they are mostly? Bastards. Bastard-coated bastards with bastard filling. But I don’t find them half as annoying as I find naive bobble-headed optimists who walk around vomiting sunshine Dr. Perry Cox
17 Aug 2007

I LUFF LOFFIE

Pages