Hi rubists,
for my web projects I need gzip to compress the data before sending it to
the browser.
How can I do this?
And dear ruby folks,
this is why PHP is unfortunately in advantage over ruby: It has many built
in libs
btw: is there any good tutorial on how to make my own C bindings? Yes, I’m
C newbie…
bye!
Dominik
George5
(George)
9 May 2003 08:50
2
Hi rubists,
for my web projects I need gzip to compress the data before sending it to
the browser.
How can I do this?
It's usually implemented by the webserver itself.
See Apache's documentation for mod_deflate (Apache 2.x) or mod_gzip (1.3).
And dear ruby folks,
this is why PHP is unfortunately in advantage over ruby: It has many built
in libs
btw: is there any good tutorial on how to make my own C bindings? Yes, I'm
C newbie..
The whole Programming Ruby book is online. Here's the chapter about
Extending Ruby:
http://www.rubycentral.com/book/ext_ruby.html
Regards,
Michael
···
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.
···
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
Thank you all for your comments!!
I overlooked the zlib on RAA, many thanks!
Dominik