I released an android game!

Posted by Daz Fri, 06 Jan 2012 23:41:44 GMT

Thought i'd have a stab so here's my initial offering https://market.android.com/details?id=uk.co.tarbard.thrills

Posted in , ,  | 3 comments

Eureka moment

Posted by Daz Thu, 29 Oct 2009 00:50:51 GMT

It seems difficult to align what you want to do for a living with what you can practically. I've realised what I've always wanted to do is write computer games, that's in fact the reason I got into software development in the first place.

The rise of digital distribution makes it more achievable to start very small as a sideline with relatively little overhead or risk. I love it when a plan comes together.

Posted in , ,  | 10 comments

Accessing constants in JSF

Posted by Daz Thu, 27 Aug 2009 23:13:57 GMT


marker interface:

package uk.co.tarbard.wfd;

public interface BackingPage {

}

custom property resolver:

package uk.co.tarbard.wfd;

import java.lang.reflect.Field;

import javax.faces.el.EvaluationException;
import javax.faces.el.PropertyNotFoundException;
import javax.faces.el.PropertyResolver;

public class ConstantPropertyResolver extends PropertyResolver {

	private PropertyResolver original;

	public ConstantPropertyResolver(PropertyResolver original) {
		this.original = original;
	}

	@Override
	public Class getType(Object arg0, int arg1) throws EvaluationException,
			PropertyNotFoundException {

		return original.getType(arg0, arg1);
	}

	@Override
	public Class getType(Object arg0, Object arg1) throws EvaluationException,
			PropertyNotFoundException {

		return original.getType(arg0, arg1);
	}

	@Override
	public Object getValue(Object arg0, int arg1) throws EvaluationException,
			PropertyNotFoundException {
		return original.getValue(arg0, arg1);
	}

	@Override
	public Object getValue(Object base, Object property)
			throws EvaluationException, PropertyNotFoundException {
		Object value = null;
		try {
			value = original.getValue(base, property);

		} catch (PropertyNotFoundException e) {

		}

		if (null != value) {
			return value;
		}
		if (null == base) {
			return null;
		}
		if (base instanceof BackingPage) {
			Field[] declaredFields = base.getClass().getDeclaredFields();
			for (int i = 0; i < declaredFields.length; i++) {
				Field x = declaredFields[i];
				Object constantValue = null;
				if (property.equals(x.getName())){
					try {
						constantValue =  x.get(x);
					} catch (IllegalArgumentException e) {
						throw new PropertyNotFoundException("unable to access property " + property) ;
					} catch (IllegalAccessException e) {
						throw new PropertyNotFoundException("unable to access property " + property + " check that it is public") ;
					}
					return constantValue;
				}
				
			}
			throw new PropertyNotFoundException("unable to locate constant with name " + property + " perhaps you made a typo.");
		}

		return null;

	}

	@Override
	public boolean isReadOnly(Object arg0, int arg1)
			throws EvaluationException, PropertyNotFoundException {
		return original.isReadOnly(arg0, arg1);
	}

	@Override
	public boolean isReadOnly(Object arg0, Object arg1)
			throws EvaluationException, PropertyNotFoundException {
		return original.isReadOnly(arg0, arg1);
	}

	@Override
	public void setValue(Object arg0, int arg1, Object arg2)
			throws EvaluationException, PropertyNotFoundException {
		original.setValue(arg0, arg1, arg2);
	}

	@Override
	public void setValue(Object arg0, Object arg1, Object arg2)
			throws EvaluationException, PropertyNotFoundException {
		original.setValue(arg0, arg1, arg2);
	}

}

Posted in ,  | 205 comments

Feeling constrained.

Posted by Daz Fri, 07 Aug 2009 20:02:02 GMT

Despite Android being much more open than iPhone there is still a lot of "Sorry, you can't do this. " and "it is not possible" on the android developer group.

Posted in ,  | 11 comments

Amarok 2

Posted by Daz Wed, 29 Jul 2009 05:42:32 GMT

I really liked Amarok, an upgrade to ubuntu brought in Amarok 2. I couldn't get it to play anything and it was quite unpleasant to use. Luckily I managed to find a fix and my playlist was populating within seconds and music was playing - the fix is called Rhythmbox

Posted in

Mylyn Xplanner connector, now with context

Posted by Daz Tue, 16 Jun 2009 19:47:12 GMT

I've installed XPlanner again at work recently and even started using it for my own projects. It's a nice structured way of keeping track of work but it's even nicer combined with Mylyn thanks to the people who developed the XPlanner connector for it. One of the useful features of Mylyn wasn't there though until now - the ability to share contexts with others (or your future self).

Posted in ,  | 136 comments

view subversion commits on a timeline

Posted by Daz Sun, 05 Apr 2009 10:53:27 GMT

Here's something I wrote a while ago and never got round to finding hosting for. view subversion commits on a javascript timeline.

Posted in ,

Apple pushes anti-virus for Macs

Posted by Daz Tue, 02 Dec 2008 23:17:49 GMT

Just as I say OSX is like windows...

Posted in  | 18 comments

Mac OSX - really different from windows?

Posted by Daz Mon, 24 Nov 2008 22:25:26 GMT

The latest update for my mac includes Safari - a web browser, which requires me to restart my Operating System to install it. Presumably this also means whatever holes it's being patched for go through to the core of the OS.
This was the same thing people used to criticize windows for. ...

Posted in

My Opinion of Broadvision

Posted by Daz Fri, 05 Sep 2008 17:02:20 GMT

A while ago I had the misfortune of working with a product called BroadVision that was sold to the IT Director. Information on the internet about it was pretty sparse so we knew nothing about how it actually worked until we recieved the discs, I vowed to contribute back to the internet to give my own personal opinion of it sometime, I forgot until I was reminded today by looking at some BPM diagrams.You should do your own research if you are likely to be interested in buying any of it, but beware a company that doesn't want your developers to see their framework until you've signed a contract.

It was a sign of things to come that they had sent us discs for the wrong OS so we had to wait even longer for the correct ones to arrive. It was a stack of open source products together (The editor was based on Eclipse, but an oldish version!) with the work they had done in a kind of BPM type of way. From what I could tell from the internet and one of their consultants Broadvision started out as some kind of TV/internet concept but it didn't do that well so they reused code for the new model of selling self service e-commerce apps. If you use it and you wonder why some of the naming is a bit odd ("channels" for example) that's why!

We had no end of problems, it was buggy and i'm not even sure it was finished (you had to write a custom java class to be able to persist a checkbox as a boolean!). It was sold to the IT Director with tales of how you can just draw these flow charts connect up the boxes, click a button and your application is done. From the start we needed the consultants for practically everything even during our supposed training course - at one point something wasn't working and we couldn't figure out why. He couldn't figure out why either. Eventually he decompiled a class (which we weren't allowed to do) and discovered a catch block swallowing the Exception.... I asked the consultant (his desktop wallpaper was his red sports car in front of his nice house) how often he expected we'd need to have a consultant come visit and he said something like "2 days every fortnight", a cost my company had never expected - this was supposed to be a system that almost didn't need developers! We also found that we would have to buy more modules than we expected to just be able to do a fairly simple shopping cart.

I will spare you the rest of the messy tale but lets just say it got much worse and dragged out for a few months. They never did fix the checkbox bug I raised a ticket for, and then we were back to normal java - ahhhh.

They may have totally changed, their website looks different now - but despite it saying "View demos and download free software" under the "Attention Developers!" banner I couldn't find anything to download except marketing media that seems to still be claiming that you much less developer resource.

Posted in ,  | 3 comments

Older posts: 1 2