Got the grid loading using WebWorkers to improve performance and interactivity (note the loading status in the bottom left of the grid). Also add playlists to nav tree on the left and began to style the grid a lot more like itunes.

Posts Tagged ‘Work’
A bit more progress on the itunes themed UI
New Subsonic Web UI!
So a quick post about a new Subsonic web UI I’ve been working on based on Itunes. Here’s a sneak peak at it:




Can’t boot into Windows XP after installing Ubuntu 10.4 (Lucid Lynx)
I upgraded to Lucid a few months ago but have not been able to use my windows partition since. Everytime I select it from Grub2 it just goes to a grub style prompt and I can’t do much. I finally found a solution here: http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:Boot_Sector which worked beautifully first time and I’m now back into XP!
JSON, JSR-303, Spring MVC and Ext.js
So I thought I’d post this in case others hit it. If you want to Spring MVC and POST JSON from an Ext JsonWriter to the server and have it populate your bean model and also get validated by JSR-303 validator then you’ll need to do a little work because it doesn’t work out of the box.
In the end I had to do some ugly classpath overriding to get it to work in the way I expected by writing my own modified version of Spring’s HandlerMethodInvoker. If you hit similar issues I suggest following this JIRA: http://jira.springframework.org/browse/SPR-7114 and feel free to use the attached code on the JIRA. It’s been working great for me now.
Using Ivy with Springs repository and other Maven repositories
We use Apache Ivy in the office now and I thought I’d give it a proper whirl at home. In the office we have our repository to store all the libraries we have in our environment and so the setting up of resolvers etc is all taken care off. Out in the real world you need to do this yourself, but the beauty of Ivy is its simple. First up I’m using Eclipse 3.4 with the IvyDE plugin. With those installed I created a new Java Project and then set about creating my ivy.xml. For this project there are a few requirements I wanted.
- I want to use Spring for config
- I want to have a play with Compass – the lucene abstraction
Out of the box Ivy will use the “ibiblio” resolver which makes use of the Ibiblio’s Maven repository. This is not really the greatest starting point as its not so easy to find stuff in. Spring however have their own repository with a lot of open source libraries and is much easier to search http://www.springsource.com/repository/app/. So my ivy.xml file looks like:
< ?xml version="1.0" encoding="ISO-8859-1"?> <ivy -module version="2.0"> <info organisation="matt" module="compassTest" status="integration" /> <dependencies> <dependency org="org.springframework" name="org.springframework.context.support" rev="2.5.6.A" /> <dependency org="org.compass-project" name="compass" rev="2.2.0-M2" /> </dependencies> </ivy>
Very simply I want to use Springs context support classes and I want to have play with Compass. In order to get this all to work I needed to create my own ivy-settings.xml with some new resolvers. First I need to add Springs repository resolvers (Doc’d here), then I need to add Compass’s Maven repo and finally Compass depends on a version of Lucene not in Springs repository so I need to add in ibiblio’s Maven2 repository. My final ivy-settings.xml file looks like:
< ?xml version="1.0" encoding="ISO-8859-1"?> <ivysettings> <settings defaultResolver="spring.compass.ibiblio" checkUpToDate="true" /> <resolvers> <chain name="spring.compass.ibiblio"> <url name="com.springsource.repository.bundles.release"> <ivy pattern="http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /> <artifact pattern="http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /> </url> <url name="com.springsource.repository.bundles.external"> <ivy pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /> <artifact pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" /> </url> <ibiblio name="compass" m2compatible="true" root="http://repo.compass-project.org" /> <ibiblio name="ibiblio" m2compatible="true" /> </chain> </resolvers> </ivysettings>
After plugging the above into Eclipse and setting up my IvyDE classpath container to use the new ivy-settings.xml file all was good. Simples!
Online Activities for 2008-11-29
Online Activities for 2008-11-27
New York so far…
Well, so far so good! Apart from breaking a tooth, throwing up in my bag (a long story, but it did seem the best option at the time) and getting very lost (thankfully I have a Not For Tourists guide to New York now – thanks Julia!). I can’t really think of much to say cos people are standing here waiting to go to the bar, so I’ll let the photo’s speak for themselves. Take a look at them in the Gallery. Also click on the pic below to see the full panoramic photo.
Posted in
Tags:






