Archive for April, 2013

Eye Twitch

Posted: 30th April 2013 by Babar Shafiq in Health
Tags: , , , ,

  Eye twitching, eyelid tics and spasms are pretty common. Usually only the bottom lid of one eye is involved, but the top eyelid also can twitch. Most eye twitches come and go, although they can last for weeks or even months.

  Attack from just 49 IPs and 48,000 servers (Linux/HP Unix) boot records were deleted in South Korea (20-March-2013), including servers at major (4) Banks and (3) TV stations.

  I thought I had carefully controlled what other people I choose to share my photos and my personal information with me on my Facebook and I was really careful about what third-party Facebook applications I allow to have access to personal details such as my birthday,┬ámy status updates, my photos, my location and educational […]

Code formating script

Posted: 4th April 2013 by Babar Shafiq in Programming, System Administration, Tips
Tags: , , ,

#!/usr/bin/perl -w my $ifile = shift; my $blank = 0; my $indent = 2; open(IFILE, “$ifile”) or die “Cannot open $ifile\n”; while(my $line = ) { if($line =~ /^\s*else/i or $line =~ /^\s*end/i ) { #reduce indent before xxx $blank = $blank – 2; } if($blank > 0) { print ” ” x $blank; #print […]

MySQL replication is quite straight forward. Here are the setup steps: