263859-361206 subjects 264231-265820

simple cipher solver, finding all possible key combinations
264092 [ajcampbell01] ...
264104 [greymaiden@g] ...
264107 [greymaiden@g] ...
264108 [ajcampbell01] ...
264115 [damnbigman@g] ...

ENV['LD_LIBRARY_PATH'] not changing env
264094 [tdruttenberg] Ruby 1.8.6 on solaris 9.
+ 264096 [jameskilton@] ...
+ 264101 [ara.t.howard] ENV[ 'LD_LIBRARY_PATH' ] = [
+ 266971 [tdruttenberg] I had originally assumed this to be a problem with setting any
  266981 [djberg96@gm ] You can usually avoid setting either one (on Solaris, at least) if the

Excel without ole
264095 [artur.shokin] Do somebody know how to manipulate the existing excel document without
+ 264100 [ara.t.howard] on either mac or linux the one approach is to actually run windows
| 264109 [roco3d@gm il] ...
+ 264110 [roco3d@gm il] ...
  264176 [artur.shokin] Thank you all!

ARP Ping and ICMP in Ruby?
264097 [netwerk0r@ya] What would I have to do in order to be able to send an ARP Ping or a
+ 264153 [klodus@gm il] require 'ping'
| + 264154 [fwmailinglis] charset="US-ASCII"
| + 264155 [konrad@ty er] charset="utf-8"
|   264158 [gthiesfeld@g] hope it helps
+ 264173 [djberg96@gm ] require 'net/ping'

Re: Net::HTTP works on localhost, but error Errno::ECONNRESE
264098 [netwerk0r@ya] Also, I believe that some web servers only repsond to HTTP requests if
265157 [tommy_tam@in] Thank you for all the help.

RDoc vs. alias_method
264102 [noah.easterl] I'm working on a script that has to work across several versions of
+ 264162 [drbrain@se m] Nope.  The Ruby parser doesn't understand the document-method stuff
| 264388 [noah.easterl] Thanks, all.  As an immediate solution, I decided to make
+ 264166 [dan-ml@da 42] hmm, maybe you can split your code into mixins;

Creating a <span> over a range while preserving nesting
264106 [b.libbey@gm ] While this is a rails-related question, it has more to do with ruby in
+ 264156 [konrad@ty er] charset="utf-8"
+ 264174 [kenneth.m.mc] The easy way to do this is to annotate _all text runs_ in the selected

execution problem in ruby
264111 [bad_good_lio] how to execute a ruby program which is inside a string ?
+ 264117 [dougal.s@gm ] eval(temp)
+ 264118 [sepp2k@go gl] eval
+ 264142 [konrad@ty er] charset="utf-8"

3d library
264112 [info@zu y. e] I'm working to a 3d library Ruby
264114 [jameskilton@] ...
264120 [phlip2005@gm] Will it be able to do turtle graphics like http://flea.sourceforge.net ?
264136 [info@zu y. e] why not?

Any recommendations on ruby editor
264113 [Hari@pi la .] I am looking into investing in an editor for working with ruby(including
+ 264116 [damnbigman@g] ...
| 264119 [ruivaldo@gm ] ...
| 264651 [charles.nutt] - Charlie
+ 264122 [flazzarino@g] emacs + rails mode is working great for me,
| + 264127 [collintmille] Ever since Aptana swallowed up RadRails things have been getting
| + 264128 [greymaiden@g] ...
| + 264634 [ari@ar br wn] if you roll with The Woz (ie, use Mac), then check out TextMate
|   + 264636 [felipeureta@] There's also gedit for GNU/Linux, you can tweak it and make it work
|   + 264638 [kyleaschmitt] Dangerous q to ask here, you'll get 100 different answers from 50
|     + 264649 [rogerpack200] for rails I love roredit
|     + 264653 [dangerwillro] ...
|     + 264684 [dan-ml@da 42] Indeed. It would be more useful to ask "who has experience with 2
|       264719 [znmeb@ce ma ] I have experience with many more than two editors over the years, but
|       264724 [bplummer@za ] Just to my 2 cents but I would like to hear from anyone that is using
|       264726 [outintospace] As a Microsoft ISV (boo hiss!) I use Visual Studio 2005 constantly.
+ 264139 [fwmailinglis] charset="US-ASCII"
| 264143 [konrad@ty er] charset="utf-8"
| + 264146 [dejan.dimic@] Rails and Aptana on both Windows and Ubuntu is my preferred choice.
| + 264151 [steveaz98@gm] I use vimmate, which is layered on gvim.  It works good as long as you
+ 264181 [news.s.richa] I like eclipse - though more of an IDE than an editor; it's very useful
| + 264184 [pawelstawick] I like eclipse too, but I use netbeans 6.0 M10. Why? Aptana misses one
| + 264194 [znmeb@ce ma ] Force me to buy a new laptop? *Never*!
+ 264733 [Tam@ed .u i-] I use Gvim with the following extensions, which make it a charm to use. Here
| 264744 [shane@di it ] I'd recommend the Ruby plug-in for the IntelliJ IDEA IDE. Although
+ 264747 [Tim.Bray@Su ] On the Mac, NetBeans is wicked fast.  And, as of a couple of builds
  264752 [wayneeseguin] ...
  264756 [fxn@ha hr f.] Well, that one is a project-wide grep, so to speak. I'd expect from
  264768 [dtuttle1@gm ] I just switched from textmate to ruby-netbeans.
  265135 [ccthiel@gm i] ...
  265139 [dzwell@gm il] Chris,

sudden problems with gem
264121 [significants] I believe it's in response to trying to consolidate where gems are
264163 [drbrain@se m] It sounds like you installed RubyGems twice, or with two different

What the...? Hash does not have a key it really should have!
264123 [forum@jo h. ] irb(main):001:0>     conversion_classes = {
+ 264125 [stefano.croc] I'd say because in the hash you set the key 'Music labels', then you ask if it
+ 264126 [dblack@ru yp] You're capitalizing "Labels".
+ 264129 [hhausman@gm ] You're creating the key with a lowercase 'l' and trying to read it out
+ 264191 [phlip2005@gm] sion_classes.has_key? "Music Labels"

Unwanted behavior with "define" method an Test::Unit
264124 [collintmille] I'm using "define_method" to build some unit test helpers.
264133 [dblack@ru yp] What exactly is on the lines mentioned in the error messages?
264134 [collintmille] line  7: define_method("create_#{model_name}") { |attrs|
264138 [collintmille] define_method(:method_name) do |*args|

mkmf question
264130 [t-dineen@rc ] I am trying to build ruby-xslt on Windows XP.  The first step is to run

Re: What the...? Hash does not have a key it really should h
264131 [forum@jo h. ] I'm really a genius... thanks good it's weekend now =)

Re: simple cipher solver, finding all possible key combinati
264132 [lloyd@2l ve ] Well, you could try more than just the most common letters strategy.
264198 [james@gr yp ] James Edward Gray II

Sorting a logfile, how would you write it?
264135 [lolz.llolz@g] I've written a little ruby program which can sort logfiles with the
264149 [w_a_x_man@ya] File.open( ARGV.first, "r+" ){|file|
264172 [ryand-ruby@z] your version takes a lot of memory, is slow, and doesn't properly
+ 264186 [shortcutter@] ruby -i.bak -e 'puts ARGF.readlines.sort_by {|l| l[/^\d+/].to_i}' file
| 264209 [w_a_x_man@ya] It's my understanding that when you use -i, a temporary file
| + 264212 [ajsavige@ya ] To do this safely you'll need a temporary file.
| | 264235 [w_a_x_man@ya] Of course.  But I'm willing to take that miniscule chance when
| | 264237 [ajsavige@ya ] That may be an acceptable risk for a program written for private use.
| | 264269 [gregory.t.br] You can of course capture that, but you're write that it's creating
| + 264217 [drbrain@se m] If I had a filesystem where I had to worry about fragmentation I
| + 264240 [shortcutter@] Correct.
|   264257 [lolz.llolz@g] Thanks for all your suggestions, it helped me a lot to learn more about
+ 264208 [w_a_x_man@ya] Wrong.
  264216 [drbrain@se m] This method uses at least 2x the file size worth of memory.  That's a
  264224 [gregory.t.br] Me too.  Besides, `sort` is still the right tool :)

Error updating windows-pr
264141 [dejan.dimic@] While updating my gem collection I have receive unpleasant info :-(
264465 [dejan.dimic@] It is fixed now! :-)

ANN: Sequel Released
264145 [ciconia@gm i] Sequel version has just been released. This release adds new

[ANN] POG 0.3 Public Beta released
264148 [warlickt@op ] POG -- Password Operations Gem version 0.3 (Public beta) is now released

Split a string based on change of character
264160 [ajsavige@ya ] For a string "ZBBBCZZ", I want to produce a list ["Z", "BBB", "C", "ZZ"]
+ 264171 [botp@de mo t] #   s = "ZBBBCZZ"
| + 264175 [ajsavige@ya ] Actually, I'm not super happy with either solution. :-)
| + 264187 [dblack@ru yp] ...
|   264200 [botpena@gm i] whoops, sorry =)
|   264252 [dblack@ru yp] Actually I think group_by with nothing specified just returns an
|   + 264295 [botpena@gm i] ...
|   + 264296 [botpena@gm i] arrghh,  sorry, yes. it's really grouping w no regards to sequence.
+ 264178 [jeremy@hi eg] Nothing off the top of my head, but how does this work for you ?
+ 264179 [ed.odanow@wo] result = []
| 264180 [ed.odanow@wo] result = []
+ 264182 [SimonKroeger] you may want to write it as ...map{|i,|i}
+ 264188 [dblack@ru yp] Probably not better, but just for fun, here's a way using the strscan
| 264199 [james@gr yp ] => true
| 264354 [botp@de mo t] #  >> require "strscan" # => true
+ 264190 [fxn@ha hr f.] Yeah, it's short but I agree with things you dislike about it. My
+ 264215 [w_a_x_man@ya] s = "ZBBBCZZ"
| 264227 [botp@de mo t] # s = "ZBBBCZZ"
| 264238 [SimonKroeger] Yeah, nice!
| + 264250 [logancapaldo] ...
| + 264367 [w_a_x_man@ya] Yes, with the possible exception of
+ 264377 [phelan@tt ec] Another variant which gets rid of one of the capture
  264479 [logancapaldo] ...
  264493 [botp@de mo t] # > Enumerator.new(s, :scan, /(.)\1*/).map {$&}
  264509 [bradphelan@x] Hey cool .. 'enum_for' exactly what I was looking for. I couldn't
  264511 [phelan@tt ec] Would it not be clearer if enum_for worked as
  264537 [logancapaldo] ...

Quick Float question
264161 [cliffrowley@] irb(main):002:0> 10.0 / 3.0
264165 [hankgong@gm ] This is because the 3.33333333333333 is not the exact value you got
264167 [cliffrowley@] This is what I thought.  Thanks for clarifying that.  I need it
264168 [gregory.t.br] assert_in_delta  3.3333333333, 10.0/3.0, 0.0001
264170 [cliffrowley@] Perfect, thankyou :-)

global_variable_set (like instance_variable_set)
264193 [thomas@ha ne] how can a function global_variable_set(gvarname, value) be
+ 264197 [thomas@ha ne] The function should behave like the following one, but not use
+ 264202 [gregory.t.br] What problem do you need this for... it sounds like you could get by
  + 264232 [shevegen@li ] I believe for the record, a non-eval solution will be interesting to see
  | 264241 [drbrain@se m] $ ruby
  + 264319 [thomas@ha ne] Agreed that that there might be a better solution for the original
    + 264323 [gregory.t.br] Interesting.  Perhaps this is a direct translation of how you might do
    | 264329 [thomas@ha ne] It's rather about using someone else's code. I'd prefer not to modify
    | 264330 [gregory.t.br] Gotcha.  IMO, there is no need for the abstraction if it's limited to
    | 264333 [thomas@ha ne] Nevertheless, if Ruby had explicit references (does it?), it would be
    | 264337 [gregory.t.br] Basically, variables in ruby are just containers for references to
    | + 264338 [gregory.t.br] Container is a bad word, sorry.  Label might be better.  A ruby
    | + 264374 [thomas@ha ne] This thread treats ``pass by reference'' which is like aliasing. With
    |   264411 [gregory.t.br] Sure, but it's the same idea.  You're trying to change the binding of
    + 264469 [drbrain@se m] Write one method that does both and returns both.  Use only the one

first and last char
264201 [botpena@gm i] I always get tripped when working together w arrays and strings specially on,
264203 [fwmailinglis] charset="US-ASCII"
+ 264205 [apeiros@gm .] Ew, that's awfully complex. You create n new objects from which you
| 264221 [dan-ml@da 42] wrong, that's the first and last *bytes*, not characters.
| + 264245 [apeiros@gm .] You are right, your solution is better.
| | 264263 [dan-ml@da 42] Only partly. Unfortunately, end-anchored regular expressions have pretty
| | 264325 [apeiros@gm .] That can be helped. Assuming that there is no encoding with 1 char > 8
| + 264275 [transfire@gm] def first; self[0]; end; def last; self[-1]; end
+ 264359 [lists@be tr ] Sometimes I wish every young programmer was forced to do a
  + 264361 [stephan.kaem] Well, here's something that should be a little bit less cycle
  | 264364 [lists@be tr ] This is what I would have implemented, too.
  | + 264384 [transfire@gm] Sad for Ruby.
  | + 264385 [dblack@ru yp] ...
  + 264379 [fwmailinglis] charset="US-ASCII"
    264386 [dblack@ru yp] If it results in a net win, then it sounds like it is a best practice.

Rake and Rant
264204 [barcaroller@] I was wondering whether anybody has had any experience with both these Ruby
+ 264214 [dkarapetyan@] ...
| 264804 [jim@we ri hh] Although that may have once been true, it is certainly no longer the
| 264838 [dkarapetyan@] ...
+ 264226 [jeremy@hi eg] Yes, Rake is perfectly useful in large non-ruby projects as a build
+ 264239 [alex@bl ck e] I've used Rake on a few C/C++ projects myself - if you want to see an
  264253 [bradphelan@x] I don't think that Rake currently has the concept of a scanner for
  264262 [alex@bl ck e] The same as for make - shell out to the compiler, then parse the result.
  264265 [bradphelan@x] I found
  + 264757 [overlord@gm ] Why, is you C compiler a Ruby solution?
  + 264808 [jim@we ri hh] If someone wanted to contribute a dependency scanner for their favorite
    264870 [phelan@tt ec] With regards to the RANT project http://rubyforge.org/projects/make/
    264872 [phelan@tt ec] My simple test rake file was

get host by addr
264206 [kanellopoulo] I am trying to do something simple.
264207 [fwmailinglis] charset="US-ASCII"
264210 [kanellopoulo] Nice! This works fine in irb.

Interesting garbage collection article on LTU
264211 [lionel-subsc] I just read the abstract on http://lambda-the-ultimate.org/node/2391 and
+ 264220 [znmeb@ce ma ] I guess I need to go read the article first, but clearly number 2 is
| 264222 [dangerwillro] Might it not have something to do with the liberal use of symbols in
| 264223 [gregory.t.br] It's true that symbols can create memory leaks[0], but the tendency of
| + 264225 [znmeb@ce ma ] Well, I downloaded the PDF. It turns out they interact directly with the
| + 264228 [dangerwillro] The OP  DID mention [long running Rails processes] !
|   + 264268 [lionel-subsc] To be more accurate on my experience: I have a Rails application with
|   | 264279 [gregory.t.br] Are you loading the CSVs entirely into memory or processing them line
|   + 264276 [gregory.t.br] Sorry.  I missed that.  I was reading the response you cropped which
+ 264375 [shortcutter@] Thanks for the link! Will read once I find the time.
  264436 [dangerwillro] Make sure you're not slurping the CSV file's contents after uploading

264213 [faranak_code] I urgently some help with this code. I am trying to implement the
264218 [tim.pease@gm] The error is most likely coming from the "exec" command in the forked
264219 [faranak_code] All right, To illustrate what happens i have add a puts command to the

NameError - Scruffy and Gruff -
264229 [amslonewolf@] I am trying to generate some charts using Scruffy or Gruff.. But both of
264230 [dangerwillro] Posting code is better,
264233 [amslonewolf@] Hey John - I reinstalled scruffy using the include dependencies option,
264251 [logancapaldo] ...
264254 [apeiros@gm .] Actually it won't. "." is in $: the last entry.
264259 [logancapaldo] ...