Archive for October, 2010

Google Syntax Highligher

I found a new plugin today for WordPress; “Google Syntax Highlighter”.
It formats your source code pastings on the fly.

Here’s a test below:

<?php

$fp = fopen("$datafile","a"); // Open datafile

if(!$fp) {
 echo "Error: Cannot open file.";
 exit;
}

fwrite($fp, $fname."|$|".$lname."|$|".$org."|$|".$country."|$|".$date."|$|".$ipadd."|$|".$usagent."\r\n");
fclose($fp);

header("Location: http://" . $_SERVER['SERVER_NAME'] . "/offshore/db/thanks.php"); /* Redirect browser */
exit;
?>

Changing the default keyboard to Japanese

When the machine first boots, the login screen defaults to the US QWERTY keyboard.
To change the default keyboard to something else, do the following:

More info:
http://support.microsoft.com/kb/138354