Topic for #ruby is now Ruby programming language || ruby-lang.org || RUBY SUMMER OF CODE! rubysoc.org/ || Paste >3 lines of text in http://pastie.org || Para a nossa audiencia em portugues http://ruby-br.org/
ognevsky [ognevsky!~ognevsky@37-165-94-178.pool.ukrtel.net] has joined #ruby
<maz3> incluye: what do you think?
<davidcelis> you need an outer case statement
<Harzilein> davidcelis: wouldn't a gist api that allows for importing from a url (like the raw view of the pastebin) be good enough? then you could decide yourself to have a clone of it on your gist.
<maz3> thanks
bastilian [bastilian!~bastilian@chello062178156107.9.14.vie.surfer.at] has joined #ruby
<incluye> heh, "recomened"
<maz3> yea I know….
<maz3> i was going to change it after the program is working
<incluye> I'm not here to criticize, just to chuckle gently
<maz3> …. *sigh*
<davidcelis> maz3: You need something more like... case choice; when "A" ...; when "B" ...; when "C"... ;
<davidcelis> then inner case statements for the hours
<davidcelis> the way you have it now, you are checking case on undefined variables called a b and c
<maz3> so it has to be when in when?
<davidcelis> i would suggest reading the documentation on ruby case statements...
Seisatsu [Seisatsu!~seisatsu@2001:c08:3700:ffff::53b] has joined #ruby
<maz3> ok
<maz3> as you see i'm still a beginner, so certain things are new to me...
mnajem [mnajem!~mnajem@120.141.69.176] has joined #ruby
youdonotexist [youdonotexist!~youdonote@192.206.158.10] has joined #ruby
<maz3> I am currently learning Java at school, then teaching myself ruby…. I am doing this by doing what ever I did in Java in Ruby
rpowell [rpowell!~rpowell@CPE-121-217-166-64.lnse2.cht.bigpond.net.au] has joined #ruby
<davidcelis> it's a decent way to go about it
<davidcelis> but you also need to be reading Ruby's API and relevant tutorials if those help
<maz3> yeah, I am starting to do that too
cdepue [cdepue!~cdepue@host214.190-137-172.telecom.net.ar] has joined #ruby
tomzx [tomzx!~tomzx@dsl-59-207.aei.ca] has joined #ruby
<maz3> erm is there a way how to do for example case choice = a when hours < 10 etc...
<maz3> ?
<davidcelis> the problem is how you're even constructing the case from the start
<davidcelis> which is why i recommended you look at the documentation for case statements in ruby. it's clear that you don't understand how to do one
dotnull [dotnull!~DotNull@173-31-158-182.client.mchsi.com] has joined #ruby
<maz3> ok
<maz3> thank you :)
devdazed [devdazed!~russ_nyc@cpe-74-66-233-162.nyc.res.rr.com] has joined #ruby
mnajem [mnajem!~mnajem@120.141.69.176] has joined #ruby
Spockz [Spockz!~Spockz@21pc198.sshunet.nl] has joined #ruby
ascarter_ [ascarter_!~ascarter@209.119.253.66] has joined #ruby
tilung [tilung!~plt@5ac424d9.bb.sky.com] has joined #ruby
dyer [dyer!~dyer@108-193-172-174.lightspeed.tukrga.sbcglobal.net] has joined #ruby
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
<maz3> anyway g2g. thanks for your time. Will read the doc on ruby for now… thanks
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
randym [randym!~randym@EM114-48-50-222.pool.e-mobile.ne.jp] has joined #ruby
mensch [mensch!~mensch@c-67-189-241-178.hsd1.ma.comcast.net] has joined #ruby
cyri__ [cyri__!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby
jbw [jbw!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
replore [replore!~replore@203.152.213.161.static.zoot.jp] has joined #ruby
ilyam_ [ilyam_!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
shadoi [shadoi!~Adium@2001:5a8:4:68e1:599c:2962:ee66:e41f] has joined #ruby
mikepack [mikepack!~mikepack@c-98-245-117-116.hsd1.co.comcast.net] has joined #ruby
rpowell [rpowell!~rpowell@CPE-58-166-127-97.lnse5.cht.bigpond.net.au] has joined #ruby
spridel [spridel!~spridel@unaffiliated/spridel] has joined #ruby
mnajem [mnajem!~mnajem@120.141.69.176] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
dyer [dyer!~dyer@108-193-172-174.lightspeed.tukrga.sbcglobal.net] has joined #ruby
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
ilyam [ilyam!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby
yfeldblum [yfeldblum!~Jay@c-71-206-30-119.hsd1.md.comcast.net] has joined #ruby
jonathanrwallace [jonathanrwallace!~jonathanr@99-11-165-168.lightspeed.tukrga.sbcglobal.net] has joined #ruby
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
davidcelis [davidcelis!~david@70-89-180-6-smc-or.hfc.comcastbusiness.net] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
stringoO [stringoO!~JLstring@CPE001346cbe31b-CM00111ae502a8.cpe.net.cable.rogers.com] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
abstrakt [abstrakt!~abstrakt@gateway/tor-sasl/abstrak1] has joined #ruby
<abstrakt> is 1.9.3-rc1 more recent than 1.9.3-p0 ?
incluye [incluye!~incluye@LO1-ESR-74-215-187-208.fuse.net] has joined #ruby
<musee> no i don't believe so
<davidcelis> it is not
<abstrakt> ok for some reason my system seems to want to install rc1 and not p0
<davidcelis> specify p0
<abstrakt> er, well by "my system" i guess I mean rvm :)
<abstrakt> yeah I did that
wedgeV_ [wedgeV_!~wedge@cpe-68-173-18-241.nyc.res.rr.com] has joined #ruby
<abstrakt> it's ok I just wanted to double check that I wasn't crazy
zalesz [zalesz!~zalesz@user-188-33-206-28.play-internet.pl] has joined #ruby
mnajem [mnajem!~mnajem@120.141.69.176] has joined #ruby
Mohan [Mohan!~nixh0st@unaffiliated/mohan] has joined #ruby
randym_ [randym_!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@adsl-74-161-100-70.mia.bellsouth.net] has joined #ruby
JonnieCache [JonnieCache!~jonnie@87.252.60.35] has joined #ruby
tesmar [tesmar!~tesmar@adsl-74-242-254-82.rmo.bellsouth.net] has joined #ruby
skrewler [skrewler!~skrewler@209.213.206.58] has joined #ruby
youdonotexist [youdonotexist!~youdonote@c-67-166-121-94.hsd1.ut.comcast.net] has joined #ruby
looopy [looopy!~looopy@pool-141-156-50-58.washdc.btas.verizon.net] has joined #ruby
<zalesz> hi everyone! is there someone who isn't sleeping right now?
jbw [jbw!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
wmoxam__ [wmoxam__!~wmoxam@184.175.20.158] has joined #ruby
tayy [tayy!~tayy@5adf9146.bb.sky.com] has joined #ruby
indstry [indstry!~indstry@99-55-241-142.lightspeed.gdrpmi.sbcglobal.net] has joined #ruby
mikeric [mikeric!~mike@96.53.33.22] has joined #ruby
<Tasser> abstrakt, rc is release candidate
mikeric [mikeric!~mike@96.53.33.22] has joined #ruby
jergason [jergason!~jergason@128.187.135.233] has joined #ruby
_|christian|_ [_|christian|_!~christian@190.232.34.241] has joined #ruby
incluye [incluye!~incluye@LO1-ESR-74-215-187-208.fuse.net] has joined #ruby
tatsuya__ [tatsuya__!~tatsuya_o@EM1-113-89-49.pool.e-mobile.ne.jp] has joined #ruby
twock [twock!~twock@rrcs-24-227-222-61.sw.biz.rr.com] has joined #ruby
stepnem [stepnem!~stepnem@176.119.broadband10.iol.cz] has joined #ruby
spridel [spridel!~spridel@unaffiliated/spridel] has joined #ruby
<abstrakt> Tasser, k, I knew that rc stood for release candidate but I've never seen p before
tatsuy___ [tatsuy___!~tatsuya_o@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
<abstrakt> so I didn't know which was which and I'm too lazy to look it up and it doesn't matter *that* much
dasfugufish [dasfugufish!~Adium@68-170-39-205.mammothnetworks.com] has joined #ruby
<abstrakt> so, i figured I'd ask here
indstry [indstry!~indstry@2001:470:1f11:1ec:b970:ce9a:3ea4:a4a5] has joined #ruby
indeterminate [indeterminate!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby
citris [citris!~mike@CPE0013f7f2a8f4-CM0013f7f2a8f0.cpe.net.cable.rogers.com] has joined #ruby
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby
indstry [indstry!~indstry@2001:470:1f11:1ec:b970:ce9a:3ea4:a4a5] has joined #ruby
glimpsenirvana [glimpsenirvana!~glimpseni@pool-98-118-121-122.bstnma.fios.verizon.net] has joined #ruby
ggtoo [ggtoo!~ggtoo@122.178.2.56] has joined #ruby
<zalesz> maybe some of you here would know some gem/lib which would provide some toolset to work with motion jpegs ?
<zalesz> I've made some research but opencv bindings are old as hell
wmoxam [wmoxam!~wmoxam@76-10-146-148.dsl.teksavvy.com] has joined #ruby
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
<zalesz> and i cant find anything if rmagick could handle it
rickmasta [rickmasta!~rickmasta@pool-108-21-213-102.nycmny.fios.verizon.net] has joined #ruby
spridel [spridel!~spridel@unaffiliated/spridel] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby
Emmanuel_Chanel [Emmanuel_Chanel!emmanuel@ZD132012.ppp.dion.ne.jp] has joined #ruby
skrewler [skrewler!~skrewler@209.213.206.58] has joined #ruby
nari [nari!~nari@2001:268:306:1:f2de:f1ff:fe55:2de0] has joined #ruby
heeton_ [heeton_!~alexheato@mail.bournston.co.uk] has joined #ruby
tesmar [tesmar!~tesmar@adsl-74-242-254-82.rmo.bellsouth.net] has joined #ruby
Clooth [Clooth!~Clooth@ZYYYCDLIX.gprs.sl-laajakaista.fi] has joined #ruby
phantasm66 [phantasm66!~phantasm6@146-115-132-39.c3-0.nwt-ubr1.sbo-nwt.ma.cable.rcn.com] has joined #ruby
mnajem [mnajem!~mnajem@120.141.69.176] has joined #ruby
cooper [cooper!~mitchell@unaffiliated/furryfishy] has joined #ruby
cooper [cooper!~mitchell@unaffiliated/furryfishy] has joined #ruby
cooper [cooper!~mitchell@unaffiliated/furryfishy] has joined #ruby
wedgeV [wedgeV!~wedge@cpe-68-173-18-241.nyc.res.rr.com] has joined #ruby
cooper [cooper!~mitchell@unaffiliated/furryfishy] has joined #ruby
LittleBill902 [LittleBill902!smith@c-71-197-103-184.hsd1.ca.comcast.net] has joined #ruby
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
<Axsuul> Is there any way in FactoryGirl when assigning an association another factory to either create it if it doesn't exist or build it?
<Axsuul> omg wrong chan
<Axsuul> so sorry ♥
<zalesz> ;]
adimircolen [adimircolen!~adimircol@187.80.132.94] has joined #ruby
roaminghorse [roaminghorse!~roamingho@124.74.129.194] has joined #ruby
mnajem [mnajem!~mnajem@120.141.69.176] has joined #ruby
ceej [ceej!~anonymous@cpe-72-190-40-203.tx.res.rr.com] has joined #ruby
stepnem [stepnem!~stepnem@176.119.broadband10.iol.cz] has joined #ruby
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
Knodi [Knodi!~Knodi@c-68-43-246-216.hsd1.mi.comcast.net] has joined #ruby
teej_m [teej_m!~teej_m@173.247.200.154] has joined #ruby
milkpost [milkpost!~dec@173-28-195-157.client.mchsi.com] has joined #ruby
looopy [looopy!~looopy@pool-141-156-50-58.washdc.btas.verizon.net] has joined #ruby
davidcelis [davidcelis!~david@c-76-115-58-79.hsd1.or.comcast.net] has joined #ruby
<teej_m> I have an iOS app backed by a Ruby EventMachine server. Should I be timing out connections? I keep a simple running count of active connections (increment on post_init, decrement on unbind) and it seems like I'm keeping 20-40% more connections open then I'm using
namidark [namidark!~namidark@c-98-230-1-143.hsd1.fl.comcast.net] has joined #ruby
banisterfiend [banisterfiend!~baniseter@122.63.175.121] has joined #ruby
nonotza [nonotza!~nonotza@cpe-72-225-173-7.nyc.res.rr.com] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-108-21-213-102.nycmny.fios.verizon.net] has joined #ruby
<zalesz> i havent worked with EventMachine yet, but also i havent seen anybody here for a long time
cdepue [cdepue!~cdepue@host214.190-137-172.telecom.net.ar] has joined #ruby
<teej_m> I am probably the only person using it by itself
<teej_m> which is a shame because it's actually really fucking good.
<zalesz> I heard about it on last RuPy
<zalesz> but havent got time to play with it
<zalesz> hmm maybe you have been working with some mjpeg streams ?
mikepack [mikepack!~mikepack@c-174-51-77-22.hsd1.co.comcast.net] has joined #ruby
dyer [dyer!~dyer@108-193-172-174.lightspeed.tukrga.sbcglobal.net] has joined #ruby
looopy [looopy!~looopy@pool-141-156-50-58.washdc.btas.verizon.net] has joined #ruby
zerdman [zerdman!~zerdman@pool-71-168-74-240.cncdnh.east.myfairpoint.net] has joined #ruby
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby
zodiak [zodiak!~stef@cpe-75-84-218-68.socal.res.rr.com] has joined #ruby
LittleBill902 [LittleBill902!smith@c-71-197-103-184.hsd1.ca.comcast.net] has joined #ruby
zerdman [zerdman!~zerdman@pool-71-168-74-240.cncdnh.east.myfairpoint.net] has quit [#ruby]
fixl [fixl!~fixl@124-148-185-205.dyn.iinet.net.au] has joined #ruby
DarthGandalf [DarthGandalf!~Vetinari@znc/developer/DarthGandalf] has joined #ruby
mikeric [mikeric!~mike@64.180.47.85] has joined #ruby
cafesofie [cafesofie!~user@ool-18b97779.dyn.optonline.net] has joined #ruby
mikeric_ [mikeric_!~mike@S0106c03f0e8b23f3.vc.shawcable.net] has joined #ruby
armdale [armdale!~a@24.52.227.6] has joined #ruby
mikeric [mikeric!~mike@S0106c03f0e8b23f3.vc.shawcable.net] has joined #ruby
Jay_Levitt [Jay_Levitt!~Jay_Levit@c-24-63-250-125.hsd1.ma.comcast.net] has joined #ruby
macmartine [macmartine!~macmartin@cpe-50-113-16-91.hawaii.res.rr.com] has joined #ruby
nonotza [nonotza!~nonotza@cpe-72-225-173-7.nyc.res.rr.com] has joined #ruby
PaciFisT [PaciFisT!~PeaCE@CPE0023be436752-CM0023be436750.cpe.net.cable.rogers.com] has joined #ruby
QaDeS [QaDeS!~mklaus@frbg-4d029531.pool.mediaWays.net] has joined #ruby
milkpost [milkpost!~dec@173-28-195-157.client.mchsi.com] has joined #ruby
wilmoore [wilmoore!~wilmoore@c-67-190-17-108.hsd1.co.comcast.net] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
jonathanrwallace [jonathanrwallace!~jonathanr@99-11-165-168.lightspeed.tukrga.sbcglobal.net] has joined #ruby
mksm [mksm!mksm@pdpc/supporter/professional/mksm] has joined #ruby
ggtoo [ggtoo!~ggtoo@122.164.88.86] has joined #ruby
deeunit [deeunit!~luxurymod@pool-96-246-51-32.nwrknj.fios.verizon.net] has joined #ruby
thecreators [thecreators!~rskagy@cpe-65-27-202-53.cinci.res.rr.com] has joined #ruby
Nisstyre [Nisstyre!~yours@infocalypse-net.info] has joined #ruby
igotnolegs [igotnolegs!~igotnoleg@174-27-205-140.slkc.qwest.net] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
ghosTM55 [ghosTM55!~user@li279-245.members.linode.com] has joined #ruby
bwright [bwright!~bwright@c122-106-254-100.belrs3.nsw.optusnet.com.au] has joined #ruby
kire [kire!~erik@99-116-237-59.lightspeed.austtx.sbcglobal.net] has joined #ruby
<kire> i'm embarrassingly inexperienced with ruby and wondered if someone could guide me to a document that could enlighten me as to what this error is telling me: "[jasmine-headless-webkit] A newer version of Rubygems is required to use vendored assets. Please upgrade. (StandardError)" i'm running ruby1.9.1 on ubuntu 11, everything installed via apt-get.
kaneda [kaneda!~kaneda@5ad75508.bb.sky.com] has joined #ruby
<Brozilla> hire, run gem update and see if that works?
acts_as_david [acts_as_david!~acts_as_d@li260-159.members.linode.com] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has quit [#ruby]
<kire> Brozilla, it says "Nothing to update". do i have a conflict between my ruby version and gem version or something to that effect?
<kire> --version tells me i'm running gem 1.3.7.
<Brozilla> i'm on 1.8.11
<Brozilla> gem update --system, i'm not terribly experienced either
<kire> gem update --system gives me a really scary warning about about doing things outside the debian package manager. perhaps i should man up and just do that anyways. what's the worst that could happen...
<Brozilla> you could also just install rbenv and start clean on ruby 1.9.2
<Brozilla> or rvm
tayy [tayy!~tayy@0279dcf6.bb.sky.com] has joined #ruby
dchelimsky [dchelimsky!~dchelimsk@207-229-185-63.c3-0.arm-ubr1.chi-arm.il.cable.rcn.com] has joined #ruby
<Brozilla> here's a 'guide' i found helpful: http://is.gd/Zrvsa5
<kire> ah, thanks for that.
radic [radic!~radic@dslb-178-002-217-143.pools.arcor-ip.net] has joined #ruby
yfeldblum [yfeldblum!~Jay@c-68-34-107-252.hsd1.md.comcast.net] has joined #ruby
raythecat [raythecat!~raythecat@cpe-76-88-24-94.san.res.rr.com] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
bwright [bwright!~bwright@c122-106-254-100.belrs3.nsw.optusnet.com.au] has joined #ruby
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
x0F_ [x0F_!~x0F@unaffiliated/x0f] has joined #ruby
user__ [user__!~akem@156.236.84.79.rev.sfr.net] has joined #ruby
wilmoore [wilmoore!~wilmoore@c-67-190-17-108.hsd1.co.comcast.net] has joined #ruby
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
ascarter [ascarter!~ascarter@67-42-84-171.tukw.qwest.net] has joined #ruby
manizzle [manizzle!~manizzle@adsl-99-102-133-31.dsl.pltn13.sbcglobal.net] has joined #ruby
hadees [hadees!~hadees@72-48-91-73.dyn.grandenetworks.net] has joined #ruby
lolzilla [lolzilla!lolzilla@cpe-75-80-110-69.socal.res.rr.com] has joined #ruby
roaminghorse [roaminghorse!~roamingho@ec2-50-16-85-142.compute-1.amazonaws.com] has joined #ruby
lolzilla [lolzilla!lolzilla@cpe-75-80-110-69.socal.res.rr.com] has quit [#ruby]
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
IrishGringo [IrishGringo!~chatzilla@72-28-137-024-dhcp.mia.fl.atlanticbb.net] has joined #ruby
mikeric [mikeric!~mike@S0106c03f0e8b23f3.vc.shawcable.net] has joined #ruby
Guest3261 [Guest3261!~anonymous@137.146.144.129] has joined #ruby
rippa [rippa!~splitta@85.158.54.234] has joined #ruby
skrewler [skrewler!~skrewler@70-36-139-140.dsl.dynamic.sonic.net] has joined #ruby
mikepack [mikepack!~mikepack@c-174-51-77-22.hsd1.co.comcast.net] has joined #ruby
ilyam [ilyam!~ilyam@c-67-188-113-128.hsd1.ca.comcast.net] has joined #ruby
Skaag [Skaag!~skaag@107.53.128.48] has joined #ruby
nanoyak [nanoyak!~nanoyak@adsl-69-110-22-115.dsl.pltn13.pacbell.net] has joined #ruby
Samoi [Samoi!~Salmon-fr@unaffiliated/root-ninja/x-7047552] has joined #ruby
jamnew [jamnew!~jamnew@eth12849.sa.adsl.internode.on.net] has joined #ruby
<ozzloy> i don't get rbenv
<ozzloy> er... the motivation behind it
<ozzloy> it sounds like the sstephenson developer had some bad experiences with rvm and rather than filing bug reports and talking with the rvm dev, sstephenson wrote a replacement
<ozzloy> but maybe i'm wrong. is the history documented somewhere?
<banisterfiend> ozzloy: there's a tonne of information on this, just google it
<skillachie> hi, has any one here used poppler in a project before ?
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
<ozzloy> banisterfiend, yeah, i'm reading stuff right now, but not much history, just a bunch of people saying "RVM sucks!" "no it doesn't, you're an elephant!" "yes it does!"
<ozzloy> you know, internet fighting.
<banisterfiend> ozzloy: there are a few well reasoned blog posts on it
d2dchat [d2dchat!~d2dchat@c-98-209-18-197.hsd1.mi.comcast.net] has joined #ruby
<ozzloy> link?
<ozzloy> s
<ozzloy> links
fixl [fixl!~fixl@124-148-185-205.dyn.iinet.net.au] has joined #ruby
<ozzloy> thanks
<deryldoucette> ozzloy: and be sure to read http://delicious.com/redirect?url=http%3A//niczsoft.com/2011/11/what-you-should-know-about-rbenv-and-rvm/%3Futm_source%3Drss%26utm_medium%3Drss%26utm_campaign%3Dwhat-you-should-know-about-rbenv-and-rvm
<deryldoucette> damn it
<deryldoucette> ozzloy: sorry, long link url. meant http://niczsoft.com/2011/11/what-you-should-know-about-rbenv-and-rvm/
<ozzloy> deryldoucette, cool, thanks. reading up now
<skillachie> if anyone has used poppler before, could you please take a look at this http://stackoverflow.com/questions/8484426/ruby-poppler-pdf-table-of-contents-index . have posted here before via pastebin, but suspected alot of persons werent online
<skillachie> I dont need solution, just direction, cant seem to figure out what I am doing wrong
<deryldoucette> np. again, i apologie for the long ass link. i just right clicked the link i saved in delicious and forgot they're doing the same stupid shit as google and prefixing everything with their own link crap to 'ensure' they get credit for the link save.
ben_alman [ben_alman!~cowboy@184-106-134-167.static.cloud-ips.com] has joined #ruby
ryanf [ryanf!~revfitz@adsl-67-117-145-61.dsl.snfc21.pacbell.net] has joined #ruby
TandemAdam [TandemAdam!~adam@118-93-45-198.dsl.dyn.ihug.co.nz] has joined #ruby
robert_ [robert_!~hellspawn@objectx/robert] has joined #ruby
<robert_> so, rake comes back with "uninitialized constant YAML::ENGINE"; is that the package's fault, or...?
sgronblo [sgronblo!~sgronblo@130.232.213.61] has joined #ruby
robyurkowski [robyurkowski!~robyurkow@bas2-longueuil15-3096771256.dsl.bell.ca] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
FlyingFoX13 [FlyingFoX13!~quassel@sanktwendel.weh.RWTH-Aachen.DE] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
io_syl [io_syl!~io_syl@69.105.118.125] has joined #ruby
io_syl [io_syl!~io_syl@unaffiliated/steph021] has joined #ruby
saschaheylik [saschaheylik!~sascha@80-121-15-246.adsl.highway.telekom.at] has joined #ruby
rpowell [rpowell!~rpowell@CPE-58-166-127-97.lnse5.cht.bigpond.net.au] has joined #ruby
PaciFisT [PaciFisT!~PeaCE@CPE0023be436752-CM0023be436750.cpe.net.cable.rogers.com] has joined #ruby
peterhil [peterhil!~peterhil@xdsl-77-86-196-131.nebulazone.fi] has joined #ruby
<rpowell> .join #iphonedev
PaciFisT1 [PaciFisT1!~PeaCE@CPE602ad06de6b3-CM602ad06de6b0.cpe.net.cable.rogers.com] has joined #ruby
<Clooth> .no
<rpowell> whoops
Samoi [Samoi!~Salmon-fr@cl-164.wlg-01.nz.sixxs.net] has joined #ruby
Samoi [Samoi!~Salmon-fr@unaffiliated/root-ninja/x-7047552] has joined #ruby
ascarter [ascarter!~ascarter@67-42-84-171.tukw.qwest.net] has joined #ruby
ascarter [ascarter!~ascarter@67-42-84-171.tukw.qwest.net] has joined #ruby
h4mz1d [h4mz1d!~hamfz@c-69-244-5-169.hsd1.al.comcast.net] has joined #ruby
nonotza [nonotza!~nonotza@cpe-72-225-173-7.nyc.res.rr.com] has quit [#ruby]
<TandemAdam> anyone here have there head around git?
<banisterfiend> TandemAdam: ask the Q.
<TandemAdam> banisterfiend: thanks, but I just figured it out. User error :)
mikepack [mikepack!~mikepack@c-174-51-77-22.hsd1.co.comcast.net] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-15-43.cable.teksavvy.com] has joined #ruby
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
xpot [xpot!~xpot@166-70-100-198.ip.xmission.com] has joined #ruby
JohnBat26 [JohnBat26!~Eugene@89.175.77.90] has joined #ruby
Mohan [Mohan!~nixh0st@cpc1-slou1-2-0-cust65.haye.cable.virginmedia.com] has joined #ruby
Mohan [Mohan!~nixh0st@unaffiliated/mohan] has joined #ruby
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
FlyingFoX [FlyingFoX!~quassel@sanktwendel.weh.RWTH-Aachen.DE] has joined #ruby
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby
ilteris [ilteris!~ilteris_@cpe-67-244-14-59.nyc.res.rr.com] has joined #ruby
symb0l [symb0l!~symb0l@c-50-131-187-183.hsd1.ca.comcast.net] has joined #ruby
yxhuvud [yxhuvud!mongo@h-17-224.a149.priv.bahnhof.se] has joined #ruby
maletor [maletor!~maletor@c-69-181-28-195.hsd1.ca.comcast.net] has joined #ruby
mikepack [mikepack!~mikepack@c-174-51-77-22.hsd1.co.comcast.net] has joined #ruby
aj910martin [aj910martin!~abhinavja@108-81-105-79.lightspeed.sntcca.sbcglobal.net] has joined #ruby
aj910martin [aj910martin!~abhinavja@108-81-105-79.lightspeed.sntcca.sbcglobal.net] has quit [#ruby]
yelvert [yelvert!~yelvert@user-24-214-254-237.knology.net] has joined #ruby
<yelvert> so, i have a question, is BigDecimal just completely broken in 1.9.2?
roaminghorse [roaminghorse!~roamingho@ec2-50-16-85-142.compute-1.amazonaws.com] has joined #ruby
paissad_ [paissad_!~paissad@89-92-16-151.hfc.dyn.abo.bbox.fr] has joined #ruby
Amirh [Amirh!~amir@2.181.25.108] has joined #ruby
<RubyPanther> yelvert: No
<Indian> hello
<Indian> I just installed ruby gem
<Indian> and I cannot find it
<banisterfiend> Indian: maybe it's in your heart, where all the good things are.
<yelvert> RubyPanther: any idea why BigDecimal::limit does nothing, and passing the second argument (limit) doesnt limit the significant digits?
densebits [densebits!~michael@fedora/densebits] has joined #ruby
kaos693 [kaos693!~kaos@128.205.160.239] has joined #ruby
<kaos693> ...
<Indian> banisterfiend: ok
<Indian> banisterfiend: thanks for the insight
tonini [tonini!~zastav@edge.garaio.com] has joined #ruby
<heftig> yelvert: BigDecimal.new(123456789.0,0)
<heftig> limit affects that.
ilteris [ilteris!~ilteris_@67.244.14.59] has joined #ruby
<yelvert> heftig: i set the limit with BigDecimal::limit(2) first, and it looks as though BigDecimal ignored it
<yelvert> unless im just looking at the whole thing wrong
<heftig> yelvert: doesn't seem to work if you use a string, but works if you use a float
<yelvert> hmm, ok ill try that
xpot [xpot!~xpot@166-70-100-198.ip.xmission.com] has joined #ruby
<yelvert> heftig: passing a float to BigDecimal.new throws TypeError: can't convert Float into String
ggtoo [ggtoo!~ggtoo@122.178.3.197] has joined #ruby
<heftig> yelvert: works here.
<fixl> how is aptana for ruby development?
<fixl> any good?
<yelvert> what version of big decimal do u have? BigDecimal.ver
<heftig> 1.1.0
<yelvert> ahh, that may the issue, mine is 1.0.1
radic [radic!~radic@dslb-178-002-217-143.pools.arcor-ip.net] has joined #ruby
<kaos693> aptana is good
<heftig> netbeans is nice, too.
<kaos693> meh
cli666 [cli666!~cli666@unaffiliated/firippu] has joined #ruby
beseku [beseku!~beseku@p10193-ipngn1801marunouchi.tokyo.ocn.ne.jp] has joined #ruby
aj910martin [aj910martin!~abhinavja@108-81-105-79.lightspeed.sntcca.sbcglobal.net] has joined #ruby
<LowKey> hello, i want to ask about EventMachine handle, EventMachine::start_server("0.0.0.0", 443, Handler) , when i change 0.0.0.0 to any IP i have, it's wont work , but it's only works on 0.0.0.0
<LowKey> how to make it's work on different IP?
djdb [djdb!~digitalbo@linux.minsk.tutby.com] has joined #ruby
<LowKey> ok fixed, my firewall block it
flippingbits [flippingbits!~anonymous@p54A5E53E.dip.t-dialin.net] has joined #ruby
Jay_Levitt [Jay_Levitt!~Jay_Levit@c-76-24-221-50.hsd1.ma.comcast.net] has joined #ruby
jamnew [jamnew!~jamnew@eth12849.sa.adsl.internode.on.net] has quit [#ruby]
beseku [beseku!~beseku@p10193-ipngn1801marunouchi.tokyo.ocn.ne.jp] has quit ["Linkinus - http://linkinus.com"]
h4mz1d [h4mz1d!~hamfz@c-69-244-5-169.hsd1.al.comcast.net] has joined #ruby
kuzushi [kuzushi!~kuzushi@ip98-165-117-197.ph.ph.cox.net] has joined #ruby
maletor [maletor!~maletor@c-69-181-28-195.hsd1.ca.comcast.net] has joined #ruby
mafolz [mafolz!~mafolz@dhcp50-207.start.uni-saarland.de] has joined #ruby
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
Jrz [Jrz!~jrz@d152222.upc-d.chello.nl] has joined #ruby
web0 [web0!~webster@c-71-227-252-163.hsd1.wa.comcast.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
cli933 [cli933!~cli933@unaffiliated/firippu] has joined #ruby
nanoyak [nanoyak!~nanoyak@173-228-119-246.dsl.dynamic.sonic.net] has joined #ruby
Azure|netbook [Azure|netbook!~azt@unaffiliated/azure] has joined #ruby
FlyingFoX [FlyingFoX!~quassel@137.226.140.228] has joined #ruby
grefab [grefab!~asx@2002:57bd:6654:0:3d3e:6a7d:6fba:b61c] has joined #ruby
cli162 [cli162!~cli162@unaffiliated/firippu] has joined #ruby
ph^ [ph^!~ph^@79.135.7.171] has joined #ruby
<vyrus001> /w 16
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
h4ck3r [h4ck3r!~h4ck3r@14.140.43.50] has joined #ruby
stepnem [stepnem!~stepnem@90.177.119.176] has joined #ruby
g0r_ [g0r_!~grefab@cyberair.ivu.de] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-205-136.netcologne.de] has joined #ruby
zommi [zommi!~quassel@195.212.29.172] has joined #ruby
batlock666 [batlock666!~quassel@bvderbau.ugent.be] has joined #ruby
ryanf [ryanf!~revfitz@adsl-67-117-145-61.dsl.snfc21.pacbell.net] has joined #ruby
bosphorus [bosphorus!~bosphorus@81.214.127.71] has joined #ruby
araujo [araujo!~araujo@gentoo/developer/araujo] has joined #ruby
TandemAdam [TandemAdam!~adam@118-93-45-198.dsl.dyn.ihug.co.nz] has quit [#ruby]
mksm [mksm!~mksm@201.20.236.65.user.ajato.com.br] has joined #ruby
stepnem [stepnem!~stepnem@90.177.119.176] has joined #ruby
noname [noname!~textual@c-67-171-131-23.hsd1.wa.comcast.net] has joined #ruby
timonv [timonv!~timonv@145.97.227.140] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-108-21-213-102.nycmny.fios.verizon.net] has joined #ruby
p1d [p1d!~p1d@ns1.vonaffenfels.de] has joined #ruby
Asher [Asher!~asher@98.158.127.150] has joined #ruby
cyri_ [cyri_!~cyri_@86.72.200.236] has joined #ruby
stringoO [stringoO!~JLstring@CPE001346cbe31b-CM00111ae502a8.cpe.net.cable.rogers.com] has joined #ruby
flippingbits [flippingbits!~anonymous@port-212-202-126-63.static.qsc.de] has joined #ruby
azbarcea_ [azbarcea_!~quassel@79.114.114.251] has joined #ruby
pi3r [pi3r!~pi3r@LSt-Amand-152-32-39-189.w80-11.abo.wanadoo.fr] has joined #ruby
Ammar01 [Ammar01!~hassaa10@gatek.thls.bbc.co.uk] has joined #ruby
vjacob [vjacob!~vjacob@94-195-174-165.zone9.bethere.co.uk] has joined #ruby
ikaros [ikaros!~ikaros@dslb-084-059-073-057.pools.arcor-ip.net] has joined #ruby
BrianE [BrianE!~brian@46.208.45.23] has joined #ruby
flippingbits [flippingbits!~anonymous@port-212-202-126-63.static.qsc.de] has joined #ruby
g0r__ [g0r__!~grefab@p57BD6654.dip0.t-ipconnect.de] has joined #ruby
g0r__ [g0r__!~grefab@berlin.ivu.de] has joined #ruby
__lrk__ [__lrk__!~lrk@9DGW51.bang-olufsen.dk] has joined #ruby
Asher [Asher!~asher@c-24-126-149-16.hsd1.ga.comcast.net] has joined #ruby
aziz_light [aziz_light!~aziz_ligh@85-168-220-242.rev.numericable.fr] has joined #ruby
Jrz [Jrz!~jrz@87.239.184.141] has joined #ruby
dekroning [dekroning!~dekroning@541B931D.cm-5-4c.dynamic.ziggo.nl] has joined #ruby
Asher1 [Asher1!~asher@98.158.127.150] has joined #ruby
Helius [Helius!~Adium@212.31.227.18] has joined #ruby
jbpros [jbpros!~jbpros@87.66.34.207] has joined #ruby
mikeric [mikeric!~mike@174.6.165.175] has joined #ruby
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
jgrimes [jgrimes!~jg@71.70.140.12] has joined #ruby
bastilian [bastilian!~bastilian@chello213047077012.23.11.vie.surfer.at] has joined #ruby
jgrimes_ [jgrimes_!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
nanoyak [nanoyak!~nanoyak@173-228-119-246.dsl.dynamic.sonic.net] has joined #ruby
vjacob [vjacob!~vjacob@94-195-174-165.zone9.bethere.co.uk] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
timonv [timonv!~timonv@80.187.148.93] has joined #ruby
pen [pen!~pen@140.112.233.249] has joined #ruby
ephemerian [ephemerian!~ian@82-69-1-248.dsl.in-addr.zen.co.uk] has joined #ruby
heeton [heeton!~alexheato@mail.bournston.co.uk] has quit [#ruby]
Asher [Asher!~asher@98.158.127.150] has joined #ruby
xec [xec!~xec@2a00:10b0:1:1002:5ab0:35ff:fef8:6a01] has joined #ruby
_md [_md!~mduarte@141.0.34.138] has joined #ruby
Corey_ [Corey_!~KB1JWQ@freenode/staff/corey] has joined #ruby
ggtoo [ggtoo!~ggtoo@122.164.89.85] has joined #ruby
EddieS [EddieS!~ed@212.59.167.161] has joined #ruby
vjacob [vjacob!~vjacob@94-195-174-165.zone9.bethere.co.uk] has joined #ruby
trivol [trivol!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
james_cotterill [james_cotterill!~james_cot@89.238.149.34] has joined #ruby
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby
Spockz [Spockz!~Spockz@095-097-113-150.static.chello.nl] has joined #ruby
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has joined #ruby
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
jonathan___ [jonathan___!~jonathan@121.32.102.6] has joined #ruby
<jonathan___> Hi all, do you have a Ruby way to iterate an array 2 by 2 ?
fermo [fermo!~fermo@ppp-94-29.26-151.libero.it] has joined #ruby
<banisterfiend> jonathan___: what do u mean by 2/2 ?
<jonathan___> when you do a : "array.each do |item| " you move item by item
azbarcea_ [azbarcea_!~quassel@89.35.222.158] has joined #ruby
<banisterfiend> jonathan___: yeah but what does '2 by 2' mean?
<banisterfiend> jonathan___: surely you mean just 'by 2' right? 2 items each time? not '2 by 2' which implies some kind of 2 dimensional thing
<jonathan___> I'd like to have something like that : "array.each do |item, item+1| array[item] array[item+1] end"
<banisterfiend> jonathan___: array.each_slice(2)
raythecat [raythecat!~raythecat@cpe-76-88-24-94.san.res.rr.com] has joined #ruby
<jonathan___> thanks, I am going to try it
michael_mbp [michael_mbp!~Marin@112.134.195.17] has joined #ruby
pp01bit [pp01bit!~pp01bitDo@111.92.240.242] has joined #ruby
<pp01bit> hi
jgarvey [jgarvey!~jgarvey@174.97.248.211] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-205-136.netcologne.de] has joined #ruby
r0bby [r0bby!~wakawaka@guifications/user/r0bby] has joined #ruby
Manhose [Manhose!~Manhose@bl18-45-1.dsl.telepac.pt] has joined #ruby
ikaros [ikaros!~ikaros@studpool-wlan-75-36.fs.fbi.h-da.de] has joined #ruby
<jonathan___> banisterfiend, in fact it's not what I need
<jonathan___> I give an example, I've an array=["A","B","C","D"]
<banisterfiend> jonathan___: maybe you want each_cons(2)
<jonathan___> and I want to iterate the array by this way :
<jonathan___> 1) "A" "B"
ksinkar [ksinkar!~ksinkar@117.195.99.112] has joined #ruby
<jonathan___> 2) "B" "C"
<banisterfiend> jonathan___: then u want each_cons
<jonathan___> 3) "C" "D"
<jonathan___> ah good
<jonathan___> I was sure that something was already existing in Ruby for it
emmanuel_ [emmanuel_!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
<jonathan___> let's try it
Seisatsu [Seisatsu!~seisatsu@2001:c08:3700:ffff::53b] has joined #ruby
djdb [djdb!~digitalbo@linux.minsk.tutby.com] has joined #ruby
timonv [timonv!~timonv@a83-160-133-157.adsl.xs4all.nl] has joined #ruby
<jds> I don't suppose anyone's written an xml-to-builder converter?
chrismcg [chrismcg!~chrismcg@unaffiliated/octopod] has joined #ruby
<jds> To take xml text input (<foo/>), and output ruby builder code (xml.foo);
RomD [RomD!~Roman@nrbg-d932390c.pool.mediaWays.net] has joined #ruby
workmad3 [workmad3!~workmad3@vpn176.its.manchester.ac.uk] has joined #ruby
<BiHi> any pointers on doing TDD on ruby binaries?
canton7 [canton7!~canton7@152.78.95.108] has joined #ruby
kedare [kedare!~kedare@bau91-1-82-239-247-128.fbx.proxad.net] has joined #ruby
scx [scx!~Administr@eoj221.neoplus.adsl.tpnet.pl] has joined #ruby
Brozilla [Brozilla!~Brozilla@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
Zavior [Zavior!~anonymous@unaffiliated/zavior] has joined #ruby
randym [randym!~randym@EM114-48-134-1.pool.e-mobile.ne.jp] has joined #ruby
vjacob [vjacob!~vjacob@94-195-174-165.zone9.bethere.co.uk] has joined #ruby
Pip [Pip!~Pip@host-189-146-66-217.spbmts.ru] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
jsj [jsj!~Johan@unaffiliated/jsj] has joined #ruby
jsj [jsj!~Johan@unaffiliated/jsj] has quit [#ruby]
jsj [jsj!~Johan@unaffiliated/jsj] has joined #ruby
emmanuel_ [emmanuel_!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
pigoz [pigoz!~pigoz@94.242.209.206] has joined #ruby
gener1c [gener1c!~gener1c@bzq-79-183-111-44.red.bezeqint.net] has joined #ruby
gener1c [gener1c!~gener1c@unaffiliated/gener1c] has joined #ruby
<gener1c> i am trying to open a website using open-uri and i get this error:
<gener1c> `open_loop': HTTP redirection loop: http://www.aguda.org.il/ (RuntimeError) from /usr/lib/ruby/1.9.1/open-uri.rb:146:in `open_uri'
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
<gener1c> tried googling it but nadda
<gener1c> even in the ruby forum the thread just stopps with no answer
<gener1c> and surfing to that site is working ....
<jds> gener1c: Hm, works for me in 1.9.2
<gener1c> it worked for me aswell
pp01bit [pp01bit!~pp01bitDo@111.92.240.242] has joined #ruby
<gener1c> then for some reason stopped working
<gener1c> ohhh
<gener1c> in my server its 1.9.3p0
<gener1c> maybe thats the issue
<gener1c> nope it works now
<gener1c> how off
<gener1c> odd
<gener1c> ls
<gener1c> ok just added exceptions
<gener1c> (although i did exception handling in a higher level ,, this is truely wierd)
Adrieuxo [Adrieuxo!~jorixHmAI@115.64.27.246] has joined #ruby
<gener1c> ohhhhh i know what the issue is
<gener1c> im an idiot!
<banisterfiend> anyone here have any experience with ruby-debug?
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
vitoravelino [vitoravelino!~rockhampt@unaffiliated/vtr] has joined #ruby
<jsaak> only on 1.8
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
matti [matti!matti@madwifi/support/matti] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has quit [#ruby]
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
<banisterfiend> anyone here have any experience with ruby-debug?
<jsaak> me on 1.8
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
hurikhan|Work [hurikhan|Work!~kakra@82-198-195-142.briteline.de] has joined #ruby
canton7 [canton7!~canton7@152.78.95.108] has joined #ruby
thoraxe [thoraxe!~thoraxe@50-73-95-6-static.hfc.comcastbusiness.net] has joined #ruby
<banisterfiend> jsaak: why doesnt this work https://gist.github.com/a6da478034e265ea6951
<gener1c> because you are too sexy for this code
<banisterfiend> gener1c: LOLOLOLOL
aziz [aziz!~aziz_ligh@85-168-220-242.rev.numericable.fr] has joined #ruby
<banisterfiend> jsaak: you're not helping me
<jsaak> hmm sorry i used rdebug, much faster
<Zavior> can I not declare a hash in ruby on different lines?
<banisterfiend> jsaak: no, ruby-debug is better
<jsaak> no idea why ruby-debug does not work sorry
<jsaak> is it the c version?
<banisterfiend> jsaak: yes
<jsaak> ahh
<jsaak> ok
<jsaak> as a workaround you can make breakpoint after running it
atmosx [atmosx!~atmosx@191.116.broadband5.iol.cz] has joined #ruby
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
Adrieuxo [Adrieuxo!~jorixHmAI@115.64.27.246] has joined #ruby
jsj [jsj!~Johan@unaffiliated/jsj] has joined #ruby
mklappstuhl [mklappstuhl!~mklappstu@p5B2C4902.dip.t-dialin.net] has joined #ruby
burgestrand [burgestrand!~burgestra@62.65.124.23] has joined #ruby
JohnBat26 [JohnBat26!~Eugene@89.175.77.90] has joined #ruby
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby
apeiros_ [apeiros_!~apeiros@77-58-115-24.dclient.hispeed.ch] has joined #ruby
araujo [araujo!~araujo@190.73.44.29] has joined #ruby
araujo [araujo!~araujo@gentoo/developer/araujo] has joined #ruby
MrCheetoDust [MrCheetoDust!~farhankha@cpe-76-94-123-32.socal.res.rr.com] has joined #ruby
<sgronblo> can the ruby garbage collector figure out that a variable won't be used anymore before a block runs to completion?
Guest_ [Guest_!~textual@92.45.22.237] has joined #ruby
<sgronblo> or should i set it to nil, if i know that some large colletion wont be needed for the rest of the method?
<shevy> not sure if the GC can or not, but it is not a common idiom to see anyone set a variable to nil again manually
<shevy> in ruby
manizzle [manizzle!~manizzle@adsl-99-102-133-31.dsl.pltn13.sbcglobal.net] has joined #ruby
ggtoo [ggtoo!~ggtoo@122.164.89.85] has joined #ruby
<sgronblo> yeah but in this case depending on how ruby's garbage collector works, it might make sense
<apeiros_> sgronblo: sounds like premature optimization to me
<apeiros_> MRI/KRI GC uses relatively simple mark-and-sweep, so only when an object isn't referenced anymore it can be collected
<sgronblo> apeiros_: well i already notice that my whole desktop manager gets sluggish when running this script
<apeiros_> sgronblo: then profile the script
<sgronblo> apeiros_: with?
<apeiros_> …a profiler?
<apeiros_> e.g. the one that's in the stdlib…
ognevsky_ [ognevsky_!~ognevsky@208-121-94-178.pool.ukrtel.net] has joined #ruby
icambridge [icambridge!~iain@backie.xen.prgmr.com] has quit ["Leaving..."]
FarhanKhalaf [FarhanKhalaf!~farhankha@cpe-76-94-123-32.socal.res.rr.com] has joined #ruby
<sgronblo> well i already noticed that i should refactor part of the method to the way it was before so I won't even have to think about setting it to nil or not
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
<shevy> I dunno
Pip [Pip!~Pip@host-189-146-66-217.spbmts.ru] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
<shevy> I never think about setting much to nil, unless there may need be a case within the logic of the program itself... but never GC related so far
ggtoo [ggtoo!~ggtoo@122.178.0.52] has joined #ruby
<sgronblo> yeah it sounds a bit weird to me too, but the way the method worked before I refactored it, it might have made sense.
cdepue [cdepue!~cdepue@host214.190-137-172.telecom.net.ar] has joined #ruby
pantsman [pantsman!~pantsman@2.27.109.168] has joined #ruby
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
Manhose [Manhose!~Manhose@193.136.33.133] has joined #ruby
<sgronblo> http://pastebin.com/Fg0nLPBE this is a simplification of the scenario i had
<sgronblo> but i moved retrieve_huge_collection into do_something_with_huge_collection
<shevy> hmm
<shevy> I suspect that this code perhaps does not do what you intend to do
<shevy> I mean, the GC probably does not run in between
<sgronblo> shevy: no?
<shevy> then again I dont really know what happens the moment a variable is set to nil
<shevy> not sure
<apeiros_> sgronblo: why you retrieve the whole collection? why not fetch individual elements (or slices) and process those?
<sgronblo> apeiros_: well the actual implementation was actually a rails ActiveRecord.all.group_by
<apeiros_> sgronblo: that's not really an answer :)
alem0lars [alem0lars!~quassel@87.19.30.252] has joined #ruby
<shevy> obtaining the full seems simpler
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby
<sgronblo> well there might be some cleverer way to do it using in_batches_of or something, but this task is about trying to improve a cowboy coder's work so I try to optimize the time I have to spend on it rather than fully optimizing the efficiency
<sgronblo> the main goal was to avoid table locking which the current new solution seems to achieve
peterwald [peterwald!~peterwald@174.46.144.3] has joined #ruby
jgarvey [jgarvey!~jgarvey@cpe-174-097-248-211.nc.res.rr.com] has joined #ruby
thoraxe [thoraxe!~thoraxe@50-73-95-6-static.hfc.comcastbusiness.net] has joined #ruby
ikaros [ikaros!~ikaros@studpool-wlan-75-212.fs.fbi.h-da.de] has joined #ruby
josemota [josemota!~josemota@213-205-89-58.net.novis.pt] has joined #ruby
berkes [berkes!~ber@188.205.1.214] has joined #ruby
<josemota> hi everyone. Anyone using Savon to connect to a service that requires HTTP auth?
<josemota> can't connect to a Scrumworks API because of that... tried http.headers['Authentication'] = "Basic #{Base64.encode("user:password")}" but it won't authenticate.
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
<apeiros_> josemota: a little bit of research tells me that http is an HTTPI::Request
<apeiros_> and from its docs: http.auth.basic("username", "password")
Ch4rAzZz [Ch4rAzZz!~jiri@HSI-KBW-046-005-196-147.hsi8.kabel-badenwuerttemberg.de] has joined #ruby
burgestrand1 [burgestrand1!~burgestra@62.65.124.23] has joined #ruby
Natch| [Natch|!~natch@178.73.216.18] has joined #ruby
jonathan___ [jonathan___!~jonathan@121.32.102.6] has joined #ruby
saschaheylik [saschaheylik!~sascha@80-121-34-140.adsl.highway.telekom.at] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby
ikaros [ikaros!~ikaros@studpool-wlan-75-212.fs.fbi.h-da.de] has joined #ruby
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
<jonathan___> How to write the infinity in Ruby ?
<jonathan___> 1.0/0 ?
pi3r [pi3r!~pi3r@LSt-Amand-152-32-39-189.w80-11.abo.wanadoo.fr] has joined #ruby
<apeiros_> jonathan___: yes. I think it's now also available as Float::INFINITY
<apeiros_> don't know from what version on
<jonathan___> I prefer Floan::INFINITY
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
<shevy> Floan?
<apeiros_> a floaty flan
jsj [jsj!~Johan@unaffiliated/jsj] has joined #ruby
<josemota> apeiros_ i'll check that out. Thank you very much, I apologize for the lack of research.
jgrimes_ [jgrimes_!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
SMJ [SMJ!~janne@dyn2-212-50-133-246.psoas.suomi.net] has joined #ruby
scx [scx!~Administr@83.8.188.114] has joined #ruby
jgrimes [jgrimes!~jg@71.70.140.12] has joined #ruby
<SMJ> http://mlomnicki.com/ruby/linux/2011/02/09/irc-notifications.html how would I add a word to the notification title in the script at the bottom?
<SMJ> a line like
<SMJ> if $_ =~ /<([^>]+)>(.*)/'
<SMJ> isn't currently very meaningful to me
chrismcg [chrismcg!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby
jgrimes_ [jgrimes_!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
jgrimes__ [jgrimes__!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
jgrimes_ [jgrimes_!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
jgrimes_ [jgrimes_!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
adac [adac!~adac@clnet-kmu02-090.ikbnet.co.at] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-205-136.netcologne.de] has joined #ruby
<adac> how can i add a value to a certain key in a hash? I currently doing it like this: "hash1[line] = array1" which is obiosly wrong :(
<apeiros_> what makes you think it was wrong?
yalue [yalue!yalue@nat/ibm/x-xmqtsqkgpykmgmln] has joined #ruby
keyword [keyword!~Adium@190.176.148.137] has joined #ruby
<keyword> hi guys I have a doubt I have to split a big csv file into multiple smaller files what is better use cmd shell for this or do it with ruby ?
ksinkar [ksinkar!~ksinkar@117.195.99.112] has quit ["Konversation terminated!"]
<adac> apeiros_, oh right! it was an other error! :)
<banisterfiend> apeiros_: how r u
bastilian [bastilian!~bastilian@213.47.77.12] has joined #ruby
<apeiros_> banisterfiend: still sick, but quite a bit better than yesterday. thanks for asking. and you yourself?
monban [monban!~gatekeepe@awesome-opossum.com] has joined #ruby
<banisterfiend> not bad, given that your'e swiss, do u know when the cern announcement is happening officially?
mklappstuhl [mklappstuhl!~mklappstu@p5B2C4902.dip.t-dialin.net] has joined #ruby
<apeiros_> what announcement?
<havenn> We found Higgs, P.S. - God is dead.
<banisterfiend> apeiros_: about the higgs
<apeiros_> god has been dead all along…
<apeiros_> no idea, not been watching the news the last 4 days…
<keyword> anyone can help me?
<banisterfiend> apeiros_: http://webcast.web.cern.ch/webcast/
<apeiros_> keyword: we do not know what is the deciding factor for "better" to you.
<shevy> keyword no
<banisterfiend> apeiros_: the crowd is a sea of macbooks
<banisterfiend> like a rubyconf
<apeiros_> seems to start in 4 minutes…
<shevy> 3
<shevy> 2
<shevy> 1
<shevy> GO!!!
<keyword> how was the way with ruby for do it? I have to split the csv and put the header again in each file
<apeiros_> um, simply store the header and when starting a new csv file, write it first?
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
sethetter [sethetter!~sethetter@ip98-186-171-21.ks.ks.cox.net] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-108-21-213-102.nycmny.fios.verizon.net] has joined #ruby
van7hu [van7hu!~root@unaffiliated/van7hu] has joined #ruby
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
cdepue [cdepue!~cdepue@host214.190-137-172.telecom.net.ar] has joined #ruby
cdepue [cdepue!~cdepue@host214.190-137-172.telecom.net.ar] has joined #ruby
cdepue [cdepue!~cdepue@host214.190-137-172.telecom.net.ar] has joined #ruby
<sethetter> I'm trying to use BCrypt to set a session_hash that is returned to the client upon successful login to track sessions client side, however I'm recieving an invalid salt error in my tests, anyone mind taking a look? http://pastie.org/3010160
ramusara [ramusara!~ramusara@220.156.210.236.user.e-catv.ne.jp] has joined #ruby
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
van7hu [van7hu!~root@171.226.188.102] has joined #ruby
van7hu [van7hu!~root@unaffiliated/van7hu] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@EM1-113-109-138.pool.e-mobile.ne.jp] has joined #ruby
kirun [kirun!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
yalue [yalue!yalue@nat/ibm/x-lalqxtujqamajyev] has joined #ruby
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
p0y [p0y!~p0y@125.212.56.55] has joined #ruby
imsplitbit [imsplitbit!~imsplitbi@64.39.5.119] has joined #ruby
kevinbond [kevinbond!~kevinbond@112.50.204.68.cfl.res.rr.com] has joined #ruby
<tightwork> When I run type rvm | head -1 I get rvm is /usr/local/rvm/bin/rvm what do I need to get rvm as a function?
WhiteHorse [WhiteHorse!~WhiteHors@201.208.150.8] has joined #ruby
rushed [rushed!~rushed@99-73-225-9.lightspeed.austtx.sbcglobal.net] has joined #ruby
bwlang [bwlang!~anonymous@70-91-134-14-ma-ne.hfc.comcastbusiness.net] has joined #ruby
<keyword> question how can I add to start on the file a new line to existing file
sepp2k [sepp2k!~sexy@g231125225.adsl.alicedsl.de] has joined #ruby
nari [nari!~nari@p62e324.totrnt01.ap.so-net.ne.jp] has joined #ruby
<apeiros_> keyword: not sure I understand your question correctly. to add a line to the start of an existing file, you read the whole file, add the line to the start of the string, then write the full thing out again.
nonotza [nonotza!~nonotza@cpe-72-225-173-7.nyc.res.rr.com] has joined #ruby
<apeiros_> so sth like: data = line+File.read(path); File.open(path, 'w') do |fh| fh.write(data) end
<apeiros_> if the file is huge and you don't want to read the whole file into memory, then I'd work with a temporary file.
Phlogistique [Phlogistique!~no@neetwork.net] has joined #ruby
van7hu [van7hu!~root@unaffiliated/van7hu] has joined #ruby
gregorg_taf [gregorg_taf!~Greg@78.155.152.6] has joined #ruby
<adac> is there a fast way to compare two hashes keys? (in terms of is key1 of hash1 a key in hash2 )
<Phlogistique> anyone here has used Ruby-openCV and know how mature it is? I plan to use it for a school project because I prefer coding Ruby than C++, but I don't have a lot of time
<apeiros_> adac: hash2.has_key?(key1)
<adac> apeiros_, thanks a lot, i need to try this out right now :)
p0y [p0y!~p0y@121.96.188.176] has joined #ruby
dkr [dkr!~dkr@67.132.255.16] has joined #ruby
p0y_ [p0y_!~p0y@125.212.56.55] has joined #ruby
jgrimes_ [jgrimes_!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
jtrudeau [jtrudeau!~jeff@c-76-127-237-194.hsd1.ma.comcast.net] has joined #ruby
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
ceej_ [ceej_!~anonymous@72.190.40.203] has joined #ruby
tommyvyo_ [tommyvyo_!~tommyvyo@38.123.129.115] has joined #ruby
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
Adman65 [Adman65!~Adman65@p509907f1.dip0.t-ipconnect.de] has joined #ruby
SpyvsSpy [SpyvsSpy!~SpyvsSpy@66.165.126.130] has joined #ruby
sethetter [sethetter!~sethetter@ip98-186-171-21.ks.ks.cox.net] has quit [#ruby]
<adac> apeiros_, hmm when i do acount over the keys of the both hashes, it states me tha hash1 has 30807 keys and hash2 has 30800... but wound't that then be determined by: hash2.has_key?(key1)
<apeiros_> what?
<adac> apeiros_, http://pastie.org/3010339
emmanuel_ [emmanuel_!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
<adac> this is what i do: compairing the thwo hashes (well the keys)
hinogi [hinogi!~Stefan@facade/contributor/hinogi] has joined #ruby
gregorg_taf [gregorg_taf!~Greg@unaffiliated/gregorg] has joined #ruby
<apeiros_> adac: oh, you can use Hash#keys and Array's set methods to do that more efficiently
<apeiros_> hash1.keys-hash2.keys will give you all keys of hash1 that are not present in hash2
<apeiros_> use & instead of - to get all keys that are present in both hashes
jbpros [jbpros!~jbpros@87.66.34.207] has joined #ruby
<adac> apeiros_, oh that sounds really nice!
nanderoo [nanderoo!~nanders@38.124.137.226] has joined #ruby
<adac> apeiros_, but just being curious: shouldn't my code also work?
dyer [dyer!~dyer@99-157-104-113.lightspeed.tukrga.sbcglobal.net] has joined #ruby
<apeiros_> adac: once keyfound is true in your code, it'll never switch back to false.
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
<apeiros_> so probably no, your code doesn't work as you want it to
<apeiros_> also, count = count + 1 --> count += 1 --> or just count = hash1.size
<apeiros_> (last one outside the loop)
<adac> oh cool, thank you!
dyer [dyer!~dyer@99-157-104-113.lightspeed.tukrga.sbcglobal.net] has joined #ruby
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby
kirun_ [kirun_!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
deeunit [deeunit!~luxurymod@rrcs-184-75-21-18.nyc.biz.rr.com] has joined #ruby
tesmar [tesmar!~tesmar@adsl-74-242-254-82.rmo.bellsouth.net] has joined #ruby
bbttxu [bbttxu!~adam@nt8rsctf1.unt.ad.unt.edu] has joined #ruby
jergason [jergason!~jergason@c-67-161-248-217.hsd1.ut.comcast.net] has joined #ruby
e1ement5 [e1ement5!~e1ement5@74.123.48.6] has joined #ruby
Bennit [Bennit!~FooBar@igwe17.vub.ac.be] has quit [#ruby]
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
kirun [kirun!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
<e1ement5> I'm using ruby-debug and the list command is repeatedly advancing the debugger. Anybody know why that would be?
<e1ement5> I don't remember it ever doing that before.
kevinbond [kevinbond!~kevinbond@112.50.204.68.cfl.res.rr.com] has joined #ruby
yekta [yekta!~yekta@r74-192-21-77.bcstcmta01.clsttx.tl.dh.suddenlink.net] has joined #ruby
<banisterfiend> e1ement5: maybe some Debugger.setting[:auto_..] option st
dyer [dyer!~dyer@c-174-49-86-106.hsd1.ga.comcast.net] has joined #ruby
grefab [grefab!~grefab@cyberair.ivu.de] has joined #ruby
<e1ement5> banisterfiend: Any idea where I can check that? This is Rails but I don't see any mention of it in the environment config files.
<e1ement5> And I haven't changed any settings, this would be default.
keyword [keyword!~Adium@190.176.148.137] has quit [#ruby]
raythecat [raythecat!~raythecat@cpe-76-88-24-94.san.res.rr.com] has joined #ruby
<e1ement5> So I'll keep hitting "l" and it keeps advancing. Weird.
<jonathan___> Someone has an idea about how to do the intersection of 2 hashes ?
Hounth [Hounth!~hounth@163.5.221.217] has joined #ruby
<jonathan___> I found something interesting here http://www.informit.com/articles/article.aspx?p=26943&seqNum=3
<jonathan___> but not sure if it's the best Ruby way
theRoUS [theRoUS!KenCoar@nat/redhat/x-faaydwkatsxpzvaa] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
<apeiros_> jonathan___: you'd have to define the operation first
<apeiros_> depending on what you want it to be: Hash[h1.to_a & h2.to_a]
thecreators [thecreators!~rskagy@cpe-65-27-202-53.cinci.res.rr.com] has joined #ruby
<e1ement5> Is the list command in ruby-debug19 supposed to advance the debugger (is that normal behavior)?
<e1ement5> (I don't remember that occurring in the past)
timonv [timonv!~timonv@a83-160-133-157.adsl.xs4all.nl] has joined #ruby
<e1ement5> I'd think I'd be able to "list" all day long without the state changing.
<e1ement5> Does it work that way for anybody else? I tried it outside of Rails in a simple test script and see the same behavior.
jetblack [jetblack!~jetblack@99-32-20-118.uvs.evtnil.sbcglobal.net] has joined #ruby
<kapowaz> question for HAML-knowing folks; can you split inline Ruby statements within HAML across multiple lines?
<tightwork> I'm trying to: rvm install 1.9.2,rbx,jruby but the error log has ERROR: Missing RVM environment file: '/usr/local/rvm/environments/ruby-1.9.2-p290 ?
niklasb [niklasb!~codeslay0@p5B310703.dip0.t-ipconnect.de] has joined #ruby
zzux [zzux!~Adium@static-host-66-18-61-195.epbinternet.com] has joined #ruby
<e1ement5> Huh, actually the break is still on the same line. What's advancing with the 'list' command is the source display.
<tightwork> my local rvm is trying to touch files in /usr/local this makes no sense isnt the point of rvm is so I can install gems as non root user?
<e1ement5> List is described as "list forward," so that would appear to be expected behavior. 'list (lineno)' seems to provide the output I want.
<e1ement5> Or 'list =' (current line). I think I got it now. Ah yeah...
<shevy> I wanna get naked and party
<shevy> who is with me
<kapowaz> sure. I'll have a rum and coca-cola.
<kapowaz> but first; do you know anything about HAML?
ggtoo [ggtoo!~ggtoo@122.178.0.52] has joined #ruby
<shevy> that's a certain position isn't it?
<shevy> elegant... short...
<shevy> though not really needed
<shevy> CSS is good enough already, isn't it?
tilde` [tilde`!~tilde@host238-192-dynamic.12-79-r.retail.telecomitalia.it] has joined #ruby
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
evantravers [evantravers!~textual@fw.luckie.net] has joined #ruby
<tightwork> I dont really care to install gems as non root user, I just dont understand why my non root user does not have access to the gem after installing as root. makes no sense
<tightwork> so everyone devs as root?
shevy2 [shevy2!~shevy@91-113-91-204.adsl.highway.telekom.at] has joined #ruby
<any-key> we like being unencumbered ;)
<any-key> I think a lot of people use RVM these days which keeps the whole root thing from happening
zzuxzzux [zzuxzzux!~rubenl@static-host-66-18-61-195.epbinternet.com] has joined #ruby
<shevy2> root thing?
moshef [moshef!~moshef@84.94.109.182.cable.012.net.il] has joined #ruby
<any-key> sudo gem install <foobar>
zzux [zzux!~Adium@static-host-66-18-61-195.epbinternet.com] has quit [#ruby]
strife25 [strife25!strife25@nat/ibm/x-frprwojxuqvxyjch] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
bluOxigen [bluOxigen!~noreply@unaffiliated/bluOxigen] has joined #ruby
user__ [user__!~akem@222.202.84.79.rev.sfr.net] has joined #ruby
phantasm66 [phantasm66!~phantasm6@63-252-205-228.ip.mcleodusa.net] has joined #ruby
<shevy2> ah
dv310p3r [dv310p3r!~dv310p3r@216.199.155.226.nw.nuvox.net] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
ognevsky [ognevsky!~ognevsky@208-121-94-178.pool.ukrtel.net] has joined #ruby
rippa [rippa!~rippa@87-253-30-88.pppoe.yaroslavl.ru] has joined #ruby
bdrewery [bdrewery!bryan@unaffiliated/bdrewery] has joined #ruby
<bdrewery> Is this a good place for C API questions?
<apeiros_> if it's rubys C API - sure
jgarvey [jgarvey!~jgarvey@cpe-174-097-248-211.nc.res.rr.com] has joined #ruby
<bdrewery> I have a FIXNUM VALUE returned from rb_eval_string_protect, but StringValue on it is throwing an exception (crashing). Yet 8.to_s works fine in irb
io_syl [io_syl!~io_syl@unaffiliated/steph021] has joined #ruby
jgarvey [jgarvey!~jgarvey@cpe-174-097-248-211.nc.res.rr.com] has joined #ruby
<apeiros_> bdrewery: I'm not yet familiar with 1.9's C API (and barely was with 1.8's), but it seems that StringValue is the equivalent of to_str
<apeiros_> not to_s
<bdrewery> yeah I saw that distinction, assumed it was the same though
<apeiros_> try rb_funcall?
<bdrewery> will do
tomzx [tomzx!~tomzx@dsl-59-207.aei.ca] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
<Phlogistique> apeiros_: is there a difference between to_str and to_s?
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
<apeiros_> Phlogistique: yes
<bdrewery> yeah apparently there is http://briancarper.net/blog/98/
<bdrewery> Object only has to_s
<bdrewery> String has to_str
<bdrewery> that explains it, thanks apeiros_
kedare [kedare!~kedare@scuderia.internet-fr.net] has joined #ruby
Phlogistique [Phlogistique!~no@neetwork.net] has quit [#ruby]
bastilian [bastilian!~bastilian@chello213047077012.23.11.vie.surfer.at] has joined #ruby
dotnull [dotnull!~DotNull@office.t8webware.com] has joined #ruby
Skaag [Skaag!~skaag@81.26.147.34] has joined #ruby
commu [commu!9506a6d6@gateway/web/freenode/ip.149.6.166.214] has joined #ruby
MAD [MAD!~MAD@labs.madsgraphics.com] has joined #ruby
<commu> Is it possible to do an include? without considering the casse
<shevy> "include Foo"
<shevy> it wants an argument
<shevy> oh wait
<shevy> you mean an .include?
<shevy> though I still don't get it.
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
<apeiros_> casse? case, as in case-insensitive?
<shevy> apeiros_ too hard to decipher from that statement alone :)
DrShoggoth [DrShoggoth!~prakwtf@68-188-73-250.static.stls.mo.charter.com] has joined #ruby
<commu> The method I was searching is casecmp, thanks shevy :p
<apeiros_> not quite the same…
Manhose [Manhose!~Manhose@193.136.33.133] has joined #ruby
<commu> apeiros_: how to use include? (or similar) without considering the case
<apeiros_> commu: either downcase both strings or use =~ /foo/i instead of .include?("foo")
moshef [moshef!~moshef@84.94.109.182.cable.012.net.il] has joined #ruby
cpruitt [cpruitt!~cpruitt@pool-173-65-251-92.tampfl.fios.verizon.net] has joined #ruby
Manhose [Manhose!~Manhose@193.136.33.133] has joined #ruby
ilteris [ilteris!~ilteris_@cpe-67-244-14-59.nyc.res.rr.com] has joined #ruby
gonglexin [gonglexin!~gonglexin@119.39.249.102] has joined #ruby
metadave [metadave!~metadave@pool-98-118-128-79.bflony.fios.verizon.net] has joined #ruby
<ilteris> hey guys, I was trying to install ruby through homebrew but I got offline and now my screen hangs: http://cl.ly/2J1o183f1e1X0N3d011x what should I do to resume that?
Ilithya [Ilithya!Ilithya@2a02:1610:1:0:20c:29ff:feb3:d0ff] has joined #ruby
jergason [jergason!~jergason@c-67-161-248-217.hsd1.ut.comcast.net] has joined #ruby
pootpoot [pootpoot!~pootpoot@38.108.250.130] has joined #ruby
nonotza [nonotza!~nonotza@66.246.94.130] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
g0r_ [g0r_!~grefab@p57BD6654.dip0.t-ipconnect.de] has joined #ruby
crankycoder [crankycoder!~crankycod@66.207.208.98] has joined #ruby
<Zavior> is it possible to call code before the execution of retry within a loop>
<Zavior> ?*
<Zavior> retry if (x > 1), I want to sleep before the retry happens though
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
btanaka [btanaka!~textual@173-228-34-51.dsl.dynamic.sonic.net] has joined #ruby
btanaka [btanaka!~textual@173-228-34-51.dsl.dynamic.sonic.net] has joined #ruby
burgestrand [burgestrand!~burgestra@62.65.124.23] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-15-43.cable.teksavvy.com] has joined #ruby
p0y [p0y!~p0y@125.212.56.55] has joined #ruby
stetho [stetho!~stetho@217.111.143.154] has joined #ruby
ghanima [ghanima!~ghanima@163.192.12.2] has joined #ruby
v0n [v0n!~v4n@2607:fad8:4:0:21e:8cff:fe4d:2f7d] has joined #ruby
philcrissman [philcrissman!~philcriss@184-97-142-58.mpls.qwest.net] has joined #ruby
<Guest58992> Zavior, retry is for a begin...end block
<Guest58992> dang
<Zavior> it works in a loop too
mksm [mksm!~mksm@pdpc/supporter/professional/mksm] has joined #ruby
<Zavior> mksm: it works in a loop too
PaciFisT [PaciFisT!~PeaCE@76-10-149-67.dsl.teksavvy.com] has joined #ruby
<Zavior> I figured out how to do it though, basically just check if a variable is set to the current iteration at the start of the iteration
<Zavior> if it is, it's a retry
<Zavior> and I put my logic there
<Zavior> probably a little tacky…but ehh this is a hackathon
<Zavior> little hacky*
nari [nari!~nari@p62e324.totrnt01.ap.so-net.ne.jp] has joined #ruby
<mksm> Zavior, it works in a begin/end block inside a loop
<stetho> I'm quite new to Ruby and I keep coming across all these "gotchas" that keep catching me out. Silly things like the gem bin folder not being on the default path and different OS's having different versions of package installed bits of Ruby meaning that when I do X on Ubuntu it's fine and when I do it on CentOS or OS X it's broken and I have to upgrade X and even sometimes downgrade Y and Z. I know it's an open-ended question but does a guide to "install a wor
<stetho> reasonably up to date Ruby with all the paths set and versions in sync on various Linux-y platforms" exist?
consti [consti!~consti@unaffiliated/consti] has joined #ruby
<apeiros_> stetho: rvm
<wayne[mobile]> hi
<Zavior> blah keep hitting this API rate limit...bkah
macabre [macabre!~macabre@63.133.215.18] has joined #ruby
atmosx [atmosx!~atmosx@191.116.broadband5.iol.cz] has joined #ruby
axl__ [axl__!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
consti [consti!~consti@chello213047077012.23.11.vie.surfer.at] has joined #ruby
consti [consti!~consti@unaffiliated/consti] has joined #ruby
<shevy> beatbox
<shevy> one two three
<shevy> GO
* atmosx runs
<shevy> stetho typically this happens because ubuntu annoys the user
<shevy> and the other distributions too
<atmosx> no
<shevy> they love to stay incompatible to one another
<atmosx> gentoo does not annoy me… oh wait, installing ruby 1.9 system-wide is a Herculian task...
akem [akem!~akem@unaffiliated/akem] has joined #ruby
<atmosx> so yes, I'll agree with shevy
<shevy> they don't even use a simple, common scheme to call their dev-packages the same
<shevy> hmm
<shevy> haven't used gentoo much
<atmosx> I like it, because I understand the underlying logic
<atmosx> but the ruby maintainer has serious issues
<shevy> many years ago... on a laptop. a very slow laptop. :) compiled a lot... I went to sleep. Next day, compilation had ended with some error. At this point I did not give it another try
<atmosx> You're better of with rvm
<atmosx> under gentoo
<atmosx> shevy: there are many possible reasons for that, but I won't put you through "Gentoo is better than anything else out there"
<atmosx> it's just good enough for me, to use Leenoux
dch4pm4n [dch4pm4n!~d@gateway/tor-sasl/dchapman1988] has joined #ruby
<shevy> ah no
<shevy> that ship has sailed for me a long time ago. I used Gobolinux for a while and couldn't go back to just stay within the FHS. Now I am kinda stuck to compile everything from source on my own, which isn't ideal either as it takes too much time away. :/
<JonnieCache> TEXMATE 2 AND THE HIGGS BOSON IN ONE 24 HOUR PERIOD!
<ilteris> can someone tell me what I am doing wrong here please? http://cl.ly/3N272E3M0a1Z2H0I1R0n
<JonnieCache> IT ISN'T EVEN CHRISTMAS YET!
<shevy> but at least I dont get the headache of "what package is that in" anymore
<rippa> JonnieCache: you mean absence of higgs boson
<JonnieCache> yeah but its looking good though
<atmosx> shevy: yeah but a package manage is optimal, even for your situation
<apeiros_> JonnieCache: nah, they only narrowed down the band on where to expect the higgs
<shevy> atmosx I am still writing on my own :)
<JonnieCache> yeah and the textmate 2 alpha is useless but dont rain on my parade
<atmosx> shevy: eh? you wrote your own package manager? :-)
sorin [sorin!~sorin@66-168-187-62.dhcp.gwnt.ga.charter.com] has joined #ruby
<shevy> atmosx well, hmm. I wouldn't call it a package manager at this point as there are still some features missing.
<atmosx> which gem/program should I use if I want to create a .conf file from which a ruby script will read configuration? XML or even simple TXT will do
<shevy> it's more mostly just a collection of ruby scripts that aid in compiling and installing something
<JonnieCache> atmosx: if you need to do xml in ruby you want http://nokogiri.org
jwmann [jwmann!~Adium@modemcable242.110-201-24.mc.videotron.ca] has joined #ruby
<shevy> ilteris I dont see anything on http://cl.ly/3N272E3M0a1Z2H0I1R0n - also, perhaps use http://pastie.org/ instead
<JonnieCache> atmosx: but yaml or json would probably be better
<apeiros_> atmosx: for configuration, yaml is widespread
jwmann [jwmann!~Adium@modemcable242.110-201-24.mc.videotron.ca] has joined #ruby
<apeiros_> nicer to read & write than XML
<sorin> Hi.
<atmosx> oh okay, yaml it is then… but I need to a YAML configuration file first
<shevy> atmosx yaml is quite nice. data = YAML.load_file("bla.yml"); pp data
<atmosx> yeah, I worked with YAML before
<atmosx> it's nice that you add manipulate the file directly with VIM
<shevy> atmosx, for most part, at least how I used it, it is just a "key: value" pairing. Sometimes with newlines, then you can use | and indent on the next line
<shevy> or key: and on the next lines several "- foo" entries if you need an array
<atmosx> cool, much more easily readable than XML
<JonnieCache> you can also do a sort of mixin-style pattern with yaml hashes, cant remember what its called. very useful
<atmosx> any simple ruby program which reads it's conf from XML? Just to see some code examples
<shevy> what I hate in XML are the closing tags
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
<atmosx> ah textmate makes that easy
<atmosx> vim too (I guess with some plugin for xml)
<shevy> require "rexml/document"; xml_file = "/bla/foo.xml"; doc = REXML::Document.new(File.new(xml_file))
<shevy> root = doc.root
<sorin> I wonder why are gems dependent on the RubyGems version? It is silly to have to install two versions of Ruby just because one needs two versions of RubyGems? If a Linux distro's packages were dependent on the version of rpm/apt/pacman, people would be cursing that distribution all over the Internet.
<shevy> video = root.elements['video']
<JonnieCache> rexml is slooow though. guess that doesnt matter if youre just dealing with some config files
<shevy> but getting the data into the XML is very annoying if you do it manually. I think YAML is much better for that
p1d [p1d!~p1d@ns1.vonaffenfels.de] has joined #ruby
zommi [zommi!~quassel@HSI-KBW-078-042-009-093.hsi3.kabel-badenwuerttemberg.de] has joined #ruby
<shevy> sorin huh? install two versions of ruby because of gems?
<shevy> what is that madness
<shevy> is that the RVM way to solve things
<shevy> oh
<shevy> distribution madness
<shevy> that explains it :)
<shevy> people rarely curse though
<shevy> they love distributions
<sorin> shevy, certain things want RubyGems 1.3.6; others, want RubyGems > 1.3.7. It's idiotic.
<shevy> hmm
<shevy> isn't that very old?
<shevy> gem -v tells me I am on 1.8.12
duey [duey!~duey@duey-2-pt.tunnel.tserv3.fmt2.ipv6.he.net] has joined #ruby
<atmosx> I'm on 1.8.11
<atmosx> how is tha tpossible, I upgraded a couple of minutes ago
keyword [keyword!~Adium@190.176.148.137] has joined #ruby
<atmosx> jeez
jsj [jsj!~Johan@unaffiliated/jsj] has joined #ruby
PhilK [PhilK!~PhilK@2001:470:1f05:c99:21f:d0ff:fe84:e3ca] has joined #ruby
sahli_ [sahli_!~sahli@41.224.36.130] has joined #ruby
craigglennie [craigglennie!~craigglen@173-167-99-61-sfba.hfc.comcastbusiness.net] has joined #ruby
ckrailo [ckrailo!~ckrailo@208.86.167.247] has joined #ruby
<shevy> no idea. I think I downloaded http://rubyforge.org/frs/download.php/75573/rubygems-1.8.12.tgz not too long ago... a day or two ago or something like that
tatsuya_o [tatsuya_o!~tatsuya_o@27-142-96-128.rev.home.ne.jp] has joined #ruby
<JonnieCache> what are you trying to use that demands rubygems 2.3.6?
<JonnieCache> are you sure it doesnt say >= 1.3.6?
<JonnieCache> *1.3.6
io_syl [io_syl!~io_syl@66.201.45.155] has joined #ruby
io_syl [io_syl!~io_syl@unaffiliated/steph021] has joined #ruby
<JonnieCache> (i just ran gem update --system and im now on 1.8.12 which apparently came out on 02/12/2011)
jrist-demo [jrist-demo!~jrist@184-96-222-92.hlrn.qwest.net] has joined #ruby
<atmosx> I run gem update and I'm still at 1.8.11
nonotza [nonotza!~nonotza@66.246.94.130] has joined #ruby
<atmosx> maybe it's because I'm on macosx
<shevy> hehe
<shevy> don't you love systems where things are all different :)
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
<atmosx> shevy: hahaha yeah. totally!
ryh [ryh!~ryh@host-174-45-115-181.bzm-mt.client.bresnan.net] has joined #ruby
<JonnieCache> nah im on osx
<atmosx> JonnieCache: and u use brew?
<atmosx> as a package mangaer? or the default ruby/gem binaries?
<JonnieCache> i use homebrew all the time
<atmosx> okay I use macports
<atmosx> that's it then
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
<JonnieCache> i installed my ruby however through ruby-build
<JonnieCache> which is part of rbenv
<JonnieCache> but that shouldnt affect how rubygems updates itself afaik
<atmosx> yeah but I'm too tired to look at this now
<atmosx> the program I'm currently writing is not affected so...
<JonnieCache> yeah theres no point doing this shit when youre tired
keyword [keyword!~Adium@190.176.130.215] has joined #ruby
armdale [armdale!~a@24.52.227.6] has joined #ruby
sorin [sorin!~sorin@66-168-187-62.dhcp.gwnt.ga.charter.com] has quit [#ruby]
p0y [p0y!~p0y@125.212.56.55] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-123-50.columbus.res.rr.com] has joined #ruby
zommi [zommi!~quassel@HSI-KBW-078-042-009-093.hsi3.kabel-badenwuerttemberg.de] has joined #ruby
<keyword> hi guys I have a doubt I installed delajed jobs in rails 2.3.8 but when I run rake jobs:works I get undefined method `now' for nil:NilClass anyone know what is it?
<JonnieCache> keyword: ask in #rubyonrails
keyword [keyword!~Adium@190.176.130.215] has quit [#ruby]
akem [akem!~akem@93.12.150.200] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
zipace [zipace!~hi@unaffiliated/zipace] has joined #ruby
k2iguvah1taja [k2iguvah1taja!~kv@edio.ee] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
<k2iguvah1taja> Hello
RomD [RomD!~Roman@nrbg-d93236c7.pool.mediaWays.net] has joined #ruby
<k2iguvah1taja> YARV wiki is down :(, maybe someone knows a mirror?
kirun_ [kirun_!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
symb0l [symb0l!~symb0l@c-50-131-187-183.hsd1.ca.comcast.net] has joined #ruby
altivec [altivec!~altivec@95.105.19.20.dynamic.ufanet.ru] has joined #ruby
<k2iguvah1taja> I would like to learn more about how for example YARV works, maybe someone knows a good book? I mean general topic book about programming languages which is a good start?
kenperkins [kenperkins!~textual@174-24-164-49.tukw.qwest.net] has joined #ruby
mrsolo [mrsolo!~mrsolo@adsl-99-39-150-102.dsl.pltn13.sbcglobal.net] has joined #ruby
jbpros [jbpros!~jbpros@87.66.34.207] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
alex__c2022 [alex__c2022!~alex@207.239.64.154] has joined #ruby
<JonnieCache> k2iguvah1taja: i think there are some questions on StackOverflow about book recommendations
<JonnieCache> theres probably some stuff in there about compiler theory
<workmad3> k2iguvah1taja: start with the Dragon book for compilers
kenperkins [kenperkins!~textual@174-24-164-49.tukw.qwest.net] has joined #ruby
lkba [lkba!~AndChat@acjo135.neoplus.adsl.tpnet.pl] has joined #ruby
<k2iguvah1taja> ok, thank you
dasfugufish [dasfugufish!~Adium@71-213-26-228.slkc.qwest.net] has joined #ruby
saschaheylik [saschaheylik!~sascha@80-121-34-140.adsl.highway.telekom.at] has joined #ruby
ank [ank!~ank@c-67-172-16-188.hsd1.pa.comcast.net] has joined #ruby
bafilius [bafilius!~lee@wsip-174-75-64-190.sb.sd.cox.net] has joined #ruby
asobrasil [asobrasil!~asantioli@palpatine.privatedns.com] has joined #ruby
<srid> EventMachine's `Channel.push` blocks. i thought that api was async?
<lkba> czesc
altivec [altivec!~altivec@95.105.19.20.dynamic.ufanet.ru] has joined #ruby
<lkba> I am sorry
kf8a [kf8a!~kf8a@242.sub-174-254-242.myvzw.com] has joined #ruby
Sliker [Sliker!~ponies@117.163.pn.adsl.brightview.com] has joined #ruby
flippingbits [flippingbits!~anonymous@port-212-202-126-63.static.qsc.de] has joined #ruby
zomgbie [zomgbie!~jesus@213.162.68.117] has joined #ruby
ghanima [ghanima!~ghanima@163.192.12.2] has joined #ruby
<musee> soooo
<musee> that taught me to not cat .gem/specs/rubygems.org%80/latest_specs.4.8
craigglennie_ [craigglennie_!~craigglen@173-167-99-61-sfba.hfc.comcastbusiness.net] has joined #ruby
bier [bier!~bier@p54A5AE21.dip.t-dialin.net] has joined #ruby
Mohan [Mohan!~nixh0st@cpc1-slou1-2-0-cust65.haye.cable.virginmedia.com] has joined #ruby
Mohan [Mohan!~nixh0st@unaffiliated/mohan] has joined #ruby
cjs226 [cjs226!~cjs226@rrcs-71-40-79-154.sw.biz.rr.com] has joined #ruby
<JonnieCache> lol would that happen to be the entire archive of the specs for every gem by any chance? :)
<JonnieCache> let me guess it was gzipped and so contained command characters that fucked up your shell?
<Tasser> I've got a perl and a python script to run - IO.popen3 ?
<Boohbah> loooool
<JonnieCache> lol indded
adamkittelson [adamkittelson!~adamkitte@c-24-23-252-19.hsd1.ca.comcast.net] has joined #ruby
<JonnieCache> that reminds me of going into IRC channels back in the day and telling people "I FOUND A SECRET MIRC BACKDOOR! PRESS ALT+F4 TO GET OPS!"
<Tasser> wtf?
LiquidInsect [LiquidInsect!~billabney@173-228-63-32.dsl.static.sonic.net] has joined #ruby
<Tasser> JonnieCache, did it work?
<JonnieCache> yes.
<Tasser> how well?
<JonnieCache> depended on the channel
Optimis [Optimis!~Optimis@cpe-98-149-171-51.socal.res.rr.com] has joined #ruby
<JonnieCache> irc really was retarded back in the late 90s/early 2000s. and so was i. but at least i was a child, thats some excuse
<JonnieCache> ahhh, the days of l33t mirc scripts
<ccooke> Ahh, the days of text-mode scripts that automatically filtered out 90% of the l33t mirc scripts output :-)
Mohan [Mohan!~nixh0st@unaffiliated/mohan] has joined #ruby
<srid> how is it that "foobar\n".split /\n/ returns ["foobar"] without an empty item as 2nd element?
<JonnieCache> yeah but i wouldve just owned you with my OOB packet attack or whatever it was called.
<JonnieCache> WINNUKE! that was it
<srid> doc says "If pattern is a Regexp, str is divided where the pattern matches."
<ccooke> JonnieCache: Text mode clients. I was using linux and solaris back then :-)
<ccooke> (Still using linux now)
<Tasser> srid, hm.
<ccooke> (ah, winnuke. Nostalgia :-)
<Tasser> ccooke, killing win98?
<ccooke> Tasser: and earlier :-)
<k2iguvah1taja> wierd
<k2iguvah1taja> it works at the beginning
<k2iguvah1taja> but not if \n @ end
<ccooke> srid: the spec doesn't require split to return two values in that case. It *has* split the string. The implementation treats the string as a number of records deimited by the search pattern
thone [thone!~thone@g230191031.adsl.alicedsl.de] has joined #ruby
<ccooke> so, if the delimiter pattern is at the end of a string, it marks the end of the preceeding record in the string but doesn't require the existence of a subsequent (empty) record.
<ccooke> probably the right thing to do.
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
crankycoder [crankycoder!~crankycod@66.207.208.98] has joined #ruby
<srid> ccooke: heh. is there a way at all to "just split" by a delimitter in ruby?
<srid> without eating up empty sub-strings
<srid> eg: i want "\nfoo\n".mysplit "\n" to return ["", "foo", ""]
<srid> context: i'm writing a function that receives chunks of data (from Net::SSH output) and spit out a sequence of lines
<rippa> srid: add spaces to start and end
<srid> ... and that looks like: https://gist.github.com/848e616b34c399025a7a
<ccooke> srid: rippa just to the end
<rippa> maybe
<ccooke> er. rippa: just to the end, even.
<rippa> right
<rippa> at the start it works already
<rippa> I just assumed he tried it
<k2iguvah1taja> maybe use scan?
burgestrand [burgestrand!~burgestra@h-163-174.a155.priv.bahnhof.se] has joined #ruby
Tuxist [Tuxist!~quassel@dyndsl-085-016-197-049.ewe-ip-backbone.de] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
<k2iguvah1taja> ("asd\n".scan /(.*)\n?/).to_a.map { |e| e[0]}
<k2iguvah1taja> maybe it's butt slow
<srid> split works as expected in Python: "foo\n".split("\n") => ['foo', '']
<k2iguvah1taja> don't know that :P
stepnem [stepnem!~stepnem@176.119.broadband10.iol.cz] has joined #ruby
<JonnieCache> ccooke: if you fancy some more nostalgia, check this out http://www.users.nac.net/splat/winnuke/ teardrop, jolt, the ping of death… things were so easy back then
<ccooke> srid: Purely out of interest (not saying you're wrong to need it :-) why do you need the empty string?
driv3r [driv3r!~driv3r@user-46-113-153-188.play-internet.pl] has joined #ruby
<srid> ccooke: rippa - adding space to end (and remembering to massage the return value accordingly) is a bit more complicated; i'll use that if i can't find a simpler solution
<JonnieCache> when you could crash IIS just by sending it an 8kb URL
<srid> ccooke: i'm writing a function that receives chunks of data (from Net::SSH output) and spit out a sequence of lines. here's the body of the loop that receives the chunk (as "data") - https://gist.github.com/848e616b34c399025a7a
zalesz [zalesz!~zalesz@user-46-113-153-188.play-internet.pl] has joined #ruby
<srid> remember, Net::SSH just spits data as it comes from ssh, with no regard for newline buffering.
<srid> in that above gist, the call .spit causes a bug.
Ankhers [Ankhers!~user@76-10-149-67.dsl.teksavvy.com] has joined #ruby
<ccooke> srid: "foobar\n".scan( /.*(?:\n|$)/ )
davidcelis [davidcelis!~david@70-89-180-6-smc-or.hfc.comcastbusiness.net] has joined #ruby
raythecat [raythecat!~raythecat@cpe-76-88-24-94.san.res.rr.com] has joined #ruby
<ccooke> srid: will be what you want
Jrz [Jrz!~jrz@d152222.upc-d.chello.nl] has joined #ruby
<ccooke> srid: but I don't think you actually *should* use that :-)
<srid> => ["foobar\n", ""] ;; why is there an extra newline?
<burgestrand> You really need the \n? The $ means end of line anyway.
<ccooke> srid: because split is doing the Right Thing in terms of ssh output.
<shevy> srid try a .chomp or a .reject {|x| x.empty? }
<ccooke> the \n at the end of the line is the newline, after all - nothing was printed after it, so there *wasn't* another line
<srid> "foobar\n" is just a simple example. in reality, it would be something like "log line 1\nlog line 2\nincomplete"
<ccooke> srid: it's not extra, it's just returning you the full lines.
<ccooke> srid: "foobar\nincomplete".split( /\n/ ) => ["foobar", "incomplete"]
<ccooke> srid: split does the right thing.
<ccooke> if there *is* no data past the last newline, it returns nothing. If there is, it returns it.
Fretta [Fretta!~Fretta@ip184-187-186-58.sb.sd.cox.net] has joined #ruby
<srid> *lines, buffer = "foobar\n".split /\n/
<srid> here, I expect `lines` to contain ["foobar"]
<srid> but it doesn't. instead that is assigned to `buffer`
<srid> that's the bug for this special case
<ccooke> no, that's a problem with your code :-)
<ccooke> this isn't a bug
<srid> "buffer" is supposed to contain incomplete chunk at the end of the string to be split. it will be processed in next llop, when next chunk comes in
<ccooke> (you're losing information there, even if it does work
<srid> yea, my code was written assuming .split behaves like python's .split
<apeiros_> just that buffer will consume first, *rest after
adeponte [adeponte!~adeponte@67.110.253.162.ptr.us.xo.net] has joined #ruby
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
eldariof [eldariof!~CLD@81.200.24.243] has joined #ruby
kenichi [kenichi!~kenichi@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
Telling [Telling!Telling@do.it.and.undo.it] has joined #ruby
<ccooke> srid: you're better off, there, using data.scan( /^[^\n]*\n?/ )
<ccooke> srid: that will get you each line (with its newline intact), with the last value without a newline.
<ccooke> and will always (as you want) return *something* for the last value.
maletor [maletor!~maletor@74.115.25.139] has joined #ruby
Skaag_ [Skaag_!~skaag@107.53.128.48] has joined #ruby
nowthatsamatt [nowthatsamatt!~nowthatsa@rrcs-71-43-23-18.se.biz.rr.com] has joined #ruby
<srid> hehe, this behaves like python's split: "foo\n".split "\n", -9999
<vandemar> is there a syntactically simpler way of doing Array.new(26){|i|i} ? (I want an array, not an iterator)
Kivi [Kivi!~joni@ec2-79-125-13-112.eu-west-1.compute.amazonaws.com] has joined #ruby
<apeiros_> vandemar: [*0...26]
<burgestrand> vandemar: (0..26).to_a
elb0w [elb0w!~gtsafas@38.112.182.36] has joined #ruby
<burgestrand> either
<burgestrand> :p
<apeiros_> burgestrand: either ... or 25
<ccooke> srid: the main thing is that the * modifier consumes everything left over after non-* variables have consumed
<burgestrand> Ah, yes, I always think the dot replaces the last value but longer dots means longer array.
<ccooke> srid: so *lines, buffer doesn't do what you think it foes
<burgestrand> :(
<srid> ccooke: apparently, adding a -1 argument to .split fixes the problem for me.
<ccooke> srid: so I see
<ccooke> srid: but you're losing data now :-)
<srid> "foo\nbar\nbaz\n".split /\n/, -1 => > ["foo", "bar", "baz", ""]
malkomalko [malkomalko!~malkomalk@66-234-41-82.nyc.cable.nyct.net] has joined #ruby
<ccooke> (well, probably not in this case)
<srid> you mean losing "\n"? that's fine. i expect it to happen.
thecreators [thecreators!~rskagy@cpe-65-27-202-53.cinci.res.rr.com] has joined #ruby
<ccooke> *nod*
h4mz1d [h4mz1d!~hamfz@c-69-244-5-169.hsd1.al.comcast.net] has joined #ruby
akem [akem!~akem@93.12.147.127] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
<srid> basically that's what I am implementing in ruby. line-seq.
<srid> i tried to do this the fiber way (my project relies on eventmachine), but it seems complicated
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
<srid> so i'm using EventMachine.Queue which just adds verbose code
<srid> net:ssh -> {queue} -> line-seq -> {queue} -> process-func
Araxia_ [Araxia_!~Araxia@173-164-68-213-Oregon.hfc.comcastbusiness.net] has joined #ruby
<burgestrand> That looks awfully similar to the line protocol
R3dy [R3dy!~rdavis@unaffiliated/r3dy] has joined #ruby
perlsyntax [perlsyntax!~perlsynta@unaffiliated/perlsyntax] has joined #ruby
<R3dy> rvm install 1.8.7 fails
<R3dy> is that not the proper syntax of the command?
<shevy> rvm is a fail in itself
ixti [ixti!~ixti@251.Red-88-25-53.staticIP.rima-tde.net] has joined #ruby
<any-key> how so?
d2dchat [d2dchat!~d2dchat@c-98-209-18-197.hsd1.mi.comcast.net] has joined #ruby
<JonnieCache> R3dy: thats should be the proper command I think… post the logs
<JonnieCache> but yeah i gave up on rvm for rbenv and ruby-build
muraii [muraii!42ce7403@gateway/web/freenode/ip.66.206.116.3] has joined #ruby
<R3dy> JonnieCache: http://pastebin.com/Q4KPevK5
<shevy> any-key it adds complexity to simple problems for many people. and everyone seems to be attracted to it these days like the moth to the candle
Squarepy [Squarepy!~Squarepy@wcw-staff-214-224.wireless.uva.nl] has joined #ruby
<R3dy> shevy: I only use it because someone in here recommended it when I was having a differnt problem
<any-key> well, it does make installation of ruby extremely simple and can be done on a per-user basis
<R3dy> it has worked well for me for the most part
Squarepy [Squarepy!~Squarepy@unaffiliated/squarepy] has joined #ruby
<shevy> well actually from that log
<shevy> that's not really RVM related is it?
shal3r [shal3r!~shal3r@office.gold.lv] has joined #ruby
<JonnieCache> R3dy: god knows. looks like missing dev packages or something. not rvm related
<shevy> gcc -I. -I../.. -I../../. -I../.././ext/dl -DHAVE_DLFCN_H -DHAVE_DLOPEN -DHAVE_DLCLOSE -DHAVE_DLSYM -DHAVE_DLERROR -I. -fPIC -g -O2 -fPIC -fno-defer-pop -fno-omit-frame-pointer -c dl.c
<JonnieCache> R3dy: you on linux?
<shevy> dl.c:104:0:
<R3dy> Arch linux
<shevy> ext/dl/dl.c
<shevy> that seems to be an extension
<shevy> "dl"
<shevy> what was that again?
<muraii> Hello. Running Ruby 1.9.3-p0 on Cygwin in WinXP. I'm having issues compiling some gems, specifically with posix-spawn. I've found that the gem on rubygems.org doesn't have the most recent commit which stops compilation on cygwin. I tried to rake the gim from the git repo, but rake complains it can't find extensiontask.
tilde` [tilde`!~tilde@host238-192-dynamic.12-79-r.retail.telecomitalia.it] has quit [#ruby]
quest88 [quest88!~quest88@12.181.53.99] has joined #ruby
<shevy> on that line it pulls in #include "callback.func"
<JonnieCache> try using your packages manager's `whatprovides` command
<muraii> I've reinstalled both Ruby and the rake gem (the former also doing the latter), with no change. Wondering what my next step should be.
<burgestrand> extensiontask… isn’t that part of rake-compiler?
alex__c2022 [alex__c2022!~alex@207.239.64.154] has joined #ruby
<R3dy> JonnieCache: pacman only has ruby 1.9.2
<R3dy> which works fine
<Tasser> R3dy, nah, it's got 1.9.3
<R3dy> accept I'm trying to install and run http://dradisframework.org/
Pip [Pip!~Pip@host-87-156-66-217.spbmts.ru] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
<R3dy> Tasser: you are right my pad
<burgestrand> muraii: I’d give it a try: gem install rake-compiler
<muraii> burgestrand: I assumed it was a standard library/function as well.
<R3dy> anyways Draids is failing and I'm wanting to try it on 1.8.7
p0y [p0y!~p0y@125.212.56.55] has joined #ruby
<muraii> burgestrand: I'll do that now.
alfism [alfism!~alfism@2620:149:4:1201:9939:3287:5ce6:fbc] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-nuikqdmskdopuyje] has joined #ruby
<muraii> burgestrand: Ding ding!
perlsyntax [perlsyntax!~perlsynta@unaffiliated/perlsyntax] has joined #ruby
<burgestrand> muraii: um. Klonk?
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
jergason [jergason!~jergason@c-67-161-248-217.hsd1.ut.comcast.net] has joined #ruby
<muraii> burgestrand: That allowed me to build the gem with the updates, and the gem is now installed. The whole motivation was to get jekyll installed, which has turned into learning some of how Ruby works, which is great. Jekyll is now successfully installed.
<muraii> burgestrand: Thank you much for the help.
j3r0m3 [j3r0m3!~j3r0m3@74.42.230.218] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-123-50.columbus.res.rr.com] has joined #ruby
<burgestrand> muraii: happy hippos and ponies! \o/
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
<R3dy> so no guesses on that log file?
teubanks [teubanks!~tracey@97.75.178.34] has joined #ruby
Jrz [Jrz!~jrz@d152222.upc-d.chello.nl] has joined #ruby
teubanks [teubanks!~tracey@97.75.178.34] has quit [#ruby]
<burgestrand> R3dy: what’s your OS?
<JonnieCache> R3dy: you're missing some header packages
<R3dy> Arch Linux
<R3dy> JonnieCache: Kernel Headers?
<JonnieCache> no, headers for some other lib ruby depends on (i think)
<JonnieCache> use your package manager to find out what dl.c is all about
<JonnieCache> because thats what the log implies its having trouble with
<JonnieCache> most package managers have a command which will tell you which package provides a particular header
enroxorz [enroxorz!~enroxorz@65-117-22-130.dia.static.qwest.net] has joined #ruby
enroxorz [enroxorz!~enroxorz@unaffiliated/enroxorz] has joined #ruby
<JonnieCache> yum has `whatprovides` but i dunno what arch has
<R3dy> dl.c is a file pulled down from rvm
<burgestrand> Might have an old version of glibc, looking at those error messages
<R3dy> and placed into the ruby1.8.7 directory
<burgestrand> I’ve seen this error before I think, long ago
<JonnieCache> R3dy: yes, but it is referencing something else that isnt there
<srid> burgestrand: line protocol?
voodoofish430 [voodoofish430!~mtorres@NAT5.pas.idealab.com] has joined #ruby
<burgestrand> srid: part of eventmachine, all the protocols have a receive_data(data) method, and once they buffer up a full line it’ll call receive_line(line)
<burgestrand> srid: (for the line protocol handlers, that is)
<burgestrand> R3dy: could you go to the source where ruby is? Probably ~/.rvm/src/ruby-1.8.7 something
<srid> interesting. is there any way I can use this with net::ssh (via em-ssh)?
felipe [felipe!~felipe@unaffiliated/felipe] has joined #ruby
<R3dy> so include callback.func
<R3dy> is at line 104
<R3dy> that is the issue?
<burgestrand> R3dy: no, I believe your callback.func needs to be rebuilt
<R3dy> if I use my package manager to search for callback it shows libsigc++
<srid> i use em-ssh's "on_data" handler. net::ssh has no "on_line"
<R3dy> which I have installed
<burgestrand> srid: I would believe you could use it, but I have no idea how em-ssh works so I wouldn’t know how, but you could look at the built-in eventmachine protocols here and see how they work: https://github.com/eventmachine/eventmachine/tree/master/lib/em/protocols
<burgestrand> srid: line_protocol.rb is probably the simplest one
paissad_ [paissad_!~paissad@89-92-16-151.hfc.dyn.abo.bbox.fr] has joined #ruby
<burgestrand> srid: and probably one of the three you could use yourself, but it might be more work than what you’re doing now, who knows ;)
thecreators [thecreators!~rskagy@cpe-65-27-202-53.cinci.res.rr.com] has joined #ruby
<R3dy> LOL guys there is a page on the ArchLinux Wiki specific to callback.func and ruby 1.8.7
<burgestrand> R3dy: go to the ruby 1.8.7 source dir for RVM, jump down to ext/dl and rebuild the callback.func with the mkcallback.rb file in that directory
<R3dy> I'm sure I can fix it from here
<JonnieCache> R3dy: this is probably a silly question, but all your system packages are up to date right?
ephemerian [ephemerian!~ian@82-69-1-248.dsl.in-addr.zen.co.uk] has quit [#ruby]
<R3dy> sorry for wasting your time
<burgestrand> R3dy: link?
rramsden [rramsden!~rramsden@s64-180-62-209.bc.hsia.telus.net] has joined #ruby
<JonnieCache> R3dy: not a waste of time, everyone learns something
<burgestrand> R3dy: looks like exactly the same thing I just told you :)
<burgestrand> You could skip the rm if you just use a single > instead of >> though
perlsyntax [perlsyntax!~perlsynta@unaffiliated/perlsyntax] has joined #ruby
<burgestrand> Oh wel
<burgestrand> …l
avandenhoven [avandenhoven!~avandenho@96.49.64.248] has joined #ruby
rubyruy [rubyruy!~ruy@76.77.91.41] has joined #ruby
flippingbits_ [flippingbits_!~anonymous@port-212-202-126-63.static.qsc.de] has joined #ruby
altivec [altivec!~altivec@77.79.186.193.dynamic.ufanet.ru] has joined #ruby
<R3dy> success!
apucacao [apucacao!~apucacao@thelevel.com] has joined #ruby
<burgestrand> \o/
daniel_hinojosa [daniel_hinojosa!~danno@c-68-35-182-153.hsd1.nm.comcast.net] has joined #ruby
<JonnieCache> git is seriously the most amazing shit ever invented
renanoronfle [renanoronfle!~renanoron@189.102.48.152] has joined #ruby
<R3dy> I don't know why git is better then svn
<R3dy> how is it differnt?
<JonnieCache> just spent ten minutes chopping bits out of various utterly broken branches to make one shiny working branch of the best of all possible worlds
<avandenhoven> I've extracted some code from a script that seems to work well for opening files with the right encoding. I've quickly tested this but does anyone see any issues I've missed? https://gist.github.com/1473114
<JonnieCache> easy branching basically
<JonnieCache> svn makes branching difficult
<burgestrand> And merging those branches later.
Russell^^ [Russell^^!~Russell^^@88.97.51.87] has joined #ruby
<avandenhoven> R3dy: Branching and merging is definitely the big one.
<avandenhoven> And having your own local repository to work with which you can sync to some shared remote when you like is a close second.
<R3dy> gotcha, good to know
<JonnieCache> i like being able to make a total mess of my local repo without affecting anyone elses work
<R3dy> I've never ran a project before so I don't have much experience
<R3dy> as a user they are really the same, "Pull down these files..."
<R3dy> "updated to the latest version"
<R3dy> that's as far as I get lol
flippingbits [flippingbits!~anonymous@port-212-202-126-63.static.qsc.de] has joined #ruby
<JonnieCache> once you get into the habit of doing branches for everything it becomes so useful
cyri_ [cyri_!~cyri_@nor75-27-88-178-186-47.fbx.proxad.net] has joined #ruby
<ReinH_> JonnieCache: it's not the branching that matters
<ReinH_> branching is trivial because merging actually works
d2dchat [d2dchat!~d2dchat@adsl-99-34-172-251.dsl.sfldmi.sbcglobal.net] has joined #ruby
<ReinH_> you can branch pretty easily in svn too
<JonnieCache> when you branch in svn it copies lots of files doesnt it? so if you have a very big codebase its inefficient
<R3dy> does anyone here run Dradis?
<JonnieCache> whereas in git branching is just a tag on a commit, its instant
<JonnieCache> basically using git makes me feel like i have magic powers.
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
<JonnieCache> especially `git-bisect run` that is some jedi knight shit
zakwilson_ [zakwilson_!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
perlsyntax [perlsyntax!~perlsynta@unaffiliated/perlsyntax] has quit ["Leaving"]
Jrz [Jrz!~jrz@d152222.upc-d.chello.nl] has joined #ruby
<ReinH_> sure, it's inefficient, I'm just saying that the point of git is not just that branching is trivial, it's also that merging actually works
<ReinH_> you wouldn't branch if you couldn't merge
<JonnieCache> yeah that is the main thing i guess
stayarrr [stayarrr!~olivererx@dslb-178-009-059-241.pools.arcor-ip.net] has joined #ruby
SegFaultAX|work [SegFaultAX|work!~mkbernard@173.228.45.162] has joined #ruby
Lord-Harlot [Lord-Harlot!~Serenity@adsl-77-86-52-54.karoo.KCOM.COM] has joined #ruby
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
Sailias [Sailias!~jonathan@69.158.82.233] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-205-136.netcologne.de] has joined #ruby
ceej [ceej!~anonymous@cpe-72-190-40-203.tx.res.rr.com] has joined #ruby
shadoi [shadoi!~Adium@gw.sfo.cloudscaling.com] has joined #ruby
<shevy> lalalalala
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has joined #ruby
veronatii [veronatii!~citrus@ip68-6-95-91.sb.sd.cox.net] has joined #ruby
Lord-Harlot [Lord-Harlot!~Serenity@adsl-77-86-52-54.karoo.KCOM.COM] has joined #ruby
josh_ [josh_!~josh@74-95-43-126-Oregon.hfc.comcastbusiness.net] has joined #ruby
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
trivol [trivol!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
ikaros [ikaros!~ikaros@dslb-084-059-073-057.pools.arcor-ip.net] has joined #ruby
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
poindontcare [poindontcare!~user@cloudbovina.bovinasancta.com] has joined #ruby
flippingbits [flippingbits!~anonymous@port-212-202-126-63.static.qsc.de] has joined #ruby
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
d2dchat [d2dchat!~d2dchat@173-167-20-129-michigan.hfc.comcastbusiness.net] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
Pip_ [Pip_!~Pip@unaffiliated/pip] has joined #ruby
manizzle [manizzle!~manizzle@adsl-99-102-133-31.dsl.pltn13.sbcglobal.net] has joined #ruby
jgrimes_ [jgrimes_!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
sepp2k [sepp2k!~sexy@g224100061.adsl.alicedsl.de] has joined #ruby
adac [adac!~adac@85-127-21-28.dynamic.xdsl-line.inode.at] has joined #ruby
timonv [timonv!~timonv@92.70.5.82] has joined #ruby
enroxorz [enroxorz!~enroxorz@65-117-22-130.dia.static.qwest.net] has joined #ruby
enroxorz [enroxorz!~enroxorz@unaffiliated/enroxorz] has joined #ruby
CannedCorn [CannedCorn!~textual@207.239.86.46] has joined #ruby
renanoronfle [renanoronfle!~renanoron@189.102.48.152] has joined #ruby
Brozilla [Brozilla!~Brozilla@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
crankycoder [crankycoder!~crankycod@66.207.208.98] has joined #ruby
<robert_> so, mod_passenger isn't working.
awesome [awesome!~awesome@212.62.202.84.customer.cdi.no] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
lord1234 [lord1234!~zombie@c-24-128-198-93.hsd1.ma.comcast.net] has joined #ruby
lord1234 [lord1234!~zombie@unaffiliated/topchef] has joined #ruby
yekta [yekta!~yekta@r74-192-21-77.bcstcmta01.clsttx.tl.dh.suddenlink.net] has joined #ruby
dark3rdre4ms [dark3rdre4ms!~Ethan@99.102.186.14] has joined #ruby
dark3rdre4ms [dark3rdre4ms!~Ethan@unaffiliated/eth4n] has joined #ruby
raythecat [raythecat!~raythecat@adsl-99-34-25-11.dsl.sndg02.sbcglobal.net] has joined #ruby
JonnieCache [JonnieCache!~jonnie@87.252.60.35] has joined #ruby
<lord1234> why is this bad? "IWT_avail = blah" i get an error that it is a "dynamic constant assignment", however if i call it iwt_avail, it's ok
dark3rdre4ms [dark3rdre4ms!~Ethan@adsl-99-102-186-14.dsl.bltnin.sbcglobal.net] has joined #ruby
dark3rdre4ms [dark3rdre4ms!~Ethan@unaffiliated/eth4n] has joined #ruby
<Ankhers> lord1234: In ruby, variables that are in caps, are known as constants.
<apeiros_> lord1234: the line on its own isn't bad, but the fact that that line is within a method is
<lord1234> even though this one isn't caps
<lord1234> its technically the name of the item i am working with(it's called "IWT")
<apeiros_> you shouldn't assign constants in a method
<apeiros_> lord1234: um, I is caps
<lord1234> apeiros_: i see
<Ankhers> sorry, if it starts with a capital letter....
<Ankhers> That was my mistake.
<lord1234> if it starts witha caps.
<lord1234> ok
<lord1234> ty
<shevy> hmm why does ruby prevent dynamic constant assignment from within a method?
burgestrand [burgestrand!~burgestra@h-163-174.a155.priv.bahnhof.se] has joined #ruby
<burgestrand> shevy: you can use remove_const/const_set to get around it
<shevy> yeah
<JonnieCache> its a constant, its not meant to be reassigned
<shevy> I am doing that in one project
<JonnieCache> hence the name
<shevy> JonnieCache what about first-time assignments?
tesmar [tesmar!~tesmar@adsl-74-242-254-82.rmo.bellsouth.net] has joined #ruby
altivec [altivec!~altivec@81.30.191.11.dynamic.ufanet.ru] has joined #ruby
<JonnieCache> i guess doing that in a method implies that it could not be constant
<Ankhers> My guess would be that the method could be called multiple times, always changing the CONSTANT, which would defeat the purpose of a constant... sounds like you need a variable instead.
<JonnieCache> maybe the method wont be called
<shevy> def setup_my_extra_cool_constants_only_if_i_require_some_fancy_project
<burgestrand> require 'my_constants'
<shevy> though I had not had that need so far actually
<burgestrand> ;)
gener1c_ [gener1c_!~gener1c@bzq-79-181-116-10.red.bezeqint.net] has joined #ruby
<shevy> oh yeah
<shevy> Ankhers yeah but in ruby you can redefine CONSTANTS anyway. you only get a warning
andynu [andynu!~andynu@209.67.252.115] has joined #ruby
fridim_ [fridim_!~fridim@2a01:e35:2ece:f2d0:223:4eff:fe6c:c754] has joined #ruby
<Ankhers> yeah, but if you get a warning, it probably isn't a good practice to be doing what you're doing.
<shevy> hehe
andrewhl [andrewhl!~andrew@CPE204e7f4a94cb-CM001cea3dec2e.cpe.net.cable.rogers.com] has joined #ruby
<shevy> I need to find someone who will sit to my left side and whenever I write bad things, that person needs to yell at me :)
<JonnieCache> go use a compiled language then
<JonnieCache> thats what compilers are for
<vandemar> %q() %r() %s() %w() and %x() are perlisms right? or did perl copy them from somewhere else?
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
<shevy> JonnieCache I feel they put a lot of constraints on the programmer
<shevy> it's like coding in a prison
<JonnieCache> me too. i dont enjoy strongly typed languages unless they have good type inference
<shevy> vandemar good question
jbpros [jbpros!~jbpros@87.66.34.207] has joined #ruby
<shevy> perhaps perl borrowed from another language? I really dont know
<JonnieCache> but if you want someone to yell at you when you write bad things, the java compiler will definitely do that :)
ciunix [ciunix!~ciunix@151.65.183.57] has joined #ruby
<shevy> do those shortcuts mean something? %x ... %r ...
<shevy> hmm well r is perhaps "quoted regex"
<JonnieCache> yeah
roadze [roadze!~roadze@119.224.137.97] has joined #ruby
<JonnieCache> %w creates an array of strings
Spockz` [Spockz`!~Spockz@21pc198.sshunet.nl] has joined #ruby
<JonnieCache> %w{foo bar baz} == ["foo", "bar", "baz"]
<JonnieCache> I use that all the time
<shevy> ok... probably w for "quoted words" or something like that
<shevy> I too
<shevy> though I use %w()
<rippa> %x is shell command
<JonnieCache> you can use almost char for the brackets
<JonnieCache> you can do %w:foo bar : i think
<shevy> x ... what could x mean ...
<JonnieCache> *almost any
<rippa> eXecute
<shevy> whoa
<shevy> indeed! "%w:foo bar :" works ...
<vandemar> executes the interior (subject to PATH) and returns output
Zal [Zal!~zal@unaffiliated/zalamander] has joined #ruby
<shevy> omg I learned some obfuscation trick
<shevy> I must combine this with :symbols and ternary operator!
<shevy> yeah rippa, makes sense :)
<robert_> so, mod_passenger isn't working. it just sits there. I've set my paths correctly, it even errors when the path I try to give it doesn't exist.
<JonnieCache> shevy: its a nice route out of escape character hell
<Zal> Hi, playing with ruby koans to learn about ruby. What does :thing syntax create?
<rippa> shevy: %%#{??}%
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
<rippa> Zal: symbol
<shevy> no wait
<shevy> what is %%#{??}%
<shevy> omg
<shevy> IRB says it is 63
<shevy> oh
<shevy> #{}
<shevy> and ??
<shevy> ok... ?? is 63
<Zal> rippa, thanks, I'll cross-reference
<shevy> what is the %%% though?
nanoyak [nanoyak!~nanoyak@50-0-164-69.dsl.dynamic.sonic.net] has joined #ruby
<vandemar> Zal: think of a symbol as a string that you mainly want to use as a key or for comparison, and never (or very rarely) want to print out. :foobarbatbaz takes up less memory than "foobarbatbaz"
<rippa> shevy: quoted string
<rippa> like %()
<rippa> %!!
<rippa> *interpolated
<shevy> hmm
<shevy> oh right
<shevy> man, that can be very confusing...
<Zal> vandemar, gotcha, thanks much.
mrsolo [mrsolo!~mrsolo@adsl-68-126-188-177.dsl.pltn13.pacbell.net] has joined #ruby
Spockz [Spockz!~Spockz@21pc198.sshunet.nl] has joined #ruby
<Mon_Ouie> ?? isn't 63, it's '?'
<rippa> it may be in 1.8
lord1234 [lord1234!~zombie@unaffiliated/topchef] has quit [#ruby]
<rippa> I'm not sure though
<Mon_Ouie> It is in 1.8, I just felt like arguing about still using 1.8. :p
thatryan [thatryan!~thatryan@c-24-4-167-46.hsd1.ca.comcast.net] has joined #ruby
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
<thatryan> hi all, I know i have ruby installed I use it to for my jekyll blog, but in another directory running a rake fails, do i need to install ruby again?
lorandi [lorandi!~lorandi@gateway/tor-sasl/lorandi] has joined #ruby
crazed [crazed!~crazed@unaffiliated/cr4z3d] has joined #ruby
<vandemar> fails how?
<crazed> anyone ever open a unix socket to make requests to a rack server before?
<crazed> i'm trying this: http://pastie.org/3011924
<thatryan> vandemar: i get the error rake aborted!
<thatryan> no such file to load -- bundler
<vandemar> do you have the bundler gem installed?
<thatryan> Yes, I installed it to use with Octopress
<thatryan> i was in another directory when I installed it though..does that matter?
rpowell [rpowell!~rpowell@CPE-58-166-127-97.lnse5.cht.bigpond.net.au] has joined #ruby
<imperator> thatryan, echo $RUBYOPT
<thatryan> whats that
<vandemar> if you installed the gem as non-root it would be in ~/.gem and trying to use that gem as another user will fail
<imperator> thatryan, does it work if you explicitly "require 'rubygems'" first?
<thatryan> vandemar: I am same the same user
<thatryan> imperator: dont know how to do that
<imperator> thatryan, let's try a different approach
<imperator> fire up irb
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
<thatryan> lol sorry, brand new to ruby stuff ;)
<imperator> thatryan, ok, which OS are you on?
<thatryan> is there a way I can uninstall and reinstall for use everywhere?
<thatryan> OS X lion
<imperator> ok, on the command shell type "irb"
patant [patant!~patant@h-141-11.a176.priv.bahnhof.se] has joined #ruby
<thatryan> ok...what is that?
zzuxzzux [zzuxzzux!~rubenl@static-host-66-18-61-195.epbinternet.com] has joined #ruby
<imperator> terminal
<imperator> you can find it under Applications/Utilties
<thatryan> lol no no im in terminal
<thatryan> i meant what is irb
<imperator> oh, interactive ruby shell
<workmad3> thatryan: interactive ruby
<imperator> very handy for testing little bits of code
zastaph [zastaph!zastaph@unaffiliated/zastaph] has joined #ruby
<thatryan> ahha ok
<imperator> you should see a prompt like ">>" or something similar
<thatryan> yeah
<imperator> ok, type: require 'rubygems'; does that return true or false
<imperator> ?
spinagon [spinagon!~rippa@87-253-30-88.pppoe.yaroslavl.ru] has joined #ruby
poindontcare [poindontcare!~user@cloudbovina.bovinasancta.com] has joined #ruby
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
<thatryan> it changed the prompt to ?>
austinbv [austinbv!~austinbv@rrcs-24-73-203-202.se.biz.rr.com] has joined #ruby
gearaholic [gearaholic!~gearaholi@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby
<imperator> did you hit enter?
<thatryan> yes
<austinbv> is there a way to conditionally check down a chain of objects?
<thatryan> >> require 'rubygems';
<thatryan> i typed that
<workmad3> thatryan: did you type the '>>' as well? :/
<thatryan> lol no
<austinbv> and if any are nil just return nil instead of throwing an exception
<imperator> thatryan, oops, no semicolon
<thatryan> just copied the entire line
<thatryan> ah ok
<imperator> hit ctrl-c + return, should get you back
<workmad3> ; shouldn't matter...
<thatryan> ok returned false (no semicolon)
vyrus001 [vyrus001!~Vyrus001@209.159.137.115] has quit [#ruby]
<imperator> workmad3, irb seems to interpret that as meaning awaiting more input
<workmad3> imperator: oh, that makes sense... sort of :)
<thatryan> the opposite of SQL ;)
<thatryan> which just waits until you hit the damn semicolon
<workmad3> thatryan: that's because a ; is required to end a statement in SQL :)
<thatryan> yeah i thought it might be the same here oops
<workmad3> thatryan: whereas in ruby, it's optional, but required if you want to put more than one statement on a line
<thatryan> good to know!
<imperator> thatryan, what was the result?
<thatryan> false
<imperator> ok, try require 'bundler'
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
<thatryan> load error: no such file.....
<workmad3> austinbv: in what sense?
* workmad3 wonders what thatryan's original problem is
<workmad3> I came in half way through :)
<austinbv> workmad3: in coffeescript you can do some awesome stuff like person.leg?.foot?.toe
lord1234 [lord1234!~zombie@unaffiliated/topchef] has joined #ruby
<thatryan> lol
<imperator> thatryan, how did you install bundler?
<austinbv> and if leg or foot are undefined the thing just returns null
<workmad3> austinbv: oh, do you mean something like person.try(:leg).try(:foot).try(:toe) ?
<lord1234> am I doing something wrong here: http://pastie.org/3012000
<austinbv> ah try works
<lord1234> can I not reference @@colbrowser that way?
<austinbv> it's just not as pretty in ruby
<thatryan> imperator: I was in another directory, and followed this http://octopress.org/docs/setup/
<JonnieCache> austinbv: you mean like a maybe monad style thing?
<workmad3> austinbv: no... generally I'd suggest you'd want to not return a plain nil ;)
<workmad3> austinbv: although it's not as heinous as doing such a thing in java or javascript :)
<JonnieCache> you can get that in ruby with andand https://github.com/raganwald/andand
<austinbv> workmad3: what's wrong with just returning nil
<austinbv> all I want is a value at the end of a chain if it's not there or any of it's parts I don't really care :P
<workmad3> austinbv: because it generally requires special handling... you should look up the null object pattern at some point :)
Manhose [Manhose!~Manhose@bl18-45-1.dsl.telepac.pt] has joined #ruby
<imperator> thatryan, oh, i have no idea then
<austinbv> workmad3: will do so now
<JonnieCache> austinbv: look at andand its the closest thing you can get in ruby to that
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has quit ["Leaving"]
<workmad3> austinbv: as I said, it's not as bad as other languages where null is not an object... at least with ruby nil is an object and you can do things like .try() :)
<thatryan> imperator: ha. is that an abnormal way to install it all?
<austinbv> ah
<workmad3> thatryan: did you install with rvm?
<workmad3> thatryan: and what is the problem you're having? :)
<robert_> so, passenger isn't working -- it just sits there. I've set my paths correctly, it even errors when the path I try to give it doesn't exist.
<robert_> :/
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
<robert_> anybody have any ideas?
<Tasser> robert_, #rubyonrails
<thatryan> workmad3: I installed following these few steps http://octopress.org/docs/setup/ and the problem was that in a different directory i had no access to rake
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby
<robert_> Tasser: thanks.
<workmad3> thatryan: yeah, those steps tell you to use either rvm or rbenv...
<workmad3> thatryan: I was wondering which you used :)
<lord1234> am I doing something wrong here: http://pastie.org/3012000 can I not call @@colbrowser that way?
<thatryan> is that wrong?
<workmad3> thatryan: it's not wrong... but I kinda need to know which you used in order to help
<thatryan> i gotcha
jbpros [jbpros!~jbpros@87.66.34.207] has joined #ruby
TandemAdam [TandemAdam!~adam@118-93-45-198.dsl.dyn.ihug.co.nz] has joined #ruby
<thatryan> workmad3: so i just installed bundler again lol in the new directory i am in.. is there a way to uninstall all the ruby and gems and bundler ive installed everywhere and install it ONCE to work everywhere?
eignerchris [eignerchris!~eignerchr@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
<workmad3> thatryan: damn, I g2g and eat... I might be on again later to help
TandemAdam [TandemAdam!~adam@118-93-45-198.dsl.dyn.ihug.co.nz] has quit [#ruby]
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
wyhaines [wyhaines!~wyhaines@mo-71-1-98-35.dhcp.embarqhsd.net] has joined #ruby
sandelius [sandelius!~textual@90-231-202-62-no214.tbcn.telia.com] has joined #ruby
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
<thatryan> workmad3: ok thanks
havenn [havenn!~skipper@pool-71-189-193-128.lsanca.fios.verizon.net] has joined #ruby
james_cotterill [james_cotterill!~james_cot@94-192-130-249.zone6.bethere.co.uk] has joined #ruby
thecreators [thecreators!~rskagy@cpe-65-27-202-53.cinci.res.rr.com] has joined #ruby
<Zal> Question about slicing: a slice is nil if the starting index is out of range. So why does [1,2,3,4][4,10] return [] instead of nil? Isn't an index of 4 out of range in this case?
axl__ [axl__!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
Manhose__ [Manhose__!~Manhose@bl18-45-1.dsl.telepac.pt] has joined #ruby
<Zal> I guess it's a "special case". The docs also call a[4] => nil a special case, which doesn't seem special to me.
<Zal> that is, where a = [1,2,3,4]
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby
<apeiros_> Zal: it's like with poles in a fence
<apeiros_> you have 4 elements in the array, but 5 "poles"
<Zal> ok, I can go with that. Thank you.
developish [developish!~developis@ip98-165-12-61.ph.ph.cox.net] has joined #ruby
Manhose [Manhose!~Manhose@bl18-45-1.dsl.telepac.pt] has joined #ruby
vjacob [vjacob!~vjacob@94-195-174-165.zone9.bethere.co.uk] has joined #ruby
<vandemar> apparently if you start at a valid pole including the ending pole you get an empty set; if you start at an invalid pole, or if you request a negative number of elements (like [1,2,3,4] ), you get nil
<vandemar> should be [1,2,3,4][1,-1]
Jrz [Jrz!~jrz@d152222.upc-d.chello.nl] has joined #ruby
muraii [muraii!42ce7403@gateway/web/freenode/ip.66.206.116.3] has quit [#ruby]
akem [akem!~akem@93.12.147.127] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
<Zal> cool, makes sense to me. Let's see if ranges gel as easily...
PhilK [PhilK!~PhilK@2001:470:1f05:c99:21f:d0ff:fe84:e3ca] has joined #ruby
GreaseMonkey [GreaseMonkey!~gm@unaffiliated/greasemonkey] has joined #ruby
wyhaines [wyhaines!~wyhaines@mo-71-1-98-35.dhcp.embarqhsd.net] has joined #ruby
poindontcare [poindontcare!~user@cloudbovina.bovinasancta.com] has joined #ruby
kedare [kedare!~kedare@onyxia.netyxia.net] has joined #ruby
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@99.174.154.113] has joined #ruby
<shal3r> can you explain what "Frozen" means for gem?
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
Amirh [Amirh!~amir@2.181.25.108] has joined #ruby
<Zal> what's the difference between Array.collect and Array.map?
<Zal> (or collect! and map! for that matter)
<apeiros_> none
<Zal> ok, is one or the other idiomatically preferred?
<apeiros_> I prefer map
<Zal> "map" is shorter :-)
<apeiros_> maps better to my thinking
<Zal> <nod>
<apeiros_> btw., we use # to designate instance methods: Array#map (instance method 'map' of class 'Array')
<apeiros_> :: for class methods
<Zal> I see, thank you.
<Tasser> apeiros_, why not + and - as in objc?
rpowell [rpowell!~rpowell@CPE-124-176-123-100.lns8.ken.bigpond.net.au] has joined #ruby
<apeiros_> ask whomever came up with it
jbpros [jbpros!~jbpros@87.66.34.207] has joined #ruby
havenn [havenn!~skipper@pool-71-189-193-128.lsanca.fios.verizon.net] has joined #ruby
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
Skaag [Skaag!~skaag@static-155-212-109-50.nj.onecommunications.net] has joined #ruby
cooper [cooper!~mitchell@unaffiliated/furryfishy] has joined #ruby
<lord1234> hey apeiros_ can u help me out with this: https://gist.github.com/5ea0d35b44de755ec0f6
Tomasso [Tomasso!~papito@186.23.14.175] has joined #ruby
<lord1234> i don't understand why it thinks the class variable is Nil
<lord1234> i get an undefined method find_elements for nil:NilClass error in IRB when I try to run that line through
<Tomasso> i parsed a json and im getting in `[]': can't convert String into Integer (TypeError)
<Tomasso> when I try parsed_json["nodename"] , what could be wrong? it does work by doing parsed_json[0] for example, this i ruby 1.9.3
wyhaines_ [wyhaines_!~wyhaines@mo-71-50-23-63.dhcp.embarqhsd.net] has joined #ruby
<apeiros_> lord1234: check whether Selenium::WebDriver.for :firefox returns nil
<apeiros_> other than that, given just that information I'd say it ought to work
skrewler [skrewler!~skrewler@209.213.206.58] has joined #ruby
<lord1234> apeiros in other functions up above, i also call @@col_browser, successfully
epochwolf [epochwolf!~epochwolf@unaffiliated/epochwolf] has joined #ruby
<apeiros_> Tomasso: array != hash
<apeiros_> lord1234: you assign to @@col_browser elsewhere?
<lord1234> negative
<Tomasso> .. i thought json parsed returned a hashhh... there should be some way to get it..
<apeiros_> Tomasso: JSON can be either a hash or an array
<JonnieCache> json parses to a hash if its a hash and an array if its an array
<JonnieCache> json can contain both
<lord1234> apeiros_: any thoughts otherwise?
perturbedpanda [perturbedpanda!~perturbed@matthewabrown.com] has joined #ruby
<apeiros_> lord1234: nope
<Tomasso> it parses to array if ["a","b"] and to a hash if { "a" : "value" } ..
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
<JonnieCache> yeah
<lord1234> apeiros_: how about this gist: https://gist.github.com/d80bbeaf72906ebb84e2 see line 90.
<lord1234> thats the entire class, andafaik, there is no assignment to @@col_browser other then at the very top
thepix [thepix!~pix@91.193.160.246] has joined #ruby
timonv [timonv!~timonv@92.70.5.82] has joined #ruby
manizzle [manizzle!~manizzle@dsl081-053-082.sfo1.dsl.speakeasy.net] has joined #ruby
havenn [havenn!~skipper@pool-71-189-193-128.lsanca.fios.verizon.net] has joined #ruby
<lord1234> general call stream goes get_columns;temp = get_column_name_exist_PD;verify_pd_columns(temp);
<lord1234> it fails inside of verify_pd_columns on line 90
friskd [friskd!~friskd@75.79.184.2] has joined #ruby
lxsameer [lxsameer!~lxsameer@unaffiliated/lxsameer] has joined #ruby
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
luis [luis!~luis@nhop.r42.eu] has joined #ruby
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
<luis> Hello. Is there a short-hand syntax for array.slice(n, array.length)?
<apeiros_> lord1234: no idea
<apeiros_> luis: array[n..-1]
<lord1234> <rageface>
j3r0m3 [j3r0m3!~j3r0m3@adsl-99-174-154-113.dsl.scrm01.sbcglobal.net] has joined #ruby
<lord1234> :(
<luis> apeiros_: thanks!
mickn [mickn!~mickn@unaffiliated/mickn] has joined #ruby
<lxsameer> does any one used uwsgi with ruby
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
ilyam [ilyam!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
PhilK [PhilK!~PhilK@2001:470:1f05:c99:21f:d0ff:fe84:e3ca] has joined #ruby
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
QaDeS [QaDeS!~mklaus@frbg-4d029531.pool.mediaWays.net] has joined #ruby
<lxsameer> what is the best webserver for ruby ?
<Boohbah> lxsameer: 'best' is subjective
<apeiros_> define 'best'
<Tasser> lxsameer, what do you need it for?
stkowski [stkowski!~stkowski@ns25.8x8.com] has joined #ruby
<lxsameer> i need a web server that be fast and took minimum memory
<lxsameer> i have about 10 or 20 users
altivec [altivec!~altivec@81.30.191.11.dynamic.ufanet.ru] has joined #ruby
<yxhuvud> how much functionality does the site need?
<lxsameer> its a redmine installation
<JonnieCache> if it only has 10-20 users you could probably get away with a single instance of thin
<JonnieCache> or unicorn
<JonnieCache> depends how much theyre gonna use it
Zanacross [Zanacross!~Serenity@adsl-77-86-52-54.karoo.KCOM.COM] has joined #ruby
lord1234 [lord1234!~zombie@unaffiliated/topchef] has quit [#ruby]
<lxsameer> hmmmm ok letme try them
<JonnieCache> otherwise just go for nginx+passenger
<lxsameer> thanks man
<JonnieCache> thin/unicorn are single threaded, so its one request at a time
james_co_ [james_co_!~james_cot@host81-159-101-187.range81-159.btcentralplus.com] has joined #ruby
<JonnieCache> so if multiple users are trying to access it, it will slow down
<JonnieCache> but maybe not by much
<JonnieCache> i dont have experience with redmine, dont know how efficient it is
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
mikeg [mikeg!~mglenney@nat-uh-admins.apollogrp.edu] has joined #ruby
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
<Tasser> JonnieCache, unicorn got workers, thin eventmachine. both handle multiple requests pretty well. unicorn can use multiple cores too, used that one in production for a not-so-small site
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
Spockz [Spockz!~Spockz@21pc198.sshunet.nl] has joined #ruby
freshlog [freshlog!~al@76-198-129-125.lightspeed.mtvwca.sbcglobal.net] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
trivol [trivol!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
canton7 [canton7!~canton7@02dca775.bb.sky.com] has joined #ruby
hukl [hukl!~hukl@pdpc/supporter/professional/hukl] has joined #ruby
ciunix [ciunix!~ciunix@151.65.183.57] has joined #ruby
<ciunix> hi all.. Do you suggest me to use padrino as web framework to develop a wep app?
<ciunix> At this time we are trying to use sinatra
xhubert [xhubert!~alex@213-21-78-58.customer.t3.se] has joined #ruby
<ciunix> are there anybody?
xhubert [xhubert!~alex@213-21-78-58.customer.t3.se] has quit [#ruby]
<burgestrand> There’s no good way to answer that for you. Might be a terrible idea, might not. Why do you say *trying* to use sinatra?
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
Targen [Targen!~iguana@190.39.181.108] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-15-43.cable.teksavvy.com] has joined #ruby
xhubert [xhubert!~alex@213-21-78-58.customer.t3.se] has joined #ruby
xhubert [xhubert!~alex@213-21-78-58.customer.t3.se] has quit [#ruby]
xhubert [xhubert!~alex@213-21-78-58.customer.t3.se] has joined #ruby
<ciunix> burgestrand I use trying because I'm a newbie in ruby and all is frameworks
WhiteHorse [WhiteHorse!~WhiteHors@201.208.150.8] has joined #ruby
<ciunix> and for these reasons I'm asking if padrino is a good framework to learn
<burgestrand> padrino is good if you want something more than sinatra but not necessarily rails
<matti> ciunix: Try few and choose the one you like, or the one that soves your particular use case.
<burgestrand> Was like five months I used padrino, and I expect it to have matured a bit since then. Was a nice experience back then, but it changed a lot even during those two months so it was tricky to keep up.
<burgestrand> Things I wrote one week would be out-of-date the next.
`brendan [`brendan!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
<`brendan> quick (possibly dumb) question.. can ruby use COM objects?
<burgestrand> But yeah, I’d try it if there’s no reason not to. It was fun, and the result is nice.
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
<`brendan> the mail server we use at work supports COM objects, but i don't know if ruby does
<burgestrand> I haven’t done it myself, but might that be this win32ole thing?
<burgestrand> ^ `brendan
<`brendan> i'm in the beginning stages of learning ruby and looking for some guidance. XML/RPC access can also be used to interact w/ the mail server
<`brendan> hmm, burgestrand.. that's a good point
<burgestrand> `brendan: *no idea* if that helps you in any way
<gener1c_> wazza
<`brendan> now that i remember looking through their API docs and talking to their support the COM stuff with PHP was for Windows-based setups
<`brendan> :/
<ciunix> we are going to develop a web app that responds to requests from mobiles
<ciunix> and for this reason we are searching something to help us in this develop
<`brendan> burgestrand, ty for that info
stetho [stetho!~stetho@217.111.143.154] has joined #ruby
<burgestrand> `brendan: yw, I hope it helps somewhat
jensn_ [jensn_!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
<`brendan> it does
<`brendan> helps me remember the windows COM
jbpros_ [jbpros_!~jbpros@87.66.47.159] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
<`brendan> i remember that when i was writing scripts in php for the mail server and wasn't initalizing the API object
<`brendan> ty again
<ciunix> then burgestrand.. a your personal opinion: do you suggest us to use padrino in that project? (funny the names: sinatra-padrino eheh)
<shadoi> Any know if it's possible to make a ruby UDP socket receive Unicast AND Broadcast on the same socket?
kedare_ [kedare_!~kedare@2a01:e35:2f26:5330:8011:6ad7:22bd:8d34] has joined #ruby
<shadoi> I know it's possible in C but I can't figure out a way to make Ruby do it
<Zal> Is it considered good practice to always use explicit return values in methods, even when not necessary?
<burgestrand> ciunix: it’s a decision of judgement, if I believed it would not be too heavy on view/application logic (e.g. an actual website) I don’t see why not
<Zal> or does no one really care?
<burgestrand> Zal: I can say it’s not necessarily bad practice to leave it out
keithpitt [keithpitt!~keithpitt@eth2071.vic.adsl.internode.on.net] has joined #ruby
<Zal> burgestrand, excellent, thank you
<Boohbah> shadoi: the highest rated answer says make a new socket
<burgestrand> Zal: so I’d say implicit return is possibly the more common approach
<burgestrand> Zal: as opposed to always explicit return
<Zal> burgestrand, got it, thanks.
<shadoi> Boohbah: yeah but I HAVE to have it on a single port.
ubuntunoob [ubuntunoob!c242af52@gateway/web/freenode/ip.194.66.175.82] has joined #ruby
<ciunix> ok burgerstrand thanks
<ubuntunoob> tuby.
<ciunix> I try it and I decide :)
<ubuntunoob> RUBY SUMMER CUP 2012 !!
<burgestrand> ciunix: if it becomes unwieldy you should notice it quite early, and should have the time to switch to something else if you need :)
<Zal> so a method like "def foo :value1 :value2" returns the *last* implicit expression (:value2 in this case)?
<Zal> oops, forgot "end"
<ciunix> ok we try
<ciunix> where are you from burger
<burgestrand> Zal: unless there’s an explicit return value, the last value will be what’s returned
<Zal> burgestrand, great, thanks again.
<burgestrand> ciunix: sweden
<burgestrand> Zal: also do remember every expression has some kind of return value, ":value unless false" will have the result nil
<burgestrand> …
<burgestrand> Always funny saying things this late.
<ciunix> it's so cold there for me, I'm in the northen part of italy and for me it's cold to here..
<ciunix> because I'm sicilian :)
<burgestrand> Zal: :value *if* false, rather
<burgestrand> ciunix: visited rome this august, could barely sleep at night because it was so warm ;)
<ciunix> eheh
<ciunix> in august just tourists go in rome
Amirh [Amirh!~amir@2.181.21.163] has joined #ruby
<ciunix> all italian go to the sea
<burgestrand> yeah, because italian knows it’s too darn hot to stay in the city
<burgestrand> at least streets were empty
<burgestrand> :p
<ciunix> exactly
<ciunix> I can imagine
<ubuntunoob> tuby
<ciunix> and now there? a lot of snow???
<burgestrand> no :( had snow like two weeks ago, now just rain and stormy weather
btanaka [btanaka!~textual@17.212.166.137] has joined #ruby
<burgestrand> rain almost every day
<ciunix> here everyday fog
<ubuntunoob> i tried to code with tuby but then they managed to give me assignment in ruby
<ciunix> a strong fog
<burgestrand> heh, cool
<Zal> burgestrand, hm, ok, so that's like an implicit "else nil" I guess?
<burgestrand> Zal: yeah, I guess you could think of it like that
<Zal> ok, cool
<burgestrand> Zal: I think of it like this: it has no return value, but since this is ruby it has a return value, so what could it be? nil
<ciunix> well burger nice to meet you.. I go to try padrino
<ciunix> bye
<burgestrand> ciunix: good luck :)
<ubuntunoob> tuby
<Zal> burgestrand, heh, ok, everything has a return value. Thanks!
<burgestrand> *nods*
<ciunix> thanks
cooper [cooper!~mitchell@unaffiliated/furryfishy] has joined #ruby
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
manizzle_ [manizzle_!~manizzle@dsl081-053-082.sfo1.dsl.speakeasy.net] has joined #ruby
ubuntunoob [ubuntunoob!c242af52@gateway/web/freenode/ip.194.66.175.82] has quit [#ruby]
<shadoi> Boohbah: yes, that's in C.
strife25 [strife25!strife25@nat/ibm/x-kwbkpsspfomwwojs] has joined #ruby
<gener1c_> C is sexy
<gener1c_> ruby is better
jergason [jergason!~jergason@208.97.56.66] has joined #ruby
Fretta_ [Fretta_!~Fretta@ip184-187-186-58.sb.sd.cox.net] has joined #ruby
ilyam_ [ilyam_!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby
ryanf [ryanf!~revfitz@50.0.160.40] has joined #ruby
ceej [ceej!~anonymous@cpe-72-190-40-203.tx.res.rr.com] has joined #ruby
raythecat [raythecat!~raythecat@adsl-99-34-25-11.dsl.sndg02.sbcglobal.net] has joined #ruby
Skaag [Skaag!~skaag@static-155-212-109-50.nj.onecommunications.net] has joined #ruby
quest88 [quest88!~quest88@12.181.53.99] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-123-50.columbus.res.rr.com] has joined #ruby
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
canton7 [canton7!~canton7@02dca775.bb.sky.com] has joined #ruby
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
[eko] [[eko]!~eko@70-90-168-189-SFBACalifornia.hfc.comcastbusiness.net] has joined #ruby
ryan [ryan!~thatryan@c-24-4-167-46.hsd1.ca.comcast.net] has joined #ruby
PhilK [PhilK!~PhilK@2001:470:1f05:c99:21f:d0ff:fe84:e3ca] has joined #ruby
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
`brendan [`brendan!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
zalesz [zalesz!~zalesz@user-46-113-153-188.play-internet.pl] has joined #ruby
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
pantsman [pantsman!~pantsman@2.27.109.168] has joined #ruby
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
jgrimes [jgrimes!~jg@cpe-071-070-140-012.nc.res.rr.com] has joined #ruby
<zalesz> is here anyone who used ruby/gstreamer ?
james_cotterill [james_cotterill!~james_cot@217.113.171.162] has joined #ruby
pospekson [pospekson!~kat@dynamic-78-8-236-29.ssp.dialog.net.pl] has joined #ruby
<WhiteHorse> I just found the FASTEST way of learning Ruby... and any language :D
<WhiteHorse> http://code.he.net/
pospekson [pospekson!~kat@dynamic-78-8-236-29.ssp.dialog.net.pl] has quit [#ruby]
<RubyPanther> if it is from Hurricane Electric it is probably quite good.
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
yekta [yekta!~yekta@r74-192-21-77.bcstcmta01.clsttx.tl.dh.suddenlink.net] has quit [#ruby]
Seisatsu [Seisatsu!~seisatsu@2001:c08:3700:ffff::53b] has joined #ruby
ascarter_ [ascarter_!~ascarter@209.119.253.66] has joined #ruby
<shevy> lol
<RubyPanther> Their ipv6 cert program is great
<shevy> wtf
<shevy> their karma sutra tutorial is even better
<RubyPanther> If a company like Apple can have fanboys, so can an internet backbone company.
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
jbpros [jbpros!~jbpros@87.66.47.159] has joined #ruby
<RubyPanther> Wouldn't all sutras be karma sutras?
<WhiteHorse> Seriously I think there must be a link to those guys from the ruby language official site. It's just the fastest way of getting a taste of Ruby
<WhiteHorse> huh? karma sutra tutorial? :S
ilyam [ilyam!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby
Jake232 [Jake232!~textual@5e049611.bb.sky.com] has joined #ruby
<shevy> RubyPanther I am not sure about the word sutra in itself
<shevy> I think I heard it once in chinese ghost story... as a holy text, which banished the netherworld demon lord
<RubyPanther> a sutra is a book of religious teachings
nari [nari!~nari@p62e324.totrnt01.ap.so-net.ne.jp] has joined #ruby
vitoravelino [vitoravelino!~rockhampt@177.32.0.62] has joined #ruby
vitoravelino [vitoravelino!~rockhampt@unaffiliated/vtr] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
mrsolo [mrsolo!~mrsolo@adsl-68-126-188-177.dsl.pltn13.pacbell.net] has joined #ruby
sandelius [sandelius!~textual@90-231-202-62-no214.tbcn.telia.com] has joined #ruby
ilyam_ [ilyam_!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby
burgestrand [burgestrand!~burgestra@h-163-174.a155.priv.bahnhof.se] has joined #ruby
badabim [badabim!~badabim@17.212.166.202] has joined #ruby
Brozilla [Brozilla!~Brozilla@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
nkbuff [nkbuff!~nkbuff@dslb-188-102-162-024.pools.arcor-ip.net] has joined #ruby
tdubellz_ [tdubellz_!tdubellz@freenode/staff/tdubellz] has joined #ruby
<RubyPanther> This thing is good, it notices if I use the wrong quote type or incorrect capitalization, but it ignores if I use different whitespace around , and ()
<RubyPanther> It is like Ruby the hard way, but interactive
<RubyPanther> but instead of str="I love Ruby"; str.gsub!(/I/,'You');print str I just said print(str="You love Ruby") and it said that was close enough. ;)
crescendo [crescendo!~eric@unaffiliated/crescendo] has joined #ruby
badabim [badabim!~badabim@17.212.166.215] has joined #ruby
Nisstyre [Nisstyre!~yours@infocalypse-net.info] has joined #ruby
randym [randym!~randym@EM1-112-171-157.pool.e-mobile.ne.jp] has joined #ruby
peterwal_ [peterwal_!~peterwald@174.46.144.3] has joined #ruby
canton8 [canton8!~canton7@02dca775.bb.sky.com] has joined #ruby
timonv [timonv!~timonv@140pc227.sshunet.nl] has joined #ruby
Norrin [Norrin!~Norrin@c-67-160-193-132.hsd1.ca.comcast.net] has joined #ruby
LiquidInsect [LiquidInsect!~billabney@173-228-63-32.dsl.static.sonic.net] has joined #ruby
stringoO [stringoO!~JLstring@CPE001346cbe31b-CM00111ae502a8.cpe.net.cable.rogers.com] has joined #ruby
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@74.42.230.218] has joined #ruby
btanaka [btanaka!~textual@17.245.91.3] has joined #ruby
cjs226 [cjs226!~cjs226@99-61-65-242.lightspeed.austtx.sbcglobal.net] has joined #ruby
atmosx [atmosx!~atmosx@166.188.broadband14.iol.cz] has joined #ruby
Nisstyre [Nisstyre!~yours@infocalypse-net.info] has joined #ruby
Asher1 [Asher1!~asher@c-24-126-149-16.hsd1.ga.comcast.net] has joined #ruby
randym [randym!~randym@EM1-113-114-139.pool.e-mobile.ne.jp] has joined #ruby
Asher [Asher!~asher@98.158.127.150] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
Nisstyre [Nisstyre!~yours@infocalypse-net.info] has joined #ruby
ikaros [ikaros!~ikaros@dslb-084-059-073-057.pools.arcor-ip.net] has joined #ruby
dasfugufish [dasfugufish!~Adium@68-170-39-205.mammothnetworks.com] has joined #ruby
Asher [Asher!~asher@98.158.127.150] has joined #ruby
perryh [perryh!~root@unaffiliated/perry753] has joined #ruby
kevinbond [kevinbond!~kevinbond@91.218.205.68.cfl.res.rr.com] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
libertyprime [libertyprime!~libertypr@182.236.125.102] has joined #ruby
justicefries [justicefries!u2891@gateway/web/irccloud.com/x-ieyiukbldjaoijjl] has quit [#ruby]
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
asobrasil [asobrasil!~asantioli@palpatine.privatedns.com] has quit [#ruby]
Gate [Gate!~gate@unaffiliated/gate] has joined #ruby
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
sethetter [sethetter!~sethetter@ip98-186-171-21.ks.ks.cox.net] has joined #ruby
mnajem [mnajem!~mnajem@120.141.193.100] has joined #ruby
dyer [dyer!~dyer@108-193-172-174.lightspeed.tukrga.sbcglobal.net] has joined #ruby
<sethetter> Anyone know why a property on my model instance would be populated when returned from the app, but nil when inspected from the rpsec test? -- http://pastie.org/3013162
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
rvmeier [rvmeier!~rodrigo@pc-136-172-241-201.cm.vtr.net] has joined #ruby
nitestarr [nitestarr!~cjolley@c-75-66-219-167.hsd1.tn.comcast.net] has joined #ruby
butat [butat!~nietos@10.131.22.95.dynamic.jazztel.es] has joined #ruby
nitestarr [nitestarr!~cjolley@c-75-66-219-167.hsd1.tn.comcast.net] has quit [#ruby]
McFisty [McFisty!~Medusa@c-24-245-36-47.hsd1.mn.comcast.net] has joined #ruby
apok [apok!~apok@c-107-3-149-167.hsd1.ca.comcast.net] has joined #ruby