How to get the running exe File Version
Nice and simple, get the running assembly, get the AssemblyName details object, get the version property. Assembly asm = Assembly.GetExecutingAssembly(); AssemblyName AssDetails = asm.GetName(); String versionAsString = AssDetails.Version.ToString();
Ext.util.SpriteManager
Original post date May 1st, 2007 One of the ways of improving web page performance (especially in RIA – Rich Internet Applications) where there are lots of small images that need to be displayed, e.g. on a toolbar, is to … Continue reading
Ext.Format extension for thousands separator formatting
A simple function, the basis of was in the public domain (see comments) to format a number with thousand separators. Ext.apply(Ext.util.Format,{ decimalSeparator : ‘.’, thousandSeparator : ‘,’, /* Adapted from http://www.mredkj.com/javascript/nfbasic.html, * Public Domain, without copyright, and can be used … Continue reading
101 of Memory Leak causes in JavaScript
Really nice article explaining some of the gotcha’s that can cause memory leaks in JavaScript http://www-128.ibm.com/developerworks/web/library/wa-memleak/
Javascript – Rails like pluralize function
Found this on scripts.dzone.com blogged for reference. * * This script depends on no outside libraries. */ Inflector = { /* * The order of all these lists has been reversed from the way * ActiveSupport had them to … Continue reading
JQuery and human readable email addresses
I’ve just started playing with the power that is Jquery and came up with this nice use for the Ajax functionality in Jquery. You want to put your email address on your web site so people can contact you, but … Continue reading
OverlayIcon – Displaying overlayed icons in JTree
In companion to the CompoundIcon article, here is a class to allow you to build up icons with overlays that can be used anywhere, but specifically in JTree.
CompoundIcon – Displaying more than one icon in JTree
I came across the requirement to display more than one Icon against the nodes in a Jtree. After several hours /days of building custom TreeCellRenderers and TreeCellEditors, inspiration hit. The JLabel can only display one icon, so lets override Icon … Continue reading
doxygen integration for QT Creator
As part of my new push to learn c++ and do something interesting in it, I have been ensuring I document as I go along. I’m using doxygen which produces amazing output from so little information and here: qtcreator-doxygen is a plugin for … Continue reading