Migrating to “Docker for Mac” from Toolbox

As Docker for Mac becomes available, it’s about time to ditch Docker Toolbox which requires a VM running in background. The migration is surprisingly easy. The Official doc recommend you to read this article “Docker for Mac vs. Docker Toolbox“, while I think it’s a pretty good read, I will simply tell you the steps to migrate if you just need the info. Continue reading “Migrating to “Docker for Mac” from Toolbox”

Renaming files with case change in a Git Repository

Changing the filename with case change only using the unix command “mv” will not be detected in Git.

The general advice is using the git sub-command “git mv” to rename files, when I type this I saw the below error

It looks like the Mac file system is not case-sensitive, hence the error. The workaround is that, rename the file twice

No complain from Git! Enjoy!

PHP “Invalid library” error related to ‘mcrypt.so’

While I was compiling PHP from source to install the latest PHP version 5.5.4 on the OSX (10.7.5 Lion). (BTW, try not to do this at home because this can be a tedious process! )

I got the following error:

PHP Warning: ┬áPHP Startup: Invalid library (maybe not a PHP library) ‘mcrypt.so’ in Unknown on line 0

My php.ini is from previous version, and it is located at /etc/php.ini Continue reading “PHP “Invalid library” error related to ‘mcrypt.so’”