[#83328] tcltklib and not init'ing tk — aakhter@... (Aamer Akhter)

Hello,

13 messages 2003/10/01

[#83391] mixing in class methods — "Mark J. Reed" <markjreed@...>

Okay, probably a dumb question, but: is there any way to define

22 messages 2003/10/01
[#83392] Re: mixing in class methods — Ryan Pavlik <rpav@...> 2003/10/01

On Thu, 2 Oct 2003 06:02:32 +0900

[#83397] Re: mixing in class methods — Gavin Sinclair <gsinclair@...> 2003/10/01

On Thursday, October 2, 2003, 7:08:00 AM, Ryan wrote:

[#83399] Re: mixing in class methods — "Mark J. Reed" <markjreed@...> 2003/10/02

On Thu, Oct 02, 2003 at 07:37:25AM +0900, Gavin Sinclair wrote:

[#83404] Re: mixing in class methods — "Gavin Sinclair" <gsinclair@...> 2003/10/02

> On Thu, Oct 02, 2003 at 07:37:25AM +0900, Gavin Sinclair wrote:

[#83416] C or C++? — "Joe Cheng" <code@...>

I'd like to start writing Ruby extensions. Does it make a difference

32 messages 2003/10/02
[#83435] Re: C or C++? — "Aleksei Guzev" <aleksei.guzev@...> 2003/10/02

[#83448] xml in Ruby — paul vudmaska <paul_vudmaska@...> 2003/10/02

The biggest problem i have with Ruby is the sleepness

[#83455] Re: xml in Ruby — Chad Fowler <chad@...> 2003/10/02

On Thu, 2 Oct 2003, paul vudmaska wrote:

[#83464] Re: xml in Ruby or no xml it's just a question — paul vudmaska <paul_vudmaska@...> 2003/10/02

>>--------

[#83470] Re: xml in Ruby — paul vudmaska <paul_vudmaska@...>

>>>

15 messages 2003/10/02

[#83551] xml + ruby — paul vudmaska <paul_vudmaska@...>

>>---------

20 messages 2003/10/03
[#83562] Re: xml + ruby — Austin Ziegler <austin@...> 2003/10/03

On Fri, 3 Oct 2003 16:11:46 +0900, paul vudmaska wrote:

[#83554] hash of hashes — Paul Argentoff <argentoff@...>

Hi all.

18 messages 2003/10/03

[#83675] fox-tool - interactive gui builder for fxruby — henon <user@...>

hi fellows,

15 messages 2003/10/05

[#83730] Re: Enumerable#inject is surprising me... — "Weirich, James" <James.Weirich@...>

> Does it surprise you?

17 messages 2003/10/06
[#83732] Re: Enumerable#inject is surprising me... — nobu.nokada@... 2003/10/07

Hi,

[#83801] Extension Language for a Text Editor — Nikolai Weibull <ruby-talk@...>

OK. So I'm going to write a text editor for my masters' thesis. The

35 messages 2003/10/08
[#83803] Re: Extension Language for a Text Editor — Ryan Pavlik <rpav@...> 2003/10/08

On Thu, 9 Oct 2003 05:06:32 +0900

[#83806] Re: Extension Language for a Text Editor — Nikolai Weibull <ruby-talk@...> 2003/10/08

* Ryan Pavlik <rpav@mephle.com> [Oct, 08 2003 22:30]:

[#83812] Re: Extension Language for a Text Editor — Ryan Pavlik <rpav@...> 2003/10/08

On Thu, 9 Oct 2003 06:09:29 +0900

[#83955] Re: Extension Language for a Text Editor — Nikolai Weibull <ruby-talk@...> 2003/10/09

* Ryan Pavlik <rpav@mephle.com> [Oct, 09 2003 09:10]:

[#84169] General Ruby Programming questions — Simon Kitching <simon@...>

21 messages 2003/10/15
[#84170] Re: General Ruby Programming questions — Florian Gross <flgr@...> 2003/10/15

Simon Kitching wrote:

[#84172] Re: General Ruby Programming questions — Simon Kitching <simon@...> 2003/10/15

Hi Florian..

[#84331] Re: Email Harvesting — Greg Vaughn <gvaughn@...>

Ryan Dlugosz said:

17 messages 2003/10/21
[#84335] Re: Email Harvesting — Hugh Sasse Staff Elec Eng <hgs@...> 2003/10/21

On Wed, 22 Oct 2003, Greg Vaughn wrote:

[#84343] Re: Email Harvesting — Ruben Vandeginste <Ruben.Vandeginste@...> 2003/10/22

On Wed, 22 Oct 2003 08:35:32 +0900, Hugh Sasse Staff Elec Eng

[#84341] Ruby-oriented Linux distro? — Hal Fulton <hal9000@...>

There's been some talk of something like this in the past.

15 messages 2003/10/22
[#84348] Re: Ruby-oriented Linux distro? — Gavin Sinclair <gsinclair@...> 2003/10/22

On Wednesday, October 22, 2003, 6:01:16 PM, Hal wrote:

[#84351] Re: Ruby-oriented Linux distro? — Andrew Walrond <andrew@...> 2003/10/22

On Wednesday 22 Oct 2003 11:02 am, Gavin Sinclair wrote:

[#84420] Struggling with variable arguments to block — "Gavin Sinclair" <gsinclair@...>

Hi -talk,

18 messages 2003/10/24
[#84428] Re: Struggling with variable arguments to block — matz@... (Yukihiro Matsumoto) 2003/10/24

Hi,

[#84604] ruby-dev summary 21637-21729 — Takaaki Tateishi <ttate@...>

Hello,

21 messages 2003/10/30
[#84787] Re: ruby-dev summary 21637-21729 — Paul Brannan <pbrannan@...> 2003/11/06

On Fri, Oct 31, 2003 at 07:01:28AM +0900, Takaaki Tateishi wrote:

[#84789] Re: ruby-dev summary 21637-21729 — matz@... (Yukihiro Matsumoto) 2003/11/06

Hi,

[#84792] Re: ruby-dev summary 21637-21729 — Paul Brannan <pbrannan@...> 2003/11/06

On Thu, Nov 06, 2003 at 11:17:59PM +0900, Yukihiro Matsumoto wrote:

[#84794] Re: ruby-dev summary 21637-21729 — matz@... (Yukihiro Matsumoto) 2003/11/06

Hi,

Re: Rublog Problems

From: Brian McCallister <mccallister@...>
Date: 2003-10-30 19:09:30 UTC
List: ruby-talk #84600

The full patch:
-----------------------------------

--- Request.rb  Thu Oct 30 10:54:00 2003
+++ ../foo/rublog-0.8.0/Request.rb      Thu Mar 20 21:45:28 2003
@@ -147,9 +147,8 @@
      request_path = ""
      path = @environment['PATH_INFO']
      if path && path !~ /\.\./
-      foo = String.new(path)
-      foo.slice!(0) if foo[0] == ?/
-      request_path = foo unless path.empty?
+      path.slice!(0) if path[0] == ?/
+      request_path = path unless path.empty?
      end

      @is_rss = request_path.sub!(/index.rss$/, '') || 
@parameters.has_key?('rss')
@@ -242,7 +241,7 @@
        @cgi = cgi
      end
      def [](key)
-      @cgi.params[key][0]
+      @cgi[key][0]
      end
      def has_key?(key)
        @cgi.has_key?(key)

---------------------------------------------------
also fixes a recurring error message in the http log:

./Request.rb:245:in `[]':CAUTION! cgi['key'] == cgi.params['key'][0]; 
if want Array, use cgi.params['key'], referer: 
http://kasparov.skife.org/rublog-0.8.0/rublog.cgi/

-Brian

On Thursday, October 30, 2003, at 01:49 PM, Brian McCallister wrote:

>
>
> Entertainingly enough, the frozen string was it, the following patch
> solved the problem:
>
> --- Request.rb  Thu Mar 20 21:45:28 2003
> +++ ../../rublog-0.8.0/Request.rb       Thu Oct 30 10:45:46 2003
> @@ -147,8 +147,9 @@
>       request_path = ""
>       path = @environment['PATH_INFO']
>       if path && path !~ /\.\./
> -      path.slice!(0) if path[0] == ?/
> -      request_path = path unless path.empty?
> +      foo = String.new(path)
> +      foo.slice!(0) if foo[0] == ?/
> +      request_path = foo unless path.empty?
>       end
>
>       @is_rss = request_path.sub!(/index.rss$/, '') ||
> @parameters.has_key?('rss')
>
> Now, to figure out how to unfreeze said String.
>
> -Brian
>
> On Thursday, October 30, 2003, at 01:29 PM, Brian McCallister wrote:
>
>>
>>
>> I have mod_ruby installed but am running it under cgi at the moment --
>> I want to run under mod_ruby eventually, but make it work, then work
>> right, then work fast =)
>>
>> Completely disabling mod_ruby makes no change
>>
>> Forcing it to run under mod_ruby gives me a security error:
>>
>> ./FileEntries.rb:85:in `stat': Insecure operation - stat
>> (SecurityError)
>>          from ./FileEntries.rb:85:in `traverse'
>>          from ./FileEntries.rb:84:in `each'
>>          from ./FileEntries.rb:84:in `traverse'
>>          from ./FileEntries.rb:52:in `initialize'
>>          from ./RubLog.rb:81:in `new'
>>          from ./RubLog.rb:81:in `process_request'
>>          from ./RubLog.rb:66:in `initialize'
>>          from /home/mccallister/www/rublog-0.8.0/rublog.rb:33:in `new'
>>          from /home/mccallister/www/rublog-0.8.0/rublog.rb:33
>>          from /usr/local/lib/ruby/1.8/apache/ruby-run.rb:70:in `load'
>>          from /usr/local/lib/ruby/1.8/apache/ruby-run.rb:70:in
>> `handler'
>>
>> Running it as a normal cgi I get the previously mentioned error. The
>> "can't modify frozen string (TypeError)" is why I thought that maybe
>> something changed between 1.6 and 1.8.
>>
>> httpd cgi config is pretty vanilla:
>>
>> LoadModule cgi_module modules/mod_cgi.so
>> AddHandler cgi-script .cgi
>>
>> Aside from that it is httpd 2.0.48 prefork and 1.8.0 release with
>> nothing extra aside from eruby installed.
>>
>> -Brian
>>
>> On Thursday, October 30, 2003, at 12:00 PM, Chad Fowler wrote:
>>
>>> On Fri, 31 Oct 2003, Brian McCallister wrote:
>>>
>>> # As Dave doesn't have a -users list for Rublog I am asking here,
>>> sorry
>>> # if it is offtopic...
>>> #
>>> # I am having a bear of a time getting rublog to work under 1.8.0 I
>>> get
>>> # errors along the lines of:
>>> #
>>>
>>> No problems here under 1.8.0.  Have you tried it with Webrick?  I'd 
>>> be
>>> interested to know if it works there.  What's your web server config?
>>> mod_ruby?
>>>
>>> Chad
>>>
>>>
>>>
>>
>>
>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.2.3 (Darwin)
>>
>> iD8DBQE/oViTaOuMdvjqKWcRAtlpAJ44TmxkqGKRESxDe7JSfP64TX80vQCdH+g/
>> 2+bXBrTZof26TZoPLmCm88I=
>> =psQR
>> -----END PGP SIGNATURE-----
>>
>>
>>
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.3 (Darwin)
>
> iD8DBQE/oV0haOuMdvjqKWcRAmmSAJ9p6LKRdFK/yg3MpyBgcLA1d3XFcQCghedJ
> 6m1MEq6wMBjw5VcrCkmPElI=
> =SDqR
> -----END PGP SIGNATURE-----
>
>
>



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQE/oWHpaOuMdvjqKWcRAifZAKCZKOi2TLSugv863rrVshhoUDeGjwCfawwX
zllGJ9HIJSMOcP+ZuOZAb8I=
=r0gE
-----END PGP SIGNATURE-----


In This Thread

Prev Next