320812-381294

320611-412253 subjects 321007-339530

Weird conversion in IRB
320812 [jeremywoerti] For some reason I have this line I am pasting from a text file into IRB,
320813 [jeremywoerti] ok, let me re-phrase something. When I made the file, I didn't write it
320820 [jeremywoerti] ok, I've been reading more on it. I guess it's like unicode or
+ 320822 [s.korteling@] Splitting with a regex works.
+ 320848 [b.candler@po] irb(main):009:0> src.scan(/./u)
  320862 [jeremywoerti] wow, that's so weird, but it worked! Thanks man.

COMPUTER
320817 [agsangelina@] #click below websites which have been contain all the information

network proximity calculation
320826 [graysonpierc] I'm trying to do a home grown load balancing solution that needs to
320830 [brabuhr@gm i] traceroute -n -w 1 -q 1 $USER | awk '{sum += $3} END { printf ("%8.2f\n",sum)}'

Can't install rails with gem
320828 [joey.da3rd@g] joey@lab:~$ gem --version
320829 [joey.da3rd@g] o ya, ubuntu 8.10 intrepid ibex
320837 [maksim.ananj] try "sudo gem install rails" or fix access rights your local gem
320869 [joey.da3rd@g] OMG duh! I am still getting used to this "no root account" thing
320872 [michael.tome] That's odd. My Ubuntu box (8.0.4, I think) installs the gem in "./gems"

can't convert Hash into String
320831 [rajat79@gm i] I get an XML like this from a hotel API -
320846 [b.candler@po] It looks like address is a String
320876 [rajat79@gm i] Brian,

ISMM 2009 Call for Papers
320832 [hillelkolodn] International Symposium on Memory Management 2009

www jumpdates com - Free Online Dating
320838 [mckinneymbcr] www jumpdates com

jumpdates com - Free Online Dating
320839 [mckinneymbcr] jumpdates com

saymehi - Free Online Dating
320840 [mckinneymbcr] saymehi

asianeuro - Free Online Dating
320841 [mckinneymbcr] asianeuro

asiafuns - Free Online Dating
320842 [mckinneymbcr] asiafuns

asiafriendfinder - Free Online Dating
320843 [mckinneymbcr] asiafriendfinder

www asiafriendfinder com - Free Online Dating
320844 [mckinneymbcr] www asiafriendfinder com

method def in method vs method def in block
320847 [kdream95@gm ] class A
320852 [botp@de mo t] # class A

TMail now on GitHub
320854 [raasdnil@gm ] ...

2 dimensional array to single arrays
320857 [johnnybutler] I have a nasty loop which creates 2 single arrays from a 2 dimensional
+ 320860 [farrel.lifso] letters, numbers = ["a",1],["b",2],["c",3]].transpose
+ 320871 [michael.tome] my_array = [["a",1],["b",2],["c",3]]

how to wrap method of singleton class
320858 [ittay.dror@g] class Foo
320861 [jcoglan@go g] ...
320879 [ittay.dror@g] ...

How to use include? on an array of objects
320863 [pedrolito@la] [ product1, product2, product3 ]
+ 320866 [semmons99@gm] ...
+ 320867 [jcoglan@go g] ...
+ 320868 [matt@mo s. a] Given arr = [ product1, product2, product3 ], and you have a 'price'
+ 320881 [ryand-ruby@z] c'mon guys... teach a man to fish.

Nokogiri problem on Mac OS X
320864 [ranccis@gm i] I'm trying to install Merb, first thing I got was an issue with
+ 320896 [aaron@te de ] Did you install via ports?  Do you know what version of libxml2 you have
+ 320975 [ranccis@gm i] libxml2  2.6.30-1001
  321076 [ranccis@gm i] Just for the record (literaly) this issue was solved. It was caused

faster_csv vs File+split, why it is not faster?
320865 [paqs140482@g] ...
320870 [james@gr yp ] Is it true that File.split() is faster than FasterCSV?  Yeah, I bet it
320873 [paqs140482@g] ...

Putting string values into array
320874 [johnsheahan@] I have a string that contians about 20 names that are all seperated by a
320875 [stefano.croc] a.split ' '
320878 [mark@th ma z] actually just

BLT::Tabnotebook - tabnotebook.tcl not found
320877 [me@al en mp ] I tried to use BLT::Tabnotebook to put my existing Tk components in
320894 [nagai@ai ky ] I'm very sorry. Probably, it depends on a bug on tkextlib/blt.rb.
320911 [me@al en mp ] thanks, Tabnotebook.new works now.
320972 [nagai@ai ky ] I'm sorry. It's MY fault. =
321009 [nagai@ai ky ] Please try the following patch.
321199 [me@al en mp ] thanks for the patches!
321209 [nagai@ai ky ] the =
321281 [me@al en mp ] It works!

[SUMMARY] Unit Conversion (#183)
320880 [matt@mo s. a] The right way, generally, to do a task such as unit conversion is to

Error opening a file when filename is passed thru a variable
320883 [avr_1@ya oo ] wrong here ?
320900 [perfectly.no] I suspect that the command returns a string that ends in a

WhoIs lookup using Ruby
320885 [andrew@an re] Is there a Ruby class or an API I could use for conducting WhoIs lookups
320892 [andrew@an re] Nevermind - it looks like my best bet is going to be parsing the output

append new line to textfile
320886 [mmc_collins@] I want to create a text file and append a new line to the text file
320888 [semmons99@gm] ...
+ 320889 [s.korteling@] This will destroy the content of logfile.txt. For appending to a file
| 320891 [semmons99@gm] ...
+ 320890 [Rob@Ag le on] Eek! No, that's for a read/write file.  You want a mode of 'a' for

libxml-ruby segfault on CentOS 5 (64 bit)
320893 [swittenk@ya ] Wondering if anyone has had issues with libxml-ruby segfaulting on
320903 [jens.wille@u] you might want to have a look at the 0.9.3 release charlie just put out (see
321043 [swittenk@ya ] Yes, yes, oh yay! OMG...so happy. This appears to have fixed the issue.
321067 [jens.wille@u] yeah, me too :-)

ANN: ThirdBase: A Fast and Easy Date/DateTime Class for Ruby
320895 [code@je em e] = ThirdBase: A Fast and Easy Date/DateTime Class for Ruby

Mutlilingual rdoc
320901 [macarui@gm i] diferent languages?
320909 [aaron@te de ] You may need to use Rdoc 2 though.

Latent semantic analysis in Ruby
320902 [joe@jo ep wi] For anyone that's interested I've just put together an article on a

net/ssh for enable mode on cisco router
320904 [johnsheahan@] I am having trouble getting into enable mode and running commands on a
320939 [b.candler@po] Not a direct answer, but I found the Net::SSH API too cumbersome to use
320959 [johnsheahan@] Thanks alot Brian.
320994 [b.candler@po] Inside the git repo is an examples/ directory - but perhaps this didn't
321046 [johnsheahan@] Thanks Brian,
321065 [b.candler@po] require 'rubygems'

Need help understand an expression
320905 [buzzhill@ve ] Can someone explain the role of the "?" before the "x"
+ 320906 [m.fellinger@] sigma ~ % irb
+ 320907 [michael.c.li] irb(main):004:0> ?a
  320910 [buzzhill@ve ] Michael Fellinger

[QUIZ] Befunge (#184)
320908 [matt@mo s. a] -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+ 321031 [matt@mo s. a] Hopefully the quiz isn't intimidating... It's a fairly simple language
| + 321035 [robert.dober] No but the debugger is so much work, and without the debugger there is
| | + 321036 [matt@mo s. a] I tend to do (-1 + h) % h when I don't recall a language's particular
| | + 321116 [matt@mo s. a] Oops, yeah, handling . twice.
| |   + 321119 [matt@mo s. a] 037+"olleH":#v_@
| |   + 321156 [robert.dober] Oops got , and . mixed up.
| |     321200 [robert.dober] For those who want to play around I have extended Matthew's code with
| |     + 321201 [robert.dober] Update
| |     + 321205 [brabuhr@gm i] Cool, I took a quick run at adding these couple of extensions to my
| |       321206 [brabuhr@gm i] ...
| |       321473 [matt@mo s. a] Note that Befunge-93 was revised and extended a bit into Funge 98 (http://quadium.net/funge/spec98.html
| |       321475 [robert.dober] b.com/29673
| + 321089 [brabuhr@gm i] My first thought was a big case statement like that, but wanted
| | + 321092 [Rob@Ag le on] 1 1 + 2 3 + - .
| | | 321097 [brabuhr@gm i] Yeah, that would be part of the entirely untested stuff ;-)
| | | 321114 [matt@mo s. a] If you're going to fix the arg order of - and /, why wouldn't you do
| | | 321120 [brabuhr@gm i] Because I never read the spec?  :-)
| | + 321134 [brabuhr@gm i] class Befunge93
| |   321139 [einarmagnus@] ...
| + 321150 [frank.fische] ...
| + 321232 [frank.fische] ...
+ 321204 [adam.shelly@] My program follows. I tried to make it as self-documenting as
+ 321848 [matt@mo s. a] ====
+ 321877 [michael.c.li] ...

Using Hpricot with HTML's
320912 [ukbell@gm il] I have been working on this program for class all day and am not getting
320913 [aaron@te de ] Try using the body method.  post_form returns a response object, and you
+ 320916 [ukbell@gm il] Thank you so much!!! I can finally get past that part.
+ 320946 [ukbell@gm il] Just to continue along with this same program, I am now trying to change

Perl quoting convention that avoids excessive backslashes
320914 [kelly.terry.] $foo = qq%This string has both "quotes" and 'apostrophes'%;
320915 [stefano.croc] %Q["abc 'def]

Mechanize and encoding
320917 [mariusth@gm ] I'm trying to scrape a page that both HTTP-header and the HMTL document
321674 [bordelentout] I have had exactly the same problem and the same question.

wish list item: Method#to_proc
320918 [rogerpack200] would this be useful/theoretically possible?
+ 320919 [patnakajima@] Not great, since it relies on Ruby2Ruby, but it worked for what I
+ 320923 [ara.t.howard] class UnboundMethod
  + 320924 [rogerpack200] Cool, though I'll admit I don't understand exactly everything that goes
  + 320926 [patnakajima@] The main issue with this approach is that instances of UnboundMethod
  + 320936 [robert.dober] ...
    320956 [ara.t.howard] na, just have to perform the late binding in the caller's stead
    321583 [rogerpack200] Wow that is dang cool.

Printing right arrow vs. a sane progressbar library
320920 [ shot@ho .p ] I want to track the progress of a set of (forkoff=E2=80=99d) processes in
320922 [Rob@Ag le on] status=3D'.'*25; print status; (0...25).sort_by{rand}.each{|n| =20
320957 [ shot@ho .p ] [C" * n; print 'o'; sleep 0.5 }; print "\n"
320968 [Rob@Ag le on] I took a quick look at the code for forkoff and unless you're =20
320973 [ shot@ho .p ] =E2=80=99d

offline documentation for ruby
320921 [sumwo@ya oo ] Dear all
+ 320932 [shortcutter@] Try setting environment variable PAGER to more, e.g.
+ 321217 [nightphotos@] How did you install Ruby on Windows?

getting on the rubyforge announce list
320925 [rogerpack200] how does one get an announcement onto the rubyforge.org home page?  I'm
320950 [TimHunter@nc] I just do it old-school, by submitting a News item from my project's

[ANN] erbook 5.0.0
320927 [ snk@gn .o g] erbook : write books and documents in eRuby
320955 [deanwampler@] Interesting. I've been using AsciiDoc for DocBook creation. It's good
320977 [gregory.t.br] Though erbook sounds like a very cool project to watch, AsciiDoc just

Can I package a Ruby library?
320930 [youhaodeyi@g] I made a Ruby project which includes may Ruby source files. I'd like to
320931 [farrel.lifso] Rubygems are what you're looking for. Check out http://www.rubygems.org

How can I set default value for each column in a Database?
320934 [youhaodeyi@g] I created a database in my rails project and want to set default value
320937 [b.candler@po] Scroll down to "migrations", click "learn more"
320940 [youhaodeyi@g] Oh sorry for posting to a wrong forum. Thanks.

Ruby and SVG
320935 [Rolf.Kemper@] Dear ALL,
+ 320938 [serabe@gm il] Take a look at RMagick and RVG.
+ 320941 [kou@co mi ng] You can use rcairo that is the Ruby bindings for cairo to
+ 320952 [phlip2005@gm] libxml-ruby is going to handle SVG fine - but low level, without awareness of
| 320958 [Rolf.Kemper@] Philip,
+ 320963 [charles.nutt] JRuby + Batik!
+ 381294 [ahmed.eldawy] There's a new gem called Rasem.

Fibers (Ruby 1.9)
320945 [robert.dober] I am just beginning fooling around with Fibers. Than I had this
321014 [robert.dober] Let's say no news is good news, here is the generalization of the inject,

Storing Array in Hash
320947 [pluhveso@gm ] I am having the most insane time with Ruby's Hash class.
+ 320948 [luc@ho k- on] Hash#values_at returns an array of the requested values, so in your
| 320951 [pluhveso@gm ] Oh wow...I've been plugging away at this for 4 hours now and that just
| 320953 [shortcutter@] A good tool to try these things out is irb which comes with your Ruby
+ 320949 [stefano.croc] Try replacing lines like

Re: erbook 5.0.0
320960 [Diego.Viraso] I am sorry, I don't want to sound argumentative but when are you going
320965 [ snk@gn .o g] It depends really, as I have other open source projects to tend to and
320966 [ snk@gn .o g] Err, my response above seems to imply that because erbook is an open
320995 [ snk@gn .o g] Yes, AsciiDoc seems to provide a lot of nice time-saving shortcuts[1].
+ 320997 [james@gr yp ] That totally depends on the text editor.  For example, indentation
| 321001 [ snk@gn .o g] I've happily used indentation-based code folding in Vim and jEdit, so I
+ 321005 [gregory.t.br] Well of course, but I was suggesting something a little more polished

Free Girls Pictures,Chinese Girls Pictures,Russia Girls
320962 [yingwen@1d s] Free Girls Pictures,Chinese Girls Pictures,Russia Girls

In Depth: attr_reader/writer/accessor
320967 [merlin009_50] Can anyone explain exactly what happens when the interpreter interprets
+ 320969 [mguterl@gm i] HTH
| 320971 [gregory.t.br] Not an answer to the OP's question, but...
+ 320978 [dblack@ru yp] attr_reader and friends are private instance methods of the class
  320979 [merlin009_50] Not that I don't appreciate the other responses but this is exactly what
  325349 [dblack@ru yp] Sorry -- this got lost in the inbox pipeline. I have an answer for

Facets Series: Hash#rekey
320970 [transfire@gm] With the release of Facets 2.5 coming any day now, I decided it was a
321088 [transfire@gm] FYI. There was a problem with my rss feed (the urls were mungled). I

Ruby's new website
320980 [reddvinylene] Is it just me, or is Ruby's new website way too much? A jumble of bad
+ 320982 [sepp2k@go gl] What new website? ruby-lang.org looks the same it always did to me.
| 320984 [robert.dober] Copy that, however there is one suggestion I'd like to make.
+ 320983 [billk@ct .c ] Are we talking about this site? http://www.ruby-lang.org/en/

Problem with sqlite3-ruby
320981 [uzytkownik2@] % gem install sqlite3-ruby
+ 320987 [chris.lowis@] Is it this issue perhaps ?
| 320988 [radek.bulat@] T24gTW9uLCBOb3YgMjQsIDIwMDggYXQgMTo1NSBQTSwgQ2hyaXMgTG93aXMgPGNocmlzLmxvd2lz
| 320993 [chris.lowis@] Apologies for that, I post through ruby-forum and haven't seen your
+ 320989 [mguterl@gm i] Regards,
  321016 [uzytkownik2@] Thanks.

string problem
320985 [ganesh.dc@gm] mysql query
+ 320990 [dblack@ru yp] You'll probably get more responses to ActiveRecord questions on the
+ 320991 [michal.kurek] test666> arr = %w(a b)

Re: [merb] Ruby's new website
320986 [mguterl@gm i] A lot of people are going to read the last sentence above and write

Ruby 1.9 binary on ruby-lang.org not built with zlib?
320998 [poddster@gm ] The binary 1.9 package that's foudn on the ruby website doesn't seem to
321110 [rogerpack200] I'd ask core :)

what's wrong with this method
320999 [aditya15417@] can someone tell me what's wrong with this method??
+ 321000 [matt@ti bi s] Your pastie consists of a two-line method definition, to_out().
+ 321002 [wpdster@gm i] ...
+ 321003 [poddster@gm ] You have a syntax error, for a start. Is this the problem you mean?
  321013 [aditya15417@] I just want it to return a string.. and for the second line I want to
  + 321018 [poddster@gm ] Only the _LAST_ statement in a function is the return value. So put that
  + 321020 [mark@th ma z] That's exactly what they gave you. Did you try it?

Can you run a command line script with arguments, without typing 'ruby' first?
321006 [williams.jay] I would like to do this -> my_script arg1, arg2
+ 321008 [diogoslisboa] chmod a+x my_script (restrict permissions if you want)
| 321022 [williams.jay] I am using win os, so the shabang thing isn't an option for me. I put
| + 321023 [damnbigman@g] ...
| | 321024 [damnbigman@g] ...
| | + 321027 [williams.jay] The associations are correct. I reset them just to be sure though. I
| | | + 321030 [kyleaschmitt] Jayson,  hum.  I guess that makes sense.  Now that I'm thinking back I
| | | | + 321034 [pit.capitain] FWIW, I never had problems calling Ruby scripts with command line
| | | | | 321057 [mo_mail@on h] 1. Add Ruby Interpreter path to your path to make sure that you can run
| | | | | 321094 [williams.jay] Mohit,
| | | | + 321042 [jorrel@gm il] ruby my_script %*
| | | + 321095 [daniel.schoe] Are command-line arguments included in the file association?
| | |   + 321098 [williams.jay] Daniel,
| | |   | 321106 [daniel.schoe] I don't remember the exact menu/option names, but this should be
| | |   | 321352 [williams.jay] Frustratingly, I got this working fine at work. I can type
| | |   | 321379 [mo_mail@on h] In general, you should need to type in the extension as part of the
| | |   | 321430 [williams.jay] Mohit,
| | |   | 321431 [mo_mail@on h] me too :)
| | |   + 321101 [mo_mail@on h] OK!  I have it here... I just checked through the Windows XP stuff on my
| | |     321103 [williams.jay] WoooHooooo!!! That did it. The arguments were there except the last
| | |     321104 [mo_mail@on h] You're most welcome :)
| | + 321056 [mo_mail@on h] You can associate .rb files with the Ruby Interpreter - that should do
| + 321025 [kyleaschmitt] Jayson, if your not on a real OS, you need to associate the extension
|   + 321026 [damnbigman@g] ...
|   + 321099 [james.britt@] That  *used* to happen when installing the 1-click[sic] version.
+ 321010 [tim.pease@gm] on any *nix platform, make the script executable and put a hash-bang
  321012 [diogoslisboa] Yes, I forgot the shebang.
threads.html
top