On Fri, May 09, 2003 at 05:25:31PM +0900, Dominik Werder wrote:
> for my web projects I need gzip to compress the data before sending it to 
> the browser.
> How can I do this?

(1) use the zlib library (look in raa.ruby-lang.org)
(2) open a bi-directional pipe to the gzip program and pass your data
    through; see http://www.ruby-talk.org/69871

> btw: is there any good tutorial on how to make my own C bindings? Yes, I'm 
> C newbie..

The "Pickaxe" book, IMO the definitive guide to Ruby (version 1.6 anyway),
has a good introductory chapter on this topic:
http://www.rubycentral.com/book/ext_ruby.html

Regards,

Brian.