La Vita è Bella
Tuesday, December 27, 2005
Why we should use open source
The project I'm working on used a 3rd party component, and it's not open source.
QA had found a defect today: in some case my program will hang for a long time. So I added many debug log into the position that may hang, but didn't find the defect.
So I can only add debug log between nearly every statements, and finally, I've found the hung statement: a function to dump some data onto hard disc, from the 3rd party component.
Sometimes, this statement will hang for 5 minutes (no more, no less, just 5 minutes), and then return SUCCESS.
I don't know why it hangs, there's enough spaces, and it has the privilege to write. It seems that 5 minutes is a time-out, but after 5 minutes, it return SUCCESS!
If I have the source of the 3rd party component, maybe I can fix it. But now, I can only leave this defect there, to wait the stupid 5 minutes.
We need open source, seriously.
tags: opensource
00:10:21 by fishy - thought - Permanent Link
no comments yet - no trackbacks yet - karma: -5 [+/-]
Wednesday, December 14, 2005
3 problems in vim's ":TOhtml" feature
":TOhtml" is a great feature in vim. With it, we can generate syntax highlighted html for our code.
Set the following settings will make the generated html code more standard:
let html_use_css = 1
let html_no_pre = 1
But there're still 3 problems:
- The "body" tag begins with a "span" tag, which isn't allowed in xhtml. The whole body should be surrounded by a "p" tag.
- At the end of every line, there's a "<br>", which should be replaced by "<br />"
- Line number was filled with space to be aligned, which should be
Hope the 3 problems will be solved in vim 7.
tags: vim, html
10:26:06 by fishy - w3c - Permanent Link
3 comments - 1 trackback - karma: -13 [+/-]
Tuesday, December 13, 2005
Backup script for Palm
Here's my backup script for my Treo 650, it can keep 1 weeks backup archives:
1 #!/bin/sh
2
3 cd ~/palm
4 pilot-xfer -s backup
5 ARCNAME=backup-`LC_ALL=C date +%Y%m%d-%a`.tar.bz2
6 rm -f backup*`LC_ALL=C date +%a`*.tar.bz2
7 tar jcfv ${ARCNAME} backup/
8
tags: linux, backup, palm
23:39:32 by fishy - linux - Permanent Link
no comments yet - no trackbacks yet - karma: 32 [+/-]
Tuesday, December 13, 2005
Proposol for Thishit
I've bought a Treo 650 half a month ago (photo), but there's no free good-to-use Jabber clients (Chatopus is more or less good, but not perfect, and it's a shareware with $16.95). So I think maybe I can develop a open-source Jabber client for PalmOS.
I'll call it "Thishit" :) , and planning to implement the following features:
- Text chat, of course
- Gtalk support
- Good transports support
- Other services support (JUD, conference, etc.)
- Message history with offline reading and/or exporting to memo
- i18n support
- Multi accounts at the same time
- SSL support
- Background running
- Customizable status message
- Smileys support, if possible
- Avater support, if possible
tags: palm, palmos, jabber, thishit
22:54:29 by fishy - thought - Permanent Link
1 comment - no trackbacks yet - karma: 3 [+/-]


