367689-368242

367456-369187 subjects 367843-372771

^ sqlite3 odd problem
367689 [derril.lucci] greetings everyone,
+ 367690 [astahl hi5.c] Either you don't have the gem installed or you don't have your gem_path
+ 367691 [joseph.savar] gem list sqlite3
+ 367696 [luislavena g] =A0it

^ Will ruby programs using win32ole run on  a Mac????
367692 [arti.p.singh] I have some ruby scripts that use win32ole to automate Microsoft Excel
+ 367695 [luislavena g] No, there is no ActiveX/OLE/COM under Mac, so is pointless.
+ 367697 [joseph.savar] Not sure how that winole23.dll will work in osx .
  367708 [a.bovanenko ] macos

^ puts by name
367698 [ralphs dos32] puts "some_variable.something = #{some_variable.something}"
+ 367699 [ryand-ruby z] Yes.
+ 367700 [jbarnette gm] If you're repeating it that much, you're not writing enough tests. :)
+ 367791 [b.candler po] some_variable = Object.new

^ synchronize  between download and save  in  multi-threads?
367701 [myocean135 y] i want to download all usa listed company historial data from yahoo
367811 [rogerpack200] The "Mutex" class might be useful to you.

^ Dominate Mafia Wars
367702 [alinurwatoni] $27 Guide Show You How To Cheat

^ Question about learning Ruby effectively
367703 [cnguyen rapa] I'm a newbie to Ruby. I've just started learning Ruby for a week, but I
+ 367705 [jgabrielygal] contains the core classes.
| + 367707 [shortcutter ] p,
| + 367731 [josh.cheek g] 2010/8/14 Jes=FAs Gabriel y Gal=E1n <jgabrielygalan@gmail.com>
+ 367732 [tn.pablo gma] If you are considering a book, Programming Ruby, known as the pickaxe,
| + 367740 [cnguyen rapa] Wow, a lot of advices ;) ! Great thanks to everybody. I will check those
| | + 367746 [samatoms gma] Posted via http://www.ruby-forum.com/.
| | | 367751 [parser devio] e=20
| | | 367756 [rick.denatal] That foxes LOVE chunky bacon!
| | + 367796 [sroach inves] I took the Core Ruby course offered at www.rubylearning.org.
| + 367760 [wagner.andre] Also, Dave Thomas, the author of the pickaxe book, has a screencast on ruby m=
+ 367775 [d_rems yahoo] Best ruby libraries documentation link + much more is Sidebar for

^ Does Ruby have reference parameter?
367704 [cnguyen rapa] In C++, in order to modify a variable being passed into a function we do
+ 367706 [jgabrielygal] In Ruby a variable is a reference to an object, and when you call a
+ 367710 [rick.denatal] ts
+ 367722 [vikkous gmai] On the (rare) occasions when I have needed this, I make the parameter
  367739 [cnguyen rapa] Thanks a lot everybody,
  367805 [me waltonhoo] Just to add... the only instance that I have found where I "need" to do

^ KDE desktop script launching
367709 [dglnz2 gmail] okay I've got 2 fxruby programs and they run from the command line okay

^ Weirdest IRB / Rails console problem
367711 [raineronrail] I have a really weird problem. In IRB / Rails Console I cannot type a
367797 [raineronrail] I'm using workarounds here, or avoiding classes beginning with C. If
367842 [b.candler po] Only a guess, but maybe a problem with libreadline?
367956 [raineronrail] Thanks, that helped a lot.

^ favicon
367712 [speed500 hot] can someone help me??
+ 367758 [oscartheduck] What have you tried so far?
+ 367762 [ jupp gmx.de] First you need to extract the favicon URL - I think that

^ Gather autocompletion-information while running tests?
367713 [jan kechel.d] I was looking around for some autocompletion solution for ruby. Most
367810 [rogerpack200] Is static analysis not enough for you?

^ wget abd block
367715 [lagox.mail g] rss-feed.
367726 [ninja slapha] A nit: Why would you do "#{m}"? If m is already a string, just use it by
367743 [lagox.mail g] thx for the reply, i finished write the script.

^ Creating an array of hashes and having issues
367716 [jdezenzio gm] I have an array that contains 36 objects.  The composition of those
367720 [rick.denatal] Is this what you want?
367723 [jdezenzio gm] Thanks Rick - this example did work but I believe your second idea was a

^ file.readlines  problem
367717 [myocean135 y] please run the following program in your computer,the output is
367741 [myocean135 y] urlfile.rewind

^ Mongrel not starting, missing environment Engineyard
367719 [ccomstock gm] I am trying to deploy my app on Engineyard and I have not been able to
367721 [rick.denatal] You are much more likely to get help in the Rails group than here, or

^ hash-style parameters
367724 [spare frigid] para "Paragraph Text", :style => "this", :whatever => "that"
367727 [ninja slapha] You could answer your own question by looking at the source of the program
+ 367733 [tn.pablo gma] Just a note: while you can omit parens in method definitions, most
| 367737 [ninja slapha] Why?
| 367755 [tn.pablo gma] Just a convention, I guess precisely so you can easily tell method
+ 367806 [rogerpack200] Posted via http://www.ruby-forum.com/.

^ Chrome ore Sell Pakistani 30% - 52%,
367725 [resourts85 g] Chrome ore Sell Pakistani 30% - 52%,

^ kind_of?( NilClass )
367728 [lists kempge] Should I write
+ 367729 [steve stevek] You can always var.nil?
| 367730 [lists kempge] Well, yes if the var is a kind_of?(Object) but not if
| 367738 [ninja slapha] The purpose of a BasicObject is, generally, to implement proxy classes.
| 367745 [lists kempge] Right.
+ 367735 [ryand-ruby z] Do you actually care if it is nil? Or just untruthy? I much prefer
+ 367748 [shortcutter ] The other suggested checks are cleaner IMHO.  There is only ever one

^ [ANN] Inochi 5.1.0
367734 [sunaku gmail] Inochi

^ how to sove the loaderror?
367742 [myocean135 y] please run the following program  in irb,you can get
+ 367744 [myocean135 y] sorry , it is
+ 367786 [b.candler po] (1) Don't use class variables (@@myfile): the value will be shared

^ Help with too many methods
367747 [samatoms gma] I am writing a Ruby program that creates different URL queries. Right
+ 367749 [shortcutter ] Without further information about what all these methods do it's
| 367750 [samatoms gma] Thanks Robert.
| 367761 [stefano.miol] Take a look to The Well-Grounded Rubyist (Manning, David Black), too.
+ 367752 [wagner.andre] def get(name,value)
  + 367753 [samatoms gma] Thank you very much. This will work excellently.
  + 367754 [shortcutter ] I'd rather use a Hash and lambdas for that since it is more explicit and
  + 367757 [tn.pablo gma] or this
    + 367759 [wagner.andre] o play with it.
    + 367785 [b.candler po] def get(name, value)
      367787 [wagner.andre] Ah, good call. That's my bad, not Pablo's.

^ [ANN][Security] XSS in WEBrick (CVE-2010-0541)
367763 [yugui yugui.] A possible security vulnerability on WEBrick. The vulnerability has been

^ [ANN] Ruby 1.9.1-p430 is out
367764 [yugui yugui.] Ruby 1.9.1-p430 has been released. This is a security fix for CVE-2010-0541.

^ [ANN][Security] Ruby 1.8.7 patchlevel 301 released (CVE-2010-0541)
367765 [shyouhei rub] As Yugui posted earlier, there is a XSS vulnerability in WEBrick HTTP ser=
367769 [shyouhei rub] erver.

^ [ANN] RubyInstaller 1.9.1-p430 available
367766 [luislavena g] Wanted to inform that RubyInstaller project just made available

^ YAML Bug - can't round-trip a hash value with leading newlines.
367767 [daniels pron] YAML can't round-trip the hash: {"default"=3D>"\r\n  Monkey \r\nX"}.
+ 367768 [botpena gmai] iianm, it fails for ruby ver below 1.9.2.  it is fixed ruby1.9.2
+ 368098 [headius head] Please file a bug if you could, at http://bugs.jruby.org :)
+ 368242 [vikkous gmai] The patch for it did finally get accepted in 1.9.2.

^ Ansi animation
367772 [dennis corte] Anyone aware of a ruby ansi animation project, like Term::Animation?

^ which C standard
367773 [graham.agnew] Which C standard does MRI use?  When I run configure on HP-UX, it seems
367815 [aaron tender] MRI uses C89.

^ Click on html element
367774 [tcblues gmai] <td>A</td>
367955 [tcblues gmai] No ideas?
367960 [jgabrielygal] <html>

^ Embedded Ruby 1.8.7”½Segmentation fault
367778 [slash.public] Dear community,
367779 [slash.public] === RUBY ===

^ Unix Philosophy in Ruby Programing
367781 [di3go.bernar] I use Linux about 5 years, but, this year that i started to "use" linux.
+ 367782 [peterhickman] Because not all OSs are Unix, not all Unixes have sendmail,
| 367790 [joseph.savar] @ peterhickman386@googlemail.com
| 367792 [peterhickman] Now that I reflect on this I find that the point where I understood
| 367800 [oscartheduck] What's neat is that the core unix philosophy of small tools working together
| 367801 [shortcutter ] Not all Unix tools are free of side effects or can have side effects
| 367814 [no spam.plea] Unix was considered to have significantly departed from this philosophy
+ 367783 [marco-oweber] Because Ruby applications also run on Mac, Windows, ....
| + 367784 [stuart stuar] linux.
| + 367823 [ninja slapha] I don't really buy this as an argument. I'll respond directly in a separate
+ 367788 [joseph.savar] Gems or any other reusable library structure/components provide brilliance
+ 367789 [mberg damnat] Why write sendmail when you could send with UUCP?  Why write monit if you
| 367824 [ninja slapha] Bingo. This is probably the second biggest reason for doing it this way.
+ 367826 [ninja slapha] "I wanted a scripting language that was more powerful than Perl, and more
| 367835 [sentinel1879] Another issue with calling Unix commands is portability. I've finally
| 367917 [ninja slapha] This is solvable -- there is enough in common, and GNU coreutils are
| 367971 [sentinel1879] If you've tried to make your software run: say the date command for
+ 367925 [normalperson] People build libraries/applications to fill particular niches/needs that
| 368043 [sentinel1879] Eric, I was reading that page. The link of the file Tomayko has been
| 368095 [normalperson] Yup, that's always the latest version on git.bogomips.org.
+ 367975 [sentinel1879] I think you are making a wrong comparison: comparing ruby gems to unix
+ 368232 [eleanor game] linux.

^ QtRuby : constructor optional parameter
367794 [arturo.bonec] I would like to know how to manage (with QtRuby) the optional parameter
367798 [stefano.croc] Use nil as default value. Generally speaking, everywhere the C++ takes a
367799 [arturo.bonec] Thank you for the quick reply!

^ just click and meet ur dearest girl nearest u
367795 [iamforufrien] just click and meet ur dearest girl nearest u

^ [ANN] RubyInstaller 1.8.7-p302 available
367802 [luislavena g] Wanted to inform that RubyInstaller project just made available

^ 1.9.2 array performance
367803 [jzakiya gmai] In Antonio Cangiano's blog http://antoniocangiano.com/
367809 [rogerpack200] You can ping ruby core about it I suppose...

^ Indentation in stdlib
367804 [lists kempge] Annoyed about inconsistent indentation in some files in the stdlib
367816 [aaron tender] Probably this is by accident.  If you check the code style in the wiki,

^ Have I been staring at the screen too long?
367820 [iainspeed gm] $ irb
+ 367827 [ninja slapha] irb(main):002:0> Array.public_instance_methods.include? :rand
| 367840 [b.candler po] That'll be Kernel#rand I expect.
| 367866 [iainspeed gm] So why did it produce two different outputs even though my patch didn't =
| 367882 [b.candler po] I've no idea, because you haven't shown the source of your
| 367891 [iainspeed gm] didn't=20
+ 367899 [b.candler po] In ruby 1.9, rubygems is activated automatically - you don't need
  367901 [iainspeed gm] relative=20
  367950 [b.candler po] The actual behaviour of Kernel#load is not obvious

^ Killing a gnome-terminal process from a ruby script
367821 [lisien.gjonc] I'm working on a dialog manager and I'm stuck at the part where I need
367822 [me waltonhoo] Processes such as gnome-terminal are free to ignore sigterm, and many
367831 [lisien.gjonc] Process.kill :SIGKILL, @terminal_pid.pid if !@terminal_pid.nil?

^ Intstalled Ruby 1.8.7 but still getting ruby -v => 1.8.6
367825 [go_mitchell ] I have followed the instructions to install ruby 1.8.7. Everything seems
+ 367838 [b.candler po] Which instructions? What did you do? On what platform? The question
| 367845 [mitchellgoul] I followed these instructions that were posted on this forum.
| 367847 [b.candler po] Did you do a plain "./configure" or did you add any options to it?
| 367951 [mitchellgoul] I Did not do any options when I installed. However I have discovered
| 367982 [rogerpack200] I would just rename /usr/bin/ruby to /usr/bin/ruby_old or something.
+ 367900 [rogerpack200] running "whereis ruby" will probably tell you which one it is using, and

^ IMAP: unexpected token LPAR (expected QUOTED or LITERAL)
367828 [shea sysach.] I'm writing an IMAP parser that uses BODYSTRUCTURE to fetch only the
367829 [shea sysach.] Heres an example message that triggers it.
367907 [shea sysach.] Heres the full trace, with Net::IMAP.debug = true

^ www.fpsgames.com.au/starcraft key,key 'starcraft,Starcraft c
367832 [robinbest60 ] As the professional cd key

^ can i do this in ruby? a simulation process
367833 [winshocker g] A superhighway connects one large metropolitan area to another.
+ 367834 [jeanjulien.f] You sure can do it in ruby but first you have to decide what ruby have
+ 367836 [jeanjulien.f] You sure can do it in ruby but first you have to decide what ruby have
| + 367837 [winshocker g] Cheers Thanks, anyway i already did writing and other stuff but the only
| | 367839 [jeanjulien.f] Try to create a Vehicle class where you compute the arrival time and
| | 367849 [wagner.andre] Hmm, I may or may not disagree with you on what the output should be. I
| | + 367850 [b.candler po] Ruby quiz :-)
| | | 367853 [wagner.andre] Interesting. Sounds like I've got a bug to hunt down. Agreed, as far as
| | | + 367857 [winshocker g] A superhighway connects one large metropolitan area to another.
| | | | 367870 [b.candler po] No, and in any case that's the wrong approach for a simulation.
| | | + 367858 [winshocker g] A superhighway connects one large metropolitan area to another.
| | |   + 367859 [winshocker g] sorry for the double post :)
| | |   + 367862 [wagner.andre] I used rand() for both departure time and traveling time, assuming all the
| | |   | 367867 [jeanjulien.f] "A vehicle leaves the first city every 5-35sec. [...] How long does it
| | |   | 367873 [wagner.andre] Well, it may be interesting, but not in terms of the question originally
| | |   | + 367881 [winshocker g] is it possible?
| | |   | | 367883 [winshocker g] OR like this one
| | |   | | + 367886 [winshocker g] is it possible for someone to post their code? is not that i would copy
| | |   | | | 367888 [wagner.andre] I think it would be better if you posted (a link to) your code, and we can
| | |   | | + 367887 [wagner.andre] Bruce,
| | |   | | | 367889 [winshocker g] yes, i agree
| | |   | | + 367892 [b.candler po] That's a good start, although the question says a vehicle takes between
| | |   | |   367895 [winshocker g] yes indeed i talk to much i didn't realize the requirements which you
| | |   | + 367885 [jeanjulien.f] to
| | |   |   367890 [wagner.andre] Ah, I see your point. Very interesting indeed. Is it reasonable to guess
| | |   |   + 367894 [winshocker g] Yes indeed.
| | |   |   + 367898 [jeanjulien.f] Sure. I have no time left to play with it today, but I will try it tomorrow=
| | |   |     367980 [jeanjulien.f] Well, in the end, it did not take too long: less than 3 hours in mean
| | |   + 367864 [b.candler po] Yes. rand() by itself gives a random number between 0.0 and 1.0 (well
| | |   | 367868 [wagner.andre] Ah. Yes, I didn't mean to say that I used rand without any parameters. I
| | |   + 367865 [jeanjulien.f] Yes, we did. But also when taking into account the number of
| | |     367871 [wagner.andre] Yes, but you take that into account by doing a large number of trials,
| | + 367852 [jeanjulien.f] It was just to get him the idea.
| | | 367854 [wagner.andre] Ah yes, I see now what Brian meant by "bursty". Thanks for the results!
| | + 367911 [brabuhr gmai] 58,387 trials
| |   367922 [brabuhr gmai] 33
| |   367937 [winshocker g] can someone post some code here: I'm only a newbie in ruby :( and
| |   367946 [b.candler po] You seem to have made a good start. Why don't you post what you've done
| |   367952 [winshocker g] print "Number of Vehicle: " #That will be maximum of 5 only
| |   + 367958 [brabuhr gmai] Don't worry about it so much, we all start as beginners :)
| |   + 367965 [b.candler po] For a newbie, it's a fine start, and this is the best way to learn.
| |     367967 [b.candler po] Sorry, what I said was completely wrong there; I misread your code.
| |     367984 [winshocker g] i already erase some codes: but the thing is how can i get the total
| |     367989 [brabuhr gmai] arrival_time =3D departure_time + travel_time
| |     367991 [winshocker g] i've been trying to change the thing you said but it shows nothing. :(
| |     367992 [brabuhr gmai] START DELETE
| |     367993 [winshocker g] i already done that Thanks
| |     367994 [jeanjulien.f] I think you misread the problem: nobody says that the first vehicle
| |     367998 [brabuhr gmai] Bruce,
| |     368004 [Rob AgileCon] OK, I know this thread is going for some kind of record, but like any
| |     368013 [brabuhr gmai] What kind of record would that be?
| |     368035 [jeanjulien.f] od
| + 367920 [josh.cheek g] I'm not sure how much your simulation needs to include, on one hand, you
|   367945 [b.candler po] You have to be very careful with the termination condition.
+ 367841 [b.candler po] To start with, I'd ask the following: how would you perform the
+ 368002 [ian.hobson n] Some concepts for you. A simulation has exactly three types of "events".
threads.html
top