tag:blogger.com,1999:blog-25849431370050072822024-03-06T00:00:34.224-08:00on codeAnonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.comBlogger100125tag:blogger.com,1999:blog-2584943137005007282.post-70358818119123524862011-03-30T14:49:00.000-07:002011-03-30T15:02:58.742-07:00gwt-fireworks-demoRecently I worked on some code for the Google IO <a href="http://googlecode.blogspot.com/2011/03/last-call-for-google-io.html">Last Call Contest</a>.<br /><br />I started coding on a Friday afternoon after a long day's work in which I had started early at 3:30am to do some load testing. I finished up around 1:30am Saturday morning.<div><br /></div><div>Basically the objective was to use GWT 2.2 and its recent support for the HTML5 canvas. The problem was to replicate in some creative way the behavior of the Google IO 2011 <a href="http://www.google.com/io">landing page</a>.</div><div><br /></div><div>My project is hosted on <a href="app-container.appspot.com/fireworks.html">App Engine</a>.</div><div><br /></div><div>I am hosting the project on <a href="http://code.google.com/p/gwt-fireworks-demo/">Google Code</a>.</div>Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-77246004304446741692010-11-19T09:48:00.000-08:002010-11-19T09:57:21.186-08:00GWT and PhoneGapInspired by David's blog entry <a href="http://turbomanage.wordpress.com/2010/09/24/gwt-phonegap-native-mobile-apps-quickly/">"GWT + PhoneGap = native mobile apps quickly"</a>, I decided to give this a try. Here are the steps I went through.<br /><br /><ol><li>I downloaded PhoneGap and went through their basic tutorial using XCode. The template leaves you with an empty 'www' folder in your project.</li><li>I started with the basic code created by the Google Plugin for Eclipse and compiled it into its war directory.</li><li>At this point I manually picked up the code and plopped it into the 'www' folder in XCode and ran the app in the iPhone emulator. This worked as expected as the sample app runs.</li></ol>At this point I wanted to adopt a more native look to the app and thus I pulled in some CSS from the JQTouch project to make the app look a bit more like a native iPhone app.<br /><br />Am at the point where I want to interact with iOS and specifically the Calendar on the iPhone. I've discovered that PhoneGap does not currently have support for the Calendar API which was introduced in the iOS 4.0 SDK. I may be facing the challenge of building a PhoneGap plugin in order to natively interact with Calendar from my GWT app.<br /><br />I'm not very far down the road but it seems to me there are huge benefits in being able to apply the abstractions of GWT+MVP to building a mobile application that can run natively AND be cross platform.<br /><br />Look for a Part 2 to this entry where I explore building a plugin to access the Calendar API.Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-28985189499558114602010-05-26T07:09:00.000-07:002010-05-26T07:16:43.030-07:00Install JDK6 on Ubuntu 10.04 LucidAfter rebuilding my netbook recently, I quickly realized that I was unable to reinstall sun-java6-jdk out of the box. After a bit of Google I was able to get JDK6 installed.<br /><br /><pre class="brush: bash"><br />sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"<br />sudo apt-get update<br /></pre>Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-17950837566927261932010-05-05T04:20:00.000-07:002010-05-05T04:20:32.811-07:00msmtp, a free tool to send email from Terminal<a href="http://www.tuaw.com/2010/05/04/msmtp-a-free-tool-to-send-email-from-terminal/">msmtp, a free tool to send email from Terminal</a><br /><br />Putting this one on my todo list.Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-68278694086569198302010-05-03T19:07:00.000-07:002010-05-03T19:07:03.402-07:00Stencyl - Find the Fun<a href="http://www.stencyl.com/">Stencyl - Find the Fun</a><br /><br />Wow games written in Java.Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-50486590519377873222010-01-11T13:40:00.000-08:002010-01-11T13:42:35.403-08:00My Spotlight configuration<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnSJD-ZKS941BFTuesfWg55h7BX5jhEIWunVhix7-lbsyu5oKalAQdLsXFV3br4v7JJh4tUaz8P-gd017aZeqw5JcQDVLX0-z4tupW9_f-HhI1_2fU1V9YMMohzuXWM5xyJ1M7PYjPmuNS/s1600-h/screen-capture.png"><img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 320px; height: 303px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnSJD-ZKS941BFTuesfWg55h7BX5jhEIWunVhix7-lbsyu5oKalAQdLsXFV3br4v7JJh4tUaz8P-gd017aZeqw5JcQDVLX0-z4tupW9_f-HhI1_2fU1V9YMMohzuXWM5xyJ1M7PYjPmuNS/s320/screen-capture.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5425600892084651170" /></a><br />I grew tired of watching mdworker consume my CPU so I've recently resorted to this configuration.Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-9779387407700408352009-12-26T10:33:00.000-08:002009-12-27T06:41:24.047-08:00Review: Lenovo S12 NetbookI recently purchased a Lenovo S12 Netbook mainly for the purpose of running Ubuntu to do Google Web Toolkit programming. Recently I've had some frustration with Java programming for GWT on my MacBook Pro.<br /><br />My first impression of the S12 was not a good one. It came with a Windows 7 installation that seeming incredibly bogged down by bloat-ware. On the first startup I felt as if I was being barraged right and let by popups and offers and configuration options. Yikes. The first thing I did was to perform a clean install of Windows 7 from a USB flash drive. This went rather flawlessly and subsequently I installed the Ubuntu 9.10 netbook remix which also was straightforward.<br /><br />Ubuntu 9.10 did not run well at all until I was able to install the NVidia drivers from the unsupported drivers utility. Using the same utility I also installed the WiFi driver. So far, these are the only two drivers I've worked with. I would recommend having your netbook plugged into an ethernet port if possible when installing Ubuntu.<br /><br />Moving on to setup of the development environment, nothing could be easier than letting the package manager do all of the work of downloading and installing everything I needed. I let the package manager install the basic Eclipse but then replaced it with the Java EE package from eclipse.org. One problem I have encountered with Eclipse is that there seems to be an issue possibly with the video driver causing the buttons in the GUI to be unresponsive to mouse clicks.<br /><br />I have not yet tackled getting the onboard camera to function.<br /><br />Overall I'm very happy with the machine and have no idea how anyone can function without a clean install of Windows 7 or another OS. It is too bad that Lenovo chooses to trash the experience.Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com1tag:blogger.com,1999:blog-2584943137005007282.post-14125648174021960772009-12-23T17:15:00.000-08:002009-12-23T19:31:06.444-08:00hbm2ddl and MySQLPreviously I had a <a href="http://alexoncode.blogspot.com/2008/05/hibernate3-maven-plugin-and-hbm2ddl.html">post</a> on using hbm2ddl with Maven and the hibernate3-maven-plugin for Maven. I recently needed to use this setup on MySQL so I have posted my persistence.xml below as a reference.<br /><br /><pre class="brush:xml"><br /><persistence xmlns="http://java.sun.com/xml/ns/persistence"<br /> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br /> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence<br /> http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"<br /> version="1.0"><br /><br /> <persistence-unit name="Developer" transaction-type="RESOURCE_LOCAL"><br /> <provider>org.hibernate.ejb.HibernatePersistence</provider><br /> <properties><br /> <property name="hibernate.archive.autodetection" value="class, hbm" /><br /> <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/phoenix" /><br /> <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver" /><br /> <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect" /><br /> <property name="hibernate.connection.password" value="phoenix" /><br /> <property name="hibernate.connection.username" value="phoenix" /><br /> <property name="hibernate.hbm2ddl.auto" value="create-drop" /><br /> </properties><br /> </persistence-unit><br /></persistence><br /></pre>Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-56993748320789786772009-12-14T08:12:00.000-08:002009-12-14T08:17:33.200-08:00Building gwt-presenter and gwt-dispatch on OS X LeopardI had been having quite a bit of trouble building and running applications that use gwt-presenter, gwt-dispatch and Google GIN on Leopard 10.5.8 recently. The problem comes from the fact that there is no 32 bits JDK6 available. Upgrading to Snow Leopard would of course fix the issue but here are some steps I've taken to compile and run in GWT hosted mode successfully:<br /><br />- download gwt-presenter and gwt-dispatch locally<br />- set the active JDK to JDK6 64 bit<br />- set the build targets in the PM to JDK 1.5<br />- build jars and install into the local Maven2 repository<br />- switch the active JDK to JDK5<br />- build host project<br />- should run successfully in GWT hosted browserAnonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-89086965424651348812009-12-02T12:07:00.000-08:002009-12-02T12:11:58.199-08:00Running GWT 1.7.1 on Ubuntu 9.10 64 bitI moved my GWT development environment over to Ubuntu 9.10 64 bit after encountering several problems on OS X. The first hurdle on Ubuntu was this one when running the hosted mode browser. The problem was with a missing .so. This posting helped me solve the issue:<br /><br /><a href="http://hsmak.wordpress.com/2009/12/01/how-to-fix-libstdc5-dependency-problem-in-ubuntu-9-10/">http://hsmak.wordpress.com/2009/12/01/how-to-fix-libstdc5-dependency-problem-in-ubuntu-9-10/</a>Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-71733154494276300532009-12-02T06:28:00.000-08:002009-12-02T06:28:30.475-08:00Obtaining Spring 3 Artifacts with Maven<a href="http://feedproxy.google.com/~r/Interface21TeamBlog/~3/yVM_b6HJXXw/">Obtaining Spring 3 Artifacts with Maven</a>: "A recent commentor here ragged, "It's only half of the world that's using Maven", when pointing out it is not obvious how to obtain Spring 3 artifacts with Maven. In this entry, I'll show you how to do this and what the options are. This information will also be integrated into the reference [...]<img src="http://feeds.feedburner.com/~r/Interface21TeamBlog/~4/yVM_b6HJXXw" height="1" width="1">"<br /><br />Hooray finally. I had so much trouble trying to locate RC2's repository during a recent build and had to give up.Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-8915447715535997802009-11-29T19:20:00.000-08:002009-11-29T19:20:06.268-08:00In the Binary Refinery | ChromeShell<a href="http://www.inthebinaryrefinery.co.uk/blog/?page_id=171">In the Binary Refinery | ChromeShell</a><br /><br />Very nice. Looks like a nice thing to install while waiting for ChromeOS.Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-71024137314962488932009-11-26T05:11:00.000-08:002009-11-26T05:21:22.765-08:00GWT 1.7.1 and Safari 4.0.4Following the advice in http://code.google.com/p/google-web-toolkit/issues/detail?id=4220#c22 I also installed the latest WebKit build. Since I normally compile and run with Maven from the command line I simply added the following to my .bash_login:<br /><br /><pre class="brush:Bash/shell"><br />export DYLD_FRAMEWORK_PATH="/Applications/WebKit.app/Contents/Frameworks/10.5<br /></pre>Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-32376866833099428632009-11-25T14:37:00.001-08:002009-11-25T14:38:26.942-08:00GWT and Safari(WebKit) woesApparently a recent upgrade to Safari on OS X has broken hosted mode for me. All I can find so far is:<br /><br />http://code.google.com/p/google-web-toolkit/issues/detail?id=4220#c22<br /><br />I spent quite a bit of time messing with Firefox since I had recently installed 3.6 beta but it seems this is not the issue. I hope to resolve soon.Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-1178438498751834232009-11-24T11:02:00.000-08:002009-11-24T11:02:40.788-08:00New Features in the Latest Cloud Foundry<a href="http://feedproxy.google.com/~r/Interface21TeamBlog/~3/kNMubXENgLI/">New Features in the Latest Cloud Foundry</a>: "We recently updated CloudFoundry.com. With this update, we introduced several exciting new features that pave the way for future development. I want to take this opportunity to describe and explain these features, as well as provide some background in how they came about. We are excited for you to try them out [...]<img src="http://feeds.feedburner.com/~r/Interface21TeamBlog/~4/kNMubXENgLI" height="1" width="1">"<br /><br />Need to take a look at this as an avenue for hosting FB apps. FB -> Grails -> CloudFoundry might be considerable better than FB -> Grails -> AppEngine.Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-2543547295286477912009-11-17T09:56:00.000-08:002009-11-17T09:58:52.090-08:00DuplicateMappingException: Duplicate class/entity mappingIt turns out the deceptive exception can be thrown from an improperly formed Many-to-Many relationship declaration. I'm not going to take the time to document a correct declaration here but I was getting this misleading error message and was searching for an obvious problem with imports when it turned out to be the @ManyToMany annotation usage.Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-51229941662256860242009-11-16T19:07:00.000-08:002009-11-16T19:07:45.060-08:00Mockingbird<a href="http://gomockingbird.com/">Mockingbird</a><br /><br />Handy tool to remember especially from a Mac/Linux standpoint when one lacks Visio.Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-1979211068859451342009-11-12T11:05:00.000-08:002009-11-12T11:05:50.874-08:00Chromium Blog: A 2x Faster Web<a href="http://blog.chromium.org/2009/11/2x-faster-web.html">Chromium Blog: A 2x Faster Web</a><br /><br />It is about time someone did this. There's no reason to think the HTTP protocol is the optimal and only protocol to last through the ages.Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-59154799820970426522009-11-09T13:19:00.000-08:002009-11-09T13:19:15.868-08:00SQLAlchemy - The Database Toolkit for Python<a href="http://www.sqlalchemy.org/">SQLAlchemy - The Database Toolkit for Python</a><br /><br />I need to explore the world of ORM'ing in Python. Python might just be the best cloud option going these days.Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-61766278708856761322009-11-06T19:11:00.000-08:002009-11-06T19:11:32.959-08:00Spring with gwt-dispatch<a href="http://pgt.de/2009/09/16/use-spring-with-gwt-dispatch/">pgt » Use Spring with GWT dispatch</a><br /><br />So inspired by this post and the discussion over in the gwt-dispatch group I have converted my application over from Guice to Spring. The only variance from the pgt blog post is that I am using net.customware.gwt.dispatch.server.spring.SpringStandardDispatchServlet in my web.xml. Other than that my action handlers are getting called as expected.Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-67412544426410721272009-11-04T06:03:00.000-08:002009-11-04T06:03:07.969-08:00InfoQ: Java Card 3 Includes Java 6 Support and an Embedded Servlet Container<a href="http://www.infoq.com/news/2009/11/smart_card_30">InfoQ: Java Card 3 Includes Java 6 Support and an Embedded Servlet Container</a><br /><br />Wow Tomcat in your pocket. This might expand some possibilities for iPhone applications.Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-86232603606768609802009-11-03T10:28:00.000-08:002009-11-03T10:28:26.116-08:00Raible Designs | Running Hosted Mode in GWT Libraries (when using Maven)<a href="http://raibledesigns.com/rd/entry/running_hosted_mode_in_gwt">Raible Designs | Running Hosted Mode in GWT Libraries (when using Maven)</a><br /><br />Linking to Matt Raible's notes on the GWT Maven plugin setup. I have basically the same findings.<br /><br />I've added the maven-war-plugin for building a war for deployment. I've also had some problems since I'm not on Snow Leopard yet and there are JDK 1.6 issues with GWT and JDK 1.6 on Leopard.Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-89719350569831640662009-11-02T13:03:00.000-08:002009-11-02T13:03:31.479-08:00pgt » Use Spring with GWT dispatch<a href="http://pgt.de/2009/09/16/use-spring-with-gwt-dispatch/">pgt » Use Spring with GWT dispatch</a><br /><br />Working on converting my servlet implementation for gwt-dispatch from Guice to Spring.Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-44640860927623822062009-10-27T07:04:00.000-07:002009-10-27T07:05:57.599-07:00Thoughts on GWT, MVP and GWT-EXT<a href="http://alexharvey.wordpress.com/">Thoughts on GWT, MVP and GWT-EXT</a><br /><br />Putting some GWT-related posts over on my blog that primarily speaks to Java-related topics.Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0tag:blogger.com,1999:blog-2584943137005007282.post-7213784555681423632009-10-06T10:48:00.000-07:002009-10-06T10:59:20.919-07:00test postThis is SQL:<br /><br /><pre class="brush:sql"><br />SELECT *<br />FROM users<br />WHERE user_id = 1212;<br /></pre><br /><br />This is Java:<br /><br /><pre class="brush:java"><br />package com.gwt.client.gin;<br /><br />import net.customware.gwt.presenter.client.place.PlaceManager;<br /><br />import com.google.gwt.inject.client.GinModules;<br />import com.google.gwt.inject.client.Ginjector;<br />import com.gwt.client.mvp.AppPresenter;<br /><br />@GinModules({ ListClientModule.class })<br />public interface ListGinjector extends Ginjector {<br /><br /> AppPresenter getAppPresenter();<br /><br /> PlaceManager getPlaceManager();<br /><br />}<br /></pre>Anonymoushttp://www.blogger.com/profile/11749862001596704080noreply@blogger.com0