314087-349572
313919-316097 subjects 314261-345254
^ [ANN] POG 1.1
314087 [twarlick gma] POG - Password Operations Gem Version 1.1 Released
^ [ANN] Grammar 0.8
314089 [eric.mahurin] Since I was giving a presentation about Grammar at the Lonestar Ruby
+ 314139 [eric.mahurin] Here is a benchmark for parsing JSON (JSON->ruby). "size" is the size of
+ 314180 [ara.t.howard] i look forward to using this - looks like a very nice piece of work!
314268 [eric.mahurin] Thanks!
^ find a button using mechanize
314090 [chen_li3 yah] I wonder how I find a button in a page(buttons
314116 [etaern yahoo] my_form = nil
314117 [etaern yahoo] throw FoundForm
314126 [chen_li3 yah] I follow your script but it prints out nothing. I guess the inner loop
+ 314163 [etaern yahoo] Could you please post the link to the site so that I might see where the
+ 314164 [etaern yahoo] You must have missed my update on that method , if you're using the code
314167 [chen_li3 yah] Lex,
314185 [etaern yahoo] Li , I wouldn't try to find a form by searching after it's button .
314233 [chen_li3 yah] Thank you very much.
314253 [etaern yahoo] Li , please post examples . What is it you want to extract ? From what
314258 [chen_li3 yah] I need to 1) extract the definition of 'abucus'(see the following) from
314274 [etaern yahoo] Li , here is the script that downloads the wav file . It's kinda late
314348 [chen_li3 yah] Thank you very much for the codes.
314481 [chen_li3 yah] I run your script and download a wav file of 'abacus'. I find that I
314482 [martindemell] Compare the two files and see if they are the same. The site might
314486 [chen_li3 yah] The file downloaded directly is about 9 kb and the one using script is
314487 [martindemell] It's probably not the wav file, then. Does opening it up in notepad
314488 [chen_li3 yah] The one downloaded directly is a binary file and the one using script is
314490 [martindemell] wgetting the href displayed works, so I'm guessing it's the call to
314493 [chen_li3 yah] Now the wav file can be played properly.
^ while loop : execute code and THEN check condition
314094 [adamtemporar] Im sure this was possible in C but in ruby i couldnt find something
+ 314095 [vjoel path.b] begin
+ 314096 [phasis gmail] begin
+ 314124 [robert.dober] Although
^ how to change ASCI to Hex
314098 [fzzqd hotmai] I want to change ASCI to Hex,which i receive in the UDPSocket,but it
314100 [vjoel path.b] s.unpack("C")[0]
314103 [artonx yahoo] vjoel@path.berkeley.edu, ruby-talk@ruby-lang.org (ruby-talk ML)
314105 [vjoel path.b] True, but that's what the OP tried and got an error. Perhaps OP's ruby
314108 [artonx yahoo] vjoel@path.berkeley.edu, ruby-talk@ruby-lang.org (ruby-talk ML)
314110 [fzzqd hotmai] thanks for answering
+ 314112 [artonx yahoo] fzzqd@hotmail.com, ruby-talk@ruby-lang.org (ruby-talk ML)
+ 314113 [phasis gmail] s.unpack('H*')
314123 [fzzqd hotmai] thanks for all~~~~~~~
^ (none)
314104 [tomi.zeev gm] unsubscribe
^ Open3 : tcgetattr: Inappropriate ioctl for device
314111 [unbewusst.se] I'm using Open3 to simulate a pseudo-terminal connection with ssh.
^ [ANN] Ruby-GNOME2 0.17.0
314119 [kou cozmixng] The Ruby-GNOME2 project project has been released
^ How to telnet to a host?
314122 [youhaodeyi g] I use this code to telnet to a Windows Xp machine.
314125 [youhaodeyi g] I know what wrong with these code. It is because the password prompt is
^ "gem install mysql" failing horribly on OS X leaopard
314127 [biot023 gmai] Leopard machine.
314131 [frederick.ch] This appears to be the key bit: you're asking for an i386 executable
+ 314135 [biot023 gmai] Cheers for that -- could it be I have installed the wrong version of
+ 333680 [bulbous gmai] I did this, and my libmysqlclient.dylib was i386 -- but I noticed the
^ Re: RMagick problem
314129 [yzheng taiho] thanks
^ #to_self
314130 [transfire gm] module Grumpy
314132 [matz ruby-la] Have you tried? It won't work.
314138 [transfire gm] Doh! I made that adjustment on the fly thinking it was equivalent.
314143 [stephen.celi] self.to_self(self.to_s.upcase + '!!!!!!!!!')
314145 [transfire gm] Ah, that helps me "cleanest" my thoughts. It occurs to me that while
314282 [nobu ruby-la] Why not just override Symbol#grumpy?
314289 [transfire gm] Easy enough when you have one method. No fun with 20+.
^ regular expression match and exclude
314133 [pteale gmail] I am parsing a web page full of image links that also contain links to
+ 314144 [jgabrielygal] If you have all the links in an array, I would do the opposite: match
| 314149 [pteale gmail] The array is created when i use the scan method so if i used reject it
| + 314152 [shortcutter ] Will be hard. It's easier if you do
| | 314159 [pteale gmail] I should mention that image isn't a fixed word in this case I just used
| | 314162 [AEtzold gmx.] Dear Azalar,
| | 314166 [shortcutter ] Negative lookahead *is* supported by that (and earlier) version.
| + 314171 [botp delmont] RnJvbTogQXphbGFyIC0tLSBbbWFpbHRvOnB0ZWFsZUBnbWFpbC5jb21dIA0KIyBUaGUgYXJyYXkg
| 314236 [vikkous gmai] pg"]
| 314239 [shortcutter ] jpg"]
+ 314178 [patrick.he g] irb(main):022:0> imgs.each do |s|
| 314237 [shortcutter ] Good idea! But
+ 314232 [vikkous gmai] Using Reg, my DSL for declarative programming in ruby, you can use the
^ introduction to ruby video available from osbootcamp.org
314137 [osbootcamp g] Open Source Bootcamp (osbootcamp) teaches skills with open source. We
^ Re: Equation Graphing (#176)
314141 [jesse.r.brow] I went for style points. :)
^ Re: Ruby-GNOME2 0.17.0
314146 [rollingwoods] Good news...
^ watir help in clearing security warnings
314147 [junkone1 gma] my watir script works till it hits this security warning and get
^ I have been looking at this little anomoly ?A => 65
314148 [keeperotphon] I know that the reverse is 65.chr
+ 314150 [shortcutter ] Try hi.each {|l| p [l, l.class]} to see why it does not work.
+ 314153 [stephen.celi] Look at the documentation for String#each, String#each_byte, and
+ 314155 [tpreal gmail] You're trying something completely wrong here. The ? is only a compiler
314158 [keeperotphon] Thank you. I did understand that the ?letter was actually taking the 'l'
^ CGI unescapeHTML to escape code '&# 8211;'
314151 [shashank_hi ] I'm reading an XML file that has the html codes for hyphens and stuff
314160 [AEtzold gmx.] Dear Shashank,
314484 [shashank_hi ] Thanks, this is what I was looking for. :-)
^ [ANN] assert_latest now takes "polygamous" arguments
314170 [phlip2005 gm] t, fz = assert_latest T2, Foo do
^ convert ascii codes in a string to a string of characters
314172 [cleesmith200] Is there a more efficient way to convert a string such as
+ 314176 [botp delmont] # Is there a more efficient way to convert a string such as
+ 314222 [cmsdew googl] Have you looked at http://www.zenspider.com/ZSS/Products/RubyInline/ ?
+ 314249 [ruby thomasz] ...
^ Telnet client
314173 [youhaodeyi g] want to change a user name or telnet to other host. I found all these
+ 314220 [B.Candler po] I am having to guess here, but I imagine that tn is an instance of a
| 314221 [B.Candler po] One more point: that should say "c = STDIN.gets" for an interactive program.
| 314326 [B.Candler po] Hmm, I think someone said the gateway to ruby-forum was broken - is that
+ 314292 [youhaodeyi g] Can anybody help me on this? Is there a problem with "gets"? I changed
314331 [b.candler po] However there appears to be a problem with the gateway to ruby-forum.
314336 [james graypr] Hopefully that means that I fixed the other gateway. :)
^ Ruby tailcall optimizes?
314175 [circularfunc] Hmm this was a nice surprise. it seems Ruby does tailcall-
+ 314174 [circularfunc] wow this was nice and elegant and i can even call it with fac 5 withou
+ 314214 [shortcutter ] It doesn't.
^ idiomatic?
314177 [circularfunc] which is more idiomatic? amazing how similar ruby and python are.
314201 [joost zeekat] "Everything, including primitive data types like strings and integers,
314204 [richardjharr] Not sure what you mean, but one small example is that in Python, you
^ Good shipping library?
314179 [bjohnson bin] I've been doing a lot of searches and research. I need a library that
314212 [peter.fitzgi] If you build it... they will come.
^ Newb question
314181 [ron.green gm] Why does this
+ 314182 [pilz osp-dd.] Try
+ 314183 [dave pragpro] The loop outputs 0, 1, and 2.
| 314184 [ron.green gm] But why is it incrementing?
| + 314186 [dave pragpro] Because you asked it to?
| + 314193 [martindemell] It's not. n.times {|i| ... } calls the block with values from 0 to
+ 314191 [martindemell] a = 3.times {|i| puts i}
+ 314227 [lloyd 2live4] ar = Array.new
^ Sort date array without using ruby's built-in date class
314187 [colasli gmai] Say for instance I have an array of dates in string format
+ 314189 [etaern yahoo] you should split each string on / and then make the comparisons , in
+ 314190 [jgabrielygal] Is there any reason you don't want to use the Date class?
314200 [colasli gmai] It's for an assignment where we have to manipulate some dates without
^ Hash custom sort? Overriding <=>? Help!
314188 [jarrett blin] This is a pretty ugly hash. The keys are objects. I'm afraid after going
314192 [dblack rubyp] Sorting and grouping aren't the same thing, but if you want grouping
314276 [jarrett blin] Thanks for the response david! Unfortunately, I don't think this is what
314332 [shortcutter ] Why can't you do
^ PDF::Writer - measure size of a section before rendering it?
314198 [toastkid.wil] I'm using the PDF::Writer plugin and have got everything that i wanted
314206 [toastkid.wil] I'm a dumbass...for approach 2, i just need to make a new PDF::Writer
349545 [taelor co-ha] Hey man, this is what I did. If you can extend PDF::Writer that class or
349572 [toastkid.wil] Thanks a lot for that.
^ FileUtils.chdir thread safety
314199 [tiberiu.moto] I'm getting this error: "warning: conflicting chdir during another
314205 [charles.nutt] No, it calls the posix function to change the dir of the current
314285 [tiberiu.moto] Darn it! It would seem like a good idea.
314328 [shortcutter ] I am not convinced yet. Think about typical scenarios where one
314360 [charles.nutt] There's no reason threads couldn't inherit a reference to their parent
+ 314363 [vjoel path.b] So in the case of
| 314365 [ara.t.howard] this is already true. if you do
| + 314368 [vjoel path.b] I meant that system calls need to be aware of the current thread's own
| + 314392 [charles.nutt] JRuby already supports multiple cwd in the same process by doing exactly
| 314396 [ara.t.howard] people seem to think so. i always use expand_path, but it would be a
| 314400 [charles.nutt] There are already such things in JRuby, like the 'jruby' library you can
| 314403 [ara.t.howard] cool.
+ 314418 [shortcutter ] What does inheriting change about my argument? Even with inheriting
314433 [hramrach cen] Yes, thread-local chdir sort of breaks some traditional semantics.
314436 [shortcutter ] This is a good option. It also carries potential for subtle bugs if
314507 [charles.nutt] I figured Thread.chdir would only operate on the current thread either
+ 314526 [shortcutter ] Yep, good point!
+ 314570 [hramrach cen] If you allow global chdir that's technically chnging the cwd for other threads.
314643 [charles.nutt] Changing it on thread switch would probably be necessary for MRI, but
314655 [charles.nutt] Actually I suppose there is a way; have all process launches acquire a
^ Hash auto-true ({:a} == {:a => true})
314202 [woody.peters] I have a unix-inspired desire to pass arguments to a method where some
314203 [jcoglan goog] 2008/9/8 Woody Peterson <woody.peterson@gmail.com>
314207 [woody.peters] Yeah, that all would work pretty well. I think the restriction that
314208 [jcoglan goog] Far as I know, the *args is part of Ruby's syntax, it's not a method that
314209 [jcoglan goog] module Enumerable
314210 [woody.peters] That's pretty cool. I was thinking something similar, but got stuck on
314211 [woody.peters] err, following your examlpe, my_method("arg1", "arg2", :flag => true,
^ Problems with Restful resources with the same name
314215 [thelucster g] I am trying to setup an application that has a management section and a
^ why :include?
314216 [gani_chinta ] What is the use of :include in finding the results..
314218 [btricha gmai] ...
314219 [gani_chinta ] Thank you sir
^ jordan shoes
314217 [huangcba4 gm] our website : www.sourcesoso.com
^ Single backslash in a string. How??
314223 [rafa.viana g] Is it possible to have a string with a single backslash?
+ 314225 [gani_chinta ] use double quotes don't use single quotes man
+ 314226 [lloyd 2live4] Indeed.
| 314228 [rafa.viana g] need the values "\d" and "\l" on the strings. I need to be able to
| + 314229 [damnbigman g] If you are searching for the literal \d string then "\\d" is what you want.
| + 314230 [lloyd 2live4] How about posting the actual code you use to get the bad result and what
| 314243 [rafa.viana g] The problem is simple
| + 314245 [sepp2k googl] What is the value "\d"? If your answer is "a (literal) backslash, followed by
| + 314246 [damnbigman g] Again we need clarification. Are you trying to match a decimal value i.e.
+ 314231 [bill.walton ] I can't reproduce your results exactly, but I think I can explain what
+ 314408 [Rob AgileCon] I just have to point out (since I don't think anyone else did) that
^ Oniguruma question
314224 [kenneth.m.mc] For those adventurous souls who are already using Oniguruma...
+ 314234 [shortcutter ] Your reasoning about ".+" is wrong. Non greedy matching does only mean
| 314263 [kenneth.m.mc] I'm writing a library to make re's easier to use :-) This is in the
| 314298 [shortcutter ] This one won't match after "aa". Instead it will match "aa". I do not
| 314345 [kenneth.m.mc] It was part of a unit testing suite. I did figure out where I was
+ 314290 [perrin apoth] =20
314291 [kenneth.m.mc] 'Cause I'm a Ruby newbie who's still learning this stuff :-)
314296 [perrin apoth] Ah! I understand.
^ "Pointer" to an object? (i.e. reflect changes to original)
314235 [41mortimer g] I've already made a post similar to this on the Rails list, so I
+ 314242 [dblack rubyp] Assignment means breaking the binding between the identifier and the
+ 314257 [calamitates ] def p.primary_email
^ can not use AR to save french and japanese
314238 [lanwen.bangb] i had a strange problem that i can not use ActiveRecord to save french
^ [ANN] Mack Framework 0.7.1
314241 [markykang-ru] The distributed web application framework has reached version 0.7.1.
^ [ANN] Ruby Manor: Now with less vapour
314248 [murray.steel] About a month or so ago, James Adam and I announced Ruby Manor. We've not
^ [ANN/ADV] "Scripted GUI Testing with Ruby" book
314250 [undees gmail] Been meaning to post this here, and the one-month milestone seems as
^ [ANN] rutema 0.9.0 Released
314251 [damphyr free] rutema version 0.9.0 has been released!
^ Re: "Pointer" to an object? (i.e. reflect changes to origina
314252 [41mortimer g] Okay, but...well, I'll comment more on this in a minute.
314255 [dblack rubyp] It's a radical change because it adds a completely new axis to the
314265 [41mortimer g] Peter,
+ 314275 [41mortimer g] Impressive. It works exactly as it should. Both lambda and proc work
+ 314283 [dblack rubyp] Yes; the lambda carries its local scope with it, so wherever it's
314330 [B.Candler po] Not exactly.
314333 [dblack rubyp] I think the statement as written is correct: lambda and proc are the
^ soap4r - where to get it ?!
314254 [mailforgilbe] need soap4r + httpclient to access a microsoft
+ 314256 [mailforgilbe] OK, gem install ... worked as root
| 314266 [ m t.u] have th time to have a deeper look at it, but it may be worth a try.
| + 314267 [mailforgilbe] OK, thanks, somehow didn't see the rubyforge link
| + 314269 [mailforgilbe] OK, thanks, somehow didn't see the rubyforge link
| + 314270 [mailforgilbe] OK, thanks, somehow didn't see the rubyforge link
+ 314259 [ruby thomasz] not 404... site seems to be down right now. Try
314271 [mailforgilbe] Ok, thanks, that works.
314312 [ m r.co] yes.
^ Is this a sensible implementation for Array#group_by ?
314260 [toastkid.wil] I was looking for a method to split an array into smaller arrays based
314264 [adam.shelly ] It seems sensible to me, although I'd use a hash instead of a
+ 314277 [s.korteling ] (...)>
| 314305 [toastkid.wil] ah...we're still on 1.8.6 round these parts. We need to change up
+ 314304 [toastkid.wil] I thought about a hash first, but for some reason shied away from a hash
+ 314306 [erikveen gma] Indeed, Facets does have an Enumerable#group_by. And it has an
314309 [toastkid.wil] Facets - investigates again... now that is *very* good indeed. Wow. I
314311 [shortcutter ] If I would want to do it myself, then I'd probably do
threads.html
top