A web developer's blog. PHP, MySQL, CakePHP, Zend Framework, Wordpress, Code Igniter, Django, Python, CSS, Javascript, jQuery, Knockout.js, and other web development topics.

Monthly Archives: December 2011

Ruby on Rails: execjs Javascript runtime error when executing “rails server”

My schedule right now is not very tight and I have a couple of hours free almost everyday. So instead of playing Skyrim, I am learning Ruby on Rails. I am using RVM (http://beginrescueend.com/) on Ubuntu Ubuntu 10.04 LTS (Lucid … Continue reading

Posted in Uncategorized | 4 Comments

WordPress: Get post thumbnail of Featured Image

Note: I’m posting this for myself so that I can refer to it in the future. $cat_id =get_cat_id(’Uncategorized’); $query = new WP_Query(’cat=’.$cat_id.’&year=’.$year.’&monthnum=’.$month.’&day=’.$day); $image = false; while ( $query->have_posts() ) { $query->the_post(); the_title(); $image = wp_get_attachment_image_src(get_post_thumbnail_id($query->ID)); echo ‘<a href="’.$image[0].’">’; } More … Continue reading

Posted in Uncategorized | Leave a comment

Responsive Barebones (Skeletal) WordPress Theme

Using Skeleton (http://www.getskeleton.com), I managed to come up with a “minimized” WordPress theme. What is Skeleton? Skeleton is a small collection of CSS & JS files that can help you rapidly develop sites that look beautiful at any size, be … Continue reading

Posted in Uncategorized | Leave a comment