Sunday, December 7, 2014

Logging with django

http://blog.lysender.com/2013/05/django-verbose-console-logging-in-development-server/

Thursday, September 11, 2014

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>

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:
  1. You need to use the eclipse plugin to turn on appengine support.
  2. 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.
  3. 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.
  4. 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.
  5. 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>  

Wednesday, June 18, 2014

Sunday, June 15, 2014

Saturday, June 14, 2014

GWT and guice example

http://www.canoo.com/blog/2011/04/05/gwt-dependency-injection-recipes-using-gin/

Saturday, May 31, 2014

Xtion Kinect alternative

http://www.newegg.com/Product/Product.aspx?Item=N82E16826785030

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.

Thursday, May 15, 2014

SQL tree solutions

http://www.slideshare.net/billkarwin/models-for-hierarchical-data

Wednesday, May 14, 2014

Restygwt + Jersey maven

http://ronanquillevere.github.io/2014/03/16/gwt-rest-app.html#.U3Qn_NDn8m8

Saturday, April 5, 2014

Sunday, March 30, 2014

Friday, February 21, 2014

Vortex tube

http://m.instructables.com/id/The-Hilsch-vortex-tube/step2/supplies-and-such/

Thursday, February 20, 2014

Cooling technique used for quantum computer

http://en.m.wikipedia.org/wiki/Pulse_tube_refrigerator

How do you make liquid nitrogen

http://blogs.howstuffworks.com/keep-asking/how-do-they-make-liquid-nitrogen/

How cold is space

http://www.universetoday.com/77070/how-cold-is-space/

Google Speech API – Full Duplex PHP Version | mike pultz

Google Speech API – Full Duplex PHP Version | mike pultz:



'via Blog this'

Java Speech API Frequently Asked Questions

Java Speech API Frequently Asked Questions:



'via Blog this'

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

High quality text to speech linux

High quality text to speech:



'via Blog this'

GALATEA - An Open-Source Toolkit for Anthropomorphic Spoken Dialogue Agent

GALATEA - An Open-Source Toolkit for Anthropomorphic Spoken Dialogue Agent:



'via Blog this'

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