On the HTML 5 “data” attribute
This attribute can not only contain text values, but any arbitrary JavaScript value, including arrays and objects. This is extremely useful for scoping and e...
This attribute can not only contain text values, but any arbitrary JavaScript value, including arrays and objects. This is extremely useful for scoping and e...
By default, jQuery selectors operate on all items in the DOM. There is an overloaded search function, however, that allows the creation of selectors based on...
I recently read Head First Design Patterns, and they had a handy set of Object-Oriented design principles that were repeated throughout the book that I wante...
If you’re in a position where you need to construct HTML entities using jQuery, and you want it to be readable, you can make use of arrays to do this. For ex...
I wanted a Bash alias that would output the time remaining until the next Eastbound train at the stop near my apartment. I created a Python class to get this...
For Chrome extension development, if you need to reference an image or other asset for your Chrome extension in CSS that’s stored in the extension folder, ju...
“Don’t ever make the mistake [of thinking] that you can design something better than what you get from ruthless massively parallel trial-and-error with a fee...
An immutable object is one whose state or data cannot change after construction. Common immutable objects from the JDK include Strings and Integers.
One of my coworkers recently discovered a trick to remove fisheye distortion on GoPro images using ImageMagick. This command does the trick:
From the Java API Docs: