Category Archives: Uncategorized

composer install note

[root@dev html]# curl -sS https://getcomposer.org/installer | myphp
#!/usr/bin/env php
Some settings on your machine may cause stability issues with Composer.
If you encounter issues, try to change the following:

The apc.enable_cli setting is incorrect.
Add the following to the end of your `php.ini`:
apc.enable_cli = Off

The php.ini used by your command-line PHP is: /opt/php-5.4.37/etc/php.ini
If you can not modify the ini file, you can also run `php -d option=value` to modify ini values on the fly. You can use -d multiple times.

Downloading…

Composer successfully installed to: /opt/php-5.4.37/html/composer.phar
Use it: php composer.phar

DBD::mysql on Mac OS: Library not loaded: libmysqlclient.18.dylib

$ perl -e ‘use DBD::mysql;’
Can’t load ‘/Library/Perl/5.18/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle’ for module DBD::mysql: dlopen(/Library/Perl/5.18/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle, 1): Library not loaded: libmysqlclient.18.dylib
Referenced from: /Library/Perl/5.18/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
Reason: image not found at /System/Library/Perl/5.18/darwin-thread-multi-2level/DynaLoader.pm line 194.
at -e line 1.
Compilation failed in require at -e line 1.
BEGIN failed–compilation aborted at -e line 1.
Continue reading

Office Excel file opened as read-only on Mac

two possibile reasons:

1. the file is locked, verify this in the file general info tab and make sure it is not locked.
Right click on the file => Get Info => in the “General” section, make sure the “locked” option is not checked.

2. there is a special case, when your file name contains ‘/’. this will cause the file to be opened as read-only by default (tricky!)