It is really annoying when spotlight does not return the right search results. To perform a re indexing execute following commands in terminal as root.sudo -s
mdutil -a -i off
launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
mdutil -a -i on
Category: MAC OS X
To switch from master to a branch or branch to another without merge.git branch
ster
*ma$ git fetch origin <new_branch>
$ git checkout
Branch legacy set up to track remote branch legacy from origin.
Switched to a new branch ‘new_branch'
$ git pull
$ git branch
* new_branch
master
Move or rename a file, a directory, or a symlink
# clone the repogit clone <repo-url>
git mv <source_file_or_directory> <destination>
git status
# will show the change detailsgit commit -am "comment_for_the_change"
git push
# push changes to repo
– Identify the disk number for the USB disk inserted, usually you can find it from the “Name” and “Size” field.
Below eg: , We inserted a USB with 4.1 GB size (so as the identified: “disk2”.)
Open terminal and execute the following commands:
sh-3.2$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *120.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_CoreStorage 119.0 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Macintosh HD *118.7 GB disk2
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: UNTITLED *4.1 GB disk2
– Unmount the disk
sh-3.2$ diskutil unmountDisk /dev/disk3
Unmount of all volumes on disk3 was successful
– write the ISO file to USB using dd command
sh-3.2$ sudo dd if=Downloads/ubuntu-12.04.3-desktop-i386.iso of=/dev/disk2 bs=1m
Password:
707+0 records in
707+0 records out
741343232 bytes transferred in 139.059398 secs (5331126 bytes/sec)
– Unmount the disk
sh-3.2$ diskutil eject /dev/disk3
Disk /dev/disk3 ejected
It is rather easy to convert Multiple images files as single PDF.
– Select all the files, and open with preview
– Print, and select “save as pdf”
– this will create a single PDF file with all jpeg in.
./arun

This is a working procedure to root and install google play Amazon Kindle HD 10″ (8.1.4).
Root Kindle Fire HD,
I followed the procedure described in here http://forum.xda-developers.com/showthread.php?t=1886460
- Download Root_with_Restore_by_Bin4ry_v18 from http://uploaded.net/file/0fpyh5c5
- Extract the 7zip file and execute RunMe.sh (if you using MAC/Linux)
$ ./RunMe.sh
Select the option 1) Normal
- Now your device is root’d, you may verify :
sh-3.2$ ./adb shell
shell@android:/ $ su
shell@android:/ # cd /
shell@android:/ # ls
- Reboot and do the installation for google play store
Install google play store
Reference: http://forum.xda-developers.com/showthread.php?t=1893410
- Open ES File Explorer, go to settings, Root settings , and select Root Explorer, Upto Root, and Mount File system.
- Download the GoogleServicesFramework.apk Vending.apk and Play.apk and copy to your sdcard.
GoogleServicesFramework.apk – mediafire.com/?zaumfwhraxcifqf
Vending.apk – mediafire.com/?31bn3e258jjpj8d
Play.apk – mediafire.com/?wwcqrlfwt8o1gnv
Please follow the below steps in order to get it working.
– Open ES file explorer, click and install GoogleServicesFramework.apk
– Then move the Vending.apk to /system/app
– Change the permission to 644 (User – Read/Write, Group/Others – Read)
– Now click and install Vending.apk
– You can see android market installed on your kindle, open it and do the google account registration. It is important that you do this step before installing Play.apk
– Once the registration is successful, click and install Play.apk from the sdcard.
– Now you will have a working play store , enjoy:)
Issues faced:
- While rooting, I was not able to execute the adb under stuff folder, replace the adb with the one come with Android SDK.
- I got “google play has stopped” messages while opening google play . To fix it . 1) Make sure that you copied the Vending.apk to the correct path /system/app and the permissions are correct. 2) Do the google account registration before installing Play.apk
./arun
"svn: Can't convert string from 'UTF-8' to native encoding:"
This usually happens with special characters in the file name, which the client cannot understand.
Just set proper locale in the client to fix this issues,
$ export LC_CTYPE=en_US.UTF-8 // make sure the locale is properly set. $ locale LC_CTYPE=en_US.UTF-8
./arun
It is very often required that you need to commit/update to the svn repository which is only indirectly accessible through a gateway (user can ssh to gateway and gateway can ssh to internal svn server)
Suppose you have a working copy (locally on your machine) setup with the real svn url (eg : svn+ssh://svn.example.com)
– Make ssh connection with local port forwarding to the gateway server
# sudo ssh gateway.example.com -L 22:svn.example.com:22
Change the repository url to localhost, since the local host connection forward to remote svn server through the gateway.
#cd <local_svn_path>
# svn switch –relocate svn+ssh://svn.example.com/trunk svn+ssh://localhost/trunk
Now you should be able to update, commit, etc to/from your repository.
You can switch it back to the original url when you have direct access to repository.
./arun