Upgrading Drupal and Internal Server Error 500

So you haven’t worked on a client’s Drupal site in over a year and they are way overdue for a core update and plugin updates. You upload the core updates and blamo – site throws  Internal Server Error 500. Easy, easy fix – if you overwrite the .htaccess file don’t forget .htaccess  has one little Read more…

WordPress Rotated Media Files on Upload

Having a nice camera has led me to not use my iPhone for photos but recently I have been using the iPhone  more and more for those quick pics I don’t want to bust out the old DLSR for. Unfortunately no one tells you that the iPhone has its own JPG markup that will actually Read more…

Adding a post category class to the body tag in WordPress

I always forget how to add classes to the body tag in WordPress. You can use this code for generating any kind of class. Just replace the foreach statement with the variable you want to pull from the page. add_filter(‘body_class’,’add_category_to_single’); function add_category_to_single($classes) { if (is_single() ) { global $post; foreach((get_the_category($post->ID)) as $category) { // add Read more…

Programmers: Stop calling yourself engineers

Interesting article in The Atlantic about how software engineers aren’t really engineers. I wholly agree. I would  consider myself a developer yes, but engineer no. I would say in my 15 plus years in this “industry” the QA side alone would disqualify software, web development or app development from being considered a piece of engineering. Read more…

Create responsive embedded videos

Was trying to figure out how to get a YouTube video to be responsive and came across this handy tidbit. Here’s your YouTube code: <iframe src=”//www.youtube.com/embed/4_i5LEfkNig” height=”360″ width=”640″ allowfullscreen=”” frameborder=”0″></iframe> Strip out all the attributes in the YouTube iframe and wrap the whole thing with a div. Add a class to the div. <div class=”responsive-container”> Read more…

Problems with jQuery in child themes

jQuery by default is loaded in WordPress in noconflict mode. Sometimes in your child theme the jQuery library will mysteriously not load – especially in single post pages and throw errors from your own loaded scripts saying that jQuery is not defined. The best way to solve this problem is to load jQuery from your Read more…

After you have typed in some text, hit ENTER to start searching...