Friday, November 12, 2010

ગની દહીંવાલા ની રચના

બનાવટની મધુરતામાં કટુતા પારખી જાશું,
નિખાલસ પ્રેમથી પાશે જગત, તો ઝેર પી જાશું…
સજાવીશું તમન્નાઓની મહેફિલ એક દી જોજો,
ધરા ત્યારે ગગન બનશે, અમે તારા બની જાશું…
પડીશું તો ગગનના ઘૂમટેથી મેહુલા રૂપે,
ઉરે ફળની તમન્ના લઈને માટીમાં મળી જાશું.
પતંગાની અગન લઈને ‘ગની’, કંઈ શોધીએ શાતા;
દીસે એ દૂર પેલી જ્યોત, ત્યાં જઈને બળી જાશું.
- ગની દહીંવાળા

Monday, November 08, 2010

Tools for teaching programming

Hi,
     I read a couple of articles at linux journal. Two programming environment, especially meant to teach programming in a very interesting way. Namely, Alice and Scratch. The reviews at Linux Journal are here and here.

Tuesday, November 02, 2010

Fatal Attraction

Well,
don't get any ideas from the title. This title is given to an incredible chess game that happened between Edward Lasker and George Alan Thomas. Here is the link. Observe, how every move after the Queen sacrifice is forced :-)

Friday, October 01, 2010

Vim Trick : Search and Replace

Today I found out a cool vim trick. Not so much great, but sure it's nice to know.

For example, if you want to search for string consisting of all a's followed by all b's and then reverse it.


aaaaaabbb -> bbbaaaaaa

:s/\(a+\)\(b+\)/\=submatch(2).submatch(1)/

\(regexp\) defines an atom in vim. So the first atom is defined as a* and the second is defined as b*. In the replace pattern we are executing a vim expression. submatch(0) stands for the entire matched pattern where as submatch(1), submatch(2) stands for the strings matched by first atom, second atom etc.

So the above vim command reverses the order of a's and b's. Having a vim expression as a replace pattern gives enormous power and can be used for much more complex things :-)

Sunday, September 12, 2010

Nice sher by Amir Khusro

खुसरो दरिया प्रेम का उलटी वा की धार,
जो उतरा सो डूब गया, जो डूबा सो पार
                                  -- अमीर खुसरो  

Wednesday, September 01, 2010

જલન માતરી - Jalan Matari Gazal

દુ:ખી થવાને માટે કોઇ ધરતી પર નહીં આવે;
હવે સદીઓ જશે ને કોઇ પયગમ્બર નહીં આવે.

છે મસ્તીખોર કિંતુ દિલનો છે પથ્થર નહીં આવે;
સરિતાને કદી ઘરઅંગણે સાગર નહીં આવે.

ચમનને આંખમાં લઇને નીકળશો જો ચમનમાંથી,
નહીં આવે નજરમાં જંગલો, પાધર નહીં આવે.

અનુભવ પરથી દુનિયાના, તું જો મળશે ક્યામતમાં,
તને જોઇ ધ્રુજારી આવશે, આદર નહીં આવે.

દુ:ખો આવ્યાં છે હમણાં તો ફક્ત બેચાર સંખ્યામાં,
ભલા શી ખાતરી કે એ પછી લશ્કર નહીં આવે.

હવે તો દોસ્તો ભેગા મળી વ્હેંચીને પી નાખો,
જગતનાં ઝેર પીવાને હવે શંકર નહીં આવે.

આ બળવાખોર ગઝલો છોડ લખવાનું ‘જલન’ નહીંતર,
લખીને રાખજે અંજામ તુજ સુંદર નહીં આવે.

કરીને માફ સ્નેહીઓ ઉઠાવો એક બાબત પર,
‘જલન’ની લાશ ઊંચકવા અહીં ઇશ્વર નહીં આવે.
- જલન માતરી

Monday, August 30, 2010

Download Lyrics from Rankaar

Dear Friends,
Many of you would like to get lyrics from Rankaar for your personal use. To save you the trouble of writing them down on pen and paper here is the trick you can use :
  1. From any browser, load the page containing your favourite song.
  2. Click on 'Email This Post'  to email it to yourself. Then you can copy it from your email account. Alternatively, you can do the following
  3. Go to File -> Save As. Now, give it any name you want the file to be saved as. For example save it as 'mysong.htm' or 'mysong.html'.
  4. Now, from your computer, open this file 'mysong.htm' or 'mysong.html' using Microsoft Word. You will see that now you can select the lyrics of the songs.
  5. Alternatively, open this file 'mysong.htm' or 'mysong.html' in WordPad or NotePad.
  6. Now, go to Edit-> Replace. Search for 'return false' ( without the single quotes, of course! ) and replace it with 'return true'. Save it and close it.
  7. Now, double click on 'mysong.htm', it will open in your browser. But now, you will see that you will be able to select the lyrics/text of your choice.
Contents on Rankaar as under Creative Commons License. Hence, you are free to use it for any non-commercial purpose and you do not plagiarize (look it up in a dictionary :-) ).

--Saurabh Joshi

Rankaar Songs Download

Dear Friends,
Rankaar has stopped support of Firefox browser. Here is a fix for you so that you can continue enjoying your favourite Gujarati music.

  1. Install Firefox.
  2. Install "User Agent Switcher" add-on to Firefox. You can install it via the link provided, or go to Tools -> Add-ons -> Get Add-ons and search for "User Agent Switcher" and install it.
  3. Restart Firefox
  4. Go to Tools -> Default User Agent -> Internet Explorer -> Internet Explorer 8 ( you can choose 6 or 7 too )
  5. What this add-on does is that it sends the signature of IE 8 to the website to make it believe that you are connecting to the site using IE 8, even though you are using Firefox.
  6. Now you can open Rankaar from Firefox.
Note : please note that, having one browser pretending to be another browser will not give you a good user experience, as the pages might not render as they should. Hence, you should use it only to surf websites which requires that you use Internet Explorer only. After that, you should switch it back to default mode using , Tools -> Internet Explorer -> Default User Agent.

Thursday, August 26, 2010

ગુજરાતી સંગીત નો લ્હાવો - Enjoy Gujarati Music

Dear Friends,
                     Due to some people with selfish and evil intentions I am removing this post. Those who host their website under 'Creative Commons Licence' should really know the true meaning of it. Creative Commons Licence allows one to use and copy any material for non-commercial use in its original form ( non-derivative ) as long as the due credits are given to original authors ( no plagiarisms ).

Bunch of selfish and self proclaimed gujarati fans just want to increase the hits on their website and want to keep other fellow gujaratis begging. To satisfy their ulterior ego they forced me to remove a post which stated how can one use Firefox and its add-ons to enjoy gujarati music for personal pleasure.


It is worth noting that Firefox ( browser ) and its add-ons like Greasemonkey ( allows to customize look of a page ), Flashgot ( allows downloading of any flash based material ) and User agent switcher ( allows to switch user-agent ) are all in open source domain available for free.

Tuesday, August 17, 2010

Mitti Cool Refrigerator

Well,
Innovation is not the monopoly of so called highly educated scientist. Innovators and creators walk among us as a common people with not so common talent.

Read about mitti cool refrigerator . We should encourage and nurture more and more such innovations and innovators.