356243-357973
356044-357882 subjects 356435-360128
^ [ANN] Google Summer of Code 2010
356243 [james.britt ] Looks like they are accepting proposals, if Ruby Central or whomever is
^ Adding keys to a hash in a loop
356245 [realmadrid27] output.each do |item|
+ 356246 [shortcutter ] Erm, how would you put a key value pair into a Hash without a loop?
| 356247 [realmadrid27] This is the loop...
| 356248 [marnen marne] output_hash[item.name] = value . << is only useful with arrays, not
| 356250 [realmadrid27] Thanks, I know << is only for arrays. Using = will only end up with one
| + 356251 [marnen marne] Wrong. Do it inside the loop, for each key in turn. Try it!
| + 356252 [matt conundr] output.each do |item|
| 356255 [realmadrid27] There we go! Thanks!
+ 356260 [b.candler po] output.each do |item|
| 356261 [marnen marne] Yes. Although merging a single-key hash seems silly, and creates extra
+ 356292 [yermej gmail] Depending on how you'll be using output_hash, you might use a default
356294 [shortcutter ] Actually, no. :-) But you are right, this is certainly an option in
^ Porter algorithm and stemming
356258 [vriffier lsf] I'm trying to implement the porter algorithm for French words.
^ TK: Get the "usable" screensize"?
356259 [a99.googlegr] how can I get the "usable" screensize in Ruby/TK?
+ 356372 [nagai ai.kyu] Hmmm.... Well, does this work?
| 356404 [a99.googlegr] it works, thank you!
| 356417 [nagai ai.kyu] Yes. winfo_* methods and module methods of TkWinfo module are
+ 356382 [nagai ai.kyu] FYI, Ruby/Tk can use Tcl scripts.
| 356405 [a99.googlegr] Very interesting! Didn't know about this.
| 356418 [nagai ai.kyu] And Ruby/Tk can load Tcl/Tk's dynamic libraries.
+ 356408 [arndt.roger ] in comp.lang.tcl 11/06/2009
^ Module children
356263 [roux.camille] I'd like to get the list of all the classes contained in a module.
+ 356264 [augustlillea] Here's a quick and dirty implementation using ObjectSpace
+ 356265 [aaron tender] => nil
+ 356266 [augustlillea] On Feb 1, 10:06=A0pm, Aaron Patterson <aa...@tenderlovemaking.com>
+ 356268 [ryand-ruby z] => [Foo::B]
356270 [james grayso] => [Foo::B]
356278 [ryand-ruby z] Ah! I always forget about that one. Good catch.
^ Errno::ENOENT: No such file or directory - --readline
356282 [randallsata ] I cannot find a resolution to this problem and figured someone here
+ 356334 [rogerpack200] Do you get this if you have gets just in a file (like yo.rb)?
| 356335 [randallsata ] Good call... It appears to work that way!?! What does that mean?
+ 356337 [djberg96 gma] .17
+ 356366 [echristopher] It appears that somewhere along the line you have a program invoking
356380 [randallsmart] AHH! THAT'S IT!
356381 [randallsata ] Thank you. That seems to be what caused my problem. I deleted the .irbrc
^ [ANN] rdoc_osx_dictionary 1.1.0 Released
356285 [ryand-ruby z] rdoc_osx_dictionary version 1.1.0 has been released!
356305 [eregontp gma] * Setting $LC_ALL to C to fix unicode errors discovered in iTerm.
356307 [eregontp gma] Sorry, apparently I didn't have any share/ri dir with my core classes,
^ Re: ruby and ralis failed
356286 [badlands_200] I had just found out that ruby and rails failed me as a programmer, because=
+ 356287 [marnen marne] That's not Ruby or Rails failing you. Unzipping files is a basic skill.
+ 356288 [josh.cheek g] This sounds like an issue with the book rather than the language and
356449 [badlands_200] it just do not work and Iam not happy with it.
+ 356475 [josh.cheek g] Have you tried the steps listed at http://www.ruby-lang.org/en/downloads/ ?
+ 356556 [albertschlef] What is this character you have to the left of the prompt? Looks like
356565 [josh.cheek g] It's a hammer and sickle. At my work, use (or were using) a unicode
356582 [marnen marne] Yuck! Don't you use version control?
356595 [josh.cheek g] Git is version control.
356656 [marnen marne] Sure is; I didn't know if you were using it.
^ Is readline really broken in MacOS Snow Leopard!?!?!
356289 [b3082088 ugg] It seems that readline (and hence gets) is broken in Ruby 1.8.7, on Mac
+ 356290 [ben bleythin] Uh, Snow Leopard is 10.6. That article is about 10.4. Snow Leopard
+ 356293 [ryand-ruby z] Mac
+ 356316 [jose.halesga] charset=us-ascii
356336 [b3082088 ugg] Yes, I know 10.6 is Snow Leopard, and 1.8.7 came with it. I am wondering
356343 [marnen marne] Just follow the instructions at
^ shopping
356296 [vinoth36.shc] First on net, Bargain your products in online through our
^ newbie question - RESTful web service book
356297 [brw314 gmail] I'm new to ruby, reading a book, "RESTful Web Services" by Richardson
356299 [pierre.lecoc] If you type this command, you will see all the gem packages available
356321 [pierre.lecoc] Erf ...
^ Where are my ruby gems located? Why don't executables such as spec work?
356298 [kmandrup gma] I'm on Mac OSX Snow Leopard, running Ruby 1.9.1
+ 356300 [pierre.lecoc] sudo find / -name "gems"
+ 356301 [botpena gmai] what is "gem which"
+ 356330 [hassan.schro] try `gem env` :-)
356332 [jdezenzio gm] This is the correct way of finding your gems.
^ Ruby Threads From C
356304 [mido.peace g] I'd like to know how can I do to create ( or instantiate ) a Ruby Thread
356333 [rogerpack200] I'd just lookup the Thread class and call a "new" on it, passing it a
356352 [barjunk attg] Do you you have an example of doing this from within C that you can
356370 [rogerpack200] Appears there's also an rb_thread_create, though I have no idea how to
356399 [mido.peace g] rb_funcall3(rb_const_get(rb_cObject, rb_intern("Thread")),
356420 [rogerpack200] The code at
^ [ENCODING] UTF8 hell
356306 [xavier.noell] I'm trying to deal with Ruby flaws with encoding, which I thought
+ 356308 [stefano.croc] I'm not sure, but basing on my experience, it may be that the string are=20
+ 356309 [dvdplm gmail] There are several pieces to this. Even if the DB encoding and collation is utf8, doublecheck that the client connection is utf8 as well ("encoding: utf8" in database.yml for a Rails app I think).
356312 [xavier.noell] Not a Rails app :-)
356315 [shortcutter ] is utf8, doublecheck that the client connection is utf8 as well ("encoding:=
357908 [xavier.noell] I dug into the problem and ended up with this line: self.force_encoding('UT=
+ 357925 [matz ruby-la] 233 is not a valid UTF-8 character. The byte sequence for m=E9dicals is
| + 357927 [rick.denatal] 233 for e accent acute would be valid for ISO-8859-1 encoding, not UTF-8.
| + 357928 [xavier.noell] def isUTF8()
| | 357973 [m.fellinger ] icals is
| + 357938 [Ruby GoogleM] A general hint for debugging encoding troubles: the UTF-8 encoding
+ 357964 [shortcutter ] ('UTF-8')
^ Parsing rendered html after javascript
356310 [parkurm gmai] I'm trying to write a website that parses all images in a given
356311 [pierre.lecoc] It implies that you pass the javascript code to a ... javascript
^ [ANN] ActiveMerchant 1.5.0 Released
356313 [codyfauser g] I'm happy to announce the release of ActiveMerchant 1.5.0. This is a
^ binding variables
356314 [matthew.camp] Just trying to pick up ruby and have a problem with binding variables to
^ Why Ruby?
356317 [jdmaher jdma] I've asked several friends and associates (application developers) what
+ 356319 [jose.halesga] charset=us-ascii
| 356322 [blambeau gma] Yes, it is a good general programming language. Three main features I have
+ 356320 [steve stevek] It all depends on the application. For desktop apps on Linux, for example,
+ 356325 [marco-oweber] What languages do you already know?
| + 356327 [ibc aliax.ne] =20
| + 356339 [rimantas gma] <=E2=80=A6>
| 356388 [marco-oweber] If you compare PHP with Java you can extend abstract classes in PHP
+ 356329 [jdezenzio gm] Ruby is an object-oriented language. If you like OOL languages, then
+ 356340 [nick nick-br] Ruby is a delight to program in. After spending the (short) time it
+ 356342 [richard.conr] Quick answer: Yes.
+ 356344 [brw314 gmail] I'm more of application developer and hacker than professional
| + 356346 [marnen marne] That wasn't the fault of Ruby. It was the fault of poor DB design, and
| + 356347 [steve stevek] ...
| + 356355 [tony medioh.] I think the problems that lead Twitter to move their backend to Scala are
| | + 356359 [marnen marne] I use Ruby because it's better designed than virtually any other
| | | 356363 [ibc aliax.ne] I think this is one of the keys of Ruby: it's really *fun* to code it.
| | | 356368 [eleanor game] around C=20
| | + 356387 [josh.cheek g] Twitter just needed to spin up a few more dynos ;) <3 Heroku
| + 357013 [tony medioh.] Tony Arcieri
+ 356369 [eleanor game] (or
+ 356385 [usenet-nospa] Seems plausible.
+ 356719 [ninja slapha] I realize I'm late to the party, but...
| 356725 [b.candler po] Ruby is my language of choice for many applications because of the
| 356849 [usenet-nospa] I'm stumped on this one. Overall, I rather prefer 1.9's string model, and
| + 356851 [b.candler po] It's as complex as hell. I took the trouble to document about 200
| | + 356855 [hramrach cen] The complexity stems from the inherent issues of handling strings in
| | + 356856 [usenet-nospa] Ahh.
| | + 356857 [tony medioh.] Amen to that, nothing worse than PHP's "3 dog night" + 2 = 5
| | + 356859 [hramrach cen] Unless you forget ;-)
| | + 356879 [billk cts.co] Likewise.
| + 356871 [sepp2k googl] By that logic array[index] should return a single-element array
| | 356880 [usenet-nospa] Hmm. You have a point.
| | 356883 [sepp2k googl] We agree on that. I've always thought ruby should have a Char class, so
| | 356884 [usenet-nospa] That might work.
| + 356906 [albertschlef] Languages that support a character data-type return foo[1] as a
| 356945 [devel the-us] Specials = Feature which are not part of most OO programming languages.
+ 356862 [devel the-us] Ruby is nice when you want to have a straight-forward, easy to use language.
| 356874 [marnen marne] Yup.
+ 356948 [mikeowens gm] I'm not a language aficionado, but I think Ruby is amazing. I started
+ 356986 [jazzezravi g] Ruby also has open source testing tools like
^ RUBYLIB and shared libraries
356323 [jdezenzio gm] I'm setting up my RUBYLIB variables for use with custom libraries I've
356324 [jperry choic] You can use RAILS_ROOT but I'm sure there is a better way.
356331 [jdezenzio gm] wha??
356338 [jperry choic] Sorry, man.
356341 [jdezenzio gm] main.rb
^ SOAP error: Cannot map <class> to SOAP/OM
356326 [djberg96 gma] Ruby 1.8.7
^ Made in Japan!
356328 [feershaw gma] Amazing Japanese Technology...
^ updating
356345 [fousto me.co] I have ruby 1.9.1 and would like to update to the latest version.
356383 [ryand-ruby z] yes
356386 [fousto me.co] Thank you
356395 [ryand-ruby z] Just write over it... that's fine.
356424 [fousto me.co] great - thank you very much
^ [ANN] February Phoenix Ruby User Group Meeting
356348 [james.britt ] February Phoenix Ruby User Group Meeting
^ Writing to database row based on column name with FasterCSV.
356349 [john.mcleod ] I've added a couple new columns to a database table. I was trying to
356350 [james grayso] not
356351 [john.mcleod ] Thanks James for the reply.
356356 [james grayso] Irb.create!(row.to_hash)
356358 [john.mcleod ] Yes,
+ 356361 [james grayso] before=20
+ 356362 [john.mcleod ] Well, if I'd do a little detective work, I'd notice that I'm working
^ [Security] [ANN] Loofah has an HTML injection / XSS vulnerability, please upgrade to 0.4.6
356353 [mike.dalessi] Synopsis
^ Parsing text with while loop.
356354 [feelx quoted] I am parsing a csv file and I am unable to end my loop as I want it.
+ 356357 [aldric trevo] Why wouldn't you trust JEGII's CSV library (or 'FasterCSV' if you are on
| 356360 [feelx quoted] Because the content of the csv is not constant. It's not built as a
| + 356379 [feelx quoted] begin
| + 356406 [shortcutter ] I don't see how that rules out a CSV lib for reading CSV formatted input.
+ 356409 [bryan.weathe] I edited your code and just changed a couple lines: http://pastie.org/807473
356421 [feelx quoted] Thanks everyone for helping me out. I really appreciate your help.
356446 [albertschlef] This CSV library at least parses the file correctly for you. CSV has
356484 [shortcutter ] Absolutely agree! Felix, I believe it is not clear to you what CSV
356510 [feelx quoted] Thanks everyone, I found my problem.
^ load issue with roo
356364 [reid.thompso] could someone point me in the direction of a solution to this error?
356367 [gregory.t.br] sudo gem install builder
356374 [reid.thompso] thanks -- ultimately there were several missing gems. For some reason I
+ 356378 [gregory.t.br] Roo has some issues with it's packaging and overall project
+ 356384 [ryand-ruby z] 501 % gem dep -r roo
^ web services concept question
356365 [brw314 gmail] I am researching web services area area, I am interested in calling a
+ 356376 [richard.conr] The approach you outlined looks very similar to an XML-RPC style of web
+ 356377 [nick nick-br] Your question is too vague to answer in full, but as far as implementing
356414 [marnen marne] Or no XML format at all. JSON or YAML would be much less cumbersome.
^ [ANN] Ruby/Informix 0.7.3
356371 [gerardo.sant] Ruby/Informix is a library for connecting to an existing Informix database.
^ Re: ActiveMerchant 1.5.0 Released
356373 [rogerpack200] Thanks for your work on this--I know at least in my stuff it has made
^ [ANN] Red Dirt RubyConf
356375 [james grayso] I just wanted to send a message announcing our new regional Ruby =
^ Hi, Ruby Programmers, Is this possible.
356389 [bairioth gue] upon an article on Ruby, which brought me here.
+ 356391 [marnen marne] Ruby is a server-side language just as PHP is. The only client-side
| 356411 [maurice.diam] Or JRuby because it is written 100% in Java?
| + 356412 [thiagown gma] java != javascript
| + 356413 [marnen marne] Yes, if you like applets.
+ 356410 [aldric trevo] Hey.. Wanna try Ruby in your browser? http://tryruby.org/
^ [ANN] rdoc_osx_dictionary 1.1.1 Released
356392 [ryand-ruby z] rdoc_osx_dictionary version 1.1.1 has been released!
356407 [luc honk-hon] Updating ri class cache with 5226 classes...
^ rb_funcall
356400 [mido.peace g] we know that rb_funcall , is used to call some Ruby Methods from the C
356401 [mido.peace g] Oups .. It's Ok !!
^ Referencing a method in a module
356402 [reachme char] module Foo
356403 [farrel.lifso] Foo#bar is usually used for instance methods, Foo.bar for class
356419 [reachme char] Ah, yes, I think I've seen that. And so Foo::Bar would be for a class
356432 [rick.denatal] More generally
356508 [reachme char] Rick, many thanks, your explanation is most illuminating.
^ Ruby game server (concurrency and speed)
356416 [x11 arturaz.] I'm writing a game server for flash based game. Currently there is MySQL
+ 356423 [jonathan jmn] There is an asynchronous mysql gem, but I haven't done much with it.
| 356429 [ibc aliax.ne] po
| 356431 [x11 arturaz.] Another idea my friend suggested was to only calculate actual values
| 356437 [eleanor game] You can calculate when actions start the ETA for completion and then =
+ 356426 [eleanor game] MySQL
+ 356428 [rogerpack200] Yeah check out mysqlplus, and possibly
^ Inserting Classes into a Module Dynamically?
356425 [gmkoller gma] We are now able to author code on-line, which allows us to create a
356427 [marnen marne] Look at the instance methods of Module, particularly include and extend.
^ web sites for sale $200 only each one
356430 [greateenglan] Top web sites for sale $200 only each one.
^ Hashes versus Arrays
356433 [imran.nazir ] Can someone please explain how you would go about deciding whether to
+ 356434 [ibc aliax.ne] El Mi=C3=A9rcoles, 3 de Febrero de 2010, Jerome David Sallinger escribi=C3=
+ 356455 [gmkoller gma] On Feb 3, 12:27=A0pm, Jerome David Sallinger <imran.na...@yahoo.co.uk>
| + 356464 [marnen marne] So can an Array. The only difference is that array indices have to be
| + 356473 [josh.cheek g] Understanding what happens under the covers will help you know what is right
+ 356720 [ninja slapha] People may be over-complicating things a bit.
+ 356730 [imran.nazir ] Thank you David Masover, an explanation and a patronising comment, what
| 356738 [ninja slapha] If by this you mean my "idiot-proof" comment... my point here wasn't to accuse
| 356746 [imran.nazir ] I must admit to you that yes I am in idiot and proud of it ;)
| 356805 [shortcutter ] Wrong group, please repost at alt.soc.confessions. ;-)
+ 356732 [ymendel pobo] I am touched to be included in this example.
threads.html
top