372597-375596 subjects 373043-412723

Range of hex values?
372841 [ammarabuali@] ("\x00".."\x7F").to_a
+ 372846 [ara.t.howard] you are relying on String#succ! there.  read the docs to understand
| 372852 [ammarabuali@] Thanks for the tip. I read the docs and it did shed some light on what is
+ 372878 [shortcutter@] The ".to_a" is superfluous here.  Here are other options
  372879 [ammarabuali@] Thanks Robert. Another great example of the "TIMTOWTDI-ness" of ruby

What does ruby.exe do?
372842 [sbstn26@ya o] In my folder C:\Ruby192\bin , there is ruby.exe
+ 372844 [cmdjackryan@] The way you drag and drop files when copying them, except you release
+ 372890 [devguy.ca@gm] just put "C:\Ruby192\bin" at the end of your path environment, open up
| 372898 [sbstn26@ya o] May I ask why 'ruby.exe example1.rb' when 'example1.rb' alone is
| + 372904 [luislavena@g] That only works if during installation of Ruby you check the box to
| + 372905 [jeremy@bo p.] It works because there must be a file association for files with the .rb
| | 372927 [mo_mail@on h] Or you could associate .jeremy with a program that parses the "shebang"
| | 372928 [jeremy@bo p.] That's actually a great idea.  Can you recommend such a program?  It
| | 372929 [mo_mail@on h] I've never used one for it, but I was just a bit offended by the "This
| + 372950 [devguy.ca@gm] because someone here posted once that .rb extension failed to get
+ 372930 [mo_mail@on h] Just since no one else has actually answered this last bit, you could

Rdoc problem on some gems (like ruby-graphviz)
372847 [jean-christo] One of my computers is running Fedora 12, where I compiled  ruby 1.9.1p376.
372848 [sutniuq@gm .] The error you get during gem installation has nothing to do with the

Informational link related to Computer programming Language
372849 [alamzeborakz] For Free Download lectures and Presentation of  all types of

Informational link related to Computer programming Language
372850 [alamzeborakz] For Free Download lectures and Presentation of  all types of

[ANN] sqlite3-ruby 1.3.2 Released
372854 [aaron@te de ] sqlite3-ruby version 1.3.2 has been released!

How to write this in ruby
372861 [al3xandro.g@] /**

Undocumented feature: Array#one? (ruby 1.9.2)
372862 [s.korteling@] In (my) ruby 1.9.2 class Array has an undocumented method #one? . It
372863 [james@gr ys ] $ ri -T Enumerable#one?
372864 [s.korteling@] Ah, it takes a block. That certainly makes more sense.

defining allocate is deprecated; use rb_define_alloc_func instead
372865 [brian.takita] rb_define_alloc_func()
374017 [headius@he d] Not really. Most impls, including MRI and JRuby, don't actually

"<-----/strings/----->" my ruby http client, link search.
372866 [i8igmac@ai .] im not sure how to ask this question...
372873 [m.fellinger@] require 'nokogiri'
372967 [shortcutter@] Or even

Rails application Webservices
372868 [alumsimporta] I have a rails application at http://electric-sky-98.heroku.com/products

post requests in ruby
372869 [robmckennie@] writen a php script to test it. when a request gets sent, its saves all

[ANN] amalgalite 0.15.0 Released
372874 [jeremy@hi eg] amalgalite version 0.15.0 has been released.

new guy needs help
372883 [info.atwater] place. I am a director and filmmaker (www.prothemovie.com
372884 [cmdjackryan@] You aren't in the wrong place. :)

the dark side of inherited methods
372886 [timrandg@gm ] Let's say I want to make a new class, Vector (that will function,
+ 372887 [cmdjackryan@] Define "consistent behavior". That #collect returns an Array is
| 372888 [devguy.ca@gm] I see how Vector is-a Array, I don't see how Array is-a Vector? I would
| 372889 [cmdjackryan@] Array#collect returns a new Array. Array#collect! returns the existing
| 372894 [devguy.ca@gm] Thanks Phillip, yes I agree with respect to the implementation, i get
+ 372893 [james@gr ys ] just have to live with the dark side of inherited methods?
| + 372895 [timrandg@gm ] It is a problem with inheritance and another reason why inheritance is
| + 372938 [robert.dober] Completely agree with this. Apart of the code you suggested I would
| + 372941 [djberg96@gm ] On Oct 31, 5:49=A0pm, James Edward Gray II <ja...@graysoftinc.com>
| | 372942 [james@gr ys ] classes.
| | 372944 [shortcutter@] +1  (me too)
| + 372951 [tony.arcieri] That's a pretty extreme position to take. Inheritance is an indispensable
|   + 372958 [robert.dober] I cannot speak for Edward but would like to defend my (+1) on this.
|   + 372964 [shortcutter@] I believe this is what James wanted to stress: inheritance is used far
|   | 372986 [transfire@gm] c.com
|   | 372995 [shortcutter@] I would not subscribe to that.  Although Bertrand Meyer is a big fan of
|   | + 373023 [ian.hobson@n] There are, IIRC, two places where is a, is not well implemented by
|   | | 373032 [shortcutter@] sent,
|   | | 373077 [ymendel@po o] ht
|   | + 373090 [transfire@gm] Mixins are just another way to do inheritance. It has the same issues.
|   |   + 373108 [usenet@is ik] What I would like to have are Mixins (especially Enumerable) behaving some
|   |   | 373111 [shortcutter@] Of course there are ways that could be used to implement what you want, e.g.
|   |   | 373113 [usenet@is ik] This is why I would not want this as _default_ behavior. I would expect
|   |   | 373129 [shortcutter@] ng
|   |   + 373109 [shortcutter@] I am not sure I get your point.  What do you mean by access to
|   |   | 373125 [transfire@gm] That is what I am referring.
|   |   + 373158 [robert.dober] =A0I
|   + 372981 [james@gr ys ] <james@graysoftinc.com
|     372991 [josh.cheek@g] Can you give some examples of where it has its place? I have been trying to
|     + 372996 [joelvanderwe] class A < Struct.new :x, :y, :z
|     | 372997 [james@gr ys ] II<james@graysoftinc.com
|     | 372999 [joelvanderwe] How do you fix this?
|     | 373000 [james@gr ys ] self[:x] = new_x
|     | 373033 [shortcutter@] ... as is wasting a class because one wants to spare the typing IMHO. :-)
|     | 373084 [joelvanderwe] My suggestion is not just for reducing typing: the super construct gives
|     | 373107 [shortcutter@] That's true.  It's just that it feels itchy to me to use a class this way.
|     + 373004 [james@gr ys ] <james@graysoftinc.com
+ 373082 [danrbr@gm il] Scala solved this problem (which can viewed as a lack of the "uniform

Using Java Casses without JRuby
372891 [qwhatelse@gm] I am a newbie in ruby.
372896 [joelvanderwe] ...

gems install failed
372900 [wroxdb@gm il] Sorry I'm totally new in ruby and gems.
372901 [wroxdb@gm il] Sorry I have got it installed correctly.
372903 [jeremy@bo p.] In the version of Ruby you're using, the rubygems module is not loaded
372906 [wroxdb@gm il] t fail.

URI:HTTP and read()
372902 [billbrasky66] I'm new to ruby and running 1.8.7 on Mac OSX 10.6.  From the Ruby docs

data::dumper for ruby?
372908 [wroxdb@gm il] how to dump a complicated data structure with ruby?
+ 372915 [shortcutter@] I believe Marshal and Yaml are what you want.
+ 372918 [cmdjackryan@] Alternatively to YAML, JSON (in Ruby 1.9: require "json";
  373008 [b.candler@po] There is also pp / prettyprint in the standard library.
  373436 [vbosch@gm il] Also awesome print is ... pretty awesome too :-)   =

Why Ruby 1.9.2 double the speed on 2.53GHz vs 2.2GHz Core 2 Duo?
372909 [blueskybreez] The following program will take 3.6 seconds to run on a Macbook that has
+ 372925 [x-ruby-lang@] Some of your rubies are built with the old i386 (32 bit) instruction
+ 373007 [b.candler@po] 64-bit environments are not "obviously" faster than 32-bit. In fact,

If you have new Macbook Air 11 or 13 inch, do you mind running this to see the speed?
372910 [blueskybreez] If you can run Ruby 1.9.2 on your Macbook Air 11 or 13 inch.  I can go

create a shell within an app
372911 [sentinel1879] I have a client application - often i am needing to explore/inspect the
+ 372916 [shortcutter@] IIRC you can embed IRC pretty easily.  The issue then might be how you
| 372917 [piyush.pr@gm] check out hijack
| 372921 [sentinel1879] I did come across both hijack and live-console.
+ 372924 [sentinel1879] live_console has made it very easy for me to plug in a shell (using irb

access remote mysql DB
372912 [dglnz2@gm il] I have been given a job to put a local mysql to a remote server and then
372922 [jeremy@bo p.] Using Net::HTTP implies that you're using HTTP.  HTTP is what you use to

[ANN] kramdown 0.12.0 released
372914 [t_leitner@gm] ## About kramdown

Evented programming
372919 [christoph.ja] Awaken by the node.js hype and the possibilities and performance of
372931 [tony.arcieri] I'd like to write a crash course on evented programming as part of the
372933 [christoph.ja] That would be Great. I could motivate you by a call, each day at 3am,

File.ctime returns no subseconds
372934 [anotheronema] When calling File.ctime(path).to_f on ruby 1.8.6 or 1.8.7 it returns a

Ruby 1.8.7, checkinstall and gem
372935 [byrnejb@ha t] OS = CentOS-5.5
372937 [ryand-ruby@z] Usually this means that your shell cached the old location and can be =
372939 [byrnejb@ha t] Thank you very much.  That was exactly the problem and the solution.  I

Standard Base62 Encoding?
372936 [transfire@gm] Is there a standard encoding for base62? I've been using 0..9a..zA..Z,
+ 372940 [w_a_x_man@ya] Where is base 62 used?
+ 372945 [shortcutter@] irb(main):003:0> "0x%02X" % 255
  + 372946 [steve@st ve ] Even easier, for base64, no requires needed.
  + 372980 [transfire@gm] I'm not using it as such. My question is for my Radix project which

images to pdf
372947 [percent20@gm] I am wanting to write a script to convert a series of images into a pdf
+ 372952 [djonavarro@g] While I've never done this type of project below is a link to help get you
+ 372955 [boesemar@gm ] ImageMagick's (http://www.imagemagick.org/) command line tool simply

Implicitly convert Symbols to Strings?
372949 [jrmair@gm il] Is there a good reason why Symbols are not implictly converted to
372957 [shortcutter@] But you can do eval(x.to_s) for any type of x - including Symbols.

Strange whitespace parsing behavior on Ruby 1.8.7 (patchlevel 249/302)
372953 [ehsanul_g3@h] ...
372956 [shortcutter@] argument while performing arithmetic on that value. Then missing whitespac=
+ 372969 [colinb2r@go ] That seems to be a correct diagnosis. See below for the OP's irb session
| 372974 [shortcutter@] ger, expecting ")"
+ 372978 [ehsanul_g3@h] on argument while performing arithmetic on that value. Then missing whitesp=
  372993 [shortcutter@] (irb):72        from :0irb(main):074:0>  ok(4,x.size + 3)=>  nil
  373006 [ehsanul_g3@h] tion argument while performing arithmetic on that value. Then missing white=
  373025 [justincollin] Robert was right.
  373026 [ehsanul_g3@h] l 249/302)
  + 373027 [justincollin] evel 249/302)
  + 373031 [cmdjackryan@] One whitespace or an infinite number is rather irrelevant. A small
  + 373054 [colinb2r@go ] Subject to correction by Robert - or anyone else! - to summarise I think the
    373057 [shortcutter@] ert

Vimeo API Error, `gem_original_require
372954 [avijit.shand] When I follow this.

get method name when aliasing
372961 [sentinel1879] def write
+ 372962 [ryand-ruby@z] a == b ? true : false
| 372966 [sentinel1879] My apologies. i typed that in a hurry just to give an idea.
| 373001 [ryand-ruby@z] rather
+ 372963 [ryand-ruby@z] Why not? What's wrong with that? And if you're just at "might", why are =
+ 372968 [ammarabuali@] If I understood your purpose correctly, then this recent thread sheds

Extra RubyConf Ticket
372972 [jamie@da g. ] I'm not able to attend RubyConf, but have a ticket. If you'd like to buy

dynamical change of proxy
372973 [rajnus@ho ma] I would like to open IE with predefine proxy settings.
372989 [rogerdpack2@] You may get some traction by changing registry settings between runs.

Local server-client communication
372977 [jvalencia@cl] line tool to communicate with it.
372979 [joelvanderwe] Unix sockets are fine for this purpose. You can write your own protocol
372990 [rogerdpack2@] Drb might work for you, as well.
372998 [joelvanderwe] Just so the OP knows, drb and druby are the same thing. (I'm sure you

Printing out contents of 2 arrays using a loop
372982 [prpaulroche@] print array1[0] array2[0]
+ 372984 [jgabrielygal] irb(main):001:0> a1 =3D ["joe blogs", "peter smith"]
+ 372985 [rick.denatal] names =3D %w(joe sam john fred)
| 372994 [shortcutter@] irb(main):005:0> names.zip(occupations){|name, occupation| puts "#{name}
+ 372987 [prpaulroche@] Great. Thanks a million

Generating rdocs
372983 [grantcurell@] How does one go about generating rdocs? Whenever I press generate rdocs
372988 [rogerdpack2@] ...

[ANN] bike 0.2.3
372992 [akira@fu ai ] Bike is a web application framework that can make feature-rich apps by =

Fort Worth, TX Ruby Job
373002 [fregas@gm il] Looking for a senior Ruby on Rails developer for a full time, on site

Inversion of Control in Ruby by passing classes - does it make any sense?
373003 [manuel@ki ss] I'm quite new to Ruby, with a strong background in PHP.
+ 373005 [cremes.devli] it "should create instance of OtherClass" do
+ 373009 [jeremy@bo p.] What I'm about to suggest will generate warnings from Ruby and is
| 373035 [shortcutter@] tic language. However, right now I'm a bit stuck regarding the issue of loo=
| 373047 [jeremy@bo p.] I agree, but I was approaching this from a minimal unit test standpoint
| 373048 [shortcutter@] I cannot really tell.  Maybe, if you need different loggers in
| 373052 [jeremy@bo p.] I'll keep that in mind.  Thanks for the tips. ;-)
+ 373010 [joelvanderwe] class SomeClass

Speech Recognition
373011 [webmaster@in] Where would I start if I wanted to create some small programs/scripts
+ 373012 [eric@se pe e] Take a look at http://cmusphinx.sourceforge.net
| 373014 [eric@se pe e] Q29ycmVjdGVkIGphdmFkb2MgdXJsIGZvciBzcGhpbng0IDoNCg0KaHR0cDovL2NtdXNwaGlueC5z
+ 373015 [cmdjackryan@] By buying Dragon Naturally Speaking and scripting that (via COM, if
+ 373064 [webmaster@in] Let me be clear: I /don't/ want to create my own voice recognition
| 373068 [webmaster@in] Oh, and I'm running Gentoo Linux, so a Linux-only solution is fine.
+ 373089 [x-ruby-lang@] The most seamless solution would be Sphinx4 with JRuby. But I would
  374015 [headius@he d] Performs better at command line instead of direct invocation from

Regular Expression
373013 [dv.mymail@gm] I am trying to write a reqular expression to match a word with my input
373016 [richard.conr] You are going to need some more advanced regexes to get a match in the way
+ 373017 [ammarabuali@] Take a look at looakahead and lookbehind assertions. They used to
+ 373018 [zettabyte@gm] The above works so long as each of ABC or D must come in said order,
  + 373019 [dv.mymail@gm] Yes, you are correct, this expression doesnt match words like CA or BAD
  | + 373020 [zettabyte@gm] In theory, any language/grammar/syntax construct of finite length can
  | + 373021 [wishdev@gm i] Afternoon,
  |   373034 [shortcutter@] e a
  |   373036 [jgabrielygal] 1) > 1
  |   373040 [shortcutter@] =3D 1) > 1
  |   373065 [w_a_x_man@ya] =3D 1) > 1
  |   + 373106 [shortcutter@] =3D 1) < 0
  |   + 373151 [w_a_x_man@ya] def check input
  + 373127 [mike@ca ga .] regex =3D /^(A(?!A)|B(?!B)|C(?!C)|D{1,2}(?!D))+$/
    373148 [zettabyte@gm] ["ABA", "DADD", "CAC"].each do |string|
    373150 [zettabyte@gm] regex =3D /^(A(?=3D[^A]+$)|B(?=3D[^B]+$)|C(?=3D[^C]+$)|D{1,2}(?!D))+$/
    373161 [mike@ca ga .] do |string|
    373162 [zettabyte@gm] o |string|
    373164 [mike@ca ga .] grrr......
    373165 [mike@ca ga .] double grrrrr..... (I messed up the parentheses on the last last one)
    373167 [zettabyte@gm] Mike, I think you deserve a prize.
    373180 [shortcutter@] The regexp is really cute!  I'd just suggest to replace ^$ by \A\z

Portable Ruby distribution for Mac or Linux?
373022 [jason.sandfi] This might sound a dumb question. I want to embed Ruby with the
373024 [steve@st ve ] Shoes does this. http://shoesrb.com/

see this 1000$ per day FROM GOOGLE secret released 5000 downloads in 1 day
373028 [ptc2blog@gm ] see this at www.mixmasala.co.cc

[ANN] Ruber released
373030 [stefano.croc] Ruber has been released today

i really need your help!
373037 [dj_sia_x@ya ] page http://www.ricardoisfemale.gr/i60m and the only thing i ask is to
+ 373038 [ammarabuali@] Gang-clicking is no good. You're lucky there isn't a dislike button.
| 373042 [nicholas.orr] open it in chrome (dev version) then press translate.
| 373053 [dj_sia_x@ya ] ricardo.gr <- this is where the contest belong and you can find whatever
| 373055 [jeremy@bo p.] Sia, what does this request to click a Like button on some website have
| 373087 [ryand-ruby@z] Weeds are defined as any flora you don't want... including roses.
+ 373041 [dj_sia_x@ya ] well i'm trying to achieve this thing. i did't want to desturb anyone!

[ANN] Ruber 0.0.4 released
373039 [stefano.croc] Ruber 0.0.4 has been released today