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/
kerframil [kerframil!~kerframil@cpc2-enfi16-2-0-cust659.hari.cable.virginmedia.com] has joined #ruby
nerdy [nerdy!~textual@66-44-118-195.c3-0.grg-ubr1.lnh-grg.md.cable.rcn.com] has joined #ruby
Karmaon [Karmaon!~john@gateway/tor-sasl/karmaon] has joined #ruby
mikeric [mikeric!~mike@96.49.104.175] has joined #ruby
Mekkis [Mekkis!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
shadoi [shadoi!~Adium@gw.sfo.cloudscaling.com] has joined #ruby
jlogsdon [jlogsdon!~jlogsdon@99-101-69-28.lightspeed.tukrga.sbcglobal.net] has joined #ruby
mztriz [mztriz!~mztriz@nkugateway.nku.edu] has quit [#ruby]
r0bby [r0bby!~wakawaka@guifications/user/r0bby] has joined #ruby
statix [statix!~statix@rrcs-208-125-52-150.nys.biz.rr.com] has joined #ruby
wereHamster [wereHamster!~tomc@unaffiliated/werehamster] has joined #ruby
jlogsdon [jlogsdon!~jlogsdon@99-101-69-28.lightspeed.tukrga.sbcglobal.net] has joined #ruby
tuxaddicted [tuxaddicted!~tuxaddict@222.127.25.36] has joined #ruby
dagobah [dagobah!~dagobah@84.45.53.200] has joined #ruby
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
Ownatik [Ownatik!~yoyoyoy@8-118.tr.cgocable.ca] has joined #ruby
manizzle [manizzle!~manizzle@pcp046799pcs.pcv.reshall.calpoly.edu] has joined #ruby
yakko [yakko!~quassel@187.58.37.194] has joined #ruby
zulax [zulax!~radarwork@99-120-232-161.lightspeed.iplsin.sbcglobal.net] has joined #ruby
danibx [danibx!~danibx@187.104.236.95] has joined #ruby
ronniemlr [ronniemlr!~Ronnie@c-98-255-5-80.hsd1.ca.comcast.net] has joined #ruby
josefig [josefig!~joseph@unaffiliated/josefig] has joined #ruby
libertyprime [libertyprime!~libertypr@182.236.125.102] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
viuo [viuo!~maciek@staticline41439.toya.net.pl] has joined #ruby
Manhose [Manhose!~Manhose@188.251.92.26] has joined #ruby
bbttxu_ [bbttxu_!~adam@64.197.53.120] has joined #ruby
geekbri [geekbri!~geekbri@pool-108-49-79-18.bstnma.fios.verizon.net] has joined #ruby
t0mmyvyo [t0mmyvyo!~tommyvyo@c-68-83-3-164.hsd1.nj.comcast.net] has joined #ruby
VictorMartins [VictorMartins!~VictorMar@87.196.12.69] has joined #ruby
<yoklov>
How can i figure out if a string represents a number? "foo".to_i returns 0, which… doesn't help me
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
shadoi [shadoi!~Adium@gw.sfo.cloudscaling.com] has joined #ruby
libertyp1ime [libertyp1ime!~libertypr@182.236.125.102] has joined #ruby
mocker [mocker!~mocker@99-155-190-107.lightspeed.mssnks.sbcglobal.net] has joined #ruby
pu22l3r [pu22l3r!~pu22l3r@108-196-10-55.lightspeed.tukrga.sbcglobal.net] has joined #ruby
tmiller [tmiller!~tmiller@71-8-67-189.dhcp.leds.al.charter.com] has joined #ruby
pabloh [pabloh!~pablo@186.22.82.39] has joined #ruby
colint [colint!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
<banisterfiend>
yoklov: Integer("hello")
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
panthrodeb [panthrodeb!~panthrode@200.58.70.6] has joined #ruby
ctp_ [ctp_!~ctp@dslc-082-083-142-187.pools.arcor-ip.net] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
snip_it [snip_it!~snip_it@c-24-8-101-23.hsd1.co.comcast.net] has joined #ruby
<yoklov>
haha, thanks, I had found it though (also needed Float)
<banisterfiend>
yoklov: another way is: str.to_i.to_s == str
<yoklov>
oh that is clever
<banisterfiend>
yoklov: i think u secretly knew it though, deep in your heart
jhowarth [jhowarth!u5516@gateway/web/irccloud.com/x-rzuzknvdgwnezhpr] has joined #ruby
robert___ [robert___!~hellspawn@static-96-254-212-18.tampfl.fios.verizon.net] has joined #ruby
<yoklov>
haha, hardly. I like that by doing ``Integer(foo) rescue Float(foo)'' i can get it even if it's a floating point number too much to use ``s.to_i.to_s == s'' even if it is really quite clever
<yoklov>
or is that bad style?
p0y [p0y!~p0y@112.210.90.133] has joined #ruby
<banisterfiend>
yoklov: why not just do Float in the beginning
<banisterfiend>
Float(foo)
<yoklov>
hrm. you know, I hadn't really thought about it
<banisterfiend>
hehe
<banisterfiend>
cute
jcromartie [jcromartie!~jcromarti@c-69-140-238-182.hsd1.md.comcast.net] has joined #ruby
kevinbond [kevinbond!~kevinbond@112.50.204.68.cfl.res.rr.com] has joined #ruby
flashuni [flashuni!~textual@adsl-69-111-106-109.dsl.scrm01.pacbell.net] has joined #ruby
Mekkis [Mekkis!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
jwmann [jwmann!~Adium@modemcable242.110-201-24.mc.videotron.ca] has joined #ruby
cooper [cooper!~chatzilla@unaffiliated/furryfishy] has joined #ruby
yoklov [yoklov!~yoklov@24-177-5-183.dhcp.nwtn.ct.charter.com] has joined #ruby
dmn001_ [dmn001_!~dmn001@128.103.255.149.in-addr.arpa] has joined #ruby
wroathe [wroathe!~wroathe@173-17-249-11.client.mchsi.com] has joined #ruby
cggaurav [cggaurav!~Adium@117.193.2.103] has joined #ruby
mocker [mocker!~mocker@99-155-190-107.lightspeed.mssnks.sbcglobal.net] has joined #ruby
sj26 [sj26!sj26@sj26.com] has joined #ruby
dmn001_ [dmn001_!~dmn001@128.103.255.149.in-addr.arpa] has joined #ruby
Seuss [Seuss!~seuss@unaffiliated/seuss] has joined #ruby
nvez [nvez!~textual@bas1-montreal54-1279344164.dsl.bell.ca] has joined #ruby
nvez [nvez!~textual@unaffiliated/nvez] has joined #ruby
hostile [hostile!~root@unaffiliated/hostile] has joined #ruby
Dreamer3 [Dreamer3!~Dreamer3@74-134-33-91.dhcp.insightbb.com] has joined #ruby
mocker [mocker!~mocker@99-155-190-107.lightspeed.mssnks.sbcglobal.net] has joined #ruby
chimkan_ [chimkan_!~chimkan@206.248.173.91] has joined #ruby
chimkan_ [chimkan_!~chimkan@76-10-173-74.dsl.teksavvy.com] has joined #ruby
adman65 [adman65!~adman65@adsl-75-18-137-1.dsl.skt2ca.sbcglobal.net] has joined #ruby
tvw [tvw!~tv@e176008037.adsl.alicedsl.de] has joined #ruby
dax [dax!~dax@freenode/staff/dax] has joined #ruby
adman65 [adman65!~adman65@adsl-75-18-137-1.dsl.skt2ca.sbcglobal.net] has joined #ruby
dnyy [dnyy!~dnyy@c-98-237-138-38.hsd1.wa.comcast.net] has joined #ruby
Paoc_ [Paoc_!~paoc@pc-192-161-164-190.cm.vtr.net] has joined #ruby
Rishi [Rishi!~Rishi@ool-18e40d77.dyn.optonline.net] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-83-165.columbus.res.rr.com] has joined #ruby
cggaurav1 [cggaurav1!~Adium@117.193.12.48] has joined #ruby
<yoklov>
hey, so i haven't written ruby in a while, and just wrote some code i'm planning on making into a blog post. before i go ahead and make a huge fool of myself, would anybody be willing to tell me if i'm doing anything bad in terms of style (or in terms of anything else) in this code? https://gist.github.com/1764233
<swarley>
yoklov,
<swarley>
live 40
<swarley>
raise 'Unknown term type: #{term}'
<swarley>
you need ""
<swarley>
to use the #{}
<swarley>
line*
adman65 [adman65!~adman65@adsl-75-18-137-1.dsl.skt2ca.sbcglobal.net] has joined #ruby
swarley [swarley!~swarley@ip68-10-212-39.hr.hr.cox.net] has joined #ruby
kinderman [kinderman!~kinderman@c-98-223-146-252.hsd1.in.comcast.net] has joined #ruby
Dreamer3 [Dreamer3!~Dreamer3@74-134-33-91.dhcp.insightbb.com] has joined #ruby
yoklov [yoklov!~yoklov@24-177-5-183.dhcp.nwtn.ct.charter.com] has joined #ruby
Manhose [Manhose!~Manhose@188.251.92.26] has joined #ruby
manizzle [manizzle!~manizzle@pcp046799pcs.pcv.reshall.calpoly.edu] has joined #ruby
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
tuxaddicted [tuxaddicted!~tuxaddict@222.127.25.36] has joined #ruby
dhodgkin [dhodgkin!~dhodgkin@cpe-76-178-249-57.maine.res.rr.com] has joined #ruby
s0ber [s0ber!~s0ber@114-36-231-66.dynamic.hinet.net] has joined #ruby
straind` [straind`!~stupidper@204.111.191.116] has joined #ruby
Evixion [Evixion!Evixion@tn-67-236-8-104.dhcp.embarqhsd.net] has joined #ruby
csherin [csherin!~csherin@202.164.151.167] has joined #ruby
Creeture [Creeture!~ccosbygma@c-24-98-6-24.hsd1.ga.comcast.net] has joined #ruby
droptone [droptone!droptone@KimJongIllLooksAtThings.com] has joined #ruby
wookiehangover [wookiehangover!~wookiehan@c-67-161-138-118.hsd1.co.comcast.net] has joined #ruby
trapni [trapni!~trapni@h1969975.stratoserver.net] has joined #ruby
esmaxwill [esmaxwill!~esmaxwill@lopsa/member/esmaxwill] has joined #ruby
savant_ [savant_!~js@67.208.188.68] has joined #ruby
nlko [nlko!~user@li59-24.members.linode.com] has joined #ruby
duke^_ [duke^_!~aherttua@kekkonen.cs.hut.fi] has joined #ruby
Afal [Afal!~afal@molotov.compsoc.warwick.ac.uk] has joined #ruby
nacengineer [nacengineer!~dsoutha@165.219.88.72] has joined #ruby
oddraisin [oddraisin!~oddraisin@cactusgrove.net] has joined #ruby
asuka_ [asuka_!asuka@home.hadiko.uni-karlsruhe.de] has joined #ruby
nopper [nopper!~nopper@ns.patched.biz] has joined #ruby
altivec [altivec!~altivec@li196-93.members.linode.com] has joined #ruby
mrmist [mrmist!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
samuelkadolph [samuelkadolph!~samuelkad@unaffiliated/samuelkadolph] has joined #ruby
nicksmith [nicksmith!~nick@173.214.173.94] has joined #ruby
kivi [kivi!~joni@ec2-79-125-13-112.eu-west-1.compute.amazonaws.com] has joined #ruby
cynosure [cynosure!~cynosure@centrumnet.hu] has joined #ruby
JStoker [JStoker!jstoker@unaffiliated/jstoker] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
aef [aef!~root@neoschlageter.raxys.net] has joined #ruby
dhodgkin [dhodgkin!~dhodgkin@cpe-76-178-249-57.maine.res.rr.com] has joined #ruby
Dreamer3 [Dreamer3!~Dreamer3@74-134-33-91.dhcp.insightbb.com] has joined #ruby
techhelp [techhelp!~Dan@ip70-162-10-229.ph.ph.cox.net] has joined #ruby
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
esmaxwill [esmaxwill!~esmaxwill@63.218.227.187] has joined #ruby
mitchty [mitchty!~mitchty@ec2-50-19-41-37.compute-1.amazonaws.com] has joined #ruby
nicksmith [nicksmith!~nick@173.214.173.94] has joined #ruby
trapni [trapni!~trapni@h1969975.stratoserver.net] has joined #ruby
droptone [droptone!droptone@KimJongIllLooksAtThings.com] has joined #ruby
tuxaddicted [tuxaddicted!~tuxaddict@202.60.13.34] has joined #ruby
wroathe [wroathe!~wroathe@173-17-249-11.client.mchsi.com] has joined #ruby
Jedi_SCT1 [Jedi_SCT1!~j@67.215.88.77] has joined #ruby
shadoi [shadoi!~Adium@gw.sfo.cloudscaling.com] has joined #ruby
mrmist [mrmist!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
<Seuss>
yoklov: that's pretty though
<yoklov>
err, pretty though?
<Seuss>
yoklov: that's pretty, though
<swarley>
yoklov, line 40
<swarley>
raise 'Unknown term type: #{term}'
<swarley>
you need double quotation marks
<yoklov>
oh right, because of the interpolation
shadoi [shadoi!~Adium@gw.sfo.cloudscaling.com] has joined #ruby
wroathe [wroathe!~wroathe@173-17-249-11.client.mchsi.com] has joined #ruby
tuxaddicted [tuxaddicted!~tuxaddict@202.60.13.34] has joined #ruby
droptone [droptone!droptone@KimJongIllLooksAtThings.com] has joined #ruby
trapni [trapni!~trapni@h1969975.stratoserver.net] has joined #ruby
mitchty [mitchty!~mitchty@ec2-50-19-41-37.compute-1.amazonaws.com] has joined #ruby
esmaxwill [esmaxwill!~esmaxwill@63.218.227.187] has joined #ruby
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
dhodgkin [dhodgkin!~dhodgkin@cpe-76-178-249-57.maine.res.rr.com] has joined #ruby
aef [aef!~root@neoschlageter.raxys.net] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
JStoker [JStoker!jstoker@unaffiliated/jstoker] has joined #ruby
cynosure [cynosure!~cynosure@centrumnet.hu] has joined #ruby
kivi [kivi!~joni@ec2-79-125-13-112.eu-west-1.compute.amazonaws.com] has joined #ruby
samuelkadolph [samuelkadolph!~samuelkad@unaffiliated/samuelkadolph] has joined #ruby
altivec [altivec!~altivec@li196-93.members.linode.com] has joined #ruby
nopper [nopper!~nopper@ns.patched.biz] has joined #ruby
asuka_ [asuka_!asuka@home.hadiko.uni-karlsruhe.de] has joined #ruby
oddraisin [oddraisin!~oddraisin@cactusgrove.net] has joined #ruby
nacengineer [nacengineer!~dsoutha@165.219.88.72] has joined #ruby
Afal [Afal!~afal@molotov.compsoc.warwick.ac.uk] has joined #ruby
duke^_ [duke^_!~aherttua@kekkonen.cs.hut.fi] has joined #ruby
nlko [nlko!~user@li59-24.members.linode.com] has joined #ruby
savant_ [savant_!~js@67.208.188.68] has joined #ruby
wookiehangover [wookiehangover!~wookiehan@c-67-161-138-118.hsd1.co.comcast.net] has joined #ruby
Creeture [Creeture!~ccosbygma@c-24-98-6-24.hsd1.ga.comcast.net] has joined #ruby
csherin [csherin!~csherin@202.164.151.167] has joined #ruby
Evixion [Evixion!Evixion@tn-67-236-8-104.dhcp.embarqhsd.net] has joined #ruby
straind` [straind`!~stupidper@204.111.191.116] has joined #ruby
s0ber [s0ber!~s0ber@114-36-231-66.dynamic.hinet.net] has joined #ruby
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
manizzle [manizzle!~manizzle@pcp046799pcs.pcv.reshall.calpoly.edu] has joined #ruby
Manhose [Manhose!~Manhose@188.251.92.26] has joined #ruby
yoklov [yoklov!~yoklov@24-177-5-183.dhcp.nwtn.ct.charter.com] has joined #ruby
swarley [swarley!~swarley@ip68-10-212-39.hr.hr.cox.net] has joined #ruby
adman65 [adman65!~adman65@adsl-75-18-137-1.dsl.skt2ca.sbcglobal.net] has joined #ruby
cggaurav1 [cggaurav1!~Adium@117.193.12.48] has joined #ruby
dax [dax!~dax@freenode/staff/dax] has joined #ruby
tvw [tvw!~tv@e176008037.adsl.alicedsl.de] has joined #ruby
hostile [hostile!~root@unaffiliated/hostile] has joined #ruby
nvez [nvez!~textual@unaffiliated/nvez] has joined #ruby
Seuss [Seuss!~seuss@unaffiliated/seuss] has joined #ruby
dmn001_ [dmn001_!~dmn001@128.103.255.149.in-addr.arpa] has joined #ruby
sj26 [sj26!sj26@sj26.com] has joined #ruby
cooper [cooper!~chatzilla@unaffiliated/furryfishy] has joined #ruby
jwmann [jwmann!~Adium@modemcable242.110-201-24.mc.videotron.ca] has joined #ruby
Mekkis [Mekkis!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
kevinbond [kevinbond!~kevinbond@112.50.204.68.cfl.res.rr.com] has joined #ruby
jcromartie [jcromartie!~jcromarti@c-69-140-238-182.hsd1.md.comcast.net] has joined #ruby
ctp_ [ctp_!~ctp@dslc-082-083-142-187.pools.arcor-ip.net] has joined #ruby
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
colint [colint!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
pabloh [pabloh!~pablo@186.22.82.39] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
viuo [viuo!~maciek@staticline41439.toya.net.pl] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
libertyprime [libertyprime!~libertypr@182.236.125.102] has joined #ruby
ronniemlr [ronniemlr!~Ronnie@c-98-255-5-80.hsd1.ca.comcast.net] has joined #ruby
danibx [danibx!~danibx@187.104.236.95] has joined #ruby
zulax [zulax!~radarwork@99-120-232-161.lightspeed.iplsin.sbcglobal.net] has joined #ruby
yakko_drunk [yakko_drunk!~quassel@187.58.37.194] has joined #ruby
dagobah [dagobah!~dagobah@84.45.53.200] has joined #ruby
wereHamster [wereHamster!~tomc@unaffiliated/werehamster] has joined #ruby
statix [statix!~statix@rrcs-208-125-52-150.nys.biz.rr.com] has joined #ruby
r0bby [r0bby!~wakawaka@guifications/user/r0bby] has joined #ruby
Karmaon [Karmaon!~john@gateway/tor-sasl/karmaon] has joined #ruby
kerframil [kerframil!~kerframil@cpc2-enfi16-2-0-cust659.hari.cable.virginmedia.com] has joined #ruby
enherit [enherit!~enherit@70-36-236-228.dsl.static.sonic.net] has joined #ruby
nari [nari!~nari@p929507.totrnt01.ap.so-net.ne.jp] has joined #ruby
xxtjaxx [xxtjaxx!~xxtjaxx@kde/developer/marschke] has joined #ruby
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby
stepnem [stepnem!~stepnem@176.119.broadband10.iol.cz] has joined #ruby
tomzx [tomzx!~tomzx@dsl-129-247.aei.ca] has joined #ruby
moshee [moshee!~moshee@unaffiliated/moshee] has joined #ruby
hubub [hubub!~hubub@94-193-241-95.zone7.bethere.co.uk] has joined #ruby
Kambus [Kambus!~kambus@62-77-250-57.pool.invitel.hu] has joined #ruby
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.206.142] has joined #ruby
thecreators [thecreators!~rskagy@cpe-65-27-201-150.cinci.res.rr.com] has joined #ruby
speerfissure [speerfissure!~speer@68-184-98-44.dhcp.dgls.ga.charter.com] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
RichGuk [RichGuk!~RichGuk@carina.27smiles.com] has joined #ruby
Sigma00 [Sigma00!~freenode@thankyouforhelpingushelpyouhelpusall.net] has joined #ruby
Liothen [Liothen!~liothen@pdpc/supporter/professional/liothen] has joined #ruby
regedarek [regedarek!regedarek@gateway/shell/bshellz.net/x-stuqexvsdpbtylkf] has joined #ruby
mythmon [mythmon!~mythmon@osuosl/staff/Mythmon] has joined #ruby
Asher [Asher!~asher@98.158.127.150] has joined #ruby
MrGeneral [MrGeneral!~MrGeneral@ipv6.miguelsp.net] has joined #ruby
TheNumb [TheNumb!~TheNumb@unaffiliated/thenumb] has joined #ruby
jfelchner [jfelchner!~jfelchner@c-68-53-88-7.hsd1.tn.comcast.net] has joined #ruby
linopolus [linopolus!~linopolus@hektor.lnpls.de] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby
ElderFain [ElderFain!~ElderFain@c-98-207-237-171.hsd1.ca.comcast.net] has joined #ruby
Zolrath [Zolrath!~Zolrath@cpe-98-148-138-177.socal.res.rr.com] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@99.23.160.120] has joined #ruby
dkr [dkr!~dkr@67.132.255.16] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
vizzord [vizzord!~exn@195.49.206.202] has joined #ruby
sythe [sythe!~quassel@facade/leader] has joined #ruby
pdtpatrick [pdtpatrick!~pdtpatric@12.249.4.226] has joined #ruby
triptec [triptec!~frasse@217.68.38.160] has joined #ruby
ale` [ale`!~user@dynamic-adsl-84-221-179-209.clienti.tiscali.it] has joined #ruby
stephans [stephans!~stephans@209.66.114.6] has joined #ruby
Azure [Azure!~azt@cinch/fan/azure] has joined #ruby
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
glacius [glacius!~glac@remote.pba.edu] has joined #ruby
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby
nobitanobi [nobitanobi!~novito@173-164-143-45-SFBA.hfc.comcastbusiness.net] has joined #ruby
apok [apok!~apok@c-107-3-149-167.hsd1.ca.comcast.net] has joined #ruby
demet8 [demet8!~demet8@94.186.8.67.cfl.res.rr.com] has joined #ruby
tilde` [tilde`!~tilde@host237-193-dynamic.23-79-r.retail.telecomitalia.it] has joined #ruby
flagg0204 [flagg0204!~ianderson@sea02-v600-nat.marchex.com] has joined #ruby
DarthGandalf [DarthGandalf!~Vetinari@znc/developer/DarthGandalf] has joined #ruby
crescendo [crescendo!~eric@unaffiliated/crescendo] has joined #ruby
niko [niko!~niko@freenode/staff/ubuntu.member.niko] has joined #ruby
daglees [daglees!~belvedere@unaffiliated/daglees] has joined #ruby
cbuxton [cbuxton!~Adium@nat/partnerpedia/x-qaugoxrjtjleksjg] has joined #ruby
elliot_ [elliot_!~elliot@77.127.83.98] has joined #ruby
SegFaultAX|work [SegFaultAX|work!~mkbernard@173.228.45.162] has joined #ruby
jgrevich [jgrevich!~jgrevich@pdpc/supporter/active/jgrevich] has joined #ruby
maletor [maletor!~maletor@74.115.25.139] has joined #ruby
rfloriano [rfloriano!~rafael@177.16.57.172] has joined #ruby
musl [musl!~mike@li44-23.members.linode.com] has joined #ruby
philips [philips!~philips@shell.ifup.org] has joined #ruby
adeponte_ [adeponte_!~adeponte@67.110.253.162.ptr.us.xo.net] has joined #ruby
PaciFisT [PaciFisT!~PeaCE@CPE602ad06de6b3-CM602ad06de6b0.cpe.net.cable.rogers.com] has joined #ruby
froy [froy!~troy@manuel.dublan.net] has joined #ruby
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
Synthead [Synthead!~max@50-76-231-54-static.hfc.comcastbusiness.net] has joined #ruby
samsonjs [samsonjs!~samsonjs@184.66.154.246] has joined #ruby
alup_ [alup_!~alup@193.92.123.5] has joined #ruby
mjording [mjording!~mjording@107.57.47.99] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
zakwilson [zakwilson!~quassel@d171005.adsl.hansenet.de] has joined #ruby
jankly [jankly!~jankly@c-71-57-99-219.hsd1.in.comcast.net] has joined #ruby
alx- [alx-!~Alex@108.162.180.72] has joined #ruby
nyuszika7h [nyuszika7h!nyuszika7h@unaffiliated/nyuszika7h] has joined #ruby
mikepack [mikepack!~mikepack@c-174-51-77-22.hsd1.co.comcast.net] has joined #ruby
lkba [lkba!~AndChat@bpd57.neoplus.adsl.tpnet.pl] has joined #ruby
Targen [Targen!~iguana@190.39.181.108] has joined #ruby
axl__ [axl__!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
tnk1 [tnk1!~tnk@ip72-195-134-180.ri.ri.cox.net] has joined #ruby
Guest82706 [Guest82706!~ed@212.59.167.161] has joined #ruby
ceej [ceej!~anonymous@cpe-72-190-40-203.tx.res.rr.com] has joined #ruby
amacgregor_osx [amacgregor_osx!~amacgrego@CPE00222dcb0a53-CM00222dcb0a4f.cpe.net.cable.rogers.com] has joined #ruby
S2kx [S2kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby
TheDeadSerious [TheDeadSerious!u2116@gateway/web/irccloud.com/x-djjibuuedikgeuqv] has joined #ruby
raincole_ [raincole_!~raincole@140.112.239.113] has joined #ruby
jmeeuwen [jmeeuwen!~kanarip@white.kolabsys.com] has joined #ruby
cjs226 [cjs226!~cjs226@99-61-65-242.lightspeed.austtx.sbcglobal.net] has joined #ruby
JonnieCache [JonnieCache!~jonnie@87.252.60.35] has joined #ruby
pen [pen!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
bier [bier!~bier@p5085FEFB.dip.t-dialin.net] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
vdvluc [vdvluc!~vdvluc@lwm29c8.xs4all.nl] has joined #ruby
babinho [babinho!~babinho@babinho.net] has joined #ruby
TheTFEF [TheTFEF!JS@unaffiliated/thetfef] has joined #ruby
DefV [DefV!~Jan@node-hahmcop4no4a1ruk1w.ipv6.as30961.net] has joined #ruby
Emmanuel_Chanel [Emmanuel_Chanel!star2@L057107.ppp.dion.ne.jp] has joined #ruby
Mon_Ouie [Mon_Ouie!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby
Mchl [Mchl!~Mchl@h1881165560.rev.rootvps.pl] has joined #ruby
shevy [shevy!~shevy@91-113-90-64.adsl.highway.telekom.at] has joined #ruby
hemanth [hemanth!~hemanth@121.244.159.130] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
arnihermann [arnihermann!u1395@gateway/web/irccloud.com/x-hhsqjmedcpusiyyk] has joined #ruby
notbrent [notbrent!u5121@gateway/web/irccloud.com/x-lfmmoqfrebxhjhnw] has joined #ruby
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-mofawnkmsmvstnaw] has joined #ruby
relix [relix!u2146@gateway/web/irccloud.com/x-ekjtzdrmmnpowdpq] has joined #ruby
si14 [si14!u2619@gateway/web/irccloud.com/x-cifdlyrzlgpilfyr] has joined #ruby
patricksroberts [patricksroberts!u3278@gateway/web/irccloud.com/x-wixbzawzaebbgzqq] has joined #ruby
sei [sei!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby
blooberr [blooberr!u5163@gateway/web/irccloud.com/x-tsqtalzaqdngqwwx] has joined #ruby
rexamophone [rexamophone!u4239@gateway/web/irccloud.com/x-cyebkhhpwtzwaepl] has joined #ruby
newbold_cloud [newbold_cloud!u5179@gateway/web/irccloud.com/x-olftmsgbagdrsmvw] has joined #ruby
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-cuebtgdjqwtmuflf] has joined #ruby
paissad [paissad!~paissad@89-92-16-151.hfc.dyn.abo.bbox.fr] has joined #ruby
moeSeth [moeSeth!u1029@gateway/web/irccloud.com/x-equxnmorgxaghhsa] has joined #ruby
davidboy [davidboy!u3228@gateway/web/irccloud.com/x-iwzwctbonhxjtxpp] has joined #ruby
spanx [spanx!u1351@gateway/web/irccloud.com/x-xyunyupfuzpqltdt] has joined #ruby
Narcissus [Narcissus!~Narcissus@144.124.16.20] has joined #ruby
GSpotAssassin [GSpotAssassin!u4086@gateway/web/irccloud.com/x-nveinnmxpvwdxvdd] has joined #ruby
dkannan [dkannan!u480@gateway/web/irccloud.com/x-skdzmgywtbgmllok] has joined #ruby
nd__ [nd__!~nd@mnhm-4d00e4fe.pool.mediaWays.net] has joined #ruby
punkrawkR [punkrawkR!~freddiebo@h-9-122.a328.priv.bahnhof.se] has joined #ruby
thone_ [thone_!~thone@g226051222.adsl.alicedsl.de] has joined #ruby
mikeycgto [mikeycgto!~mikeycgto@pdpc/supporter/active/mikeycgto] has joined #ruby
koala_man [koala_man!vidar@unaffiliated/koala-man/x-2491903] has joined #ruby
cook1es_ [cook1es_!~chatzilla@c83-248-93-185.bredband.comhem.se] has joined #ruby
daed [daed!~daed@daed.org] has joined #ruby
decentrality [decentrality!~decentral@static-50-53-4-236.bvtn.or.frontiernet.net] has joined #ruby
sjang [sjang!~Adium@209.119.253.66] has joined #ruby
cmdlrn [cmdlrn!~puppy@125-239-187-192.jetstream.xtra.co.nz] has joined #ruby
cableray [cableray!~cableray@wl-dhcp159-213.Mines.EDU] has joined #ruby
vereteran [vereteran!~vereteran@static.88-198-170-117.clients.your-server.de] has joined #ruby
radic [radic!~radic@dslb-094-216-236-172.pools.arcor-ip.net] has joined #ruby
Kichael [Kichael!~Kichael@70-36-49-167.dyn.novuscom.net] has joined #ruby
sayakb [sayakb!sayakb@kde/sayakb] has joined #ruby
SegFaultAX [SegFaultAX!~SegFaultA@c-98-248-241-85.hsd1.ca.comcast.net] has joined #ruby
x0F_ [x0F_!~x0F@unaffiliated/x0f] has joined #ruby
award85 [award85!~itsame@unaffiliated/award85] has joined #ruby
Gekz [Gekz!~gekz@unaffiliated/gekz] has joined #ruby
namidark [namidark!~namidark@c-98-230-1-143.hsd1.fl.comcast.net] has joined #ruby
txa-ea [txa-ea!~txa-ea@S010600259c30d289.gv.shawcable.net] has joined #ruby
tobyo [tobyo!~tobyo@cpe-24-165-22-166.san.res.rr.com] has joined #ruby
kuzushi [kuzushi!~kuzushi@ip72-201-117-166.ph.ph.cox.net] has joined #ruby
omry_ [omry_!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
nathaniel_e [nathaniel_e!~nathaniel@199-83-220-28.PUBLIC.monkeybrains.net] has joined #ruby
tommyvyo [tommyvyo!~tommyvyo@38.123.129.115] has joined #ruby
DuoSRX [DuoSRX!~duosrx@2a01:e34:edd7:4330:3615:9eff:fe93:de4e] has joined #ruby
Russell^^ [Russell^^!~Russell^^@88.97.51.87] has joined #ruby
chrxn [chrxn!chrxn@69.4.233.32] has joined #ruby
mmercer [mmercer!~mmercer@ct-unlimited.com] has joined #ruby
Natch| [Natch|!~natch@178.73.217.91] has joined #ruby
demian`_ [demian`_!~demian_@80.149.203.160] has joined #ruby
at5l [at5l!~at5l@unaffiliated/at5l] has joined #ruby
mk_ [mk_!~mike@ks391369.kimsufi.com] has joined #ruby
Kiall [Kiall!~Kiall@kohana/developer/kiall] has joined #ruby
dnordstrom [dnordstrom!~dnordstro@h37059.upc-h.chello.nl] has joined #ruby
TheBeast [TheBeast!~andrei@unaffiliated/thebeast] has joined #ruby
felipe [felipe!~felipe@unaffiliated/felipe] has joined #ruby
fahadsadah [fahadsadah!fahad@unaffiliated/fahadsadah] has joined #ruby
SpitfireWP [SpitfireWP!spitfire@wikipedia/spitfire] has joined #ruby
dju [dju!~dju@fsf/member/dju] has joined #ruby
sernin [sernin!sernin@2600:3c03::f03c:91ff:fedf:a477] has joined #ruby
Utkarsh [Utkarsh!~quassel@li118-209.members.linode.com] has joined #ruby
RegEchse [RegEchse!~regechse@h1985974.stratoserver.net] has joined #ruby
Veejay [Veejay!~carcajou@opcode.org] has joined #ruby
y_matsu [y_matsu!~y_matsu@www22388u.sakura.ne.jp] has joined #ruby
Kn|t3 [Kn|t3!Kn|t3@nat/google/x-gpcroeormmewknpy] has joined #ruby
drPoggs [drPoggs!~pwh@chalkfarm.man1.poggs.net] has joined #ruby
Seppman [Seppman!~sepp@cpe90-146-41-35.liwest.at] has joined #ruby
mbreit [mbreit!~mbreit@devel.mobr.de] has joined #ruby
thorncp [thorncp!thorncp@2600:3c01::f03c:91ff:fe93:d182] has joined #ruby
erenrich [erenrich!erenrich@thalia.ugcs.caltech.edu] has joined #ruby
wang [wang!~wang@unaffiliated/wang] has joined #ruby
jeekl [jeekl!~crz@unaffiliated/jeekl] has joined #ruby
rtl [rtl!~rtl@monothorpe.com] has joined #ruby
warebec|hat [warebec|hat!~warebec@ell.io] has joined #ruby
wayne[mobile] [wayne[mobile]!~ldrap@li239-23.members.linode.com] has joined #ruby
koivula [koivula!~redbullra@mhth.tyrell.fi] has joined #ruby
QKO [QKO!~reaVer@83.98.249.142] has joined #ruby
sdferfx [sdferfx!~jeff@gateway/tor-sasl/sdferfx] has joined #ruby
jrist-afk [jrist-afk!~jrist@184-96-220-167.hlrn.qwest.net] has joined #ruby
soulcutter [soulcutter!~soulcutte@unaffiliated/soulcutter] has joined #ruby
Shamgar [Shamgar!~mbainter@adsl-99-152-204-167.dsl.rcsntx.sbcglobal.net] has joined #ruby
ben_alman [ben_alman!~cowboy@awesome.benalman.com] has joined #ruby
makkura [makkura!~makkura@gateway.wilsonmfg.com] has joined #ruby
nricciar_ [nricciar_!~nricciar@adsl-72-152-130-188.asm.bellsouth.net] has joined #ruby
crodas [crodas!~crodas@git.crodas.org] has joined #ruby
Bish_ [Bish_!~Bish@meiserver.de] has joined #ruby
Guest48690 [Guest48690!~adml@pudge.ithought.org] has joined #ruby
preller_ [preller_!~preller@tapir.feralhosting.com] has joined #ruby
salvador [salvador!~salvador@80.169.246.204] has joined #ruby
bluehavana [bluehavana!u2820@gateway/web/irccloud.com/x-bhbpigfxjrogmutd] has joined #ruby
pcboy_ [pcboy_!~pcboy@y233083.dynamic.ppp.asahi-net.or.jp] has joined #ruby
iaj [iaj!~iaj@static.136.47.47.78.clients.your-server.de] has joined #ruby
MChizhov [MChizhov!~M@fw-nat.sovintel.net] has joined #ruby
medik [medik!~pl0x@host-95-199-22-209.mobileonline.telia.com] has joined #ruby
xpot-mobile [xpot-mobile!~xpot@166-70-100-198.ip.xmission.com] has joined #ruby
mephux [mephux!~mephux@unaffiliated/mephux] has joined #ruby
wasmith [wasmith!~snow@rutherford.wasm.me] has joined #ruby
examancer [examancer!~carl@ip68-107-232-165.om.om.cox.net] has joined #ruby
Aaaarg [Aaaarg!~Arthur@121-74-44-163.telstraclear.net] has joined #ruby
kstephens [kstephens!~kstephens@173-15-46-105-Illinois.hfc.comcastbusiness.net] has joined #ruby
orospakr [orospakr!~orospakr@mobotropolis.orospakr.ca] has joined #ruby
moted [moted!~ryan@c-98-246-106-150.hsd1.or.comcast.net] has joined #ruby
krisfremen [krisfremen!~Kris@fh233n1-hdn-a12.ias.bredband.telia.com] has joined #ruby
Hellojer_ [Hellojer_!~Hellojere@89.7.90.160] has joined #ruby
vandemar [vandemar!vicar@2001:470:1f10:56b::4] has joined #ruby
dv_ [dv_!~quassel@chello080108009040.14.11.vie.surfer.at] has joined #ruby
dross [dross!~dross@unaffiliated/dross] has joined #ruby
Azure|netbook [Azure|netbook!~azt@cinch/fan/azure] has joined #ruby
crazed [crazed!~crazed@unaffiliated/cr4z3d] has joined #ruby
shlevy [shlevy!~play@cpe-74-74-172-242.rochester.res.rr.com] has joined #ruby
telling [telling!ident42@unaffiliated/telling] has joined #ruby
lavaman [lavaman!~lavaman@c-67-190-36-212.hsd1.co.comcast.net] has joined #ruby
tommylom1ykins [tommylom1ykins!~tg551@milan.cs.york.ac.uk] has joined #ruby
somnium [somnium!~somnium@77.53.201.199] has joined #ruby
mtkd [mtkd!znc@209-20-90-74.slicehost.net] has joined #ruby
Azure|SSH [Azure|SSH!~Azure@cinch/fan/azure] has joined #ruby
Joelio [Joelio!~Joel@m.etrono.me] has joined #ruby
xoebus [xoebus!~xoebus@vortis.xen.tardis.ed.ac.uk] has joined #ruby
bgupta [bgupta!~bgupta@207-237-248-198.c3-0.80w-ubr1.nyr-80w.ny.cable.rcn.com] has joined #ruby
PhilK [PhilK!~PhilK@108-94-166-51.lightspeed.sntcca.sbcglobal.net] has joined #ruby
Asebolka [Asebolka!~Asebolka@c-174-59-146-170.hsd1.pa.comcast.net] has joined #ruby
MissionCritical [MissionCritical!~MissionCr@unaffiliated/missioncritical] has joined #ruby
lupine_85 [lupine_85!~lupine_85@unaffiliated/lupine-85/x-7392152] has joined #ruby
`mx [`mx!~mikey@zoidberg.ghettowebhosting.com] has joined #ruby
ichilton [ichilton!~ichilton@zeniv.linux.org.uk] has joined #ruby
frontendloader [frontendloader!~r@207-118-138-238.dyn.centurytel.net] has joined #ruby
bengl [bengl!~bengl@174-143-175-143.static.cloud-ips.com] has joined #ruby
sejo [sejo!~SeJo@fosdem/staff/sejo] has joined #ruby
affix [affix!~affix@fedora/Affix] has joined #ruby
TheMoonMaster [TheMoonMaster!~TMM@reddit/operator/themoonmaster] has joined #ruby
zmoazeni [zmoazeni!~zmoazeni@50-57-89-129.static.cloud-ips.com] has joined #ruby
__class__ [__class__!~class@99-105-56-217.lightspeed.sntcca.sbcglobal.net] has joined #ruby
Okasu [Okasu!~okasu@s094127069016.m.truevds.ru] has joined #ruby
yeltzooo7 [yeltzooo7!~yeltzooo@ec2-50-18-131-205.us-west-1.compute.amazonaws.com] has joined #ruby
majoh [majoh!~Sponge@antiklimax.se] has joined #ruby
anonymou1e89 [anonymou1e89!~brian@li59-106.members.linode.com] has joined #ruby
nick_h_ [nick_h_!~nick@li46-53.members.linode.com] has joined #ruby
karinsof1a [karinsof1a!~s@signo.lha.sgsnet.se] has joined #ruby
mksm_ [mksm_!~ramorim@li168-21.members.linode.com] has joined #ruby
alanp_ [alanp_!~quassel@206-248-152-52.dsl.teksavvy.com] has joined #ruby
tdelam_ [tdelam_!~trevor@tdelam.com] has joined #ruby
Hunner [Hunner!hunner@puppetlabs/ps/Hunner] has joined #ruby
balgarath_ [balgarath_!~quassel@208.86.215.38] has joined #ruby
Koshian___ [Koshian___!~koshian@lakshmi.foxking.org] has joined #ruby
klaas [klaas!klaas@simply.kla.as] has joined #ruby
Jelco_ [Jelco_!~jelco@portal42.net] has joined #ruby
Derander_ [Derander_!~Derander@andrew.xen.prgmr.com] has joined #ruby
cola_zero [cola_zero!~cola_zero@www5054u.sakura.ne.jp] has joined #ruby
_root_ [_root_!~Scalable@li252-14.members.linode.com] has joined #ruby
Shrink [Shrink!sgupta@redhat/shrink] has joined #ruby
deadbea7 [deadbea7!~ec2-user@ec2-67-202-17-85.compute-1.amazonaws.com] has joined #ruby
jakky [jakky!jokk@motherfucking.ddosking.org] has joined #ruby
eko [eko!~eko@unaffiliated/eko] has joined #ruby
Know1edge [Know1edge!~Know1edge@unaffiliated/know1edge] has joined #ruby
gentz [gentz!ilab@ancient.webfoundation.net] has joined #ruby
Eiam [Eiam!~that@unaffiliated/eiam] has joined #ruby
Mx|away [Mx|away!~fox@178-26-92-180-dynip.superkabel.de] has joined #ruby
nwonknu [nwonknu!nwonknu@gateway/shell/anapnea.net/x-jqaxpzchtwkrhqan] has joined #ruby
er1c_ [er1c_!~eric@irontusk.net] has joined #ruby
joast [joast!~rick@98.145.65.117] has joined #ruby
hackeron [hackeron!~hackeron@gentoo/user/hackeron] has joined #ruby
thoughtfusion [thoughtfusion!~thoughtfu@pool-96-237-53-171.bstnma.fios.verizon.net] has joined #ruby
rtdv [rtdv!~rtdv@ec2-107-21-119-119.compute-1.amazonaws.com] has joined #ruby
ninor [ninor!~ninor@unaffiliated/ninor] has joined #ruby
milkpost [milkpost!~dec@192.133.84.6] has joined #ruby
d-snp [d-snp!~d-snp@smurfer.student.utwente.nl] has joined #ruby
moos3 [moos3!~rgenthner@cpe-72-224-121-41.maine.res.rr.com] has joined #ruby
Guest22538 [Guest22538!~kaneda@5adcef2c.bb.sky.com] has joined #ruby
KillerFox [KillerFox!~rn@home.protection-fault.ch] has joined #ruby
Schmidt [Schmidt!lsc@nobelium.se] has joined #ruby
linduxed [linduxed!~linduxed@194-14-0-85.serioustubes.org] has joined #ruby
laen_ [laen_!neal@mail.skylab.org] has joined #ruby
pseud0cod3r [pseud0cod3r!pseudocode@gateway/shell/anapnea.net/x-epkgyuvtrsnguvbv] has joined #ruby
__main__ [__main__!~main@adsl-99-173-15-158.dsl.pltn13.sbcglobal.net] has joined #ruby
psino [psino!~psino@unaffiliated/psino] has joined #ruby
_axx [_axx!~x@apimp.de] has joined #ruby
Confiscative [Confiscative!~con@vps1031.directvps.nl] has joined #ruby
ewag [ewag!~ewagner@216.177.133.121] has joined #ruby
hosiawak [hosiawak!~hosiawak@hogo.pl] has joined #ruby
denysonique__ [denysonique__!u484@gateway/web/irccloud.com/x-orpfwiphxvxrcvod] has joined #ruby
tshirtman [tshirtman!~gaby@unaffiliated/tshirtman] has joined #ruby
parus [parus!parus@gateway/shell/anapnea.net/x-ltavtcpfxtqwwojt] has joined #ruby
pigoz [pigoz!~pigoz@94.242.209.206] has joined #ruby
thebastl [thebastl!bastl@ve621924175.ihrserver.de] has joined #ruby
gregorg [gregorg!~Greg@unaffiliated/gregorg] has joined #ruby
Amorsen [Amorsen!~Amorsen@94.127.50.7] has joined #ruby
GoogleGuy [GoogleGuy!~ChromeOS@unaffiliated/googleguy] has joined #ruby
duey [duey!~duey@thecakeisalie.co] has joined #ruby
DeeJayTwo [DeeJayTwo!~deejay2@office.abi.ca] has joined #ruby
hyperboreean [hyperboreean!~none@unaffiliated/hyperboreean] has joined #ruby
ohcibi [ohcibi!~quassel@thisdone.de] has joined #ruby
starburst [starburst!~starburst@ec2-107-22-125-163.compute-1.amazonaws.com] has joined #ruby
ccooke [ccooke!~ccooke@spirit.gkhs.net] has joined #ruby
Boohbah [Boohbah!boohbah@gateway/shell/anapnea.net/x-gwnkpxpbfwtvzgbh] has joined #ruby
aces23up [aces23up!~aces1up@wsip-70-166-88-247.sd.sd.cox.net] has joined #ruby
xsdg [xsdg!~xsdg@SIPB-VM-99.MIT.EDU] has joined #ruby
lae [lae!~musee@unaffiliated/musee] has joined #ruby
November [November!november@osiris.parodius.com] has joined #ruby
mahlon_ [mahlon_!mahlon@martini.nu] has joined #ruby
Freijo [Freijo!hartin@lehtori.cc.tut.fi] has joined #ruby
snapcase [snapcase!snapcase@shokushuzeme.me] has joined #ruby
caveat- [caveat-!hoax@gateway/shell/bshellz.net/x-ljgexiwolzedrcmp] has joined #ruby
eregon [eregon!~eregon@eregon.me] has joined #ruby
TommyBlue [TommyBlue!~tommyblue@galois.linusse.org] has joined #ruby
CK_afk [CK_afk!~ckruse@painkiller.defunced.de] has joined #ruby
Espen-_- [Espen-_-!Espen@sjarken.org] has joined #ruby
pkondzior [pkondzior!u768@gateway/web/irccloud.com/x-fhajdxmrdikafqci] has joined #ruby
shaatar [shaatar!u648@gateway/web/irccloud.com/x-vdsjuybvrrjuscpj] has joined #ruby
MoMo [MoMo!u1590@gateway/web/irccloud.com/x-zvrtvhbfbeuebxaw] has joined #ruby
Tasser [Tasser!~freak@subtle/contributor/Tass] has joined #ruby
FlyingFoX [FlyingFoX!~quassel@sanktwendel.weh.RWTH-Aachen.DE] has joined #ruby
tomaw [tomaw!tom@freenode/staff/tomaw] has joined #ruby
nlew [nlew!~nlew@li73-104.members.linode.com] has joined #ruby
joschi [joschi!~joschi@zuse.schalanda.name] has joined #ruby
deavid [deavid!~quassel@ns311218.ovh.net] has joined #ruby
dominikh [dominikh!~dominikh@cinch/developer/dominikh] has joined #ruby
marienz [marienz!marienz@freenode/staff/marienz] has joined #ruby
momo- [momo-!~momo@2.60.138.210.bn.2iij.net] has joined #ruby
patronus [patronus!~or@geekon.net] has joined #ruby
fred [fred!~fred@slamd64/fred] has joined #ruby
Gate [Gate!~gate@unaffiliated/gate] has joined #ruby
KitsuneDrag0n [KitsuneDrag0n!~hats@unaffiliated/kitsunedrag0n] has joined #ruby
ChloeD [ChloeD!~chloe@88-190-26-89.rev.dedibox.fr] has joined #ruby
andman [andman!~andman@minorshadows.net] has joined #ruby
bob_f [bob_f!~bob@unaffiliated/bob-f/x-6028553] has joined #ruby
nimred [nimred!~nimred@unaffiliated/nahra] has joined #ruby
bburhans [bburhans!bburhans@freenode/staff/bburhans] has joined #ruby
companion [companion!~companion@bnc.alternize.nl] has joined #ruby
samxor [samxor!simoirc@206.217.201.48] has joined #ruby
theoros [theoros!~user@unaffiliated/theoros] has joined #ruby
matti [matti!matti@madwifi/support/matti] has joined #ruby
eeadc [eeadc!fritz@2a01:4f8:101:2a3:0:bc28:b2a8:4] has joined #ruby
andyl [andyl!~andy@c-98-207-232-251.hsd1.ca.comcast.net] has joined #ruby
ali_h [ali_h!staff@interflective.com] has joined #ruby
mpereira [mpereira!~mpereira@ec2-50-16-8-218.compute-1.amazonaws.com] has joined #ruby
jmcphers [jmcphers!~jmcphers@61.14.141.35] has joined #ruby
eighty4 [eighty4!~eighty4@unaffiliated/eighty4] has joined #ruby
Gm4n [Gm4n!~Gm4n@unaffiliated/gm4n] has joined #ruby
SeanTAllen [SeanTAllen!u4855@gateway/web/irccloud.com/x-jirercroiwzzkbec] has joined #ruby
dubellz [dubellz!~tdubellz@freenode/staff/tdubellz] has joined #ruby
mxweas|away [mxweas|away!~max@c-24-7-45-147.hsd1.ca.comcast.net] has joined #ruby
genivf [genivf!~museun@c-98-252-146-102.hsd1.ga.comcast.net] has joined #ruby
oddmunds [oddmunds!~oddmunds@s21-04214.dsl.no.powertech.net] has joined #ruby
jsaak [jsaak!~jsaak@catv-89-134-200-70.catv.broadband.hu] has joined #ruby
msch [msch!~msch@static.74.108.46.78.clients.your-server.de] has joined #ruby
hSATAC [hSATAC!~cat@221.169.252.14] has joined #ruby
conntrack [conntrack!~tor@pdpc/supporter/professional/conntrack] has joined #ruby
rgs_ [rgs_!~rgs@serendipity.sugarlabs.org] has joined #ruby
wataken44 [wataken44!~wataken44@FL1-122-133-57-198.kng.mesh.ad.jp] has joined #ruby
nate_h [nate_h!~husimon@c73-208.rim.net] has joined #ruby
end3r- [end3r-!~ender@ec2-107-22-14-168.compute-1.amazonaws.com] has joined #ruby
idoru [idoru!idoru@freenode/utility-bot/ex-server/idoru] has joined #ruby
tomsthumb_ [tomsthumb_!~byron@rrcs-71-41-17-216.sw.biz.rr.com] has joined #ruby
benwoody [benwoody!~ben@ln.benwoodall.com] has joined #ruby
siksia [siksia!~siksia@209.119.255.4] has joined #ruby
vitoravelino [vitoravelino!~vitor@unaffiliated/vtr] has joined #ruby
madhatter [madhatter!~madhatter@unaffiliated/madhatter] has joined #ruby
Jb_ [Jb_!~jb@ks364797.kimsufi.com] has joined #ruby
mlue [mlue!~mlue@unaffiliated/mlue] has joined #ruby
tdmackey [tdmackey!~tdmackey@booleanhaiku.com] has joined #ruby
ozzloy [ozzloy!~ozzloy@unaffiliated/ozzloy] has joined #ruby
yellow5 [yellow5!~yellow5@levicole.xen.prgmr.com] has joined #ruby
tomb- [tomb-!~tomb@hubot.tomb.io] has joined #ruby
sebastian_pl [sebastian_pl!terror@nienawisc.org] has joined #ruby
nebiros [nebiros!~neb@unaffiliated/nebiros] has joined #ruby
ping-pong [ping-pong!~qwerty@212-30-218-200.static.simnet.is] has joined #ruby
peterhil [peterhil!~peterhil@xdsl-77-86-196-131.nebulazone.fi] has joined #ruby
any-key [any-key!~eric_wood@tacs.cs.tamu.edu] has joined #ruby
Jck_True [Jck_True!furyfire@unaffiliated/jcktrue/x-390518] has joined #ruby
hechien [hechien!~hechien@li329-125.members.linode.com] has joined #ruby
pavelz [pavelz!~pavel@li353-150.members.linode.com] has joined #ruby
David_Miller [David_Miller!~dave@pretender.frop.net] has joined #ruby
doomviking [doomviking!~mluntzel@kopitar.atomicdoom.com] has joined #ruby
yugui_zzz [yugui_zzz!~yugui@yugui.jp] has joined #ruby
ReinH [ReinH!~reinh@li14-106.members.linode.com] has joined #ruby
wicketn00b [wicketn00b!~root@12.182.105.7] has joined #ruby
phrame [phrame!~phrame@linode.phra.me] has joined #ruby
xea [xea!~iris@icts.hu] has joined #ruby
conceal_rs [conceal_rs!~conceal_r@www9237u.sakura.ne.jp] has joined #ruby
Quadlex [Quadlex!~quadlex@li23-6.members.linode.com] has joined #ruby
SecretAgent [SecretAgent!~sa@diablo.elhefe.org] has joined #ruby
keyvan [keyvan!~keyvan@li106-75.members.linode.com] has joined #ruby
Radar [Radar!~Radar@li96-112.members.linode.com] has joined #ruby
jmaister [jmaister!~jmaister@unaffiliated/jmaister] has joined #ruby
vbernetr [vbernetr!~vbernetr@vbr.nexen.net] has joined #ruby
jayne [jayne!~jayne@freenode/staff/jayne] has joined #ruby
ampex [ampex!~sterling@short.circu.it] has joined #ruby
jeedey_ [jeedey_!~quassel@109.169.47.96] has joined #ruby
johnduhart [johnduhart!~quassel@mediawiki/johnduhart] has joined #ruby
anekos [anekos!~anekos@mail.anekos.info] has joined #ruby
jshsu [jshsu!~jshsu@li248-176.members.linode.com] has joined #ruby
zaargy [zaargy!~zaargy@adriana.stillidream.org] has joined #ruby
tessi [tessi!~tessi@pdpc/supporter/student/tessi] has joined #ruby
ereslibre [ereslibre!~rafael@kde/ereslibre] has joined #ruby
leex [leex!~leex@tvag.tvk.RWTH-Aachen.DE] has joined #ruby
jbc22 [jbc22!~jbc22@li299-64.members.linode.com] has joined #ruby
zigidias [zigidias!~zigidias@unaffiliated/zigidias] has joined #ruby
Rious [Rious!~Rious@ec2-50-17-240-121.compute-1.amazonaws.com] has joined #ruby
joey__ [joey__!~joey@hive.gngsta.com] has joined #ruby
__null [__null!null@dont.protect.your.ass.iam.not.gay.amaters.com.ar] has joined #ruby
jhulten [jhulten!~jhulten@li219-193.members.linode.com] has joined #ruby
swistak35 [swistak35!~rlasocha@s21.linuxpl.com] has joined #ruby
misfitsu [misfitsu!~halliburt@static-173-78-25-169.tampfl.fios.verizon.net] has joined #ruby
Kovensky [Kovensky!kovensky@abraxo.bluebottle.net.au] has joined #ruby
Guest55437 [Guest55437!~d_roge@97.107.137.179] has joined #ruby
chilversc_ [chilversc_!~chris@about/csharp/regular/KeeperOfTheSoul] has joined #ruby
sinuc [sinuc!~sinuc@unaffiliated/sinuc] has joined #ruby
nuba [nuba!~nuba@pauleira.com] has joined #ruby
elektronaut [elektronaut!~elektrona@manualdesign.no] has joined #ruby
destructure [destructure!~mu@couchdb/user/destructure] has joined #ruby
Caius [Caius!~Caius@about/apple/macbookpro/Caius] has joined #ruby
lobak [lobak!~quack@202.190.85.36] has joined #ruby
tomku [tomku!~tom_irc@24-196-153-152.dhcp.fdul.wi.charter.com] has joined #ruby
mattp_ [mattp_!~mattp_@intma.in] has joined #ruby
Nowaker [Nowaker!~nowaker@geozone.pl] has joined #ruby
spectre^ [spectre^!~spectre@sticky.clownjuice.com] has joined #ruby
epitron [epitron!~epitron@unaffiliated/epitron] has joined #ruby
brian- [brian-!brian@xdcc.org] has joined #ruby
G [G!njones@torea.jnet.net.nz] has joined #ruby
CoverSlide [CoverSlide!~richard@216.2.249.50] has joined #ruby
ex0a [ex0a!~high@unaffiliated/ex0a] has joined #ruby
Drakevr [Drakevr!~null@unaffiliated/drakevr] has joined #ruby
oxez [oxez!~teppei@oxez.net] has joined #ruby
ada2358 [ada2358!~ada2358@login.ccs.neu.edu] has joined #ruby
sixteneighty [sixteneighty!~buk@eridanus.uberspace.de] has joined #ruby
drizz [drizz!~drizz@pyre.nodes.cycle.io] has joined #ruby
kaktus [kaktus!~kaktus@tyr.rstack.cc] has joined #ruby
BBonibeard [BBonibeard!~BBonifiel@li107-227.members.linode.com] has joined #ruby
rcs [rcs!rcs@malkuth.secondcircle.org] has joined #ruby
smgt [smgt!~simon@out.flattr.net] has joined #ruby
ged [ged!~ged@deveiate.org] has joined #ruby
WanderingGlitch [WanderingGlitch!~Wandering@unaffiliated/wanderingglitch] has joined #ruby
Apocalypse [Apocalypse!~Apocalyps@unaffiliated/apocalypse] has joined #ruby
SirFunk [SirFunk!SirFunk@2600:3c03::f03c:91ff:fe93:11b3] has joined #ruby
thomasfedb [thomasfedb!~thomasfed@2607:f358:1:fed5:11:0:1399:1] has joined #ruby
saidin [saidin!u5324@gateway/web/irccloud.com/x-vqyzzfqpnxggsjvy] has joined #ruby
kloeri [kloeri!~kloeri@freenode/staff/exherbo.kloeri] has joined #ruby
elliottcable [elliottcable!~me@ell.io] has joined #ruby
xiaotian_ [xiaotian_!~xiaotian@li330-90.members.linode.com] has joined #ruby
matled [matled!~matled@85.131.246.184] has joined #ruby
ping_pong [ping_pong!~qwerty@212-30-218-200.static.simnet.is] has joined #ruby
zz_chrismcg [zz_chrismcg!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby
andynu [andynu!~andynu@ich.thy.om.orpho.us] has joined #ruby
pradeepto [pradeepto!~quassel@kde/pradeepto] has joined #ruby
Elfix_113 [Elfix_113!~elfix@wikipedia/pdpc.21for7.elfix] has joined #ruby
epochwolf|vps [epochwolf|vps!~epoch@unaffiliated/epochwolf] has joined #ruby
alienvenom [alienvenom!alienvenom@50-76-43-138-ip-static.hfc.comcastbusiness.net] has joined #ruby
milkshakes [milkshakes!narf@milkshakes.org] has joined #ruby
jmccune [jmccune!~jeff@puppetlabs/ps/jmccune] has joined #ruby
dfr|work [dfr|work!dfr|work@nat/google/x-meiokmbenomnikyo] has joined #ruby
danheberden [danheberden!~danheberd@li225-35.members.linode.com] has joined #ruby
cespare [cespare!~cespare@eng.nat.mtv.ooyala.com] has joined #ruby
UdontKnow [UdontKnow!~evaldo@freenode/staff-emeritus/udontknow] has joined #ruby
<yoklov>
hm.
<yoklov>
that should error.
fayimora [fayimora!~fayimora@95.175.159.53] has joined #ruby
<Seuss>
yoklov: do you have a book?
ryanf [ryanf!~revfitz@50.0.160.40] has joined #ruby
<yoklov>
no
<Seuss>
where's your blog
<Seuss>
oh ok
<Seuss>
do you want one?
<Seuss>
well if you already know ruby/some other lang, it's probably unnecessary
Willyum [Willyum!~willyum@ool-18ba4d58.dyn.optonline.net] has joined #ruby
<yoklov>
yeah i know a few programming languages
<yoklov>
none well thouhg :p
<yoklov>
it really didn't give you an error with "- 5 2"
<yoklov>
?
<Seuss>
nope.
<yoklov>
bizarre, were there things on the stack before that?
<Seuss>
yep.
<yoklov>
oh that makes sense
mitchty [mitchty!~mitchty@ec2-50-19-41-37.compute-1.amazonaws.com] has joined #ruby
<yoklov>
what you said before is expected behavior then
<Seuss>
oh okay.
Tick-Tock [Tick-Tock!~Tick-Tock@2607:f358:1:fed5:22:0:b683:4295] has joined #ruby
r0bby [r0bby!~wakawaka@guifications/user/r0bby] has joined #ruby
notjohn [notjohn!~john@cpe-174-103-133-37.cinci.res.rr.com] has joined #ruby
<yoklov>
i intentionally didn't want to use any reflective/metaprogramming
<yoklov>
… though wow, that is _much_ shorter.
<swarley>
yeah i cant read that one well lol
* yoklov
is shown up
<fukawi2>
swarley, to execute gems (ie, "rhc-" gems for RedHat OpenShift)... but I've just upgraded to debian's testing version of rubygems and it seems they've moved executables to /usr/local/bin :)
<heftig>
1 -2 abs /
samsonjs [samsonjs!~samsonjs@184.66.154.246] has joined #ruby
<swarley>
oh okay
jeff_ [jeff_!~fluxx@50-0-80-160.dsl.static.sonic.net] has joined #ruby
<swarley>
im not sure then, it wouldnt hurt to try
samsonjs [samsonjs!~samsonjs@184.66.154.246] has joined #ruby
savage- [savage-!~savage_@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
samsonjs_ [samsonjs_!~samsonjs@184.66.154.246] has joined #ruby
kerframil_ [kerframil_!~kerframil@cpc2-enfi16-2-0-cust659.hari.cable.virginmedia.com] has joined #ruby
<yoklov>
heftig: input: "3 4" response: "3.0 4.0" input: "+" response: "rpn_short.rb:8:in `rescue in block in <main>': undefined method `+' for nil:NilClass (NoMethodError)"
<heftig>
yoklov: i used floats instead of integers
<yoklov>
mine uses floats
nfluxx [nfluxx!~fluxx@50-0-80-160.dsl.static.sonic.net] has joined #ruby
<yoklov>
also
kerframil [kerframil!~kerframil@gentoo/user/kerframil] has joined #ruby
samsonjs [samsonjs!~samsonjs@184.66.154.246] has joined #ruby
gigamonkey [gigamonkey!~user@adsl-99-24-219-139.dsl.pltn13.sbcglobal.net] has joined #ruby
<yoklov>
either way, mine's general enough that it wouldn't take much work to extend to be an interpreter for a toy stack based language, so i'm going to keep it the way it is haha (gives me future hobby programming/blogging material)
samsonjs_ [samsonjs_!~samsonjs@184.66.154.246] has joined #ruby
danibx [danibx!~danibx@187.104.236.95] has joined #ruby
ZachBeta [ZachBeta!~ZachBeta@ip68-224-204-228.ri.ri.cox.net] has joined #ruby
nfluxx [nfluxx!~fluxx@50-0-80-160.dsl.static.sonic.net] has joined #ruby
nfluxx [nfluxx!~fluxx@50-0-80-160.dsl.static.sonic.net] has joined #ruby
<yoklov>
really though, yours is much more impressive. i've never been able to write code that concisely.
tvw [tvw!~tv@e176008037.adsl.alicedsl.de] has joined #ruby
<swarley>
in your defense neither have I
<swarley>
but then again, who am i to say im a good programmer
fukawi2 [fukawi2!~fukawi2@archserver/trusteduser/fukawi2] has quit ["kthxbai"]
samsonjs [samsonjs!~samsonjs@184.66.154.246] has joined #ruby
<hostile>
To what do you two refer?
sernin [sernin!sernin@2600:3c03::f03c:91ff:fedf:a477] has joined #ruby
cggaurav [cggaurav!~Adium@117.193.12.48] has joined #ruby
<Boohbah>
how do i make the first and second lines prettier? :)
gigamonkey [gigamonkey!~user@adsl-99-24-219-139.dsl.pltn13.sbcglobal.net] has joined #ruby
banister_ [banister_!~baniseter@115.189.61.78] has joined #ruby
twock [twock!~twock@rrcs-24-227-222-61.sw.biz.rr.com] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@c-24-23-252-19.hsd1.ca.comcast.net] has joined #ruby
<Boohbah>
i want to take a command line argument for the number of times to iterate, or default to 16
nvez [nvez!~textual@bas1-montreal54-1279344164.dsl.bell.ca] has joined #ruby
nvez [nvez!~textual@unaffiliated/nvez] has joined #ruby
colint_ [colint_!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
panthrodeb [panthrodeb!~panthrode@200.58.70.5] has joined #ruby
<swarley>
Boohbah, you could use if(t == 0) then t = 16 end for line 2 i suppose
<swarley>
as far as the first line i dont think you could make it any different
nfluxx [nfluxx!~fluxx@50.0.141.156] has joined #ruby
taipres [taipres!~taipres@2001:5c0:1400:a::ab] has joined #ruby
<Creeture>
line 2 could also just be t=16 if t=0
<Creeture>
== of course on the last
<banister_>
Creeture: or: t=16 if t.zero?
<Creeture>
banister_: Yeah. That's even prettier.
<Boohbah>
thanks all :)
<banister_>
Creeture: or 24t&t42
<Creeture>
heh. now you're just getting geeky
jergason [jergason!~jergason@c-67-182-209-164.hsd1.ut.comcast.net] has joined #ruby
peterhil [peterhil!~peterhil@xdsl-77-86-196-131.nebulazone.fi] has joined #ruby
x0F__ [x0F__!~x0F@unaffiliated/x0f] has joined #ruby
<banister_>
Creeture: tea for two and two for tea
macmartine [macmartine!~macmartin@c-24-21-112-60.hsd1.or.comcast.net] has joined #ruby
<Creeture>
Oh, I got it. No idea why, but I translated.
<hostile>
OKAY
<hostile>
END }
<hostile>
bye2u
tt [tt!~anonymous@d221-64-66.commercial.cgocable.net] has joined #ruby
davidcelis [davidcelis!~david@c-76-115-58-79.hsd1.or.comcast.net] has joined #ruby
nfluxx [nfluxx!~fluxx@50.0.141.156] has joined #ruby
<Boohbah>
(t = ARGV.shift.to_i).zero? ? t = 16 : t = t
<Boohbah>
all on one line :)
<Creeture>
Yeah, but that doesn't meet the original requirement of "pretty". That's almost as write-only as perl.
<yoklov>
hostile: haha, i'm just a CS major, switched from chemistry in my senior year like a fool after learning how awesome coding was.
<Boohbah>
yes, this is very perlish in nature
<Boohbah>
soon i will be writing things in true ruby fashion instead of useless one-liners :)
<Boohbah>
t = 16 if (t = ARGV.shift.to_i).zero?
<Creeture>
yoklov: you should have stuck with chemistry. CS geeks can learn outside of school and have chemistry in their pocket when they want to show off.
<yoklov>
yeah, i'm aware haha. i sort of learned hated chemsitry after doing a bunch of research though, which lead to the switch.
<yoklov>
so which part of that code made you think i was a java programmer, just out of curiosity (it will bother me all night)
<yoklov>
is it the exception handling?
<Creeture>
Well, you probably got enough chem to be a meth producer if you want anyway. You're good.
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
<yoklov>
haha, definitely, 4 semesters of organic ftw
theRoUS [theRoUS!~KenCoar@apache/committer/coar] has joined #ruby
<Creeture>
speaking of nothing to do with meth - I'm going to bed. 'night all.
xjunior [xjunior!~xjunior@189.27.244.60.dynamic.adsl.gvt.net.br] has joined #ruby
S1kx [S1kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby
S1kx [S1kx!~S1kx@pdpc/supporter/monthlybyte/s1kx] has joined #ruby
xjunior [xjunior!~xjunior@189.27.244.60.dynamic.adsl.gvt.net.br] has quit [#ruby]
<yoklov>
night
<yoklov>
and that comment at 22:12 was directed @ hostile
<swarley>
is there a way to use a method as an argument? not a proc but a predeclared method like in perl you can define the sub lol and then pass it as an argument with \&lol
<yoklov>
method(:methodname)?
<yoklov>
i don't know if that does what you want, it just sticks out in my memory as doing something like that
Jarred [Jarred!~Administr@c-71-198-139-210.hsd1.ca.comcast.net] has joined #ruby
<Boohbah>
there is also #rails and #rubyonrails if you are using rails
<Boohbah>
i don't know much about rails, sorry
<gokul>
ohh there is #rails
flippingbits [flippingbits!~anonymous@ip-81-210-178-39.unitymediagroup.de] has joined #ruby
<Jagan_>
okay thank you gokul and Boohbah
<Jagan_>
Now i try to change the database. but functionality wise some issues in mysql gokul..
<banistergalaxy>
Jagan_: join #rails
<banistergalaxy>
Jagan_: we dont generally answer those questions here
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
<Jagan_>
banistergalaxy_ okay thank you..
Jagan_ [Jagan_!75c17adf@gateway/web/freenode/ip.117.193.122.223] has quit [#ruby]
triptec_ [triptec_!~frasse@217.68.38.160] has joined #ruby
<kp666>
.
carbncl [carbncl!~carbncl@bne75-3-82-225-142-80.fbx.proxad.net] has joined #ruby
bier [bier!~bier@p5085F926.dip.t-dialin.net] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
S2kx [S2kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby
mafolz [mafolz!~mafolz@dhcp50-207.start.uni-saarland.de] has joined #ruby
Keva161 [Keva161!~Keva161@78.32.156.143] has joined #ruby
Sliker [Sliker!~ponies@31.185.185.7] has joined #ruby
tilde` [tilde`!~tilde@94.101.55.3] has joined #ruby
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
nemesit [nemesit!~nemesit@fbivpn.informatik.uni-hamburg.de] has joined #ruby
zakwilson_ [zakwilson_!~quassel@d105021.adsl.hansenet.de] has joined #ruby
nd______ [nd______!~nd@mnhm-5f74ce6d.pool.mediaWays.net] has joined #ruby
ylluminate [ylluminate!~ylluminat@rrcs-24-123-53-166.central.biz.rr.com] has joined #ruby
stoffus [stoffus!~stoffus@2001:9b0:1:dead:e113:9154:e2cf:631e] has joined #ruby
david_w [david_w!~david_w_s@gatej.thls.bbc.co.uk] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.206.142] has joined #ruby
hh__ [hh__!~h@173.255.227.83] has joined #ruby
hh__ [hh__!~h@173.255.227.83] has quit [#ruby]
hh__ [hh__!~h@173.255.227.83] has joined #ruby
<hh__>
is it possible to run a shell command with rake?
<banistergalaxy>
hh__: sh "ls"
fayimora [fayimora!~fayimora@2a01:388:201:3721:206f:37aa:bb30:790f] has joined #ruby
<hh__>
thanks
pi3r [pi3r!~pi3r@LSt-Amand-152-32-39-189.w80-11.abo.wanadoo.fr] has joined #ruby
cyri_ [cyri_!~cyri_@152.107.70.86.rev.sfr.net] has joined #ruby
<shevy>
hmmm
<shevy>
when you have a class like Foobar; def initialize; @some_value = 5; where @some_value can change... how do you store this into a file? I mean the whole class, ideally...
<shevy>
including the current @some_value
<banistergalaxy>
shevy: did u like my answer for u on ruby-forum
<shevy>
what answer
<banistergalaxy>
shevy: i try my best 4 u, and get no reply, u hurt my feelings
<banistergalaxy>
pry commands arne't ruby at all ;)
<banistergalaxy>
it's not even ruby
<banistergalaxy>
hehe
<shevy>
but candlerb!
<banistergalaxy>
oh
<banistergalaxy>
ya
<shevy>
well ok
<shevy>
let's see
<shevy>
waaaah
<shevy>
Error loading /.pryrc: undefined method `block_command' for #<Pry::CommandSet:0xb73e35ac>
<hh__>
banistergalaxy: there's no way to set a shell env variable in rake?
<shevy>
Pry version 0.9.7.4 on Ruby 1.8.7
<banistergalaxy>
hh__: i never said there wasn't
<banistergalaxy>
shevy: update pry
<shevy>
hehe kk
lolmaus [lolmaus!~lolmaus@178.236.241.96] has joined #ruby
<banistergalaxy>
shevy: we're at 0.9.8.1
<lolmaus>
Hi!
<hh__>
banistergalaxy: how would i do that?
daglees [daglees!~belvedere@unaffiliated/daglees] has joined #ruby
<shevy>
Successfully installed pry-0.9.8.1
<banistergalaxy>
hh__: by asking me, i guess
fourcolors [fourcolors!~fourcolor@c-67-177-35-41.hsd1.ut.comcast.net] has joined #ruby
<hh__>
sh "SOME_ENV=testing command" doesn't seem to work
bdon [bdon!~bdon@76-218-207-184.lightspeed.sntcca.sbcglobal.net] has joined #ruby
<banistergalaxy>
hh__: ENV['SOME_ENV']
porco [porco!~porco@222.130.128.175] has joined #ruby
mikepack [mikepack!~mikepack@c-174-51-77-22.hsd1.co.comcast.net] has joined #ruby
c0rn [c0rn!~c0rn@50-0-142-2.dsl.dynamic.sonic.net] has joined #ruby
<lolmaus>
I'm doing `p ARGV.first` inside wtf.rb with either `ruby wtf.rb "one two"` or `ruby wtf.rb one\ two`. In either way, it returns "one". How do i pass a single argument with spaces?
<banistergalaxy>
lolmaus: quote it and use shell words
<hh__>
if i had a rake task like server:start and server:stop that would start and stop redis, mysql server, etc. is there a more ruby way to do this? instead of using shell commands to start the process and write the pid file, and then to shell command stop it?
<Gekz>
so
<banistergalaxy>
hh__: you didnt say thanks when i helped you before which makes me think you're a greedy pig, so i dont want to help you anymore
<Gekz>
I'm trying to find a point in an iterator
<hh__>
i said thanks the first time
<Gekz>
so I can start iterating from that part
<hh__>
it's implied every other time after
<shevy>
Gekz!
<shevy>
why do I remember the name
<Gekz>
can I pass the .each object to another method and return it after nexting for a while
<shevy>
you didn't play warcraft 3 did you?
<lolmaus>
banistergalaxy, how do i make it return "hello baby", not "hello"?
<Gekz>
no, I argued with you about YAML APIs.
<shevy>
ah ok
<Gekz>
like 2 days ago.
<shevy>
yeah
<fourcolors>
i played once apon a time... i prefer starcraft however
<shevy>
Gekz I think you can do that somehow. Not quite sure how ... array = %w( cat dog chick ); x = array.each; x.class # => Enumerable::Enumerator
<lolmaus>
What am i doing wrong? :(
hh__ [hh__!~h@173.255.227.83] has quit [#ruby]
<shevy>
x.next # => "cat"; x.next # => "dog"
<shevy>
lolmaus cool nick you have :)
porco [porco!~porco@222.130.128.20] has joined #ruby
Helius [Helius!~Adium@212.31.227.18] has joined #ruby
<ryanf>
yeah Gekz you can use .next and .peek on an enumerator object
<shevy>
haha there is a .peek method? cool
<ryanf>
i think then you're stuck in external iteration instead of internal though, so you need to keep calling .next once you've gotten to the right point
<ryanf>
I guess maybe there's a way around that
moshef [moshef!~moshe@62.219.110.225] has joined #ruby
<moshef>
any cool way to ask if num is negative besides doing < 0 ?
<ryanf>
alternately Gekz depending on your use case you may be able to use drop_while
csherin [csherin!~csherin@202.164.151.252] has joined #ruby
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
<fabiob>
(Getting a symbolic representation of a constant in a generic way, having its value)
moshee [moshee!~moshee@c-50-135-229-127.hsd1.wa.comcast.net] has joined #ruby
moshee [moshee!~moshee@unaffiliated/moshee] has joined #ruby
<aces23up>
anyone know of a string function or gem that converts the string "four" => 4, "five" => 5 just wondering if there is already something before i roll my own.
<Tasser>
aces23up, probably chronic does something like that
<shevy>
fabiob, where do you set @state ?
<shevy>
if you need to do special operations, I'd advice against using attr_accessor
<shevy>
and instead, use your own = method
<fabiob>
shevy: f.state = Foo::BAR
<fabiob>
shevy: it was just an example
<fabiob>
shevy: my problem is to get its symbolic representation
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby
rushed [rushed!~rushed@cpe-70-116-11-35.austin.res.rr.com] has quit [#ruby]
<shevy>
well BAR resides within Foo
<shevy>
but it is not a symbol, it is a constant
<shevy>
_ = Object.const_get "Foobar"'
<shevy>
_ = Object.const_get "BAR"
<fabiob>
shevy: Maybe "symbolic" is not the right word for it
<shevy>
still, your class is kinda bad. f.state = 'bar' would seem nicer to me
<fabiob>
I would like the output to be "state: Foo::BAR", as a string
<fabiob>
BAR and BAZ are magic numbers
n8ji [n8ji!~n8ji@c-24-20-144-228.hsd1.or.comcast.net] has joined #ruby
<shevy>
when Foo::BAR is resolved, I think it is the value 0x01 already
<shevy>
a Fixnum
<shevy>
consider like you use:
<shevy>
f.state = 5
<shevy>
ruby wouldn't know from where the 5 came
jlebrech [jlebrech!~textual@host86-135-203-241.range86-135.btcentralplus.com] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
<shevy>
Anyway, within "state: #{@state}" you could easily do something like self.class.to_s + '::'
lorian [lorian!~lorian@ppp-30-34.26-151.libero.it] has joined #ruby
<shevy>
Hmm idea
<shevy>
rather than use:
<shevy>
f.state = Foo::BAR
<shevy>
use:
<shevy>
f.state = 'Foo::BAR'
<shevy>
and make a
<shevy>
def state=(i)
<shevy>
method on your own, without using attr_accessor
<shevy>
and inside that method, you analyze the given input
robert_ [robert_!~hellspawn@objectx/robert] has joined #ruby
<shevy>
then you can be in full control of what happens
<fabiob>
shevy: Yeah, I was thinking ruby has something as get_constant_with_value( 2 ) -> "Foo::BAR"
<fabiob>
shevy: mmm, that's dirty
ephemerian [ephemerian!~ian@82-69-1-248.dsl.in-addr.zen.co.uk] has joined #ruby
<fabiob>
The alternative is a case statement, but I was hoping in a little Ruby magic :)
<shevy>
what should ruby do for you?
<shevy>
"state: Foo::BAR" or "state: BAR" <-- you dont describe how to handle the difference
nricciar [nricciar!~nricciar@64.207.62.66] has joined #ruby
bjensen_ [bjensen_!~brianj@87-104-178-171-dynamic-customer.profibernet.dk] has joined #ruby
<fabiob>
shevy: either one is good, I don't care
<shevy>
aha
nick_h [nick_h!~nick@li46-53.members.linode.com] has joined #ruby
<shevy>
that's a lot easier then
lorian [lorian!~lorian@ppp-30-34.26-151.libero.it] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
<shevy>
btw
<shevy>
your current code is not valid
<shevy>
frobify( @state )
<shevy>
def frobify
jbpros [jbpros!~jbpros@124-185-112-217.fix.adsl.belcenter.be] has joined #ruby
<shevy>
accepts no argument right now
Sigma00 [Sigma00!~freenode@thankyouforhelpingushelpyouhelpusall.net] has joined #ruby
fayimora [fayimora!~fayimora@138.37.230.156] has joined #ruby
dhruvasagar_ [dhruvasagar_!~dhruvasag@65.98.79.137] has joined #ruby
<shevy>
I think you have to handle that on your own then, I dont think there is an inbuilt method that queries a constant. But it is available for you in the array self.class.constants
david_w_sprysoft [david_w_sprysoft!~david_w_s@gatek.thls.bbc.co.uk] has joined #ruby
<shevy>
lolmaus probably something like your_string[start_position, end_position] = ''
<shevy>
the regex should return a positional number
<shevy>
hmm
<shevy>
or perhaps there is a more elegant way
<lolmaus>
shevy, it's simply str.rename(regex,'')
<shevy>
x = "foobar";x[/ob/] = ''; x # => "foar"
<shevy>
x = "foobar"; x[regex] = ''; x # => "foar"
<shevy>
well, rename looks like gsub actually
<shevy>
"foobar".gsub(/ob/,'') # => "foar"
<shevy>
or .sub
workmad3 [workmad3!~workmad3@vpn146.its.manchester.ac.uk] has joined #ruby
Freddie [Freddie!~freddiebo@h-9-122.a328.priv.bahnhof.se] has joined #ruby
jbw_ [jbw_!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
nd__ [nd__!~nd@mnhm-5f74d328.pool.mediaWays.net] has joined #ruby
<Tasser>
fabiob, do you need constants?
xissburg_ [xissburg_!~xissburg@189.54.123.104] has joined #ruby
kerframil [kerframil!~kerframil@cpc2-enfi16-2-0-cust659.hari.cable.virginmedia.com] has joined #ruby
tk__ [tk__!~tk@p083005.doubleroute.jp] has joined #ruby
CodeZombie [CodeZombie!~CodeZombi@65.19.245.153] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
Ammar01 [Ammar01!~hassaa10@gatej.thls.bbc.co.uk] has joined #ruby
ksinkar [ksinkar!~ksinkar@115.242.58.238] has joined #ruby
Amirc [Amirc!~ident@IGLD-84-228-219-178.inter.net.il] has joined #ruby
Amirc [Amirc!~ident@IGLD-84-228-219-178.inter.net.il] has quit [#ruby]
jwmann [jwmann!~Adium@modemcable242.110-201-24.mc.videotron.ca] has joined #ruby
Spockz [Spockz!~Spockz@21pc198.sshunet.nl] has joined #ruby
shevy [shevy!~shevy@178-191-176-230.adsl.highway.telekom.at] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
Kaid [Kaid!~kaidw@113.57.222.202] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.206.142] has joined #ruby
fortysixandtwo [fortysixandtwo!~fortysixa@77.40.186.166] has joined #ruby
telling [telling!ident42@unaffiliated/telling] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
lolmaus [lolmaus!~lolmaus@178.236.241.96] has joined #ruby
senny [senny!~senny@edge.garaio.com] has joined #ruby
rushed [rushed!~rushed@cpe-70-116-11-35.austin.res.rr.com] has joined #ruby
Amirh [Amirh!~amir@109.109.53.92] has joined #ruby
<Amirh>
Have you ever thought the degree that a code looks like it's output?
<shevy>
Amirh is there any real correlation?
<shevy>
it seems that little pieces of code can generate a lot of different output
<Amirh>
shevy, it's an artistic view about coding.
<Amirh>
it's not a standard.
elliot98 [elliot98!~elliot@unaffiliated/elliot98] has joined #ruby
<shevy>
aha
dnjaramba [dnjaramba!~dnjaramba@41.72.206.142] has joined #ruby
<Amirh>
do you code in a way to convey visual information?
<shevy>
I try to have every output visually please me
<shevy>
sure
<shevy>
it makes it easier to spot errors
<shevy>
and find tokens of interest
<Amirh>
so what are it's criterias?
<Amirh>
how can one code like this?
bluenemo [bluenemo!~bluenemo@unaffiliated/bluenemo] has joined #ruby
niklasb [niklasb!~codeslay0@p5B310B68.dip0.t-ipconnect.de] has joined #ruby
<shevy>
hmm by following certain patterns and conventions
<shevy>
it's a bit hard to say because this is not something that is static
<shevy>
it can change with experience
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
bsilwal [bsilwal!~bsilwal@141.0.34.138] has joined #ruby
trivol [trivol!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
Kambus [Kambus!~kambus@81-0-109-191.pool.invitel.hu] has joined #ruby
apeiros_ [apeiros_!~apeiros@194.209.75.58] has joined #ruby
<Amirh>
shevy, don't you want to do a research about it?
EddieS [EddieS!~ed@212.59.167.161] has joined #ruby
<shevy>
Amirh nah. it does not strike me as very important. To me it is much more important to increase my productive code output
porco [porco!~porco@222.130.128.175] has joined #ruby
<Amirh>
but it can readability for your future reuse.
<Amirh>
can help*
tvw [tvw!~tv@e176008037.adsl.alicedsl.de] has joined #ruby
<shevy>
I am not sure what you mean. I can understand my own code pretty well. :)
tokumine [tokumine!~kunio@82-69-174-54.dsl.in-addr.zen.co.uk] has joined #ruby
<Amirh>
do you code alone or in a team?
<shevy>
I am not entirely sure what you are getting to man
<shevy>
You turned a general discussion into targeted questioning.
<Amirh>
it's still general.
<shevy>
Good. Then I shall leave the discussion to others here.
<Amirh>
How can we write codes which convey visual information about it's output.
<Amirh>
shevy, thank you anyway
tokumine [tokumine!~kunio@82-69-174-54.dsl.in-addr.zen.co.uk] has quit [#ruby]
thisirs [thisirs!~user@sic01043.sp2mi.univ-poitiers.fr] has joined #ruby
moshee [moshee!~moshee@c-50-135-229-127.hsd1.wa.comcast.net] has joined #ruby
moshee [moshee!~moshee@unaffiliated/moshee] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
Mohan [Mohan!~nixh0st@unaffiliated/mohan] has joined #ruby
raincole_ [raincole_!~raincole@140.112.239.113] has joined #ruby
Shrink [Shrink!sgupta@redhat/shrink] has joined #ruby
Primpod [Primpod!~Andrew.St@host81-137-183-81.in-addr.btopenworld.com] has joined #ruby
ikaros [ikaros!~ikaros@dslb-094-219-214-087.pools.arcor-ip.net] has joined #ruby
S1kx [S1kx!~S1kx@pdpc/supporter/monthlybyte/s1kx] has joined #ruby
kaidw [kaidw!~kaidw@113.57.222.202] has joined #ruby
MrGando [MrGando!~MrGando@pc-137-179-83-200.cm.vtr.net] has joined #ruby
Mohan [Mohan!~nixh0st@unaffiliated/mohan] has joined #ruby
banistergalaxy [banistergalaxy!~baniseter@118.82.185.158] has joined #ruby
<Tasser>
can I use metaprogramming to define rake tasks?
<banistergalaxy>
Tasser: yes
<Tasser>
I did some def foo(name); namespace name do task :bar do end end end but rake -T doesn't show anything
<banistergalaxy>
Tasser: cos u didnt put a 'desc' above it
<banistergalaxy>
they only show up in -T if u have a desc
<Tasser>
ah ups
<elliot98>
for some reason doing a STDIN.gets returns nil without waiting for input from the STDIN
burningdog [burningdog!~burningdo@196-215-46-150.dynamic.isadsl.co.za] has joined #ruby
<elliot98>
isn't STDIN.gets supposed to wait?
<banistergalaxy>
Tasser: correct expression is "oops" if you say "ups" you give away the fact you're really a fluffy-haired european, and not a proper person (i.e anglosaxon)
<Tasser>
elliot98, how are you launching the script?
speggey [speggey!~speggey@host-143-121.eduroam.bth.se] has joined #ruby
<Tasser>
apeiros_, each_with_progress
<elliot98>
ok...so I'll need to reopen the STDIN?
<apeiros_>
pipe.close_write # <-- the other side of the pipe will receive an EOF
<apeiros_>
pipe.close # <-- here too iirc
<apeiros_>
you can't
bsilwal [bsilwal!~bsilwal@141.0.34.138] has joined #ruby
<Mon_Ouie>
And being able to wouldn't make sense: if the program you're piping from closed the file, that means it won't send any more data through it
<elliot98>
apeiros_: hmm...but once it's closed, the remote side will need to open its pipe again?
<apeiros_>
elliot98: by closing it, the other side basically says "there's nothing coming from me anymore"
<Tasser>
elliot98, usually a close says "No more from here"
<apeiros_>
that said… I think you can actually send EOF without closing…
<elliot98>
apeiros_: ok, but the device should not be sending any EOF then
<Tasser>
apeiros_, you can also piss into the sink
<apeiros_>
Tasser: well, it's useful. I use it for multiline input
<elliot98>
apeiros_: it's simply sends data as it comes in
<Tasser>
apeiros_, huh? why not \n?
<apeiros_>
elliot98: I don't know your other side
<apeiros_>
and "should" & "must" are pointless if "does/does not" contradicts it…
<apeiros_>
theory vs. practice
sythe [sythe!~quassel@facade/leader] has joined #ruby
tightwork_ [tightwork_!tightwork@50-57-89-237.static.cloud-ips.com] has joined #ruby
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
davidpk [davidpk!~r00t@host81-136-139-73.in-addr.btopenworld.com] has joined #ruby
<banistergalaxy>
form and content!
<lolmaus>
chocolate and peanuts!
<apeiros_>
lolmice & lolcats
koala_man [koala_man!vidar@unaffiliated/koala-man/x-2491903] has quit ["I'm gonna win SETI@home"]
dfr|work [dfr|work!dfr|work@nat/google/x-drqgkabtgmrwdsoc] has joined #ruby
cggaurav [cggaurav!~Adium@117.193.0.143] has joined #ruby
Sliker [Sliker!~ponies@31.185.185.7] has joined #ruby
<JonnieCache>
does anyone here have any bright ideas about multiple-table-inhertiance patterns in activerecord?
<JonnieCache>
i tried in #rubyonrails but theyre having a boring argument about testing
<banisterfiend>
JonnieCache: great, maybe thye'd like to hear about Plymouth? :P
Manhose_ [Manhose_!~Manhose@193.136.33.133] has joined #ruby
<JonnieCache>
no its much more boring than that. theyre arguing if its a good idea or not, if its the QA departments job, if youre obligated to do it out of responsibility to the client, etc etc
<banisterfiend>
well i'll try flogging my wares anyway
sdwrage [sdwrage!~sdwrage@cpe-184-57-83-165.columbus.res.rr.com] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
<banisterfiend>
'rails' is where programmers go to die i think
dinduks [dinduks!~dinduks@sql02-1-88-172-254-10.fbx.proxad.net] has joined #ruby
<JonnieCache>
hey i write rails all day at work and im only 24 :P
cggaurav [cggaurav!~Adium@122.164.255.35] has joined #ruby
<JonnieCache>
but youre right its barely programming a lot of the time
<dinduks>
Hello, isn't that possible: return providers[provider] ||
<JonnieCache>
why dont you try it and see?
<JonnieCache>
but yeah that should work fine
<dinduks>
I did, and it throws me an error
<dinduks>
"syntax error, unexpected $end"
<banisterfiend>
JonnieCache: well that was unsuccessful hehe
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
<banisterfiend>
not even a bite ;)
<JonnieCache>
i think theyre all focused on trying to be king of irc
<JonnieCache>
maybe try again later
<banisterfiend>
nah i wasnt serious anyway
<elliot98>
apeiros_: here's the pastebin: pastebin.com/bEXJsJjm
<JonnieCache>
dinduks: there must be some other problem with the code, what you posted is fine
Spockz [Spockz!~Spockz@21pc198.sshunet.nl] has joined #ruby
<elliot98>
apeiros_: I would assume that it should loop indefinately, until a linebreak is returned
danibx [danibx!~danibx@200.175.180.88.static.gvt.net.br] has joined #ruby
<elliot98>
apeiros_: but it doesn't, once there is no more data, it just leaves the loop
<dinduks>
@JonnieCache There was a tabulation rather than a space... Stupid Sublime Text. Thank you!
dinduks [dinduks!~dinduks@sql02-1-88-172-254-10.fbx.proxad.net] has joined #ruby
<JonnieCache>
dinduks: i use st2 and ive never had that problem. you can tell it to use spaces instead of tabs
<JonnieCache>
"translate_tabs_to_spaces": true
eka [eka!~eka@181.28.169.86] has joined #ruby
<shevy>
"make_coffe": true
<dinduks>
JonnieCache I would have understood if it was concerning indentation, but it was that space between || and provider. Thanks for the tip, I wish it could detected the right settings from the file extension
atmosx [atmosx!~textual@188.4.162.113.dsl.dyn.forthnet.gr] has joined #ruby
bjensen [bjensen!~brianj@87-104-178-171-dynamic-customer.profibernet.dk] has joined #ruby
n3pst3r [n3pst3r!~n3pst3r@41-218-250-162-adsl-dyn.4u.com.gh] has joined #ruby
<lolmaus>
banisterfiend, uhm... aint a do-end snippet return the result of last executed command inside it?
<banisterfiend>
lolmaus: no
<lolmaus>
banisterfiend, so to what object is the restart! method applied?
<JonnieCache>
the return of tap
<banisterfiend>
lolmaus: lolmous
<banisterfiend>
lolmaus
clockwize [clockwize!~clockwize@81.19.48.130] has joined #ruby
<JonnieCache>
in this case lolmaus
<lolmaus>
Ah, it's a feature of tap
<lolmaus>
"What’s tap? It’s a helper for call chaining. It passes its object into the given block and, after the block finishes, returns the object"
<lolmaus>
"The benefit is that tap always returns the object it’s called on, even if the block returns some other result."
cggaurav [cggaurav!~Adium@117.193.22.255] has joined #ruby
<lolmaus>
So in a general case, does a do...end block return the result of its last command inside?
<banisterfiend>
lolmaus: no
<lolmaus>
banisterfiend, what does it return when used without tap? Like with each
<banisterfiend>
lolmaus: well yes, the block does, but since a block is passed to a method when you get a construct like this: my_method do; end or my_method { } it's the return value of the _method_ that you get back
<banisterfiend>
beacuse even if you're passing in a block, it's still a method call, and the return of a method call is whatever the method decides to return
<banisterfiend>
which could be the reutrn of the block, but doesnt have to be (as in the case of tap)
bsilwal [bsilwal!~bsilwal@141.0.34.138] has joined #ruby
<JonnieCache>
the block returns its return value to place it is actually called, which is inside the actual method that takes the block
<JonnieCache>
the block is just a function that youre passing into the method
raincole_ [raincole_!~raincole@111-240-241-17.dynamic.hinet.net] has joined #ruby
<lolmaus>
And when do i want to use tap?
Ammar_Frameworks [Ammar_Frameworks!~hassaa10@gatek.thls.bbc.co.uk] has joined #ruby
<banisterfiend>
lolmaus: i use it when i want a fluent interface, i wrap the internals of all fluent methods in a tap {}
<banisterfiend>
i learned that trick from burgestrand ;)
<RubyPanther>
lolmaus: almost never
<lolmaus>
Oh, burgestrand is a guy around here who helped me once or twice ^_^
<apeiros_>
elliot98: wth do you use such a crappy paste service?
<banisterfiend>
lolmaus: it's also cool for this kind of thing IMO: array.tap(&:pop)
<lolmaus>
banisterfiend, how is `lolmaus.tap { |weirdo| weirdo.clear }.restart!` different from `lolmaus.clear; lolmaus.restart!` ?
cggaurav [cggaurav!~Adium@122.164.255.35] has joined #ruby
<apeiros_>
it's a single line only!!!
<banisterfiend>
lolmaus: it's the same
<apeiros_>
which is so much more important than anything else!!!
<banisterfiend>
lolmaus: it's rare you need it, but sometimes it can be OK IMO
<apeiros_>
oh, wow, IO#gets now has a `limit` argument. *nice!*
<lolmaus>
banisterfiend, i've just googled up that it's a great way to print out debug values from any part of a script
<banisterfiend>
lolmaus: if you have long call chains
<lolmaus>
banisterfiend, or math like ( k + 1 ) / ( ( q - t ) / 2 )
<apeiros_>
elliot98: anyway, I re-checked IO#gets (which you could have done too) and the only reason for gets to return nil is EOF. other cases raise.
<apeiros_>
elliot98: also you have a break in it. might as well be that which is triggered.
<banisterfiend>
lolmaus: he doesnt say where he got the name 'tap' from, im curious of its etymology
<apeiros_>
lolmaus: as of 1.9, you can just use p/pp instead of tap
<apeiros_>
ah, though, they won't work well in the middel of a chain…
jaywastaken [jaywastaken!~jaywastak@unaffiliated/jaywastaken] has joined #ruby
michaelh [michaelh!~Michael@c-98-213-112-209.hsd1.il.comcast.net] has joined #ruby
<JonnieCache>
banisterfiend: i imagine its like tapping a phone line
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
JonnieCache [JonnieCache!~jonnie@87.252.60.35] has joined #ruby
pu22l3r [pu22l3r!~pu22l3r@157.166.167.129] has joined #ruby
Ammar01 [Ammar01!~hassaa10@gatej.thls.bbc.co.uk] has joined #ruby
BSaboia [BSaboia!~brunosabo@186.213.18.207] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
cggaurav [cggaurav!~Adium@122.164.255.35] has joined #ruby
Husel [Husel!1fcd48f3@gateway/web/freenode/ip.31.205.72.243] has joined #ruby
jesperht [jesperht!~jesperht@jabbah.dreamhost.com] has joined #ruby
bsilwal [bsilwal!~bsilwal@141.0.34.138] has joined #ruby
nanderoo [nanderoo!~nanders@38.124.137.226] has joined #ruby
moshee [moshee!~moshee@c-50-135-229-127.hsd1.wa.comcast.net] has joined #ruby
moshee [moshee!~moshee@unaffiliated/moshee] has joined #ruby
kp666 [kp666!~kp666@115.111.177.122] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
cjs226 [cjs226!~cjs226@rrcs-71-40-79-154.sw.biz.rr.com] has joined #ruby
bloony [bloony!~lterje@cm-84.215.149.163.getinternet.no] has joined #ruby
Shrink [Shrink!sgupta@redhat/shrink] has joined #ruby
<bloony>
I got an array of 91 elements and I want to put the content into a 9x9 matrix, how do I do that? I use the Matrix class..
<apeiros_>
Matrix[*ary.each_slice(9).to_a]
<triptec>
how do I add a get varible to a link_to?
<apeiros_>
triptec: #rubyonrails
<triptec>
oh yeah
<apeiros_>
and link_to doesn't care about that anyway
<apeiros_>
link_to "foo", "/bar?someparam=val"
<banisterfiend>
apeiros_: sexy
<apeiros_>
I'm sexy and you know it!
<banisterfiend>
i do now :))
<apeiros_>
oh, actually…
<apeiros_>
Matrix[*ary.each_slice(9)]
<apeiros_>
splat invokes to_a for you :)
Rishi_ [Rishi_!~Rishi@ool-18e40d77.dyn.optonline.net] has joined #ruby
dinduks [dinduks!~dinduks@sql02-1-88-172-254-10.fbx.proxad.net] has joined #ruby
Ownatik [Ownatik!~yoyoyoy@8-118.tr.cgocable.ca] has joined #ruby
`brendan [`brendan!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
<`brendan>
morning
thecreators [thecreators!~rskagy@cpe-65-27-201-150.cinci.res.rr.com] has joined #ruby
BSaboia__ [BSaboia__!~brunosabo@186.213.55.138] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
choi0hun_ [choi0hun_!~choi0hun@175.198.167.16] has joined #ruby
<bloony>
triptec, ah right thanks
tmiller [tmiller!~tmiller@fw.luckie.net] has joined #ruby
derailed [derailed!~textual@ur16.waag.org] has joined #ruby
nvez [nvez!~textual@bas1-montreal54-1279344164.dsl.bell.ca] has joined #ruby
nvez [nvez!~textual@unaffiliated/nvez] has joined #ruby
<derailed>
hello ruby gods. is there a rack middelware that basically taks a directory, and then turns any .md, .haml, .whatever into a parsed file?
Dangr_ [Dangr_!~sseellff@173-161-51-209-Illinois.hfc.comcastbusiness.net] has joined #ruby
jaywastaken [jaywastaken!~jaywastak@unaffiliated/jaywastaken] has joined #ruby
thecreators [thecreators!~rskagy@cpe-65-27-201-150.cinci.res.rr.com] has joined #ruby
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
tuxaddicted [tuxaddicted!~tuxaddict@server144052-3.santrex.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
QaDeS [QaDeS!~mklaus@frbg-5f7336c1.pool.mediaWays.net] has joined #ruby
<linduxed>
hey guys, i'm in need of someone who has some minutes to spare for some BDD-oriented questions
<linduxed>
i've got this project of mine that i want to get going
<linduxed>
but i need some help with writing stories and prioritizing what's to be done in what oredr
<linduxed>
*order
hackeron [hackeron!~hackeron@gentoo/user/hackeron] has joined #ruby
hubub [hubub!~hubub@94-193-241-95.zone7.bethere.co.uk] has joined #ruby
<linduxed>
i'd appreciate if someone who has written cucumber for quite some time would hop into a query with me, so i could ask some questino questions on how to start
porco [porco!~porco@123.114.100.97] has joined #ruby
hubub [hubub!~hubub@94-193-241-95.zone7.bethere.co.uk] has joined #ruby
<linduxed>
then i could probably continue on my own
<jesperht>
I want to re-run failed unit tests. I suppose checking for 'passing?' in teardown would be best, but I'm not sure how to invoke the tests again. Just calling the function directly skips the setup/teardown.
willb [willb!~wibenton@99-100-185-10.lightspeed.mdsnwi.sbcglobal.net] has joined #ruby
imsplitbit [imsplitbit!~imsplitbi@64.39.5.119] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
tuxaddicted [tuxaddicted!~tuxaddict@121.54.58.132] has joined #ruby
cousine [cousine!~cousine@196.221.254.245] has joined #ruby
<elliot98>
apeiros_: thanks!
oponder [oponder!~oponder@mail.memocom.nl] has joined #ruby
Helius [Helius!~Adium@212.31.227.18] has quit [#ruby]
moshee [moshee!~moshee@c-50-135-229-127.hsd1.wa.comcast.net] has joined #ruby
moshee [moshee!~moshee@unaffiliated/moshee] has joined #ruby
wroathe [wroathe!~wroathe@75-146-189-233-Minnesota.hfc.comcastbusiness.net] has joined #ruby
iamjarvo [iamjarvo!~Adium@pool-71-162-141-201.phlapa.fios.verizon.net] has joined #ruby
cggaurav1 [cggaurav1!~Adium@117.193.7.31] has joined #ruby
philips [philips!~philips@shell.ifup.org] has joined #ruby
eldariof [eldariof!~CLD@PPPoE-78-29-121-171.san.ru] has joined #ruby
cggaurav2 [cggaurav2!~Adium@122.164.255.35] has joined #ruby
cggaurav [cggaurav!~Adium@117.193.7.31] has joined #ruby
ZenoArrow [ZenoArrow!~chatzilla@host109-150-197-21.range109-150.btcentralplus.com] has joined #ruby
Ownatik [Ownatik!~yoyoyoy@69.196.16.186] has joined #ruby
apow [apow!~wopa@177.17.40.126] has joined #ruby
notjohn [notjohn!~john@WS1-DSL-208-102-253-169.fuse.net] has joined #ruby
InfiniteJest [InfiniteJest!~InfiniteJ@dynamic-adsl-78-13-148-80.clienti.tiscali.it] has joined #ruby
<decentrality>
this is probably really dumb. If I have a Module B which is a Module of A (so A::B ) then how do I use the helpers of A from within B? I thought I could by default!
jergason [jergason!~jergason@c-67-182-209-164.hsd1.ut.comcast.net] has joined #ruby
cggaurav1 [cggaurav1!~Adium@122.164.255.35] has joined #ruby
<ZenoArrow>
I understand the current output, but I don't understand why changing 10.times to 6.times doesn't work. If I do so, the output of puts num is 6, but the output of puts square is blank. Why?
qelsi [qelsi!~qelsi@117.Red-79-156-39.staticIP.rima-tde.net] has joined #ruby
wroathe [wroathe!~wroathe@75-146-189-233-Minnesota.hfc.comcastbusiness.net] has joined #ruby
vladyn [vladyn!~Adium@78.83.241.70] has joined #ruby
enroxorz [enroxorz!~enroxorz@unaffiliated/enroxorz] has joined #ruby
<ZenoArrow>
Just to say, I tried 7.times and got the expected output, but the conditional assignment of square is determined by whether num > 5, which 6 is, which is why it makes no sense!
<decentrality>
ZenoArrow: I ran the code and see the output... looking at this too
<ZenoArrow>
Thanks decentrality!
<decentrality>
i think I got it
<ZenoArrow>
Cool, what is it?
<decentrality>
yeah, I got it
<decentrality>
return (num, square) if num > 5
nowthatsamatt [nowthatsamatt!~nowthatsa@rrcs-71-43-23-18.se.biz.rr.com] has joined #ruby
<decentrality>
the two items returned need to be in parentheses, otherwise it treats it like square is the only value "held back" unless num > 5
<ZenoArrow>
If I try that, I just get an error!
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby
<glacius>
hey guys whats a good library fro AD authentication
<ZenoArrow>
But decentrality, that was my point, num is 6! That's why it shouldn't be held back, even if the conditional was only assigned to the square statement.
qelsi [qelsi!~qelsi@117.Red-79-156-39.staticIP.rima-tde.net] has joined #ruby
Primpod [Primpod!~Andrew.St@83.223.195.10] has joined #ruby
<decentrality>
ZenoArrow: I'm not saying my fix is RIGHT, I'm saying it WORKS :)
PragCypher [PragCypher!~kapone@208.157.149.45] has joined #ruby
johanhsfy [johanhsfy!~johan@85.235.8.85] has joined #ruby
<ZenoArrow>
When I run your code, I get the same error messages as before: "syntax error, unexpected ')', expecting '='". FWIW, I'm running Ruby 1.9.2.
<ZenoArrow>
decentrality, I agree to a certain extent, if it works it works, but on the other hand I'd say what was found was a bug. If it is a bug, then I'd like to notify the Ruby devs so it can be fixed.
cantbecool [cantbecool!~cantbecoo@38.98.246.130] has joined #ruby
cantbecool [cantbecool!~cantbecoo@38.98.246.130] has quit [#ruby]
davidpk [davidpk!~r00t@soho89-16-224-130.sohonet.co.uk] has joined #ruby
SplitNova [SplitNova!~Adium@76-10-149-67.dsl.teksavvy.com] has joined #ruby
SplitNova [SplitNova!~Adium@76-10-149-67.dsl.teksavvy.com] has quit [#ruby]
mocker [mocker!~mocker@72.165.148.230] has joined #ruby
jtrudeau [jtrudeau!~jeff@75-150-71-83-NewEngland.hfc.comcastbusiness.net] has joined #ruby
<ZenoArrow>
decentrality, which version of Ruby are you running?
uris [uris!~rguerra@200.32.229.98] has joined #ruby
<decentrality>
ZenoArrow: 1.9.2 (jRuby 1.6.5.1) and I do see it breaking again.. oops. strange issue
dinduks [dinduks!~dinduks@sql02-1-88-172-254-10.fbx.proxad.net] has joined #ruby
<decentrality>
ZenoArrow: I see why
<decentrality>
ZenoArrow: starts with 0, runs to 5
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
<ZenoArrow>
Sure, I thought of that too, but then if that was the case, why is the output of puts num = 6, if it was as you say then puts num would be equal to 5.
<decentrality>
ZenoArrow: I added a "puts num" and it output 0,1,2,3,4,5
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
<ZenoArrow>
But the code already had a puts num'! Do you see why I'm confused! :-)
geekbri [geekbri!~geekbri@208.252.10.190] has joined #ruby
<decentrality>
Again, not saying it's right... saying it is how it is... YES confusing abounds
<ZenoArrow>
I am grateful for your help decentrality. I think it's best for me to raise a ticket with the Ruby devs, as even if fixes exist, the original code makes logical sense, but the output does not.
hostile [hostile!c18c2a8d@gateway/web/freenode/ip.193.140.42.141] has joined #ruby
<ZenoArrow>
Do you know where the bug tracker for Matz's Ruby can be found?
<decentrality>
ZenoArrow: np. for sure, agreed... Nope
<ZenoArrow>
Okay, I'll have a look on Tinternet. Thanks again! :-)
<MaskRay>
i'm creating a rubygems mirror. can anyone tell me what does 'gem generate_index' do? i cannot find any change after executing the command
bsilwal [bsilwal!~bsilwal@141.0.34.138] has joined #ruby
tvw [tvw!~tv@212.79.9.150] has joined #ruby
dcarper [dcarper!~dcarper@50-73-187-102-pennsylvania.hfc.comcastbusiness.net] has joined #ruby
ryannielson [ryannielson!~ryanniels@blk-11-127-105.eastlink.ca] has joined #ruby
_obiJuan [_obiJuan!~ysiad1@24.136.120.162] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@216.199.155.226.nw.nuvox.net] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
drknus [drknus!~user@blk-222-141-162.eastlink.ca] has joined #ruby
crankycoder [crankycoder!~crankycod@24-246-44-67.cable.teksavvy.com] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
bbttxu_ [bbttxu_!~adam@68-191-221-18.static.dntn.tx.charter.com] has joined #ruby
jrist [jrist!~jrist@184-96-220-167.hlrn.qwest.net] has joined #ruby
nowthatsamatt [nowthatsamatt!~nowthatsa@rrcs-71-43-23-18.se.biz.rr.com] has quit [#ruby]
ceej [ceej!~anonymous@cpe-72-190-40-203.tx.res.rr.com] has joined #ruby
Sailias [Sailias!~jonathan@bas1-burlington02-1176191570.dsl.bell.ca] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
asobrasil [asobrasil!~asantioli@palpatine.privatedns.com] has joined #ruby
philcrissman [philcrissman!~philcriss@206.57.45.116] has joined #ruby
cggaurav [cggaurav!~Adium@122.164.255.35] has joined #ruby
kpshek [kpshek!~kpshek@159.140.254.109] has joined #ruby
kajisap [kajisap!~kajisap@49.244.29.19] has joined #ruby
lewix [lewix!~someone@bas1-toronto04-1242323045.dsl.bell.ca] has joined #ruby
tomzx [tomzx!~tomzx@dsl-147-245.aei.ca] has joined #ruby
lewix [lewix!~someone@unaffiliated/lewix] has joined #ruby
evantravers [evantravers!~textual@fw.luckie.net] has joined #ruby
medik [medik!~pl0x@host-95-199-28-75.mobileonline.telia.com] has joined #ruby
theRoUS_ [theRoUS_!KenCoar@nat/redhat/x-jgbybixcxjmpasgm] has joined #ruby
carlyle [carlyle!~carlyle@rrcs-24-199-146-218.midsouth.biz.rr.com] has joined #ruby
rippa [rippa!~rippa@87-253-26-104.pppoe.yaroslavl.ru] has joined #ruby
cggaurav1 [cggaurav1!~Adium@117.193.7.31] has joined #ruby
RoUS [RoUS!KenCoar@apache/committer/coar] has joined #ruby
jds [jds!~jds@188-220-60-85.zone11.bethere.co.uk] has joined #ruby
maybe_enroxorz [maybe_enroxorz!~enroxorz@unaffiliated/enroxorz] has quit [#ruby]
dr_bob [dr_bob!c100f615@gateway/web/freenode/ip.193.0.246.21] has joined #ruby
cggaurav [cggaurav!~Adium@122.164.255.35] has joined #ruby
<bsilwal>
I just installed an rails blog app. Its working fine, except if I try to browse, it takes server ip as the domain. How do i change it?
mkscrg [mkscrg!~mkscrg@pool-108-41-134-165.nycmny.fios.verizon.net] has joined #ruby
v0n [v0n!~v4n@bas1-montreal43-1242486563.dsl.bell.ca] has joined #ruby
kevinbond [kevinbond!~kevinbond@250.orl54.voxeo.com] has joined #ruby
<Tasser>
bsilwal, #rubyonrails
<bsilwal>
solved !!
stic02 [stic02!~stic02@odcvpn.csgsupport.com] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
vraa [vraa!~vraa@c-76-30-144-32.hsd1.tx.comcast.net] has joined #ruby
indigo747 [indigo747!~atamis@dsl-68-170-178-212.dhcp.cruzio.com] has joined #ruby
AzizLight [AzizLight!~azizlight@194.83.163.148] has joined #ruby
<AzizLight>
Hi everybody
bsilwal [bsilwal!~bsilwal@141.0.34.138] has joined #ruby
<AzizLight>
I just installed nokogiri but when I require it and run the script I get an error saying cannot load such file -- nokogiri
<apeiros_>
AzizLight: ruby 1.8?
<AzizLight>
I am using ruby 1.9.3-p0
<apeiros_>
require 'rubygems' first
<apeiros_>
ok. paste the contents of `gem env`, and make sure `gem list` shows nokogiri
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
<apeiros_>
(in 1.9, require 'rubygems' is not needed, just to be clear)
herval [herval!~Adium@186.215.248.58] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
cggaurav [cggaurav!~Adium@122.164.255.35] has joined #ruby
<apeiros_>
and `ruby -e 'require "nokogiri"'` gives the same error?
rizzy [rizzy!~chatzilla@67.107.136.98.ptr.us.xo.net] has joined #ruby
<AzizLight>
apeiros_: `ruby -e 'require "nokogiri"'` doesn't give any errors, odd...
dinduks [dinduks!~dinduks@sql02-1-88-172-254-10.fbx.proxad.net] has joined #ruby
cggaurav [cggaurav!~Adium@122.164.255.35] has quit [#ruby]
thecreators [thecreators!~rskagy@cpe-65-27-201-150.cinci.res.rr.com] has joined #ruby
<AzizLight>
apeiros_: I found what was the issue, stupid rvm gemset mistake
hashpuppy [hashpuppy!~hashpuppy@unaffiliated/hashpuppy] has joined #ruby
<AzizLight>
basically I wasn't using the correct gemset in another project... thanks anyway for the help
snearch [snearch!~snearch@e178056108.adsl.alicedsl.de] has joined #ruby
<hashpuppy>
i have override def role=(role) so that it will check to make sure the role is valid before it sets it. what's a good exception to throw if it is not valid?
<hashpuppy>
or raise
Guest94151 [Guest94151!~KenCoar@dsl093-240-159.ral1.dsl.speakeasy.net] has joined #ruby
<hashpuppy>
ArgumentError?
<apeiros_>
AzizLight: :) glad you found the issue
<apeiros_>
hashpuppy: ArgumentError sounds fine, or even a custom exception of yours, possibly inheriting from ArgumentError
<hashpuppy>
and stupid question. why does u = User.find(3); u.role = "lsdjfl" throw the exception, but u.role = "myvalidrole" throw a SystemStackError
<hashpuppy>
apeiros_: thanks. always like confirmation that I'm on the right track
<apeiros_>
because you have an infinite recursion there
<hashpuppy>
it says "Maybe an IRB bug!!"
<banisterfiend>
whta are the most popular testing libs in ruby?
<hashpuppy>
ohh.. i think i see what's going ong
<apeiros_>
hashpuppy: you want super, not self.role=
Faris [Faris!~amnay@adsl196-102-19-217-196.adsl196-9.iam.net.ma] has joined #ruby
<hashpuppy>
it's trying to call itsef
<apeiros_>
it isn't just trying :-p
<hashpuppy>
lol
gyre007 [gyre007!~gajdosm@213.86.197.188] has joined #ruby
<banisterfiend>
rspec, minitest, bacon, which other ones?
denom [denom!~denom@66-168-19-20.dhcp.mdsn.wi.charter.com] has joined #ruby
<apeiros_>
it calls itself until the stack is too deep, hence SystemStackError
<hashpuppy>
apeiros_: so i just call super?
<apeiros_>
yes
<hashpuppy>
or must i pass arguments
<hashpuppy>
super role?
<apeiros_>
`super` will call super with all arguments as they've been passed to the method
<gyre007>
I tried to install twitter gem as gem install twitter...but I'm getting the following error: ERROR: While generating documentation for activesupport-3.2.1 which I cant even find anything reasonable on Google...
<hashpuppy>
i think i recall that now
<hashpuppy>
thanks
snip_it [snip_it!~snip_it@sta-204-144-132-210.rockynet.com] has joined #ruby
<gyre007>
anyone ideas ?
<apeiros_>
gyre007: doc errors shouldn't stop the gem from installing
<apeiros_>
you only won't have the docs
<gyre007>
apeiros_, gem is installed, I know, but why is it failing that's the q
<gyre007>
I mean why is the docs install failing
<gyre007>
anyways
<Tasser>
I got values from 0 to 1, but they should not be 0, so I'd like to smooth stuff a bit. ideas?
jergason [jergason!~jergason@c-67-182-209-164.hsd1.ut.comcast.net] has joined #ruby
<apeiros_>
val.zero? ? smoother_value : val
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
snip_it [snip_it!~snip_it@sta-204-144-132-210.rockynet.com] has joined #ruby
PaciFisT [PaciFisT!~PeaCE@76-10-149-67.dsl.teksavvy.com] has joined #ruby
<apeiros_>
val.zero? ? Float::MIN : val
<apeiros_>
as a possible value for smoother_value
<Tasser>
I used Float::EPSILON
<Tasser>
as they need to be closed to 0
<apeiros_>
Float::MIN is *slightly* closer to 0 than EPSILON ;-)
Manhose [Manhose!~Manhose@188.251.92.26] has joined #ruby
<apeiros_>
rippa: arrr, yes of course.
<apeiros_>
hashpuppy: srsly, what do you think does line 2 do?
<hashpuppy>
f
<hashpuppy>
lol
<hashpuppy>
ok
<apeiros_>
reduce the dope :-p
nkbuff [nkbuff!~nkbuff@92.249.104.223] has joined #ruby
<hashpuppy>
but i get such a good price
<apeiros_>
hashpuppy: ROLES is a hash?
chimkan__ [chimkan__!~chimkan@184.175.39.28] has joined #ruby
<hashpuppy>
yeah
<apeiros_>
then ROLES.keys.include? role is rather stupid
<hashpuppy>
is there a has_key
<apeiros_>
ROLES.keys gives you an array. searching an array is *much* slower than searching the hash you had in the first place.
<apeiros_>
you can even just use .include?
<apeiros_>
but yes, there's also .has_key?
chimkan_ [chimkan_!~chimkan@184.175.39.28] has joined #ruby
uris [uris!~rguerra@200.32.229.98] has joined #ruby
jcromartie [jcromartie!~jcromarti@216.59.120.146] has joined #ruby
<Tasser>
WTF? why did those rake idiots use [] to pass arguments?
<apeiros_>
no idea. you're not the first to complain about it, though
<Tasser>
got me an option parser?
<Tasser>
I'll give rake a boot
<apeiros_>
I heard Thor was built because of rakes shortcommings for a couple of things
<apeiros_>
also a couple of friends seem to like slop
raincole_ [raincole_!~raincole@140.112.239.113] has joined #ruby
<apeiros_>
I keep forgetting who wrote it… injekt maybe?
<apeiros_>
yepp, seems to be injekt
<Tasser>
I got three tasks that each take an argument. as simple as possible.
<Tasser>
won't be more of them in the near future
<apeiros_>
getopt then
<apeiros_>
or just plain ARGV
philips [philips!~philips@shell.ifup.org] has joined #ruby
bsilwal [bsilwal!~bsilwal@141.0.34.138] has joined #ruby
<Tasser>
ARGV.
davidpk [davidpk!~r00t@host81-136-139-73.in-addr.btopenworld.com] has joined #ruby
<shevy>
.VGRA
banseljaj [banseljaj!~Imami@182.186.81.11] has joined #ruby
<shevy>
apeiros_ yeah injekt wrote slop
albemuth [albemuth!~albemuth@209.213.178.170] has joined #ruby
<shevy>
next time I need some optionparsing I'll use slop
flippingbits [flippingbits!~anonymous@ip-81-210-178-39.unitymediagroup.de] has joined #ruby
mrterribletech [mrterribletech!~user@cpe-173-171-37-169.tampabay.res.rr.com] has joined #ruby
chimkan [chimkan!~chimkan@184.175.39.28] has joined #ruby
linoj [linoj!~linoj@sn1-pat-1.m2s.com] has joined #ruby
jcromartie_ [jcromartie_!~jcromarti@65.118.45.137] has joined #ruby
mrterribletech [mrterribletech!~user@cpe-173-171-37-169.tampabay.res.rr.com] has quit [#ruby]
ePirat [ePirat!~ePirat@unaffiliated/epirat] has joined #ruby
akem [akem!~akem@120.241.84.79.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
v0n [v0n!~v4n@2607:fad8:4:0:21e:8cff:fe4d:2f7d] has joined #ruby
omahajoe [omahajoe!~joe@Smtp2.propublica.org] has joined #ruby
alex__c2022 [alex__c2022!~alex@207.239.64.154] has joined #ruby
Targen [Targen!~iguana@159.90.11.250] has joined #ruby
tangledhelix [tangledhelix!~dan@99-59-107-84.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
Sliker [Sliker!~ponies@31.185.185.7] has joined #ruby
porco [porco!~porco@123.114.100.97] has joined #ruby
ckrailo [ckrailo!~ckrailo@208.86.167.247] has joined #ruby
DMKE [DMKE!~DMKE@pdpc/supporter/student/dmke] has joined #ruby
savage- [savage-!~savage_@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
p0y [p0y!~p0y@112.210.37.50] has joined #ruby
Sailias [Sailias!~jonathan@bas1-burlington02-1176191570.dsl.bell.ca] has joined #ruby
BSaboia [BSaboia!~brunosabo@186.213.55.138] has joined #ruby
stephans [stephans!~stephans@76-217-209-24.lightspeed.sntcca.sbcglobal.net] has joined #ruby
vraa [vraa!~vraa@c-76-30-135-64.hsd1.tx.comcast.net] has joined #ruby
BSaboia__ [BSaboia__!~brunosabo@186.213.55.138] has joined #ruby
PaciFisT [PaciFisT!~PeaCE@76-10-149-67.dsl.teksavvy.com] has joined #ruby
ckrailo [ckrailo!~ckrailo@208.86.167.247] has joined #ruby
demian`_ [demian`_!~demian_@80.149.203.160] has joined #ruby
Mekkis [Mekkis!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
jlogsdon [jlogsdon!~jlogsdon@38.104.183.198] has joined #ruby
banseljaj [banseljaj!~Imami@182.186.81.11] has joined #ruby
<Tasser>
I need to post a form to an url and then get the resulting html - is mechanize overkill?
kenperkins [kenperkins!~textual@174-24-172-224.tukw.qwest.net] has joined #ruby
macmartine [macmartine!~macmartin@069-064-227-254.pdx.net] has joined #ruby
<Mon_Ouie>
If it's something simple and you're sure of the id of each field, I'd use Net::HTTP
Manhose_ [Manhose_!~Manhose@188.251.92.26] has joined #ruby
Nss [Nss!~mosca@host230-31-dynamic.51-79-r.retail.telecomitalia.it] has joined #ruby
<Ownatik>
When redefining a method from a class, do I need to include and extend what the other class is already including and extending?
imami [imami!~Imami@182.186.81.11] has joined #ruby
<Mon_Ouie>
No, reopening a class won't change its state
bsilwal [bsilwal!~bsilwal@141.0.34.138] has joined #ruby
<Ownatik>
thank you
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
RORgasm [RORgasm!~rorgasm@nyv-exweb.iac.com] has joined #ruby
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
<Tasser>
Mon_Ouie, WTF. Net::HTTPBadResponse: wrong status line: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">"
alfism [alfism!~alfism@2620:149:4:1201:34cb:72b4:683:7506] has joined #ruby
lkba [lkba!~AndChat@dwa53.neoplus.adsl.tpnet.pl] has joined #ruby
alex__c2022 [alex__c2022!~alex@207.239.64.154] has joined #ruby
<Mon_Ouie>
I'd guess that would mean the server returned a response that lacked some fields?
carlyle [carlyle!~carlyle@rrcs-24-199-146-218.midsouth.biz.rr.com] has joined #ruby
<Tasser>
likely
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
minijupe [minijupe!~benlieb@adsl-98-94-161-215.ard.bellsouth.net] has joined #ruby
cobragoat [cobragoat!~cobragoat@64-71-15-218.static.wiline.com] has joined #ruby
<Tasser>
soooo mechanize.
ZenoArrow [ZenoArrow!~chatzilla@host109-150-197-21.range109-150.btcentralplus.com] has joined #ruby
ZenoArrow [ZenoArrow!~chatzilla@host109-150-197-21.range109-150.btcentralplus.com] has quit [#ruby]
tobym [tobym!~tobym@pool-173-56-80-136.nycmny.fios.verizon.net] has joined #ruby
Manhose [Manhose!~Manhose@188.251.92.26] has joined #ruby
josefig [josefig!~joseph@unaffiliated/josefig] has joined #ruby
jlebrech [jlebrech!~textual@host86-135-203-241.range86-135.btcentralplus.com] has joined #ruby
eldariof [eldariof!~CLD@pppoe-88-147-176-77.san.ru] has joined #ruby
<Tasser>
Mon_Ouie, Apache/2.2.15 (Red Hat) Server <- wtf
cjlicata [cjlicata!~carlyle@rrcs-24-199-146-218.midsouth.biz.rr.com] has joined #ruby
thecreators_ [thecreators_!~rskagy@cpe-65-27-201-150.cinci.res.rr.com] has joined #ruby
carlyle [carlyle!~carlyle@216.133.69.18] has joined #ruby
samsonjs [samsonjs!~samsonjs@184.66.154.246] has joined #ruby
Azure|netbook [Azure|netbook!~azt@cinch/fan/azure] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
notjohn [notjohn!~john@cpe-174-103-133-37.cinci.res.rr.com] has joined #ruby
flippingbits [flippingbits!~anonymous@ip-81-210-178-39.unitymediagroup.de] has joined #ruby
jergason [jergason!~jergason@otherlab.cs.byu.edu] has joined #ruby
atmosx [atmosx!~atmosx@188.4.162.113.dsl.dyn.forthnet.gr] has joined #ruby
mikepack [mikepack!~mikepack@c-174-51-77-22.hsd1.co.comcast.net] has joined #ruby
workmad3 [workmad3!~workmad3@vpn202.its.manchester.ac.uk] has joined #ruby
Karmaon [Karmaon!~john@gateway/tor-sasl/karmaon] has joined #ruby
kf8a [kf8a!~kf8a@user-33c730.user.msu.edu] has joined #ruby
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
axitkhurana [axitkhurana!~akshit@180.149.49.231] has joined #ruby
maletor [maletor!~maletor@c-69-181-24-86.hsd1.ca.comcast.net] has joined #ruby
<axitkhurana>
Hi, I was trying to set up an account on heroku, and I get an error "/usr/local/heroku/lib/heroku/command/run.rb:1:in `require': no such file to load -- readline (LoadError)" when I run heroku login command
<any-key>
you may want to check out #heroku
<Afal>
or you're requiring a local file
mosca_ [mosca_!~mosca@2001:1418:16b:1:e00c:2cff:fefd:70c6] has joined #ruby
<axitkhurana>
thanks i'll try #heroku
savage- [savage-!~savage_@istep.static.monkeybrains.net] has joined #ruby
Mekkis [Mekkis!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
<axitkhurana>
apt-get install libreadline-ruby1.9.1 worked for me. thanks though
diddlybop [diddlybop!~diddlybop@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
axitkhurana [axitkhurana!~akshit@180.149.49.231] has quit ["Leaving"]
<diddlybop>
hi all, what's a good channel for programming help for new programmers?
imami [imami!~Imami@182.186.81.11] has joined #ruby
<Tasser>
try us
Faris [Faris!~amnay@41.249.159.20] has joined #ruby
imami [imami!~Imami@182.186.81.11] has joined #ruby
<diddlybop>
Ok, i'm going through Chris Pine's Learn to Program and am stuck at writing a method for alphabetical sorting without just using .sort or recursion
<diddlybop>
let me get what i have so far
hooper_ [hooper_!~hooper@c-69-181-207-23.hsd1.ca.comcast.net] has joined #ruby
moshee [moshee!~moshee@unaffiliated/moshee] has joined #ruby
<Tasser>
diddlybop, pastebin!
<diddlybop>
pastebin? Sorry, I'm new to irc too haha
theRoUS [theRoUS!KenCoar@nat/redhat/x-wgibshxvnmcihubs] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
<canton7>
paste code into a site such as pastie.org, pastebin.com, gist.github.com, or another one of a huge range of sites, and send link to this channel, rather than pasting your whole code to the channel
PragCypher [PragCypher!~kapone@208.157.149.45] has joined #ruby
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby
clockwize [clockwize!~clockwize@81.19.48.130] has joined #ruby
<shevy>
or is your coding style to include a newline after every line of ruby code?
SegFaultAX|work [SegFaultAX|work!~mkbernard@173.228.45.162] has joined #ruby
<diddlybop>
no, idk why that happened in pastebin, it's not like that in my text editors
<diddlybop>
*editor
<Afal>
shevy: flip code you say?
<Afal>
(╯°□°)╯︵ ǝpoɔ
<shevy>
pastebin seems to suck
<shevy>
pastie.org is better
<diddlybop>
will keep that in mind
<diddlybop>
what do you mean by flip the whole code though
<shevy>
it was a joke!
<diddlybop>
oh heh
<shevy>
but if you stumble into too many bugs
<shevy>
try flipping the WHOLE CODE
enherit [enherit!~enherit@70-36-236-228.dsl.static.sonic.net] has joined #ruby
headius [headius!~headius@71-210-148-40.mpls.qwest.net] has joined #ruby
vladyn [vladyn!~Adium@78.83.241.70] has joined #ruby
<diddlybop>
as in defining the method before getting the word list?
<shevy>
hehe nah
<shevy>
you could do little improvements
<shevy>
like:
<shevy>
break if word == ''
<shevy>
or perhaps
<shevy>
break if word.empty?
<canton7>
let the poor guy get a bit of working code first haha :P
<shevy>
words << word
<shevy>
rather than
<shevy>
words.push word
<shevy>
hey he is close!
<shevy>
he already knows how to define a method
<shevy>
30% of the people who ask questions here don't!
scelis [scelis!~scelis@c-71-63-242-243.hsd1.mn.comcast.net] has joined #ruby
<canton7>
true, true
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby
<diddlybop>
that's encouraging!
<shevy>
oh I see something
<shevy>
diddlybop, keep your loops clean
<shevy>
hmm you use like 3 "while"s
<Ownatik>
ok let's say I have 'module Animal' with a method 'run', and 'class Dog' inside the module. from within the run method, I'd like to reference the dog class from an activerecord model, not the one in the same module. How is this possible?
bsilwal [bsilwal!~bsilwal@141.0.34.138] has quit [#ruby]
<shevy>
but I would recommend against using "while"
<shevy>
and 3x while in such short code is a bit odd
mmercer [mmercer!~mmercer@ct-unlimited.com] has joined #ruby
<diddlybop>
ok
<shevy>
Ownatik you can probably scope
<shevy>
def run
<shevy>
Activerecord::Something.new
mrsolo [mrsolo!~mrsolo@64.125.181.73] has joined #ruby
<Ownatik>
ty
joast [joast!~rick@98.145.65.117] has joined #ruby
malditogeek [malditogeek!~Adium@81.19.48.130] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
cbuxton [cbuxton!~Adium@nat/partnerpedia/x-xrlmkxyuegfjbkqu] has joined #ruby
Faris1 [Faris1!~amnay@41.249.159.20] has joined #ruby
p0y [p0y!~p0y@112.210.37.50] has joined #ruby
<diddlybop>
hmmm still having a problem with the w variable
eignerchris [eignerchris!~eignerchr@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
<canton7>
diddlybop, yeah not surprised. You're assigning the first item in the words array to it "so its value is a string, inputted by the user", then comparing it to 1 on line 13 (of the pastie link)
<canton7>
strings don't like being compared to ints
emocakes [emocakes!~om@p57974C2E.dip.t-dialin.net] has joined #ruby
Primpod [Primpod!~Andrew.St@83.223.195.10] has quit [#ruby]
<Ownatik>
Is it possible to 'undefine' a class when redefining a module?
maletor [maletor!~maletor@c-69-181-24-86.hsd1.ca.comcast.net] has joined #ruby
Husel [Husel!1fcd48f3@gateway/web/freenode/ip.31.205.72.243] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@216.199.155.226.nw.nuvox.net] has joined #ruby
MarcWeber [MarcWeber!~marc@li142-245.members.linode.com] has joined #ruby
Creeture [Creeture!~ccosbygma@c-24-98-6-24.hsd1.ga.comcast.net] has quit [#ruby]
<MarcWeber>
Using selenium-webdriver can I get the parent element or next sibling of an Element somehow?
<jesperht>
MarcWeber: .parent ?
<Ownatik>
nvm got it
kenichi [kenichi!~kenichi@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
<diddlybop>
ok fixed a couple things, still is giving me an undefined variable error: http://pastie.org/3342713
t0mmyvyo [t0mmyvyo!~tommyvyo@c-68-83-3-164.hsd1.nj.comcast.net] has joined #ruby
<MarcWeber>
> NoMethodError: undefined method `parent' for #<Selenium::WebDriver::Element:0x00000001d54ac0>
apok [apok!~apok@c-107-3-149-167.hsd1.ca.comcast.net] has joined #ruby
<Husel>
Hello, I'm a newbie to Ruby and I've written a basic task-list program which selects the first task from each individual task list txt file and creates a new list and sorts the tasks and prints them to another txt file. It's working, but I was just wondering if there are any ways I can improve it since I'm a beginner. http://pastie.org/3342780
<canton7>
diddlybop, w is outside the scope of the alpha_sort function. This means that stuff inside the function can't see stuf that's outside the function. Try swapping lines 14 and 15
<diddlybop>
ok ty
<canton7>
diddlybop, also, on line 19, "else" doesn't take a condition. If the condition passed to the corresponding "if" isn't true, then the else is executed. It's as simple as that
<Husel>
oops, just saw I forgot to close the file at the end
swistak35 [swistak35!~rlasocha@s21.linuxpl.com] has joined #ruby
Mekkis [Mekkis!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
<canton7>
Husel, there's got to be a better way to do the <=> function
<shevy>
I never thought about that :)
<Mon_Ouie>
Husel: Instead of using (day, month, year) I would use a Date object
<JonnieCache>
actually you could lose the to_s calls because thats implicit in join or +
lahwran [lahwran!lahwran@unaffiliated/lahwran] has joined #ruby
<JonnieCache>
so [cat, desc, day, month, year].join "\t"
<lahwran>
would anyone here recommend any other languages than ruby, and if so, what and why?
Skaag [Skaag!~Skaag@1-18-132-169.idt.net] has joined #ruby
amerine [amerine!~mturner@67.204.184.82] has joined #ruby
<Mon_Ouie>
A language for what? Many languages are interesting to learn
<Husel>
Mon_Ouie: thanks, I'll look it up :)
crankycoder [crankycoder!~crankycod@24.246.44.67] has joined #ruby
dnyy [dnyy!~dnyy@c-98-237-138-38.hsd1.wa.comcast.net] has joined #ruby
pu22l3r [pu22l3r!~pu22l3r@157.166.167.129] has joined #ruby
<Boohbah>
lahwran: C
<JonnieCache>
Husel: also when you build your Task on line 39 you could just expand the array to form the four method arguments by using the splat operator
<Boohbah>
lahwran: because it has been the most popular language for 30+ years
<Husel>
JonnieCache: how would I do that?
<Boohbah>
lahwran: MRI is written innit
<JonnieCache>
Husel: so instead of calling Task.new(fn, array[0], array[1], array[2], array[3]) you would call Task.ne(fn, *array)
<Husel>
ah wow, much shorter hehe
<JonnieCache>
you would have to do the to_i conversion in the Initialize method instead but thats probably better
jbpros [jbpros!~jbpros@166-186-112-217.dyn.adsl.belcenter.be] has joined #ruby
<JonnieCache>
look up the splat operator its kinda weird but powerful
rubyruy [rubyruy!~ruy@76.77.91.41] has joined #ruby
DrShoggoth [DrShoggoth!~prakwtf@12.116.104.118] has joined #ruby
oooPaul [oooPaul!~paul@c-69-181-247-174.hsd1.ca.comcast.net] has joined #ruby
Abundnce10 [Abundnce10!188f627b@gateway/web/freenode/ip.24.143.98.123] has joined #ruby
bbttxu_ [bbttxu_!~adam@pool-71-96-208-205.dfw.dsl-w.verizon.net] has joined #ruby
merk5 [merk5!~Jon@121.54.22.84] has joined #ruby
dhodgkin [dhodgkin!~dhodgkin@cpe-76-178-249-57.maine.res.rr.com] has joined #ruby
dinduks [dinduks!~dinduks@sql02-1-88-172-254-10.fbx.proxad.net] has joined #ruby
tilde[away] [tilde[away]!~tilde@host237-193-dynamic.23-79-r.retail.telecomitalia.it] has joined #ruby
Keva161 [Keva161!~Keva161@78.32.156.143] has joined #ruby
enherit_ [enherit_!~enherit@204-16-154-82-static.ipnetworksinc.net] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@50.0.132.2] has joined #ruby
panicwhenever [panicwhenever!~paniclate@66.7.121.170] has joined #ruby
<Husel>
Hmm, i'm now getting an error: in 'new': undefined method 'div' for "7": String (NoMethodError). http://pastie.org/3342958 It seems to be something to do with the splat
adamkittelson [adamkittelson!~adamkitte@50.0.132.2] has joined #ruby
uris [uris!~rguerra@200.32.229.98] has joined #ruby
<merk5>
Can anyone here pls help me with Webistrano?
<Husel>
The line being input was Task1 17722012
<JonnieCache>
Husel: you probably need to explicitly convert the year month and day vars to_i on line 8
ubercore [ubercore!~textual@wsip-174-78-141-61.ri.ri.cox.net] has joined #ruby
cobragoat [cobragoat!~cobragoat@64.134.225.128] has joined #ruby
<JonnieCache>
im guessing
theRoUS [theRoUS!KenCoar@nat/redhat/x-gyxjievmfxsuxhhu] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
<Husel>
That's fixed it. :) thanks
<JonnieCache>
its passing in strings to Date.new and Date.new isnt presuming to call to_I on them itself
<JonnieCache>
so its calling div (divide) on them, which is a method string doesnt have
chimkan [chimkan!~chimkan@76-10-173-74.dsl.teksavvy.com] has joined #ruby
<Husel>
ah, I was thinking the div was something to do with the line.split, oops
<merk5>
Can anyone here pls help me with Webistrano? deploy:setup doesn't seem to work.
<JonnieCache>
when you see NoMethodError in ruby it usually means you have the wrong type. thats how duck typing works
<Husel>
ah okay
Jay_Levitt [Jay_Levitt!~Jay_Levit@home.jay.fm] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
<JonnieCache>
there is no type checking it just tries to call whatever method you tell it to, and if the method isnt there, you get an exception. 9 times out of ten this means you dont have the object you thought you did
trend [trend!~trend@rrcs-76-79-188-47.west.biz.rr.com] has joined #ruby
<merk5>
Can anyone here pls help me with Webistrano? deploy:setup doesn't seem to work.
<Hanmac>
JonnieCache: i made me a little rule: if its a generic what you want (like a DateTime or an Integer) then i use respond_to for checking, when you REALY need an specific class (like in an C-Binding) then i use kind_of
davidcelis [davidcelis!~david@70-89-180-6-smc-or.hfc.comcastbusiness.net] has joined #ruby
<merk5>
anyone?
merk5 [merk5!~Jon@121.54.22.84] has quit ["Leaving"]
<davidcelis>
Bueller?
andkerosine [andkerosine!~donnie@adsl-067-034-186-046.sip.mco.bellsouth.net] has joined #ruby
andkerosine [andkerosine!~donnie@adsl-067-034-186-046.sip.mco.bellsouth.net] has quit [#ruby]
c0rn [c0rn!~c0rn@50-0-142-2.dsl.dynamic.sonic.net] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
voodoofish430 [voodoofish430!~mtorres@208.76.2.200] has joined #ruby
<JonnieCache>
Hanmac: i only put tests in if im writing code intended to be called by someone that isnt me
Russell^^ [Russell^^!~Russell^^@88.97.51.87] has joined #ruby
<JonnieCache>
if its my own code i just rely on tests to catch any possible type mismatches... is that bad do you think?
<Mon_Ouie>
Even in a library I wouldn't put conditionals, a NoMethodError should be explicit enough
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
ikaros [ikaros!~ikaros@dslb-094-219-214-087.pools.arcor-ip.net] has joined #ruby
nd__ [nd__!~nd@mnhm-5f74d328.pool.mediaWays.net] has joined #ruby
<Hanmac>
not realy... i write currently only C-Extendions, so the type is bit more important
<Mon_Ouie>
Well, in the case of C extensions, when you get a pointer from an Object, it *must* be what you expect, or it will likely crash — so in that case checking the class of the object is fine
badabim [badabim!~badabim@17.245.88.186] has joined #ruby
<JonnieCache>
Mon_Ouie: its always nice to give helpful error messages
yakko [yakko!~quassel@187.58.37.194] has joined #ruby
stkowski [stkowski!~stkowski@ns25.8x8.com] has joined #ruby
<JonnieCache>
"did you mean this?" for example
<JonnieCache>
although you could argue that if you feel the need to do that then your api is unclear
apucacao [apucacao!~apucacao@thelevel.com] has joined #ruby
Ownatik [Ownatik!~yoyoyoy@69.196.16.186] has joined #ruby
<alex__c2022>
what's the best method for upgrading from 1.8.7 to 1.9.3 on a prod ubuntu box? Use RVM?
badabim_ [badabim_!~badabim@17.212.167.10] has joined #ruby
<Hanmac>
Mon_Ouie: yeah, and for Generic stuff, like color, i use ducktyping > so excact type is not nessasary :P
<oooPaul>
I've started to really like rvm as the way to manage Ruby in general.
<oooPaul>
I don't even know that Ubuntu has packages for Ruby 1.9.3 yet, so if you're going to build from source anyway, might as well have RVM manage it for you.
<shevy>
hehe
<shevy>
alex__c2022 if all fails, you can always compile into a directory from source, via --prefix, and put a symlink from /usr/bin/ruby to wherever that ruby is
<alex__c2022>
thanks
<Hanmac>
oooPaul, the next version that is comming in April has 1.9.3
<shevy>
ohhhhhhh
<shevy>
ah
<shevy>
ubuntu
<Hanmac>
alex__c2022: if you install it in with /usr/local as prefix, then you must not link anything and your normal systemfiles are safe
<oooPaul>
Hanmac, ah, good to know.
<Hanmac>
oooPaul, you can use the alpha, but i wonld not recoment it to an new user
<oooPaul>
alex__c2022, other thing to consider is whether or not your rails app is the only thing relying on ruby....
<alex__c2022>
oooPaul: was just thinking of that, there are a few sinatra apps running on that box as well
<alex__c2022>
heh
<oooPaul>
We have had issues in our system where although the Rails app was perfectly happy with the upgrade, we were also running a version of puppet that was absolutely dependent on the older ruby...
ajox [ajox!~ajox@d536882e.access.ecotel.net] has joined #ruby
<oooPaul>
So rvm really saved our bacon in that regard, since we were able to maintain multiple ruby versions...
<oooPaul>
Mmm... bacon.
<JonnieCache>
always leave the operating system's interpreter for any language well alone
Guest40320 [Guest40320!~companion@bnc.alternize.nl] has quit ["Leaving"]
<JonnieCache>
things like puppet and systems scripts will always rely on it being its boring self
<shevy>
oooPaul mhhhhmm... chocolate bacon ...
<Abundnce10>
is there any way to turn off the notifications when somebody joins/quits this IRC chat?
<JonnieCache>
keep your swanky custom interpreter you use to run your l33t handcrafted code somewhere else
<Hanmac>
Abundnce10 the config depends on your IRC client
<JonnieCache>
(this is a big problem with perl)
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
<JonnieCache>
Abundnce10: irssi collapses them all into one line if thats any help
<shevy>
omg
<shevy>
I am looking at PHP code :(
Companion [Companion!~companion@bnc.alternize.nl] has joined #ruby
cableray [cableray!~cableray@wl-dhcp204-203.Mines.EDU] has joined #ruby
<Abundnce10>
JonnieCache I'm using FreeNode
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
<Hanmac>
thats the server, not the client ...
<shevy>
hehe
<shevy>
Abundnce10 I use Xchat.
<shevy>
you perhaps use some webchat thingy?
Companion [Companion!~companion@bnc.alternize.nl] has joined #ruby
* Hanmac
used pidgin
<shevy>
Hanmac hmm I use pidgin for ICQ ... couldn't get rid of my beloved xchat yet
<JonnieCache>
3.
<JonnieCache>
oops
<shevy>
2.
<Abundnce10>
shevy I'll check out Xchat. Thanks
asteve [asteve!~asteve@unaffiliated/kxsteve] has joined #ruby
<asteve>
i've checked my rake file 20 times now and I keep getting: rake:51: syntax error, unexpected $end, expecting keyword_end
<asteve>
all of the ends are appropriate, any suggestions?
<JonnieCache>
unexpected end doesnt necessarily mean an end is out of place
<JonnieCache>
there could be something else confusing it
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
<shevy>
asteve upload code?
fr0gprince_mac [fr0gprince_mac!~fr0gprinc@178-85-90-223.dynamic.upc.nl] has joined #ruby
<asteve>
shevy: unfortunately I cannot share it; I guess I could take out the important parts
Keva161 [Keva161!~Keva161@78.32.156.143] has joined #ruby
lewix [lewix!~someone@unaffiliated/lewix] has joined #ruby
philcrissman [philcrissman!~philcriss@206.57.45.116] has joined #ruby
vrillusions [vrillusions!~vr@rikku.vrillusions.com] has joined #ruby
Michael1 [Michael1!~Abundnce1@c-24-143-98-123.customer.broadstripe.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
herval [herval!~Adium@187.115.179.92] has joined #ruby
<shevy>
lol
Abundnce10 [Abundnce10!188f627b@gateway/web/freenode/ip.24.143.98.123] has joined #ruby
<oooPaul>
I'm using XChat on Ubuntu, it was an available package. :)
<asteve>
shevy: apparently unless' don't have do's :)
<Michael1>
shevy I'm running XChat. Can you explain to me how to mute/reduce the amount of notifications of people joining/leaving the room?
tilde[away] [tilde[away]!~tilde@79.23.193.237] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
<shevy>
I think there is a config option for that
<JonnieCache>
i need to find out how to do that for irssi. i want them all sent to the status window
<JonnieCache>
ill probably have to learn its godawful scripting language to do that
kirun [kirun!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
<oooPaul>
IN XChat, I think it's Preferences => Chatting => Sound. But I don't usually have any sound on my laptop enabled anyway (I use it at work) so not sure :)
<shevy>
Michael1, perhaps in xchat.conf the option irc_who_join = 0
<shevy>
oh yeah, that may be better
<shevy>
I think I only used the GUI
<shevy>
and then just kept on carrying that config file with me
<JonnieCache>
irssi actually uses perl doesnt it. i guess thats not godawful.
statix [statix!~statix@rrcs-208-125-52-150.nys.biz.rr.com] has joined #ruby
<Michael1>
shevy if you are using XChat this is how in disabled the notifications http://xchat.org/faq/#q211
<shevy>
ah ok so it is irc_conf_mode
asteve [asteve!~asteve@unaffiliated/kxsteve] has quit [#ruby]
cobragoat [cobragoat!~cobragoat@64.134.225.128] has joined #ruby
nowthatsamatt [nowthatsamatt!~nowthatsa@71.43.23.18] has joined #ruby
dinduks_ [dinduks_!~dinduks@sql02-1-88-172-254-10.fbx.proxad.net] has joined #ruby
tmiller [tmiller!~tmiller@fw.luckie.net] has joined #ruby
minijupe [minijupe!~benlieb@adsl-98-94-161-215.ard.bellsouth.net] has joined #ruby
bdon [bdon!~bdon@unaffiliated/bdon] has joined #ruby
Espen-_- [Espen-_-!Espen@sjarken.org] has joined #ruby
jergason [jergason!~jergason@c-67-182-209-164.hsd1.ut.comcast.net] has joined #ruby
Espen-_- [Espen-_-!Espen@sjarken.org] has quit [#ruby]
cobragoat [cobragoat!~cobragoat@64-71-15-218.static.wiline.com] has joined #ruby
nowthatsamatt [nowthatsamatt!~nowthatsa@71.43.23.18] has quit [#ruby]
wasmith [wasmith!~snow@rutherford.wasm.me] has quit [#ruby]
Willejs_ [Willejs_!~Will@cpc3-newt29-2-0-cust41.newt.cable.virginmedia.com] has joined #ruby
geggam [geggam!~geggam@173-164-150-189-SFBA.hfc.comcastbusiness.net] has joined #ruby
<Willejs_>
hi, can anyone have a quick look at my simple problem on stackoverflow?
hasrb [hasrb!~hasrb@108-85-134-26.lightspeed.austtx.sbcglobal.net] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.206.142] has joined #ruby
<oooPaul>
Looks like you got an answer there... did that not solve it?
replay [replay!~juan@pdpc/supporter/student/replay] has joined #ruby
jfleach [jfleach!90bf9403@gateway/web/freenode/ip.144.191.148.3] has joined #ruby
gigamonk` [gigamonk`!~user@adsl-99-24-217-187.dsl.pltn13.sbcglobal.net] has joined #ruby
<jfleach>
Hello all, I have an initialize function that causes system calls to expect to hang when spawning processes. It is a very strange problem, where if I comment out 2 global variables, everything works fine, when I start using these variables and the subsquent methods that make use of the vars, everything becomes crazy acting with the spawned process.. anyone ever seen this before?
<jfleach>
err, initialize method wirthin a class
<jfleach>
and I have lots of these vars (they are just filehandles), it happens to be that the new that are used are messing things up
jgarvey [jgarvey!~jgarvey@cpe-174-097-248-211.nc.res.rr.com] has joined #ruby
jesperht [jesperht!~jesperht@jabbah.dreamhost.com] has quit [#ruby]
<jfleach>
regardless if the method is being called or not, this thing gets messed up
yakko [yakko!~quassel@187.58.37.194] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-71-183-247-164.nycmny.fios.verizon.net] has joined #ruby
jfleach_ [jfleach_!90bf9403@gateway/web/freenode/ip.144.191.148.3] has joined #ruby
<jfleach_>
not sure what happened there
minijupe [minijupe!~benlieb@adsl-98-94-161-215.ard.bellsouth.net] has joined #ruby
<jfleach_>
did someone see the paste?
jbpros [jbpros!~jbpros@166-186-112-217.dyn.adsl.belcenter.be] has joined #ruby
malditogeek [malditogeek!~Adium@cpc1-camd4-0-0-cust1567.hari.cable.virginmedia.com] has joined #ruby
<jfleach_>
hmm
LouisJB [LouisJB!~Louis@louisb.gotadsl.co.uk] has joined #ruby
<oooPaul>
Why globals?
seitensei [seitensei!~textual@i60-36-139-32.s06.a013.ap.plala.or.jp] has joined #ruby
jcromartie [jcromartie!~jcromarti@216.59.120.146] has joined #ruby
<jfleach_>
because I want to use globals
clockwize [clockwize!~clockwize@239.137.125.91.dyn.plus.net] has joined #ruby
yakko [yakko!~quassel@187.58.37.194] has joined #ruby
<oooPaul>
Globals are bad, mm'kay? :)
mikeric [mikeric!~mike@96.53.33.22] has joined #ruby
<oooPaul>
And this is a good example. Without seeing where those globals are used in other parts of your code, there's almost no chance I could figure out why those particular lines are problematic.
<jfleach_>
they are not used anywhere else except within system calls
<oooPaul>
What happens if you re-enable those lines, but make the variables @vars instead?
<jfleach_>
well, good idea, what if I chose a new global name
<oooPaul>
If doing that works, then you know it's some interaction with the globals elsewhere. If that *fails*, then you can narrow the cause down to the specific TempFile thing.
<jfleach_>
the tempfile I have debugged, it is just printing out to the current working directory with the path
<jfleach_>
and have a prefix of whatever I want on it
welterde [welterde!welterde@thinkbase.srv.welterde.de] has joined #ruby
<jfleach_>
I realize this code is ugly, not ruby-style, etc, but I inherited it and I dont feel like changing it all around
<jfleach_>
let me try making em not globals, but I doubt it has anything to do with it
tilde`_ [tilde`_!~tilde@host237-193-dynamic.23-79-r.retail.telecomitalia.it] has joined #ruby
jergason [jergason!~jergason@208.97.56.66] has joined #ruby
<burgestrand>
burg
andreim [andreim!~andreim@unaffiliated/andreim] has joined #ruby
<jfleach_>
changing them to @vars did nothing
<jfleach_>
same problem
<andreim>
hey, what are the ways of executing shell commands? and any way of getting in a string the alternative output (like wget) that we usually have on the terminal?
<luckyruby>
I guess i can do string[0,1] + 'x' + string[2,-1]
<oooPaul>
luckyruby, I think you'll need to create the method yourself if you want to do it...
<oooPaul>
But easy enough to implement.
Otend [Otend!Otend@c-69-242-188-14.hsd1.mo.comcast.net] has joined #ruby
<luckyruby>
hmm, guess -1 doesn't work with strings
<oooPaul>
def replace_at(pos, char); [string[0...pos], char, string[pos+1..-1]].join; end
<luckyruby>
oh. '..'
<clockwize>
is it possible to get a list of methods a class defines (not inherits from its super)?
<oooPaul>
Yeah, some variant of that works nicely to return a new string object and leave the original untainted.
davidpk [davidpk!~r00t@78.40.152.129] has joined #ruby
josefig [josefig!~joseph@unaffiliated/josefig] has joined #ruby
<luckyruby>
oooPaul: would I monkey patch String with that method?
<oooPaul>
You could.
<luckyruby>
where would be a good place to put that in a rails project?
<oooPaul>
clockwize, Kinda... depends on if yo're talking instance or class methods.
<oooPaul>
luckyruby, config/initializers...
<clockwize>
both
<oooPaul>
For class methods, you could do: MyClass.methods - MyClass.superclass.methods and find only those methods MyClass has "extra" of.
<oooPaul>
Not perfectly accurate, but might get you halfway there.
mmercer [mmercer!~mmercer@ct-unlimited.com] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@99.23.160.120] has joined #ruby
<Hanmac>
MyClass.methods(false) shows without super
<JonnieCache>
clockwize: if you only need to do it once then pry can show you that interactively
<JonnieCache>
but yeah passing false does the trick
<clockwize>
ah, cool
<clockwize>
didn't know methods took a parameter :p
crankycoder [crankycoder!~crankycod@24-246-44-67.cable.teksavvy.com] has joined #ruby
<oooPaul>
I didn't either. Woot. :)
<Hanmac>
its a secret
DMKE [DMKE!~DMKE@pdpc/supporter/student/dmke] has joined #ruby
danslo [danslo!~daniel@s529cc10b.adsl.wanadoo.nl] has joined #ruby
mocker [mocker!~mocker@72.165.148.230] has joined #ruby
kevinbond [kevinbond!~kevinbond@node77.seg89.ucf.edu] has joined #ruby
robert___ [robert___!~hellspawn@static-96-254-212-18.tampfl.fios.verizon.net] has joined #ruby
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby
<Ownatik>
ok let's say I have 'module Animal' with a method 'run', and 'class Dog' inside the module. from within the run method, I'd like to reference the dog class from an activerecord model, not the one in the same module. How is this possible?
odinswand [odinswand!~odinswand@27-32-234-171.static.tpgi.com.au] has joined #ruby
rbennacer [rbennacer!~rbennacer@38.104.59.18] has quit ["Leaving"]
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby
stephans [stephans!~stephans@209.66.114.6] has joined #ruby
mksm [mksm!~ramorim@pdpc/supporter/professional/mksm] has joined #ruby
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby
jfelchner [jfelchner!~jfelchner@207.207.28.55] has joined #ruby
<oooPaul>
Ownatik, ::Dog?
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby
<oooPaul>
Are you saying you have two classes named Dog, one in the Animal namespace and one not?
<v0n>
is there a smarter way to do ary.push(sth).uniq!
<oooPaul>
Or are you asking how to make the Dog class in the Animal namespace be an ActiveRecord class?
<v0n>
it means insert in the array if not already present
<oooPaul>
ary |= sth
<JonnieCache>
oooPaul: you sure? ive not seen that before
<v0n>
oooPaul, did you try it?...
<JonnieCache>
hmm apparently yes you can do that
canton7 [canton7!~canton7@87.194.161.58] has joined #ruby
<oooPaul>
:D
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby
<JonnieCache>
i wonder how it works under the hood
<oooPaul>
ary = ary | sth :)
<JonnieCache>
ahhh that makes more sense
<JonnieCache>
i meant more how its implemented
<oooPaul>
Although that way actually fails.
<oooPaul>
Hmm. That is interesting.
<JonnieCache>
because there is the Set class
<JonnieCache>
which is actually a hash
<oooPaul>
Wait, no, that's because I didn't type in in right.
<v0n>
yep, sth needs to be an array as well
<oooPaul>
ary |= [sth]
<oooPaul>
That's better.
v4n_ [v4n_!~v4n@2607:fad8:4:0:21e:8cff:fe4d:2f7d] has joined #ruby
<oooPaul>
ary = ary | [sth] # same thing but verbose.
<JonnieCache>
i wonder how it performs compared to Set. probably better. Set is just a hack on top of Hash and doesnt perform that well
dv_ [dv_!~quassel@chello080108009040.14.11.vie.surfer.at] has joined #ruby
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby
wroathe [wroathe!~wroathe@75.146.189.233] has joined #ruby
<oooPaul>
Can't be any worse than appending the new object and calling uniq! :)
internet_user [internet_user!~internet_@abe.cul.columbia.edu] has joined #ruby
<JonnieCache>
yeah thats definitely not going to be good
<Ownatik>
oooPaul, my bad
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby
<oooPaul>
Ownatik, did you get it working?
<Ownatik>
I meant I have two classes dog, an activerecord one, and another inside the module Animal
<oooPaul>
Ah, right.
<Ownatik>
now from a method inside the module Animal, I want to reference the activerecord class
<oooPaul>
I think it's just a matter of referring to the ActiveRecord one as ::Dog, I think... Or something to that effect.
<Ownatik>
k ill give it a try
<Ownatik>
thanks
<oooPaul>
I'm sure there's a way to 'anchor' the namespace in the syntax.
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby
flak [flak!~rippa@87-253-29-75.pppoe.yaroslavl.ru] has joined #ruby
nyuszika7h [nyuszika7h!nyuszika7h@unaffiliated/nyuszika7h] has joined #ruby
pxjorge [pxjorge!~pxjorge@a89-152-235-119.cpe.netcabo.pt] has joined #ruby
<Ownatik>
oooPaul, this is it.
<Ownatik>
::Dog references the activecord class
nowthatsamatt [nowthatsamatt!~nowthatsa@rrcs-71-43-23-18.se.biz.rr.com] has joined #ruby
nowthatsamatt [nowthatsamatt!~nowthatsa@rrcs-71-43-23-18.se.biz.rr.com] has quit [#ruby]
<v0n>
oooPaul, isn't there a similar syntax but for ary.delete(sth)? :D
<v0n>
something like [3] &= ~[1]
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby
<v0n>
but this won't work ^^
stayarrr [stayarrr!~olivererx@188.100.254.93] has joined #ruby
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby
baroquebobcat [baroquebobcat!~nick@70-90-113-174-co.denver.hfc.comcastbusiness.net] has joined #ruby
<oooPaul>
v0n, yea -=
<oooPaul>
x = [:a, :b]; x -= [:a] => [:b]
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
blischalk [blischalk!~brettlisc@173-165-48-46-Illinois.hfc.comcastbusiness.net] has joined #ruby
hadees [hadees!~hadees@64.132.24.248] has joined #ruby
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby
DrShoggoth [DrShoggoth!~prakwtf@24.207.144.248] has joined #ruby
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby
scelis [scelis!~scelis@c-71-63-242-243.hsd1.mn.comcast.net] has joined #ruby
<v0n>
oooPaul, logic, thnks ;)
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
dyer [dyer!~dyer@108-193-172-174.lightspeed.tukrga.sbcglobal.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
senny [senny!~senny@84-72-61-96.dclient.hispeed.ch] has joined #ruby
y3llow [y3llow!~y3llow@114.36.231.66] has joined #ruby
Azure [Azure!~azt@cinch/fan/azure] has joined #ruby
libertyprime [libertyprime!~libertypr@182.236.125.102] has joined #ruby
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby
dcarper [dcarper!~dcarper@c-76-125-233-64.hsd1.pa.comcast.net] has joined #ruby
y3llow [y3llow!~y3llow@114-36-231-66.dynamic.hinet.net] has joined #ruby
Keva161 [Keva161!~Keva161@78.32.156.143] has joined #ruby
jaywastaken [jaywastaken!~jaywastak@unaffiliated/jaywastaken] has joined #ruby
zalesz [zalesz!~zalesz@user-164-127-0-59.play-internet.pl] has joined #ruby
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby
<v0n>
what's the best practice to add verbosity in a script?
llaskin [llaskin!~Leo@c-24-128-198-93.hsd1.ma.comcast.net] has joined #ruby
hubub_ [hubub_!~hubub@94-193-241-95.zone7.bethere.co.uk] has joined #ruby
<llaskin>
https://gist.github.com/1774199 if upon completion of doing "stuff" at line 3, I want to break out of the each, but remain inside the method to "do more stuff" how can I break out of the each without breaking out of the function completely?
lewix [lewix!~someone@bas1-toronto04-1242323045.dsl.bell.ca] has joined #ruby
lewix [lewix!~someone@unaffiliated/lewix] has joined #ruby
<oooPaul>
break
trivol [trivol!~aurelien@2a01:e35:139a:f150:3890:3e6:ce9e:84ee] has joined #ruby
wyhaines [wyhaines!~wyhaines@mo-65-41-196-26.sta.embarqhsd.net] has joined #ruby
h4mz1d [h4mz1d!~hamfz@DHCP-212-246.wireless-resnet.ua.edu] has joined #ruby
<oooPaul>
llaskin, the keyword is 'break'. :)
<llaskin>
thanks
* llaskin
feels retarded
* oooPaul
giggles.
c0rn [c0rn!~c0rn@adsl-69-110-3-60.dsl.pltn13.pacbell.net] has joined #ruby
Sliker [Sliker!~ponies@31.185.185.7] has joined #ruby
Kyle__ [Kyle__!~kschmitt@173-165-60-19-Illinois.hfc.comcastbusiness.net] has joined #ruby
<Kyle__>
If you dump a hash with YAML.dump, does it convert the whole thing in memory?
viuo_ [viuo_!~maciek@staticline41439.toya.net.pl] has joined #ruby
<oooPaul>
Kyle__, how else would it do it?
axl_ [axl_!~axl@75-149-152-225-Minnesota.hfc.comcastbusiness.net] has joined #ruby
<Kyle__>
oooPaul: If you're putting it streight to disk it would be nice if it didn't.
<Kyle__>
I thought there was some syntatic type sugar in yaml to do that.. ahh well.
<llaskin>
Kyle__: check out #yaml
giminy [giminy!~krwightm@li63-245.members.linode.com] has joined #ruby
<oooPaul>
Kyle__, Ah, I see what you were getting at.
<oooPaul>
YAML.dump just returns the string, though, so by definition it's in memory.
nej [nej!~nej@86.58.100.99] has joined #ruby
<Kyle__>
oooPaul: I've got a rather large hash I wanted to dump. all in memory would cause the poor box to swap hard.
<JonnieCache>
data and databases are the bane of my existance
* oooPaul
nods.
<JonnieCache>
so much time wasted trying to make activerecord do what i want...
<apeiros_>
don't use AR then?
<oooPaul>
Not sure YAML is such a great way to store a very large hash anyway, no?
<JonnieCache>
apeiros_: ar isnt the problem really. its my unreasonable demands on it
<oooPaul>
JonnieCache, what do you want it to do that it doesn't do? :)
<JonnieCache>
oooPaul: class table inheritance
<apeiros_>
JonnieCache: meaning AR is the wrong tool.
<apeiros_>
if you've got demands that are unreasonable with AR, you've got two things you can change - your demands, or AR.
<apeiros_>
knowing AR, I tend to the latter.
<JonnieCache>
lol ive been trying to change ar and thats why im upset
<oooPaul>
JonnieCache, Ah, hmm... :)
<Kyle__>
oooPaul: I was doing a quick and dirty little test calculation, and YAML happily ignores default functions in hashes, where Marshall chokes on them.
<JonnieCache>
when will I learn...
<apeiros_>
I meant change as in replace :-p
<oooPaul>
Kyle__, Well, that's a step in the right direction, then. :)
<Kyle__>
Heh. AR is great if and only if you play like it wants you to.
<Kyle__>
I guess it's kindof like a cat in that way...
<oooPaul>
I'm actually surprised I managed to get AR to support a legacy database I'm using with very little fuss...
<apeiros_>
anyway, bedtime for me. n8
<Kyle__>
night.
Mosselman [Mosselman!~Mosselman@2002:4286:fdc2:0:5515:c75a:7467:6878] has joined #ruby
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby
supergiantrobot [supergiantrobot!~supergian@cpe-174-097-169-208.nc.res.rr.com] has joined #ruby
<Mosselman>
Hi guys. I have a sinatra app running, I want to make a call to a json web service from it and then relay it (post) to another web service. How can I do this? I can't figure it out through google.
<JonnieCache>
you need to make some http requests
<JonnieCache>
one to get the json
ilyam [ilyam!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby
<JonnieCache>
then you need to construct the second request to submit it to the second service
<JonnieCache>
there are many ways to do http requests, may i suggest httparty
<Mosselman>
httparty, is that in the standard libs?
<JonnieCache>
no its a gem
<JonnieCache>
theres net:http in the stdlib but its renowned for sucking
cobragoat [cobragoat!~cobragoat@64-71-15-218.static.wiline.com] has quit ["Leaving"]
<JonnieCache>
also in the long run you will want to do this in a background process, not as part of the sinatra request handler. if one of the other web services times out or something, it will tie up your server causing it to grind to a halt
<JonnieCache>
but thats another consideration
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
cableray [cableray!~cableray@wl-dhcp194-57.Mines.EDU] has joined #ruby
DrShoggoth [DrShoggoth!~prakwtf@12.116.104.118] has joined #ruby
krisfremen [krisfremen!~Kris@unaffiliated/krisfremen] has joined #ruby
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-xeucglwanzneqevm] has joined #ruby
alfism_ [alfism_!~alfism@2620:149:4:1201:8406:2ec1:33f9:e77c] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
MrKeuner [MrKeuner!~MrKeuner@unaffiliated/mrkeuner] has joined #ruby
<MrKeuner>
hello, am I safe installing apps using gem? does gem keep track of security updates?
patrick99e99 [patrick99e99!~patrick@pool-71-105-87-54.lsanca.dsl-w.verizon.net] has joined #ruby
<patrick99e99>
Can anyone recommend any articles that focus on the importance of writing small methods vs big ones
Illiux [Illiux!~nol@cl-wireless-pittnet-150-212-5-62.wireless.pitt.edu] has joined #ruby
andreim [andreim!~andreim@unaffiliated/andreim] has quit ["Leaving"]
* Hanmac
is building an swigfree wxRuby ...
i8igmac [i8igmac!~quassel@c-67-185-190-112.hsd1.wa.comcast.net] has joined #ruby
c0rn [c0rn!~c0rn@50-0-142-2.dsl.dynamic.sonic.net] has joined #ruby
<Hanmac>
hm no reaktion ... so is that what all want?
rarar3 [rarar3!~subway@ridezap.com] has joined #ruby
RORgasm [RORgasm!~rorgasm@nyv-exweb.iac.com] has joined #ruby
Illiux [Illiux!~nol@cl-wireless-pittnet-150-212-5-62.wireless.pitt.edu] has joined #ruby
madmax [madmax!~madmax@87-206-108-5.dynamic.chello.pl] has joined #ruby
paissad [paissad!~paissad@89-92-16-151.hfc.dyn.abo.bbox.fr] has quit ["Leaving"]
amerine [amerine!~mturner@67.204.184.82] has joined #ruby
tsd_usa [tsd_usa!~daniel_d@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has joined #ruby
<tsd_usa>
Hi Guys. Is there a way to get the nice "preview window" in vim win doing omni-completion for ruby?
_kW [_kW!~user@82.113.98.96] has joined #ruby
<_kW>
Hello! How can I add options to "%r{foo}" regexp literals? Like this? "%r{foo}i"?
ikaros [ikaros!~ikaros@dslb-094-219-214-087.pools.arcor-ip.net] has joined #ruby
<_kW>
Hmm... nobody there?
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby
<burgestrand>
_kW: not sure if ruby’ll allow that syntax, but you could add a modifier to the beginning of the pattern.
<burgestrand>
_kW: %r{(?i)foo}
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby
<burgestrand>
(you can turn off options in a similar way with (?-i) for example)
ikaros [ikaros!~ikaros@dslb-094-219-214-087.pools.arcor-ip.net] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
eignerchris_ [eignerchris_!~eignerchr@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
yoklov [yoklov!~yoklov@137.99.243.122] has joined #ruby
rarar3 [rarar3!~subway@ridezap.com] has quit [#ruby]
<_kW>
burgestrand: thank you, that will suffice
<burgestrand>
:)
Mosselman [Mosselman!~Mosselman@h-66-134-253-194.nycmny83.static.covad.net] has joined #ruby
h4mz1d [h4mz1d!~hamfz@130.160.187.177] has joined #ruby
<tsd_usa>
is anyone using vim here?
<oddmunds>
i am
<tsd_usa>
how to get the nice "preview window" in vim win doing omni-completion for ruby?
<spectre^>
Yeah I use vim
<tsd_usa>
how can you have the preview window which include some useful documentation for the function being used
<Mosselman>
is 'net/http' a gem?
<herval>
mosselman: afaik it's not...
<herval>
it's part of ruby's stdlib
<Mosselman>
hmm, my 1.8.7 is giving me 'false' when I do require 'net/http'
canton8 [canton8!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
ilyam [ilyam!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby
lewix [lewix!~someone@unaffiliated/lewix] has joined #ruby
danibx [danibx!~danibx@187.104.236.95] has joined #ruby
Targen [Targen!~iguana@190.39.181.108] has joined #ruby
cjs226 [cjs226!~cjs226@99-61-65-242.lightspeed.austtx.sbcglobal.net] has joined #ruby
youdonotexist [youdonotexist!~youdonote@192.206.158.10] has joined #ruby
statarb3 [statarb3!~CoreD@546A56AA.cm-12-3b.dynamic.ziggo.nl] has joined #ruby
statarb3 [statarb3!~CoreD@unaffiliated/statarb3] has joined #ruby
<laen_>
Mosselman: That's just a return value, it's not an exception.
<Mosselman>
laen_ thanks :) realised my dumbness
<herval>
:)
Skaag_ [Skaag_!~Skaag@1-18-132-169.idt.net] has joined #ruby
<shevy>
Mosselman usually when "false" is returned, when you require something, it means that it is already included
<Mosselman>
yeah that was the problem :)
<shevy>
I have that in IRB a lot. I kinda require 30 different modules in it, often enough I forgot which ones
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
cantbecool [cantbecool!~cantbecoo@c-69-141-173-238.hsd1.nj.comcast.net] has joined #ruby
<yoklov>
oh, i was wondering about that earlier today
danibx [danibx!~danibx@187.104.236.95] has joined #ruby
<shevy>
oh man
<shevy>
I hate php
<shevy>
I tried to write something today but I just can't :(
<yoklov>
i have to write php sometimes at work
<yoklov>
its better than what i usually have to write in though
<yoklov>
coldfusion
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
ilyam [ilyam!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby
<shevy>
ah well
<shevy>
I'd honestly rather learn rails ... then at least I could write in valid ruby code
<shevy>
and make use of things I write there too, even without rails
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby
<yoklov>
yeah, i don't know rails at all.
pu22l3r [pu22l3r!~pu22l3r@108-196-10-55.lightspeed.tukrga.sbcglobal.net] has joined #ruby
t0mmyvyo [t0mmyvyo!~tommyvyo@c-68-83-3-164.hsd1.nj.comcast.net] has joined #ruby
<yoklov>
how do people typically handle unit testing for programs which just perform IO
<yoklov>
i'm probably overthinking this.
<sdferfx>
Hi. I have to write an HTTP REST API in Ruby. Just a little one for now, like two calls. What do you recommend I use for this? Rails? I am new to the Ruby ecosystem.
<zaargy>
sinatra
<sdferfx>
but I don't really want to use Rails if I don't have to. I just get bad vibes from it.
<zaargy>
sdferfx: that was directed to you btw
<zaargy>
you want sinatra. it's like a five min job in sinatra.
<sdferfx>
zaargy, I saw it and have looked up Sinatra, it looks good, thanks
<sdferfx>
Just need to see how to specify different HTTP operations on a route and I'll be set ;)
Ownatik [Ownatik!~yoyoyoy@8-118.tr.cgocable.ca] has joined #ruby
jgrevich_ [jgrevich_!~jgrevich@pdpc/supporter/active/jgrevich] has joined #ruby
matthias_ [matthias_!~matthias@ipc-hosting.de] has joined #ruby
i8igmac [i8igmac!~quassel@c-67-185-190-112.hsd1.wa.comcast.net] has joined #ruby
gregorg [gregorg!~Greg@78.155.152.6] has joined #ruby
gregorg [gregorg!~Greg@unaffiliated/gregorg] has joined #ruby
zaargy [zaargy!~zaargy@adriana.stillidream.org] has joined #ruby
Faris2 [Faris2!~amnay@41.249.159.20] has joined #ruby
luckman212 [luckman212!~irc@pool-108-41-8-176.nycmny.fios.verizon.net] has joined #ruby
amerine [amerine!~mturner@67.204.184.82] has joined #ruby
nacmartin [nacmartin!~a@ppp-88-217-65-113.dynamic.mnet-online.de] has joined #ruby
hadees [hadees!~hadees@72-48-211-16.dyn.grandenetworks.net] has joined #ruby
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
jgrevich_ [jgrevich_!~jgrevich@137.110.41.159] has joined #ruby
jgrevich_ [jgrevich_!~jgrevich@pdpc/supporter/active/jgrevich] has joined #ruby
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby
jaywastaken [jaywastaken!~jaywastak@unaffiliated/jaywastaken] has joined #ruby
<Mosselman>
I am having errors in a ruby (sinatra) app: invalid byte sequence in US-ASCII