360731-362832

360497-370922 subjects 360968-362527

^ read and write stock prices to file using arrays
360731 [feurry gmail] I'm trying to write a script that will take stock ticker symbols from a
360742 [jgabrielygal] lines =3D File.readlines(filename)
360761 [feurry gmail] Thank you. The ticker << line is really helpful.
+ 360766 [martindemell] It can't, but the one value a key points to can be an object of any
+ 360780 [jgabrielygal] As Martin explained, it's just one object. It happens to be an array
  360808 [feurry gmail] well, I just got home from work and was going to hack away.. but instead
  360810 [ryand-ruby z] you might want line.strip.empty? if you encounter errant whitespace in =

^ Closing and reloading compiled extensions
360733 [phlack gmail] 1. Write and compile a C extension containing nothing but singleton

^ match at least one element of array to another
360738 [ken70r gmail] array matches at least one element of another array?
+ 360739 [ken70r gmail] @groups.length + @allowed.length > (@groups | @allowed).length
| 360741 [ken70r gmail] !(@groups & @allowed).empty?
+ 360743 [jeanjulien.f] You could check something like
+ 360745 [gf.bozzetti ] array1 & array2 returns a new_ array with elements common to

^ zero-width positive "look-behind"?
360744 [njmacinnes g] => ["ttt"]
360749 [shortcutter ] It seems you have just demonstrated how to get the effect you described.
360754 [njmacinnes g] Ah (?<=3Da)ttt is what I was after. Thanks for the link.

^ How to capture output of linux command
360750 [d_rems yahoo] a = `ls /home`
+ 360751 [ryand-ruby z] remove the double quotes
+ 360752 [albertschlef] As Ryan said, you need to remove the double quotes. You're asking the
| + 360757 [marco-oweber] If we got hat route you want ls -- ${dir} to protect against directories
| + 360779 [dudektria gm] Keep in mind that `ls #{dir}` (without the quotes) is also DANGEROUS.
|   360906 [albertschlef] dir = '123" ; rm -rf ~ ; echo "'
+ 360753 [marco-oweber] Learn about Dir object. It has methods such as glob which should give
  360756 [d_rems yahoo] Thanks guys.

^ ruby CGI sessions - mod ruby
360755 [dennis corte] Long time no type.

^ The Ruid Concept, with question
360760 [gmkoller gma] The Ruid Concept
+ 360762 [peterhickman] An appropriate topic for this is something that we can discuss that is
+ 360763 [charles.john] This is appropriate, but you will have to provide a bit of code for
| 360765 [gmkoller gma] Charles,
| + 360769 [transfire gm] Then you have answered your own question. There is nothing to discuss.
| | + 360775 [charles.john] I am under the impression, having actually spoken to the man himself,
| | | + 360776 [aldric trevo] Last chance.
| | | + 360777 [vikkous gmai] For my part, discussions of just a design, with no code, would be
| | + 360794 [gmkoller gma] Oh did he?
| |   360822 [fxn hashref.] Please, if you have a concrete, specific question about Ruby, by all
| |   360828 [gmkoller gma] Thunk has been programming in Ruby for 3 years.  The Pick Ax book and
| |   360829 [gmkoller gma] Xavior,
| |   360831 [fxn hashref.] OK, this seems to be generated text.
| + 360837 [sophrinix gm] BOLLOCKS! I gave you a non disclosure signed. We even talked about it
|   + 360840 [usenet-nospa] Okay, yeah, this guy is mentally unwell.
|   | + 360844 [s1ay3r44 gma] Wow, I find it funny that Think speaks in third person.
|   | | 360847 [usenet-nospa] Usenet does not have "IP bans".  Under the hood, there is a Usenet newsgroup
|   | | 360849 [s1ay3r44 gma] Ahh, okay, thanks for the clarifacation.
|   | + 360845 [gmkoller gma] ter
|   |   360848 [s1ay3r44 gma] Not to throw dirt in your face but why did you feel you had to be
|   |   360851 [usenet-nospa] Why would I bet someone who is obviously a cheater, and doesn't understand
|   |   360853 [gmkoller gma] ts,
|   |   360867 [s1ay3r44 gma] Ok, so what's the entire point of the program? What EXACTLY does it do?
|   |   + 360873 [gmkoller gma] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
|   |   + 360874 [gmkoller gma] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
|   + 360843 [gmkoller gma] Was confident enough to announce to this group what he thought this
|     360850 [sophrinix gm] something up front.
+ 361006 [robert.dober] But it is! Look how many replies you got!!! People just love to kid
  361010 [gmkoller gma] My buzzword trap has caught a few things; DISTRIBUTED is something I
  361030 [robert.dober] It sure could be, but maybe the fact is that we simply do not
  361034 [gmkoller gma] Robert,
  361035 [rimantas gma] It's not a language. It is not a framework. It's not even an idea.

^ [ANN] Camping 2.0 - minature rails for stay-at-home moms
360767 [judofyr gmai] require "uri";require "rack";class Object;def meta_def m,&b;(class<<self;self
360778 [joelvanderwe] With this post, you have single-handedly restored the ruby-talk
360796 [ryand-ruby z] m,&b;(class<<self;self

^ Re: Camping 2.0 - minature rails for stay-at-home moms
360772 [aldric trevo] Sweet!

^ Ruby-warrior : Teaching AI concepts with Ruby
360783 [aldric trevo] I think this project doesn't get enough attention :-)
+ 360789 [billk cts.co] What a cool idea!
| 360795 [s1ay3r44 gma] Oh, definately, this is probably the best way to teach programing.
| + 360797 [eregontp gma] Just began and already addicted :D
| | 360803 [gmkoller gma] Ok ;) then ;) ;),   why are the Shopping Baskets still So Dumb ;) ??
| | 360806 [ryand-ruby z] You are OFF-TOPIC. I can't say this more plainly: FUCK OFF.
| | 360811 [gmkoller gma] you really don't want to send a swarm of angry Ru'ids after you...
| | 360953 [robert.dober] Thunk
| | 360954 [robert.dober] Learning without thought is labor lost; thought without learning is perilou=
| + 360817 [phil pricom.] People,
|   + 360818 [ryand-ruby z] `rest!' for #<RubyWarrior::Turn:0x7f5f0ced1a58 @action=3Dnil, =
|   | 360823 [phil pricom.] Guys,
|   | 360830 [eregontp gma] Well, what do you have in front of you? nothing, so you just need to
|   | 360832 [phil pricom.] Benoit,
|   | 360937 [aldric trevo] That's a good idea. If I have time, maybe I'll try to submit a patch..
|   + 360821 [eregontp gma] level.
+ 360807 [ryand-ruby z] That looks really really cool. I'll have to play with that this weekend. =
+ 360963 [dudektria gm] anb/ruby-warrior
+ 360966 [thiagown gma] Hahaha, I've been studying alot lately and once I finish my tests I'm
  361235 [akraynov bk.] reached for 6'th level (as beginner).
  361241 [jgabrielygal] state =3D :ws_combat
  361258 [akraynov bk.] On 16 =D0=B0=D0=BF=D1=80, 03:25, Jes=C3=BAs Gabriel y Gal=C3=A1n <jgabriely=
  + 361259 [jgabrielygal] lyga...@gmail.com>
  + 361278 [aldric trevo] Because it doesn't parse incorrectly; it just runs incorrectly. That's

^ Initial release of lightning
360787 [gabriel.horn] I'm announcing lightning, a gem to speed up your commandline

^ Need a short nontrivial example program
360793 [josh.cheek g] I'm a member of the ACM at my university (Wichita State), and we are allowed
+ 360798 [aldric trevo] So the ruby-warrior thing doesn't excite you? ;-)
| + 360800 [josh.cheek g] I actually played with it back whenever Ryan announced it on his Twitter.
| + 360802 [mjijackson g] No! Not Dwemthy's Array! You will most assuredly look like a fool when
+ 360819 [shortcutter ] What about a simply simulation of some system's behavior that appeals to
  360827 [josh.cheek g] If I understand what you're saying, you mean something like a truth table
  + 360834 [josh.cheek g] Hmm, I've been thinking about this, It could probably be done easily with
  + 360835 [shortcutter ] No.  I thought more of a simulation of some mechanism (maybe mechanical

^ return string within seperators only
360799 [jessebos aol] trying to do something like this
360801 [vikkous gmai] irb(main):001:0> s=<<END
360826 [shortcutter ] irb(main):001:0> s = "some /text that I want/ not"

^ OWASP:ESapi.
360812 [paradisaeida] Is there a way to enable this in Ruby 1.8 series?

^ global variable in ruby
360813 [amishera2007] Trying to use some global variable
+ 360814 [Gennady.Byst] Maybe because you meant $buffer ? ;-)
+ 360816 [e.j.jurman g] While global variables are really nice, most programmers try not to use
| 360842 [b.candler po] If it's just that a number of methods want access to the same buffer,
+ 360846 [s1ay3r44 gma] The reason this is happening is because you forgot to write $ in

^ Question about parsing URL in Ruby
360820 [refermaker y] 1. Parser comes on page where there are links to matches of Barcelona
360824 [a.bovanenko ] You can do it by mechanize/hpricot or scrubyt.
360839 [refermaker y] And somebody can explain more in detail... Or to carry out my task for

^ how to analyse web with nokogiri?
360833 [myocean135 y] how to analyse web with nokogiri?
360836 [aurelien.ami] table = "<table>
360869 [myocean135 y] think AMILIN Aurélien ,i get it
360881 [aurelien.ami] 1\

^ Saving and Restoring a GTK:TreeModel
360838 [andreas fami] Here is a small snippet of my code that saves and restores a

^ [PLEA] Regarding trolls, spammers, noise-makers, and such
360852 [james.britt ] First, one person's troll/spammer/idiot is another's savant, but mostly

^ Re: Regarding trolls, spammers, noise-makers, and such
360854 [gmkoller gma] James,
360868 [s1ay3r44 gma] Well isn't that a slap in the face?! Someone spam his email. Give him

^ [ANN] Arcadia ruby ide 0.8.1
360855 [antonio.gale] Arcadia is a Light Integrated Development Environment (IDE) for Ruby
360871 [botpena gmai] what king of help
360872 [botpena gmai] sorry..

^ Facets 2.8.3 released
360856 [transfire gm] Just released Facets 2.8.3. Release notes are below. This release

^ Detect if 2 ranges share elements
360857 [novelltermin] What is the best way to make sure two ranges don't share any elements?
+ 360858 [transfire gm] Checkout Facets' Range#overlap
| 360860 [novelltermin] Thanks Jean, very elegant solution!
| 360861 [novelltermin] And I'm back again...
| 360862 [novelltermin] Ok, I'm way too tired to be given posting privileges... Used [] instead
+ 360859 [jeanjulien.f] I don't know if it's the best but it should be working at least

^ question about pickaxe code example
360865 [edudeth yaho] in chapter 12 of pickaxe in the tutthreads_10.rb example there is a line
360880 [b.candler po] You're right, and Symbol#to_proc is what to Google for to get the full

^ how  to  write  array value into  csv  file?
360870 [myocean135 y] how  to  write  array value into  csv  file?
+ 360875 [chenge2k gma] a=[]
+ 360879 [b.candler po] I'd suggest parsing the data first so that each element of a is itself

^ Lemmatization in Ruby
360876 [shreyas.sati] I have tried using a stemmer but the words it produces are just not upto

^ [ANN] Mail 2.2.0
360878 [raasdnil gma] Mail version 2.2.0 has been pushed to RubyGems.org.

^ ActiveSupport's New Approach to Core Extensions! [was: Facets 2.8.3  released]
360882 [transfire gm] FYI. Looks like I won't be moving Ruby Facets to a modular design

^ Text Fighting (Gladitorial) Sim
360884 [wizardofozz ] I am attempting to create a gladitorial fighting sim. It will be able to
+ 360887 [pierluc.caro] Take a look at Ryan Bates's Ruby Warrior?
| 360888 [wizardofozz ] Yeah ive taken a look at that. Not really what im looking for though,
+ 360902 [s1ay3r44 gma] You'll want to use .rand for a certain number and add it as an attack
+ 360938 [aldric trevo] Sounds like you should take a look at the seventh Ruby Programming

^ Re: Arcadia ruby ide 0.8.1
360885 [antonio.gale] - A first help is do feedback, I have no idea on who use arcadia and if
+ 360897 [transfire gm] A link to the project would be helpful.
| 360900 [antonio.gale] Right
+ 360914 [botpena gmai] one of the best things i like about tk/tcl is that the ruby-tk lib is
+ 360915 [botpena gmai] i like the way it tries to auto-install ruby-debug19.. unfortunately

^ Method call within a class
360889 [chen_li3 yah] Maybe I miss something. But I am confused about method call within a
360890 [andrea andre] Hei,
360894 [chen_li3 yah] Thank you very much. So the receiver can be omitted when the method is
+ 360899 [andrea andre] Hei Li,
+ 360904 [josh.cheek g] Except on assignments, because it looks like you are creating a local
  360907 [chen_li3 yah] Thank you so much. Where can I find more info about this usage?

^ Help finish the Nokogiri Java port
360891 [headius head] We're really close to having it 100% passing, which would mean anyone

^ Finding an icon for a file in Linux
360893 [pcguy49 yaho] I am writing a file manager and am looking for the best way to get the
360903 [rikiji playk] <http://en.wikipedia.org/wiki/File_%28command%29>
360909 [pcguy49 yaho] As far as I can tell, that will only tell me the mimetype. My main

^ [ANN] Harvested 0.3.0
360895 [zach.lists g] Harvested is a new ruby wrapper around the Harvest Time Tracking API =

^ Using popen & grep
360905 [dan.king106 ] I'm relatively new to ruby and to practice I've put together the code
+ 360908 [chenge2k gma] cmd="grep -i #{ARGV[0]} #{ARGV[1]}"
+ 360985 [shortcutter ] A few remarks: the block form of IO.popen is more robust because it

^ attr_accessor, but for a boolean
360910 [albertschlef] class Mambo
+ 360911 [has.sox gmai] There's no built in way in ruby for it to know that you're going to put a
+ 360912 [aaron tender] In situations like this, I make two "getters" and leave the assignment
| + 360913 [has.sox gmai] Unfortunately this doesn't support safe? being boolean always.  It could be
| | 360941 [transfire gm] d be
| | 360949 [billk cts.co] In a DRb situation, I'd rather send 'true' across the wire than
| | 360958 [transfire gm] d.
| | 360964 [josh.cheek g] You could define
| + 360920 [albertschlef] Thank you both. I wanted to make sure there's no built-in way to do
|   360921 [albertschlef] Hey, I've just discovered that 'ri' tells me that Module has an
|   360928 [josh.cheek g] Doesn't work for me, so probably from some gem.
+ 360943 [transfire gm] In Ruby 1.9, once can create writers with
+ 360944 [djberg96 gma] Wouldn't that have been nice?

^ Comparing Arrays
360922 [novelltermin] a method to compare two arrays so that if they share at least 1 common
+ 360924 [jeanjulien.f] Well, you could use exactly the have_common? method I provided to
| 360925 [novelltermin] Thanks Jean, this is the first thing I tried, but I accidentally used
| + 360926 [priyankapath] "&" is bitwise operator. "and" is logical operator & for composition.
| | 362831 [sepp2k googl] Except there's nothing bitwise about & on arrays (or anything else that
| + 360927 [jeanjulien.f] Well, they have quite nothing in common here :o)
+ 360929 [gf.bozzetti ] # array_cmp.rb
| 362832 [eregontp gma] irb for ruby-1.9.3-r27796
+ 362828 [user compgro] good job done!!

^ how to open dbf file  with ruby?
360923 [myocean135 y] there is a dbf  file , can i open it with ruby?
+ 360930 [gf.bozzetti ] - XBase/DBase Reader class
+ 360931 [sb pharmacy.] ...
+ 360932 [judofyr gmai] Depends.
  360933 [myocean135 y] hai ,everyone
  360934 [myocean135 y] i haved solved this problem myself
  360976 [myocean135 y] require 'iconv'

^ Non empty string complained to be 'nil' in equality check
360936 [kannan_jayap] I have the below code
360955 [kannan_jayap] goddammit, i was fooled because the if statement was teh last statement
360974 [alex.decaria] Posted via http://www.ruby-forum.com/.

^ Multiple PeopleSoft Technofunctional requirements
360940 [jsam.recruit] Below are two very urgent needs with a client located in Boston, MA
360942 [m.fellinger ] Michael Fellinger

^ Nuances of alias_method
360950 [rleber minds] I am stumbling around some of the nuances of Ruby classes, especially in
360952 [robert.dober] Well alias_method aliases instance methods, as foo is not an instance

^ Fwd: Automated image combining to improve page load speeds
360956 [tony.arcieri] We're working with a slow embedded browser and trying to eek as much

^ Re: Automated image combining to improve page load speeds
360957 [hassan.schro] is
360959 [tony.arcieri] Cool, that's exactly what I'm looking for.  Thanks.

^ error: www deprecation notice
360961 [yn9876 gmail] I get the following deprecation error saying that
360965 [sophrinix gm] Ryan covered this in a railscast. If memory serves, you simply stop

^ My application doesn't work well
360967 [bruno_r_sant] My application isn't working well. Let me try to explain what's wrong.
+ 360969 [damnbigman g] class Jogo
| 360971 [bruno_r_sant] it seems your suggestion worked, I'll check it better and if I have some
+ 360970 [cwdinfo gmai] def sorteia
  360972 [gmkoller gma] You young fellows are distorting the beloved noise to boredom ratio
  360973 [bruno_r_sant] I'm not so good in English but I understood that I shoud show you my
  + 360977 [bruno_r_sant] -bash-4.0$ ruby pedrapapeltesoura.rb
  | 360998 [rick.denatal] Well, it looks like the two values really aren't the same.  Two observation=
  | 361012 [bruno_r_sant] I did as you said and it worked. I descovered that there was a newline
  + 360984 [jonathan jmn] Let me apologize (unofficially) on behalf of the list/newsgroup/forum
threads.html
top