The Problem

Build a two-column responsive page that had a fixed-width right column. It actually sounds easier than you think. That fixed-width right column throws a wrench into everything.

For this example, let’s go with a fluid left column and a 320px wide right column.

HTML

<div class="main">
<div class="leftwrapper">
<div class="left">

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent elit dolor, congue vitae turpis in, blandit dictum magna. Praesent sollicitudin dictum libero. Aliquam tempor elit quis metus egestas, vel adipiscing nibh pulvinar. Aenean quis venenatis massa, at interdum est. Praesent iaculis mi lacus, quis auctor purus placerat vel. Cras sed commodo velit. Aenean ac aliquam purus, vitae rhoncus justo. Proin mollis facilisis sapien, id consequat purus imperdiet eu. Donec posuere, arcu a facilisis ultrices, nibh nisi convallis ante, et sollicitudin metus ante vel felis. Curabitur sagittis, dolor malesuada adipiscing pulvinar, velit risus elementum augue, non tempor lectus mi sit amet ipsum. Aliquam mollis semper ultrices. Sed eleifend tempus dui nec venenatis. Maecenas faucibus turpis leo, nec facilisis sapien mattis non. Donec in elit vitae enim interdum auctor nec id dui. Vivamus sed odio diam. Cras pretium dolor ac neque iaculis eleifend.

</div>
</div>
<div class="right">

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent elit dolor, congue vitae turpis in, blandit dictum magna. Praesent sollicitudin dictum libero. Aliquam tempor elit quis metus egestas, vel adipiscing nibh pulvinar. Aenean quis venenatis massa, at interdum est. Praesent iaculis mi lacus, quis auctor purus placerat vel. Cras sed commodo velit. Aenean ac aliquam purus, vitae rhoncus justo.

</div>
</div>

Read more »

I’m still new to the whole cast iron skillet thing. I like how versatile it is. This isn’t much of a recipe more than a procedure.

Ingredients

  • 2-4 Pork Chops, bone or no bone, roughly 1-inch thick
  • Olive Oil
  • Salt & Pepper
Read more »

i love making fried rice for the week… it’s super easy and cheap

ingredients

  • 5 cups cooked white rice
  • 2-3 cloves garlic, minced
  • 1/2 yellow onion, chopped
  • 1 package bacon, chopped into squares
  • 1 bag frozen vegetables
  • 4 eggs
  • reduced sodium soy sauce
  • salt & pepper
Read more »

Had the honor of taking photos of my niece for her one month anniversary. I’ve never done a “new baby” photoshoot before, but I took it as a challenge. I knew what type of shots I wanted to do — and what shots I didn’t want to do (eg Sofia in a hallowed-out watermelon a la Anne Geddes… blech).

The challenge was in post-production. I’m in love with the film look that many photographers are mimicking. It softens the photo and adds a lot more character to the subject. It took many hours to get what I wanted… and I don’t think it’s fully there… but it’s close. I can’t wait to do more photoshoots like this to get more practice at post-production.

There are some tutorials out there similar to this, but WordPress has since updated their media uploader, making those tutorials obselete. This code is essentially a combination of the best ones I’ve found

Javascript

first, you’ll want to save this code into a .js file, say “uploader.js
Read more »

i’m not getting a ps4. i’m quite content with my ps3 — except for when either it overheats or the controllers decide to randomly push buttons for me when i’m playing a game.

not cool at all. especially when i’m on a breakaway down the pitch and my player decides to boot it into the stands sitting in the sideline (fifa)

this has happened to me before… it’s quite annoying. i used to think that it may have been interference effing with the connection from controller to ps3… but apparently it’s the contacts within the controller itself

to the youtubes! i found this great video tutorial, discussing the problem and also the solution. all i really needed was electrical tape and a jeweler’s screwdriver

Read more »

this is geoff’s recipe for chili — it’s damn good. make it.

Ingredients

  • 2-3 cloves chopped garlic
  • 1 lbs. turkey or other red meat
  • 16 oz pinto beans (drained)
  • 16 oz kidney beans (drained)
  • 32 oz chili beans
  • 32 oz crushed tomatoes
  • salt, pepper, cayenne pepper
  • 1 can or bottle of beer: guinness or newcastle
  • if you don’t have fresh spices like cumin and some of the others you can grab a regular chili seasoning packet
Read more »

so i’ve been using this wordpress plugin that will help your site become multilingual called qTranslate. it’s awesome. it allows you to add different translations for menus, posts, pages, widgets, etc with a little bit of effort (of course, every project is different, some php coding may be required). here’s a fairly quick startup guide

the thing is, we only need the plugin for a set of pages and that’s it… not the most ideal solution, but it’s working… or was

i found a random issue that no amount of googling could resolve… every page that didn’t require translation would display fine except for the below snippet of code

essentially, the code was using “get_posts” to display a page within a page (almost inception-like)

Read more »

so i’ve been running into a nagging issue with wordpress’ new instance of its media uploader (released in v3.5)

if i had a meta box with an image uploader, it would conflict with the standard “Add Media” button for the editor

previous code

uploader.js

jQuery(document).ready(function() {
var form_field;
jQuery('.button-upload').click(function() {
form_field = '#' + jQuery(this).next('input').attr('id');
tb_show('', 'media-upload.php?type=image&amp;TB_iframe=true');
return false;
});

window.send_to_editor = function(html) {
imgurl = jQuery('img',html).attr('src');
if(!imgurl){
imgurl = jQuery(html).attr('src');
}
if (jQuery(form_field).length > 0) {
jQuery(form_field).val(imgurl);
}
tb_remove();
}
});

Read more »