Election 2008

November 4th, 2008 § 0 comments § permalink

A few sites to keep updated on election day:

Google Election Maps Shows live and historic results, polls, and Palin and Biden’s life journey

Google Election 2008 News Information on voting and election news

AP Election 2008 News Election news and webcasts

CNN Election Results

Isnoop Package Tracking

September 22nd, 2008 § 0 comments § permalink

isnoop tracker screenshot

isnoop tracker screenshot

Isnoop pachage tracker will generate an rss feed for UPS, FedEx, USPS, or DHL package tracking information and view your package’s path in a google map. Useful when you’re anxiously awaiting a package to arrive.

Google Chrome on Linux via Wine

September 11th, 2008 § 2 comments § permalink

So it’s possible to run the Google Chrome browser using Wine (latest dev version 1.1.4), though it’s kinda slow, and won’t do any https sites.

Ubuntu thread w/ instructions (These didn’t work for me on Fedora 8)

Wine App DB page w/instructions (These worked for me on Fedora 8)

WordPress Syntax Highlighting: SyntaxHighlighter Plus Review

August 10th, 2008 § 0 comments § permalink

Plugin: SyntaxHighlighter Plus 0.18
Backend: Google Syntax Highlighter Javascripts
Score: 7/10

The SyntaxHighlighter Plus is another WordPress highlighting plugin based off of the Google SyntaxHighlighter. (See my Google Syntax Highlighter Review) But while the Google Syntax Highlighter plugin simply inserts links to the javascripts, SyntaxHighlighter Plus is more integrated into WordPress. It uses BBcode tags instead of <pre> and doesn’t require the code to be preformatted, letting WordPress convert the special characters (sidenote: If you go back to edit the source code, you will find that the special characters have been escaped, making it difficult to edit your code.)

Unfortunately, the BBcode tags don’t allow for the configuration options to be passed to the scripts. (Maybe in a future release?)

SyntaxHighlighter Plus supports the same languages as Google Syntax Highlighter, and the formatted output looks the same. I recommend the Google Syntax Highlighter plugin if you want to use the configuration options, and this SyntaxHighlighter Plus plugin if you are too lazy to pre-escape all your special characters.

Example formatting… looks familiar

WordPress Markup: Notice the non-escaped angle brackets and [sourcecode] BBtag

WordPress Syntax Highlighting: Google Syntax Highlighter Review

August 9th, 2008 § 0 comments § permalink

Plugin: Google Syntax Highlighter 1.5.1
Backend: Google Syntax Highlighter Javascripts
Score: 7/10

Google Syntax Highlighter uses Google’s Syntax Highlighter by Alex Gorbatchev.

Installation is easy, just unzip and activate. If it doesn’t work, make sure that your theme has a <?php wp_footer(); ?> tag just before the </body> tag.

Google Syntax Highlighter supports C++, C#, css, delphi, java, javascript, php, python, ruby, sql, vb, and xml (according to the Supported Languages wiki page). I’d like to see bash and perl on the list. I’m not sure how extendable the code is, or if anyone has written their own scripts for these.

Customization seems like it would be pretty easy since formatting and colors are defined in a css style sheet. There are a few configuration options you can pass to the script which control how the formatting looks. The collapse is nice, so your code starts out hidden. Unfortunately, there is no way to re-collapse the code after being expanded, but it is a nice option to have. You can also start the line numbering at a specific number.

The highlighter uses a <pre> tag to format the code, but requires that the code is preformatted, escaping special characters. This can be accomplished with postable, but I’d rather not have to deal with that. Also, since it gets parsed by javascript scripts, it lags a bit when loaded. There’s maybe half a second before the actual formatting appears.

There are some nice features, with view plain, copy to clipboard, and print links at the top of the code. Overall, a pretty nice highlighter.

Example of configuration options: collapse and showcolumns

Example highlighting
example of the Google Syntax Highlighter highlighting

WordPress markup