Friday, September 19, 2008

Code Like a Pythonista: Idiomatic Python

Code Like a Pythonista: Idiomatic Python

A very good Python tutorial to have around.

Setting up XDMCP for Mac - david winter

Setting up XDMCP for Mac - david winter

I haven't tried creating the keyboard mapping file yet. The solution I use is to go into the International settings in System Preferences and enable showing of the keyboard input type on the menu bar. From there I select the US and US Extended. Toggling between the two usually does the trick.

Thursday, September 18, 2008

Posting HTML or XML markup on Blogger

Finally getting around to this but this tool is essential. Nicely done.

Character Shifting Algorithm

Here's a simple character shifting algorithm. It gives me a chance to test out google-code-prettify JavaScript/css I just added to my blog.



public class CharacterShift {

/**
* @param args
*/
public static void main(String[] args) {
char[] word = "iphone".toCharArray();
int shift = 3;
char[] result = new char[word.length];

for (int k = 0; k < word.length; k++) {
int p = (k + shift) % word.length;

result[p] = word[k];
}

System.out.println(String.valueOf(word) + " shifted by " + shift + " becomes " + String.valueOf(result));
}

}

Tuesday, September 2, 2008

Google Chrome

http://googleblog.blogspot.com/2008/09/google-chrome-now-live.html

My prediction? This represents a new paragraph or maybe chapter in Internet history.

Friday, August 15, 2008

Maven + Eclipse 3.4 + WTP

For me this replaces MyEclipse on my Mac.

The step I have been missing is the maven-eclipse-plugin.


<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
<wtpversion>2.0</wtpversion>
</configuration>
</plugin>