jquery

gist JS

Friday, December 30, 2005

free audio books? Potter Rocks!

free audio classics pretty trippy really.. text-to-speech of the classics.




But Goblet of Fire, my goodness. Friggin AMAZING! 10x better than Narnia, which just seemed to be a 1:40 minute battle sequence, complete with such amazing dramatic moments as having one brother get stabbed when we all know that his sister's got the potion to 'fix all wounds.' How are things like this dramatic? Maybe we'll be forced to watch a scene of her running to come get him? Maybe she'll be waylaid and we'll end up cutting between her and her assailant and his dying body, but guess what I think it'll turn out ok.

Now option 3 would be for her to give him the potion and then it doesn't work, and then they go find santa and are like 'WTF?' and maybe we can fit another battle in. Like an elf vs man battle. That would be kinda cool.

But yes, Harry Potter was 10x better. Somebody told me they saw weeping shell shocked kids at the end of their performance. I'm not surprised. But awesome pacing. Awesome directing. Way to make the hard choices and not waste precious time on minutes of quidditch scenes that'll look good in previews.

Of course I still say I'd sign a promise to go see it twice if they release the next one in 2 parts...

Sunday, December 11, 2005

backticks!



"There is no way, apart from quoting all table and column names in backticks, to force Hibernate to use quoted identifiers everywhere!"

now you tell me. Gosh darn postgres. Definitely not a big fan of capitals is postgres.


What's this? Spring saves a life? Is there anything this framework can't do?
wow, what a stud ;)

Monday, December 05, 2005

rod johnson's love for the common man

Add Spring Capabilities...
Add Hibernate Capabilities...


Class:
public class Knight {
public String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String toString(){
return "My name is "+getName();
}
}


applicationContext.xml
add:
<bean id="Knight" class="com.wos.test.Knight">
<property name="name">
<value>JoJo</value>
</property>
</bean>


TestApplication:
BeanFactory factory = new XmlBeanFactory(new FileSystemResource(new File("src\\applicationContext.xml")));
Knight k = (Knight) factory.getBean("Knight");
System.out.println(k);



Gotcha number 1:
java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool
Problem: No commons-pool-1.2.jar
http://jakarta.apache.org/site/downloads/downloads_commons-pool.cgi

Add this to WEB-INF/lib/

Gotcha number 2:
Add:
BasicConfigurator.configure();
To the test app & add a log4j.properties file to get rid of the log4j warnings.

And...

My name is JoJo

Hotdang.



Ok, now we add Hibernate..

hmm, error that it can't find net.sf.HibernateException
odd considering that we're using hibernate3, which should look like org.hibernate...

adding hibernate2.jar to the /lib... and we're past that one.

Now it's:
PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy0] to required type [net.sf.hibernate.SessionFactory] for property 'sessionFactory']

Looks sketchily like another hibernate 2 v 3 problem to me. does spring perhaps not support hibernate 3? Worth checking...

hah!!!!! spring "not support hibernate"?? what a joke. Spring is a super star. The problem is MyEclipse. It brings in such a hunk of jar's that it turns out you can get one's that reference different version of hibernate. I think I'll be adding jars myself from now on.

Now it's all set. And if AbstractTransactionalDataSourceSpringContextTests isn't the end all expression of Rod Johnson's love for the common man, I don't know what is.

Just remember to use:

on your datasource, or you could end up doing a bit more comitting than you meant to ;)