359513-361602
359310-360433 subjects 359701-360157
^ Raw data in xml
359513 [dhf0820 gmai] I have a array of lines that are actually a final document that I need
^ sort elements
359521 [juangf7 gmai] write a program that counts how many times a word appears in a text.
+ 359522 [ryand-ruby z] Read aloud what the code says, translated to natural language (English =
| 359524 [juangf7 gmai] CONVERT THE TEXT IN LOWER-CASE AND THEN SPLIT THE TEXT INTO SINGLE
| + 359525 [boesemar gmx] b.uniq.map { |uw| [b.count(uw), uw] }
| | + 359527 [juangf7 gmai] Thank you Martin! I'm learning Ruby and I love it, Thank you Martin and
| | + 359530 [jgabrielygal] irb(main):001:0> s = "car car ice ice house ice house tree"
| + 359550 [ryand-ruby z] (English=20
| 359567 [juangf7 gmai] I'm overwhelmed for your support, that's very cool from you guys :)
+ 359532 [phrogz mac.c] irb(main):001:0> s =3D "car car ice ice house ice house tree"
359538 [juangf7 gmai] Thank you Jesús & Gavin, I now have enough concepts for studying this
359542 [shortcutter ] Well, OK, that is not really an explanation - but it describes the
^ Converting file from utf-16 to utf-8
359535 [mail_noxx we] I'm currently rewriting an old php-script in ruby.
359536 [sakuro 2238c] Iconv.iconv takes "to" encoding first, followed by "from" encoding.
359537 [mail_noxx we] Oh man.. that's really... uhm.. *head->wall*
359560 [walton vyper] Heh, I'm sure everyone here has never, *ever*, _*ever*_ made a mistake
^ what's the suggested raise Exception idiom?
359541 [nbeyer gmail] raise ArgumentError, "the argument was invalid"
359545 [shortcutter ] I believe raise a,b,c,d... is merely syntactig sugar for raise
359557 [Gennady.Byst] Not exactly so. According to the passage from RI below, "raise" with an exc=
359565 [shortcutter ] xception class as a first paremeter accepts up to 2 additional parameters -=
359584 [Gennady.Byst] exception class as a first paremeter accepts up to 2 additional parameters =
^ [ANN] PluginFactory 1.0.6
359544 [ged FaerieMU] Version 1.0.6 of pluginfactory has been released.
^ SQLite3 Exception
359553 [miles appcon] SSBoYXZlIGEgc2ltcGxlIElSQyBCb3QgdGhhdCdzIHJ1bm5pbmcgd2l0aCBBY3RpdmVSZWNvcmQg
+ 359561 [phrogz mac.c] te3 DB.
+ 359603 [ninja slapha] What happens when you try to access the file with the sqlite3 binary? Or with,
360507 [jeremy hineg] It will be the permissions on the directory. SQLite needs to write its .journal
^ how to install nokogiri
359558 [myocean135 y] in my terminal
+ 359562 [shucao gmail] $ sudo `which gem` install ...
+ 359563 [8si.greg gma] If your account can see ruby in /usr/local but root (sudo) can't, then
359569 [myocean135 y] i use the command to install nokogiri successfully
359572 [myocean135 y] sudo /usr/local/ruby/bin/gem install nokogiri
+ 359581 [walton vyper] Netbeans comes with it's own JRuby installation which can't share gems
+ 359582 [ravenz o2.ie] require 'rubygems' before require 'nokogiri' or ruby -rrubygems
^ win32/process Process.create failure
359564 [stead.mike g] require 'win32/process'
359587 [rogerpack200] Mine seems to work ok.
359600 [stead.mike g] installs\bin\ack.pl asdf --ruby')
359601 [rogerpack200] I assume this does work then?
^ Manipulating an Array Element
359568 [saeed.bhuta ] I am saving some html code in an Array, I then want to extract certain
359575 [phrogz mac.c] What difficulty?
359577 [saeed.bhuta ] require 'rubygems'
359579 [Rob AgileCon] =EF=BF=BD #in this part, I have tried various =20
359580 [saeed.bhuta ] platNo = img['src'].to_s
^ Learn Ruby - Lesson 0: Setup and Installation
359570 [space.ship.t] I'm writing a tutorial for beginners, primarily aimed at Teachers and =
359571 [juangf7 gmai] # Do you wear a watch? Ruby can help you out!
359573 [space.ship.t] Oh yes, Thanks - I've fixed it :)
359574 [jgabrielygal] puts "The time is: #{Time.now}"
^ On procs and methods
359576 [davinciSINSP] I have a question about procs and methods. Why is not possible to invoke
+ 359604 [ninja slapha] Because the syntax for calling a method always calls a method. Let me put it
+ 359625 [albertschlef] (The following is only a guess.)
| 359638 [davinciSINSP] Thank you for all your responses. Now I see better what is the problem.
+ 359631 [shortcutter ] irb(main):001:0> def foo(*a) printf "method called%p\n", a end
^ class instance variable visibility to nested modules...
359585 [grary.stimon] I'd like to organize the inner namespace of a class s.t. an inner, or
359586 [shortcutter ] Yes and no. If you use constants, then you can access them. Even
^ call a ruby script from html
359590 [tcblues gmai] I would like to call a ruby script from a html page passing a few
359591 [richard.conr] Not too sure what you are trying to do here. The fact that you are invoking
+ 359592 [tcblues gmai] What I'm trying to do is to call a ruby script that admits parameters.
| + 359594 [richard.conr] There are a couple of exotic ways to run ruby in your browser. All of them
| + 359599 [boesemar gmx] I don't know of any browser what would execute the file, even if
+ 359593 [mjtanton gma] If the ruby script doesn't rely on being run on the server, you could try
359595 [tcblues gmai] but in HotRuby only a few implemented methods are allowed. :(
^ How to create an infinite enumerable of Times?
359602 [abaranosky h] I want to be able to have an object extend Enumerable in Ruby to be an
+ 359605 [ninja slapha] First learn to implement Enumerable, then it should be obvious. All you need
+ 359606 [Rob AgileCon] require 'date'
+ 359608 [abaranosky h] Thanks guys, great stuff.
| 359613 [abaranosky h] module LazyEnumerable
+ 359630 [shortcutter ] IMHO you are abusing #succ here since it is intended to return the
^ Arrays
359607 [mailtorajuit] i have an array contains no of elements. i want to concatinate 91 before
359609 [mjtanton gma] a = ["234","456","raju"]
359611 [brandon.g.jo] And the short form
359649 [shortcutter ] a = %w{123 456 raju}
359673 [brandon.g.jo] oh yeah?!? well take this
359677 [shortcutter ] You're absolutely right. My main point - which I failed to mention -
359908 [ jbw jbw.cc] I think %w[] would be more syntactically meaningful than curly
^ Read & Write data on the web.
359610 [josevemon7 g] What do I need to read & write data from the web? I simply want to have
359623 [josh.cheek g] I'm going to suggest checking out Peepcode's Sinatra screencast. It's a
^ Help a noob.
359612 [dr_omar_vele] Ok, I have been programming for two days now. Ruby is my first
+ 359614 [gdprasad gma] puts 'Maybe, your favourite number should be ' + NFnum.to_s + '.'
+ 359616 [josh.cheek g] As you have realized, you need to convert the the age and Fnum to integers
+ 359617 [jgabrielygal] Welcome ! I hope you enjoy it.
+ 359619 [martindemell] Chris Pine's "Learn To Program" is great. The main thing is not to
^ hash problem
359618 [nelreth gmai] I have small problem with adding data to hash table
+ 359620 [shortcutter ] counters = Hash.new 0
+ 359621 [jgabrielygal] irb(main):007:0> h = Hash.new(0)
359624 [nelreth gmai] Ok - I know how to increase counter - bigger problem is with how to find
+ 359626 [jgabrielygal] First of all, with the mechanism of the default value you don't need
+ 359628 [fred lacave.] It should. Show us your whole code, not just snippets - the problem
359632 [nelreth gmai] login = 'aaa'
+ 359633 [shortcutter ] ach do |uid|
| 359637 [nelreth gmai] Yes - MatchData - the problem is solved :)
+ 359648 [Rob AgileCon] You can still simplify this with the suggestion that you received from
^ Unit Testing : line by line ?
359627 [loic.lehenaf] I would like to verify some properties in a method, line by line. For
+ 359629 [ryand-ruby z] why?
+ 359635 [jgabrielygal] The minimal unit for unit testing is a method. If you find the need to
+ 359685 [vikkous gmai] I think the straightforward way to do this kind of thing is to use
^ How to create mutiple hash dynamicaly
359634 [thillaibooks] help me.
359636 [ljjarvis goo] You need to provide more information before anyone can help you. Your
359640 [thillaibooks] How to create mutiple hash like this
+ 359641 [peterhickman] Something like
+ 359642 [jgabrielygal] It would be clearer if you specified with a code example the input
359643 [jgabrielygal] se
359644 [jgabrielygal] irb(main):006:0> first_array.zip(second_array).map {|(k,v)| {:name =>
359656 [thillaibooks] Thanks for all replies
^ Actuve Record
359639 [mailtorajuit] in my application , i have 2 tables subjects and teachers. the relation
359665 [josh.cheek g] Rails list at http://groups.google.com/group/rubyonrails-talk
^ out of range problems and odd number hashs
359645 [artemisc360 ] I am building a program that calculates the data points of a circle
+ 359646 [jgabrielygal] The following works for me (I changed the 2 to 2.0 and used string
+ 359647 [peterhickman] Can we see more context for this code. For the life of me I can't see why
359650 [peterhickman] Additionally
359651 [shortcutter ] Btw, no need for "3.14" - there is
^ WhiteBoard Class (for these Boids)
359652 [gmkoller gma] This seems to work with decent performance but I have little/no
+ 359653 [peterhickman] Minor quibble. The code dies not run for me under 1.8.7
| 359654 [wagner.andre] I would be very interested in hearing more about what problem is being
+ 359689 [vikkous gmai] I'm still trying to understand what you're doing. Sometimes, your
359699 [gmkoller gma] SUMMARY
359702 [gmkoller gma] PS I meant to mention that I did a quick check to use Marshall Dump
^ how to revise the programm to analyze web?
359655 [myocean135 y] the following programme can run successfully,i can get a table
359660 [jgabrielygal] =3D1'))
^ problem sorting
359657 [augus1 umbc.] I am trying to sort an array using a block but somehow I am not seeing
+ 359658 [glennj ncf.c] You're not assigning the tiebreaker back to the 'result' variable
+ 359659 [jgabrielygal] unt]
359664 [Rob AgileCon] .sort {|a,b|
^ index of string from beginning of line vs beginning of file
359662 [jessebos aol] I am trying to write a basic script to implement "silent comments"
359663 [jgabrielygal] It says: If passed two Fixnum objects, returns a substring starting at
359670 [jessebos aol] Thank you Jesus,
359678 [jgabrielygal] infile = File.read("input.txt")
+ 359719 [jessebos aol] Thank you again for your help.
+ 359724 [shortcutter ] If you slurp in the whole file anyway then you can do
359728 [jessebos aol] Thank You Robert,
359744 [jgabrielygal] I think there's no solution to that. I mean, the requirement is to
359746 [shortcutter ] e)
359770 [jessebos aol] thanks robert, thats perfect!
^ Threading an email queueing system
359666 [nadaness gma] I needed an email queueing system for a project I am writing. The
359667 [nadaness gma] Actually looking it is terminating when i call mysql.free after
^ Last Call for Ruby Midwest Speakers
359668 [lpillow gmai] With less than a week left, the Ruby Midwest Conference is still accepting
^ Print from irb to CUPS daemon
359669 [byrnejb hart] I have googled for this topic but cannot seem to find anything
359789 [kbloom gmail] my_lp = IO.popen("lp -d printername")
^ All contiguous subsets
359671 [rubytalk che] I know the ruby community is filled with algorithmic folks. I have a fairly
+ 359672 [jeanjulien.f] str =3D "1 2 3 4"
+ 359675 [rick.denatal] airly
+ 359676 [8si.greg gma] Don't be seduced by the idea that everything can be fixed by hitting
359709 [rubytalk che] Thanks guys!
^ --disable-gems permanent?
359674 [rogerpack200] Before I report a bug report to core on this one, thought I'd see if
^ Request Error Submitting CGI Form
359679 [r.molloy gma] I'm trying to submit a form to the following website
359680 [andrea andre] Hei Robert,
359681 [r.molloy gma] Thank you very much, I should have known it was something simple :)
^ end of sentience has ? y/n, if n please use one "string?"=o.k.
359682 [jamison2000e] Still new to programing.=A0=20
+ 359683 [brabuhr gmai] There are quite a few ways to approach this problem. If you haven't
| 360864 [jamison2000e] Thanks to=A0all=A0:)=20
+ 359688 [m.fellinger ] or now. :)
^ [ANN] Ruby Summer of Code 2010
359684 [jeremy bitsw] Fellow Rubyists, I'm proud to announce the first annual Ruby Summer of Code.
+ 359750 [jeremy bitsw] UPDATE
| + 359751 [space.ship.t] Dear Jeremy,
| + 359795 [jeremy bitsw] Back again --
| + 359804 [rob flowof.i] I'd ask the same as Samuel. Is this just for people in the united
| | 359805 [jeremy bitsw] Ruby Summer of Code is open to all students worldwide, minus those in
| + 359887 [rogerpack200] Congrats and thanks to all the donors.
+ 359985 [rogerpack200] One suggestion for future years might be to allow non-students. Since
+ 359986 [jeremy bitsw] Definitely! Next year we'd love to include all students of Ruby :)
| 360000 [yaserbuntu g] It would be nice if you can also include "residents and nationals of Iran,
+ 359987 [ jbw jbw.cc] jbw
359988 [ jbw jbw.cc] jbw
359994 [jeremy bitsw] College-student status is a measure that has worked well for Google so
359998 [ jbw jbw.cc] Since
360005 [jeremy bitsw] Hey jbw,
361427 [jonathan jmn] Is "Twitter Username" really required for a student application? I'm
361429 [jeremy bitsw] We plan to use GitHub and Twitter to keep the community abreast of
361432 [thiagown gma] I cant type my full phone number into student submission.
361596 [fela.kde gma] At what time does the application window for student application close?
361602 [jeremy bitsw] At the end of the day tomorrow, San Francisco time (PDT).
^ Creating a gsub! method for Arrays
359686 [novelltermin] I'm new to Ruby. I'm trying to add a method to the Array class that adds
+ 359687 [novelltermin] After playing around some more, I've found a solution.
| + 359700 [shortcutter ] What is the benefit of doing
| | 359713 [transfire gm] Agreed. There's also
| | 359732 [novelltermin] Ah, I like this way a lot. Thanks, I'll be using it.
| + 359738 [novelltermin] Just out of curiosity, does anyone know how Ruby knows what "each" is
| 359742 [justincollin] If I understand your question correctly, "each" is being called on self,
+ 359695 [jgabrielygal] detect (Iprefer find) will iterate the enumerable yielding each
^ Saving gzipped string into Sqlite3 via Rails throws unrecognized token error
359691 [thebusyant g] Not sure if this belongs in the rails forum or here (it's a little of
359692 [jonathan jmn] I have no idea if this is what is going on because I haven't worked
+ 359693 [thebusyant g] 'd
+ 359696 [thebusyant g] 'd
^ Ruby and user documentation
359697 [michel demaz] I just finished a quite large business project (in 1.9, pure ruby, not
+ 359698 [shortcutter ] OpenOffice. Seriously, for end user documentation which typically
| 359705 [michel demaz] Robert, this is what I have started doing, but I have now quite large
| 359718 [shortcutter ] AFIK you can have hyperlinks in OO files - and they can even point to
| 359723 [michel demaz] Actually, as I work on Windows, I can use Word (which yes has links to
| 359727 [jonathan jmn] If you want automagic links, you might try out the note-taking
| 359761 [michel demaz] Jonathan, thanks for the tip, I'll try Tomboy.
+ 359712 [transfire gm] I would use a markup language for the files, probably Markdown*. HTML
| + 359716 [michel demaz] Thomas, I was thinking of something of that kind. I use Git-Wiki (and
| + 359774 [joelvanderwe] I like the combination of markdown (via the kramdown[1] gem) and
| 359781 [michel demaz] Thanks Joel. I had a look at kramdown, but did not know webby. I'll try.
+ 359806 [arndt.roger ] docbook --for all your documentation.
359807 [michel demaz] Roger, I like your doc, and I discovered Jeszra. Thanks!
359811 [arndt.roger ] Thanks.
359812 [michel demaz] Roger,
359857 [javaalley gm] My recomendation is Sphinx. http://sphinx.pocoo.org/
359859 [michel demaz] Allan, I code with NetBeans, and am trying to use it for writing DocBook
359864 [javaalley gm] Netbeans itself does not reconize the .rst extention yet. but I have written
359876 [michel demaz] Thanks Allan.
359963 [michel demaz] Just for closing the thread.
threads.html
top