Wednesday, December 17, 2014
Sunday, December 7, 2014
Logging with django
http://blog.lysender.com/2013/05/django-verbose-console-logging-in-development-server/
Monday, November 24, 2014
Reuse django admin interface
http://www.tryolabs.com/Blog/2012/06/18/django-administration-interface-non-staff-users/
Friday, November 21, 2014
Wednesday, September 17, 2014
Tuesday, September 16, 2014
Thursday, September 11, 2014
Wednesday, September 3, 2014
Friday, August 29, 2014
Wednesday, July 23, 2014
Tuesday, July 22, 2014
Article about technology's effect on jobs
Innovations: We’re heading into a jobless future, no matter what the government does : http://wapo.st/1lmJGRW
Tuesday, July 15, 2014
GWT and AppEngine part 2
Just had fun dealing with an error when deploying to appengine that said that I need to compile my module. After much searching and playing, I finally discovered that I had to run a maven compile first. I had been avoiding that because my maven compiles had been erroring out. I assumed that they weren't doing anything. They were apparently doing enough, though, to allow the google eclipse plugin to finish the job when deploying.
Upon investigation of the compile error I discovered that the default pom.xml that is created by gwt-maven-plugin had the scope for the validation-api dependency set to test. Setting it to provided solved the problem. See: http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html for more information on scope.
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.0.0.GA</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.0.0.GA</version>
<classifier>sources</classifier>
<scope>provided</scope>
</dependency>
Upon investigation of the compile error I discovered that the default pom.xml that is created by gwt-maven-plugin had the scope for the validation-api dependency set to test. Setting it to provided solved the problem. See: http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html for more information on scope.
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.0.0.GA</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.0.0.GA</version>
<classifier>sources</classifier>
<scope>provided</scope>
</dependency>
Getting GWT and AppEngine working together using Maven
Turns out that the gwt-maven-plugin does most of the work for you as long as you are using eclipse and the eclipse google plugin. The server configuration setting in the POM.xml does everything that you need. See the POM.xml snippet below.
Here are a couple of gotchas:
- You need to use the eclipse plugin to turn on appengine support.
- You'll need to create an appengine-web.xml
- Note that when I tried deploying to appengine even though my app_id was correct in the appengine-web.xml file I would get an error saying that the app didn't exist on appengine and the details showed that it was using the wrong app_id. I couldn't find where eclipse was getting the incorrect app_id from so eventually just deleted all of the eclipse stuff (mvn eclipse:clean) and reimported.
- You'll have to adjust your build path and move the maven dependencies to the bottom of the "order and export" list. Otherwise eclipse complains that the appengine-sdk.jar is not a directory.
- When I reimported my project into eclipse for some reason the target/generated_sources directory was no longer in the java build path. Add that back in if you get errors about the _async classes not being found.
- I had to use eclipse-ee in order to import the maven project properly because it seems like m2e-wtp is required. I wound up installing the latest version of m2e after getting errors about maven, but that was back when I was trying to run the whole project as a maven project using (appenging:devserver). I never did get that method of doing this working. It seems that if you are going to sue the gwt-maven-plugin, you can't combine it with the appengine-maven-plugin.
<!-- GWT Maven Plugin -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.6.1</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test</goal>
<goal>i18n</goal>
<goal>generateAsync</goal>
</goals>
</execution>
</executions>
<!-- Plugin configuration. There are many available options, see gwt-maven-plugin
documentation at codehaus.org -->
<configuration>
<strict>true</strict>
<extraJvmArgs>-Xss1024K -Xmx1024M -XX:MaxPermSize=256M</extraJvmArgs>
<logLevel>INFO</logLevel>
<style>${gwt.style}</style>
<copyWebapp>true</copyWebapp>
<hostedWebapp>${webappDirectory}</hostedWebapp>
<runTarget>gwtmodule.html</runTarget>
<webappDirectory>${webappDirectory}</webappDirectory>
<server>com.google.appengine.tools.development.gwt.AppEngineLauncher</server>
<i18nMessagesBundle>com.corecompetency.gwt.client.Messages</i18nMessagesBundle>
<appEngineVersion>${appengine.target.version}</appEngineVersion>
<!-- Should GWT create the Story of Your Compile Report -->
<compileReport>false</compileReport>
</configuration>
</plugin>
Friday, July 11, 2014
Thursday, July 10, 2014
Monday, July 7, 2014
Sunday, July 6, 2014
Wednesday, June 18, 2014
Tuesday, June 17, 2014
Sunday, June 15, 2014
GWT helpers
- Demystifying MVP
- GWT Event Binder
- GWTMockito for unit testing when using composite classes instead of presenter/view
Saturday, June 14, 2014
GWT and guice example
http://www.canoo.com/blog/2011/04/05/gwt-dependency-injection-recipes-using-gin/
Monday, June 2, 2014
Saturday, May 31, 2014
Kinect depth projection to real world coordinates
FovH = 1.0144686707507438 (rad) // horizontal field of view FovV = 0.78980943449644714 (rad) // vertical field of view From there you can find the real world coordinates from the depth cloud like so: // X_proj = X pixel number, Y_proj = Y pixel number // Xres = X resolution (640 for Kinect and Xtion, optional 320 for Xtion // Yres = Y resolution (480 for Kinect and Xtion, optional 240 for Xtion X_rw = (X_proj/Xres-.5) * Z * XtoZ Y_rw = (0.5-Y_proj/Yres) * Z * YtoZ, Z_rw = Z where XtoZ = tan(FovH/2)*2, and YtoZ = tan(FovV/2)*2, and Z is the value given by the depth map at each pixel.
Wednesday, May 28, 2014
Monday, May 26, 2014
Wednesday, May 21, 2014
Thursday, May 15, 2014
Wednesday, May 14, 2014
Thursday, May 1, 2014
Wednesday, April 30, 2014
Saturday, April 5, 2014
Widening drawer opening with router
http://ths.gardenweb.com/forums/load/kitchbath/msg01115201875.html
Sunday, March 30, 2014
Thursday, March 6, 2014
Saturday, February 22, 2014
Friday, February 21, 2014
Thursday, February 20, 2014
How do you make liquid nitrogen
http://blogs.howstuffworks.com/keep-asking/how-do-they-make-liquid-nitrogen/
Colebot's first beat box
bushkbushkbushk bushk bush bushk bushk bushk bush colebot out
http://www.cstr.ed.ac.uk/projects/festival/onlinedemo.html
using Nick-1 English
http://www.cstr.ed.ac.uk/projects/festival/onlinedemo.html
using Nick-1 English
Thursday, February 13, 2014
Monday, February 10, 2014
opensource Firewall pfsense
http://www.mondaiji.com/blog/other/it/10175-the-hunt-for-the-ultimate-free-open-source-firewall-distro
Monday, February 3, 2014
Tuesday, January 28, 2014
Saturday, January 25, 2014
Wednesday, January 22, 2014
Monday, January 20, 2014
Subscribe to:
Posts (Atom)