Toms Online Notebook Sharing my stuff.

Creating a JAR file with only the classes needed

by tgutwin


Posted on Sunday Jan 29, 2017 at 01:46PM in Programming


CupOfJava.jpgHave you ever wanted to create a JAR file for your Java class but only wanted to collect and jar the class files required by your class?
I found a very useful class to do this for you:
It is called: ZipLock written by Stuart D. Gathman at his company Business Management Systems.

Direct link to Original ZipLock.java file.
Its perfectly simple and OpenSource!  Thanks Stuart.

I also wrote a simple bash script below to wrap the calling of the java class...

Read More

LedNet Proxy

by tgutwin


Posted on Sunday Dec 18, 2016 at 06:40PM in Programming


LedNet-5Wire.jpgI want to control a LED light Strip with the 5 channel (rgbw) LEDNet controller that I bought.  I want to use my own software. Thankfully others have figured out the IP messaging packet, so I wrote my own little app that lets me program/control a Strip of RGBw LEDs.

The ultimate intent is to be able to control it using My UDI ISY-994 home controller.

Its all do-able.

Read More

Zip Download Servlet

by tgutwin


Posted on Sunday Oct 16, 2016 at 12:33PM in Programming


Java LogoI needed a simple Java Servlet to zip a directory of files (or a single file) with parameters to dynamically specify what to zip up.

It does NOT create a temp file; it zips and streams the output directly to the client.
its called ZipFiles.

Here it is...

Read More