Archive for April, 2013

Eye Twitch

No Comments »

 

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. Read the rest of this entry »


Prevent WordPress Login/Brute Force Attack

2 Comments »

 

There is a worldwide, highly-distributed WordPress attack that is ongoing on most of the WordPress powered blogs.

The following steps can be used to secure (by password protection) wp-login.php for all WordPress sites in your cPanel account:
How to Password Protect the wp-login.php File
There are two (2) steps in accomplishing this. First you need to define a password in the .wpadmin file, and then you activate the security in the .htaccess file. Read the rest of this entry »


South Korean Banks, Media Companies Targeted by Destructive Malware

No Comments »

 

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.

Read the rest of this entry »


Stop your friends’ Facebook app from accessing YOUR private information

No Comments »

 

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 and work history but I was WRONG until today. Read the rest of this entry »


Code formating script

No Comments »
#!/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 several blanks
    print "$line";
  } else {
    print "$line";
    $blank = 0;
  }
  if($line =~ /^\s*if/i
     or $line =~ /^\s*else/i
     or $line =~ /^\s*loop/i
    ) {  #increase indent after xxx
    $blank = $blank + 2;
  }
}

MySQL replication – How-to

No Comments »

MySQL replication is quite straight forward. Here are the setup steps: Read the rest of this entry »