270116-298459

269935-277412 subjects 270400-288747

^ [ANN] new random_data gem for better development data
270116 [rubyforum-ma] I've released a small gem that provides a Random singleton class with a
270192 [vshepelev im] Mike Subelsky

^ GLU and GLUT libs.
270117 [leandroico g] Someone here has programmed ruby with GLU (OpenGL Utility Library) and
270124 [ruby anthrop] It's just GLU and GLUT, though. Any reference on the C library should help

^ [ANN] fire 1.0.0
270120 [ari aribrown] fire version 1.8.6 has been released!
270150 [konrad tyler] charset="iso-8859-1"

^ Re: [ANN] Metadata 1.0-rc2
270161 [botp delmont] # tarball: http://dark.fhtr.org/repos/metadata/metadata-1.0-rc2.tar.gz
+ 270163 [konrad tyler] charset="utf-8"
+ 270164 [ilmari.heikk] If there's a way to install bin/chardet as-is, now gem adds"#!/usr/bin/ruby"-boilerplate (which doesn't quite work for apython script.) ...Though, I could always turn it into a ruby scriptthat executes a bit of python. So, yeah, it is possible. I'll build one.
  270170 [ilmari.heikk] Or, one could make a VMWare image or somesuch and use it as ametadata appliance. Anyone know how that might work best?
  + 270173 [konrad tyler] charset="utf-8"
  + 270198 [botp delmont] # (I think most cygwin programs only depend on cygwin1.dll

^ ruby + mysql
270178 [nebbiadimarz] Sono nelal melma con MySql
+ 270193 [ari aribrown] Have you tried using ActiveRecord? You can get it by typing
+ 270214 [ciconia gmai] Rough translation to English: How do I insert a value into the table
  + 270238 [guerrantonio] Thank you a lot, Sharon!!!!!!!!!!!
  | 270248 [ciconia gmai] I can read more or less. Glad to have helped.
  + 270283 [ari aribrown] Ah. yes.. well.... that certainly makes MY response invalid.

^ Ruby RSS Feeds
270179 [ivan.trajkov] Where can I find good information about using Ruby for RSS Feeds?

^ CLOB handling
270184 [pjcarvalho g] In an oracle table, I hava a field of CLOB type (named "VXML").
270188 [pjcarvalho g] I solved my problem.
298459 [jazzybuddy g] Please can u post the solution for ur ptroblem as we are facing a

^ Re: How slow does your Ruby run? (was: How fast does your Ruby run?)
270189 [fred lacave.] Ok.  Since I can't possibly win this DSW, I'll try this on my slowest
270213 [fred lacave.] Ruby 1.8.6 patch 0 on i386-freebsd5
270253 [konrad tyler] charset="iso-8859-1"

^ [QUIZ] Shirt Reader (#140)
270196 [james graypr] 1.  Please do not post any solutions or spoiler discussion for this quiz until
+ 270237 [oksteev yaho] expectations = {
| + 270243 [james graypr] Wow.  Awesome.  Thanks.
| + 270275 [rrafje gmail] a brie vie a shun        => abbreviation
|   270389 [jamesbkoppel] Do not for get the ultimate pictographic message (not sure what these are called, but they're definitely not "T-shirt phrases." - I've seen them before plenty of times, but never on T-shirts.)
|   270396 [martindemell] Rebuses.
|   270426 [oksteev yaho] my solution: http://rn86.net/~stevedp/tshirt_reader.tar.gz
|   270448 [kbloom gmail] My answer's along the same lines with Metaphone, but nowhere near as good
|   270878 [benjohn fysh] I'm wondering if this quiz would work in the opposite direction
+ 270437 [rrafje gmail] Please find my solution at http://pastie.caboo.se/99879. It also uses
+ 270724 [rubify softo] Here is my solution. Obviously it is not as "well educated" as Steve's one
  270968 [rubify softo] One more limit of a good education - sometimes it is limited to an education

^ Re: Net::HTTP#post_form - setting user agent, referrer?
270199 [asitkatiyar ] I am also facing the same kind of problem. I tried with the solution
270207 [jan.svitok g] You're mixing class and instance methods. Either use HTTP.post_form()

^ is there any way to update ruby from console on windows??
270202 [khellls gmai] is there any way to update ruby from console on windows??
270203 [jan.svitok g] There's no ruby update AFAIK. You can work around this by renaming

^ Prevent REXML from doing any character decoding
270204 [amir.helzer ] How can I ask REXML to NOT DO any sort of character decoding or
270218 [jan.svitok g] There is a programmatic solution: :raw. If you set the :raw flag on

^ Re: is there any way to update ruby from console on windows?
270205 [khellls gmai] thanks

^ Ruby and Access
270209 [JNott dto.ie] charset="iso-8859-1"

^ Re: Iterating through a file, sticking iterated array entrie
270210 [pbailey bna.] Thanks a lot, Morton. Yes, I've modified my approach. I just had to

^ gsub not working. Ruby thinks I'm in an array?
270215 [pbailey bna.] I've chunked up a huge text file into arrays of discrete text groups. I
270216 [sepp2k googl] If you have capturing groups in your regexp, scan will return an array of
270219 [pbailey bna.] Thanks, Sebastian. OK, I did a .flatten, which I read more about and
270232 [sepp2k googl] Yes, I didn't notice this the first time because I was only focussing on the
270250 [phrogz mac.c] regmatch = /<registration>(.*? )<\/registration>/im

^ dynamically read object's attributes
270220 [mark.pelleti] I want to read the values of instance variables in an object, but I
+ 270223 [stefano.croc] instance_variable_get var
| 270225 [mark.pelleti] Thanks to both of you.
+ 270224 [rmagick gmai] Object#instance_variable_get
+ 270226 [jan.svitok g] instance_variable_get(var)

^ TLS
270240 [seannakasone] Anyone know if ruby supports TLS in SMTP?  can you please provide code
+ 270242 [alexey.verkh] Alexey Verkhovsky
+ 270249 [garbagecat10] Look in Ruby/EventMachine- there is now an SMTP client and server and both
+ 270252 [ara.t.howard] require "openssl"
  271248 [seannakasone] # thanks, it works.  here's the entire code.

^ Re: I am new to Ruby and I could use some expert advice as t
270244 [dolgun excit] I too am having a hard time understanding why anyone would use Ruby.
+ 270256 [caduceass gm] Hmm.  Good point.  I'm not the type of person that picks the right
+ 270257 [phrogz mac.c] I personally love the syntax. It gives me great power with little
  270269 [dolgun excit] Agreed.  However, I  learn a new languages because I think it will help
  + 270271 [cmdjackryan ] Tell that the guys at Twitter or 37signals. ;)
  + 270274 [james graypr] I never understand this statement.  It really doesn't mean anything
  + 270291 [phrogz mac.c] Too slow for what? As I said, I use it frequently at work, for a lot
  | 270292 [phrogz mac.c] My company DOES employee C++ programmers. Lots of them. We work on
  + 270296 [mo_mail ongh] I think "slow to be practical" is very relative, again.  It helps me get

^ [ANN] CplusRuby - Gluing C and Ruby
270245 [mneumann nte] I am proud to announce my latest project called CplusRuby.
+ 270363 [vjoel path.b] It's been done, but I'm glad to see it done again and probably with new
| 270364 [mneumann nte] Wow, cool! I knew about cgen, but then didn't knew that it's that easy
| 270368 [vjoel path.b] Actually, I don't think cgen has that feature.... one of the things I'll
| 270430 [mneumann nte] Ah thanks. Well, I should definitively refactor cplusruby a bit :).
+ 270419 [drbrain segm] Why not use RubyInline?
| 270431 [mneumann nte] Drop less than 20 lines of code? It really takes longer to get into
+ 270488 [pbrannan atd] I think you'll want to store either a copy of the string or a reference
  270491 [konrad tyler] charset="iso-8859-1"
  270676 [gaspard teti] Thanks for the announce. I will keep an eye on your project when it

^ Re: Shirt Reader (#140)
270251 [phrogz mac.c] %w[con grad yule 8 shins] => 'congratulations',

^ Re: CplusRuby - Gluing C and Ruby
270261 [djberg96 gma] First patch!
+ 270262 [konrad tyler] charset="iso-8859-1"
| + 270273 [konrad tyler] charset="utf-8"
| | + 270304 [mneumann nte] I think you shouldn't return "true" here. At least it's
| | + 270310 [mneumann nte] I've applied your patch. Plus, generating C code is now possible. The
| + 270279 [konrad tyler] charset="utf-8"
+ 270306 [mneumann nte] Thanks! Applied!
+ 270308 [nobu ruby-la] I'm curious why win32/process doesn't return Process::Status.
| 270328 [djberg96 gma] We had to reimplement waitpid and waitpid2 because of our custom fork
+ 270374 [vjoel path.b] Why not just
  + 270376 [vjoel path.b] def self.inherited(klass)
  + 270728 [nobu ruby-la] Actually, CONFIG['DLEXT'] is unnecessary at all and that code

^ [ANN] Ogre.rb 0.2 is now available!
270263 [jameskilton ] Ogre.rb 0.2 is now available! It is available in gem and tar format on its
+ 270264 [dangerwillro] Cool. Bad thing is Ogre is an ogre to get installed with all the
+ 270265 [tjackiw gmai] Very nice! Any issues with the rendering speed of complex graphs or
  270272 [jameskilton ] gem install ogre.rb
  270276 [dangerwillro] Well, everything for Ogre itself, but you do have to install a fair
  270284 [jameskilton ] I was talking more about people using Python, Lua, or Perl in the same place

^ question re: modules and class variable scope
270267 [gotascii gma] I spent some time trying to find an answer to this but haven't found an
+ 270280 [gwtmp01 mac.] Class variables are lexically scoped--not dynamically scoped.  This
| + 270311 [dblack rubyp] I honestly wish that class variables looked like $$this, rather than
| | 270337 [caduceass gm] I'm in no place to disagree with David, but I should point out that $$
| | + 270339 [caduceass gm] Unless, of course, a person understands two symbols together to
| | + 270340 [dblack rubyp] People in many places have disagreed with me, and I with them. Feel
| |   271377 [caduceass gm] The last sentence I agree with, because, while I was reading the
| + 272176 [gotascii gma] Cool, thank you this makes sense.  My next question, is this information
|   272208 [gwtmp01 mac.] No, I don't' think it is in the Pickaxe, at least not in the way I've
+ 270281 [m_goldberg a] Class variables are not the same as class instance variables. This is

^ Break loop by trapping INT
270270 [tjacobs-sndr] I'm trying to break a loop whenever CTRL-C is pressed, and find that
270282 [m_goldberg a] When the trap is triggered, the trap's proc object receives a 'call'
270286 [dolgun excit] Yikes!  Isn't that using catch/throw as a plain vanilla goto?
270341 [m_goldberg a] <code>

^ watir to access combobox
270277 [seannakasone] I'm new to watir and IE Developer Toolbar so please bear with me.
+ 270893 [lrlebron gma] If you know the name of the select list you can try this
+ 270894 [lrlebron gma] If you know the name of the select list you can try this

^ Class variables
270278 [pedz easesof] I must have a fundamental misunderstanding of Ruby.  I am hoping someone
270290 [phrogz mac.c] Please search the mailing list archives, and/or read the (free) online

^ foo || 0 will cause exception but not for himself
270288 [summercoolne] if foo is undefined, it will throw exception when referred to... as in
+ 270289 [phrogz mac.c] On Sep 21, 8:37 pm, SpringFlowers AutumnMoon
+ 270333 [dolgun excit] Maybe your Variable/Method Ambiguity thread applies here?
  270338 [summercoolne] i see...
  270343 [phrogz mac.c] On Sep 22, 7:26 am, SpringFlowers AutumnMoon
  270372 [dolgun excit] def foo=(val)
  270511 [phrogz mac.c] Er, what's your point? Methods whose names end with a '=' character
  270574 [rick.denatal] irb(main):001:0> class Foo

^ Re: Playing Wav file in Ruby
270294 [tommylil gma] You do get it to play that way, right? I ran into the same situation a
+ 270298 [konrad tyler] charset="iso-8859-1"
+ 270299 [andy.korth g] Ah yes, sorry for lack of clarification. Playsound is part of SDL, but
  270300 [tommylil gma] I got a plain commandline version of playsound running on my Mac, that
  270352 [andy.korth g] Well, that's pretty much perfect! Thanks. It's a completely different

^ gem install deprec -y
270303 [jon equipe.n] When trying to installing deprec through gem i got this error.
270317 [jon equipe.n] OK found out that is was the gem needle that didn't work. Download it

^ regex problem with gsub
270312 [mailforgilbe] i have a dir like that and need the
+ 270314 [sepp2k googl] At this point $1 is nil, which is why you get the error. You have to keep in
| 270316 [mailforgilbe] Thanks!!
+ 270324 [jovino ya.co] string.gsub(/(\w{7}).+/, '\1')

^ %w| a b c|   %w_a b c_   %w<a b c> all work
270313 [summercoolne] %w|a b c|
+ 270325 [dblack rubyp] Pretty much, though some characters won't work. My favorite % trick
| 270421 [w_a_x_man ya] irb(main):002:0> %w) foo bar)
| 270469 [vjoel path.b] You, sir, are demented %w)
+ 270330 [dolgun excit] If you look up %w at the beginning of the index in pickaxe2, it directs
| 270370 [dolgun excit] I just wanted to point out that the statement that the delimiter can be
| 270373 [dolgun excit] r4test.rb:4: unknown type of %string
+ 270347 [phrogz mac.c] On Sep 22, 4:02 am, SpringFlowers AutumnMoon

^ sequel problem: no such file to load -- mysql (LoadError)
270320 [ventosus gma] /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
+ 270326 [konrad tyler] charset="utf-8"
+ 270332 [wayneeseguin] charset=US-ASCII;
| 270342 [caduceass gm] Also--after you have installed your necessary libraries--remember that
| 270367 [dangerwillro] Yes! This is a common problem for all of us. It doesn't happen often,
+ 270345 [ciconia gmai] sharon

^ Re: sequel problem: no such file to load -- mysql (LoadError
270327 [ventosus gma] Could be ;-) Either way i couldt find anything. So im still looking for
270331 [cmdjackryan ] Do you have a MySQL gem installed?
270335 [ventosus gma] thanks for your guidence which lead me to the soloution, but not the
270434 [wayneeseguin] charset=US-ASCII;

^ 13h mode ?
270346 [michaldatber] Posted via http://www.ruby-forum.com/.
+ 270349 [stephane.wir] why not ruby sdl ?
| 270353 [michaldatber] jep if i would do a game i`ll choose SDL or something else but it`s only
| + 270356 [mailing.mr g] well ruby doesn't allow direct system calls or interupts so you'll have
| + 270407 [stephane.wir] You can develop your own library to draw a pixel with C, and after
+ 270489 [pbrannan atd] If you really want to do this (and I suspect that you don't), you could

^ free eruby hoster
270355 [kazaam oleco] Do you know any free webhoster which supports eruby? I searched google before but couldn't find any single one, so I hope someone here knows one?

^ Re: (SUMMARY) Idiomatic Ruby for Array#extract / Range#length?
270357 [fxn hashref.] I think this thread deserves a summary.

^ How would you write it  vs Smalltalk
270358 [summercoolne] i found a description of Smalltalk in
270360 [rff_rffREMOV] running away but a quick idea: you could use Integer#chr to get a char
270362 [rick.denatal] puts "Enter line:"
+ 270422 [SimonKroeger] Well, we need an inject solution, right?
| 270487 [dolgun excit] p gets.downcase.scan(/[a-z]/).inject(Hash.new(0)){|h, c| h[c]+= 1;
| 270495 [dolgun excit] And this seems conceptually easier and it's slightly faster(if I
| 270499 [dolgun excit] Whoops.  I didn't downcase the input in that example, but I did downcase
+ 270522 [lojicdotcom ] lambda do |str|

^ Getting started with Ruby (noob confusion)
270377 [sasnso4a5w12] As the title suggests, I'm new to Ruby (and programming in general), and
+ 270379 [TimHunter nc] First, welcome to Ruby!
| 270385 [sasnso4a5w12] Well, I want to make my own. My interest in programming was sparked by
| + 270392 [TimHunter nc] The OP presented himself as a novice seeking advice but turned out to be
| | 270393 [sasnso4a5w12] That thread is as humorous as it is informative. Thank you.
| + 270409 [sepp2k googl] I hope you didn't intend this statement to be as insulting as it might sound
+ 270380 [dolgun excit] If you want to avoid all that hassle, download and learn python.  It
| + 270381 [sasnso4a5w12] Tk can be used with Ruby, as well. Oh, and I've heard bad things about
| | 270384 [dolgun excit] Yes, python is 10 times as fast as Ruby, uses less memory, is more human
| | + 270388 [sasnso4a5w12] *laugh*
| | + 270390 [dolgun excit] require 'tk'
| |   + 270391 [sasnso4a5w12] *points* What's that? ^ LOL
| |   + 271098 [celtic sairy] I must admit, I've never used Tk with Ruby before. I use Ubuntu, so I
| + 270401 [mo_mail ongh] Or you can try WideStudio that makes many things much easier for you.
|   270403 [dangerwillro] It's sad to have to say this, but you really do have to get a good
+ 270410 [sepp2k googl] Consider for a moment why you want to write those apps: I guess it's because

^ Weird variable scope behaviour...
270378 [ihatespam ho] it did, anyway.  While this was a pleasant surprise, I prefer to understand
+ 270382 [dolgun excit] What do you mean by "okay"?  Does the following not work as you would
| + 270383 [dolgun excit] Posted via http://www.ruby-forum.com/.
| + 270387 [dolgun excit] if y
|   270500 [ihatespam ho] I'm not sure, exactly, what I'm concerned about but I can give you some
+ 270398 [phrogz mac.c] On Sep 22, 4:32 pm, "Just Another Victim of the Ambient Morality"
  270502 [ihatespam ho] I'm interested in to what you're referring, here.  How was purity of
  270512 [phrogz mac.c] On Sep 23, 8:05 pm, "Just Another Victim of the Ambient Morality"

^ [ANN] httpclient/2.1.2
270386 [nakahiro sar] httpclient/2.1.2 is out.  The release for negotiate auth support + a

^ Searching Spotlight with ruby
270394 [filipedlarca] Is it possible to search for files using spotlight in ruby just like
+ 270397 [wayneeseguin] charset=US-ASCII;
+ 270399 [phrogz mac.c] You can run any terminal command in ruby (and capture the output) via
  270460 [filipedlarca] For sure. How do I go about running terminal commands and getting
  270461 [sepp2k googl] Easiest way is output=`command`
threads.html
top