Archive for August, 2007

Aptana Color Scheme

Friday, August 24th, 2007

So in case you haven’t used it yet Aptana is really cool. This is by far the best IDE that I have used to do web development. It’s free, it’s updated frequently, and it’s portable (just download the zip version instead of the installer). I was somewhat unimpressed with it’s syntax highlighting in PHP so I made my own.

TWD’s PHP Colors

More Links, And CPU Temp PHP Script

Friday, August 10th, 2007

Ok I know it’s been a while, I needed to realign my compass. So here’s a few interesting links

Huge explosion in St Petersburg

A pipeline of some sort blew in Russia creating this massive explosion that could be seen for miles away. It was a truly massive flare.

I’m in ur side

This is by far my favorite lolcat image ever. I’m saving it so I can use it on some unsuspecting female in the future.

microwave stuff!

All sorts of things in the microwave. The eggs are the best!

Tons of Ajax and JavaScript Demos!

I haven’t started to filter through all of these things, but I’ve never seen a list quite like it. I’ll certainly be using it in the future when I dive into JavaScript.

CPU Temp PHP Script

I’ve done some work on making code snippets look nice on the page. I just created a new script for a server homepage I’m making, and I thought it would be a great way to show off the new code snippets.

<?php
  exec(“sensors”, $output);

  //Example $output string:
  //CPU Temp:  +28.3°C  (high =   +60°C, hyst =   +55°C)
               
  //Split string at each space or comma.  The temperature will be at index 2 in the array.
  $temp = preg_split(“/[\s,]+/”, $output[9]);
  $systemp = $temp[2];
  $temp = preg_split(“/[\s,]+/”, $output[10]);
  $cputemp = $temp[2];

  echo “<strong>Current System Temp:</strong> {$systemp}&deg;C <strong>Current CPU Temp:</strong> {$cputemp}&deg;C”;
?>

Adsense Ad

I’m also messing around with Adsense more. I think I’ve finally gotten an ad that works well for my page.

Please tell me what you think in the comments about the PHP script, and advertisement.