228223-245933
228047-229825 subjects 228464-229568
^ ruby / irb don't match up?
228223 [ummaycoc gma] I have the following versions of ruby / irb (from the rubyforge
228225 [ummaycoc gma] I just found this, which might shed light on the situation (the
^ problem running mongrel on win32
228227 [adam.blum gm] mongrel fails to start with the error below on my win32 box (needs
^ problem running mongrel on win32
228228 [adam.blum gm] mongrel fails to start with the error below on my win32 box (needs
^ problem running mongrel on win32
228230 [adam.blum gm] mongrel fails to start with the error below on my win32 box (needs
^ Invoking a Method
228233 [ghotrapa yah] How do i invoke a method in belonging to a module?
+ 228234 [ghotrapa yah] so i think i'm ok for now.
+ 228236 [james graypr] module_function
+ 228241 [danfinnie op] include "SampleModule"
^ RJS/link_to_remote
228247 [stone1549 gm] I'm trying to build an WebFTP application in Rails for some practice.
228248 [stone1549 gm] Sorry, I thought I submitted this in the "Rails" forum. I'll post it
^ Re: Can't sort array
228249 [renard nc.rr] I want to print all the methods in excel OLE object
228257 [chris.hulan ] p m.sort{|a| a.name <=> b.name}
228301 [chen_li3 yah] The line above doesn't work but it will work if change to the follows
228523 [jos catnook.] p m.sort_by {|a| a.name}
^ Tk::ScrollFrame fails on windows
228252 [fkc_email-ne] Wondering if anyone has seen this? The scrollframe.rb sample file exits on windows when I use the horizontal scrollbar, though seems to work fine on X.
228600 [nagai ai.kyu] Hmmm...
^ SAP GUI Automation
228253 [mail chriss-] for my diploma I have to automate the SAP GUI with ruby. So a ruby
^ "Filing out" irb prototyping sessions?
228254 [grettke gmai] It looks like you can use irb as a rapid prototyping environment by
+ 228255 [james graypr] irb
+ 228256 [drbrain segm] require 'rubygems'
^ md5 function in Ruby
228266 [dyakhnenko l] I've been having trouble with Ruby's md5 function... The following code
+ 228268 [dyakhnenko l] I get Application error (Rails) if I try to include the file as
| 228270 [dyakhnenko l] MD5 tools output...
+ 228271 [shyouhei rub] You're on Windows? perhaps you are dancing with text mode...
| 228272 [dyakhnenko l] Yes I am on Windows. Can you please elaborate on that?
| 228278 [rforum gmail] Windows has a notion of "text files" and "binary files"; for the former
+ 228274 [halostatue g] File.read is a bad choice on Windows. It should be avoided if at all
| 228279 [dyakhnenko l] Yup, that did it... thanks.
+ 228276 [vincent.four] For me, on a Linux box, with a random file, it works fine. Are you
+ 228277 [ara.t.howard] maybe only part of your data ??
+ 228281 [no spam.plea] ruby -e 'require "digest/md5"; p Digest::MD5.hexdigest(File.read("C:\\dc.log", "rb"))'
245918 [abonchen gma] I'm transforming a string.
245933 [no.spam plea] You don't need to, it's always a simple binary sequence.
^ Lisp comprehensions => SQL
228273 [vshepelev im] Random idea, just for fun - using "list comprehensions" for SQL queries
+ 228282 [logancapaldo] The ez_where plugin for rails does this.
| 228288 [vshepelev im] Yeah, seems to be close to my proposition.
| + 228302 [logancapaldo] There's a reason for this, see below
| | + 228304 [vshepelev im] Ooops. I was a C++ guy before Ruby. I've just forgotten Ruby has no
| | + 228316 [kbloom gmail] That's not so much of a problem, as one can simply use & (which is
| | 228356 [vshepelev im] Hmm, really. Still my C++-ish habits for "all operators are overloadable" :(
| + 228461 [ezmobius gma] There are quite a few more features in ez-where then the example
+ 228293 [david vallne] I think it has been done verbatim, can't recall the library. Search the
| + 228298 [vshepelev im] Hmm... can't imagine right keywords for search (as "list comprehension"
| + 228315 [kbloom gmail] It already was a ruby quiz. Or at least something close enough to it was.
+ 228305 [khaines enig] A lot of these things are either supported in Kansas, or are in the
| 228307 [vshepelev im] Interesting. But I still don't understand, why to use custom DSL instead of
| 228309 [khaines enig] Actually, you could do that second one with Kansas. With the current
| 228354 [vshepelev im] This is predictable, but not very interesting.
| 228376 [khaines enig] Think about the syntax of it, though.
| 228378 [vshepelev im] It's a matter of philosophy.
| + 228386 [khaines enig] No, my point is that philosophy doesn't matter there, because without some
| | 228392 [vshepelev im] OK, I agree.
| | 228415 [khaines enig] Yep.
| + 228390 [khaines enig] employees.select do |e|
+ 228311 [kbloom gmail] Have you had a look at my SqlStatement library?
| 228355 [vshepelev im] This approach (somethin-like-SQL inside Ruby) is acceptable. But for me, it
+ 228428 [transfire gm] I think Og can already do this, more or less.
^ ie.link(:text, "Next").click
228275 [csamigroup g] I am navigating through web page using WATIR..
+ 228290 [nospam nosit] As others have replied to one of your other posts on this topic, why not
| 228294 [csamigroup g] could you please tell me how I can trap the error in 'rescue'..
| 228325 [nospam nosit] begin
+ 228329 [bpettichord ] if ie.link(:text, "Next").exists?
^ Re: number format
228283 [renard nc.rr] You can use the number.round method, but this doesn't take a number of
228289 [nospam nosit] Second reply to the second copy of this identical post. This is not a good
^ Re: "more than enough rope"
228291 [james.britt ] 1. If you're still not thinking of metaprogramming as a normal
228292 [work ashleym] I've wondered this too after I've written something that looks a bit
+ 228297 [david vallne] My personal take to the when is: Depends, sparingly if in doubt.
+ 228317 [dblack wobbl] Doesn't looking like Ruby for Ruby's sake mean that it's clear,
+ 228324 [collinsj sea] That's hilarious :)
^ Re: smalltalk resources for ruby hackers?
228296 [huw DELTHISB] Practical Smalltalk (shafer and Ritz) and Smalltalk an Introduction (Hopkins
228343 [m.fellinger ] One thing i really like is the GNU Smalltalk implementation, it has a nice
+ 228534 [grettke gmai] Download Dolphin, go through the whole tutorial, and ask questions to
| 228634 [rsanheim gma] The SmallTalk Best Practices by Beck book gets high praise all over
| 229247 [mushfeq.khan] I've read this book and can recommend it highly. I'm a little skeptical of
+ 228637 [igouy yahoo.] -snip-
^ Re: [OT] [ANN] Cerberus 0.3.2 released. Now with Perforce and BJam support.
228299 [david vallne] For some reason, this part makes me suffer a giggle fit. So, is it a
^ Ruby On Rails Opportunties in Sydney
228303 [westonkieran] I am currently looking for a permanent Applications Developer to be
^ Using Mkmf to Verify Libraries
228306 [runner berke] I'm trying to use the 'mkmf' library to determine if a given library is
+ 228320 [djberg96 gma] The last time I hit a similar situation it turned out I didn't have read
+ 228365 [vincent.four] ...
+ 228389 [michel.casab] Same md5 doesn't mean identical.
+ 228433 [runner berke] Daniel and Vince, thanks for the leads. :-)
^ Re: Turtle Graphics (#104)
228318 [demetriusnun] Thanks for pointing that out. I don't even know how all the sample
228333 [m_goldberg a] A bug in Turtle#toward has no effect on reproducing the sample
^ Re: anti-require?
228322 [drbrain segm] There's a few places in Rails where they mean to require 'test/unit/
228326 [rosco roscop] A quick hack that might work, until you get chance to fix it properly. Do
^ Apache and Ruby
228330 [sigsegv prod] New to ruby and apache. Been trying to get a simple ruby script to run
228344 [collinsj sea] Do you have mod_ruby installed?
228351 [sigsegv prod] Thanks for the reply Justin. I fixed my problems with the following lines
228366 [pere.noel la] And u don't need a special folder under your Apache/ROOT folder ?
228368 [collinsj sea] No, you don't have to set it up that way, although it's an option.
228387 [pere.noel la] in the mean time i've installed mod_ruby.
228394 [collinsj sea] My mistake...I'm not much of an expert on this. You will need to add a
+ 228451 [pere.noel la] why did u say it's your mistake ?
+ 228482 [david vallne] A point to note that was lost, it doesn't have to be a special folder,
228537 [pere.noel la] content negociation is doable with Apache 1.3 (default installed version
228548 [david vallne] er.
228553 [pere.noel la] ok fine, i've verified in the mean time, content negociation does exist
^ Re: Turtle Graphics (#104) - Java/Swing Viewer using JRuby
228332 [demetriusnun] Just for fun I implemented a quick and dirty version of
^ ANN:South East Ruby Brigade Meeting
228345 [phurley gmai] South East Ruby Brigade
228447 [phurley gmai] Arrg as someone mentioned to me -- this is South East __Michigan__
^ Possible bug with sqlite3 win32 gem
228346 [daniels pron] I know what I'm about to describe is a rails issue - I've raised a rails
^ (none)
228347 [redarkmagi y] #off=0A=0A=0A =0A__________________________________________________________=
^ Re:
228348 [rsanheim gma] ON!
228350 [rsanheim gma] ruby-talk-ctl@ruby-lang.org
^ (none)
228349 [redarkmagi y] well then, i guess i also cant turn off the ML... =0Aunsubscribe dont work =
^ Newbie: working with a text file and converting to xml
228352 [ateale mac.c] I have a tab-delimited text file that I would like to convert into an
+ 228353 [foamdino gma] look at XMLBuilder and FasterCSV
+ 228357 [peter rubyra] Could you send us 2 example files? I guess the text file format is
+ 228358 [ateale mac.c] Thanks for respoding so quickly!
| + 228360 [nospam nosit] #!/usr/bin/ruby -w
| + 228362 [peter rubyra] Then it should be fine - as far as there are no tabs in the second
| 228393 [ateale mac.c] I saved your code and called it convert.rb. I ran it (replacing
| 228395 [peter rubyra] I guess you are referring to Paul's solution since I did not use any
| 228403 [ateale mac.c] doh! Sorry guys!
| 228404 [peter rubyra] Hmm strange. I have cut'n'pasted this code and the data from your
| 228408 [ateale mac.c] Ah thanks Peter - yes on OSX - you are right, there is something funny
+ 228361 [nospam nosit] I just noticed this. There is no closing tag for the XML header tag. The XML
^ GOLF: hex string to dotted quad
228364 [martindemell] irb(main):021:0> hex_ip = "c0a80167"
+ 228369 [ben iagu.net] irb(main):070:0> [hex_ip.hex].pack('N').unpack('C*').join('.')
+ 228370 [ruby muerman] hex_ip.gsub(/../) {|s| "#{s.hex}."}[0..-2]
| + 228374 [carl carldr.] hex_ip.scan(/../).map{|i|i.hex}*"."
| | 228381 [ruby muerman] Or, based on Carlos' optimisation (and I use the term very loosely in
| | 228385 [carl carldr.] You've broken it :)
| | 228469 [ruby muerman] So I have. I guess I need to start writing unit tests for my golfing
| + 228375 [pit capitain] String#hex is a nice idea.
| + 228377 [angus quovad] hex_ip.gsub(/../) {"#{$&.hex}."}.chop
+ 228373 [angus quovad] ip = [hex_ip].pack("H*").unpack("C*").join(".")
^ Calling super in overwritten methods
228379 [joergd pobox] some serious ruby-fu.
+ 228382 [nospam nosit] No, not without some tortured coding. You have redefined method2 in your
| 228384 [joergd pobox] Ok pity there's no simple Ruby solution to it. I'll just have to rename
| 228820 [david vallne] =20
+ 228397 [gethemant gm] Indeed but sometime back, we had similar discussion here and someone
| + 228402 [pjvleeuwen g] Ok, that qualifies as 'ruby-fu' :)
| + 228406 [joergd pobox] Hmmm ... that doesn't work for me.
| + 228710 [shiwei.zhang] self.class.superclass.instance_method( :knox ).bind( self ).call. It
+ 228431 [transfire gm] Local methods would do the trick. We don't have those. But here's a
+ 228434 [ara.t.howard] class A
+ 228564 [micathom gma] You didn't say if you can change class a if so you should probably
+ 228727 [wizard.rb gm] Hey,
^ join_with
228380 [martindemell] While golfing with the hex_ip thread, I realised that map takes no
+ 228383 [ruby muerman] join_mapped maybe?
+ 228405 [shortcutter ] Hm. I am not convinced this is a good idea at all. Usually the
| 228446 [martindemell] See my reply to Logan - my argument is that often (particularly when
| 228584 [vincent.four] I vote for this function, although the name, join_with, really isn't
| 228585 [martindemell] I've settled on Enumerable#jmap in my personal code - it fits my
| 228588 [shortcutter ] The I'd spent at least three or four more characters - your current
+ 228413 [logancapaldo] hex_ip.scan(/../).map {|i| i.hex}.join('.')
| 228443 [martindemell] I knew someone would say that :)
| 228511 [logancapaldo] I don't see it personally. As far as I am concerned it's two operations.
+ 229466 [nobu ruby-la] Is it what is called "mapconcat" in Emacs Lisp?
+ 229470 [nicksieger g] I think that's what he's talking about, yes.
+ 229508 [martindemell] Yes, just looked it up and it's what I'm talking about. Might adopt
^ Re: Starting XMLRPC server on virtual host returns EADDRNOTAVAIL (solved)
228391 [ruby tschirl] Thanks to you all who have meditated on my problem. I was able to solve
^ Is there any package , library for "Design by Contract"?
228410 [ashkan.rosha] This is my first post here. As you know the "Design by contract"
228412 [logancapaldo] Yep. Check rubyforge, I believe you have multiple options.
^ Default values for method arguments
228414 [pjvleeuwen g] Probably I'm trying something impossible, but when giving default
228416 [james graypr] No, but all the arguments that don't have defaults must come before
228419 [pjvleeuwen g] The Simulated Keyword Arguments you talk about are a little abstract to
+ 228421 [james graypr] My fault, I did not describe them very well. Here are the critical
+ 228423 [kbloom gmail] Try this-- it's more concise, and you probably won't feel the need
+ 228436 [ara.t.howard] but this breaks
+ 228713 [david vallne] def test(args)
^ donations
228418 [hikeeba1 gma] I am, as I'm sure many others are, anxiously awaiting Ruby 2.0 + YARV. I
^ invasive parameters as method mode variables
228422 [transfire gm] Working on a method where I would like one part of it's operations to
+ 228424 [james graypr] My thoughts on your current suggestion: Yuck. You really want this
| 228440 [transfire gm] perhaps. just exploring the idea. certainly Binding.of_caller allows
+ 228427 [ara.t.howard] method + state => object
228439 [transfire gm] good point. though it moves me away from the simplicity of single call.
+ 228448 [shortcutter ] I would have put it differently: command pattern. Your method seems
| 228499 [transfire gm] Sure. But I would think it preferable to just call str.each. Not have
| 228521 [louis.j.scor] Because you commit a gross violation of encapsulation for zero
| + 228522 [sharepointja] These e-mails are becoming invasive. take me off of this list.=0A=0A=0A----=
| + 228530 [transfire gm] The violation is much worse with a global var. With a local var the
| + 228535 [botp delmont] # each(:separator => //)
| | 228733 [transfire gm] quite. it seems matz doesn't care for symobolic paramters of this kind.
| + 228594 [louis.j.scor] You are exactly right: it is _less_ of a violation. However, I think
| 228731 [transfire gm] Well, "perfectly" is certainly overstating but I take you point.
| 228743 [louis.j.scor] Busted. You'll have to forgive me that small rhetorical flourish =)
+ 228484 [david vallne] Callable objects anyone?
^ (none)
228435 [arumkone yah] unsubscribe
^ Difference between nil? vs. (variable != nil)...
228437 [jasonvogel g] if (@product_coverages != nil && @product_coverages.length > 0)
+ 228438 [martindemell] Put in a test print, to see what nil? is returning. It is possible for
| 228459 [mephis1987 g] SWYgeW91IHB1dCB0aG9zZSBzb3VyY2UgaW4gYSBsb29wLCBzb3VyY2UgQiBhbHdheXMgcmV0dXJu
+ 228467 [banshee bans] Is there a particular reason you're comparing to nil? Normally I'd just
| + 228545 [jasonvogel g] I found 'return "" if product_coverage.external_description.nil?' as a
| + 228551 [david vallne] This is Perlish, and there's people (myself included) that don't like
| 228951 [jasonvogel g] I appreciate the advice. I've just being trying to be careful to not
| 228984 [david vallne] Huh? Why not? You should write that a) you can read easily, b) other
+ 229002 [w_a_x_man ya] if @product_coverages != nil
^ variable pointers
228450 [ xyz xyz.com] I have a situation where I'm walking through an unordered sequence of text
+ 228457 [comp.lang.ru] You are thinking in "C", this just doesn't work well in
+ 228641 [shortcutter ] class Foo
^ ruby windows extension printf/scanf crash, but fgetc/fputc ok
228456 [ummaycoc gma] Greetings,
^ Low Vision Stylesheet for Ruby-Lang
228462 [ng johnwlong] Hugh Sasse has been working with the Ruby Visual Identity Team to
228477 [m_goldberg a] I suffer from impaired vision, so I'd like to try out the Low Vision
228480 [ng johnwlong] I haven't been able to use it in Safari. We may eventually rig up a way
^ Installing shared object library into non-standard directory
228463 [joevandyk gm] I have ruby-gnome2 installed into a subdirectory of my application.
228465 [joevandyk gm] LD_LIBRARY_PATH is set to include the
228592 [kou cozmixng] In <c715e640612061220h3c0ea37yfb0f169ad4b1ae82@mail.gmail.com>
threads.html
top