Want to use git to manage your wordpress installation and track changes of your development or wordpress upgrade?
Category Archives: Uncategorized
notes on Mojolicious installation error
[root@localhost ~]# curl -L https://cpanmin.us | perl – -M https://cpan.metacpan.org -n Mojolicious
curl: (35) SSL connect error
yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
How to fix?
Continue reading
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
git quick reference
1. find out changed files in a commit
e.g.
$ git diff-tree --no-commit-id --name-only -r 5ada787d6688d388c8cdeb0ce87bfc7ac209106f
2. add all untracked, modified, deleted files to a commit
$ git add -A
Unknown Class – yii\base\UnknownClassException
You use gii to create a CURD suite of code and got the error of
Unknown Class – yii\base\UnknownClassException
Unable to find ‘backend\controllers\xxxxxController’ in file: /opt/php-5.4.37/html/backend/controllers/xxxxxController.php. Namespace missing?
Continue reading
upgrade yii from 2.0.4 to 2.0.6
How to upgrade Yii2 to the latest version? read on…
Continue reading
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
Download latest flash player complete install file
what to download the latest complete flash player install file? note not the installer file which needs to download the real flash install file when performing the installation.
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!)