Yes, new site, new look, hopefully new content

So its been a while.  I pretty much had left the site in an complete mess and it was time for some updates.

My goal here is to use the site to document some of the projects I've been working on.  I also wanted to do some tutorials on Android programming and other things like that.

And I wanted to learn some drupal as the mlinux.org really does need a new face lift.  I'd rather use this site as the learning curveSo as I alluded to in the intro I've settled on Drupal as the cms since I wanted a little bit more of "just a blog" site.  I've been putting together a bevy of modules and such to facilitate my love of syntax highlighting :P

You can expand this code segment to see a java snippet

/*
 * Oooo.. This be a crappy comment :) 
 */

package helloworldapp;

import System.out;

public class HelloWorldApp {
    
    public HelloWorldApp() {
    }
    
    public static void main(String[] args) {
        println("Hello World!"); // Display the string.
    }
    
}

Looks pretty snazzy... just like every other site that uses the syntax highlighter javascript post processor.

How about some simple Bash?

#!/bin/bash

MYVAR=foobar

for i in `ls`
do
	echo $i
done

if [ "$1" != "" ]; then
{
	echo "you passed a command line argument of: $1"
}
fi

# Yeah its just an example :)

Or from Steve's last python presentation?

#!/usr/bin/python

# SBB 10/17/2009
# Implement conversion

"""Convert integers to numeral names"""

# Define exceptions
class NotIntegerError(Exception): pass
class OutOfRangeError(Exception): pass

unitsDict = { 0:"Zero", 1:"One", 2:"Two", 3:"Three", 4:"Four",
	5:"Five", 6:"Six", 7:"Seven", 8:"Eight", 9:"Nine",
	10:"Ten", 11:"Eleven", 12:"Twelve", 13:"Thirteen", 14:"Fourteen",
	15:"Fifteen", 16:"Sixteen", 17:"Seventeen", 18:"Eighteen",
	19:"Nineteen", 20:"Twenty"}

tensDict = { 2:"Twenty", 3:"Thirty", 4:"Forty", 5:"Fifty",
	6:"Sixty", 7:"Seventy", 8:"Eighty", 9:"Ninety" }

def toNumeral(n):
	"""Convert integer to numeral"""
	if n>=0 and n<20:
		return unitsDict[n]
	elif n>=20 and n<=99:
        	(tens, ones) = divmod(n, 10)
		if ones!=0:
			return " ".join((tensDict[tens], unitsDict[ones]))
		else:
			return tensDict[tens]
	else:
		raise OutOfRangeError, "number out of range (must be 0...99)"
	pass

Oooo... purdy colors.... Ok.. so it wasn't exactly from his last presentation... but its close enough :)