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:

00:10:21 by fishy - thought - Permanent Link

no comments yet - no trackbacks yet - karma: -10 [+/-]

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:

  1. The "body" tag begins with a "span" tag, which isn't allowed in xhtml. The whole body should be surrounded by a "p" tag.
  2. At the end of every line, there's a "<br>", which should be replaced by "<br />"
  3. Line number was filled with space to be aligned, which should be &nbsp;

Hope the 3 problems will be solved in vim 7.



tags: ,

10:26:06 by fishy - w3c - Permanent Link

3 comments - 1 trackback - karma: -12 [+/-]

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: , ,

23:39:32 by fishy - linux - Permanent Link

no comments yet - no trackbacks yet - karma: 21 [+/-]

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:

  1. Text chat, of course
  2. Gtalk support
  3. Good transports support
  4. Other services support (JUD, conference, etc.)
  5. Message history with offline reading and/or exporting to memo
  6. i18n support
  7. Multi accounts at the same time
  8. SSL support
  9. Background running
  10. Customizable status message
  11. Smileys support, if possible
  12. Avater support, if possible


tags: , , ,

22:54:29 by fishy - thought - Permanent Link

1 comment - no trackbacks yet - karma: 1 [+/-]

A blog about open source, patches, thoughts and geeks