Posts Categorized: Uncategorized

20150208_215348

ARDUINO EXPERIMENT #2 – DOT-MATRIX DISPLAY AND 74HC595 IC

Posted by & filed under Uncategorized.

Description After many failed attempts to follow Lesson #12 in the Sunfounder Super Kit and even more frustrated with the Sunfounder website, I decided to publish my findings for the dot-matrix experiment because a) I forget and b) maybe someone else will find this useful. The correct tutorial can ultimately found on youtube. The whole […]

keypad-7segment

Arduino Experiment #1 – 4×4 Keypad, 7 Segment Display and 74HC595 IC

Posted by & filed under Uncategorized.

Description After looking for different tutorials on how to use the 4×4 keypad on the Sunfounder website and getting bits and pieces, I decided to publish my findings because a) I forget and b) maybe someone else will find this useful. This arduino experiment is based on a few different tutorials I’ve found on the […]

Injecting Parameters into a XSL Transform Using the Java JAXP API

Posted by & filed under Uncategorized.

Often XML transformation is done with a static XML document or one generated from a data source.  Sometimes a transform needs environment or other runtime information in the transform process.  For example, I needed the absolute base path and a CSS stylesheet for a HTML document I was creating, and this was not something that […]

Stored procedures in HSQLDB

Posted by & filed under Uncategorized.

The only way to implement stored procedures in older versions of HSQLDB involved calling static methods in Java code.  Starting in version 2.2, HSQLDB supports stored-procedures as predefined SQL calls.  Documentation and examples of how to do this are not ideal or abundant.  Here is an example. DROP SCHEMA IF EXISTS example cascade CREATE SCHEMA […]

Cloning, Backing-up or Mirroring a Subversion Repository

Posted by & filed under Uncategorized.

Perhaps you’d like to create a read-only mirror of your svn repository or clone your repository so that you can make some organizational changes but are afraid to do so in the live production server.  Or maybe you just simply want to make a backup of your subversion repository. If you are a subversion admin […]

Pretty Print XML and JAXB Marshalling/Unmarshalling

Posted by & filed under Uncategorized.

I always seem to forget how to print XML with pretty-print enabled.   A quick google search reveals that there are a few third party libaries, XOM and JDom.  If you want to use a method that comes with the JDK using the included apache library, here is how you do it.   public void marshalAndPrettyPrintTest() […]

Scripting FTP

Posted by & filed under Uncategorized.

I recently had to add a step to a shell script that uses FTP to copy a file to a remote server.  Usually I’d use scp, secure copy, but for some reason I had to use FTP.  It had been a while since I had done this and didn’t quite remember how to do it. […]

Incorporating a Javascript/CSS plugin into a Maven build process using the Maven Minify plugin.

Posted by & filed under Uncategorized.

Finally, I was able to get a javascript minify plugin working.  http://maven-samaxes-plugin.googlecode.com/svn-history/r123/sites/maven-minify-plugin/index.html It uses YUI compressor under the hoods.  It combines Javascript into one file, CSS into another file and then uses the YUI compressor to minify the two files.  To preserve comments in the minified file, use /*! sequence at the start of a […]

Engineering Mistakes and Process Improvement

Posted by & filed under Uncategorized.

I often come across articles that I find are great in theory but putting them to practice in an organization is very challenging mainly due to the culture.  It often takes a lot of pain before change will occur.  The old saying, “ouch that hurts!  Don’t do that.” comes to mind.  Why is it that […]

Apache 2.2 Configuration

Posted by & filed under Uncategorized.

Apache configuration can be the most frustrating things, especially for those of us who don’t do it everyday.  The one mistake I constantly make is allowing Apache to serve up content from a document root.  Nine times out of ten I forget to add the Directory settings.  For example, once you configure a DocumentRoot don’t […]