Topic for #ruby-lang is now Ruby 1.9.3p0: http://ruby-lang.org | Paste >3 Lines of Text on http://pastie.org
ilyam_ [ilyam_!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby-lang
SkramX [SkramX!~SkramX@pool-173-73-134-143.washdc.east.verizon.net] has joined #ruby-lang
fayimora [fayimora!~fayimora@95.175.159.4] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@factory-smtp.factorylabs.com] has joined #ruby-lang
macmartine [macmartine!~macmartin@069-064-227-254.pdx.net] has joined #ruby-lang
takaokouji [takaokouji!~takaokouj@2001:268:306:3:226:8ff:fedd:31a3] has joined #ruby-lang
takaokouji [takaokouji!~takaokouj@2001:268:306:1:225:bcff:fedc:e1fe] has joined #ruby-lang
<postmodern> interesting, it appears 1.9 requires const_missing be defined as a class-method
<postmodern> and 1.8 wants it defined as an instance-method within the meta-class
<postmodern> ran into this when trying to override const_missing for ruby consoles
h4y4shi [h4y4shi!~chatzilla@rrcs-67-79-54-130.sw.biz.rr.com] has joined #ruby-lang
Kero [Kero!~kero@31-151-127-178.dynamic.upc.nl] has joined #ruby-lang
bryno [bryno!~b@unaffiliated/bryno] has joined #ruby-lang
<h4y4shi> I was looking at some code where they used double space instead of tab. Is there a difference between the two?
replore [replore!~replore@203.152.213.161.static.zoot.jp] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@c-67-165-197-126.hsd1.co.comcast.net] has joined #ruby-lang
<Spooner> h4y4shi: Most code uses double-space (or the occassional 4-space). Using tab is generally shunned.
* Spooner waits for a tab/space war.
<erikh> yay
<shevy> people using tabs are dumb
<h4y4shi> oh okay
<h4y4shi> so I can do a double space kind of thing?
<h4y4shi> are they functionally the same?
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
<Spooner> h4y4shi: You should be able to set your editor to do double-space when you press tab.
<h4y4shi> Okay I will try thanks for the tips
<shevy> h4y4shi: ruby allows you to use tabs and spaces however you like
<postmodern> down with tabs
<shevy> but ideally, however you decide, always stick to it consistently
<Spooner> Yes, it is purely an aesthetic difference in Ruby (unlike Python/YAML/etc).
<shevy> yeah. I settled for 2 spaces as indent in ruby
<postmodern> it's more important what your tabwidth is in your editor
<h4y4shi> My tabwidth is four spaces
<postmodern> since ruby code can become deeply nested, full tabs will push the code off the screen
<h4y4shi> Oh okay I see
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby-lang
macmartine [macmartine!~macmartin@c-24-21-112-60.hsd1.or.comcast.net] has joined #ruby-lang
ilyam [ilyam!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.40] has joined #ruby-lang
mztriz [mztriz!~mztriz@nkugateway.nku.edu] has quit [#ruby-lang]
ryanf [ryanf!~revfitz@50.0.160.40] has joined #ruby-lang
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby-lang
gregmore_ [gregmore_!~gregmoren@S01067444012f4469.vc.shawcable.net] has joined #ruby-lang
bglusman [bglusman!~bglusman@c-71-224-192-35.hsd1.pa.comcast.net] has joined #ruby-lang
uniqanomaly [uniqanomaly!~ua@dynamic-78-8-80-34.ssp.dialog.net.pl] has joined #ruby-lang
<drbrain> please use two spaces, it's what ruby uses: https://bugs.ruby-lang.org/projects/ruby/wiki/DeveloperHowto#coding-style
SuperTaz_work [SuperTaz_work!~supertaz_@38.99.52.59] has joined #ruby-lang
<erikh> I use 3
<drbrain> erikh: I hate you
<erikh> haha
<erikh> can't we all just get along?
<drbrain> yeah, once you stop using odd-numbered tab stops
jxie [jxie!~jxie@218.64.29.238] has joined #ruby-lang
<newbold> I'd always wondered about the tab stops
<drbrain> s/tab stops/indentation
<newbold> drbrain: ah, right
<newbold> I was noticing earlier when I was messing with vim (something I don't do often) that the default indentation when pressing tab was some unholy number of spaces
<newbold> it looked awful
<shevy> lol
<drbrain> for ruby, I have vim configured to make tab == 8 column indent
rpowell [rpowell!~rpowell@CPE-121-218-99-41.lnse4.ken.bigpond.net.au] has joined #ruby-lang
<drbrain> oops, tab == 2 column indent
<drbrain> so viewing files with tabs in them is fine
<drbrain> but then I cat the file and go WTF‽
<newbold> drbrain: wait, so should I be using 2 spaces for each line of indentation?
<erikh> drbrain: yeah, but that's because you work on the ruby source code
<shevy> newbold you should use 2 spaces consistently to indicate one level of indent when you work on ruby code
imperator [imperator!~Daniel@184-96-109-96.hlrn.qwest.net] has joined #ruby-lang
<erikh> linus swears by 8 space indent, or at least used to
<erikh> but this is one of those things that's totally personal preference
<shevy> hmm his premise is odd
<shevy> "Especially when you've been looking at your screen for 20 straight hours, you'll find it a lot easier to see how the indentation works if you have large indentations."
<shevy> never had that problem with 2 spaces indented ruby code
<erikh> not saying I agree with him -- it's just a personal taste thing is all
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
<erikh> fwiw here's the email: https://lkml.org/lkml/1996/9/30/19
<imperator> '96
<erikh> the internet is magical
* imperator used to use 3-space indentation, but switched to 2 a couple years ago
<shevy> hehe
flowerpot [flowerpot!~flower@ec2-50-112-114-252.us-west-2.compute.amazonaws.com] has joined #ruby-lang
WillMarshall [WillMarshall!~willmarsh@ppp121-44-86-68.lns20.syd6.internode.on.net] has joined #ruby-lang
macmartine [macmartine!~macmartin@c-24-21-112-60.hsd1.or.comcast.net] has joined #ruby-lang
ryanf [ryanf!~ryanf@230.sub-174-253-229.myvzw.com] has joined #ruby-lang
flowerpot [flowerpot!~flower@ec2-50-112-114-252.us-west-2.compute.amazonaws.com] has joined #ruby-lang
twittard_ [twittard_!~twittard@wc.lax.truecarcorp.com] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
macmartine [macmartine!~macmartin@c-24-21-112-60.hsd1.or.comcast.net] has joined #ruby-lang
MistyM [MistyM!~MistyM@50.72.70.192] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
jorgenpt [jorgenpt!~jorgenpt@arachnophobia.daxnet.org] has joined #ruby-lang
ryanf [ryanf!~rfitz@ec2-50-18-158-149.us-west-1.compute.amazonaws.com] has joined #ruby-lang
ylluminate [ylluminate!~ylluminat@rrcs-24-123-53-166.central.biz.rr.com] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
twittard [twittard!~twittard@cpe-76-169-74-39.socal.res.rr.com] has joined #ruby-lang
<MistyM> In a DSL, is there a way to make methods in a block resolve to different methods than when used outside the block?
<MistyM> E.g., foo 1 #=> @foo = 1; bar { foo 1 } #=> @bar = 1
<ryanf> MistyM: check out instance_eval
<MistyM> ryanf: Was having trouble figuring out how to define the method in a proper scope for that to work.
<MistyM> E.g., `define_method`ing within `def bar` wasn't enough, it used the original definitions.
jmontross1 [jmontross1!~Adium@static-96-236-65-137.snfcca.dsl-w.verizon.net] has joined #ruby-lang
<jmontross1> how may one send multiple params to a private method using .send(:method, param1)
<jmontross1> that works with one param… but when you have two i am not sure what to do..
<ryanf> .send(:method, param1, param2)
rpowell [rpowell!~rpowell@CPE-121-218-99-41.lnse4.ken.bigpond.net.au] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby-lang
<MistyM> ryanf: How would you suggest redefining the methods?
<MistyM> E.g., def bar &block; define_method etc. and def bar &block; class << self; define_method etc. don't seem to override the original method definitions.
rpowell [rpowell!~rpowell@CPE-121-218-99-41.lnse4.ken.bigpond.net.au] has joined #ruby-lang
<ryanf> MistyM: I'm not sure I understand what you're trying to do
<ryanf> instance_eval evaluates the block in the context of an entirely different object
<ryanf> so that object can have whatever methods you want
<ryanf> but it doesn't require redefining anything per se
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
brianpWins [brianpWins!~brianpWin@S01060014bf8930ea.vc.shawcable.net] has joined #ruby-lang
gokulnath [gokulnath!~gokulnath@115.111.177.122] has joined #ruby-lang
matled [matled!~matled@85.131.246.184] has joined #ruby-lang
My_Hearing [My_Hearing!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby-lang
<MistyM> ryanf: Oh, right.
<MistyM> Hm, I guess instance_eval only returns the most recent return value if multiple methods are in the block.
gokulnath [gokulnath!~gokulnath@115.111.177.122] has joined #ruby-lang
<bnagy> don't blocks always behave like that?
<MistyM> Yeah, don't know why I expected different.
<bnagy> getting the methods to work differently will be easy, but if you want to mess with ivars and stuff it's going to be tricky and ugly, I'd imagine
Phrogz [Phrogz!~phrogz@pdpc/supporter/professional/phrogz] has joined #ruby-lang
<MistyM> Yeah, I got it now. It's kind of crazy but works.
<Phrogz> This hurts my head: [{a:1,b:2},{c:3,d:4}].inject(&:merge) #=> {:a=>1, :b=>2, :c=>3, :d=>4}
<Phrogz> I don't understand how that Symbol#to_proc is working with inject.
rippa [rippa!~splitta@85.158.54.234] has joined #ruby-lang
<Phrogz> Some look smart and 'splain it to me.
<Phrogz> s/Some/Someone/
<bnagy> I guess merge is being used as the block and {a:1,b:2} is being used as the initial
<Phrogz> bnagy: Sure; but Symbol#to_proc I thought just sent the symbol-as-method name to the single block arg. How is the second block param coming in as an argument to merge?
<Phrogz> It's the same weirdness as (1..10).inject(&:+) #=> 55
<bnagy> why's that weird?
<bnagy> it's the first example in the documentation (I was about to paste the link to ;)
<Phrogz> bnagy: inject yields two values to its block, right?
<Phrogz> Rather...maybe I better go look at what Symbol#to_proc is really doing for blocks that aren't arity 1.
<bnagy> If you specify a symbol instead, then each element in the collection will be passed to the named method of memo. In either case, the result becomes the new value for memo
<bnagy> it's right there in the doc, I don't see what's odd?
<Phrogz> Let me create an example of weirdness, then. A few mins, perhaps.
ksinkar [ksinkar!~ksinkar@117.195.111.77] has joined #ruby-lang
krz [krz!~foobar@unaffiliated/krz] has joined #ruby-lang
<Phrogz> OK, it's not weird given that this works: http://pastie.org/3247723 Thus I've now learned that Symbol#to_proc sends the symbol as method to the first block param, and passes all extra block params as arguments to that send.
<Phrogz> Ah, I know why I was confused.
* Phrogz makes new example
<Phrogz> This is what I tried before to test how it handled the arity: http://pastie.org/3247727
<Phrogz> But I see now that it won't destructure arrays as multiple arguments for you automatically.
<Phrogz> OK, sanity restored. Symbol#to_proc is now officially cooler.
<bnagy> I have 0 idea what you are talking about
<bnagy> the first object becomes the memo, then subsequent objects get passed to :meth on the memo object, it's as simple as that
<bnagy> (1..10).inject(:+), 1 is the first memo, then memo=1.+2 (3) then memo=3.+3 etc
<bnagy> I'm not sure where arity is coming into it in those examples (merge and +)
<Phrogz> bnagy: Ignore inject, other than the fact that it passes two values to the block.
<Phrogz> The key here is that Symbol#to_proc has more utility than just block_arg.send(symbol)
<Phrogz> Other than &:+ for inject, this is the first time I've ever seen it used with a block that has more than one value yielded to it.
<Phrogz> And I always chalked &:+ up to inject weirdness, since it even lets you just pass a symbol, i.e. enum.inject(0,:+) if you want.
gregmore_ [gregmore_!~gregmoren@S01067444012f4469.vc.shawcable.net] has joined #ruby-lang
* Phrogz works to come up with a convoluted example using zip and each to do fun things to objects.
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
flowerpot [flowerpot!~flower@ec2-50-112-114-252.us-west-2.compute.amazonaws.com] has joined #ruby-lang
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby-lang
gregmore_ [gregmore_!~gregmoren@S01067444012f4469.vc.shawcable.net] has joined #ruby-lang
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
macmartine [macmartine!~macmartin@c-24-21-112-60.hsd1.or.comcast.net] has joined #ruby-lang
krz [krz!~foobar@2002:3a45:c93c:0:691b:34b4:c170:5d54] has joined #ruby-lang
krz [krz!~foobar@unaffiliated/krz] has joined #ruby-lang
mikeric [mikeric!~mike@S0106c03f0e8b23f3.vc.shawcable.net] has joined #ruby-lang
retro-in-better- [retro-in-better-!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
<Phrogz> Hrm, except of course #zip.each wouldn't actually yield two values; it'd yield the array of two values. That's a shame.
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
ahs3- [ahs3-!~ahs3-@adsl-065-005-193-158.sip.rdu.bellsouth.net] has joined #ruby-lang
cylence [cylence!~cylence@64-71-24-18.static.wiline.com] has joined #ruby-lang
flowerpot [flowerpot!~flower@ec2-50-112-114-252.us-west-2.compute.amazonaws.com] has joined #ruby-lang
cylence [cylence!~cylence@64-71-24-18.static.wiline.com] has joined #ruby-lang
vereteran [vereteran!~vereteran@static.88-198-170-117.clients.your-server.de] has joined #ruby-lang
ksinkar [ksinkar!~ksinkar@123.201.117.198] has joined #ruby-lang
flowerpot [flowerpot!~flower@ec2-50-112-114-252.us-west-2.compute.amazonaws.com] has joined #ruby-lang
vladalive [vladalive!~vladalive@176.52.68.243] has joined #ruby-lang
Phrogz [Phrogz!~phrogz@pdpc/supporter/professional/phrogz] has joined #ruby-lang
hitekrednek [hitekrednek!~new@static24-72-49-17.r.rev.accesscomm.ca] has joined #ruby-lang
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby-lang
bglusman [bglusman!~bglusman@c-71-224-192-35.hsd1.pa.comcast.net] has joined #ruby-lang
<shevy> hmm
<shevy> c = 'cat'; c.define_singleton_method(:hi) { p 'hi' }
<shevy> is the same as
<shevy> def c.hi
<shevy> ?
RORgasm [RORgasm!~rorgasm@nyv-exweb.iac.com] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby-lang
jmontross [jmontross!~Adium@64.74.213.74] has joined #ruby-lang
Locke23rus [Locke23rus!~quassel@128-70-125-206.broadband.corbina.ru] has joined #ruby-lang
JohnBat26 [JohnBat26!~Eugene@89.175.77.79] has joined #ruby-lang
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
yxhuvud [yxhuvud!mongo@h-5-47.a212.priv.bahnhof.se] has joined #ruby-lang
flowerpot [flowerpot!~flower@ec2-50-112-114-252.us-west-2.compute.amazonaws.com] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
lianj [lianj!~lianj@17.145.34.193.static.giga-dns.com] has joined #ruby-lang
lianj [lianj!~lianj@subtle/user/lianj] has joined #ruby-lang
jmontross [jmontross!~Adium@64.74.213.74] has quit [#ruby-lang]
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
gianlucadv [gianlucadv!~gianlucad@host78-84-dynamic.44-79-r.retail.telecomitalia.it] has joined #ruby-lang
<erikh> https://gist.github.com/f9eb9ed1d719e50f1b77 is not leaving the child alone when exit! is called
<erikh> anyone have any ideas?
<erikh> 1.9.3 fwiw
havenn [havenn!~skipper@pool-71-189-127-105.lsanca.fios.verizon.net] has joined #ruby-lang
<yxhuvud> stop molest the poor child!
<shevy> lol
<erikh> the poor child is being terminated by its parent
<erikh> don't blame the messenger :)
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby-lang
<erikh> #daemon should raise if it's failing so I'm not too worried about that being a problem
<erikh> and I checked with dtruss, no leaky descriptors unless you count the dtrace device
<zvrba> erikh: huh? the child exits of itself
csherin [csherin!~csherin@115.111.177.122] has joined #ruby-lang
<zvrba> erikh: it doesn't do anything but send USR1 to its parent and exits.
<erikh> use like this: daemonize; loop { sleep 1 }
<erikh> the parent should exit before it hits the loop statement, which it does do, but it takes out the child with it.
<erikh> (the child should loop.)
<zvrba> there is no reason for why the parent should exit before hitting loop
<erikh> you mean the if pid; loop { sleep 10 } doesn't do waht I expect? that'd be contrary to the documentation and all the debugging i've done
<zvrba> what do you expect it to do?
<erikh> properly terminate the parent and go on its merry way
<zvrba> or, why do you expect the parent to exit before loop is run
<erikh> read the code again, please.
stoor [stoor!~stoor@ip4da85716.direct-adsl.nl] has joined #ruby-lang
<zvrba> i am.
<erikh> ok, what happens when that Process.kill statement is run on the ppid of the child?
dr0id [dr0id!~andy@203.171.245.184] has joined #ruby-lang
<zvrba> what happens when fork is executed?
<erikh> what does fork return to the parent?
dr0id [dr0id!~andy@unaffiliated/dr0id] has joined #ruby-lang
<zvrba> childs PID
<erikh> right
<erikh> so if pid is going to do what
<zvrba> having a PID doesn't mean that the child has started to run
<zvrba> scheduling is non-deterministic.
<erikh> ok -- let me explain this in very pedantic terms
<zvrba> the kernel can create the child process, but you don't know when its first instruction will be run
<erikh> the if pid; loop { sleep 10 }; end only happens in the parent
<erikh> and loops endlessly
<erikh> it never exits the method
<zvrba> right
<zvrba> and?
<erikh> the child then executes kill(USR1) on the ppid
<erikh> which is trapped to call exit.
<zvrba> right.
<erikh> ok
<erikh> what is unclear here then
<zvrba> nothing. what's YOUR problem?
<erikh> look, my penis is HUGE
<erikh> I don't really care about yours.
<zvrba> or, what is happenning in this program, and what do you expect to happen?
<zvrba> there is no loop in the child process, why do you expect it to continue running_
thone_ [thone_!~thone@g226032204.adsl.alicedsl.de] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby-lang
<erikh> derp; my apologies, block form fork exits as soon as the block does
<erikh> forgot about that little detail ;)
ylluminate [ylluminate!~ylluminat@rrcs-24-123-53-166.central.biz.rr.com] has joined #ruby-lang
s0ra_h [s0ra_h!~sora_h@sorah.jp] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@46.118.230.39] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@subtle/user/kyrylo] has joined #ruby-lang
DRCALKIN [DRCALKIN!~DROOL_AND@cpe-66-69-208-144.austin.res.rr.com] has joined #ruby-lang
jMCg [jMCg!~hiro@static.117.115.40.188.clients.your-server.de] has joined #ruby-lang
jMCg [jMCg!~hiro@apache/committer/igalic] has joined #ruby-lang
solars [solars!~solars@clnet-kmu02-090.ikbnet.co.at] has joined #ruby-lang
<zenspider> minitest 2.11.0 released
krz [krz!~foobar@58.69.201.60] has joined #ruby-lang
krz [krz!~foobar@unaffiliated/krz] has joined #ruby-lang
postmodern_ [postmodern_!~postmoder@c-71-237-178-98.hsd1.or.comcast.net] has joined #ruby-lang
<zenspider> rubyinline 3.11.1 released
h4y4shi [h4y4shi!~chatzilla@rrcs-67-79-54-130.sw.biz.rr.com] has joined #ruby-lang
roadkith [roadkith!~kith@unaffiliated/kith] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
charper [charper!u1691@gateway/web/irccloud.com/x-xswnusiyaxaogiqa] has joined #ruby-lang
_ko1 [_ko1!~ko1@atdot.nue.ci.i.u-tokyo.ac.jp] has joined #ruby-lang
stoor [stoor!~stoor@095-097-012-177.static.chello.nl] has joined #ruby-lang
molgrew [molgrew!~bozo20@85.182.139.18] has joined #ruby-lang
mtkd [mtkd!znc@209-20-90-74.slicehost.net] has joined #ruby-lang
fayimora [fayimora!~fayimora@95.175.159.10] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
<zenspider> srbaker: 'sup bitch?
toretore [toretore!~toretore@crr06-3-82-231-12-81.fbx.proxad.net] has joined #ruby-lang
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
Stereokitsune [Stereokitsune!~mayoi@nessa.yuuzukiyo.net] has joined #ruby-lang
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby-lang
tvl [tvl!~tvl@arrakis.uio.no] has joined #ruby-lang
qpingu [qpingu!~Adium@67.218.117.238] has joined #ruby-lang
<zenspider> any brits awake?
flooose [flooose!~chris@mnch-5d86ef89.pool.mediaWays.net] has joined #ruby-lang
cyri_ [cyri_!~cyri_@149.93.119.80.rev.sfr.net] has joined #ruby-lang
shevy [shevy!~shevy@178-190-74-31.adsl.highway.telekom.at] has joined #ruby-lang
<bnagy> 0930 in london, so yes, probably lots
<rue> Millions, even
<zenspider> bnagy: I meant _here_... :P
simpleton_ [simpleton_!29874214@gateway/web/freenode/ip.41.135.66.20] has joined #ruby-lang
<simpleton_> Hey guys, I cannot get rid of the demon that is the HTTP segfault error. Need help or divine intervention!
Xzyx987X [Xzyx987X!~Xzyx987X@c-75-72-121-187.hsd1.mn.comcast.net] has joined #ruby-lang
vel_ [vel_!736fb17a@gateway/web/freenode/ip.115.111.177.122] has joined #ruby-lang
deryl [deryl!deryl@perfecting.rubyists.com] has joined #ruby-lang
kitallis [kitallis!~kitallis@122.172.247.109] has joined #ruby-lang
<rue> Does the ruby work for other things? E.g. if you try open-uri?
<shevy> nothing ever works
<vel_> https://gist.github.com/1675616 got problem in with variable scoping. I there a better way to wright it?
<simpleton_> hello again rue. Well it works with omniauth but crashes for a koala process. Haven't tried open-uri
zz_chrismcg [zz_chrismcg!~chrismcg@devilfish.octopod.info] has joined #ruby-lang
<rue> make test might also show errors
basicxman [basicxman!~basicxman@178.79.149.144] has joined #ruby-lang
basicxman [basicxman!~basicxman@unaffiliated/secrece] has joined #ruby-lang
<rue> vel_: Which problem?
TTilus [TTilus!terotil@idan.ihme.org] has joined #ruby-lang
t0h [t0h!thelineva@nikita.tnnet.fi] has joined #ruby-lang
<vel_> rue if the program is run it give a error un-defined variable callback_val
<molgrew> should it be defined?
<rue> The problem is rather obvious :)
<vel_> Is there a better way to perform nested callbacks that's my need.
<molgrew> is that a new problem?
<vel_> nope that's what I tried doing.
tekin [tekin!~tekin@cpc8-with5-2-0-cust208.1-4.cable.virginmedia.com] has joined #ruby-lang
<molgrew> try a search for the string 'callback_val' in your source code
<rue> Right, this has nothing to do with scoping as such
gnufied [gnufied!~gnufied@122.172.224.153] has joined #ruby-lang
dave_miles [dave_miles!~davemiles@gatej.mh.bbc.co.uk] has joined #ruby-lang
futurechimp [futurechimp!~futurechi@109.239.86.106] has joined #ruby-lang
flowerpot [flowerpot!~flower@ec2-50-112-114-252.us-west-2.compute.amazonaws.com] has joined #ruby-lang
heftig [heftig!jan@archlinux/developer/heftig] has joined #ruby-lang
zmack [zmack!~zmack@109.99.235.103] has joined #ruby-lang
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby-lang
chrismcg [chrismcg!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby-lang
x0F_ [x0F_!~x0F@unaffiliated/x0f] has joined #ruby-lang
mytrile [mytrile!~mytrile@94.26.28.135] has joined #ruby-lang
michael_mbp_ [michael_mbp_!~Marin@62.215.214.4] has joined #ruby-lang
dmathieu [dmathieu!u2561@gateway/web/irccloud.com/x-scfcvzajxstohxxa] has joined #ruby-lang
vladalive [vladalive!~vladalive@176.52.68.243] has joined #ruby-lang