For now I'm writing tidbits about computer programming, the plan is to actually blog at some point in time.

Tuesday, December 16, 2008

I can finally backup to a non-apple afp server

With version 10.5.6 of Mac OS X Apple has finally fixed a TimeMachine issue that was preventing me from backing up to a linux NAS.

Friday, July 11, 2008

downgrading 2.0 baseband to 1.1.4

if you were andenturous as me and decided the install the iphone firmware 2.0 beta8 or 2.0 final, and were not able to use your iphone because the ended up with the 04.05.04_G baseband, then all you have to do is use KiPhone (04.05.04) to downgrade.

Friday, May 30, 2008

just wrote the first batch of code for lego4j

Would you like to be able to write code like this ?


public class Foo {
@RetryOnException( E.class, 1 )
public String bar( int arg1 ) throws E {
return doSomeThingThatMightThrowE( arg1 );
}
}

instead of having to write something like this:

public class Foo {
public String bar( int arg1 ) throws E {
int retries = 0;
while (true) {
try {
return doSomeThingThatMightThrowE( arg1 );
}
catch (E e) {
if (retries < 5) {
continue;
}
throw e;
}
}
}
}

This is what lego4j is about, creating a library of lightweight aspects to encapsulate local concerns programmers encounter while writing a generic Java application.