Back in 2015 I posted an answer on Stack Overflow to the problem of searching and ordering by text or select inputs in a table powered by DataTables. One of the recent comments prompted me to update my answer and post it here.
Web Development
jQuery DataTables: Card view
There is an interesting thread on DataTables.net forum demonstrating ability to present table rows as cards.
Updating Amazon RDS SSL/TLS Certificates for Laravel application on CentOS
On October 9 Amazon sent out email to all customers with Amazon RDS instances titled “Update Your Amazon RDS SSL/TLS Certificates by October 31, 2019”. However the title is a bit misleading because the actual deadline is March 5, 2020.
Predefined options for Select2 control using remote data source
Recently I needed to have a control powered by Select2 plug-in using remote data source and give user a list of predefined suggestions. There is no built-in support for that but gladly there is a workaround.
Google Maps JavaScript API Tips
In one of the projects I needed to use Google Maps JavaScript API Places Autocomplete widget. Although I have used it before, I discovered a few gotchas while setting up a Google Cloud Platform account.
Vote Gyrocode for the best web designer in Bucks Happening 2019
It is that time of year again, when Bucks Happening opens the voting for the best web designer in Bucks County, PA.
How to emulate register_globals directive and session_register()/session_unregister() functions
I am working on migrating legacy PHP application from PHP 5.2 to at least PHP 5.6. It is 50K+ lines application that heavily relies on enabled register_globals
directive and session_register()
/session_unregister()
functions. This functionality has been deprecated as of PHP 5.3.0 and removed as of PHP 5.4.0. I will demonstrate how to emulate register_globals
directive and session_register()
/session_unregister()
functions in PHP 5.6 or later.
jQuery DataTables: How to show loading indicator during table reload
There are some tricks to show loading indicator when retrieving data via Ajax request using jQuery DataTables.
How to format Laravel Blade templates in Visual Studio Code
Visual Studio Code is a wonderful editor and recently became my primary web development tool. I am developing using Laravel framework and there are many good extensions for Laravel and PHP in general. I configured PHP CS Fixer as my PHP formatter and Beautify as SASS/CSS, JavaScript and HTML formatter.
The only missing part was formatting Blade templates.
PHP: urlencode() vs. rawurlencode()
Difference between urlencode() and rawurlencode() PHP functions is not explained clearly in the official documentation. A few times I found myself looking it up online and decided to document it for future reference.