Simple command to monitor directory changes on Mac

Sometimes you want to know if a certain App/code/IDE changed something on the disk, this little script / command may come in handy.

Install fswatch

install fswatch as a global command

The script

Only fswatch is not enough, here is the script that does the trick

Save as a script e.g. monitor.sh, then give it executable permission

Now run the script and supply the path as parameter, and you will start monitoring the directory

Enjoy!

Software update failure saved by OSX Time Machine!

Today I was trying to upgrade the OS X on my Mac mini via the AppStore which seems harmless and seamless like every other small OS X updates. Unluckily it turned into a nightmare (almost).

I was not paying attention to the details of the Update, it was something like Command Line Tools, Combined update and an update on the Recovery Partition. The install was smooth, after I restart the computer Continue reading

Solving Genymotion “unable to connect to your virtual device” Error

So I know you are here because you get this error message while starting a Genymotion Device.

genymotion_1

First you should go check your firewall settings as suggested in the Genymotion FAQ. Other than that, if the problem still persist, 9/10 it’s the problem of your Host-only adapter settings. Here’s how to correctly set it. Continue reading

Why Developers like OSX

It’s *nix and THE most advanced one

Programmers need to use a lot of command line tools on daily basis like ssh, curl, build tools etc. There’s nothing like a bash shell in *nix systems(Unix, Linux. OSX is Unix-based), basically you’re left to choose between OSX and thousands of distros of Linux. (You may use CYGWin in Windows but i think it’s terrible) In my opinion, most Linux distros are still not very user-friendly (Ubuntu is probably the best you can find), OSX provides a pleasant-to-use GUI while preserving the greatness of the command-line environment. Out of the box it has everything a modern OS should have, this saves you the time needed to configure the development environment and focus on the job you need to do.

It’s elegant

OSX is beautifully designed, slick and always Continue reading

Why my iPad does not sync with Google Calendar

Reason1: You have not turned ON Calendar Sync

  1. Go to Settings>Mail,Contacts, Calendars
  2. Tap on your GMail account
  3. If you see the “Calendars” is turned off, Tap it once to turn it on

Reason 2: You did not connected to the Internet when you edit iCal

From my Experience, the iCal only sync with Google when you open the App Continue reading

How to save a PDF in Gmail attachment to Dropbox in iPad

This sounds like a common task, but the problem is that from the GMail App there is no way to directly transfer the file to Dropbox. The trick is to use Safari.

  1. First, Open the attachment, Click the “Share” button and select “Open In Safari
  2. Then, within the pdf canvas in Safari, Tap once to see the “Open In” bar and from there Select “Open in Dropbox
  3. Finally, You will be prompted a screen to select which Dropbox folder you want to save in, then it will proceed to upload
  4. There you go!