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/
baroquebobcat [baroquebobcat!~nick@161.98.13.100] has joined #ruby
rramsden [rramsden!~rramsden@s64-180-62-209.bc.hsia.telus.net] has joined #ruby
akem [akem!~akem@222.144.120.78.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
ryh [ryh!~ryh@174.45.125.160] has joined #ruby
linusoleander [linusoleander!~linus@h246n3c1o1042.bredband.skanova.com] has joined #ruby
linusoleander [linusoleander!~linus@h246n3c1o1042.bredband.skanova.com] has quit [#ruby]
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
linusoleander [linusoleander!~linus@h246n3c1o1042.bredband.skanova.com] has joined #ruby
fayimora [fayimora!~fayimora@109.175.187.177] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
akem [akem!~akem@222.144.120.78.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
durre [durre!~kvirc@217-212-242-4.customer.telia.com] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
iamjarvo [iamjarvo!~Adium@c-71-230-13-201.hsd1.nj.comcast.net] has joined #ruby
iamjarvo [iamjarvo!~Adium@c-71-230-13-201.hsd1.nj.comcast.net] has quit [#ruby]
leynos [leynos!~leynos@cpc3-sgyl13-0-0-cust169.sgyl.cable.virginmedia.com] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb220-255-53-87.singnet.com.sg] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
zenergi [zenergi!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
igaiga [igaiga!~igaiga@192.244.95.101] has joined #ruby
rottenrec1 [rottenrec1!~ADMIN@75-140-8-252.static.rvsd.ca.charter.com] has joined #ruby
<rottenrec1> does anyone know what the equivalent of "remote_file_exists"in the latest version of capistrano is?
ryh [ryh!~ryh@174.45.125.160] has joined #ruby
pabloh [pabloh!~pablo@186.22.82.39] has joined #ruby
<rottenrec1> i need to check if a file (actually, a symlink to a directory) exists on the server in one of my hooks
<pabloh> rottenrec1: File.exists?
<rottenrec1> hrmm...
<rottenrec1> lemme try that
toy_battery [toy_battery!~choldbroo@c-67-164-29-115.hsd1.ca.comcast.net] has joined #ruby
ciopte7_ [ciopte7_!~thomascio@cpe-071-071-047-213.triad.res.rr.com] has joined #ruby
_kinderman [_kinderman!~kinderman@c-98-223-146-252.hsd1.in.comcast.net] has joined #ruby
<rottenrec1> pabloh: thanks, i think that worked
<pabloh> rottenrec1: np ;)
<rottenrec1> i woulda asked on the capsitrano channel, but i've been there like 10 times and i've never see anyone answer any questions
jbpros [jbpros!~jbpros@43-186-112-217.dyn.adsl.belcenter.be] has joined #ruby
atmosx [atmosx!~atmosx@191.116.broadband5.iol.cz] has joined #ruby
canton8 [canton8!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
ferbass [ferbass!~ferbass@177.80.255.248] has joined #ruby
TheTFEF [TheTFEF!~JS@cpe-173-88-110-115.columbus.res.rr.com] has joined #ruby
toy_battery [toy_battery!~choldbroo@c-67-164-29-115.hsd1.ca.comcast.net] has joined #ruby
wallerdev [wallerdev!~wallerdev@c-68-43-58-191.hsd1.mi.comcast.net] has joined #ruby
mikeric [mikeric!~mike@S010600212986c312.vc.shawcable.net] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb220-255-53-87.singnet.com.sg] has joined #ruby
<shevy> so who of you always wanted to write a package manager in ruby
toy_battery [toy_battery!~choldbroo@c-67-164-29-115.hsd1.ca.comcast.net] has joined #ruby
crodas [crodas!~crodas@git.crodas.org] has joined #ruby
<oddmunds> for ruby or for something else?
jbw [jbw!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
<shevy> oddmunds a general purpose one of course
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
looopy [looopy!~looopy@static-71-166-232-150.washdc.east.verizon.net] has joined #ruby
<shevy> for ruby there is already rubygems
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
<ale`> what's the best way to get "SampleApp" out of "/path/to/sample_app" ?
akem [akem!~akem@unaffiliated/akem] has joined #ruby
<shevy> ale` that would be twofold
<shevy> first, get the last part
<shevy> second, convert to camelcase
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
<shevy> x = File.basename "/path/to/sample_app" # => "sample_app"
<shevy> and the second part to convert x to camelcase
<shevy> "sample_app".split('_').map { |_| _.capitalize }.join # => "SampleApp"
<ale`> shevy: yeah I was doing it that way actually... wondering if there was something ready :-)
<ale`> ahh
<ale`> thanks for the File.basename thing!
<ale`> I was doing it with a regex ^^;
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
<shevy> yeah there are many ways to Rome
<shevy> regex is probably a bit slower though
<ale`> also uglier..
<ale`> does Dir.pwd return / separated paths on windows?
<ale`> if not, the regex I was using wouldn't work there
n8ji [n8ji!~n8ji@c-76-105-192-7.hsd1.or.comcast.net] has joined #ruby
<shevy> not sure
<shevy> I think it tends to work though
robyurkowski [robyurkowski!~robyurkow@184.151.127.234] has joined #ruby
<shevy> there is also ... File.join something
<shevy> File.join("path", "to", "join")
<shevy> "path/to/join"
<shevy> but
<shevy> it should not be necessary
<shevy> if you need to know the separator, you can always use
<shevy> File::SEPARATOR
<rottenrec1> is there something like php.net's online manual for ruby? i.e. where you can search for a function/keyword (e.g. "operators", "variables", "scope") and it'll pull up a page with the documentation for that keyword?
fixl [fixl!~fixl@124-170-21-28.dyn.iinet.net.au] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
<ale`> shevy: thanks again :-)
<shevy> welcome
* ale` is on his way to emacs/watchr/rspec integration
<shevy> rottenrec1 hmm dont think so... i usually just google and the ruby doc shows up
<shevy> rottenrec1, for instance when I search for "ruby file join"
<shevy> the first result is:
<shevy> or, even before that, an intralink to:
<shevy> "Zu join springen?: join(string, ...)"
<shevy> silly german
<shevy> ^^^ means "Jump to join"
<shevy> and a link that I can click
sbanwart_ [sbanwart_!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
<banister`sleep> shevy: areyou my mommy
nari_ [nari_!~nari@p86be1c.totrnt01.ap.so-net.ne.jp] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-15-43.cable.teksavvy.com] has joined #ruby
_obiJuan [_obiJuan!~ysiad1@24.39.125.227] has joined #ruby
ReTFEF [ReTFEF!~JS@cpe-173-88-110-115.columbus.res.rr.com] has joined #ruby
EricTheGreen [EricTheGreen!~Adium@c-24-13-231-110.hsd1.il.comcast.net] has joined #ruby
<rottenrec1> shevy: I guess I'll just try that then
philcrissman_ [philcrissman_!~philcriss@c-174-53-217-149.hsd1.mn.comcast.net] has joined #ruby
EricTheGreen [EricTheGreen!~Adium@c-24-13-231-110.hsd1.il.comcast.net] has quit [#ruby]
sdwrage [sdwrage!~sdwrage@cpe-184-57-123-50.columbus.res.rr.com] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
hadees [hadees!~hadees@72-48-91-73.dyn.grandenetworks.net] has joined #ruby
Hanmac1 [Hanmac1!~hanmac@p508455DF.dip0.t-ipconnect.de] has joined #ruby
mikeric [mikeric!~mike@S010600212986c312.vc.shawcable.net] has joined #ruby
frist44 [frist44!~Adium@c-69-253-163-29.hsd1.pa.comcast.net] has quit [#ruby]
joey_ [joey_!~joey@hive.gngsta.com] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
crodas [crodas!~crodas@git.crodas.org] has joined #ruby
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby
kapone [kapone!~kapone@208.157.149.45] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
iamjarvo [iamjarvo!~Adium@c-71-230-13-201.hsd1.nj.comcast.net] has joined #ruby
igaiga [igaiga!~igaiga@192.244.95.101] has joined #ruby
mxweas [mxweas!~max@mobile-198-228-199-234.mycingular.net] has joined #ruby
frist441 [frist441!~Adium@c-69-253-163-29.hsd1.pa.comcast.net] has joined #ruby
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
kevinbond [kevinbond!~kevinbond@112.50.204.68.cfl.res.rr.com] has joined #ruby
MUILTR [MUILTR!~MLINTH@adsl-98-80-224-83.mcn.bellsouth.net] has joined #ruby
<ale`> is there a way to do something like x,,y = [1,2,3] => x == 1, y == 3?
<ale`> I mean without littering with useless local vars
<shevy> ale` hmmm
<shevy> not really
<shevy> you could try something like ...
<shevy> x, *y = [1,2,3] perhaps
<shevy> y # => [2, 3]
<ale`> mhmh, how about x, _, y = [1,2,3]?
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
<shevy> yeah
<shevy> it's still a local var though
<shevy> I love _ though
<ale`> It's the first time I use it... looks good for that :-)
ramusara [ramusara!~ramusara@220.156.210.236.user.e-catv.ne.jp] has joined #ruby
Azure [Azure!~azt@unaffiliated/azure] has joined #ruby
testbot2 [testbot2!~PircBot@173-25-169-137.client.mchsi.com] has joined #ruby
<thorncp> this seems to work: x,*,y = [1,2,3,4,5,6]
ferbass [ferbass!~ferbass@177.80.255.248] has joined #ruby
<ale`> thorncp: interesting, I will keep in mind this one too
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
boulderdan [boulderdan!~boulderda@12.50.19.194] has joined #ruby
<shevy> hmm straaange
<shevy> that really works???
<shevy> someone explain that to me then please :(
<shevy> hmm
<shevy> does not work in ruby 1.8.x
<shevy> I am relieved. :)
TheTFEF [TheTFEF!~JS@cpe-173-88-110-115.columbus.res.rr.com] has joined #ruby
doc_what [doc_what!docwhat@2600:3c03::f03c:91ff:fedf:7065] has joined #ruby
rpowell [rpowell!~rpowell@CPE-138-130-156-15.lns6.cht.bigpond.net.au] has joined #ruby
tuppy [tuppy!~quassel@ip68-231-151-143.tc.ph.cox.net] has joined #ruby
bigkm [bigkm!~bigkm@203-206-185-71.perm.iinet.net.au] has joined #ruby
endzYme [endzYme!~nehuanca@208.87.103.252] has joined #ruby
Lord-Harlot [Lord-Harlot!~Serenity@adsl-83-100-189-243.karoo.KCOM.COM] has joined #ruby
ylluminate [ylluminate!~ylluminat@rrcs-24-123-53-166.central.biz.rr.com] has joined #ruby
redgetan [redgetan!~reg@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
kevinbond [kevinbond!~kevinbond@112.50.204.68.cfl.res.rr.com] has joined #ruby
testbot2 [testbot2!~PircBot@173-25-169-137.client.mchsi.com] has joined #ruby
testbot2 [testbot2!~PircBot@173-25-169-137.client.mchsi.com] has joined #ruby
_obiJuan [_obiJuan!~ysiad1@pool-70-107-98-151.ny325.east.verizon.net] has joined #ruby
endzYme [endzYme!~nehuanca@208.87.103.252] has joined #ruby
Doppp [Doppp!~Doppp@unaffiliated/doppp] has joined #ruby
endzYme [endzYme!~nehuanca@208.87.103.252] 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
p0y [p0y!~p0y@122.52.126.66] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
_kinderman_ [_kinderman_!~kinderman@c-98-223-146-252.hsd1.in.comcast.net] has joined #ruby
cjs [cjs!~cjs@41.98.156.220.st.bbexcite.jp] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has quit ["Leaving"]
radic_ [radic_!~radic@dslb-094-216-234-247.pools.arcor-ip.net] has joined #ruby
esparkman [esparkman!~esparkman@unaffiliated/esparkman] has joined #ruby
amacgregor [amacgregor!~amacgrego@CPE00222dcb0a53-CM00222dcb0a4f.cpe.net.cable.rogers.com] has joined #ruby
fixl [fixl!~fixl@124-170-21-28.dyn.iinet.net.au] has joined #ruby
frist44 [frist44!~Adium@c-69-253-163-29.hsd1.pa.comcast.net] has joined #ruby
frist441 [frist441!~Adium@c-69-253-163-29.hsd1.pa.comcast.net] has joined #ruby
frist441 [frist441!~Adium@c-69-253-163-29.hsd1.pa.comcast.net] has quit [#ruby]
jergason [jergason!~jergason@c-67-182-209-164.hsd1.ut.comcast.net] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
Sliker [Sliker!~ponies@87.115.38.58] has joined #ruby
toy_battery [toy_battery!~choldbroo@c-67-164-29-115.hsd1.ca.comcast.net] has joined #ruby
x0F_ [x0F_!~x0F@unaffiliated/x0f] has joined #ruby
beakerman [beakerman!~beakerman@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
fixl|2 [fixl|2!~fixl@124-168-97-49.dyn.iinet.net.au] has joined #ruby
pen [pen!~pen@140.112.30.144] has joined #ruby
igaiga [igaiga!~igaiga@192.244.95.101] has joined #ruby
achiu [achiu!~Adium@ip68-5-18-17.oc.oc.cox.net] has joined #ruby
localredhead [localredhead!~localredh@107.43.60.34] has joined #ruby
localredhead [localredhead!~localredh@107.43.60.34] has quit [#ruby]
localredhead [localredhead!~localredh@107.43.60.34] has joined #ruby
<localredhead> NickServ
<localredhead> ls
p1d_ [p1d_!~p1d@dslb-088-064-132-143.pools.arcor-ip.net] has joined #ruby
<localredhead> hello
redgetan [redgetan!~reg@CPE0023bee17c0e-CM0023bee17c0b.cpe.net.cable.rogers.com] has quit ["Leaving"]
jrist-afk [jrist-afk!~jrist@184-96-204-183.hlrn.qwest.net] has joined #ruby
jay_zawrotny [jay_zawrotny!~Jay@c-71-205-218-131.hsd1.mi.comcast.net] has joined #ruby
Stormbytes [Stormbytes!~Stormbyte@ool-4572b631.dyn.optonline.net] has joined #ruby
Stormbytes [Stormbytes!~Stormbyte@ool-4572b631.dyn.optonline.net] has quit [#ruby]
<zenergi> Is it possible to get the attachment size of an email without having to download the entire email/attachment?
igaiga [igaiga!~igaiga@192.244.95.101] has joined #ruby
desireco_ [desireco_!~textual@108-217-153-195.lightspeed.cicril.sbcglobal.net] has joined #ruby
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby
robyurkowski [robyurkowski!~robyurkow@184.151.115.40] has joined #ruby
banister`sleep [banister`sleep!~baniseter@118.82.185.158] has joined #ruby
nekid [nekid!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby
alse [alse!~Alex@108.162.180.72] has joined #ruby
<nekid> how do I denote every third item in an array
<nekid> 2 & 2+3n?
<robyurkowski> 3n - 1
<robyurkowski> 0, 2, 5, 7
fixl [fixl!~fixl@203.214.34.17] has joined #ruby
<robyurkowski> 0 < n < !!!
cableray [cableray!~cableray@wl-dhcp156-160.Mines.EDU] has joined #ruby
AlecTaylor [AlecTaylor!alectaylor@unaffiliated/alectaylor] has joined #ruby
banister`sleep [banister`sleep!~baniseter@118.82.185.158] has joined #ruby
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
adeponte [adeponte!~adeponte@pool-173-51-131-197.lsanca.fios.verizon.net] has joined #ruby
durre [durre!~kvirc@217-212-242-4.customer.telia.com] has joined #ruby
dmlicht [dmlicht!182c3c70@gateway/web/freenode/ip.24.44.60.112] has joined #ruby
Marco [Marco!~marco@129.170.237.186] has joined #ruby
mxweas [mxweas!~max@mobile-198-228-199-234.mycingular.net] has joined #ruby
banister`sleep [banister`sleep!~baniseter@115.189.232.17] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb119-74-136-249.singnet.com.sg] has joined #ruby
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
achiu [achiu!~Adium@ip68-5-18-17.oc.oc.cox.net] has joined #ruby
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby
Lord-Harlot [Lord-Harlot!~Serenity@adsl-83-100-189-243.karoo.KCOM.COM] has joined #ruby
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
toy_battery [toy_battery!~choldbroo@c-67-164-29-115.hsd1.ca.comcast.net] has joined #ruby
ksinkar [ksinkar!~ksinkar@123.201.117.198] has joined #ruby
maletor [maletor!~maletor@c-69-181-28-195.hsd1.ca.comcast.net] has joined #ruby
tonini [tonini!~zastav@edge.garaio.com] has joined #ruby
AlecTaylor [AlecTaylor!~alectaylo@unaffiliated/alectaylor] has joined #ruby
banister`sleep [banister`sleep!~baniseter@115.189.232.17] has joined #ruby
BoF [BoF!~netcat@unaffiliated/bof] has joined #ruby
rpowell [rpowell!~rpowell@CPE-121-216-202-43.lnse3.ken.bigpond.net.au] has joined #ruby
wenbert [wenbert!~wenbert@120.28.253.16] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
igaiga [igaiga!~igaiga@192.244.95.101] has joined #ruby
beakerman [beakerman!~beakerman@c-76-118-172-173.hsd1.nh.comcast.net] has joined #ruby
ryh [ryh!~ryh@174.45.125.160] has joined #ruby
djdb [djdb!~digitalbo@linux.minsk.tutby.com] has joined #ruby
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
sross07|2 [sross07|2!~sross07@vm-s1164-ac3.vet.cornell.edu] has joined #ruby
axl_ [axl_!~axl@216-43-114-19.ip.mcleodusa.net] has joined #ruby
jl_2 [jl_2!~jl_2@184-96-250-167.hlrn.qwest.net] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb119-74-136-249.singnet.com.sg] has joined #ruby
niks9003 [niks9003!0e8bbb43@gateway/web/freenode/ip.14.139.187.67] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb119-74-136-249.singnet.com.sg] has joined #ruby
v0n [v0n!~v4n@bas1-montreal19-1177820429.dsl.bell.ca] has joined #ruby
pen [pen!~pen@2001:288:1001:28:2199:3c17:3d6f:18f1] has joined #ruby
r0bby [r0bby!~wakawaka@guifications/user/r0bby] has joined #ruby
yxhuvud [yxhuvud!mongo@h-209-13.a212.priv.bahnhof.se] has joined #ruby
twock [twock!~twock@rrcs-24-227-222-61.sw.biz.rr.com] has joined #ruby
dnyy_ [dnyy_!u2106@gateway/web/irccloud.com/x-uvujdvndhxqbmspk] has joined #ruby
y3llow_ [y3llow_!~y3llow@114-36-234-3.dynamic.hinet.net] has joined #ruby
Doppp_ [Doppp_!~Doppp@cm70.kappa182.maxonline.com.sg] has joined #ruby
dagobah_ [dagobah_!~dagobah@84.45.53.200] has joined #ruby
somebody_ [somebody_!~notbrent@142.179.34.62] has joined #ruby
amacgregor [amacgregor!~amacgrego@CPE00222dcb0a53-CM00222dcb0a4f.cpe.net.cable.rogers.com] has joined #ruby
moeSeth_ [moeSeth_!u1029@gateway/web/irccloud.com/x-icyypvjfdsngzevc] has joined #ruby
ozzloy_ [ozzloy_!~ozzloy@ozzloy.lifeafterking.org] has joined #ruby
lobak_ [lobak_!~quack@202.190.85.36] has joined #ruby
milkshak1s [milkshak1s!narf@milkshakes.org] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb119-74-136-249.singnet.com.sg] has joined #ruby
Pcboy___ [Pcboy___!~pcboy@y233083.dynamic.ppp.asahi-net.or.jp] has joined #ruby
jwmann1 [jwmann1!~Adium@modemcable242.110-201-24.mc.videotron.ca] has joined #ruby
Seisatsu_ [Seisatsu_!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
18WAA3X1D [18WAA3X1D!~amacgrego@CPE00222dcb0a53-CM00222dcb0a4f.cpe.net.cable.rogers.com] has joined #ruby
d-best [d-best!~d-snp@smurfer.student.utwente.nl] has joined #ruby
benjick_ [benjick_!benjick@dumfan.se] has joined #ruby
ampex_ [ampex_!~sterling@short.circu.it] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb119-74-136-249.singnet.com.sg] has joined #ruby
Doppp [Doppp!~Doppp@unaffiliated/doppp] has joined #ruby
Azure [Azure!~azt@99.192.18.235] has joined #ruby
zakwilson_ [zakwilson_!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
tessi [tessi!~tessi@rkh.im] has joined #ruby
MC91 [MC91!~mitchell@c-50-129-95-89.hsd1.il.comcast.net] has joined #ruby
ElitestFX [ElitestFX!~ElitestFX@static-173-48-96-99.bstnma.fios.verizon.net] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
BoF [BoF!~netcat@unaffiliated/bof] has joined #ruby
tonini [tonini!~zastav@edge.garaio.com] has joined #ruby
docwhat [docwhat!docwhat@2600:3c03::f03c:91ff:fedf:7065] has joined #ruby
wallerdev [wallerdev!~wallerdev@c-68-43-58-191.hsd1.mi.comcast.net] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
jasdeepjaitla [jasdeepjaitla!~jasdeepja@c-98-207-73-250.hsd1.ca.comcast.net] has joined #ruby
Azure|netbook|dc [Azure|netbook|dc!~azt@unaffiliated/azure] has joined #ruby
mikeycgto [mikeycgto!~mikeycgto@pdpc/supporter/active/mikeycgto] has joined #ruby
mdel [mdel!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby
Nies [Nies!~Nies@225.Red-79-158-41.staticIP.rima-tde.net] has joined #ruby
kloeri [kloeri!~kloeri@freenode/staff/exherbo.kloeri] has joined #ruby
fcoury [fcoury!u2238@gateway/web/irccloud.com/x-lyeiqofmmakmwdul] has joined #ruby
dv_ [dv_!~quassel@chello080108009040.14.11.vie.surfer.at] has joined #ruby
Guest6592 [Guest6592!~kaneda@5acb1c98.bb.sky.com] has joined #ruby
Profit_ [Profit_!~p@c83-254-248-138.bredband.comhem.se] has joined #ruby
Liothen [Liothen!~liothen@pdpc/supporter/professional/liothen] has joined #ruby
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby
Fraeon [Fraeon!~kzer-za@virgo.dreamhost.com] has joined #ruby
cscribble [cscribble!~cscribble@c-71-57-231-247.hsd1.pa.comcast.net] has joined #ruby
S1kx [S1kx!~S1kx@pdpc/supporter/monthlybyte/s1kx] has joined #ruby
Espen-_- [Espen-_-!Espen@sjarken.org] has joined #ruby
phantomfake [phantomfake!~whats_in_@pool-71-190-229-236.nycmny.fios.verizon.net] has joined #ruby
thoughtfusion [thoughtfusion!~thoughtfu@pool-96-237-53-171.bstnma.fios.verizon.net] has joined #ruby
eighty4 [eighty4!~eighty4@unaffiliated/eighty4] has joined #ruby
vandemar [vandemar!nonserviam@2001:470:1f10:56b::4] has joined #ruby
soulcutter [soulcutter!~soulcutte@unaffiliated/soulcutter] has joined #ruby
csmrfx [csmrfx!csmr@hilla.kapsi.fi] has joined #ruby
silky [silky!~silky@pool-74-108-142-22.nycmny.fios.verizon.net] has joined #ruby
johnduhart [johnduhart!~quassel@46.105.138.12] has joined #ruby
mattp_ [mattp_!~mattp_@intma.in] has joined #ruby
kstephens [kstephens!~kstephens@173-15-46-105-Illinois.hfc.comcastbusiness.net] has joined #ruby
PhilK [PhilK!~PhilK@108-94-166-51.lightspeed.sntcca.sbcglobal.net] has joined #ruby
_root_ [_root_!~Scalable@li252-14.members.linode.com] has joined #ruby
ali_h [ali_h!staff@interflective.com] has joined #ruby
linduxed [linduxed!~linduxed@194-14-0-85.serioustubes.org] has joined #ruby
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby
dominikh [dominikh!~dominikh@subtle/contributor/dominikh] has joined #ruby
nuba [nuba!~nuba@pauleira.com] has joined #ruby
er1c_ [er1c_!~eric@irontusk.net] has joined #ruby
musl [musl!~mike@li44-23.members.linode.com] has joined #ruby
mrmist [mrmist!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
anekos [anekos!~anekos@mail.anekos.info] has joined #ruby
jeedey [jeedey!~quassel@109.169.47.96] has joined #ruby
epitron [epitron!~epitron@unaffiliated/epitron] has joined #ruby
jshsu [jshsu!~jshsu@li248-176.members.linode.com] has joined #ruby
endzYme_ [endzYme_!~nehuanca@208.87.103.252] has joined #ruby
tessi [tessi!~tessi@pdpc/supporter/student/tessi] has joined #ruby
Nisstyre [Nisstyre!~yours@c-208-90-102-250.netflash.net] has joined #ruby
banister`sleep [banister`sleep!~baniseter@118.82.185.158] has joined #ruby
inteq [inteq!~justin.si@adsl-74-232-96-126.asm.bellsouth.net] has joined #ruby
dv_ [dv_!~quassel@chello080108009040.14.11.vie.surfer.at] has joined #ruby
mitchty [mitchty!~mitchty@ec2-50-19-41-37.compute-1.amazonaws.com] has joined #ruby
mrmist [mrmist!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
Guest88600 [Guest88600!~azt@99.192.18.235] has joined #ruby
Helius [Helius!~Adium@109.116.207.61] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
mrmist [mrmist!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
SeanTAllen [SeanTAllen!u4855@gateway/web/irccloud.com/x-nznjhhgdafsbtfcq] has joined #ruby
durre [durre!~kvirc@217-212-242-4.customer.telia.com] has joined #ruby
bluOxigen [bluOxigen!~noreply@unaffiliated/bluOxigen] has joined #ruby
ksinkar [ksinkar!~ksinkar@123.201.117.198] has joined #ruby
mrmist [mrmist!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has quit ["Leaving"]
andrewhl_ [andrewhl_!~andrew@out-pq-169.wireless.telus.com] has joined #ruby
p1d [p1d!~p1d@ns1.vonaffenfels.de] has joined #ruby
alek_b [alek_b!~alek_b@99-10-120-63.lightspeed.sndgca.sbcglobal.net] has joined #ruby
Pip [Pip!~Pip@host-192-146-66-217.spbmts.ru] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
tuppy_ [tuppy_!~quassel@ip68-231-151-143.tc.ph.cox.net] has joined #ruby
mrmist [mrmist!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
senny [senny!~senny@77-56-67-120.dclient.hispeed.ch] has joined #ruby
igaiga [igaiga!~igaiga@192.244.95.101] has joined #ruby
thone [thone!~thone@g225087061.adsl.alicedsl.de] has joined #ruby
mrmist [mrmist!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
idoru [idoru!idoru@freenode/utility-bot/ex-server/idoru] has joined #ruby
abstrusenick [abstrusenick!~abstrusen@bb119-74-136-249.singnet.com.sg] has joined #ruby
roadze [roadze!~roadze@119.224.137.97] has joined #ruby
mrmist [mrmist!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
josefig [josefig!~josefig@unaffiliated/josefig] has joined #ruby
Helius1 [Helius1!~Adium@109.117.143.143] has joined #ruby
priteshjain_ [priteshjain_!~priteshja@113.193.47.245] has joined #ruby
Pip_ [Pip_!~Pip@unaffiliated/pip] has joined #ruby
mrmist [mrmist!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
mafolz [mafolz!~mafolz@dhcp50-210.start.uni-saarland.de] has joined #ruby
Spockz [Spockz!~Spockz@21pc198.sshunet.nl] has joined #ruby
ce_pemalu [ce_pemalu!~ce_pemalu@114.79.29.214] has joined #ruby
<ce_pemalu> sepi
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby
mrmist [mrmist!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
Spockz` [Spockz`!~Spockz@21pc198.sshunet.nl] has joined #ruby
igaiga [igaiga!~igaiga@192.244.95.101] has joined #ruby
senj [senj!~senj@70.98.241.200] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
mrmist [mrmist!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
batlock666 [batlock666!~quassel@bvderbau.ugent.be] has joined #ruby
stepnem [stepnem!~stepnem@176.119.broadband10.iol.cz] has joined #ruby
Sliker [Sliker!~ponies@87.115.38.58] has joined #ruby
fixl [fixl!~fixl@203.214.34.17] has joined #ruby
Bardosity [Bardosity!~john@202-89-189-137.static.dsl.amnet.net.au] has joined #ruby
mrmist [mrmist!~mrmist@freenode/staff/pdpc.active.mrmist] has joined #ruby
eldariof [eldariof!~CLD@pppoe-88-147-203-107.san.ru] has joined #ruby
alup [alup!~alup@193.92.123.5] has joined #ruby
looopy [looopy!~looopy@static-71-166-232-150.washdc.east.verizon.net] has joined #ruby
ph^ [ph^!~ph^@79.135.7.162] has joined #ruby
luckyruby [luckyruby!~luckyruby@125-187.96-97.tampabay.res.rr.com] has joined #ruby
altivec [altivec!~altivec@77.79.175.231.dynamic.ufanet.ru] has joined #ruby
Azure [Azure!~azt@unaffiliated/azure] has joined #ruby
Helius [Helius!~Adium@212.31.227.18] has joined #ruby
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby
kwoodson [kwoodson!kvirc@nat/redhat/x-fyilxnhabxslgqql] has joined #ruby
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
kakashi__ [kakashi__!~kakashi_@nltk/kakashi] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
pi3r [pi3r!~pi3r@LSt-Amand-152-32-39-189.w80-11.abo.wanadoo.fr] has joined #ruby
sterNiX [sterNiX!~LessIsMor@unaffiliated/nu253r/x-0655220] has joined #ruby
arthurlockhart [arthurlockhart!~cinch@60-242-128-8.static.tpgi.com.au] has joined #ruby
ChampS666 [ChampS666!~ChampS@p54B4A7B8.dip.t-dialin.net] has joined #ruby
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby
twock [twock!~twock@rrcs-24-227-222-61.sw.biz.rr.com] has joined #ruby
geaif [geaif!~geaif@xdsl-188-155-129-176.adslplus.ch] has joined #ruby
trivol [trivol!~aurelien@gra94-1-81-57-175-179.fbx.proxad.net] has joined #ruby
stephans [stephans!~stephans@76-217-209-24.lightspeed.sntcca.sbcglobal.net] has joined #ruby
bastilian [bastilian!~bastilian@chello213047077012.23.11.vie.surfer.at] has joined #ruby
moshee [moshee!~moshee@c-50-135-229-127.hsd1.wa.comcast.net] has joined #ruby
moshee [moshee!~moshee@unaffiliated/moshee] has joined #ruby
paissad [paissad!~paissad@89-92-16-151.hfc.dyn.abo.bbox.fr] has joined #ruby
antonsk [antonsk!~Adium@125-70-92-178.pool.ukrtel.net] has joined #ruby
shevy [shevy!~shevy@178-190-40-169.adsl.highway.telekom.at] has joined #ruby
mklappstuhl [mklappstuhl!~mklappstu@p5B2C5DEB.dip.t-dialin.net] has joined #ruby
xec [xec!~xec@2a00:10b0:1:1002:5ab0:35ff:fef8:6a01] has joined #ruby
snearch [snearch!~snearch@g231235043.adsl.alicedsl.de] has joined #ruby
telling [telling!grotta@176.9.244.139] has joined #ruby
nd____ [nd____!~nd@mnhm-5f74f090.pool.mediaWays.net] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
Gekz [Gekz!~gekz@unaffiliated/gekz] has joined #ruby
tilde` [tilde`!~tilde@94.101.55.3] has joined #ruby
luoluoluo [luoluoluo!~culpower@123.120.13.64] has quit ["离开"]
gyre007 [gyre007!~gajdosm@213.86.197.188] has joined #ruby
mikeric [mikeric!~mike@96.49.104.11] has joined #ruby
geaif [geaif!~geaif@xdsl-188-155-129-176.adslplus.ch] has joined #ruby
geaif [geaif!~geaif@xdsl-188-155-129-176.adslplus.ch] has joined #ruby
canton7 [canton7!~canton7@ip-206-135.eduroam.soton.ac.uk] has joined #ruby
codespectator [codespectator!~codespect@91.85.43.221] has joined #ruby
welterde [welterde!welterde@thinkbase.srv.welterde.de] has joined #ruby
atmosx [atmosx!~atmosx@191.116.broadband5.iol.cz] has joined #ruby
alup [alup!~alup@193.92.123.5] has joined #ruby
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
pietro_ [pietro_!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
andreime [andreime!~andrei-ci@82.79.96.20] has joined #ruby
<andreime> how are variables passed in ruby to methods ? reference or copy ?
BoF [BoF!~netcat@unaffiliated/bof] has joined #ruby
wobr [wobr!~william.o@87-194-166-48.bethere.co.uk] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
kakashi__ [kakashi__!~kakashi_@nltk/kakashi] has joined #ruby
Che-Anarc [Che-Anarc!~leonmcnie@80.100.41.118] has joined #ruby
indigo747 [indigo747!~atamis@dsl-68-170-178-212.dhcp.cruzio.com] has joined #ruby
probst [probst!~probst@bumblebee.cl.cam.ac.uk] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
Ammar01 [Ammar01!~hassaa10@gatej.thls.bbc.co.uk] has joined #ruby
kalusn [kalusn!~claus@2.111.18.26] has joined #ruby
<pigoz> andreime: copy like C, but everything is an object, so you copy the reference to the object
<andreime> pigoz: ok, so it would be ok to pass a big object as param to method
probst [probst!~probst@bumblebee.cl.cam.ac.uk] has joined #ruby
diverdude [diverdude!~user@1709ds1-vbr.0.fullrate.dk] has joined #ruby
<diverdude> hello. I am trying to run the command: bundle and i get this error: An error occured while installing nokogiri (1.5.0), and Bundler cannot continue. How can i see what this error is so that i can try to solve the issue?
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
<diverdude> ok nevermind...i found the issue
luoluoluo [luoluoluo!~culpower@123.120.13.64] has joined #ruby
<luoluoluo> anyone here?
alup [alup!~alup@193.92.123.5] has joined #ruby
luoluoluo [luoluoluo!~culpower@123.120.13.64] has quit ["离开"]
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
<andreime> yes
sleetdrop [sleetdrop!~sleetdrop@219.142.118.249] has joined #ruby
chrismcg [chrismcg!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby
telling [telling!grotta@unaffiliated/telling] has joined #ruby
Barakas [Barakas!~v@77.242.201.52] has joined #ruby
_debo [_debo!~marco.deb@141.0.34.138] has joined #ruby
pietro_ [pietro_!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
senny [senny!~senny@77-56-67-120.dclient.hispeed.ch] has joined #ruby
pietro_ [pietro_!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
rpowell [rpowell!~rpowell@CPE-121-216-202-43.lnse3.ken.bigpond.net.au] has joined #ruby
wenbert [wenbert!~wenbert@120.28.253.16] has joined #ruby
Barakas [Barakas!~v@77.242.201.52] has joined #ruby
tuppy [tuppy!~quassel@ip68-231-151-143.tc.ph.cox.net] has joined #ruby
BrianE [BrianE!~brian@188-220-10-235.zone11.bethere.co.uk] has joined #ruby
fermion [fermion!~textual@pool-108-7-224-176.bstnma.fios.verizon.net] has joined #ruby
jbpros [jbpros!~jbpros@43-186-112-217.dyn.adsl.belcenter.be] has joined #ruby
fermion [fermion!~fermion@pool-108-7-224-176.bstnma.fios.verizon.net] has joined #ruby
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has joined #ruby
oxxz [oxxz!~0xo0xo@123.176.25.98] has joined #ruby
TomJ [TomJ!~TomJ@unaffiliated/tomj] has joined #ruby
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby
Barakas [Barakas!~v@77.242.201.53] has joined #ruby
josephwilk [josephwilk!~josephwil@109.231.237.58] has joined #ruby
clipartcat [clipartcat!~redbullra@mhth.tyrell.fi] has joined #ruby
<clipartcat> ary = [1,2,3,4,5] why [] = ary[6,0], nil = ary[6] but nil = ary[7,0], nil = ary[7]
lenochka [lenochka!~elena@unaffiliated/lenochka] has joined #ruby
<lenochka> hello, how can I use help in ruby?
<Okasu> lenochka: привет леночка
<Okasu> lol
<lenochka> whenever I enter some command there, it would say that the nothing is found
<Okasu> lenochka: use ri
<lenochka> privet! spasibo!
<lenochka> in irb?
jbhewitt [jbhewitt!~jbhewitt@c122-108-214-224.rochd4.qld.optusnet.com.au] has joined #ruby
<Hanmac> nope use ri in the shell
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
<lenochka> OK.. what about in irb? is there help?
<Hanmac> you can use object.methods to display all methods object has
<lenochka> OK, sounds useful
<lenochka> anything more specific? like some commands that would describe the method?
vitoravelino [vitoravelino!~rockhampt@unaffiliated/vtr] has joined #ruby
<banister`sleep> Okasu: tell him about pry and show-doc
<Okasu> banister`sleep: stop it, im not belong to you!
madgraphics [madgraphics!~madgraphi@mail.11labo.net] has joined #ruby
<banister`sleep> Okasu: i thought we were married
<Okasu> banister`sleep: it's all over now
* Okasu rub away and cry
<Okasu> banister`sleep: you alwayse been so rude
<Okasu> im not your personal toy, banister`sleep
<banister`sleep> Okasu: you used to beat me
<Okasu> banister`sleep: stop it, children may listen
<lenochka> Hanmac: so any specific command for description of the method?
<Hanmac> not in irb
<lenochka> all right then
DarthGandalf [DarthGandalf!~Vetinari@znc/developer/DarthGandalf] has joined #ruby
<Okasu> < banister`sleep> robgleeson: i love u
<Okasu> you cheating me!
<Okasu> dirty liar
<lenochka> would this ri work in cmd?
_debo [_debo!~marco.deb@141.0.34.138] has joined #ruby
<Okasu> lenochka: what do you mean?
<Okasu> just put ri *whatever* in your cmd and hit enter
<lenochka> hmm.. it gives all the time same result: nothing found .. bla bla
<Okasu> it should be method or module(class) name
<Okasu> ri puts
<Okasu> for example
<lenochka> Okasu: yes. of course :) I did put a method there.. i wonder if i would have to install something additionally
ferbass [ferbass!~ferbass@187.83.141.119] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
lenochka [lenochka!~elena@unaffiliated/lenochka] has quit [#ruby]
ferbass_ [ferbass_!~ferbass@187.83.141.119] has joined #ruby
linusoleander [linusoleander!~linus@h246n3c1o1042.bredband.skanova.com] has joined #ruby
BrianE [BrianE!~brian@188-220-10-235.zone11.bethere.co.uk] has joined #ruby
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
Barakas [Barakas!~v@82.220.1.196] has joined #ruby
p1d [p1d!~p1d@ns1.vonaffenfels.de] has joined #ruby
faber [faber!~faber@adsl-ull-163-211.50-151.net24.it] has joined #ruby
alem0lars [alem0lars!~alem0lars@host128-246-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
Wilhelm_ [Wilhelm_!~textual@oyt234.internetdsl.tpnet.pl] has joined #ruby
zommi [zommi!quassel@nat/ibm/x-xnqnrbgsplswipww] has joined #ruby
clockwize [clockwize!~clockwize@81.19.48.130] has joined #ruby
mattyohe [mattyohe!~mattyohe@2620:0:e50:3011:9485:19e8:4673:bd0d] has quit [#ruby]
vereteran [vereteran!~vereteran@static.88-198-170-117.clients.your-server.de] has joined #ruby
_obiJuan [_obiJuan!~ysiad1@pool-70-107-98-151.ny325.east.verizon.net] has joined #ruby
ferbass [ferbass!~ferbass@187.83.191.233] has joined #ruby
linusoleander [linusoleander!~linus@h246n3c1o1042.bredband.skanova.com] has joined #ruby
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
Ammar01 [Ammar01!~hassaa10@gatej.mh.bbc.co.uk] has joined #ruby
ferbass [ferbass!~ferbass@187.83.191.233] has joined #ruby
tilde` [tilde`!~tilde@host150-185-dynamic.13-79-r.retail.telecomitalia.it] has joined #ruby
linusoleander [linusoleander!~linus@h246n3c1o1042.bredband.skanova.com] has joined #ruby
kaiwren [kaiwren!~KaiWren@122.172.248.47] has joined #ruby
ferbass_ [ferbass_!~ferbass@189.64.66.243] has joined #ruby
tonini [tonini!~zastav@edge.garaio.com] has joined #ruby
Sliker [Sliker!~ponies@9.183.pn.adsl.brightview.com] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
<nobitanobi> Hi. I've a question about http://pastie.org/3153828 -- What would be the difference between the "tutorial" vs "mine" approach? Why would you use block when opening an URI?
mxweas [mxweas!~max@mobile-198-228-199-234.mycingular.net] has joined #ruby
rb2k [rb2k!~rb2k@2001:6f8:1334:0:98:3d07:cc06:ba72] has joined #ruby
<rb2k> has anybody in here used the "grape" gem?
<rb2k> I have no idea how to use the authentication "middleware"?
<rb2k> it could be that it's a rack middleware
<rb2k> but I can't say I understand the setup completely
<rb2k> :(
<Hanmac> nobitanobi: because you does not close the IO
<nobitanobi> but if I happen to do myfile.close that would be the same right?
<Hanmac> normaly yeah, but using a block does the stuff for you
<nobitanobi> I didn't know the block in that case "automatically" close the file
<nobitanobi> thanks Hanmac
emocakes [emocakes!~om@200-181-185-157.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
robyurkowski [robyurkowski!~robyurkow@184.151.127.150] has joined #ruby
araujo [araujo!~araujo@gentoo/developer/araujo] has joined #ruby
fayimora [fayimora!~fayimora@95.175.159.8] has joined #ruby
mengu [mengu!~mengu@95.70.194.61] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
ChampS666 [ChampS666!~ChampS@141.32.27.50] has joined #ruby
nobitanobi1 [nobitanobi1!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
EddieS [EddieS!~ed@212.59.167.161] has joined #ruby
durre [durre!~kvirc@217-212-242-4.customer.telia.com] has joined #ruby
Sliker [Sliker!~ponies@9.183.pn.adsl.brightview.com] has joined #ruby
AlecTaylor [AlecTaylor!alectaylor@unaffiliated/alectaylor] has joined #ruby
iamjarvo [iamjarvo!~Adium@c-71-230-13-201.hsd1.nj.comcast.net] has joined #ruby
coucher [coucher!~carlos@82.131.107.143.cable.starman.ee] has joined #ruby
<coucher> hey all
<coucher> is there any way to install the required ruby version directly from the rvmrc file? Is that recommended or is it a bad idea?
KitsuneDrag0n [KitsuneDrag0n!~hats@unaffiliated/kitsunedrag0n] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby
djanatyn [djanatyn!~djanatyn@mail.digitalkingdom.org] has joined #ruby
BiHi [BiHi!~bihi@did75-17-88-165-129-29.fbx.proxad.net] has joined #ruby
dchelimsky [dchelimsky!~dchelimsk@207-229-185-63.c3-0.arm-ubr1.chi-arm.il.cable.rcn.com] has joined #ruby
nanderoo [nanderoo!~nanders@38.124.137.226] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-71-183-247-164.nycmny.fios.verizon.net] has joined #ruby
Guedes [Guedes!~guedes@189.31.65.14] has joined #ruby
Guedes [Guedes!~guedes@unaffiliated/guedes] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
tk [tk!~tk@p252193.doubleroute.jp] has joined #ruby
faber [faber!~faber@ppp-77-32.26-151.libero.it] has joined #ruby
robyurkowski [robyurkowski!~robyurkow@184.151.127.142] has joined #ruby
coucher [coucher!~carlos@82.131.107.143.cable.starman.ee] has quit ["Leaving"]
nyuszika7h [nyuszika7h!nyuszika7h@unaffiliated/nyuszika7h] has joined #ruby
speggey [speggey!~speggey@62.95.122.142] has joined #ruby
palcu [palcu!~alex@89.122.187.223] has joined #ruby
Squarepy [Squarepy!~Squarepy@wcw-staff-214-212.wireless.uva.nl] has joined #ruby
Squarepy [Squarepy!~Squarepy@unaffiliated/squarepy] has joined #ruby
danielpunt [danielpunt!~danielpun@87.211.238.120] has joined #ruby
tilde` [tilde`!~tilde@host43-198-dynamic.12-79-r.retail.telecomitalia.it] has joined #ruby
rushed [rushed!~rushed@cpe-70-116-11-35.austin.res.rr.com] has quit [#ruby]
adac [adac!~adac@clnet-kmu02-090.ikbnet.co.at] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
<adac> I do delete a file like this: File.delete("/root/bin/dumpcompare.log") however when tis file does not exist i get an error of course. What is a common way to avoid this error? just ceck previously if the file exists?
<workmad3> adac: yeah... File.delete(path) if File.exists?(path)
<adac> workmad3, thank you
apeiros_ [apeiros_!~apeiros@194.209.75.58] has joined #ruby
<Okasu> https://github.com/ryanb/ruby-warrior nice trainig for ruby beginner
`brendan [`brendan!~b@66-208-246-34-ubr02b-waldlk01-mi.hfc.comcastbusiness.net] has joined #ruby
niklasb [niklasb!~codeslay0@p5B310C56.dip0.t-ipconnect.de] has joined #ruby
fermion [fermion!~fermion@venkman.brightcove.com] has joined #ruby
<`brendan> morning all
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
ikaros [ikaros!~ikaros@dslb-188-107-221-154.pools.arcor-ip.net] has joined #ruby
<nobitanobi> anyone has by chance a good reading for a newbie that is trying to understand yield and blocks?
ephemerian [ephemerian!~ian@82-69-1-248.dsl.in-addr.zen.co.uk] has joined #ruby
altivec [altivec!~altivec@92.50.185.220.dynamic.ufanet.ru] has joined #ruby
clockwize [clockwize!~clockwize@81.19.48.130] has joined #ruby
<apeiros_> nobitanobi: consider yield a method call and the block the method you're calling
<apeiros_> and instead of 'return' you use 'next' in a block
rickmasta [rickmasta!~rickmasta@pool-71-183-247-164.nycmny.fios.verizon.net] has joined #ruby
<nobitanobi> but if I do yield argument1,argument2 and then I do yield argument1,argument2,argument3 -> In the block, what should I expect? The max of parameters given by the yield right?
<apeiros_> just like with a method definition: foo do |arg1, arg2, *args|
<apeiros_> ruby is more forgiving wrt arguments passed to blocks, though
<apeiros_> I suggest you fire up irb and test a bit :)
<nobitanobi> yes thanks. I'm reading this http://www.robertsosinski.com/2008/12/21/understanding-ruby-blocks-procs-and-lambdas/ - it's helping too
<nobitanobi> :)
<nobitanobi> it's just weird to me the use of blocks in methods and having yield as a "pipe" between both
<apeiros_> it's not weirder than any other method you call ;-)
<workmad3> nobitanobi: it's just like a normal method, apart from the location where it is defined
<shevy> hey nobitanobi
<nobitanobi> ok, I think it will take a little bit to digest it :P
<nobitanobi> hi shevy, how are you?
<shevy> were you able to find a solution to the rescue-retry thing you were looking?
<shevy> dunno, kinda tired. stayed up for too long, slept only 5 hours
<nobitanobi> yes I did, thanks shevy
<shevy> cool
<shevy> you learn fast!
<nobitanobi> not really... But I really like Ruby so far, so I'm enjoying it
<nobitanobi> going to have lunch now, talk to you later guys, thanks for the help
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby
p0y [p0y!~p0y@121.97.55.59] has joined #ruby
p0y_ [p0y_!~p0y@112.210.79.207] has joined #ruby
fermion_ [fermion_!~textual@venkman.brightcove.com] has joined #ruby
stef_204 [stef_204!~kvirc@unaffiliated/stef-204/x-384198] has joined #ruby
crankycoder [crankycoder!~crankycod@out-on-159.wireless.telus.com] has joined #ruby
tcurdt [tcurdt!~tcurdt@89.246.67.229] has joined #ruby
kakashi__ [kakashi__!~kakashi_@nltk/kakashi] has joined #ruby
Carmivore [Carmivore!~carmivmor@ec2-50-19-173-173.compute-1.amazonaws.com] has joined #ruby
nicoulaj [nicoulaj!~nicoulaj@pas38-5-82-244-59-208.fbx.proxad.net] has joined #ruby
mxweas [mxweas!~max@mobile-198-228-199-234.mycingular.net] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
Spockz [Spockz!~Spockz@21pc198.sshunet.nl] has joined #ruby
kwoodson [kwoodson!kvirc@nat/redhat/x-plmvpnxvvrrplkkt] has joined #ruby
kf8a [kf8a!~kf8a@user-33c730.user.msu.edu] has joined #ruby
catphish [catphish!~catphish@2001:9d8:2005:11:222:15ff:fe88:aae2] has joined #ruby
<catphish> what is the best multithreaded rack server?
<catphish> i usually use unicorn, but he has no threading
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
TheTFEF [TheTFEF!JS@cpe-173-88-110-115.columbus.res.rr.com] has joined #ruby
Jackneill [Jackneill!~Jackneill@unaffiliated/jackneill] has joined #ruby
p0y [p0y!~p0y@121.97.55.59] has joined #ruby
<csmrfx> wait, what
<shevy> hehe
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
tommyvyo_ [tommyvyo_!~tommyvyo@38.123.129.115] has joined #ruby
lusory [lusory!~bart@bb115-66-195-54.singnet.com.sg] has joined #ruby
enroxorz [enroxorz!~enroxorz@unaffiliated/enroxorz] has joined #ruby
DrShoggoth [DrShoggoth!~prakwtf@68-188-73-250.static.stls.mo.charter.com] has joined #ruby
Helius [Helius!~Adium@212.31.227.18] has joined #ruby
steampunkey [steampunkey!4e868413@gateway/web/freenode/ip.78.134.132.19] has joined #ruby
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
steampunkey [steampunkey!4e868413@gateway/web/freenode/ip.78.134.132.19] has quit [#ruby]
kedare [kedare!~kedare@2a01:e35:2f26:5330:4946:d488:f9bd:d8f2] has joined #ruby
clockwize [clockwize!~clockwize@81.19.48.130] has joined #ruby
chrisja [chrisja!~chris@5ac7d92c.bb.sky.com] has joined #ruby
jackerran [jackerran!~jackerran@fw.luckie.net] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has quit [#ruby]
ChampS666 [ChampS666!~ChampS@141.32.22.202] has joined #ruby
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby
nyuszika7h [nyuszika7h!nyuszika7h@unaffiliated/nyuszika7h] has joined #ruby
eykosioux [eykosioux!~eykosioux@80.87.25.146] has joined #ruby
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby
p0y [p0y!~p0y@121.97.55.59] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
p0y_ [p0y_!~p0y@112.210.79.207] has joined #ruby
tesmar [tesmar!~tesmar@adsl-070-154-097-089.sip.rmo.bellsouth.net] has joined #ruby
ElitestFX [ElitestFX!~ElitestFX@static-173-48-96-99.bstnma.fios.verizon.net] has joined #ruby
ElitestFX [ElitestFX!~ElitestFX@unaffiliated/elitestfx] has joined #ruby
Targen [Targen!~iguana@159.90.11.250] has joined #ruby
jergason [jergason!~jergason@c-67-182-209-164.hsd1.ut.comcast.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
adman65 [adman65!~adman65@xdsl-178-33.nblnetworks.fi] has joined #ruby
Synthead [Synthead!~max@50-76-231-54-static.hfc.comcastbusiness.net] has joined #ruby
Sailias [Sailias!~jonathan@s72-38-77-178.static.comm.cgocable.net] has joined #ruby
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
jgarvey [jgarvey!~jgarvey@cpe-174-097-248-211.nc.res.rr.com] has joined #ruby
AlecTaylor [AlecTaylor!~alectaylo@unaffiliated/alectaylor] has joined #ruby
p0y [p0y!~p0y@112.210.79.207] has joined #ruby
bbttxu [bbttxu!~adam@nt8rsctf1.unt.ad.unt.edu] has joined #ruby
Raboo [Raboo!~rabi@nikson.dataphone.se] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
kedare [kedare!~kedare@2a01:e35:2f26:5330:e8b0:4bc0:dd3:1c4e] has joined #ruby
endzYme [endzYme!~nehuanca@wsip-174-79-168-221.ri.ri.cox.net] has joined #ruby
Tuxist [Tuxist!~quassel@dyndsl-085-016-197-181.ewe-ip-backbone.de] has joined #ruby
mayfield [mayfield!~mayfaild@173.226.142.142] has joined #ruby
Marco [Marco!~marco@129.170.93.139] has joined #ruby
antonsk [antonsk!~Adium@125-70-92-178.pool.ukrtel.net] has joined #ruby
looopy [looopy!~looopy@pool-141-156-60-40.washdc.btas.verizon.net] has joined #ruby
chrisja [chrisja!~chris@5ac7d92c.bb.sky.com] has quit [#ruby]
desireco_ [desireco_!~textual@12.34.4.33] has joined #ruby
albemuth [albemuth!~albemuth@201.198.78.18] has joined #ruby
Barakas [Barakas!~v@82.220.1.199] has joined #ruby
charlenopires [charlenopires!~quassel@186.194.13.186] has joined #ruby
<apeiros_> catphish: errr? and why'd you prefer threading over forking?
ascarter [ascarter!~ascarter@64.122.126.156] has joined #ruby
Barakas [Barakas!~v@82.220.1.199] has joined #ruby
<catphish> apeiros_: that's a good question
<catphish> and not one i have a good answer to :)
adamjleonard [adamjleonard!~adamjleon@pool-108-9-169-222.tampfl.fios.verizon.net] has joined #ruby
<catphish> i'd prefer to have both
<catphish> several multithreaded forks
ascarter_ [ascarter_!~ascarter@64.122.126.156] has joined #ruby
<catphish> in order to maximize SMP but reduce overhead for long-running clients
<catphish> which i believe is the model that apache httpd uses
robyurkowski [robyurkowski!~robyurkow@64.254.250.82] has joined #ruby
<catphish> on a well configured day
<apeiros_> it's also a great way to get tripped up over race conditions and other concurrency issues…
<catphish> only if your app isn't thread safe
v0n [v0n!~v4n@2607:fad8:4:0:21e:8cff:fe4d:2f7d] has joined #ruby
<catphish> and ruby does make that astonishingly easy
<workmad3> apeiros_: threading is a bit lower overhead afaik, and easier to share information between compared to processes iirc
<workmad3> multi-process is great if everything can be run isolated
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
ryh [ryh!~ryh@host-174-45-115-181.bzm-mt.client.bresnan.net] has joined #ruby
philcrissman_ [philcrissman_!~philcriss@206.57.45.116] has joined #ruby
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
RomD` [RomD`!~Roman@nrbg-4d077e0c.pool.mediaWays.net] has joined #ruby
<catphish> all this is true
<catphish> but doesn't strictly answer my question :)
<catphish> though if forking is memory-cheap enough i may just stick with a big pack of unicorns
evantravers [evantravers!~textual@fw.luckie.net] has joined #ruby
<apeiros_> workmad3: theoretically, if ruby didn't use a somewhat fucked up memory layout, forking would be very low overhead, thanks to COW
<apeiros_> but yes, I think even pthreads are still less overhead than a fork
cfrugard [cfrugard!~cfrugard@69.64.196.98] has joined #ruby
<cfrugard> hello?
FND_ [FND_!~FND@p57B3A52E.dip.t-dialin.net] has joined #ruby
<cfrugard> have a question regarding opening files in ruby
pietro [pietro!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
<FND_> assuming I create a gem, can that gem somehow get to its own name (without manually parsing the gemspec)
<cfrugard> can anyone hear me?
<apeiros_> cfrugard: yes, we can read you
<cfrugard> excellent
<cfrugard> I got a dump of a ton of files from someone
<cfrugard> that have a random structure, somewhat
<apeiros_> catphish: I'm unaware of a forking + threading server for ruby
<cfrugard> the last directory title is arbitrary
<catphish> what about a good threading server?
<cfrugard> I need to be able to locate a file and open in using something like File.read("/path/to/file/*/file.txt")
virunga [virunga!~virunga@151.64.22.171] has joined #ruby
<catphish> i want something to pitch against unicorn and see what's faster / more maintainable
<cfrugard> where I cannot be certain of the last directory name
alse [alse!~Alex@108.162.180.72] has joined #ruby
<catphish> my app is very small and i hope very threadsafe
<workmad3> cfrugard: is it definitely only going to exist in one subdir?
<cfrugard> and there is always one directory there
<cfrugard> warkmad3: yes
<workmad3> cfrugard: if so, then File.read(Dir["/path/to/file/**/file.txt"].first)
araujo [araujo!~araujo@gentoo/developer/araujo] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has joined #ruby
<cfrugard> awesome, many thanks workmad3!
<cfrugard> couldnt find it online
charlenopires [charlenopires!~quassel@186.194.13.186] has joined #ruby
<apeiros_> catphish: use thin and write your own?
<catphish> i thought thin was a server
<catphish> what would i need to write?
<cfrugard> worked
cakery [cakery!~cakery@gatekeeper-ext.zeus.com] has joined #ruby
<cakery> any help? http://dpaste.com/684502/
centipedefarmer [centipedefarmer!~centipede@74-84-107-90.client.mchsi.com] has joined #ruby
mmokrysz [mmokrysz!~mmokrysz@pdpc/supporter/student/mmokrysz] has quit [#ruby]
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby
<confounds> cakery the problem is that `initialize': can't convert URI::HTTP into String (TypeError)
FND [FND!~FND@p57B3A52E.dip.t-dialin.net] has quit [#ruby]
<catphish> Net::HTTP.new doesn't accept a URL
<catphish> try passing it uri.host and uri.port
<catphish> iirc
axl_ [axl_!~axl@75-149-152-225-Minnesota.hfc.comcastbusiness.net] has joined #ruby
chrisja [chrisja!~chris@5ac7d92c.bb.sky.com] has joined #ruby
<cakery> catphish, put I don't have them separately, shall I just split on ':'?
Ankhers [Ankhers!~user@76-10-149-67.dsl.teksavvy.com] has joined #ruby
<catphish> no
davidboy [davidboy!u3228@gateway/web/irccloud.com/x-hqsdnefwrebnwwhn] has joined #ruby
<catphish> uri is a URI model
<catphish> you gave it a string
kenperkins [kenperkins!~textual@50-47-18-37.evrt.wa.frontiernet.net] has joined #ruby
<confounds> reading the api could help
<catphish> and it will split it for you
<cakery> ahhh
<workmad3> cakery: URI.parse(uri)
<cakery> all working now, thanks :) - i'll read the docs
AlecTaylor [AlecTaylor!~alectaylo@unaffiliated/alectaylor] has joined #ruby
oxxz [oxxz!~0xo0xo@123.176.25.98] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
vraa [vraa!~vraa@h180.73.29.71.dynamic.ip.windstream.net] has joined #ruby
oxxz [oxxz!~0xo0xo@123.176.25.98] has joined #ruby
nhance [nhance!~nhance@office.reenhanced.com] has joined #ruby
kpshek [kpshek!~kpshek@159.140.254.99] has joined #ruby
<nhance> Is there a way to share rspec spec/support files across gems?
<nhance> I have a gem I'm using and I would really like to use the test fixtures it provides in the app that requires the gem
nhance [nhance!~nhance@office.reenhanced.com] has quit [#ruby]
nhance [nhance!~nhance@office.reenhanced.com] has joined #ruby
mayfield_ [mayfield_!~mayfaild@173.226.142.136] has joined #ruby
notbrent [notbrent!~notbrent@142.179.34.62] has joined #ruby
Wilhelm_ [Wilhelm_!~textual@oyt234.internetdsl.tpnet.pl] has joined #ruby
amacgregor_ [amacgregor_!~amacgrego@CPE00222dcb0a53-CM00222dcb0a4f.cpe.net.cable.rogers.com] has joined #ruby
C0deMaver1ck_ [C0deMaver1ck_!~C0deMaver@adsl-98-95-89-162.jan.bellsouth.net] has quit ["Leaving..."]
_obiJuan [_obiJuan!~ysiad1@24.39.125.227] has joined #ruby
mdel_ [mdel_!~mdel@pool-71-175-17-16.phlapa.fios.verizon.net] has joined #ruby
crankycoder [crankycoder!~crankycod@24-246-44-226.cable.teksavvy.com] has joined #ruby
nobitanobi [nobitanobi!~novito@103.Red-213-96-26.staticIP.rima-tde.net] has joined #ruby
<nobitanobi> hi
luxurymode [luxurymode!~luxurymod@rrcs-184-75-21-21.nyc.biz.rr.com] has joined #ruby
clockwize [clockwize!~clockwize@31.103.134.57] has joined #ruby
geekbri [geekbri!~geekbri@64.119.145.106] has joined #ruby
Locke23rus [Locke23rus!~quassel@128-70-111-50.broadband.corbina.ru] has joined #ruby
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby
Marco [Marco!~marco@129.170.93.139] has joined #ruby
leex [leex!~leex@tvag.tvk.RWTH-Aachen.DE] has joined #ruby
ferbass [ferbass!~ferbass@187.81.223.112] has joined #ruby
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby
<leex> hi everyone, i am trying to write a crypttcpsocket: https://gist.github.com/1583528 but send(:sym,..) seems not to work on sockets (just guessing it was overwritten somewhere to send "a", 0) so my implementation of method missing doesn't work, every idea on how to fix it would be welcome.
jergason [jergason!~jergason@128.187.186.67] has joined #ruby
<workmad3> leex: __send__
<leex> workmad3: works ;)
<leex> workmad3: thanks!
<workmad3> leex: if you ever encounter anything that overrides __send__... shout at them ;)
<Mon_Ouie> Or any method that starts with two underscores actually
* leex shouts at everyone responsible for writing the tcpsockets ;)
<Tasser> leex, ah well, #send may be overwritten
quest88 [quest88!~quest88@c-98-207-205-137.hsd1.ca.comcast.net] has joined #ruby
pootpoot [pootpoot!~pootpoot@38.108.250.130] has joined #ruby
ferbass [ferbass!~ferbass@187.81.223.112] has joined #ruby
<leex> Tasser: yes, that's the problem and __send__ fixes it, didn't know the __functions__ existed
jroes [jroes!~jroes@jroes.net] has joined #ruby
LiquidInsect [LiquidInsect!~billabney@173-228-63-32.dsl.static.sonic.net] has joined #ruby
<jroes> I have a method that takes a method name and a value as an argument. I need to create several setters that redirect to this method. how would I go about doing this? method_missing?
<cakery> how do i make a request with https in 1.8.7? i was following the docs but I think it's changed since
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
stringoO [stringoO!~JLstring@bas1-toronto42-1279598844.dsl.bell.ca] has joined #ruby
baroquebobcat [baroquebobcat!~nick@70-90-113-174-co.denver.hfc.comcastbusiness.net] has joined #ruby
ckrailo [ckrailo!~ckrailo@208.86.167.247] has joined #ruby
billy_ran_away [billy_ran_away!~billy_ran@pool-173-69-211-31.bltmmd.fios.verizon.net] has joined #ruby
emocakes [emocakes!~om@200-181-185-157.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
<nobitanobi> I've a question... When we say "everything is an object in ruby", are we saying "if statement" is an object too?
carlyle [carlyle!~carlyle@216.133.69.20] has joined #ruby
jergason [jergason!~jergason@128.187.186.67] has joined #ruby
<Hanmac> not realy ...
<nobitanobi> then, what is it?
<workmad3> nobitanobi: it's code
<emocakes> its an operation nobitanobi...
<emocakes> lol
<emocakes> honestly, what kind of question is that?
<billy_ran_away> I'm trying to make a Rails plugin and I need to figure out the ActiveRecord instance that's calling this method...
<nobitanobi> it's a question from a rookie who has read "in ruby everything is an Object".
<nobitanobi> sorry if my question disturb you emocakes
<emocakes> you should be
lkba [lkba!~AndChat@acol243.neoplus.adsl.tpnet.pl] has joined #ruby
<leex> emocakes: LISP?
<emocakes> but think of it this way, if if was an object, what difference would it make?
<leex> nobitanobi: don't be offended, it not a dumb question
<nobitanobi> I'm not looking for any kind of difference. It was just a curiosity
<emocakes> sorry for being rude then
<nobitanobi> don't be sorry, is your own problem :)
_solomon [_solomon!~solomon@216-80-83-169.c3-0.arm-ubr1.chi-arm.il.cable.rcn.com] has joined #ruby
<nobitanobi> "In Ruby, everything is an object. Every bit of information and code can be given their own properties and actions" -- from here http://www.ruby-lang.org/en/about/
_0biJuan [_0biJuan!~ysiad1@24.39.125.227] has joined #ruby
<Mon_Ouie> In Ruby code isn't represented as objects, and there are loops and conditionals that aren't method calls
<nobitanobi> ok Mon_Ouie, then I suppose that "every bit of information and code" is a bit too much :/
<emocakes> marketing nobitanobi
<emocakes> :p
<emocakes> RUBY IS MAGIC
josefig [josefig!~josefig@unaffiliated/josefig] has joined #ruby
<workmad3> Mon_Ouie: hmm... doesn't rubinius give you access to a lot more of the ruby code in the form of objects?
<catphish> i really should learn how ruby works
<workmad3> catphish: magic and bottled unicorns
<Mon_Ouie> Even then, that's not quite part of the language
<Hanmac> yeah ... very black magic :P
<Mon_Ouie> They have methods to access the bytecode from a method or block
<catphish> some kind of node tree and bytecode afaik
<workmad3> catphish: oh, in that sense... the interpreter generates an abstract syntax tree, which is then walked to produce bytecode. The bytecode is then executed in the VM
<workmad3> (in 1.8, the AST is executed directly, no bytecode compilation or VM)
<workmad3> 1.8 == 1.8 MRI
ascarter_ [ascarter_!~ascarter@209.119.253.66] has joined #ruby
<catphish> is the AST on a per-method basis?
<catphish> which is then linked?
luckyruby [luckyruby!~luckyruby@rrcs-24-129-162-10.se.biz.rr.com] has joined #ruby
<workmad3> hmm... not sure on that front... my interest ran out after ASTs, vms and bytecode :)
<shevy> nobitanobi in syntax of course not always is an object involved
<leex> can anyone answer yet another question: https://gist.github.com/1583528 works fine until i remove the comment from line 35 and thereby inlcude a module which overwrites functions and somehow method_missing doesn't work correctly anymore, can anyone explain me why?
<nobitanobi> yep shevy that's what it seems :) I was just impressed by that sentence in the official Ruby page :)
<shevy> what I also wonder is if messages are objects or not
juarlex [juarlex!~juarlex@189.137.254.169] has joined #ruby
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has joined #ruby
<workmad3> leex: what do you mean 'doesn't work correctly'?
<leex> ofcourse i could change my implementation of cryptsocket, but that would be nice OO
aroop [aroop!~aroop@67.139.104.203] has joined #ruby
friskd [friskd!~friskd@71-95-209-242.static.mtpk.ca.charter.com] has joined #ruby
<leex> workmad3: if I run the code, puts and gets (from the cryptpus module) aren't executed correctly (or let's say: in the way i wan't it wo work)
<workmad3> leex: that's not enough explanation... what happens with them?
kenperkins [kenperkins!~textual@174-24-171-37.tukw.qwest.net] has joined #ruby
dyer [dyer!~dyer@c-76-17-40-235.hsd1.ga.comcast.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
friskd [friskd!~friskd@71-95-209-242.static.mtpk.ca.charter.com] has joined #ruby
Sir_Rai [Sir_Rai!~rai@84.127.26.172.dyn.user.ono.com] has joined #ruby
ascarter [ascarter!~ascarter@209.119.253.66] has joined #ruby
<leex> workmad3: well good question, that's what I am not sure about, I don't know what super in in module that is included in a class calls
mikewintermute [mikewintermute!~mikewinte@188-223-213-21.zone14.bethere.co.uk] has joined #ruby
<workmad3> leex: it restarts the method lookup at the next point in the ancestor chain
<leex> workmad3: module B; def puts str; super str + "ohai"; end; class A; include B; and then the method missing part; end;
<leex> workmad3: where do I find a good documentation about the ancestor chain?
<workmad3> leex: just call SomeClass.ancestors
charlenopires_ [charlenopires_!~quassel@186.194.13.186] has joined #ruby
<workmad3> leex: also, be wary of gets and puts... they are defined on Kernel, so chances are every object has them
<leex> workmad3: ok
<workmad3> leex: or, in other words, with gets and puts, method_missing will likely never be called ;)
<leex> in my decorator it does call them correctly, until i try to write these function myself in a module
luckyruby [luckyruby!~luckyruby@rrcs-24-129-162-10.se.biz.rr.com] has joined #ruby
<workmad3> leex: could be that method_missing takes over with a private method call too... but inside your module the private version is accessible
wallerdev [wallerdev!~wallerdev@c-68-43-58-191.hsd1.mi.comcast.net] 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
indstry [indstry!~apple@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby
<leex> workmad3: ok, I will debug a but, and if I can't figure it out. I will try to ask a better (more informative) question, thanks
Corvisier [Corvisier!~Corvisier@a89-152-133-4.cpe.netcabo.pt] has joined #ruby
<catphish> is there a good reason why in ruby local methods and local variables use the same syntax, that ambiguity is the one thing that upsets me about coding ruby
<workmad3> catphish: any suggestions as to how they could be differentiated?
<workmad3> catphish: also, I'd suggest that if it causes problems, your methods are too long ;)
<catphish> yes, make self.method work as method does
<catphish> and enforce its use
shaatar [shaatar!u648@gateway/web/irccloud.com/x-upwfdzboohotddoj] has joined #ruby
<workmad3> catphish: bleh, then you end up with more verbose and nastier looking code
<catphish> yes, but its not ambiguous :(
Sailias [Sailias!~jonathan@s72-38-77-178.static.comm.cgocable.net] has joined #ruby
ciopte7 [ciopte7!~thomascio@cpe-071-071-047-213.triad.res.rr.com] has joined #ruby
jergason [jergason!~jergason@otherlab.cs.byu.edu] has joined #ruby
<workmad3> catphish: I rarely find it ambiguous... if I do, then it's because I've got a method where I can't easily see it all at once and so can't see all the local vars
<Hanmac> then you can do it in your code, but leave otheres alone if there dont want to do that
<shevy> catphish well then you would also have to use object.method_call()
<workmad3> catphish: apart from the obvious self.field = ... flaw (that one is annoying I'll admit)
<shevy> catphish which also works. but there is one strong argument, if you write 100000 lines of code in ruby, the shorter variants are almost always better
<catphish> object.method_call sounds horrific :)
<_solomon> I'm trying to get the length of audio files (in seconds). Does anyone know how to do this? Most files will be mp3, but possibly some other audio types.
<shevy> catphish dont mind the name, just the () vs. omitting them
<shevy> _solomon if you can use ffmpeg, sure! :>
axl_ [axl_!~axl@173-11-52-113-Minnesota.hfc.comcastbusiness.net] has joined #ruby
<catphish> yeah, i use () to differentiate, does that actually tell the interpreter it's a method?
<Sir_Rai> What is the best way to manage Web Services on different versions of ruby to start? I have created aliases that replace the corresponding binary versions, so I can reasly run: ruby-switch19 or ruby-switch18. My workflow is a bit toucheggs: 1. (switch to ruby 19 -> start nginx that runs the ruby 1.9 app.) 2. (What is the best way to launch this ruby app 1.8 with nginx or apache? how are you guys managing that?
<_solomon> shevy, I'm on heroku, so using ffmpeg is tough...
<catphish> sadly there's no similar way to say it's not a method
<shevy> hmm
<catphish> personally i love self.method but that doesn't do a local call sadly
<shevy> _solomon for mp3 there is some ruby library ... http://ruby-mp3info.rubyforge.org/
<workmad3> catphish: () does indeed tell ruby that it's a method
<shevy> catphish yeah I think so, it will probably not go through the "ambiguity" checking
<shevy> perhaps using () is faster :P
wilhelmn [wilhelmn!~textual@oyt234.internetdsl.tpnet.pl] has joined #ruby
<_solomon> shevy, I checked it out, the only issue is it only supports mp3's...
<catphish> the problem comes when you're using 'variable' and if someone forgets to define it, you call a method instead
<workmad3> catphish: don't forget to define it then :P
<shevy> _solomon well. ffmpeg is sweet. I am not sure how else you want to solve things :) but with ffmpeg .. I just match to the duration info .match(/Duration: (\d\d:\d\d:\d\d.\d\d)/)[1]
<workmad3> catphish: I personally don't see why a language should cater for carelessness or stupidity ;)
<catphish> i mostly just hate reading people's code and not knowing where to look when they've used for example 'id'
eywu [eywu!~Adium@205-170-107-4.dia.static.qwest.net] has joined #ruby
<catphish> especially in rails where it can be a method_missing
<shevy> yeah catphish I also hate reading other people's code
<_solomon> cool, thanks shevy, I'm going to do some more research to see what others are doing on heroku with ffmpeg...
<shevy> my rule of thumb is when I see a lot of metaprogramming shit, I throw it away
<shevy> I think the only project I use dynamic methods generation is a configuration object that supports both object['foo'] and object.foo
<shevy> but I wonder how to simplify it, because it seems as if it may be a somewhat common pattern, compared to other things
ascarter_ [ascarter_!~ascarter@74.211.208.178] has joined #ruby
<workmad3> catphish: yeah, reading someone elses code can be bad if it's not nicely written... however, if you have 5 lines of code and none of them are 'id = something' then you know in less than 1s that a call to 'id' is a method call, not a local var ;)
<catphish> one man's valuable abstraction is another man's meta-shit
<shevy> (hmm and be able to specify the action you want to do on your own, when object.foo does not exist.)
<catphish> workmad3: true, thats ok when methods are short
<workmad3> catphish: I try to refactor when methods get longer than about 10 lines
<shevy> workmad3 usually, when I see ruby code that is not bundled into a class, I tend to throw it away
<catphish> i write a fair bit of binary parsing
<catphish> those methods get long
<catphish> with a lot of local vars
<catphish> though unpack is certainly a blessing
froy [froy!~troy@manuel.dublan.net] has joined #ruby
<Tasser> is unpack contextfree?
bluOxigen [bluOxigen!~noreply@unaffiliated/bluOxigen] has joined #ruby
<workmad3> shevy: you throw away modules? :P
<catphish> unpack does does a lot of work in almost no code :)
<shevy> workmad3 hmm not really. but I think they are crippled classes anyway. I dont like the concept behind modules, it feels anti-synchron to the whole subclass model too
<shevy> *anti-synchronimy-something ...
* shevy wants to coin a new word...
<workmad3> shevy: hmm, I much prefer building up with modules over extensive subclassing
<workmad3> shevy: subclassing is a much stricter relationship... adding in a module is more 'this has some bit of functionality' as opposed to 'this is a ThingAMaBob'
* catphish recommends finded - a new past tense spelling of find
cjlicata [cjlicata!~carlyle@70.43.205.70.nw.nuvox.net] has joined #ruby
<catphish> i still don't understand the difference between a module and a class
<shevy> catphish yeah. basically you can do more things with a class than you can with a module
<catphish> except that modules can be included in classes, but are also used as containers for classes
quest88 [quest88!~quest88@12.181.53.121] has joined #ruby
<catphish> confusing? i think so
<shevy> yeah
<Tasser> catphish, Class.is_a? Module
<Tasser> => true
<shevy> you can also use class as namespace though
<shevy> class Foo
<shevy> class Bar
<workmad3> shevy: you can extend or mixin multiple modules into a module or class, but can only inherit from one class in a class
Tomasso [Tomasso!~papito@186.23.14.175] has joined #ruby
<Tasser> catphish, oh, and the other way too :-)
<shevy> yup workmad3 I find this extremely annoying
<catphish> but why have both?
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby
<shevy> but when I realized that modules are more limited than classes, I switched to use more classes
<workmad3> catphish: because it allows multiple inheritance of implementation using mixin modules without introducing the 'diamond of death' of full-blown multiple inheritance
<shevy> what I do with modules mostly these days is ... collect some CONSTANTS... a few not so important methods perhaps ... and use it as general namespace for a project
<workmad3> shevy: I'm switching the other way... modules are fantastic ways to compose objects :)
<shevy> been there, tried it, didn't work for me :)
<workmad3> shevy: especially once you find out that you can do 'super if defined?(super)' to pass up the chain rather than the whole crap of alias method chaining
<shevy> that looks ugly!
<workmad3> shevy: it's not as ugly as doing this_method_without_this_feature
<shevy> see catphish? that's ruby, noone can agree on common things
<catphish> i use modules as containers for classes, and for modules, but those 2 things seem conflicting
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has joined #ruby
<workmad3> shevy: which is what you'd do with an alias method chain to wrap around a method call to extend it
<shevy> try classes as containers for classes catphish :D
J4ckOfAllSpades [J4ckOfAllSpades!~jasdeepja@c-98-207-73-250.hsd1.ca.comcast.net] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
<workmad3> shevy: sounds like you'd be right at home in java btw ;) they like nice big class hierarchies over there :P
<shevy> nah
<workmad3> </strawman>
<shevy> java is verbose for no need
<shevy> I try to be as terse as possible, when that is possible
<catphish> i would probably like java
<workmad3> shevy: ah, perl it is then ;)
Vaevictus [Vaevictus!~vae@184.91.160.244] has joined #ruby
<shevy> yeah, the idea is nice, but perl is simply unreadable when it is terse
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
SegFaultAX|work [SegFaultAX|work!~mkbernard@173.228.45.162] has joined #ruby
<Vaevictus> i was trying to use gem just a bit ago on my ubuntu lts server... and it's failing trying to require 'thread'
<shevy> catphish but java really is way too verbose
<shevy> it is as if the whole language is designed around the sell-programs-to-client-for-lines-of-code-written
<catphish> lol
<Vaevictus> shevy - it's better to say that the optimal readability level of perl is both less terse than ruby and less terse than it can be :D
<catphish> my coding style is pretty verbose anyway
<shevy> someon on #ruby-lang gave a nice example but I dont remember who :(
<shevy> yeah Vaevictus
<catphish> i suspect it would be much the same in java
<shevy> what perl lacked back then was probably competition from other languages
<catphish> i don't tend to make use of inject and friends
<Vaevictus> shevy - and a nice standard html interpretation layer
<shevy> growing a new language is hard, look at how difficult it is for Io http://iolanguage.com/ to gain any adoption
<Vaevictus> shevy: it had not particular focus areas: it wasn't a scripting language... it was a specific purpose language designed to do everything.
<shevy> hehe
palcu [palcu!~alex@89.122.187.223] has joined #ruby
<shevy> then PHP came along and kicked its butt!
<Vaevictus> alongside perl, php did most things horribly (see php4) and destroyed perl in use for it's simple asp mode
alse [alse!~Alex@108.162.180.72] has joined #ruby
<Vaevictus> shevy: very few mature coders migrated from perl to php :D
<shevy> yup the fossil C hackers still use perl
SegFault1X|work [SegFault1X|work!~mkbernard@173.228.45.162] has joined #ruby
<Vaevictus> shevy: no, fossil C hackers still use C
<shevy> though I think quite some use python these days
adeponte [adeponte!~adeponte@67.110.253.162.ptr.us.xo.net] has joined #ruby
<Vaevictus> and they're still good at it
<catphish> i'd be interested to write some stuff in java to see how it compares to ruby
<shevy> Vaevictus, the combination of perl & C is still not too uncommon, look at the git bindings using perl. I dont think they do that just because perl would be faster than python or ruby
<Vaevictus> anyone have an FAQ as to why rubygems doesn't work on my ubuntu due to thread ?
<catphish> in principal it seems pretty similare
<shevy> catphish, just that it is more verbose and lacks things like blocks
<shevy> then there is the Factory Factory joke
bier_ [bier_!~bier@p54A5AB6C.dip.t-dialin.net] has joined #ruby
<shevy> create a factory first before making another factory
<Vaevictus> java's statically typed too, isn't it?
<catphish> isn't ruby exceptionally statically typed?
<shevy> what means statically typed
<Vaevictus> lol
<shevy> protected List<AbstraktesFahrzeug> fahrzeuge = new ArrayList<AbstraktesFahrzeug>();
<catphish> A programming language is said to use static typing when type checking is performed during compile-time as opposed to run-time
csavola [csavola!~csavola@76-10-149-67.dsl.teksavvy.com] has joined #ruby
<catphish> so i suppose ruby isn't
TomJ_ [TomJ_!~TomJ@88.96.227.182] has joined #ruby
TomJ_ [TomJ_!~TomJ@unaffiliated/tomj] has joined #ruby
<shevy> well there is no compile time in ruby?
kevinbond [kevinbond!~kevinbond@250.orl54.voxeo.com] has joined #ruby
<catphish> as you can pass anything to anything
<Vaevictus> catphish: not even close
<catphish> shevy: yes there is
<Vaevictus> shevy: yes, there is, it's just at runtime :D
<shevy> ok so all languages are compiled then
<Nowaker> ruby is not statically typed
<Nowaker> but is STRONG typed
<catphish> and yes, i see now
<catphish> i was thinking about strong typed, it not the mush that is PHP typing
fayimora [fayimora!~fayimora@95.175.159.12] has joined #ruby
rshackleford [rshackleford!~rshacklef@186.153.99.114] has joined #ruby
tehgeekmeister [tehgeekmeister!~tehgeekme@sea02-v612-nat.marchex.com] has joined #ruby
<workmad3> catphish: or C typing... that's lovely and weak :)
rottenrec1 [rottenrec1!~ADMIN@75-140-8-252.static.rvsd.ca.charter.com] has joined #ruby
<catphish> is it?
<catphish> i thought C was pretty inflexible in its array types
<catphish> whereas numeric types you take your chances
<catphish> no blocks in java? :(
_0biJuan [_0biJuan!~ysiad1@24.39.125.227] has joined #ruby
dasfugufish [dasfugufish!~Adium@174-27-233-214.slkc.qwest.net] has joined #ruby
<Vaevictus> catphish: "array types" ... C has blocks of memory. you can do with them as you wish
<workmad3> catphish: C, you can cast anything to anything because you can cast anything to a void* pointer and a void* pointer to anything
<catphish> ah
<Tasser> Vaevictus, C is a domain-specific language for modifing the registers of a von-neumann machine ;-)
<Mon_Ouie> You can't cast a struct {int x, y; } into a void*
<Vaevictus> Tasser: ^_^
devdazed [devdazed!~russ_nyc@static-96-239-59-191.nycmny.fios.verizon.net] has joined #ruby
<catphish> i had real trouble trying to cast a string into a long in C when i tried
_0biJuan [_0biJuan!~ysiad1@24.39.125.227] has joined #ruby
arpegius [arpegius!~arpegius@c-50-133-254-74.hsd1.ma.comcast.net] has joined #ruby
<Mon_Ouie> A string is just a pointer in C
<arpegius> how can i check if a variable is of a certain type? something like myvar.is_time ?
ph^ [ph^!~ph^@cm-84.212.225.74.getinternet.no] has joined #ruby
<Mon_Ouie> If you want to actually convert it you need to call a function
<Vaevictus> life is just a pointer
<Vaevictus> Mon_Ouie: bah. convert it yourself :D
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
<catphish> indeed, and i couldn't seem to take the destination of that pointer and turn it into a long
<catphish> but maybe i was doing it wrong :)
badabim [badabim!~badabim@17.212.166.202] has joined #ruby
<Mon_Ouie> The destination of that pointer is a char, the first character of your string
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby
ascarter [ascarter!~ascarter@74.211.208.178] has joined #ruby
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
<catphish> it is indeed, but making a long that started at that first char seemed tricky
horrror [horrror!~hrr@46-117-113-219.bb.netvision.net.il] has joined #ruby
<Vaevictus> if (0x30 <= c <= 0x39) { c = c - 0x30; } ...
devdazed [devdazed!~russ_nyc@static-96-239-59-191.nycmny.fios.verizon.net] has joined #ruby
<Okasu> [1,2,3].inject(Hash.new(Array.new)) do |hash, item| hash[item] << item; hash end
<Mon_Ouie> And multiply by 10^i (if starting from the end of the string)
<Okasu> why it returns empty hash?
Marco_ [Marco_!~marco@pat160.dartmouth-secure.border2-cfw.Dartmouth.EDU] has joined #ruby
devdazed [devdazed!~devdazed@static-96-239-59-191.nycmny.fios.verizon.net] has joined #ruby
<Mon_Ouie> Because you didn't add any key
<catphish> Okasu: because you keep making a new hash
devdazed [devdazed!~devdazed@static-96-239-59-191.nycmny.fios.verizon.net] has joined #ruby
<Mon_Ouie> No, he doesn't
_debo_ [_debo_!~marco.deb@141.0.34.138] has joined #ruby
<catphish> oh, no, ignore me :(
<catphish> i'm going home now
<Mon_Ouie> There's only one hash, and two arrays. The one used as the default value of the hash, and [1, 2, 3]
billy_ran_away [billy_ran_away!~billy_ran@pool-173-69-211-31.bltmmd.fios.verizon.net] has joined #ruby
billy_ran_away [billy_ran_away!~billy_ran@pool-173-69-211-31.bltmmd.fios.verizon.net] has quit [#ruby]
<Mon_Ouie> Since it's a default value, it isn't added to the hash when you access it
billy_ran_away [billy_ran_away!~billy_ran@pool-173-69-211-31.bltmmd.fios.verizon.net] has joined #ruby
Marco__ [Marco__!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby
<Mon_Ouie> And you most likely don't want Hash.new(Array.new)
Mahoek [Mahoek!~Mahoek@ip51ceb6d4.adsl-surfen.hetnet.nl] has joined #ruby
_debo [_debo!~marco.deb@141.0.34.138] has joined #ruby
Russell^^ [Russell^^!~Russell^^@88.97.51.87] has joined #ruby
hinogi [hinogi!~Stefan@mnsr-d9bf506d.pool.mediaWays.net] has joined #ruby
hinogi [hinogi!~Stefan@facade/contributor/hinogi] has joined #ruby
<catphish> i didn't know Hash.new accepted an array
<catphish> does that actually do something useful?
<catphish> if its populated?
Araxia_ [Araxia_!~Araxia@173-164-68-213-Oregon.hfc.comcastbusiness.net] has joined #ruby
m_p [m_p!~m_p@107.0.83.66] has joined #ruby
<Hanmac> hihihi i knew the failure :P
_obiJuan [_obiJuan!~ysiad1@24.39.125.227] has joined #ruby
<Mon_Ouie> It's used as a default value
<Mon_Ouie> It accepts any object
<Mon_Ouie> And a block which will be called when an empty keys is accessed
<Mon_Ouie> Which is most likely what should be used here
<Hanmac> hash[item] << item; is bad in this content, hash[item] += [item]; is a little better
<Okasu> [1,2,3].inject(Hash.new) { |hash, item| hash[item] ||= []; hash[item] << item; hash }
<Okasu> worjs fine thx
jesteracer [jesteracer!~textual@178.215.117.18] has joined #ruby
devdazed [devdazed!~devdazed@static-96-239-59-191.nycmny.fios.verizon.net] has joined #ruby
kenichi [kenichi!~kenichi@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
<Mon_Ouie> It's not bad
alfism [alfism!~alfism@2620:149:4:1201:f95d:9746:6c44:80a4] has joined #ruby
<Mon_Ouie> Hash.new { |h, k| h[k] = [] }
juarlex [juarlex!~juarlex@189.249.64.139] has joined #ruby
devdazed [devdazed!~devdazed@static-96-239-59-191.nycmny.fios.verizon.net] has joined #ruby
ianbrandt [ianbrandt!~ianbrandt@99-111-99-153.uvs.sndgca.sbcglobal.net] has joined #ruby
devdazed [devdazed!~devdazed@static-96-239-59-191.nycmny.fios.verizon.net] has joined #ruby
davidcelis [davidcelis!~david@70-89-180-6-smc-or.hfc.comcastbusiness.net] has joined #ruby
regismesquita [regismesquita!~regismesq@187.45.255.64] has joined #ruby
Targen [Targen!~iguana@159.90.11.250] has joined #ruby
_0biJuan [_0biJuan!~ysiad1@24.39.125.227] has joined #ruby
fermion [fermion!~textual@venkman.brightcove.com] has joined #ruby
carlyle [carlyle!~carlyle@216.133.69.20] has joined #ruby
Azure [Azure!~Azure@reenigne.net] has joined #ruby
Azure [Azure!~Azure@unaffiliated/azure] has joined #ruby
asobrasil [asobrasil!~asantioli@palpatine.privatedns.com] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
tesmar [tesmar!~tesmar@adsl-070-154-097-089.sip.rmo.bellsouth.net] has joined #ruby
indeterminate [indeterminate!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby
wallerdev [wallerdev!~wallerdev@c-68-43-58-191.hsd1.mi.comcast.net] has joined #ruby
n8ji [n8ji!~n8ji@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
apok [apok!~apok@96.24.67.22] has joined #ruby
chrisja [chrisja!~chris@5ac7d92c.bb.sky.com] has quit [#ruby]
daniel_hinojosa [daniel_hinojosa!~danno@67-0-117-93.albq.qwest.net] has joined #ruby
nekid [nekid!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby
charlenopires [charlenopires!~quassel@186.194.13.186] has joined #ruby
_obiJuan [_obiJuan!~ysiad1@24.39.125.227] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
raincole_ [raincole_!~raincole@140.112.239.113] has joined #ruby
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby
virunga [virunga!~virunga@151.64.22.171] has joined #ruby
stkowski [stkowski!~stkowski@ns25.8x8.com] has joined #ruby
emocakes [emocakes!~om@200-181-185-157.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
skinnymuch [skinnymuch!~skinnymuc@static-173-61-113-6.cmdnnj.fios.verizon.net] has joined #ruby
skinnymuch [skinnymuch!~skinnymuc@static-173-61-113-6.cmdnnj.fios.verizon.net] has quit [#ruby]
boodle [boodle!~boodle@174.46.129.34] has joined #ruby
stayarrr [stayarrr!~olivererx@dslb-178-009-059-241.pools.arcor-ip.net] has joined #ruby
toy_battery [toy_battery!~choldbroo@c-67-164-29-115.hsd1.ca.comcast.net] has joined #ruby
boodle [boodle!~boodle@174.46.129.34] has joined #ruby
<toy_battery> when does it make sense to have a custom class that includes enumerable for holding data vs an array
tuppy_ [tuppy_!~quassel@ip68-231-151-143.tc.ph.cox.net] has joined #ruby
Synthead [Synthead!~max@50-76-231-54-static.hfc.comcastbusiness.net] has joined #ruby
appineer [appineer!~appineer@d72-38-11-102.commercial1.cgocable.net] has joined #ruby
<soulcutter> toy_battery: when you want to encapsulate behavior for a certain collection of data
seb_ [seb_!~seb@lns-bzn-21-82-64-82-94.adsl.proxad.net] has joined #ruby
Locke23rus_ [Locke23rus_!~quassel@128-70-23-199.broadband.corbina.ru] has joined #ruby
<toy_battery> so something that holds nodes in a document would make sense for that case
<toy_battery> so what should ensure only certain types of data go in that container?
<toy_battery> the container itself or the object holding the container?
wilmoore [wilmoore!~wilmoore@70-89-165-49-ISTS-co.hfc.comcastbusiness.net] has joined #ruby
<toy_battery> iow i'm adding more nodes to the document, should the document class control what goes in?
amerine [amerine!~mturner@67.204.184.82] has joined #ruby
mayankkohaley [mayankkohaley!~chatzilla@122.171.17.121] has joined #ruby
paissad [paissad!~paissad@89-92-16-151.hfc.dyn.abo.bbox.fr] has joined #ruby
horrror [horrror!~hrr@46-117-113-219.bb.netvision.net.il] has quit [#ruby]
tvo [tvo!~tvo@katapult/developer/tvo] has joined #ruby
zenergi [zenergi!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
<davidcelis> The container should control what it allows inside
voodoofish430 [voodoofish430!~mtorres@208.76.2.200] has joined #ruby
<davidcelis> The object doesn't need to know if it can be contained; it'll be told if it can or can't by the container
<toy_battery> ok so if class B has a class C for holding data, class C validates what is allowed in or class B?
<davidcelis> whichever is the container
<davidcelis> class C is a container for class B? class C does the validating
oxxz [oxxz!~0xo0xo@123.176.25.98] has joined #ruby
<toy_battery> class B represents the document class C represents a container of document nodes for example
<davidcelis> So you have... Document, DocumentNode, and DocumentNodeCollection or something?
<toy_battery> right
<davidcelis> DocumentNodeCollection should verify that what is being added is a DocumentNode
<davidcelis> and if it's not a document node, it should probably raise a custom exception
<Hanmac> or if possible turn the object into an document node
<toy_battery> ok that makes alot of sense
TheTFEF [TheTFEF!~JS@cpe-173-88-110-115.columbus.res.rr.com] has joined #ruby
<toy_battery> Hanmac: how would you go about doing that?
CoverSlide [CoverSlide!~richard@216.2.249.50] has joined #ruby
aantix [aantix!~jjones@50.0.102.2] has joined #ruby
tobym [tobym!~tobym@pool-173-56-80-136.nycmny.fios.verizon.net] has joined #ruby
<Hanmac> i dont know ... i know how to do it with color objects or Vectors (x,y)
<Hanmac> but you could accespt a string and then parse it to an Node
dcarper1 [dcarper1!~Adium@50-73-187-102-pennsylvania.hfc.comcastbusiness.net] has joined #ruby
Jake232 [Jake232!~textual@5e04f412.bb.sky.com] has joined #ruby
<toy_battery> i like that idea of parsing a string
<Hanmac> and i like duck typing :P
<toy_battery> so is there a naming convention used for the custom data containers ie DocumentNodeSet, DocumentNodeCollection, DocumentNodeList?
<toy_battery> i like duck typing to
roadze [roadze!~roadze@119.224.137.97] has joined #ruby
adamkittelson [adamkittelson!~adamkitte@50.0.132.2] has joined #ruby
<Hanmac> nope i think both are okay ... but for xml stuff i prefer nokogriri :P
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby
<toy_battery> yeah i like how nokogiri does DocumentNodeSet
<davidcelis> toy_battery: depends on what it is
<davidcelis> if it's a Set, i'd expect it to not allow dupilicate items
Jay_Levitt [Jay_Levitt!~Jay_Levit@c-24-63-250-125.hsd1.ma.comcast.net] has joined #ruby
<davidcelis> the other two, i suppose, are roughly the same
<toy_battery> good point, ie the mathematical idea of a set
<nobitanobi> I've a question regarding ranges and cover method. If I do test = "AA".."ZZ" why does test.cover? "ABC" turn to be "true"?
<nobitanobi> is it because it covers "AB" from "ABC" ? :/
<davidcelis> nobitanobi: maybe it's only taking the first two characters of ABC into account?
<davidcelis> like, sorting-wise or something?
<nobitanobi> Is this how cover works though? "Returns true if obj is between beg and end, i.e beg <= obj <= end (or end exclusive when exclude_end? is true)."
<nobitanobi> I don't think "ABC" is betwen "AA" - "BB"
<davidcelis> ah
<davidcelis> yes
<davidcelis> try both of those conditionals with "AA", "ABC", and "AZ"
Keva161 [Keva161!~Keva161@78.32.156.143] has joined #ruby
<davidcelis> "ABC" does come inbetween "AA" and "AZ" because "A" >= "A" and "B" is >= "Z"
<davidcelis> er, "B" is <= "Z"
btanaka [btanaka!~textual@17.245.88.150] has joined #ruby
<davidcelis> it will only check the first two characters of "ABC" because the range only covers the first two
<nobitanobi> oh ok...
<nobitanobi> davidcelis: How do you explain then that: newrange = "A".."X" - newrange.cover? "X" --> true // newrange.cover? "XX" --> false
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby
<toy_battery> because it doesn't cover 'xx'
<toy_battery> err 'XX'
<toy_battery> ('a'..'zz').cover? 'xx' #=> true
<Mon_Ouie> "XX" > "X", the longest string is considered as the greatest by String#<=> in that case
<nobitanobi> oh ok!
<toy_battery> 'a','b','c'...'aa','ab','ac'... so 'xx' is not in ('a'..'z')
<toy_battery> yeah because 'xx' comes after 'x'
phus [phus!~fabbi@user-0cceru1.cable.mindspring.com] has joined #ruby
<nobitanobi> but then why ('a'..'x') covers ax? isn't ax > x ?
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
<Mon_Ouie> No, because "a" is before "x"
<phus> im a unix sysadmin should I learn ruby or python
<toy_battery> hmm
<Mon_Ouie> Also notice cover? is not the same as include?
flagg0204 [flagg0204!~ianderson@sea02-v600-nat.marchex.com] has joined #ruby
andrewhl [andrewhl!~andrew@CPE204e7f4a94cb-CM001cea3dec2e.cpe.net.cable.rogers.com] has joined #ruby
<Mon_Ouie> include? will iterate over the range and see if any element is equal to the argument, cover? is merely arg >= begin && arg <= end (and checking if the end is included in the range)
<Hanmac> phus: i think python is more usefull for an admin, but i like ruby more
<phus> Hanmac, that's whatI thought too thanks
<toy_battery> both are nice languages, just play around with each of them to see which one you like most
<toy_battery> i stuck with ruby because i felt it was more consistent
<Hanmac> ruby has more potential to be evil ... i hope you can resist :P
<nobitanobi> Mon_Ouie thanks for that explanation, I will play a little bit
a|i [a|i!~ali@client-82-31-27-237.midd.adsl.virginmedia.com] has joined #ruby
a|i [a|i!~ali@unaffiliated/ai/x-9091534] has joined #ruby
nd__ [nd__!~nd@mnhm-590e6034.pool.mediaWays.net] has joined #ruby
<a|i> how to include some c/c++ in ruby gem which can be compiled at installation time?
carlyle [carlyle!~carlyle@216.133.69.20] has joined #ruby
<Hanmac> a|i i think you are looking for http://ruby-doc.org/docs/ProgrammingRuby/html/ext_ruby.html ?
<a|i> Hanmac: I think I'm looking for rake-compiler :)
<a|i> Hanmac: however, I do not want to wrap a c++ lib by ruby, I simply want to build it natively, and then run it from shell. would it makes sense to do in a gem?
Helius [Helius!~Adium@93-35-251-107.ip57.fastwebnet.it] has joined #ruby
jroes [jroes!~jroes@jroes.net] has quit [#ruby]
tuppy [tuppy!~quassel@ip68-231-151-143.tc.ph.cox.net] has joined #ruby
<Hanmac> maybe if you want expensive calculation , c++ can faster then ruby, is that what you want?
<Hanmac> and if you had looked at the link you would see that is not only for wraping
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-htwsohhteiebhbof] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
Deesl [Deesl!~bsdboy@unaffiliated/deesl] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
<toy_battery> so in terms of writing a document, should each DocumentNode be responsible for return it's string form or should something else be responsible for handling writing
alex__c2022 [alex__c2022!~alex@207.239.64.154] has joined #ruby
p1d [p1d!~p1d@dslb-088-064-132-143.pools.arcor-ip.net] has joined #ruby
<Mon_Ouie> Anyway you can use Rubygems' extensions support to build C programs that aren't C extensions at all
<Mon_Ouie> (gemspec.extensions = ["some_ruby_script.rb"])
ylluminate [ylluminate!~ylluminat@rrcs-24-123-53-166.central.biz.rr.com] has joined #ruby
<a|i> Hanmac: it's not for expensive calculates (only), I'm trying to use a 3rd party c++ lib in my gem.
crankycoder [crankycoder!~crankycod@out-on-220.wireless.telus.com] has joined #ruby
<Mon_Ouie> If you want to call a C++ lib from Ruby code, that's what wrapping it means
gheegh [gheegh!~wflanagan@pool-71-191-146-170.washdc.fios.verizon.net] has joined #ruby
DrShoggoth [DrShoggoth!~prakwtf@68-188-73-250.static.stls.mo.charter.com] has joined #ruby
<Hanmac> what is not a problem ... i use the CEGUI C++lib inside ruby ... and i plan an gem for Ogre3D so there is no problem
achiu [achiu!~Adium@216.174.109.254] has joined #ruby
emocakes [emocakes!~om@200-181-185-157.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
<a|i> good.
<gheegh> simple question. I've got an array of variable length.. i'm trying to keep from passing an array of greater than 20 items into it.. so i sliced it [].slice(20). But, if it's less than 20, it returns nil. How should I be doing this? It seems like doing a bunch of lookups of the size and stuff isn't the right way… thoughts?
<gheegh> in my statement.. it = another function that takes this array as an argument.
<Mon_Ouie> gheegh: Array#slice is most likely not what you want
<Mon_Ouie> Well, not slice(index) at least
<Mon_Ouie> Since it's just the same as []
s_dana [s_dana!~s_dana@50.124.144.88] has joined #ruby
<gheegh> Yep.. figured that out.. it gives me nil, which is clearly not suboptimal..
<gheegh> it seems like there should be a ruby function for this, but i'm not finding it
<Hanmac> gheegh: try array[0..19] ?
<Mon_Ouie> But what do you want? Getting the 20 first elements?
<Mon_Ouie> I'd rather do array[0, 20], to avoid off-by-one errors
<gheegh> i want to iterate over the array split into 20 element arrays
<Mon_Ouie> each_slice(20) do |sub_array| … end
<gheegh> so, if it's 35 items long, i'd want 2 arrays, 1 of 20 and 1 of 15
<gheegh> right.. each_slice(20) returns nil if the array is less than 20 items long
Seventoes [Seventoes!~Seventoes@2607:f7c0:1:df60:d056:fb00:0:34] has joined #ruby
<Mon_Ouie> No, it doesn't
<gheegh> so, nothing gets processed, and it errors because nil doesn't have enumerator
<gheegh> sorry.. "each_slice"
<gheegh> yes
<gheegh> that's what i was looking for.. I knew there was something.. Thanks Mon_Ouie
vmatiyko [vmatiyko!~vmatiyko@178.120.60.40] has joined #ruby
becom33 [becom33!~becom33@112.135.172.37] has joined #ruby
shadoi [shadoi!~Adium@2001:5a8:4:68e0:b06c:5cb8:9d02:9629] has joined #ruby
ChampS666 [ChampS666!~ChampS@p54B4A7B8.dip.t-dialin.net] has joined #ruby
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby
toy_battery [toy_battery!~choldbroo@c-67-164-29-115.hsd1.ca.comcast.net] has joined #ruby
nowthatsamatt [nowthatsamatt!~nowthatsa@adsl-98-85-32-162.mco.bellsouth.net] has joined #ruby
luxurymo_ [luxurymo_!~luxurymod@rrcs-184-75-21-21.nyc.biz.rr.com] has joined #ruby
jerikl [jerikl!~justin@64.134.151.3] has joined #ruby
twock [twock!~twock@rrcs-24-227-222-61.sw.biz.rr.com] has joined #ruby
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby
toy_battery [toy_battery!~choldbroo@c-67-164-29-115.hsd1.ca.comcast.net] has joined #ruby
tesmar [tesmar!~tesmar@adsl-070-154-097-089.sip.rmo.bellsouth.net] has joined #ruby
musee [musee!~musee@unaffiliated/musee] has joined #ruby
canton7 [canton7!~canton7@87-194-161-58.bethere.co.uk] has joined #ruby
desireco_ [desireco_!~textual@12.34.4.33] has joined #ruby
<becom33> http://pastebin.com/RUgD86re how can I get body text from this ?
RomD [RomD!~Roman@nrbg-4d077e0c.pool.mediaWays.net] has joined #ruby
bluOxigen [bluOxigen!~noreply@unaffiliated/bluOxigen] has joined #ruby
pietro [pietro!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
kakashi__ [kakashi__!~kakashi_@nltk/kakashi] has joined #ruby
<ElitestFX> pretty good beginning to a ruby implemented web spider
adac [adac!~adac@85-127-20-121.dynamic.xdsl-line.inode.at] has joined #ruby
ghanima [ghanima!~ghanima@alexander.nat.trb.com] has joined #ruby
tayy [tayy!~tayy@208.59.93.230] has joined #ruby
<gheegh> becom33: I'd recommend you use Typhoeus if you're planning on doing anything heavy..
shadoi1 [shadoi1!~Adium@2001:5a8:4:68e1:54a0:c671:9ce7:a98e] has joined #ruby
akhkharu [akhkharu!akhkharu@91.144.141.68] has joined #ruby
andrewhl [andrewhl!~andrew@CPE204e7f4a94cb-CM001cea3dec2e.cpe.net.cable.rogers.com] has joined #ruby
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby
<becom33> - ElitestFX its not a spider . just class name is spider
shadoi [shadoi!~Adium@2001:5a8:4:68e1:54a0:c671:9ce7:a98e] has joined #ruby
Seisatsu [Seisatsu!~seisatsu@adsl-99-35-225-92.dsl.pltn13.sbcglobal.net] has joined #ruby
flagg0204 [flagg0204!~ianderson@sea02-v600-nat.marchex.com] has joined #ruby
jbpros [jbpros!~jbpros@43-186-112-217.dyn.adsl.belcenter.be] has joined #ruby
dcarper1 [dcarper1!~Adium@50-73-187-102-pennsylvania.hfc.comcastbusiness.net] has joined #ruby
tuppy_ [tuppy_!~quassel@ip68-231-151-143.tc.ph.cox.net] has joined #ruby
rshackleford [rshackleford!~rshacklef@186.153.99.114] has joined #ruby
kirun [kirun!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
<ghanima> hey all quick question. I am new to ruby so please bare with me... Was wondering if someone could point me in the write direction to how to accomplish said tasks. I have a pseudo xml file where each entry is defined by Is there a gem that parses things like this if I define how the tags are defined
<centipedefarmer> ?
andrewhl [andrewhl!~andrew@CPE204e7f4a94cb-CM001cea3dec2e.cpe.net.cable.rogers.com] has joined #ruby
<centipedefarmer> defined by three spaces, got it.
<becom33> http://pastebin.com/7LgXzXJB I get code but not the body :(
<burgestrand> ghanima: xml => http://nokogiri.org/
nyuszika7h [nyuszika7h!nyuszika7h@unaffiliated/nyuszika7h] has joined #ruby
balgarath [balgarath!~quassel@208.86.215.38] has joined #ruby
<balgarath> just installed ruby from source on an ubuntu machine, but im getting a segfault when I run ruby -v ...any ideas how to troubleshoot
<balgarath> ?
libertyprime [libertyprime!~libertypr@182.236.125.102] has joined #ruby
<davidcelis> you made it from source?
<davidcelis> you probably are missing dependencies/libraries
Helius [Helius!~Adium@93-36-13-145.ip57.fastwebnet.it] has joined #ruby
Yu\2 [Yu\2!~Yu@2001:638:504:f1f6:213:77ff:feb6:afb0] has joined #ruby
<balgarath> k ill double check those
tayy [tayy!~tayy@208.59.93.230] has joined #ruby
tesmar [tesmar!~tesmar@adsl-74-242-255-11.rmo.bellsouth.net] has joined #ruby
stephans [stephans!~stephans@76-217-209-24.lightspeed.sntcca.sbcglobal.net] has joined #ruby
tonini [tonini!~zastav@78-8.61-188.cust.bluewin.ch] has joined #ruby
looopy [looopy!~looopy@pool-141-156-60-40.washdc.btas.verizon.net] has joined #ruby
Jay_Levitt [Jay_Levitt!~Jay_Levit@c-24-63-250-125.hsd1.ma.comcast.net] has joined #ruby
<Jay_Levitt> Anyone know how to install an older version of rubygems on a Mac *without* using rvm - i.e. installing it into /System/Library/Frameworks?
adman65 [adman65!~adman65@cs181188119.pp.htv.fi] has joined #ruby
shinobi [shinobi!~shinobi@63.225.155.77] has joined #ruby
TomJ [TomJ!~TomJ@unaffiliated/tomj] has joined #ruby
linoj_ [linoj_!~linoj@sn1-pat-1.m2s.com] has joined #ruby
Kireji [Kireji!~nospam@biocontact.org] has joined #ruby
<Kireji> how can I find out where my gems are being written to?
<Kireji> foudn it "gem environment"
azbarcea [azbarcea!~quassel@79.114.121.126] has joined #ruby
vmatiyko [vmatiyko!~vmatiyko@178.120.60.40] has quit [#ruby]
Kireji [Kireji!~nospam@biocontact.org] has quit [#ruby]
vraa_ [vraa_!~vraa@h180.73.29.71.dynamic.ip.windstream.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
hadees [hadees!~hadees@64.132.24.248] has joined #ruby
<balgarath> davidcelis: still no go - I have: zlib1g zlib1g-dev libreadline5 libreadline5-dev libssl-dev build-essential (ubuntu packages)
<davidcelis> balgarath: this is why tools like rbenv and rvm exist
patrick99e99 [patrick99e99!~patrick@pool-71-105-87-54.lsanca.dsl-w.verizon.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
<patrick99e99> hi everyone.. I am a little stuck on something-- what is the proper way to do this: http://pastie.org/3156250
toy_battery [toy_battery!~choldbroo@c-67-164-29-115.hsd1.ca.comcast.net] has joined #ruby
<burgestrand> patrick99e99: self.class.lol
manizzle [manizzle!~manizzle@pcp046660pcs.pcv.reshall.calpoly.edu] has joined #ruby
<burgestrand> patrick99e99: class is a keyword
<patrick99e99> hmm can't change the value of self it says
akem [akem!~akem@222.144.120.78.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
<burgestrand> patrick99e99: that’s because you can’t
<patrick99e99> aha
<patrick99e99> ok.. I can get around that.. thanks
<burgestrand> patrick99e99: the proper way is to either return a new instance, or modify the current instances’ state
<balgarath> sure, rvm would make it a lot easier. but im not giving up lol
<yxhuvud> Hmm. I wonder if it is possible to hack something like it in rbx.
<burgestrand> banister`sleep wrote a C extension gem to replace an object, I believe
<yxhuvud> yes evil.rb but that was many versions of ruby ago.
akem [akem!~akem@unaffiliated/akem] has joined #ruby
<yxhuvud> or maybe that was another that did something similar.
jerikl [jerikl!~justin@64.134.150.137] has joined #ruby
endzYme [endzYme!~nehuanca@wsip-174-79-168-221.ri.ri.cox.net] has joined #ruby
<banister`sleep> yxhuvud: evil.rb was more limited as you could only replace objects that had the same internal type
<yxhuvud> I see
<yxhuvud> and I seem to recall some limitations with arrays etc so you are probably correct :)
atmosx [atmosx!~atmosx@191.116.broadband5.iol.cz] has joined #ruby
looopy [looopy!~looopy@pool-141-156-60-40.washdc.btas.verizon.net] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
indeterminate [indeterminate!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby
nekid [nekid!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby
tommyvyo_ [tommyvyo_!~tommyvyo@38.123.129.115] has joined #ruby
Azure [Azure!~azt@unaffiliated/azure] has joined #ruby
jstew [jstew!~jason.m.s@173-162-44-162-michigan.hfc.comcastbusiness.net] has joined #ruby
ascarter [ascarter!~ascarter@74.211.208.178] has joined #ruby
<jstew> Greetings
<jstew> Anyone know of a decent link checker written in Ruby?
<regismesquita> jstew link checker?
<emocakes> jstew, a regex?
ianbrandt [ianbrandt!~ianbrandt@99-111-99-153.uvs.sndgca.sbcglobal.net] has joined #ruby
<Afal> jstew: what do you mean by "link checker"?
<burgestrand> something that crawls websites looking for broken links, I’d assume
<jstew> burgestrand: You win :)
<burgestrand> I know of none I’m afraid
<jstew> something like this: http://linkchecker.sourceforge.net/, but in Ruby.
<robyurkowski> i knew of a few, jstew
<robyurkowski> i wrote one myself
<robyurkowski> but it's shit
<robyurkowski> let me find one for you
<jstew> I like to use my favorite language when I can.
<robyurkowski> that latter one looks best
<jstew> Yeah, that looks simple and nice actually. Thanks.
<robyurkowski> np
geaif [geaif!~geaif@7-239.62-188.cust.bluewin.ch] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby
ksinkar [ksinkar!~ksinkar@115.241.157.130] has joined #ruby
juarlex_alt [juarlex_alt!~juarlex@189.249.64.139] has joined #ruby
GreaseMonkey [GreaseMonkey!~gm@unaffiliated/greasemonkey] has joined #ruby
Marco [Marco!~marco@Marco-2.Kiewit.dartmouth.edu] has joined #ruby
_obiJuan [_obiJuan!~ysiad1@24.39.125.227] has joined #ruby
gheegh [gheegh!~wflanagan@pool-71-191-146-170.washdc.fios.verizon.net] has quit [#ruby]
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
shadoi [shadoi!~Adium@gw.sfo.cloudscaling.com] has joined #ruby
Kovensky [Kovensky!kovensky@abraxo.bluebottle.net.au] has joined #ruby
MasterIdler [MasterIdler!~MasterIdl@static-66-225-153-161.ptr.terago.net] has joined #ruby
pietro [pietro!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
EricTheGreen [EricTheGreen!~EricTheGr@c-24-13-231-110.hsd1.il.comcast.net] has joined #ruby
tuppy [tuppy!~quassel@ip68-231-151-143.tc.ph.cox.net] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
EricTheGreen [EricTheGreen!~EricTheGr@c-24-13-231-110.hsd1.il.comcast.net] has quit [#ruby]
desireco_ [desireco_!~textual@12.34.4.33] has joined #ruby
cjlicata [cjlicata!~carlyle@70.43.205.70.nw.nuvox.net] has joined #ruby
pigdude [pigdude!~tallen@li61-243.members.linode.com] has joined #ruby
alex__c2022 [alex__c2022!~alex@207.239.64.154] has joined #ruby
<Keva161> is their a way in Ruby to print a single element from an array and it's position? So if the array was [1, 2, 3] it wold print out 1(0) 2(1) etc...?
rickmasta [rickmasta!~rickmasta@pool-71-183-247-164.nycmny.fios.verizon.net] has joined #ruby
ozzloy [ozzloy!~ozzloy@unaffiliated/ozzloy] has joined #ruby
<Hanmac> keva161: are you looking for each_with_index?
<Keva161> ah yes... that looks it will do great :)
<Keva161> thankyou!
<banister`sleep> robyurkowski: your website is a misspelling of 'deviate' ? :P
ciopte7_ [ciopte7_!~thomascio@cpe-071-071-034-129.triad.res.rr.com] has joined #ruby
<robyurkowski> banister`sleep: haha, no, that's not mine
<robyurkowski> that was just a link i tredged up off of google
<banister`sleep> H
<banister`sleep> ah
<robyurkowski> mine is closed source, sadly
<robyurkowski> proprietary software i worked on for someone :(
<robyurkowski> and my website is currently busted
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby
jtrudeau [jtrudeau!~jeff@12.206.220.2] has joined #ruby
mrsolo [mrsolo!~mrsolo@64.125.181.73] has joined #ruby
Helius [Helius!~Adium@109.112.65.165] has joined #ruby
tangledhelix [tangledhelix!~dan@99-59-107-84.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
zenergi_ [zenergi_!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
wallerdev [wallerdev!~wallerdev@c-68-43-58-191.hsd1.mi.comcast.net] has joined #ruby
ascarter_ [ascarter_!~ascarter@209.119.253.66] has joined #ruby
rippa [rippa!~rippa@109-161-122-46.pppoe.yaroslavl.ru] has joined #ruby
looopy [looopy!~looopy@pool-141-156-60-40.washdc.btas.verizon.net] has joined #ruby
n8ji [n8ji!~n8ji@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
beilabs [beilabs!~jonathan@ppp59-167-171-134.static.internode.on.net] has joined #ruby
eignerchris_ [eignerchris_!~eignerchr@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
kingfishr [kingfishr!~kingfishr@c-98-207-87-183.hsd1.ca.comcast.net] has joined #ruby
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
axl__ [axl__!~axl@75-149-152-225-Minnesota.hfc.comcastbusiness.net] has joined #ruby
quest88 [quest88!~quest88@12.181.53.123] has joined #ruby
cousine [cousine!~cousine@196.221.242.180] has joined #ruby
charlenopires [charlenopires!~quassel@186.194.13.186] has joined #ruby
Aristata [Aristata!~Adium@adsl-69-209-65-126.dsl.chcgil.sbcglobal.net] has joined #ruby
MC91 [MC91!~mitchell@unaffiliated/furryfishy] has joined #ruby
crankycoder [crankycoder!~crankycod@out-on-152.wireless.telus.com] has joined #ruby
emocakes [emocakes!~om@200-181-185-157.mganm703.dsl.brasiltelecom.net.br] has joined #ruby
<banister`sleep> burgestrand: finally figured how to write tests for the bitch https://github.com/banister/pry-stack_explorer/blob/master/test/test_commands.rb#L50-78
shadoi1 [shadoi1!~Adium@2001:5a8:4:68e0:2ca9:ce8e:1c7d:df5d] has joined #ruby
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
fayimora [fayimora!~fayimora@95.175.159.12] has joined #ruby
dasfugufish1 [dasfugufish1!~Adium@174-27-233-214.slkc.qwest.net] has joined #ruby
dasfugufish2 [dasfugufish2!~Adium@174-27-233-214.slkc.qwest.net] has joined #ruby
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby
nuba [nuba!~nuba@pauleira.com] has joined #ruby
badabim_ [badabim_!~badabim@17.245.89.218] has joined #ruby
kwatz [kwatz!~mu@trollbooth.com] has joined #ruby
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
Helius [Helius!~Adium@109.116.142.166] has joined #ruby
Carmivore [Carmivore!~carmivmor@ec2-67-202-0-205.compute-1.amazonaws.com] has joined #ruby
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby
SJrX [SJrX!~sjrx@agistri.cs.ubc.ca] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
<SJrX> I'm just working with some ruby code, having experience with PHP and Java primarily. In Java everything should be a nice class, well OO, etc.... In PHP I get blank stares when I make a collection of functions of similar purpose a class. If I'm doing something similar in Ruby, should I use a class?
<Aristata> Example of what you are doing?
<apeiros_> SJrX: classes are cheap, use them judiciously
<robert_> sup banister`sleep
xhubert [xhubert!~alex@213-21-78-58.customer.t3.se] has joined #ruby
<banister`sleep> robert_: not a lot why
<banister`sleep> about to go on a hike
<robert_> just wondering, lol.
<robert_> oh fun
kwoodson|2 [kwoodson|2!kvirc@nat/redhat/x-xcrsekpryswfjyvp] has joined #ruby
<robert_> I'm wondering how you embed a hex char inside a string
<robert_> lol
<SJrX> Like so three files in this code have the same tmp_dir() function. I'm going to refactor it into a new file, should I just create a tmp_dir function there, or should I make it a class, say config, with tmp_dir as a method
theRoUS [theRoUS!KenCoar@nat/redhat/x-tbylsbsivxwwkfsk] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
<banister`sleep> robert_: y did that require a 'lol'
<apeiros_> SJrX: tmp_dir sounds like something that ruby has already…
<SJrX> This tmp_dir is different, as it needs to point to a shared folder on a compute cluster
<robert_> beause I'm probably being stupid and overlooking something very simple
<apeiros_> it sounds like a utility function, stuff like that goes usually into a module. take a look at Module#module_function
<robert_> and besides, it's a conversational "lol"
destructure [destructure!~mu@couchdb/user/destructure] has joined #ruby
<apeiros_> it allows you to define a method `bar` in module Foo and use it in both ways: `Foo.bar` or `include Foo; bar`
<banister`sleep> robert_: pls stop the 'lol' :) (it sounds retarded IMO)
carlyle_ [carlyle_!~carlyle@rrcs-96-10-255-203.midsouth.biz.rr.com] has joined #ruby
<SJrX> Where on the documentation would Module#module_function make sense? Like there is a lot of stuff on the documentation page
zenergi_ [zenergi_!~zenergi@pdpc/supporter/student/zenergi] has joined #ruby
<SJrX> Core?
<robert_> oh, so I just "\0xNNNNblah"?
<robert_> and it auto converts it to the correct notation?
<burgestrand> banister`sleep: awesome :)
<apeiros_> SJrX: in your shell, type `ri Module#module_function`
<apeiros_> the notation is to be read as: instance method 'module_function' in class 'Module'
<apeiros_> the # denotes an instance method. a :: would denote a class method.
<apeiros_> (only in documentation, in code, you invoke methods always by . )
pietro [pietro!~pietro@2-227-162-47.ip187.fastwebnet.it] has joined #ruby
<SJrX> ri Module#module_function:
<SJrX> Nothing known about Module
<SJrX> Hmmmm what is the difference between a Module and a class?
<deryl> a Module you can not instantiate. A class you can. Modules usually get incorporated into classes
<workmad3> SJrX: also, you can extend or include a module into a class
<SJrX> Hmmmmm is there a reason why I couldn't turn a module into a class later?
blanciq [blanciq!blanciq@bshellz.pl] has joined #ruby
<workmad3> SJrX: you'd probably need to change how you were using it quite drastically
<deryl> you remove the Module portion and exchange it for class MyClass
<deryl> and you woud need to remove references to it as a module form any classes that contain the Module
<deryl> call
<blanciq> Hello, i've gotta problem with qt bindings. I kinda new in ruby. I need to use QPixmap class from Qt, there is Pixmap class but it seems empty. What does it mean ?
<deryl> as workmad3, your usage would change drastically. Think of Modules as bags of functions/functionality you want your classes to ahve.
<SJrX> Okay let me take a step back, in Java we have java properties files which we can point to and read, does Ruby have a similiar thing?
<deryl> well he ones you include the module in at least
<ghanima> hey all quick question. I am new to ruby so please bare with me... Was wondering if someone could point me in the write direction to how to accomplish said tasks. I have a pseudo xml file where each entry is defined by Is there a gem that parses things like this if I define how the tags are defined
beilabs [beilabs!~jonathan@ppp59-167-171-134.static.internode.on.net] has joined #ruby
<deryl> no clue i don't knw crap about java. tried learning it, hate it, dont remember crap about it
<workmad3> SJrX: you can read in properties from files, yes
<SJrX> like what's the best way to do configuration files in Ruby, without reinventing the wheel
<workmad3> SJrX: that's hardly difficult ;) (in ruby, the tendency is to use yaml)
<deryl> ahh. usually something like yaml files
<SJrX> interesting
<deryl> hjehe workmad3 faster than i am
jaemin-kr [jaemin-kr!~jaemin-kr@155-99-212-242.uconnect.utah.edu] has joined #ruby
<SJrX> So If I make the stuff I need a module, I can later user YAML to make it read from a config file?
<workmad3> SJrX: if you want to relate to java, think of modules as interfaces, but you can inherit implementation along with the interface
<workmad3> SJrX: there's more to it than that, but that's frequently a good starting point when coming from java ;)
<SJrX> okay
<SJrX> thank you
<workmad3> SJrX: modules are also dual-purposed as namespaces in ruby too
saberman_2 [saberman_2!~nodebot@159.182.1.4] has joined #ruby
rtyler [rtyler!~tyler@63-246-20-94.contegix.com] has joined #ruby
Keva161 [Keva161!~Keva161@78.32.156.143] has joined #ruby
<SJrX> okay one more question (I'm in the middle of cleaning up code), in PHP I Can trigger errors at various reporting levels, in Java I can mark methods Deprecated. If I want to 'flag' something as to fix later, but fine in runtime, what's the best mechanism in Ruby?
<workmad3> SJrX: hopefully that makes it clearer as to the difficulty with changing a module to a class... it would be like changing an interface to a class in java (possible, but a lot of work, and would require major rethinking about how you're using stuff)
<rtyler> howdy folks, I'm using the i18n gem (ruby-i18n.org) with an existing rails project, I'm having a bit of trouble finding a good how-to do internationalization in a gem to be distributed
<workmad3> SJrX: honestly? I'd just give it a #TODO comment
<SJrX> Well changing an interface to a class, in Java would be simply with the exception that you couldn't inherient multiple classes, is that what you mean workmad3?
<apeiros_> SJrX: re "Nothing known about Module" - it means your docs are not installed
<SJrX> ah
<apeiros_> SJrX: if you installed ruby using rvm, you can install the docs by: rvm docs generate
<SJrX> thanks
<blanciq> Somebody use Qt in Ruby and can help ?
<SJrX> Conventions for file names?
<apeiros_> SJrX: Foo::BarBaz should be in foo/barbaz.rb
<workmad3> SJrX: I'd posit that you don't normally change an interface to a class, because they have very different usages ;)
<apeiros_> except if you're in a rails-app, there it should be foo/bar_baz.rb
<SJrX> Wait? Isn't Foo the module, and BarBaz the method?
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
<apeiros_> no
<apeiros_> Foo can be either a class or a module (classes are modules and thus can serve the same namespacing purposes)
<apeiros_> and BarBaz can be about anything
<Hanmac> Module is a Class, and Class is a Module :P
<apeiros_> technically, Foo is just a constant (which usually "happens" to reference a class or a module)
<apeiros_> Hanmac: also class subclasses Module
<apeiros_> wanna throw Object and Kernel into the mix and confuse him completely? :)
<SJrX> Okay if I'm naming my Module Config, and have a method tmpdir(), I was going to put it in the system/config.rb
<apeiros_> ew
<apeiros_> don't make files for individual methods
<apeiros_> one file per module/class
<SJrX> no there will be more stuff later
<apeiros_> doesn't matter
<SJrX> ?
shadoi [shadoi!~Adium@2001:5a8:4:68e0:183f:c5fc:c2bf:bfc2] has joined #ruby
<SJrX> I don't understand your comment
<apeiros_> if your method is in Config, then it should be in config.rb
sbanwart [sbanwart!~sbanwart@72.240.63.122] has joined #ruby
<SJrX> yeah?
<apeiros_> yes
<apeiros_> system/config.rb implies System::Config
<SJrX> You can split module/class definitions accross files in ruby?
<apeiros_> yes
<SJrX> oh, that seems icky
<apeiros_> classes are open. you can add stuff whenever you want.
<SJrX> no system/config.rb was just meant to seperate the configuration out from other things
<apeiros_> I'd say java's inability to do so seems icky.
<SJrX> like system would contain system related methods
<Hanmac> and you also can remove suff but this is black magic
<apeiros_> SJrX: yes, I understood. don't do that.
<SJrX> that's true, that wasn't meant to be a slight against ruby
<apeiros_> SJrX: I'm telling you how naming conventions are in ruby. I strongly suggest you follow them.
<SJrX> Yeah I'm still not sure I understand
yekta [yekta!~yekta@c-24-1-182-219.hsd1.il.comcast.net] has quit [#ruby]
<SJrX> Basically this hole project I'm looking at is a collection of ruby scripts, all in one directory, with only functions, it looks like
<SJrX> I was hoping to add more logical structure both to the code, and to the file system
marcellu1 [marcellu1!~marcellus@denver.dinauz.org] has joined #ruby
LiquidInsect [LiquidInsect!~billabney@173-228-63-32.dsl.static.sonic.net] has joined #ruby
phusnikn [phusnikn!~fabbi@user-0cceru1.cable.mindspring.com] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
abstrakt [abstrakt!~abstrakt@gateway/tor-sasl/abstrak1] has joined #ruby
<SJrX> apeiros_, I don't think I understand since it seems like I would never split my program over multiple directories?
<apeiros_> SJrX: time to learn new things then.
<SJrX> So that is correct, apeiros_?
<apeiros_> if your program is reasonably complex, you should, and if you code by convention, you eventually will.
<apeiros_> in ruby at least.
<abstrakt> does anyone have experience with pik? the docs are a bit thin - I'm wondering if pik requires ruby 1.8, for example
<abstrakt> because the pik docs don't mention ruby 1.9 at all
<abstrakt> mainly I'm wondering about this in regards to RubyInstaller, because last I checked, ruby installer is going to ask me if I want to add ruby to my %PATH% environment var
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby
<abstrakt> and it wouldn't make sense really to have two rubies add themselves to %PATH% because that seems to be the purpose of pik
<abstrakt> so what I want to know is: am I required to install ruby 1.8 prior to installing ruby 1.9? does it matter? i.e. if I install ruby 1.9 and have that be the canonical ruby on my system, is that gonna make a difference with anything?
jankly [jankly!~jankly@c-71-57-99-219.hsd1.in.comcast.net] has joined #ruby
eignerchris [eignerchris!~eignerchr@c-24-20-239-11.hsd1.or.comcast.net] has joined #ruby
jbhewitt [jbhewitt!~jbhewitt@eth3258.qld.adsl.internode.on.net] has joined #ruby
toy_battery [toy_battery!~choldbroo@c-67-164-29-115.hsd1.ca.comcast.net] has joined #ruby
looopy [looopy!~looopy@pool-141-156-60-40.washdc.btas.verizon.net] has joined #ruby
<SJrX> Why doesn't the following work: http://pastebin.com/FVcUQWL0
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
cbuxton [cbuxton!~Adium@nat/partnerpedia/x-kedvknbkwxbkljqp] has joined #ruby
<apeiros_> SJrX: because you defined it as an instance method and called it as a class method
<apeiros_> use either module_function :shared_tmpdir or define it as def self.shared_tmpdir
<apeiros_> IMO former is to preferred for utility functions
<SJrX> So change line 14 to ALConfig :shared_tmpdir ?
toy_battery [toy_battery!~choldbroo@c-67-164-29-115.hsd1.ca.comcast.net] has joined #ruby
dcarper [dcarper!~Adium@c-76-125-233-64.hsd1.pa.comcast.net] has joined #ruby
theRoUS [theRoUS!KenCoar@nat/redhat/x-qbacpckckjmkwrvk] has joined #ruby
theRoUS [theRoUS!KenCoar@apache/committer/coar] has joined #ruby
kwoodson|2 [kwoodson|2!kvirc@nat/redhat/x-hrcfrnehiuwsmkpf] has joined #ruby
<SJrX> Ah got it
snearch [snearch!~snearch@e178188166.adsl.alicedsl.de] has joined #ruby
rpowell [rpowell!~rpowell@CPE-121-216-202-43.lnse3.ken.bigpond.net.au] has joined #ruby
pootpoot [pootpoot!~pootpoot@38.108.250.130] has quit [#ruby]
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby
MC91 [MC91!~mitchell@unaffiliated/furryfishy] has quit ["leaving"]
<SJrX> robbyoconnor, long time no see
<SJrX> Hmmmm, will ruby not parse something like ~/foo as current users home directory / foo (if running on a unix enviroment).
rtyler [rtyler!~tyler@63-246-20-94.contegix.com] has quit [#ruby]
vraa [vraa!~vraa@99-20-202-44.lightspeed.hstntx.sbcglobal.net] has joined #ruby
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby
mark_azevedo [mark_azevedo!~mark_azev@12.249.184.226] has joined #ruby
looopy [looopy!~looopy@pool-141-156-60-40.washdc.btas.verizon.net] has joined #ruby
user__ [user__!~akem@222.144.120.78.rev.sfr.net] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
<Hanmac> SjrX not direct ... because its a shell feature ... but you can use File.expandPath
jbpros [jbpros!~jbpros@43-186-112-217.dyn.adsl.belcenter.be] has joined #ruby
<SJrX> thanks
cooper [cooper!~mitchell@unaffiliated/furryfishy] has joined #ruby
phusnikn [phusnikn!~fabbi@user-0cceru1.cable.mindspring.com] has joined #ruby
asobrasil [asobrasil!~asantioli@palpatine.privatedns.com] has quit [#ruby]
pantsman [pantsman!~pantsman@pdpc/supporter/active/pantsman] has joined #ruby
p1d [p1d!~p1d@dslb-088-064-132-143.pools.arcor-ip.net] has joined #ruby
headius [headius!~headius@173-165-226-141-minnesota.hfc.comcastbusiness.net] has joined #ruby
hadees [hadees!~hadees@64.132.24.248] has joined #ruby
luckman212 [luckman212!~irc@pool-108-41-8-176.nycmny.fios.verizon.net] has joined #ruby
tomzx [tomzx!~tomzx@dsl-143-5.aei.ca] has joined #ruby
nari_ [nari_!~nari@p86be1c.totrnt01.ap.so-net.ne.jp] has joined #ruby
Behi [Behi!~Behi@203-206-227-95.perm.iinet.net.au] has joined #ruby
tomzx [tomzx!~tomzx@dsl-143-5.aei.ca] has joined #ruby
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has joined #ruby
cconstantine [cconstantine!~Adium@173.247.200.5] has joined #ruby
Aristata [Aristata!~Adium@c-67-167-205-42.hsd1.il.comcast.net] has joined #ruby
charlenopires_ [charlenopires_!~quassel@186.194.13.186] has joined #ruby
<cconstantine> Hey all, I have a class that I want to return the same instance when the constructor is called with the same (single) parameter. Is there an easy way to memoize that?
toy_battery [toy_battery!~choldbroo@c-67-164-29-115.hsd1.ca.comcast.net] has joined #ruby
<cconstantine> it's not really a singleton
<cconstantine> Klass.new("a") != Klass.new("b")
<cconstantine> Klass.new("a") == Klass.new("a") # identity equal
mxweas [mxweas!~max@209.117.47.52] has joined #ruby
robyurkowski [robyurkowski!~robyurkow@184.151.127.185] has joined #ruby
hadees [hadees!~hadees@72-48-91-73.dyn.grandenetworks.net] has joined #ruby
toy_battery [toy_battery!~choldbroo@c-67-164-29-115.hsd1.ca.comcast.net] has joined #ruby
rb2k [rb2k!~rb2k@HSI-KBW-078-042-219-156.hsi3.kabel-badenwuerttemberg.de] has joined #ruby
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
<nobitanobi> gnight !
jerikl [jerikl!~justin@rrcs-64-183-231-122.sw.biz.rr.com] has joined #ruby
endel [endel!~endel@189.114.158.44] has joined #ruby
dyer [dyer!~dyer@108-193-172-174.lightspeed.tukrga.sbcglobal.net] has joined #ruby
dyer [dyer!~dyer@unaffiliated/dyer] has joined #ruby
jsaak [jsaak!~jsaak@catv-89-134-200-70.catv.broadband.hu] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
jerikl [jerikl!~justin@rrcs-64-183-231-122.sw.biz.rr.com] has joined #ruby
ciopte7 [ciopte7!~thomascio@66.129.76.132] has joined #ruby