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/
r0bby [r0bby!~wakawaka@guifications/user/r0bby] has joined #ruby
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.42] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
akem [akem!~akem@164.15.85.79.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
malkomalko [malkomalko!~malkomalk@adsl-074-232-128-034.sip.asm.bellsouth.net] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
rothsa [rothsa!~rothsa@c-67-189-97-22.hsd1.wa.comcast.net] has joined #ruby
zi [zi!sie@unaffiliated/sie] has quit ["WeeChat 0.3.6-dev"]
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
techsilo [techsilo!techsilo@cpe-67-248-142-146.nycap.res.rr.com] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
<Gekz> guise
<Gekz> net::http
<Gekz> I am wondering how to open a socket and keep it open so i can just hammer it with requests
<Gekz> so I don't hammer the server with connects
<samuelkadolph> net/http supports http/1.1 keep alive, just use Net::HTTP#start with a block
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
sdwrage [sdwrage!~sdwrage@cpe-184-57-123-50.columbus.res.rr.com] has joined #ruby
Aliv3 [Aliv3!45979f55@gateway/web/freenode/ip.69.151.159.85] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
markschaake [markschaake!~markschaa@68-185-53-210.static.knwc.wa.charter.com] has joined #ruby
markschaake [markschaake!~markschaa@68-185-53-210.static.knwc.wa.charter.com] has quit ["Leaving..."]
zi [zi!sie@unaffiliated/sie] has joined #ruby
<zi> Where could I learn about rakefiles and structure of a gme and all?
<zi> gem*
<apeiros> in their docs and on their websites
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
Rod_ [Rod_!~Rod@71.74.190.108] has joined #ruby
bluOxigen [bluOxigen!~noreply@115.167.111.169] has joined #ruby
bluOxigen [bluOxigen!~noreply@unaffiliated/bluOxigen] has joined #ruby
DFectuoso [DFectuoso!~DFectuoso@fixed-203-141-49.iusacell.net] has joined #ruby
<Gekz> samuelkadolph: that would be a lot of logic in one function
<Gekz> because the intent is to pull a page, parse it, then grab a bunch of pages from that page
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
<Gekz> essentially a crawler/scraper.
<apeiros> Gekz: I don't think samuelkadolph said you have to keep all in one method.
<Gekz> "just use Net::HTTP#start with a block"
<apeiros> yes, that's != write all in a single method
<samuelkadolph> TIL that Net::HTTP.start("google.com") { |http| } is a lot of logic
<apeiros> also, there's a couple of crawler/spider libraries around already for ruby, so unless you really want to reinvent the wheel, I'd suggest you use any of those.
<Gekz> samuelkadolph: so that will keep the session alive after the block finishes?
<shevy> BOOBS WILL
<apeiros> shevy: he talks about the session, not his willy
<samuelkadolph> Hmmmm, boobs
<shevy> oh man
jarjar_prime [jarjar_prime!~mjarjoura@50-76-61-133-ip-static.hfc.comcastbusiness.net] has joined #ruby
tippenein [tippenein!~chatzilla@70.40.41.62] has joined #ruby
rothsa_ [rothsa_!~rothsa@c-67-189-97-22.hsd1.wa.comcast.net] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
<zi> Is it painful to hassle with AR's `rake db:create_migration` after working a bit with rails' generate model/migration?
<apeiros> zi: hu? I didn't even know there's a rake task for that. I always use `rails g migration`
<apeiros> and no, it's not a big hassle IMO.
<zi> There is, I'm just not using rails now.
<zi> Is it the same thing?
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
<apeiros> zi: I'd guess rails g migration is more capable, given that it can take argv arguments
dbgster [dbgster!~dbgster@CPE0013f7b7170c-CM0013f7b71708.cpe.net.cable.rogers.com] has joined #ruby
jarin [jarin!~textual@ip68-8-14-186.sd.sd.cox.net] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
sbanwart [sbanwart!~sbanwart@adsl-99-164-122-164.dsl.akrnoh.sbcglobal.net] has joined #ruby
andrewhl [andrewhl!~andrew@CPE687f7402a2d8-CM00195ed25a2a.cpe.net.cable.rogers.com] has joined #ruby
redruby [redruby!~Adium@122-59-253-167.jetstream.xtra.co.nz] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
kervin [kervin!~kevin@62-249-16-190.fibertel.com.ar] has quit [#ruby]
<zi> Is Gemfile a rails invention?
jbw [jbw!~jbw@dsl-044-084.cust.imagine.ie] has joined #ruby
<waxjar> it belongs to Bundler
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
puru7 [puru7!~Purusho@ppp-71-139-2-165.dsl.snfc21.pacbell.net] has joined #ruby
<samuelkadolph> But yes, it was written for rails to make application dependencies easy
redruby [redruby!~Adium@122-59-253-167.jetstream.xtra.co.nz] has quit [#ruby]
puru7 [puru7!~Purusho@ppp-71-139-2-165.dsl.snfc21.pacbell.net] has quit [#ruby]
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
<zi> Where should I put some premade template files/scripts in a gem?
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
stringoO [stringoO!~JLstring@CPE001346cbe31b-CM00111ae502a8.cpe.net.cable.rogers.com] has joined #ruby
QaDeS_ [QaDeS_!~mklaus@frbg-5f731bd8.pool.mediaWays.net] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.43] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
nokada [nokada!~nokada@202-127-187-186.users.bc9.ne.jp] has joined #ruby
n0kada [n0kada!~nadokates@202-127-187-186.users.bc9.ne.jp] has joined #ruby
bbrandon [bbrandon!~brandon@cpe-174-097-242-015.nc.res.rr.com] has joined #ruby
burgestrand [burgestrand!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
trend [trend!~craigslis@97-81-69-219.dhcp.athn.ga.charter.com] has quit [#ruby]
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
nokada [nokada!~nokada@202-127-187-186.users.bc9.ne.jp] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
davidcelis [davidcelis!~david@108-64-212-213.lightspeed.sndgca.sbcglobal.net] has joined #ruby
zykes- [zykes-!zykes@2001:470:28:3bc:beaf:da7e:1eaf:5af3] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
tectonic [tectonic!~tectonic@pool-108-16-253-181.phlapa.fios.verizon.net] has joined #ruby
<tectonic> Annoying recursion question. Given an array like ["Hello", ["there", "world"], "how's", "it", [["going", ["for you", "right now"]], "hanging"], "?"], with arrays representing choices, what's the best way to output all the possible choices? For example, "Hello there, how's it hanging?", "Hello world, how's it going right now?", or "Hello world, how's it going for you?".
apeiros_ [apeiros_!~apeiros@77-58-115-24.dclient.hispeed.ch] has joined #ruby
byronb [byronb!~byron@c-24-18-227-118.hsd1.wa.comcast.net] has joined #ruby
smswz [smswz!~smswz@c-75-71-36-223.hsd1.co.comcast.net] has joined #ruby
friskd [friskd!~friskd@cpe-76-172-2-7.socal.res.rr.com] has joined #ruby
smswz [smswz!~smswz@c-75-71-36-223.hsd1.co.comcast.net] has quit [#ruby]
moondiamond_ [moondiamond_!~moondiamo@110.140.253.128] has joined #ruby
tomasantonj [tomasantonj!~Adium@c213-89-112-209.bredband.comhem.se] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has quit ["Textual IRC Client: http://www.textualapp.com/"]
smswz [smswz!~smswz@c-75-71-36-223.hsd1.co.comcast.net] has joined #ruby
smswz [smswz!~smswz@c-75-71-36-223.hsd1.co.comcast.net] has quit [#ruby]
Hanmac1 [Hanmac1!~hanmac@p50844839.dip0.t-ipconnect.de] has joined #ruby
otakutomo [otakutomo!~otakutomo@KD027083117212.ppp-bb.dion.ne.jp] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
unda7V7erse [unda7V7erse!~unda7V7er@sto95-5-78-237-254-52.fbx.proxad.net] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
MUILTR [MUILTR!~MLINTH@adsl-98-80-199-172.mcn.bellsouth.net] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
macabre [macabre!~macabre@cpe-66-69-218-227.austin.res.rr.com] has joined #ruby
samnang [samnang!~samnang@36.37.238.101] has joined #ruby
finbarrt [finbarrt!~finbarr@c-98-207-205-194.hsd1.ca.comcast.net] has joined #ruby
bbrandon [bbrandon!~brandon@cpe-174-097-242-015.nc.res.rr.com] has joined #ruby
ephemerian [ephemerian!~ian@82-71-51-229.dsl.in-addr.zen.co.uk] has quit [#ruby]
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
jergason [jergason!~jergason@dsl-67-55-8-160.acanac.net] has joined #ruby
conor_ireland [conor_ireland!~conor_ire@89.100.121.49] has joined #ruby
Rod_ [Rod_!~Rod@71.74.190.108] has joined #ruby
<any-key> tectonic: reminds me of a tree traversal
samertm [samertm!~samer@pool-74-96-148-16.washdc.fios.verizon.net] has joined #ruby
<tectonic> any-key: yea, it is. i'm getting it
<any-key> so you've got it figured out
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
axl_ [axl_!~axl@97-127-66-239.mpls.qwest.net] has joined #ruby
arthurlockhart [arthurlockhart!~cinch@60-242-128-8.static.tpgi.com.au] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
acts_as_david [acts_as_david!~acts_as_d@99-116-125-86.lightspeed.gnvlsc.sbcglobal.net] has joined #ruby
jergason [jergason!~jergason@dsl-67-55-8-160.acanac.net] has joined #ruby
Mahoek [Mahoek!~Mahoek@ip51ceb6d4.adsl-surfen.hetnet.nl] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
Rod_ [Rod_!~Rod@71.74.190.108] has joined #ruby
danheberden [danheberden!~danheberd@li225-35.members.linode.com] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-108-21-213-102.nycmny.fios.verizon.net] has joined #ruby
jhulten [jhulten!~jhulten@li219-193.members.linode.com] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
Rod_ [Rod_!~Rod@71.74.190.108] has joined #ruby
stringoO [stringoO!~JLstring@CPE001346cbe31b-CM00111ae502a8.cpe.net.cable.rogers.com] has joined #ruby
<tectonic> any-key: well, not quite
<tectonic> I've got it compiling into something like this: [{:choices=>["Hello", "Hi"]}, " ", {:choices=>["worl", {:choices=>["d", ""]}, "there"]}, ", says ", "your ", {:choices=>["friend", "amigo"]}]
<tectonic> but recursing on that to get the list of possible results, for example, "Hello there, how's it hanging?", "Hello world, how's it going right now?", or "Hello world, how's it going for you?", is driving me crazy
<tectonic> anyone know how to write this recursive function?
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
colint [colint!~ColinT@69-11-97-130.regn.static.sasknet.sk.ca] has joined #ruby
shevy [shevy!~shevy@178-190-66-47.adsl.highway.telekom.at] has quit ["I'll be back ... maybe"]
bbrandon [bbrandon!~brandon@cpe-174-097-242-015.nc.res.rr.com] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
<nlew> tectonic: I think product should do what you want?
x0F_ [x0F_!~x0F@unaffiliated/x0f] has joined #ruby
<tectonic> product?
igotnolegs [igotnolegs!~igotnoleg@75-162-83-166.slkc.qwest.net] has joined #ruby
mengu_ [mengu_!~mengu@95.13.68.170] has joined #ruby
mengu_ [mengu_!~mengu@unaffiliated/mengu] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
yfeldblum [yfeldblum!~Jay@pool-173-68-228-166.nycmny.east.verizon.net] has joined #ruby
radic [radic!~radic@dslb-178-007-131-254.pools.arcor-ip.net] has joined #ruby
<nlew> each element of the array is an array of choices for that "position"
<nlew> this has the drawback that it basically is a level traversal, rather than depth-first, which means you have to compute a lot more just to get a single sentence
<any-key> writing your own DFS wouldn't be hard, DFS is the easiest to write imho
rothsa [rothsa!~rothsa@c-67-189-97-22.hsd1.wa.comcast.net] has joined #ruby
tdmackey [tdmackey!~tdmackey@booleanhaiku.com] has joined #ruby
D4T-Away [D4T-Away!~d4t@94.228.41.108] has joined #ruby
benwoody [benwoody!~ben@ln.benwoodall.com] has joined #ruby
vinculum [vinculum!~vinculum@h50.25.19.98.dynamic.ip.windstream.net] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-108-21-213-102.nycmny.fios.verizon.net] has joined #ruby
dql [dql!~anonymous@58.38.92.224] has joined #ruby
asteros [asteros!~asteros@c-68-38-211-11.hsd1.nj.comcast.net] has joined #ruby
patjoh [patjoh!~patjoh@94-247-168-163-static.serverhotell.net] has joined #ruby
banisterfiend [banisterfiend!~baniseter@193.137.227.49.dyn.cust.vf.net.nz] has joined #ruby
flip_digits [flip_digits!~textual@c-71-199-243-97.hsd1.fl.comcast.net] has joined #ruby
misc-- [misc--!~misc@202.171.160.4] has joined #ruby
wmoxam [wmoxam!~wmoxam@69-196-160-102.dsl.teksavvy.com] has joined #ruby
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby
<yfeldblum> DFS sample implementation is here: http://en.wikipedia.org/wiki/Depth-first_search#Pseudocode
bier [bier!~bier@p54A5BCD5.dip.t-dialin.net] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-108-21-213-102.nycmny.fios.verizon.net] has joined #ruby
EYES_ [EYES_!~EYES@ool-182f640f.dyn.optonline.net] has joined #ruby
Rod_ [Rod_!~Rod@71.74.190.108] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
EYES_ [EYES_!~EYES@ool-182f640f.dyn.optonline.net] has quit [#ruby]
vmatiyko [vmatiyko!~vmatiyko@178.121.177.46] has joined #ruby
vmatiyko [vmatiyko!~vmatiyko@178.121.177.46] has quit [#ruby]
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
zykes- [zykes-!zykes@2001:470:28:3bc:beaf:da7e:1eaf:5af3] has joined #ruby
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
MekkisFreenode [MekkisFreenode!~MekkisFre@2a00:dd0:0:6:80a6:4fff:fec7:d456] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
banisterfiend [banisterfiend!~baniseter@115.189.232.193] has joined #ruby
banister_ [banister_!~baniseter@115.189.232.193] has joined #ruby
crodas [crodas!~crodas@git.crodas.org] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
luckyruby [luckyruby!~luckyruby@125-187.96-97.tampabay.res.rr.com] has joined #ruby
rramsden [rramsden!~rramsden@207.216.52.184] has joined #ruby
v0n [v0n!~v4n@bas1-montreal19-1177820429.dsl.bell.ca] has joined #ruby
vandemar [vandemar!contango@2001:470:1f10:56b::4] has joined #ruby
rpowell [rpowell!~rpowell@CPE-121-216-24-167.lnse1.ken.bigpond.net.au] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
looopy [looopy!~looopy@pool-151-200-235-184.washdc.btas.verizon.net] has joined #ruby
tayy [tayy!~tayy@208.59.93.230] has joined #ruby
_debo_ [_debo_!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
andrewhl [andrewhl!~andrew@CPE687f7402a2d8-CM00195ed25a2a.cpe.net.cable.rogers.com] has joined #ruby
p0y [p0y!~p0y@121.97.55.99] has joined #ruby
tobym [tobym!~tobym@pool-96-244-84-13.bltmmd.fios.verizon.net] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
vjacob [vjacob!~vjacob@87.61.170.233] has joined #ruby
dql [dql!~anonymous@58.38.92.224] has joined #ruby
djacobs [djacobs!~acts_as_d@99-116-125-86.lightspeed.gnvlsc.sbcglobal.net] has joined #ruby
edwardsharpe [edwardsharpe!~edwardsha@pppoe-dsl-115-254.accessatc.net] has joined #ruby
dql [dql!~anonymous@58.38.92.224] has joined #ruby
kinofcain [kinofcain!~KinOfCain@cpe-98-150-155-144.hawaii.res.rr.com] has joined #ruby
banisterfiend [banisterfiend!~baniseter@115.189.232.193] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@EM1-113-53-255.pool.e-mobile.ne.jp] has joined #ruby
dql_ [dql_!~textual@58.38.92.224] has joined #ruby
skinnymuch [skinnymuch!~skinnymuc@c-68-38-89-137.hsd1.nj.comcast.net] has joined #ruby
janissary [janissary!~user@adsl-98-70-95-30.mco.bellsouth.net] has quit ["ERC Version 5.3 (IRC client for Emacs)"]
djacobs [djacobs!~acts_as_d@99-116-125-86.lightspeed.gnvlsc.sbcglobal.net] has joined #ruby
skinnymuch [skinnymuch!~skinnymuc@c-68-38-89-137.hsd1.nj.comcast.net] has joined #ruby
skinnymuch_ [skinnymuch_!~skinnymuc@pool-98-110-54-144.cmdnnj.fios.verizon.net] has joined #ruby
akiress [akiress!~akiress@ip70-180-38-30.br.br.cox.net] has joined #ruby
alex__c2022 [alex__c2022!~alex@207.239.64.154] has joined #ruby
me [me!43b687ea@gateway/web/freenode/ip.67.182.135.234] has joined #ruby
<Guest86595> Merry Christmas!
avitzurel [avitzurel!~avitzurel@212.179.244.22] has joined #ruby
bier|tp [bier|tp!~bier@p54A5BCD5.dip.t-dialin.net] has joined #ruby
<zodiak> Guest26322, it's not xmas here yet, you insensitive clod :P
<Guest86595> zodiak, nor here. It's a common phrase used on or around the 25th of December
<zodiak> bah humbug
<zodiak> (and I am guessing you missed my smiley and or implied humour motif ;)
bluOxigen [bluOxigen!~noreply@unaffiliated/bluOxigen] has joined #ruby
PaciFisT [PaciFisT!~PeaCE@bas2-kingston08-1167932842.dsl.bell.ca] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
brent32 [brent32!62e4cb60@gateway/web/freenode/ip.98.228.203.96] has joined #ruby
vandemar [vandemar!bella@2001:470:1f10:56b::4] has joined #ruby
tatsuya_o [tatsuya_o!~tatsuya_o@EM1-113-53-255.pool.e-mobile.ne.jp] has joined #ruby
ghosTM55 [ghosTM55!~user@li279-245.members.linode.com] has joined #ruby
raincole [raincole!~raincole@220-134-147-126.HINET-IP.hinet.net] has joined #ruby
BrianE [BrianE!~brian@87.115.115.247] has joined #ruby
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
banisterfiend [banisterfiend!~baniseter@122.63.247.94] has joined #ruby
davidcelis [davidcelis!~david@108-64-212-213.lightspeed.sndgca.sbcglobal.net] has joined #ruby
io_syl [io_syl!~io_syl@unaffiliated/steph021] has joined #ruby
ryanf [ryanf!~revfitz@76.197.6.24] has joined #ruby
banisterfiend [banisterfiend!~baniseter@115.189.205.90] has joined #ruby
wedtm [wedtm!~wedtm@173-12-163-78-oregon.hfc.comcastbusiness.net] has joined #ruby
p0y [p0y!~p0y@121.97.55.99] has joined #ruby
Pip [Pip!~Pip@host-190-146-66-217.spbmts.ru] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
wedtm [wedtm!~wedtm@173-12-163-78-oregon.hfc.comcastbusiness.net] has joined #ruby
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby
skinnymuch [skinnymuch!~skinnymuc@c-68-36-123-133.hsd1.nj.comcast.net] has joined #ruby
p0y_ [p0y_!~p0y@112.210.77.202] has joined #ruby
eldariof [eldariof!~CLD@81.200.24.171] has joined #ruby
p0y [p0y!~p0y@112.210.96.113] has joined #ruby
Dreamer3 [Dreamer3!~Dreamer3@74-134-34-116.dhcp.insightbb.com] has joined #ruby
banisterfiend [banisterfiend!~baniseter@122.63.185.27] has joined #ruby
banister_ [banister_!~baniseter@122.63.185.27] has joined #ruby
Kambus` [Kambus`!~kambus@62-77-250-82.pool.invitel.hu] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@c-76-105-54-37.hsd1.ca.comcast.net] has joined #ruby
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
hadees [hadees!~hadees@72-48-91-73.dyn.grandenetworks.net] has joined #ruby
rippa [rippa!~rippa@109-161-123-174.pppoe.yaroslavl.ru] has joined #ruby
bbrandon [bbrandon!~brandon@cpe-174-097-242-015.nc.res.rr.com] has joined #ruby
locojay [locojay!~locojay@pool-108-6-12-127.nycmny.fios.verizon.net] has joined #ruby
<locojay> hi sry i not a really a ruby prog so the following prob might seem very simple i m doing return (`ssh user@server 'osascript -e "tell application \"Spotify\" to pause"'`) and this does not get interpreted . run fines if run via shell
awesome [awesome!~awesome@212.62.202.84.customer.cdi.no] has joined #ruby
<locojay> via ruby i get osascript failure Spotify is not defined (02753)
<locojay> must be some speechmark not interpreted correctly
rippa [rippa!~rippa@109-161-123-174.pppoe.yaroslavl.ru] has joined #ruby
banisterfiend [banisterfiend!~baniseter@115.189.32.51] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
nicoulaj [nicoulaj!~nicoulaj@122.158.13.109.rev.sfr.net] has joined #ruby
prtksxna [prtksxna!~prtksxna@122.177.199.223] has joined #ruby
awesome_ [awesome_!~awesome@212.62.202.84.customer.cdi.no] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
banisterfiend [banisterfiend!~baniseter@115.189.32.51] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
banister_ [banister_!~baniseter@115.189.99.163] has joined #ruby
Brandonn [Brandonn!~brandon@cpe-174-097-242-015.nc.res.rr.com] has joined #ruby
banisterfiend [banisterfiend!~baniseter@122.63.212.127] has joined #ruby
xpot [xpot!~xpot@166-70-100-198.ip.xmission.com] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
flippingbits [flippingbits!~anonymous@ip-81-210-178-39.unitymediagroup.de] has joined #ruby
<robert_> is it feasible to redirect standard i/o and error from a fork'd ruby process to a buffer?
banister_ [banister_!~baniseter@122.63.147.105] has joined #ruby
<robert_> er, -process+script
__main__ [__main__!~main@adsl-99-173-15-158.dsl.pltn13.sbcglobal.net] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-108-21-213-102.nycmny.fios.verizon.net] has joined #ruby
Weddy [Weddy!~wedtm@173-12-163-78-oregon.hfc.comcastbusiness.net] has joined #ruby
zakwilson [zakwilson!~quassel@c-69-180-70-100.hsd1.fl.comcast.net] has joined #ruby
Seisatsu [Seisatsu!Seisatsu@adsl-99-60-6-112.dsl.pltn13.sbcglobal.net] has joined #ruby
banisterfiend [banisterfiend!~baniseter@122.63.209.94] has joined #ruby
banister_ [banister_!~baniseter@115.189.242.231] has joined #ruby
<Gekz> I finally wrote an application in ruby, and I quite like it.
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
Wroathe [Wroathe!~Wroathe@173-17-249-11.client.mchsi.com] has joined #ruby
<Wroathe> Hey guys :) Say I need to save a varying number of strings per object to one column of a database. Could I put those strings into an array like ['one', 'two', 'three'] and serialize them?
<Wroathe> Or is there a better way to do this?
<Wroathe> I'm somewhat new to the idea of serializing data
<zodiak> Wroathe, only serialize data if you are 1000% .. yes .. 1000% sure that you will NEVER EVER have to report or use it in a database query
<zodiak> personally, if I was you and wanted to serialize an array, you can use .to_yaml, to_json or .join and then split when reading it out
redruby [redruby!~Adium@122-59-253-167.jetstream.xtra.co.nz] has joined #ruby
jay_zawrotny [jay_zawrotny!~Jay@c-68-43-28-43.hsd1.mi.comcast.net] has joined #ruby
autumn_ [autumn_!~Autumn@60-240-7-245.tpgi.com.au] has joined #ruby
rramsden [rramsden!~rramsden@207.216.52.184] has joined #ruby
Wroathe [Wroathe!~Wroathe@173-17-249-11.client.mchsi.com] has joined #ruby
skiaec04 [skiaec04!~textual@96.18.234.205] has joined #ruby
<Wroathe> Is there a prebuilt method for escaping quotes in strings?
Tuxist [Tuxist!~quassel@dyndsl-031-150-007-140.ewe-ip-backbone.de] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@c-76-105-54-37.hsd1.ca.comcast.net] has joined #ruby
Wroathe [Wroathe!~Wroathe@173-17-249-11.client.mchsi.com] has quit [#ruby]
omry [omry!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
banisterfiend [banisterfiend!~baniseter@122.63.149.21] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
gayasentinel [gayasentinel!~gayasenti@46.21.207.167] has joined #ruby
<epitron> hah bumbug
apeiros_ [apeiros_!~apeiros@77-58-115-24.dclient.hispeed.ch] has joined #ruby
bastilian [bastilian!~bastilian@mk084020181114.a1.net] has joined #ruby
petercoulton [petercoulton!~petercoul@cpc1-midd16-2-0-cust160.11-1.cable.virginmedia.com] has joined #ruby
Jake232 [Jake232!~textual@5e025306.bb.sky.com] has joined #ruby
cyri__ [cyri__!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
drd2 [drd2!53a0482e@gateway/web/freenode/ip.83.160.72.46] has joined #ruby
banister_ [banister_!~baniseter@122.63.224.87] has joined #ruby
p0y [p0y!~p0y@112.210.110.132] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has quit ["It's not your problem."]
banisterfiend [banisterfiend!~baniseter@122.63.207.60] has joined #ruby
DFectuoso [DFectuoso!~DFectuoso@fixed-203-141-49.iusacell.net] has joined #ruby
S1kx [S1kx!~S1kx@pdpc/supporter/monthlybyte/s1kx] has joined #ruby
p0y [p0y!~p0y@112.210.110.132] has joined #ruby
banister_ [banister_!~baniseter@122.63.227.98] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
banisterfiend [banisterfiend!~baniseter@122.63.150.150] has joined #ruby
nassosdim [nassosdim!~NStojan@ppp-94-65-56-196.home.otenet.gr] has joined #ruby
Jake232 [Jake232!~textual@5e025306.bb.sky.com] has joined #ruby
banister_ [banister_!~baniseter@122.63.150.150] has joined #ruby
banisterfiend [banisterfiend!~baniseter@122.63.182.223] has joined #ruby
banisterfiend [banisterfiend!~baniseter@122.63.182.223] has joined #ruby
lvh [lvh!~lvh@python/psf/lvh] has joined #ruby
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
<lvh> Merry Christmas from #python :-) May your bugs be shallow, your interpreters fast and your code elegant :)
banisterfiend [banisterfiend!~baniseter@122.63.182.223] has joined #ruby
clockwize [clockwize!~clockwize@5ac85c0d.bb.sky.com] has joined #ruby
vitoravelino [vitoravelino!~rockhampt@unaffiliated/vtr] has joined #ruby
fridim_ [fridim_!~fridim@2a01:e35:2ece:f2d0:223:4eff:fe6c:c754] has joined #ruby
zastaph [zastaph!zastaph@unaffiliated/zastaph] has joined #ruby
<banisterfiend> merry xmas
kirun [kirun!~kirun@78-86-154-194.zone2.bethere.co.uk] has joined #ruby
pen [pen!~pen@140.112.30.141] has joined #ruby
Sliker [Sliker!~ponies@87.115.176.215] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
p0y [p0y!~p0y@112.210.110.132] has joined #ruby
<Asher> that excites you eh?
<banisterfiend> Asher: no u
<Asher> pretty run of the mill
jensn [jensn!~Jens@90-229-211-15-no150.tbcn.telia.com] has joined #ruby
p0y_ [p0y_!~p0y@121.97.55.99] has joined #ruby
akem [akem!~akem@164.15.85.79.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
dbgster [dbgster!~dbgster@CPE0013f7b7170c-CM0013f7b71708.cpe.net.cable.rogers.com] has joined #ruby
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
t-mart [t-mart!~t-mart@c-76-108-173-224.hsd1.fl.comcast.net] has joined #ruby
<rippa> what's the deal with americans and brother/sister incest disgust?
<nyuszika7h> ng tab went to
<nyuszika7h> Oops
BrianE [BrianE!~brian@87.115.115.247] has joined #ruby
<Asher> americans love anything transgressive :P
<Asher> so long as they can participate in it without committing to it
<Asher> and especially if it involves making decisions about someone else's sexuality...
tbone_ [tbone_!~tbone@c-24-130-10-25.hsd1.ca.comcast.net] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
<tbone_> hi, is anyone out there?
<tbone_> quick erb question
<tbone_> i hope you're all opening presents, but here goes:
<tbone_> i need a ruby-esque way to trim the trailing value in an erb loop. for example, this loop
<tbone_> appends a comma
<tbone_> is there a nice way in erb to specify for this comma not to render on last loop
<tbone_> ?
<Asher> use join instead of iterating?
<Asher> i don't ever use erb so not sure what the best solution is in that context
<tbone_> I'll consider that, but it seems like joining the strings in the caller of the erb is a poor separation of concerns.
<Asher> it seems to me like erb is a poor separation of concerns
<Asher> but that's me
<tbone_> :) i hear that complaint. :)
<tbone_> thanks
Targen [Targen!~iguana@190.39.181.108] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
tomasantonj [tomasantonj!~Adium@c213-89-112-209.bredband.comhem.se] has joined #ruby
tbone_ [tbone_!~tbone@c-24-130-10-25.hsd1.ca.comcast.net] has quit [#ruby]
cousine [cousine!~cousine@41.32.101.235] has joined #ruby
bluOxigen [bluOxigen!~noreply@unaffiliated/bluOxigen] has joined #ruby
raincole [raincole!~raincole@wl065.cc.ntu.edu.tw] has joined #ruby
raincole [raincole!~raincole@wl065.cc.ntu.edu.tw] has joined #ruby
raincole [raincole!~raincole@wl065.cc.ntu.edu.tw] has joined #ruby
raincole [raincole!~raincole@wl065.cc.ntu.edu.tw] has joined #ruby
mengu [mengu!~mengu@85.102.142.130] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
raincole [raincole!~raincole@wl065.cc.ntu.edu.tw] has joined #ruby
raincole [raincole!~raincole@wl065.cc.ntu.edu.tw] has joined #ruby
raincole [raincole!~raincole@wl065.cc.ntu.edu.tw] has joined #ruby
lvh [lvh!~lvh@python/psf/lvh] has quit [#ruby]
raincole [raincole!~raincole@wl065.cc.ntu.edu.tw] has joined #ruby
raincole [raincole!~raincole@wl065.cc.ntu.edu.tw] has joined #ruby
p0y [p0y!~p0y@121.97.55.99] has joined #ruby
rottenrec [rottenrec!~calvin@pool-74-100-117-52.lsanca.dsl-w.verizon.net] has joined #ruby
raincole [raincole!~raincole@wl065.cc.ntu.edu.tw] has joined #ruby
raincole [raincole!~raincole@wl065.cc.ntu.edu.tw] has joined #ruby
raincole [raincole!~raincole@wl065.cc.ntu.edu.tw] has joined #ruby
raincole [raincole!~raincole@wl065.cc.ntu.edu.tw] has joined #ruby
axilla [axilla!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has joined #ruby
raincole [raincole!~raincole@wl065.cc.ntu.edu.tw] has joined #ruby
raincole [raincole!~raincole@wl065.cc.ntu.edu.tw] has joined #ruby
djacobs [djacobs!~acts_as_d@99-116-125-86.lightspeed.gnvlsc.sbcglobal.net] has joined #ruby
raincole [raincole!~raincole@wl065.cc.ntu.edu.tw] has joined #ruby
raincole [raincole!~raincole@wl065.cc.ntu.edu.tw] has joined #ruby
axilla [axilla!~axilla@c-71-234-169-157.hsd1.vt.comcast.net] has quit [#ruby]
raincole [raincole!~raincole@wl065.cc.ntu.edu.tw] has joined #ruby
raincole [raincole!~raincole@wl065.cc.ntu.edu.tw] has joined #ruby
_2easy_ [_2easy_!~nofuture@mtn.pl] has joined #ruby
mindgame [mindgame!~nfxgosu@c-24-6-170-1.hsd1.ca.comcast.net] 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
t-mart [t-mart!~t-mart@c-76-108-173-224.hsd1.fl.comcast.net] has joined #ruby
crodas [crodas!~crodas@git.crodas.org] has joined #ruby
lapinferoce_ [lapinferoce_!~lapinfero@log77-5-88-164-148-73.fbx.proxad.net] has joined #ruby
Tachyx [Tachyx!~tach@81.200.61.23] has joined #ruby
d2dchat [d2dchat!~d2dchat@64.20.154.57.dyn-e-pool27.pool.hargray.net] has joined #ruby
p0y [p0y!~p0y@112.210.110.132] has joined #ruby
derailed [derailed!~textual@i190010.upc-i.chello.nl] has joined #ruby
norex [norex!~quassel@41-133-238-15.dsl.mweb.co.za] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby
QaDeS [QaDeS!~mklaus@frbg-5f731bd8.pool.mediaWays.net] has joined #ruby
skillachie [skillachie!~skillachi@ool-457de73d.dyn.optonline.net] has joined #ruby
burgestrand [burgestrand!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
dql [dql!~dql@58.38.92.224] has joined #ruby
asteros [asteros!~asteros@c-68-38-211-11.hsd1.nj.comcast.net] has joined #ruby
giulio [giulio!~giulio@ppp-220-3.26-151.libero.it] has joined #ruby
senny [senny!~senny@77-56-67-120.dclient.hispeed.ch] has joined #ruby
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
Bish [Bish!~Bish@v0ll.de] has joined #ruby
orion [orion!orion@unaffiliated/orion] has joined #ruby
eladmeidar [eladmeidar!~eladmeida@84.94.109.182.cable.012.net.il] has joined #ruby
<orion> Hi. Is there a document out on the web that explains the methodology behind Ruby, Rack, Rails, and how they are all logically connected to one another?
p0y [p0y!~p0y@112.210.110.132] has joined #ruby
<Asher> what do you want to know about
<Asher> rack is a generic http adapter supported by a number of web servers
<Asher> rails uses rack and then builds on it, mostly making it transparent
<eladmeidar> hi guys, need a way for a method to find out if it's running within block. a specific kind of block.. ideas?
<Asher> set a flag
<Asher> otherwise you'll need to use something like my sender gem
<Asher> which is probably not a good solution
<Asher> not b/c it won't do exactly what you ask - it will
<orion> Would it be correct to call Rails a piece of Rack middleware?
<Asher> but b/c that is probably not a good way to solve your problem
<Asher> orion - technically i believe it would be, but that's not really how you interact with it
<orion> Alright.
<eladmeidar> Asher: the problem is that i can't set a flag since the scope is different. if within the block i run method from several objects that has nothing to do with the block iterator - i can't set the flag on nothing.
<eladmeidar> orion: rails is a rack app, yes
<Asher> eladmeidar - share some code maybe?
<orion> How does Passenger fit in to all this?
<Asher> eladmeidar - what is it you're trying to achieve that requires konwing you are in a block?
<Asher> orion - passenger is either 1. a standalone web server 2. a plugin for apache 3. a plugin for nginx web server that serves as a rack adapter
<eladmeidar> Asher: forcing a method to run within a transaction (actually a rails code)
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
<eladmeidar> Asher: tried to extract something out.
<orion> hmm
<Asher> eladmeidar - what is it you want to know? what type of block? what odes it change?
<orion> So, rack provides its own webserver, WEBrick, right? Passenger is a webserver of its own then?
<orion> And it acts as a proxy between nginx and rack?
<eladmeidar> Asher: i just want to make sure that certain methods are only called within a block. the methods may be either instance or class and from several different classes.
<Asher> passenger is a web adapter that comes as either 1. a plugin for apache 2. a plugin for nginx 3. a standalone app with nginx built in
<Asher> passenger hooks into a rackup adapter, which describes how the rack instance is initiated
<Asher> eladmeidar- why don't you make the block into a DSL that provides those methods… does your block have to retain the same self that is normally implicit?
<orion> So Rack is composed of adapters and middleware only, right?
<eladmeidar> Asher: tried it. but i still need a way from the methods to check that the container (even via DSL) is there.
<Asher> orion - not sure what you're asking there
<Asher> eladmeidar - no… you make it so the methods can only be accessed from there
<Asher> that way you don't have to check
<orion> Asher: What are the logical components of Rack? So far I've noted middleware and adapters.
<Asher> "middleware" are rack applications that wrap other rack applications
<eladmeidar> Asher: mmm. it would solve it.. yes. but i'll have to move some logic from my classes to that "Safe Block" module...
<Asher> any rack application is middleware b/c it can wrap any other rack application
<Asher> eladmeidar - that is almost certainly the way to solve this particular problem but i could help more w/code
<eladmeidar> Asher: aight.. i'll give it a shot. thanks mate!
<orion> ok
<Asher> orion - rack is a set of helper modules/methods that handle http transactions
<Asher> middleware is an architecture that describes how rack gets input/output
<Asher> which lets it stack
<Asher> does that answer your question? not sure
asteros [asteros!~asteros@c-68-38-211-11.hsd1.nj.comcast.net] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
fahadsadah [fahadsadah!fahad@unaffiliated/fahadsadah] has joined #ruby
<orion> So, Rack is technically a standardized API specifically made to give Ruby applications a common interface for working with HTTP.
<Asher> more or less
<Asher> it's not really a standard just a core lib
<Asher> but it is the de facto standard
<orion> I see.
<orion> WEBrick and Mongrel are adapters, right?
<Asher> i'm not aware of any ruby web frameworks that don't rely on rack
<Asher> but there may be some
<Asher> WEBrick and Mongrel are stand alone http ruby app servers i believe
<orion> hmm
<orion> You said "adapter" before... is that the same as a handler?
<Asher> not sure what a handler is
<orion> ok
<Asher> i was referring to a rackup adapter i believe, which is a standardized way of constructing rack interfaces…
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
<orion> This is confusing, heh.
<Asher> what are you trying to figure out
<Asher> that might be an easier way to sort out the confusion
eladmeidar [eladmeidar!~eladmeida@84.94.109.182.cable.012.net.il] has joined #ruby
andrewhl [andrewhl!~andrew@CPE687f7402a2d8-CM00195ed25a2a.cpe.net.cable.rogers.com] has joined #ruby
<orion> I've always run into problems when developing Ruby web applications. The problem is not Ruby or Padrino or Rack or whatever. The problem is my mindset about how all this stuff works. If I could just understand how all of these pieces fit together, I will be able to fix problems that occur during the course of the application development.
bbrandon [bbrandon!~brandon@cpe-174-097-242-015.nc.res.rr.com] has joined #ruby
<Asher> most frameworks are designed so you don't have to worry about rack at all
<Asher> they already ahve a rackup adapter created that you probably will never look at
<orion> Yes... but I don't like not knowing how stuff works. :/
<Asher> what sort of problems do you run into
abstrusenick [abstrusenick!~abstrusen@bb220-255-36-18.singnet.com.sg] has joined #ruby
<orion> I am going to PM you a URL and then I'll continue the conversation here.
<orion> I get emails every morning about how ruby19 segfaults, and I am having a hard time tracking it down.
<orion> It crashes every time someone visits the URL I just PM'd you.
<Asher> unexpected EOF suggests to me that you're missing an end or something
<orion> I don't necessarily think that's the case.
<burgestrand> Segfaults? Those are rarely caused by ruby code (if they are it’s most likely a bug in the ruby interpreter)
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
<orion> First, ruby19 is *crashing*. Second, the exception occurs in PhusionPassenger::Rack::ApplicationSpawner::Error.
clockwize [clockwize!~clockwize@5ac85c0d.bb.sky.com] has joined #ruby
<orion> And I am having a very difficult time trying to find out what's causing it.
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby
<Asher> the error i got is unexpected EOF
<orion> Correct, same as I get.
<orion> But I think that's a different EOF than you're thinking.
<Asher> have you tried running your code from ruby outside of http loop
<Asher> different EOF? Unexpected EOF means it reached the end of the file before the current syntax reached its end
<orion> I don't know how, because I am not 100% sure how all these components fit together.
<Asher> well rails 3 has made it nice and easy to run outside of the http loop
<orion> Asher: But Passenger communicates by sockets, and I think that that EOF is referring to the socket.
<burgestrand> It’d be an unexpected EOF if the code handling the request crashed before it could send the complete response as well.
<Asher> it's getting EOF in the application spawner
<orion> I use Padrino.
<Asher> i duno anything about padrino
<Asher> based on sinatra so it should be easy to run directly
audy [audy!~audy@heyaudy.com] has joined #ruby
<burgestrand> orion: is the exception stacktrace coming from your code or from passenger?
<Asher> passenger
<orion> burgestrand: See PM
<Asher> your app is crashing during startup
<Asher> causing EOF in the middle of a file
<Asher> no segfault is reported so i'm guessing it's just a syntax problem
<orion> Asher: A segfault IS happening.
<Asher> what makes you conclude that?
<burgestrand> Passenger forks, so if the child segfaults it could look like this
<burgestrand> orion: can you run the application locally in development, or does it fail there too?
<orion> Dec 25 10:21:19 veritas kernel: pid 82360 (ruby19), uid 0: exited on signal 6 (core dumped)
<Asher> 6 is abort
skammer [skammer!~skammer@ppp95-165-179-17.pppoe.spdop.ru] has joined #ruby
<Asher> you need to run your app locally to see what you get
p0y [p0y!~p0y@112.210.110.132] has joined #ruby
<Asher> my guess is you will get direct error output there that will resolve the issue
<orion> That makes sense... but I need to figure out now how to do that.
<orion> I set up a config.ru file. That's what passenger looks for IIRc.
<Asher> the config.ru file is the rackup configuration file that describes how your application starts
<orion> Ok
<Asher> you basically just need to make whatever call that makes in order to start your app on its own
<orion> So I just ran rackup in my app directory.
<Asher> that will start a local web server
<orion> And I get a webserver on port 9292.
<burgestrand> And if you visit it?
S2kx [S2kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby
<orion> standby
Pip [Pip!~Pip@host-196-146-66-217.spbmts.ru] has joined #ruby
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby
<orion> `block in setup': You have already activated activesupport 3.1.3, but your Gemfile requires activesupport 3.0.9. Using bundle exec may solve this. (Gem::LoadError)
<orion> Is there a way to find out what's activating activesupport 3.1.3?
andywww [andywww!~andy@cpc2-scun4-0-0-cust229.12-3.cable.virginmedia.com] has joined #ruby
janissary [janissary!~user@adsl-98-70-95-30.mco.bellsouth.net] has joined #ruby
rickmasta [rickmasta!~rickmasta@pool-108-21-213-102.nycmny.fios.verizon.net] has joined #ruby
Liothen [Liothen!~liothen@pdpc/supporter/professional/liothen] has joined #ruby
mohits [mohits!~ms@unaffiliated/mohits] has joined #ruby
andywww [andywww!~andy@cpc2-scun4-0-0-cust229.12-3.cable.virginmedia.com] has quit [#ruby]
<zi> Why doesn't stuff work, when I run rackup from rake?
yfeldblum [yfeldblum!~Jay@pool-173-68-228-166.nycmny.east.verizon.net] has joined #ruby
eladmeidar [eladmeidar!~eladmeida@84.94.109.182.cable.012.net.il] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
dagnachewa [dagnachewa!~dagnachew@modemcable142.238-179-173.mc.videotron.ca] has joined #ruby
conor_ireland [conor_ireland!~conor_ire@89.100.121.49] has joined #ruby
manizzle [manizzle!~manizzle@216-31-242-170.static-ip.telepacific.net] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
<burgestrand> orion: when requiring gems, the newest version is automatically required, perhaps you’re setting up bundler too late
d3vic3 [d3vic3!~quimzed@197.1.4.2] has joined #ruby
<burgestrand> zi: because you’re probably doing it wrong
eladmeidar [eladmeidar!~eladmeida@84.94.109.182.cable.012.net.il] has quit [#ruby]
tobym [tobym!~tobym@pool-96-244-84-13.bltmmd.fios.verizon.net] has joined #ruby
vmatiyko [vmatiyko!~vmatiyko@178.121.177.46] has joined #ruby
BrianE [BrianE!~brian@87.115.115.247] has joined #ruby
akem [akem!~akem@164.15.85.79.rev.sfr.net] has joined #ruby
akem [akem!~akem@unaffiliated/akem] has joined #ruby
cyri_ [cyri_!~cyri_@nor75-27-88-178-186-47.fbx.proxad.net] has joined #ruby
ec2-user [ec2-user!~ec2-user@ec2-50-17-71-160.compute-1.amazonaws.com] has joined #ruby
<mindgame> how do i end a ruby program in cmd(windows)
andywww [andywww!~andy@cpc2-scun4-0-0-cust229.12-3.cable.virginmedia.com] has joined #ruby
Norrin [Norrin!~Norrin@c-67-160-193-132.hsd1.ca.comcast.net] has joined #ruby
wyhaines [wyhaines!~wyhaines@24.143.25.13] has joined #ruby
Jrz [Jrz!~jrz@d152222.upc-d.chello.nl] has joined #ruby
waxjar [waxjar!~waxjar@a82-95-107-41.adsl.xs4all.nl] has joined #ruby
Norrin [Norrin!~Norrin@c-67-160-193-132.hsd1.ca.comcast.net] has joined #ruby
wyhaines [wyhaines!~wyhaines@24.143.25.13] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] 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
conor_ireland [conor_ireland!~conor_ire@89.100.121.49] has joined #ruby
tianshuo [tianshuo!~tianshuo@cpe-74-66-139-160.nyc.res.rr.com] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
io_syl [io_syl!~io_syl@adsl-69-105-118-125.dsl.pltn13.pacbell.net] has joined #ruby
io_syl [io_syl!~io_syl@unaffiliated/steph021] has joined #ruby
p0y [p0y!~p0y@112.210.110.132] has joined #ruby
tobym [tobym!~tobym@pool-96-244-84-13.bltmmd.fios.verizon.net] has joined #ruby
tianshuo [tianshuo!~tianshuo@cpe-74-66-139-160.nyc.res.rr.com] has quit [#ruby]
tomzx [tomzx!~tomzx@dsl-132-26.aei.ca] has joined #ruby
macabre [macabre!~macabre@cpe-66-69-218-227.austin.res.rr.com] has joined #ruby
waxjar [waxjar!~waxjar@a82-95-107-41.adsl.xs4all.nl] has joined #ruby
Vendethiel [Vendethiel!Vendethiel@229.190.140.88.rev.sfr.net] has joined #ruby
flip_digits [flip_digits!~textual@c-71-199-243-97.hsd1.fl.comcast.net] has joined #ruby
bosphorus [bosphorus!~bosphorus@88.233.114.173] has joined #ruby
tianshuo [tianshuo!~tianshuo@cpe-74-66-139-160.nyc.res.rr.com] has joined #ruby
<tianshuo> Hi guys…simple question: what is the best way to install ruby 1.9 in OSX lion?
<tianshuo> rvm seems to conflicts with passenger in some way
<tianshuo> Thank you waxjar , I will try
<tianshuo> Is there a way to simply override the ruby 1.8.7 installed on OSX lion?
wedtm [wedtm!~wedtm@173-12-163-78-oregon.hfc.comcastbusiness.net] has joined #ruby
<waxjar> that's not how it works
<waxjar> it installs ruby somewhere else and uses that version instead
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
cousine [cousine!~cousine@41.32.101.235] has joined #ruby
zulax [zulax!~radarwork@99-120-232-161.lightspeed.iplsin.sbcglobal.net] has joined #ruby
<waxjar> it keeps the built-in version of ruby installed, you can use it any time you wish
kennethreitz [kennethreitz!~kennethre@c-24-127-96-129.hsd1.va.comcast.net] has joined #ruby
asteros [asteros!~asteros@c-68-38-211-11.hsd1.nj.comcast.net] has joined #ruby
<burgestrand> tianshuo: have you read this: http://beginrescueend.com/integration/passenger/?
bier [bier!~bier@p57999B54.dip.t-dialin.net] has joined #ruby
thone [thone!~thone@f052159008.adsl.alicedsl.de] has joined #ruby
bosphorus_ [bosphorus_!~bosphorus@88.235.38.225] has joined #ruby
Pip_ [Pip_!~Pip@unaffiliated/pip] has joined #ruby
tk [tk!~tk@p083061.doubleroute.jp] has joined #ruby
shiroginne [shiroginne!~shiroginn@178.125.12.204] has joined #ruby
dbgster [dbgster!~dbgster@CPE0013f7b7170c-CM0013f7b71708.cpe.net.cable.rogers.com] has joined #ruby
mikeycgto [mikeycgto!~mikeycgto@ool-4571cba8.dyn.optonline.net] has joined #ruby
mikeycgto [mikeycgto!~mikeycgto@pdpc/supporter/active/mikeycgto] has joined #ruby
clockwize [clockwize!~clockwize@5ac85c0d.bb.sky.com] has joined #ruby
asteros [asteros!~asteros@c-68-38-211-11.hsd1.nj.comcast.net] has joined #ruby
Marco_ [Marco_!~marco@c-98-254-52-240.hsd1.fl.comcast.net] has joined #ruby
bastilian [bastilian!~bastilian@mk046207212092.a1.net] has joined #ruby
skinnymuch [skinnymuch!~skinnymuc@c-68-36-123-133.hsd1.nj.comcast.net] has joined #ruby
MUILTR [MUILTR!~MLINTH@adsl-98-80-213-15.mcn.bellsouth.net] has joined #ruby
waxjar [waxjar!~waxjar@a82-95-107-41.adsl.xs4all.nl] has joined #ruby
rothsa [rothsa!~rothsa@c-67-189-97-22.hsd1.wa.comcast.net] has joined #ruby
pyparadigm [pyparadigm!~pyparadig@c-98-236-118-249.hsd1.pa.comcast.net] has joined #ruby
Tuxi [Tuxi!~quassel@dyndsl-085-016-199-154.ewe-ip-backbone.de] has joined #ruby
bastilian [bastilian!~bastilian@mk046075144148.a1.net] has joined #ruby
sdwrage [sdwrage!~sdwrage@68.170.201.77] has joined #ruby
macabre [macabre!~macabre@cpe-66-69-218-227.austin.res.rr.com] has joined #ruby
dotnull [dotnull!~dot_null@173-31-158-182.client.mchsi.com] has joined #ruby
dotemacs_ [dotemacs_!u801@gateway/web/irccloud.com/x-yszgcpyqekptixok] has joined #ruby
igotnolegs [igotnolegs!~igotnoleg@75-162-83-166.slkc.qwest.net] has joined #ruby
Jake232 [Jake232!~textual@5e025306.bb.sky.com] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
ynonperek [ynonperek!~ynonperek@89-138-103-61.bb.netvision.net.il] has joined #ruby
moshef [moshef!~moshef@84.94.109.182.cable.012.net.il] has joined #ruby
Cervajz [Cervajz!~Cervajz@opensuse/member/Cervajz] has joined #ruby
end3r- [end3r-!~ender@ec2-50-17-71-160.compute-1.amazonaws.com] has joined #ruby
nicoulaj_ [nicoulaj_!~nicoulaj@122.158.13.109.rev.sfr.net] has joined #ruby
end3r- [end3r-!~ender@ec2-50-17-71-160.compute-1.amazonaws.com] has joined #ruby
end3r- [end3r-!~ender@ec2-50-17-71-160.compute-1.amazonaws.com] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
QaDeS [QaDeS!~mklaus@frbg-5f731bd8.pool.mediaWays.net] has joined #ruby
byronb [byronb!~byron@c-24-18-227-118.hsd1.wa.comcast.net] has joined #ruby
end3r- [end3r-!~ender@ec2-50-17-71-160.compute-1.amazonaws.com] has joined #ruby
omry [omry!~omry@DSL212-235-83-63.bb.netvision.net.il] has joined #ruby
looopy [looopy!~looopy@pool-151-200-235-184.washdc.btas.verizon.net] has joined #ruby
end3r- [end3r-!~ender@ec2-50-17-71-160.compute-1.amazonaws.com] has joined #ruby
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
moondiamond_ [moondiamond_!~moondiamo@58.171.56.219] has joined #ruby
end3r- [end3r-!~ender@ec2-50-17-71-160.compute-1.amazonaws.com] has joined #ruby
Lysergic [Lysergic!~nfxgosu@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby
end3r- [end3r-!~ender@ec2-50-17-71-160.compute-1.amazonaws.com] has joined #ruby
bastilian [bastilian!~bastilian@mk046075144148.a1.net] has joined #ruby
end3r- [end3r-!~ender@ec2-50-17-71-160.compute-1.amazonaws.com] has joined #ruby
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby
tobym [tobym!~tobym@pool-96-244-84-13.bltmmd.fios.verizon.net] has joined #ruby
bluOxigen [bluOxigen!~noreply@unaffiliated/bluOxigen] has joined #ruby
_debo_ [_debo_!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
waxjar [waxjar!~waxjar@a82-95-107-41.adsl.xs4all.nl] has joined #ruby
chrxn [chrxn!chrxn@69.4.233.32] has joined #ruby
NDK [NDK!dziok231@77-254-252-171.adsl.inetia.pl] has joined #ruby
TheShadowFog [TheShadowFog!~TheShadow@ool-1826fa3a.dyn.optonline.net] has joined #ruby
<NDK> xd
NDK [NDK!dziok231@77-254-252-171.adsl.inetia.pl] has quit [#ruby]
asteros [asteros!~asteros@c-68-38-211-11.hsd1.nj.comcast.net] has joined #ruby
xyzodiac [xyzodiac!~wircer@166.247.103.97.cfl.res.rr.com] has joined #ruby
<xyzodiac> Anyone have experience with building gems on WebOS via Optware?
cyri_ [cyri_!~cyri_@nor75-27-88-178-186-47.fbx.proxad.net] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@c-76-105-54-37.hsd1.ca.comcast.net] has joined #ruby
t-mart [t-mart!~t-mart@c-76-108-173-224.hsd1.fl.comcast.net] has joined #ruby
banisterfiend [banisterfiend!~baniseter@115.189.119.59] has joined #ruby
vinculum [vinculum!~vinculum@h93.37.191.173.dynamic.ip.windstream.net] has joined #ruby
tshauck [tshauck!~tshauck@99-13-22-252.lightspeed.wchtks.sbcglobal.net] has joined #ruby
mengu [mengu!~mengu@unaffiliated/mengu] has joined #ruby
azbarcea__ [azbarcea__!~quassel@79.114.87.7] has joined #ruby
mikeycgto [mikeycgto!~mikeycgto@pdpc/supporter/active/mikeycgto] has joined #ruby
pen [pen!~pen@g1pc2n249.g1.ntu.edu.tw] has joined #ruby
j3r0m3 [j3r0m3!~j3r0m3@c-76-105-54-37.hsd1.ca.comcast.net] has joined #ruby
Rod [Rod!~Rod@71.74.190.108] has joined #ruby
skinnymuch [skinnymuch!~skinnymuc@c-68-36-123-133.hsd1.nj.comcast.net] has joined #ruby
bamboozle [bamboozle!~david@watch.out.for.those.crafty.r0b0ts.org] has joined #ruby
luckyruby [luckyruby!~luckyruby@pool-173-78-4-217.tampfl.fios.verizon.net] has joined #ruby
cyri_ [cyri_!~cyri_@nor75-27-88-178-186-47.fbx.proxad.net] has joined #ruby
waxjar [waxjar!~waxjar@ip11-49-212-87.adsl2.static.versatel.nl] has joined #ruby
jergason [jergason!~jergason@dsl-67-204-0-247.acanac.net] has joined #ruby
<bamboozle> Now playing: Cancerslug - infernal orgasmic
<bamboozle> wrong channel
<bamboozle> sorry
Jay_Levitt [Jay_Levitt!~Jay_Levit@home.jay.fm] has joined #ruby
berserkr [berserkr!~david@212.122.111.205.dyn.user.ono.com] has joined #ruby
cyri_ [cyri_!~cyri_@nor75-27-88-178-186-47.fbx.proxad.net] has joined #ruby
orion [orion!orion@unaffiliated/orion] has quit [#ruby]
tobym [tobym!~tobym@pool-96-244-84-13.bltmmd.fios.verizon.net] has joined #ruby
apok [apok!~apok@cpe-76-166-195-139.socal.res.rr.com] has joined #ruby
jergason [jergason!~jergason@dsl-67-204-0-247.acanac.net] has joined #ruby
rottenrec1 [rottenrec1!~calvin@pool-74-100-117-52.lsanca.dsl-w.verizon.net] has joined #ruby
Mahoek [Mahoek!~Mahoek@ip51ceb6d4.adsl-surfen.hetnet.nl] has joined #ruby
Morkel [Morkel!~Morkel@xdsl-87-78-206-32.netcologne.de] has joined #ruby
vitoravelino [vitoravelino!~rockhampt@unaffiliated/vtr] has joined #ruby
thecreators [thecreators!~rskagy@cpe-65-27-201-203.cinci.res.rr.com] has joined #ruby
<zi> What does the & actually mean for blocks?
jergason [jergason!~jergason@dsl-67-204-0-247.acanac.net] has joined #ruby
Faris [Faris!~amnay@41.248.194.218] has joined #ruby
<Faris> How does ruby handle large integers ?
<Faris> as linked lists?
burgestrand1 [burgestrand1!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
burgestrand [burgestrand!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
<burgestrand> zi: what do you mean?
<zi> burgestrand - Why do people write & before the block variable in function argument list.
DFectuoso [DFectuoso!~DFectuoso@fixed-203-141-49.iusacell.net] has joined #ruby
<rippa> because it's a block variable
<rippa> otherwise it would be just a usual parameter
<burgestrand> zi: when defining a method, ”def moo(a, b, &c)”, it means you’ll capture the passed block inside c as a proc
<burgestrand> zi: you can then store this, pass it somewhere else or do whatever you want with it
<burgestrand> zi: when *calling* method you’re almost doing the opposite, you take an object that responds to to_proc and pass it to the given method as a block, moo(1, 2, &block)
<burgestrand> Proc#to_proc simply returns itself, I might add
DFectuoso [DFectuoso!~DFectuoso@fixed-203-141-49.iusacell.net] has joined #ruby
<yfeldblum> when you're sending a message ("calling a method"), then prefixing the final argument with & means "pass this argument to the method in the block slot"; when you're defining a method and listing the formal parameters of the method, then prefixing the final formal paramter with & means "this formal parameter gets the value passed in the block slot"
djacobs [djacobs!~acts_as_d@99-116-125-86.lightspeed.gnvlsc.sbcglobal.net] has joined #ruby
banisterfiend [banisterfiend!~baniseter@115.189.53.149] has joined #ruby
cantonic [cantonic!~cantonic@p5DDFD654.dip.t-dialin.net] has joined #ruby
rpowell [rpowell!~rpowell@CPE-121-216-24-167.lnse1.ken.bigpond.net.au] has joined #ruby
LittleBill902 [LittleBill902!~smith@c-71-197-102-219.hsd1.ca.comcast.net] has joined #ruby
TheMoonMaster [TheMoonMaster!~TMM@reddit/operator/themoonmaster] has joined #ruby
Codif [Codif!~codif@84.120.204.160.dyn.user.ono.com] has joined #ruby
maltray [maltray!~maltray@r190-134-27-154.dialup.adsl.anteldata.net.uy] has joined #ruby
<maltray> Hi there, Im kinda new to ruby, and trying to use regex, yesterday i remember i tried to successfully, now i cant manage to make this: /(?<data>.*)/.match('hola') work.
<maltray> it just keeps telling me: undefined (?...) sequence: /(?<data>.*)/
AxonetBE [AxonetBE!~Adium@d51A4E944.access.telenet.be] has joined #ruby
<maltray> anyone?
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
GreaseMonkey [GreaseMonkey!~gm@unaffiliated/greasemonkey] has joined #ruby
<burgestrand> maltray: which ruby version are you using?
<burgestrand> maltray: because that syntax won’t work on 1.8 unless I’m mistaken, but it does on 1.9
<maltray> 1.9.3 i think, how can i know on fedora wich version i have?
<maltray> in my desktop im sure i have 1.9.3
<burgestrand> maltray: ruby -v will tell you
<maltray> ok
<maltray> ha.
<maltray> 1.8.7 :<
<burgestrand> maltray: package managers suck when it comes to installing ruby :p
<Seppman> btw is this ruby/parrot still on the roadmap?
<burgestrand> maltray: rvm or rbenv is pretty much the way to go, if you’re inexperienced I’d give rvm a try
<maltray> what are those? o.o
<burgestrand> maltray: https://rvm.beginrescueend.com/ — it’s a tool to manage ruby installations, useful even if you only ever install one :)
<burgestrand> maltray: you don’t need to remove your old version, I might add, RVM allows you to switch between versions and that includes your default system installation
<maltray> kk, i was about to ask if i needed to remove :p
indstry [indstry!~indstry@2001:470:1f11:1ec:5de4:929d:3fea:6444] has joined #ruby
TheMoonMaster [TheMoonMaster!~TMM@reddit/operator/themoonmaster] has joined #ruby
<burgestrand> maltray: https://rvm.beginrescueend.com/rvm/basics/ — haven’t read all of it myself but it does explain the RVM basics
<maltray> just done installing, was reading the kinda Read me that shows in the install :p
<burgestrand> maltray: hehe
<burgestrand> maltray: if you type ”rvm notes” it’ll give you some nice information specific to your system and RVM
<maltray> Okay, will check it out now :>
<burgestrand> (if it cannot find the rvm command you might need to add the RVM-loading script line to your ~/.bashrc or similar)
<maltray> it works, yep :>
<maltray> im now installing ruby 1.9.2
<burgestrand> awesome :)
<burgestrand> \o/
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby
<maltray> rvm install 1.9.2 :>, its downloading so slow lol
<maltray> my wireless is kinda bad.
<burgestrand> afterwards you can switch with “rvm use 1.9.2” or “rvm use system”, and do “rvm use 1.9.2 —default” if you want to use 1.9.2 by default
ipsifendus [ipsifendus!~edward@c-67-169-223-202.hsd1.or.comcast.net] has joined #ruby
jergason [jergason!~jergason@dsl-173-248-245-18.acanac.net] has joined #ruby
<maltray> yup, ill do that
<maltray> so i dont become insane. lol
<maltray> i was so mad, like why did it work on my desktop but not here!?
<burgestrand> hehe
<burgestrand> good thing ruby IRC is here :)
<maltray> yup, after googling and trying to figure out by myself i decided to join the irc :>
burgestrand1 [burgestrand1!~burgestra@81-229-85-235-no66.tbcn.telia.com] has joined #ruby
zulax [zulax!~radarwork@99-120-232-161.lightspeed.iplsin.sbcglobal.net] has joined #ruby
mohits [mohits!~ms@unaffiliated/mohits] has joined #ruby
MUILTR [MUILTR!~MLINTH@adsl-98-80-237-189.mcn.bellsouth.net] has joined #ruby
_debo [_debo!~marco.deb@cpc18-enfi16-2-0-cust743.hari.cable.virginmedia.com] has joined #ruby
<maltray> looks that the install is doing so far fine on my pc
<maltray> but on my vps i had an error :<
p1d [p1d!~p1d@dslb-088-076-159-216.pools.arcor-ip.net] has joined #ruby
iocor [iocor!~textual@unaffiliated/iocor] has joined #ruby
Jb__ [Jb__!~jb@ks364797.kimsufi.com] has joined #ruby
<maltray> lol, i figured out, didnt had gcc on my vps :p
<maltray> ruby -v shows 1.9.2 now :> installing 1.9.3, thanks burgestrand
<burgestrand1> maltray: :)
<burgestrand1> maltray: rvm requirements is useful
<maltray> yup but i tought i had gcc on my vps, forgot that they dont install much things on it :P
tobym [tobym!~tobym@pool-96-244-84-13.bltmmd.fios.verizon.net] has joined #ruby
jwmann [jwmann!~Adium@modemcable242.110-201-24.mc.videotron.ca] has joined #ruby
audy [audy!~audy@heyaudy.com] has joined #ruby
Russell^^ [Russell^^!~Russell^^@88.97.51.87] has joined #ruby
Manhose [Manhose!~Manhose@bl15-137-8.dsl.telepac.pt] has joined #ruby
Jarred [Jarred!~Jarred@c-71-198-139-210.hsd1.ca.comcast.net] has joined #ruby
<Jarred> Hi all
robyurkowski [robyurkowski!~robyurkow@bas2-longueuil15-3096771256.dsl.bell.ca] has joined #ruby
<Jarred> I'm trying to do a DNSSD service browse, but both the timeout method and manually setting a start time and telling it to break if it's passed 10 seconds doesn't work. How do I get the block of code from lines 9-18 to end? https://gist.github.com/c2c621ad2a2b201f0878
Tuxist [Tuxist!~quassel@dyndsl-085-016-199-154.ewe-ip-backbone.de] has joined #ruby
apok [apok!~apok@cpe-76-166-195-139.socal.res.rr.com] has joined #ruby
ycy [ycy!~mb@62.169.41.27] has joined #ruby
<ycy> hi there
<ycy> I have the following problem: when I call 'to_s', string templating does not evaluate instance variables. why? http://pastebin.com/jXTPnr12
<burgestrand1> ycy: you are using single quotes, use double+quotes
<ycy> oh, hehe. thanks :)
<ycy> why this different behaviour?
DarkFoxDK [DarkFoxDK!~darkfox@0x50a1b657.unknown.tele.dk] has joined #ruby
maletor [maletor!~maletor@pool-71-184-106-226.bstnma.fios.verizon.net] has joined #ruby
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby
blueadept [blueadept!~blueadept@unaffiliated/blueadept] has joined #ruby
Knodi [Knodi!~Knodi@c-68-43-246-216.hsd1.mi.comcast.net] has joined #ruby
<Hanmac> ycy: if you want no evaluation, then single quotes are faster .. i think
<UdontKnow> ycy: sometimes you need something that echoes #{ 1+1 } to the screen. how to do it with "" without an ugly hack? :P
<UdontKnow> Hanmac: sometimes you want to force the no-evaluation :)
Manhose_ [Manhose_!~Manhose@bl15-137-8.dsl.telepac.pt] has joined #ruby
<Hanmac> and are '' faster then "" ?
<matled> I wouldn't care too much about the performance impact, that should be insignificant for most projects.
j3r0m3 [j3r0m3!~j3r0m3@76-217-192-160.lightspeed.frokca.sbcglobal.net] has joined #ruby
<matled> single quotes basically take almost all characters as they are, only \' and \\ are special afaik (the first is a single quote, the second a backslash, only required to make a backslash followed by a single quote).
tomasantonj1 [tomasantonj1!~Adium@c213-89-112-209.bredband.comhem.se] has joined #ruby
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
TheMoonMaster [TheMoonMaster!~TMM@reddit/operator/themoonmaster] has joined #ruby
maltray [maltray!~maltray@r190-134-27-154.dialup.adsl.anteldata.net.uy] has joined #ruby
<zi> How do I get "module X"'s "def settings; {}; end" output from "module X"'s class "class Y < X"(which is in module X) instance?
jay_zawrotny [jay_zawrotny!~Jay@c-68-43-28-43.hsd1.mi.comcast.net] has joined #ruby
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby
theRoUS [theRoUS!~KenCoar@dsl093-240-159.ral1.dsl.speakeasy.net] has joined #ruby
theRoUS [theRoUS!~KenCoar@apache/committer/coar] has joined #ruby
edwardsharpe [edwardsharpe!~edwardsha@pppoe-dsl-115-254.accessatc.net] has joined #ruby
dyer_ [dyer_!~dyer@unaffiliated/dyer] has joined #ruby
djacobs [djacobs!~acts_as_d@99-116-125-86.lightspeed.gnvlsc.sbcglobal.net] has joined #ruby
ycy [ycy!~mb@62.169.41.27] has quit [#ruby]
jay_zawrotny [jay_zawrotny!~Jay@c-68-43-28-43.hsd1.mi.comcast.net] has joined #ruby
djacobs [djacobs!~acts_as_d@99-116-125-86.lightspeed.gnvlsc.sbcglobal.net] has joined #ruby
_sjs [_sjs!~s@c-98-244-18-81.hsd1.ca.comcast.net] has joined #ruby
_sjs [_sjs!~s@c-98-244-18-81.hsd1.ca.comcast.net] has quit ["Leaving"]
mohits1 [mohits1!~ms@223.180.59.221] 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
p1d [p1d!~p1d@tmo-103-80.customers.d1-online.com] has joined #ruby
fantazo [fantazo!~fantazo@178-191-160-249.adsl.highway.telekom.at] has joined #ruby
flip_digits [flip_digits!~textual@c-76-122-14-228.hsd1.fl.comcast.net] has joined #ruby
Natch [Natch!~natch@178.73.217.174] has joined #ruby
brownies [brownies!~brownies@unaffiliated/brownies] has joined #ruby
dotnull [dotnull!~dot_null@173-31-158-182.client.mchsi.com] has joined #ruby
rottenrec [rottenrec!~calvin@pool-74-100-117-52.lsanca.dsl-w.verizon.net] has joined #ruby
wyhaines [wyhaines!~wyhaines@24.143.25.13] has joined #ruby
nari [nari!~nari@2001:268:306:1:70be:4dff:fe3c:c104] has joined #ruby
milkpost [milkpost!~dec@173-28-195-157.client.mchsi.com] has joined #ruby
TheMoonMaster [TheMoonMaster!~TMM@reddit/operator/themoonmaster] has joined #ruby
sbanwart [sbanwart!~sbanwart@99-177-126-136.lightspeed.bcvloh.sbcglobal.net] has joined #ruby
emmanuelux [emmanuelux!~emmanuel@2a01:e35:2e4d:9010:21d:60ff:fe0e:b818] has joined #ruby
asteros [asteros!~asteros@c-68-38-211-11.hsd1.nj.comcast.net] has joined #ruby