BIRT Date Formatting

To output a date in your BIRT HTML, you can nicely format it using the value-of xml tag… <value-of format=”MM/dd/yyyy hh:mm:ss”>new Date()</value-of> More tips here.

MediaWiki – Prevent Edit Unless Logged In

As Tim Joh found it is quite easy to change MediaWiki’s behavior. Just edit the file LocalSettings.php in the root directory and add the following line at the bottom (or anywhere else): $wgGroupPermissions[‘*’][‘edit’] = false; This will remove the edit-permissions from users who have not yet logged in.

Published
Categorized as Uncategorized Tagged

Disable Windows-L

As per this article I found… you can disable the Windows-L = Lock Windows behavior on windows with a registry hack. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System Add DisableLockWorkstation = 1 to disable.

Published
Categorized as Uncategorized Tagged

@SuppressWarnings

A full list of @SuppressWarnings options (per environment) are available here. In Eclipse… The list of tokens that can be used inside an SuppressWarning annotation is: all to suppress all warnings boxing to suppress warnings relative to boxing/unboxing operations cast to suppress warnings relative to cast operations dep-ann to suppress warnings relative to deprecated annotation… Continue reading @SuppressWarnings

Published
Categorized as Uncategorized Tagged

Remove Non-ASCII Chars

Quick snippet to remove non-ascii characters from a java string: String clean = dirty.replaceAll(“\\P{ASCII}+”, “”);

Published
Categorized as Uncategorized Tagged

Mail from Java

Sometimes you gotta send mail from outside an app server, in which case, this will get you started: Sending Mail with the JavaMail API You will need the JavaMail library (mail.jar) as well as the Java Activation Framework (activation.jar) to get it running…

Published
Categorized as Uncategorized Tagged

Instructions Required

Found on the internets somewhere… If you need information on how to unzip files, go away and learn before you go anywhere near a development environment or the Internet in general. Seriously.

Published
Categorized as Uncategorized Tagged

Netstat

Ever wonder what network activity is happening on your machine? Use netstat. The most useful command line options: -a = show all network access -b = shows the process, or on windows the process id that is using the network (the process id can be matched up to a process via the task manager) -n… Continue reading Netstat

Published
Categorized as Uncategorized Tagged

Mac Blogging Software

I used to use Microsoft Live Writer on Windows to post to my WordPress blogs, but now am looking for an equivalent program on the Mac… so far, no luck. Here are the programs I’ve reviewed, and the shortcomings they have… I started with this list, and the most reasonable app I found was Ecto.… Continue reading Mac Blogging Software

Published
Categorized as Commentary

Nothing to take away…

As in life, so in code… “Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.” –Antoine de Saint Exupery

Published
Categorized as Commentary