363578-367114 subjects 363972-369568

^ escape character with decimal value
363758 [rogerpack200] I'm familiar with
363781 [shortcutter ] There is octal

^ [ANN] gmail_contacts 2.0 Released
363760 [drbrain segm] gmail_contacts version 2.0 has been released!

^ Use a core C function not included in intern.h
363761 [tinbka gmail] I trying to make a function with C extension for 1.8.7 that should use
363798 [tim.pease gm] it
363805 [tim.pease gm] use
363808 [sutniuq gmx.] Why not directly use rb_eval_string?
363836 [tinbka gmail] Uh-huh, thanks. Now I see. Non-static functions in sources is actually

^ Documenting Ruby 1.9: Ebook or Wiki?
363764 [runrun runpa] I'm writing a free ebook about Ruby 1.9 at http://ruby.runpaint.org/ .
+ 363765 [mo_mail ongh] I'd say wiki - if it's in Markdown or Textile, it could be easy enough
| + 363766 [botpena gmai] +1
| + 363767 [runrun runpa] Not really. They're quite distinct styles. An offline wiki is trivial,
|   + 363768 [mo_mail ongh] Of course, you're the project owner :P so you know best...
|   | 363770 [stuart stuar] enough to
|   | + 363787 [runrun runpa] In the absence of a consensus, I suppose I'll keep to this kind of
|   | | 363788 [shortcutter ] Thanks for your effort!  Since you said you are writing a book I
|   | | 363790 [botpena gmai] i think you can  add comment feature in wikis.
|   | | 363807 [shortcutter ] Yes, but a Wiki is organized as a hypertext and not as a sequential
|   | + 363870 [mo_mail ongh] How about a book in something like Radiant with comments enabled to
|   |   363871 [stuart stuar] enough to
|   + 363794 [maurice.diam] to
+ 363810 [rogerpack200] My own preference would be to "enhance" the existing Wikibook
  + 363820 [botpena gmai] i didn't noticed that. thanks for the link.
  | 363822 [sora134 gmai] +1 for editable "e-book".
  + 364606 [rogerpack200] I could sure use some help with editing the wikibook (wink, nudge)... :)

^ [ANN] Rainbows! 0.94.0 - one eight ate my homework!
363773 [normalperson] Rainbows! is an HTTP server for sleepy Rack applications.  It is based on

^ Looking for ORM for 'legacy' database.
363775 [groups.2009a] I feel I should start with some pre-emptive apologies. I used to =
+ 363796 [edward.middl] Get a copy of "Patterns of Enterprise Application Architecture"[1] read
| 363813 [groups.2009a] the
| 363876 [edward.middl] I am in no way advocating you do it this way but if you are going to
+ 363821 [jack jackchr] Migrations can be very useful even if you are doing PostgreSQL specific
| 363827 [groups.2009a] specific DDL (which I am). You can just call execute in the migration =
+ 363829 [wishdev gmai] Evening Dave,
+ 363846 [walton vyper] But it doesn't.  I'm surprised no one has mentioned it yet, but there is
+ 363891 [rubfor recit] You're spot on, Dave. ORMs are the Devil's spawn. Stay well clear.
+ 363895 [phrogz mac.c] Rails.
  363975 [groups.2009a] Oh, believe me, Sequel has never been 'discounted.' Just my own digging =
  + 363991 [me waltonhoo] How did it not work?  I guarantee something happened.  My guess would
  | 363996 [groups.2009a] an
  | 364039 [b.candler po] "id".
  | + 364040 [b.candler po] class PlaylistItem < ActiveRecord::Base
  | + 364098 [groups.2009a] Yea, but I'd already rejected that convention.=20
  |   364105 [b.candler po] OK. You said you'd gotten tired of including the underscores, so I
  |   364153 [groups.2009a] The piece I couldn't find was "How do I tell ActiveRecord to convert the =
  |   364179 [b.candler po] Ah, I've never come across a database with a "UUID" type. I'd imagine AR
  |   364183 [groups.2009a] the=20
  |   + 364201 [me waltonhoo] Worth noting: the error you supplied clearly came from running a
  |   + 364211 [me waltonhoo] Strange, my version of Postgre (8.4) comes with a UUID type.
  |     364228 [groups.2009a] convert the=20
  + 363995 [edward.middl] I think you might be underestimating the difficult/complexity of faking
  | 363997 [groups.2009a] faking
  | 364000 [edward.middl] The wikipedia page isn't particularly useful. Martin Fowlers web page is
  + 364029 [richard.conr] I have looked at Sequel myself and it does seem very compatible with your
    364035 [edward.middl] The problems occur when you go from a database schema to a domain model.

^ Unexpected length of  (pound) character?
363777 [anthony anth] Today I came across an issue with a customer custom report which was out
363779 [b.candler po] In UTF-8, "£" is two bytes, and ruby 1.8 gives you the number of bytes.

^ Re: Unexpected length of (pound) character?
363778 [botpena gmai] can't help you there, but fyi
363786 [mrzombie the] Do yourself a favor, friend, and read this excellent article on
363789 [botpena gmai] =3D> "1234=A36"

^ method_defined? does what exactly?
363782 [transfire gm] Ruby 1.9.2-head
363783 [robert.dober] The best way to predict the future is to invent it.
363784 [robert.dober] Hmm maybe I was not very clear in my last post ;)
363785 [Rob AgileCon] No bug (in Ruby). The method is private.
363791 [transfire gm] Damn it! I can't tell you how many time I've been bitten by that.
363793 [robert.dober] I agree with you and I would like to add that #method returns all
+ 363823 [transfire gm] I think it is more than that. I don't see much evidence that there is
+ 363824 [transfire gm] Oh, and one more thing.

363792 [texaspeso25 ] PLAY  CAR  RACE GAMES:-

^ Checking hash tables values in multithread environment
363799 [ravenz o2.ie] i'm trying to create a system where i have a producer-consumer paradigm

^ class variables and modules
363800 [illeverbe ya] I am trying to keep a history of object state in a parent class using a
+ 363804 [robert.dober] Short answer: Do not use class variables, period! Because they are
| 363806 [illeverbe ya] Much thanks from illeverbe
+ 363841 [reinh reinh.] def update_history

^ pack('m') and Windows files
363814 [syntaxerrorm] first post here, hope to ask things the right way :)
363815 [astounding g] Make sure you're using double-quotes for "\r\n" and not single-quotes.
363816 [astounding g] irb(main):001:0> '\n'
363818 [syntaxerrorm] To be honest, you put me on the right way with the first message indeed,

^ Re: capture a web scrolling page in a image
363828 [digi_jane qq] Is there any update on this topic?

^ [ANN] io_splice 2.0.0 - IO::Splice.copy_stream added!
363830 [normalperson] The splice family of Linux system calls can transfer data between file

^ problem using gem
363832 [sepehr.onlin] I have ruby 1.8 installed on my windowsXP , I have also installed couple

^ Re: wxRuby 2.0.0
363835 [cispas2000 g] Posted via http://www.ruby-forum.com/.

^ Clearing TOPLEVEL_BINDING for reuse
363837 [transfire gm] Is there anyway to delete all the local and instance variables in a
363839 [reinh reinh.] Binding objects are not mutable, nor would I suggest this as an
363856 [transfire gm] Any suggestions?
363858 [reinh reinh.] There are at least 8 Ruby testing frameworks (that I'm aware of). I
363862 [transfire gm] Object.new
363863 [reinh reinh.] Or that.

^ Processing (potentially) nil method without using nested if
363843 [bvishny gmai] really stupid question. How can I evaluate the following code without
+ 363844 [mike_ekim ya] if parent.respond_to?("children" && parent.children.size !=3D 0)
+ 363845 [b.candler po] Yes, but you're being bitten by the ambiguity of what you've written,
  363915 [shortcutter ] It's even more idiomatic to invoke a method and deal with the
  363937 [reinh reinh.] Robert, you are correct in that "It's even more idiomatic to invoke a
  363943 [shortcutter ] Absolutely agree.  At least the query for respond_to? should be avoided

^ 1.9 warning for 'private' and possible bug
363847 [joelvanderwe] $ cat t.rb
+ 363850 [reinh reinh.] class PrivateAccessor
| 363851 [joelvanderwe] No. The original code is controlling access to the method
| 363854 [reinh reinh.] Not exactly. Methods created by attr_accessor will have its visibility.
| 363855 [joelvanderwe] class C
| 363857 [reinh reinh.] I stand corrected. Interesting.
+ 363859 [luislavena g] Maybe is because you're setting private for all the following methods,
  + 363860 [joelvanderwe] $ cat t.rb
  + 363861 [joelvanderwe] That's probably true in some sense (some state is getting set and

^ threads & mutex question (Rubyist book example)
363864 [sunaku gmail] I am concerned about the lack of mutual exlusion in code listing
+ 363875 [shortcutter ] From what I see in your posting: yes.
+ 364414 [dblack rubyp] Probably. You're right that the code as it stands runs the risk of
  364420 [keith.johnst] "Probably"? If by "probably" you mean "yes".

^ Please explain this "Why's" example please
363865 [sbstn26 yaho] I'm reading Why's Poignant Guide to Ruby.
+ 363866 [angushammond] First things first there wouldn't be an entry box and an ok button, it
+ 363867 [martindemell] First of all, it's "gets" and "each" - ruby is case sensitive :)
+ 363980 [Gennady.Byst] Not everything in this world are text boxes and buttons ;-) -- there are go=
+ 364012 [sbstn26 yaho] _________________________________________________
  364013 [sbstn26 yaho] Also, in Why's example, the words 'real' and 'code' are NOT variables,
  364027 [josh.cheek g] The beginning is do.  do ... end. This is called a code block. It is

^ [ANN] clogger 0.5.0 - body.to_path forwarding
363868 [normalperson] Clogger is Rack middleware for logging HTTP requests.  The log format

^ Packaging common code with gems
363869 [sentinel1879] Let's say I have some common code, I use in various scripts or ruby
+ 363872 [transfire gm] #1 might not be so bad if you vendor them. That way there is no
| 363873 [sentinel1879] I haven't looked at ActiveSupport. These are command line apps (not web
+ 363901 [reinh reinh.] I would write a gem. You can create your own gem server very easily if

^ Re: How fast does your Ruby run?
363874 [blueskybreez] n = 3_000_000
+ 363882 [josh.cheek g] $rvm list
+ 363926 [cremes.devli] Someone is going to point this out sooner or later so it may as well be me.
  + 363927 [robert.dober] Actually it runs slower than those, but it seems faster because the
  + 363929 [blueskybreez] It is just to get an idea, really.
    363947 [jcmoore pres] Ruby 1.9.1 patch 378 on x86_64-linux

^ libruby-nntp doesn't exist any more ?
363880 [unbewusst.se] $ sudo gem1.9 install libruby-nntp

^ inject method of Array class
363883 [richardgscho] I have only just started using Ruby (and am a total noob, in case this
+ 363886 [b.candler po] You want: Array.instance_methods
| 363887 [b.candler po] Or alternatively you could do: Array.new.methods
| 363888 [robert.dober] In irb I would use [] instead of Array.new in that case ;)
+ 363897 [reinh reinh.] In addition to the previously mentioned difference between #methods and
  363898 [dblack rubyp] Although a surprising (to me) number of Enumerable's instance methods
  363900 [reinh reinh.] I suspect that the majority are overwritten for performance reasons,
  + 363904 [richardgscho] Thanks everyone - I appreciate all the responses and it has clarified
  + 363918 [dblack rubyp] I think it's a mixture of performance reasons and things like what it
    363924 [shortcutter ] David, I guess you meant to write "... vs. Array#map! returning its
    363928 [dblack rubyp] if (!rb_block_given_p()) {
    363939 [reinh reinh.] Indeed. The Rubinius implementations of these Array methods are quite
    363948 [rick.denatal] ay
    363966 [dblack rubyp] This message is in MIME format.  The first part should be readable text,

^ Singleton classes and Namespce
363884 [transfire gm] Do singleton classes not get the same namespace treatment as normal
363917 [shortcutter ] I think so.
363930 [vikkous gmai] Ah, but constant lookup is supposed to check the ancestors if the
+ 363931 [shortcutter ] It does but you are not in the scope of the singleton class.  Rather
| 363933 [vikkous gmai] Sorry, I meant 'module or class', not 'module of class'. Basically,
+ 363935 [transfire gm] Thanks Robert and Caleb. At least it makes sense --even if it doesn't

^ ruby api for orkut
363889 [andersonlfl ] Is there some api to get orkut's contacts and info using ruby ?

^ [ANN] io_splice 2.0.0 - IO::Splice.copy_stream fixes
363890 [normalperson] * http://bogomips.org/ruby_io_splice/

^ [ANN] sqlite3-ruby 1.3.0 Released
363902 [luislavena g] sqlite3-ruby version 1.3.0 has been released!

^ [ANN] Final RubyInstaller packages released!
363903 [luislavena g] I'm pleased to announce the release of final RubyInstaller packages.
363932 [luislavena g] was incorrectly uploaded.

^ Unit Testing good study material
363905 [lakshmanan v] I am a beginner in ruby and I have read the "Unit testing" chapter in
+ 363922 [rick.denatal] you might want to google for a few terms related to that like
| 363942 [josh.cheek g] It's been in the last stages of beta for a really long time now :( It's
| 363949 [rick.denatal] It suffers from the same fate as many books for Ruby, which is chasing
+ 363941 [reinh reinh.] An oldie but still a goodie is Kent Beck's Test Driven Development By

^ Very simple programming exercises
363906 [lakshmanan v] I am reading ruby from the book "Programming ruby" and that book lacks
+ 363908 [ryand-ruby z] ...
+ 363911 [josh.cheek g] Codingbat.com has lots of simple easy problems, but it's mostly Java and a
| + 363913 [lakshmanan v] Thank you so much
| | 363921 [jacob.d.mitc] Search for "code golf".  I personally have enjoyed
| | 363923 [rick.denatal] I strongly disagree that code golf is a good learning exercise for a beginn=
| | + 363925 [jacob.d.mitc] The way I've used code golf breaks with tradition.  I try to write clean yet
| | + 363940 [reinh reinh.] Agreed on all points, Rick. Ruby Quiz is a treasure trove of
| + 364085 [eregontp gma] I would like to thank you for the link to project Euler, it is really
+ 364062 [djberg96 gma] Maybe it's name changed?

^ qtruby and distributing applications
363907 [sergio villa] i am currently looking into GUI libraries for cross platform ruby

^ [ANN] Rumai 3.2.4
363909 [sunaku gmail] Rumai

^ ActiveSupport getting started / tips / sharings for newcomer
363910 [sentinel1879] I was googling for some kind of tutorial or getting started for
368060 [fxn hashref.] A new guide covering the core extensions is about to be out with Rails

^ food-for-gold
363914 [ronyekr gmai] Disasters age ((((food-for-gold))))

^ using TkEntry with copy/paste
363916 [kookjr gmail] I'm writing a Ruby/Tk program where I want a TkEntry field with a
363920 [nagai ai.kyu] How about the following
363936 [kookjr gmail] Thanks, that will work. I tried what I thought was the equivalent
363967 [nagai ai.kyu] You define a local variable.
363999 [kookjr gmail] Thanks, that fixed it.

^ invition   in textwand
363919 [rivuraj.paul] We have developed a New Age Text Messaging Product on Android called

^ Question about abbreviated indexing assignments
363934 [Ruby GoogleM] According to the specification,
363938 [reinh reinh.] It is commonly thought that x <operator>= y is exactly equivalent to x
363946 [rick.denatal] x ||= y is NOT equivalent to x = x || y
363963 [reinh reinh.] Good explanation in that post, Rick. Thanks!

^ Complex numbers contradiction?
363944 [andrew.dunca] => Complex(Rational(1, 2), Rational(-1, 2))
363951 [robert.dober] Correct on my box
+ 363953 [andrew.dunca] I have ruby 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0]
| + 363954 [jeanjulien.f] =3D> true
| | 363957 [andrew.dunca] Jean-Julien, you are correct, using integers yields error; using
| + 363955 [andrew.dunca] Interestingly, when I just use the Web interpreter from
| + 364022 [robert.dober] That is how Irb shows them, why not provide a patch? We are spoiled,
+ 363958 [brabuhr gmai] ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
  363982 [andrew.dunca] Although the varied results of this make it clear that the phenomenon is
  363990 [joelvanderwe] Many languages, including C, do integer division that way.
  363992 [andrew.dunca] As a mathematician, and compiler writer for the last twenty years or so,
  + 363994 [jzakiya gmai] is
  + 363998 [joelvanderwe] Sorry (*blush*). It's just a knee-jerk reaction to newcomers to this

^ questions of idiom
363950 [ccw.in.nc gm] I am relatively new to ruby.  I have set myself the problem of writing
+ 363961 [shortcutter ] There are certainly parser and lexer generators for Ruby.  I cannot
| 364025 [b.candler po] def add_token(tok_id, re)
+ 363962 [reinh reinh.] A few suggestions from your code samples (some are Ruby-specific, some
  364023 [josh.cheek g] If you're interested in Treetop, here is a video of it being presented at a

^ [ANN] JRuby 1.5.1 Released
363965 [tom.enebo gm] The JRuby community is pleased to announce the release of JRuby 1.5.1.

^ opengl problem (from gears sample)
363968 [roberto.toma] I wanted to take a look at ruby's opengl but I'm having issues -- can
+ 363970 [roberto.toma] I'm sorry that's the wrong gears demo link ..
+ 363971 [joelvanderwe] Try installing and running it with ruby 1.8.x. The STR2CSTR macro is not
  363974 [roberto.toma] that's a shame ...