window.onbeforeunload trigger ajax request

Initially I was using jQuery.ajax call to send a request to server before user
leave the page.

Read More

Use Google Analytics API with Laravel 5

No doubt that Google is very powerful. I've been researching for

Read More

DataTable re-order rows

In CMS, often the navigation menu is editable in backend, and can change the order.

Read More

Laravel - Integrate oEmbed into TinyMCE

oEmbed is a kind of standard to retrieve 3rd party site info.

Read More

Laravel Eloquent join with subquery

Let's take the query from this post as example

Read More

MySQL - a trick to filter multi-values column

For certain reason, sometime we want to filter the data in a multi-values column.

Read More

Guzzle HTTP client cannot download file with special character

I'm using Guzzle to download image file, the code as below

Read More

TinyMCE insert js/css into iFrame head element

TinyMCE is an iFrame element with full HTML content.

Read More

AWS Lambda test in local machine

I believe many developer first time deal with AWS Lambda will have this question: "How can I test the code in my machines?"

Read More

Python trick - copy file among computers in LAN network

The conventional way of file transfer between PCs, is via thumb drive.

Read More