383946-402965

383720-384297 subjects 384121-384899

Measuring memory using ruby-prof - help required
383946 [jitesh.jain@] I have a requirement wherein, I need to calculate memory utilized during
402965 [rogerdpack2@] On 5/30/11, jitesh.jain@asia.bnpparibas.com

[ANN] Ruber 0.0.9 released
383948 [stefano.croc] Ruber 0.0.9 has been released today

Re: canonical/syntax-diagrams representation.
383949 [no.top.post@] I taken time to absorb the feedback, from this lively thread

[ANN] Rails 3.0.8.rc3 (third time is the charm!)
383952 [aaron@te de ] Hey everybody!  I've pushed Rails 3.0.8.rc3.

Problem using 1.8.6 5WinAPI references in 1.9.2
383953 [RichardDummy] time. I posted the 84-line program at http://www.pastie.org/1994636.
383969 [RichardDummy] On May 30, 4:05=A0pm, RichardOnRails

RubyConf 2011 talk proposals being accepted
383954 [dblack@ru yp] Talk proposals for RubyConf 2011 are being accepted through June 15. The

Nokogiri : Modifying Nodes and Attributes
383957 [unbewusst.se] <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ 383958 [unbewusst.se] metas=doc.xpath("/html/head/meta")
+ 383965 [mike.dalessi] 2011/5/31 Une B=E9vue <unbewusst.sein@fai.invalid>
  383968 [unbewusst.se] No, I'll look at...

CORE - Specialized Attribute Definition
383961 [ilias@la ar ] ruby 1.9
+ 383963 [josh.cheek@g] Almost certain this can't be done. You could do something somewhat close to
| 383996 [ilias@la ar ] ok
| 383998 [josh.cheek@g] 2011/6/1 Ilias Lazaridis <ilias@lazaridis.com>
| 384002 [ilias@la ar ] This is a public archived group, thus other readers will benefit from
| 384016 [josh.cheek@g] I don't think anyone else has this problem. But if they do, I don't think
| 384100 [ilias@la ar ] I think they are able to understand it, it's not that complicated
| 384102 [josh.cheek@g] Based on all the posts you make in here, it sounds like you would be better
| 384103 [ilias@la ar ] [...] - (suggesting processing - not readed completely)
| 384108 [whitequark@w] No it couldn't. The feature you want requires altering of the Ruby
| 384142 [ilias@la ar ] I understand.
+ 383970 [u.alberton@g] Just out of curiosity, what exactly do you need the syntax above to
+ 383971 [ryand-ruby@z] I know this is a futile gesture, BUT...

multiple classes question
383966 [nostef@gm il] I need to create a class "Getter" that exposes a method "retrieve"
383967 [steve@st ve ] Googling around for 'ruby strategy pattern' turns up some interesting

Problems using gem command
383972 [ruby.student] Couple hours ago I updated to a new version of gems, by using *gem update
383977 [ryand-ruby@z] While I'm on the rubygems team... this isn't the place for this type of =

Error while installing GEM WMQ
383973 [ruby.student] I am trying to install Ruby WMQ on RHEL6 and SLES11, and it is failing on
+ 383974 [me@km hi e. ] Do you have the ruby development libraries installed? In Debian like =
| 383975 [ruby.student] Kristofer,
| + 383976 [me@km hi e. ] rpm -qa | grep ruby
| | 383978 [brabuhr@gm i] In this case, that likely won't help because he is not using Red Hat's
| | 383980 [g.diemant@gm] I'm not sure, but I think the problem is the removal of '.' from the
| + 384009 [ruby.student] First, my thanks to everyone for your help.
|   384014 [brabuhr@gm i] So far, you just used extconf to create the Makefile for building the C code.
+ 383979 [brabuhr@gm i] The first problem is an incompatibility between this gem's code and

What editor or IDE do you use?
383981 [skrabbit@co ] I'm pretty new to Ruby. What editor or IDE do you use? I usually use VIM
+ 383982 [developer@wi] Vim all the way. For me, fits the Ruby mantra of keeping things simple but flexible.
| + 383983 [markus@fi ch] Vim too here. There's only one real downside here (for me, anyway): I'm
| | 383987 [marco-oweber] get matchit.zip !
| | + 383988 [javadba@gm i] opinions on redcar?
| | | + 383989 [marco-oweber] Are you asking me ? No - never used it.
| | | | 383990 [eric@se pe e] Been sticking to Netbeans for a few years now.  Pretty happy.
| | | + 383999 [sutniuq@gm .] I'm using Redcar and I love it. It doesn't stand in your way while
| | | | 384006 [flebber.crue] It's emacs you can change everything. The easy way just install themes
| | | + 384000 [richard.conr] I like it. It is also one of the few editors that is fast and totally cross
| | + 384704 [markus@fi ch] OMG! Developing finally becomes real fun again. Thank you so much! It
| + 383985 [donald.s.wil] SciTE. I do mostly 'NIX coding -- lots of processes and SHM -- but it's nice that I can use it when I have to whack a ruby client for a doze laptop. Syntax highlighting is a plus and it's really easy to get Doze users up to speed on it. Also easy to customize fonts et al.
+ 383986 [code@ap th o] =20
+ 383992 [stu@ru yp og] I'm also a vi user.
+ 383994 [groups@in ox] Emacs, as always. These days I also toss RubyMine into the mix for its
| + 383995 [chris@ch is ] I do everything in the terminal - usually a Screen session with windows for
| + 384008 [robert.dober] for
+ 384007 [uwe@ku os h.] Emacs and RubyMine, with some Eclipse and Aptana for multi-project setups.
| 384011 [kmandpjlynch] ...if you're using a Mac, you might consider TextMate...it directly
+ 384017 [groups@in ox] I'm curious, anyone using Sublime Text? http://www.sublimetext.com/
+ 384018 [code@ap th o] (In the following, I will use "vi" to refer to vi-like editors in
| 384021 [stu@ru yp og] New POLL!!!
| 384022 [donald.s.wil] Jeez... BSD or Linux... or Doze?=20
| 384023 [code@ap th o] =2E . . although, the editor question *does* have some relevance for people
| 384026 [stu@ru yp og] You made your point succinctly and eloquently Chad.
| 384027 [fxn@ha hr f.] Let me add to this thread that the editors of dedicated IDEs are
| 384030 [code@ap th o] I think that the idea of equating tight coupling with superiority is
| 384033 [donald.s.wil] ith=20
| 384039 [code@ap th o] I wish I could help, but that's beyond my areas of expertise.
| + 384043 [fxn@ha hr f.] Well, the argument "since Ruby is not as heavyweight as Java or C++,
| | + 384053 [donald.s.wil] I totally agree that Rails is much more usable with a Rails-aware IDE as you say.
| | + 384055 [code@ap th o] =2E . . for a while.  Just as I thought Dreamweaver, then Homesite, was
| |   384060 [fxn@ha hr f.] Chad I never said you don't know what you are talking about. I think you do k=
| |   384063 [stu@ru yp og] Curious does RubyMine have a vi mode?
| |   384065 [fxn@ha hr f.] There's this plugin
| |   384079 [redjohn367@g] IdeaVIM is great. I use PyCharm daily at work, and RubyMine and
| |   384090 [martindemell] Not used IntelliJ, but Netbeans's jvi plugin is superb.
| + 384054 [donald.s.wil] One of the things I've been watching more and more as systems and web progr=
+ 384074 [ml@co va es ] TextMate on Mac. If you don't want to pay you can try TextWrangler but you loose a couple of sweet options like "on the fly compile/interpret" etc, that comes with textmate.
  384088 [code@ap th o] mate's behavior.
  384093 [steve@st ve ] ...
  384096 [darkintent@g] ...

[ANN] rubygems-update 1.8.5 Released
383984 [evan.mw.phoe] rubygems-update version 1.8.5 has been released!
384123 [LeCouey@sf n] Evan,

[ANN] minitest 2.2.0 Released
383991 [ryand-ruby@z] minitest version 2.2.0 has been released!

[ANN] minitest 2.2.1 Released
383993 [ryand-ruby@z] minitest version 2.2.1 has been released!

CORE - Alternative Variable Substitution
383997 [ilias@la ar ] ruby 1.9
+ 384001 [peterhickman] Ilias what are you doing? Are you trying to feed the source of another
| 384010 [ilias@la ar ] On 1 =C9=EF=FD=ED, 12:12, Peter Hickman <peterhickman...@googlemail.com>
| + 384012 [shortcutter@] You don't need a library for that.  It can be as easy as
| | 384038 [ilias@la ar ] I do nearly always look first for a existent (used, field tested)
| | 384041 [whitequark@w] There is no separate method in Ruby which does the variable
| | + 384042 [code@ap th o] I wonder how much that changes in the Rubinius implementation.
| | | 384044 [whitequark@w] Yes, I thought about Rubinius too. It nevertheless uses lexer and
| | | 384045 [flo@an er gr] I don't think so. Literals are never "constructed", so there is no step
| | + 384047 [ilias@la ar ] I understand.
| |   + 384048 [peterhickman] An alternative would be a preprocessor, such as C uses to handle the
| |   + 384049 [whitequark@w] Definitely no (for MRI, at least). Basically, C extensions can provide
| |     384050 [ilias@la ar ] [...] (technical elaborations).
| + 384013 [peterhickman] How about you actually say what you want. The one line example tells
|   + 384019 [code@ap th o] To be fair, I think the answer to these might be "however the existing
|   + 384037 [ilias@la ar ] On 1 =C9=EF=FD=ED, 16:23, Peter Hickman <peterhickman...@googlemail.com>
+ 384015 [cmdicely@gm ] I don't know of anything that that modifies the behavior of String
| 384036 [ilias@la ar ] ...or in a similar way ("&name" was just an example).
| 384040 [whitequark@w] @name is not a local variable, but an instance variable.
| 384046 [ilias@la ar ] print "#@name has 5 credits"
+ 384438 [ilias@la ar ] class VarTester

instance variable in pseudo-global scope
384020 [code@ap th o] * Variables whose names have no leading sigil have local scope.
+ 384024 [sean.ohalpin] @foo =3D 1
| + 384031 [code@ap th o] =2E . .
| + 384032 [josh.cheek@g] You will get 10 and 1 as output, not 10 and 2.
|   384034 [sean.ohalpin] Thanks for pointing out that silly mistake. But the point remains the same.
+ 384025 [ryand-ruby@z] but

[ANN] bones 3.7.0
384028 [tim.pease@gm] bones version 3.7.0
384035 [lcdpublic@co] I saw your announcement on the R-T ML and am pleased to learn about
384056 [tim.pease@gm] You're welcome!

[ANN] minitest 2.2.2 Released
384029 [ryand-ruby@z] minitest version 2.2.2 has been released!
+ 384058 [matthias@wa ] Ryan,
| 384068 [ryand-ruby@z] link contains completely outdated information about it. Do you ever look =
| 384080 [matthias@wa ] Thanks for the clarification, makes sense. In this case I”Ēd suggest to update the README to indicate github as the primary home page, cause it has all
+ 384067 [markus@fi ch] The news sound promising, but is it the wrong link? The most recent
  384962 [ryand-ruby@z] Btw,
  384967 [markus@fi ch] That's really great! Whenever I came to rubyforge I literally felt lost

CORE - Replace "if __FILE__ == $0"  with "executed?"
384051 [ilias@la ar ] The construct to detect execution of the file (in order to launch main
+ 384052 [whitequark@w] It failed because __FILE__ is not a constant: it is a special lexical
| 384057 [code@ap th o] module Kernel
| 384059 [jgabrielygal] He wants to have the definition of the executed? method in a different
| 384061 [code@ap th o] Ah, yeah, I apparently overlooked that.  Please excuse my noise.
| 384062 [jgabrielygal] Not really, I just defined the default value just in case, but it's true
| 384064 [jgabrielygal] Sorry for the top post and the bad quote, I was using my phone there.
+ 384066 [wishdev@gm i] Good Morning,
+ 384083 [ilias@la ar ] All 3 suggestion (Zotov, Galn, Higgins) failed on my site for
| 384084 [cremes.devli] if __FILE__ == $0
| 384087 [ilias@la ar ] atch
+ 384276 [ilias@la ar ] Provide method Kernel#executed?

ANN: PDFTron PDF Library for Ruby, Python, PHP
384069 [support@pd t] PDFTron PDFNet SDK v.5.7. - A Ruby Extension module for all types of
384070 [ryand-ruby@z] $900 per cpu???

[ANN] Ruby Midwest Conference: CFP open
384071 [lpillow@gm i] Announcing Ruby Midwest 2011!

Behaviour of different Proc types
384072 [josh.cheek@g] I realized that I just can't ever remember the different proc types
+ 384075 [anurag08priy] On a slightly related note:  http://innig.net/software/ruby/closures-in-ruby.rb
| 384076 [stu@ru yp og] I colorized Paul Cantrell's exhaustive document =3D)
+ 384078 [whitequark@w] I should note that proc behavior differs not across implementations,
+ 384170 [johannes.hel] ...
+ 384175 [josh.cheek@g] I've added the note that -> is a synonym for lambda in 1.9.

URI.parse hex encoded URI
384077 [karsten.burg] charset="us-ascii"
384081 [markus@fi ch] I'm no export on URI but I've been using it in a few projects lately

What would you guys think about adding the Thrush combinator to Object?
384082 [brian@br an ] I'd like to get some peoples' opinion on this. I recently needed to
384089 [shortcutter@] Hm, that looks quite complex to me.  Why not just do this?

Best way to replace hash keys
384085 [Alex.Allmont] What is the most optimal and neatest way to replace keys in a hash given a =
+ 384099 [list.push@gm] a particular condition?
+ 384106 [transfire@gm] On Jun 3, 10:27=A0am, Alex Allmont <Alex.Allm...@naturalmotion.com>
| 384107 [transfire@gm] searchReplacePairs.rekey! do |search|
+ 384124 [groups@in ox] Hope it's helpful.
  384201 [Alex.Allmont] Thanks to everyone for the responses.

[ANN] Lone Star Ruby Conference V - Last Call for Speakers
384086 [jimfreeze@gm] Lone Star Ruby Conference V - August 11-13, Austin, TX

3 Open RoR Positions + Telecommute + Bacon = BLISS!!
384094 [lwarrenii@gm] *Are an experienced RoR developer
384095 [sophrinix@gm] What if you're a vegetarian, but are hip to the rest of the list?

[ANN] logging 1.5.1
384097 [tim.pease@gm] logging version 1.5.1
384225 [headius@he d] FWIW, I believe MRI on Solaris raises the same error we do on any

(none)
384098 [terry.donagh] Terry (Tad) Donaghe

CORE - Altering Behaviour of "each do" (default param "item")
384104 [ilias@la ar ] 1.9
+ 384105 [peterhickman] Probably not without changing Ruby itself.
| 384109 [mikaa123@gm ] Actually it would be possible, although very ugly.
| 384120 [shortcutter@] There is another approach which does not suffer from the side effect of
| + 384122 [stu@ru yp og] why do all these threads start with CORE ?
| + 384129 [ilias@la ar ] ractices.com/
| + 384130 [ilias@la ar ] what does "(Thread.current[:__item__] ||=3D [])" do?
| | 384132 [shortcutter@] You ask for things that modify the language and need meta programming in its implementation yet you do not seem to be comfortable with basic
| | 384135 [ilias@la ar ] [...] - (off topic, off context, processing)
| | 384137 [matthias@wa ] Yes, Ilias, it looked like Cockaigne but it isn”Ēt, if just for the matter of Robert”Ēs grilled geese don”Ēt fly into your mouth. In fact, they are too
| + 384150 [ilias@la ar ] This approach is not usable in the given context (Altering Behaviours
|   + 384155 [ninja@sl ph ] Off the topic of what, exactly?
|   | 384166 [ilias@la ar ] bout
|   | 384195 [leigh@th co ] I'm looking for a recipe for "slow roasted Lizard"
|   + 384165 [shortcutter@] 2011/6/5 Ilias Lazaridis <ilias@lazaridis.com>
|     384167 [ilias@la ar ] I don't have to "look close enough"
|     384187 [shortcutter@] That speaks for itself.
|     384191 [ilias@la ar ] I don't have to "look close enough" (only in the given context that
+ 384110 [ml@co va es ] Can't you just write your own implementation of .each?
+ 384111 [james@gr ys ] Since everyone is still speaking to Ilias far too often, I'll try to use
| + 384112 [code@ap th o] Wow -- his own encyclopedia entry.
| | 384113 [subscription] the
| | + 384115 [martindemell] hat is almost but not quite completely unlike the language he has insisted =
| | | 384119 [ninja@sl ph ] Unlikely. As James pointed out, he doesn't appear to be a programmer, judging
| | + 384116 [mikaa123@gm ] I really wonder what that "Dr. Lizardo" ( ;)) is trying to achieve. Is he legitimately, in his own way, trying to explore the language and grok each and every edge-cases? That's what I thought at first. I didn't approve the way he answered to people helping him (very rude most of the time), nor the way he exposes his questions. But wow, that encyclopedia entry says that the article has been tagged since 2006!
| | + 384117 [code@ap th o] I can just killfile using procmail, if need be.  I just tend to be very
| + 384114 [ml@co va es ] go it...
| + 384118 [matthias@wa ] James,
| + 384138 [ilias@la ar ] [...] - (off topic)
|   + 384139 [matthias@wa ] Providing help is a personal matter for many people. You won”Ēt get friends here as long as you snub everyone who is questioning your approach or
|   | 384140 [ilias@la ar ] I am free to use this resource to post topics subjecting the ruby
|   | + 384143 [matthias@wa ] It depends solely on what you define the topic. You seem to have talent in making yourself the topic and not taking notice of that. That”Ēs your
|   | | + 384144 [mikaa123@gm ] Let's just ignore him, shall we?
|   | | + 384146 [ilias@la ar ] [...] - (twisted views of in-topic and forced thankfulness)
|   | + 384145 [shortcutter@] Actually, this assessment is wrong.
|   + 384141 [josh.cheek@g] Curious, based on your questions it looks like you chose some other
|   + 384156 [ninja@sl ph ] It doesn't seem that "violation" was the primary concern, so much as that
|     384209 [ilias@la ar ] " The article is one of these "I want to attack the guy without
|     384215 [ninja@sl ph ] "the problem here is that while you might have found the article useful, we
|     384216 [ilias@la ar ] This was the initial deletion reason (and the reality).
|     384224 [ninja@sl ph ] Actually, not really. Even in the inital reason (which has no special status
|     384227 [ilias@la ar ] [...] - (excellent analysis which quotes some anonymous comments and a
|     384233 [cmdjackryan@] Please Do. Empty threats are more boring than empty threads.
|     + 384245 [ilias@la ar ] On 8 =C9=EF=FD=ED, 17:16, Phillip Gawlowski <cmdjackr...@googlemail.com>
|     + 384248 [code@ap th o] Has anyone asked *how* he'd react?  I'm curious about what sort of
|       + 384251 [stu@ru yp og] He's a misanthropist. He seems to just troll under the guise of being
|       | 384252 [ilias@la ar ] This is a excellent summary.
|       + 384255 [cmdjackryan@] It's buried in the thread, but Ilias threatens (emptily, so far) to
|         384257 [ilias@la ar ] On 8 =C9=EF=FD=ED, 21:00, Phillip Gawlowski <cmdjackr...@googlemail.com>
|         + 384258 [cmdjackryan@] So sue me. :D
|         + 384270 [ninja@sl ph ] In other words, you mention laws that seem relevant (until I do five minute=
|           384271 [ilias@la ar ] [...] not readed
+ 384154 [matz@ru y- a] It's possible but you have to redefine the each method.  That reminds
| + 384168 [ilias@la ar ] em")"
| | + 384169 [shortcutter@] tem")"
| | | 384174 [ilias@la ar ] [...] - (going into details, talking like we're on a "language-
| | + 384183 [ninja@sl ph ] I'm not sure that I have a vote, but I'd also vote against. I like the
| | | + 384189 [shortcutter@] Why wouldn't you?  (Whether our votes are counted somewhere is a
| | | | + 384192 [code@ap th o] Holy crap.  I had no idea.
| | | | | + 384193 [josh.cheek@g] $ echo hello world | ruby -W0 -ne 'puts $_ if "strings are objects"'
| | | | | + 384197 [shortcutter@] Robert@babelfish ~
| | | | + 384199 [ninja@sl ph ] That doesn't seem to be the same thing, though. In Perl, $_ is the "default"
| | | + 384190 [code@ap th o] how=20
| | + 384203 [Ruby@Go gl M] That's because nobody who knows even the tiniest bit of Ruby would
| |   384204 [adam@ap es o] 2011/6/7 Jrg W Mittag <JoergWMittag+Ruby@googlemail.com>
| |   + 384205 [shortcutter@] uby
| |   | 384206 [adam@ap es o] True!
| |   + 384212 [ninja@sl ph ] While I would use &method(:puts), it honestly never occurred to me, and it=
| |     384214 [adam@ap es o] Not too long ago I found
| + 384171 [ilias@la ar ] em")"
|   + 384172 [matz@ru y- a] So being "speakable" is important from your point of view, is it?
|   | 384176 [ilias@la ar ] Yes, usually I prefer to have source code that can be "spoken".
|   | 384177 [matz@ru y- a] It's not that easy decision before evaluating the impact to the whole
|   | 384178 [ilias@la ar ] em")"
|   + 384173 [johannes.hel] In any case, you would need to create a kind of new keyword - what may
+ 384275 [ilias@la ar ] related issue
threads.html
top