Category Archives: Uncategorized

Most Windows user might have known that we can create a toolbar which maps to a certain folder in your PC by right-clicking on the taskbar. But, not all people are using that feature of Windows. A few weeks ago, I happened to drag a folder on my Vista desktop to one of the corners of my desktop. It automatically became a toolbar!!! I was so happy. Then, I created a folder in which shortcuts to my frequently accessed folders were put. Then, I made a toolbar for that parent folder on my desktop. Hmm.. Nice.

Today, I told Chris that I found out that feature of Windows. I even told him that I thougth it was introduced only in Vista. He said it had been there since Windows 98 or something. :D :D :D Why didn’t I find it out? Maybe I use keyboard more than mouse – Chris guessed. 

When we need to format dates as 1st Jul or 22nd Mar, we can use the following code.

  1. DateTime todayDate = DateTime.Now;
  2. DateTime dt = DateTime.Parse(todayDate.ToShortDateString(), CultureInfo.GetCultureInfo(“en-US”));  
  3. string month = dt.ToString(“MMM”, CultureInfo.GetCultureInfo(“en-US”));  
  4.   
  5. Calendar calendar = CultureInfo.InvariantCulture.Calendar;  
  6.   
  7. int dayOfMonth = calendar.GetDayOfMonth(showDate.ShowDate);  
  8. string suffix = string.Empty;  
  9. string formattedDay;  
  10.   
  11. switch (dayOfMonth)  
  12. {  
  13.     case 1:  
  14.     case 21:  
  15.     case 31: suffix = “st”break;  
  16.     case 2:  
  17.     case 22: suffix = “nd”break;  
  18.     case 3:  
  19.     case 23: suffix = “rd”break;  
  20.     default: suffix = “th”break;  
  21.  
  22. formattedDay = dayOfMonth.ToString() + suffix + “ ” + month;

Simple enough, huh? :) Oh.. one more thing I just wanna jot down. If we need more space for reading or inserting data in MS Office 2007, just hit Ctrl+F1 to hide the Ribbon. The key combination is a toggle key. Hitting them again will bring back Ribbon.

Answer: Princess Diana’s death.

Question: How come?

Answer: An English princess with an Egyptian boyfriend crashes in a French tunnel, driving a German car with a Dutch engine, driven by a Belgian who was high on Scotch (Scottish) whiskey, followed closely by Italian Paparazzi, on Japanese motorcycles, treated by an American doctor, using Brazilian medicines!

And this email is sent to you by an Indian, using Bill Gates’ Technology which he stole from the Japanese. And you are probably reading this on one of the IBM clones that use Taiwanese made chips, and Korean made monitors, assembled by Bangladeshi workers in a Singapore plant, transported by Lorries driven by Surdars/Biharis, hijacked by Indonesians and finally sold to you by some local salesperson!

That is Globalization!

———————–

The above text was copied and pasted by a good friend of mine in our conversation window while chatting. Hope it’s not copyrighted. =D

When I was reading ‘Project Constraints‘, I found this sentence.

If we wanna spend less time, we need more people to finish a project. But, we can’t add more women to give birth to a child as it does not shorten the nine-month gestation period.

wahaha… point to be noted. =P