Thursday, July 1, 2010

RSA ID Number Check-Sum Algorithm

infomation sourced from this site.

13 digit South African Identity Numbers have the following format

{YYMMDD}{G}{SSS}{A}{Z}

YYMMDD Date of birth
G Gender: 0-4 = Female, 5-9 = Male
SSS Sequence No. for DOB/G combination.
C Citizenship: 0 = SA, 1 = other
A generally, but not strictly = 8, 9
Z CheckSum Digit

Calculation of Checksum Digit = Z

A = sum of digits in odd position (excluding last checksum digit)
B = sum of all the digits of the product of 2 and the number formed from the original be removing all the odd digits
C = A + B
Z = 10 - (second digit of C)

Sunday, June 13, 2010

Test Driven Python Development [link]

http://www.slideshare.net/Skud/test-driven-development-tutorial

Linux Admin Blog [excellent]

Linux Admin Chris Siebenmann, @thatcks, maintains a rather excellent blog Wandering Thoughts @ http://utcc.utoronto.ca/~cks/space/blog/ .

Sunday, May 30, 2010

Unit Testing C# with NUnit

MonoDevelop
http://www.dijksterhuis.org/using-nunit-with-monodevelop/

Wednesday, May 26, 2010

How-To Change the Names of SQL Server DB Files

http://www.kodyaz.com/articles/change-sql-server-database-file-names.aspx
http://timothychenallen.blogspot.com/2007/02/sql-server-how-to-change-database-file.html

Power-Commands for Visual Studio 2008

http://code.msdn.microsoft.com/PowerCommands
http://visualstudiogallery.msdn.microsoft.com/en-us/e5f41ad9-4edc-4912-bca3-91147db95b99

Monday, April 26, 2010

Decorators & OO in Python

Jack Diederich
[Python-3000] PEP Draft: Class Decorators

Cesar Otero - IBM DevelopWorks White Paper
Python 3 primer, Part 2: Advanced topics
Metaclasses, decorators, and other strange creatures