It’s a baby girl!

April 22nd, 2005 General Comments Off


We did the routine exam and sonogram today. When the sonographer pointed at the screen and told us “It’s a little girl!“, I was so excited though I still felt confused about the image displayed. :D Though the test is not 100% accurate, most likely I am going to be the father of my beautiful little angel. It’s so sweet, isn’t it?

Here’s the first “photo” of our baby seen by the world. She’s waving her little fist and saying “Hello World!” to us. ;)

What a beautiful day!

Share This

Related Posts

Import from blogware .xml file to WP

April 20th, 2005 Computing No Comments »

UPDATE: I tried it and it works just fine. But need to modify a little to make the GMT offset works.
Details here: http://mosquito.wordpress.org/view.php?id=878

When importing an rss2 feed I discovered all posts dats were set to GMT time and the offset seemed to be ignored. Found that the values were simply being switched. Made the following changed to lined 148-149 in import-rss.php

148: switch variables
DATE_ADD(’$post_date’, INTERVAL ‘$add_hours:$add_minutes’ HOUR_MINUTE)
and
‘$post_date’

149: replace
$post_date
with
DATE_ADD(’$post_date’, INTERVAL ‘$add_hours:$add_minutes’ HOUR_MINUTE)

Quoted from http://wordpress.org/support/topic.php?id=28115.

I just got it to work. There seems to be two problems:

1. The import-rss.php file is looking for a or type of tag.

2. The excerpts that Blogware exports seems to be problematic. The import-rss.php file *seems* to read in the title, date, etc that it wants and then assumes the rest is the actual entry. Not true in Blogware’s case - the excerpt comes before the body.

To solve problem 1:

In the import-rss.php file, find the line that says:

preg_match_all(’|(.*?)|is’, $importdata, $posts);
and change it to:
preg_match_all(’|(.*?)|is’, $importdata, $posts);

To solve problem 2:

Find the line that says:
preg_match(’|(.*?)|is’, $post, $content);
and change to to read:
preg_match(’|(.*?)|is’, $post, $content);

I also changed the line that said:

preg_match(’| (.*?)|is’, $post, $date);
to
preg_match(’| (.*?)|is’, $post, $date);

But I’m not sure that was required.

With respect to point number 1: This will only import your articles. If you have photos, reviews, whatever else, then you will have to manually change the to and then run it again. Then change it to and run it again..and so on until all your different post types are imported.

There is syntax to tell preg_match() to look for Share This

Related Posts

WordPress powered!

April 20th, 2005 Computing 1 Comment »

Accidentally I found out that I ever applied for a free web hosting service at http://100webspace.com/. When I realized they provide PHP and MySQL database support, I was excited and couldn’t wait to try out WordPress, one of the best blogware available. The installation is as easy as a whistle and ten minutes later I set up my first WordPress powered blog. Unfortunately 100webspace puts banner ads on the top of pages they host, so I don’t think I will use it seriously.
If you have a web server with PHP and MySQL installed, why not give it a try?

UPDATE: I just found out http://www.clanshosting.com/ is a better web hosting provider. Hope their deals last long.

UPDATE: Finally I decided to use the FREE service kindly provided by weblogs.us thanks to JD’s help.

Share This

Related Posts

Ten years old ID

April 19th, 2005 Computing Comments Off

My ID gqshen is ten years old today! Ten years ago, I created “gqshen” as my ID on a Sun Sparc 10 workstation shannon.en.polyu.edu.hk and I had my first UNIX account and email address. And since then on, I have been using this same ID everywhere, free email addresses, university ID, personal URI, etc. If you lost me one day, try to Google gqshen and most likely you will catch me at the first couple entries. :)

Share This

Related Posts

Spell the name

April 18th, 2005 Computing Comments Off

Spell the name using random pictures from flickr! Here’s an example.

Share This

Related Posts

  • No related posts


WordPress Theme by Just Skins | Modified by GQSHEN | Hosted by Site5
| 0.276
Copyright © 2005 - 2010 Gradual Quietness. All rights reserved.
Close
E-mail It