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/
niklasb [niklasb!~codeslay0@p5B3109E4.dip0.t-ipconnect.de] has joined #ruby
icrazyhack [icrazyhack!~horieyui@183.93.198.19] has joined #ruby
bitops [bitops!~user@ac.playsecond.com] has joined #ruby
hadees [hadees!~hadees@72-48-91-73.dyn.grandenetworks.net] has joined #ruby
mads- [mads-!~mads@2808ds1-by.0.fullrate.dk] has joined #ruby
tomsthumb [tomsthumb!~tomsthumb@rrcs-71-41-17-216.sw.biz.rr.com] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
cmasseraf [cmasseraf!~ColdFusio@187.106.195.233] has joined #ruby
moted [moted!~ryan@c-98-246-106-150.hsd1.or.comcast.net] has joined #ruby
<mads-> I'm trying to write a test extension for Ruby. First, where do I get the ruby.h header in ubuntu, if anyone knows? And the Makefile I get from extconf.rb is rather big but doesn't seem to have anything to do when I just type "make". It says "make: nothing to be done for 'all'"
g0tmi1k [g0tmi1k!~g0tmi1k@unaffiliated/g0tmi1k] has quit ["Leaving"]
dyer [dyer!~dyer@108-193-172-174.lightspeed.tukrga.sbcglobal.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
cobragoat [cobragoat!~cobragoat@173-160-19-241-Sacramento.hfc.comcastbusiness.net] has joined #ruby
<bitops> mads-: usually you have to install a "devel" package to pick up the headers
havenn [havenn!~skipper@rrcs-76-79-113-21.west.biz.rr.com] has joined #ruby
<bitops> and then I believe re-run extconf.rb and make
<bitops> that is going off of rusty memory though
mksm [mksm!~ramorim@pdpc/supporter/professional/mksm] has joined #ruby
mattyohe [mattyohe!~mattyohe@2620:0:e50:3011:d52c:7e13:2dd8:e750] has joined #ruby
<mads-> bitops: Seemed to be just that. 4th time I did ruby extconf.rb and a decent Makefile came out of it
emanu [emanu!~emanu@209.119.67.98] has joined #ruby
icrazyhack [icrazyhack!~horieyui@183.60.101.84] has joined #ruby
<shevy> yeah, the debian based distributions are notorious for crippling packages and then forcing the user to deal with the incomplete mess
eignerchris [eignerchris!~eignerchr@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
<bitops> mads-: what shevy said, I had an OK experience on CentOS...you still have to shave a few yaks if you're compiling Ruby from source.
<bitops> openssl I'm looking in your directioN!
<shevy> what is CentOS based on? debian? fedora?
<shevy> yeah openssl is annoying
<bitops> shevy: RHEL
<bitops> it is basically the open source community grabbing the source files that Red Hat distributes and re-packaging them
<bitops> they just remove any references to Red Hat
<shevy> you have to use ./config ... and in the earlier openssl it always wanted to install into /usr/local/openssl no matter what prefix I tried to use (or I was too dumb? But other GNU autoconfigure packages always honoured --prefix=/usr, openssl not )
mamu [mamu!~Michael@c-75-73-32-123.hsd1.mn.comcast.net] has quit [#ruby]
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
headius [headius!~headius@71-210-154-45.mpls.qwest.net] has joined #ruby
h4mz1d [h4mz1d!~hamfz@130.160.40.63] has joined #ruby
wyhaines [wyhaines!~wyhaines@64.134.162.13] has joined #ruby
randym [randym!~randym@113x33x226x118.ap113.ftth.ucom.ne.jp] has joined #ruby
bitops [bitops!~user@ac.playsecond.com] has quit [#ruby]
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
cobragoat [cobragoat!~cobragoat@173-160-19-241-Sacramento.hfc.comcastbusiness.net] has joined #ruby
thecreators [thecreators!~rskagy@cpe-65-27-201-150.cinci.res.rr.com] has joined #ruby
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby
Shrink [Shrink!~sgupta@114.143.55.7] has joined #ruby
Shrink [Shrink!~sgupta@redhat/shrink] has joined #ruby
john__ [john__!~john@ool-457e916e.dyn.optonline.net] has joined #ruby
<maletor> Can anybody do this fancy regex in one line?
damienbrz [damienbrz!~textual@220-245-237-178.static.tpgi.com.au] has joined #ruby
Kamont [Kamont!~Kamont@75.147.4.157] has joined #ruby
Kamont [Kamont!~Kamont@75.147.4.157] has quit [#ruby]
sdwrage_ [sdwrage_!~sdwrage@cpe-184-57-83-165.columbus.res.rr.com] has joined #ruby
c0rn [c0rn!~c0rn@adsl-69-110-7-189.dsl.pltn13.pacbell.net] has joined #ruby
icrazyhack [icrazyhack!~horieyui@221.181.65.124] has joined #ruby
vietnaam [vietnaam!~victor@187.174.205.9] has quit ["Saliendo"]
macmartine [macmartine!~macmartin@c-24-21-112-60.hsd1.or.comcast.net] has joined #ruby
wroathe [wroathe!~wroathe@173-17-249-11.client.mchsi.com] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@46-64-51-175.zone15.bethere.co.uk] has joined #ruby
letsgojuno [letsgojuno!~mmathews8@188.220.153.25] has joined #ruby
hubub [hubub!~hubub@94-193-241-95.zone7.bethere.co.uk] has joined #ruby
replore [replore!~replore@203.152.213.161.static.zoot.jp] has joined #ruby
<pablo_> maletor, Date.parse pr[0][0].scan(/Assignments for ((?:\d{1,2}-){2}\d{2})/)[0][0].tr('-','/')
luxurymode [luxurymode!~luxurymod@pool-71-167-49-181.nycmny.fios.verizon.net] has joined #ruby
tomzx [tomzx!~tomzx@dsl-156-157.aei.ca] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@pool-209-158-5-18.altnpa.east.verizon.net] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
GreaseMonkey [GreaseMonkey!~gm@unaffiliated/greasemonkey] has joined #ruby
Shrink [Shrink!~sgupta@redhat/shrink] has joined #ruby
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
tbrock [tbrock!~tbrock@cpe-66-65-101-248.nyc.res.rr.com] has joined #ruby
ryog [ryog!~ryog@p867ab9.tokynt01.ap.so-net.ne.jp] has joined #ruby
__main__ [__main__!~main@adsl-99-173-15-158.dsl.pltn13.sbcglobal.net] has joined #ruby
Blazento [Blazento!~john@ool-457e916e.dyn.optonline.net] has joined #ruby
icrazyhack [icrazyhack!~horieyui@221.192.139.107] has joined #ruby
oddmunds [oddmunds!~oddmunds@s21-04214.dsl.no.powertech.net] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
nari [nari!~nari@raichu.netlab.jp] has joined #ruby
emanu [emanu!~emanu@209.119.67.98] has joined #ruby
mars2686 [mars2686!~mars2686@c-76-17-125-148.hsd1.ga.comcast.net] has joined #ruby
genesisbot [genesisbot!~genesisbo@CPE-75-86-194-169.wi.res.rr.com] has joined #ruby
crescendo [crescendo!~eric@unaffiliated/crescendo] has joined #ruby
cobragoat [cobragoat!~cobragoat@c-76-105-54-37.hsd1.ca.comcast.net] has joined #ruby
kerframil [kerframil!~kerframil@cpc2-enfi16-2-0-cust659.hari.cable.virginmedia.com] has joined #ruby
<maletor> pablo_: how awesome are you?!
Shrink [Shrink!~sgupta@114.143.55.7] has joined #ruby
Shrink [Shrink!~sgupta@redhat/shrink] has joined #ruby
<maletor> pablo_: what about the 20 at the end?
wroathe [wroathe!~wroathe@173-17-249-11.client.mchsi.com] has joined #ruby
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
mikeycgto [mikeycgto!~mikeycgto@ool-4571cba8.dyn.optonline.net] has joined #ruby
mikeycgto [mikeycgto!~mikeycgto@pdpc/supporter/active/mikeycgto] has joined #ruby
<shevy> the last Dodo http://en.wikipedia.org/wiki/Dodo was sighted in 1662. Poor things. :(
s_segawa [s_segawa!~s_segawa@221x251x236x110.ap221.ftth.ucom.ne.jp] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
pac1 [pac1!~pac1@pool-96-233-75-235.bstnma.fios.verizon.net] has joined #ruby
genesisbot [genesisbot!~genesisbo@CPE-75-86-194-169.wi.res.rr.com] has quit ["Leaving"]
h4mz1d [h4mz1d!~hamfz@130.160.40.63] has joined #ruby
bbttxu [bbttxu!~adam@pool-71-96-208-205.dfw.dsl-w.verizon.net] has joined #ruby
davidcelis [davidcelis!~david@c-76-115-58-79.hsd1.or.comcast.net] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
hadees [hadees!~hadees@72-48-91-73.dyn.grandenetworks.net] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
tnk1 [tnk1!~tnk@ip72-195-134-180.ri.ri.cox.net] has joined #ruby
<pablo_> maletor, which 20?
<pablo_> ahhh ok
csavola [csavola!~csavola@CPE0021e9f7ea74-CM001404933e00.cpe.net.cable.rogers.com] has joined #ruby
WitzHsiao [WitzHsiao!~hsiaoxiao@61-219-118-34.HINET-IP.hinet.net] has joined #ruby
t0mmyvyo [t0mmyvyo!~tommyvyo@c-68-83-3-164.hsd1.nj.comcast.net] has joined #ruby
Shrink [Shrink!~sgupta@redhat/shrink] has joined #ruby
_|christian|_ [_|christian|_!~christian@190.234.155.205] has joined #ruby
tbrock [tbrock!~tbrock@cpe-66-65-101-248.nyc.res.rr.com] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
<pablo_> Date.parse pr[0][0].scan(/Assignments for ((?:\d{1,2}-){2}\d{2})/)[0][0].sub('-','/').sub('-','/20')
<pablo_> maletor, a bit uglier...
<pablo_> maletor, or: Date.parse pr.tr('-','/').scan(/Assignments for ((?:\d{1,2}\/){2})(\d{2})/)[0].join('20')
<mads-> I want to code web with ruby. Apart from rails what is good?
d2dchat [d2dchat!~d2dchat@c-68-42-68-174.hsd1.mi.comcast.net] has joined #ruby
iamjarvo [iamjarvo!~Adium@c-71-230-13-201.hsd1.nj.comcast.net] has joined #ruby
<Telmo> mads: sinatra and rack
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
<dagnachewa> hi all
Targen [Targen!~iguana@190.39.181.108] has joined #ruby
cobragoat [cobragoat!~cobragoat@c-76-105-54-37.hsd1.ca.comcast.net] has joined #ruby
<dagnachewa> I have installed gems on my pc and my laptop , is it normal to have more gems on my pc ? when I do a ls | wc -l , I get 178 for pc and 150 for my laptop and am sure to have installed the same gems from the ruby toolbox
wroathe [wroathe!~wroathe@173-17-249-11.client.mchsi.com] has joined #ruby
ferbass [ferbass!~ferbass@177.80.253.128] has joined #ruby
pabloh [pabloh!~pablo@186.22.82.39] has joined #ruby
colossal7 [colossal7!~colossal7@42.sub-174-253-163.myvzw.com] has joined #ruby
alx- [alx-!~Alex@108.162.180.72] has joined #ruby
hadees [hadees!~hadees@72-48-91-73.dyn.grandenetworks.net] has joined #ruby
Skaag [Skaag!~Skaag@207-38-134-148.c3-0.avec-ubr2.nyr-avec.ny.cable.rcn.com] has joined #ruby
yakko [yakko!~quassel@200.175.171.251] has joined #ruby
nowthatsamatt [nowthatsamatt!~nowthatsa@adsl-98-85-45-50.mco.bellsouth.net] has joined #ruby
Skaag [Skaag!~Skaag@207-38-134-148.c3-0.avec-ubr2.nyr-avec.ny.cable.rcn.com] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@c-24-23-252-19.hsd1.ca.comcast.net] has joined #ruby
p0y [p0y!~p0y@121.97.55.48] has joined #ruby
Shrink [Shrink!~sgupta@114.143.55.7] has joined #ruby
Shrink [Shrink!~sgupta@redhat/shrink] has joined #ruby
Clordio [Clordio!~textual@c-174-52-72-79.hsd1.ut.comcast.net] has joined #ruby
axl_ [axl_!~axl@216-43-114-19.ip.mcleodusa.net] has joined #ruby
hadees [hadees!~hadees@72-48-91-73.dyn.grandenetworks.net] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
colossal7 [colossal7!~colossal7@6.sub-174-253-180.myvzw.com] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby
Hanmac1 [Hanmac1!~hanmac@p50844E66.dip0.t-ipconnect.de] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
acadavid [acadavid!~acadavid@190.71.122.249] has joined #ruby
ttgr [ttgr!liame@nl104-214-64.student.uu.se] has quit [#ruby]
strife25 [strife25!~strife25@cpe-098-026-018-050.nc.res.rr.com] has joined #ruby
stringoO [stringoO!~JLstring@bas1-toronto42-1279598672.dsl.bell.ca] has joined #ruby
kstephens [kstephens!~kstephens@173-15-46-105-Illinois.hfc.comcastbusiness.net] has joined #ruby
blischalk [blischalk!~brettlisc@99-28-253-138.lightspeed.cicril.sbcglobal.net] has joined #ruby
centipedefarmer_ [centipedefarmer_!~centipede@75-170-150-51.desm.qwest.net] has joined #ruby
afex [afex!~kthornhil@wsip-68-225-20-130.oc.oc.cox.net] has quit [#ruby]
colint_ [colint_!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
kevinbond [kevinbond!~kevinbond@68.204.50.112] has quit [#ruby]
CircleDot [CircleDot!~CircleDot@206-169-94-86.static.twtelecom.net] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-71-183-247-164.nycmny.fios.verizon.net] has joined #ruby
Shrink [Shrink!~sgupta@114.143.55.7] has joined #ruby
Shrink [Shrink!~sgupta@redhat/shrink] has joined #ruby
[RHQme]stringo0 [[RHQme]stringo0!~JLstring@bas1-toronto42-1279599274.dsl.bell.ca] has joined #ruby
mklappstuhl [mklappstuhl!~mklappstu@p4FC3EDFB.dip.t-dialin.net] has joined #ruby
headius [headius!~headius@71-210-154-45.mpls.qwest.net] has joined #ruby
emocakes [emocakes!~om@187.54.222.105] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
WitzHsiao [WitzHsiao!~hsiaoxiao@61-219-118-34.HINET-IP.hinet.net] has joined #ruby
G [G!njones@torea.jnet.net.nz] has joined #ruby
quest88 [quest88!~quest88@c-98-207-205-137.hsd1.ca.comcast.net] has joined #ruby
colossal7 [colossal7!~colossal7@67.136.116.202] has joined #ruby
JimWu [JimWu!~jimwu@203.69.67.240] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
G [G!njones@torea.jnet.net.nz] has joined #ruby
Shrink [Shrink!~sgupta@redhat/shrink] has joined #ruby
<shevy> dagnachewa why dont you copy the gems to a USB device and transfer that
<shevy> you can find all *.gem files in /usr/lib/ruby/gems/1.8/cache/
<shevy> copy that and use that
<shevy> you can install a local gem via "gem install treetop-1.4.10.gem"
<shevy> and you can write a short ruby code that does batch-installing of all gems ... Dir['some/path/to/your/gems/**.gem'].each {|file| system 'gem install '+file}
<shevy> or something like that
<wroathe> I'm relatively new to ruby... How is passing a block into a method in ruby and yielding the result any different than calling a different method from the outer scope?
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
RudyValencia- [RudyValencia-!me@unaffiliated/rudyvalencia] has joined #ruby
<shevy> wait what
<shevy> call a different method from the outer scope?
<wroathe> Parent scope I mean
<shevy> you must define that in your method right?
colossal7 [colossal7!~colossal7@67.136.116.202] has joined #ruby
<shevy> whereas your block can be any arbitrary code
<wroathe> So it's an anonymous function?
<shevy> if you can, it would be nice if you could make a mini-code showing what you mean with calling a different method from the outer scope
<wroathe> It was a badly worded question
<shevy> I dont even know what is an anonymous function. foobar() { call_this(); call_that() }
<wroathe> yeah nvm
<shevy> did you look at File.new() {} yet?
<banisterfiend> shevy: hey shevegen
<shevy> http://ruby-doc.org/core-1.9.3/File.html#method-c-new it accepts an optional block given
<shevy> wroathe basically what the blocks allow you to do is be more flexible than you would be if you would not have them
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
radic [radic!~radic@dslb-178-007-134-114.pools.arcor-ip.net] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
counterbeing [counterbeing!~textual@c-24-130-82-93.hsd1.ca.comcast.net] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
Gekz [Gekz!~gekz@unaffiliated/gekz] has joined #ruby
statarb3 [statarb3!~CoreD@546A56AA.cm-12-3b.dynamic.ziggo.nl] has joined #ruby
statarb3 [statarb3!~CoreD@unaffiliated/statarb3] has joined #ruby
maletor [maletor!~maletor@c-69-181-24-86.hsd1.ca.comcast.net] has joined #ruby
macmartine [macmartine!~macmartin@c-24-21-112-60.hsd1.or.comcast.net] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@pool-209-158-5-18.altnpa.east.verizon.net] has joined #ruby
john__ [john__!~john@ool-457e916e.dyn.optonline.net] has joined #ruby
Blazento [Blazento!~john@ool-457e916e.dyn.optonline.net] has joined #ruby
hadees [hadees!~hadees@72-48-91-73.dyn.grandenetworks.net] has joined #ruby
modder [modder!modder@79.133.201.85] has joined #ruby
PhilK [PhilK!~PhilK@108-94-166-51.lightspeed.sntcca.sbcglobal.net] has joined #ruby
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
trivol [trivol!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
nowthatsamatt [nowthatsamatt!~nowthatsa@adsl-98-85-45-50.mco.bellsouth.net] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@pool-209-158-5-18.altnpa.east.verizon.net] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
blueadept [blueadept!~blueadept@72.21.137.199] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
n00b_gloves [n00b_gloves!~n00b_glov@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
gianlucadv [gianlucadv!~dellavedo@host32-80-dynamic.44-79-r.retail.telecomitalia.it] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
kwertii [kwertii!~kwertii@unaffiliated/kwertii] has joined #ruby
nowthatsamatt [nowthatsamatt!~nowthatsa@adsl-98-85-45-50.mco.bellsouth.net] has quit [#ruby]
n00b_gloves [n00b_gloves!~n00b_glov@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
hrwath [hrwath!slonik@ruby.hell.edu.pl] has joined #ruby
n00b_gloves [n00b_gloves!~n00b_glov@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
rippa [rippa!~splitta@85.158.54.234] has joined #ruby
Sigma00 [Sigma00!~freenode@thankyouforhelpingushelpyouhelpusall.net] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
Sigma00 [Sigma00!~freenode@thankyouforhelpingushelpyouhelpusall.net] has joined #ruby
CodyMaverick [CodyMaverick!~cody@80.249.82.205] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
CodyMaverick [CodyMaverick!~cody@80.249.82.205] has joined #ruby
centipedefarmer_ [centipedefarmer_!~centipede@75-162-52-240.desm.qwest.net] has joined #ruby
jbw [jbw!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
gianlucadv [gianlucadv!~user@host32-80-dynamic.44-79-r.retail.telecomitalia.it] has joined #ruby
crankycoder [crankycoder!~crankycod@173-164-174-193-SFBA.hfc.comcastbusiness.net] has joined #ruby
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
mrtrousers [mrtrousers!57ddb0b3@gateway/web/freenode/ip.87.221.176.179] has joined #ruby
<mrtrousers> Hello
<mrtrousers> Im trying to run: rails server But it doesnt start a server it makes a skeleton named server.. Im using ubuntu.. Any advice?
apucacao [apucacao!~apucacao@S0106602ad075859e.vc.shawcable.net] has joined #ruby
<davidcelis> mrtrousers: try #rubyonrails
<mrtrousers> OK
mikeycgto [mikeycgto!~mikeycgto@ool-4571cba8.dyn.optonline.net] has joined #ruby
mikeycgto [mikeycgto!~mikeycgto@pdpc/supporter/active/mikeycgto] has joined #ruby
gigamonkey [gigamonkey!~user@adsl-99-179-45-189.dsl.pltn13.sbcglobal.net] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
csherin [csherin!~csherin@115.111.177.122] has joined #ruby
gigamonk` [gigamonk`!~user@adsl-99-179-45-189.dsl.pltn13.sbcglobal.net] has joined #ruby
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
raincole_ [raincole_!~raincole@220-134-147-126.HINET-IP.hinet.net] has joined #ruby
a_a_g [a_a_g!~aag@203.123.164.34] has joined #ruby
spectre^ [spectre^!~spectre@sticky.clownjuice.com] has joined #ruby
banisterfiend [banisterfiend!~baniseter@122.63.250.71] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
ghosTM55 [ghosTM55!~user@li279-245.members.linode.com] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
straind [straind!~stupidper@n113s146.bbr1.shentel.net] has joined #ruby
rramsden [rramsden!~rramsden@s64-180-62-209.bc.hsia.telus.net] has joined #ruby
radmacd [radmacd!~radmacd@modemcable055.68-82-70.mc.videotron.ca] has joined #ruby
emanu [emanu!~emanu@c-98-234-234-224.hsd1.ca.comcast.net] has joined #ruby
spectre^ [spectre^!~spectre@sticky.clownjuice.com] has joined #ruby
tonini [tonini!~zastav@edge.garaio.com] has joined #ruby
thecreators [thecreators!~rskagy@cpe-65-27-201-150.cinci.res.rr.com] has joined #ruby
hemanth [hemanth!~hemanth@121.244.159.130] has joined #ruby
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
seb_ [seb_!~seb@lns-bzn-32-82-254-63-11.adsl.proxad.net] has joined #ruby
Araxia_ [Araxia_!~Araxia@c-24-22-63-1.hsd1.or.comcast.net] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
Winston_smith [Winston_smith!~metaverse@61.4.124.223] has joined #ruby
<Winston_smith> @find examples
Brandonn [Brandonn!~brandon@cpe-174-097-242-015.nc.res.rr.com] has joined #ruby
bbrandon [bbrandon!~brandon@cpe-174-097-242-015.nc.res.rr.com] has joined #ruby
yxhuvud [yxhuvud!mongo@h-85-82.a212.priv.bahnhof.se] has joined #ruby
kstephens [kstephens!~kstephens@173-15-46-105-Illinois.hfc.comcastbusiness.net] has joined #ruby
wenbert [wenbert!~wenbert@119.93.75.161] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
fullsailor [fullsailor!~fullsailo@ip24-250-174-76.ga.at.cox.net] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
minijupe [minijupe!~benlieb@adsl-74-243-170-217.ard.bellsouth.net] has joined #ruby
HardyBoy [HardyBoy!736e0874@gateway/web/freenode/ip.115.110.8.116] has joined #ruby
wedtm [wedtm!~wedtm@173-12-163-78-oregon.hfc.comcastbusiness.net] has joined #ruby
<HardyBoy> Hai friends... Have a small doubt .... how to check if a variable which has date value in it is empty or not? Suppose i have date=Time.now them can I do date.empty? or date.nil? or date.blank?
c0rn [c0rn!~c0rn@50-0-142-2.dsl.dynamic.sonic.net] has joined #ruby
<HardyBoy> whic one will be the best?
<fullsailor> date.nil?
<fullsailor> Object#blank? is a ActiveSupport extension
lucidstudios [lucidstudios!~lucidstud@99-120-73-136.lightspeed.sntcca.sbcglobal.net] has joined #ruby
p1d [p1d!~p1d@ns1.vonaffenfels.de] has joined #ruby
vajrapani666 [vajrapani666!~vajrapani@c-69-181-26-39.hsd1.ca.comcast.net] has joined #ruby
enherit [enherit!~enherit@24-176-217-66.dhcp.lnbh.ca.charter.com] has joined #ruby
<vajrapani666> How exactly do I add a specific flag for a gem in my gem file …. e.g. --with-mysql-lib= ……. ?
<fullsailor> I'm not sure that you can.
<fullsailor> You should gem install those before running bundle install
<fullsailor> It could be supported now.
<vajrapani666> I found some documentation suggesting i can do it with bundler config
<deryl> bundle config build.<gemname> --flags iirc
<vajrapani666> that's what i've been trying .. its just not picking my flags up
<vajrapani666> ahh.. its picking them up.. its just not working
Bosox20051 [Bosox20051!~DMichaels@unaffiliated/bosox20051] has joined #ruby
<deryl> well gem won't. bundler passes that in when it builds the gem
<deryl> ahh
<deryl> wrong flag9s)?
<deryl> s/9/\(/
<vajrapani666> looks like extconf.rb was executed with "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb --with-zmq-dir=/usr/local/Cellar/zeromq/2.1.11/lib"
<vajrapani666> (I mentioned mysql because it is a more familiar use case, i'm trying to install zmq gemand get it to use brew's zmq location)
<deryl> its been a bit, but i think you added too much. remove the '/lib' part
<deryl> it looks under the dir for the headers and the libs
<deryl> no headers under the lib dir itself correct?
<vajrapani666> ahhh… let me try that
<vajrapani666> i suppose i should actually look at what's in those dirs eh...
<deryl> and you might *have* to add the "" around the path
<deryl> aka --with-zmq-dir="/usr/local/Cellar/zeromq/2.1.11"
Guest47735 [Guest47735!~gordon@74-95-2-94-SFBA.hfc.comcastbusiness.net] has joined #ruby
<vajrapani666> Grr… it even says it found zmq.h … it can't find zmq_init() for some reason
<vajrapani666> let me muck around with it for a bit
<deryl> cd /usr/local/Cellar/zeromq/2.1.11 && grep -rn zmq_init .
Locke23rus [Locke23rus!~quassel@188.162.162.191] has joined #ruby
<deryl> though you can also use ack but i'm not as familiar with ack
<vajrapani666> zmq.h has ZMQ_EXPORT void *zmq_init (int io_threads);
impi [impi!~impi@dsl-243-84-84.telkomadsl.co.za] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
thone [thone!~thone@g226033030.adsl.alicedsl.de] has joined #ruby
senny [senny!~senny@edge.garaio.com] has joined #ruby
colossal7 [colossal7!~colossal7@67.136.116.202] has joined #ruby
JohnBat26 [JohnBat26!~Eugene@89.175.77.79] has joined #ruby
djdb [djdb!~digitalbo@linux.minsk.tutby.com] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
rudyl313 [rudyl313!4caf4885@gateway/web/freenode/ip.76.175.72.133] has joined #ruby
boianmiahilov [boianmiahilov!~Adium@83.97.64.97] has joined #ruby
<boianmiahilov> Hi all :)
<boianmiahilov> i need a little help
<boianmiahilov> undefined method `+' for nil:NilClass
<boianmiahilov> anyone knows what this means
<rippa> yes
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
<rippa> you are calling + on a nil
<fullsailor> It means you have a line variable + something and the variable is nil.
<Guest47735> it means you tried to do this 'nil + something'
<boianmiahilov> aah i see
<Guest47735> so probably you have a variable that is nil where you dont expect it to be
<boianmiahilov> <%= ActionController::Base.relative_url_root + "/images/database_key.png" %>
<boianmiahilov> means that my ActionController::Base.relative_url_root is nil
<Guest47735> yup
<boianmiahilov> i understand now
zommi [zommi!quassel@nat/ibm/x-cwbfkiysuvcpndnh] has joined #ruby
alx- [alx-!~Alex@108.162.180.72] has joined #ruby
colossal7 [colossal7!~colossal7@67.136.116.202] has joined #ruby
eighty4 [eighty4!~eighty4@unaffiliated/eighty4] has joined #ruby
<vajrapani666> Ah.h… I can get it to install if i do export arch flags = x86_64 !
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
dekroning [dekroning!~dekroning@541B931D.cm-5-4c.dynamic.ziggo.nl] has joined #ruby
colossal7 [colossal7!~colossal7@67.136.116.202] has joined #ruby
stoffus [stoffus!~stoffus@2001:9b0:1:dead:129a:ddff:fe58:6835] has joined #ruby
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
maletor [maletor!~maletor@c-69-181-24-86.hsd1.ca.comcast.net] has joined #ruby
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby
colossal7 [colossal7!~colossal7@67.136.116.202] has joined #ruby
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-83-165.columbus.res.rr.com] has joined #ruby
chrxn [chrxn!chrxn@69.4.233.32] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
colossal7 [colossal7!~colossal7@67.136.116.202] has joined #ruby
volter [volter!~volker@85-127-135-38.dynamic.xdsl-line.inode.at] has joined #ruby
CodeZombie [CodeZombie!~CodeZombi@65.19.245.153] has joined #ruby
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
batlock666 [batlock666!~quassel@bvderbau.ugent.be] has joined #ruby
klaustsen [klaustsen!~klaustsen@62.109.36.140] has joined #ruby
colossal7 [colossal7!~colossal7@67.136.116.202] has joined #ruby
Guest93596 [Guest93596!~LessIsMor@2.176.247.220] has joined #ruby
maletor [maletor!~maletor@c-69-181-24-86.hsd1.ca.comcast.net] has joined #ruby
thatdudeguy [thatdudeguy!~thatdudeg@99-66-8-185.lightspeed.mssnks.sbcglobal.net] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
<nobitanobi> hihi
colossal7 [colossal7!~colossal7@67.136.116.202] has joined #ruby
pi3r [pi3r!~pi3r@LSt-Amand-152-32-39-189.w80-11.abo.wanadoo.fr] has joined #ruby
<fullsailor> Howdy
beseku [beseku!~beseku@p31228-ipngn2501marunouchi.tokyo.ocn.ne.jp] has joined #ruby
mvj2111 [mvj2111!~matt@cpe-66-108-210-210.nyc.res.rr.com] has joined #ruby
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
bastilian [bastilian!~bastilian@chello213047077012.23.11.vie.surfer.at] has joined #ruby
voodoofish430 [voodoofish430!~mtorres@adsl-99-93-149-204.dsl.lsan03.sbcglobal.net] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
anoNxeRo [anoNxeRo!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
symb0l [symb0l!~symb0l@c-50-131-187-183.hsd1.ca.comcast.net] has joined #ruby
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby
colossal7 [colossal7!~colossal7@67.136.116.202] has joined #ruby
mklappstuhl [mklappstuhl!~mklappstu@p4FC3EDFB.dip.t-dialin.net] has joined #ruby
voodoofish [voodoofish!~voodoowin@adsl-99-93-149-204.dsl.lsan03.sbcglobal.net] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-83-165.columbus.res.rr.com] has quit [#ruby]
cyri_ [cyri_!~cyri_@149.93.119.80.rev.sfr.net] has joined #ruby
DeeJayTwo [DeeJayTwo!~deejay2@office.abi.ca] has joined #ruby
cyri_ [cyri_!~cyri_@149.93.119.80.rev.sfr.net] has joined #ruby
stephans [stephans!~stephans@76-217-209-24.lightspeed.sntcca.sbcglobal.net] has joined #ruby
Ammar01 [Ammar01!~hassaa10@gatej.thls.bbc.co.uk] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
Azure [Azure!~azt@unaffiliated/azure] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has quit [#ruby]
tokumine [tokumine!~kunio@82-69-174-54.dsl.in-addr.zen.co.uk] has joined #ruby
hatorade [hatorade!~nperry@c-67-180-90-37.hsd1.ca.comcast.net] has joined #ruby
<hatorade> anyone know how to use regex to change all the SPACES in a word to hyphens, without changing the end line character? if I used gsub(/[\s]/), '-') on "Hello World" I keep getting "Hello-World-". Anyone know what's up?
luckyruby [luckyruby!~luckyruby@125-187.96-97.tampabay.res.rr.com] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
<rippa> gsub(/\ /), '-')
<rippa> hatorade: ^
<rippa> or just
<rippa> eh, wait
<rippa> what's up with parentheses
<rippa> gsub(' ', '-')
<hatorade> was using regex i guess
<sgronblo> yeah \s is "whitespace" in general which includes \n
<hatorade> oh
Nanuq [Nanuq!~nanuq@cave45.ecks.ca] has joined #ruby
<hatorade> i see
<sgronblo> you could chomp the line first
<hatorade> i stripped it…shouldn't that work?
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has joined #ruby
Azure [Azure!~Azure@unaffiliated/azure] has joined #ruby
stayarrr [stayarrr!~olivererx@dslb-178-009-059-241.pools.arcor-ip.net] has joined #ruby
shevy [shevy!~shevy@178-190-74-219.adsl.highway.telekom.at] has joined #ruby
dwon [dwon!~dwon@75.119.251.37] has joined #ruby
EddieS [EddieS!~ed@212.59.167.161] has joined #ruby
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby
faber [faber!~faber@ppp-104-4.26-151.libero.it] has joined #ruby
grefab [grefab!~gregor@static.73.94.4.46.clients.your-server.de] has joined #ruby
ohcibi [ohcibi!~quassel@thisdone.de] has joined #ruby
maasha [maasha!82e1d34f@gateway/web/freenode/ip.130.225.211.79] has joined #ruby
Azure [Azure!~azt@unaffiliated/azure] has joined #ruby
workmad3 [workmad3!~workmad3@vpn148.its.manchester.ac.uk] has joined #ruby
<maasha> møjn
tk_ [tk_!~tk@p083005.doubleroute.jp] has joined #ruby
kerframil [kerframil!~kerframil@cpc2-enfi16-2-0-cust659.hari.cable.virginmedia.com] has joined #ruby
Azure|netbook [Azure|netbook!~azt@unaffiliated/azure] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
kerframil [kerframil!~kerframil@cpc2-enfi16-2-0-cust659.hari.cable.virginmedia.com] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
<Hanmac> trivol: are your string questions answerd?
kerframil [kerframil!~kerframil@gentoo/user/kerframil] has joined #ruby
Shrink [Shrink!sgupta@redhat/shrink] has joined #ruby
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
thecreators [thecreators!~rskagy@cpe-65-27-201-150.cinci.res.rr.com] has joined #ruby
enherit [enherit!~enherit@24-176-217-66.dhcp.lnbh.ca.charter.com] has joined #ruby
<sgronblo> Can you give an argument to next?
<Hanmac> you mean the keyword "next"?
<banisterfiend> sgronblo: yes you can
<banisterfiend> sgronblo: and it exits the block with that value
<banisterfiend> sgronblo: proc { next "hanmac is a silly german rascal" }.call #=> "hanmac is a silly german rascal"
musee [musee!~musee@unaffiliated/musee] has joined #ruby
<sgronblo> banisterfiend: ah thanks
tokumine [tokumine!~kunio@82-69-174-54.dsl.in-addr.zen.co.uk] has joined #ruby
volter [volter!~volker@85-127-135-38.dynamic.xdsl-line.inode.at] has joined #ruby
the_hack [the_hack!~textual@host86-171-72-116.range86-171.btcentralplus.com] has joined #ruby
Spockz` [Spockz`!~Spockz@21pc198.sshunet.nl] has joined #ruby
<sgronblo> This code for backtracefilter in 1.8.7 is kinda unclear
musee [musee!~musee@unaffiliated/musee] has joined #ruby
Raboo [Raboo!~rabi@nikson.dataphone.se] has joined #ruby
pen [pen!~pen@dhcp1.csie.ntu.edu.tw] has joined #ruby
<sgronblo> Poorly named variables
<banisterfiend> sgronblo: naming is hard, "LET"S GO SHOPPPING"
hardyboy [hardyboy!736e0874@gateway/web/freenode/ip.115.110.8.116] has joined #ruby
<hardyboy> Hai friends... need a small help
<sgronblo> Yeah but they could have tried harder than this
<hardyboy> https://gist.github.com/1646568 here how i can i check if the community with same name exists or not before creating a new community ie community.save! ??
mikespokefire [mikespokefire!~mikespoke@94-193-81-39.zone7.bethere.co.uk] has joined #ruby
<hardyboy> it should be compared with community.title pls help me i am new to ruby
mikespokefire [mikespokefire!~mikespoke@94-193-81-39.zone7.bethere.co.uk] has joined #ruby
jbpros [jbpros!~jbpros@89-178-112-217.dyn.adsl.belcenter.be] has joined #ruby
<hardyboy> ple help me anyone :(
<CodyMaverick> i advice you to compare with id, not title, cause id must be unique
jbpros_ [jbpros_!~jbpros@82-186-112-217.dyn.adsl.belcenter.be] has joined #ruby
Nss_ [Nss_!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
<Amorsen> If I run a command with %x I get a long string back.
<Amorsen> Then I run each_line on it to get an iterator
<Amorsen> Sorry, lines
<Amorsen> Now I want to do something with the first line (header) and iterate over the rest
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
<Amorsen> I can easily get the first line with .next, but I can't iterate over the rest except with .next, and .next ends in an exception when I run out of data
<Amorsen> Obviously I can catch that exception, but there must be a better way to do this
<a_a_g> Amorsen: you could split the string with str.spli("\n") and get an array of strings
tokumine_ [tokumine_!~kunio@82-69-174-54.dsl.in-addr.zen.co.uk] has joined #ruby
<a_a_g> str.split
ikaros [ikaros!~ikaros@dslb-188-107-220-229.pools.arcor-ip.net] has joined #ruby
<Amorsen> I could, but it's an awful lot of output to go through twice
blooberr [blooberr!u5163@gateway/web/irccloud.com/x-jfbjgrozycvitkmc] has joined #ruby
<CH3COOH> >but I can't iterate over the rest except with .next
<CH3COOH> why?
<Amorsen> CH3COOH: How else can I do it?
<a_a_g> what do you mean by go through twice?
<Amorsen> CH3COOH: .each doesn't work, it gives me the first line again. Then I'd need to check every iteration whether I'm in the first line
<a_a_g> Amorsen: array.delete to remove the first line
<Amorsen> a_a_g: split would copy the whole string into an array. lines hopefully does it without actually copying.
<a_a_g> the original string will be discarded if you dont keep a reference to it
<CH3COOH> how time-critical it is anyway?
<CH3COOH> is it bottleneck?
<Amorsen> Not that time critical, it just seems like something which must be a reasonably common task
<Amorsen> That it would be nice to handle relatively efficiently
<a_a_g> if you do each_line, its going to do similar computations as split("\n")
<a_a_g> just amortised over time
<Amorsen> a_a_g: .lines with .next should touch each part of the string once instead of twice. Reading it into cache (or even memory) is not optimal
<Amorsen> s/ is not/twice is not/
<a_a_g> Amorsen: its not twice into memory. the original large string can be discarded by the GC after the split
<a_a_g> after the split is done, only the array of substrings would remain
<a_a_g> only while split is being executed would the memory be twice
<Amorsen> Yes, I'm not worrying about keeping it in memory twice, I'm worried about reading it twice
<a_a_g> reading from where?
<rippa> from memory
<rippa> into array
<a_a_g> you mean reading it once during split and reading it once during the iteration?
<Amorsen> Right
<a_a_g> each_line would do the same right?
<Amorsen> It shouldn't
<a_a_g> its going to 'read' the string, create a new string for a line, and pass the new string to the block
fermion [fermion!~textual@venkman.brightcove.com] has joined #ruby
<Amorsen> That line will be cache-hot
<a_a_g> but it will create a new string object from it
bigkm [bigkm!~bigkm@60-241-223-44.static.tpgi.com.au] has joined #ruby
<rippa> that's called "premature optimisation"
<a_a_g> not sure that split and each_line are much different in that case
<Amorsen> They should be. Rubys standard library seems to be quite conscious about not doing unnecessary work
<Amorsen> The whole Enumerator thing is a clever way of avoiding unnecessary Arrays
<banisterfiend> rippa: hello
elliot98 [elliot98!~elliot@77.126.225.208] has joined #ruby
<rippa> hi
Dreamer3 [Dreamer3!~Dreamer3@74-134-34-116.dhcp.insightbb.com] has joined #ruby
theishi [theishi!~max@87.249.45.135] has joined #ruby
<theishi> I am getting the error 'no such file to load' when I attempt to require a ruby file. Both files are in the same directory, and I am spelling it correctly. What could cause this?
robyurkowski [robyurkowski!~robyurkow@205.233.80.139] has joined #ruby
pen [pen!~pen@dhcp1.csie.ntu.edu.tw] has joined #ruby
ABK [ABK!~abhishekk@14.140.107.130] has joined #ruby
<Hanmac> theishi: you use 1.9.3? then you need require_relative
<theishi> 1.9.2 Hanmac
<Hanmac> hm you can try it with require_relative, but i thought it was an 1.9.3 feature ...
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
<theishi> already did
<theishi> and no, didn't work
kakaskin [kakaskin!~CLDG@87.252.227.117] has joined #ruby
<theishi> oh wait, actually it did, similiar error though...
ecolitan [ecolitan!~ecolitan@aaron.glamus.de] has joined #ruby
<Hanmac> can you pastie the error?
x0F [x0F!~x0F@unaffiliated/x0f] has joined #ruby
<a_a_g> Amorsen: worst case - str.slice(str.index("\n")…-1).each_line
<a_a_g> assuming slice uses the same memory. (it should, since strings are immutable)
<theishi> Hanmac: it was the same error, I just needed to add require_relative inside the includes and it works
<Hanmac> oh ok then it is good ...
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has joined #ruby
michael_mbp [michael_mbp!~Marin@31.203.200.89] has joined #ruby
anoNxeRo [anoNxeRo!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
robotmay_ [robotmay_!~robotmay@94.30.13.228] has joined #ruby
adman65 [adman65!~adman65@d141137.adsl.hansenet.de] has joined #ruby
volter [volter!~volker@85-127-135-38.dynamic.xdsl-line.inode.at] has joined #ruby
tvw [tvw!~tv@212.79.9.150] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
fr0gprince_ [fr0gprince_!Bart@178-85-90-223.dynamic.upc.nl] has joined #ruby
palcu [palcu!~alex@89.122.187.223] has joined #ruby
nari [nari!~nari@p42fa56.totrnt01.ap.so-net.ne.jp] has joined #ruby
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has joined #ruby
zastaph [zastaph!zastaph@unaffiliated/zastaph] has joined #ruby
a_a_g [a_a_g!~aag@121.246.33.172] has joined #ruby
arnihermann [arnihermann!u1395@gateway/web/irccloud.com/x-iaqebtphnpydzxtf] has joined #ruby
QaDeS [QaDeS!~mklaus@frbg-5d84f20b.pool.mediaWays.net] has joined #ruby
<arnihermann> can I have erb read values for variables from the environment of my shell?
raincole_ [raincole_!~raincole@140.112.239.113] has joined #ruby
<Tasser> arnihermann, it's ruby
<Tasser> arnihermann, try ENV
<arnihermann> ah
<arnihermann> sweet
<arnihermann> thanks
pen [pen!~pen@dhcp1.csie.ntu.edu.tw] has joined #ruby
shellox [shellox!pb@gateway/shell/blinkenshell.org/x-swlsmsnayootpnse] has quit [#ruby]
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
geaif [geaif!~geaif@xdsl-188-155-129-176.adslplus.ch] has joined #ruby
araujo [araujo!~araujo@190.73.44.29] has joined #ruby
araujo [araujo!~araujo@gentoo/developer/araujo] has joined #ruby
acadavid [acadavid!~acadavid@190.71.122.249] has joined #ruby
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
strife25 [strife25!~strife25@cpe-098-026-018-050.nc.res.rr.com] has joined #ruby
musee [musee!~musee@199.180.254.41] has joined #ruby
banisterfiend [banisterfiend!~baniseter@118.82.185.158] has joined #ruby
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
musee [musee!~musee@unaffiliated/musee] has joined #ruby
Spockz [Spockz!~Spockz@21pc198.sshunet.nl] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-71-183-247-164.nycmny.fios.verizon.net] has joined #ruby
musee [musee!~musee@unaffiliated/musee] has joined #ruby
<theishi> Hanmac: I am going using this gem called RubyWarrior. Basically you write some AI code and this RubyWarrior will run the code inside its game. When I run RubyWarrior, require works great, but when I run my specs to test my AI out, I need require_relative, but require_realitive doesn't work with RubyWarrior. Anyway to make both happy without constantly changing them back and forth?
<Tasser> theishi, $LOAD_PATH
<banisterfiend> theishi: use ruby 1.9
<theishi> Tasser: I put that where exactly?
<theishi> banisterfiend: you are probably right
nanderoo [nanderoo!~nanders@38.124.137.226] has joined #ruby
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
kvyn [kvyn!~kvyn@w0109-49-133-112-146.uqwimax.jp] has joined #ruby
strife25 [strife25!~strife25@cpe-098-026-018-050.nc.res.rr.com] has joined #ruby
symb0l [symb0l!~symb0l@c-50-131-187-183.hsd1.ca.comcast.net] has joined #ruby
Spockz [Spockz!~Spockz@131.211.235.98] has joined #ruby
Kavu [Kavu!~Kavu@zurich.tunnelr.com] has joined #ruby
<theishi> banisterfiend: I am not really paying attention it seems. I am using ruby 1.9
`brendan [`brendan!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
<Tasser> theishi, on the startup file somewhere
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
<Tasser> theishi, with $LOAD_PATH I mean to add paths to the loadpath for require according to your needs
rickmasta [rickmasta!~rickmasta@pool-71-183-247-164.nycmny.fios.verizon.net] has joined #ruby
flippingbits [flippingbits!~anonymous@ip-81-210-178-39.unitymediagroup.de] has joined #ruby
<theishi> Tasser: do I put an equals in there? $LOAD_PATH = "/home/me/mydir" ?
niklasb [niklasb!~codeslay0@p5B31098C.dip0.t-ipconnect.de] has joined #ruby
apeiros_ [apeiros_!~apeiros@194.209.75.58] has joined #ruby
<theishi> Tasser: ok I have $LOAD_PATH << '/home/me/mydr', but require still doesn't work.... no errors though and if i switch it to require relative it does work
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
<Tasser> then use require_realtive
<theishi> Tasser: :-) the problem though is when I run rubywarrior, the require_relative gives me an error
<apeiros_> rubywarrior defeated
<banisterfiend> theishi: why dont u tell us what the error is
<theishi> undefined method `require_relative' for Player:Class (NoMethodError)
<banisterfiend> theishi: 1.9.2 ?
<theishi> yup banisterfiend
<theishi> banisterfiend: but I am not exactly sure what this rubywarrior does. Maybe it is using another version of ruby, I might have two differnt versions installed
musee [musee!~musee@unaffiliated/musee] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
<maasha> I am missing something vital using popen3 -> http://pastie.org/3218906
<maasha> It works mostly, but sometimes this method hangs. some thread waiting is needed?
nanderoo [nanderoo!~nanders@38.124.137.226] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-bgermzuftejmfokk] has joined #ruby
<JonnieCache> something is blocking i guess
`brendan [`brendan!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
<maasha> that stdin.close is also evil
<maasha> or what?
tesmar [tesmar!~tesmar@cpe-024-163-059-067.nc.res.rr.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
lottadot [lottadot!~lottadot@38.101.67.253] has joined #ruby
lorandi [lorandi!~lorandi@143.106.167.234] has joined #ruby
ePirat [ePirat!~ePirat@unaffiliated/epirat] has joined #ruby
robyurkowski [robyurkowski!~robyurkow@205.233.80.139] has joined #ruby
JonnieCache [JonnieCache!~jonnie@87.252.60.35] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
emocakes [emocakes!~om@187.54.222.105] has joined #ruby
<maasha> hm, the examples in the ruby cookbook on this sucks
pen [pen!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
joast [joast!~rick@76.178.187.164] has joined #ruby
minijupe [minijupe!~benlieb@adsl-74-243-170-217.ard.bellsouth.net] has joined #ruby
blischalk [blischalk!~brettlisc@99-28-253-138.lightspeed.cicril.sbcglobal.net] has joined #ruby
rippa [rippa!~rippa@87-253-30-9.pppoe.yaroslavl.ru] has joined #ruby
mk03 [mk03!~mk03@61.245.119.34.er.eaccess.ne.jp] has joined #ruby
the_hack [the_hack!~textual@host86-171-72-116.range86-171.btcentralplus.com] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
centipedefarmer_ [centipedefarmer_!~centipede@75-162-52-240.desm.qwest.net] has joined #ruby
bbttxu [bbttxu!~adam@dynamic-129-120-52-214.dynamic.unt.edu] has joined #ruby
leoncamel [leoncamel!~user@219.142.134.223] has joined #ruby
IrishGringo [IrishGringo!~chatzilla@c-71-229-99-200.hsd1.fl.comcast.net] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
Dangr_ [Dangr_!~sseellff@173-161-51-209-Illinois.hfc.comcastbusiness.net] has joined #ruby
devil496 [devil496!devil496@151.80.102.155] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@216.199.155.226.nw.nuvox.net] has joined #ruby
wroathe [wroathe!~wroathe@75-146-189-233-Minnesota.hfc.comcastbusiness.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby
mztriz [mztriz!~mztriz@nkugateway.nku.edu] has joined #ruby
<mztriz> Is there a directory listing script for a website in Ruby...similar to this? http://greg-j.com/phpdl/
vraa [vraa!~vraa@c-76-30-135-64.hsd1.tx.comcast.net] has joined #ruby
indstry [indstry!~apple@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@h142.127.232.68.dynamic.ip.windstream.net] has joined #ruby
EdwardHill [EdwardHill!d4e84253@gateway/web/freenode/ip.212.232.66.83] has joined #ruby
EdwardHill [EdwardHill!d4e84253@gateway/web/freenode/ip.212.232.66.83] has quit [#ruby]
MattDiPasquale [MattDiPasquale!~MattDiPas@rrcs-50-74-151-122.nyc.biz.rr.com] has joined #ruby
looopy [looopy!~looopy@pool-141-156-47-145.washdc.btas.verizon.net] has joined #ruby
nari [nari!~nari@p42fa56.totrnt01.ap.so-net.ne.jp] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
<theishi> is there any way to write an if statement that checks to see which version of ruby you are running? If ruby1.8 require, if ruby1.9 require_relative.... something like that?
c0rn [c0rn!~c0rn@207.239.114.206] has joined #ruby
MattDiPasquale [MattDiPasquale!~MattDiPas@rrcs-50-74-151-122.nyc.biz.rr.com] has joined #ruby
<Amorsen> theishi: RUBY_VERSION?
mdel [mdel!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
Asher [Asher!~asher@c-24-126-149-16.hsd1.ga.comcast.net] has joined #ruby
TaTonka [TaTonka!~TaTonka@ip-178-201-115-87.unitymediagroup.de] has joined #ruby
amacgregor [amacgregor!~amacgrego@CPE00222dcb0a53-CM00222dcb0a4f.cpe.net.cable.rogers.com] has joined #ruby
<theishi> Amorsen: cool thanks... it just feels wierd putting if statements outside of functions
Asher [Asher!~asher@98.158.127.150] has joined #ruby
jtrudeau [jtrudeau!~jeff@c-76-127-237-194.hsd1.ma.comcast.net] has joined #ruby
ale`` [ale``!~user@dynamic-adsl-94-39-241-62.clienti.tiscali.it] has joined #ruby
wroathe [wroathe!~wroathe@75-146-189-233-Minnesota.hfc.comcastbusiness.net] has joined #ruby
kakaskin [kakaskin!~CLDG@87.252.227.117] has joined #ruby
MattDiPasquale [MattDiPasquale!~MattDiPas@rrcs-50-74-151-122.nyc.biz.rr.com] has joined #ruby
mkscrg [mkscrg!~mkscrg@pool-108-41-134-165.nycmny.fios.verizon.net] has joined #ruby
<apeiros_> theishi: what are you using that condition for?
<apeiros_> if you're using it to add methods - use duck-typing instead. check for the presence of the method in the condition, not the ruby version.
Synthead [Synthead!~max@50-76-231-54-static.hfc.comcastbusiness.net] has joined #ruby
bbrandon [bbrandon!~brandon@cpe-174-097-242-015.nc.res.rr.com] has joined #ruby
asobrasil [asobrasil!~asantioli@palpatine.privatedns.com] has joined #ruby
`brendan [`brendan!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
geekbri [geekbri!~geekbri@208.252.10.190] has joined #ruby
tomzx [tomzx!~tomzx@dsl-156-157.aei.ca] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
evantravers [evantravers!~textual@fw.luckie.net] has joined #ruby
philcrissman [philcrissman!~philcriss@206.57.45.116] has joined #ruby
sbanwart [sbanwart!~sbanwart@66.6.175.18] has joined #ruby
csavola [csavola!~csavola@76-10-149-67.dsl.teksavvy.com] has joined #ruby
<theishi> apeiros_: I am adding that condition because I have code that is being run by two different versions of ruby (unavoidable), 1.8 doesn't like require_relative, and 1.9 doesn't like require
jackerran [jackerran!~jackerran@fw.luckie.net] has joined #ruby
bbrandon [bbrandon!~brandon@cpe-174-097-242-015.nc.res.rr.com] has joined #ruby
<theishi> apeiros_: interesting idea duck typing, never heard of it before. I will look into that idea
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
colossal7 [colossal7!~colossal7@67.136.116.202] has joined #ruby
eldariof [eldariof!~CLD@81.200.20.70] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-vxmvmknaiwspljrd] has joined #ruby
<apeiros_> theishi: if respond_to?(:require_relative, true) then … use require_relative … else … use whatever else … end
<apeiros_> theishi: tho, require_relative--, you shouldn't ever have to use it. if you do, you do it wrong IMO.
<apeiros_> the ', true' in respond_to? is needed because require_relative is private and respond_to? doesn't include those normally.
zenergi [zenergi!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
kpshek [kpshek!~kpshek@159.140.254.109] has joined #ruby
kevinbond [kevinbond!~kevinbond@250.orl54.voxeo.com] has joined #ruby
<theishi> apeiros_: very cool, thanks :-)
beakerman [beakerman!~beakerman@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
davidpk [davidpk!~r00t@5e0a161e.bb.sky.com] has joined #ruby
vajrapani666 [vajrapani666!~vajrapani@c-69-181-26-39.hsd1.ca.comcast.net] has joined #ruby
d2dchat [d2dchat!~d2dchat@c-68-42-68-174.hsd1.mi.comcast.net] has joined #ruby
jmorton [jmorton!~jmorton@CUSTOMINK-L.ipcolo2.Washington1.Level3.net] has joined #ruby
alx- [alx-!~Alex@108.162.180.72] has joined #ruby
Sailias [Sailias!~jonathan@206-248-172-164.dsl.teksavvy.com] has joined #ruby
Buck [Buck!~Buck@unaffiliated/buck] has quit ["Leaving"]
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby
enherit [enherit!~enherit@216.3.99.206] has joined #ruby
centipedefarmer_ [centipedefarmer_!~centipede@75-162-52-240.desm.qwest.net] has joined #ruby
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-rwdblfjpuegialdh] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
acadavid [acadavid!~acadavid@190.71.122.249] has joined #ruby
p0y [p0y!~p0y@125.212.56.111] has joined #ruby
Telmo [Telmo!~telmo@c-68-44-135-81.hsd1.pa.comcast.net] has quit [#ruby]
x77686d [x77686d!~whm@vecta.cs.arizona.edu] has joined #ruby
Telmo [Telmo!~telmo@c-68-44-135-81.hsd1.pa.comcast.net] has joined #ruby
hydrozen [hydrozen!~textual@modemcable110.38-37-24.static.videotron.ca] has joined #ruby
bbrandon [bbrandon!~brandon@cpe-174-097-242-015.nc.res.rr.com] has joined #ruby
davidpk [davidpk!~r00t@5e0a03db.bb.sky.com] has joined #ruby
Buck [Buck!~Buck@unaffiliated/buck] has joined #ruby
<Buck> is it possible to run a numeric loop in reverse (ie. 5..0 instead of 0..5) and how?
<Tasser> Buck, 5.downto(0)
<Buck> thank you Tasser
LMolr [LMolr!~quassel@87.19.33.245] has joined #ruby
silky [silky!~silky@pool-74-108-142-22.nycmny.fios.verizon.net] has joined #ruby
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby
<Hanmac> apeoros_ but require_relative is better then require :P
<theishi> if I am using two different versions of ruby, do I need to load gems for both versions?
<Hanmac> yeah you do
axl_ [axl_!~axl@75-149-152-225-Minnesota.hfc.comcastbusiness.net] has joined #ruby
<theishi> Hanmac: how can I check which gems are installed for 1.8, if 1.9.2 is the default
<Hanmac> gem1.8 ?
<theishi> scratch that, figured the problem out... thanks
Ankhers [Ankhers!~user@76-10-149-67.dsl.teksavvy.com] has joined #ruby
a_a_g [a_a_g!~aag@121.246.33.172] has joined #ruby
nowthatsamatt [nowthatsamatt!~nowthatsa@rrcs-71-43-23-18.se.biz.rr.com] has joined #ruby
nowthatsamatt [nowthatsamatt!~nowthatsa@rrcs-71-43-23-18.se.biz.rr.com] has quit [#ruby]
pi3r [pi3r!~pi3r@LSt-Amand-152-32-39-189.w80-11.abo.wanadoo.fr] has joined #ruby
Spockz [Spockz!~Spockz@21pc198.sshunet.nl] has joined #ruby
asteve [asteve!~asteve@unaffiliated/kxsteve] has joined #ruby
pootpoot [pootpoot!~pootpoot@38.108.250.130] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@108.60.121.130] has joined #ruby
ferbass [ferbass!~ferbass@187.3.205.21] has joined #ruby
iamjarvo [iamjarvo!~Adium@c-68-80-200-61.hsd1.pa.comcast.net] has joined #ruby
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
v0n [v0n!~v4n@2607:fad8:4:0:21e:8cff:fe4d:2f7d] has joined #ruby
Blazento [Blazento!~john@rrcs-184-74-225-230.nyc.biz.rr.com] has joined #ruby
ferbass [ferbass!~ferbass@187.3.205.21] has joined #ruby
john__ [john__!~john@rrcs-184-74-225-230.nyc.biz.rr.com] has joined #ruby
Deiu [Deiu!~deiu@unaffiliated/deiu] has joined #ruby
elliot98 [elliot98!~elliot@77.126.225.208] has joined #ruby
statarb3 [statarb3!~CoreD@unaffiliated/statarb3] has joined #ruby
tobym [tobym!~tobym@pool-173-56-80-136.nycmny.fios.verizon.net] has joined #ruby
CreativeEmbassy [CreativeEmbassy!~CreativeE@h142.127.232.68.dynamic.ip.windstream.net] has joined #ruby
p0y [p0y!~p0y@125.212.56.111] has joined #ruby
PaciFisT [PaciFisT!~PeaCE@76-10-149-67.dsl.teksavvy.com] has joined #ruby
CharlieSu [CharlieSu!~CharlieSu@ec2-174-129-218-86.compute-1.amazonaws.com] has joined #ruby
ap3mantus [ap3mantus!~ap3mantus@c-98-217-187-172.hsd1.ma.comcast.net] has joined #ruby
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
tesmar [tesmar!~tesmar@rrcs-70-62-109-131.midsouth.biz.rr.com] has joined #ruby
colossal7 [colossal7!~colossal7@75-169-53-227.slkc.qwest.net] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
adman65 [adman65!~adman65@d141137.adsl.hansenet.de] has joined #ruby
statarb3 [statarb3!~CoreD@92.70.105.81] has joined #ruby
statarb3 [statarb3!~CoreD@unaffiliated/statarb3] has joined #ruby
ferbass [ferbass!~ferbass@187.3.205.21] has joined #ruby
emocakes [emocakes!~om@187.54.222.105] has joined #ruby
boianmiahilov1 [boianmiahilov1!~Adium@83.97.64.99] has joined #ruby
clockwize [clockwize!~clockwize@81.19.48.130] has joined #ruby
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
quest88 [quest88!~quest88@c-98-207-205-137.hsd1.ca.comcast.net] has joined #ruby
ferbass [ferbass!~ferbass@187.3.205.21] has joined #ruby
enroxorz [enroxorz!~enroxorz@unaffiliated/enroxorz] has joined #ruby
Deiu [Deiu!~deiu@unaffiliated/deiu] has joined #ruby
ferbass [ferbass!~ferbass@187.3.205.21] has joined #ruby
azureye [azureye!~azureye@wrls-249-142-54.wrls-client.fas.harvard.edu] has joined #ruby
thepix [thepix!~pix@staticline25267.toya.net.pl] has joined #ruby
adman65 [adman65!~adman65@d141137.adsl.hansenet.de] has joined #ruby
azbarcea [azbarcea!~quassel@79.114.12.230] has joined #ruby
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
blischalk [blischalk!~brettlisc@99-28-253-138.lightspeed.cicril.sbcglobal.net] has joined #ruby
ferbass [ferbass!~ferbass@187.3.205.21] has joined #ruby
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
mdel [mdel!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby
ferbass [ferbass!~ferbass@187.3.205.21] has joined #ruby
Shrink [Shrink!~sgupta@redhat/shrink] has joined #ruby
ckrailo [ckrailo!~ckrailo@208.86.167.247] has joined #ruby
csherin [csherin!~csherin@61.11.47.238] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
Targen [Targen!~iguana@190.39.181.108] has joined #ruby
lorandi [lorandi!~lorandi@143.106.167.234] has joined #ruby
Blazento [Blazento!~john@rrcs-184-74-225-230.nyc.biz.rr.com] has joined #ruby
Nss [Nss!~nss@host127-217-dynamic.55-79-r.retail.telecomitalia.it] has joined #ruby
asteve [asteve!~asteve@unaffiliated/kxsteve] has quit [#ruby]
bwlang [bwlang!~anonymous@70-91-134-14-ma-ne.hfc.comcastbusiness.net] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
x77686d [x77686d!~whm@vecta.cs.arizona.edu] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@c-24-23-252-19.hsd1.ca.comcast.net] has joined #ruby
Shrink [Shrink!~sgupta@redhat/shrink] has joined #ruby
cousine [cousine!~cousine@196.221.245.118] 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
ewag [ewag!~ewagner@office-gw.cmh.aotech.net] has joined #ruby
Scrivener [Scrivener!~Scrivener@unaffiliated/scrivener] has joined #ruby
Scrivener [Scrivener!~Scrivener@unaffiliated/scrivener] has quit ["Leaving"]
boianmiahilov [boianmiahilov!~Adium@87.120.127.238] has joined #ruby
mahlon [mahlon!mahlon@martini.nu] has joined #ruby
the_hack [the_hack!~textual@host86-171-72-116.range86-171.btcentralplus.com] has joined #ruby
john__ [john__!~john@rrcs-184-74-225-230.nyc.biz.rr.com] has joined #ruby
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby
Knt3 [Knt3!~Kn|t3@1.23.232.93] has joined #ruby
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has joined #ruby
<Knt3> Hi
the_hack_ [the_hack_!~textual@host86-171-72-116.range86-171.btcentralplus.com] has joined #ruby
Knt3 [Knt3!~Kn|t3@1.23.232.93] has quit [#ruby]
Knt3 [Knt3!~Kn|t3@1.23.232.93] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
Knt3 [Knt3!~Kn|t3@1.23.232.93] has joined #ruby
wedgeV [wedgeV!~wedge@static-96-239-100-26.nycmny.fios.verizon.net] has joined #ruby
enroxorz [enroxorz!~enroxorz@unaffiliated/enroxorz] has quit [#ruby]
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
Kn|t31 [Kn|t31!~Kn|t3@1.23.232.93] has joined #ruby
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
mars2686 [mars2686!~mars2686@71-22-192-221.gar.clearwire-wmx.net] has joined #ruby
Kn|t31 [Kn|t31!~Kn|t3@1.23.232.93] has joined #ruby
a_a_g [a_a_g!~aag@121.246.33.172] has joined #ruby
statix [statix!~statix@rrcs-208-125-52-150.nys.biz.rr.com] has joined #ruby
ShiFTKey [ShiFTKey!~Shift@206.223.184.2] has joined #ruby
ghanima [ghanima!~ghanima@163.192.12.2] has joined #ruby
davidcelis [davidcelis!~david@70-89-180-6-smc-or.hfc.comcastbusiness.net] has joined #ruby
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
Shrink [Shrink!~sgupta@redhat/shrink] has joined #ruby
Yu\2 [Yu\2!~Yu@ubi-1-50-54.zif.uni-bielefeld.de] has joined #ruby
x77686d_ [x77686d_!~whm@uawifi-nat-210-74.arizona.edu] has joined #ruby
crankycoder [crankycoder!~crankycod@2620:101:8003:200:b0c2:957:849a:1ad3] has joined #ruby
kevinbond [kevinbond!~kevinbond@250.orl54.voxeo.com] has quit [#ruby]
eignerchris [eignerchris!~eignerchr@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
relix [relix!u2146@gateway/web/irccloud.com/x-fubdjnggtieauyre] has joined #ruby
inteq [inteq!~justin.si@adsl-74-190-77-36.asm.bellsouth.net] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
pooja [pooja!u4977@gateway/web/irccloud.com/x-vdelyqsnjocgoodk] has joined #ruby
blooberr [blooberr!u5163@gateway/web/irccloud.com/x-hwkpzmapzwydmdzo] has joined #ruby
emocakes [emocakes!~om@187.54.222.105] has joined #ruby
fcoury [fcoury!u2238@gateway/web/irccloud.com/x-nujquhstdyedfdik] has joined #ruby
wedtm [wedtm!~wedtm@173-12-163-78-oregon.hfc.comcastbusiness.net] has joined #ruby
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby
shaatar [shaatar!u648@gateway/web/irccloud.com/x-ofdgevyzcsjrywdr] has joined #ruby
p0y [p0y!~p0y@125.212.56.111] has joined #ruby
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-gfipirsxijfaxkcf] has joined #ruby
SeanTAllen [SeanTAllen!u4855@gateway/web/irccloud.com/x-dclmuofxzbxsadty] has joined #ruby
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
relix [relix!u2146@gateway/web/irccloud.com/x-ruiyvbvfdosptzli] has joined #ruby
trevortwining [trevortwining!~anonymous@d221-64-66.commercial.cgocable.net] has joined #ruby
amar_key [amar_key!u2605@gateway/web/irccloud.com/x-kksuqgmptxpzpjva] has joined #ruby
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-kwcjzoynfemtknus] has joined #ruby
Harzilein [Harzilein!~harzi@harzilein.eu.org] has joined #ruby
<Harzilein> hi
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
<davidcelis> hi
<Harzilein> would there be a way to have exceptions make a closure and somehow passing that inside the error object?
<Harzilein> that would make debugging a lot easier
TheDeadSerious [TheDeadSerious!u2116@gateway/web/irccloud.com/x-dqzulxdgnzcnswas] has joined #ruby
5EXAA2QIA [5EXAA2QIA!~quassel@79.114.12.230] has joined #ruby
alex__c2022 [alex__c2022!~alex@207.239.64.154] has joined #ruby
<Harzilein> so you'd get not just a stacktrace but copies of the respective execution context and be able to inspect the variables inside
akem [akem!~akem@unaffiliated/akem] has joined #ruby
<davidcelis> why not use the Ruby debugger..?
kf8a [kf8a!~kf8a@user-33c730.user.msu.edu] has joined #ruby
Y_Ichiro [Y_Ichiro!~ichiro101@S0106d8a25e7ab2c0.ed.shawcable.net] has joined #ruby
Y_Ichiro [Y_Ichiro!~ichiro101@wikipedia/Yamamoto-Ichiro] has joined #ruby
petercoulton [petercoulton!~petercoul@152.105.132.190] has joined #ruby
crodas [crodas!~crodas@git.crodas.org] has joined #ruby
kapowaz [kapowaz!u546@gateway/web/irccloud.com/x-yxpteoxpgaiffnfe] has joined #ruby
alx- [alx-!~Alex@108.162.180.72] has joined #ruby
NightMonkey [NightMonkey!~NightMonk@pdpc/supporter/professional/nightmonkey] has joined #ruby
dkannan [dkannan!u480@gateway/web/irccloud.com/x-ciyhxqwqhnkvlylo] has joined #ruby
shaatar [shaatar!u648@gateway/web/irccloud.com/x-zwvwpqqldvxkshbn] has joined #ruby
bluOxigen [bluOxigen!ssf@unaffiliated/bluOxigen] has joined #ruby
shadoi [shadoi!~Adium@99-59-176-174.lightspeed.sntcca.sbcglobal.net] has joined #ruby
<JonnieCache> ive always wondered if there was an easy way to make pry fire on all unhandled exceptions
arnihermann [arnihermann!u1395@gateway/web/irccloud.com/x-egkkieraipjkatjy] has joined #ruby
techhelp [techhelp!~Dan@firebox.rsmart.com] has joined #ruby
techhelp [techhelp!~Dan@firebox.rsmart.com] has quit [#ruby]
tatsuya_o [tatsuya_o!~tatsuya_o@213.152.255.138] has joined #ruby
headius [headius!~headius@71-210-154-45.mpls.qwest.net] has joined #ruby
bier [bier!~bier@p54A5A411.dip.t-dialin.net] has joined #ruby
twock [twock!~twock@rrcs-24-227-222-61.sw.biz.rr.com] has joined #ruby
emocakes [emocakes!~om@187.54.222.105] has joined #ruby
TheDeadSerious [TheDeadSerious!u2116@gateway/web/irccloud.com/x-ltpuketomdjblwbi] has joined #ruby
alfism [alfism!~alfism@2620:149:4:1201:8db4:a079:bb52:125a] has joined #ruby
moeSeth [moeSeth!u1029@gateway/web/irccloud.com/x-oetkgjfdsiqhaxbw] has joined #ruby
Shrink [Shrink!~sgupta@redhat/shrink] has joined #ruby
hzlocky [hzlocky!~me@dynamic-vpdn-93-125-116-216.telecom.by] has joined #ruby
palcu [palcu!~alex@89.122.187.223] has joined #ruby
srid [srid!u3297@gateway/web/irccloud.com/x-azkmzcnxvrkbwbrv] has joined #ruby
srid [srid!u3297@unaffiliated/srid] has joined #ruby
srid [srid!u3297@gateway/web/irccloud.com/x-azkmzcnxvrkbwbrv] has joined #ruby
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-iparzxantbnkpglz] has joined #ruby
pvh [pvh!u717@gateway/web/irccloud.com/x-gqficydzaajrdlmi] has joined #ruby
patricksroberts [patricksroberts!u3278@gateway/web/irccloud.com/x-voquwchzcywsvyyg] has joined #ruby
kenichi [kenichi!~kenichi@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-83-165.columbus.res.rr.com] has joined #ruby
savage- [savage-!~savage-@209.118.197.220] has joined #ruby
maletor [maletor!~maletor@74.115.25.139] has joined #ruby
relix [relix!u2146@gateway/web/irccloud.com/x-ccihsxmtygvcxdgg] has joined #ruby
crodas [crodas!~crodas@git.crodas.org] has joined #ruby
amerine [amerine!~mturner@67.204.184.82] has joined #ruby
amar_key [amar_key!u2605@gateway/web/irccloud.com/x-eeaawpidlubpjswo] has joined #ruby
csherin [csherin!~csherin@61.11.47.238] has joined #ruby
Sailias [Sailias!~jonathan@206-248-172-164.dsl.teksavvy.com] has joined #ruby
davidpk [davidpk!~r00t@5e0a03db.bb.sky.com] has joined #ruby
voodoofish430 [voodoofish430!~mtorres@208.76.2.200] has joined #ruby
trivol [trivol!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
apok [apok!~apok@c-107-3-149-167.hsd1.ca.comcast.net] has joined #ruby
Araxia_ [Araxia_!~Araxia@173-164-68-213-Oregon.hfc.comcastbusiness.net] has joined #ruby
flagg0204 [flagg0204!~ianderson@sea02-v600-nat.marchex.com] has joined #ruby
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-tdmrnmlpgjxsylna] has joined #ruby
davidboy [davidboy!u3228@gateway/web/irccloud.com/x-koqpoviwtmpfjnqv] has joined #ruby
flagg0204 [flagg0204!~ianderson@sea02-v600-nat.marchex.com] has joined #ruby
crankycoder [crankycoder!~crankycod@2620:101:8003:200:30a8:fd69:d5e1:fe0a] has joined #ruby
iamjarvo [iamjarvo!~Adium@c-68-80-200-61.hsd1.pa.comcast.net] has joined #ruby
senny [senny!~senny@84-72-61-96.dclient.hispeed.ch] has joined #ruby
uxp [uxp!~uxp@hplogsdon.net] has joined #ruby
the_hack [the_hack!~textual@host86-153-24-67.range86-153.btcentralplus.com] has joined #ruby
fcoury [fcoury!u2238@gateway/web/irccloud.com/x-bjjwukhkiszronxk] has joined #ruby
GSpotAssassin [GSpotAssassin!u4086@gateway/web/irccloud.com/x-prawsynhowkvehzr] has joined #ruby
Shrink [Shrink!~sgupta@redhat/shrink] has joined #ruby
flagg0204 [flagg0204!~ianderson@sea02-v600-nat.marchex.com] has joined #ruby
notbrent [notbrent!u5121@gateway/web/irccloud.com/x-xeqwiigtarouktsg] has joined #ruby
SeanTAllen [SeanTAllen!u4855@gateway/web/irccloud.com/x-diavkkpentoxgnxa] has joined #ruby
hadees [hadees!~hadees@64.132.24.248] has joined #ruby
cableray [cableray!~cableray@wl-dhcp183-169.Mines.EDU] has joined #ruby
pooja [pooja!u4977@gateway/web/irccloud.com/x-tlfkkndgnbrlbuoj] has joined #ruby
adeponte [adeponte!~adeponte@67.110.253.162.ptr.us.xo.net] has joined #ruby
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby
n8ji [n8ji!~n8ji@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
mars2686 [mars2686!~mars2686@71-22-192-221.gar.clearwire-wmx.net] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-fetwomwifmyfgsdh] has joined #ruby
strife25 [strife25!strife25@nat/ibm/x-ttnhhjpmvqsdixmp] has joined #ruby
eggs [eggs!~user@c-75-73-66-205.hsd1.mn.comcast.net] has joined #ruby
looopy [looopy!~looopy@pool-141-156-47-145.washdc.btas.verizon.net] has joined #ruby
<eggs> how can I set an environment variable for a subshell? i.e. I want to do something like `BUILD_FLAGS=--foo make build`
flagg0204 [flagg0204!~ianderson@sea02-v600-nat.marchex.com] has joined #ruby
friskd [friskd!~friskd@71-95-209-242.static.mtpk.ca.charter.com] has joined #ruby
fermion [fermion!~textual@pool-108-7-224-176.bstnma.fios.verizon.net] has joined #ruby
tehgeekmeister [tehgeekmeister!~tehgeekme@sea02-v612-nat.marchex.com] has joined #ruby
quest88 [quest88!~quest88@12.181.53.123] has joined #ruby
Brandonn [Brandonn!~brandon@cpe-174-097-242-015.nc.res.rr.com] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@adsl-99-40-48-35.dsl.pltn13.sbcglobal.net] has joined #ruby
ilyam [ilyam!~ilyam@2620:65:0:281:f5ac:b0f0:39c1:e843] has joined #ruby
InfiniteJest [InfiniteJest!~InfiniteJ@dynamic-adsl-78-12-91-46.clienti.tiscali.it] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
badabim [badabim!~badabim@17.212.166.202] has joined #ruby
Shrink [Shrink!~sgupta@redhat/shrink] has joined #ruby
<ged> eggs: In Ruby 1.9, you can do: system({'BUILD_FLAGS' => '--foo'}, 'make build')
blueadept [blueadept!~blueadept@pool-96-251-83-184.lsanca.dsl-w.verizon.net] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
cobragoat [cobragoat!~cobragoat@108-202-113-212.lightspeed.frokca.sbcglobal.net] has joined #ruby
x77686d [x77686d!~whm@uawifi-nat-210-74.arizona.edu] has joined #ruby
flagg0204 [flagg0204!~ianderson@sea02-v600-nat.marchex.com] has joined #ruby
pigdude [pigdude!~tallen@li61-243.members.linode.com] has joined #ruby
pigdude [pigdude!~tallen@li61-243.members.linode.com] has quit [#ruby]
CreativeEmbassy [CreativeEmbassy!~CreativeE@h142.127.232.68.dynamic.ip.windstream.net] has joined #ruby
janissary [janissary!~user@adsl-98-85-0-232.mco.bellsouth.net] has joined #ruby
pvh [pvh!u717@gateway/web/irccloud.com/x-ionyblnjzdauofzt] has joined #ruby
x77686d [x77686d!~whm@vecta.cs.arizona.edu] has joined #ruby
csherin [csherin!~csherin@61.11.47.238] has joined #ruby
trivol [trivol!~aurelien@81.57.175.21] has joined #ruby
jlogsdon [jlogsdon!~jlogsdon@50.0.84.226] has joined #ruby
paissad [paissad!~paissad@89-92-16-151.hfc.dyn.abo.bbox.fr] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
nd_____ [nd_____!~nd@mnhm-4d00e0a4.pool.mediaWays.net] has joined #ruby
zodiak [zodiak!~stef@pool-108-13-237-159.lsanca.fios.verizon.net] has joined #ruby
SirFuzzyNuts [SirFuzzyNuts!~fuzzy@rrcs-98-101-105-126.midsouth.biz.rr.com] has joined #ruby
youdonotexist [youdonotexist!~youdonote@192.206.158.10] has joined #ruby
strife25 [strife25!~strife25@cpe-098-026-018-050.nc.res.rr.com] has joined #ruby
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
crankycoder [crankycoder!~crankycod@nat/mozilla/x-jcykqtylqjwnfhkd] has joined #ruby
btanaka [btanaka!~textual@17.212.166.137] has joined #ruby
josh [josh!~josh@74-95-43-126-Oregon.hfc.comcastbusiness.net] has joined #ruby
kenperkins [kenperkins!~textual@174-24-134-155.tukw.qwest.net] has joined #ruby
ap3mantus [ap3mantus!~ap3mantus@c-98-217-187-172.hsd1.ma.comcast.net] has joined #ruby
araujo [araujo!~araujo@gentoo/developer/araujo] has joined #ruby
janissary [janissary!~user@adsl-98-85-0-232.mco.bellsouth.net] has joined #ruby
<shevy> eggs I think you can simply re-assign to ENV
davidpk_ [davidpk_!~r00t@5e0a063b.bb.sky.com] has joined #ruby
<shevy> ENV['CFLAGS'] = '-fomit-frame-pointer -frerun-loop-opt -pipe -fPIC -pthread'
<shevy> system './configure'
<shevy> system 'make'
Shrink [Shrink!~sgupta@redhat/shrink] has joined #ruby
MetaCosm [MetaCosm!u514@gateway/web/irccloud.com/x-kjzwcgvdstzhiurs] has joined #ruby
fcoury [fcoury!u2238@gateway/web/irccloud.com/x-ixrkpveaqssygbhx] has joined #ruby
axl__ [axl__!~axl@75-149-152-225-Minnesota.hfc.comcastbusiness.net] has joined #ruby
bengl [bengl!~bengl@174-143-175-143.static.cloud-ips.com] has joined #ruby
geaif [geaif!~geaif@xdsl-188-155-129-176.adslplus.ch] has joined #ruby
cableray [cableray!~cableray@wl-dhcp183-169.Mines.EDU] has joined #ruby
jbw [jbw!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
mrsolo [mrsolo!~mrsolo@64.125.181.73] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
justfielding [justfielding!~justfield@ip70-178-131-208.ks.ks.cox.net] has joined #ruby
advorak [advorak!~advorak@216-15-16-163.c3-0.161-ubr1.lnh-161.md.cable.rcn.com] has joined #ruby
InfiniteJest [InfiniteJest!~InfiniteJ@dynamic-adsl-78-13-118-218.clienti.tiscali.it] has joined #ruby
sayakb [sayakb!sayakb@kde/sayakb] has joined #ruby
azureye [azureye!~azureye@wrls-249-25-40.wrls-client.fas.harvard.edu] has joined #ruby
minijupe [minijupe!~benlieb@adsl-74-243-170-217.ard.bellsouth.net] has joined #ruby
headius [headius!~headius@71-210-154-45.mpls.qwest.net] has joined #ruby
<InfiniteJest> Uhm. things is an hash with a null key. How can I sort it by keys? things.sort_by { |k, v| k unless k.nil? } does not work.
<yxhuvud> how do you want it to behave if it is nil? Where should that be sorted?
<InfiniteJest> I guess it's reasonable that it should be at some end of the hash
<InfiniteJest> But it doesn't really matter
<davidcelis> you mean you have a hash like... { :nil => some_value, ... }?
<davidcelis> er
<davidcelis> { nil => some_value, ... }
<davidcelis> not as a symbol
<yxhuvud> if you sort a hash, you get an array back.
<InfiniteJest> yup. (I think...)
<davidcelis> why would you do that?
pantsman [pantsman!~pantsman@2.25.204.228] has joined #ruby
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
<InfiniteJest> It's from some tutorial I'm following. Bad data led to a bad hash.
voodoofish430 [voodoofish430!~mtorres@208.76.2.200] has quit [#ruby]
stdcall [stdcall!~scriper@181.208.73.94.ip.orionnet.ru] has joined #ruby
emocakes [emocakes!~om@187.54.222.105] has joined #ruby
asteve [asteve!~asteve@unaffiliated/kxsteve] has joined #ruby
<asteve> when would I use a :symbol?
<workmad3> asteve: because you don't need a "string"
<asteve> hmm, is a symbol smaller than a string?
<fullsailor> Not really, they just aren't garbage collected
<workmad3> asteve: symbols are immutable too (strings in ruby aren't immutable)
<asteve> i'm struggling to understand why a symbol was used in this example http://ruby.about.com/od/advancedruby/a/optionparser.htm
<fullsailor> They share instances :mysymbol.object_id == :mysymbol.object_id where "mystring".object_id != "mystring.object_id
the_hack [the_hack!~textual@host86-153-24-67.range86-153.btcentralplus.com] has joined #ruby
<workmad3> asteve: and basically, the interpreter has to return the same symbol object each time the same symbol is returned... so 1000.times {:symbol} <-- only one symbol is created, 1000.times {"string"} <-- 1000 strings are created
<fullsailor> Basically if you're repeating the same string many times, its more efficient to use a symbol.
<workmad3> asteve: also, you tend to find ruby code uses symbols instead of strings as hash keys more often than not
<workmad3> fullsailor: comparison is also much lighter on a symbol than on a string
<InfiniteJest> state_data = state_data.sort_by { |state, count| state.nil? ? "ZZ" : state } works, but it's quite the ugly hack.
<fullsailor> Makes sense because Symbol#== probably just calls #equal?
<workmad3> asteve: from the programmers perspective too, :symbol is one character less than "symbol" so is quicker to type (assuming your editor doesn't autocomplete to "" when you type ")
csherin [csherin!~csherin@61.11.47.238] has joined #ruby
<davidcelis> its much more friendly as a hash key than a string is as well
Locke23rus [Locke23rus!~quassel@128-70-95-104.broadband.corbina.ru] has joined #ruby
<fullsailor> workmad3: That's a silly reason to pick a Symbol over a String.
luckyruby [luckyruby!~luckyruby@125-187.96-97.tampabay.res.rr.com] has joined #ruby
<workmad3> fullsailor: depends on how many times you're typing it out ;)
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
BrianE [BrianE!~brian@87.112.149.96] has joined #ruby
centipedefarmer_ [centipedefarmer_!~centipede@75-162-52-240.desm.qwest.net] has joined #ruby
h4mz1d [h4mz1d!~hamfz@130.160.249.26] has joined #ruby
z2fyza [z2fyza!~gard@cm-84.215.22.0.getinternet.no] has joined #ruby
logbot99693 [logbot99693!~cinch@boxand.lnk.telstra.net] has joined #ruby
acadavid [acadavid!~acadavid@190.71.122.249] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
flip28 [flip28!~flip28@p5DDBD372.dip0.t-ipconnect.de] has joined #ruby
LMolr [LMolr!~quassel@adsl-ull-242-226.42-151.net24.it] has joined #ruby
blooberr [blooberr!u5163@gateway/web/irccloud.com/x-bwcmnfqvddjbspsu] has joined #ruby
iamjarvo [iamjarvo!~Adium@c-68-80-200-61.hsd1.pa.comcast.net] has joined #ruby
voodoofish430 [voodoofish430!~mtorres@208.76.2.200] has joined #ruby
gl33m [gl33m!~kvirc@c-24-20-241-182.hsd1.wa.comcast.net] has joined #ruby
<shevy> Symbols often confuse people
<shevy> workmad3, do you use symbols in case foo; when 'bla' ? or rather ... when :bla
oner [oner!~om@201-14-40-67.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
<workmad3> shevy: depends on what's in foo ;)
<shevy> !
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
<shevy> see that's what I don't like
<shevy> decisions
<Hanmac> you can use both :P
<workmad3> shevy: :bla != "bla" after all ;)
<shevy> "will foo be a symbol or a string"
<workmad3> shevy: you could do case foo.to_sym to force the issue
<shevy> I am surprised you guys can work with that, it would make me crazy
<shevy> yeah workmad3 ... or ... foo.to_s ... but it makes me ANGRY I want to slay kittens as a result!
<fullsailor> Don't use to_sym unless you really know what you're doing.
<shevy> there is pair programming, and then there is angry programming where you go and beat up pairs of programmers
<fullsailor> You'll blow up your symbol table.
<shevy> sounds wonderful
BrianE [BrianE!~brian@87.112.149.96] has joined #ruby
baroquebobcat [baroquebobcat!~nick@70-90-113-174-co.denver.hfc.comcastbusiness.net] has joined #ruby
<fullsailor> Symbols are _never_ garbage collected
<asteve> …that's what she said?
<workmad3> fullsailor: yeah... we're aware of that :P
<shevy> oh by the way
<shevy> does python have anything like symbols?
<shevy> I mean for a programmer to use (or not use) like that
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby
tangledhelix [tangledhelix!~dan@99-59-107-84.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
d2dchat [d2dchat!~d2dchat@12.105.216.42] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
<Mon_Ouie> I don't think so, but their strings are immutable and they use string interning
trivol [trivol!~aurelien@ip-178.net-89-2-84.rev.numericable.fr] has joined #ruby
<shevy> hmm hmm hmm
dialout [dialout!~dialout@94.79.121.157] has joined #ruby
rexbutler [rexbutler!~rex@c-24-10-196-81.hsd1.ut.comcast.net] has joined #ruby
<grefab> hello
<grefab> am i right that there is no such thing as method overloading depending on the parameters in ruby?
<fullsailor> Yes, the syntax doesn't support defining two methods with different argument lists.
<fullsailor> Last one defined overrides the prior one.
x77686d_ [x77686d_!~whm@uawifi-nat-210-74.arizona.edu] has joined #ruby
<grefab> okay, that's what i found out
<fullsailor> But you can always check the argument list in the method to do different actions.
<grefab> so if i want different behavior i have to putt the logic to distinguish that in one method.
<fullsailor> Yep.
<grefab> alright, thanks. that helped a lot! :)
QaDeS [QaDeS!~mklaus@frbg-5d84f20b.pool.mediaWays.net] has joined #ruby
cobragoat [cobragoat!~cobragoat@108-202-113-212.lightspeed.frokca.sbcglobal.net] has joined #ruby
<Hanmac> and you can alias methods before defining the new one if it helps you
mztriz [mztriz!~mztriz@nkugateway.nku.edu] has joined #ruby
Oddnoun [Oddnoun!~Oddnoun@cpe-75-180-25-150.columbus.res.rr.com] has joined #ruby
<shevy> hmm
<shevy> alias magic
<gigamonk`> Is there any better way to run a ruby repl in emacs than to run irb in a *shell* buffer?
interopc1p [interopc1p!~jason@li295-197.members.linode.com] has joined #ruby
pxjorge [pxjorge!~pxjorge@a89-152-235-119.cpe.netcabo.pt] has joined #ruby
<interopc1p> elementary question: when I have a string and I do a_string = a_string + "," + another string, I get an error when a_string is nil. How am I supposed to be doing this?
<interopc1p> i.e. + is not valid for nil
<gigamonk`> interopc1p: I've got about 30 seconds ruby experience, but you could do (a_string || "") + "," + another string
<Hanmac> or the best way: a_string.to_s
<interopc1p> giga sorry does that mean a_string = (a_string || "") + "," + another ?
<interopc1p> ok so a_string = a_string.to_s + "," + another
<fullsailor> a_string = "#{a_string}, #{another_string}"
crescendo [crescendo!~eric@unaffiliated/crescendo] has joined #ruby
<gigamonkey> interopc1p: (a_string || "") means a_string if it is true or "" if it is false.
<gigamonkey> But other peoples' suggestions for this particular case are better since they know what they're doing.
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
<fullsailor> interopc1p: to_s converts another object to a string. In this case nil.to_s returns an empty string.
<davidcelis> use interpolation (a là fullsailor's suggestion)
<interopc1p> ok cool thanks!
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
ikaros [ikaros!~ikaros@dslb-188-107-220-229.pools.arcor-ip.net] has joined #ruby
<gigamonkey> What books do folks recommend for learning Ruby for someone who already knows how to program in other languages?
<davidcelis> gigamonkey: Metaprogramming Ruby
<Hanmac> if you allready knows other languages you does not need a book ... someday you will woke up, and then you learned it
<davidcelis> and, if you already know how to program in other OOP languages, read the documentation
<csavola> gigamonkey: The Ruby Way, Eloquent Ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
brmouzone [brmouzone!~brmouzone@108-90-18-133.lightspeed.cicril.sbcglobal.net] has joined #ruby
gordon_ [gordon_!~gordon@74-95-2-94-SFBA.hfc.comcastbusiness.net] has joined #ruby
<asteve> i want to set a string to "something" unless symbol :this_instead is not nil; so; string_i_set = "something" unless :this_instead
<asteve> should work for the case that :this_instead is nil
<asteve> how do I assign it to string_i_set when it's not
<csavola> asteve: :this_instead will always be true as it's a symbol not a variable
<asteve> even if i set it ti nil?
<csavola> asteve: symbols do not reference values... variables do
<shadoi> asteve: str = :this_instead ? :this_instead : "something"
<csavola> asteve: a symbol IS a value
dubz [dubz!dubz@gateway/shell/bshellz.net/x-iufjvgmthcsgbkht] has joined #ruby
dubz [dubz!dubz@gateway/shell/bshellz.net/x-iufjvgmthcsgbkht] has quit [#ruby]
<shadoi> csavola: no, a symbol is an internalized string.
<csavola> shadoi: which is a value
<csavola> shadoi: as opposed to a variable
ikaros [ikaros!~ikaros@dslb-188-107-220-229.pools.arcor-ip.net] has joined #ruby
<shadoi> true, I'm just used to using them for hash keys :)
<shadoi> not the values.
<csavola> shadoi: using them as hash keys are using them for the values :)
<asteve> shadoi: thank you
<shadoi> csavola: yup
c9s [c9s!~c9s@li336-155.members.linode.com] has joined #ruby
dopo [dopo!~dp@p4FD152FE.dip.t-dialin.net] has joined #ruby
<shadoi> asteve: like csavola said the symbol can't be a top-level variable.
<asteve> whaut?
<shadoi> :foo = "blah"
<shadoi> SyntaxError
spanner [spanner!~quassel@128.249.96.10] has joined #ruby
<csavola> asteve: a symbol is just a different type of value ... e.g 1, "one", :some_name
araujo [araujo!~araujo@190.73.44.29] has joined #ruby
araujo [araujo!~araujo@gentoo/developer/araujo] has joined #ruby
jfoley [jfoley!~jfoley@c-67-173-240-154.hsd1.co.comcast.net] has joined #ruby
jbpros [jbpros!~jbpros@82-186-112-217.dyn.adsl.belcenter.be] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
blischalk [blischalk!~brettlisc@99-28-253-138.lightspeed.cicril.sbcglobal.net] has joined #ruby
notjohn [notjohn!~john@WS1-DSL-208-102-253-169.fuse.net] has joined #ruby
stephans [stephans!~stephans@209.66.114.6] has joined #ruby
kirun [kirun!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
x77686d [x77686d!~whm@vecta.cs.arizona.edu] has joined #ruby
<shevy> I hate symbols
<musl> shevy: Why?
<asteve> symbols in hash make you happy fun time bash!
<shevy> musl they confuse people
<shevy> they add a layer of complexity as well
<Tasser> shevy, better than magic numbers
<shevy> what is that?
<shevy> 666? :)
<tommylommykins> complexity? But Given that symbols have no value, they're simpler than variables?
<shevy> tommylommykins you find them simpler than variables?
<csavola> shevy: think of them as constants
* tommylommykins does
<tommylommykins> their meaning is *all* in the name
cyne [cyne!~jack@ip211-182-212-87.adsl2.static.versatel.nl] has joined #ruby
<shevy> :x
<Hanmac> there are like Enums
<musl> No, enums have an implicit value
<shevy> the coolest things is the amount of different statements about them here ;)
<shevy> *thing
bafilius [bafilius!~lee@64.134.231.184] has joined #ruby
<spanner> is 'Programming Ruby 1.9' a good choice for an intermediate-level Perl programmer to learn Ruby, or would 'Eloquent Ruby' perhaps be a better choice to start with?
<Hanmac> i think the first one is good to start
<Tasser> spanner, the best choice is to care less about metaproblems ;-)
senj [senj!~senj@S01060026f323bcdf.ed.shawcable.net] has joined #ruby
beakerman [beakerman!~beakerman@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
mztriz_ [mztriz_!~mztriz@192.122.237.201] has joined #ruby
* tommylommykins thinks having a book for Ruby is worth it
<tommylommykins> there's a lot in the language that I hadn;t realised existed until I started trawling through on
<tommylommykins> e
<csavola> a book is a good start... once you are into Ruby ruby-doc.org has everything you need and is updated for you
<banisterfiend> JonnieCache: it's a very difficult problem but im working on something now
<asteve> what would $output be?
<shevy> asteve what kind of question is that
<shevy> it definitely is a global variable
<asteve> $output = ""; $ means global?
<interopc1p> how do I make ["",58,55] into [58,55]? is there an Array method for removing nil?
<heftig> asteve: yes.
<shevy> asteve yeah. it is available everywhere in your code
<csavola> interopc1p: "" is not nil...
<shevy> or probably code of someone else, since you have to ask ;)
<asteve> shevy: and @ is a class variable?
<heftig> instance
<shevy> yeah, it is specific to instances of a class
<shevy> @@foo is a class variable
<asteve> ah
<shevy> @foo is an instance variable
<shevy> but @@foo suck so dont use them
<interopc1p> how do I make ["",58,55] into [58,55]? is there an Array method for removing ""?
<yxhuvud> interopc1p: reject
<heftig> interopc1p: in this case you could just use .shift
<interopc1p> reject! ok I see thanks!
<Hanmac> but classes can also have instance variables itself
<tommylommykins> for that matter, the array literal [58, 55] also successfully removes the ""
<tommylommykins> :P
<shevy> interopc1p: ["",58,55].reject {|x| x.to_s.empty?} # => [58, 55]
<gigamonkey> So what's the rationale for having a slice that starts at one past the last legal index return an empty array while a slice starting at higher indices returns nil?
<shevy> the rationale of a lot of beer
<Mon_Ouie> There's also array.delete ""
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby
<asteve> where can i get a description of operators such as <=>?
<shevy> asteve no idea but it should be in Enumerable
<heftig> asteve: ri "Array#<=>"
<Mon_Ouie> Comparable
<apeiros_> asteve: <=> is a method too, so you get the information just like for any other method
<shevy> gigamonkey also not sure what you meant. %w( abc def ghi )[2,1] # => ["ghi"] whereas %w( abc def ghi )[3,1] # => [] that seems to be correct behaviour, doesn't it?
<apeiros_> there are not too many real operators in ruby: ||, &&, ?:, and, or, defined? - I think that's all
newbold [newbold!u5179@gateway/web/irccloud.com/x-diisnxqdjgwdfban] has joined #ruby
<shevy> oh cool Comparable
<shevy> 6 methods
<shevy> :)
<asteve> i'm looking at someone else's work and I see this: "fields = other_array.uniq.sort{|a,b| a.to_s <=> b.to_s}"
<asteve> i don't think <=> is a comparing the two
<Mon_Ouie> It is
headius [headius!~headius@71-210-154-45.mpls.qwest.net] has joined #ruby
gioele [gioele!~gioele@unaffiliated/gioele] has joined #ruby
<gioele> hello
tdubellz [tdubellz!~tdubellz@freenode/staff/tdubellz] has joined #ruby
<gioele> what does Hash uses to check equality in #[]? From what I understand it uses #eql?, doesn't it?
<Mon_Ouie> It compares a.to_s and b.to_s. Sort with no block is like sort { |a, b| a <=> b }
<Mon_Ouie> gioele: Right, but it also needs #hash, which must return the same value for two equal objects
<gioele> Mon_Ouie: so it is `obj.eql?(other) && obj.hash == other.hash`, right?
<asteve> Mon_Ouie: doesn't it switch the array around so that it is now sorted on B?
<asteve> b*
<Mon_Ouie> Kind of, though actually it wouldn't call hash on both objects
<gigamonkey> shevy: but %w( abc def ghi )[4,1] => nil
djohnston [djohnston!c0926547@gateway/web/freenode/ip.192.146.101.71] has joined #ruby
cobragoat [cobragoat!~cobragoat@99.174.154.113] has joined #ruby
<gioele> gigamonkey: 4 > #size
<newbold> is _why's guide still a good place to start for people new to Ruby?
<heftig> gioele: the other way around
<gioele> newbold: yes, nothing has changed since it has been written
<heftig> obj.hash == other.hash is tested first
<Hanmac> i think the question about [4]=> nil and [4,1]=> [] should go to topic ... is is asked very often
<gioele> heftig: ah, ok
gh0stz [gh0stz!c0926547@unaffiliated/gh0stz] has joined #ruby
gh0stz [gh0stz!c0926547@gateway/web/freenode/ip.192.146.101.71] has joined #ruby
<heftig> since obj.eql?(other) imples the hashes are the same
<heftig> implies
<heftig> and it's typically the more expensive check
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
Trevoke [Trevoke!~Trevoke@pool-74-105-221-173.nwrknj.fios.verizon.net] has joined #ruby
Trevoke [Trevoke!~Trevoke@pool-74-105-221-173.nwrknj.fios.verizon.net] has quit [#ruby]
<gioele> heftig: not in my case, but it is nice to know, thanks
<gigamonkey> gioele: yes, but what's the rational for returning nil there rather than []
Hellojere [Hellojere!~Hellojere@89.7.90.160] has joined #ruby
spectre^ [spectre^!~spectre@sticky.clownjuice.com] has joined #ruby
<gioele> gigamonkey: I'd say implementation detail, but is a "nice" out of band value to let you know that you are over the array size
robert_ [robert_!~hellspawn@objectx/robert] has joined #ruby
<asteve> >> [[40,'d'],[2,'c']].sort { |a,b| a <=> b }
<asteve> => [[2, "c"], [40, "d"]]
<asteve> how is that operation a comparator?
s0ber_ [s0ber_!~s0ber@114-36-233-132.dynamic.hinet.net] has joined #ruby
y3llow_ [y3llow_!~y3llow@114-36-233-132.dynamic.hinet.net] has joined #ruby
fridgerator [fridgerator!~nick@rrcs-76-79-46-110.west.biz.rr.com] has joined #ruby
flippingbits [flippingbits!~anonymous@ip-81-210-178-39.unitymediagroup.de] has joined #ruby
<heftig> asteve: a <=> b returns 1, 0, or -1 if a is greater, equal or smaller than b
<heftig> sort expects exactly that
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
davidpk_ [davidpk_!~r00t@5e0a02e9.bb.sky.com] has joined #ruby
<asteve> ok, how can i sort off of the column instead of the row?
<fridgerator> has anyone heard of a ruby gem for image steganography?
<gioele> asteve: {|a,b| a[1] <=> b[1] }
y3llow [y3llow!~y3llow@114-36-233-132.dynamic.hinet.net] has joined #ruby
<gioele> a will be [40, 'd']
<gioele> (for instance)
<banisterfiend> heftig: da wird er aber heftig überrascht sein
<heftig> :|
* Hanmac is trying to be funny - it is not effective
<asteve> gioele: doh! thanks
y3llow [y3llow!~y3llow@114-36-233-132.dynamic.hinet.net] has joined #ruby
daniel- [daniel-!~daniel@118-92-42-39.dsl.dyn.ihug.co.nz] has joined #ruby
mdmdm [mdmdm!~maestro@50-0-12-246.dsl.dynamic.sonic.net] has joined #ruby
y3llow [y3llow!~y3llow@114-36-233-132.dynamic.hinet.net] has joined #ruby
eignerchris [eignerchris!~eignerchr@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
<cdabba> whats a quick way to convert a hash like {:a=> [1,2], :b=>[1,2],:c=>[1,4]}, or any hash where the values are an array (and each has the same index)} into an array of hashes?
c9s_ [c9s_!~c9s@114-44-182-213.dynamic.hinet.net] has joined #ruby
pedro__ [pedro__!~c9s@114-44-182-213.dynamic.hinet.net] has quit [#ruby]
<Hanmac> cdabba: i this sample what do you want as result?
ckrailo [ckrailo!~ckrailo@208.86.167.247] has joined #ruby
<shevy> I want fairies as result
tvw [tvw!~tv@89.204.155.162] has joined #ruby
<ged> Yay faeries!
axl__ [axl__!~axl@75-149-152-225-Minnesota.hfc.comcastbusiness.net] has joined #ruby
josh [josh!~josh@74-95-43-126-Oregon.hfc.comcastbusiness.net] has joined #ruby
<ged> Or fairies.
__kartouch [__kartouch!~kartouch@109.129.156.242] has joined #ruby
__kartouch [__kartouch!~kartouch@109.129.156.242] has quit [#ruby]
<cdabba> Hanmac: I want [{:a=>1,:b=>1,:c=>1},{:a=>2,:b=>2,:c=>4}]
<heftig> ]h = {:a=> [1,2], :b=>[1,2],:c=>[1,4]}; h.values.transpose.map { |a| Hash[h.keys.zip(a)] }
crodas [crodas!~crodas@git.crodas.org] has joined #ruby
<cdabba> heftig: great, transpose was what i was trying to find
supergiantrobot_ [supergiantrobot_!~supergian@cpe-174-097-169-208.nc.res.rr.com] has joined #ruby
eywu1 [eywu1!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
dnyy_ [dnyy_!~dnyy@c-98-237-138-38.hsd1.wa.comcast.net] has joined #ruby
eywu1 [eywu1!~Adium@205-170-107-4.dia.static.qwest.net] has quit [#ruby]
dnyy [dnyy!~dnyy@c-98-237-138-38.hsd1.wa.comcast.net] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
bookpage [bookpage!~bookpage@202-180-91-31.callplus.net.nz] has joined #ruby
<bookpage> best html parser for ruby?
<asteve> nokogiri?
techhelp [techhelp!~Dan@firebox.rsmart.com] has joined #ruby
<bookpage> have you used jsoups for java, if so how would you compare?
<asteve> i have not
winux [winux!~tom@173-163-242-213-BusName-albuquerque.hfc.comcastbusiness.net] has joined #ruby
winux [winux!~tom@unaffiliated/winux] has joined #ruby
<winux> how do i convert a string to bigdecimal? do I have to convert it to a float first?
<winux> I want to make sure the string is a number too
<bookpage> have you used the RDT for eclipse, is it any good?
<shevy> you mean Bignum ? I dont know what is bigdecimal
<tommylommykins> winux: You should just be able to call to_i on the string to cast it?
c0rn [c0rn!~c0rn@209.144.63.76] has joined #ruby
<winux> tommylommykins: yeah, its actually a float (currency)
<heftig> winux: BigDecimal.new("3.43189")
<winux> heftig: i need to check if it's a number first
<winux> err, float
<winux> or number, but i only know of is_a? Float (or Integer)
<shevy> ohhh... require 'bigdecimal'
<tommylommykins> some_nbum =~ /£\d+\.\d+/
<gioele> bookpage: use nokogiri; avoid RDT, use DLTK with Eclipse (better but still not that good)
<tommylommykins> ?
<tommylommykins> use some such regex to get if it's numeric?
<winux> shevy: right
<winux> tommylommykins: yeah i have that in there too
techhelp [techhelp!~Dan@firebox.rsmart.com] has joined #ruby
<winux> tommylommykins: thought there might be a different way
<Hanmac> winux: to convert it to big, you can use .to_d
mxweas [mxweas!~max@c-24-7-45-147.hsd1.ca.comcast.net] has joined #ruby
<winux> Hanmac: mm ill see if i can run with that
QaDeS [QaDeS!~mklaus@frbg-5f73156f.pool.mediaWays.net] has joined #ruby
techhelp [techhelp!~Dan@firebox.rsmart.com] has joined #ruby
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby
eugenmayer [eugenmayer!~EugenMaye@frbg-5d84f144.pool.mediaWays.net] has joined #ruby
<eugenmayer> hello guys. iam trying to run some ruby command http://pastie.org/private/blxlptnksudmhfzdmhue5a and it fails
<eugenmayer> check that gem and ruby is running on the same ruby, also ruby -rubygems -e 'require "lockfile"' works fine
<eugenmayer> does anybody know what i could work on?
c0rn [c0rn!~c0rn@209.144.63.76] has joined #ruby
techhelp [techhelp!~Dan@firebox.rsmart.com] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
tommyvyo [tommyvyo!~tommyvyo@c-68-83-3-164.hsd1.nj.comcast.net] has joined #ruby
amerine [amerine!~mturner@67.204.184.82] has joined #ruby
<eugenmayer> (iam using RVM)
bbttxu [bbttxu!~adam@pool-71-96-208-205.dfw.dsl-w.verizon.net] has joined #ruby
<asteve> eugenmayer: make sure you're using the same rvm environment as bundler is using
<eugenmayer> asteve: iam thinking about that all the time. But how to do this?
<eugenmayer> iam sorry, if my questions sound stupid. I actually tried to read through some material already
<asteve> your rails_env is production, are you actually on the production box? how was this code deployed if so?
<asteve> did you use capistrano?
robyurkowski [robyurkowski!~robyurkow@205.233.80.139] has joined #ruby
<eugenmayer> its production, iam on production, no capistrano
<eugenmayer> deployed "manually"
<asteve> pastie.org rvm info
<asteve> rvm use 1.8.7@global
<asteve> gem list |grep lock
<asteve> make sure that's the correct version for your gemfile?
<eugenmayer> i did a rvm use 1.8.7 before without that global
<asteve> sorry, I have to run
<eugenmayer> what does that change
<asteve> you need to figure out what ruby/gemset your app should be using
<asteve> then verify that your using that with rvm
<asteve> then run your bundle exec
<asteve> there may also be version mismatch issues that are causing your problem
<eugenmayer> asteve: http://pastie.org/3221572
<eugenmayer> :/
gioele [gioele!~gioele@host81-141-206-145.wlms-broadband.com] has joined #ruby
gioele [gioele!~gioele@unaffiliated/gioele] has joined #ruby
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
<gioele> re
<gioele> examples of well written gem documentation?
Regenechse [Regenechse!~regechse@h1985974.stratoserver.net] has joined #ruby
<davidcelis> Should the Dummy application generated along with a new mountable rails engine be put into gitignore?
<davidcelis> oops
bafilius [bafilius!~lee@64.134.231.184] has joined #ruby
cableray [cableray!~cableray@wl-dhcp158-180.Mines.EDU] has joined #ruby
radmacd [radmacd!~radmacd@modemcable055.68-82-70.mc.videotron.ca] has joined #ruby
<banisterfiend> JonnieCache: you here?
luckyruby [luckyruby!~luckyruby@125-187.96-97.tampabay.res.rr.com] has joined #ruby
p1d [p1d!~p1d@dslb-088-067-029-030.pools.arcor-ip.net] has joined #ruby
jergason [jergason!~jergason@208.97.56.66] has joined #ruby
mithrop [mithrop!~none@tss37-1-82-233-147-242.fbx.proxad.net] has joined #ruby
<mithrop> hi here
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
shadoi [shadoi!~Adium@99-59-176-174.lightspeed.sntcca.sbcglobal.net] has joined #ruby
techhelp [techhelp!~techhelp@firebox.rsmart.com] has joined #ruby
techhelp [techhelp!~techhelp@firebox.rsmart.com] has joined #ruby
colossal7 [colossal7!~colossal7@75-169-53-227.slkc.qwest.net] has joined #ruby
pseudonymous [pseudonymous!~pseudonym@1903ds5-suoe.0.fullrate.dk] has joined #ruby
<pseudonymous> I know it's not strictly ruby itself - but if someone with rvm skills could drop by #rvm - I have an issue where bundler insists gems aren't installed though I did - I'd appreciate help there :)
daniel_hinojosa [daniel_hinojosa!~danno@67-0-117-93.albq.qwest.net] has joined #ruby
azureye [azureye!~azureye@wrls-249-25-40.wrls-client.fas.harvard.edu] has joined #ruby
krz [krz!~foobar@unaffiliated/krz] has joined #ruby
techhelp [techhelp!~Dan@firebox.rsmart.com] has joined #ruby
azureye [azureye!~azureye@wrls-249-25-40.wrls-client.fas.harvard.edu] has joined #ruby
<akem> will rand() generate the same number on any machine if i use the same seed?
Emmanuel_Chanel [Emmanuel_Chanel!star2@L057107.ppp.dion.ne.jp] has joined #ruby
<shevy> I dont think so
<RubyPanther> unicode is great, I love being able to have variables like x₀,x₁
araujo [araujo!~araujo@gentoo/developer/araujo] has joined #ruby
fismo [fismo!~fismo@cpe-24-193-156-28.nyc.res.rr.com] has joined #ruby
nowthatsamatt [nowthatsamatt!~nowthatsa@rrcs-71-43-23-18.se.biz.rr.com] has joined #ruby
<gioele> akem: the same sequence on the same implementation+machine?+compiled binary
badabim [badabim!~badabim@17.244.70.157] has joined #ruby
<RubyPanther> akem: real world answer, "yes"
<RubyPanther> unless.
Knodi [Knodi!~Knodi@c-68-43-246-216.hsd1.mi.comcast.net] has joined #ruby
amerine [amerine!~mturner@67.204.184.82] has joined #ruby
<akem> gioele, the same ruby version on different machines with possibly differents OS.
<akem> RubyPanther, i see
<gioele> RubyPanther: does 1.9.3 produces the same sequence on x86 and amd64 machines?
araujo [araujo!~araujo@190.73.44.29] has joined #ruby
araujo [araujo!~araujo@gentoo/developer/araujo] has joined #ruby
<RubyPanther> gioele: do you mean x86_64?
<gioele> RubyPanther: yes
<banisterfiend> RubyPanther: hey fren
<gioele> RubyPanther: RubySpec do not check for a particular algorithm: https://github.com/rubyspec/rubyspec/blob/master/core/random/rand_spec.rb#L19
<gioele> but yeah, for all purposes they are the same :)
<RubyPanther> rubyspec is nothing, though
<gioele> RubyPanther: code is law ;)
<RubyPanther> it is an idea, more than a thing, even though there is this thing already
<RubyPanther> Matz agreed the first step was to declare a standard, rather than to have actually defined it correctly
<gioele> the implementations I've seen they all claim "we are compatible with 1.9.x (so says RubySpec)" so it seems that it has a recognized value at least
<gioele> what about the ISO efforts? are they still in progress?
<RubyPanther> The work is being done in the Japanese standards body, you have to pay for a copy
<RubyPanther> the actual "Ruby standard" that includes all the caveats
havenn [havenn!~skipper@pool-108-0-252-201.lsanca.dsl-w.verizon.net] has joined #ruby
<gioele> more that for a copy, you have to pay to participate, unless you are an invited expert (I suppose)
minijupe [minijupe!~benlieb@adsl-74-243-170-217.ard.bellsouth.net] has joined #ruby
<RubyPanther> It will be very useful someday
<gioele> in fact http://ruby-std.netlab.jp/ is password protected
<RubyPanther> No, I mean, unless you are one of the authors you are supposed to buy it
<RubyPanther> the author's mom is supposed to buy it...
<gioele> RubyPanther: once it is out
<RubyPanther> No, that is now
<gioele> but these times many ISO standard are published free of charge, that could be one
<gioele> RubyPanther: has it been ratified?
<RubyPanther> Well it isn't ISO, it is the Japanese standards body
cobragoat [cobragoat!~cobragoat@c-76-105-54-37.hsd1.ca.comcast.net] has joined #ruby
<RubyPanther> Then it will work its way out from there, presumably it will hit ISO next and get published free
deploy [deploy!~deploy@66.209.100.74] has joined #ruby
<deploy> exit
stkowski [stkowski!~stkowski@12.207.16.130] has joined #ruby
<gioele> RubyPanther: it takes quite a bit of discussion in the ISO wg before a national standard becomes an ISO standard (well, except for well known fast-tracked ECMA standards ;))
<RubyPanther> but the thing is that it is not a real standard, it has caveats so anywhere that implementations do things differently, it just lists the known ways it happens as the standard. It makes no attempt to unify the behavior.
adeponte [adeponte!~adeponte@67.110.253.162.ptr.us.xo.net] has joined #ruby
alex__c2022 [alex__c2022!~alex@207.239.64.154] has joined #ruby
Durandal [Durandal!~carloshh@84.127.216.219.dyn.user.ono.com] has joined #ruby
klaustsen [klaustsen!~klaustsen@c80-217-133-221.bredband.comhem.se] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
cooper [cooper!~mitchell@unaffiliated/furryfishy] has joined #ruby
phantomfake [phantomfake!~whats_in_@pool-71-190-229-236.nycmny.fios.verizon.net] has joined #ruby
CannedCorn [CannedCorn!~textual@74.113.160.178] has joined #ruby
<CannedCorn> hey guys is the difference between to_s and to_str implicit vs explicit casting
<CannedCorn> ?
<CannedCorn> most objects only have to_s right?
<workmad3> CannedCorn: I believe .to_s can also validly return 'string-like' objects, while .to_str should always return an actual instance of String
badabim [badabim!~badabim@17.244.70.157] has joined #ruby
nowthatsamatt [nowthatsamatt!~nowthatsa@adsl-74-235-197-19.mco.bellsouth.net] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
savage-_ [savage-_!~savage-@istep.static.monkeybrains.net] has joined #ruby
bwlang [bwlang!~anonymous@static-71-245-233-146.bstnma.fios.verizon.net] has joined #ruby
savage- [savage-!~savage-@istep.static.monkeybrains.net] has joined #ruby
azureye [azureye!~azureye@wrls-249-19-26.wrls-client.fas.harvard.edu] has joined #ruby
emocakes [emocakes!~om@201-14-40-67.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
<gioele> CannedCorn: I was searching the same http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/96554 says `#to_s` is for good but "casual" representations of an object (you want to put this object inside a message? use this string version) while `#to_str` is for objects that have a single, precise and meaningful string representation (Pathname, in his example)
tommyvyo [tommyvyo!~tommyvyo@c-68-83-3-164.hsd1.nj.comcast.net] has joined #ruby
acadavid [acadavid!~acadavid@190.71.122.249] has joined #ruby
janissary [janissary!410f825a@gateway/web/freenode/ip.65.15.130.90] has joined #ruby
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
savage-_ [savage-_!~savage-@istep.static.monkeybrains.net] has joined #ruby
thomasdebenning [thomasdebenning!~thomasdeb@c-69-181-139-137.hsd1.ca.comcast.net] has joined #ruby
pootpoot [pootpoot!~pootpoot@38.108.250.130] has quit [#ruby]
jlogsdon [jlogsdon!~jlogsdon@50.0.84.226] has joined #ruby
nowthatsamatt [nowthatsamatt!~nowthatsa@adsl-74-235-197-19.mco.bellsouth.net] has joined #ruby
stephenjudkins [stephenjudkins!~stephen@c-76-115-1-70.hsd1.or.comcast.net] has joined #ruby
hubub [hubub!~hubub@85.13.231.6] has joined #ruby
stkowski [stkowski!~stkowski@12.207.16.130] has joined #ruby
<RubyPanther> CannedCorn: it is not explicit vs implicit casting, if it has to_str that tells you it considers itself to "be" a string, and should return itself "as" a string, whereas #to_s is a string representation, so that is approximately casting
dankest [dankest!~dankest@pool-71-102-139-138.snloca.dsl-w.verizon.net] has joined #ruby
<RubyPanther> really though #to_s only needs to give you back something with a #to_str method, which might be a subclass of String, or a StringIO, or whatever, so we don't really have anything that actually matches the idea of "casting"