174746-343163

174579-338681 subjects 175006-217280

Geography/Map Classes?
174746 [ljr2600@gm i] I'm still very new to Ruby, however am growing to like the language more
174783 [vanek@ac .n ] Below are my zipcode notes. None of this originates from me, so I

Newbie question (Array.<<)
174747 [talanb@gm il] ...
+ 174750 [angus@qu va ] [Todd Breiholz <talanb@gmail.com>, 2006-01-08 04.15 CET]
+ 174751 [angus@qu va ] [Todd Breiholz <talanb@gmail.com>, 2006-01-08 04.15 CET]

[ANN] Family Connection 1.1.2
174753 [duane.johnso] ...
174834 [ezmobius@gm ] Duane-

Is Ruby RAILS really suitable for modern Web Development ?
174768 [Roseanna80@h] I have been reading through RAILS and builing the Depot Application
+ 174771 [joevandyk@gm] A lot of people use vim, emacs, or textmate (for OS X).
+ 174772 [gregory.t.br] You might find people who can make a more compelling argument for
+ 174779 [l.d.u.n.c.a.] Rails sits on the server ('server-side' development), whereas you're talking
| + 174780 [zacharooni@c] Most Web Applications don't use Heavy Dynamic Graphics. You're starting by
| | + 174791 [steve@wa ts ] Thanks for your message about Ruby on Rails.  I think you'll find
| | + 174927 [Roseanna80@h] Thanks Luke
| |   175041 [joevandyk@gm] Rails is not an acronym.  So it shouldn't be capitalized.
| + 174930 [Roseanna80@h] I guess was asking how RAILS could relate to any dynamic graphical
| + 174932 [Roseanna80@h] Thanks Luke
| + 174933 [Roseanna80@h] Thanks Luke
|   174951 [perrin@ap th] In other words . . . you're looking for Flash and Java applets without
+ 175042 [leavengood@g] I would say the majority of the Rails framework is about the server

iphoto parsing
174773 [patrick@he a] Following up on my earlier plist posting, I've just put together a
174948 [pere.noel@la] fine thanks !

You want a Ruby extension? Talk to me, baby
174775 [joevandyk@gm] I've figured that it's probably worth my time to learn how to better
+ 174777 [gregory.t.br] Improving, expanding, cleaning up and otherwise working on the mysql c
| 174804 [bob.news@gm ] I'm not sure about MS SQL bindings but IIRC they use ODBC and hence are only
| 174825 [gregory.t.br] MS SQL uses ODBC or ADO.
| 174844 [gerardo.sant] If this helps, I work with unixODBC + Ruby ODBC + Informix on Solaris
+ 174781 [surrender_it] enhancing/updating ruby-gst, the bindings for gstreamer.
+ 174782 [chneukirchen] Christian Neukirchen  <chneukirchen@gmail.com>  http://chneukirchen.org
+ 174785 [ruby@an hr p] } Hi,
| 174799 [vacindak@gm ] I second the vote for getting libical going in a Ruby environment.
| 174888 [victor.reyes] ...
+ 174789 [vanek@ac .n ] if you want to wade into the deep end, I would like a method that would
| 174802 [bob.news@gm ] Just store the binding on a stack for all events like "call" and remove it
| 174833 [vanek@ac .n ] i wasn't aware of set_trace_func.
+ 174793 [jim@fr ez .o] I would like to see the Packet Capture Library (libpcap) updated.
+ 174796 [victor.reyes] ...
+ 174994 [rdm@cf l. om] Dynagraph is a set of dynamic graph drawing engines, based on
+ 175032 [drbrain@se m] Pff, writing extensions sucks.  Just use RubyInline and save yourself
| 175039 [joevandyk@gm] Is there any documentation on how to use RubyInline to interact with a
| 175211 [drbrain@se m] There's a complete tutorial that ships with RubyInline.
+ 175118 [no.spam@pl a] I might be out of date, perhaps it's been done and I don't
  175212 [drbrain@se m] You don't need an extension for that.  You've already got Ruby-GTK
  175213 [mental@ry ia] He's probably wondering specifically how to get from an RMagick
  175218 [detlef.reich] my_pixbuf = Gdk::Pixbuf.new(rmagic_image.to_blob,
  175228 [no@sp m. le ] Absolutely *magick*. Thanks all.

[MacOS X] QtRuby/smoke make don't find headers
174784 [pere.noel@la] I'm under way to install QTruby but i'm stuck at smoke / make level.

gem installation
174795 [r.mark.volkm] I see that when I install a gem, it gets installed under
174925 [gsinclair@gm] If you used Ruby 1.6 to execute "gem install foo", then foo would be

Problem with dbtalk
174797 [cplus_develo] applicaton name dbtalk07 inserted in

Newbie question about threads and gets
174798 [jacekolszak@] I've a simple question - how can I write an application with two
+ 174805 [billk@ct .c ] This tends to be a problem with Windows ruby.  It seems unlikely to be
| 174808 [jacekolszak@] Yes.. I'm using winxp currently :(
+ 174807 [bob.news@gm ] I'm not sure what you're up to in the end but I'd start with commenting
  174816 [jacekolszak@] First of all... thanks for help. I've set sync to true and remove
  174819 [jacekolszak@] $stdout.sync=true
  174939 [bob.news@gm ] Are you aware of the fact that ruby will exit as soon as the main thread
  175033 [jacekolszak@] Yes... I know...

[QUIZ.SOLUTION] Dice Roller (#61) We don't need no steenking leexer/parsers
174809 [novakps@gm i] ...
+ 174956 [ruby@an hr p] }
| 174968 [novakps@gm i] No, the mis-understanding is all mine.  You are right, otherwise it
| 174971 [simon.kroege] (0..5).inject{|x,y| print y, ' '}
| 174989 [novakps@gm i] Excellent!  Less typing, and more importantly, less to parse when reading.
+ 175078 [matthew.moss] Here's my own solution, which isn't nearly as pretty or clever as some

[/QUIZ] Dice Roller (#61)
174810 [luke@bl ns a] ...

[SOLUTION] Dice Roller (#61)
174811 [billk@ct .c ] ...
+ 174821 [p.barbierder] ...
+ 174824 [chneukirchen] # There it goes, using eval for simplicity, but at least compiling the
+ 174840 [mail@ex ti o] Here is my solution #1 for this nice quiz. Hacky and short, without (!)
+ 174842 [mail@ex ti o] here is my second solution. Quite a bit longer, but a lot nicer.
  174851 [james@gr yp ] Awesome!
  + 174877 [dbatml@gm .d] Here is my solution.
  | 174945 [grddev@gm .n] ...
  | 175005 [adam.shelly@] Here's my solution.
  + 175162 [mail@ex ti o] Thanks :)

Re: [QUIZ.SOLUTION] Dice Roller (#61)
174812 [M.B.Smillie@] I used the same approach, but found that ** is right-associative (as
174813 [novakps@gm i] Good catch.  I felt uncomfortable building this without unit testing.

DRb troubles, cannot Marshal or proxy objects successfully.
174818 [seanatiheart] I've been trying for hours trying ot get my DRb session store working.

[SOLUTION] Dice Roller (#61)
174845 [jearles@sy p] 'eval', but I figured I might as well learn a little about expression

Re: [QUIZ] Dice Roller (#61) ([SOLUTION])
174854 [rosco@ro co ] Sorry for the noise.

Passing a hash of args
174858 [lists@tu ni ] Is there a way to pass each item is a hash as a successive argument to a
+ 174860 [marcel@ve ni] Hashes aren't ordered. Otherwise you could just do Time.local(*time.values).
+ 174861 [dharple@ge e] Time.local(*time.values.reverse)
| 174866 [rosco@ro co ] Pretty sure that'd only work with some hashes, and only if you had less
| 174870 [dharple@ge e] Yes, my mistake. (too late to be thinking here...)
+ 174862 [james@gr yp ] Well, Hashes are unordered by definition, but as long as we declare
  174873 [lists@tu ni ] Cool. Thanks everyone. I didn't realise you could do *myvar when calling
  174882 [dblack@wo bl] send(UNITS[unit])
  175007 [lists@tu ni ] Awesome, thanks. I did feel the method/call bit was slightly ugly.

[SOLUTION] Dice Roller
174859 [stefan.walk@] but it was fun to write... ;)

Adding a method to a single object
174884 [marco.lange@] how is it possible to add a method to a single object programatically?
174886 [dblack@wo bl] def obj.meth

global variables are bad??
174890 [info@ja eo a] Chaps,
+ 174901 [slitt@ea th ] The global vars in the code you quoted were used not as variables, but as
+ 174902 [lyndon.samso] ...
  + 174991 [eeklund@gm i] Hazzle free packages for Ruby?
  + 175061 [eeklund@gm i] What's important here is how easy the code is to work with.  Global
  + 175103 [david@va ln ] The main advantage of instance variables to global variables is that
    175123 [lyndon.samso] ...
    + 175128 [lukfugl@gm i] It's not. Both are bad design. However, in the case of the class +
    | 175149 [david@va ln ] I'm with Jacob on that one, if you abuse OO, (or rather fail to make
    + 175130 [slitt@ea th ] Why would you do that? With hundreds of methods, wouldn't these hundreds of
      175133 [lyndon.samso] ...
      + 175150 [david@va ln ] Static methods on helper classes? Eww... Lawks, you call those global
      + 175188 [lukfugl@gm i] Let me reconcile what Martin Fowler is saying there with Steve's

[ANN] Red Letter: The Ruby Journal site takes shape, accepting proposals
174893 [ruby.journal] After a brief hiatus over the winter holidays, Red Letter: The Ruby

[ANN] Do you run a Ruby user group, SIG, or conference?
174896 [ruby.journal] Red Letter: The Ruby Journal will feature a Community page dedicated
175001 [rdm@cf l. om] I don't know if it qualifies for inclusion, but I run the

Making a count of unique elements in an array
174910 [dan@da ko n.] Given an array, I need to produce a two-dimensional resulting array
+ 174913 [botp@de mo t] #counter = {}
+ 174942 [bob.news@gm ] => ["a", "b", "b", "c", "c", "d", "e", "e", "e"]

[ANN] Phoenix Ruby Users Group January meeting reminder
174911 [james_b@ne r] Monday, Jan 9, 6:15 PM at Cyclone Commerce.

New Haven Rubyists Meeting 2005.01.11
174914 [gregory.t.br] The New Haven Ruby Brigade's monthly meeting will take place on
175249 [gregory.t.br] Just a note for those who are interested, the wiki is down for

DRB server
174915 [alexmaster85] My DRB server should print a message if a new client has connected,
175035 [drbrain@se m] That should go in your front object, the one you pass to

How to programatically submit a form that uses document.forms[0].submit()
174916 [groupalias@m] have been trying to use Mechanize to submit a form and scrape the
+ 174964 [amrangaye@gm] I'm guessing checkSelections() merely verifies that the form parameters
+ 175048 [leavengood@g] Depending on what the JavaScript is doing, you may or may not need to
  175274 [david@va ln ] Which is so wrong on so many levels, and calls for hammering the server

Re: PDF Library - Reading the PDF Document .. and sort of [ANN] rpdf2txt
174919 [hwyss@yw se ] As a matter of fact there is a pure-ruby PDF-reading library.

About Tcl/Tk
174920 [biyokuantum@] In order to build GUIs with Ruby, should I learn Tk?
174967 [H.T.de.Beer@] No, there is no need for learning Tk if you do not want to use it. At
174980 [piet.haderma] Surgeon,
+ 174997 [biyokuantum@] Oh, these are so nice! I didn't know them. Thank you very much indeed!
+ 174998 [biyokuantum@] Oh, these are so nice! I didn't know them. Thank you very much indeed!
| 175002 [biyokuantum@] Is it possible to build a GUI with *NON*-native look and feel? I mean,
| + 175125 [me@ja on li ] charset="iso-8859-1"
| | 175137 [piet.haderma] No, I didn't. But I'm pretty sure you'll still have to install the fox gui
| | 175334 [david@va ln ] FOX and fxruby seem to have binary distributions for Windows, which
| + 175152 [david@va ln ] For the sake of being nitpicky, I have to say that's a VERY bad thing to
+ 175010 [snowzone5@ho] just out of curiosity did you try fxruby with rubyscript2exe?
  175023 [alex.combas@] I was hoping ruby-gtk would be what I was looking for, but I haven't started
  + 175049 [snowzone5@ho] didn't work with rubyscript2exe. i'd rather not have the customer
  + 175124 [me@ja on li ] charset="iso-8859-1"
    175167 [snowzone5@ho] v4 out for windows yet? googling for it didn't come up with anything

Remove HTML from String?
174921 [jonathan.ott] I can't find a method to remove HTML from a string in the core API. PHP
+ 174950 [hsanson@mo g] A regular expression can strip the HTML tags from any string...
+ 174958 [halostatue@g] Not built in. It's not really appropriate for the core language.
| 175090 [gavin@re in ] ...just pray that the HTML you are modifying is valid, and not some
| 175097 [emschwar@er ] More like, "Just pray the HTML you are modifying doesn't happen to be
| + 175108 [ryansobol@gm] If you're concerned about prevent browsers from rendering the HTML in
| + 175171 [halostatue@g] Actually, that is *not* completely valid, at least not valid XHTML
|   175237 [emschwar@er ] When wrapped with the appropriate tags, it validated HTML 4.01, which
|   175250 [rubytalk@gm ] ...
+ 343163 [balepc@gm il] Here is a gem for sanitizing strings http://wonko.com/post/sanitize

rue teaches piglet about symbols on #ruby-lang
174929 [alex.combas@] Taken from #ruby-lang with a slight cleanup
+ 174953 [perrin@ap th] Woah, that was confusing.
| + 175003 [mental@ry ia] Another stands.  "No, I am piglet."
| | 175082 [mike@st k. o] That is a scenario Roo would rue.
| + 175021 [james_b@ne r] "When I use a symbol," Humpty Dumpty said, in a rather scornful tone,
| + 175064 [alex.combas@] The reason its so confusing is because that was an actual irc conversation.
| + 175126 [mszpak@gm il] Surely piglet meant
+ 175339 [david@va ln ] You mean someone doesn't find cleverly disguised flames and small-scale
  175369 [alex.combas@] As long as you're not the one initiating or perpetuating these "flames
  175381 [david@va ln ] Depends on the time of day, season of the year, caffeine level, sexual

DRb troubles, cannot Marshal or proxy objects successfully.
174931 [sean.swolfe@] I've been trying for hours trying ot get my DRb session store working.

simple match of items in 2 arrays
174936 [clsnyder@gm ] 02115, 10
+ 174943 [janchrister.] Charles,
| 175106 [clsnyder@gm ] Thanks everyone - Robert's method works for me with minor alteration.
| 175107 [janchrister.] CLS,
+ 174946 [robin@ni or ] You can use the CSV module. As Christer already pointed out, you have
  + 174952 [kbass@mi so ] ...
  + 174955 [bob.news@gm ] - read only lookup zips into mem and process the other line by line

Re: "Living Dangerous" stage 2, summarizing ideas
174938 [gene.tani@gm] who 1st used the D-word, Matz, maybe?
+ 174940 [gregory.t.br] um... no it's not. Are you looking at the tarpit?
+ 174944 [zimba.tm@gm ] I wanted to change the wiki but I'm not sure what I think is right
  + 174977 [ryansobol@gm] ...
  + 174981 [gwtmp01@ma .] Is this a 'Ruby' issue?  Isn't this true of any library/class/etc. that

Module or Class Style?
174941 [henryj@pa ad] I have some code that I'm thinking of releasing into the wild. It is
175136 [m.fellinger@] It very much depends on your code, but generally wrapping everything into a

hash as paramerter container
174966 [uval@rz un -] I am looking for Ruby equivalent for this Python Code
+ 174969 [james@gr yp ] => nil
+ 174999 [bob.news@gm ] I don't know Python but I assume that foo(**h) assigns hash entries to
  175012 [adam.shelly@] What about

[SOAP4R] empty string in response with method defined by means of add_method
174970 [aastanti@ho ] I'm using a java web service with a ruby client. The easiest thing to
178487 [nakahiro@sa ] Sorry for late reply.

use of "return"
174972 [ruby@gm il c] ...
+ 174973 [dblack@wo bl] security_token
| + 174978 [daniel.schie] def foo
| + 174984 [bob.news@gm ] def authenticate(login, pass)
| + 175132 [jim@fr ez .o] Seems like every time I check, code with a 'return' runs slower
|   175193 [leavengood@g] require 'quickbench'
|   175272 [david@va ln ] Most weird. Let's hope someone notices and the compiler is modified to
+ 174974 [hawkman.gelo] ...
  174986 [bob.news@gm ] In this case you wouldn't use return values to flag this error.  It's is a
  175350 [david@va ln ] Indeed, arg.to_str would be a more consistent duck typecheck. (Le Groan,

ruby-odbc -- Strange Chaning of Special Character in Result Set
174975 [bgribaudo@ib] Some strange behind-the-scenes character conversion appears to be
175081 [vanek@ac .n ] as shown below), and when the output was sent to bash standard output all
175346 [bgribaudo@ib] Thanks for your reply.
175359 [vanek@ac .n ] I'm not familiar with FreeTDS, but Google says that some versions of FreeTDS

RubyMock URL not working?
174976 [seanhussey@g] The URL listed on http://www.rubygarden.org/ruby?RubyMock for b13media
175161 [jim@we ri hh] Posted via http://www.ruby-forum.com/.
175227 [seanhussey@g] Thanks!  I'll give it a try.

Differing signedness warnings when compiling ruby-odbc.
174979 [bgribaudo@ib] When compiling ruby-odbc 0.996 on Ubuntu Breezy, gcc outputs a number

Rubydoc.org
175000 [belorion@gm ] ...
+ 175004 [james@gr yp ] I'm not sure what that URL is suppose to lead to, but I'm having no
+ 175013 [james_b@ne r] Are you looking for ruby-doc.org?
  175015 [alang@cr no ] # host www.ruby-doc.org
  + 175018 [lyle.johnson] FWIW, looks like rubydoc.org is registered to Sean Chittenden (also
  | 175037 [rosco@ro co ] Sean recently reappeared and is now keeping a hand on the helm of the
  + 175019 [james_b@ne r] I think it was, or was intended to be, but it drifted off.
  + 175038 [belorion@gm ] ...
threads.html
top