PermGen Errors

Keep getting PermGen out of memory errors? This is very prevalent during debugging as many platforms, such as JBoss, use up the space by re-creating classes with different classloaders (which is what you want when you’re debugging and restarting applications). There is a relatively easy fix though… increase the size allocated by the JVM on… Continue reading PermGen Errors

Published
Categorized as Uncategorized Tagged

Code Markup Plugin

I’m trying out the wordpress plugin Code Markup by Bennett McElwee. We’ll see how well it works…

Published
Categorized as Uncategorized Tagged

Search with Lucene

The Apache project Lucene has gotten a lot of attention as a good open source search platform.  Any one who needs search capabilities should consider Lucene in their due diligence.

Published
Categorized as Uncategorized Tagged

Charts in Seam

From the Seam Forums: Using JFreeChart with Seam can be quite useful:

Published
Categorized as Uncategorized Tagged

Fixing Fixed-Width Text Files

To remove the end line characters in a text file that has every line truncated at 80 chars… perl -pi -e ‘s/(….+)\r\n/$1 /’ filename.txt perl -pi -e ‘s/\n/\n\n/’ filename.txt Then open in Write –> copy and paste into word.

Published
Categorized as Uncategorized Tagged

Replace Text

Here’s a quick one-liner for perl… replace every occurance of “boring” with “fun”: perl -pi.bak -e ‘s/boring/fun/’ filename.txt

Published
Categorized as Uncategorized Tagged

Recursive Search

I usually use Windows Explorer to find something recursively within a folder hierarchy… but sometimes it doesn’t work based on the file types. When that happens, I fall back to this find + grep combination (available with cygwin utils): find . -type f -exec grep needle {} \; -print It looks for the word “needle”… Continue reading Recursive Search

Published
Categorized as Uncategorized Tagged

Windows Time Synch

Windows nicely ships with a little utility that updates your system time with an internet server so that the clock won’t skew over time. This is a Pretty Good Idea, but alas, it went away several months ago. The built-in servers time.windows.com and time.nist.gov no longer respond to requests to get the current/correct time. As… Continue reading Windows Time Synch

Published
Categorized as Commentary

JBoss as a Service on Windows

Want to run JBoss as a Windows Service? The old suggested solution was to use Java Service Wrapper, but the Wiki states it is no longer recommended. An alternative recently surfaced… The JBossWeb Project includes a native launcher that allows JBoss AS to be installed as a windows service. The tool uses your run.bat as… Continue reading JBoss as a Service on Windows

Published
Categorized as Uncategorized Tagged

JSF Tricks

Here are a few tricks over at the MyFaces Wiki: Executing an action when a drop-down value changes Executing an action when the enter key is pressed The latter is helpful when the Ajax4JSF components stop the enter key from submitting a form / executing an action. The rest of the wiki is a little… Continue reading JSF Tricks

Published
Categorized as Uncategorized Tagged