411829-412226 subjects 412274-413403

Module Variable
412029 [lists@ru y- ] I am beginer in ruby. could u pl. tell me How to access a module
412030 [lists@ru y- ] See section Modules

ruby-audio 1.6.1 install error( with installed Libsndfile 1.0.25 )
412031 [lists@ru y- ] Please help me to install ruby-audio 1.6.1
412132 [lists@ru y- ] Posted via http://www.ruby-forum.com/.

change windows drive
412036 [lists@ru y- ] I need to get access to my D: drive through command line to do certain
+ 412037 [shortcutter@] What exactly did you do?  And does the user have permissions on the
+ 412041 [lists@ru y- ] irb(main):001:0> Dir.pwd
+ 412072 [lists@ru y- ] Yes the user has permissions.
| 412077 [shortcutter@] $ ruby -c <<CODE
+ 412078 [lists@ru y- ] Of course not.. i was just explaining, what i do is like this more or
  412079 [echristopher] I'm not exactly sure what's going on here, but it sort of looks like Ruby
  + 412080 [shortcutter@] Yes, that's most likely what's happening.  Ruby needs a program to
  + 412090 [strausscasse] ...
  + 412098 [lists@ru y- ] Thanks Eric this worked!!!
    + 412100 [shortcutter@] $ ruby -e 'p Dir.pwd; fork { Dir.chdir("/"); exec("bash", "-c",
    + 412107 [tamouse.list] Dir.chdir("d:/myrootfolder/") do |rootfolder|

"ruby -wc" vs "ruby -c"
412054 [lists@ru y- ] The way to lint a script (that is, to only check its syntax) is to do
412075 [justincollin] $ cat test.rb
412089 [lists@ru y- ] Funny, I was just today trying to figure out how to check for syntax

FileUtils Install
412073 [lists@ru y- ] I am trying to build a script that deletes all folders within a specific
+ 412074 [m.fellinger@] FileUtils is part of the standard library, no need to install gems. Just
| 412092 [tamouse.list] Sadly, there is a (defunct) gem called exactly "fileutils" which has =
+ 412093 [lists@ru y- ] Thanks, that makes perfect sense!
| + 412105 [shortcutter@] Works for me (albeit not under Windows). What does not work? Any
| + 412106 [tamouse.list] You need to tell us what is happening, what you expect to happen, any =
+ 412125 [lists@ru y- ] The 4 colons were showing a directory tree.

GUI in C++ or Ruby
412081 [lists@ru y- ] I am just getting back to using Ruby after a 3 year absence (from any
+ 412082 [lists@ru y- ] I should have mentioned I will be using Windows 8.1 as build machine.
+ 412083 [stefano.croc] I like very much QtRuby, the ruby bindings for the Qt library. There's a
+ 412085 [lists@ru y- ] Thanks have had a look at the links above and a couple of other sites.
| + 412086 [mail@ss le s] Of course the GTK+ GUI together with Cairo works very well, at least for
| + 412087 [normalperson] ...
+ 412095 [lists@ru y- ] My experience says that every toolkit has its drawbacks (portability,
| 412101 [lists@ru y- ] I use Shoes for desktop applications.
+ 412102 [lists@ru y- ] I've found GTK to be very flexible and quick compared to TCL/Tk.
+ 412103 [lists@ru y- ] Keep them coming I appreciate it.
| 412142 [mo_mail@on h] ** snip **
+ 412104 [lists@ru y- ] I'm not sure about the other tools, but it sounds like something that
+ 412143 [lists@ru y- ] Thanks guys still open to suggestions
  412159 [lists@ru y- ] if you don't care very much on look&feel, with Ruiby you can

FileUtils - Delete all but one file
412096 [lists@ru y- ] I am trying to use FileUtils to delete Temporary Internet Files on
+ 412097 [fluido@fl id] I have no idea whatsoever about how windows is handling directories,
+ 412099 [s.manolloff@] Rescue the exception and continue if the filename matches ?
+ 412173 [lists@ru y- ] def remove_files

gsub! Exceptions when pattern not found
412108 [lists@ru y- ] Hey guys,
+ 412109 [chris.hulan@] are you chaining the gsub!
+ 412112 [stu@ru yp og] I just tested it and it worked here.
+ 412113 [shortcutter@] It's not the substitution that throws the error but the next method invocation.

Need Urgent Help with an Assignment
412110 [lists@ru y- ] 1  Use a threaded model to multiply two matrices
412111 [lists@ru y- ] 1  Use a threaded model to multiply two matrices
412114 [keystonelemu] Does it really need to be said that the people here aren't going to do your
412118 [lists@ru y- ] Please it's very important and it is very essential.I would really be a
412119 [wbrisett@at ] ...

Security Fixes summary?
412117 [peter.fitzgi] Could one of you please point me to a summary-list of security fixes for
412139 [justincollin] You could also search the change logs for "CVE".

2014 Fukuoka Ruby Award Competition -Entries to be judged by Matz
412120 [lists@ru y- ] Dear Ruby Enthusiasts,

[ANN] JRuby 1.7.7 Released
412121 [tom.enebo@gm] The JRuby community is pleased to announce the release of JRuby 1.7.7

[ANN] rake-compiler 0.9.2 Released
412122 [luislavena@g] rake-compiler version 0.9.2 has been released!

[ANN] JRuby 1.7.8 Released
412124 [tom.enebo@gm] The JRuby community is pleased to announce the release of JRuby 1.7.8

No Rspec output when using spark
412126 [lists@ru y- ] I have finally decided to track down a problem i have had with my

Need a help in scripting
412127 [lists@ru y- ] I am facing a problem in coding a certain thing and i am completely
+ 412128 [gary.carneir] You should use exception handling to get custom error messages.
| 412129 [lists@ru y- ] i am trying but its not working, the script is not running and it is
| + 412130 [abinoam@gm i] Could you try something like this?
| + 412131 [gary.carneir] Perhaps you can print debug messages to figure out where you are
| + 412133 [shortcutter@] What code?  I haven't seen any so far.  Until now I have to assume
|   + 412138 [atma@co va e] But I will share some code for I am kind (and just got back home from a cocktail party, aha! )
|   + 412146 [lists@ru y- ] it. It not like making people work, I was asking for syntax.. N do mind  your
+ 412176 [lists@ru y- ] Hey Saurav,
  412232 [lists@ru y- ] Michael,

°»ThreadError: current thread not owner°… using Sinatra?
412135 [lists@ru y- ] I'm building a small Sinatra server which has one GET route called
412212 [lists@ru y- ] Any way to avoid that and be able to run code safely in my setup and

[ANN] asciiart 0.0.6 released
412136 [beholdthepan] Turn images on your hard drive or on the internet to asciiart...even
412148 [Reid.Thompso] irb(main):001:0> require 'asciiart'
412149 [beholdthepan] Hey Reid.
412150 [jgabrielygal] It looks like he is using Ruby 1.8 to run it, and that is the "new"
412155 [Reid.Thompso] correct 1.8.7 doesn't understand the new syntax

rbenv Mavericks
412137 [lists@ru y- ] I just upgraded my MacbookPro to a fresh install of Mavericks.  After
412141 [mike@st k. a] sudo?

Using Web Feeds in Ruby (Mini-Facebook-like News Feed in 20 Lines of Ruby) and More
412140 [gerald.bauer] Feeds to Build Planet Sites in Ruby." [1] Use left/right cursor keys

Sparse matrix
412144 [lists@ru y- ] Emerged me a doubt to perform some operations with dense matrices and
+ 412145 [shortcutter@] What was the question again?
+ 412206 [carlos.agari] aaron,

=?windows-1252?Q?Re=3A_=93ThreadError=3A_current_thread_not_owner=94_usin?= =?windows-1252?Q?g_Sinatra=3F?=
412147 [shortcutter@] Just guessing: method safe will probably start a new thread so it can

Stuck at the first hurdle!
412151 [lists@ru y- ] I'm reading Chris Pines Learn to program and I am on "Getting Started"
+ 412152 [rashmireddy3] even i am new member dnt knw anythng nt even startd learning so i am sorry
+ 412153 [jay.kaye31@g] I might be able to help. Are you familiar with the command line at all?
+ 412154 [mail@ss le s] I do not have the book -- seems not to be free...
| 412186 [lists@ru y- ] Yes Stefan, I use windows XP, I am trying to teach myself programming from as a complete beginner. I have read up some of the basic concepts on Hackety Hack and am now trying to use Chris Pines book 'Learn to program'
| + 412188 [wbrisett@at ] ...
| | 412191 [lists@ru y- ] Thank you so much Wayne, I really appreciate your help!
| | 412200 [lists@ru y- ] I am past this stage!!! No longer stuck right now, thank you all again!
| + 412213 [matt@te hn r] I typically install the Cygwin tools when I'm working on Windows and I
|   412214 [jay.kaye31@g] Would it be useful to dual-boot my Windows machine when using Ruby? I keep
|   + 412215 [thomasmurphy] Hmm=85iOS seems like a curious choice.
|   | 412217 [jay.kaye31@g] Ah sorry, didn't mean I was going to dual-boot iOS. Just trying to figure
|   | + 412219 [wbrisett@at ] ...
|   | | 412220 [thomasmurphy] Let me point you to these two links. I don't personally use Windows, so
|   | + 412223 [matt@te hn r] Last time I saw Matz presenting, he was still using Linux for all his
|   + 412222 [matt@te hn r] If you don't have the background, probably not.  If you want to
+ 412225 [lists@ru y- ] "Would it be useful to dual-boot my Windows machine when using Ruby? I
  412228 [jay.kaye31@g] I misspoke before and it's snowballed. Apologies. I was basing this off

openSUSE 13.1 with YaST in Ruby
412156 [lists@ru y- ] Tomorrow, openSUSE 13.1 will be released.
412168 [botpena@gm i] uber cool : )

Location of CSS and Javascript code in a rails app
412157 [specialankur] I am new to RoR. Need suggestion for ideal directory/location to keep
412162 [keystonelemu] Might be best to go through the Ruby on Rails Tutorial (
412167 [specialankur] Thanks, Brandon. I can see rails generated Javascript and CSS code under
412171 [keystonelemu] That Rails Tutorial I linked to in conjunction with The Rails 4 Way (Obie

The right book for me learning ruby?
412158 [lists@ru y- ] Hay guys,
+ 412160 [groups@in ox] It's hard to go wrong with this one. It sounds like you have enough
| 412161 [keystonelemu] I came from a similar background, and jumped right into the Ruby way with
+ 412164 [stu@ru yp og] Read eloquent ruby and/or meta-programming ruby. Those are the beyond the
+ 412208 [lists@ru y- ] Thanks for your help! I will check out the books in the next days.
| 412209 [groups@in ox] You already referenced it: " "Programming Ruby 1.9 & 2.0". It's called the
| 412210 [lists@ru y- ] Ah ok thanks. Yes that makes sense haha :P
+ 412211 [atma@co va e] I was really happy to use "Beginning Ruby: From Novice to Professional". It's an excellent book that servers both as handbook and reference.
+ 412271 [me@da id wd ] I would also HIGHLY recommend The Well Grounded Rubyist
  412272 [ruby.student] Although I am not by any mean a good Ruby programmer as I am still
  + 412273 [me@da id wd ] The book I suggested isn't[t a new book. It was, however, updated awhile
  + 412278 [atma@co va e] ...

[ANN] MountainWest RubyConf 2014 CFP!
412163 [blowmage@gm ] Call for Proposals is now open! MWRC is entering its eighth year and has a

ruby script delimiter a number
412165 [lists@ru y- ] <%= property.land_area_sqm -%>
+ 412166 [rob.biedenha] Perhaps this is Rails? It's certainly at least ERb
| 412256 [lists@ru y- ] Thank you Rob!
+ 412174 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
  412257 [lists@ru y- ] Thank you Michael

Is there way to source csh env file in Ruby?
412169 [lists@ru y- ] I want to setup a tool, which set the env by source a csh file.
+ 412175 [shortcutter@] The shell cannot read a CSV file that way.  Even if using the output
| 412178 [gennady-ruby] On Nov 18, 2013, at 11:08 PM, Robert Klemme <shortcutter@googlemail.com> =
| 412184 [shortcutter@] My bad. This is embarrassing.  I am sorry.
| + 412234 [shortcutter@] $ ./test.rb
| | 412519 [lists@ru y- ] Dear Robert,
| | 412532 [shortcutter@] YWC
| | + 412536 [lists@ru y- ] Many thanks, Robert, I'll test it tomorrow with 1.9.3.
| | + 412545 [lists@ru y- ] Wow, 1.9.3 works, thank you so much.
| + 412265 [gennady-ruby] On Nov 19, 2013, at 4:08 AM, Robert Klemme <shortcutter@googlemail.com> =
+ 412177 [lists@ru y- ] Hey Previn,
| + 412179 [lists@ru y- ] I did as your suggestion, but get error below.
| + 412180 [lists@ru y- ] With modification as below, it can get right results.
|   412181 [gennady-ruby] %x[ csh -c 'source test.csh; env' ].lines.each do |_line|
|   + 412182 [lists@ru y- ] Thanks, Gennady, get all env virables by run shell command env,process
|   + 412183 [lists@ru y- ] May I ask one more question, how to understand the star(*) in
|     412264 [gennady-ruby] Previn,=20
|     412518 [lists@ru y- ] That really helpful, thanks a lot, Gennady.
+ 412185 [lists@ru y- ] Hey Previn,
| 412227 [lists@ru y- ] Dear Michael,
+ 412192 [lists@ru y- ] Execute the env file in a csh sript which

Newbie having trouble at my first task. Please Help!
412187 [lists@ru y- ] I am trying to teach myself programming as a complete beginner. I use a
+ 412189 [jay.kaye31@g] I might be wrong, but I believe at the very least you're going to want to
+ 412190 [lists@ru y- ] They're unticked by default in case you're running multiple Ruby
| 412193 [lists@ru y- ] Thank you Jason and Joel! This really helps. I'm getting there slowly
| + 412194 [jay.kaye31@g] Open up a text editor (I use sublimetext, but there are many out there).
| | 412196 [lists@ru y- ] I got so excited I was gonna nail this Jason, but when I get to: "save
| | 412198 [jay.kaye31@g] All you have to do when you save the file is type .rb at the end. This will
| + 412195 [wbrisett@at ] ...
|   412197 [lists@ru y- ] Oohhh, onto the NAME! I thought .rb was a file type!! Thank you!
+ 412199 [lists@ru y- ] Thank you Jason and Wayne! I am now happily typing away on the command
| 412201 [jay.kaye31@g] More than happy to help. I'm a beginner too, and I've been able to make
+ 412207 [lists@ru y- ] I'd highly recommend installing Notepad++. It'll give you a right-click

Instantiating Date class in Ruby C extension
412202 [lists@ru y- ] I want to instantiate the Date class in my Ruby C extension. However
412203 [fluido@fl id] You might want to post the C code...
412204 [lists@ru y- ] This is the C code
412205 [joelvanderwe] Since dateArguments is VALUE*, you need to call rb_funcall2() instead of

[ANN] Multidimensiona Array - MDArray 0.5.5
412216 [lists@ru y- ] Announcement

Sparse matrix 2
412221 [lists@ru y- ] Class SparseVector
412242 [shortcutter@] Since you are nesting Hashes you need a recursive approach at finding

3 ways to do the same? (Modules)
412224 [lists@ru y- ] module Test1

Using a Hash as an Argument for a Function or Method
412230 [lists@ru y- ] I'm new to writing RubyGems and I wanted to include a gem_name/bin file
+ 412233 [shortcutter@] I am not really sure why you mention the directory structure.  Isn't
+ 412267 [tamouse.list] file
+ 412414 [lists@ru y- ] My apologies gents for not replying sooner. Thank you for those example
  412418 [shortcutter@] No problem.

Need a Help to save a file
412231 [lists@ru y- ] I'm trying to write a ruby script that tests a "print to pdf"

I can't run a program I just created! Are spaces in file names a problem?
412235 [lists@ru y- ] Using ruby with windows vista, created a new programming and I'm in the
+ 412237 [wbrisett@at ] more or less. You either need to:=20
| 412238 [lists@ru y- ] I can't see the quotes, it should be c:>ruby "my filename.rb"
| 412239 [lists@ru y- ] Thanks again guys, I had no idea about quotes or underscores, is there
+ 412243 [lists@ru y- ] I believe that the reason for a lowercase standard is that Linux tends
| 412268 [tamouse.list] also_known_as_snake_case :)
+ 412246 [lists@ru y- ] Legend! As always! That text really illustrates it nicely.

Let's build Ruby Arena (simulating robot battles) - validation of idea
412236 [lists@ru y- ] I would like to ask you for help with validation of my idea.
+ 412249 [ryand-ruby@z] Check out rtanque
+ 412297 [rafaelmoraes] I would participate

Group SMS INtegration
412240 [lists@ru y- ] i am developing an application in which Group SMS Integration is
412241 [lists@ru y- ] i tried out it using twilio by writing below code in a .rb file  ,

Why an Object is_a? Module?
412244 [lists@ru y- ] I have a piece of code (derived from
412248 [rubytalk2dav] Object is a Module (since Object is a Class and Classes are Modules),
412269 [lists@ru y- ] Got it! Thank you for explaining!

412245 [lists@ru y- ] Today saw the launch of a new Kickstarter project, Sinatra Cookbook -

No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
412250 [lists@ru y- ] I just started learning Rake. I was reading the blog -
+ 412251 [mailme@hs s.] kirti@kirti-Aspire-5733Z:~$ rake
+ 412252 [lists@ru y- ] @harisankar - Thanks for your help!

ruby script if statement
412255 [lists@ru y- ] I want to write a if statement script, what it will do is if the phone
412258 [wbrisett@at ] ...
412259 [lists@ru y- ] Thanks Wayne
412260 [wbrisett@at ] ...
412261 [lists@ru y- ] I did tried
412262 [rob.biedenha] Let me guess that you're actually talking about a Ruby *on Rails* =
412263 [lists@ru y- ] sorry for the poor Explanation and your code working good

Run executable file
412270 [lists@ru y- ] I'm having ruby script (functional test). I have to run exe file which
412276 [shortcutter@] That totally depends on what "work fine" means.  The easiest check