269935-277412
269766-271136 subjects 270116-298459
^ irb Failing
269935 [ari aribrown] Hey everyone
^ Emacs, Ruby, and Fode Colding :)
269942 [rubygeekgirl] Long time no see, oh Ruby Talk list. I have a question to any of you out
269944 [konrad tyler] charset="utf-8"
+ 269945 [ruby gmail.c] Not sure if you were asking how Samantha uses it or how to use it in
| 269952 [croese gmail] The main text deals w/ a quick and dirty way that uses a couple of
+ 269976 [martin.kraus] Excellent folding with easy setup (= do not need to understand almost at
270359 [rubygeekgirl] Looks like the questions about vim code folding were answered - as for
270666 [jeff.barczew] Samantha,
^ in ruby/tk how to hide and unhide a root window
269950 [redman acces] I have discovered how to hide a root window
269990 [m_goldberg a] Try
^ thread switching? (p. 144 pickaxe2)
269956 [dolgun excit] On p. 144 in pickaxe2, there are two examples using threads(see below).
270004 [m_goldberg a] Since you are picky enough to complain about the writing in Pickaxe
^ ruby-opengl on Mac OS X
269957 [r alum.mit.e] on my Mac OS X (v 10.4.10).
270031 [ruby anthrop] I think you want to require 'gl' rather than 'opengl'. With a working
270085 [r alum.mit.e] Whoo hoo! It Just Works. Many thanks.
273770 [fold3mani ya] I am in very similar situation as Rob was in: I installed
273776 [julianraschk] I think TextMate needs write access to files to run them (bug?). I had
273783 [fold3mani ya] Ok, I copied an exmple rb file to the Desktop where TextMate is, but
273879 [jgabrielygal] Don't know if it might be the same problem, but just in case. I was
^ Drb Timeout issues
269958 [angadsc gmai] All,
^ [ANN] Monkeybars 0.4 - GUI apps for Ruby
269969 [david koontz] Monkeybars 0.4 is out. http://monkeybars.rubyforge.org This is the
270418 [charles.nutt] Wow, cool. At a glance it looks like "yet another Swing library" for
^ Is there any separate editor for ruby?
269971 [hariharan.sp] Hai Friends,
+ 269974 [dolgun excit] $ vim myfile.rb
| + 269975 [dolgun excit] $ vimtutor
| + 269981 [hariharan.sp] Dear Friend,
| + 269983 [alexg kuicr.] This is a very frequently asked question and there are many options
| + 270169 [alex.shulgin] On Sep 20, 11:25 am, Vellingiri Arul <hariharan....@rediffmail.com>
| + 270589 [bigboss64 ip] Personally I suggest Vim/Emacs for people likely to need a GOOD editor, edit a
| + 271218 [rubygujarat ] I am very happy with Komodo 4.2.
| + 271227 [dolgun excit] Ok, you sound like you might know vim pretty well. Is there a way to
| 271228 [dolgun excit] to save the text to other.rb, which closes other.rb and lets me continue
| 271231 [alex blackke] Doesn't this only differ in which window has focus while you're marking
| 271244 [dolgun excit] Arrgh. I was using 'yy' instead of 'y'. Thanks.
+ 269986 [norepley gma] I use Aptana
^ [ANN] ParseTree 2.0.2 Released
269980 [ryand-ruby z] ParseTree version 2.0.2 has been released!
^ This is general Questions?
269988 [hariharan.sp] Dear Friends,
+ 269992 [alexg kuicr.] No offense, but this question is very hard to understand. What do you
| 269994 [hariharan.sp] Hai,
+ 269995 [aff28 delete] Among the other top 10 google search results were several instances of
+ 270027 [wayneeseguin] charset=US-ASCII;
+ 270038 [phlip2005 gm] Hmmm. ls --help yields lots of search-worthy verbiage, including "color is
^ lignhtning fast autocompleter IE issue (script save call)
269993 [mba.piyushgu] I was using the rails recipes for the feature called Lightning fast auto
^ Getting associations list
269998 [akirosspower] how can I retrieve a list of associations for a given Active Record?
270005 [akirosspower] Ok, i found reflections. Sorry for the disturb
^ Re: [ANN] Metadata 1.0-rc2
269999 [ilmari.heikk] Oh, and, if there are any other filetypes that could do with more
+ 270035 [konrad tyler] charset="utf-8"
+ 270037 [konrad tyler] charset="utf-8"
^ [SUMMARY] IP to Country (#139)
270015 [james graypr] Matthias Wätcher made a classic mistake this week. He sent in his first ever
^ standard library manpages for v1.8.5
270016 [henders254 g] I am running Ruby 1.8.5 on OpenBSD 4.1. and trying to access Ruby
270022 [stefano.croc] ri FileUtils
^ Idiomatic Ruby for Array#extract / Range#length?
270018 [sam powersou] During the monthly meeting of our code dojo, we were surprised by a couple
+ 270039 [fxn hashref.] A range only assumes #<=> and #succ.
| + 270043 [Rob AgileCon] ...
| + 270047 [rick.denatal] True in theory, but, I wonder just how you would code succ so as to
| 270051 [fxn hashref.] Of course that won't happen in practice, but since we were
| 270056 [rick.denatal] You lost me, so what's the rational which is the successor to 1/3?
| + 270065 [rick.denatal] My last reply was a bit tongue in cheek.
| | + 270070 [fxn hashref.] No, no, they are dense *with the ordinary ordering*. It is not a
| | + 270084 [fxn hashref.] "So far weÃ×e shown ranges of numbers and strings. However, as youÃÅ
| | + 270086 [sepp2k googl] You can have a range of objects that don't have succ. You just can't iterate
| | | 270090 [fxn hashref.] You are saying that Ruby is implemented in a way that allows you to
| | | 270166 [dblack rubyp] The docs appear to be wrong. There's plenty of external evidence
| | + 270093 [Rob AgileCon] ...
| | + 270095 [rick.denatal] Rick DeNatale
| | 270101 [fxn hashref.] Well, the fact that the documentation says "must respond to" and "as
| | 270107 [rick.denatal] And as we know all documentation is perfect.
| | 270114 [fxn hashref.] Sorry Rick I think we are not communicating.
| | 270123 [fxn hashref.] class ZSquared
| | + 270129 [fxn hashref.] And yet another example that satisfies in addition
| | + 270174 [sepp2k googl] Sorry if this is a stupid question, but couldn't you just have proved that
| | 270176 [fxn hashref.] Exactly, thank you, let me write 1.0/0 as w to simplify the notation
| + 270066 [fxn hashref.] OK, the point is that we are not using the everyday order of Q. Our
| 270072 [dblack rubyp] See Rick's point about #succ, though. Ranges don't assume #succ,
+ 270194 [sam powersou] There's been quite a lot of interesting discussion surrounding my first
+ 270361 [o.renaud lap] Le jeudi 20 septembre 2007 14:28, Sammy Larbi a ñÄrit
270365 [rick.denatal] (1.2..1.5).length #=> 0.3
^ Barcode scanner app
270020 [pieter.jongs] I need to program an application for my school. It needs to scan a
+ 270029 [ruby anthrop] I'm a dork, so I'd probably use GLUT/OpenGL. It's overkill, but it's damned
+ 270034 [narnach gmai] If it works just like a keyboard, you should be able to get the input
+ 270042 [matt technor] I suggest you take a look at the ncurses library.
+ 270081 [mailing.mr g] if it acts like keyboard, try ruby/SDL it's simplest solution to get
270160 [dangerwillro] You could use Gosu easily, the game library for the graphics, very
270165 [pieter.jongs] I have been thinking about that. But the program needs to be portable,
^ how to print Ruby's version from within the program
270023 [summercoolne] Is there a way to print the Ruby version from within a Ruby program?
+ 270024 [stefano.croc] puts RUBY_VERSION
+ 270026 [james graypr] => "1.8.6"
+ 270088 [drbrain segm] patchlevel = " patchlevel #{RUBY_PATCHLEVEL}" if defined?
^ [ANN] Uniforma 0.0.2 released
270032 [vshepelev im] Subj at http://uniforma.rubyforge.org
^ Passing var to anoter script
270036 [nicpon nicpo] Hey,
270062 [lists bertra] This is not a Ruby but a shell issue. Use
+ 270200 [nicpon nicpo] Thanks that was helpful.
+ 270201 [nicpon nicpo] What I just noticed was that it throws me an error saying that $ie
270266 [lists bertra] Arguments to Unix commands are always strings; return value
^ Apriori algorithm
270040 [jtibunetto g] I'm wondering if anyone has already implemented the Apriori algorithm
^ Iterating through a file, sticking iterated array entries in
270048 [pbailey bna.] I've got an array, a listing of "titles" in an xml file. Basically, I
270140 [m_goldberg a] The gsub! matches all the substitution targets on the first iteration
^ why Ruby 1.8.2 is faster?
270050 [summercoolne] I had Ruby 1.8.2 on the Mac so it was able to run a program with 10,000
270089 [drbrain segm] What program?
270113 [summercoolne] on my Mac, the 1.8.2 runs about 46% faster than 1.8.6
270119 [drbrain segm] This program doesn't run on ruby 1.8.2, there is no RUBY_PATCHLEVEL.
^ a patch for ruby-dbi mysql - fixes problem with stored procs
270052 [michaelr524 ] @dbh =
^ using the newest Ruby after installing Locomotive
270054 [summercoolne] after installing Locomotive on Mac, both the shell (Terminal) and
270058 [james graypr] For the shell, you will need to set your PATH environment variable
^ Ruby parser wierdness?
270057 [ciconia gmai] I've stumbled upon a weird phenomenon when trying nested Dataset#query
270067 [rick.denatal] It's a matter of the operator precedence of do and {}.
^ Storing a search index on the filesystem
270061 [dougal.s gma] charset=US-ASCII;
^ Couple of questions about TCPServer.new and TCPSocket.new
270064 [victor.reyes] mini tiny ruby pgms.
270082 [jovino ya.co] Server : Client
270190 [victor.reyes] Jovino,
^ Splitting a string by x number of lines
270068 [lrlebron gma] I am trying to figure out how to split a string into chunks of 25
+ 270071 [sepp2k googl] string.scan(/(?:.*?\n){1,25}/)
| 270079 [lrlebron gma] On Sep 20, 1:02 pm, Sebastian Hungerecker <sep...@googlemail.com>
+ 270094 [jovino ya.co] def split_newlines(str, num_lines)
^ Interactive System calls within Ruby Script
270075 [Klauer gmail] I'm not sure whether this is possible or not, but I know that Ruby
+ 270077 [mo_mail ongh] I'm sure you'll get back much better answers than mine but just to get
+ 270078 [mailing.mr g] use open4 gem
+ 270080 [droffo gmail] The problem is the the command pass to the system call is executed in a
^ Re: uninstalling the mac tiger version of ruby
270097 [amassey csof] I have a similar problem. I installed a manually compiled version of
+ 270098 [peter peterc] Not a direct answer, but this is my usual "solution" whenever installing
| + 270109 [dangerwillro] I posted something about it on my blog recently, after a recent OS X
| + 270131 [amassey csof] Thanks for the responses! Obviously, removing the Apple installation of
| + 270138 [shevegen lin] Free yourself from the slowness of Apple! :D
| | 270148 [dangerwillro] well, what you missed at Hivelogic is this: the $PATH variable can be
| | 270153 [fwmailinglis] charset="us-ascii"
| + 270152 [fwmailinglis] charset="us-ascii"
| 270154 [amassey csof] #!/usr/bin/ruby
| 270156 [fwmailinglis] charset="us-ascii"
| 270159 [dangerwillro] Luckily you don't have many places to alter the shebangs.
+ 270162 [unbewusst.se] ~/.MacOSX/environment.plist
^ when $0 isn't what I want
270102 [perrin apoth] When using eruby for web development, $0 for any given .rhtml file is
270104 [phlip2005 gm] File.dirname(__FILE__)
270106 [perrin apoth] I coulda sworn I'd tried that already. Apparently not.
^ checking for html forms with www::mechenize
270103 [chuckdawit g] I want to run a check to see which pages have forms and which ones don't
+ 270132 [chuckdawit g] reached (EOFError)
+ 270221 [jan.svitok g] The error means mechanize could not read the webpage. Find out if it's
270227 [chuckdawit g] This is the error message I'm getting. It's not related to the 13th url
270229 [jan.svitok g] Ok, it seems to be a long-time problem - google some words from the
^ I am new to Ruby and I could use some expert advice as to how I can make this code run faster.
270110 [raychorn hot] I am new to Ruby and I could use some expert advice as to how I can
+ 270143 [wayneeseguin] charset=US-ASCII;
+ 270145 [lojicdotcom ] Write a C extension. Seriously, Ruby is pretty darn slow at iterating
| 270149 [dangerwillro] Benchmark it so you can find the bottlenecks.
| 270236 [raychorn hot] On Sep 20, 7:16 pm, John Joyce <dangerwillrobinsondan...@gmail.com>
| + 270239 [caduceass gm] Yes, if you get a chance, please compare with other languages and
| + 270593 [pbrannan atd] Since you didn't provide python code for us to compare against, I can only
+ 270301 [w_a_x_man ya] This is equivalent to
+ 270302 [w_a_x_man ya] About 2.8 times as fast.
| 270504 [raychorn hot] Okay but wake me up when you can make the original Ruby code I
| + 270515 [mo_mail ongh] I'm still confused about why someone wouldn't just have a C extension
| | 270683 [raychorn hot] I know of some people right now who are feverishly working to make
| | + 270715 [mo_mail ongh] 1. their lack of pragmatism
| | + 270744 [alex blackke] Got links?
| + 270521 [raychorn hot] ruby2c and ruby2cext are hacks that convert Ruby code into C code.
| 270523 [konrad tyler] charset="iso-8859-1"
| 270580 [raychorn hot] It is truly sad that people, like me, are labeled as being "trolls"
| + 270758 [luc honk-hon] Presenting lies as reality, among many other reasons, is what makes
| + 270932 [REMOVE-CAPSb] Every opinion is a reality. -- Timothy Leary
| 271015 [alex blackke] I don't think that's quite accurate. An opinion that ruby is not the
+ 270305 [nobu ruby-la] File.new(fname, "rb") do |f|
| + 270307 [nobu ruby-la] Sorry, these are not "new" but "open".
| + 270575 [ilmari.heikk] $ time ruby -rscramble -e 'scramble_original("trace")'
| | 270625 [ilmari.heikk] $ time ./scramble trace trace.scrambled
| | 270637 [vjoel path.b] To give C its fair due, you might try with
| | 270646 [ilmari.heikk] I tried that a while ago, it was roughly twice as fast as the per-byte version.
| | 270706 [ilmari.heikk] $ time ./scramble64 trace trace.scramblec
| | 270774 [w_a_x_man ya] On Sep 24, 6:50 pm, "Ilmari Heikkinen" <ilmari.heikki...@gmail.com>
| + 271095 [celtic sairy] Nobuyoshi, you are holy!
+ 270315 [w_a_x_man ya] If you actually want speed, use a compiled language.
+ 270417 [w_a_x_man ya] If that prolixity bothered you, look at a
+ 270525 [raychorn hot] Okay I downloaded Free BASIC and installed it but your code does not
| 270568 [w_a_x_man ya] Did it compile without errors? Did you make sure that no lines of the
+ 270579 [raychorn hot] Finally got this FreeBASIC code to work but it reports a runtime of 3
+ 270609 [w_a_x_man ya] The speed of the disk drive plays a large role here. Make sure that
+ 270656 [w_a_x_man ya] Will you explain how you got it to work? The version I posted
^ Rubinius on Mac PPC
270111 [ari aribrown] Hey all,
270126 [wilsonb gmai] We had someone in IRC with this same problem a minute ago. It appears
270130 [ari aribrown] Hehe. I happen to be seydar :-)
270147 [wilsonb gmai] Yeah. Just run the rubinius binary with no other arguments, and it will start.
^ How fast does your Ruby run?
270115 [summercoolne] How fast does your Ruby run?
+ 270118 [promos burch] I just ate your lunch. MacPro 3ghz dual duo 2gb ram.
| + 270121 [jeremywoerti] HAHAH. I love it! awesome.
| + 270122 [promos burch] Ruby 1.8.2 on universal-darwin8.0
| | + 270135 [perrin apoth] That cut almost three full seconds off my time -- down to 13.829852
| | + 270898 [jzakiya mail] n = 1_000_000
| | 270897 [jzakiya mail] opps
| | 270901 [jzakiya mail] opps again
| | 276071 [Summercoolne] today, on the Mac OS X 10.5 Leopard
| | 276103 [Summercoolne] sorry it should have been 82,000 iterations per second. there was an
| + 270127 [drbrain segm] pwn!
| | 270139 [promos burch] OOOOUCH!!! Ruby 1.9.0 is HOT!
| + 270133 [perrin apoth] 55
| + 270167 [charles.nutt] MacBook Pro 2.1G. I tried both Ruby and JRuby.
| + 270168 [charles.nutt] I also tried Ruby 1.9 and Rubinius, but Rubinius crashed.
| | + 270172 [has.sox gmai] A 2.6Ghz on XP with 512M
| | + 270182 [GGarramuno a] Seems like a pretty silly test, but okay...
| | 270191 [imobachgs gm] Ok, here's some more numbers (comparing ubuntu pre-compiled, compiled
| | + 270246 [lojicdotcom ] On Sep 21, 6:57 am, "Imobach GonzáÍez Sosa" <imobac...@gmail.com>
| | | 270254 [tpo2 sourcep] This message is in MIME format. The first part should be readable text,
| | + 270336 [rick.denatal] One more strike against using Debian packaged Ruby!
| | 270369 [tpo2 sourcep] This message is in MIME format. The first part should be readable text,
| | + 270371 [vjoel path.b] The --enable-pthread might be for compatibility with the tcl/tk package
| | + 270375 [rick.denatal] I'm not bashing Debian in general, just the Debian approach to Ruby packaging.
| | 270413 [tpo2 sourcep] Shall I bite?
| | 270443 [pietia.moo g] Probably it depends on architecture of the binary-package which was
| | 270479 [tpo2 sourcep] However the data I have available indicate that compiling ruby for i486
| + 276147 [charles.nutt] Ruby 1.8.5 patch 3876 on java
+ 270125 [wilsonb gmai] As you are seeing, ruby 1.8.x is painfully slow on Windows. =(
+ 270134 [reid.thompso] amd athlon 2500+XP processor (1883 MHz) 1GB ram
| 270136 [reid.thompso] forgot the processor speed for the linux core2 duo
+ 270151 [lojicdotcom ] On Sep 20, 6:49 pm, SpringFlowers AutumnMoon
+ 270177 [geoffness8 g] On Sep 21, 10:49 am, SpringFlowers AutumnMoon
+ 270181 [gracin tel.f] Here's something interesting. The processor is Intel T7200 @ 2.00GHz,
| + 270212 [znmeb cesmai] Make sure you use the appropriate "march=" flag when you do. See
| + 270285 [drbrain segm] How can you draw that conclusion? You used three different versions
| 270295 [gracin tel.f] You are right, that was one hasty conclusion.
| 270297 [gracin tel.f] Oh, and finally, the latest Ruby from svn...
| 270615 [pbrannan atd] What does it look like without --enable-pthread?
| 270765 [gracin tel.f] Without --enable-pthread, it still gets linked with libpthread.so. And
| 270780 [pbrannan atd] Oh, silly me :) -- YARV uses pthread for its threading now, so of course
+ 270195 [jaimeiniesta] **** Ubuntu GNU/Linux on a Thinkpad R52 (Intel Celeron 1.4 Ghz)
| 270206 [jaimeiniesta] After submitting the results for my local machines, I thought it would
| 270208 [jameskilton ] 55
+ 270241 [phrogz mac.c] On Sep 20, 4:49 pm, SpringFlowers AutumnMoon
+ 270247 [cmshea gmail] On Sep 20, 4:49 pm, SpringFlowers AutumnMoon
+ 270255 [robert.mcgov] RubyMate r6354 running Ruby r1.8.6 (/usr/local/bin/ruby)
| + 270258 [pietia.moo g] Laptop Asus A6TC - Debian Sid i386
| | 270260 [pietia.moo g] Sorry for "269313 iterations" in my previous post - i couldn't edit it
| | 270268 [caduceass gm] lol. I imagine he doesn't want to get swatted by ruby purists. He
| | 270293 [reid.thompso] I've built using cygwin several times w/out issue. Not recently though,
| + 270477 [robert.mcgov] Followup, with the newly released 1.8.6p100
| 276345 [robert.mcgov] A followup on myself now that Leopard is out and installed on my MacBook.
+ 270259 [ilmari.heikk] P-III 700MHz, 384 megs of ram
+ 270348 [lloyd 2live4] Intel Dual core 3.2 GHz, Win XP machine
+ 270444 [neoanderson1] 55
+ 270446 [mgreenly gma] Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz 800MHz FSB
| + 270464 [perrin apoth] Is that missing a decimal point after the 17?
| + 270480 [tpo2 sourcep] Are you certain?!?!? That would be a 100 fold improvement?!!?!?!
| 270484 [meqif scaryb] I guess he typed the results instead of copying and pasting, judging
+ 270452 [julianraschk] Ruby 1.8.5 patch 12 on powerpc-darwin8.8.0
+ 270468 [codethought ] 55
| 270471 [summercoolne] The performance gain I got from Ruby 1.8.6 to Ruby 1.9 is only from
| + 270478 [codethought ] I'm not a big fan of compiling and installing bleeding-edge code...
| + 270485 [lloyd 2live4] If that is true, then is the release version specifically compiled to be
| 270493 [znmeb cesmai] As far as I've been able to determine, with gcc, the compiler settings
| 270494 [fwmailinglis] charset="us-ascii"
| 270498 [znmeb cesmai] Yep ... those numbers are typical of what I'm seeing with the Athlon64
| 270501 [fwmailinglis] charset="us-ascii"
| 270533 [znmeb cesmai] It's unlikely to be faster in a statistically significant sense. As a
| 270595 [perrin apoth] I find that rather surprising. The common wisdom seems to be that newer
| 270598 [znmeb cesmai] The phenomenon is specific to gForth/vmgen and not a general rule as far
| + 270604 [fwmailinglis] charset="us-ascii"
| + 270686 [perrin apoth] Thanks for the info. I may have to investigate further, with this as
+ 276083 [ara.t.howard] require 'narray'
+ 276114 [ghalsey yaho] windows xp. intel core2 1.86GHz
| 277412 [ghalsey yaho] #testing 1.9, yep it's fast;
+ 276142 [daniel.schoe] Ruby Patch Platform Seconds Iterations per second
| + 276144 [lionel-subsc] IIRC on my Gentoo I got +80% on this particular benchmark with
| | + 276156 [znmeb cesmai] Well, on Gentoo you'd need to turn off the "threads" USE flag globally.
| | | 276201 [propolice gm] E5320 1.86GHz.
| | + 276248 [daniel.schoe] Ruby Patch Platform Seconds Iterations/s
| + 276152 [charles.nutt] FYI, we're debating making ObjectSpace something you must turn *on* at
| | 276153 [znmeb cesmai] Just a question -- assuming it's off by default, how do you know when
| | 276191 [charles.nutt] We'd print a warning if it's used without being enabled.
| | + 276194 [znmeb cesmai] Let me re-phrase that ... how do I know when I'm coding that I'm not
| | | 276214 [charles.nutt] Well, you need to explicitly reference ObjectSpace in most cases to
| | | + 276217 [ara.t.howard] they care.... why not just use autoload charles?
| | | | 276218 [charles.nutt] Because ObjectSpace needs to be loaded/enabled *before* the objects you
| | | | 276221 [ara.t.howard] hmmm. an exception seems best then - force the require up front.
| | | | 276223 [charles.nutt] Not really; we've made it as lightweight as possible. The problem is
| | | | 276227 [ara.t.howard] better you than me ;-)
| | | + 276224 [vjoel path.b] The dependence on ObjectSpace is kind of nasty, isn't it? A library
| | | | + 276225 [vjoel path.b] Oh, just saw your other post: you use weak refs, so the behavior should
| | | | + 276226 [charles.nutt] Yes, ObjectSpace is a useful tool for walking the heap when you really
| | | + 276314 [james graypr] Couldn't test/unit define an inherited() hook and locate test cases
| | + 276198 [jflam micros] Wouldn't it be better to throw?
| | 276213 [charles.nutt] Maybe?
| + 276157 [znmeb cesmai] What is "patch 5000"??
| 276245 [daniel.schoe] That's what ruby from the svn checkout
+ 276148 [apeiros gmx.] All I have to say to this is: http://xkcd.com/194/ :-p
+ 276327 [djberg96 gma] On Sep 20, 4:49 pm, SpringFlowers AutumnMoon
276437 [ara.t.howard] touche=B4
threads.html
top