Archive for posts by Steven Vachon”
This plugin allows you to create internal
<a> links within your content that will not break when things get renamed or moved. While there are similar plugins available, they do not offer important SEO options.
You can add any HTML attribute to your link as long as it’s prefixed with “attr_”. And because it supports attributes that may not currently exist, it is future proof. Read more
Wrecker is a dynamic layout plugin for jQuery that achieves equal-height rows in a grid layout. Similar to a
float layout in that excess “cells” are moved to the following “row”. However, unlike, in that columns line up vertically and the cells of each row are equal in height based on their contents, just like a
<table>. No static heights required. Read more
When working with a
display:table layout, getting some nice space between each cell can be a real pain. Resorting to hacks like
padding or a transparent
border sometimes work, but not if you need a visible border or
box-shadow. Read more
Apparently, I have a computer job.
Sitting at the desk all day takes its toll on your shoulders and eventually your health, so I decided to purchase an elevating, or “height-adjustable” desk. Exercise aside, I am now healthier, always comfortable and get more work done in less time as I require fewer body breaks.
There was a downside to this, however: the cables! Read more
If you’re wondering which of these two popular techniques for removing array indexes is fastest, this should be of some help. Read more
Beautifying parts of your work is never a bad idea. I just wish that I could remember where I got this idea because it really is a neat one. Read more
When looping through an array in reverse and wondering which was faster while finding nothing on Google, I put this benchmark together. Read more
I was writing some code that generated a string from an array and came across a pretty rare situation where I could either get the length of that array or the length of the assembled string. Wondering which was faster and finding nothing on Google, I put this benchmark together. Read more
I couldn’t find a simple, straight-forward example of this stuff. Facebook’s documentation
isn’t wasn’t extremely clear either. Read more
I’d been looking around for the best solution for this and most of what I had found either performed poorly or wasn’t quite random enough. Not so strangely in the end, the best solution was the most basic. Read more