354386-355297 subjects 354854-365124

^ What does "w+" mean in IO.open ?
354626 [ibc aliax.ne] "w+":  Read-write, truncates existing file to zero length or creates a
354639 [shortcutter ] ng or=20

^ How to create a pipe file ("mkfifo pipe_file")
354633 [ibc aliax.ne] Which is the command to behave as system "mkfifo pipe_file"?
+ 354637 [ibc aliax.ne] By the way, is it better to use a pipe_file or a UNIX socket? both are IO
| 354642 [shortcutter ] by.
| 354644 [ibc aliax.ne] IO
+ 354697 [eleanor game] Ruby.
  354699 [ibc aliax.ne] y.
  354772 [eleanor game] seem

^ [ANN] antlr3 1.3.1 ( improved ANTLR v3 for Ruby )
354648 [kcy5b yahoo.] I haven't really advertised my project on ruby talk before, so I figured it's

^ Setting recursion depth
354655 [stuart.clark] I have done some Googling regarding setting the depth of recursive
+ 354660 [ibc aliax.ne] I cannot imagine a "cool" way. Perhaps listing all the files in current
+ 354667 [jeanjulien.f] Something like Dir.glob(['*','*/*','*/*/*','*/*/*/*']) should do
| 354700 [stuart.clark] I think this code will work best for me.
| 354704 [jeanjulien.f] If you just want the list of the folders from your recursion, you could do
| 354705 [jeanjulien.f] def get_dir_to_depth(n)
| 354716 [stuart.clark] Thats for this, will give it a try
+ 354671 [shortcutter ] ruby19 -r find -e 'Find.find("/usr/local"){|f| p f; Find.prune if
  354679 [colinb2r goo] About two months ago I adapted Find for my own purposes,
  354680 [colinb2r goo] [* Typo correction in the second file=> depth *]

^ Stopping String Escaping.
354656 [phil cooperk] I'm trying to parse code snippets on a website that are submitted by the
354664 [b.candler po] How are you parsing them?
354672 [phil cooperk] I am using rails and redcloth, I have the plain-text in the database,
354675 [b.candler po] OK, then what I suggest is you make a standalone test case, outside of
354683 [phil cooperk] yeah I did this as well.
354686 [b.candler po] Unfortunately, here the \\ is being turned into a single backslash by
354688 [phil cooperk] yes, thanks you.
354689 [b.candler po] So in this program, 'data_read' contains two backslash characters; and
354690 [b.candler po] Here's the kind of standalone test I was thinking of.
354693 [phil cooperk] thanks again
354694 [b.candler po] Ah yes, backslashes have a special interpretation in the
+ 354695 [b.candler po] require 'rubygems'
| 354698 [phil cooperk] thanks again, it worked like a treat, in 1/2 the lines
+ 354696 [phil cooperk] The easy solution is to use the block form of sub instead.

^ [QUIZ] Digits of e (#226)
354678 [yahivin gmai] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
+ 354780 [j_rouse bigf] I used the fast converging continued fraction series from the first
+ 354782 [jeanjulien.f] Well I had :o)
+ 354846 [th tp1.rub.d] #!/usr/bin/ruby
| 354847 [th tp1.rub.d] Sorry, Rabonitz meant Rabinowitz, ugly typo.
+ 355070 [eregontp gma] 2010/1/8 Daniel Moore <yahivin@gmail.com>

^ [ANN] unicorn 0.96.0 - Rack 1.1 extras for fast clients
354681 [normalperson] Unicorn is an HTTP server for Rack applications designed to only serve

^ Question about rails applications
354682 [just-for-new] I wonder if one can get an oversight (best some sort of test) about rail
354687 [b.candler po] Rails is not Ruby. Rails has its own forums, please ask there.

^ when to use * arguments?
354684 [g.zhen.ning ] def say(*a)
+ 354685 [ibc aliax.ne] * is useful when you don't know the number and kind of arguments the method
+ 354692 [lists bertra] Sometimes you have to use splats: when you call another method and
  355237 [sepp2k googl] To nitpick (I know it isn't relevant to the discussion at hand), it's

^ HTML parser using Hpricot
354701 [portalweb.ro] I am a newbie to RoR and writing an HTML parser using Hpricot. I can

^ can you explain code
354706 [aashishkiran] after running ruby code
354708 [aldric trevo] (skip long useless code and output)
354710 [aashishkiran] thank you for reply
354719 [aldric trevo] No, because that's not in the code supplied. nearValues is passed to

^ Something changed an instance variable ... and now I'm confused
354707 [ralphs dos32] Newbie here.
354721 [rick.denatal] nstance variable was being modified _somewhere_. =A0I couldn't tell where.
354722 [b.candler po] I believe it's stored in @attributes (which is a Hash)
354733 [ralphs dos32] Brian,

^ [ANN]  January Phoenix Ruby User Group Meeting
354711 [james.britt ] January Phoenix Ruby User Group Meeting

^ something strange with CLASS and SCOPE
354714 [lulala gmail] There is onething regarding class and scope I felt puzzled for a while.
+ 354717 [aaron tender] The array you're setting is an instance variable on the Class instance
+ 354718 [pg thimian.c] class QQ
  354723 [b.candler po] It's worth mentioning that a class is itself an object (an instance of

^ File and Dir class problems
354724 [spencerevanr] I'm running into some problems when renaming and deleting files through
+ 354725 [xenogenesis ] You're thinking of FileUtils.rm_r http://ruby-doc.org/core/classes/FileUtil=
+ 354726 [xenogenesis ] Also, files << Dir.glob(path + "**/**.*")  does not glob the list of
  354728 [spencerevanr] Thanks to both of you, those are all good points. It looks like I will
  354738 [jeanjulien.f] The problem with glob is that it doesn't by default show the so-called

^ [ANN] rspec-cleverbacktrace 0.1 Released
354731 [nyarly gmail] rspec-cleverbacktrace version 0.1 has been released!

^ where is the rforum repo [other than rubyforge]?
354732 [sophrinix gm] Greetings,
354735 [mo_mail ongh] I believe that's correct.  I think the rForum has been running and not

^ Decimal in for loop?
354734 [nate culip.n] decimal (not an integer) in a for loop?
+ 354737 [jeanjulien.f] 0.0
| 354740 [nate culip.n] Thanks a lot for the quick responding, Fleck, your suggestion works! ;-)
+ 354743 [aaron tender] while or until would both work.  I can think of three ways off the top
| 354745 [nate culip.n] Yes, it is, but it looks badly long. . . As I program in Ruby, I want to
+ 354751 [usenet-nospa] ...

^ Re: where is the rforum repo ?
354741 [rogerpack200] I think the code has changed (but only some teeny patches) since then,

^ Re: rspec-cleverbacktrace 0.1 Released
354742 [rogerpack200] link works?

^ Ruby editing style rules and recommendation?
354746 [nate culip.n] I asked a question 'Decimal in for loop?' and two members were kind
+ 354747 [ibc aliax.ne] Imho using { } for inline code and do..end for a multiline block of code. This
+ 354748 [pg thimian.c] Whatever fits the situation. No, really. If the {...} block form fits in
+ 354749 [ no spam.com] I will just echo what was said so far, in regards to whatever fits the
+ 354750 [rick.denatal] Here's my two cents
+ 354755 [josh.cheek g] I usually use braces for single line, and do/end for multi-line.
| 354756 [marnen marne] That's what 99% of Ruby programmers do. :)
| + 354764 [josh.cheek g] It's not mandatory, it's mostly just whether they can be lined up easily.
| | 354800 [nate culip.n] Thanks, your all are really helpful!
| + 354818 [albertschlef] Why?
|   354841 [josh.cheek g] It makes it conspicuous where everything begins and ends, you don't have to
+ 355000 [larschbelunk] Whichever makes the code more readable in each situation.

^ [ANN] posix_mq 0.3.0 - notify(&block) + 1.8.6 fix
354752 [normalperson] POSIX message queues allow local processes to exchange data in the form

^ Confusing docs . . . how do I use gcd2?
354753 [mgregory22 g] The standard library docs don't make sense to me a lot of the time.
354754 [mgregory22 g] 26
+ 354757 [_mwryder55 g] Are you using 1.8.x or 1.9.x?  The method is defined in mathn.rb for 1.8
+ 354758 [justincollin] Both, sort of.
  354759 [justincollin] Sorry, that should be gcd2.
  354760 [_mwryder55 g] For your information gcd works with 1.9.1 but gcd2 does not.  Not sure
  354761 [justincollin] I don't know, exactly, either.

^ roll back to last command in irb
354762 [rubynewbee g] I'm using ruby under ubuntu Linux, ruby version is 1.9.1
354765 [sutniuq gmx.] Did you compile Ruby yourself? If so, install one of the packages
354822 [rubynewbee g] Yes coz my ubuntu doesn't have a ruby pre-installed, so I got the
354836 [shortcutter ] You are aware that there is a packaged Ruby 1.9 available, are you?
354996 [albertschlef] Which of these two packages should "we" install?
354997 [shortcutter ] Good point!
355008 [jonathan jmn] Ruby1.9 is an old release of ruby1.9.0, and is the only one available

^ Recommended practice for Ruby 1.8.6 and Ruby 1.9.x on Windows
354763 [mo_mail ongh] Ruby 1.9.x on the same Windows PC?  I do some work in Rails and a lot of
354767 [pg thimian.c] Just download and install 1.9 from rubyinstaller.org. It installs Ruby
354770 [mo_mail ongh] That's reassuring - I'm off to it now!  Finally, my Ruby 3 book will

^ [Security] WEBrick has an Escape Sequence Injection vulnerability
354766 [shyouhei rub] ...

^ Ruby 1.8.7-p249 released.
354768 [shyouhei rub] ...
+ 354769 [shyouhei rub] ...
+ 354775 [rick.denatal] Based only on the timing, I'm assuming that 'this issue' is the
  354776 [wyhaines gma] Yes.  The 1.8.6 fix is being prepped for upload right now, too, BTW.

^ [ANN] Ruby 1.9.1-p378 released
354771 [yugui yugui.] I just have released Ruby 1.9.1-p378. This is a patch level release of

^ Security -- Ruby 1.8.6 pl388 released
354777 [wyhaines gma] This release fixes the security vulnerability that was just announced,
354798 [james grayso] Is there any reason this patch hasn't been rolled into 1.8.6 yet?

^ Remote Rake without SSH
354779 [alien.the.zo] Is there a way to remotely complete Rake tasks/execute Rake files
+ 354797 [b.candler po] Perhaps you could run the db:bootstrap locally, but pointing to the
| 354936 [alien.the.zo] Haven't thought of this, I'll try it.
+ 354937 [marnen marne] Find another hosting company.  Seriously.  Rails really needs shell
  354938 [alien.the.zo] I know... -_-
  + 354939 [marnen marne] Would this be ambitiouslemon, by any chance?
  | 354942 [alien.the.zo] No.It's called HelioHost.
  + 354940 [marnen marne] If you need free Rails hosting, I recommend Heroku.

^ The Ruby GUI debacle
354781 [ruby.student] Team,
+ 354783 [alien.the.zo] Sorry, I cannot recommend you something similar for Windows (I don't use
+ 354784 [mo_mail ongh] You could try WideStudio.  It does allow you to create a GUI by dragging
+ 354785 [wishdev gmai] Good Morning,
| 354786 [wishdev gmai] Love replying to myself......
| 354790 [bosko.ivanis] uld
+ 354787 [luc honk-hon] Luc Heinrich - luc@honk-honk.com
+ 354788 [ruby.student] Thank you to everyone that already posted and answer.
| + 354791 [mo_mail ongh] WideStudio is.
| + 354862 [marnen marne] Then Monkeybars + NetBeans interface builder is the way to go.
+ 354789 [reid.thompso] Look at using glade to generate the interface, the code the callbacks
| 354799 [ninja slapha] Or use QTDesigner.
+ 354792 [w3gat nwlaga] I've used FoxGUIb which works quite well for drag and drop for several
+ 354793 [pg thimian.c] NetBeans. Monkeybars is the glue to use NetBeans' GUI builder in JRuby.
| 354795 [james.britt ] But know that you do not *have* to use Netbeans to make a UI for
| 354796 [pg thimian.c] If you want a half-way decent drag & drop UI layout.. thing, like
+ 354794 [james.britt ] I am really curious as to why using Monkeybars was such trouble.
| 354803 [ruby.student] James, I don't remember if the problems was with Netbeans or something
| + 354811 [james.britt ] Ah, well, I'm pretty sure that, for all sorts of reasons, the videos are
| + 354825 [flo andersgr] What exactly is the "power of Swing"? The deal-breaker for me always was =
| | + 354831 [shevegen lin] In a way the situation is a bit difficult for GUI apps in the year 2010.
| | | 354893 [paradisaeida] Firefox is already X-platform.
| | + 354850 [ruby.student] What I mean by the "power of Swing" is the fact that SWING is part of
| | | + 354851 [shortcutter ] Maybe you get better directions if you define what "easy" means for
| | | | + 354856 [martindemell] I discovered miglayout [http://www.miglayout.com/] and never looked back.
| | | | + 354864 [ruby.student] I thought I did define what "easy" was on my very first note.
| | | |   + 354865 [mo_mail ongh] For the fourth time, try WideStudio :)
| | | |   | + 354870 [ruby.student] I will, I will!
| | | |   | | 354871 [mo_mail ongh] It's not perfect, but it does give you drag, drop and place.  It does
| | | |   | + 354894 [marnen marne] The website (which is a bit of a mess) seems to say that on Mac OS X, it
| | | |   |   354934 [mo_mail ongh] I don't have a Mac (never had), so I don't know for sure - it may be the
| | | |   + 354872 [shortcutter ] Well, MS development products are known to be pretty good (at least
| | | + 354853 [rick.denatal] Ahh, the power of Swing
| | | + 354858 [ruby.student] Remember the expression: "Be careful what you wish for....."
| | + 354866 [wyrd code-gn] This ability has been available for quite some time.  In fact, if you
| |   354898 [flo andersgr] was that there seems to be no possibility to create native-feel =
| + 354837 [rphillips su] Well, if you're comfortable with HTML, JS, and CSS, you can make
| | 354860 [mo_mail ongh] On a side-note, does anyone here have experience with appcelerator?  I
| + 354857 [ no spam.com] Haven't read all the posts in this thread, so sorry if this was
+ 354834 [arndt.roger ] Jeszra generates tcl/tk templates and exports wrapper classes for

^ OT: Setting up Paypal/Merchant processing
354806 [devguy.ca gm] Ruby? I currently have a merchant account with paypal and would like to
+ 354807 [jonathan jmn] It looks like Paypal offers an interface and some sample code for Ruby
| 354809 [devguy.ca gm] Thanks for the link!
+ 354808 [rick.denatal] If it's a Rails app, the activemerchant plugin is quite popular and
  354810 [devguy.ca gm] yes it's is going to be rails based, good to know I can do this with
  354812 [paradisaeida] On this topic, does the ActiveMerchant gem cover the recent PayPal 'X' split

^ Help
354813 [mnjagadeesh ] DATA = {}
+ 354815 [jeffpeng net] 14:25 +0900,Jagadeesh:
| 354817 [mnjagadeesh ] Thanks Jeff. yes you are correct. But have a question
| + 354819 [jeffpeng net] 在 2010-01-11一的 15:30 +0900,Jagadeesh写道:
| | 354830 [mnjagadeesh ] That answered me. Thanks for your time
| | 354832 [shevegen lin] I can agree with the statement, at least partially, but I must say that
| | 354863 [marnen marne] Yes, that's standard style.
| + 354820 [mnjagadeesh ] Another interesting question is, what is standard way of writing one
|   354821 [jeffpeng net] 在 2010-01-11一的 16:00 +0900,Jagadeesh写道:
|   354828 [mnjagadeesh ] ;)
+ 354826 [ibc aliax.ne] Please, use a descriptive subject for your mail rather than just "Help".
  354829 [mnjagadeesh ] Okay

^ fib.rb 1.9.1/1.8.6 source code conflicts/errors
354814 [jzakiya mail] In the latest ruby-1.8.6-p388 source code I just downloaded
354833 [b.candler po] (1) The files are different between two different versions of ruby (1.8
354876 [jzakiya mail] Thanks for tracking down the apparent source for this code.
354879 [b.candler po] No, I disagree that the code is 'wrong' (that's why I used the quotes).
354882 [jzakiya mail] Yes, the code is 'wrong' because it does not correctly produce the

^ [ANN] LA Ruby Conference 2010 - Call for Proposal Extended 48 hours
354823 [cobyr interh] The Los Angeles Ruby Conference is being held February 20th in Burbank, CA

^ help
354824 [flowers_sneh] in web page if we have an objcect n it has some color n its not an
354827 [ibc aliax.ne] Please, use a descriptive subject for your mail rather than just "help".

^ Regex help
354838 [chris.lervag] 1) It is exactly 9 characters long.
+ 354840 [stefano.croc] * the beginning of the string
| 354843 [shortcutter ] \A
| + 354844 [stefano.croc] You're right.
| + 354845 [phrogz mac.c] /\A\h{4},\h{4}\z/
| | 354855 [chris.lervag] Alright, thanks guys for excellent insight and help! I especially like
| + 354859 [glennj ncf.c] ...
+ 354842 [jgabrielygal] irb(main):006:0> re = /\A[a-f0-9]{4},[a-f0-9]{4}\z/

^ Debugger pains
354848 [hypermeister] I am testing a script using the built-in debugger (running 1.8.6 -
354861 [jan.svitok g] or

^ [ANN] Rice 1.3.1 - Bug fixes and memory management tweaks
354852 [jameskilton ] ========================================