Tuesday, February 24, 2009

Easy reference management using CiteULike,BibTex and Latex

I have seen many grad students having difficulties is reference management. They go for expensive software like EndNote, still having difficulties in integrating with their text editors.

For Linux users this is not a big problem, they have everything in their hand. I am just giving here one combination of tools which is useful for reference management. I maintain my reference library in CiteULike. You can have a posting button in web browser. When you see an article, you can just click that button, then that article is added to your library. You can optionally give a key, which could be used as a reference key in Bibtex. Once you have done, you can export complete library to bibtex(.bib) format. Then you can add this .bib file in your latex file
\bibliographystyle{alpha} (style for references)
\bibliography{bibtex file} (without .bib extension)

where ever you want to cite an article from your bib file, you can just give \cite{key} where key is the bibtex reference key.
The compiling is bit different, you have to compile several time to get the correct output.
  1. pdflatex input-file : complains about undefined citations
  2. bibtex input-file : generates a bbl-file
  3. pdflatex input-file : complains about undefined citations
  4. pdflatex input-file

You will have to repeat the procedure every time you add or remove citations, as they will imply changes in the bbl-file.

We can easily change the style, just by changing one word. This gives the greate flexibility and advantage.

Wednesday, February 4, 2009

A Cro-Magnon

After a long time I really enjoyed watching one of the best science fiction monies. Usually science fiction movie has certain characteristics like some characters or weapons you have never seen before, space ships, time machines etc..etc.. and everything filled with modern day graphics. Is it possible to make a science fiction movie without those characteristics?. YES.. "The man from earth" is a perfect example. The entire story took place inside a house, but your mind will travel from upper Palaeolithic time to the present day.

There are many reviews about the movie, so I don't want to write one. But I would like to emphasise one psychological aspect of the movie. The protagonist of this movie is telling an "unbelievable" truth in a group of five experts(Professors) , but he is leaving the credibility to the choice of the listeners. He never stress others to believe him. This is a cleaver way to create strong doubt in the listeners mind and steer them in a direction he wants. He answers every question consistently and also sliped at some points, but covering with an argument like "touch of senility". The discussion among the professors were really interesting. What every doubts you have in your mind will be asked by one of them and answered by the protagonist. Screenplay was so good that you will get the feeling that you were also part of that discussion.

I would compare this with matrix, because both are conceptually very good.

Thursday, January 22, 2009

Butterfly Effect



This is the output of my python script, plotted dynamically in Gnuplot.
This was captured by recordMyDesktop tool in Ubuntu.

Thursday, January 15, 2009

Mobile GPS needs no Internet

Technological advancements have given the complete Earth in our hands, but the question is how effectively we are using it. Most of the latest model mobile phones equipped with GPS, but most of us don't use it, thinking that it will cost a lot. If you are a smart hacker, you can use the mobile GPS at free of cost.

Before going into details , one should to know certain necessary things about GPS.
  1. GPS communication and mobile communication are two different things.
  2. GPS should work even without a SIM card.
  3. GPS needs some software to locate your position in a map.
  4. Without that software(maps) GPS just provide you longitude and latitude values.
  5. GPS has direct connectivity to satellites(32 of them orbiting our Earth, at lest 4 needed to establish a connection)
Now let us see what we need.
  1. A mobile phone with GPS receiver
  2. If it has GPS, there is a good probability that its having inbuilt software(like Nokia maps)
  3. Maps data for specific location or country
First two things are already in the phone, all that we need is Maps data for example Maps for India or Canada. This is the thing that costs money when you use the mobile communication to download the maps. Instead, you can completely disable the "going to Internet option" in the settings, then you can download the maps into your PC and transfer into your phone via USB or Bluetooth.
For that you can use Map loader software for Nokia phones. You should aware of the free features in the Nokia maps software. If you want extra features you have to pay for the licence. I think free features are sufficient to reach your destination, the extra features adds only sophistication to that.

Saturday, January 10, 2009

Earth vs Technology


As the technology grows bigger and bigger, the size of the Earth getting smaller and smaller. In the 90s our Earth fitted well in our television sets. But now it could very well fit with in our palm. This is not an exaggeration. It is reality. A mobile phone could pin point your location on this planet with and accuracy of few meters.


One of the positive outcome (I think the only positive outcome) of cold war was it made GPS navigation free of cost. After Korean flight was shot down in 1983 after straying into the USSR air space President Ronald Reagen issued a directive making GPS freely available for civilian use as a common good.

Last week I got a new handy for my extension of my mobile contract. I decided to go for GPS handy and got Nokia 6220 classic. I had enough with sony ericson's "ultra fast" software. I don't want to pay for for A-GPS , which costs a lot for data transfer via mobile network. I just started my handy without SIM, and it worked well. I could use this phone just as a navigator. It is not so professional, but for a user like me(I dont have car), this is a quite sufficient for day to day life.

Its a techno toy for me. I can play with satellite's now. I can communicate with satellites now. Isn't sound great :).It is fascinating to see the signal strengths and satellite positions in my handy. If I could, I would like move every part of of the Earth to check at least I could see 4 satellite at any point of time.I could calculate the speed of the bus by sitting inside. Next time when I travel with ICE, I may able to calculate the speed of ICE.

Most people really don't know how remarkable this GPS is. The surface area of earth is 510,072,000 km². A GPS system can pin point your location in this vast surface area with an accuracy of about 50m. Lets make circle with radius of 50m and its area is 2500pi square meter. This is about 0.00785 sq.km. When we calculate the accuracy in percentage its 99.99999999874%. Isn't great?

Friday, December 19, 2008

Strange Loop

Starting from Moebius strip(I would say its a simple kind of strange loop), we come across many strange loops. It may sometimes be visual, or audible or sometimes hardly noticeable. Shepard tones are example of audible strange loops. Dorste effect is an example of visual strange loop.
These strange loops could be easily noticeable(I can't say understandable).

Some of the strange loops need bit more smartness even to notice. Not every one can see the beauty in it. Well! people say its strange, but I call it beauty. It needs cleverness to form such a strange loop.

Here is an example
Every natural number can be unambiguously described in fourteen words or less.
I can prove the above statement using smart arguments.
Proof:
1.Suppose there is some natural number which cannot be unambiguously described in fourteen words or less.
2.Then there must be a smallest such number. Let's call it n.
3.But now n is "the smallest natural number that cannot be unambiguously described in fourteen words or less".
4.This is a complete and unambiguous description of n in fourteen words, contradicting the fact that n was supposed not to have such a description!
5.Since the assumption (step 1) of the existence of a natural number that cannot be unambiguously described in fourteen words or less led to a contradiction, it must be an incorrect assumption.
6.Therefore, all natural numbers can be unambiguously described in fourteen words or less!

Fantastic! Isn't? Of course there is something wrong in the proof. But the way its constructed is beautiful. Not every one can see the self referential statement here.

Friday, December 12, 2008

ஆத்திசூடி

கடவுள் வாழ்த்து

"ஆத்தி சூடி யமர்ந்த தேவனை
ஏத்தி ஏத்தி தொழுவோம் யாமே!!"

ஆத்தி சூடி - திருவாத்தி மலர்மாலையை அணிந்த
யமர்ந்த - சிவபெருமானால் விரும்பப்பட்ட ( மேல் அமர்ந்த )
தேவனை- ஆனைமுகக் கடவுளை
ஏத்தி ஏத்தி - பலகாலும் (மேலும் மேலும்)
தொழுவோம் யாமே - நாம் வணக்கம் செய்வோம்
பொருள்: திருவாத்தி மலர்மாலையை அணிந்த சிவபெருமானால் விரும்பப்பட்ட ஆனைமுகக் கடவுளை நாம் பலகாலும் வணக்கம் செய்வோம்!!

1. அறஞ்செய விரும்பு
(அறம் - தருமம்)
தருமம் செய்ய நீ விரும்புவாயாக!!

2. ஆறுவது சினம்
(சினம் -கோபம்; ஆறுவது- தணிவது)
கோபம் தணிந்து விடக்கூடிய தன்மையுடையது!!

3. இயல்வது கரவேல்
(இயல்வது- இயன்ற ; கரவேல்-தருமத்தை செய்யாமல் இரூத்தல் கூடாது)
செய்வதற்கு இயன்ற தருமத்தை செய்யாமல் இருத்தல் கூடாது!!

4. ஈவது விலக்கேல்
(ஈவது- கொடுப்பதை; விலக்கேல்-தடுக்காதே)
ஒருவர் மற்றவருக்குக் கொடுப்பதைத் தடுக்காதே !!

5. உடையது விளம்பேல்
(உடையது- உன்னிடம் உள்ளதை; விளம்பேல்- கூறாதே)
உனக்குள்ள பொருள் மற்றும் சிறப்புகளை பலரும் அறியும்படி கூறாதே ( பெருமையாக பேசாதே) !!

6. ஊக்கமது கைவிடேல்
(ஊக்கமது - உள்ளக் கிளச்சியை; கைவிடேல் - தளர்ந்து போக விடாதே)
ஒரு காரியத்தை செய்தக்கண் உண்டாகிய உள்ளக் கிளச்சியை தளர்ந்து போக விடாதே!!

7. எண்ணெழுத் திகழேல்
(எண் - கணிதம்; எழுத்து- இலக்கண நூல்; இகழேல் - இகழ்ந்து ஓதுக்கி விடாதே)
கணித நூல் ,இலக்கண நூல் முதலியவைகளை இகழ்ந்து ஓதுக்கி விடாமல் கற்க வேண்டும்.

8.ஏற்பது இகழ்ச்சி
(ஏற்பது - பிறரிடம் சென்று யாசித்தல்; இகழ்ச்சி - இழிவு தரும்)
பிறரிடம் சென்று யாசித்தல் இழிவு தரும்.

9. ஐயமிட்டு உண்
(ஐயமிட்டு - கேட்பவற்கு கொடுத்து)
கேட்பவற்கு கொடுத்து உண்ண வேண்டும்

10. ஒப்புர வொழுகு
(ஒப்புர - உலக போக்கிற்கு எற்றவாறு; ஒழுகு - நட)
உலக போக்கிற்கு எற்றவாறு நடந்து கொள்ள வேண்டும்.

11. ஓதுவது ஒழியேல்
ஓதுவது- கற்பது ஒழியேல்- நிறுத்தாதே
நூல்களைக் கற்பதை நிறுத்தி விடாதே

12.ஓளவியம் பேசேல்
ஓளவியம்-பொறாமை மொழி
பொறாமை மொழிகளைப் பேசுதலை ஒழிப்பாயாக!!

13. அஃகஞ் சுருக்கேல்
அஃகு - தானியம் சுருக்கேல்- சுருக்காதே
நெல் முதலிய தானியங்களைக் குறைவாக விற்காதே!!

14. கண்டொன்று சொல்லேல்
கண்டொன்று- பார்க்காததை
பார்க்காதவற்றைப் பார்த்ததாகப் பேசாதே

15. ஙப்போல் வளை
ஙப்போல்- ங எழுத்து போல்
ஙகரம் போல் உற்றார் உறவினர்களுக்கு வளைந்து கொடு

16. சனி நீராடு
(சனி- குளிர்ந்த)
குளிர்ந்த தண்ணீரில் குளி!!


17 . ஞயம்பட உரை
(ஞயம்பட- இனிமையாக ; உரை - பேசு)
இனிமையான மொழிளையே பேசு!!

18. இடம்பட வீடு எடேல்
(இடம்பட - நிறைய இடம் அடையுமாறு ; எடேல் -எடுக்காதே)
இடம் வீணாகக் கிடக்குமாறு பெரிய வீடு கட்டாதே!!

19. இணக்கமறிந்து இணங்கு
(இணக்கம் அறிந்து - யாருடன் பழகுகிறோம் என்று அறிந்து ; இணங்கு-பழகு)
ஒருவரோடு நட்பு கொள்வதற்கு முன் அவருடைய குணநலன்களை தெரிந்துகொண்டு நட்பு கொள்!!

20. தந்தை தாய் பேண்
(பேண்- காப்பாற்று)
தந்தை தாயைக் காப்பாற்றுவாயாக!!

21. நன்றி மறவேல்
ஒருவர் செய்த நன்றியை என்றும் மறவாதே!

22. பருவத்தே பயிர் செய்
(பருவம் - காலம் பயிர் - வளர்)
எத்தொழிலையும்/எக்கலையையும் செய்ய வேண்டிய காலத்தில் (வளர) செய்வாயாக!

23. மன்று பறித்து உண்ணேல்
(மன்று பறித்து - கைக்கூலி வாங்குதல் (I am not sure but I guess so))
நியாய சபைகளில் நியாயம் கூறுவோனாக இருந்து கைக்கூலி வாங்கி வாழ்க்கை நடத்தாதே!

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

25. அரவம் ஆட்டேல்
(அரவம் - பாம்பு)
பாம்பைப் பிடித்து விளையாடதே !

26. இலவம் பஞ்சில் துயில்
(துயில் - தூங்கு)
இலவம் பஞ்சிலானான மெத்தையில் படுத்து உறங்குவாயாக!

27. வஞ்சகம் பேசேல்
மனத்திலே வஞ்சம் வைத்துக் கொண்டு பிறரிடம் பேசாதே!

28. அழகு அலாதன செய்யேல்
நன்மையில்லாத காரியங்களைச் செய்யாதே!

29. இளமையில் கல்
இளம்பருத்திலேயே கல்வியைக் கற்றுக் கொள்!!

30. அறனை மறவேல்
தருமம் செய்தலை எப்பொழுதும் மறக்காமல் செய்வாயாக!!

31 . அனந்தல் ஆடேல்
மிகுதியாகத் தூங்காதே

ககர வருக்கம்

32. கடிவது மற
பிறரோடு கோபமாகப் பேசியதை மற்ந்துவிடு

33. காப்பது விரதம்
உயிர்களைக் காப்பதைக் க்டமையாக எண்ணு

34. கிழமைப்பட வாழ்
உன் பொருள்கள் பிறருக்கு உபயோகப்படுமாறு வாழ்.

35. கீழ்மை அகற்று
இழிவு தரும் குணங்களை நீக்கு

36. குணமது கைவிடேல்
நல்ல குண்ங்ளை விட்டுவிடாதே!

37. கூடிப் பிரியேல்
நல்லவர்களோடு நட்பு கொண்டு பிறகு பிரியாதே!

38. கெடுப்பது ஒழி
பிறரைக் கெடுக்கும்படியான செயல்க்ளை விட்டு விடு!

39. கேள்வி முயல்
நல்லவர்க்ளின் உரைகளை கேட்க முயற்சி செய்!

40. கைவினை கரவேல்
நீ செய்யும் காரியங்களை பிறர் அறியாமல் மறைக்காதே!

41. கொள்ளை விரும்பேல்
பிறருடைய பொருளுக்கு ஆசைபடாதே!

42. கோதாட்டு ஒழி
குற்ற்ம் பொருந்திய விளையாட்டை விட்டுவிடு!

43. கெளவை அகற்று
மற்ற்வர்களைப் பற்றீ கேவலமாகப் பேசாதே!

சகர வருக்கம்

44. சக்கர நெறி நில்
அரசனுடைய ஆட்சி முறைப்படி நட!!

45. சான்றோர் இனத்து இரு
அறிவில் சிற்ந்த பெரியோர்களின கூட்டத்தில் இரு!!

46. சித்திரம் பேசேல்
வீணான மொழிகளைப் பேசாதே!

47. சீர்மை மறவேல்
சிறப்புக்குக் காரண்மான செயல்களைச் செய்வதற்கு மறவாதே!

48. சுளிக்கச் சொல்லேல்
கேட்பவர்கள் வெறுப்படையும்படியான/க மொழிகளைப் பேசாதே!

49. சூது விரும்பேல்
சூதாடுதலிலே விருப்பங் கொள்ளாதே!

50. செய்வன திருந்தச் செய்
(I hear this from my mom always - Dhenam Thittu vanguven!!)
நீ செய்கிற காரியங்களை செப்பமுறச் செய்வாயாக!!

51. சேரிடம் அறிந்து சேர்
நீ சேருகின்ற இடத்தின் தன்மையறிந்து சேர்!

52. சையெனத் திரியேல்
பார்ப்பவர்கள் சீ என்று வையுமாறு நடந்து கொள்ளாதே!

53. சொற் சோர்வு படேல்
நீ பேசுகின்ற பேச்சு எடுபடாதவாறு தொய்வுடன் பேசாதே!

54. சோம்பித் திரியேல்
(again, I hear this at my home often from people, aiming at me)
எத்தகைய வேலையும் செய்யாமல் சோம்பலுடன் திரியாதே!

தகர வருக்கம்

55. தக்கோன் எனத் திரி
உன் ஒழுக்கத்தைப் பார்ப்பவர்கள் ' இவன்/ள் நல்லவன்/ள்' என்று சொல்லுமாறு நட!

56. தானமது விரும்பு
தானம் கொடுப்பதற்கு விருப்பங்கொள்வாயாக!!!

57. திருமாலுக்கு அடிமை செய்
காத்தற் கடவுளாகிய திருமாலிடம் அன்புடன் சேவை செய்!!

58. தீவினை அகற்று
தீய செயல்களைச் செய்யாதே!!

59. துன்பத்திற்கு இடம் கொடேல்
துன்பம் வரக்கூடிய செயல்களைத் தவிர்ப்பாயாக!!

60. தூக்கி வினை செய்
செய்யும் காரியத்தின் நன்மை தீமைகளை சீர்தூக்கிப் பார்த்து அதனைச் செய்வாயாக!!

61. தெய்வம் இகழேல்
தெய்வத்தை இழிவாகப் பேசுதல் கூடாது

62. தேசத்தோடு ஒட்டி வாழ்.
உன்னுடைய நாட்டு மக்களோடு ஒற்றூமையாக வாழ்வாயாக !

63. தையல் சொல் கேளேல்.
பெண்களின் தீய சொற்களைக் கேட்டு நடக்காதே !

64. தொன்மை மறவேல்.
பழமையான ந்ட்பு, உறவு முதலியவைக்ளை மறந்து விடாதே

65. தோற்பன தொடரேல்.

முடிக்கமுடியாத காரியங்களைத் தொடங்காதே

நகர வருக்கம்

66. நன்மை கடைப்பிடி
நன்மையான காரியங்களைத் தொடர்ந்து செய்வாயாக

67. நாடு ஒப்பன செய்
உன்னுடைய நாட்டிலுள்ளோர் ஒத்துக்கொள்ளக் கூடிய காரியங்களையே செய்.

68. நிலையில் பிரியேல்.
உன்னுடைய கொள்கைகளில் இருந்து பின்வாங்காதே

69. நீர் விளையாடேல்.
தண்ணீரிலே விளையாதே

70. நுண்மை நுகரேல்
(நோய் உண்டாக்கத்தக்க) இழிவு பொருளை உண்ணாதே!

71. நூல் பல கல்
பல விதமான கலைகளையும் கற்பாயாக

72. நெற்பயிர் விளைவு செய்
நெற்பயிரை பயிரிடுவயாக!

73. நேர்பட ஒழுகு
தவறான வழியிலேயே செல்லாமல் நேர்மையான வழியிலே நடப்பாயாக

74. நைவினை நணுகேல்
உன்னையோ பிறரையோ வருத்தக்கூடிய காரியங்களைச் செய்யாதே

75. நொய்ய உரையேல்
இழிவான மொழிகளைப் பேசாதே

76. நோய்க்கு இடம் கொடேல்
நோயுண்டாவதற்கு இடங்கொடுக்காதே

பகர வருக்கம்

77. பழிப்பன பகரேல்
பிறர் இகழ்ந்துரைக்கத்தக்க மொழிகளைப் பேசாதே

78. பாம்பொடு பழகேல்
பாம்பை வளர்த்து அதனுடன் பழகாதே

79. பிழைபடச் சொல்லேல்
பேசுவதில் குற்றம் உண்டாகுமாறு பேசாதே

80. பீடு பெற நில்
பெருமையுண்டாகுமாறு நல்வழியிலே நடப்பாயாக

81. புகழ்ந்தாரைப் போற்றி வாழ்
உன்னைப் புகழ்ந்தவரை நீயும் போற்றிவாழ்வாயாக

82. பூமி திருத்தி உண்
நீலத்தை பண்படுத்தி பயிரிட்டு வாழ்வாயாக

83. பெரியாரைத் துணைக் கொள்
அறிவாற்றலில் உன்னைவிட சிறந்தவரைகளையே துணையாகக் கொள்வாயாக

84. பேதைமை அகற்று
அறிவற்ற செயல்களை விட்டொழிப்பாயாக


85. பையலோடு இணங்கேல்
சிறுபிள்ளைத்தனம் உள்ளவர்களோடு இணங்காதே


86. பொருடனைப் போற்றி வாழ்
செல்வம் அழிந்து போகாமல் காத்து வாழ்வாயாக

87. போர்த் தொழில் புரியேல்
போர் புரிவதை ஊக்குவிக்காதே

மகர வருக்கம்

88. மனம் தடுமாறேல்
எத்தகைய நிலையிலும் கலக்கம் அடையாதே

89. மாற்றானுக்கு இடம் கொடேல்
பகைவனுக்கு இடம் அளிக்காதே

90. மிகைபடச் சொல்லேல்
உரையாடும் போது எதையும் மிகைப்படுத்திக் கூறாதே/ குற்றம் உண்டாகுமாறு பேசாதே

91. மீதூண் விரும்பேல்
மிகுதியாக உண்ண விரும்பாதே

92. முனைமுகத்து நில்லேல்
போர்/ சண்டை நடக்கும் இடத்தில் முதலில் சென்று நிற்காதே

93. மூர்க்கரோடு இணங்கேல்
முரடர்களோடு சேராதே

94. மெல்லி நல்லாள் தோள்சேர்
உனக்குரிய மனைவியோடு மட்டும் வாழ்க்கை நடத்து

95. மேன்மக்கள் சொல் கேள்
நல்லொழுக்கமுள்ள பெரியாரின் சொல்லைக் கேட்பாயாக

96. மை விழியார் மனை அகல்
விலைமாதர் இல்லத்தை விட்டு நீங்குவாயாக

97. மொழிவது அற மொழி
பேசும் சொற்களை சந்தேகம் இல்லாதவாறு பேசுவாயாக

98. மோகத்தை முனி
காம ஆசைகளை விட்டொழிப்பாயாக

வகர வருக்கம்

99. வல்லமை பேசேல்
உன்னுடைய ஆற்றலை நீயே புகழ்ந்து பேசாதே

100. வாது முற்கூறேல்
வாக்குவாதம் வருவதற்குரிய சொற்களை நீ முன்னால் பேசாதே

101. வித்தை விரும்பு
கற்பதிலே ஆர்வம் கொள்வாயாக

102. வீடு பெற நில்
நற்கதி அடையும் காரியங்களைச் செய்வாயாக

103. உத்தமனாய் இரு
உலகத்தவருடன் நல்லவனாக நடந்து கொள்

104. ஊருடன் கூடி வாழ்
ஊர்மக்களுடன் ஒற்றுமையாக வாழ்க்கை நடத்துவாயாக

105. வெட்டெனப் பேசேல்
வருத்தம் உண்டாகுமாறு கத்தி வெட்டைப் போல பேசாதே

106. வேண்டி வினை செயேல்
உன் நன்மைக்காக வேண்டுமென்றே தீய காரியங்களைச் செய்யாதே

107. வைகறைத் துயில் எழு
அதிகாலையில் எழுந்திரு

108. ஒன்னாரைத் தேறேல்
பகைவர்களை நம்பாதே

109. ஓரம் சொல்லேல்
நேர்மை தவறி ஒரு பக்கம் பேசாதே!!


Thanks to Maayaa