229122-230849

228891-248301 subjects 229336-231735

^ Newbie questions
229122 [kakaze talk2] trouble with more intermediate features.
+ 229125 [pfortuny gma] a = File.open("name_of_file")
| 229134 [james graypr] whole_file = File.read("name_of_file")
| 229138 [pfortuny gma] Thanks! I kew it (and the rest) had to be suboptimal.
+ 229127 [hhausman gma] malarky indeed.
+ 229303 [kakaze talk2] Thanks. I've got it reading in a file and checking each line against a
| + 229316 [slamboy gmai] example = "blah blah example: twenty."
| | 229319 [dblack wobbl] You can use \S (non-whitespace) for your character class.  (I do have
| + 229317 [nospam nosit] #!/usr/bin/ruby -w
+ 229424 [kakaze talk2] OK that makes a lot less sense...I don't recognise many of those
  + 229426 [kakaze talk2] Oh also...What if I don't want example as part of it? Just what follows.
  | + 229433 [pfortuny gma] I hope I do not sound too rude, but it seems to me you have not had access
  | | 229440 [slamboy gmai] I would actually recommend Learn ruby in 21 days over programming ruby for a
  | + 229438 [slamboy gmai] data = "blah blah blah blah example: twenty blah blah blah blah"
  + 229475 [nospam nosit] Mr. Jones, you've posted in such a way that you have started a new thread,

^ New Haven Rubyists December Meeting
229132 [novakps gmai] Connecticut on

^ Bug in Ruby or Pickaxe? (was: Re: else inside rescue  is useless?)
229133 [shortcutter ] This is plain wrong - at least in 1.8.5.  The Pickaxe says the "else"
+ 229167 [m_goldberg a] I would be horrified if the <else> were executed after a <return> --
+ 229204 [dave pragpro] Why would you expect the else clause to be executed if a return is
| 229265 [shortcutter ] I have low expectations with regard to the "else" clause but the book
| + 229269 [robert.dober] and that is what ensure is for, right?
| + 229278 [dave pragpro] I guess in my mind, the semantics of return take precedence over most
|   + 229279 [robert.dober] Maybe the assumption is wrong in some, maybe even many cases, but I believe
|   + 229283 [shortcutter ] Dave, you're welcome!  I was probably in formal mode when reading that,
|   | 229287 [dblack wobbl] I don't think that's needed.  Executing a body of code means executing
|   + 229285 [dblack wobbl] No, I think it's correct.  I consider "executes body" to expand
|   + 229289 [ruby ml.icem] I think detailing every condition under which else would not get called is
+ 229245 [george.ogata] begin

^ RubyForge scheduled downtime later today
229137 [tom infoethe] I'm going to take RubyForge down for a upgrade this afternoon.  Should

^ Questions about DRb and security
229139 [zimbatm oree] apart from running the DRb server over SSL and with $SAFE = 1, I would like
+ 229151 [pit capitain] Jonas, I'm no DRb expert, but this client code can get access to the
| 229177 [zimbatm oree] Good point Pit :) I guess that there are other security issues
+ 229687 [drbrain segm] Write a new DRbProtocol that must send user/password first.

^ Help recherche de package
229144 [vialadom gma] Bonjour
229145 [jeremymcanal] Bonjour,
229147 [vialadom gma] I'm beginner in Ruby and I want to know if there are librairy for
+ 229148 [nospam nosit] Can you be more specific? What kind of meta-data? How do you mean "uploading
| 229150 [vialadom gma] I have the solution for uploading  but not for having the metadata. The
| 229157 [nospam nosit] Are the meta-data located inside the file, or outside the file? Does
| 229262 [vialadom gma] Are the meta-data located inside the file, or outside the file? Does
+ 229149 [nicolas.desp] You can use File.stat (available in the core of ruby) to read the meta

^ Quiz 105 Solution
229159 [john.baylor ] Thanks, this was fun!

^ Newbie with a project.(Parse tabed file and gen statistics?)
229161 [aceoface akt] I have tab delimited files that I want to parse and generate statistics
229172 [nospam nosit] / ...
229182 [w_a_x_man ya] p IO.readlines('junk').map{|s| s.chomp.split("\t")}.sort_by{|a|
229209 [nospam nosit] / ...
229246 [slamboy gmai] I'm still trying to figure William's out.

^ Re: What?s ruby on rails for?
229168 [piers ompka.] Cheers.

^ best way to dynamically create new instance methods
229173 [dandante dan] and the like and I can't seem to accomplish what I am trying to do,
+ 229176 [gavin.kistne] Assuming that you want each instance of foo to have its own list of
+ 229181 [nospam nosit] Rather than try to sort out a way to create methods on the fly, perhaps it
+ 229193 [james graypr] args.first }
  229195 [gavin.kistne] Ooh, look at Mr. Fancy Pants, using his fancy #send to get around
  229196 [james graypr] Correct.  In 1.9 you need to use funcall() in place of send().
  + 229197 [dblack wobbl] And keep a little card in your pocket to remind you which does
  + 229217 [ mfp acm.org] class << self; self end.class_eval{ define_method(name){ |*args| args.first } }

^ Win32 environment for ruby extension work
229178 [rosco roscop] I've recently been attempting to look at Win32 compatibility on the
+ 229188 [ml.chibbs gm] The compiler situation on Windows is currently a mess. Read this to help
+ 229189 [jan.svitok g] I'm not an expert, so take this as such. Sometime ago there was a
  229405 [rosco roscop] I read a little about this, but it seemed to me at the time like a
  229595 [jan.svitok g] I don't have a link. I just googled and then didn't save the link.

^ Is there something like Regexp#match_all
229183 [memberships.] is there a possibility to return all the matches of a regexp? or in
+ 229186 [gavin.kistne] See String#scan. It and #gsub both accept a block.
+ 229187 [halostatue g] These things are actually two different things.
+ 229198 [shortcutter ] What exactly do you want to do with matches?
  229200 [memberships.] I'd like to build a small web-tool for myself to highlight all the
  229201 [james graypr] You don't really need the block form for such a simple replacement.
  229266 [shortcutter ] ... and in fact more efficient IIRC.

^ gtkhtml2 blank window
229194 [patrick erdb] i run into a new problem while writing an gtk application. a lot of
+ 229205 [trevor geekg] Patrick,
| 229206 [trevor geekg] Patrick,
| 229215 [patrick erdb] maybe i should begin with the signal handler next time this could make
+ 229213 [trevor geekg] Patrick,
  229219 [patrick erdb] yes, that's it! thanks :-). it works fine now, i just forgot to connect

^ Suggested Ruby / Rails Development Environment on OS X?
229199 [chuckmcknigh] I've just purchased a MacBook Pro and want to ping the list for
229203 [jeremymcanal] I dig Textmate with updated bundles for editing.  vi is my second

^ [ANN] Curb 0.0.8 now available
229208 [rosco roscop] Curb 0.0.8 is now available from http://curb.rubyforge.org. Curb provides

^ private methods in Ruby
229210 [gethemant gm] ##Won't work method #1
+ 229212 [dblack wobbl] This message is in MIME format.  The first part should be readable text,
| 229221 [gethemant gm] So can i rephrase this as, private methods can't be called from
+ 229223 [ruby bandkbr] I'll take a stab at this...

^ Suggestions for a date picker that supports mm/yyyy
229211 [jasonvogel g] Does anyone have some suggestions for a date picker that supports
+ 229214 [nospam nosit] Do you mean a GUI component?
| 229216 [gavin.kistne] Er, under what UI? Text/console? WxRuby? RubyCocoa? Rails?
| 229250 [jasonvogel g] Sorry, I definitely should have been clearer.
+ 229227 [jimfreeze gm] charset=US-ASCII;

^ Inserting surrounding scope into singelton method definition
229218 [shfriedrich ] I have a sorted array (in this case, an ActiveRecord result set) that i
+ 229220 [dblack wobbl] To get through the barrier of the class and def scopes, you can use
| 229229 [shfriedrich ] Wonderful! For some reason the 2-argument notation in your example
| 229231 [dblack wobbl] Yes, I used the wrong construct -- I'm glad you figured it out :-)
+ 229239 [ara.t.howard] why not just use an attr

^ Installing Ruby on rails
229222 [timbobker ya] Ive just tried to get started with ruby on rails downloaded the

^ Re: Ruby Core + Php FrontEnd (open)
229228 [flaab_mrlinu] I Jonas. This is not actually true: I'll explain myself. Supposse the
229263 [alex blackke] Event-driven would still work here, you'd just need to have a global
229268 [flaab_mrlinu] I've read carefully your posts =)
229282 [jameskilton ] Jason

^ Ruby, Windows XP, and CMD.exe
229230 [clark.snowda] I am developing a SOAP server running on a Windows XP machine.  When
+ 229235 [kimjuik gmai] Which one send you 'time out error'? IIS Server ? or Another?
+ 229260 [ara.t.howard] require 'rubygems'
+ 229343 [david vallne] How are you launching that process?
| 229345 [ara.t.howard] why would say that?  IO.popen and more than one thread is a disaster on
| + 229494 [clark.snowda] IO.popen wins! I tried the systemu first and yes that would return, but
| + 229500 [david vallne] I made (unconsciously) a guess that it's a fire-and-forget subprocess,
+ 229386 [eliben gmail] Perl's "system" function has an undocumented feature that allows you to

^ Re: gems cleverness?
229232 [twifkak comc] $:.map{|s|s=~Regexp.new(Regexp.escape(Config::CONFIG['libdir']+'/ruby/gems/1.8/gems/')+'(.*)/lib$');$1}.compact
229252 [twifkak comc] Yup. $: == $LOAD_PATH == the list of directories Ruby looks in when you

^ request_get VS request VS get
229233 [mento_ruby h] wt's the different of using "request_get", "request" and "get" provided
229301 [david vallne] Which get? I see both Net::HTTP::get, and Net::HTTP#get in the standard
230156 [shiwei.zhang] There are really two "get" methods in Net::HTTP. But one is Class

^ [ANN] Rassmalog 1.0.0
229238 [ snk gna.org] Version 1.0.0 (2006-12-11)

^ UID/EUID subshell solutions
229240 [luke madstop] I'm having inconsistent behaviour with running external commands as
+ 229243 [nospam nosit] This is a very desirable shell behavior, to avoid an obvious hacker
| 229960 [luke madstop] I don't see how it's an obvious vulnerability; I thought the kernel
+ 230435 [luke madstop] def execute(command, user = nil, group = nil)

^ Re: Ruby for Kids?
229241 [shfriedrich ] "Learn To Progam"[1] from the Pragmatic Programmers might be a good
+ 229244 [JeffMcGrath ] You know, to be honest with you, I would start them off with something
| + 229254 [jimfreeze gm] charset=US-ASCII;
| + 229255 [mshock shadr] IMHO, even if i'ts suggested to start playing with web pages, it's still
| + 229256 [james.britt ] Be careful: Many locales have laws against just this sort of child abuse.
|   229261 [keith.nichol] what would be good is something like KPL
|   + 229304 [Bil.Kleb NAS] My 7 year old is enjoying /Learn to Program/,
|   | 229318 [richard.conr] I had a flick through Chris Pine's book and I do like it. (Girlfriend & Dad have
|   | 229323 [jim freeze.o] If Chris Pine's book doesn't work as a gift, you could always try "C++ GUI
|   | 229326 [jameskilton ] Do you want to scare people AWAY from programming?
|   + 229522 [chneukirchen] => "Gah! Programming sucks!" }:-)
|     + 229536 [wikipedianki] I am a 15 year old. I say Ruby is perfect for kids. Learn to Program is a
|     | + 229925 [ramalho gmai] Congratulations, Han Dao!
|     | + 230849 [neoneye gmai] Cool, keep it up and you become really dangerous when you are 20 :-)
|     + 229630 [chneukirchen] Are you sure?  I learned more from every language since Lisp that
|       + 229845 [martindemell] J and K seem to be the current children of APL
|       + 229889 [chneukirchen] I didn't intent to question LISP 1.5, but the significance it made.
|         + 229890 [toalett gmai] Scheme came after Lisp 1.5.
|         | 229945 [znmeb cesmai] And I think roughly the same time as the move to integrate the other Lisp
|         + 229911 [znmeb cesmai] In the context of *Lisp*, Scheme is absolutely earth-shaking. But in the general
|           + 229944 [znmeb cesmai] One other addicting feature of most Forths is the ability to easily drop into
|           + 230422 [chneukirchen] Yes.  But I was comparing to my personal influence. :)
|             230842 [chneukirchen] Well, you can implement them with tricks (c.f. "On Lisp"), but they
+ 229544 [GGarramuno a] For what it is worth, I'd recommend just Ruby and "Learn to Program" as

^ help building ruby on osx
229248 [ryandhanks g] I need to get some help compiling ruby 1.8.5-p2 on my MacBook Pro.  Where
+ 229249 [ruby philip.] I don't know if I can help you with the errors, but I just did this on my
+ 229295 [coder68 yaho] The instructions are very easy to follow (he assumes no prior

^ Runtime Error Installing Ruby 1.8.5
229251 [muraii yahoo] I'm trying to get amaroK installed on my minimalist Slackware 10.2
229267 [ming.lei ora] Are you sure it's really hanging? Maybe it's just waiting for your
229298 [muraii yahoo] I was wondering if that mightn't have been what was going on, but I'm
229564 [ming.lei ora] I checked Amarok's documentation. Ruby scripts simply use the command

^ Non-useless mode for YAML::Syck::Map.children_with_index?
229257 [phlipcpp yah] Here's a complete working sample illustrating the issue in YAML::Syck, or
229284 [twifkak comc] Ooh! I approve.
229294 [twifkak comc] Another option, if you have control over the YAML -- tag the mapping
229300 [phlip2005 gm] Ooh I forgot to mention (between yesterday's saturation life-issues)

^ Base64 and MD5 fun
229258 [careo fastma] I'm trying to implement the auth-md5 authentication scheme in the
+ 229273 [vidar.hoksta] The clue is right here. The Ruby code appends a "\n".
+ 229312 [careo fastma] Yep. There was. I wish I could claim to have found it, but it was a

^ FXRuby 1.6.4: what's the trick?
229259 [ttmrichter g] I've got fox-1.6.20 up and running and tested.  I've got
229305 [lyle.johnson] You need to be using fxscintilla-1.71, the latest version. Version

^ A few questions about rq (2.4.0)
229270 [urban betton] Hej!

^ [ANN] Nitro + Og 0.41.0 Maintenance release
229271 [george.mosch] New versions of Nitro (Web Application Framework) and Og (Object

^ Predefined variable to represent the ruby installation path?
229276 [dou_yifan ya] Is there a Predefined variable that represent the ruby installation
+ 229281 [it.emeraldio] on *nix systems you can issue the command
+ 229310 [transfire gm] require 'yaml'
  229324 [droffo gmail] It would seem that Config::CONFIG['bindir'] gives the directory from which
  229434 [transfire gm] hmm. sounds like the installation of ruby itself needs someof

^ connect to MySQL Database
229277 [fvgi242ss gm] I run Mac OS X Tiger, ruby 1.8.4 (from sources) and MySQL 5.0.27
229286 [kashia.buch ] require 'og'
229331 [fvgi242ss gm] Great, I will give it a try. Seems to be exactly what I need.
229335 [kashia.buch ] ^^ that should've said String there, sorry.
229341 [david vallne] I feel a great disturbance in the Force, as if millions of DBAs voices
229416 [kashia.buch ] I wonder who silenced them. ;)
229417 [fvgi242ss gm] My customer is running a ftp-server with about 6.000 accounts. we
229463 [kashia.buch ] Yes, I see your application better now.

^ Using the SaveAs in Excel not working with Ruby
229280 [anon1m0us ya] I need to save an Excel Spreadsheet with Ruby. I used the Save AND
+ 229288 [david.mullet] Where xl is your Excel Application object and wb is your Workbook
| 229290 [anon1m0us ya] Thanks...that did the trick!
+ 229291 [gustav rails] Hey
  229302 [ivor rails.c] I am guessing the (0) in close(0) refers to the number of the book that
  + 229333 [nlloyds gmai] The (0) tells it to not save changes, letting you bypass the dialog that
  + 229342 [anon1m0us ya] Ok, this code provides the date..

^ Comments on ObjectiveView issue 9 (no, I'm not a spambot)
229293 [markcollinsc] My name is Mark Collins-Cope, I'm editor of ObjectiveView. I'm writing
+ 229339 [james graypr] 1.  On page five 5.times{ puts "Mice!\n" } is not very Rubyish.  The
+ 229520 [david vallne] Actually, I think the spambot accusations were mostly meant to *cough*
  230170 [markcollinsc] David,

^ Directory Size and bolding Excel cells
229297 [anon1m0us ya] Does anyone know any commands that will tell me the size of a
229308 [david.mullet] Where ws is your Worksheet object and row and col are integers...
229315 [anon1m0us ya] I tried
+ 229321 [david.mullet] The 'Cells' method does not accept a range of cells as a parameter. If
| 229328 [chen_li3 yah] Is it possible to write a range of cells with numbers,
+ 229322 [ruby tcb.mai] excel.Worksheets(x).Cells(1, 1).Font.Bold = 1
  229329 [anon1m0us ya] Ok, I created a Macro in Excel to see what properties I need to you
  + 229337 [nlloyds gmai] Try excel.worksheets(x).range('a:a').columns.autofit
  + 229340 [anon1m0us ya] Ok, I got the cells to autofit using the below code. "#{loc} is a
    229423 [david.mullet] FYI, the Columns method can accept a range of columns, so you could
    229435 [anon1m0us ya] Have any clue how to do Freeze Panes?? The VB code is

^ Assignment method strangeness
229330 [mr.cruft gma] Assignment methods are weird, and I wish they acted more like regular
+ 229332 [ara.t.howard] require 'rubygems'
+ 229334 [dblack wobbl] I think the idea of an assignment method *is* rather narrow.  If you
+ 229338 [wilsonb gmai] test.d = 1
| 229346 [mr.cruft gma] You are correct.  That's pretty useful, though you still can't pass in
| + 229347 [mr.cruft gma] test.a                 #  => 42
| + 229352 [wilsonb gmai] Check this out; it may be helpful to you. Pretty similar. It differs
| + 230751 [david vallne] 1. The sheer memory leak of it all. Ruby apparently isn't made to be a good
| + 230752 [david vallne] One more thing.
| + 230753 [transfire gm] class Test
+ 230750 [david vallne] This is the third thread on the subject in the past month, IIRC. On the first
threads.html
top