Thursday, September 2, 2010

Meego IVI

I got Meego IVI installed on my backup and it's interface looks pretty sweet. I just wonder why they didn't wait until there was a music player in the repo to release the image? For me thats like 95% of what I use it for.

Some Screenshots


Thursday, August 26, 2010

GMaven 1.3 is out

I haven't seen this announced outside the mailing list.

Release Notes - GMaven - Version 1.3 (August 6,2010)

Bug

  • [GMAVEN-13] - sourceEncoding doesn't work
  • [GMAVEN-21] - gmaven-plugin does not support <source> and <target> configuration options
  • [GMAVEN-26] - GMaven packaging does not install artifacts with the correct extensions into the local repository
  • [GMAVEN-46] - Properties overridden on the command line not recognized
  • [GMAVEN-65] - Impossible to set any compiler configuration (sourceEncoding etc.)
  • [GMAVEN-70] - Groovy Interfaces with defined constants cause a compilation failure in generated stubs
  • [GMAVEN-71] - Generated Java stubs miss import for class BigDecimal (-> javac compile error)
  • [GMAVEN-75] - Stub generation issues
  • [GMAVEN-78] - Stubs not including auto imports - gmaven 1.2, groovy 1.7.3

Improvement

  • [GMAVEN-64] - use ${project.build.sourceEncoding} as default value for "sourceEncoding" parameter
  • [GMAVEN-72] - Update GMaven runtimes to current Groovy releases
GMaven 1.3 POM

Tuesday, April 13, 2010

GroovyWS Maven Dependency Configuration

After spending a day trying to get GroovyWS working in a Maven project and having tons of classpath issues (mostly between xerces and javax.xml). When I took a peek at it's pom and found the problem every xml api and web service api on the planet was included.

The code snippet works for using GroovyWS with CXF, I havn't tried any other framework(s) with it since CXF couldn't generate a correct proxy for a complex type containing a sequence of "any".

Anyone else have this sort of trouble with GroovyWS?

edit

I case anyone else is interested I created a issue. GMOD-136.

Monday, February 15, 2010

Groovy 1.7.0 and GMaven 1.2 Multi Module Projects

Update GMaven 1.3 is out
The documentation on the GMaven wiki is a bit out of date and shows how to setup a GMaven 1.0 project. There have been a couple of (big) releases of both GMaven and Groovy since then and GMaven has become its own project on Codehaus as well as changed their groupId from org.codehaus.groovy.maven to org.codehaus.gmaven. There seem to be a few other items you may or may not need to configure that weren't needed previously as well.

Hopefully the documentation will be updated soon but here is a comparison of poms between GMaven 1.0 and 1.2 that I've been using.

Monday, January 25, 2010

Groovy DSL for CSS (Part 2)

Now that we can assign units to numerical values (Part 1) I'll see if I can start putting things together for CSS declarations and rules.

CSS Declarations

In CSS declarations are the statements where you define properties and assign a value to them.

CSS Declaration Examples

These declaration statements are contained within a Rule block which has one or more identifiers. a.k.a. class names, ids, and element names.

CSS Rule Block Example

The Declaration class

The Declaration class is pretty basic it has a name and value. The toString() method will return the CSS declaration name:value.toString();

The Rule class

The rule class is a bit trickier so far I haven't found a way to get around defining getters and setters for all the possible declarations which may not actually be that bad except for having to write them.

The Rule is backed by a Map which stores the declaration name as the key to a declaration. The toString() method returns the CSS for the entire rule.

I have also added a method to the String's metaClass in the Bootstrap.

Now a Rule object can be created off of any String and it actually almost looks familiar.

Testing Declaration and Rule

Ive uploaded the experiment to Google Code and the sources are available at Source.

Sunday, January 24, 2010

Groovy DSL for CSS (Part 1)

I decided to experiment with writing a DSL for CSS in Groovy. There are some other DSLs out there like SASS but I think the syntax is almost worse than writing normal CSS and it definitely doesn't look similar to CSS. So the main goals are going to be:
  • Have a syntax that looks almost like CSS
  • Be able to re-use code (something CSS should really have anyways)
    • Through variables
    • Through inheritance (even to the extent that you could package a set of classes in a jar and include that jar in any application)
  • For numeric values be able to perform calculations.


Handling Numeric values

I'll start off with something simple, adding units to numeric values. I looked into Groovy Categories but they seemed to be pretty limited for what I wanted and decided to add methods to the Number class using the ExpandoMetaClass.


The NumericValue class

This will be treated as a Number, the basic operators have been overloaded and it implements Comparable. The toString() method will generate CSS text.




The Unit class will be used in conjunction with Number and NumericValue



Adding methods to the Number class

Now we need to add methods to the Number class in a Bootstrap so that when you use something like 1.px a NumericValue object is created with a value of 1 and unit of px.


Testing

Using easyb we can write a scenario that tests the NumericValue class. First we will add the methods to the Number's metaClass by calling the Bootstrap then create a NumericValue of 1px and verifying that the toString() method returns the expected value.




Ive uploaded the experiment to Google Code and the sources are available at Source.

Next I'll work on a coplete CSS Declaration and Rule

Tuesday, January 19, 2010

Sonar Not Running?

Scenario
You've got Hudson or another CI system setup for your project and your trying to track code quality with Sonar but you start getting build failures and Sonar isn't running.

The Problem
By default maven will fail a build if there are test failures. When Sonar tries to execute sensors like FindBugs that analyze at the bytecode level it will fail before decorating and saving the results. 

Solution
Setting maven.test.failure.ignore=true will allow Sonar to run even if there are test failures which actually works out nice since that is something you want to trend anyways.




Sunday, January 17, 2010

RoboTruck now has Wifi

Finally a couple warmish days to get the Wifi and SSH setup in Moblin.
If only TightVNC server

  1. Didn't have a (non configurable) dependency for fonts
  2. Linux applications QUIT USING SYSTEM DEPENDENCIES! Package the app AS AN APPLICATION!
  3. Why does VNC need to know where fonts are installed anyways? Shouldn't X server handle that?
Maybe yum and apt will go away and we'll get to use something decent like Maven

Anyways a couple of pics of the truck.