Topic for #ruby-lang is now Ruby 1.9.3p0: http://ruby-lang.org | Paste >3 Lines of Text on http://pastie.org
<zenspider> rubygems-sandbox 1.1.1 released
wmoxam_ [wmoxam_!~wmoxam@69-196-162-55.dsl.teksavvy.com] has joined #ruby-lang
guns [guns!~guns@c-98-228-72-208.hsd1.il.comcast.net] has joined #ruby-lang
shevy [shevy!~shevy@178-191-179-93.adsl.highway.telekom.at] has joined #ruby-lang
steeljav [steeljav!~b@69.197.102.2] has joined #ruby-lang
voker57 [voker57!~voker57@kvirc/developer/Voker57] has joined #ruby-lang
yfeldblum [yfeldblum!~Jay@c-71-206-30-119.hsd1.md.comcast.net] has joined #ruby-lang
perryh [perryh!~root@unaffiliated/perry753] has joined #ruby-lang
wmoxam_ [wmoxam_!~wmoxam@75-119-252-170.dsl.teksavvy.com] has joined #ruby-lang
<rue> Wow, that was some poor sleeping right there.
scampbell [scampbell!~scampbell@mail.scampbell.net] has joined #ruby-lang
<jmontross> drbrain: FileUtils is neat class.. thanks
mkscrg [mkscrg!~mkscrg@64.134.98.150] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
replore_ [replore_!~replore@203.152.213.161.static.zoot.jp] has joined #ruby-lang
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
<zenspider> run that!
heppy [heppy!~heppy@fw.baysidebusinessplaza.com] has joined #ruby-lang
<samuelkadolph> zenspider: AHHHHHHHHHHHH HOW DID YOU GET MY PICTURE?!?!?!?!?!!
Sailias [Sailias!~jonathan@99.234.118.225] has joined #ruby-lang
takaokouji [takaokouji!~takaokouj@2001:268:306:1:225:bcff:fedc:e1fe] has joined #ruby-lang
<wmoxam> avfoundation == Lion only?
<rue> command not found
<samuelkadolph> zenspider: The mustache is way off center though
<samuelkadolph> I didn't even see it the first time
<zenspider> samuelkadolph: that's because of YOUR FACE
* samuelkadolph cries
<rue> Still, it's rather concise
<rue> The code, not samuelkadolph's face
<samuelkadolph> CPU usage is quite high
<samuelkadolph> Probably macruby's fault
<rue> That could be because of your face, again.
<samuelkadolph> rue: Yeah… well… your mother!
neoesque [neoesque!~neoesque@210.59.147.232] has joined #ruby-lang
macmartine [macmartine!~macmartin@069-064-227-254.pdx.net] has joined #ruby-lang
amh345 [amh345!~amh345@unaffiliated/amh345] has joined #ruby-lang
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
srbaker [srbaker!~srbaker@68.71.200.170] has joined #ruby-lang
looopy [looopy!~looopy@pool-151-200-236-181.washdc.btas.verizon.net] has joined #ruby-lang
<shevy> you gotta believe what rue says
gix [gix!~gix@e180001167.adsl.alicedsl.de] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
looopy [looopy!~looopy@pool-151-200-236-181.washdc.btas.verizon.net] has joined #ruby-lang
Defusal [Defusal!DeFi@dsl-240-229-241.telkomadsl.co.za] has joined #ruby-lang
Defusal [Defusal!DeFi@unaffiliated/ecnerifed] has joined #ruby-lang
Pip_ [Pip_!~Pip@unaffiliated/pip] has joined #ruby-lang
<jmontross> what is best way to put some junk at end of a file using ruby?
<jmontross> `echo "stuff" >> file` ?
QaDeS_ [QaDeS_!~mklaus@frbg-5d84fe49.pool.mediaWays.net] has joined #ruby-lang
<rue> …Not that
<rue> jmontross: >> means append mode, which you can also find in File
woollyams [woollyams!~woollyams@124-170-59-47.dyn.iinet.net.au] has joined #ruby-lang
Diazo [Diazo!~Diazo@cpe-76-169-9-64.socal.res.rr.com] has joined #ruby-lang
kaos180 [kaos180!~kaos@128.205.236.244] has joined #ruby-lang
Diazo [Diazo!~Diazo@cpe-76-169-9-64.socal.res.rr.com] has quit [#ruby-lang]
<jmontross> rue: I cannot deny, that is what I wanted.
arooni-mobile [arooni-mobile!~arooni-mo@187.153.79.230] has joined #ruby-lang
igotnolegs [igotnolegs!~igotnoleg@174-27-214-73.slkc.qwest.net] has joined #ruby-lang
Aaaarg [Aaaarg!~Arthur@121-74-43-214.telstraclear.net] has joined #ruby-lang
tomzx [tomzx!~tomzx@dsl-216-221-32-204.aei.ca] has joined #ruby-lang
srbaker [srbaker!~srbaker@70.28.245.108] has joined #ruby-lang
densebits [densebits!~michael@fedora/densebits] has joined #ruby-lang
fayimora_ [fayimora_!~fayimora@95.175.159.32] has joined #ruby-lang
freenodiz [freenodiz!~IceChat77@unaffiliated/freenodiz] has joined #ruby-lang
Aaaarg [Aaaarg!~Arthur@121-74-32-24.telstraclear.net] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
<freenodiz> Hi,I'm a ruby newbie,and i'm very interested in the language.i know css/html ,and a bit of php.I just want to know if ruby frameworks,such as rails or sinatra,are "naturally" more secure than php.i would like also to know some feed back about deploying an app at heroku.Is heroku server prepared for ddos attacks or it would be some manual configuration made by the owner of the app/domain?
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
wmoxam [wmoxam!~wmoxam@69-196-160-133.dsl.teksavvy.com] has joined #ruby-lang
tomzx [tomzx!~tomzx@dsl-216-221-32-204.aei.ca] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@46.118.221.156] has joined #ruby-lang
looopy [looopy!~looopy@pool-151-200-236-181.washdc.btas.verizon.net] has joined #ruby-lang
<rue> freenodiz: #heroku or their FAQs might be able to shed light on their countermeasures
<rue> freenodiz: Where security is concerned, a competent programmer is probably equally safe either way
<rue> Or unsafe, if you wish.
<freenodiz> no answer from heroku.i went there before comming here already.rue,i just don't understand 1 thing.heroku is a sinatra app,k got that...but then,they have of course the servers,wich could be amazon cloud,for example.then i ask you,wich "os" would be behind it?freebsd?some custom linux?
<freenodiz> rue,thanks for imput regarding security in general.it means i can use previous php security knowledge on it
<rue> By and large the same problems exist, yes. Solutions may be a bit different, but you'll know what to look for
<rue> Also, there's #rubyonrails and #sinatra, if you are working with those.
arooni-mobile [arooni-mobile!~arooni-mo@187.153.79.230] has joined #ruby-lang
<freenodiz> sure,i will be going in those channels,altough i will focus on ruby-lang and sinitra for now,to keep it simple and understand the basics concepts of the language.
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby-lang
<freenodiz> i just need lil apps :P
<freenodiz> http://devcenter.heroku.com/categories/platform-basics ,browsing this page,still,it seems like a "custom" os or whatever.not mention any base os
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has joined #ruby-lang
<freenodiz> rue,this is the closest i can get ,of what they use under the hood http://devcenter.heroku.com/articles/architecture-overview
Sailias [Sailias!~jonathan@99.234.118.225] has joined #ruby-lang
valeri_ufo [valeri_ufo!~valeri_uf@octocat.net] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
<freenodiz> rue,i found out,heroku is a custom linux kernel
Wardrop [Wardrop!~tomwardro@86.46.96.58.static.exetel.com.au] has joined #ruby-lang
Oloryn_lt11 [Oloryn_lt11!~Oloryn@home.benshome.net] has joined #ruby-lang
diegoviola [diegoviola!~diego@host-1-211.b15.cvc.com.py] has joined #ruby-lang
krz [krz!~foobar@unaffiliated/krz] has joined #ruby-lang
heppy_ [heppy_!~heppy@fw.baysidebusinessplaza.com] has joined #ruby-lang
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby-lang
MarcoBXBRO1 [MarcoBXBRO1!~MarcoBXBR@c-68-34-17-197.hsd1.md.comcast.net] has joined #ruby-lang
MarcoBXBRO1 [MarcoBXBRO1!~MarcoBXBR@c-68-34-17-197.hsd1.md.comcast.net] has quit [#ruby-lang]
andrewhl [andrewhl!~andrew@24-246-15-43.cable.teksavvy.com] has joined #ruby-lang
mkscrg [mkscrg!~mkscrg@ool-18e4f9d6.dyn.optonline.net] has joined #ruby-lang
Diaoer [Diaoer!~Diaoer@116.239.4.194] has joined #ruby-lang
heppy [heppy!~heppy@75-101-31-55.dsl.dynamic.sonic.net] has joined #ruby-lang
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby-lang
dr0id [dr0id!~andy@unaffiliated/dr0id] has joined #ruby-lang
x0F__ [x0F__!~x0F@unaffiliated/x0f] has joined #ruby-lang
nuclearsandwich [nuclearsandwich!~nuclearsa@74.sub-166-250-32.myvzw.com] has joined #ruby-lang
Austin__ [Austin__!~austin@CPE0016cbc30e9c-CM001ceacff6ba.cpe.net.cable.rogers.com] has joined #ruby-lang
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby-lang
rippa [rippa!~splitta@85.158.54.234] has joined #ruby-lang
nuclearsandwich [nuclearsandwich!~nuclearsa@77.sub-166-250-38.myvzw.com] has joined #ruby-lang
<rue> Anybody (still?) run a chef server and client on the same machine, rather than using Solo?
Jerrry [Jerrry!~Jerry@c-98-208-86-236.hsd1.ca.comcast.net] has joined #ruby-lang
<jmontross> why would you do that?
<rue> Or maybe I misrecall, maybe the setup was just using a non-server machine as a temporary server
<jmontross> hosted chef is easy enough and free for one server i believe…
handygandy [handygandy!~handygand@adsl-76-193-165-192.dsl.chcgil.sbcglobal.net] has joined #ruby-lang
<handygandy> Given an array A how do I create an array that is all but the last element of A?
<mksm> array_a.shift
<mksm> no
<mksm> array_a.pop
<handygandy> no
<confounds> no
<mksm> i'm sure there's a reason, but why do we have 2 ruby channels?
<confounds> something with array.slice
<rue> mksm: Because the asses on #ruby removed the agreed-upon /topic referral to here (#ruby-lang being the channel designated on ruby-lang.org).
Sailias_ [Sailias_!~jonathan@173.32.33.27] has joined #ruby-lang
<diegoviola> rue: could we get the channel to merge? i also see no point in 2 channels, python has #python and perl has #perl
<diegoviola> channels*
<confounds> or instead of merging, we could create another two or three channels
<handygandy> Because way back when some fool created #ruby-lang instead of #ruby, which worked OK for a while but then someone went into #ruby -- creating it. Peoples started congregating there.
livinded [livinded!~lolwut@pool-108-23-242-132.lsanca.fios.verizon.net] has joined #ruby-lang
<rippa> handygandy: A[0..-2]
<handygandy> rippa:That's it! Thanks.
<diegoviola> make #ruby a redirect to #ruby-lang
<diegoviola> or something like that
<confounds> handygandy i beat rippa cause i already said slice
<mksm> diegoviola, you can't configure #ruby without being owner
<rue> diegoviola: The problem is that the rights-holder (i.e. Matz) needs to submit a group registration.
<rue> Given that the aforementioned asses prefer to perpetuate the split
Austin__ [Austin__!~austin@CPE0016cbc30e9c-CM001ceacff6ba.cpe.net.cable.rogers.com] has quit [#ruby-lang]
<jmontross> #ruby is better name
woollyams [woollyams!~woollyams@124-170-59-47.dyn.iinet.net.au] has joined #ruby-lang
<jmontross> I just come here because the more refined rubyists seem to be here
<diegoviola> i find the split unnecessary, could we talk to the people in charge?
<diegoviola> we could have like 800 people here if the split didn't exist
cola_zero [cola_zero!~cola_zero@www5054u.sakura.ne.jp] has joined #ruby-lang
<confounds> we wouldn't get along... totally different factions
<diegoviola> oh ok, that's another thing, i wasn't aware of that
<diegoviola> i almost never go to #ruby
<confounds> diegoviola i'm just kidding ;) but they've existed separately for quite a while i think
companybot [companybot!martins@login1.powertech.no] has joined #ruby-lang
<confounds> if the owners haven't figured it out by now, i'm kinda doubtful they'd bother
<diegoviola> i see
scottschecter [scottschecter!~scott@c-98-252-167-171.hsd1.ga.comcast.net] has joined #ruby-lang
<mksm> we should invade
<diegoviola> invade?
<confounds> yeah
<mksm> (for the oil, obviously)
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby-lang
Aaaarg [Aaaarg!~Arthur@121-74-32-232.telstraclear.net] has joined #ruby-lang
MarcoBXBRO1 [MarcoBXBRO1!~MarcoBXBR@c-68-34-17-197.hsd1.md.comcast.net] has joined #ruby-lang
<mksm> would there be a ruby equivalent for "awk -F "|" "{ print NF }" <file>" ?
<confounds> what does that do in english
JosephRuby [JosephRuby!~joseph@46.33.34.30] has joined #ruby-lang
<confounds> (and i'm sure there would be a ruby equiv)
<mksm> prints number of fields using "|" as field separator
<mksm> for each line in file
<confounds> not sure what the shortest would be, but you could just split each line in the file, then call .count or .size on the resulting array
<mksm> confounds, that would work, but i'm looking for something simples to use with pipes
<mksm> s/simples/simple/
<confounds> why?
<confounds> mksm fwiw here are some one-liners, maybe something on it - http://www.fepus.net/ruby1line.txt
<mksm> ruby -an -F"\|" -e 'puts $F.size' <file> does it
<mksm> the -F option is kinda weird ... it sticks the argument inside a regex ... so "|" needs to be escaped.
<confounds> very cool
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
<jmontross> mksm - marksuman?
<mksm> no
Aaaarg [Aaaarg!~Arthur@121-74-35-160.telstraclear.net] has joined #ruby-lang
woollyams [woollyams!~woollyams@124-170-59-47.dyn.iinet.net.au] has joined #ruby-lang
<mksm> ah rubyzip is back
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
huugsy [huugsy!~huug@ip-83-134-136-36.dsl.scarlet.be] has joined #ruby-lang
Aaaarg [Aaaarg!~Arthur@121-74-38-206.telstraclear.net] has joined #ruby-lang
gnufied [gnufied!~gnufied@122.167.254.70] has joined #ruby-lang
adam_ [adam_!~adam@S010600238b791368.cg.shawcable.net] has joined #ruby-lang
Aaaarg [Aaaarg!~Arthur@121-74-42-170.telstraclear.net] has joined #ruby-lang
<adam_> Hi guys, I have an issue -> ruby path/to/ruby/file does nothing in terms of running the ruby file.
<adam_> am I doing something wrong?
<jmontross> maybe you dont have path right...
<adam_> would it not spazz out? and i dragged the file from the window to the terminal so im sure the path is correect
<jmontross> i had ismilar issues on ubuntu tho… with a script that had lots of stuff going on… but never with simple scripts.
jmontross [jmontross!~Adium@static-96-236-65-137.snfcca.dsl-w.verizon.net] has quit [#ruby-lang]
<adam_> its also a test, using rubys test cases
<imperator> maybe your script doesn't do what you think it does
woollyams [woollyams!~woollyams@124-170-59-47.dyn.iinet.net.au] has joined #ruby-lang
freenodiz [freenodiz!~IceChat77@unaffiliated/freenodiz] has joined #ruby-lang
eumario [eumario!~eumario@va-184-5-132-88.dhcp.embarqhsd.net] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby-lang
<adam_> when running ruby files as ruby /path/to/file and then /path/to/file I get a bunch of "commands not found" for obvious commands that would work....
<eumario> what kind of commands adam_?
traph_ [traph_!~traph@95-42-78-184.btc-net.bg] has joined #ruby-lang
traph_ [traph_!~traph@95-42-78-184.btc-net.bg] has quit [#ruby-lang]
<adam_> for example a = [1,2,3] sais a, = and [1,2,3] are not found
<adam_> I have ruby 1.9.2 installed
<adam_> ...
<eumario> Which OS?
<adam_> ubuntu 11.10
<adam_> ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]
<eumario> Weird.... Can you do a Pastebin of your terminal output from when you execute ruby, to the next prompt, and the script your trying to run?
<adam_> ill just post both my scripts and the terminal out put - I have a feeling I am doing something wrong any ways give me a moment
<eumario> np
<adam_> sorry about the formatting, pasting from Scite to paste bin screws up the formatting: http://pastebin.com/1RAC2yLm
traph [traph!~traph@95-42-78-184.btc-net.bg] has joined #ruby-lang
traph [traph!~traph@95-42-78-184.btc-net.bg] has quit [#ruby-lang]
<eumario> adam_, At the top of your script, put in #!/usr/bin/env ruby
<adam_> is this seriously my issue?
<adam_> >_>
<eumario> Bash thinks your trying to run a BASH Shell script, instead of a Ruby Script, the Shebang at the top, tells it which interpreter to run.
<adam_> angry face.
<adam_> any ways thanks
<eumario> That way, either method will work, as long as the file has Executable bit set for the script in question.
<adam_> ok thanks
<eumario> Np. I'm working on a my own Linux Distro, and currently working on making a Live CD Installer. I run into that kind of issue more often then not. lol
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
<adam_> isnt managing a distro a lot more trouble then if you had a huge team?
<eumario> Yes, but all distros started out with a small team to start off with.
<adam_> a small team of one?
<eumario> Yeah
<eumario> lol
Asher [Asher!~asher@98.158.127.150] has joined #ruby-lang
<eumario> Though I'm not alone. My partner in crime, works Python, and I have people to administrate forums, and Do artwork. So I'm not completely alone. Just pretty much the only Ruby programmer.
<adam_> ahh
<adam_> oh cool
<adam_> thats really cool
<eumario> Thanks.
<rue> eumario: Remember Heretix?
<eumario> Vaguely. lol
<rue> Wonder if I still have the tree somewhere
<eumario> Lemur is based off of ArchLinux
dhoss [dhoss!~dhoss@bruticus.dhoss.net] has joined #ruby-lang
<eumario> And I'm doing the ruby scripts right now to build it, going by what I have had for DreamLinux.
<eumario> For some inspiration with functions to do Partitioning and such.
<rue> What's the startup script arch?
<eumario> It's simplified inittab / rc.conf scripts
yxhuvud [yxhuvud!mongo@h-17-224.a149.priv.bahnhof.se] has joined #ruby-lang
<eumario> Basically, My arch install boots faster then Debian does.
<eumario> It's in line close to PuppyLinux
twittard [twittard!~twittard@cpe-76-169-74-39.socal.res.rr.com] has joined #ruby-lang
woollyams [woollyams!~woollyams@124-170-59-47.dyn.iinet.net.au] has joined #ruby-lang
<eumario> I'd love to have more Ruby developers helping me with the distro. lol
dc5ala [dc5ala!~dc5ala@stgt-5f70cb5e.pool.mediaWays.net] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@h-163-174.a155.priv.bahnhof.se] has joined #ruby-lang
twittard [twittard!~twittard@vpn.lax.truecarcorp.com] has joined #ruby-lang
<adam_> scite is an evil editor
<eumario> Yes it is.
<eumario> My picks, would be RubyMine, Geany, Gedit
<adam_> I just pushed some code to the git hub account and in scite its all nicley formatted on git hub it looks messy....
<adam_> Im going to try ruby mine
<eumario> It's a good IDE
<adam_> ive used it before
<eumario> That's what I'm using to do my Ruby Development now.
<adam_> i forgot ou have to pay for it...
<eumario> If you have open source software projects, you can submit for Open Source Developer
<adam_> oh?
<adam_> oh I dont know if I want to use it, 2 gigs of ram? im on a vm with 1.3 lol
<adam_> Im not going up to 2 gigs
<eumario> It's java, what do you expect?
<eumario> Like I said though, Geany, Gedit
<adam_> java nevr required that much ram before ....
<adam_> oday
<eumario> Those two are good options.
<eumario> Though not as feature rich as RubyMine
<eumario> I'm on ArchLinux, with 6 gigs of ram, so I have the space to work with. lol
<adam_> there was an ide written in ruby for ruby that was fre and open source and i cant rememeber its name now
<adam_> redcar
<eumario> That's extreme simplistic
<adam_> yar
<mksm> VIM
<adam_> ICK
* eumario shoots himself in the head for even hearing that editor being suggested.
retro|cz [retro|cz!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
<adam_> LOL
<mksm> vim is no-no and gigantic java ide is ok?
<adam_> hence Redcar
<rhizmoe> wat
<adam_> vim makes me puke
<eumario> mksm: I prefer simplistic editing. For my needs, as of current, RubyMine covers what I need. VIM, is over complicated, with a major learning curve.
<ruskie> maybe try diakonos then considering this is #ruby-lang ?
<adam_> redcar does what i need it to
<mksm> i see we all buy different underwears :D
kyrylo [kyrylo!~kyrylo@46.118.221.156] has joined #ruby-lang
<eumario> Every programmer has their own way of writing code, and their own preference to their editor.
<eumario> Amazing, Redcar is downloading Eclipse stuff.
nari [nari!~nari@2001:268:306:1:f2de:f1ff:fe55:2de0] has joined #ruby-lang
<adam_> it is?
<eumario> Yep
krz [krz!~foobar@unaffiliated/krz] has joined #ruby-lang
<eumario> ArachnoRuby IDE use to be a good one.
<eumario> But it looks like scriptolutions went kaput
macmartine [macmartine!~macmartin@c-24-21-112-60.hsd1.or.comcast.net] has joined #ruby-lang
heppy [heppy!~heppy@75-101-31-55.dsl.dynamic.sonic.net] has joined #ruby-lang
<diegoviola> nice picture
Mchl [Mchl!~Mchl@h1881165560.rev.rootvps.pl] has joined #ruby-lang
Fullmoon [Fullmoon!~Fullmoon@dsl-stat-43-17.mmc.at] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
Diaoer [Diaoer!~Diaoer@116.239.4.194] has joined #ruby-lang
solars [solars!~solars@clnet-kmu02-090.ikbnet.co.at] has joined #ruby-lang
<adam_> if I am going through an array called a and looking for an element would I do for element in a if element.exists return bla end?
JohnBat26 [JohnBat26!~Eugene@89.175.77.90] has joined #ruby-lang
<eumario> return blah if a.index(element
<eumario> )
<adam_> excellent
<eumario> With hash, it's return blah if a.has_key?(element)
<rhizmoe> .detect
<eumario> And return blah if a.has_value?(element)
<eumario> And detect
<eumario> Many ways
<adam_> i am looking for the simplest way to say if you have this (what ever it is) in the array return it, and your first soloution works
JohnBat26 [JohnBat26!~Eugene@89.175.77.90] has joined #ruby-lang
<adam_> actually an .include? is better
<adam_> now that i think about it
JohnBat26 [JohnBat26!~Eugene@89.175.77.90] has joined #ruby-lang
nuclearsandwich [nuclearsandwich!~nuclearsa@74-93-3-241-SFBA.hfc.comcastbusiness.net] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
<adam_> something that makes me mad: if I have a module names apple and a extend apple in a class called fruit and call apples method by doing: fruit? why when running that class do I get a no method error on fruit? (i hope that makes sense)
Diaoer [Diaoer!~Diaoer@116.239.4.194] has joined #ruby-lang
<rue> Nope
<eumario> Are you defining the fruit? method as a instance method, or a class method?
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
michael_mbp [michael_mbp!~Marin@112.134.196.69] has joined #ruby-lang
jensn [jensn!~Jens@165-244-96-87.cust.blixtvik.se] has joined #ruby-lang
<adam_> neither I am just doing module apple def fruit? end end
<eumario> And class fruit; extend apple; end ?
molgrew [molgrew!~bozo20@85.182.139.18] has joined #ruby-lang
<adam_> class fruit extend apple def whatis fruit? end end - then I get a "no method error" on fruit?
<adam_> which shouldnt happen
<eumario> No, it shouldn't.
<adam_> so why is it?
<adam_> it basically sais cannot find fruit? no method error
<eumario> Yeah, just got the same thing here.....
<adam_> why though? it should work
<eumario> It should, but seems that you have to include, instead of extend.
<rippa> it would work
<rippa> with self.class.fruit?
<eumario> Yeah, that's right, extend does class methods, include does instance methods.
<rippa> because self in instance method is instance
<adam_> oh ok. thanks.
<eumario> o.O
twittard [twittard!~twittard@vpn.lax.truecarcorp.com] has joined #ruby-lang
yorickpeterse [yorickpeterse!~yorickpet@pdpc/supporter/professional/yorickpeterse] has joined #ruby-lang
tooky [tooky!~tooky@cpc5-sotn11-2-0-cust194.15-1.cable.virginmedia.com] has joined #ruby-lang
brianpWins [brianpWins!~brianpWin@207.6.118.71] has joined #ruby-lang
matti [matti!matti@madwifi/support/matti] has joined #ruby-lang
lenilson_dias [lenilson_dias!~lenilson_@c934d329.virtua.com.br] has joined #ruby-lang
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
now_ [now_!d470b392@gateway/web/freenode/ip.212.112.179.146] has joined #ruby-lang
roadkith [roadkith!~kith@unaffiliated/kith] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
<rue> Does a lowercase module even compile? It doesn't, does it?
<eumario> No, it doesn't.
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby-lang
<rippa> compile?
<rippa> you can have lowercase module
<rippa> with Module#new for example
<rue> Referring to the “sample code” above
tbuehlmann [tbuehlmann!~Tobias@unaffiliated/tovias] has joined #ruby-lang
jensn [jensn!~Jens@ip231-140.wireless.lu.se] has joined #ruby-lang
NARKOZ [NARKOZ!~NARKOZ@109.127.30.213] has joined #ruby-lang
jaafar [jaafar!~jet@adsl-76-200-166-49.dsl.pltn13.sbcglobal.net] has joined #ruby-lang
<jaafar> Hi everyone, is there an official location for documentation on the "embedded API" (i.e., the C level API)?
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
nari [nari!~nari@raichu.netlab.jp] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@cblmdm24-53-178-92.buckeyecom.net] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
saLOUt [saLOUt!~rriemann@91-65-223-29-dynip.superkabel.de] has joined #ruby-lang
Fullmoon [Fullmoon!~Fullmoon@dsl-stat-43-17.mmc.at] has joined #ruby-lang
replore [replore!~replore@203.152.213.161.static.zoot.jp] has joined #ruby-lang
<Guest64631> jaafar - README.EXT is the official doc
woollyams [woollyams!~woollyams@124-170-59-47.dyn.iinet.net.au] has joined #ruby-lang
<jaafar> Asher: thanks!
<erikh> it's a solid read too; not very cryptic at all
<erikh> a nice change of pace.
<jaafar> Looks good and very helpful. Not many pointers to recent C API docs that I could find via Google... Glad to have something
<Asher> there are also a number of us here that are pretty familiar with it
<Asher> so feel free to ask specific questions
<jaafar> This channel is awesome actually, I got some embedding problems resolve here previously
<jaafar> resolved
<Asher> most of us hang out while working so it might take 20 min before we see but someone will ultimately see
<eumario> Yes, we're here, and in other channels, and working on our own projects, so we tend to be slow to respond sometimes.
<jaafar> 20 min is nothing for something I've been pounding my head against for hours, so that's perfectly fine :)
<erikh> I just make bad jokes
<jaafar> btw I did find another good source: http://media.pragprog.com/titles/ruby3/ext_ruby.pdf
<jaafar> at least, it claims to be up to date
<erikh> the pickaxe tends to get dated quick enough
<erikh> README.EXT, especially from svn is kept up to date regularly
Manhose [Manhose!~Manhose@dial-b1-238-132.telepac.pt] has joined #ruby-lang
<Asher> your best resource is the ruby source
<Asher> seeing how examples are used
<Asher> but README.EXT and other guides are a good place to start, then the headers
mytrile [mytrile!~mytrile@94.26.28.135] has joined #ruby-lang
thrcka [thrcka!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
judofyr [judofyr!~judofyr@195.159.219.65] has joined #ruby-lang
workmad3 [workmad3!~workmad3@vpn164.its.manchester.ac.uk] has joined #ruby-lang
jhchabran [jhchabran!~jh@bne75-11-88-189-148-57.fbx.proxad.net] has joined #ruby-lang
NARKOZ [NARKOZ!~NARKOZ@109.127.30.213] has joined #ruby-lang
<NARKOZ> is it possible to set attr_reader if some condition is true?
kedare [kedare!~kedare@scuderia.internet-fr.net] has joined #ruby-lang
<Asher> attr_reader :reader if condition
<Asher> just like you'd use any if condition
<matti> Asher: :)
kedare [kedare!~kedare@scuderia.internet-fr.net] has joined #ruby-lang
<Asher> matti :D how goes
<matti> Asher: Not too bad, you?
<Asher> goin well here
<rue> NARKOZ: The takeaway here: it's just a method, and class bodies are executable code.
<rue> Although you should take care to not go overboard with that
<judofyr> attr_reader :hello if ENV["USER"] == "magnus"
|Vargas| [|Vargas|!~vargas@pdpc/supporter/profesional/vargas] has joined #ruby-lang
<NARKOZ> thanks
<judofyr> attr_reader :lucky_you if rand(100).zero?
benanne [benanne!~sander@b252h039.ugent.be] has joined #ruby-lang
valeri_ufo [valeri_ufo!~valeri_uf@februality.com] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
|Vargas| [|Vargas|!~vargas@pdpc/supporter/profesional/vargas] has joined #ruby-lang
geoffw8_ [geoffw8_!~geoffw8_@host86-161-34-158.range86-161.btcentralplus.com] has joined #ruby-lang
<DEac-> it's possible, that an on rubygems.org released gem is not installable via gem, yet? how long it takes till it installable?
<shevy> DEac- almost instantly I would say
<shevy> ah you mean
<shevy> a delay before it is available after publishing?
<DEac-> yes
eumario [eumario!~eumario@va-184-5-132-88.dhcp.embarqhsd.net] has quit ["Leaving"]
<shevy> that could be, perhaps it has to sync from somewhere
<shevy> but I would not know really
<DEac-> i see 3 downloads happens yet, but i can't yet
<DEac-> ok, thanks
<DEac-> that never happens before
geoffw8_ [geoffw8_!~geoffw8_@host86-161-34-158.range86-161.btcentralplus.com] has joined #ruby-lang
<andrewvos> We're doing a dojo today and are going to take a project and refactor it using flog.. Could anyone suggest some ruby code that's really simple to understand?
<andrewvos> Well written code, that's simple to read.
<rue> Won't that make flog superfluous, then?
<andrewvos> rue: Yes
geoffw8_ [geoffw8_!~geoffw8_@host86-161-34-158.range86-161.btcentralplus.com] has joined #ruby-lang
<andrewvos> rue: It's just a fun excercise though. We're not going to submit a pull request with massive refactorings.
<rue> I mean wouldn't it make more sense to pick something that *isn't* simple?
<andrewvos> rue: Can you think of any well written gems?
<andrewvos> rue: Well, I'm thinking probably not because there are about 10 people joining with varying skills
<rue> Maybe minitest?
roadkith [roadkith!~kith@unaffiliated/kith] has joined #ruby-lang
patkoscsaba [patkoscsaba!~patkoscsa@81.196.33.110] has joined #ruby-lang
<patkoscsaba> hi everyone
<patkoscsaba> anybody using infinity_test here?
<patkoscsaba> is there any way to make infinity_test to reload it's configuration while running, in order to catch / observe newly added _rspec.rb test files?
<rue> Maybe, did you have questions?
<rue> Looks like the config is executable?
woollyams [woollyams!~woollyams@124-170-59-47.dyn.iinet.net.au] has joined #ruby-lang
<rue> You could add a before/after to reprocess, I suppose
<patkoscsaba> rue: that's what I though also, but I don't know how to do the reprocess or what command to run
<patkoscsaba> I mean what to run inside after_run or before_run
<rue> Just redo the add pattern, maybe? That wouldn't work in all cases…
<rue> patkoscsaba: Did you check whether it supports HUP? Although I'd imagine it'd automatically be able to observe new files… seems rather pointless otherwise
<rue> What if you add a directory pattern?
EvilJStoker [EvilJStoker!jstoker@unaffiliated/jstoker] has joined #ruby-lang
<patkoscsaba> rue: autotest can't observe new files either ...
<patkoscsaba> rue: I am looking into the possible solutions based on your suggestions
<rue> patkoscsaba: Why bother redoing it if you're not improving? :)
<patkoscsaba> rue: I don't understand you
<rue> It should have implemented directory watching
davesq [davesq!u1884@gateway/web/irccloud.com/x-ilhbccvqjucnfdev] has joined #ruby-lang
kain [kain!~kain@151.64.233.57] has joined #ruby-lang
<patkoscsaba> rue: hmm ... if I have a watch on views/* it includes both /app/views and rspec/views and it runs when a new test is added into rspec/views
<rue> That's good, then?
<patkoscsaba> maybe I just have to add an empty watcher to rspec? ... let's try
<patkoscsaba> rue: it's good
<patkoscsaba> but I have to make it more general
thrcka_ [thrcka_!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
mantono [mantono!~mantono@83.251.126.234] has joined #ruby-lang
<andrewvos> rue: Thanks will take a look at minitest :)
Manhose [Manhose!~Manhose@193.136.33.133] has joined #ruby-lang
* muzone releases He Let You Go - A tribute to manveru (http://home.no/dwaynie/he_let_you_go.mp3)
chrismcg [chrismcg!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
<andrewvos> Tests don't pass in minitest
<andrewvos> zenspider: I'm getting two tests failing in minitest under 1.9.2. Is this normal or should I be running the tests in 1.8.7?
<rue> 1.9.3?
<rue> Er, clean on 1.9.3
<andrewvos> rue: Hmm not installed it
comboy [comboy!~quassel@static.7.66.9.176.clients.your-server.de] has joined #ruby-lang
slaytanic [slaytanic!~slaytanic@host27.190-138-61.telecom.net.ar] has joined #ruby-lang
<rue> It's clean on 2p190
<rue> Er 2-p290
Manhose_ [Manhose_!~Manhose@193.136.33.133] has joined #ruby-lang
<andrewvos> rue: By clean you mean?
<andrewvos> rue: GEtting the failures on p290
<rue> No errors
saLOUt [saLOUt!~rriemann@naqasl.physik.hu-berlin.de] has joined #ruby-lang
<rue> 214 tests, 710 assertions, 0 failures, 0 errors, 0 skips
<andrewvos> rue: Ok trying 1.9.3
<andrewvos> Why no travis-ci love for minitest?
<manveru> muzone: ?
dave_miles [dave_miles!~davemiles@gatej.mh.bbc.co.uk] has joined #ruby-lang
rubyplusplus [rubyplusplus!~eric@cpe-74-75-153-107.maine.res.rr.com] has joined #ruby-lang
<patkoscsaba> for everyone interested in making ininity to sense newly added tests:
<patkoscsaba> add this to a heuristics section in your infinity_test file
<patkoscsaba> add('spec') do |file|
<patkoscsaba> run :test_for => file
<patkoscsaba> end
frangiz [frangiz!~frangiz@user26.77-105-206.netatonce.net] has joined #ruby-lang
<rue> patkoscsaba: spec being a directory?
<patkoscsaba> rue: spec is RSpec's test directory
<patkoscsaba> change it in 'test' if you use test-unit or similar
EvilJStoker [EvilJStoker!jstoker@unaffiliated/jstoker] has joined #ruby-lang
<andrewvos> Anyone know a in memory backing store for activerecord that is *not* sqlite?
<andrewvos> an*
<heftig> andrewvos: supermodel?
<andrewvos> heftig: No, just an average guy
<andrewvos> heftig: Thanks will take a look :)
steerio [steerio!~steerio@92.48.73.9] has joined #ruby-lang
<steerio> yo
<steerio> i got a problem here that you guys probably can solve in seconds: no such file to load -- mkmf
<steerio> which i normally can solve on debian (insteall dev package)
<steerio> but this time ruby was installed from source under /opt, and the file indeed exists
<patkoscsaba> rue: however this has a problem ... it will run all the tests in the specific folder, which I do not want
<steerio> (and 'which ruby' points to the correct installation)
<andrewvos> heftig: Supermodel doesn't look like the right tool. I want to be able to use sql/sqlite/inmemory but dont' want to have to install inmemory for sqlite
<andrewvos> Sorry, I mean I don't want to have to install sqlite
Manhose_ [Manhose_!~Manhose@193.136.33.133] has joined #ruby-lang
nark-1 [nark-1!~NARKOZ@109.127.30.213] has joined #ruby-lang
niklasb [niklasb!~codeslay0@p5B310842.dip0.t-ipconnect.de] has joined #ruby-lang
EvilJStoker [EvilJStoker!jstoker@unaffiliated/jstoker] has joined #ruby-lang
Ypsilon [Ypsilon!~opera@p54B89E2D.dip0.t-ipconnect.de] has joined #ruby-lang
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has joined #ruby-lang
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby-lang
ovnimancer [ovnimancer!~anton@212.59.96.38] has joined #ruby-lang
EvilJStoker [EvilJStoker!jstoker@unaffiliated/jstoker] has joined #ruby-lang
NARKOZ [NARKOZ!~NARKOZ@109.127.30.213] has joined #ruby-lang
thrcka_ [thrcka_!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
yorickpeterse1 [yorickpeterse1!~yorickpet@pdpc/supporter/professional/yorickpeterse] has joined #ruby-lang
ovnimancer [ovnimancer!~anton@212.59.96.38] has quit [#ruby-lang]
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby-lang
davesq [davesq!u1884@gateway/web/irccloud.com/x-ilhbccvqjucnfdev] has quit [#ruby-lang]
rubyplusplus [rubyplusplus!~eric@cpe-74-75-153-107.maine.res.rr.com] has joined #ruby-lang
meise [meise!~dm@3st.be] has joined #ruby-lang
lele|w [lele|w!~Lele@2a01:2d8:0:cafe:218:f3ff:fece:a48] has joined #ruby-lang
RomD` [RomD`!~Roman@nrbg-4dbe092a.pool.mediaWays.net] has joined #ruby-lang
aLinux [aLinux!~aLinux@unaffiliated/alinux] has joined #ruby-lang
* aLinux is back.
nari [nari!~nari@p62e324.totrnt01.ap.so-net.ne.jp] has joined #ruby-lang
aLinux [aLinux!~aLinux@unaffiliated/alinux] has quit ["Leaving"]
grafthez [grafthez!~John@78.8.207.2] has joined #ruby-lang
imajes [imajes!~imajes@is.imaj.es] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
<rue> Congrats
<shevy> lol
* shevy is on rue.
sepp2k [sepp2k!~sexy@g224101130.adsl.alicedsl.de] has joined #ruby-lang
mark_locklear [mark_locklear!~jlocklear@ab-tech-lan-to-ab-tech-gw.ncren.net] has joined #ruby-lang
<TTilus> andrewvos: don't rdbmsystems have in-memory tables? could they be of any help?
<andrewvos> TTilus: Not sure what oyu mean exactly?
tommyvyo [tommyvyo!~tommyvyo@38.123.129.115] has joined #ruby-lang
* imperator wonders if he means views
<andrewvos> Ok so minitest might not be the right project to work with
<andrewvos> may be a little complex
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@2.69.243.51.mobile.tre.se] has joined #ruby-lang
tomzx [tomzx!~tomzx@dsl-216-221-32-204.aei.ca] has joined #ruby-lang
Spooner [Spooner!~Miranda@host-92-23-158-179.as13285.net] has joined #ruby-lang
rippa [rippa!~rippa@109-161-75-186.pppoe.yaroslavl.ru] has joined #ruby-lang
EvilJStoker [EvilJStoker!jstoker@unaffiliated/jstoker] has joined #ruby-lang
<andrewvos> WTF every gem I download has failing tests
slaytanic [slaytanic!~slaytanic@200-55-74-190.dsl.prima.net.ar] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby-lang
<imperator> andrewvos, how are you running them?
cjs226 [cjs226!~cjs226@rrcs-71-40-79-154.sw.biz.rr.com] has joined #ruby-lang
vesan__ [vesan__!vesan@maailmanlopun.modeemi.net] has joined #ruby-lang
gearaholic [gearaholic!~gearaholi@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby-lang
geoffw8_ [geoffw8_!~geoffw8_@host81-151-1-88.range81-151.btcentralplus.com] has joined #ruby-lang
Manhose_ [Manhose_!~Manhose@193.136.33.133] has joined #ruby-lang
imajes [imajes!~imajes@is.imaj.es] has joined #ruby-lang
geoffw8_ [geoffw8_!~geoffw8_@host81-151-1-88.range81-151.btcentralplus.com] has joined #ruby-lang
orbit [orbit!9506a6d6@gateway/web/freenode/ip.149.6.166.214] has joined #ruby-lang
<andrewvos> imperator: bundle exec rake test
<andrewvos> or spec, depending
<andrewvos> Using p290
NARKOZ [NARKOZ!~NARKOZ@109.127.30.213] has joined #ruby-lang
<andrewvos> Just tried sinatra and there's one failing test in it too
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
Austin__ [Austin__!~austin@CPE00f1f3072bf9-CM001ceacce8e2.cpe.net.cable.rogers.com] has joined #ruby-lang
Austin__ [Austin__!~austin@CPE00f1f3072bf9-CM001ceacce8e2.cpe.net.cable.rogers.com] has joined #ruby-lang
<andrewvos> orbita: Write imagemagick in ruby
<orbita> andrewvos: Oh :p
<orbita> andrewvos: Isn't too large ?
andrewhl [andrewhl!~andrew@24.246.15.43] has joined #ruby-lang
<andrewvos> orbita: ehhe
<orbita> And rmagick works well (I guess)
<imperator> andrewvos, well, uh, submit bug reports? :|
robbrit [robbrit!~rob@38.108.76.250] has joined #ruby-lang
RickHull [RickHull!~rhull@209.119.14.25] has joined #ruby-lang
JEG2 [JEG2!~JEG2@ip72-198-103-217.ok.ok.cox.net] has joined #ruby-lang
gearaholic [gearaholic!~gearaholi@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby-lang
shevy [shevy!~shevy@213-33-12-54.adsl.highway.telekom.at] has joined #ruby-lang
MistyM [MistyM!~mistym@50.museumforhumanrights.com] has joined #ruby-lang
vesan_ [vesan_!vesan@maailmanlopun.modeemi.net] has joined #ruby-lang
wi43 [wi43!81a2012a@gateway/web/freenode/ip.129.162.1.42] has joined #ruby-lang
<muzone> manveru: a song i made for you :-)
<muzone> a song about all the girls you've turned down / broken up with
<muzone> hehe
<muzone> nothing special though
looopy [looopy!~looopy@static-71-166-231-15.washdc.east.verizon.net] has joined #ruby-lang
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
sandelius [sandelius!~textual@90-231-202-62-no214.tbcn.telia.com] has joined #ruby-lang
codefriar [codefriar!~codefriar@ip-200.it.rdu.bandwidth.com] has joined #ruby-lang
<shevy> manveru is a heartbreaker
outoftime_ [outoftime_!~mat@50.57.10.189] has joined #ruby-lang
nuclearsandwich [nuclearsandwich!~nuclearsa@74-93-3-241-SFBA.hfc.comcastbusiness.net] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
<andrewvos> Hw should I be running tests in minitest? rake test right??
kennyp [kennyp!~kennyp@fedora/kennyp] has joined #ruby-lang
burgestrand1 [burgestrand1!~burgestra@62.65.124.23] has joined #ruby-lang
<shevy> rake nuke world
kennyp [kennyp!~kennyp@fedora/kennyp] has quit [#ruby-lang]
Sailias_ [Sailias_!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cspool114.cs.man.ac.uk] has joined #ruby-lang
outoftime_ [outoftime_!~mat@50.57.10.189] has joined #ruby-lang
geoffw8_ [geoffw8_!~geoffw8_@host86-161-34-158.range86-161.btcentralplus.com] has joined #ruby-lang
erics [erics!~Skif@72.1.92.57] has joined #ruby-lang
Swimming_Bird [Swimming_Bird!~textual@64.70.114.88] has joined #ruby-lang
outoftime_ [outoftime_!~mat@50.57.10.189] has joined #ruby-lang
nari [nari!~nari@p62e324.totrnt01.ap.so-net.ne.jp] has joined #ruby-lang
rayners [rayners!~rayners@38.102.22.194] has joined #ruby-lang
Indian_ [Indian_!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby-lang
rushed [rushed!~rushed@cpe-70-116-11-35.austin.res.rr.com] has joined #ruby-lang
macmartine [macmartine!~macmartin@069-064-227-254.pdx.net] has joined #ruby-lang
xhr [xhr!~xhr@94.177.39.155] has joined #ruby-lang
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
Skif [Skif!~Skif@72.1.92.57] has joined #ruby-lang
RomD`` [RomD``!~Roman@nrbg-4dbfd847.pool.mediaWays.net] has joined #ruby-lang
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
bitrot [bitrot!~smd@rrcs-50-84-14-82.sw.biz.rr.com] has joined #ruby-lang
gokulnath [gokulnath!~gokulnath@117.216.80.33] has joined #ruby-lang
Manhose [Manhose!~Manhose@193.136.33.133] has joined #ruby-lang
gokulnath_ [gokulnath_!~gokulnath@117.204.126.98] has joined #ruby-lang
butchanton [butchanton!~butchanto@adsl-99-146-153-30.dsl.pltn13.sbcglobal.net] has joined #ruby-lang
steeljav [steeljav!~b@69.197.102.2] has joined #ruby-lang
Jake232 [Jake232!~textual@5e04ad56.bb.sky.com] has joined #ruby-lang
Natch| [Natch|!~natch@178.73.216.50] has joined #ruby-lang
EvilJStoker [EvilJStoker!jstoker@unaffiliated/jstoker] has joined #ruby-lang
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
srbaker [srbaker!~srbaker@68.71.200.170] has joined #ruby-lang
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
Swimming_Bird [Swimming_Bird!~textual@64.70.114.89] has joined #ruby-lang
thrcka_ [thrcka_!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
thone [thone!~thone@g226034078.adsl.alicedsl.de] has joined #ruby-lang
heppy [heppy!~heppy@fw.baysidebusinessplaza.com] has joined #ruby-lang
io_syl [io_syl!~io_syl@unaffiliated/steph021] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
nekid [nekid!nekid@115.242.53.101] has joined #ruby-lang
geoffw8_ [geoffw8_!~geoffw8_@host86-161-34-158.range86-161.btcentralplus.com] has joined #ruby-lang
Carnage\ [Carnage\!~carnage@84-75-168-154.dclient.hispeed.ch] has joined #ruby-lang
yuyun [yuyun!~ras@115.135.32.137] has joined #ruby-lang
<yuyun> hi..
yuyun [yuyun!~ras@115.135.32.137] has quit [#ruby-lang]
thrcka_ [thrcka_!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
Austin__ [Austin__!~austin@CPE00f1f3072bf9-CM001ceacce8e2.cpe.net.cable.rogers.com] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-15-43.cable.teksavvy.com] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@46.118.221.156] has joined #ruby-lang
ascarter [ascarter!~ascarter@216.243.14.210] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
X0Rc0re [X0Rc0re!~chatzilla@124-169-91-231.dyn.iinet.net.au] has joined #ruby-lang
X0Rc0re [X0Rc0re!~chatzilla@124-169-91-231.dyn.iinet.net.au] has quit [#ruby-lang]
jbwiv [jbwiv!~wellsj@world.timcogso.com] has joined #ruby-lang
Oloryn_lt2 [Oloryn_lt2!~Oloryn@96-25-160-157.gar.clearwire-wmx.net] has joined #ruby-lang
<RickHull> Hack the Gibson!
zkl [zkl!zkl@morpheus.net] has joined #ruby-lang
<Asher> dude bad things™ happen when you hack the gibson
<RickHull> that creepy bearded guy will call your mom™
amerine [amerine!~mturner@67.204.184.82] has joined #ruby-lang
<Asher> fisher stevens?
<ironcamel> i am using Test::Unit::TestCase and i need to do some cleanup at the very end only if all the tests have passed
<ironcamel> is there a good way to do this?
<Asher> use mock objects so you don't have to clean up
<RickHull> Asher: yep :)
solars [solars!~solars@mk089144206081.a1.net] has joined #ruby-lang
<ironcamel> Asher: these are actually system/functional level tests
<ironcamel> so mocks are not what i want
guns [guns!~guns@c-98-228-72-208.hsd1.il.comcast.net] has joined #ruby-lang
<Asher> what are you needing to clean up?
<ironcamel> do i need to maintain state by using a flag? setting the flag to false once a test failed
<Asher> maybe gist your tests
<ironcamel> Asher: the tests create virtual servers, and cleanup is deleting the virtual servers
<RickHull> i would think the overall state (e.g. % of passing tests) is already being tracked somewhere
twittard_ [twittard_!~twittard@cpe-76-169-74-39.socal.res.rr.com] has joined #ruby-lang
<Asher> shouldn't you be testing deleting virtual servers anyway?
<Asher> but you can make a cleanup function that runs after tests
<ironcamel> Asher: note the function test_999_teardown
<ironcamel> i need to add logic there to clean up servers only if all the tests have passed
<Asher> right...
<ironcamel> RickHull: that would be great
srbaker [srbaker!~srbaker@68.71.200.170] has joined #ruby-lang
<ironcamel> RickHull: but how to get that info is the question
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
<Asher> ironcamel - it seems like you either keep track of when they fail or you test whether they've been created for cleanup
<RickHull> indeed, i am long on generalizations and short on specifics ;)
<ironcamel> Asher: what is a good way to keep track of when they fail?
<ironcamel> i can create a flag as an attribute
<Asher> why don't you just check if the server exists and clean it up if it does
<ironcamel> do assert_* functions return true/false ?
<ironcamel> Asher: because the server existing doesn't mean success
towski [towski!~towski@204-15-1-114-static.ipnetworksinc.net] has joined #ruby-lang
<ironcamel> success means the server exists and i can ssh to it
<Asher> why do you care about success for cleanup
<Asher> you just need to clean it up if it was created, right?
<Asher> you said you only clean up if it was successful
<ironcamel> because we need to do some manual troubleshooting
<ironcamel> if there was a failure
<ironcamel> so we want the servers to still exist after running the tests
<RickHull> these should be automated tests
<ironcamel> RickHull: they are
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has quit ["WeeChat 0.3.6"]
<RickHull> if your tests fail, you can re run in a manual fashion
<RickHull> i wouldn't mix the two
<ironcamel> but we also are running manually
<Asher> i agree
<Asher> it seems like a weird task to expect from unit tests
<ironcamel> we added the CLEAN_UP_SERVERS specifically for running manually
<ironcamel> in general they are automated and CLEAN_UP_SERVERS defaults to true
<RickHull> i'm not speaking from experience here, but i think your tests should be written in an automated fashion
<RickHull> then add some rake tasks to handle manual running
<ironcamel> Asher: yes, it is a weird task, but one my boss has asked for
stamina [stamina!~stamina@ip5452a9bc.speed.planet.nl] has joined #ruby-lang
<ironcamel> does anyone know if assert_* methods return true/false? do they return anything?
<RickHull> (making the distinction between Test::Unit and rake)
srbaker_ [srbaker_!~srbaker@68.71.200.170] has joined #ruby-lang
<RickHull> ironcamel: it seems like you've built a large structure on a shaky foundation ;)
<Asher> well then keep track of failure state in some sort of global place - either a var or a constant or whatnot
spinagon [spinagon!~rippa@109-161-73-144.pppoe.yaroslavl.ru] has joined #ruby-lang
<Asher> but i think proceeding in this way is going to cause a mess… better to modularize your code and create a set of unit tests and a set of debugging tools
<Asher> unit tests are to prove your code works
<Asher> not to test if your setup was executed properly
<RickHull> when unit tests fail, you should shift to debug mode
<Asher> if your unit tests prove your code work then your debugging tools should be pretty simple
<RickHull> and not try to debug in your unit tests
ascarter [ascarter!~ascarter@216.243.14.210] has joined #ruby-lang
EvilJStoker [EvilJStoker!jstoker@unaffiliated/jstoker] has joined #ruby-lang
<ironcamel> RickHull: this not something i have built
<Asher> do you get the distinction point i'm making tho?
<RickHull> ironcamel: fair enough. I'd still focus on the foundation, you can look up the exact behavior of assert_*
<RickHull> (I'm not particularly familiar with Test::Unit)
malev [malev!~malev@190.210.138.237] has joined #ruby-lang
pandora17 [pandora17!~pandora17@p508D509F.dip.t-dialin.net] has joined #ruby-lang
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
<ironcamel> Asher: yes, i understand
<jorgenpt> Holy crap.
<jorgenpt> Why is foo {} allowed? :/
<jorgenpt> (and not ambigious to mean "empty hash arg" *or* "empty block arg")
<Asher> you can pass any method a block
<Asher> it is an empty block arg
yorickpeterse [yorickpeterse!~yorickpet@pdpc/supporter/professional/yorickpeterse] has joined #ruby-lang
<jorgenpt> I know, but you can't use a hash literal to pass an empty hash arg as the only arg?
<RickHull> just use Hash.new?
<Asher> it's a lambda
<Asher> oh i see
<Asher> i duno how that'll be interpreted
<jorgenpt> RickHull: I know there's a workaround, I just think it's ugly :(
<jorgenpt> I'm code-reviewing a coworkers code, and he does EM.run {}
gearaholic [gearaholic!~gearaholi@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby-lang
<RickHull> that's what we get for overloading {} :p
<jorgenpt> And I was like "that function doesn't take a hash!"
<Asher> it looks like it interprets it as a block
<jorgenpt> Yeah, it does
<jorgenpt> I don't think it's a good way to write code, though, since it's so ambiguous.
<Asher> there's no good reason to send an empty block anyway
<TTilus> jorgenpt: foo({})
<jorgenpt> TTilus: What about the other scenario?
<jorgenpt> foo() {}? :/
<jorgenpt> I hate empty parens like that, it's so Javalike :P
Austin__1 [Austin__1!~austin@96.45.197.22] has joined #ruby-lang
<jorgenpt> Asher: Yes there is - empty block is non-nil
butchanton [butchanton!~butchanto@64.134.230.26] has joined #ruby-lang
<jorgenpt> Specifically talking about calling http://eventmachine.rubyforge.org/EventMachine.html#M000461
Ki4n [Ki4n!~Ki4n@88-117-107-198.adsl.highway.telekom.at] has joined #ruby-lang
<RickHull> would it work the same if you called EM.run :not_nil ?
<TTilus> jorgenpt: thats a thing you need to know
<Asher> if you're having to pass an empty block there is kludgey code somewhere
<jorgenpt> No, it calls .call on the object
<TTilus> jorgenpt: actually .to_proc.call i think
<jorgenpt> Wait, nevermind
<jorgenpt> It does (b = blk || block) and b.call
<jorgenpt> So just not passing anything will work
<TTilus> jorgenpt: that sounds more like it
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
EvilJStoker [EvilJStoker!jstoker@unaffiliated/jstoker] has joined #ruby-lang
wmoxam_ [wmoxam_!~wmoxam@76.9.195.38] has joined #ruby-lang
mrsolo [mrsolo!~mrsolo@64.125.181.73] has joined #ruby-lang
twittard [twittard!~twittard@wc.lax.truecarcorp.com] has joined #ruby-lang
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby-lang
benanne [benanne!~rijdier@220.45-241-81.adsl-dyn.isp.belgacom.be] has joined #ruby-lang
wmoxam_ [wmoxam_!~wmoxam@69-196-160-133.dsl.teksavvy.com] has joined #ruby-lang
voker57 [voker57!~voker57@2.93.236.37] has joined #ruby-lang
voker57 [voker57!~voker57@kvirc/developer/Voker57] has joined #ruby-lang
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby-lang
sepp2k [sepp2k!~sexy@g224101132.adsl.alicedsl.de] has joined #ruby-lang
cylence [cylence!~cylence@64-71-24-18.static.wiline.com] has joined #ruby-lang
QaDeS [QaDeS!~mklaus@frbg-5d84fe49.pool.mediaWays.net] has joined #ruby-lang
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby-lang
RedGreen [RedGreen!~Anon386@host86-143-104-70.range86-143.btcentralplus.com] has joined #ruby-lang
<RedGreen> hello?
<Asher> hi
<cylence> hi
<RedGreen> whatcha do here?
<RickHull> chat nstuff
<RedGreen> kk
<cylence> and things
<RickHull> mostly here to support ruby programmers who have questions
erics [erics!~Skif@72.1.92.57] has joined #ruby-lang
Skif_home [Skif_home!~Skif@74.115.253.42] has joined #ruby-lang
nuclearsandwich [nuclearsandwich!~nuclearsa@173.247.193.198] has joined #ruby-lang
<samuelkadolph> We're hear for a single purpose: to worship Matz.
<samuelkadolph> here*
<lianj> where is the rack middleware for that?
NARKOZ [NARKOZ!~NARKOZ@93.184.224.33] has joined #ruby-lang
adam_ [adam_!~adam@S010600238b791368.cg.shawcable.net] has joined #ruby-lang
<adam_> I have a question I am playing with some recursive code: https://github.com/AdamKyle/RGSSDeveloperTools/blob/development/RecursiveModule.rb How ever when a test file that calls these methods I get http://pastebin.com/m90tTc86 for errors......I have no idea why they want what they want.
vesan_ [vesan_!vesan@maailmanlopun.modeemi.net] has joined #ruby-lang
Sailias_ [Sailias_!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby-lang
Austin__ [Austin__!~austin@96.45.197.22] has joined #ruby-lang
<shevy> samuelkadolph but I wanna worship you instead :(
<samuelkadolph> shevy: Creepy
<adam_> I have a question I am playing with some recursive code: https://github.com/AdamKyle/RGSSDeveloperTools/blob/development/RecursiveModule.rb How ever when a test file that calls these methods I get http://pastebin.com/m90tTc86 for errors......I have no idea why they want what they want.
<adam_> unless I a passing argument wrong but last i checked you could do this
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
<theconartist> adam_: you cant have a space before the (
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby-lang
<adam_> why?
<adam_> its a space
<theconartist> display_array(...) will work
<theconartist> because that is the syntax requirement
<theconartist> if you want to know why they made it that way i can guess some reasons for you
<adam_> um in my code there is no space, like in the IDE
<theconartist> such as if you want to do: method (a+b)*(c+d)
<Mon_Ouie> There is a space in your code
<adam_> where?
<theconartist> "display_array (array, first+1, last)"
<adam_> I dont see any
<Mon_Ouie> after the second y
<adam_> OHHHH wow im blind
<Mon_Ouie> Also the algorithm for sum_of(value) is really bad
<adam_> im just playing
<Mon_Ouie> It's O(n), you can do the same in O(1)
hhatch [hhatch!~hhatch@h137-129.pool212-16.dyn.tolna.net] has joined #ruby-lang
arooni-mobile [arooni-mobile!~arooni-mo@187.153.79.230] has joined #ruby-lang
brianpWins [brianpWins!~brianpWin@207.6.118.71] has joined #ruby-lang
nekid [nekid!nekid@115.242.125.151] has joined #ruby-lang
butchanton [butchanton!~butchanto@64.134.230.26] has joined #ruby-lang
WhiteHorse [WhiteHorse!~WhiteHors@201.208.150.8] has joined #ruby-lang
heppy_ [heppy_!~heppy@fw.baysidebusinessplaza.com] has joined #ruby-lang
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
NARKOZ [NARKOZ!~NARKOZ@93.184.224.33] has joined #ruby-lang
NARKOZ [NARKOZ!~NARKOZ@93.184.224.33] has quit [#ruby-lang]
Manhose [Manhose!~Manhose@a94-132-167-54.cpe.netcabo.pt] has joined #ruby-lang
dr_bob [dr_bob!~dr_bob@p5DC4EECE.dip.t-dialin.net] has joined #ruby-lang
Oloryn_lt2 [Oloryn_lt2!~Oloryn@96-25-160-157.gar.clearwire-wmx.net] has joined #ruby-lang
uniqanomaly [uniqanomaly!~ua@dynamic-78-8-212-44.ssp.dialog.net.pl] has joined #ruby-lang
curtism [curtism!~curtis@bas11-montreal02-1128531355.dsl.bell.ca] has joined #ruby-lang
looopy [looopy!~looopy@static-71-166-231-15.washdc.east.verizon.net] has joined #ruby-lang
postmodern [postmodern!~postmoder@c-71-237-178-98.hsd1.or.comcast.net] has joined #ruby-lang
uniqanomaly [uniqanomaly!~ua@dynamic-78-8-93-236.ssp.dialog.net.pl] has joined #ruby-lang
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
towski [towski!~towski@204-15-1-114-static.ipnetworksinc.net] has joined #ruby-lang
Kyonshi [Kyonshi!~Ki4n@88-117-108-209.adsl.highway.telekom.at] has joined #ruby-lang
tooky [tooky!~tooky@cpc5-sotn11-2-0-cust194.15-1.cable.virginmedia.com] has joined #ruby-lang
lenilson_dias [lenilson_dias!~lenilson_@189.65.184.214] has joined #ruby-lang
davehimself [davehimself!~davehimse@c-98-200-201-146.hsd1.tx.comcast.net] has joined #ruby-lang
uniqanomaly [uniqanomaly!~ua@dynamic-78-8-93-236.ssp.dialog.net.pl] has joined #ruby-lang
Skif [Skif!~Skif@72.1.92.57] has joined #ruby-lang
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
looopy [looopy!~looopy@static-71-166-231-15.washdc.east.verizon.net] has joined #ruby-lang
solars [solars!~solars@mk089144206081.a1.net] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
heppy_ [heppy_!~heppy@fw.baysidebusinessplaza.com] has quit [#ruby-lang]
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby-lang
codewrangler [codewrangler!~codewrang@pool-108-28-240-83.washdc.fios.verizon.net] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@216.199.155.226.nw.nuvox.net] has joined #ruby-lang
erikh [erikh!~erikh@69.30.53.43] has joined #ruby-lang
<shevy> hmm
Oloryn_lt2 [Oloryn_lt2!~Oloryn@96-25-160-157.gar.clearwire-wmx.net] has joined #ruby-lang
<shevy> when I want to write something like a ruby to php compiler
<shevy> how would I start about this?
<RickHull> pray
<RickHull> acquire copious amounts of alcohol
<shevy> ok checked both
<shevy> what is the third step?
<RickHull> give up
<shevy> hmmmmm
<RickHull> how would you handle e.g. blocks / yield?
<shevy> RickHull I'd discard them
<RickHull> or foo.inject(:+)
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby-lang
<RickHull> or method_missing, respond_to?
<shevy> well
<RickHull> not that you couldn't, but you'd have to be comfortable with these before even starting, I think
<shevy> you are not quite helping
<RickHull> what else is new?
<shevy> I'll let it linger for a while
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
brianpWins [brianpWins!~brianpWin@S01060014bf8930ea.vc.shawcable.net] has joined #ruby-lang
<RickHull> znc.sourceforge.net redirects to http://wiki.znc.in/ZNC
erikh [erikh!~erikh@69.30.53.43] has joined #ruby-lang
<uniqanomaly> shevy: you start by doin' research what was already done, like http://ruby-php.org/ :>
<uniqanomaly> and why the hell would you convert ruby to php
<uniqanomaly> its sacrilege
<shevy> hmm can't see any source of that
<erikh> phuby!
<Mon_Ouie> Isn't that PHP written in Ruby?
<yxhuvud> Mon_Ouie: no, it is php as a c extension to ruby.
<Mon_Ouie> Ah. Well, still not Ruby -> PHP
<yxhuvud> well, it supports communication both ways. I suggest you (re?)watch that brilliant talk :)
<lianj> hehe
<Mon_Ouie> No, I mean it's not a compiler from Ruby to PHP
erikh [erikh!~erikh@69.30.53.43] has joined #ruby-lang
Manhose [Manhose!~Manhose@a94-132-167-54.cpe.netcabo.pt] has joined #ruby-lang
Manhose_ [Manhose_!~Manhose@a94-132-167-54.cpe.netcabo.pt] has joined #ruby-lang
robbrit [robbrit!~rob@38.108.76.250] has quit [#ruby-lang]
diegoviola [diegoviola!~viola@host-1-211.b15.cvc.com.py] has joined #ruby-lang
WhiteHorse [WhiteHorse!~WhiteHors@201.208.150.8] has joined #ruby-lang
Oloryn_lt2 [Oloryn_lt2!~Oloryn@96-25-160-157.gar.clearwire-wmx.net] has joined #ruby-lang
Sailias_ [Sailias_!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby-lang
havenn [havenn!~skipper@pool-71-189-127-198.lsanca.fios.verizon.net] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@2.68.215.16.mobile.tre.se] has joined #ruby-lang
sora_h [sora_h!~sora_h@tubusu.net] has joined #ruby-lang
havenn [havenn!~skipper@pool-71-189-127-198.lsanca.fios.verizon.net] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby-lang
Natch| [Natch|!~natch@178.73.216.50] has joined #ruby-lang
codefriar [codefriar!~codefriar@ip-200.it.rdu.bandwidth.com] has joined #ruby-lang
havenn [havenn!~skipper@pool-71-189-127-198.lsanca.fios.verizon.net] has joined #ruby-lang
<matti> Mon_Ouie: ;]
<Mon_Ouie> 'alut matti ;)
<shevy> no kisses!!!
petercooper [petercooper!~petercoop@82.144.254.2] has joined #ruby-lang
workmad3 [workmad3!~workmad3@84.45.226.85] has joined #ruby-lang
petercooper [petercooper!~petercoop@82.144.254.2] has quit [#ruby-lang]
srbartlett [srbartlett!~srbartlet@124-148-180-183.dyn.iinet.net.au] has joined #ruby-lang
RickHull [RickHull!~rhull@209.119.14.25] has quit [#ruby-lang]
hahuang65 [hahuang65!~hahuang65@204.11.231.186.static.etheric.net] has joined #ruby-lang
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
Oloryn_lt21 [Oloryn_lt21!~Oloryn@96-25-160-157.gar.clearwire-wmx.net] has joined #ruby-lang
looopy [looopy!~looopy@static-71-166-231-15.washdc.east.verizon.net] has joined #ruby-lang
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@46.118.222.172] has joined #ruby-lang
looopy [looopy!~looopy@static-71-166-231-15.washdc.east.verizon.net] has joined #ruby-lang
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby-lang
havenn [havenn!~skipper@pool-71-189-127-198.lsanca.fios.verizon.net] has joined #ruby-lang
zomgbie [zomgbie!~jesus@85-127-169-153.dynamic.xdsl-line.inode.at] has joined #ruby-lang
snuxoll [snuxoll!~snuxoll@63.227.129.124] has joined #ruby-lang
snuxoll [snuxoll!~snuxoll@63.227.129.124] has joined #ruby-lang
snuxoll [snuxoll!~snuxoll@2600:3c01::f03c:91ff:fe96:6411] has joined #ruby-lang
savage- [savage-!~savage-@209.118.197.220] has joined #ruby-lang
codefriar [codefriar!~codefriar@cpe-098-026-012-134.nc.res.rr.com] has joined #ruby-lang
cored [cored!~homer@201.229.129.152] has joined #ruby-lang
cored [cored!~homer@unaffiliated/cored] has joined #ruby-lang
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
heppy [heppy!~heppy@fw.baysidebusinessplaza.com] has joined #ruby-lang
freedrull [freedrull!~freedrull@freedrull.xen.prgmr.com] has joined #ruby-lang
thrcka_ [thrcka_!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
oddmunds [oddmunds!~oddmunds@s21-04214.dsl.no.powertech.net] has joined #ruby-lang
Austin__ [Austin__!~austin@96.45.197.22] has quit [#ruby-lang]
Skif [Skif!~Skif@72.1.92.57] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@h-163-174.a155.priv.bahnhof.se] has joined #ruby-lang
uniqanomaly [uniqanomaly!~ua@dynamic-78-8-93-236.ssp.dialog.net.pl] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@242.sub-97-163-81.myvzw.com] has joined #ruby-lang
<handygandy> If I do (1..(a.size-1)).each{body} and I delete a[i] in body will that cause problems?
ttilley [ttilley!~ttilley@unaffiliated/lv] has joined #ruby-lang
cjs226 [cjs226!~cjs226@99-61-65-242.lightspeed.austtx.sbcglobal.net] has joined #ruby-lang