Sunday, April 29, 2007

Happy Monday

Happy Monday, Everyone! My friend Kazi sent this to me today, and I thought it was pretty funny. Enjoy! I hope my girlfriend does not see this. ;)
Marriage

Marriage

Thursday, April 5, 2007

Report

Matrix Derived from 2 DataTables

My latest project required the creation of a matrix derived from two DataTables, DT1 and DT2, returned from two separate stored procedures. It was an interesting problem and took me a couple days to come up with a solution. Basically, I had to create a temporary table or matrix, DT, with the top row being the data returned from DT1 and the left-most column being the data returned from DT2.

Then, I initialized the PrimaryKey property of DT as follows:

DataColumn[] keys = new DataColumn[1];
keys[0] = DT.Columns["column_name"];
DT.PrimaryKey = keys;

The initialization of PrimaryKey was required, because I wanted to a search in DT and populate its cells as follows:

DataRow dr = DT.Rows.Find("search_string");
dr["column_name"] = "cell_value";

It is interesting to note that as the DataRow dr is changed, DT is also changed, because dr is a reference to a row in DT.

The last step was to bind DT the DataSource property of the DataGrid and execute its DataBind() event.

I also had to generate a CVS file for DT to be downloaded.

Here is a screenshot of the report:

Report

Thursday, March 29, 2007

MSDTC Not Installed on New Dell Computers

I had this issue when I ran IIS for the first time:

The server failed to load application '/LM/W3SVC/1/ROOT'. The error was 'Class not registered'.


The problem was Dell did not install the MSDTC, which is the Microsoft Distributed Transaction Coordinator, and I found the solution at http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=881749&SiteID=1.

Basically here are the steps that I took to fix it:


  1. Run msdtc - install in c:\windows\system32 using the command prompt

  2. Uninstall and reinstall IIS

Wednesday, March 14, 2007

First Week at Genesant Technologies

Been busy in the last few days setting up my development machine. Everything is going well. Thanks to everyone at Genesant for helping me get started.

Check out my new office. :)

Office

Office_Small

Office

Sunday, February 25, 2007

Thursday, February 22, 2007

Quote of the Day

Jim Carrey is one of my favorite comedians, and I find this quote from him to be very interesting.

Sometimes I sit out in my backyard and I look at the birds. The hummingbirds will come by and whack me in the head and fly away. The bird has no respect for my deed to the land. It’s his property as far as he’s concerned, and that’s just the reality of life. We think that we’re the ones in control but it’s all an illusion.


Source: http://www.timesleader.com/mld/timesleader/entertainment/16746160.htm

Friday, February 16, 2007

Happy TET Everyone!

Vietnamese New Year is just one day away. :)

Hope this new year will bring you and your loved ones prosperity, good health, and the best of luck.

Here is a little fire pig horoscope for you. Check out more horoscope at www.tuvi.info.

Jan 22, 1947 to Feb 9, 1948
Feb 18, 2007 to Feb 6, 2008

Pig people are friends for life. Their relationships are very deep, devoted, and rich beyond measure. The Pig people are noble and give and receive lots of hugs. They are gallant and extend old-fashioned chivalries towards people they meet. Pig People are quiet, studious, and thorough. On the other hand, they have a quick temper and sometimes have to pay for their rash impulsiveness. However, no one can overcome their inner strength; they have such tremendous fortitude and jump the goal post very time. The Pig will have an abundance of good fortune and an abundance of years. The Pig will know a life filled with serenity and riches.

Soup, Oolong Tea, and Candied Ginger are among keys to good health.

Bold and adventurous, the captivating Fire Pig makes a big splash in living technicolor. This Pig is a Big Time Operator who makes things happen through his clever wit and well-rounded talents. They never rest on their laurels because they have an insatiable thirst for power. They know that once they sit still, someone will pass them by. Like the ultimate agricultural expert, Fire Pigs plan, plant the seeds, cultivate, and reap a big harvest, no matter what projects they pursue. They have every right to be proud as punch at having such a successful career and financial status. They can tumble, too -- also big time, but they get right back up and try again. In the Hugs and Kisses Department, let's just say that the Fire Pigs are really quite lucky! It's true that they have to work pretty hard to get something in return, but oh my, don't they receive big dividends. Lucky in love. Lucky in life.

Famous Pig People: Chiang Kai-Shek, Lee Kuan Yew, Kim Dae Jung, Syngman Rhee, Tennessee Williams, Julie Andrews, Albert Schweitzer, Jerry John Rawlings, Prince Rainier, Georges Pompidou, Chuck Yeager, Henry Kissinger, King Fahd

Thursday, February 15, 2007

Some Interesting Gifts From Microsoft

Microsoft's Gift to Netscape
Netscape

Microsoft's Gift to the Mozilla team for delivering Firefox


Microsoft's Gift to Apple
Apple

Disclaimer: I have collected these photos from different websites that I visited, but I have forgotten their URLs. I found them to be interesting and so I'm sharing with you.

Netscape

Firefox

Apple