Ceiling Space Utilization

This ceiling is not being used to its fullest potential

This ceiling is not being used to its fullest potential

New project idea: Generate ideas for utilizing ceiling space.

In even the most cluttered homes and businesses, ceilings are typically completely unused. You may not be able to pick a path to the door, but look up and you’ll see a vast expanse of smooth blank space. This seems like a waste of resources – you’re paying for a room bounded by walls, but you’re only getting value out of n-1 of them.

Read the rest of Ceiling Space Utilization

Posted in Projects by spork. 1 Comment

JRebel, JBoss, and EARs

JRebel

ZeroTurnaround just released JRebel 4.0.2 (get it and a 30-day trial here). JRebel is a JVM plugin that works with a variety of classloaders. Its chief value proposition is reducing development time by dynamically reloading classes into the Java Virtual Machine as you make changes.

An article at The Server Side caught my eye and I started learning about the new features of JRebel. I had seen it when it was first launched – then called JavaRebel – and there weren’t enough features to make it worthwhile. Now JRebel has support for 35 frameworks and a number of servers, including Tomcat, JBoss, and Glassfish. In addition, there are IDE plugins for Eclipse, IntelliJ IDEA, and NetBeans.

Read the rest of JRebel, JBoss, and EARs

Tags: , , , ,
Posted in Uncategorized by spork. No Comments

First Integrated Sweetness Tester Project

The Setup

As Valentine’s Day neared, our HR assistant popped in and told us about the office party she was planning, complete with a contest to see who could make the most awesome Valentine’s Day mailbox. “You guys have to participate!” she said. Thinking better of it, she amended, “But no fire allowed”.

Forced at HR-point, I thought this would be the perfect starter project for an Arduino board. I purchased the USB Boarduino (an Arduino clone) from Adafruit Industries for $25 and threw in a Passive Infra-Red motion sensor for $10. The Boarduino can be used just like an Arduino – you can use the same Arduino software, tutorials, libraries, etc.

Read the rest of First Integrated Sweetness Tester Project

ClientHandlerException: A message body writer for Java type, class [...], and MIME media type, application/octet-stream, was not found

Seen this error message while using JAXB/Jersey?

com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class [...], and MIME media type, application/octet-stream, was not found
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(
URLConnectionClientHandler.java:128)

It sounds like you need to create a message body writer for your post, right? While that may be the case, it can also mean something less sinister but much more hidden. In my case, I had simply forgotten to add the element declaration to the request object defined in my XSD.

Read the rest of ClientHandlerException: A message body writer for Java type, class [...], and MIME media type, application/octet-stream, was not found

Tags: , , ,
Posted in Uncategorized by spork. No Comments

Changing JAXB-generated adapter classes

While developing a library that uses JAXB/XJC to generate Java classes from XSDs a problem came up: One customer was using the same process to generate Java classes for their project, and Adapter0.java, Adapter1.java, etc. generated and named by JAXB caused a conflict between the two conflicts. Here’s how I solved the problem.

JAXB/XJC generates some default adapter classes automatically and sticks them in a default package (org.w3c.something…). A new adapter class is created every time JAXB/XJC encounters a <javaType> tag in the XJB file. Each adapter class is named Adapterx.java, where x is the sequence number of the <javaType> tag. Hence, two JARs generated using JAXB/XJC can be in conflict because they each have a class named Adapterx in the same package.

Read the rest of Changing JAXB-generated adapter classes

Tags: , , , , , ,
Posted in Uncategorized by spork. 1 Comment

Build Status Indicator Stoplight

Who doesn’t want instant gratification in their work? Everyone likes to see progress. Knowing this, I decided to begin the Build Status Indicator project.

Finished stoplight build status indicator

Finished stoplight build status indicator

Build status notification is a common problem for environments with periodic automated builds. When the build completes, relevant developers should be notified, right? There are many ways to solve this problem; most Continuous Integration (CI) tools support sending build status emails and some, like Hudson, include a build status RSS feed.

Read the rest of Build Status Indicator Stoplight