Jun 192009
 

Testing smilies.

I think I got it fixed – the problem is that “/” is used as delimiter of regular expression, and if “/” is part of a smiley’s pattern, the whole thing is broken.

So I’m defining a delimiter variable in wp-includes/functions.php, in function smilies_init(), and use a character that can never be used (well, sort of) – I’m using “\001” for now. Then replace all occurrences of “/” with $delimiter while composing $wp_smiliessearch, and that’s it.

Only open issue, which I don’t think it is related, is that two continuous #:-s will have only one shows up, still debugging … Continue reading »

Jun 182009
 

It seems to me all major freeways in Bay area are having some kind of construction work, 101, 280, 580, 680, 880.

I hit this problem as last night I was driving from San Francisco to Pleasanton, and finally the real route I took was driving down to south bay and then driving north, ridiclous.

Jun 172009
 

I just got a dictionary for my Black Berry, I guess it’s from NetEase.

Things work pretty smooth, though the dictionary coming with the software is not big enough, sometime it still needs to get online to get answers but as long as it can do that and get me the answer, I’m happy with it.

Jun 152009
 

I’m going to take a vacation in Jul and Aug, for 4 weeks.

Try to be nice to myself, take some rest and enjoy life, or try to.

Jun 142009
 

It seems godaddy supports PHP only so I’m thinking of stop learning Python for now even it has better framework. There are some widely used PHP framework that I can take to deploy to godaddy, which is more convenience.

Currently I’m comparing Zend, CakePHP, and Symfony. I guess I won’t try Zend as it sound like too old, and does not support application generation. People mentioned CakePHP lack os real model support, while Symfony is sort of too complicated to start with.

I will focus on CakePHP and Symfony, I get a feeling that I will stick with CakePHP without any reason, but sure I will do serious research on Symfony as well.

Again, I will post my findings here.

Jun 122009
 

While I was trying to upgrade a friend’s Fedora machine from 10 to 11, I found that the yum got some problems with mirrorlist file, which had been addressed with Fedora/yum guys, but so there there is no fix, just a workaround.

Then yesterday WordPress prompted there is a new version can be upgraded to, so I did … everything went smoothly, automatic upgrade, so fancy, but after upgrade – hold on, all my posts became PHP error message.

Obviously the new 2.8 does not support old smiley well, or at least it changed requirement of the smileys’ pattern. I haven’t found the root cause yet so I don’t know what’s the workaround so far, so I just simply disabled smiley and seems it works fine to me, so far.

I will post here later if I found anything.

Jun 112009
 

I’m trying to study Django more, this needs to get rid of the limitation of running test locally.

I was doing port forwarding and then I thought, “anyway I will try deployment later on, why not just start the trial from now?”

So, I started looking around, of course first thing came to mind is mod_python with apache httpd, but my Ubuntu has lighttpd running already (I have no idea when and why I deployed it), and then I thought, “yea, apache httpd is way too heavy, let me try lighttpd”.

It turned out lighttpd is not perfect in administration though it may get me some performance gain. I have to launch fastcgi by myself, and in a real production environment it means I need to write some monitoring (parent) process to make sure the fastcgi server is running for all the time.

Anyway I make django running on lighttpd, there are some URL mess and I still haven’t figured everything out, it seems django+lighttpd prefer application-per-domain instead of application-per-URI, I will check more to see if it is the case or not.

Jun 102009
 

I got template not found etc error while playing with Django, and obviously my turtorial material is not up to date.

Symptom is described here:

http://sam.bluwiki.com/blog/2008/07/django-error-while-importing-urlconf.php

“If you’re getting it, it’s likely you updated to the latest Django SVN release, and haven’t upgraded your admin site’s configuration.”

and the solution link is on the same page, which, in short, add following lines to urls.py:

from django.contrib import admin
admin.autodiscover()

and uncomment this line:

(r’^admin/(.*)’, admin.site.root),

that’s it …

Jun 092009
 

This is absolutely true as I just saw it – there is a chicken in the middle of highway 680, around Automall blvd … ALIVE.

Obviously this is the reason all cars was driving super slow at that point, the chicken was just sit there, calmly (at least I think it’s calm, or totally scared). Actually we were scared as well ๐Ÿ˜€ .

Jun 082009
 

Downloaded and installed Windows 7 in a VirtualBox VM, the UI is pretty neat, but that’s it, I haven’t found anything else, yet.

Most likely I will leave it there and play with it once another while, but I may not be able to have enough time to do serious evaluation, as I’m not a serious Windows developer or a system administrator :P. I would like to assume all potential development should be based on Windows XP or at most Vista, so to make majority can run it.

By the way, I haven’t figured out what’s the difference between Vista and 7 :D.