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/
akem [akem!~akem@unaffiliated/akem] has joined #ruby
djr__ [djr__!~djr@dsl-208-196.madisontelco.com] has joined #ruby
Azure [Azure!~azt@unaffiliated/azure] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
Azure [Azure!~azt@unaffiliated/azure] has joined #ruby
Natch| [Natch|!~natch@178.73.216.90] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
yakko [yakko!~quassel@201.86.191.125.dynamic.adsl.gvt.net.br] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
charlenopires [charlenopires!~quassel@186.194.13.186] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
d2dchat [d2dchat!~d2dchat@c-98-209-18-197.hsd1.mi.comcast.net] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
paissad [paissad!~paissad@89-92-16-151.hfc.dyn.abo.bbox.fr] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
axilla [axilla!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has joined #ruby
axilla [axilla!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has quit [#ruby]
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@pool-71-162-37-136.altnpa.east.verizon.net] has joined #ruby
dtaprl [dtaprl!~dtaprl@client-86-25-20-58.midd-bam-1.adsl.virginmedia.com] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
p0y [p0y!~p0y@112.210.111.50] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-123-50.columbus.res.rr.com] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
Karmaon [Karmaon!~john@gateway/tor-sasl/karmaon] has joined #ruby
cmasseraf [cmasseraf!~ColdFusio@187.106.195.233] has joined #ruby
dankest [dankest!~dankest@ip184-187-165-135.sb.sd.cox.net] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
replore_ [replore_!~replore@203.152.213.161.static.zoot.jp] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
mxweas_ [mxweas_!~max@c-24-7-45-147.hsd1.ca.comcast.net] has joined #ruby
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
Clordio [Clordio!~textual@c-174-52-72-79.hsd1.ut.comcast.net] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
mxweas_ [mxweas_!~max@c-24-7-45-147.hsd1.ca.comcast.net] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
pnegri [pnegri!~patrickne@177.33.239.35] has joined #ruby
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has quit [#ruby]
iamjarvo1 [iamjarvo1!~Adium@c-71-230-13-201.hsd1.nj.comcast.net] has joined #ruby
yakko [yakko!~quassel@201.86.191.125.dynamic.adsl.gvt.net.br] has joined #ruby
panterax [panterax!~panterax@31.176.143.173] has joined #ruby
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby
sdwrage [sdwrage!~sdwrage@237.sub-75-242-54.myvzw.com] has joined #ruby
panterax [panterax!~panterax@31.176.143.173] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb220-255-53-87.singnet.com.sg] has joined #ruby
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@96-25-91-77.war.clearwire-wmx.net] has joined #ruby
paissad [paissad!~paissad@89-92-16-151.hfc.dyn.abo.bbox.fr] has quit ["Leaving"]
luke-- [luke--!~luke--@ip-62-143-176-80.unitymediagroup.de] has joined #ruby
sdwrage [sdwrage!~sdwrage@237.sub-75-242-54.myvzw.com] has joined #ruby
jbw [jbw!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
Lord-Harlot [Lord-Harlot!~Serenity@adsl-77-86-93-224.karoo.KCOM.COM] has joined #ruby
misc-- [misc--!~misc@ip-202.4.79.66.sta.onestream.com.au] has joined #ruby
ryanf [ryanf!~revfitz@70-36-141-37.dsl.dynamic.sonic.net] has joined #ruby
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
niklasb [niklasb!~codeslay0@p5B310005.dip0.t-ipconnect.de] has joined #ruby
Zanacross [Zanacross!Serenity@adsl-77-86-93-224.karoo.KCOM.COM] has joined #ruby
ryanf [ryanf!~revfitz@70-36-141-37.dsl.dynamic.sonic.net] has joined #ruby
brian_ [brian_!~brian@87.112.149.96] has joined #ruby
QaDeS [QaDeS!~mklaus@frbg-5f730d12.pool.mediaWays.net] has joined #ruby
trend [trend!~trend@76.91.169.147] has joined #ruby
Pip [Pip!~Pip@host-85-156-66-217.spbmts.ru] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
kenyabob [kenyabob!~andy@c-76-115-128-127.hsd1.or.comcast.net] has joined #ruby
<kenyabob> new to ruby, want to subtract dates. Why is this giving me an error?
bradleymeck [bradleymeck!~bradleyme@216-188-224-223.dyn.grandenetworks.net] has joined #ruby
<ryanf> because you aren't supposed to use semicolons?
<ryanf> works fine for me in 1.9.3
<kenyabob> ah.
<davidpk> likewise, 1.9.3
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby
<kenyabob> Maybe its how outputting it - my output is age.strftime("%m/%d/%Y")
fulcan [fulcan!~brads@li186-148.members.linode.com] has joined #ruby
<kenyabob> Does subtracting time result in an integer, not a date object
<ryanf> yeah, a number
<ryanf> not an integer
<ryanf> the difference between two times/dates/datetimes is not a point in time
<ryanf> so it wouldn't make sense to represent it that way
DFectuoso [DFectuoso!~DFectuoso@fixed-203-141-49.iusacell.net] has joined #ruby
<kenyabob> I see!
<ryanf> what were you thinking the output should look like?
banister`sleep [banister`sleep!~baniseter@122.63.233.64] has joined #ruby
<ryanf> I mean, an age isn't a date, right?
<kenyabob> Nope
juarlex [juarlex!~juarlex@201.124.160.19] has joined #ruby
<kenyabob> Ive updated it with my output
<kenyabob> This gives me an internal server error
<ryanf> ah yeah that'll work, except
<ryanf> you can't concatenate non-strings onto a string
<kenyabob> I'm on 1.8.7
<ryanf> use interpolation
<ryanf> "<br/> She is #{age}"
<kenyabob> got it, I need to convert it
<kenyabob> I see
<ryanf> also that number is not what you want
<ryanf> it'll be like
<ryanf> seconds or milliseconds
<ryanf> not the kind of thing that you put in the sentence "She is #{age}"
<davidpk> seconds w/ floating point
<fulcan> ok, I am a graphics and bomips hater whom decided he finally needed to learn something web/graphic oriented in order to move forward. I dispise javascript and even after 2 semesters in java programming I still think it's trash. c++ and php/python have done me fine in the past. I gave jquery about 2 weeks and now throwing in the towel on that one. What's ruby like with graphical function? should I even try?
Doppp [Doppp!Doppp@unaffiliated/doppp] has joined #ruby
<fulcan> wow, ruby appears worse than jquery.
fulcan [fulcan!~brads@li186-148.members.linode.com] has quit [#ruby]
<kenyabob> ryanf: I essentially want a time object, so I can easily output if they are so many years old, or days old, etc
<ryanf> that guy's got it all figured out
<ryanf> ah yeah I'm not sure there's anything very helpful in stdlib for that
Asebolka [Asebolka!~Asebolka@c-174-59-146-170.hsd1.pa.comcast.net] has joined #ruby
<ryanf> activesupport (rails) maybe
<kenyabob> and you think its in seconds or milli
<ryanf> seconds
<ryanf> first answer looks ok, I think the only rails-specific thing in there is pluralize
<ryanf> which you can easily implement or work around
<kenyabob> Ah I see
philcrissman [philcrissman!~philcriss@c-174-53-217-149.hsd1.mn.comcast.net] has joined #ruby
Tick-Tock [Tick-Tock!~Tick-Tock@lunari.us] has joined #ruby
<kenyabob> ryanf - last question, what is the easy work around for bring in pluralize
nari [nari!~nari@2001:268:306:1:f2de:f1ff:fe55:2de0] has joined #ruby
<ryanf> (delta == 1) ? "#{delta} #{interval}" : "#{delta} #{interval}s"
<ryanf> tidy up to taste
<kenyabob> thx ryanf
d2dchat [d2dchat!~d2dchat@c-98-209-18-197.hsd1.mi.comcast.net] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
zulax [zulax!~radarwork@99-120-232-161.lightspeed.iplsin.sbcglobal.net] has joined #ruby
sdwrage [sdwrage!~sdwrage@237.sub-75-242-54.myvzw.com] has joined #ruby
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
AnarchoTroll [AnarchoTroll!~c@c-71-197-218-142.hsd1.wa.comcast.net] has joined #ruby
misc-- [misc--!~misc@ip-202.4.79.66.sta.onestream.com.au] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
end3r- [end3r-!~ender@ec2-107-22-14-168.compute-1.amazonaws.com] has joined #ruby
end3r- [end3r-!~ender@ec2-107-22-14-168.compute-1.amazonaws.com] has joined #ruby
gen0cide_ [gen0cide_!~Security@Wilkins3.static.monkeybrains.net] has joined #ruby
Fishy [Fishy!~fleisch@pool-108-40-0-161.bltmmd.fios.verizon.net] has joined #ruby
DarthGandalf [DarthGandalf!~Vetinari@znc/developer/DarthGandalf] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
ben_alman [ben_alman!~cowboy@awesome.benalman.com] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@c-98-207-236-44.hsd1.ca.comcast.net] has joined #ruby
bradleymeck [bradleymeck!~bradleyme@216-188-224-223.dyn.grandenetworks.net] has joined #ruby
baroquebobcat [baroquebobcat!~nick@c-67-176-80-121.hsd1.co.comcast.net] has joined #ruby
DarthGandalf [DarthGandalf!~Vetinari@znc/developer/DarthGandalf] has joined #ruby
freelanceful [freelanceful!~jamesfend@71-87-186-172.dhcp.jcsn.tn.charter.com] has joined #ruby
<freelanceful> hey guys.. I need an input field called Skills to display the string split by commas
pigdude [pigdude!~tallen@li61-243.members.linode.com] has quit [#ruby]
michael_mbp [michael_mbp!~Marin@149.147.202.45] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@c-98-207-236-44.hsd1.ca.comcast.net] has joined #ruby
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
deeno [deeno!~walterb@pool-96-233-74-49.bstnma.fios.verizon.net] has joined #ruby
audy [audy!~audy@heyaudy.com] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
baroquebobcat [baroquebobcat!~nick@c-67-176-80-121.hsd1.co.comcast.net] has joined #ruby
sdwrage [sdwrage!~sdwrage@237.sub-75-242-54.myvzw.com] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
jerikl [jerikl!~justin@cpe-76-183-135-152.tx.res.rr.com] has joined #ruby
baroquebobcat [baroquebobcat!~nick@c-67-176-80-121.hsd1.co.comcast.net] has joined #ruby
sdwrage [sdwrage!~sdwrage@237.sub-75-242-54.myvzw.com] has joined #ruby
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
dku [dku!~dku@unaffiliated/dku] has joined #ruby
headius [headius!~headius@71-210-154-45.mpls.qwest.net] has joined #ruby
briandoll [briandoll!~briandoll@c-71-202-88-130.hsd1.ca.comcast.net] has joined #ruby
cconstantine [cconstantine!~cconstant@c-24-130-112-59.hsd1.ca.comcast.net] has joined #ruby
<cconstantine> I'm trying to apply a mask to an existing rmagick Image, and having a hard time with it. Has anyone done something like this?
josefig [josefig!~joseph@unaffiliated/josefig] has joined #ruby
achiu [achiu!~Adium@ip68-5-18-17.oc.oc.cox.net] has joined #ruby
C0deMaver1ck [C0deMaver1ck!~C0deMaver@adsl-98-95-11-230.jan.bellsouth.net] has joined #ruby
closedbracket [closedbracket!~closedbra@cpe-098-024-125-117.carolina.res.rr.com] has joined #ruby
dankest [dankest!~dankest@ip184-187-165-135.sb.sd.cox.net] has joined #ruby
banister`sleep [banister`sleep!~baniseter@115.189.240.118] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
axilla [axilla!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has joined #ruby
<C0deMaver1ck> any recommendations for an irc client library? Seems the only one (semi?)actively maintained is Yail
<banister`sleep> C0deMaver1ck: i think there's one called cinch
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
<dominikh> C0deMaver1ck: while Cinch is marketed as an irc bot framework, there's no reason you cannot use it for more generic, or other specific, IRC tasks.
<C0deMaver1ck> that's what I was just about to comment on lol
misc-- [misc--!~misc@202.171.160.4] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
maletor [maletor!~maletor@187.146.204.129] has joined #ruby
achiu [achiu!~Adium@ip68-5-18-17.oc.oc.cox.net] has joined #ruby
gianlucadv [gianlucadv!~gianlucad@host61-81-dynamic.245-95-r.retail.telecomitalia.it] has joined #ruby
mutewinter [mutewinter!~mutewinte@cpe-184-58-10-202.woh.res.rr.com] has joined #ruby
x0F__ [x0F__!~x0F@unaffiliated/x0f] has joined #ruby
mutewinter [mutewinter!~mutewinte@cpe-184-58-10-202.woh.res.rr.com] has joined #ruby
twock [twock!~twock@rrcs-24-227-222-61.sw.biz.rr.com] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
mensch [mensch!~mensch@c-174-62-210-182.hsd1.ma.comcast.net] has joined #ruby
Dexx1_ [Dexx1_!803667ec@gateway/web/freenode/ip.128.54.103.236] has joined #ruby
<Dexx1_> Is it hard for a beginner to setup ruby on rails on arch linux?
<Dexx1_> ie: Do I need a domain + hosting etc. to build a full fledged application
maletor [maletor!~maletor@189.164.80.87] has joined #ruby
sdwrage [sdwrage!~sdwrage@237.sub-75-242-54.myvzw.com] has joined #ruby
p1d_ [p1d_!~p1d@dslb-088-067-024-156.pools.arcor-ip.net] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
maletor_ [maletor_!~maletor@187.146.209.50] has joined #ruby
pnegri [pnegri!~patrickne@177.33.239.35] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
sdwrage [sdwrage!~sdwrage@237.sub-75-242-54.myvzw.com] has joined #ruby
rippa [rippa!~splitta@85.158.54.234] has joined #ruby
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
ashleyis [ashleyis!~ashleyis@eth4780.nsw.adsl.internode.on.net] has joined #ruby
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.46] has joined #ruby
counterbeing [counterbeing!~textual@c-24-4-206-189.hsd1.ca.comcast.net] has joined #ruby
igotnolegs [igotnolegs!~igotnoleg@75-162-83-166.slkc.qwest.net] has joined #ruby
lahwran [lahwran!lahwran@unaffiliated/lahwran] has quit [#ruby]
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
<dagnachewa> hi all
<hkhalid> hi
<hkhalid> welcome back
<dagnachewa> I installed pry for global after issuing rvm gemset use global andf then I did gem install pry I got this http://pastie.org/3193145
<Banistergalaxy> dagnachewa: pry is weird
<dagnachewa> ok
<hkhalid> I'm a cybernetic organism. Living tissue over a metal endoskeleton.
<dagnachewa> Banistergalaxy, from that info it's only the doc having issue right
<Banistergalaxy> dagnachewa what info? Repaste
j3r0m3 [j3r0m3!~j3r0m3@c-76-105-54-37.hsd1.ca.comcast.net] has joined #ruby
<Banistergalaxy> dagnachewa: yes just doc pry will still work
j3r0m3 [j3r0m3!~j3r0m3@c-76-105-54-37.hsd1.ca.comcast.net] has quit [#ruby]
<dagnachewa> :)
<Banistergalaxy> dagnachewa: Does or work
<Banistergalaxy> It
<dagnachewa> yes it works
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
<Banistergalaxy> dagnachewa: why do you like it
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
robert___ [robert___!~hellspawn@static-96-254-212-18.tampfl.fios.verizon.net] has joined #ruby
<dagnachewa> Banistergalaxy, indentation :)
<dagnachewa> have to go sleep work tomorrow
<shevy> what
<shevy> sleep at work tomorrow?!
<shevy> who would have thought that indentation becomes a killer feature ;)
ryanf [ryanf!~revfitz@adsl-67-119-12-100.dsl.snfc21.pacbell.net] has joined #ruby
jergason [jergason!~jergason@c-67-182-209-164.hsd1.ut.comcast.net] has joined #ruby
maletor [maletor!~maletor@187.146.209.50] has joined #ruby
sonkei [sonkei!~sonkei@d14-69-26-171.try.wideopenwest.com] has joined #ruby
Kichael [Kichael!~Kichael@70-36-49-167.dyn.novuscom.net] has joined #ruby
randym_ [randym_!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
omegapunkt [omegapunkt!~omegapunk@125-236-232-13.adsl.xtra.co.nz] has joined #ruby
sonkei [sonkei!~sonkei@d14-69-26-171.try.wideopenwest.com] has joined #ruby
lorenzo__ [lorenzo__!~quassel@217.33.106.3] has joined #ruby
Aaaarg [Aaaarg!~Arthur@121-74-36-221.telstraclear.net] has joined #ruby
omegapunkt [omegapunkt!~omegapunk@125-236-232-13.adsl.xtra.co.nz] has quit [#ruby]
yakko [yakko!~quassel@201.86.191.125.dynamic.adsl.gvt.net.br] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
perryh [perryh!~root@unaffiliated/perry753] has joined #ruby
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
bradleymeck [bradleymeck!~bradleyme@216-188-224-223.dyn.grandenetworks.net] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
perryh [perryh!~root@unaffiliated/perry753] has quit [#ruby]
uxp [uxp!~uxp@hplogsdon.net] has joined #ruby
ikaros [ikaros!~ikaros@dslb-188-107-221-154.pools.arcor-ip.net] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
banister`sleep [banister`sleep!~baniseter@118.82.185.158] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
nooodl [nooodl!~nooodl@91.177.218.85] has joined #ruby
yakko [yakko!~quassel@201.86.191.125.dynamic.adsl.gvt.net.br] has joined #ruby
vraa_ [vraa_!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
djdb [djdb!~digitalbo@linux.minsk.tutby.com] has joined #ruby
Lord-Harlot [Lord-Harlot!Serenity@adsl-77-86-93-224.karoo.KCOM.COM] has joined #ruby
cjs [cjs!~cjs@41.98.156.220.st.bbexcite.jp] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby
ksinkar [ksinkar!~ksinkar@123.201.117.198] has joined #ruby
sacred_coder [sacred_coder!~rambaho@202.3.77.231] has joined #ruby
<sacred_coder> hello
<sacred_coder> daddy's home
fixl [fixl!~fixl@124-148-147-209.dyn.iinet.net.au] has joined #ruby
<banister`sleep> sacred_coder: do you think he'll tell you not to look at him
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
p1d [p1d!~p1d@ns1.vonaffenfels.de] has joined #ruby
GoBin [GoBin!~GoBin@193.175.11.148] has joined #ruby
Sliker [Sliker!~ponies@87.114.82.184] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby
uaa [uaa!~damascene@unaffiliated/uaa] has joined #ruby
Locke23rus [Locke23rus!~quassel@128-70-1-227.broadband.corbina.ru] has joined #ruby
SamWhited [SamWhited!~SamWhited@c-71-56-64-198.hsd1.ga.comcast.net] has joined #ruby
tonini [tonini!~zastav@edge.garaio.com] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@c-76-105-54-37.hsd1.ca.comcast.net] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
yxhuvud [yxhuvud!mongo@h-85-82.a212.priv.bahnhof.se] has joined #ruby
thone_ [thone_!~thone@g226049031.adsl.alicedsl.de] has joined #ruby
pietro [pietro!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby
senny [senny!~senny@edge.garaio.com] has joined #ruby
stoffus [stoffus!~stoffus@2001:9b0:1:dead:129a:ddff:fe58:6835] has joined #ruby
senny [senny!~senny@edge.garaio.com] has joined #ruby
amar_key [amar_key!u2605@gateway/web/irccloud.com/x-lvdqxvpugnmieumd] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
zommi [zommi!quassel@nat/ibm/x-tydnpnmvvjbbpwai] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
Spockz` [Spockz`!~Spockz@21pc198.sshunet.nl] has joined #ruby
luckyruby [luckyruby!~luckyruby@125-187.96-97.tampabay.res.rr.com] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
mfridh [mfridh!~RokSteady@pdpc/supporter/active/roksteady] has joined #ruby
<sacred_coder> hola
<wallerdev> hola
<sacred_coder> whos this?
<wallerdev> ¿hablas español?
<sacred_coder> no
ghosTM55 [ghosTM55!~user@li279-245.members.linode.com] has joined #ruby
<wallerdev> yeah me either
<sacred_coder> i know only 'hola'
<wallerdev> what's up?
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
<sacred_coder> where u from?
<sacred_coder> i'm good
<sacred_coder> breaing head on my ROR app
<wallerdev> michigan
<sacred_coder> brakong*
<wallerdev> you?
<sacred_coder> india
<wallerdev> cool
<wallerdev> yeah not too many people awake in the US now
<sacred_coder> haha
<sacred_coder> then wat abt u?
<sacred_coder> coding?
ech0b1nary [ech0b1nary!~EchoBinar@iad-69-171-176-209.evdo.leapwireless.net] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
<wallerdev> just browsing hacker news
JohnBat26 [JohnBat26!~Eugene@89.175.77.79] has joined #ruby
mikepack [mikepack!~mikepack@c-174-51-77-22.hsd1.co.comcast.net] has joined #ruby
JohnBat26 [JohnBat26!~Eugene@89.175.77.79] has joined #ruby
Sliker [Sliker!~ponies@87.114.82.184] has joined #ruby
Barakas [Barakas!~v@77.242.201.52] has joined #ruby
jmuniz [jmuniz!~jmuniz@pool-173-77-21-193.nycmny.east.verizon.net] has joined #ruby
batlock666 [batlock666!~quassel@bvderbau.ugent.be] has joined #ruby
rknLA [rknLA!~rknLA@76-218-76-57.lightspeed.irvnca.sbcglobal.net] has joined #ruby
ph^ [ph^!~ph^@79.135.7.162] has joined #ruby
<wereHamster> is rubygems not part of ruby? Do I need to install it separately?
alup [alup!~alup@193.92.123.5] has joined #ruby
<rknLA> wereHamster: yes.
<wereHamster> wheres' the rubygems homepage where I can see what the latest version is?
austinbv [austinbv!~austinbv@65-134.127-70.tampabay.res.rr.com] has joined #ruby
<wereHamster> ah, looks like there's still someone using rubyforge :-/
<wereHamster> is http://rubyforge.org/frs/?group_id=126 the official dowload location?
<rknLA> i have no fucking clue.
<rknLA> did you try googling it?
rknLA [rknLA!~rknLA@76-218-76-57.lightspeed.irvnca.sbcglobal.net] has quit [#ruby]
<austinbv> did you try binging it?
<banister`sleep> wereHamster: are you on ruby 1.8 or ruby 1.9 ?
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby
<dkannan> wereHamster: u can see the latest version at http://rubygems.org/
<wereHamster> due to the unfortunate naming of the project and a certain website, it's quite difficult to find information about the former
<wereHamster> banister`sleep: 1.9
badabim [badabim!~badabim@c-98-207-235-20.hsd1.ca.comcast.net] has joined #ruby
<banister`sleep> wereHamster: if youre on 1.9 then rubygems comes preinstalled
<sacred_coder> nyone suggest good tutorial for ruby for starttes
<rippa> ruby koans
<bikcmp> irb
<sacred_coder> k
<sacred_coder> will have a look at them
<dkannan> +1 for ruby koans
x8r [x8r!~dwight@swarm.60x.be] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
<wallerdev> lol
pi3r [pi3r!~pi3r@LSt-Amand-152-32-39-189.w80-11.abo.wanadoo.fr] has joined #ruby
Deiu [Deiu!~deiu@unaffiliated/deiu] has joined #ruby
<banister`sleep> bikcmp: pry is better, and it's dear to my heart
<bikcmp> pry? :p
* bikcmp personally prefers just using python
<bikcmp> but yeah
<bikcmp> this is #ruby.
<bikcmp> lol
mxweas_ [mxweas_!~max@c-24-7-45-147.hsd1.ca.comcast.net] has joined #ruby
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby
txdv [txdv!~unreal@78.60.233.29] has joined #ruby
prtksxna [prtksxna!~prtksxna@27.7.18.120] has joined #ruby
AlecTaylor [AlecTaylor!~alectaylo@unaffiliated/alectaylor] has joined #ruby
<AlecTaylor> Open-source or closed-source for SaaS? - http://programmers.stackexchange.com/q/130341
<banister`sleep> bikcmp: http://pry.github.com
<bikcmp> nice
Shrink [Shrink!sgupta@nat/redhat/x-rrclbmyrcudpksai] has joined #ruby
Shrink [Shrink!sgupta@redhat/shrink] has joined #ruby
gianlucadv [gianlucadv!~gianlucad@host32-80-dynamic.44-79-r.retail.telecomitalia.it] has joined #ruby
RudyValencia [RudyValencia!me@unaffiliated/rudyvalencia] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
nd____ [nd____!~nd@mnhm-4d01afc8.pool.mediaWays.net] has joined #ruby
xec [xec!~xec@188.95.241.142] has joined #ruby
pen [pen!~pen@ilabps.csie.ntu.edu.tw] has joined #ruby
cyne [cyne!~jack@ip211-182-212-87.adsl2.static.versatel.nl] has joined #ruby
alem0lars [alem0lars!~alem0lars@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
gianlucadv [gianlucadv!~gianlucad@host32-80-dynamic.44-79-r.retail.telecomitalia.it] has joined #ruby
oddmunds [oddmunds!~oddmunds@s21-04214.dsl.no.powertech.net] has joined #ruby
trivol [trivol!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
Ammar01 [Ammar01!~hassaa10@gatek.thls.bbc.co.uk] has joined #ruby
ph^_ [ph^_!~ph^@79.135.7.171] has joined #ruby
Zanacross [Zanacross!~Serenity@adsl-178-78-79-119.karoo.kcom.com] has joined #ruby
shevy2 [shevy2!~shevy@178-191-255-217.adsl.highway.telekom.at] has joined #ruby
<AlecTaylor> !paste
ephemerian [ephemerian!~ian@82-69-1-248.dsl.in-addr.zen.co.uk] has joined #ruby
bastilian [bastilian!~bastilian@chello213047077012.23.11.vie.surfer.at] has joined #ruby
* AlecTaylor opened up the discussion over whether I should open-source my SaaS: http://openclosedsource.wikia.com
bburhans [bburhans!bburhans@freenode/staff/bburhans] has joined #ruby
jbpros [jbpros!~jbpros@d515285E6.access.telenet.be] has joined #ruby
zxiest [zxiest!zxiest@213.204.65.96] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
mklappstuhl [mklappstuhl!~mklappstu@p5B2C4DD9.dip.t-dialin.net] has joined #ruby
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has joined #ruby
<sacred_coder> chammak challo
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
ChampS666 [ChampS666!~ChampS@p54B4D99E.dip.t-dialin.net] has joined #ruby
pen [pen!~pen@dhcp1.csie.ntu.edu.tw] has joined #ruby
probst [probst!~probst@bumblebee.cl.cam.ac.uk] has joined #ruby
GoBin [GoBin!~GoBin@193.175.11.148] 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
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
EddieS [EddieS!~ed@212.59.167.161] has joined #ruby
florent_solt [florent_solt!~Adium@78.109.80.22] has joined #ruby
Guedes [Guedes!~guedes@189.31.65.14] has joined #ruby
Guedes [Guedes!~guedes@unaffiliated/guedes] has joined #ruby
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby
mark_ [mark_!~mark@75-25-138-103.lightspeed.plalca.sbcglobal.net] has joined #ruby
<hemanth> sacred_coder, kamal reddy
geaif [geaif!~geaif@xdsl-188-155-129-176.adslplus.ch] has joined #ruby
cyne [cyne!~jack@ip211-182-212-87.adsl2.static.versatel.nl] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
workmad3 [workmad3!~workmad3@cspool114.cs.man.ac.uk] has joined #ruby
Guedes [Guedes!~guedes@unaffiliated/guedes] has joined #ruby
justfielding1 [justfielding1!~justfield@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
skipper [skipper!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
jaykub_ [jaykub_!~jaykub@ip68-12-204-131.ok.ok.cox.net] has joined #ruby
Karmaon [Karmaon!~john@gateway/tor-sasl/karmaon] has joined #ruby
Squarepy [Squarepy!~Squarepy@wcw-staff-214-78.wireless.uva.nl] has joined #ruby
pen [pen!~pen@wlan9.cc.ntu.edu.tw] has joined #ruby
crazed_ [crazed_!~crazed@2607:f2f8:af50::2] has joined #ruby
Squarepy [Squarepy!~Squarepy@unaffiliated/squarepy] has joined #ruby
robert_ [robert_!~hellspawn@static-96-254-212-18.tampfl.fios.verizon.net] has joined #ruby
robert_ [robert_!~hellspawn@objectx/robert] has joined #ruby
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has joined #ruby
zakwilson [zakwilson!~quassel@97-117-185-243.phnx.qwest.net] has joined #ruby
psino_ [psino_!~psino@unaffiliated/psino] has joined #ruby
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has quit [#ruby]
jhulten_ [jhulten_!~jhulten@li219-193.members.linode.com] has joined #ruby
swistak35 [swistak35!~rlasocha@s21.linuxpl.com] has joined #ruby
andynu_ [andynu_!~andynu@ich.thy.om.orpho.us] has joined #ruby
pygmalion [pygmalion!~pygmalion@pyg8.com] has joined #ruby
caveat-_ [caveat-_!hoax@gateway/shell/bshellz.net/x-ixzrttsamlntqiyi] has joined #ruby
tommylom1ykins [tommylom1ykins!~tg551@milan.cs.york.ac.uk] has joined #ruby
Koven [Koven!kovensky@abraxo.bluebottle.net.au] has joined #ruby
Sigma00_ [Sigma00_!~freenode@thankyouforhelpingushelpyouhelpusall.net] has joined #ruby
shachaf_ [shachaf_!~shachaf@ip24.67-202-82.static.steadfastdns.net] has joined #ruby
nlko_ [nlko_!~user@li59-24.members.linode.com] has joined #ruby
karinsof1a [karinsof1a!~s@signo.lha.sgsnet.se] has joined #ruby
Muz_ [Muz_!~muz@last.fm/moose/Muz] has joined #ruby
Jb____ [Jb____!~jb@ks364797.kimsufi.com] has joined #ruby
jakky_ [jakky_!jakk@motherfucking.ddosking.org] has joined #ruby
MekkisFreenode_ [MekkisFreenode_!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
pooja [pooja!u4977@gateway/web/irccloud.com/x-woplzknvsfjexywv] has joined #ruby
xxi_ [xxi_!~ixx@64.20.241.94] has joined #ruby
jbpros [jbpros!~jbpros@d515285E6.access.telenet.be] has joined #ruby
nat2610 [nat2610!~nfelsen@74-85-144-253.onlive.net] has joined #ruby
ping-pong [ping-pong!~qwerty@212-30-218-200.static.simnet.is] has joined #ruby
eeadc [eeadc!fritz@2a01:4f8:101:2a3:0:bc28:b2a8:4] has joined #ruby
SirFunk [SirFunk!SirFunk@2600:3c03::f03c:91ff:fe93:11b3] has joined #ruby
_class_ [_class_!~class@99-105-56-217.lightspeed.sntcca.sbcglobal.net] has joined #ruby
gianlucadv [gianlucadv!~gianlucad@host32-80-dynamic.44-79-r.retail.telecomitalia.it] has joined #ruby
cola_zero [cola_zero!~cola_zero@www5054u.sakura.ne.jp] has joined #ruby
sixteneighty [sixteneighty!~buk@eridanus.uberspace.de] has joined #ruby
Drakevr [Drakevr!~null@drakevr.gr] has joined #ruby
stdcall [stdcall!~scriper@181.208.73.94.ip.orionnet.ru] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
__root__ [__root__!~Scalable@li252-14.members.linode.com] has joined #ruby
tomaw [tomaw!tom@freenode/staff/tomaw] has joined #ruby
Drakevr [Drakevr!~null@unaffiliated/drakevr] has joined #ruby
michael_mbp_ [michael_mbp_!~Marin@62.215.214.4] has joined #ruby
Elfix [Elfix!elfix@wikipedia/pdpc.21for7.elfix] has joined #ruby
peterhellberg [peterhellberg!~peterhell@213.115.122.2] has joined #ruby
pietro_ [pietro_!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
notbrent [notbrent!u5121@gateway/web/irccloud.com/x-vdnklupqbfpxejmf] has joined #ruby
pietro__ [pietro__!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
pen [pen!~pen@wl059.cc.ntu.edu.tw] has joined #ruby
pencilcheck [pencilcheck!~pen@wlan14.cc.ntu.edu.tw] has joined #ruby
Mission-Critical [Mission-Critical!~MissionCr@unaffiliated/missioncritical] has joined #ruby
pen [pen!~pen@wl059.cc.ntu.edu.tw] has joined #ruby
closedbracket [closedbracket!~closedbra@cpe-098-024-125-117.carolina.res.rr.com] has joined #ruby
pietro_ [pietro_!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
Barakas [Barakas!~v@82.220.1.196] has joined #ruby
BrianE [BrianE!~brian@188-220-10-235.zone11.bethere.co.uk] has joined #ruby
Milossh [Milossh!~milos@93-87-193-8.dynamic.isp.telekom.rs] has joined #ruby
<Milossh> hey; I have problems with passenger and apache on macosx xampp. I have installed it properly, but I get "[notice] child pid 7169 exit signal Bus error (10)" whenever I load the webpage
<Milossh> no other errors so far. I have checked, and PassengerRoot is what's making probs. If I uncomment that in apache conf, everything loads just fine(not the app I want to run via passenger, but apache works- I can't load anything if I leave it)
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
eighty4 [eighty4!~eighty4@unaffiliated/eighty4] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
ph^ [ph^!~ph^@79.135.7.162] has joined #ruby
josephwilk [josephwilk!~josephwil@109.231.237.58] has joined #ruby
nooodl [nooodl!~nooodl@91.177.218.85] has joined #ruby
panterax [panterax!~panterax@31.176.133.188] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
BrianE [BrianE!~brian@188-220-10-235.zone11.bethere.co.uk] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
dennda [dennda!~dennda@ubuntu/member/dennda] has joined #ruby
mr-green [mr-green!~mr-green@122.164.183.37] has joined #ruby
<mr-green> I am getting a number from the user
<mr-green> if the user inputs anything other than a number, I have to prompt them to give me a number
<mr-green> how do I check for that?
<mr-green> I tried if(input.class != (Fixnum||Bignum)
<mr-green> puts "Enter a number"
<mr-green> that is not working
becom33 [becom33!~becom33@112.135.199.41] has joined #ruby
<becom33> from a string like this "test cap lol123" how can remove "lol123" and get "test cap" as a output / I know I should use regex , but bit confused
<rippa> mr-green: input is always a string
<rippa> use String#to_i
<peterhellberg> becom33: "test cap lol123".gsub.(' lol123', '') :)
fermion [fermion!~textual@venkman.brightcove.com] has joined #ruby
<mr-green> rippa: okay I'll try that. thank you!
<rippa> mr-green: or use Kernel#Integer
<becom33> peterhellberg: wait lemme try that out
<mr-green> what is Kernel#Integer?
<mr-green> I am sorry, but I am very new to this
<rippa> method
<mr-green> I see.
fixl [fixl!~fixl@124-148-147-209.dyn.iinet.net.au] has joined #ruby
<mr-green> and how should I use Kernel#Integer
<mr-green> ?
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
<peterhellberg> becom33: That would return "test cap" _if_ you always get "lol123" in the string that is
<becom33> peterhellberg: Im getting a error test.rb:2: syntax error, unexpected ',', expecting $end
<becom33> puts "test cap lol123".gsub.(' lol123', '')
<peterhellberg> Heh, oops… remove the dot in "gsub.("
<becom33> peterhellberg: it works :)
<mr-green> rippa: I used string#to_i, but 0 is also a valid integer. i am calculating factorial. so if I input a string, the factorial is displayed as 0.
<rippa> mr-green: Integer(string)
<rippa> if it's not a valid number it'ss raise an exception
<rippa> *'ll
echobinary [echobinary!~EchoBinar@iad-69-171-176-56.evdo.leapwireless.net] has joined #ruby
vjacob [vjacob!~vjacob@94-195-174-165.zone9.bethere.co.uk] has joined #ruby
<mr-green> rippa: my input variable is called input
<mr-green> so I do input(string)?
<rippa> Integer(input)
<mr-green> oh ok
<mr-green> that makes more sense
<mr-green> thank you so much!
<mr-green> but if input is always a string, it will always raise an exception
<rippa> no
<rippa> Integer("10") #=> 10
<mr-green> oh
<mr-green> interesting
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
<mr-green> thank you rippa!
iamjarvo [iamjarvo!~Adium@c-71-230-13-201.hsd1.nj.comcast.net] has joined #ruby
<mr-green> one more question, if I take in the input as 10.4, will Integer(input) raise an exception?
<rippa> yes
<mr-green> is there a Float(input) also?
<rippa> yes
<mr-green> oh okay
<mr-green> that clears it up
<mr-green> Thank you!
<mr-green> so even if someone enters something like 10.4 when I am expecting an integer,
<mr-green> I can do Integer(Float(input)) to calculate the factorial for the integer part, ie, for 10. Is that correct?
<mr-green> let me try that before you answer.
<mr-green> thank you rippa!
canton8 [canton8!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
<rippa> np
<rippa> or Float(input).to_i
Raynes [Raynes!~macro@unaffiliated/raynes] has joined #ruby
<mr-green> oh ya. I didn't think of that
<mr-green> rippa: thanks again!
<mr-green> rippa: this is good, but I'd like to be able to give the user another chance to input a valid number
faber [faber!~faber@adsl-ull-210-195.50-151.net24.it] has joined #ruby
<mr-green> The problem with rasing the exception is that it exits the program
<rippa> catch it
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
<rippa> read about handling exceptions in ruby
<mr-green> oh okay
<mr-green> will do that
<rippa> one-liner would be something like
<mr-green> will report back in a while then. thank you!
<rippa> Integer("input") rescue puts "try again"
<mr-green> ah
<mr-green> yes
trivol [trivol!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
<mr-green> I was just reading about rescue
Hiei_ [Hiei_!Hiei_@host197-38-dynamic.41-79-r.retail.telecomitalia.it] has joined #ruby
trivol_ [trivol_!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
ph^_ [ph^_!~ph^@79.135.7.171] has joined #ruby
pietro_ [pietro_!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
fridim [fridim!~fridim@2a01:e35:2ece:f2d0:223:4eff:fe6c:c754] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
<mr-green> rippa: are you there?
<rippa> yes
<mr-green> I entered this code now to handle the exception
<mr-green> while(number)
<mr-green> begin
<mr-green> break if (Float(Integer(number)))
<mr-green> rescue
<mr-green> puts"Please enter only numbers"
<mr-green> number = gets
<mr-green> end
ech0b1nary [ech0b1nary!~EchoBinar@iad-69-171-176-56.evdo.leapwireless.net] has joined #ruby
<mr-green> that is breaking from the while loop, but it is not executing the code after it
nari [nari!~nari@p42fa56.totrnt01.ap.so-net.ne.jp] has joined #ruby
trivol [trivol!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
<rippa> mr-green: one more end
Guest53860 [Guest53860!~ponies@87.114.82.184] has joined #ruby
<mr-green> oh damn
<mr-green> you are right
<mr-green> so stupid of me
<mr-green> thanks!
DeeJayTwo [DeeJayTwo!~deejay2@office.abi.ca] has joined #ruby
<mr-green> rippa: Thank you for all your help. My program is running perfectly now!
DMKE [DMKE!~DMKE@pdpc/supporter/student/dmke] has joined #ruby
trivol [trivol!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
<banister`sleep> mr-green: buy him some krokodil in return
<mr-green> what's that?
trivol [trivol!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
<mr-green> lol
<mr-green> He is too intelligent.
<mr-green> I would never do that to him :D
<mr-green> to you*
pencilcheck [pencilcheck!~pen@ilabps.csie.ntu.edu.tw] has joined #ruby
DarthGandalf [DarthGandalf!~Vetinari@znc/developer/DarthGandalf] has joined #ruby
palcu [palcu!~alex@89.122.187.223] has joined #ruby
banister`sleep [banister`sleep!~baniseter@118.82.185.158] has joined #ruby
virunga [virunga!~virunga@151.64.53.185] has joined #ruby
hinogi [hinogi!~Stefan@mnsr-d9bf48eb.pool.mediaWays.net] has joined #ruby
hinogi [hinogi!~Stefan@facade/contributor/hinogi] has joined #ruby
<Hiei_> how horrifying
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
maletor [maletor!~maletor@187.146.209.50] has joined #ruby
ChampS666 [ChampS666!~ChampS@141.32.27.21] has joined #ruby
nicoulaj [nicoulaj!~nicoulaj@pas38-5-82-244-59-208.fbx.proxad.net] has joined #ruby
jergason [jergason!~jergason@c-67-182-209-164.hsd1.ut.comcast.net] has joined #ruby
mklappst_ [mklappst_!~mklappstu@p5B2C5504.dip.t-dialin.net] has joined #ruby
maletor [maletor!~maletor@187.146.209.50] has joined #ruby
faber [faber!~faber@ppp-188-12.26-151.libero.it] has joined #ruby
jbpros [jbpros!~jbpros@d515285E6.access.telenet.be] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
pietro__ [pietro__!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
<MarcWeber> Tasks.r(action, Ramaze::Helper::CGI.url_encode(title))
<MarcWeber> How to find out who or what title is and what it defines?
<MarcWeber> Making a typo causes ruby to print local var or method.
p0y [p0y!~p0y@112.210.67.240] has joined #ruby
<MarcWeber> Now How do I fund out whether its a mehtod or a local var?
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-123-50.columbus.res.rr.com] has joined #ruby
<Tasser> MarcWeber, defined(<variable here>)
<Tasser> ehh defined?()
<MarcWeber> thx
CreativeEmbassy [CreativeEmbassy!~CreativeE@pool-71-162-37-136.altnpa.east.verizon.net] has joined #ruby
<Tasser> MarcWeber, beware, defined?() is syntax, not a method.
<Tasser> MarcWeber, it's similar to sizeof in C
norex [norex!~quassel@41-133-103-157.dsl.mweb.co.za] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
CodyMaverick [CodyMaverick!~cody@80.249.82.205] has joined #ruby
CodyMaverick [CodyMaverick!~cody@80.249.82.205] has joined #ruby
Squarepy [Squarepy!~Squarepy@wcw-staff-214-78.wireless.uva.nl] has joined #ruby
DMKE [DMKE!~DMKE@pdpc/supporter/student/dmke] has joined #ruby
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
ph^ [ph^!~ph^@79.135.7.171] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
ph^_ [ph^_!~ph^@79.135.7.171] has joined #ruby
LMolr [LMolr!~quassel@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
ph^ [ph^!~ph^@79.135.7.162] has joined #ruby
chickenflu [chickenflu!~chickenfl@59.92.62.247] has joined #ruby
luke-- [luke--!~luke--@ip-62-143-176-80.unitymediagroup.de] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
IPGlider [IPGlider!~ipglider@62.83.8.224.dyn.user.ono.com] has joined #ruby
kf8a [kf8a!~kf8a@user-33c730.user.msu.edu] has joined #ruby
ikaros [ikaros!~ikaros@dslb-188-107-221-154.pools.arcor-ip.net] has joined #ruby
hkhalid [hkhalid!hkhalid@pool-173-79-49-114.washdc.fios.verizon.net] has joined #ruby
florent_solt [florent_solt!~Adium@78.109.80.22] has quit [#ruby]
Natch| [Natch|!~natch@178.73.216.157] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@pool-71-162-37-136.altnpa.east.verizon.net] has joined #ruby
dekom [dekom!~dekom@128.237.237.99] has joined #ruby
bnewton [bnewton!~bnewton@cpe-66-68-94-56.austin.res.rr.com] has joined #ruby
emocakes [emocakes!~om@189-11-46-97.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
linopolus [linopolus!~linopolus@hektor.lnpls.de] has joined #ruby
<linopolus> Hi
RomD` [RomD`!~Roman@nrbg-4d077090.pool.mediaWays.net] has joined #ruby
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
tommyvyo_ [tommyvyo_!~tommyvyo@38.123.129.115] has joined #ruby
<linopolus> I want to install iconv gem on freebsd, but it won't compile it's extension because the search path doesn't include /usr/local/lib/, where iconv is located. How do I tell gem to search there? Logs are here: http://pastie.org/3194849 http://pastie.org/3194964
becom33 [becom33!~becom33@112.135.199.41] has quit [#ruby]
zalesz [zalesz!~zalesz@82.139.135.146] has joined #ruby
Squarepy [Squarepy!~Squarepy@unaffiliated/squarepy] has joined #ruby
jbpros [jbpros!~jbpros@d515285E6.access.telenet.be] has joined #ruby
pencilcheck [pencilcheck!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
Deiu [Deiu!~deiu@unaffiliated/deiu] has quit ["Leaving"]
nooodl [nooodl!~nooodl@91.177.218.85] has joined #ruby
Sliker [Sliker!~ponies@87.114.82.184] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
chickenflu [chickenflu!~chickenfl@59.92.62.247] has quit [#ruby]
robert_ [robert_!~hellspawn@objectx/robert] has joined #ruby
tk_ [tk_!~tk@p083005.doubleroute.jp] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
LowKey [LowKey!rhel@unaffiliated/lowkey] has joined #ruby
nari [nari!~nari@p42fa56.totrnt01.ap.so-net.ne.jp] has joined #ruby
<MarcWeber> Is ruby-debug19 the plugin you recommend for debugging or just require 'debug' using latest ruby 1.9.3?
<MarcWeber> linopolus: try --help. Often additional args like --with-iconv="/usr/local" or such are supported - when the build fails it prints such a message ocassionally.
fortysixandtwo [fortysixandtwo!~fortysixa@77.40.186.166] has joined #ruby
cyne [cyne!~jack@ip211-182-212-87.adsl2.static.versatel.nl] has joined #ruby
<MarcWeber> Mm iconv doesn't print it.
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
prs` [prs`!~user@138.82-134-78.bkkb.no] has joined #ruby
iaj [iaj!~iaj@static.136.47.47.78.clients.your-server.de] has joined #ruby
niklasb [niklasb!~codeslay0@p5B310DB6.dip0.t-ipconnect.de] has joined #ruby
<prs`> running out of heapspace when downloading a file like this: https://gist.github.com/1621007 is there a way to stream the file to disk?
<prs`> using jruby
<prs`> should i perhaps to it the other way around?
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby
ConstantineXVI [ConstantineXVI!~constanti@216-24-48-34.ip.win.net] has joined #ruby
centipedefarmer [centipedefarmer!~centipede@71-34-161-120.desm.qwest.net] has joined #ruby
ConstantineXVI [ConstantineXVI!~constanti@216-24-48-34.ip.win.net] has joined #ruby
bier [bier!~bier@p57999244.dip.t-dialin.net] has joined #ruby
jensn [jensn!~Jens@ip233-65.wireless.lu.se] has joined #ruby
kpshek [kpshek!~kpshek@159.140.254.109] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
michael_mbp_ [michael_mbp_!~Marin@149.147.187.18] has joined #ruby
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
mkscrg [mkscrg!~mkscrg@pool-108-41-134-165.nycmny.fios.verizon.net] has joined #ruby
iamjarvo [iamjarvo!~Adium@c-68-80-200-61.hsd1.pa.comcast.net] has joined #ruby
tesmar [tesmar!~tesmar@rrcs-70-62-109-131.midsouth.biz.rr.com] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
<linopolus> MarcWeber: so you don't know how to do it?
C0deMaver1ck [C0deMaver1ck!~C0deMaver@adsl-74-240-4-78.jan.bellsouth.net] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
jay_zawrotny [jay_zawrotny!~Jay@c-71-205-218-131.hsd1.mi.comcast.net] has joined #ruby
d2dchat [d2dchat!~d2dchat@c-98-209-18-197.hsd1.mi.comcast.net] has joined #ruby
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby
alem0lars [alem0lars!~alem0lars@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
Paladin [Paladin!~paladin@S0106000c41cd3004.vs.shawcable.net] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
philcrissman [philcrissman!~philcriss@206.57.45.116] has joined #ruby
LMolr [LMolr!~quassel@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
jmorton [jmorton!~jmorton@pool-108-15-39-246.bltmmd.fios.verizon.net] has joined #ruby
mengu [mengu!~mengu@78.188.203.234] has joined #ruby
davidpk [davidpk!~r00t@88-109-108-190.dynamic.dsl.as9105.com] has joined #ruby
Wilhelm_ [Wilhelm_!~textual@oyt234.internetdsl.tpnet.pl] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@81.130.126.235] has joined #ruby
user__ [user__!~akem@253.195.84.79.rev.sfr.net] has joined #ruby
jwmann [jwmann!~Adium@modemcable242.110-201-24.mc.videotron.ca] has joined #ruby
jwmann [jwmann!~Adium@modemcable242.110-201-24.mc.videotron.ca] has joined #ruby
<MarcWeber> linopolus: At the moment: no. You may vant to have a look at the build directory. It often contains a README or some additional information.
<linopolus> where can I find it?
jbpros [jbpros!~jbpros@d515285E6.access.telenet.be] has joined #ruby
canton8 [canton8!~canton7@188-222-105-229.zone13.bethere.co.uk] has joined #ruby
<MarcWeber> gem --help. Watch output. It often contains hints. If it doen't you have to digg into code. But maybe you should join #bsd first or ask on the mailinglist
<MarcWeber> May take less of your time.
ikaros [ikaros!~ikaros@dslb-188-107-221-154.pools.arcor-ip.net] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
cespare [cespare!~cespare@eng.nat.mtv.ooyala.com] has joined #ruby
beakerman [beakerman!~beakerman@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
gary_r [gary_r!~gary@193.1.209.220] has joined #ruby
gary_r [gary_r!~gary@193.1.209.220] has quit [#ruby]
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
axl_ [axl_!~axl@97-127-76-85.mpls.qwest.net] has joined #ruby
tatsuya__ [tatsuya__!~tatsuya_o@213.152.255.138] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-iaqmfmceglffsgro] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
prs` [prs`!~user@138.82-134-78.bkkb.no] has quit ["ERC Version 5.3 (IRC client for Emacs)"]
rippa [rippa!~rippa@109-161-64-83.pppoe.yaroslavl.ru] has joined #ruby
jgarvey [jgarvey!~jgarvey@cpe-174-097-248-211.nc.res.rr.com] has joined #ruby
hasrb [hasrb!~hasrb@108-85-134-26.lightspeed.austtx.sbcglobal.net] has joined #ruby
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby
stringoO [stringoO!~JLstring@bas1-toronto42-1279600159.dsl.bell.ca] has joined #ruby
cousine [cousine!~cousine@41.32.101.235] has joined #ruby
countskm [countskm!~countskm@pool-108-9-189-75.tampfl.fios.verizon.net] has joined #ruby
raincole__ [raincole__!~raincole@140.112.239.113] has joined #ruby
Paladin [Paladin!~paladin@p3m/member/Paladin] has joined #ruby
Targen [Targen!~iguana@190.39.181.108] has joined #ruby
ghanima [ghanima!~ghanima@163.192.12.2] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
Natch| [Natch|!~natch@178.73.218.129] has joined #ruby
C0deMaver1ck [C0deMaver1ck!~C0deMaver@adsl-68-19-181-143.jan.bellsouth.net] has joined #ruby
ddima [ddima!dima@gateway/shell/c-base/x-czkyllirxpqgqtbs] has joined #ruby
codefriar [codefriar!~codefriar@ip-200.it.rdu.bandwidth.com] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
ziggles [ziggles!~ziggles@173-11-100-54-SFBA.hfc.comcastbusiness.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
csavola [csavola!~csavola@76-10-149-67.dsl.teksavvy.com] has joined #ruby
countskm [countskm!~countskm@pool-108-9-189-75.tampfl.fios.verizon.net] has joined #ruby
DMKE [DMKE!~DMKE@pdpc/supporter/student/dmke] has joined #ruby
<nlko_> hey, i have a binary string "0111110001" and "11110000111". what int format do those need to be in to do a xor? ^ operation on them
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby
zalesz [zalesz!~zalesz@82.139.135.146] has joined #ruby
mayankkohaley [mayankkohaley!~chatzilla@122.167.7.128] has joined #ruby
<nlko_> i guess just a to_i should work
lteo [lteo!~lteo@2607:f2f8:a288::2] has joined #ruby
<lteo> any ruby mail users here? i'm trying to make it parse a mail as regular US-ASCII and not automagically convert it to UTF-8
<csavola> nlko_:http://www.ruby-doc.org/core-1.9.3/String.html#method-i-to_i
<nlko_> thanks
countskm [countskm!~countskm@pool-108-9-189-75.tampfl.fios.verizon.net] has joined #ruby
audy [audy!~audy@heyaudy.com] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
<nlko_> csavola: hmm, the problem is my result from the xor is way longer than my two strings (they are both the same length)
CreativeEmbassy [CreativeEmbassy!~CreativeE@h142.127.232.68.dynamic.ip.windstream.net] has joined #ruby
<csavola> nlko_: ruby 1.9.3 returns an 11 character string. what version are you on?
Aristata [Aristata!~Adium@adsl-69-209-65-126.dsl.chcgil.ameritech.net] has joined #ruby
jesperht [jesperht!~jesperht@jabbah.dreamhost.com] has joined #ruby
nooodl [nooodl!~nooodl@91.177.218.85] has joined #ruby
jesperht [jesperht!~jesperht@jabbah.dreamhost.com] has quit [#ruby]
<nlko_> 1.8.7
<csavola> nlko_: 1.8.7p352 works as expected as well
<peterhellberg> nlko_: "0111110001 ^ 11110000111" is "11124454894" and "11124454894 ^ 0111110001" is "11110000111"
<nlko_> peterhellberg: ok, how do i get the binary for the result 11124454894
<nlko_> at the moment im doing to_s(2) but it seems overly long
<peterhellberg> nlko_: 11124454894.to_s(2)
<nlko_> should it not be the same length as the two input strings?
banister`sleep [banister`sleep!~baniseter@118.82.185.158] has joined #ruby
Spockz [Spockz!~Spockz@21pc198.sshunet.nl] has joined #ruby
<csavola> nlko_: the strings are different sizes
<peterhellberg> nlko_: No, not really. http://www.google.com/search?q=11124454894+in+binary
<nlko_> ok, say they are the same length
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
<nlko_> two binary input strings are the same length but different, so "11111" and "11101"
<nlko_> at the moment i have result = "11111".to_i ^ "11101".to_i
<nlko_> result.to_s(2)
<nlko_> but te result is much longer
v0n [v0n!~v4n@mtl.savoirfairelinux.net] has joined #ruby
C0deMaver1ck [C0deMaver1ck!~C0deMaver@adsl-65-0-78-226.jan.bellsouth.net] has joined #ruby
<csavola> nlko_: "11111".to_i is not the binary number 11111 it is the decimal number 11111
<nlko_> ah
<nlko_> csavola: so what do i need?
<peterhellberg> nlko_: You save quite a few bytes by XORing (considering 1111 is the binary string "10101101100111")
<csavola> nlko_: read the link again... you missed a parameter
<peterhellberg> 11111 ^ 11101 on the other hand is 58 == "111010"
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby
indstry [indstry!~apple@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby
<nlko_> csavola: to_i(10)?
indstry [indstry!~apple@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby
<csavola> nlko_: that would convert to a base 10 number....
<peterhellberg> 10101101100111.to_i(10)
<peterhellberg> Sorry, wrong terminal :)
<nlko_> i dont know
<csavola> nlko_: binary is base 2
<nlko_> yes, i had to_i(2) and you said it was decimal
<csavola> nlko_: to have to_i without parameters... which defaults to to_i(10)
<nlko_> ah ok, thanks
<nlko_> so now i have "result = 11111".to_i(2) ^ "11101".to_i(2)"
<nlko_> result.to_s(2) to give the result in binary yes?
<csavola> nlko_: try it :)
DrShoggoth [DrShoggoth!~prakwtf@68-188-73-250.static.stls.mo.charter.com] has joined #ruby
ap3mantus [ap3mantus!~ap3mantus@c-98-217-187-172.hsd1.ma.comcast.net] has joined #ruby
<nlko_> yep its working, though i thought the length would be the same thats why i was concerned, but i guess like peterhellberg says, i save some bytes
<csavola> nlko_: all binary operations will be the same resultant length
<csavola> nlko_: that was brutal... all binary operations must have the same number of bits as the greatest input
<nlko_> csavola: the length is different
<csavola> nlko_: can you gist the code you have"
PaciFisT [PaciFisT!~PeaCE@76-10-149-67.dsl.teksavvy.com] has joined #ruby
<csavola> ?
<nlko_> yeah let me pastebin
<nlko_> so i want to xor one and two and get the result as a binary string
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
crazed_ [crazed_!~crazed@unaffiliated/cr4z3d] has joined #ruby
<csavola> nlko_: This looks like ruby stripping leading 0's from the result for you
<peterhellberg> csavola: Expected behavior, right?
<nlko_> ah ok, makes sense, can i override that
<csavola> peterhellberg: I would say yes
<peterhellberg> "000000000000000000001".to_i(2) is just a binary "1"
<csavola> nlko_: that's up to you to figure out
<nlko_> ok, so that code is working as expected then though right?
<csavola> nlko_: it appears so
<nlko_> thanka guys
Ankhers [Ankhers!~user@76-10-149-67.dsl.teksavvy.com] has joined #ruby
robyurkowski [robyurkowski!~robyurkow@64.254.250.82] has joined #ruby
josephwilk [josephwilk!~josephwil@109.231.237.58] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
brngardner [brngardner!~brngardne@c-98-192-3-166.hsd1.ga.comcast.net] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
ech0b1nary [ech0b1nary!~EchoBinar@iad-69-171-176-56.evdo.leapwireless.net] has joined #ruby
orospakr [orospakr!~orospakr@mobotropolis.orospakr.ca] has joined #ruby
baroquebobcat [baroquebobcat!~nick@70-90-113-174-co.denver.hfc.comcastbusiness.net] has joined #ruby
`brendan [`brendan!~b@64-121-18-195.c3-0.upd-ubr1.trpr-upd.pa.cable.rcn.com] has joined #ruby
eldariof [eldariof!~CLD@81.200.24.48] has joined #ruby
jrodicus [jrodicus!~jrodicus@72.32.115.230] has joined #ruby
jwarzech [jwarzech!~jwarzech@c-107-5-18-201.hsd1.mi.comcast.net] has joined #ruby
mk03 [mk03!~mk03@61.245.119.34.er.eaccess.ne.jp] has joined #ruby
burgestrand [burgestrand!~burgestra@host.62.65.124.23.bitcom.se] has joined #ruby
ChampS666 [ChampS666!~ChampS@p54B4D99E.dip.t-dialin.net] has joined #ruby
ikaros [ikaros!~ikaros@dslb-188-107-220-229.pools.arcor-ip.net] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
InfiniteJest [InfiniteJest!~InfiniteJ@dynamic-adsl-78-12-91-46.clienti.tiscali.it] has joined #ruby
v0n [v0n!~v4n@2607:fad8:4:0:21e:8cff:fe4d:2f7d] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
justfielding [justfielding!~justfield@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
adeponte_ [adeponte_!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
Jay_Levitt [Jay_Levitt!~Jay_Levit@c-24-63-250-125.hsd1.ma.comcast.net] has joined #ruby
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-flzqaehctihbyhyd] has joined #ruby
dkannan [dkannan!u480@gateway/web/irccloud.com/x-wuzwncbedwnjrzyu] has joined #ruby
fcoury [fcoury!u2238@gateway/web/irccloud.com/x-ojcrotktkebjzmfb] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
relix [relix!u2146@gateway/web/irccloud.com/x-mkbpgndycyiiwsqy] has joined #ruby
blueadept [blueadept!~blueadept@pool-96-251-83-184.lsanca.dsl-w.verizon.net] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
ckrailo [ckrailo!~ckrailo@208.86.167.247] has joined #ruby
moeSeth [moeSeth!u1029@gateway/web/irccloud.com/x-joylajarpusxfvrv] has joined #ruby
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-rgetqhlfbfegdwdm] has joined #ruby
Targen [Targen!~iguana@159.90.15.21] has joined #ruby
g0bl1n [g0bl1n!~prokter@a213-22-27-14.cpe.netcabo.pt] has joined #ruby
g0bl1n [g0bl1n!~prokter@unaffiliated/g0bl1n] has joined #ruby
si14 [si14!u2619@gateway/web/irccloud.com/x-ojlnwufxuxitguvs] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
headius [headius!~headius@71-210-154-45.mpls.qwest.net] has joined #ruby
davidpk [davidpk!~r00t@5e0a2c17.bb.sky.com] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
srid [srid!u3297@gateway/web/irccloud.com/x-lwndeeygwylnhcze] has joined #ruby
zakwilson [zakwilson!~quassel@97-117-185-243.phnx.qwest.net] has joined #ruby
notbrent [notbrent!u5121@gateway/web/irccloud.com/x-zkfwgitibacwtovy] has joined #ruby
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
SeanTAllen [SeanTAllen!u4855@gateway/web/irccloud.com/x-cypuwfxbfyekxhnf] has joined #ruby
nooodl [nooodl!~nooodl@91.177.218.85] has joined #ruby
Aristata [Aristata!~Adium@adsl-69-209-65-126.dsl.chcgil.ameritech.net] has quit [#ruby]
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-nkdiavczanwfubvw] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
jrodicus_ [jrodicus_!~jrodicus@72.32.115.230] has joined #ruby
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-noxwwntscajweagz] has joined #ruby
sbanwart [sbanwart!~sbanwart@66.6.175.18] has joined #ruby
jrodicus [jrodicus!~jrodicus@72.32.115.230] has joined #ruby
D3V1OU5 [D3V1OU5!Zephro@2001:470:1f08:945::10] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
adeponte [adeponte!~adeponte@67.110.253.162.ptr.us.xo.net] has joined #ruby
amar_key [amar_key!u2605@gateway/web/irccloud.com/x-ymllnknatdtaefba] has joined #ruby
pooja [pooja!u4977@gateway/web/irccloud.com/x-qtduapcrkcnhrsve] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
bier [bier!~bier@p57999244.dip.t-dialin.net] has joined #ruby
achiu [achiu!~Adium@ip68-5-18-17.oc.oc.cox.net] has joined #ruby
DFectuoso [DFectuoso!~DFectuoso@189.169.212.239] has joined #ruby
kenperkins [kenperkins!~textual@174-24-171-37.tukw.qwest.net] has joined #ruby
jergason [jergason!~jergason@208.97.56.66] has joined #ruby
MasterIdler_ [MasterIdler_!~MasterIdl@static-66-225-153-161.ptr.terago.net] has joined #ruby
patricksroberts [patricksroberts!u3278@gateway/web/irccloud.com/x-aibyxvwblojpdwta] has joined #ruby
cmasseraf [cmasseraf!~ColdFusio@187.106.195.233] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
robyurko_ [robyurko_!~robyurkow@64.254.250.82] has joined #ruby
mark_azevedo [mark_azevedo!~mark_azev@12.249.184.226] has joined #ruby
carlyle [carlyle!~carlyle@216.133.69.20] has joined #ruby
p0y [p0y!~p0y@112.210.67.240] has joined #ruby
misfitsu [misfitsu!~halliburt@static-173-78-25-169.tampfl.fios.verizon.net] has joined #ruby
nooodl [nooodl!~nooodl@91.177.218.85] has joined #ruby
quest88 [quest88!~quest88@12.181.53.123] has joined #ruby
ping-pon- [ping-pon-!~qwerty@212-30-218-200.static.simnet.is] has joined #ruby
ping-pong [ping-pong!~qwerty@212-30-218-200.static.simnet.is] has joined #ruby
bier [bier!~bier@p54A5AC96.dip.t-dialin.net] has joined #ruby
marienz [marienz!marienz@freenode/staff/marienz] has joined #ruby
alfism [alfism!~alfism@2620:149:4:1201:e099:b751:ce90:1b74] has joined #ruby
audy [audy!~audy@heyaudy.com] has joined #ruby
stringoO [stringoO!~JLstring@bas1-toronto42-1279600159.dsl.bell.ca] has joined #ruby
robyurkowski [robyurkowski!~robyurkow@64.254.250.82] has joined #ruby
srid [srid!u3297@gateway/web/irccloud.com/x-efaeykwhfpomhgcl] has joined #ruby
si14 [si14!u2619@gateway/web/irccloud.com/x-cbuxqcdqvdvkfchu] has joined #ruby
srid [srid!u3297@unaffiliated/srid] has joined #ruby
srid [srid!u3297@gateway/web/irccloud.com/x-efaeykwhfpomhgcl] has joined #ruby
mensch [mensch!~mensch@c-174-62-210-182.hsd1.ma.comcast.net] has joined #ruby
Targen_ [Targen_!~iguana@159.90.15.21] has joined #ruby
dekoms [dekoms!~dekom@CMU-436150.WV.CC.CMU.EDU] has joined #ruby
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-ctffosnxsjywadhe] has joined #ruby
dasfugufish [dasfugufish!~Adium@174-27-233-214.slkc.qwest.net] has joined #ruby
chessguy [chessguy!~chessguy@pool-96-231-167-66.washdc.fios.verizon.net] has joined #ruby
chessguy [chessguy!~chessguy@pool-96-231-167-66.washdc.fios.verizon.net] has joined #ruby
patricksroberts [patricksroberts!u3278@gateway/web/irccloud.com/x-kmmekcaqmezqzqak] has joined #ruby
jrgifford [jrgifford!u3281@gateway/web/irccloud.com/x-ldyjdsoiozpmunwb] has joined #ruby
jrgifford [jrgifford!u3281@ubuntu/member/jrgifford] has joined #ruby
daniel_hinojosa [daniel_hinojosa!~danno@67-0-117-93.albq.qwest.net] has joined #ruby
moeSeth [moeSeth!u1029@gateway/web/irccloud.com/x-tcamxygixrclsdso] has joined #ruby
Araxia_ [Araxia_!~Araxia@173-164-68-213-Oregon.hfc.comcastbusiness.net] has joined #ruby
dnjaramba_ [dnjaramba_!~dnjaramba@41.72.193.86] has joined #ruby
Azure [Azure!~azt@unaffiliated/azure] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
mztriz [mztriz!~mztriz@74-136-75-114.dhcp.insightbb.com] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-zbjcbpczvcvatqda] has joined #ruby
davidboy [davidboy!u3228@gateway/web/irccloud.com/x-eixntajgpkzbxhjn] has joined #ruby
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-wsqatsoxzjzahsty] has joined #ruby
mztriz [mztriz!~mztriz@74-136-75-114.dhcp.insightbb.com] has quit [#ruby]
adamkittelson [adamkittelson!~adamkitte@c-24-23-252-19.hsd1.ca.comcast.net] has joined #ruby
Skaag_ [Skaag_!~Skaag@cpe-67-247-51-89.nyc.res.rr.com] has joined #ruby
poloych [poloych!~poloych@201.116.140.252] has joined #ruby
shaatar [shaatar!u648@gateway/web/irccloud.com/x-uxlnamjtatlahrlh] has joined #ruby
amar_key [amar_key!u2605@gateway/web/irccloud.com/x-whkpaeijkocdhnnx] has joined #ruby
SeanTAllen [SeanTAllen!u4855@gateway/web/irccloud.com/x-evbsnlstzvgynqmz] has joined #ruby
poloych [poloych!~poloych@201.116.140.252] has joined #ruby
<hkhalid> hi
Knodi [Knodi!~Knodi@c-68-43-246-216.hsd1.mi.comcast.net] has joined #ruby
jrgifford [jrgifford!u3281@gateway/web/irccloud.com/x-bfakykyxletnccye] has joined #ruby
jrgifford [jrgifford!u3281@ubuntu/member/jrgifford] has joined #ruby
davidboy [davidboy!u3228@gateway/web/irccloud.com/x-bkfqitecauapmqjy] has joined #ruby
Planet_EN [Planet_EN!~nkhan@87.200.52.125] has joined #ruby
dekoms [dekoms!~dekom@CMU-436150.WV.CC.CMU.EDU] has joined #ruby
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
burgestrand1 [burgestrand1!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
ChampS666 [ChampS666!~ChampS@p54B4D99E.dip.t-dialin.net] has joined #ruby
<Planet_EN> I installed the oauth2 gem, if I do require 'oauth2' in irb it works but it doesn't work in a file
poloych [poloych!~poloych@201.116.140.252] has joined #ruby
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby
josh [josh!~josh@74-95-43-126-Oregon.hfc.comcastbusiness.net] has joined #ruby
stayarrr [stayarrr!~olivererx@dslb-178-009-059-241.pools.arcor-ip.net] has joined #ruby
jrodicus [jrodicus!~jrodicus@72.32.115.230] has quit [#ruby]
<Planet_EN> this is so annoying... why can't things just work.. end
<waxjar> are you using it with some kind of framework you run from the command line?
pooja [pooja!u4977@gateway/web/irccloud.com/x-gigapiwvxpqbdnlu] has joined #ruby
<Planet_EN> running the file from command line
<Planet_EN> ruby filenamer.rb
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-wkmkavyhtmrgowjf] has joined #ruby
<waxjar> try to ctrl + c it and run it again if you haven't already.
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
<Planet_EN> tried already
<Planet_EN> doesnt work
<Planet_EN> `require': no such file to load -- oauth2 (LoadError)
notbrent [notbrent!u5121@gateway/web/irccloud.com/x-rgigelvwbcktyxaw] has joined #ruby
<Planet_EN> however it works in irb
<Planet_EN> >> require 'oauth2'
<Planet_EN> => true
<Planet_EN> >>
mengu [mengu!~mengu@85.96.105.202] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
thecreators [thecreators!~rskagy@cpe-65-27-201-150.cinci.res.rr.com] has joined #ruby
<apeiros_> Planet_EN: a) check your irbrc, b) what ruby version?
Russell^^ [Russell^^!~Russell^^@88.97.51.87] has joined #ruby
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
ferbass_ [ferbass_!~ferbass@189.102.51.45] has joined #ruby
ElitestFX [ElitestFX!~ElitestFX@unaffiliated/elitestfx] has joined #ruby
<Planet_EN> ruby 1.8.7
<apeiros_> Planet_EN: you probably require 'rubygems' in your irbrc, but don't in your script
<apeiros_> you must require 'rubygems' before requiring gems.
<apeiros_> as of ruby 1.9, that's no longer the case, rubygems is loaded there from start (per default)
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
<Planet_EN> cool
<Planet_EN> worked when I added require 'rubygems' to the file
<Planet_EN> thanks
mahlon [mahlon!mahlon@martini.nu] has joined #ruby
fcoury [fcoury!u2238@gateway/web/irccloud.com/x-anftoqxpjpgytnfm] has joined #ruby
DMKE [DMKE!~DMKE@pdpc/supporter/student/dmke] has joined #ruby
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby
senny [senny!~senny@77-56-67-120.dclient.hispeed.ch] has joined #ruby
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
zenergi [zenergi!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
relix [relix!u2146@gateway/web/irccloud.com/x-kmrtbnvorzxgpuzl] has joined #ruby
idarkside [idarkside!~YourNick@5e0e912d.bb.sky.com] has joined #ruby
<idarkside> hi im having an issue with the mysql gem
Silker [Silker!~ponies@46.208.59.243] has joined #ruby
dkannan [dkannan!u480@gateway/web/irccloud.com/x-ucfnktkkvuaslkvb] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
stkowski [stkowski!~stkowski@ns25.8x8.com] has joined #ruby
<idarkside> no such file to load -- mysql (LoadError)
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
<apeiros_> idarkside: what ruby version?
<idarkside> 1.9.3
<idarkside> rvm
fridim_ [fridim_!~fridim@2a01:e35:2ece:f2d0:223:4eff:fe6c:c754] has joined #ruby
achiu [achiu!~Adium@216.174.109.254] has joined #ruby
<apeiros_> how did you install mysql?
rustifer [rustifer!~russ@c-98-246-229-69.hsd1.or.comcast.net] has joined #ruby
<idarkside> gem install mysql
<idarkside> or the server n client by apt-get
<apeiros_> since you have rvm and probably more than one ruby installed - did you make sure you installed it for the right ruby version?
<rustifer> I'm sorry to bother you but I had an activerecord question - foo.find( params[:id], :include=>:bar ), but some bars have been deleted from database. Is there a different way to call ":include" that won't choke if something's been deleted?
austinbv [austinbv!~austinbv@65-134.127-70.tampabay.res.rr.com] has joined #ruby
<apeiros_> rustifer: activerecords is over in #rubyonrails (even for non-rails projects)
banister`sleep [banister`sleep!~baniseter@118.82.185.158] has joined #ruby
<rustifer> oh! thanks. Sorry.
<apeiros_> np
CodeZombie [CodeZombie!~CodeZombi@65.19.245.153] has joined #ruby
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby
Jay_Levitt [Jay_Levitt!~Jay_Levit@c-24-63-250-125.hsd1.ma.comcast.net] has joined #ruby
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@c-24-23-252-19.hsd1.ca.comcast.net] has joined #ruby
<idarkside> apeiros_
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
<idarkside> i have 193 and 187 but i r
<idarkside> tro
Sliker_ [Sliker_!~ponies@46.208.59.243] has joined #ruby
<idarkside> arrg lol
<idarkside> i tried apt-get remove ruby with no avril
td123 [td123!~tom@archlinux/trusteduser/td123] has joined #ruby
<idarkside> n rvm list only can see 1.9.3
banister`sleep [banister`sleep!~baniseter@118.82.185.158] has joined #ruby
<apeiros_> when running `gem env`, what does it say under RUBY EXECUTABLE?
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
<idarkside> ok spam
<idarkside> root@siri:~# gem env
<idarkside> RubyGems Environment:
<idarkside> - RUBYGEMS VERSION: 1.7.2
<idarkside> - RUBY VERSION: 1.8.7 (2011-06-30 patchlevel 352) [i686-linux]
<idarkside> - INSTALLATION DIRECTORY: /var/lib/gems/1.8
<idarkside> - RUBY EXECUTABLE: /usr/bin/ruby1.8
<idarkside> - EXECUTABLE DIRECTORY: /usr/local/bin
<idarkside> - RUBYGEMS PLATFORMS:
<idarkside> - ruby
<idarkside> - x86-linux
<idarkside> - GEM PATHS:
<idarkside> - /var/lib/gems/1.8
<idarkside> - /root/.gem/ruby/1.8
<idarkside> - GEM CONFIGURATION:
<idarkside> - :update_sources => true
<idarkside> - :verbose => true
<Gate> idarkside: !gist
<apeiros_> idarkside: do NOT paste >3 lines here. srsly
<td123> is there a way to easily initialize a bunch of variables to "" or [] with each one having a seperate instance?
<idarkside> lol sorry
<apeiros_> the only line that's of interest is this:
<idarkside> !gist
<apeiros_> 19:29 idarkside: - RUBY EXECUTABLE: /usr/bin/ruby1.8
<Gate> idarkside: https://gist.github.com/
<apeiros_> and that tells you that you're installing your stuff for your 1.8 ruby
<idarkside> ah ty lol
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
<Gate> apparently there is no robot here that understands !gist :)
<apeiros_> idarkside: rvm use 1.9.3; then gem install mysql
<idarkside> ty
dankest [dankest!~dankest@wsip-174-75-64-190.sb.sd.cox.net] has joined #ruby
<idarkside> i ay clean install to remove ruby ;)
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
jlogsdon [jlogsdon!~jlogsdon@50.0.84.226] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has quit [#ruby]
ChampS666 [ChampS666!~ChampS@p54B4B22B.dip.t-dialin.net] has joined #ruby
geekbri [geekbri!~geekbri@pool-108-49-79-18.bstnma.fios.verizon.net] has joined #ruby
geekbri [geekbri!~geekbri@pool-108-49-79-18.bstnma.fios.verizon.net] has joined #ruby
MasterIdler_ [MasterIdler_!~MasterIdl@static-66-225-153-161.ptr.terago.net] has joined #ruby
moeSeth [moeSeth!u1029@gateway/web/irccloud.com/x-qgdavxygpznzuais] has joined #ruby
<td123> for instance, I want a and b point to seperate instances of a string, but I would like to have a neat way to initialize them with something like a = b = ""
<Gate> td123: that works. Try: a = b = ""
<Gate> a = "bob"
<Gate> puts b
leoncamel [leoncamel!~user@KD175129170046.ppp-bb.dion.ne.jp] has joined #ruby
hkhalid [hkhalid!hkhalid@pool-173-79-49-114.washdc.fios.verizon.net] has quit [#ruby]
<deryl> td123: iirc, when you do it that way they point to the *same* string i thought
<td123> Gate: deryl ya I want a different string
<td123> also for instance a = b = []
<td123> a << 2
<Mon_Ouie> a = ""; b = ""
<Gate> td123: well, you *could* do a,b = ["",""]
<td123> puts b prints out [2]
<Gate> not that I would suggest it
<Mon_Ouie> Gate: No, what you first said didn't work
<td123> I have like 20 variables to initialize so I wanted to find anicer way :)
<Gate> right, the second assignment changes what a points to. duh.
<deryl> a = "" ; b = "" ; a = 2 ; puts b does what you want
<Mon_Ouie> a = "bob" doesn't affect b because it isn't a method call
<deryl> like Mon_Ouie said
<apeiros_> td123: you might want to organize your data in a different manner then…
<apeiros_> Array.new(20) { "" }
<deryl> Mon_Ouie: is there a way to force ruby to make two *different* strings in the same call? like a .dup type call?
<deryl> at all
<td123> apeiros_: it's just the nature of the data, there really isn't a better way to organize it
<td123> afaik
<apeiros_> td123: all I have is your word for it :-p
<deryl> or is it *only* possible to do it like the a = "" ; b = ""
charlenopires [charlenopires!~quassel@186.194.13.186] has joined #ruby
<deryl> this is where *my* knowledge lacks
<td123> apeiros_: I guess I could store it in a hash
<apeiros_> anyway, even if you don't want to use an array, you can still use the thing above
<td123> apeiros_: that's probably the only other sane way to store this
<Gate> td123: then a,b,c,d = (0..4).map { |x| "" }
<apeiros_> a,b,c,… = *Array.new(20) { "" }
<Gate> lol, apeiros_ nice
<apeiros_> Gate: you can omit the |x|
<Gate> true, pointless to have it. just habit
<td123> apeiros_: that looks nice, thanks :)
<Mon_Ouie> Also, don't forget (0..4) is 5 elements
<td123> 0...4 is 4 :)
fcoury [fcoury!u2238@gateway/web/irccloud.com/x-orsgowzlaptvkazm] has joined #ruby
<Gate> so d would contain an array of two elements
<Mon_Ouie> No
<Mon_Ouie> The last element would be thrown away, but it may matter in some other cases
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
<td123> thanks all
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-salevkzboqsgdcei] has joined #ruby
si14 [si14!u2619@gateway/web/irccloud.com/x-sfeviqfdqusvwhkz] has joined #ruby
<td123> apeiros_: I'm trying to automate writing certain types of scripts, so it isn't going to be exactly pretty :P
* apeiros_ thinks from..to with wrong to and rand(num_elements) with wrong num_elements are the most often made mistakes in ruby wrt numbers
pooja [pooja!u4977@gateway/web/irccloud.com/x-tvsrrsgqirbfarag] has joined #ruby
<apeiros_> td123: you should use VBA to make pretty automation scripts
* apeiros_ runs for cover
jrgifford [jrgifford!u3281@gateway/web/irccloud.com/x-xzxcaqsaywkxmifm] has joined #ruby
jrgifford [jrgifford!u3281@ubuntu/member/jrgifford] has joined #ruby
dkannan [dkannan!u480@gateway/web/irccloud.com/x-ayrwohqxzipfhcdx] has joined #ruby
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-ynrrvifdqmzvnvxm] has joined #ruby
badabim [badabim!~badabim@17.245.89.100] has joined #ruby
n3m [n3m!~bla@188-22-18-57.adsl.highway.telekom.at] has joined #ruby
indstry [indstry!~apple@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby
<Mon_Ouie> rand(range) may make the latter mistake less common
relix [relix!u2146@gateway/web/irccloud.com/x-zxozdayhkulncjjb] has joined #ruby
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-alcfyreoivohmwxn] has joined #ruby
tobyo [tobyo!~tobyo@cpe-24-165-22-166.san.res.rr.com] has joined #ruby
<apeiros_> maybe, but I'm pretty sure it'll stay pretty common
Hanmac [Hanmac!~hanmac@p50845432.dip0.t-ipconnect.de] has joined #ruby
apucacao [apucacao!~apucacao@thelevel.com] has joined #ruby
amar_key [amar_key!u2605@gateway/web/irccloud.com/x-zgzxgzfavsybjuen] has joined #ruby
<Hanmac> hm how should i convert an std:wtring to an ruby string in the C interface?
jbw [jbw!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
ChampS666 [ChampS666!~ChampS@p54B4BF60.dip.t-dialin.net] has joined #ruby
btanaka [btanaka!~textual@17.245.88.168] has joined #ruby
patricksroberts [patricksroberts!u3278@gateway/web/irccloud.com/x-lvxvvuzlsmzeehkh] has joined #ruby
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-tisafcdyjxejlkgp] has joined #ruby
SeanTAllen [SeanTAllen!u4855@gateway/web/irccloud.com/x-wxomxqmgidfjscjw] has joined #ruby
cek [cek!~cek@host-static-46-55-80-225.moldtelecom.md] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
shaatar [shaatar!u648@gateway/web/irccloud.com/x-cpjidefrqhbtgjcf] has joined #ruby
moeSeth [moeSeth!u1029@gateway/web/irccloud.com/x-fwtzfwrbjhtyaphn] has joined #ruby
Nss_ [Nss_!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
shadoi [shadoi!~Adium@2001:5a8:4:68e1:2d73:3a7:4f53:444] has joined #ruby
dhodgkin [dhodgkin!~dhodgkin@cpe-76-178-249-57.maine.res.rr.com] has joined #ruby
davidboy [davidboy!u3228@gateway/web/irccloud.com/x-qauyehtgchwpbfhf] has joined #ruby
josefig [josefig!~joseph@unaffiliated/josefig] has joined #ruby
cableray [cableray!~cableray@wl-dhcp181-4.Mines.EDU] has joined #ruby
Azure|netbook [Azure|netbook!~azt@unaffiliated/azure] has joined #ruby
cousine [cousine!~cousine@196.221.61.52] has joined #ruby
icrazyhack [icrazyhack!~horieyui@183.60.100.166] has joined #ruby
kirun [kirun!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-utitkyfgwctcggsr] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
thecreators_ [thecreators_!~rskagy@cpe-65-27-201-150.cinci.res.rr.com] has joined #ruby
favor212 [favor212!~favor212@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
Jarred [Jarred!~Administr@c-71-198-139-210.hsd1.ca.comcast.net] has joined #ruby
mtkd [mtkd!znc@209-20-90-74.slicehost.net] has joined #ruby
<Jarred> Is there no error messages with ActionMailer?
stick_zz [stick_zz!~stick@neurosis.miscellaneous.net] has joined #ruby
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby
notbrent [notbrent!u5121@gateway/web/irccloud.com/x-bxugztkcbqqpfusw] has joined #ruby
ale` [ale`!~user@dynamic-adsl-94-39-227-84.clienti.tiscali.it] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@h142.127.232.68.dynamic.ip.windstream.net] has joined #ruby
dnjaramba_ [dnjaramba_!~dnjaramba@41.72.193.86] has joined #ruby
ank_ [ank_!~ank@c-67-172-16-188.hsd1.pa.comcast.net] has joined #ruby
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
srid [srid!u3297@gateway/web/irccloud.com/x-lthtqldzsuapyaff] has joined #ruby
srid [srid!u3297@unaffiliated/srid] has joined #ruby
srid [srid!u3297@gateway/web/irccloud.com/x-lthtqldzsuapyaff] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
x77686d [x77686d!~whm@c-68-63-181-242.hsd1.az.comcast.net] has joined #ruby
zommi [zommi!~quassel@HSI-KBW-078-042-009-093.hsi3.kabel-badenwuerttemberg.de] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
ctp [ctp!~ctp@dslc-082-083-140-102.pools.arcor-ip.net] has joined #ruby
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
nicoulaj [nicoulaj!~nicoulaj@pas38-5-82-244-59-208.fbx.proxad.net] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@h142.127.232.68.dynamic.ip.windstream.net] has joined #ruby
jbpros [jbpros!~jbpros@135-177-112-217.dyn.adsl.belcenter.be] has joined #ruby
DFectuoso [DFectuoso!~DFectuoso@189.169.212.239] has joined #ruby
BrianE [BrianE!~brian@188-220-10-235.zone11.bethere.co.uk] has joined #ruby
pantsman [pantsman!~pantsman@2.25.208.18] has joined #ruby
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
pietro_ [pietro_!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
matled [matled!~matled@85.131.246.184] has joined #ruby
austinbv_ [austinbv_!~austinbv@65-134.127-70.tampabay.res.rr.com] has joined #ruby
tesmar [tesmar!~tesmar@rrcs-70-62-109-131.midsouth.biz.rr.com] has joined #ruby
luckyruby [luckyruby!~luckyruby@rrcs-24-129-162-10.se.biz.rr.com] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
ziyadb_ [ziyadb_!~ziyadb@188.52.50.74] has joined #ruby
musee [musee!~musee@unaffiliated/musee] has joined #ruby
GiambalaGiambala [GiambalaGiambala!~virunga@151.64.23.73] has joined #ruby
Swanify [Swanify!~Swanify@5adafe74.bb.sky.com] has joined #ruby
seb_ [seb_!~seb@lns-bzn-29-82-248-230-46.adsl.proxad.net] has joined #ruby
<ziyadb_> Swanify: stop following me!
<Swanify> ziyadb_: irresistable :) noticed your accidental paste and thought i'd see what was happening :P
<Jarred> What changes besides the metadata when uploading a file using a base64 encoding and then turning base64 into bytes?
<ziyadb_> looks like it's the #startups party up in here.
<Jarred> lol yeah
dr_bob [dr_bob!~dr_bob@p549E78EE.dip.t-dialin.net] has joined #ruby
<Swanify> :)
<Swanify> i'm not even a ruby dev :) although i've been trying to get some time to learn more about it
* Hanmac Ceterum censeo ruby1.8 esse delendam
rustifer [rustifer!~russ@c-98-246-229-69.hsd1.or.comcast.net] has quit ["Leaving"]
<apeiros_> Hanmac: ooooh, my favorite quote
<apeiros_> (with carthago, instead of ruby, of course…)
anoNxeRo [anoNxeRo!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
<Hanmac> not all ruby ... only 1.8 :P
<apeiros_> … I know, I wasn't implying you said that
pantsman [pantsman!~pantsman@2.25.187.240] has joined #ruby
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
mxbtty [mxbtty!~mxbtty@216-75-224-242.static.wiline.com] has joined #ruby
<cek> hello dears. How would you pass a self into called method in this situation? - https://gist.github.com/78471ba44b02958dae52 I need an elegant solution.
brian_ [brian_!~brian@188-220-10-235.zone11.bethere.co.uk] has joined #ruby
sleepwalker__ [sleepwalker__!~sleepwalk@178.176.139.119] has joined #ruby
<Hanmac> cek: i dont think self is changeable ... so self= does not work or what did you think?
sleepwalker__ [sleepwalker__!~sleepwalk@178.176.139.119] has joined #ruby
andynu [andynu!~andynu@ich.thy.om.orpho.us] has joined #ruby
Kovensky [Kovensky!kovensky@abraxo.bluebottle.net.au] has joined #ruby
aces1up [aces1up!~aces1up@ip70-173-232-11.lv.lv.cox.net] has joined #ruby
xsdg [xsdg!~xsdg@SIPB-VM-99.MIT.EDU] has joined #ruby
paulv [paulv!~paulv@unaffiliated/paulv] has joined #ruby
shadoi [shadoi!~Adium@2001:5a8:4:68e1:2d73:3a7:4f53:444] has joined #ruby
zumbi [zumbi!~zumbi@77.230.237.25] has joined #ruby
cooper [cooper!~mitchell@unaffiliated/furryfishy] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
clipartcat [clipartcat!~redbullra@mhth.tyrell.fi] has joined #ruby
indeterminate [indeterminate!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby
TheTFEF [TheTFEF!JS@cpe-173-88-110-115.columbus.res.rr.com] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
TheTFEF [TheTFEF!JS@unaffiliated/thetfef] has joined #ruby
jlogsdon [jlogsdon!~jlogsdon@50.0.84.226] has joined #ruby
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
d3b4g [d3b4g!~d3b4g@123.176.25.98] has joined #ruby
<cek> I'd like to access NewContext instance in #somemethod
Azure [Azure!~azt@unaffiliated/azure] has joined #ruby
<cek> my question is how would you do it nicely?
<apeiros_> I'd like a cake
<v0n> I'd like a beer
thomasfedb [thomasfedb!~thomasfed@2607:f358:1:fed5:11:0:1399:1] has joined #ruby
<apeiros_> I've got a beer, want it?
<cek> i'll give you a virtual cake if you help me
<apeiros_> cek: that cake is a lie!
<v0n> apeiros_, cheers!
<cek> :-))
headius [headius!~headius@71-210-154-45.mpls.qwest.net] has joined #ruby
<apeiros_> cek: I'm not really sure what you're asking - mind making an example and paste it on pastie.org or gist.github.com?
tesmar [tesmar!~tesmar@rrcs-70-62-109-131.midsouth.biz.rr.com] has joined #ruby
S2kx [S2kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby
<cek> cek> hello dears. How would you pass a self into called method in this situation? - https://gist.github.com/78471ba44b02958dae52 I need an elegant solution.
mitchty [mitchty!~mitchty@ec2-50-19-41-37.compute-1.amazonaws.com] has joined #ruby
<apeiros_> Object.new.somemethod(self) ?
<cek> eh, that's primitive. I want very elegant and sugared solution
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
<apeiros_> there's only bad design ones like storing self in Thread.current[…]
<apeiros_> but really, that's bad coupling…
<cek> oh..
Targen [Targen!~iguana@159.90.15.21] has joined #ruby
<cek> the app is multithreaded, btw
<yxhuvud> well, it may be that it is instance_exec he is after
chilversc_ [chilversc_!~chris@about/csharp/regular/KeeperOfTheSoul] has joined #ruby
<apeiros_> yxhuvud: possible. but I don't think so due to .somemethod
<cek> instance_exec is how I change the "context" . is it possible to invoke it for each line of ruby code in that lambda?
libertyprime [libertyprime!~libertypr@182.236.125.102] has joined #ruby
mrmist [mrmist!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
<cek> s/lambda/block/
<yxhuvud> uh, I don't understand why you would want it once for each line.
pietro_ [pietro_!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
<cek> indeed, that's a bad design. but the root are in erb
<cek> you see, I want to be able to acess NewContext's instance variables withing erb view that will be rendered
<yxhuvud> hmm
pantsman [pantsman!~pantsman@2.30.123.114] has joined #ruby
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
<yxhuvud> interesting problem. I'm glad I havn't had to solve it :)
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-ndwhrdnvqngvlwrv] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
mdel_ [mdel_!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby
examancer [examancer!~carl@carlzulauf.xen.prgmr.com] has joined #ruby
<cek> yea, it ain't trivial one. thanks for help anyway
<yxhuvud> but if I were to guess I'd say that the easiest way should be to mix in whatever is needed into the correct scope once, and pray to god there are no conflicts :p
S1kx [S1kx!~S1kx@pdpc/supporter/monthlybyte/s1kx] has joined #ruby
ImTheBitch [ImTheBitch!Apples@ultra30.tptp.cc] has joined #ruby
dankest [dankest!~dankest@wsip-174-75-64-190.sb.sd.cox.net] has joined #ruby
<apeiros_> cek: as said, an ugly solution is to use Thread.current and Thread#[], #[]=
<yxhuvud> or dig into erb and do some kind of proxy. Is this for rails or something else? if the former, then I have seen some places that might be useful where the templates are compiled into methods
<apeiros_> if it's only about ivars, you could "infuse" instances with them using instance_variable_set
theRoUS [theRoUS!KenCoar@nat/redhat/x-rsnvszrrcpiilfql] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
favor212 [favor212!~favor212@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
<cek> yep, gonna redesign it.
<cek> that ain't rails, otherwise it would be better . it's a customary high effecience message dispenser
<cek> ought to be!
jbpros [jbpros!~jbpros@135-177-112-217.dyn.adsl.belcenter.be] has joined #ruby
<yxhuvud> I think erb templates accept a binding for .result though, so it might as simple as template.result(binding)
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
lorandi [lorandi!~lorandi@gateway/tor-sasl/lorandi] has joined #ruby
Amorsen [Amorsen!~Amorsen@94.127.50.7] has joined #ruby
crodas [crodas!~crodas@git.crodas.org] has joined #ruby
BrianE [BrianE!~brian@188-220-10-235.zone11.bethere.co.uk] has joined #ruby
<ziyadb_> !topic
<ziyadb_> err.
gen0cide_ [gen0cide_!~TigerBloo@Wilkins3.static.monkeybrains.net] has joined #ruby
* Swanify Waits for ziyadb_ to accidentally paste his next channel move
Sailias [Sailias!~jonathan@s72-38-77-178.static.comm.cgocable.net] has joined #ruby
h4mz1d [h4mz1d!~hamfz@130.160.249.68] has joined #ruby
<ziyadb_> Swanify: #cisco
mvj2111 [mvj2111!~matt@cpe-66-108-210-210.nyc.res.rr.com] has joined #ruby
SpitfireWP [SpitfireWP!spitfire@wikipedia/spitfire] has joined #ruby
thepix [thepix!~pix@as3-16.starogard.dialup.inetia.pl] has joined #ruby
azbarcea_ [azbarcea_!~quassel@79.114.12.103] has joined #ruby
dankest [dankest!~dankest@wsip-174-75-64-190.sb.sd.cox.net] has quit ["Linkinus - http://linkinus.com"]
dankest [dankest!~dankest@wsip-174-75-64-190.sb.sd.cox.net] has joined #ruby
audy [audy!~audy@heyaudy.com] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-vvyuoesxbfeqtvby] has joined #ruby
<strife25> hi all, i was wondering if there were any best practices that need to be followed when writing setup.rb files like there are for structuring Gems?
azbarcea_ [azbarcea_!~quassel@79.114.12.103] has joined #ruby
fantazo [fantazo!~fantazo@85-127-156-169.dynamic.xdsl-line.inode.at] has joined #ruby
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
stephans [stephans!~stephans@209.66.114.6] has joined #ruby
visof [visof!~visof@41.178.127.67] has joined #ruby
<visof> what is the best way to parse url that is xml content ?
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
jergason [jergason!~jergason@208.97.56.66] has joined #ruby
zastaph [zastaph!zastaph@unaffiliated/zastaph] has joined #ruby
zulax [zulax!~radarwork@99-120-232-161.lightspeed.iplsin.sbcglobal.net] has joined #ruby
manizzle [manizzle!~manizzle@adsl-99-66-209-176.dsl.pltn13.sbcglobal.net] has joined #ruby
<dr_bob> URL or the content which is located at the URL?
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
Targen [Targen!~iguana@159.90.15.21] has joined #ruby
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
musl [musl!~mike@li44-23.members.linode.com] has joined #ruby
cableray [cableray!~cableray@wl-dhcp178-37.Mines.EDU] has joined #ruby
MasterIdler_ [MasterIdler_!~MasterIdl@static-66-225-153-161.ptr.terago.net] has joined #ruby
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
kvyn [kvyn!~kvyn@w0109-49-134-213-166.uqwimax.jp] has joined #ruby
Swanify [Swanify!~Swanify@5adafe74.bb.sky.com] has quit ["Linkinus - http://linkinus.com"]
GreaseMonkey [GreaseMonkey!~gm@unaffiliated/greasemonkey] has joined #ruby
<Jarred> How do I send mail with ActionMailer that the view is in HTML and with attachments? Right now, it's sending the messages with the headers and in base64
<deryl> Jarred: thats a #rubyonrails question, not ruby. ask in #rubyonrails
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
musl [musl!~mike@li44-23.members.linode.com] has joined #ruby
skurt [skurt!~Benz@ip-84-42-231-134.net.upcbroadband.cz] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
mark_azevedo [mark_azevedo!~mark_azev@12.249.184.226] has joined #ruby
davidpk [davidpk!~r00t@5e0a2c17.bb.sky.com] has joined #ruby
mr-green [mr-green!~mr-green@122.164.183.37] has joined #ruby
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
kerframil [kerframil!~kerframil@gentoo/user/kerframil] has joined #ruby
ferbass [ferbass!~ferbass@189.102.51.45] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
<tesmar> is there a way to convert a double qouted string to a single quoted?
<tesmar> or to take everything as literal in a particular string/
skurt [skurt!~Benz@ip-84-42-231-134.net.upcbroadband.cz] has quit [#ruby]
brian_ [brian_!~brian@188-220-10-235.zone11.bethere.co.uk] has joined #ruby
<dankest> tesmar: Could you use a regex to strip it or something?
ilyam [ilyam!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has quit [#ruby]
musl [musl!~mike@li44-23.members.linode.com] has joined #ruby
libertyprime [libertyprime!~libertypr@182.236.125.102] has joined #ruby
charlenopires [charlenopires!~quassel@186.194.13.186] has joined #ruby
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@108-202-113-212.lightspeed.frokca.sbcglobal.net] has joined #ruby
tvw [tvw!~tv@e176002173.adsl.alicedsl.de] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-123-50.columbus.res.rr.com] has joined #ruby
<ale`> I'm kind of lost with raise, throw, catch and rescue. What's the difference between f1 and f2 https://gist.github.com/1623162 ?
<ale`> ops, f1 and fungo2 :-)
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby
mark_azevedo [mark_azevedo!~mark_azev@12.249.184.226] has joined #ruby
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby
<Hanmac> ale` the difference is that fungo2 does not work :P
youdonotexist [youdonotexist!~youdonote@192.206.158.10] has joined #ruby
<Hanmac> you can only raise an exception
idarkside [idarkside!~YourNick@5e0e912d.bb.sky.com] has joined #ruby
<ale`> works for me, same results as f1 :O
<ale`> I tried it on irb before posting :P
favor212 [favor212!~favor212@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
<Hanmac> then you does not check the exception ... fungo2 does fail because of raise: "TypeError: exception class/object expected"
ubercore [ubercore!~textual@wsip-174-78-141-61.ri.ri.cox.net] has joined #ruby
<ubercore> Hi all! I want to set two mappings in a YAML document with the same name. I'm serializing from a Ruby Hash, which obviously overwrites the second key with the same name. Any good suggestions on how to deal with this?
<ale`> Hanmac: mhm, so with raise I can only throw <Exception and strings ?
<Hanmac> yep, but you can cast other objects with to_s into strings
<ale`> Hanmac: is catch some kind of syntactic sugar over a begin/rescue/end block that has the rescue part always nil or there is some other difference?
<ale`> (apart from the fact you can only raise Exceptions and strings I mean)
<idarkside> im offering
<idarkside> shud be a 10 min job
<idarkside> pm me
<Hanmac> not realy, as you can only catch and throw symbols ...
<Hanmac> but i does not like catch and throw ... it smells a bit like goto
<Hanmac> i would ayoid both if possible
azbarcea_ [azbarcea_!~quassel@79.114.12.103] has joined #ruby
josh [josh!~josh@74-95-43-126-Oregon.hfc.comcastbusiness.net] has joined #ruby
johanhsfy [johanhsfy!~johan@2.71.149.193.mobile.tre.se] has joined #ruby
hinogi [hinogi!~Stefan@mnsr-d9bf48eb.pool.mediaWays.net] has joined #ruby
hinogi [hinogi!~Stefan@facade/contributor/hinogi] has joined #ruby
<burgestrand> catch and throw is nice because you can throw data along with the symbol
musl [musl!~mike@li44-23.members.linode.com] has joined #ruby
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
mutewinter [mutewinter!~mutewinte@cpe-184-58-10-202.woh.res.rr.com] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-xmyapmxgbnpbtbor] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
moshef [moshef!~moshe@bzq-79-180-137-142.red.bezeqint.net] has joined #ruby
austinbv [austinbv!~austinbv@198.187.213.231] has joined #ruby
justfielding [justfielding!~justfield@ip70-178-131-208.ks.ks.cox.net] has quit [#ruby]
<visof> hi
<visof> if i have array , how can i take values twice at the same time to can convert this array to hash?
<visof> [1, "one", 2, "two"] as example want to convert that to hash = {1 => "one", 2 => "two" }
<burgestrand> visof: Hash[]
<apeiros_> visof: Hash[array]
<apeiros_> oh, actually might be Hash[*array]
<visof> ?
<visof> i can't understand
<apeiros_> yeah, the latter
<apeiros_> fire up irb and try, there isn't too many ways to read that.
<visof> got it
<visof> that's amazing
fayimora [fayimora!~fayimora@95.175.159.37] has joined #ruby
kvyn [kvyn!~kvyn@w0109-49-134-213-166.uqwimax.jp] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
maletor [maletor!~maletor@187.146.209.50] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
<visof> apeiros_: but what if the array has odd numbers, that will return error
<visof> is there a way to fix that?
<burgestrand> visof: what do you want to do then_
<visof> burgestrand: convert array to hash, but i must have even number of array length to can convert to hash, but can i intialize values to zeros for odd numbers?
<burgestrand> visof: add a zero to the end of the array if it’s an odd number of items in it?
<visof> as example: [1, "one", 2, "two", 3] to {1 => "one", 2 => "two", 3 => 0}
<visof> that's goot
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
favor212 [favor212!~favor212@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
nerded [nerded!~nerded@70-88-134-198-newtowson.md.bad.hfc.comcastbusiness.net] has joined #ruby
<Hanmac> array << 0 if array.size.odd?
nerded [nerded!~nerded@70-88-134-198-newtowson.md.bad.hfc.comcastbusiness.net] has joined #ruby
<apeiros_> visof: yes, fix the array.
<apeiros_> converting an odd sized array makes no sense.
LMolr [LMolr!~quassel@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
robyurko_ [robyurko_!~robyurkow@64.254.250.82] has joined #ruby
zalesz [zalesz!~zalesz@user-109-243-40-17.play-internet.pl] has joined #ruby
cableray [cableray!~cableray@wl-dhcp181-224.Mines.EDU] has joined #ruby
_|christian|_ [_|christian|_!~christian@190.234.90.56] has joined #ruby
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
nerded [nerded!~nerded@70-88-134-198-newtowson.md.bad.hfc.comcastbusiness.net] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
InfiniteJest [InfiniteJest!~InfiniteJ@dynamic-adsl-78-12-91-46.clienti.tiscali.it] has joined #ruby
mutewinter [mutewinter!~mutewinte@cpe-184-58-10-202.woh.res.rr.com] has joined #ruby
nonotza [nonotza!~nonotza@cpe-72-225-173-7.nyc.res.rr.com] has joined #ruby
jakky_ [jakky_!jakk@motherfucking.ddosking.org] has quit [#ruby]
jakky [jakky!jakk@motherfucking.ddosking.org] has joined #ruby
kvyn [kvyn!~kvyn@w0109-49-134-213-166.uqwimax.jp] has joined #ruby
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby
jerikl [jerikl!~justin@rrcs-64-183-231-122.sw.biz.rr.com] has joined #ruby
quest88 [quest88!~quest88@12.181.53.123] has joined #ruby
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
panterax [panterax!~panterax@31.176.155.198] has joined #ruby
kr0l [kr0l!~kr0l@c-c92ee655.02-221-6b73641.cust.bredbandsbolaget.se] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-98-246-229-6.hsd1.or.comcast.net] has joined #ruby
nooodl [nooodl!~nooodl@91.177.218.85] has joined #ruby
<dankest> Has anyone here used watir? Is there a way to click and download links from a watir browser window?
beakerman [beakerman!~beakerman@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
Dreamer3 [Dreamer3!~Dreamer3@74-134-34-116.dhcp.insightbb.com] has joined #ruby
newellista [newellista!~snewell@gw.voonami.com] has joined #ruby
jbhewitt [jbhewitt!~jbhewitt@ppp59-167-157-127.static.internode.on.net] has joined #ruby
statarb3 [statarb3!~CoreD@546A56AA.cm-12-3b.dynamic.ziggo.nl] has joined #ruby
statarb3 [statarb3!~CoreD@unaffiliated/statarb3] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
cableray [cableray!~cableray@wl-dhcp181-224.Mines.EDU] has joined #ruby
RomD`` [RomD``!~Roman@nrbg-4d077d22.pool.mediaWays.net] has joined #ruby
Profit [Profit!~p@c83-254-248-138.bredband.comhem.se] has joined #ruby
nobitanobi1 [nobitanobi1!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby
strife25 [strife25!~strife25@cpe-098-026-018-050.nc.res.rr.com] has joined #ruby
BrianE [BrianE!~brian@87.112.149.96] has joined #ruby
yakko [yakko!~quassel@189.27.51.53.dynamic.adsl.gvt.net.br] has joined #ruby
ferbass [ferbass!~ferbass@201-42-87-132.dsl.telesp.net.br] has joined #ruby
gregorg [gregorg!~Greg@unaffiliated/gregorg] has joined #ruby
gregorg [gregorg!~Greg@unaffiliated/gregorg] has joined #ruby
g0bl1n [g0bl1n!~prokter@unaffiliated/g0bl1n] has joined #ruby
punkrawkR [punkrawkR!~freddiebo@h-9-122.a328.priv.bahnhof.se] has joined #ruby
jmorton__ [jmorton__!~jmorton@pool-108-15-39-246.bltmmd.fios.verizon.net] has joined #ruby
sarpanch [sarpanch!~sarpanch@host-207-68-241-37.vista-express.com] has joined #ruby
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.43] has joined #ruby
axl_ [axl_!~axl@97-127-76-85.mpls.qwest.net] has joined #ruby
beakerman [beakerman!~beakerman@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
maletor [maletor!~maletor@187.146.209.50] has joined #ruby
alem0lars [alem0lars!~alem0lars@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
v0n [v0n!~v4n@bas1-montreal43-2925257405.dsl.bell.ca] has joined #ruby
charlenopires [charlenopires!~quassel@186.194.13.186] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
Jarred [Jarred!~Administr@c-71-198-139-210.hsd1.ca.comcast.net] has quit [#ruby]