270956-274040

270759-284429 subjects 271147-274881

^ concatenate a set of files
270956 [eggie5 gmail] 01_file
+ 270958 [grzm seespot] What have you tried? What in particular are you having trouble with?
| 270962 [eggie5 gmail] I'm just looking for recommendations, because I have no idea where to
+ 270963 [w_a_x_man ya] ruby -e "ARGV.sort!;puts ARGF.read" ??_file >file_set
| + 270967 [eggie5 gmail] that's the craziest thing I've seen in my life! I'll give it a go
| + 270981 [summercoolne] back in the days when our college instructor asked us to write some
+ 270979 [lloyd 2live4] As a ruby nuby I am not yet good enough to golf this, but I went through
| + 271023 [w_a_x_man ya] Even under windoze, Ruby lets you use the forward slash
| + 271025 [w_a_x_man ya] If everything will fit in memory at once, then
|   271031 [lloyd 2live4] Nice one, William!  As you can clearly see, I am a ruby nuby and still
+ 271008 [ezmobius gma] $ cat *_file > combined_file

^ Feature request for RubyScript2Exe
270966 [rubymaniac g] It would be nice if RubyScript2Exe was able to handle a passworded ZIP
+ 270972 [dangerwillro] If you're really worried about it, write it in a compiled language or
| 271564 [rubymaniac g] On Sep 25, 8:50 pm, John Joyce <dangerwillrobinsondan...@gmail.com>
| 271581 [mental rydia] That's manifestly untrue.  Otherwise it would be impossible to
+ 271068 [mental rydia] Have you thought about how the user would run such a package?  I mean, you
  271562 [rubymaniac g] Password is kept within the EXE in an encrypted format hidden from the
  + 271567 [konrad tyler] charset="iso-8859-1"
  | + 271572 [dangerwillro] Apparently the JRuby compiler is ready...
  | + 271584 [mental rydia] JVM bytecode is pretty easy to translate into Java, actually, but Ruby
  |   271588 [konrad tyler] charset="utf-8"
  + 271583 [mental rydia] So, yes, you're giving the user the password. :)  But it's probably better

^ [ANN] Rassmalog 6.0.0
270988 [ snk gna.org] Rassmalog

^ Detecting number ranges
270989 [ news jay.fm] I had to write a script this evening to take an unsorted input file of the
+ 271012 [dolgun excit] database 1 is on server 3
| 271303 [ news jay.fm] Sorry, I was being a lazy typist.  (In my defense, I only said the input
+ 271020 [jgabrielygal] Does this feel nicer?
| 271307 [ news jay.fm] Nice!  I think this is the magic I was looking for.
+ 271024 [list.push gm] Does this do it?
| 271308 [ news jay.fm] Hmm, that fails if I add "db 20 is on sv 2", which should retain "server 2
| 271357 [list.push gm] In that case, it outputs "server 2 handles database 18 to 20".
| 271889 [ news jay.fm] Thanks!  For my own educational purposes (and any future newbies reading
| 271892 [listbox juli] Well I used the following snippet once
+ 271155 [w_a_x_man ya] I'm not in the mood for hash.
| 271311 [ news jay.fm] #=> Server  databases  to
| + 271318 [w_a_x_man ya] Server 7 databases 8 to 10
| | 271885 [ news jay.fm] Ah, close - it's a Windows carriage return which Cygwin doesn't like.
| + 271424 [botp delmont] # > ary = DATA.readlines
|   271894 [ news jay.fm] That's beautiful!  I *love* ranger.  And there are a lot of other techiques
+ 271343 [rrafje gmail] require 'set'

^ difference between inheritance and mixin
270993 [hariharan.sp] Hai friends,
+ 271037 [dolgun excit] In fact, mixed-in modules effectively behave as superclasses."
+ 271054 [phrogz mac.c] On Sep 26, 12:06 am, Vellingiri Arul <hariharan....@rediffmail.com>
| 271061 [dblack rubyp] module M
| 271113 [rick.denatal] On the other hand, Ruby has varied semantics  for different versions
+ 271059 [dolgun excit] 1)
+ 271145 [robert.dober] I see that you got some good answers on this already, I find the

^ merge two arrays into a hash
270994 [janaskhoej g] I have looked at some of the answers in the forum, but they do not seem
+ 270997 [chippersbox ] irb(main):001:0> key = [ "1", "2", "3"]
+ 270998 [stefano.croc] require 'generator'
| 271002 [daniels pron] When an array is being passed to a block, you can just provide args for
+ 270999 [farrel.lifso] irb(main):001:0> key = ["1","2","3"]
| 271000 [janaskhoej g] Thanks to all of you!
+ 271001 [daniels pron] Hash[*key.zip(value).flatten]
  + 271006 [coolgeng410 ] irb(main):017:0> key.zip(value){|a,b| myhash[a] = b}
  | 271011 [daniels pron] The result is in my_hash
  | 271013 [coolgeng410 ] Thanks a lot! By the way, what is the different between special case and
  + 271017 [dblack rubyp] And in 1.9 you can do: flatten(1)
    271053 [phrogz mac.c] Hot dog! Come on lucky number 1.9, you're just what I wanted!

^ Error on ruby readline
271007 [sgwong513 ho] I just compile ruby readline ext for ruby 1.8.6-p110 now.

^ [Ann] Retfilter0.6 releases
271016 [robert.dober] this is to announce the first public release of Retfilter, a DSL

^ Problem using log4r Configurator object
271029 [sramazzina g] I'm new to ruby and I've a question about log4r and its Configurator

^ Need Evolution plug-in
271030 [ttmrichter g] OK, after a recent round of the "let's spam the list with the same topic
271033 [tom infoethe] Yours,
271182 [ttmrichter g] Thanks, Tom.  You're a life-saver.

^ IntegreMatrix
271034 [JNott dto.ie] charset="iso-8859-1"

^ 1.8/1.9 compiled library binary compatibility
271038 [aff28 delete] I'm wondering whether extension libraries compiled against 1.8 will work
+ 271042 [alex blackke] I was wondering the same thing.  More specifically, I was wondering if
+ 271099 [nobu ruby-la] No, impossible in both cases.  For instance, object type flags

^ rubygems & ruby 1.9
271039 [ollivier.rob] Is there a 1.9 compatible version of rubygems somewhere? Each I try to install
271132 [drbrain segm] The tracker has such a bug marked as fixed.

^ Refactorings again: idea for library
271045 [vshepelev im] Here's an idea stolen from [1] and [2].
271063 [transfire gm] On Sep 26, 6:42 am, "Victor \"Zverok\" Shepelev"
271065 [vshepelev im] Hmmm..

^ Finding the last Sunday of a month
271046 [pbailey bna.] I need to find the date for the last Sunday in January, for any year. I
+ 271048 [robert.dober] Hmm I believe that
+ 271049 [mo_mail ongh] require 'date'
| 271052 [pbailey bna.] Thanks to all of you. Mohit's worked for me. It's quite ingenious,
| 271057 [mo_mail ongh] Actually, I think mine just reached your first but everyone had
| 271060 [pbailey bna.] Point taken. You're right. Thanks.
+ 271050 [ymendel pobo] irb(main):001:0> require 'date'
| + 271055 [dale.martens] I think using -1 as the day of month gets you the last day of the
| | 271064 [ymendel pobo] Hey, you're right!  At least that seems to work.
| | 271069 [pbailey bna.] OK. Now, I've got that last Sunday's date in January. And, I've now
| | + 271071 [mo_mail ongh] OK, I'm confused - is your budget fencepost the last Sunday or the
| | | 271072 [pbailey bna.] It's a 28-day cycle, like a lunar cycle. The last Sunday in January is
| | + 271073 [mo_mail ongh] now = DateTime.now
| |   271076 [pbailey bna.] I basically just did a comparsion for the time.now between each of the
| |   271084 [mo_mail ongh] Whatever works, I guess :)
| |   271112 [pbailey bna.] Good suggestions all, Mohit. But, I just had to get this thing working
| + 271058 [pbailey bna.] Yes, thanks Joseff. That's what worked for me. Subtracting the "weekday"
+ 271079 [w_a_x_man ya] y=`cal`[/\d+/]
+ 271090 [lloyd 2live4] I was at work and am getting into this one late, but there it is.
| 271091 [lloyd 2live4] oops.  one_day = 86400
| 271101 [lloyd 2live4] caveat time!
+ 271203 [jeremy hineg] Well this has been answered fully now, but just for fun, how about the
  271253 [lloyd 2live4] That is really cool, Jeremy, except that the last Sunday in January is
  271254 [Rob AgileCon] Not in 2008, it's the 27th then.
  271265 [lloyd 2live4] OOOOOOOOOOOO!!  Outstanding catch!  That makes it extra cool!  I missed

^ ID the troll using posting-account = ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0
271074 [phelan tttec] If you google for
+ 271077 [alex blackke] Alex
| 271130 [bradphelan x] Ooops looks like I am wrong here. It seems that the id is a generic
| 271144 [robert.dober] LOL, yep we shall indeed thank him for his enlightening posts.
| 271213 [phelan tttec] Well I did accuse him of using Racist and sexist language in other
| 271230 [robert.dober] Yes of course, but I thought that he deserved my remark by all means.
| 271246 [phelan tttec] No problem :)
+ 271255 [onepoint sta] OT, but, ... what's a "profi troll"?  I Googled it but found nothing
  + 271256 [Reid.Thompso] Proficient????
  + 271258 [peter semant] "profiterole" perhaps? http://en.wikipedia.org/wiki/Profiterole
  + 271262 [hannes.wyss ] ... sorry, couldn't resist...
    + 271268 [robert.dober] more important in this context it means somebody to be paid for what
    | 271293 [onepoint sta] OT *again*, but some people *are* paid to troll: global warming
    | + 271304 [robert.dober] I kind of knew that the joke was a bad one when I hit the send button,
    | + 271306 [perrin apoth] I find that a little difficult to believe (re: "global warming
    + 271291 [onepoint sta] Ah, thanks!

^ Recursing through directories
271078 [gabe dragffy] I have a simple script (untested)
+ 271080 [stefano.croc] I think that the Find module is what you need (ri Find).
+ 271082 [sepp2k googl] Use Dir['/Volumes/**/*'] (or even *-* to only get files with a slash in them)
  271088 [gabe dragffy] Will this operate recursively?
  271115 [andrea.fazzi] Yes.
  271257 [gabe dragffy] Thank you for your help. I have a little trouble getting this script
  271266 [Rob AgileCon] You're not providing a receiver for the gsub() method.  Having said
  271282 [gabe dragffy] I'm sorry, you are so right. I really can't seem to get the hang of
  271287 [Rob AgileCon] If you want to rename files having names that meet some pattern, why
  271430 [gabe dragffy] Thanks for your help.
  + 271465 [Rob AgileCon] This doesn't make sense.  There aren't slashes in the name, those are
  | 271544 [gabe dragffy] Rob, you are spot on! When I view the files in Finder they have
  | 272084 [Rob AgileCon] I think that you are running into trouble with rsync's use of a : or
  + 271470 [mortee.lists] I guess you could do something like

^ OneClickInstaller/RubyGems problems
271089 [transfire gm] Is there anything you have to do after installing the Windows
+ 271140 [drbrain segm] This tells me that you weren't attached to the internet, or were
| 271273 [transfire gm] I downloaded what was on ruby-lang.org and it install RubyGems 0.9.2;
| 271292 [drbrain segm] Check `gem sources` to see what hosts you are attempting to attach
| + 271331 [transfire gm] Great. I'll await the next release.
| + 272019 [transfire gm] rubyscript2exe
| | 272057 [drbrain segm] gem.bat cannot work with RubyGems, as it is too old.  RubyGems should
| | 272070 [transfire gm] Hmmm... okay, since I upgraded from 0.9.2 (from OneClickInstaller) to
| | 272151 [luislavena g] One-Click-Installer (OCI) encapsulates the gem gemwhich and the other
| + 272237 [transfire gm] No.
+ 271192 [znmeb cesmai] Are you behind a firewall? I'm not sure RubyGems is sneaky enough to
  271233 [drbrain segm] RubyGems has dealt with proxy servers for ages.
  271278 [znmeb cesmai] Yes, but there's a special place in Heck reserved for the guy who
  271294 [drbrain segm] If Net::HTTP can do it, RubyGems can do it.  If you want RubyGems to
  271342 [aurelianocal] I've patched on my PC and posted on the ticket how I did it. The link
  271359 [drbrain segm] Don't top post.

^ Application error
271100 [chris.sendsp] Application errorRails application failed to start properly"
271104 [jan.svitok g] Look in your logs (either rails or apache or whatever webserver you

^ ruby.h, intern.h, library.so and installing Ruby 1.9
271103 [tirengarfio ] im trying to install a library called Dridflow. The instructions to
271105 [celtic sairy] After installing ruby1.9-dev, you should definitely have those files.
271109 [tirengarfio ] yes it's true sorry...

^ Question (no flame)
271116 [ktalanet yah] I've been a long long time searching a Ruby IDE for my Ruby coding and
+ 271118 [alex blackke] I think you're going to have to answer that yourself - IDE choice is a
| 271153 [bigboss64 ip] That would be the best way, unless you just like to use both ^_^
| 271168 [jmcglynn cod] My team just released our Ruby IDE called 3rdRail.  It's got solid
+ 271125 [jblauer tp1.] joe
| 271133 [kyleaschmitt] I've responded a ton of times to questions like this.
+ 271179 [celtic sairy] We recently had a big thread on here about preferred IDEs; you could try
| 271191 [znmeb cesmai] Well ... I don't use either of them, but I think NetBeans is *much*
+ 271200 [wpmailinglis] For pure editing, Komodo Edit is pretty nice. It's free and runs on

^ Vlad the D. - help and observations
271119 [goodieBoy gm] I started using VD recently just to compare the differences with Cap.
+ 271127 [goodieBoy gm] Just an update here..
| 271129 [goodieBoy gm] And to get the hang to stop... in the :rollback task, I added the -f
| 271134 [goodieBoy gm] Also, where can I find a very clear description/docs for the
| 271137 [wilsonb gmai] See migration.txt, included with Vlad. It addresses some of your other
| 271138 [goodieBoy gm] Great. That explains it very clearly. Thanks! I'll definitely keep
+ 271237 [drbrain segm] Right here is fine.  Plus there's a bug tracker.  http://
  271354 [mailing.mr g] ssh agent (that comes with putty) is (or at least was 1 y ago) there was
  271358 [drbrain segm] If you're going to be paranoid about keys, passwords and security
  271362 [mailing.mr g] hmmm, I have to say I'm not security expert myself, I only mentioned

^ removing old entries
271120 [chuckdawit g] Does anyone know of any way to remove old entries made by myself from
271122 [grzm seespot] They're now part of the Internet in many, many ways. Even if you were
271135 [damnbigman g] Why Chuck?
271185 [chuckdawit g] No, but I don't want to give them a reason to get upset. I didn't give

^ How I got Tcl/Tk working with Ruby on OS X
271128 [phil.devor g] Download the source for Tcl 8.4.16, Tk 8.4.16, and Ruby 1.8.6.
+ 271146 [unbewusst.se] and what to do with an already installed ruby 1.8.6 under /opt
+ 274040 [summercoolne] for tk

^ Confession: I never learned CS
271143 [ news jay.fm] I was thinking about my "Detecting number ranges" question and the various
+ 271151 [wilsonb gmai] Big hunks of it are fundamentally unlike Ruby, but that's probably a
+ 271152 [ara.t.howard] Professional/dp/0201633612/ref=pd_bbs_sr_1/104-1681521-1481518?
| + 271157 [dangerwillro] It all depends. Learn what you need. You don't necessarily need all
| + 271204 [jeremy hineg] This book is so much fun to read.  I love the stories, I mean where else
+ 271183 [david cybers] If you want a book that deals with Ruby and the fundamentals you would
| + 271225 [dangerwillro] Cool!
| + 271349 [rick.denatal] A big -1 on that book. It's been discussed here before.
|   271352 [dangerwillro] Indeed I just read through it today and it is not good.
|   271363 [ news jay.fm] I had *exactly* the same problem with EasyScript.[1]
|   271365 [ news jay.fm] Jay Levitt                |
+ 271226 [alex blackke] It's worth going back to basics and watching the MIT SICP lectures.
| 271281 [dangerwillro] Berkely and MIT both have huge numbers of classes available as free
+ 271317 [ news jay.fm] * GoF: Yes, I have this one, and it's a classic; I've actually read both of
  + 271344 [martindemell] Yeah, the obvious "blind" translation turned me off the book too. I'd
  + 271351 [rick.denatal] I've got to agree here.  I am/was friends with all four of the GOF and
    + 271353 [dangerwillro] +2
    + 271361 [mental rydia] I'd submit the issues have more to do with the lack of "nice"
    | 271599 [bpfurtado gm] You couldn't be more wrong, being statically typed does not interfere
    | 272227 [rick.denatal] I didn't say that.  However, it does AFFECT how you design. But if you
    | 272253 [bpfurtado gm] In that point I totally agree with you, you gotta learn more than the
    + 271428 [robert.dober] I know I might be off a little bit, but I'd rather recommend a book of
      + 271495 [wilsonb gmai] The book's correct title is "Smalltalk Best Practice Patterns", and I
      + 272236 [rick.denatal] I recently re-read this book, it's certainly a classic.
threads.html
top