378525-379479

378313-379413 subjects 378734-380485

^ Re: Cann't require UTF-8 files.
378525 [pedrolito la] Is there a way to avoid adding this magic encoding line in each file?
+ 378526 [josh.cheek g] Run with -Ku flag.
| 378544 [drbrain segm] This is not a good solution for library code.=
| 378547 [no spam.plea] Right. Is there a good reason why Ruby can't just detect a UTF-8 BOM?
| + 378550 [cmdjackryan ] The use of a byte order mark is optional. Bit hard to detect what
| + 378564 [jeremy bopp.] Using a BOM would break shebang processing.  It's not a problem for
|   378574 [flo andersgr] I usually recommend not using UTF-8 in source at all and
|   378636 [pedrolito la] This makes the views (in RoR) unreadable, also we somehow lose
|   378651 [flo andersgr] I think at least the "unreadable" part is debatable. Autocompletion =
+ 378539 [gwtmp01 mac.] If the encoding declaration isn't in the file itself then where exactly =
+ 378553 [ibc aliax.ne] If it's metadata, why are you using "require 'file'" instead of

^ [ANN] test-unit 2.2.0
378529 [kou cozmixng] % sudo gem install test-unit

^ program to rename files : improvements
378530 [giovi.alvera] directory. The program lets you choose the directory,
378586 [jfreeman88 g] What up Gio,

^ RubyGems search using Picky
378533 [florian.hank] I've written a new style RubyGems search. Try it here: http://gemsearch.heroku.com/

^ Need help with Report and Logging capabilities with Test::Unit
378534 [nevesagar gm] I am new to whole unit testing thing.  I am starting to use
378551 [nevesagar gm] Anyone ???

^ New Version
378540 [rick.denatal] Announcing ri_cal version 0.8.8

^ Ruby SoC
378543 [anurag08priy] I am curious to know if Ruby Summer of Code will happen again this

^ How to get the input from.
378545 [vidgameteste] I want to know, what code i use, if someone doesnt enter the correct
+ 378584 [jfreeman88 g] I'm a bit new to Ruby, but in other langs a common approach is to put
+ 378629 [groups inbox] Avdi Grimm

^ hiring query
378546 [a.b.federico] I am searching for ways to recruit a part time Rails programmer in the
378561 [lorenzo.brit] well, im from other country but for little earnings i can hel you with

^ Hot Sameera Hot Cleavage show - Download
378552 [malathi1104 ] Hot Sameera Hot Cleavage show - Download

^ Assign Ruby string value to Javascrip variable?
378558 [raymanojin g] Is it possible to assign a ruby string value to a javascript variable?
+ 378559 [lorenzo.brit] yes you can, but where you are doing it, in the view.js.erb file?
| + 378560 [lorenzo.brit] i did something like these
| + 378562 [edmond.kacha] 2011/2/15 Lorenzo Brito Morales <lorenzo.brito@gmail.com>
+ 378592 [echristopher] I'm guessing the problem is that you're using string interpolation

^ Ruby(and programming) beginners question regarding 'NoMethodError' while using Hpricot
378563 [sndpgr hotma] I am trying to build a web scraper which fetches Fundamental data for
+ 378565 [estanis etre] The #search method returns an Hpricot::Elements object, which is somewaht
+ 378652 [sndpgr hotma] Thank You! very much Estanislau
| 378655 [estanis etre] The #next_sibling method was not working because you were using it on the
+ 378742 [sndpgr hotma] Thanks! for the link Estanislau.
+ 378973 [sndpgr hotma] I tried to find the class of the object on which I am using the method

^ How does slice work?
378566 [friedoysterl] x.slice(parameter 1, parameter 2)
+ 378567 [shortcutter ] ri String#slice Array#slice
+ 378569 [friedoysterl] Thanks - I'm still a little bit confused.  Where does the slice
| + 378570 [michaeltbake] It selects the number of elements given by the second parameter,
| + 378571 [johnf bitsbu] You pick a starting point to slice and then a number of items to
+ 378573 [friedoysterl] Thanks - very clear!

^ [ANN] kgio 2.3.2 - OpenBSD build fix
378568 [normalperson] kgio provides non-blocking I/O methods for Ruby without raising

^ Raise error with flexmock?
378572 [rfsllc gmail] I am trying to raise a Timeout::Error with a spec but can't seem to get

^ Explain private methods?
378575 [friedoysterl] When you use the word "private" to clear private methods - what does it
378576 [ben bleythin] That's basically correct, yes. Technically it means that the method

^ What does << do?
378577 [friedoysterl] @rooms << Room.new(reference, name, description, connections)
+ 378578 [sebastian.ba] imho << reads Room.new(reference, name, description, connections) _into_ @rooms
+ 378579 [stu rubyprog] It adds an instance of Room to the @rooms array
+ 378580 [john johngea] It places a new room in @rooms.  Imagine this
+ 378581 [johnf bitsbu] The answer is, "it depends on what @rooms is". In Ruby, (almost)

^ confusing tlsmail error Bad login (Net::POPAuthenticationError)
378587 [tdbtdb gmail] I am trying to execute an example listed on
+ 378588 [b.candler po] "-ERR Bad login" is the actual response from the POP3 server. It means
+ 378589 [tdbtdb gmail] Oops, never mind. I was having a problem earlier with the password, so

^ Re: Arcadia ide 0.9.3
378591 [antonio.gale] I had disactivate tk rad extension for now, because it is instable, it

^ Error from Data_Wrap_Struct when class is inside a module
378593 [zatomic dizz] I'm playing around with writing a ruby extension in C and I'm getting

^ What is the purpose of "initialize"
378594 [friedoysterl] Why do you need initialize and what do you put in the parameter after
+ 378597 [stu rubyprog] It's called a constructor in other languages. it can be used to initialize
+ 378598 [percent20 gm] the initialize method is your constructor it is called when you create a new
+ 378599 [surprisevall] Well, it is called by default when one instantiates an object from a class.
  378600 [surprisevall] I should have said "from which all objects are derived"...

^ Why use a symbol in place of a variable?
378595 [friedoysterl] (working from Peter Cooper's Beginning Ruby book, p. 155 of the book)
+ 378596 [johnf bitsbu] A symbol and a variable are two different things. A symbol is
| 378601 [learnsanjeev] This is quite good tutorial about symbols and strings here
| 378604 [chris chrisk] Along with what John Feminella said about symbols' immutability is the
+ 378609 [rubfor recit] Another way to look at it is a symbol is it is an emnumerated scalar.
  378611 [johnf bitsbu] I don't think that's an accurate characterization, imo, since symbols

^ How to read CSV in Ruby 1.9.2
378602 [phantom.hitm] I am totally new to rails. I have a school project that requires me to
+ 378603 [chris chrisk] Simple example...
| 378606 [james grayso] through
+ 378640 [catsquotl gm] I wondered that myself last week and came up with..
  378719 [thopre gmail] this code is not really a good solution

^ use pipe with net/ssh
378605 [pim lingewou] I'm trying to figure out how to use a pipe with the net/ssh class. I

^ RoR Positions in DC, Chantilly & Remote
378607 [lwarrenii gm] I have an immediate need for Ruby on Rails positions in Chantilly, DC
378659 [vbatts hashb] This would be better served on the NoVA RUG mailing list

^ Can i install a voice recognition engine with rails application on to the server
378608 [rajesh.13kit] Can i install a voice recognition plugin/engine which converts the

^ Receivein a Post Attribute
378610 [mrbayene hot] This should be quite easy but I can't for the life of me find a
378612 [sutniuq gmx.] This is the Ruby mailing list, not the Rails one. Rails may be written
378616 [ben bleythin] Except this isn't a rails question at all.

^ Marshal data too short
378613 [mfcoder-ap y] On Ruby 1.8.7.
+ 378644 [shortcutter ] Are you using binary IO?  I.e.
+ 379479 [mfcoder-ap y] Thanks for the response.  I've been distracted from this issue by more

^ Web frameworks
378614 [matt technor] What are the current web framworks that are well thought of an supported?
+ 378615 [flo andersgr] Have you had a look at Padrino? It's build on Sinatra, but smaller than Rail=
+ 378617 [richard.conr] Sinatra is good, Padrino is another option built on Sinatra that contains a

^ Defining class methods
378618 [tony.arcieri] It seems there are 3 ways of defining class methods (at least in common
+ 378622 [anurag08priy] Do
| 378628 [groups inbox] This one. That way you can always tell simply by looking at the method
+ 378630 [botpena gmai] 4) Explicit definition
| + 378631 [groups inbox] I avoid this one because it makes class renames more of a chore.
| | 378634 [botpena gmai] Indeed. and that's what i like i about it. makes me think more on the
| + 378635 [johnf bitsbu] There's lots of ways to add a class method; Ruby is not a very
+ 378641 [shadowfirebi] I don't mean it as a put-down; I suspect the only person I'm putting down is myself.   But I don't find that class methods actually come up much in my Ruby coding; when I find myself coding one I tend to stop and think hard about whether I actually need it.
| + 378654 [groups inbox] is myself. =A0 But I don't find that class methods actually come up much i=
| | 378656 [johnf bitsbu] I don't know if I'd go so far as to say they're a code smell. Without
| + 378662 [tony.arcieri] Well, more specific than DSLs: metaprogramming, and DSLs that generate code.
+ 378669 [sean.ohalpin] Do

^ Treetop - parsing to nil result
378619 [chrisrose.ch] please forgive a very novice question on what may be an arcane topic.  I
+ 378621 [ryand-ruby z] the
+ 378623 [no spam.plea] A nil result means your parser failed to parse all the input.

^ Re: regex simplifier?
378624 [rogerpack200] [:blank:]
378642 [shortcutter ] Did I mention that what Ari and I cooked up a while ago is a gem?
+ 378643 [eben.b.smith] Hey gang,
+ 378682 [rogerpack200] Cool, but the default rdoc's don't explain its use easily...perhaps
  378690 [shortcutter ] Errr, the project got stuck along the way as there did not seem to be

^ capturing stderr for a file
378625 [flethuseo gm] I am trying to run a script from ruby, but it produces some output to
378627 [groups inbox] output = `./script.sh #{e} 2>&1`

^ net/ssh in ruby. ssh.exec fails
378632 [jarodzz gmai] I just finished install net-ssh-2.1.0.gem.

^ ruby1.9 - require "debug" and output when stdout is not a terminal?
378637 [marco-oweber] cat >> test.rb << EOF

^ system firefox returns false. Why?
378638 [u.gotzes goo] irb(main):001:0> system "firefox.exe"
378639 [chris chrisk] I'm not on a Windows machine, so I can't replicate, but system should return

^ ActiveRecord 3 group+select
378645 [esis_coder l] select, the new finder methods in ActiveRecord 3.x so I have this

^ Ruby code in Haml
378646 [raymanojin g] How do I embed Ruby code in Haml? I am passing an array via a get
378647 [brister pobo] You need '-' at the start of a line with ruby code otherwise haml just
378653 [b.candler po] I think it's clearer to use regular HAML insertion inside the block,

^ question about modules
378648 [James.French] I have a main.rb file which is the entry point for a system. It loads a lot=
378649 [shortcutter ] No.
378650 [James.French] ot of other ruby files using 'require'. I would like to put this whole syst=

^ Distributed libraries without Git?
378657 [ch.blank gma] Hey,
+ 378658 [johnf bitsbu] I'm a little confused by this. Bundler doesn't care what version
+ 378660 [ch.blank gma] gem "rails", :git => "git://github.com/rails/rails.git"

^ WatirSplash 1.1.1 Released
378661 [jarmo.p gmai] Biggest improvements in the new WatirSplash is it's support for Linux,

^ Re: Problems with gems and Ruby 1.8.7
378663 [leo.mike gma] And the beat goes on...

^ catch and throw?
378664 [friedoysterl] Can someone explain to me how catch and throw works?
378668 [mentionuse g] Unless you have a very specific question, you'll find a lot of resources

^ How does parse work?
378665 [friedoysterl] How is it different from split? chomp?
378667 [mentionuse g] You might find reading the documentation and having irb is useful to

^ problem to update ruby
378666 [maite.piedra] I  have to try to update ruby version I have a mac

^ Please help me to creating model of server
378670 [releu me.com] 1) accept and maintain a connection of clients
+ 378671 [chris chrisk] Without getting too far into the details of what your server is going to do,
+ 378672 [ben bleythin] As Chris said below, you need GServer :)
+ 378675 [releu me.com] Thanks! :)

^ Ruby reflection - get method definition as a string
378673 [adamlauper g] the actual test to the console or store it to a file.  The tests are
+ 378674 [anurag08priy] # test.rb
| 378679 [flo andersgr] In Ruby 1.9, you can retrieve the place where the method was defined =
| 378680 [echristopher] Cool, I didn't realize you access the source file using tap and rewind.
+ 378701 [quixoticsyco] I just released a gem which gives access to the source code of methods
  378702 [johnf bitsbu] I haven't looked at James's gem, but if live_ast can map AST

^ question re: small piece of code
378677 [friedoysterl] young_people = people.find_all do |p|
+ 378678 [ryand-ruby z] it
+ 378681 [jakekaiden g] question re: small piece of code

^ Installing Mysql directly or using XAMMP
378683 [hbailey17 ny] Can anyone tell me what is the difference between downloading MySQL
378684 [echristopher] The MySQL web site will always have the newest version -- at least in

^ LiveAST: a pure Ruby 1.9.2 library obtaining live abstract syntax trees
378685 [quixoticsyco] = LiveAST
378694 [eule space.c] good news!
378716 [stephenp agr] how does this work exactly?  It hooks into the require / eval

^ Undefined method `+'
378686 [danny.lupine] hey guys the following line of code is producing a "undefined method
378687 [sduncan weta] What is the content of @plays?
378697 [johnf bitsbu] Is it an "undefined method '+' on NilClass"? If so, you forgot to
378706 [Rob AgileCon] def plays=(v)
378707 [johnf bitsbu] Whoops, that's what I get for copy-pasting into the wrong segment. You

^ Problem: open-uri blocking redirection from http to https
378688 [xdelcastillo] I was working on a small script to verify the presence of an element
379123 [akr fsij.org] Currently it is not configurable (as the comment says) except monkey patching.

^ Cross-compiling ruby
378689 [psander tivo] I want to build ruby in a cross-compile mode in which the results of a comp=
378725 [psander tivo] Thanks to an offline pointer, this is the revised build procedure that buil=

^ OpenSSL signature method == null?
378691 [christian.b.] I'm using OpenSSL to generate an x.509 certificate used for document
378695 [b.candler po] $ openssl x509 -in ert.pem -noout -text
378720 [drbrain segm] cert.sign key, OpenSSL::Digest::SHA1.new

^ rvm install 1.9.2-head -- errors while running make.
378692 [jtmiller gma] I'm attemping to install Ruby on Ubuntu 10.04.
378693 [peterhickman] So just what does it way in /home/shmup/.rvm/log/ruby-1.9.2-head/make.log?
378717 [jtmiller gma] Ahh haha, sorry Peter. It was 5:30a when I typed that, and was already tired

^ Ruby 1.8.7 patchlevel 334 released.
378696 [shyouhei rub] We have several fixes for Ruby 1.8.7 today, two of which are security

^ [ANN][Security] Ruby 1.9.1-p431 is released
378698 [yugui yugui.] Ruby 1.9.1-p431 has just been released. This contains a fix for

^ [ANN][Security] Ruby 1.9.2-p180 is released
378699 [yugui yugui.] Ruby 1.9.2-p180 has just been released. This contains a fix for

^ Html + Javascript + Ruby
378700 [bianca.steph] <script type=3D"text/javascript">
+ 378703 [blazeroot gm] params["+ tarefa +".to_sym][:input]
+ 378740 [b.candler po] You can use <input type="hidden"> to put any extra variables you want
+ 378794 [bianca.steph] params["+ tarefa +".to_sym][:input] doesn't works.
+ 378795 [bianca.steph] nether params[:tarefas]
| 378796 [blazeroot gm] What parameters do You get in your server log?
+ 378798 [bianca.steph] [4;36;1mSQL (1.3ms)[0m   [0;1mINSERT INTO "nome_tarefas_fluxos" =
| 378800 [blazeroot gm] So, You have array 'terefas'. You can get that two values "cccccccccc" this=
| 378804 [josh.cheek g] If this doesn't work, try
| 378832 [bianca.steph] params["tarefas"]["0"]["input"] works perfectly...
+ 378801 [bianca.steph] You have a nil object when you didn't expect it!
  378803 [blazeroot gm] Paste here code where You're trying to get that value, please.

^ Help for extracting text with regexp.
378704 [netiqicufeni] I'm having some trouble with the regexp :/
+ 378705 [peterhickman] You know what they say, if you choose to use a regex you've got
+ 378708 [jgabrielygal] irb(main):001:0> require 'uri'
+ 378713 [botpena gmai] there are many ways.
+ 378714 [netiqicufeni] Thanks a lot for your help ! :D

^ CSV in Ruby 1.8.7 and 1.9.2
378710 [ronaldrails ] csv_string =3D CSV.generate(:col_sep =3D> "\t") do |csv|
378712 [james grayso] That's because Ruby 1.8.7 has a different CSV library.  You'll need to =

^ CSV with Ruby 1.9.2 and 1.8.7
378711 [ronaldrails ] csv_string =3D CSV.generate(:col_sep =3D> "\t") do |csv|
+ 378715 [chris chrisk] First and possibly most important, the CSV implementation is completely
| 378806 [ronaldrails ] c,
+ 378805 [ronaldrails ] I tried set UTF-8 like you, but didnt works with 1.9.2. I got the same

^ 2011 saw the best cars
378718 [0160088826s ] Section 560 of the cars in 2011

^ question for newbie
378721 [nericlau gma] a = << END_STR
+ 378722 [Rob AgileCon] It means that you can't have a space or it looks like you're trying to
+ 378723 [stu rubyprog] you need to remove the space between << and END_STR for the heredoc to work
+ 378724 [jstewart fus] That's called a heredoc string. See

^ [ANN] hoe-seattlerb 1.2.5 Released
378726 [ryand-ruby z] hoe-seattlerb version 1.2.5 has been released!

^ [ANN] ZenTest 4.5.0 Released
378727 [ryand-ruby z] ZenTest version 4.5.0 has been released!

^ [ANN] RubyInline 3.9.0 Released
378728 [ryand-ruby z] RubyInline version 3.9.0 has been released!

^ [ANN] ParseTree 3.0.7 Released
378729 [ryand-ruby z] ParseTree version 3.0.7 has been released!

^ HTTParty - Proper way to do Digest Authentication?
378730 [rgc3679 yaho] I'm wanting to use HTTParty to login to secure server using digest

^ [ANN] ruby_parser 2.0.6 Released
378731 [ryand-ruby z] ruby_parser version 2.0.6 has been released!

^ [ANN] flog 2.5.1 Released
378732 [ryand-ruby z] flog version 2.5.1 has been released!

^ [ANN] flay 1.4.2 Released
378733 [ryand-ruby z] flay version 1.4.2 has been released!
threads.html
top