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

Art

Posted by Daz Tue, 31 Aug 2010 20:54:54 GMT

My Sister in Law is a budding artist, she's selling a couple of pieces of art she has produced. Both come professionally framed in new distressed effect white wooden frames.

They both look much nicer in real life then the pictures I quickly took on my phone attached here and are textured, particularly the olive coloured one which has a raised paper construction that you can't really appreciate from a picture.

They are 24" by 18" (60cm x 45cm) and cost £200 each.

42 comments

Annoying UK spam

Posted by Daz Thu, 20 May 2010 20:48:45 GMT

Getting lots of spam for UK companies through a dodgy spammer hosting millions of domains on redstation.com

I notice it because it actually gets through my spam filters regularly. On the plus side they are getting themselves added to spam databases by spamming me.

35 comments

Annoying UK spam

Posted by Daz Thu, 20 May 2010 20:48:45 GMT

Getting lots of spam for UK companies through a dodgy spammer hosting millions of domains on redstation.com

I notice it because it actually gets through my spam filters regularly. On the plus side they are getting themselves added to spam databases by spamming me.

no comments

Veggie lunch in Glasgow

Posted by Daz Wed, 10 Feb 2010 17:19:56 GMT

I'm on the lookout for somewhere good to pick up a sandwich for lunch, being vegetarian I don't get that much choice in your normal outlets and so I get bored of "cheese and ..."

Grassroots in Glasgow had a good range despite it being a fair walk from my office but they seem to have cut back on variety and no longer sell tempeh (fake bacon) sandwiches amongst others, I did ask why they stopped but just got a snappy and nonsensical "we can't sell the same thing forever" from the sales assistant. The same question to their online feedback form elicited no reply, which is a shame.

So, can anyone recommend somewhere good to pick up sandwiches from (as opposed to eat in)? I did like some of Grassroot's old selection (despite them obviously using the same knife to cut garlic as make sandwiches!) but can't face the uphill walk only to find no decent options.

31 comments

The Phantom Menace

Posted by Daz Tue, 22 Dec 2009 10:03:21 GMT

Just how bad was the phantom menace? This bad:

http://www.youtube.com/watch?v=FxKtZmQgxrI

These videos are more entertaining than the film was.

4 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

Older posts: 1 2 3 ... 6