Oct 10, 2013

Resolving Issue while creating project in VS2010 - No Exports were found that match the constraint

After installing the new version of Visual Studio VS2010 , I came across a different error message while trying to create new project , to say create anything newly. We are going to see the details of the error message and how to resolve that issue. 

ERROR:
On clicking , File -->  New Project the below error message pops us in VS2010

"No Exports were found that match the constraint"

below is the screenshot of the error message I have encountered. 


After analysis , it is found that on cleaning of some temp files the above error can be suppressed.

Steps to Resolve:
  1. Try to delete ComponentModelCache folder from below location. "%AppData%\..\Local\Microsoft\VisualStudio\11.0\" and after successful delete recreate the folder with same name "ComponentModelCache".
  2. Problem was resolved by installing update for Visual Studio from the below link. http://www.microsoft.com/en-us/download/details.aspx?id=36020

After the above two steps , try to Reopen your visual studio and you should be able to create new projects and do whatever you want. 

Happy coding!!!

Apr 28, 2013

படித்ததில் பிடித்தது!!!

சமீபத்தில் நான் படித்த ஒரு புத்தகத்தை பற்றியதே இந்த வலைப்பதிவு. அப்புத்தகத்தின் கதையும், கதை சொல்லப்பட்ட விதமும், அக்கதையில் கையாண்ட உத்திகளும், கதை மாந்தர்களும், கதை முடிவும் என்னை கொள்ளை கொண்டன என்றால் அது மிகை அல்ல, அதன் வெளிப்பாடே இந்த வலைப்பதிவு.
நான் இவ்வளவு சிலோகத்து பேசப் போகும் அப்புத்தகம் 


பொன்னியின் செல்வன்


அமரர் கல்கி அவர்களால் எழுதப்பட்ட புகழ்ப்பெற்ற் தமிழ் வரலாற்றுப் புதினமாகும். 1950 - 55 வரை கல்கி அவர்களால் கல்கி வார இதழில் தொடர்கதையாக வெளியிடப்பட்டது.

இக்கதை சோழச் சக்கரவர்த்தி அருள்மொழி வர்மன் அவர்களை பற்றியது. இவர்தான் பின்னாளில் இராஜ இராஜ சோழன் என்று அழைக்கப்பட்டவர். இவரது இளமை பருவம், நற்பண்புகள், குடும்ப நிகழ்வுகள் மேலும் அக்காலத்தில் நடைப்பெற்ற பல்வேறு நிகழ்வுகளை கற்பனைக் கலந்து தனக்கேயுரிய பாணியில் விவரித்திருப்பார் கல்கி.

இக்கதையை பற்றி மேலும் நான் விவரிக்க விரும்பவில்லை. இதனை படிக்கையில் எனக்கு ஏற்பட்ட அதே உற்சாகமும் களிப்பும் தங்களுக்கு கிடைப்பதை நான் தடை செய்ய விரும்பாததனால் உங்களிடமே விட்டு விடுகிறேன்.

எனினும், இக்கதையில் இடம்பெற்றுள்ள சில முக்கிய என்னை கவர்ந்த கதாபாத்திரங்களைப் ப்ற்றிய சிறு தொகுப்பு:
  • வல்லவரையன் வந்தியத்தேவன்:
    • இக்கதையின் உண்மையான கதாநாயகன். அருள்மொழி வர்மனின் உற்ற தோழன். இவருடைய குணாதிசயங்களையும், வீரப்பிரதாபங்களையும், காதல் வாழ்க்கையையும் மிக அருமையாக விவரித்திருப்பார் ஆசிரியர்
  • குந்தவை:
    • சோழ சாம்ராஜ்ஜியத்தின் இளவரசி. அருள்மொழி வர்மனின் தமக்கை. இராஜங்க விஷயங்களில் கூட அறிவுரை கூறும் அளவுக்கு அறிவு கூர்மை உடையவளாகவும் இப்பாத்திரம் படைக்கப்பட்டிருக்கும்.
  • அருள்மொழி வர்மன்:
    • இவர் தான் இக்கதையின் நாயகன். சோழ சாம்ராஜ்ஜியத்தின் இணையில்லா அரசராக, "இராஜ இராஜ சோழர்" என்று மக்களால் அன்புடன் அழைக்கப்பட்டவர்.
  • நந்தினி:
    • இக்கதையின் முக்கியமான கதாபாத்திரங்களில் ஒன்று. காண்பவர் அனைவரையும் தன் அழகினால் மோக வலையில் விழ வைக்ககூடியவள்.இவரின் நடவடிக்கைகளும், சதி செயல்களும் கதையின் போக்கை தீர்மானிக்கும் வகையில் இருக்கும்.
மேலும் சில கதாபாத்திரங்களின் பெயர்கள்:
  • வானதி
  • பூங்குழலி
  • சேந்தன அமுதன்
  • மந்தாகினி
  • ஆழ்வார்க்கடியான் நம்பி
  • அனிருத்த பிரம்மராயர்
  • ஆதித்த கரிகாலன்
  • பெரிய பழுவேட்டரையர்
  • செம்பியன் மாதேவி
ஒரு கதையை முடித்த பிறகு நமக்குள் அக்கதை பாதிப்பை ஏற்படுத்துவதும், அதைப் பற்றி விவாதிப்பதுமே அதன் வெற்றி ஆகும். அவ்வகையில் இக்கதை படித்த அனைவரையும் ஆட்கொண்டிருக்கும் என்பதில் ஐயமில்லை. 

இனிவரும் பகுதி இக்கதையை படித்தவர்களுக்கு மட்டும், மற்றவர்கள் கடைசி பத்திக்கு செல்லவும்.
இக்கதையின் முடிவுக்கு பிறகு எனக்கு ஏற்பட்ட சில ஐயங்களை கேள்விகளாக்கி இருக்கிறேன். அவை கீழே,
  1. நந்தினி உண்மையில் யாருடைய மகள்?
  2. ஒரு சமயத்தில் கருத்திருமன் ஆழ்வார்க்கடியானிடம் நந்தினி தன்னுடைய மகள் என்று கூறுகிறான், அது எப்படி?
  3. நந்தினி உண்மையில் வீரபாண்டியனின் மகள் என்றால் மந்தாகினியின் கதாபாத்திரத்தின் தன்மையே அங்கே கேள்விக்குறி ஆக்கப்படுகிறதே, ஏன் இந்த முரண்பாடு?
  4. கடைசியில் கருத்திருமன் என்ன ஆனான்?
  5. மந்தாகினி அருள்மொழி வர்மனிடம் மட்டும் அவ்வளவு பாசம் கொள்வதற்கான் காரணம் என்ன?
இக்கதையை இணையத்தில் படிக்கஇங்கே கிளிக் செய்யவும்.

இதன் ஒலிப்பதிவைக் கேட்க இங்கே கிளிக் செய்யவும்.

இக்கதையை பற்றிய இந்த வலைப்பதிவு காலம் கடந்ததாக இருக்கலாம். இருப்பினும் இப்படைப்பே காலத்தை வென்றதாயிற்றே!!!

தங்களின் கருத்துக்களும், என் கேள்விக்கான பதில்களும் வரவேற்க படுகின்றன. :)

Apr 27, 2013

Insight on Clipboard SetDataObject Method


I came across a weird error in my application today. I have a screen with grid and on clicking Retrieve, Grid is populated with data. On clicking on a cell and on mouse right click, I will be prompted with custom context menu with Copy and paste option. When i click on Copy menu item, i was thrown with the below error.

"Requested clipboard operation did not succeed"

On debugging through the code, I was able to find that I encountered the error when I try to paste the value into the clipboard.

               

After I have changed the code as below, I was able to overcome the error.




The above method, SetDataObject is an override method for clipboard operations. Please find below for some more information on the method

Explanation:

Clears the Clipboard and then attempts to place data on it the specified number of times and with the specified delay between attempts, optionally leaving the data on the Clipboard after the application exits.

public static void SetDataObject(
         Object data,
         bool copy,
         int retryTimes,
         int retryDelay
)


Namespace: System.Windows.Forms

Parameters

data
The data to place on the Clipboard.
copy
true if you want data to remain on the Clipboard after this application exits; otherwise, false.
retryTimes
Type: System.Int32
The number of times to attempt placing the data on the Clipboard.
retryDelay
Type: System.Int32
The number of milliseconds to pause between attempts.

Hope the information will be useful for you. See you with some interesting info next time. Please feel free to comment.

Oct 1, 2008

Hithendran - Person who steal Hearts

Little Girl , Abhirami of age 9 was suffering from heart disease and she was admitted in Cherian`s heart foundation in Chennai . The doctors decided to transplant her heart but they were in need of a heart which was essential for the operation . Parents of the girl were praying for a heart . There came a rescuer for their daughter , Hithendiran (hope god heard their prayers).


Hithendiren a 16 year old young boy , was studying 11th std .He was living in Thirukalukunram near Mahabalipuram with his parents Mr. Mahendiran & Mrs.Pushpaanjali . Both of them were doctors and practicing in their own hospital in their locality . He has a younger sibling, Lakshmanan . Last Saturday ,he went to see his friend in his father`s bike, which turned out to be his last journey . On his way back from his friend's home , he met with an accident . As he fell down from his bike , he became unconscious because of the shock from the accident . As his parents were well known in the locality , the people identified him and admitted him in Chengalpet govt hospital for first aid
and he was then shifted to Appollo Hospital, chennai for further treatment.


He was given treatment for three days there but the doctors were unable to rescue him and they reported to his parents as "Brain Dealth".Brain Death - Typically dead , Heart and organs will be functioning but brain will stop its function.

since his parents were doctors , they understood the situation. They decided to donate the organs of their son which were functioning properly , a courageous decision by the couple . Hats Off !!!

Hithendra`s Eyes , Heart , Kidney, Lungs, and Liver were chosen and were removed from his body.

At that time, The doctors came to know about Abhirami who was in urgent need of a heart for surgery. So ,Hithendra`s heart was chosen for the Heart transplantation.But the situation is that the heart chosen as replacement should be replaced with in half an hour. but the real problem is , how???
Eyes can be preserved upto 14 days since then it is removed but Heart can be preserved atmost half an hour .
If you were a chennaiite , you might have understood the situation . Appollo hospital and Cherian`s Heart foundation are 14 kms apart and its highly impossible to reach Cherian`s Heart foundation from Appollo with in half an hour time limit amidst the heavy traffic in Chennai. So, The doctors decided to make use of local Police for
this Mission.


TN Police Dept showed their helping hands in this issue. Deputy commissioner and an Constable were deployed in this operation. The Traffic signals throught out their way were ordered to be on green and the traffic was cleared. Mr.Mohan , The Constable drove the car at a speed of 120 kms so that they reached the destination in just 11 mins. The people witnessed “SCHUMACHER” in chennai city, typically .
By his tremendous driving , He reached the spot with in Ten minutes , earlier than the stipulated time. Hats Off to the Police Department !!!

The operation took place as soon as the heart reached there and went on for 6 hours and finally , OPERATION WAS A GREAT SUCCESS. This is the second Heart Transplantation in India. Both were done by Mr.cherian.


While speaking to the Reporters,Hithendira`s father told that ,” Since , We are doctors, We understood the situation, reacted accordingly and decided to donate our beloved Son`s organs.” He also pleaded that, ”If my son had used Helmet, he might be alive now. Its my humble request, Please use helmets while riding .” He also added that, My son is not dead ,He gave life to 6 people. He is still alive.”

A sad demise day ended with a victory for humanity.

Yes ,HITHENDIREN IS STILL ALIVE .

Sep 25, 2008

Universal Secret and Mock Big Bang

"Earth quakes are going to happen ,Tsunami will occur, The whole world is going to be destroyed. Oh god!!! Please help us and save this world." These were the talk all over the world at the start of this month . Nothing has happened yet, Everything is going fine as usual.No Earthquakes, and, No Tsunami`s and Nothing. Those talks are due to the Mock Big Bang Collision ,Biggest Explosive Experiment ever (This is how media termed this experiment as).

The research was happening at a place near Geneva , border between France and Switzerland. The research is ultimately aimed in discovering the mystery that prevails over the Evolution of the universe , and some more mysterious questions related in the creation of universe .


Actually , The preparations were started far before almost twenty years ago.CERN - European Organization for Nuclear Research is taking care of the whole experiment.CERN comprised of 2000 scientists from over 80 countries. The experiment is performed using LHC(Large hadron Collidor). Two protons at the speed of light are made to collide in the opposite direction. This artificial collision is made to produce the same impact as the Big Bang Collision which has happened at the time of the creation of universe, as per the history on creation of universe.LHC is placed inside the earth at the depth of 175 kilometers and 27 km in an circular path .

Most of the Scientists in the world has now agreed that the universe was created by the big bang collision.Also,They strongly believe in the principle that the universe is gradually expanding after the big bang. This principle is based on Theory of Relativity which is formulated by Albert Einstein.As the universe goes on expanding , one fine day it will reach its maximal and at that time , some new impact may happen which might result in the liberation of huge mount of heat, which equals the same amount of heat exhibited during the time of big bang.

Some group of people opposing this experiment and arguing that "The universe is created by God and nothing to do with science so why unnecessarily wasting money in this experiment". Earlier , Scientists believe that An Atom is made of Protons and neutrons but after continuous researches they found out , Atom also consists of some more tiny particles too .Scientists were yet to find "how mass is being formed with in an atom?"
Similarly,Gravitational force is still an mystery .They termed the tiny particles which gives the mass as "God`s Particle".It is also been called as Higgs Boson , who discovered this.

Researchers believe that this Experiment would help us in find about the God`s Particle too.The famous Physicist Stephen Hawking has predicted that,"if this experiment has reached his goal successfully then I will get this years Nobel Prize " in recent press meet.he also adds that "I don't think the God`s Particle can`t be find out.Though, If this experiment couldn't reveal the truth about the God`s Particle this collision using LHC will reveal some other unknown facts in the field of science.That will give us an idea to know more about the evolution as well as the structure of the universe".

Right from the beginning, Mankind have performed quite a number of experiments.No experiment or research had given us instant results and only the impact or the aftermath of the experiments given us positive results which helped us to move to the next level in our research.Some group of people urges that this experiment will not give an immediate response to this experiment.All the experiments will have the same kind of responses at the beginning.So , we should not rely on the immediate response as told by scientists involved in this research.The results from this experiment going to help us in the fields such as Medicine,Agricultural and many more.

A great news to Indians ,Out of 2000 scientists who were involved in this research around 200 were Indians.The crew comprises of scientists from Tata Institute of Fundamental Research(Mumbai) , Saha Institute of Nuclear Physics(Kolkata), and, Researchers from Banarus Hindu university,Delhi,Punjab,Jaipur Universities.India had contributed an amount of 1,125 crore rupees for this research.It has also provided materials for the construction of the LHC tunnel.

This experiment started officially on September 10th,but the collision between the Protons , travelling in the opposite directions at the speed of 3 lakhs kilometers in a second is expected to happen on October 21st.This collision is termed as "Artificial Big Bang Collision" by the scientists.

The happenings of this collision are observed and consolidated using 1 lakh Super computers installed in 50 countries all around the world.Approximately 15 Peta byte information's per year are expected to result from the experiment.India is also taking part in these measurements along with the World community .

Some Scientists had a concern over this experiment because they have predicted that this experiment would produce Black holes , which would suck the whole world itself. but the scientists who involved in this experiment strongly opposes this kind of predictions by them .In the fact, there are more number of some kind of collisions happening around the universe every now and then without knowledge and nothing has happened to the universe . Also , if at all there is creation of black holes ,it will not be of much harm and will be destroyed soon.

The fear about the end for this world , because of this collision is unnecessary. The current condition of this universe is never before like this and so the situations will not be the same.May be this unnecessary fear about the end of the universe could at most affect the markets and the Economy of the world and nothing else more will happen .I like to finish this post with a quote from Stephen Hawking, according to him "the fear about the end of the universe due to some experiments is unnecessary and it will never happen within the forthcoming 20 billion years."

hope this would have imparted some interesting facts about the recent Mock Big Bang collision .Thank you in advance for your comments.

P.S:when I am half way through my post , A flash news hit the world "LHC Break Down " . It is reported that there is a leak in LHC and the process has been halted down for two months. It has given opportunity to the people who opposed this experiment. A friend of mine argued with me regarding this experiment and he stated that "God created the world , and this will only happen if they try to reproduce God`s work" . Does god have nothing else to do , I doubt?