324199-327836 subjects 324769-327971

^ Ruby Rake 'advanced' rule arguments
324437 [peterk livin] Just starting out with Rake and Ruby, and made a little rakefile
324523 [peterk livin] Anyway - yes I'm learning ... answered my own question

^ Please help a newbie:
324444 [michael tots] Whenever I run any script on my web app (rake commands, script/server),
324702 [coder68 yaho] run the command again with tracing enabled and you will probably get

^ Ruby introspection????
324446 [rt8396 gmail] I come from python world wishing to learn Ruby. Many small things are
324447 [avdi avdi.or] obj.instance_methods
324461 [shortcutter ] Although it can be added easily
324464 [radek.bulat ] But it doesn't change situation for core/stdlib classes. Python's
+ 324488 [m.fellinger ] Actually, irb ships with a help method already, just seems nobody
+ 324489 [rt8396 gmail] I must say that learning Ruby can be very painful at times. Python doc
  + 324491 [matz ruby-la] ri is your friend.  We'd rather choose separated document command
  | + 324492 [rt8396 gmail] =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 matz.
  | + 324493 [shortcutter ] Actually this seems to be what the "help" method does that Michael
  + 324774 [avdi avdi.or] I came to Ruby from an OO background, and found it perfectly

^ Ruby-based wiki
324467 [svoop deliri] Is there any wiki written in Ruby which is alive and is backed by more
+ 324475 [tomcloyd com] There's very little. I did a survey not long ago, and Instiki's still
| + 324578 [jhsu.x1 gmai] Hey,
| + 324580 [petite.abeil] In that case, take a look at Nanoki, a simple, elegant wiki engine
|   324949 [mo_mail ongh] Sorry if this is an extremely naive question, but do (shared) hosts
|   325035 [petite.abeil] Not sure, but try the Lua mailing list where someone might know more
+ 324634 [albertschlef] Could you please explain what's annoying in MediaWiki's syntax? Or give

^ Bug in DBI::ODBC: DateTime treated as Date
324470 [dmail pfxcor] Using DBI::ODBC and it works nicely thank you.

^ Writing erb rhtml output to an external file
324473 [glenn_ritz y] I am trying to write the output of an erb run to an external output file.  I have an object with some instance variables in it, and a string of html and the instance variables (in the erb style with <% and <%=).
324483 [fred lacave.] File.open('myfile.rhtml, 'w') do |f|

^ [ANN/ADV] Ruby Best Practices twitter feed
324505 [gregory.t.br] Sorry to spam, but I wanted to let those interested in my book "Ruby

^ What is meant by << operator ???
324508 [itismohsinal] What is meant by << operator?
+ 324510 [badboy heart] it appends the object "current_item" to the Array @items
| 324512 [itismohsinal] Do u know right syntax of form tag?
+ 324516 [lucas.dicioc] It is not an operator, but actually is the method "<<". So it depends on
  + 324522 [gwtmp01 mac.] We just had a long rambling thread about operators vs. methods: <http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/323906
  + 324530 [tim burlyhos] Actually, it depends on what it depends on, because it's both (either
    324531 [dblack rubyp] a << b
    324536 [tim burlyhos] That's pretty much what I was saying, too. (Or trying to say).  I

^ Binding.of_caller examples don't work.
324519 [doug14 pacbe] I'm trying to use the Binding class in the extensions library
324537 [transfire gm] sions.rubyforge.org/rdoc/index.html
324538 [phlip2005 gm] I just thought of a use for it!
324581 [pit.capitain] It seems that the original idea of Florian Gro=DF is still valid. Here's
324585 [transfire gm] the block."
324622 [kbloom gmail] First, the version in the extensions gem uses Florian Gro's idea, so
324624 [charles.nutt] Tracing works, but JRuby and IronRuby do not support continuations, and
+ 324637 [billk cts.co] If we're calling untrusted code and giving it full execution privileges, then
| 324666 [charles.nutt] Sandboxing is made nearly impossible if calls in your own chain can
| 324711 [billk cts.co] Since you mention below JRuby doesn't support $SAFE, then I'm at a
| 324771 [charles.nutt] The JVM has its own built-in security mechanisms, and we do nothing to
+ 324665 [kbloom gmail] It turns out that Binding.of_caller isn't a hack I need. It's a hack I
  324670 [charles.nutt] You could up until about a week ago, when I proactively modified
  324675 [kbloom gmail] thread-critical.aspx
  + 324680 [kbloom gmail] s-
  + 324699 [charles.nutt] The latter...you can't guarantee the other threads will necessarily stop
    324726 [kbloom gmail] Okay. In that case, I'd better read Pickaxe for 1.9 from cover to cover

^ How to disable the default selection of a radio button?
324520 [chen_li3 yah] I use FXRuby to create  5 radio buttons and tie them to FXDataTarget.
324671 [lyle lylejoh] Sure, just initialize the FXDataTarget to some value that doesn't
324710 [chen_li3 yah] Thanks. But where can I find this tip in its API?

^ dynamic adom-like text interface
324527 [andrugator y] I would like to build an ADOM-like (http://www.adom.de/) interface. In
324549 [andrugator y] Advance googling helped. I have found Curses -- ruby standart lib for

^ How to build with proper readline version
324528 [mark6139 yah] I am trying to build Ruby 1.9 on Mac OSX x86 Tiger.  This first requires
+ 324858 [kouji takao7] I am current readline mainteinar.
| 325294 [mark6139 yah] Well I run the configure script with '--with-readline-dir=/usr/local'
| 327787 [captnjameski] I am getting this same error (and I have successfully compiled and
| 331901 [sdsykes gmai] Try running autoconf before running configure.
+ 331937 [bbxx789_05ss] What version did you have before 1.9?  Did you install it yourself?  I'm

^ Eventmachine questions?
324542 [timuckun gma] I am starting to write a pretty simple UDP server using eventmachine.   So
324599 [cremes.devli] Tim,

^ gemness--expected?
324544 [rdp doachris] newgem requires rubigen (>= 1.5.1, runtime)
324546 [djberg96 gma] On Jan 10, 10:02=A0pm, Roger Pack <r...@doachristianturndaily.info>
324682 [rdp doachris] Apparently newgem has a dependency on rubigen.
324722 [djberg96 gma] There is something wrong with this gem. On OS X it installs fine, but I

^ [ANN] ruby "better" unhandled exception output.
324545 [rdp doachris] Inspired by some blog post, unroller, Tracer, and Python, I bring you.

^ trying to use RTranscoder to playback video on Win32 - sample code?
324547 [haszari gmai] I'm trying to use RTranscoder (http://rtranscoder.rubyforge.org/) to

^ sort hash, hash key and val off by one, see attached
324548 [mmc_collins ] Please help me with this. I have been trying for days to get this right.
324562 [b.candler po] I'm afraid your problem makes absolutely no sense at all to me. You
324566 [mmc_collins ] I figured it make no sense if I tried to explain it in a nutshell. I
324645 [davebass mus] I haven't read your example, but this statement rings alarm bells. You
324649 [dblack rubyp] It's changing in 1.9, though. 1.9 hashes are ordered by key insertion
324659 [mmc_collins ] Thanks for the advice everyone. I think I might be getting somewhere

^ How can I access after an exception (in the rescue area) the file, class, method, line number for where the error occurred?
324550 [greg.hauptma] How can I access after an exception (in the rescue area) the following
324557 [radek.bulat ] When you catch, err, rescue exception look at the 'backtrace' method.
324558 [greg.hauptma] dGhhbmtzIC0gbm8gd2F5IHRvIGdldCB0aGUgY2xhc3MgbmFtZSAmIG1ldGhvZCBuYW1lIHRoZW4/
324560 [radek.bulat ] Method name is included in backtrace. e.backtrace returns array of
324590 [greg.hauptma] dGhhbmtzIC0gd29uZGVyIGlmIGdpdmVuIHlvdSBoYXZlIHRoZSBtZXRob2QgbmFtZSwgZmlsZW5h

^ Advanced Technology
324551 [come.earn gm] Technology is a concept that deals with knowledge of tools and crafts

^ Ruby 1.9 not finding gems
324553 [mark6139 yah] I installed Ruby 1.9.1 on OSX Tiger using MacPorts.
+ 324575 [kbloom gmail] You're supposed to load by filename within the gems, rather than put the
+ 324583 [justincollin] 1.9.1 comes with Ruby Gems, you shouldn't have to install it separately.

^ Namespaces a la C#
324554 [bolthar libe] Hei everybody,
+ 324555 [badboy heart] this should work perfectly (if you make the Modulename uppercase).
+ 324556 [m.fellinger ] The short answer is: just try it :)

^ reccommended work flow for unit tests and databases in ruby
324561 [adamtemporar] How does one go around creating unit tests for database tables during
+ 324568 [phlip2005 gm] A myth of software development is you can plan out and invent your database
| 324579 [iwasinnamukn] This sounds great, but I've read in several places (sorry can't find
| 324582 [phlip2005 gm] If you have not yet deployed a migration to your production site, you can go
| 324584 [iwasinnamukn] Well I'm just getting into TDD and thats going well, but I did notice
| 324592 [phlip2005 gm] That's because the migrations (should!) happen on the Development database, and
| 324593 [iwasinnamukn] So on the development database, it's safe to add the columns or whatever
| 324594 [phlip2005 gm] Not safe to add columns "manually". Add them to your migrations, rake
| 324595 [iwasinnamukn] Ok, I'll have a go at that, thanks for clearing that up.
| 324628 [adamtemporar] console. Ive found a few links though that show how to use active record
| 324653 [dblack rubyp] I don't have a link to a complete setup but what I'd recommend is have
+ 324572 [dblack rubyp] Rails has a bunch of Rake tasks that copy the schema from one database
  324573 [phlip2005 gm] However...
  324574 [dblack rubyp] Rake will let you do that :-)
  324576 [phlip2005 gm] It's a general, structural question, so I will ask it a different way.

^ Constant lookup when using namespaces
324589 [nemlet gmail] Here is an example.
324591 [Rob AgileCon] class B

^ Checking if input == Integer/String?
324596 [holtzza gmai] I'm all new to programming and all new to Ruby - hope I haven't made a
+ 324597 [sepp2k googl] !"
+ 324598 [TimHunter nc] The mistake is that Integer is a class in Ruby, so your test "num !=
  324601 [holtzza gmai] Thanks to both of you, I will try Integer(str) (just a bit unsure of how

^ [ANN] amalgalite 0.6.0 Released
324610 [jeremy hineg] amalgalite version 0.6.0 has been released.
324611 [james graypr] Jeremy loves me.  He forgot to mention it, but this is the just-for-
324612 [jeremy hineg] Well not completely, I've been meaning to give amalgalite some love for a while.

^ array problem with sorting - maybe easy but not for me
324626 [mmc_collins ] This code reads in a text file with comma separated values. Problem is,
324691 [mmc_collins ] Do you think there is another way to do this? I have tried taking out
324698 [coder68 yaho] take out "line.each_line do|n1|" statement and it's associated end and I

^ Dynamically created attributes
324632 [petertmarks ] I'd like to specify a quantity of object attributes when creating an
+ 324633 [stefano.croc] Well, the first thing I can think of is to replace your n instance variable=
+ 324635 [jgabrielygal] class Object
  324636 [jgabrielygal] {i}"}
  324639 [petertmarks ] Thanks for the help guys! The arrays sound like a much more suitable way

^ authiorization plugin problem
324642 [shahpriyank0] i try to use authorization plugin but i got errors "undefined method

^ Unable to Upload/Download file
324647 [rajshekar.p ] I am facing some problem while Uploading/Downloading file

^ Adding new Method in Controller
324650 [subha.thamiz] While adding a new functionality in controller it gives me "Unknown
324651 [andrew andre] Subha

^ Need potential reciprocal link partners.
324652 [perceptwilli] My website's backlinks are very less, less backlinks causes low

^ Data stream variables
324654 [a-helfenstei] I want to print all lines wihtch contains the string "Open" from a bunch
+ 324657 [andrew andre] Does it all have to be done in ruby?
| 324664 [a-helfenstei] Thanks a lot for your answer.
| 324668 [andrew andre] Alain
+ 324683 [shortcutter ] I'm not Alain, but... :-)  Just kidding.
  324685 [andrew andre] I was wondering if you could reset the line counter but didn't think of just
  324688 [shortcutter ] IMHO the tricky bit is to know *when* to reset, i.e. to know that

^ Reading RTF + Text File and pattern matching
324655 [princetambar] Reading RTF and Text File in Ruby and Pattern Matching/searching from
324789 [jarmo.p gmai] data = File.readlines("test1.txt") #read file into array
324955 [princetambar] Thanks Jarmo Pertman for the little way to do this. i am using append

^ Does ruby support global expression?
324658 [zhujie2003in] In my project, there are some rules using global expression( '*'
324660 [robert.dober] No, better make it ourselves
324687 [shortcutter ] e")
324690 [robert.dober] Spoiling all the fun for the profilers ;)

^ Commonly agreed command line options gem?
324661 [blambeau gma] - Is there a commonly agreed gem for parsing command line options of a
+ 324667 [jgabrielygal] I am very happy with Ara Howard's "main" gem, though.
| 324795 [jarmo.p gmai] Just look at that self-explanatory example and You're ready to go.
+ 324929 [swittenk yah] My absolute favorite is "trollop". It is mega-mega awesome.

^ Markaby -> Nokogiri Issue
324676 [transfire gm] And it was working fine except it wouldn't let me use non-standard
324717 [aaron tender] It does use instance_eval, but it also checks the context in which it
324720 [transfire gm] On Jan 12, 8:27=A0pm, Aaron Patterson <aa...@tenderlovemaking.com>

^ Segmentation fault trying to query MySQL
324678 [coppin gmail] I'm trying to use DBI to connect to MySQL from ruby. Unfortunately, as
324705 [luislavena g] What is your ruby version?

^ ANN: Sequel 2.9.0 Released
324679 [code jeremye] * Sequel provides thread safety, connection pooling and a concise DSL

^ Re: How can I access after an exception (in the rescue area) the file, class, method, line number fo
324681 [rdp doachris] There may be some room to make this better in 1.9, but for now you have

^ XOR two binary strings
324684 [gary.raffert] Howdy,
+ 324686 [badboy heart] what do you mean by binary Strings?
+ 324689 [vjoel path.b] a = [0b00000001, 0b00001000].pack("C*")
| 324734 [shortcutter ] There's also
| 324742 [b.candler po] I'm not sure if "binary string" meant a string of the form "000101...",
+ 325440 [sandor.szuec] Hth. regards, Sandor Sz=FCcs

^ what's the rules re whether a Hash can use either a Symbol or String to reference the value???
324692 [greg.hauptma] Getting confused with Hashes a bit.  It seems sometimes I can use both a
+ 324693 [jgabrielygal] In general, a hash uses eql? to know if a key matches the one you are
+ 324694 [stefano.croc] 0)
| 324735 [shortcutter ] ry is=20
+ 324695 [badboy heart] every time you call hash_var["amount"] a new string is created.
  324696 [greg.hauptma] thanks guys - interesting question for the Rails guys is whether you have to
  + 324700 [dblack rubyp] HashWithIndifferentAccess is just a subclass of Hash. I don't think it
  + 324701 [coder68 yaho] There is no guarantees of getting any "type" back from ANY method in
    324707 [greg.hauptma] agreed - slip on my part to use the term - what I meant to refer to was

^ General questions
324719 [theyojimbo g] Dear folks,
+ 324741 [blambeau gma] Well, I'm exactly in the same position as you are: having programmed
+ 324746 [jgabrielygal] shoes@code.whytheluckystiff.net

^ Rube newb: What is the term for this?
324727 [storypixel g] I'm learning Ruby, I'm sorry if this question is stupid.
324730 [sentinel.200] What you want is a job/cron job, background process, daemon ..
324762 [phlip2005 gm] RR forgot the disclaimer: Ruby is a language, and this is very probably a

^ 99.respond_to? :dup   ==> true
324731 [sentinel.200] I have values of various datatypes coming into this method and the
324736 [Gennady.Byst] 2 points here (and sorry for the top posting -- my web mail client does not=
324737 [sentinel.200] Ouch! Your web client has exposed my email id to the spammers :-(
324738 [Gennady.Byst] First of all, it is not my web mail client to blame (it has lots of its own=
324766 [sentinel.200] Haha, the spam has begun !!!! I guess I'll have to move to a gmail

^ How to create a file
324732 [youhaodeyi g] I use this code to write to a file: File.new(@FILE_NAME,"w"). If the
324733 [shortcutter ] I cannot reproduce this behavior.  Did you make sure that the directory
+ 324980 [davebass mus] It could be that the operating system is unable to create a file with
+ 325050 [youhaodeyi g] The directory doesn't exist, that's the problem.

^ Ruby 1.9 WinCE Port
324739 [mscdex gmail] I recently downloaded Ruby 1.9.x and noticed that the WinCE port is now

^ Parsing C/C++ in Ruby
324745 [max sparkyma] I need to parse a source tree to generate a table of functions used.
324751 [aff28 delete] I haven't used gcc-xml but it would seem to me the right tool for the job.
324753 [jameskilton ] What problems are you having with GCC-XML?

^ Watir: Access an Object
324748 [mario betwar] I need to access an object with Watir through the name without knowing
324860 [jarmo.p gmai] Okay. I did something like this. Downside of this implementation is that

^ extending strftime
324749 [mailbox.lwj ] can i change the options which is recognized by strftime
+ 324750 [b.candler po] That sounds like a perfectly reasonable approach.
+ 324754 [transfire gm] why not write your own Time method? you don't need to override

^ Complex CSV parsing
324755 [stuart.clark] I am trying to parse data from a file where the values are common
+ 324756 [b.candler po] That is not valid CSV, so FasterCSV won't help you.
+ 324757 [mark thomasz] That's not a CSV file. It looks like some sort of serialized data
+ 324842 [roberto REMO] It looks more JSON than CSV, try using a JSON parser instead.

^ rakefile "$0" path in rake
324758 [peterk livin] Is there a way to get the path to "itself" in a rakefile loaded by rake?
+ 324759 [badboy heart] try using the "magic variable" __FILE__ ?
| 324764 [peterk livin] Thanks! Thats it!
+ 324760 [james graypr] Sure.

^ (none)
324761 [dustywho gma] unsubscribe

^ the Mobile Application Development Challenge
324765 [adam rhomobi] The meteoric growth in smartphones device volume and diversity is one
324820 [martindemell] Looks pretty interesting!

^ getting info about attached displays
324768 [phil philsmy] I have a ruby daemon process that needs to get info about the monitors
324770 [kyleaschmitt] Phil, that's really more of a general unix (or DOS in the case of
324773 [phil philsmy] Thanks Kyle,
324786 [kyleaschmitt] Phil, there are two ways you can have two monitors being a virtual