Tuesday, April 19, 2011

TV Sidenote

Enjoyed the s02e14 episode of Community with its DnD game, especially the evil Pierce. It was a much more free form game than I expected, but fun.

In a related note, haven't finished the latest DnD podcasts yet, but still watching lots of PATV, going through the latest season.

Still enjoying White Collar, now on season 2. But one thing I despise are the green screen clips for Elizabeth. They should have setup the plot to have her away, maybe only on phone calls, but instead there are these aweful looking and obviously staged clips. ugh.

After finally watching an episode of Supernatural after a long break, watching other shows, I really had missed it.

Saw some of the Social network the other day and remembered how much I like the soundtrack (of course since I'm a NIN fan), that I have it, and now I am listening to it again.

Monday, April 11, 2011

VirtualBox

I spent most of the weekend trying to setup a new dev environment.
This machine is already filled up enough and I'd rather not clutter it up more.
So the answer of course is... virtual machine!

But it wasn't a simple or short process.
I had VirtualBox installed previously, Innotek version.
And I found a ready Fedora image, since I've usually worked with Linux under RedHat/Fedora/CentOS.
But I decided to upgrade to a newer VirtualBox version.
I tried the latest Oracle 4.0.4 version but it failed to start.
So then I tried a Sun 1.6.6 version, this installed and started fine.
It did warn about upgrading my previous Innotek settings, apparently the reason the Oracle version failed to start. Only a warning, it then updated the settings and continued on.
But after several attempts at trying to add the guest additions, I found I couldn't use this version.
So I removed the old settings and went back to the Oracle version.
Success. I was also able to add the guest additions (despite the mixed/lack of great documentation).
I found this newer version (unlike the two Sun/Innotek previous) already had mouse integration, so I mainly needed the additions for the video support (larger view).
To add the additions I roughly did the following: yum update, yum install dkms gcc kernel-headers kernel-devel, reboot, mount additions iso, run linux additions.
The kernel-headers and kernel-devel will be for the latest kernel version, hence the reason for the update (especially the kernel to match).
Having the original OS image came in very handy, being easy to start the process over and over and over.

Now I continued on to install the minimal pieces I needed: Java, Maven, SVN.
For Java it was the Sun rpm download and install, for Maven it was just the download and env vars (java_home, m2_home, path in .bashrc), for SVN it was the package installer.
All different paths but all the same end, I could run from the command line.
But for another reason I wanted to use the Java plugin in Firefox, but luckily I was able to find reference to link the Sun libnpjp2.so in jre lib to libjavaplugin.so in mozilla plugins.
In the end the original VM image grew by almost 2G with all these updates and installs.

Friday, April 8, 2011

Words, DND, Dead

I've gotten addicted to Words With Friends recently on iPod
I had a run with some good points, including wandS + joustS (52) - could have played gnawS (73), loving (30), Oracle + gO (48)
Those were in the same game, giving a 150+ lead. Also played hand (42) in another game.
I played best when I planned my next moves right after playing a word, so I had options and their points.

Finished Series 3 of the PA DND podcasts with the fall of Aeofel.
Just started Series 4, switching out Chris Perkins for Jerry as DM and adding Kris Straub. Definitely a different feeling, but a nice change. I do hope to see/hear more DND adventures with the previous characters and Chris.
I've also been catching up on older PATV, including the DND episode.

On the topic of DND, although I'm interested in it, I've never played.
I've mostly grown up playing video games:
Atari with Star Wars, Combat, Dig Dug, Off the Wall, Jungle Hunt, Frogger
Gameboy with Tetris, Super Mario, Metroid,...
Any arcade games like Centipede, Pac Man, Mortal Kombat, Street Fighter, Tekken, especially liked Spy Hunter,...
PC with Wolfenstein, Doom, Diablo, lots of free games on CDs including Descent,...
A friend's Nintendo with Super Mario, Double Dragon,...
A friend's Sega with Sonic
Tons of Super Nintendo with Donkey Kong Country, Ninja Turtles, Super Mario, Shaq Fu, Smart Ball, Super Ghouls & Goblins, F-Zero, Super Punchout,...
Other friend's consoles including Playstation like Tony Hawk and Guitar Hero,...
Wii with Sports and Super Smash Bros
More PC like GTA, Max Payne, Battlefield 2, Combat Arms, Half Life, Counter Strike, Left 4 Dead, Minecraft, Portal,.....
Ok, I'll stop, there are just too many to attempt to list and no way I will remember them all
But the point is, I've been a video game guy
And yes, I've played card and board games but definitely not as much, so DND is completely new for me

Read through the latest Walking Dead comic #83 and wow, it finally hit the fan in a big way. It came out a week early but I didn't get to finding out or reading it till this week.

Monday, March 21, 2011

TVness and PA

In catching up on shows...
Enjoyed the fun zombie Halloween episode of Community, s02e06 Epidemiology, recently.
Also enjoyed seeing Sam Oliver from Reaper on V s02e01. I really liked Reaper, and to me he brought a needed fresh feeling to V.

Watched the emotional Penny Arcade: The Series episode 107, Child's Play Part 2, recently and I loved the song at the end. In the credits I found it was hullamzoret two by failotron.

Also related to PA, I'm now listening to the series 2 DnD podcasts (Jim Darkmagic and Jim's magic missle FTW!)
I enjoy the occasional faint background noise of the store door open/close ding-dong.
And I enjoy listening to Chris Perkins from Wizards of the Coast, he should make audiobooks.

Saturday, March 19, 2011

Goodbye Laptop

Said goodbye to my gaming rig, aka work laptop and headset, today.

It was a Dell Latitude E6500 with Core 2 Duo P8400 2.26 GHz, 4GB ram, 232GB hd, Nvidia Quadro NVS 160M. I think the headset was a Logitech Clearchat Comfort USB.
It handled Battlefield Bad Company 2 surprisingly well and I enjoyed using the wireless and webcam, especially on trips.
Last night I started wiping it with Darik's Boot and Nuke and 11 hours later it was gone.
Spent today setting the OS and dev environment back up for the next person.

Friday, March 18, 2011

PAX East 2011 and DnD



Went to PAX East 2011 in Boston last weekend.
I expected it would be about gaming and comics, but really it ended up being about entertainment (lots of laughs) and community.

Friday 3/11
We arrived a little late at PAX and spent a lot of the initial time waiting in lines and trying to catch up to our schedule.
We got in to see the Blamimation panel with Scott Kurtz and Kris Straub. Loved it, very funny.
Later that night, we saw MC Frontalot at the concert. I think one of my favorite songs was "First World Problem". Only downside was that it was harder to hear the lyrics live, but still fun. He actually sounded more like MC Chris (who I'd love to see at PAX).
For Games: we played a game of Munchkin. During the game I was given a card that says "you are handsome" (with handsome written below a strikethough beautiful) with a link to this project on the back. We also played Zombie Dice on IPhone and ButtonMen both on IPhone and real dice. Also played Mario Kart on Nintendo DS. I got to see some of the DS culture, including Pokemon trading, and I doodled on Pictochat.
For Food: crappy Macro Vegetarian shanghai dumplings ($9 at convention). Later went to My Thai Vegan Cafe and had yummy coconut sweet potato soup, pineapple fried rice, and golden triangles (like samosas).

Saturday 3/12
We went to the Penny Arcade strip drawing where Mike and Jerry created the Ballin comic (about the Nintendo 3DS)
Went to geek parenting and game pitch panels. The pitch your game panel included Kris and was so funny (video on G4TV).
Saw Kris and Scott again at their late night panel with more laughs (straight dougin and #bottomlessfriendship)
For Games: played more Nintendo DS with download play Tetris, played Bulletstorm (Pic1, Pic2, Pic3) and BlackOps on the expo floor
For Food: Picked up 3 muffins (flat but thick like scones) at the Flour Bakery Cafe. Later went to a punk/hipster bar, Other Side Cafe, and had vegan BLT, guacamole and chips, and a strawberry/banana,OJ smoothie. Also picked up veggie udon noodles at the convention center ($10) and watched the rockband stage.

Sunday 3/13
We watched the Omegathon operation competition (players even had gloves and masks on).
Waited in more lines of course and saw the X-Play live show.
Stayed for the Penny Arcade Q&A with Mike and Jerry, leaving early to hop in the signing line. I had my badge and my "you are handsome" card (from Friday) signed.



We left a little early during the Omegathon finale.
For Games: Played centipede (Pic), burgertime, and chopper rescue at the classic arcade.
For Food: Had breakfast from the Flour Cafe again, fresh hot chocolate muffins with coffee+soymilk. Also had more from My Thai Vegan Cafe dinner right before we left including wontons, pad thai, and chocolate cake.

So it was a busy fun weekend with a few negatives. We had too many possible things on our schedule and spent a lot of time waiting in line for the events. There is so much to do there and I can imagine every person going to PAX would have a different story. Had about 4 hours sleep at nite. Hotel didn't have free internet. IPhone directions were aweful and ended up taking wrong turns. Parking was a pain but worked out in the end ($40 for weekend at convention, and we could have left the car there if the hotel shuttle was more available). There are classic/culture games at PAX that I have little/no experience in including DnD and Pokemon (I'm sure there are others, you could add Nintendo DS in general to the list). I never got to play the Last Night on Earth zombie board game I brought, hopefully next year will be more gaming.

Related to DnD, I recently watched the Wizards of the Coast PAX 2010 Dungeons & Dragons videos and also listened to almost all of series 1 podcasts (i'm hooked and was LOLing to it).

Thursday, March 10, 2011

Content Backlog

I've had plenty of material sitting around to catch up on and I've finally started digging in.
At the moment, I've caught up on Fringe (a favorite) and The Cape.
I was caught up on The Event until new episodes just came out.
Starting to catch up on V and No Ordinary Family.

Other TV shows we have in rotation for new episodes:
Castle
The Big Bang Theory
How I Met Your Mother
The Mentalist
House
CSI
Grey's Anatomy
The Office

Smallville and Supernatural are on hold at the moment.

Newest TV shows we are catching up on:
White Collar
Parenthood
Community
Modern Family

And in prep for PAX East (this weekend!), I'm catching up on Penny Arcade: The Series.

In comics, I finally read The Walking Dead #81 and also read #82 released today.
I also caught up on Penny Arcade and I can only hope I don't feel like this during PAX

I see a lot of comic based movies coming up this summer.
None I'm super excited about, maybe X-Men: First Class (imagine X-Men as friends again!) and Green Lantern.
But next year is a different story.
New Batman along with reboots for Spiderman and Superman.

Thursday, March 3, 2011

Missing Method Exception

Having a project in Maven central appears to help in getting quick feedback.
Two days ago I released a new version of the formatter plugin and today an issue was reported with it.

In the recent release, I switched to using plexus-io to provide wildcard includes/excludes for selecting files.
I used PlexusIoFileResourceCollection.getResources() which throws IOException.
This method uses DirectoryScanner.scan() which throws IllegalStateException if basedir is null, not exist, or not a directory
This exception is a RuntimeException, not an IOException.
So although the basedir is set on the collection and passed to the scanner, the collection does not list a throws for the IllegalStateException nor does it handle it.
Now even if I was already handling this exception, it wouldn't have been the desired behavior, which is to continue the build and ignore for projects that don't have files to format (instead of failing).
So I fixed checking the basedirs and pushed out a maintenance release today.

This is my fault for not having enough test cases, easily found using null values for the basedirs.
Or I could have just tested the maven site multimodule example from the checkstyle plugin.
Lessons learned. Evaluate the source of libraries used more thoroughly. And always more tests.

Wednesday, March 2, 2011

Java String Encoding

I think intro Java courses should discuss coding for an international community - specifically encoding/charset, locale (language/country), and timezone. Since creating Strings, reading and writing Files, and creating Dates are fundamental.
And its become increasingly apparent to me how common it is to assume that the default OS/system values are fine.

When working on the Maven Java formatter plugin, I began considering system dependent properties of Java source files, such as line endings and then encoding.
I found an encoding convention for Maven plugins to follow, reading and writing the source files using a defined encoding.

When looking to build the OpenMRS project, I found the build was failing, apparently only on my local (Windows) machine.
A test source file was recently added with UTF-8 encoding, including "foreign text".
The first failure was the compiler plugin, since its version needed to be updated to support the encoding property.
The second failure was an assertion in this test failing. The "foreign text" was being handled using the default charset of the platform, using String(byte[]) and String.getBytes(). This is a case where the CI server (Linux) didn't help to keep the build stable. I ended up submitting a patch to use String methods/constructor supporting encoding.

In the Java Internationalization FAQ it lists examples where the UTF-8 encoding cannot be used including:
"When writing plain text files that will be interpreted in the host OS's default encoding, if that encoding is not UTF-8."
This is exactly the case I was seeing. The UTF-8 file and text was being read and compared using the default encoding for Windows, Cp1252.

This is just a recent example but there are numerous others, and I think CS students should know about these types of problems early on.

Sunday, February 27, 2011

Econut: TV Reference of the Day

Today I was Marshall from How I Met Your Mother s06e17 Garbage Island.
But instead of searching through a dumpster for O-rings, I was looking for cardboard.

I was making a run dropping off trash and recycles. When I went to put the trash bag in the dumpster but I couldn't.
The dumpster was filled with boxes that hadn't been broken down.
I instead walked to the next dumpster and threw my trash in.
Now at this point I could have walked away, but of course I didn't.
I reached in the first dumpster and started hauling out the boxes. These were large Home Depot moving boxes.
I took out as many as I could without climbing in, broke them down, and filled the car. I was planning to drop off recycles next anyway.
I ended up with 7 of these large boxes to add to my 4-5 bags worth of other recycles.

I also saw that one of the Silk soymilk containers had a green cap. I entered the UPC code on my phone so I could submit it online (for things like wind power). Sadly I see the green caps website isn't available at the moment (apparently ended last year).