5 posts found

The War On Waste - or Why I Focus On Libraries

Skip this if you're not in a philosophical mood. It's a 1000-word soliloquy about personal goals and regrets. Also, despite the next section, I am pro-Microsoft. My personal goal is to make developers happier and more effective on whichever platform(s) allow me to do so.

Read more...

Reading max-width, cross-browser

There are 5 basic ways to access max-width element.currentStyle["max-width"] (IE 6, 9, 10) element.currentStyle.maxWidth (IE 7, 8, 9, 10 & Opera only) window.getComputedStyle(element,null)["max-width"] (IE 9, 10, Chrome & Webkit) window.getComputedStyle(element,null).maxWidth (IE 9, 10, Firefox, Opera, Chrome & Webkit) window.getComputedStyle(element,null).getPropertyValue("max-width") (IE 9, 10, Firefox, Opera, Chrome & Webkit) Test results All BrowserStack browsers were tested for all methods.

Read more...

The Pixel Density Explosion

Back in mid-2012, we didn't have that many unique pixel density values; just 1, 1.5, 2, and 2.25, plus variations based on zoom size. Since then, we've had an explosion of devices with high-resolution displays (adding 1.75, 2.5, 3, etc) and this continues to grow.

Read more...

Why don't we have CSS 'image-fit' yet?

When both width and height are specified for an image, the standard behavior is to stretch the image to fit the new aspect ratio. I'm highly curious if image distortion has ever been a useful behavior pattern.

Read more...

Setting up a new rMBP for Ruby development

I've had the same filesystem for roughly 7 years, copying it across 4 hard drives and 2 laptops, and installing 4 new OS versions along the way without a clean install. Both my Mid 2012 17" MBP and my new 15" rMBP have 512GB SDD drives, but according to BlackMagic, the rMBP is 2-4x faster on both reads and writes.

Read more...