Friday, January 28, 2011

Fixing a Screwed Up Full Duplex scan

I scanned a two sided document and every other page came in upside down.  Thanks to pdftk, I fixed this in short order.

I ran
pdftk A=messedup.pdf shuffle A1-11odd A1-11evenS output fixed.pdf
which means
  1. use A as shorthand for messedup.pdf
  2. shuffle the following pages:
    1. the odd pages in A
    2. the even pages in A, but rotated so that South is Up (flipped)
  3. Write it out as fixed.pdf
Easy peasy.  Great tool.

Tuesday, January 25, 2011

Verizon Droid Pro versus Droid 2

This review hit the censorship filters on the Verizon Wireless review thingy because of the word "crap".

The screen doesn't work if you're wearing gloves.  When you turn the phone on, it bleats DROID at you in a voice that makes you want to throw it at a wall and there's no apparent way to disable it.  It needs a trackball or optical mouse of some sort because zooming in the browser is a pain in the butt and the screen is small.  Applications besides VZW Navigator (like google maps or GPS Status) don't appear to work with the aGPS only.  The keys take a lot of getting used to.  Using the voice dial function still requires you to look at the screen and tap it sometimes.  The 5MP camera on my Samsung Omnia (winmo 6.5) phone was higher quality.  There's no built in flickr integration.  It's polluted with Social apps.  The encryption feature isn't available yet.  The software update fails repeatedly despite restoring all the verizon crap software on the phone.  It still suffers from the problem of trying to make calls and just giving me two minutes of silence then failing fairly often which isn't much better than a dropped call in my book.

It's better than any other Android phone.  I tried the Droid 2 Global and this is lighter and the keyboard is better.  There's no flickr integration, but you can work around that.

Monday, January 24, 2011

Unanet Timesheet Works on Glassfish

I just had to wrap unanet.xml into the war as META-INF/context.xml and point it at my unanet.properties file's absolute location on the server and put my config from jaas.config into /opt/glassfishv3/glassfish/domains/domain1/conf/login.conf and it worked with no apparent problems.  I'm pretty psyched.

Monday, January 17, 2011

Odd NumberFormatException w/ Halogen eAppraisal

Halogen suddenly stopped working for us recently with tons of errors in the logs saying stuff like

[ERROR] [TP-Processor23] (108) EXCEPTION java.lang.NumberFormatException
java.lang.NumberFormatException: For input string: "jsp1.2"
  
.....
[ERROR] [TP-Processor26] (113) EXCEPTION org.apache.jasper.JasperException
org.apache.jasper.JasperException: org.apache.jasper.JasperException: Unable to load class for JSP


Not sure what caused it.  Either the latest version of tomcat somehow or having Jasper Server on the same tomcat.  Jasper and Halogen have been coexisting happily for a while though.  Neither was upgraded recently and it's not like I put the jasper jars in the global lib folder so I'm really not sure. 

Anyways, the solution was to edit WEB-INF/*.tld and change all occurrences of "jsp1.2" to "1.2" then restart tomcat.  Good as gold.