171893-178464

171758-176148 subjects 172049-173969

^ How can I get soap4r to work with digest authentication?
171893 [yonatan_avra] I used wsdl2rb.rb to create a SOAP client and got it to work with basic
172500 [yonatan_avra] Security alert:  Don't use my code as-is!  I checked with a sniffer and
172556 [yonatan_avra] I fixed the problem of always sending the password in the clear by
178464 [nakahiro sar] Sorry I couldn't reply sooner.

^ Scarce Resources (was: Bruce Eckel and Ruby)
171901 [hutch recurs] This is an interesting point that deserves some consideration. This

^ Nitro + Og 0.26.0: New auto admin, scaffolding, morphing, sweeper, revisable, searchable
171906 [george.mosch] Dear devs,

^ ruby videos
171908 [doctlo-usene] Aside from the Rails demo, are there any ruby videos online?
+ 171911 [james graypr] Some Nitro/Og videos now, but I'm not aware of any generic Ruby videos.
| + 171912 [george.mosch] more to follow...
| + 171913 [dandiebolt y] what screencast software is available for making these?
| | + 171917 [james graypr] I use Snapz Pro X, on Mac OS X.
| | | 171923 [f andreas-s.] vnc2swf seems to produce much smaller files.
| | | + 171938 [mictro gmail] Hoi
| | | + 171967 [rodrigo.berm] Amazing !
| | + 171924 [james_b neur] I've used Microsoft's Media Encoder.  Free, good results, easy to use.
| |   171934 [dandiebolt y] Here is a bunch of screencast packages: http://en.wikipedia.org/wiki/Screencast
| + 171931 [pat.eyler gm] I've started playing with screencasts, and have put a short video up
|   171957 [james graypr] I think this is great stuff, though we probably want content with
+ 171958 [Bil.Kleb NAS] I have a feeling I don't fully understand your question
| 172072 [doctlo-usene] I'm not sure. I was thinking more of the Ruby on Rails tutorial or of
| 172114 [Bil.Kleb NAS] Agreed; things are fragmented: Ezra has the audio and videos[1],
+ 172775 [jeffrey.dik ] I personally thought the RubyZilla

^ Key-mapping
171909 [gunnar.larss] I know this is not a Ruby thing, but I try anyhow.
171977 [leavengood g] That functionality is provided by the readline library, which I don't
171994 [gunnar.larss] Ryan

^ Re: RRobots (#59)
171915 [voxvam shaw.] Oh, that's cool.

^ OT: Mac configuration
171918 [tim collecti] I am switching from Windows to Mac specifically for Ruby development.
+ 171930 [cyclists nc.] I've been very (make that _extraordinarily_) happy with my 15" G4
| 171952 [rdm cfcl.com] Actually, the XCode package contains lots more than
| 172335 [groups grand] Agreed. LOTS of little tools and widgets get installed. GetFile and
+ 171965 [penryu saiyi] The dev tools include Xcode, gcc4, an X server that works well
  171978 [logancapaldo] charset=US-ASCII;
  171988 [penryu saiyi] penryu@kotoko:~>% type -a ruby
  172258 [tim collecti] Thanks for all the info.  New Mac arrives next week!
  172301 [jrjung gmail] I like using either...

^ Hash Keys in WEBrick config.rb
171922 [explosiv0SX ] While searching for Ruby app configuration best practices, I came
171932 [phurley gmai] Largely a matter of style - plus you have to type one less letter :-)

^ Looking for better Ruby/Tk references...
171926 [chris.dagnon] ... or better GUI APIs for Ruby.
+ 171963 [zhengyi anar] ... well, without stepping into that minefield...
| 171997 [chris.dagnon] That is a much better reference than what I've found so far - gives both
| 175523 [rubytalk gma] I am working with tk to, and i find it hard to work with the examples i
| 175555 [nagai ai.kyu] Did you see the sample "ext/tk/sample/tkcombobox.rb" on
| 175597 [rubytalk gma] My example does not do anything so i probably skipped over it. Its like the
+ 175615 [cameron.math] Gtk can be used w/ glade (it works wonderfully for me).  I'm not sure

^ signing a gem package
171942 [beeplove gma] I would like to sign my gem package that I am going to distribute soon.
171968 [pabs pablotr] I had hoped some sort of Rubygems public key infrastructure (PKI) would

^ Why not Python? (No, no, I am not a spy)
171943 [tolgacavdar ] First of all and very first of all, I must state that I am not an enemy
+ 171945 [pat.eyler gm] Well, there has already been a lot of discussion around this.  To me it
+ 171947 [jeff.darklig] #2
+ 171950 [halostatue g] Whichever one makes you happier.
| 171974 [logancapaldo] charset=US-ASCII;
| 171984 [halostatue g] Sure, I guess ;)
+ 171951 [james_b neur] Pick the language that makes you happy, that best fits your brain while
+ 171959 [steffen gnuh] What exactly did make you feel happy?
| 171975 [slitt earthl] What makes me happy about Python is subordination by indentation.
| 172221 [rcs bgoark.n] Sorry, but the indentation feature of Python (along with the mandatory
| + 172225 [ryansobol gm] Excuse my newbi-ness, but isn't that "self rule" for class methods
| | + 172240 [binary42 gma] OR
| | | 172244 [dblack wobbl] class A
| | | 172248 [gene.tani gm] let's not forget
| | | 172250 [dblack wobbl] Oh, let's :-)  I really wish :: as a synonym for the dot would
| | | 172251 [gene.tani gm] if "::" is used exclusively for class constants, i guess it's slightly
| | | 172434 [dblack wobbl] For constant lookup it seems perfectly fine.  I just don't know what
| | + 172272 [jeff.darklig] Actually, no.
| + 172317 [w3gat nwlaga] Three years ago I wanted to put all of the medical records of my office
+ 171960 [oliver.andri] Well, I have been using Python a lot for a long time, and I guess I will
| 172084 [krishna.vive] I am not really experienced in python but somehow the  whitespace
| 172120 [jim freeze.o] I've heard this mentioned and assume it is true, but maybe the Python
+ 171966 [rcoder gmail] Tolga,
| 171986 [tolgacavdar ] Thank you all for your replies. I think, I've learned how to find my
+ 171971 [ptkwt aracne] We have similar interests, I think.  I've used Ruby for programming various
+ 172129 [pauldacus gm] I actually recently tried to pick up Python, by reading 'Dive Into
+ 172131 [gene.tani gm] I don't have much to add, you can google for 750 k hits for "ruby vs
| + 172133 [gene.tani gm] ...
| | 172143 [jeff.darklig] Yep, that is a great link.
| + 172144 [slitt earthl] If you read between the lines in this thread, you notice that only
|   + 172146 [jeff.darklig] Actually, the one comparison that gets touched on a bit too lightly ... is
|   | + 172291 [chneukirchen] I'd be really curious about what you asked there. :-)
|   | | 172312 [jeff.darklig] ... I believe the question was in regards to implementing factorial in a
|   | | 172344 [chneukirchen] I see, the iterative version at
|   | | 172347 [jeff.darklig] ah, but to me that isn't completely iterative.... iterative is using a loop
|   | | + 172348 [jeff.darklig] heh, darn, bug there ...
|   | | | 172353 [flori nixe.p] return 1 if x <= 1
|   | | + 172350 [lukfugl gmai] def factorial( x )
|   | | | 172354 [jeff.darklig] uh, yeah, that's what I meant ... darn'd quickie code always bites me in th=
|   | | + 172432 [chneukirchen] There are no loops in Scheme.  (while is syntactic sugar.)
|   | + 172297 [greg.kujawa ] I agree. After communicating in various communities I have found Ruby
|   |   172313 [jeff.darklig] As long as we haven't already gathered up all of the nice people, I don't
|   + 172461 [snail objmed] <slitt@earthlink.net> writes
+ 172198 [martindemell] Whenever I'm asked for a one-word answer to why I prefer Ruby to Python,

^ [OT] Re: How do I do this in ruby?
171949 [pabs pablotr] List-Unsubscribe: <mailto:ruby-talk-ctl@ruby-lang.org?body=3Dunsubscribe>

^ Re: Regular expression question
171961 [rosco roscop] Your problem is that '*' is greedy so it'll match as many 'any characters'
172090 [bob.news gmx] => "  rows = 10  cols = 1  occupied cells = 0"
172101 [rosco roscop] Ahh, much better. Another KISS reminder gets it's own page (again) in my
172108 [narf968 gmai] I've been using this idiom recently.

^ [OT] Guido van Rossum to work for Google
171973 [lyle.johnson] Arguably off-topic for this list, but it will be of interest to some of you. ;)
+ 171989 [florgro gmai] I wonder when they will add trypython to the Google search box... :)
+ 171995 [james_b neur] Ah, nice.
+ 171996 [acangiano gm] Guido and Alex in the same office... not bad! :-)
+ 172154 [ilias lazari] ...
+ 172157 [perrin apoth] I'm not sure why, but the first thing that came to my mind when I saw

^ move to front of array
171976 [payton foolo] I have an array of Strings, and I'd like to find one of the items by
+ 171979 [flori nixe.p] require 'enumerator'
| 171985 [dandiebolt y] array1 = %w(a B c d Cool e f G)
| 171992 [lukfugl gmai] array = %w(a B c d Cool e f G)
| 172002 [dandiebolt y] condition),
| 172008 [lukfugl gmai] Yeah, I realized that as I was working through my variation, but never
| 172045 [daniels pron] While flatten might be acceptable for this usecase, be aware that if you
+ 171980 [lukfugl gmai] array = %w(a B c d Cool e f G)
| 171993 [djberg96 gma] array.unshift(array.delete("Cool"))
+ 171982 [logancapaldo] I don't know about shorter but...
+ 171983 [ruby-forum-r] array.unshift(array.delete(array.grep(/cool/i).first))
+ 171990 [rosco roscop] (ary - [t = ary.detect { |$_| ~/cool/i }]).unshift(t)
+ 171991 [ezmobius gma] array.unshift(array.delete_at(array.index("Cool")))
| + 172001 [rosco roscop] ([ary[ary.index("Cool")]] + ary).uniq
| + 172212 [rm_rails che] array.sort_by{|x| x=~/cool/i ? 0 : 1}
|   172220 [twifkak comc] +1
+ 172063 [twifkak comc] I'm going to do something controversial and suggestion a completely
  + 172093 [SimonKroeger] No inject solution?
  | 172094 [dandiebolt y] I like it! I used to puzzle over why they named it "inject" but then I realized that injection is like mainlining a variable through each element of an enum. The injected variable is often used as some type of accumulator but this convention is not necessary; the injected variable can be used for any purpose.
  + 172121 [payton foolo] Just for the sake of completeness, here is Devin's suggestion, with

^ Ruby and Wacom Tablets (digitizing tablets) for sketch input
171981 [gabe.johnson] Does anybody have experience using Ruby and digitizing tablets such as

^ Odd behavior of String#scan
172000 [warrenbrown ] First off, the problem I am trying to solve can be simplified down
172003 [bob_showalte] 'abcSTARTdef,ghi,jkl,ENDmno'.match(/START(.*)END/)[1].split(',')
+ 172005 [Daniel.Berge] I don't think it's possible without lookbehind assertions.  Maybe
+ 172009 [dandiebolt y] Will this do?
  172039 [daniels pron] s="abcSTARTdef,ghi,jkl,ENDmno"
  172048 [florgro gmai] s[/START(.*?)END/, 1].split(",") # :)

^ More "Ruby for Java developers"
172004 [tom infoethe] It's pointing out various nifty things about Ruby for those Java
172273 [malte__ gmx-] But apart from that, of course, it's always nice to see people understanding
172338 [joevandyk gm] Ruby has lots of brackets and braces.  And you can use semi-colons.
172433 [malte__ gmx-] Yea - that's why I quoted the above sentence. ;-)

^ String > Integer Conversion Problem
172010 [matthew fead] Retro thanks to all who helped me with my last post.  I'm certainly more
+ 172015 [james graypr] if ARGV.all? { |n| n =~ /\A\d+\Z/ }
| 172023 [joevandyk gm] Neat, didn't know about Enumerable#all? or about Integer().
| 172104 [dhinz eng.mc] I see really two things happening here, string->int conversions and
+ 172020 [joevandyk gm] require 'test/unit'
| 172021 [joevandyk gm] def process_command_line_arguments args
+ 172022 [cyclists nc.] The Integer() method raises ArgumentError if given an empty,
| 172029 [lukfugl gmai] begin
| + 172042 [cyclists nc.] When the arguments to Integer are strings from the command line, yes. In
| | 172043 [lukfugl gmai] True, but I *was* referring specifically to the command line; vis the
| + 172061 [james graypr] Yeah, that's better.  Neither of our versions checks the number of
|   + 172062 [ryansobol gm] charset=US-ASCII;
|   | 172064 [blargity gma] irb(main):001:0> one, two = 3, 4
|   + 172095 [rosco roscop] I'm just wondering, in Java it's a bit of a no-no using exceptions like
|     172107 [justin.w.smi] I disagree that this particular use of an exception would be a no-no in
|     172116 [rosco roscop] Agreed, I was referring more to the idea of swapping out flow control for
|     172119 [dblack wobbl] I agree in general, although... there's one case where I can't resist,
|     + 172128 [vjoel path.b] This has the unfortunate side effect of conflating NoMethodErrors that
|     | 172139 [dblack wobbl] [Did I really indent by only 1?  It must have been early in the
|     | 172147 [lukfugl gmai] class Exception
|     | 172152 [matthew fead] First, thanks all very much for the lively discussion thus far.  It's
|     | + 172158 [rosco roscop] It's not specific to any language.
|     | + 172165 [cyclists nc.] That would be because Integer is never called. If there are no
|     | | 172181 [matthew fead] That makes perfect sense.  Thanks.
|     | | + 172184 [matthew fead] How 'bout corrected first?  Guess my last post is a perfect argument in
|     | | + 172186 [lukfugl gmai] def read_arguments
|     | |   172193 [matthew fead] Very nice.  I like this construction.  However, I believe the above will
|     | |   172210 [joevandyk gm] Write the damn tests, man!  :-)
|     | + 172177 [joevandyk gm] the / characters indidicate that whatever is between them is a regular
|     + 172135 [rosco roscop] Good point. Now you mention that, I think I'd probably end up going for
+ 172032 [dblack wobbl] require 'scanf'
| 172036 [rosco roscop] Me too. I'm definitely getting tunnel vision on the core doc, and ignoring
+ 172137 [rjseagraves ] What about something like
  172140 [cyclists nc.] It will fail for "012" as well.

^ Problem with regex using mx flags
172018 [dan dankohn.] Could you please take a look at this regex (line 52) that's just
172017 [dan dankohn.] Sorry, that was silly.  I was using m.match when I needed s.scan.

^ Regex: Up for a challenge?
172019 [basi_lio hot] Just having an outstandingly hard time to even come close to being able
+ 172025 [rosco roscop] Maybe these are a bit naive, but they seem to (?) work for the tests I
| + 172028 [rosco roscop] Except of course, they match the empty string :P
| + 172060 [basi_lio hot] Thanks for your suggestion. I'm checking it right now for under/over
+ 172027 [rdm cfcl.com] My first cut at the problem would be to
| 172058 [basi_lio hot] Speed is not an issue at this point. As you say, just get it working
+ 172070 [mreed theree] You need to use alternatives to handle the nonempty constraint.

^ unit tests == ugly code?
172024 [joevandyk gm] I've found that when I write the tests first, and then write the code,
+ 172026 [jim.mcmaster] As soon as the code passes the test, you should look for opportunities to
+ 172031 [ruby-forum-r] make it work, then implement a proper design and prettify.
| 172066 [slitt earthl] I cannot in a million years imagine coding without design. I've
| + 172081 [ruby-ml magi] Heh, of course you need to have *some* idea of what you are
| + 172082 [james_b neur] I tend to sketch first, doodling out the initial pass at an app, trying
| + 172174 [joevandyk gm] Oh, I spend a lot of time on class designs (and how the various
| + 172304 [johnwilger g] Neither can I -- which is precisely why I never write my classes
|   172310 [slitt earthl] How does coding your tests first affect your enjoyment of coding?
+ 172034 [vanweerd gma] That's interesting.
+ 172044 [clr8.randomu] How many tests/day do 'you' pass? ;-)
+ 172054 [twifkak comc] Actually, my biggest problem for a long time was ugly *tests* (mostly
+ 172056 [adam.s covad] You have to remember that TDD was popularized by eXtreme Programming,
+ 172110 [Bil.Kleb NAS] You've got the order right, you've just forgotten

^ ActiveRecord.Base#save broken after 1.0 upgrade
172030 [stevenbristo] I have several models which all have has_and_belongs_to_many
+ 172035 [ruby-forum-r] Also, if possible, include relevants parts of your code
+ 172041 [alchen vt.ed] Alpha Chen
  172046 [stevenbristo] THANK YOU!!!

^ sprintf
172033 [mictro gmail] irb(main):004:0> sprintf("%2s", "lalaa")
+ 172037 [daniels pron] Reading comprehension? =)
| 172050 [dave burt.id] sprintf("%i", 1212 % 10**2)  #=> "12"  # modular arithmetic to truncate high
| 172051 [mictro gmail] re=20
+ 172038 [flori nixe.p] sprintf("%10.2s", "lalaa")     # => "        la"
  172040 [mictro gmail] =20

^ Accessing request's raw_header from within a crontroller?
172047 [philippelang] Is that something possible, i've been trying to get to the RAW headers
threads.html
top