Saturday, July 21, 2012

Rajgad

राजगड, स्वाराज्याची  पहिली राजधानी. जवळ जवळ 20 वर्षे महाराज्यांच्या रुपान आख्या महाराष्ट्राची  कमान संभाळली असा निर्भिड, निधड्या छातीचा किल्ला. ज्याला पायथ्या पासून पाहताच मानत धड़की भरते असा गड. महाराज्यांनी  स्वतः कल्पना लढवून हा किल्ला बांधला तो म्हणजे तोरणाची डागडुजी करत असताना जे सात सोन्याचे हंडे गुप्तधन सापडला त्यामधून. काल अचानक मित्रांचं बोलावणं आला आणि गेलो परत एकदा भेटीला त्या राजबिंड्या अमर, अजस्त्र कलाकृतीला.

पुण्यामधून सकाळी ६:३० ला राज-गडाकडे प्रस्थान केला. सिंहगड रोड-खानापूर-पाबेघाट मार्गे निघालो. तसा पाबेघाट हा निसर्ग सौन्दार्याने भरलेला आणि पुण्यातील बांधकाम व्यावसायिकांची नजर न लागलेला एकमेव पुण्या जवळचा घाट. घाटाच्या माथ्यावर गेल्यावर आपल्याला ट्रेकर्स ची तीन श्रद्धास्थानं एकाच जागेवरून पाहायला मिळतात: पाठिमागे अजस्त्र सिंहगड, उजव्या बाजूला गगनचुंबी तोरणा आणि डाव्या बाजूला निधडा राजगड. पाबे-घाट संपल्यावर आम्ही वाजेघर-साखर मार्गे गठाल ते गुंजावणे. अगदी छोटासा खेडं. अगदी महाराज्यांपासून आज पर्यंत राजगड आणि गडकर्यांची सेवा करत असलेला गाव. इथले गावकरी आज हि छोटी-मोठी हॉटेल्स चालवतात पण अडचणीच्या नावाखाली लुटत मात्र अजिबात नाहीत, नाहीतर एक सिंहगड सगळे लुटायलाच पाहतात.

 तसं पाबेघाट मार्गे पोहचायला वेळ लागतो पण तो एक वेगळाच अनुभव आहे. ९:३० ला पोहोचल्यावर चढाई ला सुरवात केली. तसा अडीच तासात सर केला. जाताना गुंजावणे गावातून चोर-दरवाज्या मार्गे जावं. अजून एक रस्ता आहे पण तो खूपच अवघड समजला जातो.चे गुएवेरा चा आदर्श राखून एक हि थेंब पाणी न पिता गड चढण्याच समाधान विलक्षण असता.गेल्या-गेल्या पहिल्यांदा दर्शन मिळाला ते सध्याच्या काळातील गडकरी असलेल्या वानरसेनेच आणि नंतर पद्मावती देवीचं. तसा पाहायला गेला तर हा गड खूपच मोठा आहे, आणि याच्या तिन्ही माच्या इतर दोघींपासून खूपच दूर अंतरावर आहेत. पूर्ण गड किती वेळेत आणि काय काय पाहायचा याचा पूर्ण नियोजन करून पहिल्यांदा निघालो ते सुवेळा माची-कडे. सुवेळा माची कडे जनता मध्येच एक भूल-भुलैया सारखा ठिकाण लागतं, थोडा खाली उतरल्यानंतर कळत की तो गुंजावणे दरवाजा आहे. बहुतेक गुंजावेन गावातून जो अवघड रस्ता राजगडावर जातो त्याचा हा गडावरचा

बहुतेक गुंजावेन गावातून जो अवघड रस्ता राजगडावर जातो त्याचा हे  गडावरच प्रवेशद्वार असावा. परत आम्ही कूच केली ती सुवेळा माची-कडे. सुवेळा-माची च्या थोडा आधी डाव्या हाताला वरती पहिला असता आपल्याला कातळात एक खूप मोठा छिद्र दिसत. तिथे जाता आलं तर नक्की जावं. सुवेळा माची पाहिल्यानंतर आम्ही परत पद्मावती माची कडे आलो आणि कूच केली ती बाले-किल्ल्याकडे. राज-गडाचा मुख्य आकर्षण म्हणजे हा बालेकिल्ला. संपूर्ण कातळात घडलेला, एकच वाट असलेला आणि आजही जिंकायला अशक्य वाटावा असा हा बालेकिल्ला. बालेकिल्ल्यावर पाहायला आता फक्त राजवाड्याचे अवशेष राहिले आहेत, तसेच पाण्याची दोन टाकीही आहेत. तसा चढायला अवघड आणि धोकादायक वाटणारा बालेकिल्ला उतरताना तितका अवघड वाटला नाही.

आता वेळ परतीची झाली होती. शिवाजी महाराज्यांच नवा घेऊन आम्ही खालती कूच केली ती 4:30 वाजता.  आता मात्र पूर्ण दिवस पाण्यात नाहलेला आणि १००-१५० ट्रेकर्सच्या पायाखाली धूळधान झालेला रस्ता खूपच निसरडा झाला होता. जराही चूक झाली आणि पाय घसरला किंवा लाचाकाला तर पाय किमान २-३ दिवसांसाठी कामातून जाण्याची शक्यता होती. जाताना वरती चढताना जितकी काळजी घेतली नव्हती तितकी उतरताना घ्यायला लागत होती ती फक्त या निसरड्या रस्त्यामुळे. बहुदा हा माझा पहिलाच ट्रेक होता जिथे चढण्यापेक्षा उतरताना वेळ जास्त लागला. उतरल्यानंर मस्त पैकी चहा आणि पोह्यावर तव मारल्यानंतर आत्मा तृप्त झाला. आणि संध्याकाळी ७:३० वाजता पुण्याकडे प्रयाण केलं ते मात्र महाराजांची मनात परवानगी घेऊनच.



Thursday, July 19, 2012

What is so special with Hans Zimmer(Batman-The Dark Night Rises)

I fall in love of background scores when I saw "The last samurai". My detailed and deep investigation revealed that almost all Hollywood movies which I have loved lot and which are still there on my personal computer(in-spite of having loads of development stuff, a running production server over, a full  fledged development system on it) have music-background score given by same man: Hans Zimmer. Once I got the fact that I love to watch movies just because of background score and almost my 50% review of whether movie is good or bad depends upon how was the background score of the movie, I tried to find out works by the Hans and other musicians.

 
With this I got to know great works by other few great people, John Murphy(Abhijeet Pathak introduced me to John murphy), James Newton Howard
(Blood Diamond fame),  Brian Tyaler (Fast Furious fame .... loves his all scores for Fast Five FF). All these people along with Hans are great musicians and have great profile, each one has given around 60-70 movies background score. But Hans stands out of them. Almost all the movies he has given score are the biggest box office hits Gladiator, Black Hawk Down, Tears of the Sun, The last Samurai, Da Vinci Code, Angels and Demons, Pirates (fuck off that people who use there mobile ringtone as Pirates theme and dont know it is by Hans), Batman-Dark Night and my favorite one The Holiday.



What is so special with Hans music is he know how to blend traditional, tribal,  local music with the electronic one. Black Hawk Dawn .... master piece .. what a perfect blend of the Sumerian ... Somalian music with the electronic, his music made me serious about learning Sumerian, specially his song "Gortoz a Ran". In "Tears of the Sun" he blended west African music with electronic. While in "The Last Samurai" what a perfect Japanese music he has given. In Lobert Langdon fame "Da Vinci Code" and "Angels and Demons" he played europian sounds.

With this versatile mix of traditional music with mainline electronic, he has created  awesome background scores. His ability of smelling, sensing, testing music is way bigger, excellent, perfect. Day by day his music is getting mature and after listening score for Dark Night Rises am sure of that it will be big hit.

If you love Steven Spielberg, Mel Gibson, Christopher Nolan then you must respect Hans, If they are the great directors, think tank in different kind of cinema, Hans is someone who brings different king of great music.

All  the best for next success for Hans, "The Dark Night Rises".


Monday, July 9, 2012

Ubuntu 10.04, 12.04 crash and drops to BusyBox shell initramfs prompt

My ubuntu 10.10 Lucid Lynx suddenly stopped working on some day. It was dropping me to the command prompt showing Ubuntu busy Box. initramfs.

After Googling i found that it is problem with the grub and simply reinstalling the grub could solve your problem instantly.

Here are the steps to re-install your grub and get your crashed linux system up.

1> Boot your system with the any Linux distribution cd-dvd (i use fedora 11) to re-install the grub.

2>  Go to option  "Choose rescue existing system"

3> Now execute following commands

#chroot /mnt/sysimage
#grub-install /dev/sda

Now reboot the system  and you will find that your system is running perfectly fine.







Saturday, May 12, 2012

Links:
1> For android installation on ubuntu 10.04
     http://codesupply.net/content/android-software-development-kit-sdk-setup-ubuntu-1004-lucid-lynx

Saturday, September 3, 2011

Mounting Windows Share on the linux


Hi All,

I have explained the procedure of mounting Windows share on Linux with full permissions so that you can read,write,edit the files with full permissions. If you do normal mount editors like vim, utilities like cscope will not works correctly, so its necessary to mount the share with correct options and permissions for which you may need to compile the kernel with correct config setting which are explained below.

Why:
My this post is dedicated to all the developers who use linux to edit the source code files for the windows projects, i mean, when you use linux for editing files by mounting windows share on linux. This saves your lot of time while compiling source code on windows.If you keep your database on linux and try to compile on windows it takes around 6 times more time to compile, when machines are in LAN(its just my experience), and if your project is too big then it will take more than. So its better to keep source code on the machine on which compilation is done, rather on the machine where you edit the files.

For ubuntu 12.04 directly follow step 3, step 1 and 2 are only for old ubuntu release.

1> Linux kernel settings
while compiling kernel please enable following options in the .config file.
This is must other wise call to mount.cifs will fail
      a>  FUSE (dont know whether it is must)
      b> SAMBA File System
      c> CIFS File System(with the xattr and POSIX new support, which is must as i think, these are sub-options under cifs)
     
2> Windows settings
As i think there is inbuilt support for CIFS on windows-xp(atleset its on my pc)
      a> Share the folder with maximum permission(read, write, special permission whatever you can) to everyone.
     
3> mounting using cifs
i have shared my  D drive on windows, which i have mounted under directory /home/rahul/mnt. Using command

if mount.cifs gives error command not found please install it by
sudo apt-get install cifs-utils
sudo aptitude install cifs-utils
sudo yum install cifs-utils

$sudo mount.cifs //192.168.92.44/D$ /home/rahul/mnt -o user=rahul.patil,pass=password,rw,uid=rahul,gid=rahul,noserverino

above command sometimes causes to mount in only read mode, so use real uid and gid numbers instead of names to mount in read write mode.


$sudo mount.cifs //192.168.92.44/D$ /home/rahul/mnt -o user=rahul.patil,pass=password,rw,uid=1000,gid=1000,noserverino



 a generalize command would be:

sudo mount.cifs //<ip_addr_or_name_of_windows_mc>/<share_name>  <mount_dir_on_linux> -o user=<windows_user_login_name>,pass=<passwrd_of_windws_login>,rw,uid=<linux_use_name_or_id>,gid=<linux_goup_name_or_id>,noserverino


Errors while mounting the drive or suddenly you find that ls is not showing files/folders in the directory on target(Linux) machine:

1>  You may get this error while remounting the drive on target(Linux) machine

 [sudo] password for rahul:
mount error(12): Cannot allocate memory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

2> mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Dmesg could help you in above error

#dmesg
[  313.232501]  CIFS VFS: Send error in SessSetup = -13
[  313.232507]  CIFS VFS: cifs_mount failed w/return code = -13
[  314.293943] Status code returned 0xc0000234 NT_STATUS_ACCOUNT_LOCKED_OUT

if dmesg shows above error then your windows account is locked out. Please unlock your windows account or ask administrator to unlock it. 

I dont know root cuase of the error, but the solution is restart the host(windows) machine.

3> Mount is only in read mode and shows root.root as owner and group for all the files
3.1 rather than giving user_name and group_name use uid and gid


Feel free to contact me if u found error @
rahul.deshmukhpatil@gmail.com

















Tuesday, August 9, 2011

Simplest method to install latest Ruby on Rails(RoR) 3.x on Ubuntu(10.10)

Hi,

This is the post about installing latest RoR on Ubuntu10.10 using RVM(ruby version manager). Installing RoR using a RVM is the simplest method of all the methods because it has many advantages like you can control version while testing and it automatically resolves all the dependencies. Also plenty of help is available for using rvm.

At the end of article i have given all the commands you can copy paste into file and run it as a bash script it will do all the jobs for you.

 Follow the following steps,
install rvm using

 $bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)

A>This  installs all the dependencies and the libraries

  # Dependencies for compiling Ruby
  $ sudo apt-get install curl bison build-essential autoconf zlib1g-dev libssl-dev libxml2-dev libreadline6-dev git-core subversion

  # openssl package for RVM
  $ rvm pkg install openssl

  # readline package for RVM
  $ rvm pkg install readline


B>this installs ruby , U can give version as 1.9.2 although

$rvm install 1.9.2-head -C --with-openssl-dir=$rvm_path/usr,--with-readline-dir=$rvm_path/usr

C>Test it  and use 1.9.2 as default version
 
$ rvm list
  =>
  rvm Rubies
  ruby-1.9.2-head [ x86_64 ]
  System Ruby
  system [ ]

  $ ruby -v
  => ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux]

  $ rvm use --default 1.9.2
  => Using ruby 1.9.2 head

  $ ruby -v
  => ruby 1.9.2dev (2010-04-17 trunk 27376) [x86_64-linux]


4> Install sqlite(database and rails)
$sudo aptitude install libsqlite3-0 libsqlite3-dev  

$ gem install sqlite3-ruby
  $ gem install rails --pre
For detailed info you can visit this blog: http://rohitarondekar.com/articles/installing-rails3-beta3-on-ubuntu-using-rvm

Rohit has given nice explanation, And above instructions are taken from his blog.
Just remember that in rvm package has been replaced by pkg.


#This is the script to install the ruby1.9.2, rubygems1.8.6, rubyOnRails3.x
#author : rhaulpatil

bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)

# Dependencies for compiling Ruby
sudo apt-get install curl bison build-essential autoconf zlib1g-dev libssl-dev libxml2-dev libreadline6-dev git-core subversion

# openssl package for RVM
rvm pkg install openssl

# readline package for RVM
rvm pkg install readline

#this installs ruby , U can give version as 1.9.2 although
rvm install 1.9.2 -C --with-openssl-dir=$rvm_path/usr,--with-readline-dir=$rvm_path/usr

#list installed ruby packages
rvm list

#ruby version using
ruby -v

#use this version as default
rvm use --default 1.9.2
 
ruby -v 
 
# this installs develoment lib for sqlite otherwise of which gem install sqlite3-ruby will fail
sudo aptitude install libsqlite3-0 libsqlite3-dev  
 
#install sqlite-3 as a basic database
gem install sqlite3-ruby

#install the rails 3.x latest
gem install rails --pre