How to detect ScrollBar is visible on ScrollViewer

Most of time we use <ScrollViewer HorizontalScrollBarVisibility=”Auto”>. Since, it is Auto, we need to tap in some event and do some checking to know scroll bar is appeared. For this you need to  <ScrollViewer HorizontalScrollBarVisibility=”Auto”… Continue reading

Why ignorance is stupid?

Ignorance = reject knowledge where, knowledge = wealth Ignorance = reject wealth reject wealth = stupid. Equation solved.

Basic How to Use the Ping Command

Start > Programs > Accessories > Command Prompt. This will give you a command window. Example: ping http://www.google.com With above simple command, few things you are achieved. Usage1: Check http://www.google.com is alive or… Continue reading

Convert Generics List to HashSet to utilize SetEquals and Except

Use Case You have List<string> registered_name and List<Member> members. You want to know a) are all members registered? b) who are not registered? Step1: Convert List<Member> into List<string> List Step2: Check is all… Continue reading

Light Trail 24th May 2012

Learning 17mm(DX) Composition

.NET ex.Message vs ex.ToString?

Exception.Message contains only the message (doh) associated with the exception. Example: Object reference not set to an instance of an object The Exception.ToString() method will give a much more verbose output, containing the… Continue reading

Milky way at Kulim 19th May 2012

Penang in Colour 13th May 2012

Penang Beach Street 6th May 2012