Sometimes You Just Need to Remove All SVN Metadata Folders

Posted by & filed under Uncategorized.

Rather than delete each SVN meta-data folder by hand, try automating.  Here’s some code that might help. import java.io.File; public class RemoveSVNMetaData { public static void main(String[] args){ System.out.println(“Remove SVN Metadata for ” + args[0]); File f = new File(args[0]); if(f.isDirectory()){ checkDirectory(f); } else { System.out.println(args[0] + ” is not a directory.”); } } public […]

Don’t Worry Everyone Sucks At Photoshop

Posted by & filed under Uncategorized.

My wife found these wonderful Photoshop “tutorials” online at youtube. The instructor, Donnie, has some serious issues but is very funny and very entertaining. I found myself watching all 18 episodes and laughing harder than I have in a while. View it here at http://www.youtube.com/watch?v=U_X5uR7VC4M

Using Hibernate Constraint Annotations with Seam/JSF

Posted by & filed under Uncategorized.

Most if not all the Hibernate validators have a message attribute that can use an expression representing a key in a message bundle. The message bundle is defined and tied to the JSF Messages feature thru Seam configuration in the components.xml configuration. <factory name=”m” value=”#{messages}”/> <core:resource-loader> <core:bundle-names> <value>/WEB-INF/messages/system</value> <value>/WEB-INF/messages/application</value> </core:bundle-names> </core:resource-loader> So, the example below […]

Using a List of Custom Objects in JSF/Seam

Posted by & filed under Uncategorized.

Whether you are using radio buttons, check boxes or selects,  at some point you probably have a collection of custom objects that you want to supply to that form control.  JSF by itself knows about SelectItem objects to populate the list and only really knows about Strings when a value is selected and submitted to […]

Packaging Facelets Templates in JAR Files

Posted by & filed under Uncategorized.

In Facelets, the template attribute of the composition tag understands URI references including the jar protocol.  For instance, say I have a layout template called jlayout.xhtml inside a jar file called facelets-t.jar.  The reference can be absolute: template=”jar:file:///C:/j2ee/home/applications/myapp/WEB-INF/lib/facelets-t.jar!/jlayout.xhtml” Or, relative to the working directory where the JVM was invoked.  In the case of a j2ee […]

Password Hell

Posted by & filed under Uncategorized.

Everyone I know has to remember some number of combinations of user name and passwords. Personally, I have way to many to remember, so I wrote this program that encrypts password files and gives you a nice GUI front-end to manage it.   So now I only have to remember one password, that is used […]

JNI Adventures

Posted by & filed under Uncategorized.

So, we have this issue where we can’t recreate test scenarios because of changing data on the back-end. A collegue of mine and I were discussing the issue when I began to think that we could use a packet sniffer to passively record network traffic and then play back those packets at anytime, thereby simulating […]