Day

July 10, 2012

Looping over ColdFusion Structure

The following are the reference and sample code on how to loop over a structure without knowing its keys.   <cfset testStruct = structnew() /> <cfset testStruct.key1 = "test1" /> <cfset testStruct.key2 = "test2" /> <cfset testStruct.key3 = "test3" /> <cfdump var="#testStruct#" /> <cfloop list="#structKeyList(testStruct)#" index="key"> <cfoutput> Key: #key#, Value:…

Batch script to automatically reload explorer.exe

Sometime you may found that all the item in your desktop or in the taskbar suddenly disappear without any error or message; this is properly due to the hang of explorer.exe process. You can easily get back the content by reload the explorer.exe process.   The following bat script can…

Google Now – Combination of all Google product into one

Google Now is a combination of Google application into one and it will gets you just the right information at the right time that you need.   Google Now make the information into a card and it will show you the right card with the right information at the right…