Compare the world

26 07 2008

I quite often have to compare files that were originally edited on Linux or a Mac and then edited in Windows.  If you subsequently run this through the 'diff' command line tool it will think every line is different because many Windows editors change the line endings from the Unix native LF (\n) to Dos/Windows native CRLF (\r\n).

There is however a solution to this problem, if you use diff in the following way it will stop these problems from happening:

diff --strip-trailing-cr -ubB

--strip-trailing-cr - Ignores the difference between Unix and Windows line endings
-u - Unified diff format (In my opinion the most readable and pretty much standard now)
-b - Ignore space change, ignores the difference in whitespace
-B - Ignore blank lines, if line spacing in certain areas has been changed this won't be a factor in the diff


Bookmark Compare the world  at del.icio.us Digg Compare the world

MySQL Certified DBA

11 07 2008

Just one week after my Zend Certified Engineer exam I have taken and passed both CMDBA I & II.  This means I am now a Certified MySQL Database Administrator!

Now I think I will have a break from exams :-)


Bookmark MySQL Certified DBA  at del.icio.us Digg MySQL Certified DBA

Zend Certified Engineer

04 07 2008

Today at 12pm I passed my Zend Certified Engineer exam.

Cheers for all the 'good luck' messages and encouragements.

I should be able to put a logo up in the next 24-48 hours linking to my Zend Yellow Pages profile.

Dennis Interactive guys: I owe you a box of doughnuts, as per tradition :-)

Ian: You owe me and Natalie dinner I believe ;-)

Rackspace UK: Thanks for all the support.


Bookmark Zend Certified Engineer  at del.icio.us Digg Zend Certified Engineer