January 7, 2012

Enter to win a St. Valentine's Day photo shoot!

a Rafflecopter giveaway

December 21, 2011

Block commenting with PyDev for Eclipse

Python doesn't have special syntax for block comments, but if your IDE supports it, there may be a shortcut command to achieve roughly the same.

I'm using PyDev for Eclipse on a Mac, and the shortcut happens to be command+/ (command, forward slash.) Just select the block of code that you want to comment out, and use the shortcut key. A "#" will be inserted in front of each line that you highlighted.

With exactly the same lines selected, you can hit the shortcut key again to toggle the comments off. If you happen to select an extra line that was not commented out before, using the comment shortcut will add an additional "#" in front of each line.

The keyboard shortcut is easier to remember when you're using a language that uses slashes in the commenting syntax.

On a PC it's control+/

In a language that has special syntax for multi-line comments, you can use command+shift+/ (on a Mac) or control+shift+/ (on a PC.)

December 6, 2011

Where is Django Installed?

I was running through part 2 of the Django tutorial when I had to copy some files the Django source code directory. I'm on a Mac (Snow Leopard) and it happens to be at:

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django

October 15, 2011

Punk Hello Kitty

DSC_1707-punk-hello-kitty.jpg

Check out this awesome h.NAOTO x Hello Kitty cell phone charm that I got from a capsule toy machine in Tokyo. It's full of bad attitude. Yes, that really is the F-word you see on her back side.

October 11, 2011

National Coming Out Day

In celebration of National Coming Out Day, I am giving away Rainbow Wee buttons. They are 1" in diameter and illustrated by yours truly.

IMG_1833.png