Wednesday, September 29, 2010

My photostream on Flickr

I have created a Flickr account and uploaded some pics.
Please go through following link and let me know your comments. :)

http://www.flickr.com/photos/sampathdilhan/

Monday, June 7, 2010

LINQ to SQL Association issue

Recently I faced an issue while working with LINQ. In my Database there were two entities which are having many-many relationship. Then I created the relationship as below. [I have omitted other entities and some columns for simplicity.]
Then I map the Database to C# code using LINQ to SQL dbml file. After that I have realized above mentioned associations are missing in that file. I tried several things but not worked and finally googled on this matter. Fortunately there were people who faced the same issue. I went through following link,

http://www.eggheadcafe.com/software/aspnet/33898713/association-missing-in-db.aspx

and it gave me the answer.
Then what I did was,


(Created a Primary key to intermediate table.)

Then delete previous 3 tables and drag/drop the new tables to designer. That’s it, association was there.

Sunday, April 12, 2009

How to Configure Gmail Labs

Gmail provide several important features through Gmail Labs. If you are a gmail user try this after 'Sign In' to gmail,

1. Click on 'Settings' Top right hand corner.
2. Then click on 'Labs' tab.
3. Enable Lab features that you want to use.
4. Click on 'Save changes'.

Mostly I like several lab features;
1. Inserting images : This will allow you to add images in to body of the E-Mail.
2. Forgotten Attachment Detector : This is use to remind about attachment.
3. Mouse gestures : To easily navigate through gmail using gestures.

There are more lab features just try....

Friday, March 27, 2009

Configuration of Google Analytic in to Blogger

There is a very interesting post which describe about the configuration of Google Analytic in to Blogger.

http://analytics.blogspot.com/2009/03/back-to-basics-install-your-tracking.html

Actually this is the official blog of Google Analytic. Also it provide new tips regarding Google Analytic.

Sunday, February 22, 2009

Beware...! "Error Check System" Facebook Application

Today when I logged to Facebook, I saw following notification,


After that I click on "View the Error message" link.

Then it redirected to a page which consist following message.


But I got confused about this and then had to use Google. Finally I realized that is a spyware...!

DO NOT CLICK ON "Activate" BUTTON. (Just ignore it)




If you have already add it then just remove it.Use following procedure after you logged to Facebook.
1.Click on 'Applications' in your bottom left hand corner.
2.Click on "Edit'
3.Then click on remove button(this is indicated using 'x') of Error Check System.
4.Click on 'Remove'.

Thats it..! :)

Wednesday, December 3, 2008

Kaspersky Blocks Google


Today I Try to access google using Firefox. Then above problem occur. Then I try to use Internet Explorer, but same thing happen. (But www.google.lk works). So I search for this problem. Lots of people having the same problem today. Some of them are saying that problem due to new updates and Kaspersky will fix this problem very soon.

But we can fix this problem by adding www.google.com as Trusted Web site. What you have to do is (In Kaspersky 2009).......

Open Kaspersky -->> Settings-->> Anti-Malware -->> Click on Settings under Web Traffic Section -->> Click on AddNew Item Under General Tab -->> enter this: http://*.google.com/* -->> Click on OK.

And thats it. It will works...!




Saturday, October 11, 2008

How to install applications on Ubuntu, through internet.

Before do this you have to set the repositories properly. Go to the
  • System -> Administration -> Software Sources
Then do as following images. (if you want you can add more third party repositories. Like in second image.)







Then it will prompt a message. Then click on 'Reload' button. After this you can install application though terminal or Synaptic package manager (System -> Administration -> Synaptic Package Manager).
use the following command to install through the terminal.
sudo apt-get install "name of the application"
For an example if you want to install VLC Player then,
sudo apt-get install vlc

In Synaptic Package Manager you can simply search the application that you want and mark them for installation and then click on apply.