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.
Author: Jason G.
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.
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.
@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
Remove Non-ASCII Chars
Quick snippet to remove non-ascii characters from a java string: String clean = dirty.replaceAll(“\\P{ASCII}+”, “”);
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…
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.
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
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
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