325546-343833

325356-372428 subjects 325776-412266

class doesn't know about calling program's libraries?
325546 [tomcloyd@co ] I'm still in my first 24 hours of seriously using classes, so am still
+ 325552 [coder68@ya o] please post the entire code snippet for help
| 325561 [tomcloyd@co ] Sorry - I thought I'd included enough to justify my questions. Here's a
| 325585 [b.candler@po] And the exact exception, with backtrace?
| 325587 [b.candler@po] P.S. It would be extremely helpful if you could boil this down to a very
| + 325598 [b.candler@po] def main
| + 325633 [tomcloyd@co ] Brian, Thanks for your excellent recommendations. Though I did attempt
+ 325558 [b.candler@po] At a guess: you are running this *before* you have done require

Showing a file
325547 [siggesg@ho m] I am a noob in programing, and have just learned some of the basics.
325555 [coder68@ya o] yes...
325562 [siggesg@ho m] How??
325572 [theyojimbo@g] By using a GUI library. And for which one, it depends of your needs...
325580 [siggesg@ho m] can i display any picture with the Shoe library??
325583 [theyojimbo@g] At least for PNG, JPEG or GIF format, yes.
325630 [siggesg@ho m] Sorry! i didn't understand the code.

Re: ParseTree 3.0.3 Released
325549 [luislavena@g] =A0
325550 [luislavena@g] ed on,

sigprocmask?
325553 [james@gr yp ] Does Ruby provide access to the POSIX function sigprocmask()?

[OFF-TOPIC]  Re: Class design question
325556 [james@gr yp ] Take heart friends.  We're out there.  ;)
+ 325557 [matt@mo s. a] Yes we are!  :D
| 325594 [jgabrielygal] If you can wait, I don't know, maybe... forerever ! I'm planning on
+ 325592 [jgabrielygal] Dominion is on my radar, but I doubt my wife will like it (I play
  325622 [james@gr yp ] <james@grayproductions.net=20

Help with FasterCSV monkey patch
325559 [albemuth@gm ] FCSV.parse "here\\, it is, other fields"  #need:  [["here\\, it is",
+ 325563 [gregory.t.br] Is there a reason why you can't use normal CSV quoted text escaping?
| 325565 [albemuth@gm ] Unfortunately yes, the parsing on the app I'm working on has to be
+ 325569 [james@gr yp ] My advice is don't do this, unfortunately.  :(

Can't read more than one message from a socket
325566 [chris.birkin] I am connecting to a server and then waiting to receive messages over
+ 325571 [drbrain@se m] Since you didn't post your entire program, we can only be of limited
| 325641 [chris.birkin] Thanks for the help. I used your structure (while data = socket.read) as
| 325674 [b.candler@po] Try using read(100) instead of recv(100).
+ 325658 [rogerpack200] recv should work--if you receive "" it means teh connection closed.
+ 325704 [shortcutter@] Are both processes Ruby processes? In that case it's certainly a lot

How to change ruby's global  variable through onclick event?
325579 [vikasg@af at] I have problem that how to change ruby's global variable through onclick

Escaping backquote in filenames
325582 [julien.biard] I would like to execute call system on a filename with a backquote (`),
325586 [nobu@ru y- a] Escaping depends on platforms.
325589 [julien.biard] I am using 1.8.6.

Re: How to change ruby's global  variable through onclick ev
325595 [apeiros@gm .] You're probably better off in the rubyonrails mailing list instead of
325597 [b.candler@po] And in most Rails deployments, there are multiple processes, so a global

Ruby wrapper for xmlsec?
325600 [dhgbayne@gm ] If there's support for XML signing in Ruby out there, I can't find it (&
343298 [frido@q- of ] maybe a bit late but what about
343535 [dhgbayne@gm ] Not too late ... turns out that both that and XmlSig

Separate random number generators?
325602 [bart.braem@g] For simulation work, I want to use multiple, independent random number
+ 325604 [larsch@be un] What do you mean by independent RNG? Numbers drawn from a single RNG
| 325610 [bart.braem@g] I indeed mean separate deterministic PRNGs with fixed seeds for
| + 325612 [chris.lowis@] I know this doesn't meet your criteria of independence from other
| + 325618 [james@gr yp ] Sure.  See the first solution link on that page (also shown in the
|   325687 [bart.braem@g] The first solution is of course not that efficient, I will be
|   + 325691 [larsch@be un] =A0
|   | 325694 [bart.braem@g] =A0
|   | + 325696 [fred@la av .] Can you estimate the number of random numbers you'll need ?  Maybe you
|   | | 325701 [bart.braem@g] That is an idea, but quick calculations show the need of up to 100.000
|   | | + 325712 [matt@mo s. a] How random do the numbers have to be? If a simple LCG is sufficient, =20
|   | | + 325720 [fred@la av .] On a box of mine (a 2.6GHz dual core AMD 64 CPU), it takes 10 seconds to
|   | + 325699 [bart.braem@g] =A0
|   + 325692 [bart.braem@g] =A0
|     + 325695 [chris.lowis@] Out of interest, what kind of problems ?
|     | 325700 [bart.braem@g] The fact that I can't quickly install new software on the grid I use
|     + 325895 [vjoel@pa h. ] I use my own wrapper around Bob Jenkins' ISAAC library. Based on his
+ 325829 [eki@vy ng or] I use it in my game library to provide repeatable random numbers (with the
  325935 [bart.braem@g] ven

containers
325603 [basha.griet@] Hai

containers
325605 [datlasubbara] Hai
325608 [b.candler@po] Did you find some Ruby documentation which uses the word "containers"?
325614 [toastkid.wil] AFAIK 'container' is just a general word for the classes that let you
325647 [shortcutter@] Shark?

Tk supports only GIF?
325616 [albertschlef] require 'tk'
325632 [nagai@ai ky ] If you talk about standard Tcl/Tk only, the answer is "YES"
325793 [albertschlef] Thanks! these two tips solved my problem.
325841 [nagai@ai ky ] I'm sorry about my poor English.
325891 [albertschlef] Thank you for the thorough explanation!
325961 [kw@co eb ke ] While there isn't much Ruby-specific content there, there is a huge

Re: Ruby/MySQL code generator
325617 [albertschlef] Yeah, I too would like to get an answer for that.

How to use the type in the Mysql::Field object?
325619 [patrick.put@] I'm trying to do something like this (not really, I want to use the type
325627 [albertschlef] These constants are defined in some MySQL header file (And perhaps
325631 [patrick.put@] Thank you Alby!
325790 [albertschlef] /usr/lib/ruby/gems/1.8/gems/mysql-2.7/mysql.c
325791 [albertschlef] And by "these constants are defined in some MySQL header file" I was

[ANN] yamltest 0.5.0 Released
325626 [gaspard@te i] This is the first release for yamltest, freshly extracted from zena, a

Design question: class methods verses initialize
325628 [jason.lillyw] what is better for my case?
325648 [ymendel@po o] On Jan 22, 9:40=A0am, Jason Lillywhite <jason.lillywh...@gmail.com>
325650 [jason.lillyw] I am solving for the area of flow in a trapezoidal shaped ditch

Calling class methods from C
325634 [scyllinice@s] I'm trying to call a class method from C. I've tried all combinations of
325636 [jameskilton@] rb_funcall(rb_const_get("CallTest"), rb_intern("go"), 0);
325637 [jameskilton@] Bah, saw a small issue right when I hit "Send".
325638 [scyllinice@s] I tried using rb_const_get but it doesn't appear to call the method.

Re: Ruby 1.9.1 Release Candidate 2 is released
325635 [ansuga@gm il] Thank you very much by your job!

Strings - trying to trim values
325640 [mmc_collins@] What is the correct way to trim off the the first 37 characters of a
325642 [Rob@Ag le on] => "wererwerwerwerweritop123233434345556#personID"
325663 [mmc_collins@] Thanks Rob!

[SUMMARY] Monopoly Walker (#188)
325643 [matt@mo s. a] Writing a simulator for a complete Monopoly game isn't overly complex,
+ 325646 [james@gr yp ] Thanks Matthew.  Great run.
+ 325669 [caduceass@gm] For the railroads, maybe use ruby's truncation of integers...

Choosing the most appropiate Ruby version and programming model to develop a SIP server
325649 [ibc@al ax ne] Rubinius...) and programming models (Reactor Model, Actor Model...) to build
325675 [b.candler@po] Go back one step.
325683 [ibc@al ax ne] It's important, but my aim is designing it in a way that it could be
325684 [b.candler@po] Well, you could use a Rails-like multi-process deployment model;
325686 [ibc@al ax ne] No, the SIP proxy will use a single TCP connection with my server (if
325688 [b.candler@po] - each process accepts *one* inbound TCP connection (*)
325703 [ibc@al ax ne] Could you please explain this last point?
325718 [b.candler@po] while true
+ 325852 [ibc@al ax ne] Thanks a lot, I really appreciate all your help.
+ 325878 [hramrach@ce ] The latest 1.8.6 should be as good as 1.8 ruby goes. There was a 1.8.6

parsing java?
325651 [ryand-ruby@z] I've now done flayjs and flayc in 70 and 61 lines of code
325664 [lists@be tr ] Maybe a Java implementation in Ruby? I know some reasons why no
325670 [ryand-ruby@z] ...and... how does this help?

How to receive data using socket programming
325652 [kamaljeet_si] I have this following code that able to make connection and then
+ 325654 [ryand-ruby@z] The Socket section in the pickaxe is a good place to start. pg 714.
| 325665 [kamaljeet_si] Where is that located ( pg 714 that you referring please ) somewhere on
| 325671 [lists@gr ll ] The book Ryan was referring to (the pickaxe) is "Programming Ruby" by
+ 325672 [b.candler@po] streamSock.gets      # read a line up to \n
  325708 [kamaljeet_si] Can someone help please in interpreting the following C# logic/algorithm
  325726 [kamaljeet_si] I got this following code from
  325823 [b.candler@po] You didn't show any error. What makes you think it isn't running?
  325827 [kamaljeet_si] When i try to run the above code in the SciTE editor ( in the .rb file )
  325867 [b.candler@po] Good. It's a server, waiting for an incoming connection on TCP port
  325868 [b.candler@po] s/2100/2200/

simple ruby program problem
325653 [walkerhunter] So I have been reading Chris Pine's book, "Learn to Program".  I am
325655 [Rob@Ag le on] Well, this is effectively and infinite loop becasue reply will always
325659 [walkerhunter] Yeah, good point.  You are right though, the return statement does stop
325662 [Rob@Ag le on] Try running directly from an xterm (Terminal) window.  I suspect that
325719 [walkerhunter] You are correct, Rob.  Works every time in xterm.  Thank you for the

quoting problem with %x
325660 [oudeis@no om] I'm having a problem invoking external programs from ruby that are passed
+ 325705 [sandor.szuec] =3D> "bla\n"
+ 326618 [t3ch.dude@gm] ide

[QUIZ] Gathering Ruby Quiz 2 Data (#189)
325668 [yahivin@gm i] Greetings!
+ 325711 [robert.dober] =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
| + 325713 [matt@mo s. a] Are you suggesting that a duration of 48 hours varies in duration from
| | 325714 [acooper@pr t] American dollars are not worth as much as the Euro, so I would guess
| | 325732 [gregory.t.br] Damn you Daniel!  First day on the job and you've got your hand in my pocket! :)
| + 325751 [yahivin@gm i] I'm not opposed to extending the no spoiler period to give everyone
+ 325907 [peter@ru yr ] What's the deadline btw? I am almost ready with the solution since the
| 325908 [gregory.t.br] you aren't reasonably timely, you won't have a shot at being mentioned
| 325909 [yahivin@gm i] Gregory is correct, there aren't any hard deadlines. However, if you
+ 326190 [peter@ru yr ] As far as I can tell (the script is generating a several MB single XML

running a program without ruby
325677 [siggesg@ho m] I am a noob in programing, so don't be mad if it's a bad question!
+ 325680 [list.rb@gm i] Ruby2exe?
| 325709 [siggesg@ho m] Yes!
+ 325682 [severus@po t] What does  "without ruby" mean?
+ 325685 [onepoint@st ] Regards,

show error in pop up window
325678 [mailtorajuit] In my project ,there is login page.After entering login details
325690 [b.candler@po] You might be able to do this using AJAX, where the server sends back

Testing against an api
325697 [brentmc79@gm] When testing code that consumes a web service, is it bad for the
+ 325702 [andrew@an re] Two reasons you shouldn't
+ 325715 [phlip2005@gm] Two reasons it's bad. The first is a simple rule "never hit the wire at test
  325743 [chiology@gm ] Check out fakeweb which can be used to help mock out your web service calls

Re: Choosing the most appropiate Ruby version and programmin
325698 [rogerpack200] From my own experience writing a bittorrent-like protocol, it ends up

How to use two submit tag with form_remote_tag
325707 [saurav@ci he] can we use two submit tag with form_remote_tag . If yes then what is the
325716 [phlip2005@gm] This is a Rails question - please switch to the Google Rails Task forum for

WIN32OLE, IE, open an html document..
325717 [Aldric Giaco] I think the following code SHOULD open a document but I get an error
325729 [Aldric Giaco] Fixed ... I just did ie.navigate "myurl.html" instead and got rid of all

class 'initialize' method not working ???
325721 [tomcloyd@co ] I'm baffled by this error, after a hour+ of experimentation with
+ 325723 [lucas.uyezu@] Remove the 'end' after @dbs = dblist
+ 325725 [flo@an er gr] Its not a ruby error.
  325730 [tomcloyd@co ] Florian, thanks for your response. It's a bit of a mind blower, although
  + 325731 [dblack@ru yp] There's another way to look at this, which might be helpful. The way
  | 325734 [tomcloyd@co ] Really cool David. Very lucid. This week I've begun to see whole new
  | 325737 [dblack@ru yp] That is indeed the outline, and it is all written. (I'll cover the
  + 325735 [Rob@Ag le on] Tom,
    325738 [tomcloyd@co ] Wow, this IS my day for Ruby.study - I'm deeply appreciative. Learning

Regexp'n bbcode
325722 [morbusg@tr o] I'm scratching my head over the goal of converting bbcode to markdown.

regex extension to handle matching parens?
325733 [ivowel@gm il] Dear Experts:  I am very new to ruby, literally having just read the
325740 [Rob@Ag le on] I think that you need to look at what Oniguruma might be able to do.
325741 [Rob@Ag le on] Ah, specifically, the "Back reference with nest level" section of
325744 [ivowel@gm il] thank you, rob.  great reference.  now I know that it can be done.
+ 325753 [w_a_x_man@ya] sample = " \\caption{my table \\label{table-label}
+ 325773 [shortcutter@] Ugliness often means bad maintainability...  I'd probably use a

wxruby and the use of sizers - Help, Please!
325736 [ruby.student] I am trying to learn wxruby and to that effect I played with the tutorial,
325742 [alex@de et m] Questions about wxRuby are more appropriate to the wxruby-users mailing
325750 [ruby.student] Alex, thank you for your quick and detailed reply.I will look at the samples

Socket connection to the Tor server
325739 [roux.camille] I'd like to code a script able to connect to the Tor server. Find above
325769 [roux.camille] I found finally how to do that. I forgot to write \r\n at each end of

instantiate a class dynamically
325745 [rpardee@gm i] Hey All,
+ 325746 [fred@la av .] my_object = Object.const_get(my_string.to_sym).new
| + 325747 [rpardee@gm i] Shadow Man)
| + 325748 [dblack@ru yp] ...
| + 325752 [james@gr yp ] Na.
|   325964 [fred@la av .] You are, of course, perfectly right.  I should do my tests _after_ the
+ 325749 [pjb@in or at] irb(main):014:0> className="Hash"

Help on SQLITE3-ruby (1.2.3) Windows problem
325755 [jhs408@gm il] I have installed sqlite3 in directory :  c:\tools\sqlite3\
+ 325761 [bosko.ivanis] Put c:\tools\sqlite3 in the PATH environment variable.
+ 325772 [luislavena@g] For Windows to load shared libraries (.dll) needs to find those in any
  325775 [jeremy@hi eg] Another option is to use Amalgalite which embeds SQLite in the ruby extension,

with or without arguments - how?
325756 [jason.lillyw] I've used methods before that work with or without arguments. I've tried
+ 325757 [cmshea@gm il] On Jan 23, 11:01=A0pm, Jason Lillywhite <jason.lillywh...@gmail.com>
+ 325758 [keeperotphon] my_method(x = 1, y = 1)
  325759 [jason.lillyw] OK, sorry this was a dumb question. I missed default values.
  325774 [shortcutter@] ... and probably the splash operator as well which can be used to

OpenSSL Ruby 1.9? "Certificate verify failed"
325760 [alex.vaillan] I'm trying to use OpenSSL with Ruby 1.9.1 but each time it tells me
+ 325762 [ryand-ruby@z] I've forwarded this with additional verification that windows is not
| 325770 [alex.vaillan] But then, if the certificate verification is stricter in Ruby 1.9, how
+ 325785 [pedrolito@la] http.verify_mode = OpenSSL::SSL::VERIFY_NONE

Sorting array with nils
325763 [sentinel.200] I have been browsing but given answers are not suiting me.
+ 325764 [apeiros@gm .] class Uncomparable
+ 325766 [sentinel.200] did some further debugging and one Time value format was different from

Unsubscribe
325765 [rr3800@gm il] How can i ubsubscribe from this mailing list. thanks

Help me understand this technique from an open source app?
325767 [rps@sa as co] n the code at the bottom (from HTTParty), the module is included in
325822 [b.candler@po] module ClassMethods

Creating p7s/pkcs7 files with Ruby
325768 [yves.vogl@do] after fiddling around a lot these days I'm giving up and asking you =20
+ 325831 [sandor.szuec] I am far from an expert, but maybe you just missunderstood a few things
| 325869 [yves.vogl@do] But isn't this redundant then?
| 343833 [babiben@ho m] is it possible, instead of "DETACHED" in 'signed =
+ 325866 [b.candler@po] Yes. ruby's openssl library is just a thin wrapper around the openssl C
threads.html
top