.profile is ignored when terminal is started in MAC-OSX

One fine day suddenly all environment variables that I have set inside .profile file of my machine stopped getting declared when machine is restarted.

It turns out that if you have .bash_profile or .bash_login file then .profile file will be ignored by bash.

So you need to make use of either .profile or .bash_profile not both of them, if you are using bash.

mac  OSX 

MySql Datafiles are getting corrupted on Mac-OSX abrupt shutdown

I have consistently faced this issue of MySql data files getting corrupted when my machine is rebooted abruptly. This has resulted into repetitive work that I have to do to rebuild the data. I tried to google for the solution and see if somebody else has seen this issue. But it seems this the way it will work, as MySql data files are not closed properly which results into corrupt database in case your machine gets abruptly restarted. [Read More]
mysql  mac  OSX 

Install and run memcached on OS-X

One need to have gcc installed for that you need to install xcode along with command line tools. To install the same one can refer to this link for xcode 5.0.1. Libevent is required to be installed for memcached, if it is already installed on your machine you can skip this step. Create temp directory and change directory to that location and execute following commands. $ curl -O http://www.monkey.org/~provos/libevent-1.4.14-stable.tar.gz $ tar xzvf libevent-1. [Read More]

Zeromq setup on MAC OSX 10.9.3 (mavericks) with Java binding

Steps: With reference to following blogs written by Vivek blog to install zeromq and by Jean blog to install auto tools. I faced few issues ( one of them is following error ./configure: line 15284: 'PKG_CHECK_MODULES') which I tried to address with following steps: Install gcc ( to install gcc you need to install xcode 5 download it from `https://developer.apple.com/xcode/ and install.) Make sure you have java installed. If you want to install JDK 7 refer this http://docs. [Read More]
zeromq  OSX  Mac