Monthly Archives: October 2011

JavaScript Number Format – Add Thousands Delimiters

Use this if your app is dealing with i18n formatting and you can’t just rely on the good ol’ american comma to format your numbers with. You really have to make your code more intuitive. Bring in the locale from … Continue reading

Posted in Uncategorized | Leave a comment

The Java ternary operator

Interested in saying a lot while writing a little? In a single line of code, the Java ternary operator let’s you assign a value to a variable based on a boolean expression (either a boolean field, or a statement that … Continue reading

Posted in Java, Software Programming | Leave a comment

Perform a Baseless Merge in Visual Studio Team Foundation Server

Open a Visual Studio command window. Run the following Tf.exe command from the command line: Tf merge /baseless /recursive Example Tf merge /baseless c:\data\proj1 c:\data proj2 /recursive If you need to merge specific versions of the code changes, you can … Continue reading

Posted in Uncategorized | Leave a comment

locale/ currency / number format function in Javascript

JavaScript function that formats a number by inserting a delimiter (if specified) and rounds to ā€˜nā€™ decimal places aswell as adding a currency symbol if specified. Be warned there are probably less verbose and more efficient functions out there. The … Continue reading

Posted in Uncategorized | Leave a comment