Wednesday, October 20, 2010

Back to Blogging with a wonderful news.

It has been quite a while that i blogged anything. May be it was destined to be a special entry. So here i am. Dear friends, am getting married on 31st of Oct 2010.


It has been quite a wonderful journey so far for me and Sree. In fact, i realized just yesterday that it is already 6 months since our marriage got fixed. Life surely have taken a turn, but a very happy one indeed.

It's quite a coincidence that this very blog played a crucial role in our relation and here i am, talking about our marriage using the same medium.

Pray for us dears.

Thursday, May 13, 2010

WSH object and Usage

Following is a list of WSH objects and its typical usage. I found it extremely useful ( courtesy MSDN)



Object

What you can do with this object

WScript Object

· Set and retrieve command line arguments

· Determine the name of the script file

· Determine the host file name (wscript.exe or cscript.exe)

· Determine the host version information

· Create, connect to, and disconnect from COM objects

· Sink events

· Stop a script's execution programmatically

· Output information to the default output device (for example, a dialog box or the command line)

WshArguments Object

Access the entire set of command-line arguments

WshNamed Object

Access the set of named command-line arguments

WshUnnamed Object

Access the set of unnamed command-line arguments

WshNetwork Object

· Connect to and disconnect from network shares and network printers

· Map and unmap network shares

· Access information about the currently logged-on user

WshController Object

Create a remote script process using the Controller method CreateScript()

WshRemote Object

· Remotely administer computer systems on a computer network

· Programmatically manipulate other programs/scripts

WshRemoteError Object

Access the error information available when a remote script (a WshRemote object) terminates as a result of a script error

WshShell Object

· Run a program locally

· Manipulate the contents of the registry

· Create a shortcut

· Access a system folder

· Manipulate environment variables (such as WINDIR, PATH, or PROMPT)

WshShortcut Object

Programmatically create a shortcut

WshSpecialFolders Object

Access any of the Windows Special Folders

WshUrlShortcut Object

Programmatically create a shortcut to an Internet resource

WshEnvironment Object

Access any of the environment variables (such as WINDIR, PATH, or PROMPT)

WshScriptExec Object

Determine status and error information about a script run with Exec()

Access the StdIn, StdOut, and

Thursday, March 25, 2010

New Photo Blog

I am moving my photography posts to my new photoblog at http://pixelviews.wordpress.com/.

The idea behind the PixelViews is to discuss more about photography and the story behind some of my photographs.

Please do leave your suggestions and comments.

Monday, March 22, 2010

Kochi in IPL Map

"Chotta Mumbai" is finally on the IPL map, Kochi has emerged as one of the two new teams to join the IPL bandwagon. Mentored by Shashi Tharoor, a group of businessmen has put forward a franchise named "Rendezvous Sports World".


Team name ? well, we would need to wait another week for that,but for the time, let's enjoy this moment.

Thursday, March 18, 2010

Tolerance for DateTime comparison

By default, C# compares DateTime instances with a tolerance of 100 ns. Recently i ran into a situation where i needed to customize the tolerance level. C# doesnt provide any overloaded method operation to do so, but we could do ourself very easily.

if((dateTime1 - dateTime2).Duration() <>
{
}

This ensures a tolerance of 10 seconds.This can altered to do any tolerance level that we require.