Eliminating white space

For reasons that have now become obsolete, I had a background image carved into several pieces that needed reassembling. In fact, I had two versions, shown (not to scale) below. The first was easy to assemble: three divs corresponding to rows, the middle of which held three more divs. The divs of the middle row […]

Math and natural language

I had the good fortune as an undergraduate to have a “bridge class” in my math curriculum. We learned basic logic, set manipulation, formal functions and relations, proof structure and induction. In that class our instructor had us read an article by Reuben Hirsch called “Math Lingo vs. Plain English: Double Entendre” (published in the […]

Images, centering, and responsiveness

One of my first projects was to make a front page for a website, the sort of thing with an “Enter Site” link on it. It is mostly images, and I learned a lot about manipulating images in setting the page up and making it responsive. All of the following require setting a position attribute. […]

JavaScript nodelist hazards

If you grab a bunch of elements from your webpage with document.getElementsByClassName though the console may tell you the elements inhabit an array, they are actually in a NodeList. You can interact with a NodeList very similarly to an array, but unlike an array a NodeList is live-updated. This difference will probably only matter if […]

Joomla and image attributes

Joomla’s editor will strip out any HTML attributes it doesn’t know, which includes usemap. To add that or another unknown image attribute to the allowed list, open /plugins/editors/tinymce/tinymce.php and find if ($advimg) Add |usemap to the collection of |-separated attributes after $elements We also set the editor on Joomla to “extended” functionality, but I don’t […]

Useful web-bits

This spring I started a new venture: professional web development. It is currently far more learning than doing, and I anticipate that being the case for a while. For my own future reference and perhaps to help others I’m going to publicly log the bits and pieces of information I’ve had to track down to […]