|  About Me  |  Blogs  |  Photos  |  Publications  |  Resume  | 

Archive for December, 2005

WPG2 settings for gallery on another vhost

Tuesday, December 20th, 2005

I installed the WordPress Gallery2 plugin for my other blog. The default installation does not quite work for me since my gallery is accessed via a different vhost even though they’re both on the same machine, i.e., http://blog.ibao.net/notes points to /var/www/ibao.net/blog/notes and http://gallery.ibao.net points to /var/www/ibao.net/gallery.

To get around it I specified the “Embedded Path prefix” [...]

My del.icio.us tag & linkrolls

Sunday, December 18th, 2005

Add the following script to include del.icio.us linkroll to a webpage:

<script type=”text/javascript” src=”http://del.icio.us/feeds/js/anniec?count=10;title=my%20del.icio.us”></script>
<noscript><a href=”http://del.icio.us/anniec”>my del.icio.us</a></noscript>

and tags:

<script type=”text/javascript” src=”http://del.icio.us/feeds/js/tags/anniec?count=20;size=12-35;color=66ff33-006633;title=my%20del.icio.us%20tags”></script>

Gmail Mobile

Friday, December 16th, 2005

When I read that Google has opened up access to Gmail for mobile phones I was eager to give it a try. I opened up the default browser in my Sony Ericsson k700i phone and entered http://m.gmail.com. The page loaded fine, logged in, but it says I need to enable cookies on this browser… [...]

WordPress 1.5 hack to search custom field values

Wednesday, December 14th, 2005

I previously installed the RustAside & RustLinkOff plugins to add sidenotes and links to my blog enty. Got it to work beautifully except that the content is not searchable. I found this Search Meta Hack that makes search queries look at custom field values in addition to post content. The patch didn’t apply cleanly so [...]

Start Thunderbird with Calendar

Tuesday, December 13th, 2005

You can specify thunderbird to open the sunbird calendar window on startup by running the following command:

/usr/bin/thunderbird -mail -calendar

Let <pre> blocks scroll

Tuesday, December 13th, 2005

By default, if the content of the pre block is too long it overflows and clashes with the neighbouring content. Luckily this could be fixed with the overflow attribute in CSS. If we set it to auto it would show a scroll bar when necessary. Here’s a demo:

style=”overflow:visible” // default

style=”overflow:auto” // scrolls