Skip to main content

Posts

SafeFileName Property and .Net 2.0 SP1

I built a small utility using C# Dot Net version 2.0 in which I took help of Open File Dialog box windows control to know user selected file path and name. I used “SafeFileName”(Gets a string that only contains the filename for the selected file.) property of OpenFileDialog box to display selected filename on the windows form. I did a fine testing on my development machine and deployed it on production computer. The production computer was up by freshly installed Windows Vista operating system (without SP1 update). since Vista ships with DotNet runtime, my job was as easy as copying my dot net executable assembly and double clicking it. When the OpenFileDialog box tried supplying user selected file name through “SafeFileName” property, it crashed! Damn...!! The error message was clearly telling me that “method not found: OpenFileDailog.get_SafeFileName()”!! I was darn surprised. Though I did a quick fix for this problem by making use of FileName property (Gets or sets a string containi...

Linux - My Second Attempt

First time when I tried installing Linux on my box, I was failed to appraise it. I concluded that “I am typical ‘Windows’ user and might be not-understanding the Linux way”. I took break; I read some good articles on Linux. Few articles mentioned like “This Linux distribution is so easy that my grandma can use it…” I downloaded few Linux distributions (I would prefer not to mention their names here.) and tried installing one by one on my laptop. In almost all distributions, my first impression of Linux being faster operating system was gone. When I wanted to install new utility software (.rpm package) I had to learn command prompt options and finally ended up with error messages which tells one or the other supporting library is missing. Badly organized start menu always took more than required time to find out what I wanted. Too many small utilities fail to achieve user needs as a whole. Few distributions were good in few things. My overall intention was to get faster Linux on my ...

My Working Mood Meter

Recently I noticed, Kannada calendar hanging in my home is indirectly indicating my working moods in percentage. Here is what I found the exact information when I put imaginary lines on weekday letters. Don't you think everything tries to tell something to us and we just need those ‘eyes’ to observe?

Software Automatic Updates

Few software which periodically needs to be updated, usually comes with an in-built 'Automatic Update' feature. Windows Automatic Updates is one known example for an instance. For a person who is not a software techi, this is indeed a great facility, which does its work silently in the background with no manual intervention. Person like me do not like (sometimes hate) this feature and there is a strong reason behind it. Automatic updates do not retain downloaded update files after applying it. Few months down the line when I format my machine and reinstall the software, Automatic update once again downloads all older update files along with new ones if there any. Time and resource consumption for older updates download is simply repetitive. Automatic update facility in many software wont disclose download location and delete files after applying it. It could be great if we see an advanced option to specify download folder location or get to know where these files are downloaded...

A Seriously Funny Poster

I could not stop laughing when one of my buddies manipulated my photo like this and showed me with the caption, "Find out which one is a fake poster!! Yes you are right!! The one in the Right side is 'faked' ;)" My deep excuses to Scarface Movie Team and Al Pacino :) Little bit about Scarface, He was a United States gangster who terrorized Chicago during prohibition until arrested for tax evasion (1899-1947). One thing my buddy understood very well in this was, If I get chance to act in movies, I will sure opt for a villein role like scarface, who will be the strongest, richest and most terrible person to the world atleast for 2 to 3 hours :))