324199-327836
324046-328182 subjects 324437-331937
^ triggering rollback manually-what methods should i use???
324199 [greg.hauptma] Q1. If I want to manually trigger a DB transaction roleback
^ How to check user name and password for Linux accounts
324201 [youhaodeyi g] Can ruby check user name and password the same way as Linux OS? I use
+ 324211 [rogerpack200] You may be able to find a wrapper to crypt(3) or whatever your system
| 324224 [b.candler po] If you have the encrypted passwords from ypcat, then they are easy to
+ 324217 [iwasinnamukn] If your system uses PAM, like most modern linux distros, you might want
^ Re: triggering rollback manually-what methods should i use??
324210 [rogerpack200] If it's straight mysql it's something like
^ about singleton_methods
324218 [kdream95 gme] class A
324222 [robert.dober] I have never noticed that before, I certainly do not like that.
^ Click on popup/dailog box in watir
324226 [narendra.gol] I 'm unable to click on popup/dailog box in watir, can you plz help me
^ unsubscribe
324227 [mirod3 gmail] unsubscribe
^ Can you guess what it will be happened?
324229 [jykim altiba] there are two array.
+ 324230 [b.candler po] a.insert(2, 3, 4) # a.length, b[0], b[1]
| + 324232 [sepp2k googl] Actually a.concat(b) is the simpler way to write this. a += b does something
| | 324236 [b.candler po] Yes of course, sorry about that.
| + 324235 [jykim altiba] thanks for your reply, brian.
| + 324238 [b.candler po] That question was answered yesterday. See
| + 324239 [sepp2k googl] No, it's the "splat" operator. It expands an array into a list of arguments.
| + 324240 [eustaquioran] It's called "splat operator". You can use it to "explode" your array
| + 324241 [jykim altiba] thanks for all your replies.
| + 324242 [dblack rubyp] This message is in MIME format. The first part should be readable text,
+ 324231 [eustaquioran] I didn't get the joke. :-)
^ =?windows-1252?Q?Rails_and_Merb=3A_It=92s_All_at_Acts_As_Conference_200?= =?windows-1252?Q?9?=
324247 [robertonrail] Acts as Conference 2009 (http://www.actsasconference.com) is just
^ [ANN] [SECURITY FIX] httpclient 2.1.3.1
324248 [nahi ctor.or] I posted httpclient/2.1.3.1. httpclient/2.1.3.1 fixes a vulnerability
^ How to return an unmodifiable but nor frozen array?
324251 [blambeau gma] Is there a mean to obtain an unmodifiable array which is not frozen?
324252 [mbj seonic.n] You can return the array in a container, this container redirects all
^ Does instance_eval passes self as block argument?
324253 [blambeau gma] obj.instance_eval {| | block } => obj
+ 324254 [blambeau gma] Ok, it works in Ruy 1.8.7 but not in Ruby 1.9.
+ 324255 [badboy heart] In order to set the context, the variable self is set to obj while the
+ 324256 [badboy heart] oh...sorry. I missunderstood the documentation. Instead of using a
+ 324257 [blambeau gma] obj.instance_eval {| | block } => obj
324259 [b.candler po] You can build that yourself.
324260 [blambeau gma] class A
324275 [mike.gold.44] class A
324278 [blambeau gma] Works under Ruby 1.8.x, not with ruby 1.9.0 (I did not try with Ruby
324282 [mike.gold.44] The only difference is the 'who' block parameter which is nil in 1.9.
^ regular expression question - using 'not' logic with it
324262 [mmc_collins ] I know this is probably so easy, but I just can't find any documentation
324264 [jgabrielygal] It's not clear to me how many strings you have to check, but if you
324265 [mmc_collins ] Thanks!
^ passing to with drb
324267 [wbsurfver gm] I've been finding it easiest to pass hashes and arrays to DRb
324311 [b.candler po] No need, you can pass your native struct (or any other Ruby class).
^ Testng with ruby
324269 [idealone5 ho] All,
324274 [richard.conr] I don't know the specific answer to your questions, but if you are integrating
^ docs using hpricot with xml including 'CDATA'?
324270 [mmc_collins ] Anyone know where I can get informatin on how to use hpricot on xml data
^ RD -> RDoc conversion
324281 [severus post] Good evening (at least in central Europe),
324295 [dave pragpro] markup"
324298 [severus post] It doesn't help me much - my old inline documentation makes use of
^ Ruby & Windows and Dir() EINVAL bug?
324283 [bdezonia wis] ******************************************************************************************
+ 324289 [djberg96 gma] **=AD***************
+ 324301 [ghalsey yaho] serverDirName = "x:/./Radeloff/Projects/DATA/NLCD_2001/landcover/
324302 [bdezonia wis] Arg. Yes and no. My test program did have a typo. Once fixed the test
324313 [djberg96 gma] Try wrapping the offending code in a begin/rescue and see if you can
^ calling Ruby from C/C++
324284 [tiberiu.moto] Is there a way to execute Ruby code from C/C++? I know it is possible
324286 [mo_mail ongh] Yes it does. Search up "ruby c c++" (without quotes) in Google.
324288 [tiberiu.moto] It seems that everything I find on the web is about calling C from
324290 [mo_mail ongh] Perhaps, you misunderstood the pages. I asked for you to search "ruby c
324291 [tiberiu.moto] Coo. Thanks. I don't know how I missed that.
324294 [mo_mail ongh] It's easy to miss it :)
^ Can I get a little help with my program? (string searching and regex)
324287 [michael.hinc] So here's my issue, I'm trying to figure out a way that's not insanely
^ How to realize that a TCPSocket doesn't give any more lines as answer?
324293 [kazaam oleco] #!/usr/bin/env ruby
+ 324308 [vjoel path.b] Try socket.gets(nil) -- that waits for EOF instead of newline.
+ 324371 [shortcutter ] Basically you need to define a protocol of your own which handles
^ The 'other' mailing list
324297 [peterhi ntlw] I know this is the wrong place but I can't subscribe to the rails
324299 [mo_mail ongh] ...
324303 [peterhi ntlw] Thanks for that
^ code factoring problem
324304 [chen_li3 yah] I use FxRuby to do some GUI programing. I define a method to handle the
+ 324307 [vjoel path.b] [SEL_COMMAND, SEL_KEYPRESS].each do |sel|
| 324315 [chen_li3 yah] Thanks Joel. They work very well.
+ 324309 [matt moss.na] if @button_next.connect(SEL_COMMAND) or
324314 [chen_li3 yah] Thanks. But none of them works for me.
^ Turn off warnings in ruby
324306 [mr_nice66 ya] I am writing a ruby application with FXRuby, which also uses the ruby
324316 [djberg96 gma] It's probably harmless, so don't panic. You can report that to Hannes on
324342 [mr_nice66 ya] Thanks for the advice.
324345 [shevegen lin] I dont know how others do it but I fix all the warnings ruby spits out
324346 [mr_nice66 ya] I solved the problem :-)
324431 [rodrigo.berm] $VERBOSE = nil
324457 [mr_nice66 ya] I tried that and couldn't get it to work.
^ about Array methods
324321 [kdream95 gme] l = [1,2,3,4,5]
+ 324322 [matt moss.na] l = l[3..-1]
| 324326 [botp delmont] # > p l # =3D> [1,2,3,4,5]
+ 324343 [mathijs onge] p l-head # => [4,5]
^ [ANN] rake-compiler 0.3.1 Released
324323 [luislavena g] rake-compiler version 0.3.1 has been released!
^ rake: passing args to Task invoke
324329 [rob99brown y] I need to write a rake task that invokes other rake tasks. Can do that
324495 [rdp doachris] Maybe add to ENV?
324648 [mayer.domini] i didn't get that work either. did anyone have success with that?
324822 [mayer.domini] well for db:migrate modifying ENV works very well, but if you want to
^ Rhodes 0.2 released
324330 [adam rhomobi] 0.2 Release of Rhodes =96 the open source mobile application framework
^ ActiveFacts 0.7.0 released
324336 [no spam.plea] After two years in stealth mode, ActiveFacts is ready for you to try.
^ How Ruby
324340 [r.dushyanth ] I recently chanced upon this forum while on internet. I too have
324341 [rubfor recit] My view is you start out simple and straightforward. There are no Police
+ 324360 [tomcloyd com] Thanks Mike. I appreciated your post. I'm an awful Ruby programmer, and
| 324370 [dblack rubyp] Dave Thomas issued a challenge in a recent keynote address, where he
| + 324372 [stuart stuar] *Raises hand*
| | 324376 [blambeau gma] Ruby allows you to install methods on objects (called singleton
| | 324466 [stuart stuar] Now I see - thanks.
| | 324477 [dblack rubyp] module Vocal
| + 324663 [robert.dober] At least he could have left a note at my blog. ;)
+ 324369 [dblack rubyp] At the same time, keep in mind that Ruby is optimized for programmer
| 324373 [rubfor recit] I did not intend to suggest this. However coming from a background of
| 324478 [dblack rubyp] Which rules are you thinking of? I'd be interested in hearing because
| 324567 [rubfor recit] The variable scope rules,
| + 324569 [phlip2005 gm] Generally, Ruby stays out of your way. (Thomas.)
| + 324571 [dblack rubyp] Oh, those rules :-) The good news is that the rules are pretty
| 324631 [rubfor recit] The good news is that the rules are pretty
| + 324640 [martindemell] Ruby does not. Try this
| | 324704 [sepp2k googl] a.instance_variable_get(:@foo)
| | 324706 [dblack rubyp] I wouldn't call that accessing it "directly" though :-)
| + 324646 [dblack rubyp] Closures aren't about breaking privacy encapsulation. The point of
+ 324377 [r.dushyanth ] I think we are getting side-tracked here I wanted to know "how Ruby" not
324480 [dblack rubyp] Well, if you can wait a month or two, Manning is coming out with "The
^ Encoding issue for special characters on Windows
324344 [nicolas.gaif] I am facing an issue with special characters handling inside a Ruby
+ 324347 [pjb informat] #!/usr/bin/ruby
+ 324485 [fred lacave.] It depends. If you are trying to echo something to the console, you'll
324752 [nicolas.gaif] You were right. The screen output was the only one concerned by the
^ Detect when a Ruby program exits
324348 [jcoglan goog] Is there a way to have your code notified when a Ruby process is terminated?
324349 [blambeau gma] Your are probably looking for Kernel::at_exit
324350 [jcoglan goog] 2009/1/9 LAMBEAU Bernard <blambeau@gmail.com>
^ A quick Mac OSX question
324352 [albertschlef] Does mac osx supports the "2>&1" syntax to redirect stderr?
+ 324354 [mike stok.ca] Darwin ratdog.local 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24
+ 324365 [pjb informat] As long as you use bash instead of tcsh, yes.
^ disable\enable Adobe Flash in the browser
324355 [aidy.lewis g] Can anyone give me some direction as to whether it is possible to
^ Seconds between two dates
324356 [freduchi gma] How could I get the seconds between two dates ion Ruby?
324357 [blambeau gma] (Time.now-Time.gm(2009,"may",8,17,00,00)).to_i
324358 [freduchi gma] I think it's working but the operands need to be changed to get the
^ Detecting kill messages
324361 [masterperas ] If im running a console application, something simple looping on the
324364 [masterperas ] Ignor this has it was answered not so long ago. This should teach me
^ finding a range of lines from a text document
324379 [adamtemporar] Can anyone help me? ill try and keep it short and to the point.
324394 [rodrigo.berm] This one of the algorithms you will find along the programmer way.
324406 [rodrigo.berm] a better solution will be to have your project data in a
324448 [adamtemporar] thank you for the algorithm prompt. When i read your suggestion I though
^ Updating to gem version 1.3.1 on Ubuntu 8.04
324383 [jds340 gmail] I see someone else is having problems updating to gem version 1.3.1 on
324386 [jds340 gmail] Sorted! I looked at http://www.rubygems.org/read/chapter/3#page14
^ Unique identify computer (both Windows and MacOSX)
324387 [fpmalard gma] How can I unique identify the OS where my Ruby code is running?
324526 [jarmo.p gmai] puts RUBY_PLATFORM
324539 [djberg96 gma] No, don't use RUBY_PLATFORM because it won't work with JRuby, and
324541 [iwasinnamukn] I believe the OP wants to get a unique identifier for each host,
324543 [phasis gmail] If the OP wants the unique ID per computer in cross platform way, the
324638 [pjb informat] HD move from one computer to the other. The OP asked for a computer
+ 324641 [fpmalard gma] First, thank you all for your comments.
+ 324740 [b.candler po] There is a uuid gem too.
324744 [pjb informat] Yes, exactly. Why would you want to forbid the user to do that. After
324747 [fpmalard gma] I think the mac address is acceptable because major of NIC cards today
^ [ANN] [SECURITY] Rack 0.9.1, a modular Ruby webserver interface
324389 [chneukirchen] Today we release Rack 0.9.1. This release is a *security release*, it
^ 2009 >> Billu Barber latest wallpapers @ Aarti Chhabria -
324392 [boldwallpape] Isha Koppikar - http://bikiniishakoppikar.blogspot.com
^ Using a method as input to another method
324395 [phoenix_1177] class A
+ 324396 [shortcutter ] You can leave out method d and use send() directly, i.e.
| 324397 [phoenix_1177] Thank you for your help,
| 324400 [iwasinnamukn] It sounds great but I always remember hearing somewhere that
+ 324412 [rdp doachris] I suppose you could use methods like
^ Q: most efficient way to remove duplicate spaces in a string?
324398 [mark.watson ] I don't usually worry too much about efficiency unless runtime
+ 324399 [cmshea gmail] Haven't benchmarked it, but this sounds like a case for regular
| 324401 [pat.eyler gm] require 'benchmark'
| 324403 [shortcutter ] Note that these behave differently. A more appropriate comparison would
| 324445 [no spam.plea] It still might be - the benchmark doesn't run long enough to
| 324507 [pat.eyler gm] Is this better?
| + 324514 [tim burlyhos] For gsub/gsub!, instead of replacing one or more white space with a
| | 324517 [pat.eyler gm] #!/usr/bin/ruby
| | 324529 [tim burlyhos] Yeah, it doesn't make a huge difference, but it's just a little faster
| + 324534 [no spam.plea] No. Before I elaborate, I'm not saying I don't believe the result.
+ 324402 [wpdster gmai] I was looking at the docs the other day and stumbled across String#squeeze.
| 324404 [cdemyanovich] I was just doing that. :-)
| 324408 [tim burlyhos] The ruby version plays a big role in squeeze.strip, as it's much slower
+ 324409 [mark.watson ] Thanks to everyone who responded!
^ hpricot or nokogiri?
324405 [goodieBoy gm] OK, was completely sold on Hpricot and now am having my doubts. I
+ 324407 [dandiebolt y] I use Hpricot extensively for various data mining tasks.
+ 324423 [ryand-ruby z] hpricot drops the ball in a lot of ways and is much more heavyweight
+ 324425 [aaron tender] Yes, Nokogiri is built on top of the libxml2 project from Gnome.
| 324587 [goodieBoy gm] This is great thank you. Definitely helps clear things up a bit. So
| 324588 [aaron tender] I can't think of a good xpathy way to do that from the current node.
+ 327833 [l ncebradley] I've been going through a similar situation with my current project. I
327836 [transfire gm] Note that there are also the libxml ruby bindings.
^ Behavior of 0 and 0.0...
324410 [raphael.clan] I was playing around with the basic math functions, and I had some
324413 [gwtmp01 mac.] charset=US-ASCII;
+ 324416 [vjoel path.b] And just to underline the point... these behaviors are not ruby spec,
+ 324417 [Rob AgileCon] In particular, look at how IEEE defines operations such as 0.0/0.0
324419 [raphael.clan] Thanks for the quick replies (and the cool link!). I thought this might
+ 324426 [jan.dvorak k] Programming languages generally 'sticks' to IEEE 754 simply because that's
+ 324427 [matt moss.na] Written by someone who does not understand floating point arithmetic.
324451 [raphael.clan] I agree that the IEEE spec is closer to what the FPU is doing (actually,
324458 [usenet istik] One important reason was not mentioned here: In floating point processing we
324476 [raphael.clan] I've had a little time to think on this (and a little sleep ;-D) and I
324484 [jan.dvorak k] It's still coming from the hardware, you pass fdiv(x,0.0) to FPU and you get
324486 [micathom gma] What would the equivalent of the following code return in perl or
324643 [davebass mus] I learnt a long time ago (probably in Fortran) that it's always a good
324656 [micathom gma] You're probably right. This thread made me wonder though if I'd
324763 [raphael.clan] I think this is probably is a case of 0.0 is not really 0. After all, as
324767 [Rob AgileCon] Actually, there are both positive 0 and negative 0 representations in =20=
^ howto for compiling in 32-bit?
324411 [rdp doachris] Anybody know of a HOWTO for compiling a 32-bit binary [like ruby] in a
+ 324414 [raphael.clan] Google sez... if you are using GCC, try -m32 that should force the
+ 324415 [jh_ruby-lang] In general, ensure you have the necessary libraries in /usr/lib32 and
324418 [rdp doachris] Wow your google fu is much better than mine.
^ value of an expression?
324420 [kedar.mhaswa] Sorry if this is asked before and I could not find its answer. Take a
+ 324422 [adam.kittels] s = "surprising" if (1+1 != 2)
| + 324424 [kedar.mhaswa] Ah ok, thanks. However, I was thinking if it should be nil, not
| | + 324430 [tim burlyhos] That's because the conditional isn't true. If the conditional wasn't
| | | 324436 [kedar.mhaswa] Ah, it does. Thanks. I was confusing it what irb "echoes".
| | + 324432 [Rob AgileCon] irb is showing the #inspect of the last expression that it evaluates.
| + 324435 [pjb informat] s = if (1 + 1 != 2)
| 324450 [sepp2k googl] Because of precedence. If you'd write s =3D ("surprising" if (1+1!=3D2)), i=
+ 324428 [tim burlyhos] This doesn't change because the string s is "test". Since 1+1 is 2, it
+ 324434 [pjb informat] Because.
324438 [tim burlyhos] irb would have shown the result as nil for that specific test and they'd
324439 [pjb informat] Right, I corrected it in the irb buffer and forgot to backpatch the gnus
324440 [kedar.mhaswa] Sorry, I had a glimmer of hope but this script eclipsed it :(
+ 324441 [tim burlyhos] That is because when it's all in paranthsis, it is assigning the value
+ 324443 [pjb informat] What did you expect?
324449 [kedar.mhaswa] Tim and Pascal,
+ 324454 [tim burlyhos] I think the response mode irb defaults to, is confusing you. When you
+ 324455 [pjb informat] Is it not the same?
+ 324460 [shortcutter ] They _are_ the same and they do evaluate to the same value. However,
324515 [kedar.mhaswa] Thanks Robert. I get it now.
threads.html
top