Tuesday, January 29, 2008

SPOT Hudson Video

I managed to make a crude video recording of my extreme feedback from Continuous Integration using Hudson and Sun SPOTS. The video is kinda bad mostly because I'm not good at this kind of stuff, but it shows my computer screen on the Hudson dashboard showing a good build. All the Sun SPOTs sitting in front of the monitor are shining bright blue to match the build. As Hudson is building the project there is a lot of dead time, but towards the end of the video, you will see the build break and all the SPOTs give an indication by blinking red 5 times, then stabilizing on red. In the video, its kinda hard to distinguish what color the SPOT LEDs are because they are so bright, and the video camera can't decide what to focus on. However, believe me when I say the LEDs are very blue followed later by very red :). As I mentioned before each of our developers has one in a cube, and the SPOTS talk wireless. I put all the SPOTS in front of the same monitor for dramatic effect. I hope you enjoy. I'll be posting the code somewhere soon, so if you're interested stay tuned.

Thursday, January 24, 2008

Hudson Extreme Feedback Device

Some of you may have heard of creating ambient ORBs for extreme feedback devices. Some of my team members and myself contemplated buying the parts and trying to build one like Kohsuke, then we had a different idea. One of our co-workers had a stack of Sun SPOTs that were not currently being used, so I developed a distributed extreme feedback device for hudson using Sun SPOTs. The idea is simple. Each developer has a SPOT on their desk, and the color of the LEDS on the SPOT changes to match the status of the build. First, I wrote code to be deployed on each SunSPOT which waits for radiograms to tell it what color to change to. Next, I wrote a web application with a ServletContextListener, which polls /hudson/api/xml for the "color" of a project. Based on the color hudson returns for the configured job (red, blue, yellow, grey), this app broadcasts a radiogram message to the configured port to all Sun SPOTs in the PAN and they change color. I'm probably going to cleanup and post the code somewhere in the near future in case you're interested.

Saturday, January 19, 2008

Syntax Hightlighter

I just discovered SyntaxHighlighter . It's a javascript library to do syntax highlighting for lots of languages. It seems to work very well, I've changed all the code examples in this blog to use it. I've only found one minor annoyance that I have to use < and > in java code that uses generics, but a bug report has been filed on the issue.
import java.util.List;
import java.util.ArrayList;

public class MyClass {
    public static void main(String[] args) {
        List<String> list = new ArrayList<String>();
        list.add("SyntaxHightlighter is nice!");

New domain brantb.com

For any of you following, brantb.com will now get you to this blog.