Posted by: Vinu Baby | February 10, 2009

A story with a Moral

A Small Story…

A boy and a girl were playing together. The boy had a collection of marbles. The girl had some sweets with her. The boy told the girl that he will give her all his marbles in exchange for her sweets. The girl agreed.

The boy kept the biggest and the most beautiful marble aside and gave the rest to the girl. The girl gave him all her sweets as she had promised.

That night, the girl slept peacefully. But the boy couldn’t sleep as he kept wondering if the girl had hidden some sweets from him the way he had hidden his best marble.

Moral of the story: If you don’t give your hundred percent in a relationship, you’ll always keep doubting if the other person has given his/her hundred percent.. This is applicable for any relationship like love, friendship, employer-employee relationship etc., Give your hundred percent to everything you do and sleep peacefully.

Posted by: Vinu Baby | February 9, 2009

Five Installer Best Practices

1. Include an Uninstall: Make sure that you include an uninstaller with your software. Installers must include the ability to uninstall applications to meet Windows Logo requirements and is just a friendly thing to do. Making an uninstaller with Setup Factory is easy. Just select Uninstall > Settings from the menu and check the "Create uninstall" option. There are a lot of ways to customize and present your uninstall. See the User’s Guide and Help file for more details.

2. Write Out Your Application Information: It is a good idea to have your installer write out important paths and locations such as the application folder to the Registry or a settings file during installation. Doing this allows future installers, updaters and patches to quickly and easily determine where your application is installed without asking the user or searching the system. Here is a sample script that could be used to write out the application’s installation folder.  Usually you would put this in the "On Post Install" installation event (replace the Registry sub-key with your sepecific location):
Registry.SetValue(HKEY_CURRENT_USER,"Software\\Your Company Name\\Your Product Name","InstallFolder",SessionVar.Expand("%AppFolder%"),REG_SZ);
You can store any information you want, such as the shortcut folder used, the product version or anything else that might be important to your software.

3. Use Log Files: It is a good idea to have your installer create a log file during installation. This can be very helpful if a customer has trouble installing the software and you need to find out why. You can turn on and configure the installer’s log file by selecting Project > Log Files… from the menu. Setup Factory automatically writes out all of the detail that it can to the log file.  If you want to include your own custom information, use the SetupData.WriteToLogFile action.

4. Set Minimum System Requirements: If the software that you are installing has specific minimum system requirements to run properly, it is a good idea to check those requirements before starting to install files and modify the user’s system. You can configure most common system minimum checks by selecting Project > System Requirements from the menu. At the very least it is a good idea to leave the "User must have administrative priviledges" checked in most cases. If you need to do more in-depth system checking than the options allow, you can use actions and scripts to do so.

5. Marking Shared Files: If you are installing files that may be shared by other applications on the user’s system (such as ActiveX, DLL and OCX files) it is important to turn on file usage counts for those files. To do this, double click the filename on Setup Factory’s main screen. Go to the Advanced tab and turn on the "Shared/System File" option. This will ensure that the file’s usage count is incremented in the Registry and protects the file from being deleted by the uninstall if it is still being used by other applications.

Posted by: Vinu Baby | February 8, 2009

Windows Live Writer and Windows Live Mail are cool

I just installed Windows Live Writer…

The installation was one of the best i have seen for Microsoft products. It went on smooth, and importantly, it did not ask me any questions etall… :-)

Just started to use..lets see how many Send—Do Not Send  error screens appear on the run… :-)

Windows Live Mail is rocking too…. its light… its easy.

so far great…

 

LiveJournal Tags: ,
Posted by: Vinu Baby | January 29, 2009

Midori (operating system) next to Windows

Midori is the code name for a managed code operating system being developed by Microsoft Research. It has been reported to be a possible commercial implementation of the Singularity operating system, a research project started in 2003 to build a highly-dependable operating system in which the kernel, device drivers, and applications are all written in managed code. It was designed for concurrency, and can run applications in multiple places. It also features an entirely new security model that sandboxes applications for increased security. Microsoft has mapped out several possible migration paths from Windows to Midori. In a possible link to Microsoft’s Oslo composite application initiative, the programming model will have a dependence on metadata, with the aim of allowing the system to more reliably manage applications.

The code name Midori was first discovered through the PowerPoint presentation CHESS: A systematic testing tool for concurrent software.

Midori has also been rumoured by some IT journalists as a possible replacement to Microsoft Windows and Windows CE.

 

Links

http://blogs.zdnet.com/microsoft/?p=1466

http://news.softpedia.com/news/Life-After-Windows-Microsoft-Midori-Operating-System-88910.shtml

http://www.sdtimes.com/MICROSOFT_S_MIDORI_TO_SANDBOX_APPS_FOR_INCREASED_SECURITY/About_SECURITY_and_MICROSOFT/32662

Posted by: Vinu Baby | October 30, 2008

What is .NET CLR Version and what is .NET Framework version

 

Please check the below link for more information on this by Scott

Posted by: Vinu Baby | October 8, 2008

Stack vs. Heap: What’s the difference?

Even though with the .NET framework we don’t have to actively worry about memory management and garbage collection (GC), we still have to keep memory management and GC in mind in order to optimize the performance of our applications. Also, having a basic understanding of how memory management works will help explain the behavior of the variables we work with in every program we write.  In this article I’ll cover the basics of the Stack and Heap, types of variables and why some variables work as they do.
There are two places the .NET framework stores items in memory as your code executes.  If you haven’t already met, let me introduce you to the Stack and the Heap.  Both the stack and heap help us run our code.  They reside in the operating memory on our machine and contain the pieces of information we need to make it all happen.

Stack vs. Heap: What’s the difference?

The Stack is more or less responsible for keeping track of what’s executing in our code (or what’s been “called”).  The Heap is more or less responsible for keeping track of our objects (our data, well… most of it - we’ll get to that later.).

Think of the Stack as a series of boxes stacked one on top of the next.  We keep track of what’s going on in our application by stacking another box on top every time we call a method (called a Frame).  We can only use what’s in the top box on the stack.  When we’re done with the top box (the method is done executing) we throw it away and proceed to use the stuff in the previous box on the top of the stack. The Heap is similar except that its purpose is to hold information (not keep track of execution most of the time) so anything in our Heap can be accessed at  any time.  With the Heap, there are no constraints as to what can be accessed like in the stack.  The Heap is like the heap of clean laundry on our bed that we have not taken the time to put away yet – we can grab what we need quickly.  The Stack is like the stack of shoe boxes in the closet where we have to take off the top one to get to the one underneath it.

 
 

 

 

 

The picture above, while not really a true representation

Posted by: Vinu Baby | October 8, 2008

Should you use the String class object or the C string?

  • The reasons for using a string class object are:
  • The string class does an automatic bounds check on every index used to access string elements. This is not true for C-string, and using an invalid C-string index can result in a system crash.
  • The string class automatically expands and contracts storage as needed. C-string are fixed in length and are subject to overrunning the allocated storage space.
  • The string class provides a rich set of methods for operating on a string. C-string almost always require a subsidiary of functions.
  • When necessary, it is easy to convert to a C-string using the string class c_str() method. Conversely, a C-string can easily be converted to a string class object by assigning it to a string object.

The reasons for using a C-string are

  •  The programmer has ultimate control over how the string is stored and manipulated.
  • A large number of extremely useful functions exist to input, examine, and process C-strings.
  • C-strings are an excellent way to explore advanced programming techniques using pointers.
  • You will encounter them throughout your programming career, as they are embedded in almost all exisiting c++ code.
  • They are fun to program.

strComputer = “.”
strOwner
= “A111111″
strProcess
= “‘notepad.exe’”‘ Connect to WMI service and Win32_Process filtering by name’
Set objWMIService = GetObject(“winmgmts:{impersonationLevel=impersonate}!\\” _
   
& strComputer & “\root\cimv2″)
Set colProcessbyName = objWMIService.ExecQuery(“Select * from Win32_Process Where Name = “ _
   
& strProcess)‘ Get the process ID for the process started by the user in question’
For Each objProcess in colProcessbyName
    colProperties
= objProcess.GetOwner(strUsername,strUserDomain)
   
if strUsername = strOwner then
        strProcessID
= objProcess.ProcessId
   
end if
next‘ We have the process ID for the app in question for the user, now we kill it’
Set colProcessList = objWMIService.ExecQuery(“Select * from Win32_Process where ProcessId =” & strProcessID)
For Each objProcess in colProcessList
    objProcess
.Terminate()
Next

Posted by: Vinu Baby | September 29, 2008

Hard working ANT

An Old Story:

The Ant works hard in the withering heat all summer building its house and laying up supplies for the winter. The Grasshopper thinks the Ant is a fool and laughs & dances & plays the summer away.

Come winter, the Ant is warm and well fed. The Grasshopper has no food or shelter so he dies out in the cold.

 

Indian Version:

The Ant works hard in the withering heat all summer building its house and laying up supplies for the winter. The Grasshopper thinks the Ant’s a fool and laughs & dances & plays the summer away. Come winter, the shivering Grasshopper calls a press conference and demands to know why the Ant should be allowed to be warm and well fed while others are cold and starving. NDTV, BBC, CNN show up to provide pictures of the shivering Grasshopper next to a video of the Ant in his comfortable home with a table filled with food. The World is stunned by the sharp contrast. How can this be that this poor Grasshopper is allowed to suffer so?

 

Arundhati Roy stages a demonstration in front of the Ant’s house. Medha Patkar goes on a fast along with other Grasshoppers demanding that Grasshoppers be relocated to warmer climates during winter . Amnesty International and Koffi Annan criticize the Indian Government for not upholding the fundamental rights of the Grasshopper. The Internet is flooded with online petitions seeking support to the Grasshopper (many promising Heaven and Everlasting Peace for prompt support as against the wrath of God for non-compliance) .  Opposition MPs stage a walkout. Left parties call for ‘Bengal Bandh’ in West Bengaland Kerala demanding a Judicial Enquiry. CPM in Kerala immediately passes a law preventing Ants from working hard in the heat so as to bring about equality of poverty among Ants and Grasshoppers. Lalu Prasad allocates one free coach to Grasshoppers on all Indian Railway Trains, aptly named as the ‘Grasshopper Rath’. Finally, the Judicial Committee drafts the ‘ Prevention of Terrorism Against Grasshoppers Act’ [POTAGA], with effect from the beginning of the winter.

 

Arjun Singh makes ‘Special Reservation ‘ for Grasshoppers in Educational Institutions & in Government Services.  The Ant is fined for failing to comply with POTAGA and having nothing left to pay his retroactive taxes,it’s home is confiscated by the Government and handed over to the Grasshopper in a ceremony covered by NDTV.

 

 Arundhati Roy calls it ‘ A Triumph of Justice’.

Lalu calls it ‘Socialistic Justice ‘.

CPM calls it the ‘ Revolutionary Resurgence of the Downtrodden ‘

Koffi Annan invites the Grasshopper to address the UN General Assembly.

 

 

Many years later…

The Ant has since migrated to the US and set up a multi-billion dollar company in Silicon Valley,

 

100s of Grasshoppers still die of starvation despite reservation somewhere in India,

 

 ..AND

 

 As a result of loosing lot of hard working Ants and feeding the grasshoppers,

 India is still a developing country…!!

 

Posted by: Vinu Baby | September 29, 2008

Hard working Ants

 An Old Story:

The Ant works hard in the withering heat all summer building its house and

 laying up supplies for the winter. The Grasshopper thinks the Ant is a fool

and laughs & dances & plays the summer away. Come winter, the Ant is warm

and well fed. The Grasshopper has no food or shelter so he dies out in the cold.

 

Indian Version:

The Ant works hard in the withering heat all summer building its house and

laying up supplies for the winter.

The Grasshopper thinks the Ant’s a fool and laughs & dances & plays the

summer away.

Come winter, the shivering Grasshopper calls a press conference and

demands to know why the Ant should be allowed to be warm and well fed

while others are cold and starving.

NDTV, BBC, CNN show up to provide pictures of the shivering Grasshopper

next to a video of the Ant in his comfortable home with a table filled

with food.

The World is stunned by the sharp contrast. How can this be that this poor

Grasshopper is allowed to suffer so?

Arundhati Roy stages a demonstration in front of the Ant’s house.

Medha Patkar goes on a fast along with other Grasshoppers demanding that

Grasshoppers be relocated to warmer climates during winter .

Amnesty International and Koffi Annan criticize the Indian Government for

not upholding the fundamental rights of the Grasshopper.

The Internet is flooded with online petitions seeking support to the

Grasshopper (many promising Heaven and Everlasting Peace for prompt

support as against the wrath of God for non-compliance) .

Opposition MPs stage a walkout. Left parties call for ‘Bengal Bandh’ in

West Bengaland Kerala demanding a Judicial Enquiry.

CPM in Kerala immediately passes a law preventing Ants from working hard

in the heat so as to bring about equality of poverty among Ants and

Grasshoppers.

Lalu Prasad allocates one free coach to Grasshoppers on all Indian Railway

Trains, aptly named as the ‘Grasshopper Rath’.

Finally, the Judicial Committee drafts the ‘ Prevention of Terrorism

Against Grasshoppers Act’ [POTAGA], with effect from the beginning of the

winter.

Arjun Singh makes ‘Special Reservation ‘ for Grasshoppers in Educational

Institutions & in Government Services.

 

 The Ant is fined for failing to comply with POTAGA and having nothing left

to pay his retroactive taxes,it’s home is confiscated by the Government

and handed over to the Grasshopper in a ceremony covered by NDTV.

 

 

Arundhati Roy calls it ‘ A Triumph of Justice’.

Lalu calls it ‘Socialistic Justice ‘.

CPM calls it the ‘ Revolutionary Resurgence of the Downtrodden ‘

Koffi Annan invites the Grasshopper to address the UN General Assembly.

 

 

 

Many years later…

 

 

 

The Ant has since migrated to the USand set up a multi-billion dollar

company in Silicon Valley,

 

 

100s of Grasshoppers still die of starvation despite reservation somewhere

in India,

 

 

. 

..AND

 

 

As a result of loosing lot of hard working Ants and feeding the grasshoppers,

 

.

India is still a developing country…!!

« Newer Posts - Older Posts »

Categories