Laravel
PHP
AngularJS
HTML / CSS
jQuery / JavaScript
- Interface – DropKick : Styling
<Select>
input
If you got a warning message from linode :
Your system’s clock is fast. Please ensure that ntp is installed and running.
How to solve the problem?
1. Change Time Zone (TZ)
$ sudo cp /usr/share/zoneinfo/Asia/Taipei /etc/localtime
$ sudo vim /etc/sysconfig/clock
change Etc/UTC
to Asia/Taipei
or yourself
2. Install NTP
|
$ sudo yum install ntp $ sudo service ntpd start $ sudo chkconfig ntpd on |
$ sudo vim /etc/ntp/step-tickers
:
|
0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org |
$ sudo service ntpd restart
Done!
JavaScript Authoring Workflow with Google Chrome
Chrome Workspace
To enable the Experiments tab of the Settings pane you need to navigate to about:flags
and scroll down to the Experimental Developer Tools experiments flag. Enable it then restart the browser.
It’s always a disturbing issue for testing IE browser between different versions, but I found a good solution from Microsoft:
Download IE VMs
Installation
|
$ sudo apt-get install apache2-mpm-worker libapache2-mod-fastcgi php5-fpm $ sudo a2enmod actions alias fastcgi |
Configuration
edit /etc/apache2/mods-enabled/fastcgi.conf
:
|
AddHandler php5-fcgi .php Action php5-fcgi /php5-fcgi Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization |
Restart Apache2 and PHP5-FPM
|
$ sudo service apache2 restart && sudo service php5-fpm restart |
— Updated 2014-01-09 (Ubuntu 13.10)–
mkdir /var/www/cgi-bin
touch /var/www/cgi-bin/php5.fcgi
chown -R www-data:www-data /var/www/cgi-bin
edit /etc/apache2/mods-enabled/fastcgi.conf
:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
<IfModule mod_fastcgi.c> AddHandler fastcgi-script .fcgi #FastCgiWrapper /usr/lib/apache2/suexec FastCgiIpcDir /var/lib/apache2/fastcgi Alias /php5.fcgi /var/www/cgi-bin/php5.fcgi AddType application/x-httpd-fastphp5 .php Action application/x-httpd-fastphp5 /php5.fcgi FastCGIExternalServer /var/www/cgi-bin/php5.fcgi -socket /var/run/php5-fpm.sock <Directory "/var/www/cgi-bin"> Order allow,deny <Files "php5.fcgi"> Order deny,allow </Files> </Directory> </IfModule> |
Virtual host setting example :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
<VirtualHost *:80> # Admin email, Server Name (domain name), and any aliases ServerAdmin webmaster@email.com ServerName www.example.com # ServerAlias example.com # Index file and Document Root (where the public files are located) DirectoryIndex index.php index.html index.htm DocumentRoot /var/www/example <Directory /var/www/example> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny Allow from all Require all granted </Directory> # Log file locations LogLevel warn ErrorLog ${APACHE_LOG_DIR}/error.example.com.log CustomLog ${APACHE_LOG_DIR}/access.example.com.log combined </VirtualHost> |
References
Continue Reading
Nginx with Apache + FastCGI + PHP-FPM
Usage:
|
php apigen.php --source . --destination "./docs" --title "Title" --skip-doc-path "./skip_path" --exclude "path/*" |
If u got a problem about memory limit, just give it memory_limit
parameter:
php -d memory_limit=800M apigen.php
Craft Example:
|
php -d memory_limit=800M /Users/zmax/Work/Projects/apigen/apigen.php --source . --destination ./api --title Craft --skip-doc-path "storage/*" --exclude "*/yiilite.php" |
|
apigen --source ~/nella/Nella --source ~/doctrine2/lib/Doctrine --source ~/doctrine2/lib/vendor --source ~/nette/Nette --skip-doc-path "~/doctrine2/*" --skip-doc-prefix Nette --exclude "*/tests/*" --destination ~/docs/ --title "Nella Framework" |
CSS preloading example: