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.
Web Development
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
Recently I needed to use Google Maps JavaScript API Places Autocomplete widget in my project. 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
Recently I needed to migrate 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.
How to increase print quality of PDF file with PDF.js viewer
PDF.js is a great plug-in to display PDF files in the browser. However by default PDF.js uses 150 DPI print resolution which sometimes results in fuzzy and blurry images and text.
jQuery DataTables: COLSPAN in table body TBODY
Officially jQuery DataTables doesn’t support COLSPAN
or ROWSPAN
attributes for a cell in table body. I already wrote how to use ROWSPAN attribute with jQuery DataTables. Today I am going to demonstrate a trick to use COLSPAN
attribute for HTML and Ajax sourced data.