Blog

Replace Carriage Return in OGNL
2011-07-21

I want to share this little secret, like many times, I need to do something and search but come up empty on how. I tried to search for “replace carriage return with br tag” and many similar searches but found nothing. A little imagination is needed at times to find a workable solution. The...


Toshiba Satellite Wireless Problem/Solution when Running on Battery
2011-01-13

I had just struggled for several days and far too many website visits trying to solve this problem and wanted to share the solution. I had just bought a new Toshiba laptop and I love it except for the problem I encountered with the wireless connection. As long as I was plugged in to power,...


Javascript Diff Combines Scripts to Fill the Gap
2011-01-07

There is a wealth of great code available for anyone to use to cover nearly every possible scenario. Sometimes a little creativity and minor effort is needed when what you need is not readily available. I was in need of a client side script for displaying diffs. I found this which is nice. ...


Sanitizing HTML Injection Using DOM
2010-07-06

This article explains how to use the DOM to sanitize user input against HTML injection. In many cases, something as simple as replacing the < and > with &lt; and &gt;. In other cases, you may want to display user entry and preserve HTML entities such as PRE tags. You still will...


Dynamic Loading and Executing of Javascript in AJAX
2010-04-19

You may find there are times when you use certain scripts on an AJAX site, but not on all pages. It would be very inefficient to load them all immediately in the HEAD of the HTML document. Also if you are developing a plugin architecture, it would be preferable to load them at runtime. Today I...


Javascript Tab Control
2009-12-12

Greetings. Today’s tip is a minimal javascript tab control. See Example I prefer to use a hybrid approach where the layout and style is done in the html and css and the functionality is done in java script. First we will look at the html layout. <div...


Java Swing Image Map
2009-12-03

Here I will present a simple Image Map class written in java using swing. This will allow you to create an interactive image and take action base on where the image was clicked. This could be used for a map of a campground, townhouses, subdivision, storage facility, city zoning or building...


Save Time With jEdit and Regular Expressions
2009-12-01 19:03:55

Today’s trick is a time saver that I have been using for some time. It involves using regular expression searches with the jEdit editor. This handy little tool is a free open source editor written in Java. Let’s look at an example. Take the simple form below for...


Java Ring Chart
2009-11-30

This week I am going to talk about Java graphics and how they can be used to create a custom Ring Chart control also commonly referred to as a doughnut chart. This is the type of chart typically used for disk allocation in programs similar to Overdisk. They however are not limited to...


Article content