I Dream in Colors

Hi, I'm Nico :)

08/28/07 My personal DNA

C.C. Chapman and Bob Goyetche posted the results of this tests on their blogs, so I thought I’d give it a try.

I think the results are quite close. I wonder if anyone else who knows me would think they reflect me too.


And here are the detailed results.

08/27/07 GoogleMail?

GoogleMail

That’s what my Gmail says now instead of, well, “Gmail”. I asked people on twitter a bit ago and from the responses I got it sounded like it’s just me who’s seeing this. Did Gmail change to GoogleMail in Argentina or it’s now GoogleMail in other countries too? There is a gmail.com.ar, maybe it has something to do with it?

Go figure.

Technorati Tags: , ,

08/21/07 Recent posts on Wordpress

One of the best Recent Posts plugins for Wordpress out there is the Coffe2Code Customizable Post Listings. In fact, it does much more. “Display Recent Posts, Recently Commented Posts, Recently Modified Posts, Random Posts, and other post listings…”. Neat.

But, since Wordpress 2.1, there’s a slight problem with it. You see, WP 2.1 changed the way Pages work, so this nifty plugin now fails to tell the difference between posts and Pages. It may not be too much of a problem in some cases, but in this particular site I’m currently working on it gets in the way. Fortunately, there’s an easy fix.

All that needs to be added is this little snippet of code that tells the plugin to only process the posts and not the Pages: post_type=’post’. One doesn’t need to know PHP to do this (I don’t…). Copy and paste will do.

Look for this:


$sql .= “WHERE $tableposts.post_date <= '$now' AND ( $tableposts.post_status = 'publish' ";
if ($include_sticky_posts) $sql .= "OR $tableposts.post_status = 'sticky' ";
$sql .= ")";



and add the bit of code mentioned before, like this:


$sql .= “WHERE $tableposts.post_date <= '$now' AND ( $tableposts.post_status = 'publish' ";
if ($include_sticky_posts) $sql .= "OR $tableposts.post_status = 'sticky' ";
$sql .= ") AND $tableposts.post_type=’post’ “;

Now it works like a charm :).

Unfortunately this pluging hasn’t been updated in a few years, and even the last comment about it on the website is from 2005. At least this will leave them a pingback.

Technorati Tags: , , , ,