Rbbr 0.2rev1 bombs out!

rbbr is looking for a rbbr/config.rb module which is non-existent…
(not in the tarball)

[waisun@caspar waisun]$ rbbr
/usr/lib/ruby/site_ruby/1.8/rbbr/ui/gtk.rb:26:in require': No such file to load -- rbbr/config (LoadError) from /usr/lib/ruby/site_ruby/1.8/rbbr/ui/gtk.rb:26 from /usr/lib/ruby/site_ruby/1.8/rbbr/ui.rb:35:inrequire’
from /usr/lib/ruby/site_ruby/1.8/rbbr/ui.rb:35:in default' from /usr/lib/ruby/site_ruby/1.8/rbbr.rb:20:inmain’
from /usr/bin/rbbr:21

···


Wai-Sun “Squidster” Chia
Consulting & Integration
Linux/Unix/Web Developer Dude
"Just Another Ruby Miner"

Hi,

rbbr is looking for a rbbr/config.rb module which is non-existent…
(not in the tarball)

[waisun@caspar waisun]$ rbbr
/usr/lib/ruby/site_ruby/1.8/rbbr/ui/gtk.rb:26:in require': No such file to load -- rbbr/config (LoadError) from /usr/lib/ruby/site_ruby/1.8/rbbr/ui/gtk.rb:26 from /usr/lib/ruby/site_ruby/1.8/rbbr/ui.rb:35:in require’
from /usr/lib/ruby/site_ruby/1.8/rbbr/ui.rb:35:in default' from /usr/lib/ruby/site_ruby/1.8/rbbr.rb:20:in main’
from /usr/bin/rbbr:21

Did you install rbbr as follows?

$ruby install.rb config
$ruby install.rb setup #-> create lib/rbbr/config.rb
(su)
$ruby install.rb install

Thanks.
Masao.

···

On Mon, 30 Dec 2002 20:38:12 +0900 Wai-Sun Chia waisun.chia@hp.com wrote:


.:% Masao Mutohmutoh@highway.ne.jp

Huh?

[waisun@caspar waisun]$ rbbr

(rbbr:3030): GLib-GObject-CRITICAL **: file gobject.c: line 615
(g_object_new): assertion `G_TYPE_IS_OBJECT (object_type)’ failed
Segmentation fault (core dumped)

ruby-gnome2 0.2
gtk2 2.2.0
glib2 2.2.0
ruby 1.8.0 (2002-12-26) [i386-linux-gnu]

···


Wai-Sun “Squidster” Chia
Consulting & Integration
Linux/Unix/Web Developer Dude
"Just Another Ruby Miner"

Hi,

How did you install ruby-gnome2 ?
And could you send me gdb’s backtrace?

BTW,
Ruby-GNOME2 is now supported only GTK±2.0.x.
I haven’t try it with GTK±2.2.x yet.
It may causes that problem.

···

On Mon, 30 Dec 2002 21:02:11 +0900 Wai-Sun Chia waisun.chia@hp.com wrote:

Huh?

[waisun@caspar waisun]$ rbbr

(rbbr:3030): GLib-GObject-CRITICAL **: file gobject.c: line 615
(g_object_new): assertion `G_TYPE_IS_OBJECT (object_type)’ failed
Segmentation fault (core dumped)

ruby-gnome2 0.2
gtk2 2.2.0
glib2 2.2.0
ruby 1.8.0 (2002-12-26) [i386-linux-gnu]


Wai-Sun “Squidster” Chia
Consulting & Integration
Linux/Unix/Web Developer Dude
“Just Another Ruby Miner”


.:% Masao Mutohmutoh@highway.ne.jp

ext/extmk.rb, line 108
$mflags[0].sub!(/^(?=\w+)$/, “-”) unless mflags.empty?

should be:
$mflags[0].sub!(/^(?=\w+)$/, “-”) unless $mflags.empty?
^^^

Missing global variable specifier.
Otherwise, this snapshot would not compile.

···


Wai-Sun “Squidster” Chia
Consulting & Integration
Linux/Unix/Web Developer Dude
"Just Another Ruby Miner"

Since the mailing list is auto-gatewayed to c.l.r, all our email
addresses are also being displayed out in hostile Usenet, openly and
nakedly.

Are there any precautions taken by the gateway program (I guess not, as
I can see my email address in any newsreader), or any being planned?

···


Wai-Sun “Squidster” Chia
Consulting & Integration
Linux/Unix/Web Developer Dude
"Just Another Ruby Miner"

Hi,

Is this issue for Ruby-GNOME2’s CVS tree or Ruby’s CVS tree?
And after applying this changes, does rbbr-0.2 work?

···

On Mon, 30 Dec 2002 21:15:24 +0900 Wai-Sun Chia waisun.chia@hp.com wrote:

ext/extmk.rb, line 108
$mflags[0].sub!(/^(?=\w+)$/, “-”) unless mflags.empty?

should be:
$mflags[0].sub!(/^(?=\w+)$/, “-”) unless $mflags.empty?
^^^

Missing global variable specifier.
Otherwise, this snapshot would not compile.


.:% Masao Mutohmutoh@highway.ne.jp

Masao Mutoh wrote:

Hi,

How did you install ruby-gnome2 ?

ruby extconf.rb
make
make install

And could you send me gdb’s backtrace?

See attached.

BTW,
Ruby-GNOME2 is now supported only GTK±2.0.x.
I haven’t try it with GTK±2.2.x yet.
It may causes that problem.

Yes. Highly possible.
Price to pay for being on the bleeding edge… :wink:

foo (14.3 KB)

···


Wai-Sun “Squidster” Chia
Consulting & Integration
Linux/Unix/Web Developer Dude
“Just Another Ruby Miner”

Careful, you didn’t create a new thread.

AFAIR, someone - most likely Dave - acknowledged this issue a while
back, and the ambient suggestion was to mangle email addresses of ML
participants on the way to the NG.

Dave suggested someone suggest something concrete or post some code,
and the issue then lost currency.

My memory on all this is fuzzy, BTW. Anyway, I suggest that you
examine the gateway code (it’s in The Ruby Way) and post a patch.
That might get the issue taken seriously again.

BTW, if you haven’t received acres of spam in your inbox yet, don’t
worry: you will :slight_smile:

Cheers,
Gavin

···

On Monday, December 30, 2002, 11:21:08 PM, Wai-Sun wrote:

Since the mailing list is auto-gatewayed to c.l.r, all our email
addresses are also being displayed out in hostile Usenet, openly and
nakedly.

Are there any precautions taken by the gateway program (I guess not, as
I can see my email address in any newsreader), or any being planned?

Wai-Sun Chia waisun.chia@hp.com writes:

Since the mailing list is auto-gatewayed to c.l.r, all our email
addresses are also being displayed out in hostile Usenet, openly and
nakedly.

Worse! It’s displayed on a web archive! And if people really want to
harvest email addresses, they can subscribe to the mailing list. Better
not post at all!

···


The Second Law of Thermodynamics:
If you think things are in a mess now, just wait!

Sorry about being unclear.
I was talking about Ruby’s CVS tree.

Masao Mutoh wrote:

···

Hi,

Is this issue for Ruby-GNOME2’s CVS tree or Ruby’s CVS tree?
And after applying this changes, does rbbr-0.2 work?

On Mon, 30 Dec 2002 21:15:24 +0900 > Wai-Sun Chia waisun.chia@hp.com wrote:

ext/extmk.rb, line 108
$mflags[0].sub!(/^(?=\w+)$/, “-”) unless mflags.empty?

should be:
$mflags[0].sub!(/^(?=\w+)$/, “-”) unless $mflags.empty?
^^^

Missing global variable specifier.
Otherwise, this snapshot would not compile.


Wai-Sun “Squidster” Chia
Consulting & Integration
Linux/Unix/Web Developer Dude
“Just Another Ruby Miner”

Hi,

Thanks for your reporting.
I’ll try to fix it.

···

And could you send me gdb’s backtrace?

See attached.

BTW,
Ruby-GNOME2 is now supported only GTK±2.0.x.
I haven’t try it with GTK±2.2.x yet.
It may causes that problem.

Yes. Highly possible.
Price to pay for being on the bleeding edge… :wink:


.:% Masao Mutohmutoh@highway.ne.jp

Gavin Sinclair wrote:

Careful, you didn’t create a new thread.

Oops. So sorry, I didn’t mean to rehash (apparently) an old topic. I
just only realised it by pointing my newsreader to c.l.r.

I may need to mangle my email address manually first… :stuck_out_tongue:

···


Wai-Sun “Squidster” Chia
Consulting & Integration
Linux/Unix/Web Developer Dude
“Just Another Ruby Miner”

That’s true, but these are not the most efficient avenues for
harvesting. It is appropriate to worry first about the Usenet angle.

Gavin

···

On Monday, December 30, 2002, 11:39:19 PM, Simon wrote:

Wai-Sun Chia waisun.chia@hp.com writes:

Since the mailing list is auto-gatewayed to c.l.r, all our email
addresses are also being displayed out in hostile Usenet, openly and
nakedly.

Worse! It’s displayed on a web archive! And if people really want to
harvest email addresses, they can subscribe to the mailing list. Better
not post at all!

It’s worth it. That web archive is the single best source of Ruby
information in the entire world.

···

At 21:39 30/12/2002 +0900, you wrote:

Wai-Sun Chia waisun.chia@hp.com writes:

Worse! It’s displayed on a web archive! And if people really want to
harvest email addresses, they can subscribe to the mailing list. Better
not post at all!

Gavin Sinclair wrote:

Careful, you didn’t create a new thread.

Oops. So sorry, I didn’t mean to rehash (apparently) an old topic. I
just only realised it by pointing my newsreader to c.l.r.

Not at all, it deserves rehashing. Mailing lists are supposed to be
more sanitised than newsgroups, IMO. This issue is probably just
lingering in the too-hard basket.

It doesn’t really get under my skin enough; I’ve never put a NOSPAM
(or equivalent) in my “apparent” email address - I just cop the
consequences. And my spam-filtering is good enough now.

I may need to mangle my email address manually first… :stuck_out_tongue:

Not a bad start!

Gavin

···

On Monday, December 30, 2002, 11:38:22 PM, Wai-Sun wrote:

Gavin Sinclair gsinclair@soyabean.com.au writes:

That’s true, but these are not the most efficient avenues for
harvesting. It is appropriate to worry first about the Usenet angle.

This seemed plausable, but I did a survey of my incoming spam over the
past few days. 15 came directed to addresses that have only been used on
web pages, 35 to addresses I use for mailing list posts, and 3 to the
address I post to Usenet as. So I think the “Usenet is an evil harvesting
ground” meme is just a myth. It certainly used to be true, but I doubt it
is at the moment.

···


“Language shapes the way we think, and determines what we can think about.”
– B. L. Whorf

Careful, you didn’t create a new thread.

Oops. So sorry, I didn’t mean to rehash (apparently) an old topic. I
just only realised it by pointing my newsreader to c.l.r.

Not at all, it deserves rehashing. Mailing lists are supposed to be
more sanitised than newsgroups, IMO. This issue is probably just
lingering in the too-hard basket.

The other ML issue (perhaps) is that posting is not restricted to subscribers, hence the sporadic spam that turns up. Much of it
is caught by filters befire reaching subscribers, though.

James

jbritt@ruby-doc.org wrote in message

The other ML issue (perhaps) is that posting is not restricted to
subscribers,
hence the sporadic spam that turns up. Much of it
is caught by filters befire reaching subscribers, though.

Speaking of spam, I was surprised by the rejection of my email (which
contained some perl code and equivalent ruby code) on the grounds of it
being spam. I have included the response in its entire form below. I suspect
that even this email may get rejected by the ML (becuase the code is still
there ;-)).

Any way, if someone can guide me so that I won’t commit the same mistake
twice.
Thanks,
– shanko

···

Your mail is rejected for
avoid to distribute commands [#Perl Code:]

Original mail as follows:

From owner-ruby-talk@ruby-lang.org Wed Jan 1 10:04:26 2003
Return-Path: owner-ruby-talk@ruby-lang.org
Received: from zip.local.thomases.com (pragdave210.august.net
[216.87.136.210])
by helium.ruby-lang.org (Postfix) with ESMTP id B8BA051C
for ruby-talk@ruby-lang.org; Wed, 1 Jan 2003 10:04:23 +0900 (JST)
Received: from localhost.localdomain (dave@localhost [127.0.0.1])
by zip.local.thomases.com (8.11.2/8.11.2) with ESMTP id h0114Sm02824
for ruby-talk@ruby-lang.org; Tue, 31 Dec 2002 19:04:28 -0600
To: ruby-talk@ruby-lang.org
Path:
news5.aus1.giganews.com!firehose2!nntp4!nntp3.aus1.giganews.com!border1.nntp
…aus1.giganews.com!nntp2.aus1.giganews.com!nntp.giganews.com!newsfeed.cwix.c
om!news-east.rr.com!news-server.columbus.rr.com!cyclone3.kc.rr.com!news3.kc.
rr.com!twister.kc.rr.com.POSTED!53ab2750!not-for-mail
From: “Shashank Date” sdate@kc.rr.com
Newsgroups: comp.lang.ruby
References: 3E116DDE.972A9081@chello.at
Subject: Re: How to translate this Perl regex
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: OYqQ9.36884$eB.654418@twister.kc.rr.com
Date: Tue, 31 Dec 2002 18:52:44 -0600
NNTP-Posting-Host: 65.30.73.197
X-Complaints-To: abuse@rr.com
X-Trace: twister.kc.rr.com 1041382318 65.30.73.197 (Tue, 31 Dec 2002
18:51:58 CST)
NNTP-Posting-Date: Tue, 31 Dec 2002 18:51:58 CST
Xref: nntp3.aus1.giganews.com comp.lang.ruby:58986
Received: from Usenet via a Usenet to mail gateway located at
pragprog.com. This service provided as a courtesy to the
ruby-talk mailing list. If this message is SPAM, its ultimate
origin is Usenet, not this gateway program. All subscribers
to the ruby-talk mailing list agree to receive the Usenet
postings made to comp.lang.ruby via this gateway. Please see
http://www.ruby-lang.org/ruby-talk-usenet-policy.html.
X-From-Usenet: see Received: header above.
X-rubymirror: yes
X-Spam-Status: No, hits=1.5 required=5.0
tests=FORGED_RCVD_FOUND,RCVD_IN_ORBZ version=2.20
X-Spam-Level: *

#Perl Code:

sub foo {
(uc shift).(uc shift);
}

my $s = ‘aaabccc[abc][ab]bc’;
$s =~ s/(a+)b(c*)/&foo($1,$2)/ge;
print $s.“\n”;

---------------------------------------------------

Ruby Code:

def foo(a,b)
a.upcase + b.upcase
end

s = “aaabccc[abc][ab]bc”
puts s.gsub!(/(a+)b(c*)/) { foo($1, $2) }

HTH,
– shanko

“Helmut Leitner” helmut.leitner@chello.at wrote in message
news:3E116DDE.972A9081@chello.at…

Someone said that Ruby can do anything that Perl does.
How would you write this Perl regex

$s =~ s/(pat1+)pat2(pat3*)/&foo($1,$2)/ge;

in Ruby?

It

  • does a global replace (/g) in one sweep
  • executes code (calls function) to create the replacement string
    (/e)
  • uses parts of the searched patterns (groupings) as parameters to
    foo

My books

  • Ruby in a Nutshell
  • The Ruby Way
    are very brief with respect to regexs and don’t give
    me a clue how to do this.


Helmut Leitner leitner@hls.via.at
Graz, Austria www.hls-software.com

--ruby-talk@ruby-lang.org, Be Seeing You!


If you have any questions or problems,
please contact ruby-talk-admin@ruby-lang.org


!!! SpamAssassin is censoring Perl? :stuck_out_tongue:
It does fortunately not know about Ruby, otherwise Guy’s posts would
never pass through :slight_smile:

···

On Wed, Jan 01, 2003 at 06:05:02PM +0900, Shashank Date wrote:

jbritt@ruby-doc.org wrote in message

The other ML issue (perhaps) is that posting is not restricted to
subscribers,
hence the sporadic spam that turns up. Much of it
is caught by filters befire reaching subscribers, though.

Speaking of spam, I was surprised by the rejection of my email (which
contained some perl code and equivalent ruby code) on the grounds of it
being spam. I have included the response in its entire form below. I suspect
that even this email may get rejected by the ML (becuase the code is still
there ;-)).

Any way, if someone can guide me so that I won’t commit the same mistake
twice.
Thanks,
– shanko



Your mail is rejected for
avoid to distribute commands [#Perl Code:]


_ _

__ __ | | ___ _ __ ___ __ _ _ __
'_ \ / | __/ __| '_ _ \ / ` | ’ \
) | (| | |
__ \ | | | | | (| | | | |
.__/ _,
|_|/| || ||_,|| |_|
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

There are 3 kinds of people: those who can count & those who can’t.
– Unknown source