Wednesday, March 30, 2011

Austin Java User's Group March 29th, Android and OSGi


We had a great meeting - it never hurts to start with free pizza.
Only five of the fifty two people attending were looking for jobs, and lots of jobs were being offered. Charles Schwab had a few dozen jobs available; HP and NetSpend also had positions to fill. Jeff Hennigan from KForce was also present - it's always a good sign to have recruiters come to the JUG.
Sam Griffin gave an excellent introduction to Android programming. He gave a demo on how to create and publish an app to a phone. Sam said it was very easy to access features like GPS, Speech Recognition, TextToSpeech, OpenGL for 2 and 3d graphics. Android also has SqlLite builtin.

Simon Chen talked about the basics of OSGi - which is a good thing since before the meeting I couldn't even spell OSGi. Simon described OSGi as a fancy classloader that manages components of a java application. It's like Service Oriented Architecture within an application; you call components embedded in bundles and you only have to load them once.



Thanks to Georgina Chen for the pictures.

Wednesday, March 23, 2011

How to prevent NUnit from running some tests on the build server

Certain NUnit tests you only want to run on your local machine and some you only want to run on the build server. To make this easy NUnit offers the "Category" attribute.
[Test][Category("DoNotRunOnBuildServer")]
public void ReadFromLocalWebServiceTest()
{
    var qdbBrandHttpReader = new QdbBrandHttpReader();
    string xml = qdbBrandHttpReader.ReadFromLocalWebService();
    ...
}
On your build server, when you invoke NUnit console add the option "/exclude:DoNotRunOnBuildServer", then it will not even try to run these tests.
Typically this is used with a category like "LongRunningTests" to prevent tests from running on your local box.

Monday, March 21, 2011

Where do good ideas come from?

Good RSA video. Reminds me that our tech culture needs more "coffee house" type meeting spaces.


Also see the TED Talk.

AutoMapper for C#

I finally got around to using AutoMapper from fellow Austinite Jimmy Bogard. I watched Jimmy's helpful video and the rest was easy.
AutoMapper is a Data Transfer Object (DTO) helper framework that can map your domain objects to view objects.
In my case I wanted to add extra formatting to render my domain objects as HTML, but realized a "ToHtml()" method on the domain object doesn't smell so good. I created a View Model directly from the domain model via Automapper (with only the attributes I needed to display) and added the HTML rendering code there.
Is that the smell of a pine forest after a Spring rain?

Pine Forest by ®DS
Pine Forest a photo by ®DS on Flickr.

Saturday, March 19, 2011

David Anderson in Austin - "Driving a Kaizen Culture Using Regular Operations Reviews"

David Anderson on March 17, 2011 spoke to a joint meeting of Austin SPIN, Lean Software Austin, IEEE CS Austin, and Agile Austin about a missing component of Kaizen culture, the Operations Review - what can your department do, how much of it did you do, and are you any good at it.
(I thought it appropriate since he espouses lean methodologies that he was wearing skinny jeans.)



Now this picture is not creepy because the girl in the cartoon is hugging David.

The Agile-Lean-CS-Spinners:

The main benefit of the standup meetings at a job was the after-meetings that allowed small teams of people, instant quality circles, to discuss and solve problems. This also struck me as a real benefit of this meeting - a chance to catch up with long-lost tech friends in the Austin community.

My random jottings:
Since academic software is seasonal, they share "Classes of Service" with car racing.
At the StandUp meeting only manage exceptions.
Many organizations only have a shallow implementation of Lean.
Real Kaizen is people just doing their jobs.

The meeting was a success - thanks to John Heintz for buying meals for everyone.

Thursday, March 17, 2011

Good Idea From Outgoing Chairman of the FDIC

In a recent speech outgoing FDIC Chairman Sheila C. Bair says,
"I would like to propose to you a radical-sounding notion. And it is that increasing the size and profitability of the financial services industry is not - and should not be - the main goal of our national economic policy."

Tuesday, March 15, 2011

Pragmatic Programmers' Magazine

magazine cover
If you haven't been over to see the Pragmatic Programmers' magazines lately, I'd highly recommend them. The concepts are usually applicable to many languages and development environments. The tone is upbeat and the articles are easily read in a sitting.