Font Awesome gives you scalable vector icons that can instantly be customized — size, color, drop shadow, and anything that can be done with the power of CSS.
Articles pertaining to the writing of code
An interesting gotcha that I stumbled across recently, sending a 404 response code with a download forced by Content-Disposition: attachment will fail but inline content will still be displayed. This behaviour was tested in both Chrome and FireFox. Of course the appropriate response code should always be sent; this 404 response code was being sneaked in by WordPress and led to hours of frustration.… Read the rest
Make no mistake; if you have a web form or comment system on your site, the spambots WILL find you. They will pack the form fields with as much rubbish as they can pump out and try to send it on to you, the site owner.… Read the rest
A rather frustrating bug that I became aware of when generating navigational menus for custom post types using wp_list_pages(). The list entries aren’t decorated with useful classes denoting the current item, the parent item, and ancestor(s). Read about the issue here.… Read the rest
This guide will show you how you might create a gallery layout with “cards” of fixed widths and variable height.
So Yoast’s Google Analytics for WordPress plugin has a somewhat annoying “bug”, or oversight rather , where it rewrites relative link URLS to full URLs, including anchors. For example, <a href="#anchor"> becomes <a href="https://planetjon.ca/blah/#anchor">. There is more information about this on the wordpress forums.… Read the rest
Prioritize Hooks is a WordPress plugin which allows the overriding of the priority of various filters and actions hooked by plugins and themes.
Fully uninstall qTranslate by undoing the content mangling!
A workaround for binding to the intended static scope without using the static:: operator introduced in PHP 5.3
Cutting straight to the point, here’s a quick way with PHP for removing empty values from an array and shifting the indices appropriately. Nothing too fancy but I found it useful at work and figure that I might as well share the tip.… Read the rest
Do you know what happens when you add a KeyListener to JFrame to capture global keystrokes? Nothing. Much to my frustration, I discovered recently that KeyEvents are not bubbled up through the JComponent hierarchy by default. The only component that consumes the event is the one currently focused.… Read the rest
Through the necessity to externalize GUI messages in an application that I have been working on, I have come up with a remarkably simple and clean approach for loading key:value pairs from an external XML file or stream. The Class also transparently allows for String interpolation, should it be required.… Read the rest