215540-308359 subjects 215955-217579

A standard like WSGI for Ruby?
215730 [rubyfan@gm i] There's a perennial discussion on Reddit about the strengths of Python vs Ruby.
215736 [twifkak@co c] Well, part of that is mindshare. Consider that the Nitro, IOWA authors
215763 [khaines@en g] At the end of the day, the IOWA/Mongrel integration is a trivial thing,
215818 [logancapaldo] I think that was exactly Devin's point. (Is that it's so trivial, Ruby
215820 [khaines@en g] Yeah.  I was trying to support his point with my example. :)
215823 [logancapaldo] I'm glad this whole thread is people agreeing!
215826 [znmeb@ce ma ] Yes ... I agree

Reading files from the internet into RMagick
215742 [szymon.rozga] I am not sure how to go about doing this. I would like to get a file
215749 [wilsonb@gm i] Does this work?
215816 [szymon.rozga] That works. I wasn't aware of the way binary IO was done in Ruby.

converting a number to a date
215745 [walkerhunter] My XML request returned a date field as a "string" with the value of
+ 215751 [eban@os ri .] % ruby -e 'p Time.at("1158364800000".to_i / 1000.0).utc'
| 215760 [walkerhunter] This helps a lot.  Thank you!
+ 215832 [devlists-rub] You can, if you have any idea how that date is being encoded.  It
  215834 [walkerhunter] What format do I need for the Date or DateTime object?
  215840 [devlists-rub] There are a number of ways to parse dates and times.  The most basic

Re: Apology [WAS: Re: Ducktator - A Duck Type Validator]
215750 [hal9000@hy e] Don't be *too* sorry... after all you have a right to your opinion.
215774 [robert.dober] ...
+ 215780 [foamdino@gm ] Hear, hear!  After all how could the great "Ducktator" flame fest
| 215781 [dblack@wo bl] It seems to me that duck typing exhibits a kind of self-similar
+ 215806 [lyle.johnson] Just for that, I think I'm going to have to blog about you.
| 215810 [robert.dober] ...
+ 215922 [rick.denatal] Wait a minute.....

Bwidgets on Ruby question
215762 [mpthompson@g] I'm looking for some help to get a start with the BWidget wrappers in
215771 [m_goldberg@a] Suggest you visit
215778 [mpthompson@g] Morton,

ANN blindtris
215782 [neleai@se na] This is my implementation of tetris.

Continue code run after assert exception
215784 [aidy.rutter@] I am iterating through a collection and using Test::Unit assertations
+ 215788 [dblack@wo bl] [1,2,3].each do |x|
+ 215804 [pit@ca it in] Aidy, are you using this code in a unit test, or are you using the

AW: Re: ruby spot it ....
215785 [marinho.tobo] That?s a good point... Guess i have to think about that.

[ANN/ADV] Four-day Rails workshop in Alexandria, VA, USA
215786 [dblack@wo bl] I'm going to be teaching a four-day Rails workshop in Alexandria,
215808 [twifkak@co c] Huh. That's good to know. I saw that website (looking for a course to

RAD ( Rapid Application Development)
215789 [gugui_sarubi] Ruby ?
+ 215791 [markarichman] Try Eclipse.
| 215792 [gugui_sarubi] Yeah, GUI designer ! I will try Eclipse !
| + 215793 [alex@bl ck e] I believe rubygtk can use Glade's output directly, but it's still on my
| | 215839 [mforal.news@] Yes you can.
| + 215795 [alexandru@gl] You can try Komodo then. Has a very nice GUI designer for Tk fully
|   215950 [lorenzo.dele] I second the use of Komodo. I've tried other Tk GUI designers and
|   215961 [MonkeeSage@g] There's also wxGlade (and some other WxWidgets based designer which I
|   217306 [david@va ln ] Not even from 8.5 will Tk default to the Tile theme. Reading into
+ 215813 [logancapaldo] Yes, for example, Glade ;) (Gotta love XML UI descriptions)
+ 215819 [znmeb@ce ma ] do what QT Designer can do. You'll pretty much be installing all of the

Search string in HTML file
215790 [jean.verger@] I'm looking the way of searching an string in a HTML file  given the URL.
+ 215794 [jan.svitok@g] Will this do it? (I have not run it, so there may be errors.)
+ 215805 [stephane.eli] require 'open-uri'
  216416 [jean.verger@] thanks ... simple and efficient :) it works
  216891 [bharadwaj.n@] I am a newbie to Ruby and Watir.
  + 216912 [jean.verger@] mmm something like this?
  | 216962 [bharadwaj.n@] On execution the program gives me the following errors...
  | 217159 [jean.verger@] dont know those errors ..., you can troubleshoot ...
  + 217176 [stephane.eli] Madu,

proc and lambda
215796 [soura.jagat@] What is the difference between proc function and lambda function when
215798 [soura.jagat@] Provided of course, I know the differences between Proc.new and lambda
215799 [decoux@mo lo] Well, if you think that proc and lambda behave the same, you'll have a
215807 [robert.dober] ...
215811 [decoux@mo lo] yes,
215827 [robert.dober] ...

Any Ruby Reports (ruports) Examples Out There
215797 [dkmd_nielsen] I'm starting to experiment with Ruby Reports.  Are there any real world
215831 [gregory.t.br] This is a very common question among new Ruport users.  Many folks are

Re: Markaby + Litespeed LSAPI: "warning already initialized
215814 [gwang@li es ] Answer to this question is published at

Would people use a rubyforge apt-get repository?
215829 [xennocide@ya] Just an idea that's been bouncing around my head...
+ 215830 [jameskilton@] ...
+ 215835 [james.britt@] Have you checked the list archives for past discussion on this topic?
+ 215845 [transfire@gm] I can agree with that. As I've said before, one only has to extend this
+ 215858 [wccrawford@g] It bugs me, too, but since only debian/ubuntu/etc use apt as their main
+ 215883 [ibroadfo@ge ] As far as I can tell, all that would be required is for someone to write
  215926 [znmeb@ce ma ] People who run Debian or derivatives of Debian might. I guess us
  + 215928 [bulliver@ba ] It would be trivial to do so. Someone took the time to write a gems eclass so
  | 215929 [znmeb@ce ma ] Yeah ... too bad Portage is written in Python, isn't it?
  | 215931 [bulliver@ba ] Ahhh, I guess you are talking about something more integrated with portage. I
  + 215932 [ibroadfo@ge ] "Alien is a program that converts between the rpm, dpkg, stampede slp,

64-bit integers in network byte-order
215833 [garbagecat10] All,
+ 215836 [dbalmain.ml@] A quick scan of the Ruby source tells me that you'll have to implement
+ 215838 [ara.t.howard] i don't know the answer, but maybe a hack?
| + 215841 [vjoel@pa h. ] replace(reverse) is no different from reverse!, is it?
| | 215848 [ara.t.howard] it's totally different!
| + 215847 [garbagecat10] Sorry, I really can't resist this. Do you know who the big-endians and
|   215850 [ara.t.howard] no.  do tell...
|   215856 [garbagecat10] In Gulliver's Travels, a "little-endian" prefers to crack open
|   215868 [robert.dober] ...
+ 215846 [garbagecat10] Thanks, guys. I sort of figured I'd have to hack it. Ara, I thought of
  215869 [youngh@ca da] may not be necessary.  Depending on your situation, you might
  215876 [garbagecat10] Thanks for the suggestion, but I'm having to interoperate with a wire

GEMs not installing properly
215851 [pbailey@bn .] gem install KirbyBase.
+ 215854 [lyle.johnson] Is your RUBYOPT environment variable set to "rubygems", as described
+ 215860 [smartgpx@gm ] Lyle's advice is probably what you need to know.
+ 215861 [sastph@sa .c] Have you set up the RubyGems environment to use the gem you installed?
  215865 [pbailey@bn .] Thank you all for your help. Yes, it works perfectly now. No, I didn't

Installing Ruby from Source, README needs the command 'make install-doc' documented
215855 [mcochran@ci ] Recently, I compiled ruby for the second time in my life last week.

discovering the OS
215857 [lister@pi kl] just wondering if there is a way to find out which OS ruby is running on?
+ 215862 [wccrawford@g] else
| 215867 [invalid@gm .] Hm, what about Config::CONFIG['target_os'] or Config::CONFIG['host_os']?
+ 215863 [ara.t.howard] try this
+ 215864 [smartgpx@gm ] RUBY_PLATFORM?
  215866 [wccrawford@g] Spoilsport.  Why's Ruby always gotta make things easy?  -sigh-

Threading and the MySQL
215873 [fred@82 sk c] We've noticed the following slightly odd behaviour when executing long
215895 [jeremy@bi sw] ...
215902 [fred@82 sk c] I was rather fearing that would be the case
215933 [ezmobius@gm ] I have a new version of backgroundrb that supports multi process
216047 [fred@82 sk c] Excellent,  that sounds great (I'm a big fan of backgroundrb)

Ruby TK list question
215874 [htruax@st .c] ...
215941 [m_goldberg@a] question you're asking. It displays a two-stage color browser for X11

Accessing LDAP jpegPhoto attribute in Ruby...
215875 [augustf@gm i] In writing my Ruby LDAP application, I'm able (with activeldap) to
215877 [garbagecat10] Have you tried querying this attribute with the Net::LDAP library? It
215878 [augustf@gm i] Sorry to impose further, but I'm a relative newbie to Ruby - what would
215879 [garbagecat10] I'll contact you privately. Then if this succeeds we'll post the
218919 [augustf@gm i] Since my last post, I've made some significant progress on this

python from within irb :)
215880 [rtilley@vt e] Welcome to Darwin!
215886 [MonkeeSage@g] Yeah, works the other way too...

Deconstruction of Array Parameters by Functions
215882 [sickfaichezi] I would like to pass arguments to a function that takes a variable
+ 215884 [vjoel@pa h. ] my_var_arg_function(*my_array)
+ 215885 [dbalmain.ml@] Something like this?

rdoc with c extensions
215888 [snacktime@gm] I'm trying to figure out the best way to have docs for a c extension
219774 [drbrain@se m] Include the .c file in the RDoc file list and it will get scanned for

cryptography (RSA)
215896 [rorra@ro ra ] I trying to do some cryptography between ruby and php, I don't get
+ 215898 [gavin.kistne] irb(main):001:0> 140.chr
| 215999 [rorra@ro ra ] irb(main):003:0> 140.to_s( 8 )
+ 216214 [Roland.Schmi] i think that you used the openssl-ruby-bindings in a wrong way.
  + 216278 [rorra@ro ra ] thank you very much for the answer, I didn't know about the key length
  + 216296 [rorra@ro ra ] I did as you say, and I'm still having different results... I'm really
    216301 [ptoomey3@ma ] I am coming into this conversation in the middle, but a quick googling found the following discussion.  http://www.bigbold.com/snippets/posts/show/576

215897 [rorra@ro ra ] the title should be: Cryptography (AES)

Firebird ! anyone is using it with Ruby ?
215900 [gugui_sarubi] what the best component to use Ruby with Firebird ?

XP: "An existing connection was forcibly closed" ECONNRESET
215903 [dokondr@gm i] I am running Ruby 1-185-21 on Win XP without any proxy enabled.
+ 215910 [mike@ru yw z] Dima,
+ 216029 [garbagecat10] ...

Advice on using define_method in ActiveRecord descendant
215904 [weyus@at .n ] All,
215906 [gavin.kistne] You're not defining the method quite correctly. You want the new_value
216300 [weyus@at .n ] Gavin,

[QUIZ] Code to S-Exp (#95)
215905 [james@gr yp ] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 215918 [ryand-ruby@z] Am I exempt from the quiz?
| 215920 [james@gr yp ] Of course not.  The real question though is using ParseTree cheating,
| + 215957 [ryand-ruby@z] That is up to you. I've spent approx 30 minutes on this so far and
| | + 215997 [znmeb@ce ma ] I was going to write it in Scheme, use a Scheme-to-C compiler, and then
| | | 216028 [robert.dober] ...
| | | 216121 [znmeb@ce ma ] Speaking of duck typing, the first time I heard the phrase "walks like a
| | | 216154 [hal9000@hy e] The first time I heard the phrase was in 1980 or '81 when my friend
| | | + 216163 [znmeb@ce ma ] Well, it turns out Dirksen most likely got it from Richard Cardinal
| | | + 216194 [fprimus@ux .] "If it looks like a duck, walks like a duck, and quacks like a duck,
| | + 216025 [james@gr yp ] I'm not really about restrictions.  If a quiz can be easily solved
| + 216032 [james.britt@] What about using the sexp library?
|   216033 [james@gr yp ] Fine with me.  Code it up and don't forget to brag about how little
+ 215924 [znmeb@ce ma ] Could you write some more tests? :)
| 215952 [robert.dober] ...
| 215954 [sander.land@] sxp {3.meth(*[1,2,3]) }   => [:meth, 3, 1, 2, 3] for me, don't know
| 216725 [kbloom@gm il] Here's a few important ones that I just thought of. This should make the
+ 216291 [sander.land@] Here is my solution.
+ 216295 [james@gr yp ] I wanted to see how far I could get if I let Ruby do the math.
+ 216368 [robin@ni or ] Here's my solution which uses Ruby only and modifies core classes and
  + 216593 [kbloom@gm il] Very elegant solution, much more elegant than my own. I'm thinking of
  + 216594 [kbloom@gm il] Very elegant solution, much more elegant than my own. I'm thinking of

[ANN] New RMagick article: The Polaroid Effect
215908 [TimHunter@nc] A couple of weeks ago I saw a nice image special effect in a book about
215912 [gavin.kistne] I'm interested, but that appears to be the script, not the article.
+ 215913 [TimHunter@nc] Rats. http://rmagick.rubyforge.org/Polaroid/polaroid.html
+ 215914 [mike@ru yw z] It's here: http://rmagick.rubyforge.org/Polaroid/polaroid.html

Please define these terms
215909 [transfire@gm] (And add any you think might be missing from the set)
+ 215923 [znmeb@ce ma ] Well, an obvious missing one is "platform".
| + 215948 [robert.dober] ...
| + 215960 [gene.tani@gm] distribution, release, version, port, binary, one-click, embedding,
|   215996 [znmeb@ce ma ] Deployment, architecture, schema ...
|   216000 [MonkeeSage@g] namespace, callback, protocol, server, client...
|   216026 [transfire@gm] Well, I think we're starting to get too far outside the scope of
+ 215945 [robert.dober] ...
+ 215947 [MonkeeSage@g] That's actually harder than it might seem at first (at least to do it
+ 215985 [gavin@re in ] ...
| 216244 [transfire@gm] Application
| 216306 [nospam@no it] / ...
| 216353 [vjoel@pa h. ] I would say that the distinguishing feature of a Framework is that it
| 216390 [nospam@no it] / ...
+ 216003 [logancapaldo] A process or system of processes
| + 216057 [transfire@gm] That seems a little to scant, although perhap acurate. It weight heavy
| | 216072 [twifkak@co c] I know people consider it a copout when someone shouts "SEMANTICS!"
| | 216077 [transfire@gm] I'm trying to codify some of these "things". So it isn't actaully
| | 216085 [nospam@no it] s/codify/clarify/ ?
| | 216099 [transfire@gm] class Library
| | + 216109 [nospam@no it] Yes, I understand. That was my interpretation also. Programs are not
| | + 216111 [twifkak@co c] All right, now I feel guilty for derailing the thread.
| |   + 216184 [jmg3000@gm i] The things I keep filling out but not getting callbacks on.
| |   + 216193 [transfire@gm] A Project Management Application, i.e. Build Tool. Partly I'm just just
| + 216079 [chiology@gm ] Logan, that has got to be the coolest thing I've read about projects
+ 216086 [snacktime@gm] Beer?
  216095 [MonkeeSage@g] +1

Class-Level Instance Variables
215911 [ng@jo nw on ] Maybe this is new for some people. Did I get my facts straight?
215917 [twifkak@co c] Looks like it. Nice post!

Re: Wow! Jamis Buck + blog + GDB + C API == mind blowing coolness
215915 [snail@ob me ] <6fd0654b0609221547x60874366ld181ee5f99b0c495@mail.gmail.com>, pat eyler
215953 [decoux@mo lo] You don't need emacs, just hit ^X-2 (Control-X 2) and you'll have 2 windows

215916 [rick.denatal] Sorry, I've only seen it on TeeVee.

real IDE for os-x
215919 [lister@pi kl] i just switched to a mac and was wondering about IDEs.
215921 [james@gr yp ] Well, I'm a TextMate fan, so I'll comment on how I use it to do these
215935 [nepentherepr] TextMate is all that and a bag of chips, like any powerful tool,
215936 [ruby@sj iu c] I use RadRails and I personally like it. It has come a long way in terms
+ 215939 [lister@pi kl] I'm comfortable with eclipse but assumed radrails is very geared
| 215951 [lorenzo.dele] I use RadRails on my PC and TextMate on my Mac for straight Ruby
+ 216222 [verno@ma li ] A real IDE for Ruby & Mac OS X seems to be Komodo
  216242 [chiology@gm ] I'm new to emacs, but I'm certain it can be made to do what you want
  216329 [dsledge@ap r] Try RDT for eclipse from www.rubypeople.org. Its a ruby plugin and is

How do I instantiate a class who's name is dynamic?
215940 [rogojin@gm i] require 'somefile.rb'
+ 215942 [rogojin@gm i] That is, without using eval( magic_etc + ".new" )?
+ 215943 [dblack@wo bl] irb(main):001:0> s = "somefile"
| 215969 [lopx@ga et .] I know that eval is not save but it appears that it is much faster than
| + 215973 [invalid@gm .] You may speed your method up a little by avoiding blocks with multiple
| + 242552 [patrick@pk p] Just out of curosity, how is "eval()" not safe? I'm doing something very
|   + 242554 [farrel.lifso] Unless you have tight control of your user input you run the riskinjection attacks where you might  eval "system('rm -rf /')".
|   + 242556 [dblack@wo bl] command = gets.chomp  eval "system('#{command}')"
|     242563 [patrick@pk p] Thanks David and Farrel! Certainly, the Object#const_get() is a much
+ 215986 [eero.saynatk] You want Module#const_get which must be called on the
+ 216007 [ara.t.howard] -a