376237-376872

376023-388121 subjects 376394-379570

update_rubygems problem
376237 [mustafakyr@g] I am using ubuntu 10.04. Downloaded ruby-1.9.2-p136 and installed it
+ 376238 [cmdjackryan@] You should read the RubyGems 1.4 announcement in full.
+ 376239 [darthdeus@gm] RubyGems 1.4.0 doesn't work on Ruby 1.9.x, yet.
| 376245 [Ruby@Go gl M] Shouldn't it have
| 376247 [luislavena@g] On Dec 31 2010, 11:42=A0pm, J=F6rg W Mittag <JoergWMittag
| 376255 [Ruby@Go gl M] # gem help update
+ 376249 [mustafakyr@g] SOLVED ! Thanks a lot.

Getting two's complement representation of an Integer?
376244 [kedar.mhaswa] Is there a Ruby standard library method to get an Integer's two's
376248 [botpena@gm i] try combining  fixnum#size and (s)printf/format using %b

write right method to be concise
376246 [myocean135@y] there is a section of my program,it can run,
376269 [b.candler@po] 1. Pass dbh as an extra parameter to myinsert()

Newbie: Thread variables in Ruby Threads
376252 [imran.nazir@] count = 0
376268 [b.candler@po] It's not consistent. In my case, running your program I got

[ANN] tmpdir_block-1.0.0
376258 [ara.t.howard] ...
376561 [djberg96@gm ] Good idea. I'm putting it in Sapphire. :)

Re: Fabian Marin wrote:I am sorry!!!
376259 [michaelcoudr] sorry about necro posting, but just saw this thread ^.^'

On Mac: File.file? behaves strangely
376260 [rovf_via_rub] Or, rather, I probably just made a silly mistake which I can't see
376263 [jgabrielygal] entry is relative to the dir, while File.file? works relative to the
376282 [rovf_via_rub] Of course!!!! I could have seen it myself from the output of my test

There has been an error while running make. Halting the installation.
376265 [stoicism1@ao] bash < <( curl
376361 [rebs.guarina] Taken from this post

Re: rubygems 1.4.0 Released
376266 [luislavena@g] On Jan 1, 2:59=A0pm, J=F6rg W Mittag <JoergWMittag+R...@GoogleMail.Com>

[ANN] flickr_airlift 0.0.5 released
376267 [beholdthepan] The flickr_airlift gem comes with the flickr_airlift and flicker_upliftbins=

How to export highlighted syntax from IRB
376271 [jason.lillyw] If you look at the Ruby In Twenty Minutes page here
+ 376351 [jason.lillyw] Use http://tryruby.org/ to generate the html I need for my document then
| 376352 [sutniuq@gm .] require "coderay"
+ 376357 [jason.lillyw] This is a nice library. Thank you!

Undefined local var hash not trapped
376272 [RichardDummy] # K:\Analysis
+ 376273 [hassan.schro] Uh, "mythical"?? Ruby does have docs, you know :-)
+ 376276 [RichardDummy] On Jan 1, 7:24=A0pm, RichardOnRails
  376280 [dhruva.sagar] Object#Hash was a good indication.

Best Linux Distro for Ruby?
376274 [boondox@sd .] What are some of the better linux distro's for ruby development? I know
+ 376275 [t.yao426@gm ] Use RVM to manage your ruby versions, then you'll find all the Linux
| + 376279 [stu@ru yp og] I've got rvm set up on Funtoo, Mac OSX and FreeBSD.
| + 376284 [koulikoff@gm] Or kubuntu ;-)
+ 376294 [matz@ru y- a] I use Debian sid, and see no problem developing in Ruby.
+ 376309 [james@ic on ] I've been using Arch Linux and Ruby 1.9.2 for development, and also have
+ 376321 [s2.akira@ti ] I use Ubuntu, everything's fine.
+ 376595 [djangofan@gm] I think Ubuntu is a little confusing to new Ruby developers.  I
  + 376603 [stu@ru yp og] Nothing wrong with a software developer looking up and installing some
  | 376605 [unk.dcc@gm i] Jon ..Ubuntu is little good call for begginers...but if u want developer
  + 376612 [jude.dashiel] If you go with Debian, please check out sid distribution.  Sid is more experimental than standard but has mono-vbnc available while standard doesn't.  I once had sid running for nearly two years with no problems.
  + 376621 [paul@ho ly r] age
    376830 [genednaparad] Gentoo is good choice. I install ruby 1.9.2 from source code.
    376851 [jonas@pf nn ] Check out ArchLinux, their package is pretty much pristine and tracks
    376854 [culley.smith] I have installed Ruby, Rails, and related dependencies on Ubuntu 10.04,

1.respond_to? :define_singleton_method  # => true
376277 [timrandg@gm ] In 1.9,
+ 376278 [serialhex@gm] umm...
| + 376289 [gwtmp01@ma .] Fixnums are not 'immutable' in that you can associate state with a =
| | 376295 [timrandg@gm ] But you can add singleton methods to nil and true, so the problem with
| | 376299 [gwtmp01@ma .] Well since there is only one instance of NilClass, TrueClass, and =
| + 376296 [timrandg@gm ] hex,
+ 376297 [timrandg@gm ] It looks like there are two classes, Fixnum and Symbol, that produce

Linux Unix, Windows, Cisco, Asterisk server tutorials. howto guides,
376283 [src7881@gm i] My blog is for Linux Unix, Windows, Cisco, Asterisk server tutorials.

Problem with LOAD_PATH after gem update
376285 [lcl@ta az d.] Mandriva 2010.1, ruby 1.8.7, gem 1.4.1
376290 [groniec.13@g] I know that it sounds a bit lamely, but try to uninstall the gem and
376314 [lcl@ta az d.] Aye, I did that and sure enough the script works again.  The gem now
376316 [drbrain@se m] have=20
376326 [lcl@ta az d.] Yes, ruby is x86_64.  Don't know when that changed.  A couple of dozen

Connecting with GTalk with Jabber/XMPP
376286 [groniec.13@g] require 'rubygems'
+ 376287 [jeremy@bo p.] That gem is incompatible with Ruby 1.9 syntax, and you appear to be
+ 376288 [groniec.13@g] So I've got job for the weekend ;-) I'll try. Just one question: is

rspec-rails-2.4.0 is released!
376291 [dchelimsky@g] ### rspec-rails-2.4.0 / 2011-01-02

rspec-2.4.0 is released!
376292 [dchelimsky@g] Changes to rspec-core listed below. There are no functional changes to =

ruby-opengl new gl.so
376293 [visicalcenat] Recently I'd encountered problems using ruby-opengl with ruby 1.9.1p430

rspec-rails-2.4.1 is released!
376300 [dchelimsky@g] This is a bug fix release recommended for all users who have upgraded to =

little tool for learning the ruby lookup path
376301 [timrandg@gm ] I have been looking at the process ruby utilizes for method lookup,
376302 [shortcutter@] IMHO monkey patching should not be general practice and stay limited
376308 [timrandg@gm ] Thanks for your massive improvements, and insights. I didn't like

hello
376303 [malargeetha2] malargeetha20119159686702@gmail.com

hai
376304 [malargeetha2] malargeetha20119159686702@gmail.com |
376444 [lw299792458@] who?

hot
376305 [malargeetha2] malargeetha20119159686702@gmail.com

heart
376306 [malargeetha2] malargeetha20119159686702@gmail.com |

[ANN] MagicRuby is nearly sold out and group room rate ends TODAY! Hurry!
376307 [jeremymcanal] MagicRuby, the FREE Ruby conference at Walt Disney World Resort=AE on Febru=

Validates is exists
376310 [jtomasrl@gm ] Event has_and_belongs_to_many :users
+ 376313 [cmdjackryan@] 1) Rails questions get better service one link over in the Rails forum. :)
| 376318 [josh.cheek@g] Of course, if the site lags a little bit, and they impatiently click the
| 376319 [cmdjackryan@] It's a reasonable assumption that a person registering for an event 5
+ 376343 [b.candler@po] Foo.find(x) looks for a record with id X, and will raise an exception if
+ 376345 [niklas@br ec] Validations should happen in the model, not the controller. You could

ANN: Sequel 3.19.0 Released
376311 [code@je em e] Sequel is a lightweight database access toolkit for Ruby.

Different behaviour in irb and ruby
376312 [vvanmulders@] I'm new to Ruby and just finished my first program.
+ 376315 [jgabrielygal] If you want to access the answers by question number, you should use
+ 376324 [josh.cheek@g] Relying on hash is something I shy from, it is not implemented across all

[ANN] rdoc 3.3 Released
376317 [drbrain@se m] rdoc version 3.3 has been released!

New Savon Update, basic auth
376320 [rfsllc@gm il] Does anyone know how to setup basic auth with the Savon gem update
376323 [rfsllc@gm il] client = Savon::Client.new do

[ANN] ruby-doc.org API docs updated
376322 [james.britt@] API docs, both core and std-lib, have been updated on ruby-doc.org.
376336 [sutniuq@gm .] Thanks!
376872 [james.britt@] Yeah, the problem is that generating the std-lib docs requires a set of

SUNLisp 2: Josh vs. Kenny Flamewars Galore!!
376325 [kentilton@gm] All they agree on is Common Lisp! Come join the Yobbos of MCNA at the
376327 [PointedEars@] ...

How to test I18 characters in watir/ruby
376328 [bhavesh1_sha] I have some chinese, french characters in the description filed of an

Is singleton class of an object already created?
376329 [samnang.chhu] I would like to know is there any ways to check is singleton class of an
+ 376342 [b.candler@po] As an indirect test, you can't Marshal any object with a singleton class
+ 376348 [anurag08priy] Perhaps you need a method to determine the presence of singleton
| 376349 [samnang.chhu] I guess that a singleton class always exists for
| 376354 [timrandg@gm ] Could you simply count singleton_methods? If singleton_methods returns
| 376372 [mentionuse@g] Really small point here, and not really on topic, but this is a little
| 376383 [shortcutter@] I couldn't agree more!  Using ternary operator with "false" and "true"
+ 376359 [samnang.chhu] I'm not sure every time we invoke 'singleton_methods', then it will
| 376368 [shortcutter@] irb(main):001:0> x="foo"
+ 376566 [zhangsu@li e] I just found that even though a singleton method is removed, the
| 376573 [jonas@pf nn ] Try reporting on http://redmine.ruby-lang.org/ . They are usually
+ 376580 [jrmair@gm il] in YARV and MRI, the singleton class always exists for a class (it is

method `tlsconnect' not defined in Net::SMTP
376331 [avijit.shand] when I try to do script/server I am getting this error.
376341 [b.candler@po] /opt/local/lib/ruby/gems/1.8/gems/mail-2.2.13/lib/mail/core_extensions/smtp.rb:7:in

Time + time.local
376332 [lister@pi kl] I cant seem to get localtime to work, can anyone share some gotchas?
+ 376334 [skye.shaw@gm] Unless you've `zic`ed otherwise, you'll need to use the right zone
+ 376360 [akr@fs j. rg] Ruby uses a C-level function, localtime(), to obtain the timezone

Threading in ruby
376333 [pathsny@gm i] I was recently trying to solve a pet problem of mine where threading
376335 [shortcutter@] ng
376337 [pathsny@gm i] oh absolutely.Once I learnt that Queue's exist,  I got the thing working
376338 [shortcutter@] In Java - which has far more sophisticated threading and memory model
+ 376436 [pathsny@gm i] thanks for such a clear explanation. I have a couple of questions
| 376438 [shortcutter@] Yes.
| 376440 [pathsny@gm i] oops Im sorry I wasnt clear. My question was why would I need to
| 376443 [shortcutter@] Ah, I see.  The reason is simple: if the thread reading the resource
| 376454 [pathsny@gm i] aha, got it. A synchronized block guarantees that stuff in one thread
| 376493 [shortcutter@] I don't think this is not scoped to mutexes: a memory barrier is
+ 376437 [pathsny@gm i] ah I see. So does each wait get the corresponding signal? so if I have
  376439 [shortcutter@] signals are not queued.  All threads waiting on the condition are
  376441 [pathsny@gm i] hmm ok Im confused now. Say the main thread completes really quickly and

ripl - an irb alternative - 0.3.0 released
376339 [gabriel.horn] ripl, a light modular alternative to irb, has reached 0.3.0. ripl
+ 376340 [shortcutter@] This looks interesting, although I would only use it if I need a shell
| + 376355 [ryand-ruby@z] So... you only advocate using 100% ruby-core + stdlib. Right.
| | 376367 [shortcutter@] Not exactly.  I am balancing benefits and costs.  For me using ripl as
| + 376364 [gabriel.horn] The point in giving a loc comparison is to draw attention to the
+ 376347 [sutniuq@gm .] Maybe a new hope for embedding an interactive Ruby in my GUI
| + 376356 [ryand-ruby@z] Luckily with it only being ~270 lines long, you can easily find what =
| + 376363 [gabriel.horn] Should be possible. I've been able to bring ripl to the web via
| + 376365 [gabriel.horn] Should be possible. I've been able to bring ripl to the web via
| + 376366 [martindemell] Give my guirb project a look: https://github.com/martindemello/guirb
|   376370 [sutniuq@gm .] I will have a look at it, definitely. I'm working mostly with wxRuby,
+ 376392 [hramrach@ce ] There is a serious issue with ripl.
| 376424 [gabriel.horn] For ruby < 1.9.2, you'll need to have readline installed. I'm
| + 376426 [ben@bl yt in] It is on recent debian and ubuntu with their rubygems. You can add
| + 376435 [hramrach@ce ] I installed on another machine and do not get the error.
|   + 376485 [gabriel.horn] If your install is building the readline_line_buffer extension
|   | 376495 [hramrach@ce ] Apparently bond requires readline development files but does not
|   | 376500 [gabriel.horn] sts
|   | 376501 [hramrach@ce ] I am running Debian so I need the libreadline5-dev package to get the
|   | 376549 [gabriel.horn] exists
|   | 376560 [hramrach@ce ] As expected
|   | 376563 [gabriel.horn] I'm happy to take patches if you figure out why readline.h is still being detected without a readline-dev package.
|   | 376584 [hramrach@ce ] It's not detected.
|   | 376672 [gabriel.horn] s the
|   | 376676 [hramrach@ce ] Yes, this now works perfectly for me.
|   | 376735 [gabriel.horn] lib
|   | 376753 [hramrach@ce ] Have you even tried?
|   + 376564 [markus@fi ch] May I ask which version you're using? Afaik you didn't yet mention it.
|     376572 [hramrach@ce ] Debian 6.0
+ 376393 [hramrach@ce ] How is it supposed to be used?
  + 376404 [ryand-ruby@z] You should probably fix that first.
  + 376427 [daniel@de u.] $ gem --version

Excel encryption
376344 [stuart.clark] I have a script which runs across a directory and opens Excel files,
376386 [jude.dashiel] Why not examine a file's properties before opening and if encrypted is found true in properties, forget to open that file?  How that's done with ruby I don't yet know though.

Rails Position(s) in Ft Lauderdale
376346 [kentilton@gm] It does not have to be at SUNLisp tonight*, but anyone with strong

Can't get class name
376350 [samnang.chhu] I am learning how to design a DSL by using const_missing, but I face a
376371 [shortcutter@] I am not sure what you are attempting.  But you should keep these facts in =

Rails Engineer for founding member role (SFBay)
376353 [andy@hh nc c] Started less than 6 months ago and and generated over $1million in Rev

gem: to_lang -- translating why to Japanese and back again ...
376358 [stephen.bann] $ ruby ~/Desktop/google-translate.rb

replacing inheritance with module inclusion, oh my
376362 [chastell@ch ] The problem: a Person should be an OpenStruct-like Entity, with the

mixin technique overrides variables
376373 [konrad.krol8] module Parent1
+ 376374 [mentionuse@g] It works this way because when you include Parent1, you give its initialize
+ 376377 [josh.cheek@g] module Parent1
+ 376381 [konrad.krol8] You're right, thanks for explanation ;)
  376387 [shortcutter@] IMHO this is a superior approach: define a method initialize for all

Rubygems, RVM and Bundler Confustion
376375 [lakshmanan@v] I am really confused with how these three (rubygems, rvm and bundler)
+ 376378 [steve@st ve ] If you 'gem install', it gets installed to your home directory. If you 'sudo
| 376380 [lakshmanan@v] thanks. what about a directory called .bundle in our app's root folder.
| 376401 [steve@st ve ] It contains a file, config, which is a YAML file that saves the options you
+ 376390 [hassan.schro] `gem env` will show you where things are getting installed (and a lot

Ruby, rubygame, eventmachine
376376 [thisredoned@] Hey guys.
376421 [thisredoned@] It seems to be working using EM.tick_loop but instead of require

Class Initialization?
376382 [kedar.mhaswa] I have a class and two class methods: self.encode and self.decode. The
+ 376384 [shortcutter@] it is executed at "class load time" which in Ruby is "class definition
+ 376385 [wagner.andre] class MyClass
  376406 [kedar.mhaswa] Robert, Andrew,
  + 376409 [wagner.andre] To answer this, grasshopper, I suggest you study this code, and figure out
  | 376465 [kedar.mhaswa] My n00b parser is stuck at class << self for I have to yet learn that
  | 376469 [wagner.andre] Well, there are two variables, on two different objects (the class and its
  | 376470 [kedar.mhaswa] Andrew!
  | 376474 [gwtmp01@ma .] Careful here. The attr* methods are manipulating instance variables and
  | 376494 [shortcutter@] class
  + 376432 [shortcutter@] Good!
  | 376466 [kedar.mhaswa] Perhaps these are the Ruby Pro techniques. I think I have to read more
  + 376447 [b.candler@po] And indeed, the execution of the code is what defines the class. The
    376467 [kedar.mhaswa] Brian,

Petition to add Metasploit Project as Ruby success story
376388 [Christian_Ki] I noticed the Ruby success stories on the Ruby website. I would like to mak=
+ 376410 [james@gr ys ] website? I'm referring to page=20
| 376411 [Christian_Ki] Thanks for the response. I had tried contacting the webmaster several times=
| 376416 [james@gr ys ] times but didn't hear back.
| 376418 [Christian_Ki] h4. Security
| 376419 [james@gr ys ] Rapid7, is an open-source penetration testing software that helps IT =
| + 376420 [Christian_Ki] Fantastic - and very fast! :-)
| + 376450 [b.candler@po] I hate "in the past year", as this information will automatically become
|   376451 [james@gr ys ] Excellent point.  Updated.
+ 376429 [heloeaa@ho m] I started a company, the main selling
threads.html
top