Wednesday, November 22, 2017

Provide social network meta tags for website

In order to provide better SEO for the web, you might need to put following meta tags into head part of your websites. The first...
Timer in Java

Execute a task repeatedly in Java using Timer

In order to execute a task repeatedly in Java, you can try to use java.util.Timer class. This is the description of official documentation saying...
MySQL Database

Retrieve all tables having specified columns in MySQL

Just a simple trick to retrieve all tables in database that have columns with specified names. SELECT DISTINCT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS ...
nginx HTTP Web Server

Serve multiple websites in local development with nginx

To enable serving multiple websites in local development with nginx, you will need to config to assign each website with a specific port. Assuming, we...
nginx HTTP Web Server

Config static IP address for local web development in nginx

Often, nginx is used to serve websites for public via domain names, which is configurable via server_name option in config file. What if you want...
Laravel Framework

Handle 404 response in Laravel

Laravel framework provides various ways to handle 404 responses for web application. Prior to Laravel 5.5.10, in order to catch 404 error, we can detect...
Google Puppeteer

Take website screenshot with Google Puppeteer

With the support of headless in Chrome, developers now can perform automation tasks much easier, and that includes taking screenshot for a web page...
PHP Programming Language

Transfer file to remote server through SSH using PHP

PHP is a really good scripting language to do some handy tasks, in this case, to transfer files to remote servers via SSH. In order...

Export and package git project

Here some tips on exporting a Git project. The command we will use is `git-archive`. To export all files in a branch and packaging as...
Laravel Framework

Force HTTP or HTTPS scheme on Laravel automatically

In Laravel, when you want to load assets on different schemes like HTTP or HTTPS, you have to use asset() or secure_asset() helpers to load...

Follow Me