24 October 2007

S5 slide show presenter

Online presentations S5 is a great tool for setting up slides shows in a browser. Check out the intro.

19 October 2007

My favorite Eclipse shortcuts


Select the current word

Ctrl + Shift + left/right arrow

Comment out selected lines

Opt + 7

Open Type

+ Shift + T very handy when you know the name of the class you need to check

Move selected lines up/down

Alt + up/down arrow

Copy selected lines up/down

Alt + Shift + up/down arrow

Bring up refactoring menu

Alt + Opt + T

Insert WOComponent

Opt + 6

Rename WOComponent

Opt + 2 then R

18 October 2007

SQL Server 2000 IDENTITY_INSERT

SQL Server has got identity for primary keys( see this article ) that was preventing me from inserting into a table with EO.

To get by this you can just set the identity insert to on with:

EOUtilities.rawRowsForSQL( ec, modleName, "SET IDENTITY_INSERT tableName ON", NSArray.EmptyArray );

Note that you might need to get the new primary key( identity ) yourself, ex.:

NSArray rawRows = EOUtilities.rawRowsForSQL( ec, modleName, "SELECT MAX(idenityColumnName) as NR FROM tableName", NSArray.EmptyArray );
NSDictionary rowWithPK = (NSDictionary)rawRows.objectAtIndex(0);
Object maxPK = rowWithPK.objectForKey("NR");
int primaryKey = (new Integer(maxPK.toString())).intValue();

11 October 2007

Icelandic keyboard

When traveling around one might feel the need to have access to Icelandic keyboard input. Only tested this on IE, need to enable other browsers... sometime ;)

Icelandic to HTML converter

When you can't save the icelandic text, it's good to have a quick way to convert Icelandic into HTML

04 October 2007

Gmail's quick preview

Right clicking a message will bring it up in a floating container, pretty neat.

03 October 2007

Get parameter from URL

Creating a cover method for the parameter with:

context().request().stringFormValueForKey( "parameter" );

will always give me what I want ;)