355845-361661 subjects 356243-357973

^ Regex or line.each seems to not be working.
356044 [oshybrid gma] I have been banging my head over this for 2 days.  The following is to
356047 [rogerpack200] does rf have multiple lines in it?
356051 [oshybrid gma] Yes.... @rf is actually the instance variable of the text file listed at
356055 [sutniuq gmx.] ruby -v: ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux]
356060 [oshybrid gma] Perfect... Thanx man that did the trick.... Changed everything to
356063 [rogerpack200] Believe it or not, I run into that one *all the time*
356073 [shortcutter ] IMHO that would be inconsistent.  Think about how SQL does it: if you

^ What am I doing wrong?
356067 [azzzz gmx.ne] I didn't see a beginners forum - hope it's ok to post this here.
+ 356068 [stefano.croc] First of all it would be better, when asking for help, to tell exactly what
+ 356069 [aldric trevo] Your code looks good so far.
| 356075 [azzzz gmx.ne] Wow! Thank you all for such a fast response - I am shocked as I wasn't
+ 356070 [steve stevek] def create_list(word)
+ 356071 [josh.cheek g] Don't be so hard on yourself :)

^ Sandbox options?
356072 [donald.ball ] I'm interesting in providing my clients the ability to upload
356074 [sophrinix gm] I wouldn't call that production software yet. I will add that to the

^ [ANN] rdoc_osx_dictionary 1.0.1 Released
356076 [ryand-ruby z] rdoc_osx_dictionary version 1.0.1 has been released!
356078 [eregontp gma] $ ri Hash
356083 [ryand-ruby z] "/Users/benoitdaloze/.rvm/gems/ruby-1.9.2-head/gems/rdoc_osx_dictionary-1.=

^ bless roger's gnuplot as official?
356079 [jtprince gma] I really like the original rgplot (aka 'gnuplot' gem).  It is a great
+ 356095 [ryand-ruby z] what does it matter if people contribute to the "official" one, or to =
| 356101 [aldric trevo] I agree. Same with rails' will-paginate, or rather,
+ 356109 [joelvanderwe] The good news is that gnuplot version 4.3 solves this problem by letting

^ Re: rdoc_osx_dictionary 1.0.1 Released
356082 [johnsonqu gm] If installed gems share the same class name, eg. mime-types mimetype-fu
356084 [ryand-ruby z] mimetype-fu=20
356120 [ryand-ruby z] mimetype-fu=20
356122 [ryand-ruby z] mimetype-fu=20
356146 [johnsonqu gm] ~> sudo rdoc_osx_dictionary
+ 356149 [jeanjulien.f] Chandler ~>sudo rdoc_osx_dictionary
| 356150 [jeanjulien.f] l line 88
+ 356166 [ed ruders.or] I had a similar problem, but with a merb gem (merb-slices). Output is
  + 356262 [herbert.fisc] Great idea, but it's not working in my Mac.
  | 356267 [ryand-ruby z] In order to save me some sanity points, can you hunt down which gems of =
  | 356272 [herbert.fisc] /Library/Ruby/Gems/1.8/gems/ruby-openid-2.1.7/lib/openid/message.rb
  + 356390 [ryand zenspi] Dictionary.app,=20
    356393 [ed ruders.or] No, not using rvm. I just had a boatload of previous versions of the
    356396 [ryand-ruby z] If you can figure out what gems / versions I need installed to reproduce =
    356422 [grant antifl] reproduce this problem, I'd really appreciate it. I can't figure out why =
    356440 [ryand-ruby z] reproduce this problem, I'd really appreciate it. I can't figure out why =

^ Tk Text box
356085 [phil.auriemm] Is there any way I can create a text box in Tk that the user cannot
356090 [nagai ai.kyu] Remove its classs from the bindtags of the widget.
356104 [phil.auriemm] .com>

^ [QUIZ][SUMMARY] Hamurabi (#223)
356086 [yahivin gmai] There were many great solutions to this week's quiz. Most of the

^ Bug report for Ruby 1.9.1
356098 [blambeau gma] A small chunk of code (a serious introspection hack, I confess) of mine
356099 [shortcutter ] Did you check your spam folder?  Btw, these questions are best
356100 [blambeau gma] Yes I did, no mail (I already tried to create an account a few weeks ago,

^ GServer and SSL
356102 [gal bar-or.c] I've got some code that uses GServer rather heavily, and I'm wondering,
356151 [b.candler po] long time ago. It doesn't actually use GServer as I didn't know about it

^ kerberos context binding, segfault in test
356105 [djberg96 gma] Ruby 1.8.7-p243

^ newbie help : Ruby Processin
356106 [imran.nazir ] explain to me in simple terms why in the method
356107 [phil.auriemm] Not sure I understand teh question, but in doing the setup method of
356167 [imran.nazir ] has given me valuable insight into the code I attached earlier in that I

^ How to debug capistrano?
356108 [ajfrenzel we] I have a hard authentication problem with capistrano and want to track
+ 356110 [cwdinfo gmai] rdebug cap deploy
| 356114 [ajfrenzel we] Thanks for your reply.
| 356115 [ajfrenzel we] I use some set commands at the start of my debug sessions. These
| 356121 [ajfrenzel we] .rdebugrc gets executed befor the debug session starts.
+ 356123 [ryand-ruby z] That's a long slippery road my friend. I wound up debugging cap by =
  356132 [ajfrenzel we] But better than grinding in an endless loop... And an opportunity to
  356171 [ryand-ruby z] ...
  356180 [jdezenzio gm] I had a similar issue when I first used capistrano to begin deployment

^ multi line regex by default?
356111 [rogerpack200] For some reason I thought that to have a multiline regex, /m needed to
356113 [usenet-nospa] \r doesn't break lines, \n does.
356126 [rogerpack200] Oh ok thanks!

^ [ANN] rest-client 1.3.0
356112 [code archilo] I'm pleased to announce that rest-client 1.3.0 has been released

^ Re: Solar System (#227)
356116 [aldric trevo] Is anyone doing anything with this? I'm quite curious to see some

^ Preventing TkRoot from resizing
356117 [phil.auriemm] I have googled to no avail, so does anyone know how I would keep a
356135 [nagai ai.kyu] Tk.root.resizable(false, false) # boolean value: (width, height)

^ newbie question: Accessiong non-Windows DLL's
356118 [tmprman gmai] I am very new to Ruby, as in about 1 week new.  General Ruby programming
+ 356119 [phil.auriemm] I think you may be able to use the Win32API module for that.
| 356125 [tmprman gmai] Thanks for the info.  I cut-n-pasted those examples and they work for
| 356129 [phil.auriemm] You should be able to make a DLL and have it export the correct
| 356131 [tmprman gmai] That didn't work.  I am going to rebuild Ruby and my DLL's using VC++
| 356194 [eleanor game] I've not used Windows for development in about seven years so take the =
+ 356124 [rogerpack200] FFI might work.
+ 356127 [rogerpack200] You might get some traction by using a ruby compiled with the same
  356128 [tmprman gmai] Thanks for the info.  I had installed Ruby using "Ruby 1.8.6 One-Click
  356130 [tmprman gmai] BTW, my current VC++ is " Microsoft Visual C++ 2008 Express Edition

^ How do I use a variable in a regexp search string?
356134 [joemacbusine] I dont know how to use a variable in a regex searchstring.
+ 356137 [list.push gm] Does this help?
| + 356138 [transfire gm] p str =3D~ /#{Regexp.escape(searchstring)}/
| | 356147 [marnen marne] But note that #{} only makes sense if you're interpolating a variable
| + 357871 [joemacbusine] Thanks for all the helpful info.
|   357876 [Rob AgileCon] In this case, you're already getting strings in fname so "#{fname}"
|   357882 [jeanjulien.f] Which means File.open(fname) would work directly.
+ 356152 [josh.cheek g] filename = 'source.txt'
  356155 [b.candler po] puts "This is what matches: #{$&}"

^ undefined method `key'
356136 [angel21ccs h] h = { "a" => 100, "b" => 200 }
356139 [josh.cheek g] Here are the hash methods: http://ruby-doc.org/core/classes/Hash.html

^ some shoes to fill...
356140 [phlip2005 gm] Sorry about the _why thread, but I got to the party late.
356163 [richard.conr] While this is all ancient history now, the goal behind hackety hack was to
356188 [phlip2005 gm] Oh, btw...

^ [QUIZ] Ruby BASIC (#228)
356141 [yahivin gmai] -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ regex group match
356144 [hawat.thufir] SID=([\s\S]*?)LSID=([\s\S]*?)Auth=([\s\S]*)
356145 [hawat.thufir] thufir@ARRAKIS:~/projects/curl$

^ "require 'rubygems'" In Your Library/App/Tests Is Wrong?
356153 [tmo1138 inva] I found the write up at http://gist.github.com/54177 very interesting.
+ 356154 [fxn hashref.] =C2=A0But
| 356158 [josh.cheek g] I wonder how many people _don't_ use rubygems. What creates more work,
| + 356159 [fxn hashref.] If they installed your gem using rubygems they will load rubygems.
| | 356173 [james.britt ] Desktop code, for example, where an app is bundled up as a
| + 356160 [transfire gm] or
| | 356174 [james.britt ] Not for me.  I stopped doing that a while ago.
| | 356176 [transfire gm] How so? I can understand that for web app. But not for reusable ruby
| | 356187 [james.britt ] I don't follow.
| + 356161 [ shot hot.pl] Ruby 1.9 has RubyGems built-in, and for the legacy version you can
|   356184 [josh.cheek g] begin
|   + 356192 [ shot hot.pl] I think what most of us (can=E2=80=99t really say for others, though) want =
|   + 356197 [james.britt ] Suppose I have an app that uses Mechanize, but I've unpacked the
|     356205 [josh.cheek g] That makes sense. So what if I am making some code to use, for myself, but
+ 356156 [transfire gm] On Jan 30, 12:05=A0pm, Joe Wangkauf <tmo1...@invalid.gmail.domain.com>
+ 356200 [luislavena g] On Jan 30, 5:00=A0pm, Joe Wangkauf <tmo1...@invalid.gmail.domain.com>

^ Refining the use of file joins or file expand_path
356162 [jdezenzio gm] Both bits of code process the same result which is finding .rb file
+ 356164 [ibc aliax.ne] I prefer the first one.
| 356169 [jdezenzio gm] I do too, mainly because I don't like to use slashes.
+ 356172 [ryand-ruby z] Neither. I write sane code with sane requires and sane load paths. I =
| 356175 [jdezenzio gm] That doesn't work for all operating systems.
| + 356177 [xenogenesis ] It'll at least work on Windows, Linux, and OSX. For what OSs will
| | + 356178 [xenogenesis ] t.
| | + 356179 [jdezenzio gm] Tops-20
| |   356182 [ryand-ruby z] uh... wuh?
| |   356183 [jdezenzio gm] I was only providing a list in answer to Pharrington.  Call it Saturday
| |   + 356185 [jdezenzio gm] Just to clarify what I mean about paradigms,
| |   | 356223 [marnen marne] Then learn the correct paradigm.
| |   | 356237 [jdezenzio gm] The comment was really unnecessary Marnen, especially since I was only
| |   | 356249 [marnen marne] Wrong, at least the way I use that word.
| |   + 356253 [gwtmp01 mac.] The important item that I don't think has been mentioned in this
| |     356254 [marnen marne] Good to know.  I thought this was the case, but was not certain enough
| |     356269 [jdezenzio gm] I encountered a particular issue over the last couple of days when I
| |     356303 [shortcutter ] "require" is for loading library code (libs as parts of the
| |     + 356318 [jdezenzio gm] Thanks for the clarification Robert and I like your distinction because
| |     | 356397 [shortcutter ] Ah, OK.  Then of course load is more appropriate.
| |     | 356415 [jdezenzio gm] created a custom libs folder yesterday and moved a lot of source code
| |     + 356576 [albertschlef] I don't think it's safe to do "require 'ui'". Some other library may a
| |       + 356579 [jdezenzio gm] I use private namespaces for my own libraries.  The provided examples
| |       + 356619 [shortcutter ] That was based on the example given and under the assumption that the
| + 356181 [ryand-ruby z] magic,=20
+ 356574 [albertschlef] BTW, there's an alternative to explicit use of File.join() which makes

^ Bitwise 2010 ( IIT Kharagpur ) An Annual Algorithm Intensive Online  Programing Contest
356165 [bitwise2010 ] Bitwise is an Annual Algorithm Intensive Online Programming Contest,

^ Modules and Classes, Includes and Extends
356168 [jdezenzio gm] I wanted to provide an example which for me is easier to understand than

^ parameters..
356186 [mcieong yaho] and they works fine, but it seems very stupid of not using just one
356189 [ninja slapha] Should be obvious, shouldn't it?
356191 [mcieong yaho] Dear David,

^ Inheritance related problem
356190 [sentinel.200] Perhaps best explained with sample code.
+ 356193 [ian.hobson n] I'm going to give you a meta-answer to the problem...
| 356195 [sentinel.200] They need to have the same name since Child extends the functionality of
+ 356196 [sean clipper] I'm having trouble understanding how you got into this position.  I'm
| 356216 [sentinel.200] I own both. Parent is a wrapper around ncurses Window. Child is a
| 356226 [rick.denatal] So why not just factor out what's different between Parent and Child
| + 356228 [rick.denatal] Just to be clear I meant to say why not just factor out JUST what's differe=
| | 356236 [sean clipper] This is probably the same as what Rick was saying...
| | + 356244 [sentinel.200] Ok, i get it, printa should not call printb since that goes thru the
| | + 356637 [sentinel.200] **Thanks**, all. I did a refactor of `printstring()` and it worked
| + 356235 [sentinel.200] Aah, there are more such methods.
|   356239 [rick.denatal] Inheritance always introduces coupling between class and superclass.
|   356242 [sentinel.200] Not sure what you mean by what I've posted - do you mean the sample code
+ 356633 [xavier.noell] I don't know if that's what the original post meant, but I'm
  356638 [sentinel.200] If you are saying that aM() forces a call to the parent's m() and of
  + 356640 [xavier.noell] Yes, my mistake, I forgot the "public Father".
  | + 356652 [sentinel.200] I doubt that that's possible in the way you want, since ruby is not
  | + 356657 [gwtmp01 mac.] That idiom isn't well supported in Ruby, but it is possible
  | + 356733 [albertschlef] class Parent
  + 356645 [sean clipper] Am I missing something?  "super" calls the method with the same name

^ Packaging source files on multiple OSs
356198 [jdezenzio gm] Can anyone direct me to an article or site that shows how to package
356202 [jdezenzio gm] Ocra (works fine but only packages for windows exe and also has some
356203 [marnen marne] Monkeybars uses Rawr and JRuby to do exactly what you're talking about.
356271 [jdezenzio gm] Thanks Marnen, I did try out monkeybars but I didn't like the library.
+ 356274 [marnen marne] What about Rawr without Monkeybars, then?
+ 356275 [ninja slapha] First, realize it's not going to work, whatever your rationale is. If you want
  356277 [jdezenzio gm] Thanks guys - appreciate the responses.

^ [ANN] MacRuby 0.5
356204 [laurent.sans] After months of hard work and two successful beta releases, MacRuby
356207 [botpena gmai] wow. if you can do this 100%, i'd buy a mac ;-)

^ Re: MacRuby 0.5
356208 [phrogz mac.c] On Jan 31, 7:55=A0pm, Laurent Sansonetti <laurent.sansone...@gmail.com>
+ 356210 [jose.halesga] I've read on Aimonetti's blog that this may be possible after 0.5 is
| 356220 [maurice.diam] On Feb 1, 3:55=A0am, Laurent Sansonetti <laurent.sansone...@gmail.com>
| 356224 [eregontp gma] I just downloaded the new version, and tried the script on the main page(the
+ 356225 [marnen marne] That's been possible for iPhone apps for a while with RubyCocoa and
  356238 [rogerpack200] Linux support?

^ Workaround for "conflict" between ARGV and gets?
356209 [RichardDummy] gets looks to ARGV, if populated, for its source of data.  That is its
+ 356212 [ryand-ruby z] ri IO.gets
| 356280 [RichardDummy] content
| + 356284 [marnen marne] No it doesn't.  All it tells you is that gets returns a String.
| + 356295 [shortcutter ] irb(main):006:0> method(:gets)
+ 356214 [walton vyper] Change this line to 'STDIN.gets.chomp'.  Finit!
| 356279 [RichardDummy] content
+ 356215 [jeffpeng net] 在 2010-02-01一的 13:15 +0900,RichardOnRails写道:
  356276 [RichardDummy] =E5=86=99=E9=81=93=EF=BC=9A

^ cookiejar without cgi
356211 [hawat.thufir] ruby cookiejar example create help  -bowling -rails -python -java -php
356227 [b.candler po] By emitting a Set-Cookie: header directly?
356257 [hawat.thufir] TP_cookie#Implementation

^ Re: can't update and install gem(solved)
356213 [joh13ny yaho] After reinstalling my os xp I finally got successful rails

^ manufacturing methods
356217 [matt conundr] Apologies if this is covered somewhere... all the googling I've done on =
356218 [josh.cheek g] class Test
356219 [shortcutter ] the
356283 [matt conundr] Thanks very much Robert and Josh for your suggestions.  It looks like =

^ [ANN] Reek version 1.2.7 released
356221 [kevin ruther] === Major Changes

^ Zlib gzip Iconv, what is going on with UTF-8
356229 [inprogs gmai] I got ruby 1.8.6 (test has been performed on windows)
356234 [inprogs gmai] I want to add, everything works fine when I turn off gzip
356240 [inprogs gmai] Problem SOLVED, I had bad condition what caused problem. I always was

^ Creating Arrays Through a Loop
356230 [vikramjam ya] I was wondering if it was possible to create a series of arrays through
+ 356231 [shortcutter ] Well, it *does* work - only you loose references to a newly created
+ 356232 [marnen marne] Of course that doesn't work.  You're setting the same variable
+ 356233 [aldric trevo] It works fine, but it will always assign the new array to the same
  356241 [shortcutter ] irb(main):002:0> (1..10).times {|*a| p a}
  356256 [aldric trevo] Whoops! That's what I get for crossing two thoughts.