Tuesday, November 22, 2005

Still a dilemma

I like livejounal as all my cheddi dosts are on it, easier to use and stuff. But on the other hand, blogger is powerful and flexible. Yet to decide if i should completely dump my LJ account.

Friday, October 01, 2004

Testing

This is to test the IE button.

Thursday, September 30, 2004

Application downloading another application.

It is really suprising how one thing leads to another and you end up learning a whole lot of things.I had to provide some mechanism for downloading a newer version for the client users.I thought i try out this "easy" .net class that does this job.
This is the WebClient class.The way to do this is as follows:
WebClient Client = new WebClient ();
Client.DownloadFile("http://localhost/testpage.aspx","c:\\testpage.aspx");
This just did not work and we thought of doing it old way. Launch a browser and then give the url of the installer as an argument to it.
To get the default browser i had to shuffle through the registry :
RegistryKey rk = Registry.ClassesRoot.OpenSubKey("http\\shell\\open\\command");
string test = rk.GetValue("").ToString();
With this information we will have to first build a ProcessStateInfowith the above string as the first value and URL of the installer as the second argument.
ProcessStateInfo psi = new ProcessStateInfo(test,url);
I then had to call Process.Start(psi);
This will then show us the usual File Download window with the usual"open" "save" "cancel" and "more info" buttons.Phew.....

For all the non-windows guys............

This is a really amazing article,which talks about a "break-up" between a guy and windows, about how is finally moving on .... must read:
http://www.xyzcomputing.com/index.php?option=content&task=view&id=140&Itemid=26

Monday, September 27, 2004

My First

I was told that this portal is associated with google and it also looks a lot more cooler than LJ, so here i am........