278224-282774
278017-278995 subjects 278373-283860
^ [SLIGHTLY OT] programmers can be humans and nice
278224 [pietro.ferra] I'm sending rough translation of a message posted on the brasilian
+ 278244 [dangerwillro] Pietro,
+ 278257 [ryand-ruby z] this sounds awesome... now if only you'd translate the entire talk.
^ Current Quizmaster Retiring
278226 [james graypr] When I started the Ruby Quiz project, I made some off-hand comment =20
+ 278228 [shortcutter ] James, thank *you* for the efforts you have put into this! I am
| 278241 [dangerwillro] Yes, thank you James.
+ 278239 [dale.martens] On Nov 9, 9:05 am, James Edward Gray II <ja...@grayproductions.net>
| 278242 [james graypr] That brings up a good point I forgot to mention.
+ 278248 [phrogz mac.c] On Nov 9, 8:05 am, James Edward Gray II <ja...@grayproductions.net>
| + 278249 [phrogz mac.c] If others also feel that this would change the flavor too much, my
| + 278262 [james graypr] Thanks to all of you for the kind words.
| + 278443 [mortee.lists] Let me argue that the summary is an important feature of a quiz. In many
+ 278251 [tom infoethe] Thanks, James, for all the work you've done on this! And the book (*)
+ 278252 [olsonas gmai] James -
+ 278254 [matthew.moss] Message.new("Simply, thanks.").sendTo(:James)
| 278268 [why ruby-lan] Oh, say, that's rich. Golf your thanks to the quizmaster.
| 278280 [dangerwillro] Oh why. why not make that the quiz of the week next week...
+ 278279 [mental rydia] James,
+ 278294 [hramrach cen] Hmm, maybe I am not really a programmer. I can appreciate elegant code
| + 278301 [james graypr] This is off-topic and I'm obviously biased, but I really believe
| | 278386 [hramrach cen] Well, I did not said I never do so. I know the thrill of solving a
| | 278395 [paulo.schnei] The current Quizmaster is retiring! Long live the Quizmaster!
| | 278559 [fedzor gmail] James, you have turned me into a programmer. No joke. If it weren't
| + 278324 [znmeb cesmai] Well, there may not be much *code* in museums, but there certainly are
| + 278360 [james graypr] I saw the German "Enigma" in a museum last time I was in Washington
| + 278369 [alec arlross] <znmeb@cesmail.net> writes
+ 278296 [transfire gm] On Nov 9, 10:05 am, James Edward Gray II <ja...@grayproductions.net>
+ 278318 [m_goldberg a] Thanks ever so much for the three years of effort you have put in.
+ 278388 [eric.mahurin] Thank you so much for all of the work you've put into ruby quiz. Although I
+ 278418 [martindemell] So long, and thanks for all the fish!
+ 278466 [rubytraining] I was always amazed while reading the quiz solution summaries you
^ File 'rb' on non-Windows
278229 [jari.william] File.new("myfile", "rb")
+ 278232 [ed.odanow wo] On Windows files will usually have line breaks build by the sequence
+ 278233 [djberg96 gma] It is ignored on other platforms, yes.
| 278238 [Rob AgileCon] It's not "ignored", it just has no effect because there's no
+ 278261 [bbxx789_05ss] 1) Different os's use different characters for newlines.
^ Ruby on Rails Developer seeking employment
278231 [JFletcher051] I am a Dallas resident seeking a Ruby on Rails Developer position in
^ Information Hiding
278246 [arcadiorubio] I'm quite new to Ruby, so please excuse me if this question is a bit
278253 [shortcutter ] In this case I'd do
278258 [ryand-ruby z] Follow this advice.
278272 [arcadiorubio] Ok, thanks a lot for the tips.
^ Automating gem installs?
278256 [jhahn rbmtec] I'm trying to setup an automated build system for all of our upstream
+ 278259 [ryand-ruby z] not yet... but we're getting there. I've got this requirement as well
+ 278454 [ruby aphrola] I do this the hard way probably, but I convert gems into RPMs and then
| + 278512 [jhahn rbmtec] That tells me what I needed to know. The only way to accomplish this
| | + 278700 [ruby aphrola] Looks like that script has it's uses, but it wouldn't be suitable for
| | + 278701 [drbrain segm] No, try the beta.
| + 278702 [drbrain segm] No!!!
| + 278806 [jhahn rbmtec] The gems link is a direct reference to that one mirror.
| + 278815 [tom infoethe] Yup, what Eric said. And thanks again to our mirror providers!
+ 278834 [jan.svitok g] One way is to install the gems on one machine and run a gem server on it.
^ Re: the result of Ruby official logo contest
278260 [xbelanch gma] Okay! its a "Rubbit", not appears the gem stone, but I think it's very
^ Quick update on IronRuby status
278266 [jflam micros] I know we haven't pushed out some new sources in a while now. My apologies.
^ enterprise ruby
278271 [rogerpack200] I am thinking of doing a 'side by side' distro of Ruby that includes the
+ 278276 [shortcutter ] Personally, if I had the resources to invest into this I'd rather spend
| 278305 [lionel-subsc] Please don't forget that many gems still don't work or don't have
| 278415 [charles.nutt] The lack of native gems in JRuby has so far not amounted to much of an
| + 278428 [znmeb cesmai] 1. As far as I know, *only* MRI is "100 percent MRI compatible". :) The
| | + 278446 [hramrach cen] It's only like 99% compatible anyway, there are changes from time to time ;-)
| | | 278469 [luislavena g] Maybe this was discussed before, but noone mention it.
| | | 278495 [charles.nutt] The ability to replace the Ruby GC with something a bit more advanced is
| | + 278492 [charles.nutt] I didn't say MRI, I said 1.8...and I said JRuby was "the most complete",
| | + 278653 [rogerpack200] In retrospect, maybe it would be worth more long term investment for
| + 278433 [rogerpack200] Does the jruby GC need much help? I was under the assumption it was
| + 278464 [rick.denatal] I don't know why this gives me a sense of deja vu.
| 278494 [charles.nutt] This implies that it's only valid to call something an "extension" if
| 278515 [rick.denatal] JRuby specific extension example omitted.
| + 278519 [shevegen lin] I dont think I would use it (insofar as I dont really need it, as i use
| + 278520 [charles.nutt] Only as far as extensions go. I don't advocate writing extensions;
| 278527 [rick.denatal] Well I never said that portable extensions needed to be written in C.
| + 278528 [charles.nutt] Maybe we shouldn't be "rooting" for anyone, and we should instead be
| + 278543 [jeremymcanal] I believe Rubinius actually "fakes" the MRI extensions API so your
| + 278552 [znmeb cesmai] Welll ... there are only a few reasons why one would write an extension
| 278592 [ news jay.fm] Possible, yes. (Again, Turing-complete and all that.) But it depends what
| + 278616 [znmeb cesmai] ImageMagick have a command line interface? Can't Ruby (and jRuby)
| | + 278639 [x3qh85202 sn] String processing in MATLAB (Octave, really) is agony, so I tend to use
| | | 278730 [znmeb cesmai] GSL doesn't have SVD, least-squares and eigenvalues? Well then -- you
| | | 278779 [x3qh85202 sn] IIRC GSL has these things (and BLAS and LAPACK), but it lacks others,
| | | 278797 [znmeb cesmai] There is an Octave-to-R cheat sheet available at
| | | 278923 [x3qh85202 sn] This is a significant barrier. Having to marshal and unmarshal your
| | | 278952 [cameron.mcbr] so, so, so true. I, also, have had some half-hearted attempts to make
| | | 278962 [edder tkwspi] I also have a half hearted library for my own use, which basically
| | | + 278984 [x3qh85202 sn] Building these things up from scratch is nearly impossible, even more so
| | | + 278985 [znmeb cesmai] Are we talking *enterprise* Ruby or *high-performance scientific*
| | | + 279824 [cameron.mcbr] well, I think there are great libraries in both C and ruby versions (C
| | + 279524 [ news jay.fm] Ah, yeah, that's VERY loose coupling! And there are people doing that
| + 278645 [charles.nutt] The truth is there's probably another dozen options beyond those listed
| 279523 [ news jay.fm] The only Java-ImageMagick library I can find is JMagick, a JNI bridge to
| 279531 [charles.nutt] Actually, it probably would work fine, but I'm not sure anyone's tried
+ 278302 [lionel-subsc] Useful ? Yes it would : I have some Rails actions that eat memory quite
| 278323 [znmeb cesmai] Sounds to me like you're building a data structure in RAM to avoid
| 278336 [lionel-subsc] In some cases, yes because the code is easier to maintain that way. I
| + 278387 [znmeb cesmai] Ah ... complex business rules. That's the big problem with programming
| | 278394 [rogerpack200] The GC's mark and sweep 'recreates' its freelist every time it runs a
| | + 278404 [znmeb cesmai] I haven't been following 1.9 closely enough to know what it does about
| | | 278465 [shortcutter ] That's why I say, rather use an existing and highly optimized GC that
| | + 278409 [no spam.plea] Actually, although it might use more virtual address space, if done right,
| | 278429 [znmeb cesmai] platform.each do |p|
| + 278434 [rogerpack200] Ahh so you want the process to actually really free the memory after it
+ 278319 [znmeb cesmai] What would be more useful to me, and in fact where I'm headed, is a Ruby
278411 [no spam.plea] a decade ago that used gcc's -pg (gprof profiling) with a custom prof
^ no such file to load --- fox 16
278273 [Hari pillai.] I downloaded FxRuby via gem. The both direcories ,
278286 [caduceass gm] Gems are for requiring, files are for loading, and trix are for kids :-)
278299 [rick.denatal] No, if load won't work, require won't either. Require is just the
278311 [vjoel path.b] irb(main):001:0> load 'fox16'
278313 [vjoel path.b] Ignore that, it's quite wrong!
278315 [caduceass gm] Yes, I forgot about that. You need to load the full file name, but
278317 [caduceass gm] I meant "requiring a gem".
278329 [Hari pillai.] thanks for the feedback, by processing rubygems first and then fox it seems
278383 [vjoel path.b] Try setting an environment variable RUBYOPT="rubygems" in your system
278449 [Hari pillai.] thanks Joel, it worked.
^ How to edit a file without loading it all into memory
278274 [jdobbie mcad] I need to change the texture paths in maya files. The lines are easy to
+ 278275 [Reid.Thompso] newer versions of sed can replace text in place in files.
+ 278277 [shortcutter ] As you said: do it line by line. This is the usual approach to this
+ 278278 [bbxx789_05ss] File.foreach("data.txt") do |line|
278281 [jdobbie mcad] something obvious? The first one duplicates the lines, and the second
+ 278284 [kyleaschmitt] Err.
| 278285 [kyleaschmitt] mem map. not memap..but you get the idea.
+ 278308 [bbxx789_05ss] 1) Are you under the impression that every method in ruby has the same
^ [ANN] Curl::Multi version 0.1
278289 [kr essembly.] == Announcing Curl::Multi version 0.1 ==
^ [ANN] OpenlySociable Micro 0.0.1 released!
278291 [skyfallsin.m] charset=US-ASCII;
^ Re: Merb-0.4.0
278292 [rogerpack200] does merbe run 'super well' on 1.9? :) Like nicely fast?
278908 [dan-ml dan42] Do you think you could come up with a page showing how Merb is different
278945 [ezmobius gma] Merb borrows quite a bit of conventions from rails but also has it's
278963 [jeremy bitsw] This is a microbenchmark of partial render speed, not a general look
279032 [ezmobius gma] Yeah it is a micro benchmark but will include more and more features
^ odd error
278293 [rogerpack200] irb(main):006:0> {}.merge {:a => 3}
278295 [hutch recurs] Ambiguity I guess.
278306 [celtic sairy] Right. "=>" is the tASSOC that ruby's talking about. Since it thought
^ undefined local variable or method (filling an array)
278304 [hawat.thufir] I've been working on this for quite some time and don't understand the
278307 [bbxx789_05ss] monsters[0] = 10
+ 278309 [bbxx789_05ss] To see that, you can also call the method '[]=' using the normal
+ 278328 [sepp2k googl] monsters = [10]
+ 278390 [hawat.thufir] Gee, it was so weird and frustrating. Thank you all!
^ equivalent injecting implementations?
278310 [transfire gm] Are these strictly equivalent? I get the feeling no, but I haven't
278344 [rick.denatal] I can't see how in general they can be.
278348 [transfire gm] Oh sorry, I meant to put that. These are Enumerable methods.
278358 [rick.denatal] module Enumerable
+ 278362 [shortcutter ] Even if you do use it on an Array the two are not equivalent since the
| 278403 [transfire gm] Ah, that's what I was wondering about. It has to be inplace
+ 278393 [ezmobius gma] injecting is similar to returning in rails. There is a common pattern
| + 278456 [rick.denatal] Yes, I suspected that this was what Trans was trying to do, but since
| | + 278457 [dblack rubyp] How about inject! ? :-)
| | + 278482 [transfire gm] module Enumerable
| | 278514 [rick.denatal] If you mean the same effect as the current inject. NO. This fails for
| | 278536 [transfire gm] No. That's not what I meant. I realize the difference between inject
| + 278463 [phrogz mac.c] [1,2,3].inject({}) { |memo,n| memo.update n=>n }
+ 278401 [transfire gm] Ah. sorry. I missed what you were getting at there. Yea, right off the
^ Help with Leopard
278320 [stallarida g] I am sure this is a basic question but I am having a problem with ruby
278326 [lists kalama] Did you do
278357 [stallarida g] That did the trick. Thanks. I've been coding in ruby for about a year
278376 [mattrose fol] Most Windows implementations I've seen automatically add the rubygems
^ Snippet - assert_yin_yang
278321 [phlip2005 gm] This is a Rails assertion, but any project could use its concept.
^ Is this file locked?
278322 [emarkp soda.] Is there an easy ruby way to tell if a file is locked? I can lock a
^ non-English path problem
278327 [astarah gmai] I've been stumped on this problem for days and I have a feeling that it
+ 278330 [astarah gmai] Okay, I changed my code, but I'm still having the same problem. Here is
| 279535 [yu.ching.tie] Microsoft Windows XP [Version 5.1.2600]
+ 278342 [phasis68 hot] SGksDQotLS0tLSBPcmlnaW5hbCBNZXNzYWdlIC0tLS0tIA0KRnJvbTogIkFtYW5kYSBGYWUiIDxh
^ ANN: Sequel 0.3.4 Released
278332 [ciconia gmai] Sequel version 0.3.4 has just been released. This release includes a
^ Turning a proc into a method?
278334 [celtic sairy] Any ideas on how to convert a proc into a method? Here's an example, but..
278335 [sepp2k googl] Kernel.send(:define_method, :some_name, &self)
278337 [celtic sairy] Exactly! Thank you very much.
^ Thought I'd share my alias
278338 [transfire gm] class Module
282774 [Dymaio gmail] Okay. I'd say shorten
^ yaml error. dunno why
278345 [junkone1 gma] i have a simple yml file and am trying to parse it.
+ 278347 [mguterl gmai] I believe that --- is important, but I'm not sure. Try building your hash
+ 278384 [vjoel path.b] h = YAML.load(<<END)
+ 278396 [celtic sairy] Notice the way "TWSDirectory" and "Second" have the same number of
^ REXML parsing issue
278350 [c_sword hotm] I've used REXML to write both tree and stream parsers for simple xml
278353 [phlip2005 gm] title = REXML::XPath.first(doc, '/HIT/FIELD[ "title" = @name ]').text
278378 [c_sword hotm] Thanks Phlip. That allowed me to get to the first instance in each
278380 [c_sword hotm] Disregard previous post. I was able to work through how to iterate
^ [ANN] cape_town.rb - Inaugural Cape Town Ruby Brigade Meeting
278351 [farrel.lifso] The debut meeting of the Cape Town Ruby Brigade is taking place at
^ the problem i'm facing is to create a libary file with binding to ruby on windows platform
278352 [Matan.Bar gm] i'v checked about pdflib, and the good news are that you are right and
^ The Man or Boy Recursion Test
278354 [wdahn netfro] being new to ruby I try to understand the language. In a different
278392 [TimHunter nc] # Man or boy test
+ 278410 [lloyd 2live4] Nice post, Tim. I tested it and, when it gave the correct answer, I
| 278453 [TimHunter nc] Sweet!
| 278458 [rick.denatal] Right, because b will always be nil here, it's a local variable so
| + 278470 [lloyd 2live4] Since I posted your ruby version, there have been more posts in C,
| | 278496 [TimHunter nc] Well, the Ruby version certainly wins the Man-or-boy-test-golf contest.
| | 278516 [rick.denatal] I was surprised and amused to find that there was already an PL/I
| | 278521 [TimHunter nc] to use the PL/I version of the Man or Boy test to figure out how to code
| | + 278524 [rick.denatal] Sometimes I feel my age.
| | + 278530 [m_goldberg a] Interesting. I used your Ruby version to figure out how to code it in
| | + 278542 [TimHunter nc] Another one for Wikipedia. I guess we owe Werner (the OP) a big "thanks"
| | | 278550 [m_goldberg a] I've posted it there. I like the Smalltalk example also -- very
| | + 278544 [lloyd 2live4] Morton,
| | 278553 [m_goldberg a] I'm glad you fixed it up. That was my first post on Wikipedia. I
| + 278510 [m_goldberg a] def a(k, x1, x2, x3, x4, x5)
+ 278421 [wdahn netfro] Thank you very much! I am impressed.
^ Looking for a Sudoku Algorithm to implement in Ruby
278363 [victor.reyes] Hey,
+ 278368 [ruby-talk lo] Alternatively you could also solve it using constraint programming with
| 278399 [victor.reyes] Thanks to everyone for your suggestions and recommendations.
+ 278375 [hari19 gmail] The following projects on codeproject may give you some ideas..
+ 278391 [kevin.cline ] The Soduku puzzle can be solved in a few seconds by a very simple
^ top-level methods and constants
278364 [fxn hashref.] A couple of questions regarding the top-level environment of execution.
+ 278365 [dblack rubyp] The Pickaxe is right. I believe it got fixed in later printings of
+ 278366 [rick.denatal] def foo
^ why this rake db:migrate error
278367 [noone here.i] I'm getting a rake db:migrate error which I can't understand (newbie).
+ 278370 [rick.denatal] Why is the add_column outside of the up method?
| 278374 [noone here.i] Right you are. Thank you.
+ 278430 [phlip2005 gm] The best forum for Rails questions is Ruby-on-Rails-talk, at Google Groups.
278992 [noone here.i] thank you. I'll check it out.
threads.html
top