232837-233920

232661-233619 subjects 233114-236735

^ Re: Sup 0.0.3 Released
232837 [ snk gna.org] $ gem list sup
232861 [wmorgan-ruby] Your system is missing a Ruby system package. On my Debian system, it's
232936 [ snk gna.org] Thanks, that fixed the problem.

^ [Newbie] Question about instance method scoping/parsing (?)
232848 [kabigon gmai] Can anyone explain to me what's going on here?
232851 [dblack wobbl] It is not true for setters.  The way it works is that when the parser

^ The Volkswagen Ruby: Beetle Happiness
232858 [erikveen gma] It's OT, but, well, it _could_ have been about Ruby and its

^ new to list, question about html formatting with Ruby using RedCloth.
232859 [mikeisgreat ] I am trying to figure out a way to not chop off my text mid-word using

^ Re: pervasives-0.0.1
232860 [transfire gm] well, of course i think it's great that you took the time to do this.
232888 [transfire gm] _ = Pervasives
+ 232890 [gregory.t.br] Ooh.  I think that at least in the context of this lib, that's
+ 232908 [ara.t.howard] yeah - i thought about that, but i use '_' often in loops like
  232913 [gregory.t.br] Hmm, also a good tip Ara, neat.
  232945 [transfire gm] is this perhaps impossible b/c of callbacks? since any dot magic DSL is

^ SparseFile
232865 [erikveen gma] I had to send huge files over a network to another machine.
+ 232868 [erikveen gma] (That's a bit misleading. SparseFile is about saving disk space
+ 232869 [ara.t.howard] why not simply zip them?  of course one can also read/write directly to zipped
| 232875 [erikveen gma] * Availability: A zipped file is not readily available (for
+ 232872 [drbrain segm] You can have a gem hosted on Rubyforge in about 20 minutes with Hoe.
+ 232905 [shortcutter ] Looks good!  Do you think it's feasible and reasonable to include it
| 233003 [erikveen gma] Reasonable? Well, I think so. It's just a special kind of file
+ 233009 [o.renaud lap] I didn't know about this kind of files, so I googled around for some
  233032 [erikveen gma] SPARSE_BLOCKS[length] ||= "\000" * length
  233039 [o.renaud lap] Le dimanche 07 janvier 2007 22:07, Erik Veenstra a ˝─rit
  233050 [erikveen gma] I updated the implementation [1] of SparseFile [2] and added
  233057 [ mfp acm.org] Instead of
  233089 [erikveen gma] OK.

^ send to access private members
232871 [dweldon gmai] class Foo
232874 [dblack wobbl] Yes, send ignores the private status.  In 2.0 there will be a version

^ [ANN] sup 0.0.5 Released
232880 [wmorgan-ruby] sup version 0.0.5 has been released!
+ 232894 [d454d web.de] Great!
| 232914 [wmorgan-ruby] I do plan to, but as I don't use maildir myself, there are other things
| 232923 [d454d web.de] Okay, thanks. Will give it a try.
+ 232951 [andre bonhot] I am fairly new to this list (and to ruby) and I have tried to =20
  + 232986 [d454d web.de] without having a mac around: what happens if you do
  | 232987 [andre bonhot] That's the default :-)
  + 233001 [wmorgan-ruby] This means ncurses can't find your terminfo database. I don't know the
    233033 [andre bonhot] Super, good hint! I have installed the ncursesw package, now it works!

^ how to get a time object for two weeks ago?
232882 [nephish gmai] lo there all,
+ 232884 [dan eparklab] Time.now - 60*60*24*14 = 2 weeks ago
| 232892 [w_a_x_man ya] class DateTime
| 232895 [w_a_x_man ya] class DateTime
+ 232885 [dan eparklab] require 'rubygems'
| 232889 [nephish gmai] thanks much, working all better now.
+ 232891 [peter rubyra] You could check out chronic[1] as well - maybe it is an overkill for

^ REXML 3.1.6 has a XPath parser problem
232886 [kou cozmixng] XPath parser of REXML 3.1.6 has a problem related white

^ ruby to javascript
232896 [artaban.de.m] i've downloaded a demo of rb2js.rb (ruby to javascript) from

^ /proc/PID/stat documentation?
232898 [alex blackke] Not strictly a Ruby question, but I figure someone around here will know
232899 [sylvain.joye] Try "man 5 proc", but I'm afraid it should be more or less the same
232900 [cian gmail.c] Yep, the proc(5) manpage explains what the *time variables mean.
232901 [alex blackke] Thanks - that's exactly what I was after.

^ mod_ruby security
232907 [shiva.brahma] I'm learning ruby and I'm currently enjoing reinventig the wheel just
233004 [jan.svitok g] [Note: I have not studied mod_ruby internals. I'm building on the
233023 [shiva.brahma] thanks for the exhaustive answer :)

^ Getting existing context when defining a singleton method (class << obj)
232910 [roland.swing] I'm fairly new to this "meta-programming" thing, so excuse me if I get
232911 [dblack wobbl] sclass = (class << obj; self; end)
232916 [roland.swing] Great!
232917 [dblack wobbl] Yes, many of us have had occasion to write exactly that :-)

^ Problems installing 1.8.5 under OSX Tiger PPC
232915 [robert.nicho] I just tried to install 1.8.5 under OSX Tiger PPC and here's what I get

^ Ruby Cookbook question
232924 [bruparel mer] This is a question from Ruby Cookbook by Lucas Carlson & Leonard
233005 [jan.svitok g] 1. You can check you have the stemmer installed ok by running the
233038 [bruparel mer] Thank you.

^ HOW-TO produce random numbers within a range?
232925 [ralphallan g] Thanks for reading this.
+ 232928 [bryan.weathe] Just add the minimum value to whatever number you generate.  For example, if
+ 232930 [matt tidbits] Suppose the range is 50-99.
+ 232931 [rimantas gma] Add the minimum :)
| 232932 [ralphallan g] Thanks very much all three of you.
+ 232933 [rodrigo.berm] Welcome abord !
| 232946 [henryj parad] charset=US-ASCII;
+ 232934 [w_a_x_man ya] You don't need to be able to set a minimum.  You simply take what
+ 232935 [robert.dober] You have to do this yourself, say you want a random number between 42 and a

^ how to get a time object from a date object ?
232927 [nephish gmai] lo there all, i have a date object, and i need to make a time object from
232929 [twifkak comc] Time.local(date.year, date.month, date.day)
+ 232938 [nephish gmai] cool thanks. all working now
+ 232939 [w_a_x_man ya] class DateTime
+ 232940 [w_a_x_man ya] class DateTime

^ mini-contest: try to crack this snippet ("Happy 2007!" Ruby challenge)
232941 [ mfp acm.org] Your mission, should you choose to accept it, is to find the secret message
+ 232988 [vasudevram g] Nice one :-)
| + 233052 [ mfp acm.org] Impressive! I myself can hardly decode base64 in my mind, let alone
| + 233076 [why ruby-lan] Zed Shaw did it blindfolded, hands tied, with a cigar in his mouth.  He didn't
+ 233097 [slamboy gmai] I'm curious about this - I've seen a few of these on the list now - can

^ send operator: proof  of concept implementation
232943 [transfire gm] Put together a proof of concept of Gary Wright's idea of using an
233018 [gwtmp01 mac.] Interesting. Just to clarify: If my idea is worth anything it can't
233020 [gregory.t.br] Yeah, if we were to go the arrow route, you'd probably want

^ [ANN] rudebug 0.3.1
232959 [florgro gmai] I'm finally able to announce the release of rudebug, a debugging
232979 [mforal.news ] I am running the sample file you have on the wiki, but rudebug fails
232994 [florgro gmai] Thanks for the report. That's exactly the bug the workaround in
233027 [mforal.news ] Same error. You need to change 'if defined?...' to

^ get remaing characters in a string
232961 [kometen gmai] I need to get the last three characters in a string. I couldn't find a
+ 232962 [florgro gmai] str = "Hello World"
+ 232963 [danfinnie op] => "abc"
+ 232964 [dblack wobbl] I think that might be all you need.
| 232966 [kometen gmai] I see. Thank you very much for all the replies.
+ 232980 [w_a_x_man ya] If the length of the string is less than 3,

^ [ANN] rbayes 1.0.0 Released
232978 [drbrain segm] rbayes version 1.0.0 has been released!
233028 [drbrain segm] Whoops! forgot to publish the RDoc.  There now.

^ Signals and Restarting Syscalls
232992 [cjs cynic.ne] I'm using fcgi.rb ruby-fcgi (0.8.7, according to the tarfile name, 0.8.5

^ Finding Shugo
232993 [andre digira] Does anyone know if Shugo Maeda's email is still shugo at ruby-lang.org?
232995 [jan.svitok g] Shugo Maeda has posted to ruby-core on 29.12.2006 from shugo at ruby -

^ Win32OLE and PDF
233000 [yelatia gmai] Does anyone know how to use Win32OLE to connect to an opened pdf
233002 [jan.svitok g] 1. there was a thread on starting acrobat through ole (the poster used
233021 [yelatia gmai] Thanks Jan,

^ NoMethodError for SNMP::MIB.oid (newby!)
233007 [ruby tobyrod] I'm using the snmp library for Ruby.  My programs are very basic and are
233041 [ruby tobyrod] Well, the reason why I was getting the NoMethodError was because I was

^ Sending SMS Messages With Ruby
233008 [james graypr] I'm going to need to send SMS messages from a Ruby server I am
+ 233010 [sean cyberwa] Most Cellphone providers will let you send SMS via email. Check with the
| 233012 [james graypr] Thanks for the tip.  This did help.
| 233013 [james graypr] James Edward Gray II
| 233135 [rsanheim gma] I've used teleflip before just to send to friend's cell phones from my
+ 233014 [eastmedianyc] 1. Email SMS gateways (each carrier hosts their own, Verizon uses vtext.com).
+ 233016 [jan.svitok g] One option is to connect a phone/modem/data card to the server
+ 233022 [boesemar gmx] we are using smstools (http://smstools.meinemullemaus.de/) with a serial
| + 233031 [dmjmusser gm] Choosing an SMS aggregator is definitely what I'd recommend, as they have
| + 233343 [erik hollens] Just to add to this, you are at the complete mercy of the destination
+ 233132 [destructure ] Kannel is a pain to configure, but once it's up it will send to urls,

^ Rake PackageTask, undefined method exitstatus
233017 [beingthexemp] Hey all,
+ 233029 [jan.svitok g] pretty blind guess: run with --trace and see what it will display
+ 233066 [gfunk913 gma] It means the zip executable isn't present on your system, or in your
| 233604 [beingthexemp] Cool thanks, I have to try it out. I figured it was something with the zip
+ 233249 [ryand-ruby z] Although it probably won't fix this problem (I too suspect that zip
+ 233607 [james.britt ] Are you on Windows?
  233621 [beingthexemp] yes. windows.

^ [ANN] QTodo 0.1
233025 [vincent.four] I'm glad to announce the first (alpha) release of QTodo, a hierachical
233035 [james.britt ] Looks interesting, but how does one get started  using Ruby and Qt4?
233036 [vincent.four] For now, the pure Ruby resources are scarce. If you had a bit of

^ Re: Word Blender (#108)
233034 [fordbc gmail] Here is my solution. Takes the filename of the dictionary to use as the
233067 [dale.martens] Here is my solution. I didn't post the whole thing. This is the main
233075 [daniel.mange] Here is my solution.  I'm not too good with regular expressions, so the

^ a most undangerous Hash#store!
233037 [transfire gm] Think I need a better name for this method. It is anything but
+ 233043 [khaines enig] store_once ?
| + 233061 [transfire gm] That's pretty good. If nothing better come up I'll use that. Thanks.
| + 233103 [codevoid gma] how about store_unique ?
+ 233044 [daniel.schie] hsh[:key] ||= "value"
| 233051 [transfire gm] This isn't quite the same becasue it looks to see if tha value is nil
| 233053 [dblack wobbl] hash.merge({ :key => "new value" })
| + 233054 [florgro gmai] { :key => "old value" }.merge({ :key => "new value" }) # => {:key=>"new value"}
| | 233059 [dblack wobbl] True -- that's a bit of a deal-breaker :-)
| | 233095 [shortcutter ] irb(main):001:0> hash={:key=>1}
| | 233096 [ mfp acm.org] The original hash is not modified by #merge.
| | 233098 [dblack wobbl] Yes, merge was just a wrong turn on my part.  Forget it.
| | + 233104 [shortcutter ] Done.  And sorry for the noise (*my* noise that is).
| | + 233107 [ mfp acm.org] To be fair, the reference to #merge was not entirely misguided, since
| |   + 233110 [robert.dober] Anyway, Trans was talking about destructive updates, so what about
| |   + 233160 [transfire gm] well, i was thinking of combining Mr. Haines  idea with Mr. James to
| |     + 233183 [robert.dober] was not joking above I *really* feel that is a very bad idea.
| |     + 233426 [ mfp acm.org] Yes, that's the idea ("more regular behavior"), but as Robert said, a
| |       233626 [transfire gm] i agree. i will use that semantic but with a different name. after
| |       233813 [ mfp acm.org] The problem with that name is that there's no indication of the "just once"
| |       233833 [martindemell] Even 'store_once' seems to refer to the value rather than the pair,
| |       + 233837 [robert.dober] I think that Tom's idea to have a method doing what he suggests is a bright
| |       | 233839 [wilsonb gmai] hash[key] = value unless hash.key?(key)
| |       | 233920 [robert.dober] I think it is clear that I would like to have this feature so sorry for
| |       + 233868 [transfire gm] it's okay. but i would prefer the best and most concise name reasonably
| + 233094 [shortcutter ] Or even
+ 233045 [twifkak comc] Hrm. ActiveSupport has something similar. You can do
| 233056 [transfire gm] Astute! Indeed, I am using that too. Though I defined an operator for
| 233060 [transfire gm] Hmm... it just occured to me that maybe this would be better defined
+ 233064 [w_a_x_man ya] new_item
+ 233065 [botp delmont] #   # As with #store but adds the key/value pair
+ 233069 [martindemell] #underlay

^ Re: Word Blender (#108) [solution]
233048 [rubytraining] This solution simply chooses a six-letter word (or allows the user to

^ [ANN] RubyGems Beta 0.9.0.9
233055 [drbrain segm] gem update --system --source http://onestepback.org/betagems
233058 [drbrain segm] File not found: GPL.txt

^ [ANN] January Phoenix Ruby Users Group meeting
233062 [james.britt ] Please see
233077 [james.britt ] Doubtful.  I know of no plans to record this in any way.

^ Re: RubyGems Beta 0.9.0.9
233068 [gavin refine] Out of curiosity, what is the rationale behind your version numbering?
233071 [drbrain segm] I follow Jim's lead, but I may not follow too well.

^ Grouping elements of an array?
233070 [sam.s.kong g] What's the best way to do the following?
+ 233072 [jeremymcanal] class Array
+ 233073 [farrel.lifso] requre 'enumerator'
| + 233074 [vjoel path.b] Alternately,
| + 233080 [w_a_x_man ya] requre 'enumerator'
|   233084 [sam.s.kong g] This looks really clever.
+ 233078 [shiwei.zhang] A=[1,2,3,4,5,6,7,8,9];B=[];

^ OO way of local variable passing
233086 [krekna gmail] What is the OO way to do this?
+ 233088 [jan.svitok g] I'd say, the first two options are most usual. If you don't need the
+ 233090 [shortcutter ] It seems to me that method1 and method2 are more like functions (i.e.
+ 233100 [dblack wobbl] If I'm understanding the situation correctly it looks like you could
+ 233122 [cyclewood_lt] you said you had it as a class variable now but you've written it as a local variable.

^ Re: mini-contest: try to crack this snippet ("Happy 2007!" R
233087 [eweaver.spam] Pfff. I fail to see Zed on the list.
233105 [robert.dober] He's too modest

^ RMagick: Round corner borders on images.
233091 [dougal.s gma] I'm trying to create rounded corners on images. I looked at the script
233093 [andre bonhot] I am very, very new to ruby, but I guess I know what went wrong on
233185 [dougal.s gma] Yup, I was! Thanks very much for that! :o)

^ Getting the result of a command with Net::Telnet
233092 [ronaldf eml.] Please have a look at the following simple Ruby statement (tn is
233131 [rodrigo.berm] tn.login(....)

^ Passing ruby literals over TPC as an alternative to Xml-Rpc
233106 [francis.ramm] Passing ruby literals seems an easy way to let programs communicate
233108 [peter semant] But if you are using an XML-RPC library you will never see the XML. How
233109 [alex blackke] I'm sure YAML-RPC's been suggested before, if XML verbosity makes the
233123 [lparravi gma] You could also take a look at Orbjson (http://orbjson.rubyforge.org/).

^ how to get 1 month in the future
233111 [nephish gmai] months between two given dates
+ 233117 [lparravi gma] If you use a Date object, the >> and << operators are used to add /
+ 233182 [shiwei.zhang] <=>, >>,  %w, define?, .., ... are actually nice in RUBY, although I
+ 233221 [coder68 yaho] require 'rubygems'
  233229 [tanner.burso] You just have to be aware that all that does is add 30 days to today's
  233631 [daniels pron] require 'rubygems'

^ code organisation help request
233113 [Paul.vanDels] I've written some ruby code that creates Fortran95 code to define and manipulate derived
233116 [shortcutter ] I would keep FDefMod as driver (i.e. the user instantiates it and
233128 [Paul.vanDels] O.k., I think I grok your meaning, but some implementation details still escape me (I'm
+ 233148 [Bil.Kleb NAS] 3,000 is hardly any?!  Have I created a monster?  :)
+ 233291 [shortcutter ] Why do you have a module in this file and not in the other files?
  + 233346 [shortcutter ] Sorry, I made things more complex than necessary.  The driver class in
  + 233413 [Paul.vanDels] [stuff snipped]
threads.html
top