Awesome PHP Video you must watch

So I recently watch some videos about PHP, from anthony ferrara. Mostly it is about performance, and how PHP and other programming language actually works. Before I watch this video, I didn’t even know how PHP actually works (shame on me). Well, I suggested you must watch too. Some interesting quote is, “You don’t have scale problem, Your code just sucks”.

[How to]Install Nginx on Linux Centos 6.5 / 6.6


When this tutorial written, latest stable version of nginx is 1.6.2, and the latest nginx mainline version is 1.7.10. But, when it comes to centos, “If it ain’t broke, don’t fix it“, so I choose a stable one. Here is the code.

yum update -y
sudo rpm -Uvh
cd /etc/yum.repos.d
curl -O

touch /etc/yum.repos.d/nginx.repo
echo "[nginx]" >> /etc/yum.repos.d/nginx.repo
echo "name=nginx repo" >> /etc/yum.repos.d/nginx.repo
echo "baseurl=\$basearch/" >> /etc/yum.repos.d/nginx.repo
echo "gpgcheck=0" >> /etc/yum.repos.d/nginx.repo
echo "enabled=1" >> /etc/yum.repos.d/nginx.repo

yum install -y nginx
service nginx restart

To make sure it’s installed :

..[$] <()> netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0      *                   LISTEN      13063/nginx
tcp        0      0        *                   LISTEN      13063/nginx

Right now I implement on Digitalocean (it has referral link) because it’s fast and easy to deploy, my favorite feature is snapshot. I usually using the smallest one ($5 / month), when it goes well in the smallest one, it will be better on the bigger one.

A few words on sailsjs awesome nodejs framework

Sailsjs make it easy to build custom, enterprise-grade Node.js apps.

So, recently I watch this video. And I think it is really worth to try, really awesome do everything that simple, like create a REST API, it use ORM. And since my quote is, lazier is better, I think this framework suites me, I think I will use this framework in my next project, create a GIS based system. I think I will use leafletjs, since it use openstreetmap. I’m still working on it, I will share when it’s done.

Here is the awesome video :

[Review] Cheap VPS battle Part-1Digital ocean vs Cloud kilat vs Simpler cloud

I always wondering which one from those provider who give the best service, so this time I got a chance to test that. Part 1 is about the networking.


Ram Swap Cpu Disk Prices / Month
DO 512 Mb 0 2Ghz 20 Gb $5
SC 1 Gb 2 Gb 2.6Ghz 30 Gb $10
CC 1 Gb 1 Gb 2Ghz 20 Gb Rp. 185.000

Continue Reading