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
You want to click on an icon to start a new Terminal instance.
1. open up the “AppleScript Editor”, you can do so by firing up the Spotlight search and type “AppleScript Editor”
2. The script you’ll need is presented below, paste it to the editor, then you can press “Run” to test it out. Continue reading
Changing the filename with case change only using the unix command “mv” will not be detected in Git.
$ mv classes/hello.php classes/Hello.php
$ git add .
$ git commit -a
# On branch master
nothing to commit, working directory clean
The general advice is using the git sub-command “git mv” to rename files, when I type this I saw the below error
$ git mv classes/hello.php classes/Hello.php
fatal: destination exists, source=classes/hello.php, destination=classes/Hello.php
It looks like the Mac file system is not case-sensitive, hence the error. The workaround is that, rename the file twice
$ git mv classes/hello.php classes/Hello
$ git mv classes/Hello classes/Hello.php
$ git commit -a
No complain from Git! Enjoy!
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