172820-286258 subjects 173290-291503
^ On Symbols
173111 [twifkak comc] Have any of the explanations in the thread (What is the difference
+ 173140 [leavengood g] I don't know, they have always made sense to me, which is why I didn't
| + 173142 [ryansobol gm] /agreed
| + 173151 [chneukirchen] +1
| | 173158 [gregory.t.br] +1 more. People will understand them if they just use them.
| | 173162 [slitt earthl] I disagree. I was using them quite often, but didn't understand them at all.
| | + 173164 [gregory.t.br] I think you'll get nickels, dimes, quarters, and other such change if
| | | 173167 [ysantoso-rub] I think this topic will be terminated by the coming year-end holiday
| | + 173320 [trashcan hot] Ask for more, try three.
| + 173202 [rm_rails che] Ruby symbols surprised me a bit because unlike most
| | 173224 [halostatue g] Probably an implementation detail. That doesn't mean you can't ignore
| | 173235 [rm_rails che] I think the big difference is if you want to use symbols
| | 173241 [jim freeze.o] ...
| + 173214 [perrin apoth] += 1
+ 173144 [mark scottis] Yes, the thread has definitely helped my understanding (but I wouldn't like to
| 174175 [groups grand] Ack. I'm glad that helped somebody, but it was meaningless for me. It
+ 173173 [dan danshafe] What a long, sometimes interesting, sometimes confusing thread that
+ 173215 [perrin apoth] None taken.
+ 174166 [groups grand] I've just started trying to find these discussions and read them
| + 174185 [groups grand] Gregory Brown's examples showing object IDs have provided some hints,
| | 174191 [dblack wobbl] I've always conceptualized it as pretty much a value vs. pointer
| | + 174203 [mental rydia] It may be helpful to think of them as objects which are addressed
| | + 174206 [jim weirichh] True, but ...
| | + 174208 [dblack wobbl] It is indeed. I think one reason I'm so immediate-value-aware is the
| | + 174241 [gwtmp01 mac.] +1
| + 174189 [rosco roscop] Maybe (maybe?) there aren't any really good references out there on what a
| + 174222 [perrin apoth] To be fair, I think the only reason he discussed the comparison of Ruby
+ 174246 [amrmalik gma] The longish 'foo' vs :foo thread was helpful to me as a "nuby" in terms
174256 [evanwebb gma] Here is a short breakdown of how symbols (and other immediates are
+ 174280 [cyclists nc.] Nicely done, Evan! Very good explanation. Thanks!
+ 174328 [lukfugl gmai] If I may make one correction/clarification to an otherwise *excellent*
| 174358 [evanwebb gma] Jacob,
+ 174344 [amrmalik gma] Thanks Evan, much appreciated!
+ 174359 [SimonKroeger] Just because there seems to be so much confusion i would like to
^ Fwd: [SOLUTION] Sudoku
173116 [james graypr] ...
^ [ANN] Nukumi2 0.5 released
173117 [chneukirchen] This is the second release of Nukumi2 since exactly this day last
^ conciseness v. clarity (was Re: [SOLUTION] Sudoku)
173121 [demmer12 fas] Greetings,
+ 173139 [janchrister.] conciseness v. clarity (was Re: Sudoku)
+ 173172 [hawkman.gelo] ...
173174 [janchrister.] It works. This is the complete code.
+ 173175 [janchrister.] Christer
| 173176 [janchrister.] cheers
+ 173177 [SimonKroeger] First Column has two 9's !
+ 173182 [hawkman.gelo] ...
| 173188 [janchrister.] Would you mind sending me your input, Dirk?
| 173198 [hawkman.gelo] ...
+ 173186 [janchrister.] Excellent observation, Simon!
^ [OT] Re: Using Ruby to Invest in the Market?
173123 [gavin refine] Amusing choice of words. :)
173129 [james_b neur] So I'm sitting here, eating breakfast, and reading ruby-talk, when ...
^ Method for turning strings into code
173125 [slitt earthl] What is the Ruby technique for turning strings into executable code?
+ 173130 [johannes.fri] eval
+ 173132 [james_b neur] eval( 'class Foo;def x; puts "x"; end;end' )
| 173138 [slitt earthl] Thanks James, and you to Johannes.
+ 173299 [cyclists nc.] Via one of the various forms of eval. However, using eval on arbitrary
+ 173298 [pan erikveen] Uh, well, that's not the right answer. Eval evaluates
| + 173338 [chneukirchen] Wrap it in a lambda, then.
| | 173351 [james_b neur] If I have a string in a file, would we say it was executable code? Or
| + 173342 [slitt earthl] When I first posed the question, what I really meant was turn it into Ruby
| 173348 [pan erikveen] If you want to distribute your Ruby application as a single
+ 173343 [slitt earthl] Where do I find out more about Ruby's dynamic programming facilities?
173349 [cyclists nc.] The Pickaxe would be a good start. Also Hal's _The Ruby Way_.
^ Is the Ruby executable written in C?
173128 [slitt earthl] Is the Ruby executable written in C?
+ 173131 [james graypr] In a word: Yes.
| 173152 [rdm cfcl.com] modulo JRuby
+ 173311 [jeff schwabc] It seems to be written in a version of C that I found a little difficult
| + 173341 [chneukirchen] The Perl source is worse.
| | 173345 [perrin apoth] According to Nat Torkington, the Perl source is "an interconnected mass
| + 173353 [james_b neur] Might be an acquired taste. I've not done any regular C coding in many
+ 173326 [cyclists nc.] yes.
^ Ruby-Feed parser and relative URL references
173143 [fishkei gmai] ...
173145 [jonsmirl gma] That feed doesn't validate at http://www.feedvalidator.org/ but for
173147 [fishkei gmai] ...
173169 [jonsmirl gma] Is this the feed you are using?
^ About Steve Yegge's 'Opinions considered harmful' post
173149 [gregory.t.br] Excuse me, but where in this post does anything about Ruby arise?
+ 173159 [gregory.t.br] Whoops. Wrong ML... sorry.
+ 173161 [gregory.t.br] I guess since this post is already on the archive, and a few people
| 173310 [rosco roscop] I'm really loving this whole 'us and them' community that seems to be
| 173329 [gregory.t.br] That really wasn't my intentions, though I can see where you are
| 173364 [rosco roscop] It was just the before/after Rails thing really. I'd guess that a lot of
| 173375 [ruby anthrop] } It was just the before/after Rails thing really. I'd guess that a lot of
| 173384 [znmeb cesmai] Hmm ... I moved from (n)awk/sed/(k)sh to Perl (4) precisely *because* of
| 173415 [znmeb cesmai] In thinking further about this, perhaps the regular expression
| 173420 [perrin apoth] . . . use the $_ implicitly?
+ 174112 [doug00 gmail] It's a shame all the instructive comments on the original posts were
^ Another Newb asks questions.
173179 [joseph josep] Ok, recently started "trying" to learn this wonderful language, but am
173205 [wilsonb gmai] This solution uses the 'enumerator' module, included in the standard library.
173206 [joseph josep] Very good solution. Ill look into it ans see how it works. Thanks.
173208 [wilsonb gmai] Here's another, much uglier solution, that doesn't rely on Enumerator.
173229 [joseph josep] I hope youll forgive, but I seem to be at a loss for exactly what/how
+ 173232 [janchrister.] It seems to check if the line number is odd. % is the modulo operator.
+ 173233 [M.B.Smillie ] x / y = a (rem b)
173240 [joseph josep] Great answers guys! Thanks for the help.. surprisingly a part of what
173244 [joseph josep] Thanks again all.. so that you know your efforts wern't in vain I think
173253 [dharple gene] I see two typos --
+ 173336 [bob.news gmx] If I'm not mistaken there's a path separator missing. You better use
| 173352 [joseph josep] Yeah I was being silly there. I actually intended to remove the
+ 173350 [joseph josep] Actually the first conditional will have elsifs once I get the code
^ Re: Numeric Maze (#60)
173193 [janchrister.] target
173195 [james graypr] Works for me. Let's do that.
+ 173196 [janchrister.] You are correct Jeffrey, see the matrix in my last reply. Starting with
| 173207 [janchrister.] solve(1, 1) # => 
| 173216 [jim freeze.o] ...
| + 173217 [M.B.Smillie ] (It's specified that you can't halve odd numbers)
| + 173218 [janchrister.] Only positive integers are allowed.
| | + 173220 [janchrister.] Robert, your solution is correct. There may be different solutions with
| | + 173221 [jim freeze.o] ...
| | + 173222 [jim freeze.o] ...
| + 173228 [james graypr] The key phrase seems to be "minimizing the number of operations". I
| | 173230 [jim freeze.o] ...
| | 173231 [janchrister.] consider the original transformations having cost one. The new
| | 173234 [jim freeze.o] ...
| | 173236 [janchrister.] Jim, you have just defined Quiz #60B !
| + 173312 [ptkwt aracne] ...
+ 173302 [kero chello.] ...
173332 [janchrister.] Kero,
173361 [janchrister.] <[300, 302, 304, 152, ... , 2, 1]> expected but was
173369 [steve waits.] Thanks Christer...
+ 173387 [kenjisihan h] Very new Rubyist here. :)
| 173401 [maurice.codi] ...
| + 173407 [kenjisihan h] Yea I think it is correct. I thought I had a shortcut in my algorithm,
| + 173414 [james graypr] My code dies a horrible death on this one. <laughs> I think I get a
| + 173448 [janchrister.] Beautiful!
| | + 173449 [janchrister.] I can confirm that the four digit subproblem 8740 -> 7630 is solved
| | | + 173450 [janchrister.] The Five digit subproblem is solved optimally.
| | | + 173453 [kenjisihan h] 17478, 17480, 8740, 4370, 4372, 2186,
| | | + 173481 [ilmari.heikk] It's possible, but I don't know.
| | + 173451 [rictic gmail] I'm still doing this in far too much of a brute force sort of method.
| | | 173511 [kero chello.] ...
| | | 173526 [pine29 myfas] Gregory, this is an amazing solution! However I got a failure trying
| | | 173531 [pine29 myfas] $ ruby test60.rb 49 64
| | | + 173534 [chrisgparker] Hey everyone,
| | | + 173535 [ruby anthrop] } >> This is my first Ruby quiz. I was hoping to have the whole thing done
| | + 173467 [ilmari.heikk] Ok, here's a couple. They tend to be a step or two worse than optimal,the worst case performance I've run into yet is 4x longer path (with255 -> 257.)
| | 173473 [tristan.allw] Hey,
| | + 173474 [neoneye gmai] My solution is not optimal nor fast.. but different than the other
| | | 173480 [pine29 myfas] #!/usr/bin/env ruby
| | | 173694 [pine29 myfas] I always learn something from Ruby Quiz! Use of a ceiling (as presented
| | + 173532 [kero chello.] ...
| + 173507 [kero chello.] ...
| 173510 [janchrister.] Ilmari, I tried to replicate your solution, before seeing it, and
| 173550 [ilmari.heikk] I toyed with writing a optimize-function, which would take themidstate list and find patterns that are known to be suboptimal. Onepattern to look for would be going from odd number to another, wherethe distance is even and less than 32, which is the point where themultiply, add, divide, etc starts being less ops than add 2.
| 173644 [0x002A gmail] okay here's my shot at the quiz, it's quite large for such a simple
| + 173668 [brian.takita] ...
| | 173747 [kero chello.] ...
| + 173672 [kero chello.] ...
| | + 173682 [rubyforum.20] Kinda ugly, but pretty fast. Breadth first search alternating from each
| | + 173763 [janchrister.] Kero, this is really the quickest solution so far, passing my little
| | + 173795 [ryansobol gm] ...
| | + 174022 [kero chello.] ...
| | 174067 [janchrister.] I think there are a lot of winners here. Your code executed fastest for
| | 174073 [james graypr] James Edward Gray II
| + 173708 [janchrister.] 42,
| + 173842 [0x002A gmail] now without :* but much shorter..
| 173866 [janchrister.] Still doesn't solve (222,999) correctly. One step too much.
| + 173908 [matthew.moss] Here is my solution, very much a derivative of my solution to the
| | 174074 [matthew.moss] Yup, my solution is really slow. I made a minor change which reduces
| + 173924 [adam.shelly ] Here's my solution.
| 173985 [nmorse gmail] Here's my solution. Short, sweet, and slow. One benefit of this
+ 173692 [SimonKroeger] Thanks for the testcases,
+ 173703 [steve waits.] You're welcome. Thanks for trying them.
| 173704 [janchrister.] my subproblem solution to (868056,651040) gave the same result as your,
| 174079 [SimonKroeger] Oops, sorry i kind of 'lost' this thread..
| + 174154 [janchrister.] I took a look into bi-directional search, and it's really a rewarding
| + 174290 [janchrister.] There is a small time fraction possible to squeeze out from Simon's
| 174295 [simon.kroege] This was already true with the original (my) code
| 174303 [james graypr] <laughs>
| 174364 [tristan.allw] Hey guys,
+ 173714 [wjl icecaver] ...
173729 [rictic gmail] Ok, It's a day late, but I've got my solution. I've also updated the
^ [ANN] Phoenix Ruby Users Group January Meeting
173247 [james_b neur] The 2006 kickoff meeting of the Phoenix Ruby Users Group will be on
^ [ANN] Rabbit 0.3.1
173257 [kou cozmixng] * add browse mode to theme manager
^ Newb: Search & Replace
173259 [agillesp gma] I'm implementing build automation in Ruby as a 'learn Ruby' exercise.
+ 173324 [wybo servaly] with rio, you can edit a file inplace;
| 173340 [bob.news gmx] Robert@Babelfish2 /c/TEMP
| 173346 [wybo servaly] sed -ie 's/x/y/g' iDrum_prefix.h
+ 173355 [leavengood g] That is nice and idiomatic from my perspective. In fact I've written
173380 [agillesp gma] Thanks for the replies, everyone. I wound up with
^ stdlib ipaddr request for comment;-)
173261 [news wobcom.] at the moment the lib behaves like following.
173273 [djberg96 gma] My suggestion is to submit a patch to ruby-core and see what folks
173281 [news wobcom.] Dear Daniel,
^ readline tab completion -- the whole line?
173265 [kero chello.] ...
173267 [dca.gis gmai] Currently, completion_proc seems to only be able to handle the current
^ net/ssh question
173266 [ivan.pavlov ] which sends messages to client desktops in the same local network.
173283 [ivan.pavlov ] I solved my problems. I hadn't paid attention to the
^ KixForm, a (little) GUI for Ruby / win ?
173272 [enleverlesO.] ...
^ A few questions of function and style from a newbie
173279 [sven_u_johan] I'm just dipped into the goodness that is ruby for the first time
173294 [bob.news gmx] No, you get the script's path - although this will incidetally match with
173295 [sven_u_johan] Thank you for your response! Quick and clarifying at the same time.
+ 173321 [bob.news gmx] You're welcome!
| 173328 [sven_u_johan] Very informative indeed, if perhaps more than a bit humbling! Thank you
| 173331 [bob.news gmx] <snip/>
| 173471 [sven_u_johan] Heh. But how can we know if it premature unless we have an idea about
| + 173577 [ryand zenspi] No, you discovered the difference between 1 method invocation (Fixnum.
| + 173579 [ryand-ruby z] No, you discovered the difference between 1 method invocation (Fixnum.
+ 173405 [penryu saiyi] ...
173469 [sven_u_johan] 6ce4ad47bfa79b6c0e48636040c1dfb9 - 001.mp3: 52/50344
173476 [penryu saiyi] ...
^ Syntax highligth with textile: Syntax+RedCloth ?
173284 [surrender_it] I was trying to mix RedCloth with Syntax and I'm
173309 [rosco roscop] Yup, don't it just suck? In the end we introduced a 'macro' concept by
173305 [surrender_it] yeah, I was leaning to the same solution, even if I still want to try