Posts Tagged ‘software development’

Working with GWT

Tuesday, November 10th, 2009


I was really struggling with using GWT and having to give up all of the great stuff in JQuery. But then along came GQuery. Check it out here: http://code.google.com/p/gwtquery/wiki/GettingStarted

If you use the code, make sure you look at this issue and grab this jar or apply the patch to get the compile to work right in GWT 2.0. http://code.google.com/p/gwtquery/issues/detail?id=22

Ray Cromwell did a nice job on this library — making valid syntax that looks like jquery. And since it’s java, you get code complete benefits, javadoc, etc. Sweet.

Locking Column Sizes in Flex

Tuesday, July 21st, 2009


This post from Joe, really saved the day.  The gist of it is that you need to specify horizontalScrollPolicy = “on” to have the columns locked to a specific size when you’re resizing a grid and hiding and displaying various columns.

Google I/O 2009

Thursday, May 28th, 2009


Here’s a brief update of Google I/O.  Lots of good content at the conference.

Day 1

  • Keynote – HTML 5 (Canvas, GEO Location, Webworkers and two others I can’t think of).  Support or planned support on all browsers (Firefox, Chrome, Safari, Opera)  except Internet Explorer.  I remembered the two other things — how could I forget:  Video and Threading! App-Cache.
  • Android Developer Challenge #2 announced.  Only 1.9 Million allocated (they previously had $5M bucks).  But everyone at the conference got a free Android Phone (HTC Dream).   Now I don’t have to replace my blackberry right away.  It’s really sweet!.
  • Mobicodes (QR Codes) are hot at the conference — scanned with the camera and capable of holding 4K of data.  Used on the badges and used on the Scavenger Hunt.  Wish I realized that the codes at the session feedback were included — because they were 20 points each :( .
  • Hooked up with the Android dev guys to talk to them about writing an app for Android  (now that I have a kick ass phone).
  • After putting our lives at risk trying to get to Tommy’s Joynt, we decided to grab some Italian food closer to the hotel.  Tommy’s Joynt is probably a lunch visit (during the daytime).
  • All the codenames for Android are bakery products:  Cupcake, Donut, Eclair.  I hope they serve up some Ho-Hos.  Mmmm.

Day 2

  • The Lego Guy – incorporating developers into process — first devs hacked the Mindstorm and Lego freaked out — then invited them in to participate in development.  Ultrasonic sensor was the result.
  • Keynote – The Google Wave – Google’s interpretation of a server/network based mechanism for collaboration.    Solves some of mails problems (like trying to figure out where you are in a thread and bringing people into the context).  Realtime editing by multiple users.  Uses OpenSocial for gadgets to integrate other sites (e.g. blogs).  Incorporates Wiki like functionality,
  • Questions:  how will it integrate with Mail?  It appears that will be up to the developers to figure out.
  • Android Game Development session was very crowded … probably because the Wave Programming session was following it up.  Canvas is slow for drawing sprites.  OpenGL draw_texture is the clear winner for drawing sprites.
  • Wave Coding — looks like being a google apps reseller would be great if you get paid for Wave too.  Robots are hosted on AppEngine.

SpringSource’s Roo

Sunday, May 10th, 2009


Roo looks like it aims to eliminate/reduce some of the complexity with the setup of an Java application. I tried my hand at the vote and petclinic application by following the instruction in the readme. I ran into a problem with deploying the app to my local tomcat 6 instance. Roo uses the Hibernate EntityManager, but for some reason, I’m getting these errors.  I would have thought that this example would have worked right out of the chute.

I found that from http://forum.springsource.org/forumdisplay.php?f=67 I could run mvn package and get it to run correctly under Tomcat.  It appears to be a problem with the AspectJWeaving.

 

SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: No identifier specified for entity: com.springsource.vote.domain.Choice
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:288)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:103)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1238)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1006)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:412)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:383)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:271)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:268)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:469)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:717)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:376)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:254)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: No identifier specified for entity: com.springsource.vote.domain.Choice
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1332)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:412)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:383)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:271)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:268)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:282)
... 32 more
Caused by: org.hibernate.AnnotationException: No identifier specified for entity: com.springsource.vote.domain.Choice
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:671)
at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:534)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:286)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1121)
at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1225)
at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:159)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:854)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:425)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:131)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:288)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1363)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1329)
... 41 more
May 10, 2009 9:10:51 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
May 10, 2009 9:10:51 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/vote] startup failed due to previous errors
Hibernate EntityManager 3.3.2.GA
Processing PersistenceUnitInfo [
name: persistenceUnit
...]

Hey can I borrow a 2nd set of eyes?

Wednesday, February 4th, 2009


I ask this question of folks sometime because I’m either to close too the problem, too tired from thinking about things. I’m sure some people get tired of it, but Eric Burke’s post sums up the problem it solves. Talk to your team members if you’re working on a problem — it’ll save you time.

A great SpringFramework site

Wednesday, January 28th, 2009


SpringByExample All of the references and it’s pretty freakin’ current. Nice work.

Quantity vs. Quality

Wednesday, January 28th, 2009


I saw this post about generating more code that does stuff than spending time thinking about the quality of the code.

I have to say I get bogged down at times thinking about how best to do something rather than just writing the crappy code (and lots of it).

ThreadLocals and ThreadPools == bad mojo

Monday, December 8th, 2008


Interesting post.

Image Icons for Web Apps

Monday, October 27th, 2008


I was searching for some icons for a website and found a website with these icons. They’re also available in four other colors, red, black, blue, and white.

If you need/want to learn Flex

Monday, October 27th, 2008


I recommend: flex training in a week.   It was a great primer for flex.