« February 2005 | Main | April 2005 »

March 2005

March 09, 2005

Annotations in Ruby

Aslak Hellesoy's uncommon sense - Annotations in Ruby: "It took the Java community forever to do stuff like this. First a couple of years of XDoclet, then JSR175. And tons of code too. In Ruby it's 1 hour's work and 25 lines of code. Go figure."

March 02, 2005

Code as Design: Three Essays by Jack W. Reeves

developer.* - Code as Design: Three Essays by Jack W. Reeves: "Code as Design: Three Essays by Jack W. Reeves"

March 01, 2005

On Skype and Telephone Companies

Globes [online] - Cidav zooms 129.9% on Skype router news: "'It is already possible to send e-mails and video files at no cost. Only for conversations do the government and telephony companies still try impose restrictions, so they can collect money from the public. Skype proves that this battle has already been decided. Almost all the traditional telephony companies will disappear within a few years.'"

Building tidylib.so

It took a lot of time (i.e. more than 10 sec... `I wasn't feeling lucky`!) to find how to build libtidy.so (aka tidylib.so) -- HTML Tidy as a shared Linux library. Code from CVS builds only static library (libtidy.a).

Here is the script extracted from
SourceForge Forum

Building shared library for tidy:

for FN in src/*.c
do
libtool gcc -I ./include/ -g -O -c $FN
done

libtool gcc -g -O -o libtidy.la *.lo -rpath /usr/local/lib -lm

# This part requires root access...

libtool install -c libtidy.la /usr/local/lib/libtidy.la

[ -d /usr/local/include/tidy ] || mkdir /usr/local/include/tidy

cp include/*.h /usr/local/include/tidy/

ldconfig

Now you can install tidy Gem and use HTML Tidy in Ruby on Linux. Windows DLL files can be found at http://dev.int64.org/tidy.html