Monthly Archives: July 2015

ROT13 Encoder Source Code

The ROT13 encoder is a fun programming exercise that my students enjoyed recently. I have included my source code here in PHP and C. PHP <?php   function rot13($char)   {     $ascii = ord($char);     if (($ascii >= 65) && ($ascii <= 90))     {       $val = ($ascii – 51) % 26;       if ($val == 0)       {         $val = 26;       }       $val += 64;     }     else if (($ascii >= 97) && ($ascii <= 122))      {       $val = ($ascii – 83) % 26;       if ($val == 0)       {         $val = 26;       }       $val += 96;     }     else     {       $val = $ascii;     }     return (chr($val));   }   function main()   {… Read More »

Easy WordPress Install Recipe

Installing your own WordPress server is extremely easy but there seems to be a lot of articles that needlessly complicate it. Starting with a base install of Ubuntu Server (Amazon AWS is a good free choice for this), SSH into your server and run the commands below: Change to Root $ sudo -i If Your… Read More »