Geeks With Blogs
Thomas Pepe July 2011 Entries
Ordered Dictionary in Java
Java has a handy class that retains the order in which map (dictionary in .NET) values can be iterated in the same order they were added called LinkedHashMap. Ways to iterate (*Coding from memory without compiler = chance for syntax errors: high): LinkedHashMap<String,Str... states = new LinkedHashMap<String,Str... states.put("AL", "Alabama"); states.put("AK", "Alaska"); for(Map.Entry<String,Str... state : states.entrySet()){ System.out.print("state: " + state.getValue()); ......

Posted On Sunday, July 31, 2011 8:56 AM

Java VS .NET, Subversion VS TFS: a personal history of terminology
Though software fundamentals, patterns, and anti-patterns are by far more important and intellectually stimulating to discuss, sometimes it's difficult to move to a new set of terms. When I first learned to program, .NET was pre v1.1 and the java community was getting ready for v1.4. Naturally, I preferred java because of its price, stability, and all my college classes were java. When I got work developing .NET (a few years later) I had to interpret some of the key words from java to .NET. For instance, ......

Posted On Sunday, July 31, 2011 8:28 AM

Using CTE to concatenate rows by group
CTEs or common table expressions can be used to make recursive SQL stantements. CTEs are ANSI-99 standard. Please read www.sql-server-performance.... for more information. I have only had 2 instances in my career where CTEs made sense for me to use in a pratical setting. If you have found them more practical, please share. The first time I needed a CTE I was displaying corporate branches from a recurssive table. Some branches had branches, which had branches, and so on, whereas ......

Posted On Wednesday, July 27, 2011 12:13 PM

Using Beyond Compare with TFS in My Eclipse
For a generic guide on using a custom diff tool in TFS from My Eclipse:http://msdn.microso... Combine this information with the guide provided on Beyond Compare's website: Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; ......

Posted On Wednesday, July 6, 2011 1:44 PM

Copyright © tom | Powered by: GeeksWithBlogs.net