176841-241397

176625-180183 subjects 177067-178686

event multiplexing and ruby threads (was Re: Mongrel 0.1.1 )
176841 [kellan@gm il] I've been meaning to ask about this as well ever since I saw you killed

[ANN] xx-0.1.0 : xhtml and xml make it twice as dirty
176847 [ara.t.howard] NAME
176861 [mental@ry ia] Out of curiousity, how does this compare with markaby?
176867 [james_b@ne r] Or the XML Builder in Nitro, which has a similar syntax?
176880 [ara.t.howard] hmm.  i think the implimentation is better ;-)
176894 [james_b@ne r] Thanks for the details.  This looks really quite slick.

rubycocoa embedded ruby interpreter.
176857 [ezmobius@gm ] rubies-
+ 176908 [scott@bu le ] I "spiked" on this a while back. You have several options, especially
+ 177234 [jp-www@dc .g] Also, try the rubycocoa mailing list for related questions.
  177241 [ezmobius@gm ] Jonathan-

Problems loading scripts using embedded Ruby interpreter
176860 [matt.mower@g] I am trying to embed the Ruby interpreter into a Cocoa application and

Printing RFC3339 timezone?
176870 [cool_screen_] How can I print a valid RFC3339 time zone (used by Atom)? Presumably
+ 176968 [bob_showalte] ...
+ 176969 [halostatue@g] Try using Time#xmlschema.

How to access a attributes from the parent class?
176871 [BPaatsch@ac ] ...
+ 176873 [Gennady.Byst] You must call super in WacSubProfile#initialize to invoke
| 176874 [BPaatsch@ac ] ...
+ 176886 [ruby-forum-r] An extra 'end' there but I assume it is just a copy-paste error.

still having problems with exceptions in IMAP module
176882 [r.fulton@au ] I have this method defined in a program I use for checking access to

postgres database
176883 [tallison@ta ] What is the file I need to require for connection to a postgres
176887 [pergesu@gm i] You need to have the postgres adapter installed.  I made a blog
177137 [groups@gr nd] A suggestion to the wider PostgreSQL-using Ruby populace; I was
+ 177141 [tsumeruby@ts] Good suggestion, but it would be platform specific. Maybe this situation would
| 177152 [groups@gr nd] Not necessarily, I think. I just installed Postgres 8, so I don't think
| 177172 [tsumeruby@ts] Have you tried the postgres-pr library? The library was brought to my
| 177175 [groups@gr nd] Yes, some months ago, but the installation failed utterly. I don't even
| 177191 [tsumeruby@ts] I see it.. "postgres-ing? Too many choices!" I don't understand how one could
| 177195 [pergesu@gm i] I asked Robby Russel, who really knows his stuff when it comes to
| 177201 [tsumeruby@ts] The issue is not about wether one library works better than the other. As long
| 177203 [pergesu@gm i] It's not an issue?  A native adapter is going to be faster than the
| + 177207 [tsumeruby@ts] well yeah, the ruby version is going to be slower.
| + 177613 [groups@gr nd] But he wasn't responding to the original question, but rather, to MY
+ 177167 [wilsonb@gm i] Personally, I just use the postgres-pr adapter, which is pure Ruby.

Problems compiling Ruby extension in MSVC
176885 [sriyansa@gm ] I am trying to compile my ruby extension under Windows with the MSVC
+ 176896 [jussij@ze se] Jussi Jumppanen
+ 177231 [jes@lu et nk] I too have spaces in my include path, and it works ok. I thought I had to

local variables and threads
176891 [r.fulton@au ] Is there a way to ensure that a particular variable really is local to a
+ 176893 [ruby-forum-r] Only variables prefixed with $ are global ($var and so on).
+ 176935 [bob.news@gm ] I.e. provide value(s) as arguments to Thread.new and receive them as block

I like the new ruby-doc.org!
176899 [james@gr yp ] Hadn't seen this mentioned here, so just wanted to say that I feel
+ 176911 [dbalmain.ml@] +1
+ 176912 [ogilthorpe@d] Absolutely!  I was pleasantly surprised to find the new look when I paid
| + 176915 [joevandyk@gm] I did the exact same thing.  I clicked on standard library when I
| + 176919 [james_b@ne r] Sunday.
|   + 176947 [damphyr@fr e] Yeap, let me add my +1 and congrats for the new layout.
|   + 176972 [martindemell] Thanks to both of you, then :) Very nice work.
|     176976 [james_b@ne r] Zapping? As in using a Firefox thingy to clear colors?
|     177083 [martindemell] Yeah, there's a little javascript bookmarklet[1] I use to remove background
+ 176914 [gwtmp01@ma .] This was my first thought also.  If it had always been that way I might
+ 176918 [gregory.t.br] Yes... Very cool!
+ 176926 [surrender_it] +1, it took some time but the result is really nice, thanks to James Britt!
| 176931 [heidegger101] ...
| + 176932 [m.fellinger@] Hehe, look at the bottom of the page ^^
| + 176933 [tsumeruby@ts] Built using Nitro http://www.nitrohq.com/
| + 176938 [ptkwt@ar cn ] Nope, not RoR.  It says on the page (lower right-hand side) that it's powered
| + 176974 [james_b@ne r] This is a Nitro site.
+ 176934 [jaco@ne tt a] +1
+ 176964 [alang@cr no ] Agreed, it looks great!
| + 176975 [james_b@ne r] Thanks.   (And thank my partners at 30 Second Rule.)
| | 176979 [alang@cr no ] Sure -- Is it just a time-to-deploy issue or is there additional work
| | 177045 [james_b@ne r] Most of the immediate work is tracking down broken links.  The site had
| | + 177046 [james@gr yp ] Just FYI, I'm currently reading Higher-Order Perl and one of the
| | | 177049 [james_b@ne r] Thanks.  You realize, of course, that all geeks feel compelled to first
| | + 177047 [rdm@cf l. om] For about the same amount of effort, you could install
| | | 177051 [james_b@ne r] Yeah, but there's this strong compulsion to eat my own dog food.  Or
| | + 177087 [rossrt@ro co] I'm coming to this late, so maybe you already discussed this, but I
| + 177048 [ng@jo nw on ] It's coming. I'm working full time on the project right now. It may be a
+ 177102 [zdennis@mk e] I agree. The new site looks amazing! Great job to whomever did the redesign!
  177116 [james_b@ne r] That would be Dan Ritz of 30 Second Rule.

Ruby Tk - embedding widgets
176900 [info@ja eo a] I'm looking for a way to embed a few list and combo boxes into a single

NURBS evaluation toolkit in Ruby
176901 [yue_nicholas] I wish to do some computational geometry prototyping using Ruby in
176952 [Nuralanur@ao] ...

Metaclass confusion
176902 [krishna.vive] can someone explain this.
+ 176905 [ruby-forum-r] The traditional response is 'magick' :) While it is useful to
| + 176936 [krishna.vive] One implication I have seen is that the class definition itself is an
| | 176943 [bob.news@gm ] Umm, in usual terminology objects cannot be "executed".  You can "call" or
| + 176978 [dblack@wo bl] I don't think any peril is involved (though lately all discussions
+ 176906 [logancapaldo] In ruby, everything is an object. Even classes. Class inherits from
| 177015 [levin@gr nd ] <http://redhanded.hobix.com/cult/lastlyTheSinkingSymphonyVideo.html>
+ 177004 [sam.s.kong@g] The following doc helped me understand Ruby object model pretty well.
  177017 [julesjacobs@] A non-circular model would be prototype based inheritance. You just
  177026 [matthew.moss] Song = Object.clone

Can't rescue this (http-access2)
176904 [hsanson@mo g] I have a code like this
177149 [stefan@ma li] a simple

ActiveRecord automatic quoted identifiers
176909 [jeremy.borde] Is there a way to tell ActiveRecord to automatically quote all
176982 [chneukirchen] +1.  I was once bitten by using the PostgreSQL reserved word "user" as

running unit tests in graphical mode
176910 [navyaamerine] ...
+ 176930 [pit@ca it in] require 'test/unit'
+ 177107 [nagai@ai ky ] require 'test/unit'

Need help with soap timeout issue
176916 [wbohl@ra sa ] ...

Need help with soap timeout issue
176917 [wbohl@ra sa ] ...
178586 [nakahiro@sa ] Hmm.  I'm afraid there is almost nothing I can say about RoR side (RoR +

subsequence regular expression
176920 [dizraelus@ya] I'm trying to extract a certain sequence from a
+ 176925 [ajohnson@cp ] s =~ /(.*?)(ba){2,}/
+ 176927 [neoneye@gm i] s = "5b300ba00260bababababababababababababababababa000bd1007bd10b810ba92"
  176942 [dizraelus@ya] Thanks a lot for the suggestions. This is close to
  176944 [neoneye@gm i] Hmm.. the many ba's is at an odd offset.. don't you want them only at

Gems zlib problem
176923 [ryantate@ry ] I am going to echo posts scattered throughout the Internet here and say
176928 [mlbright@gm ] This is what worked for me.
+ 177189 [ryantate@ry ] Thanks, I'll give this a shot. I did install all three of those (zlibc,
| + 177192 [ryantate@ry ] No dice. Here's the relevant section from make, which appears to be
| | 177196 [ryantate@ry ] WTF? I go to compile my own zlib, so I am trying to remove zlib1g, when
| | 177202 [ryantate@ry ] Oh well, I'm throwing in the towel for tonight.
| | 177206 [ryantate@ry ] YES! Done. Done. Done!
| | 241397 [jedi_aka@ya ] Thanks a lot Ryan Tate
| + 177211 [drbrain@se m] Did you re-run configure?
|   177236 [ryantate@ry ] Most certainly. Every single time.
|   177237 [ryantate@ry ] Also, I ran 'make clean' each time to cleanup the prior install to make
|   177328 [vulgrin@gm i] Ryan, you saved my bacon.  I was running into EXACTLY the same problem
|   177854 [rabbitblue@g] ruby extconf.rb
|   228002 [drubdrub@ya ] ~/tmp/browser_dowloads/ruby-1.8.5-p2/ext/zlib$ ruby extconf.rb
|   228009 [drbrain@se m] Install zlib (and, if your OS is that weird, its headers too).
+ 177227 [bob_showalte] Yikes! Makes me glad I run FreeBSD :-)

Trixy abbreviation
176937 [d00farre@dt ] There's a thing that's been bugging me for quite some time now. If you
176941 [jim@we ri hh] My guess is iv_tbl = "instance variable table"

String#de_inspect (and Kernel#suspicious)
176945 [pan@er kv en] If you do an inspect on a collection of Ruby objects, like a
+ 176946 [bob.news@gm ] A question: what is the advantage of this over YAML?
| 176953 [google@er kv] 1) It's faster (see below). Probably because it uses the highly
| 176957 [bob.news@gm ] That's quite an impressive list.  I'm glad I asked.
+ 176955 [ mfp@ac .o g] ### code by Mr. Evil
+ 177023 [vjoel@pa h. ] For the object->string direction, it may be useful to use amarshal,
  177030 [google@er kv] % ruby -ramarshal -e 'AMarshal.dump([1,2,3], STDOUT)'

Re: it is possible to unload a class?
176948 [Nuralanur@ao] ...

Re: IE Automation/Recorder - Watir/Wet
176950 [Nuralanur@ao] ...

threading sync
176951 [mage@ma e. u] I was thinking of writing my first threaded app in Ruby. One thread
+ 176956 [bob.news@gm ] In your case you probably better use a Queue which saves you the
| 176960 [mage@ma e. u] Thank you. I see.
| 176963 [bob.news@gm ] IMHO it's generally a bad idea to determine thread safety properties of
+ 176967 [pan@er kv en] No, you don't.
| 177145 [drbrain@se m] No, Thread.exclusive (which uses Thread.critical) does not prevent
+ 176971 [james@gr yp ] In general, assume nothing is atomic in Ruby.  Even a simple

Howto suppress a warning "insecure world writeable .." in Ruby 1.8.4 ?
176954 [Nuralanur@ao] ...
+ 176966 [pan@er kv en] You could delete line 4076 in file.c of Ruby 1.8.4... :)
+ 176981 [ara.t.howard] $VERBOSE=nil

Re: String#de_inspect (and not Kernel#suspicious)
176958 [google@er kv] Okay, the block was defined in SAFE mode 0... :)

[ANN] Subversion Handy Backup (SHB)
176961 [neoneye@gm i] ...
177111 [neoneye@gm i] Simon Strandgaard

[OT] have to learn java
176977 [hawkman.gelo] ...
176980 [james_b@ne r] There is a presentation on Ruby for Java Developers that I believe goes

Re: have to learn java
176983 [jim@we ri hh] I just gave this talk last weekend to the Cincinnati-Dayton Code Camp.
+ 177002 [ghalsey@ya o] years ago when i looked into java - bluej helped.
+ 177006 [ng@jo nw on ] That's hysterical. :-)
+ 177007 [tdjordan@gm ] 3 cheers for Jim !
  177010 [jim@we ri hh] Sorry, not for this one.
  177034 [usidoesit@ya] This should help with your attitude
  177110 [james.herdma] Knowing multiple languages never hurts.  You'll find Java cumbersome,
  177161 [glenn.ruby@g] ...

Rails, how do people figure out how to use it?
176984 [anne@wj .h r] Lately I have been trying various things and I am amazed at what all
+ 176988 [dblack@wo bl] To answer the question in your subject line, on my own behalf: I was
+ 176989 [james_b@ne r] Many, if not most, open-source tools and libraries are written by geeks
+ 176992 [wilsonb@gm i] If you think that's hard, get ready for what it takes to get a Java
  177050 [anne@wj .h r] Thank you for your responses. To fix my problems with too much
  177066 [gene.tani@gm] ...
  177097 [anne@wj .h r] Thank you, in the end, the rails list is really busy! I followed the

Generating a WSDL descriptor for my SOAP service
176986 [glenatron@gm] I'm a bit new here, so I apologise if this question is something that

AW: Generating a WSDL descriptor for my SOAP service
176991 [Roland.Schmi] actually soap4r can not generate WSDL.

borked stuff on ruby-doc.org
176994 [joevandyk@gm] That page is linked from the site's main page, and there are a number
177000 [james_b@ne r] A work in progress. :)
+ 177013 [cohen.jeff@g] James,
+ 177044 [surrender_it] emh... while we're at it: we have a bit of documentation (translated and

ANN: Ottawa Group of  Ruby Enthusiasts (OGRE) 2nd Meeting
176998 [chris.hulan@] Ottawa Group of  Ruby Enthusiasts, affectionately known as OGRE are

DRb and ActiveRecord
177001 [ezmobius@gm ] Friends-
+ 177005 [joevandyk@gm] Just a shot in the dark:  does
+ 177008 [bob_showalte] Advance warning: I am not a drb or ActiveRecord expert. I'm not much of
  177009 [ezmobius@gm ] Bob-

Oniguruma and 1.8.x
177014 [rubyhacker@g] I have started playing with Oniguruma a little.
177094 [sndgk393@yb ] I have checked today Oniguruma 2.5.2
+ 177105 [hal9000@hy e] No, I have not tried it on Windows at all. I have
| + 177120 [sndgk393@yb ] Sorry,  I have to check on Linux.
| + 177226 [sndgk393@yb ] Today I have checked on Linux (Fedora Core 4).
+ 177109 [james@gr yp ] I have a hard time seeing an option as a bad thing, as long as it's

irb parser error?
177018 [jzakiya@ma l] I'm using Ruby 1.8.4.
+ 177019 [jzakiya@ma l] irb(main):001:0> require "~/'Ruby Stuff'/fibtimes.rb"
+ 177020 [rforum@gm il] The single quotes are necessary to prevent the shell from interpreting
  177063 [jzakiya@ma l] Perfecto!! That solved it.

[OT] Job opportunity
177021 [Gennady.Byst] ...
177075 [xeno@es im .] Please forward my resume:  http://www.eskimo.com/~xeno/dev3.html

OS X 1.2 gems install problems
177027 [far_neil@ya ] If this is the wrong list, please let me know which list I should use.

1.8.4 on HP/UX
177028 [sigzero@gm i] We are running HP/UX 11i at work (or some such). Has anyone using this
177036 [mental@ry ia] I installed Ruby 1.8.4 on HP-UX 11i once recently.  It's entirely

Ruby on linux: How to check (username,password) ?
177032 [carmine@as m] I'm writing some code to check that a password is the correct one for a

Please give me suggestion for directory layout
177033 [leopardus.vu] I generate website from templates. I use rake to generate it. My

CGI::Cookie.parse problem?
177037 [billk@ct .c ] I'm interfacing with a site that is sending me back a cookie like
177215 [billk@ct .c ] [replying to my own post]

How to handle errors thrown by Shell.rb
177040 [nick.snels@g] I have this very simple code

ensure statement and signals
177041 [tsuraan@gm i] I have a program (currently written in python, but that could change
+ 177043 [tsuraan@gm i] Wow, I'm not smart.  I had print in my actual test code, which doesn't
| 177085 [rossrt@ro co] Doh, sorry for the reply to the noise :)
+ 177084 [rossrt@ro co] Running your code and hitting Ctrl-C does give the expected behaviour,

simple newbie question
177053 [kieran.kirwa] I have a piece of code below in which I;
+ 177055 [dblack@wo bl] That's why they're the same: by doing this assignment, you're storing
+ 177095 [jaco@ne tt a] See <http://www.rubygarden.org/ruby?Make_A_Deep_Copy_Of_An_Object>

class variable weirdness
177056 [alex.combas@] I was fooling around with class variables tonight, and I know this is
177057 [dblack@wo bl] You need an array there: [C.up, C.foo=10].  The way you've got it,
177059 [alex.combas@] Thanks I appreciate the quick reply, I think the () was a bit of
177060 [dblack@wo bl] Instances of A don't have a foo method, so you would indeed have to
177062 [alex.combas@] Yes I see I can not have it both ways now, either a class.method or a
177065 [Gennady.Byst] ...
177079 [alex.combas@] This is exactly what I was looking for, and

Help with Apache cgi
177058 [erne@po er a] I'm trying to port a cgi program that runs fine under windows.  But I
177096 [erne@po er a] I've figured it out.
threads.html
top