294753-414022

294583-369675 subjects 295009-387022

It seems that rb_thread_wait_fd() doesn't work in 1.8.6
294753 [ry.d4hl@go g] compile it: ruby extconf.rb && make
+ 294756 [decoux@mo lo] Why ?
+ 294840 [nobu@ru y- a] It doesn't block at EOF.

[ANN] Cplus2Ruby - Gluing C++ and Ruby together in an OO manner
294779 [mneumann@nt ] A major rewrite and lots of new features of Cplus2Ruby lead to a 1.0.0

hpricot search help
294781 [junkone1@gm ] I am trying to grab the table that has a html comment in it. for eg
294806 [caduceass@gm] There's probably a better way, but without looking at the docs I would
294830 [danielhoey1@] h = Hpricot('<table><!-- startingtable --></table><div><!-- some div --

How can i execute a command from a ruby class file.
294784 [barakathulla] I am using ffmpeg plugin to convert one mime type into another mime
294787 [sepp2k@go gl] HTH,

Generating core documentation
294786 [stefano.croc] =46ollowing the discussion about the problems of the documentation for ruby=

returning text between two markers without markers included
294792 [adamtemporar] str = "ruby is ((Great))"
294793 [fxn@ha hr f.] The fact that the parens are delimiters obscures the regexp a bit.

Re: returning text between two markers without markers inclu
294794 [adamtemporar] Thanks Xavier,
+ 294796 [adamtemporar] ahh just noticed the inclusion of the ? to make it restricted. I
+ 294797 [fxn@ha hr f.] * With /m the dot matches newlines. I couldn't assume the text to
  + 294798 [adamtemporar] ahhh thats great. I like the readability one. ill be using that a lot
  | 294802 [adamtemporar] I just wondered, if I had multiple marked sections in a string how would
  | + 294804 [dave@pr gp o] irb(main):004:0> str = "a bannana is a type of ((fruit)) and a dog is
  | + 294805 [caduceass@gm] There's #scan...
  |   294809 [adamtemporar] great, closer to solving my problem. Though i realised that this regex
  |   294814 [caduceass@gm] I don't know about robustness, but throwing an 'm' after the regex
  + 294827 [dblack@ru yp] I know I'm in the minority, but I'll just mention that I find most

A question about big projects and classes within classes
294810 [august0866@h] I am trying to teach myself Ruby.  So i have decided to make an RPG
294813 [sepp2k@go gl] QXVndXN0MDg2NiB3cm90ZToKPiBteSBxdWVzdGlvbiBpcyBjYW4gY2xhc3NlcyBjb250YWluIGNs

[ANN] PDF::Writer 1.1.8
294811 [gregory.t.br] With the help of community members,  we've cut another small

Re: win32ole and autofill
294818 [renard@nc rr] worksheet.Range("F2").AutoFill( {"Destination" => "Range(F3:F20)",

Cipher
294819 [ball908765@y] ...
+ 294821 [wieczo.yo@go] irb
| 294823 [chippersbox@] ...
+ 294824 [caduceass@gm] There are many ways to do it, but if it was all lower case, I would probably...
  + 294825 [caduceass@gm] Also, I forgot to mention that you should realize that a String object
  + 294843 [caduceass@gm] Just for fun, I revisited this.  To include the printable characters
  | 294844 [caduceass@gm] Dang it!  Another thing that unit tests won't catch: code that is
  + 294904 [caduceass@gm] new_str = ""

Problem when require 'tk'
294822 [dongzhi@gm i] My OS is Fedora. I download Ruby source and comppiled. I download
294831 [justincollin] It seems you may have installed Ruby then Tcl, so you may need to
294871 [dongzhi@gm i] Thanke you for your reply. I have followed the steps in the install
294876 [dongzhi@gm i] /home/lm/Desktop/ruby/lib/fileutils.rb:1394:in `fu_each_src_dest': same

For Comment: Gem Browser
294828 [cwdinfo@gm i] It occurred to me that the way I was finding Gems was by making notes
+ 294921 [perrin@ap th] It appears to be broken.  There's no submit button, and hitting Enter
| 294923 [perrin@ap th] Okay, so I figured out it doesn't work without accepting a cookie (a
| 294930 [cwdinfo@gm i] Yeah, there's really no reason it needs to set a cookie right now.
| 295001 [perrin@ap th] Then refusing cookies should break session storage, but not basic search
| 295021 [cwdinfo@gm i] A few updates to http://gemmy.calicowebdev.com.
| + 295029 [jan.svitok@g] You could #uniq the version numbers and list platforms as well.
| + 295110 [perrin@ap th] It looks excellent.
|   295112 [cwdinfo@gm i] consider
|   + 295114 [jared.ashman] ...
|   | 295115 [cwdinfo@gm i] Oops <sheepish grin>
|   + 295122 [perrin@ap th] Err . . . yeah, it is.
+ 294964 [martindemell] I don't understand the results it gives me for 'gtk'
| 294967 [cwdinfo@gm i] Gtk is a bit of a special case. Anyone who understands ferret, please
+ 295512 [pbrannan@at ] Looks interesting to me, but it's really more a search tool than a
| 295562 [cwdinfo@gm i] Yes, that's what it is right now. My hope is that one day it can
+ 295550 [thopre@gm il] ...
| 295565 [cwdinfo@gm i] Yes, this is a limitation of the tokenizer in ferret. If you type in
+ 295617 [perrin@ap th] I posted something about this in my personal weblog, and got this
+ 295622 [jan.svitok@g] Another thing that would be nice: hyperlinked dependencies
  295707 [cwdinfo@gm i] I've put it in the TODO list. It's another set of tables and another
  295710 [jan.svitok@g] Couldn't you just issue a query containing the dependency name?
  295758 [cwdinfo@gm i] At first blush, yes. But if it's implemented as a many-to-many

Problem with Webrick/HTTProxy
294836 [nrimbo@gm il] I installed ruby 1.8.6 for Windows(Vista Home Premium).
+ 294837 [nrimbo@gm il] P.S. There is no problem with other proxys like delegate, cc proxy.
| 294842 [gotoken@gm i] That works fine on my vista with ruby 1.8.6p111 bundled in instantrails 2.0.
| 294856 [nrimbo@gm il] I turned off all firewall.
+ 294907 [vjoel@pa h. ] Shot in the dark: have you tried this?

rspec Spec::Example::Configuration question
294838 [mark.ryall@g] ...
295695 [dchelimsky@g] creating your own custom types of ExampleGroups. If it can't find one

How to make an unix library from some ruby code?
294848 [smerk@fi mu ] is there any possibility to build an unix library not from C/C++/...
+ 294850 [shevegen@li ] Just write the ruby code or use what is already available.
| + 294853 [shortcutter@] Actually you can compile Ruby to an executable.  I am just not sure
| + 294858 [smerk@fi mu ] Unfortunately, I definitely need a library which could be easily used in
|   + 294860 [jameskilton@] Pavel,
|   | 294970 [martindemell] D might be a nice compromise between C and Ruby here.
|   + 294861 [pjb@in or at] But unix provides all that is needed to do such a thing.
|     294863 [decoux@mo lo] ???
+ 294973 [kyleaschmitt] Not having done this, this is a shot in the dark, but....

Ruby "Speedup" hints?
294849 [shevegen@li ] Anyone of you has a few hints on how to speed up ruby code?
+ 294854 [shortcutter@] I'd replace that with the general rule to avoid object creation because
| + 294864 [sean@ar is e] and it certainly will eventually lead to programmer confusion esp when
| + 294890 [kbloom@gm il] Is that in any way a speedup hint? or is it just a safety hint? What
|   + 294893 [jan.svitok@g] Otherwise Hash will dup and freeze the String anyway.
|   + 294941 [shortcutter@] As Jano mentioned it's the skipped #dup for frozen Strings that makes
|     294943 [shevegen@li ] Thanks for the feedback so far. :-)
|     + 294946 [shevegen@li ] Sorry for replying so soon but I had to ;-)
|     + 294954 [avdi@av i. r] The problem with simple truths is that often aren't simple, and almost
|       + 294963 [rajat79@gm i] ...
|       + 294974 [shortcutter@] Yes, that's true.  But I'm inclined to say that even in Java there is a
|         + 294977 [gsmedley@ka ] - C. A. R. Hoare
|         + 294982 [avdi@av i. r] In the embedded version of Java, where it is possible to pre-allocate
+ 294857 [coder68@ya o] PROFILE IT!!!
| 294869 [avdi@av i. r] +1
| 294878 [pbrannan@at ] Profiling only tells you where performance bottlenecks are.  It does
+ 294865 [znmeb@ce ma ] A whole book full of tips!
+ 294887 [jan.svitok@g] ParseDate#parsedate is expensive - it uses rationals, gcd and other
+ 294888 [gerardo.sant] When generating text output, using StringIO is faster than using puts
| 294894 [pbrannan@at ] This doesn't make sense.  One can easily call #puts on a StringIO
| 294919 [gerardo.sant] $ time ruby a.rb 10_000_000 > /tmp/a && sleep 3 && time ruby b.rb
| + 294934 [micathom@gm ] This and some other tips seem specific to either ruby 1.8 or 1.9.
| + 295044 [jftucker@gm ] <shevegen@linuxmail.org=20
| | 295086 [gerardo.sant] For goodness sake, read before replying. I'm not using any terminal.
| | 295199 [jftucker@gm ] I'd be very impressed if you could afford the ram to do the
| + 295059 [pbrannan@at ] I think you are demonstrating the difference between IO#puts and
|   + 295060 [pbrannan@at ] cout@bean:~/tmp$ time ruby1.9 a.rb 10_000_000 > /dev/null
|   | 295063 [Rob@Ag le on] OK, I avoided saying something on the previous message, but can you
|   | 295076 [pbrannan@at ] I would normally do that, but I didn't want to cause more confusion by
|   + 295087 [gerardo.sant] Replace output.write("hola mundo\n") with output.puts("hola mundo")
|     295091 [pbrannan@at ] Not much difference, and the StringIO solution uses more memory.  Not
|     295096 [shortcutter@] I'd say the difference is not worthwhile the added complexity and
+ 294908 [john.carter@] Sounds like time to repost (yet again, can't we add this to a FAQ somewhere?)
+ 294999 [s.korteling@] Date and DateTime are time consuming. Time however, is not.

Replacing based on regular ecpressions
294851 [tek.katu@gm ] I'm writing a ruby script that does a batch search-and-replace command.
294855 [shortcutter@] That's not a valid regular expression as far as I can see.  So the whole

Test for Internet Connection
294859 [cg821105@oh ] Does anyone know a way to test to see if the computer is connected to
+ 294862 [pjb@in or at] require 'ping'
| 294868 [cg821105@oh ] This did not work.  The same exact problem occurred: Ruby froze and
+ 294872 [rogerpack200] I usually do something like this on my machine
| 294879 [cg821105@oh ] Even that caused Ruby to hang.
| + 294880 [rogerpack200] require 'resolv-replace'
| + 294882 [avdi@av i. r] AFAIK the "right" way to test for a network connection on Ubuntu is to
|   294886 [cg821105@oh ] The ruby-dbus package is still being developed.  Most importantly, it is
|   + 294889 [avdi@av i. r] This describes nearly every Ruby library in existence.
|   | 294980 [cg821105@oh ] I was referring to the fact that ruby-dbus is still in a pre-beta
|   | 294981 [avdi@av i. r] No, I'm suggesting you use the existing dbus gem as-is unless there
|   | 295278 [cg821105@oh ] Well after all of that, I can't compile the dbus gem unless I download
|   | 295281 [lionel-subsc] Your problem isn't clear enough for a good advice : do you need an
|   | 295299 [fwmailinglis] ...
|   + 295007 [raasdnil@gm ] Grab the gem onto your box, after check the license of the gem, copy
+ 294873 [avdi@av i. r] What OS?
+ 413980 [lists@ru y- ] Apologies for necro threading but let my answer help other people coming
| + 413987 [atma@co va e] The code is not completely wrong but in real case scenarios is impractical.
| + 414005 [sto.mar@we .] require 'net/ping'
+ 414022 [lists@ru y- ] The original issue was that Mechanize was not timing out, so perhaps

Exposing Ancestor Public Methods/ Book Reccomendation
294866 [demonic.soft] ...
294867 [avdi@av i. r] You need "The Ruby Way", Second Edition, by Hal Fulton.

Re: PDF::Writer 1.1.8
294881 [djberg96@gm ] (in C:/ruby/src/pdf_writer-1.1.8)
294895 [halostatue@g] I'd be shocked if this worked anyway, since PDF::Writer has no unit tests.

pubsub feature implementation using XMPP4R
294896 [kumar.anul@g] I am using XMPP4R to interact with Jabber.

Regexp.union  - set option all patterns case insensitive
294897 [jhonovich@gm] I want to pull a list of terms and use them to scan documents to
294899 [cmshea@gm il] I don't know how much better this is, but you could union first, then
297722 [user@us ne .] This solution works. Thanks.

Any good Ruby/Qt4 tutorials?
294898 [brainychip@g] ...
294900 [devi.webmast] There's a PDF-only book from the Pragmatic Programmers
294901 [brainychip@g] ...

Parallel Execution of Unit Tests
294902 [onlywade@gm ] I'm using Ruby's Test::Unit framework to drive some functional tests
294906 [onlywade@gm ] Really none of them, unfortunately.  This specific domain of tests are
294940 [mark.ryall@g] ...
294989 [onlywade@gm ] Yeah, I'm actually utilizing Selenium Grid for the client side of it.
398264 [lists@ru y- ] <suite name="My_Test_Suite" parallel="classes" thread-count="5">

Interbase driver problems XP
294903 [oniram@gm il] I am trying to compile the ruby Interbase module, but failing.
294929 [jan.svitok@g] Does this help?
294971 [oniram@gm il] in this link he say "I also forgot to set my vcvars32.bat" what this is?
294992 [jan.svitok@g] 1. development enviroment - C compiler, make tool etc. - if you want

gem update --system
294909 [vjoel@pa h. ] This is odd... whenever I execute "gem update --system", the update and

CGI and Methods??
294910 [tonydema@gm ] I'm trying my hand at scripting cgi in ruby.  At the same time I'm

CGI and Methods??
294911 [tonydema@gm ] I'm trying my hand at scripting cgi in ruby.  At the same time I'm
294913 [justincollin] Writing code using the CGI library is just like any other Ruby code, so
294916 [tonydema@gm ] Thanks Justin,
294931 [justincollin] It does matter where you place the method definition, in a way. That is,
294935 [tonydema@gm ] Justin,
294960 [justincollin] It really depends on your setup. If you want to use mod_ruby, though,

Simulating "allow_blank"
294912 [laredotornad] I'm using an older version of RoR (1.2.3) -- a constraint of the

SQLite3 Compilation issue
294914 [mutahhir.ali] Hey guys,
294979 [luislavena@g] Did you set INCLUDE and LIB to add these files? or you just drop them
295015 [mutahhir.ali] Dropped them into the include and lib.
295072 [luislavena@g] The BLOB error I reported in the rubyforge ticket is the same, the
295074 [mutahhir.ali] Thanks a lot. :)

Making all my Ruby files pretty
294920 [kyrreny@br a] I'm trying to make a simple Ruby code beautifier to set me at ease. I

What does &&= do?
294922 [subramani.at] I came across &&= while reading some code. I know what ||= does but
+ 294925 [jan.svitok@g] a &&=b is a shortcut for a = a && b
+ 294937 [ruurd@ti ca ] self assignment
+ 295003 [perrin@ap th] The other answers are not wrong, but they may not be clear.
  + 295008 [rick.denatal] irb(main):001:0> a = false
  | 295019 [perrin@ap th] Technically more correct than my answer, but mine wasn't *incorrect*.  It
  + 295088 [kbloom@gm il] Consider the following practical use I gave in my solution for Ruby Quiz
    295384 [subramani.at] Thanks all for the detailed explanations. Really nice of you.

Issue with SQL like
294924 [rajat79@gm i] ...
+ 294942 [mudge@wa er ] Airport.find(:all, :conditions => ["owner_city_state_zip LIKE ?",
| 294958 [rajat79@gm i] ...
+ 295090 [kbloom@gm il] Yuck. That doesn't look like the right behavior. I would think that the
  295095 [Rob@Ag le on] Airport.find(:all, :conditions =>["owner_city_state_zip like ?",

about timer?
294928 [hb.pat87@ho ] I want to add 'a' in the text every 1 second.
294936 [mutahhir.ali] ...
294938 [hb.pat87@ho ] I try to put out of loop and then it show 'aa'.
294944 [hb.pat87@ho ] I do it now thank you! but I use @timer.start(1000) it do in less than 1

Erubis subtemplates
294932 [christian.ke] Is it possible to do subtemplating with erubis?
294959 [christian.ke] I'm using tenjin now. It has subtemplating built in.

Scruffy - how to assign SVG Builder object
294933 [wtfisgn@gm i] I'm trying to render rectangles and lines. Right now I'm using

Trouble with rubyscript2exe and ruby/SDL.
294945 [sgeos@ho ma ] I am having trouble getting rubyscript2exe to work with ruby/SDL.

MultiMediaPlayer of Ruby for Symbian
294947 [shenoudab@gm] Dears,

rmagick problem on Ubuntu
294948 [d_rems@ya oo] I had installed rmagick gem on ubuntu 7.10. I have also compiled
294949 [rmagick@gm i] Ubuntu doesn't look in the gems path for libMagickWand.so. It only looks
294952 [d_rems@ya oo] Yep. It helps. Thanks a lot.

win32 File.size slow?
294972 [Carey.Nation] ...
294995 [djberg96@gm ] That's interesting. The File.size method is really a wrapper for
+ 295071 [Carey.Nation] I'll try this.  I don't think that it's the path because it _does_ work. =
+ 295102 [Carey.Nation] That works and the performance is good.  Two caveats.  First, in the =
  295120 [djberg96@gm ] reateFile, it wants 0 rather than nil.

[ADV] Last call for MWRC registration
294976 [pat.eyler@gm] just one last reminder.   Registration closes tomorrow.  If

Re: Food Database (#159)
294997 [erikveen@gm ] I've combined 3 of my own libraries, which resulted in a 30
threads.html
top