Read MySQL database with PHP – php-pdo

Install LAMP web development stack, and write a simple PHP program to read MySQL database.

Posted in Uncategorized | 2 Comments

Ubuntu 16.04 Xenial Guest on Vagrant – vagrant init bento/ubuntu-16.04

Vagrant can install a virtual guest system in two minutes. Vagrant also configures guest SSH server automatically. To use latest Ubuntu 16.04 LTS Xenial, you should use box bento/ubuntu-16.04. $ vagrant init bento/ubuntu-16.04 $ vagrant up $ vagrant ssh That’s … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Comments Off on Ubuntu 16.04 Xenial Guest on Vagrant – vagrant init bento/ubuntu-16.04

Instant Firewall – sudo ufw enable

Firewall prevents access to all ports, except the ones you allow. Ubuntu ‘ufw’ command makes it easy to set up a firewall on Ubuntu. It only takes two commands to set up a firewall: $ sudo ufw allow 22/tcp $ … Continue reading

Posted in Uncategorized | Tagged , , , , | Comments Off on Instant Firewall – sudo ufw enable

Simple Line Graph with Plotly.js

Draw a simple line graph with Plotly.js. With Plotly, drawing a line graph is just a single line of code.

Posted in Uncategorized | Tagged , , , , , , | Comments Off on Simple Line Graph with Plotly.js