fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
<phelps> rudyl313: http://codepad.org/jUyYFT66
<phelps> is what I expect
ph^ has quit [Remote host closed the connection]
<phelps> but what I get is {:test=>#}
<rudyl313> oh thats to be expected
bad_abbe has joined #ruby
<rudyl313> if you don't define a to_s method on that class
<rudyl313> then it'll print a standard to_s method from Object
<rudyl313> or whatever
<phelps> I dont get anything though
xorgnak has quit [Remote host closed the connection]
<phelps> just a #
<phelps> no <Object:blah>
<rudyl313> Does your object have a to_s method?
<phelps> nope
<rudyl313> paste your code in a gist or pastie
sonkei has quit [Quit: Textual IRC Client: www.textualapp.com]
shawn-p has quit [Ping timeout: 260 seconds]
shawn-p has joined #ruby
mahmoudimus has quit [Ping timeout: 240 seconds]
samflores has joined #ruby
samflores has quit [Client Quit]
luxurymode has joined #ruby
<rudyl313> phelps: sorry gotta run
rudyl313 has quit [Quit: Page closed]
<phelps> I figured it out :p
hbpoison has quit [Ping timeout: 272 seconds]
<phelps> or well
<phelps> "fixed magically"
mahmoudimus has joined #ruby
haxrbyte has quit [Remote host closed the connection]
jrajav has joined #ruby
bad_abbe has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 248 seconds]
getSetGoEtc has quit [Quit: Leaving]
sailias has joined #ruby
luckyruby has quit [Remote host closed the connection]
luckyruby has joined #ruby
lggr has joined #ruby
kirun has quit [Quit: Client exiting]
hadees has quit [Ping timeout: 260 seconds]
stephenjudkins has quit [Quit: stephenjudkins]
SCommette has joined #ruby
savage- has quit [Remote host closed the connection]
verto|off is now known as verto
stephh has joined #ruby
maletor has quit [Ping timeout: 240 seconds]
stephh is now known as stephhh
stephhh is now known as __steph
__steph is now known as stephh
maletor has joined #ruby
iamjarvo has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 252 seconds]
adelcampo is now known as doritostains
lggr has joined #ruby
yshh has joined #ruby
snorkdude has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jkary has quit [Quit: Leaving.]
hsbt has joined #ruby
hsbt_ has quit [Read error: Connection reset by peer]
AlbireoX has quit [Remote host closed the connection]
fbernier has quit [Ping timeout: 272 seconds]
adamkittelson has quit [Remote host closed the connection]
beneggett has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 268 seconds]
maxmmurphy has joined #ruby
nga4 has quit []
noahsussman has joined #ruby
pk1001100011 has joined #ruby
maxmmurphy has quit [Client Quit]
pskosinski has quit [Ping timeout: 260 seconds]
tyfighter has quit [Quit: tyfighter]
khakimov has joined #ruby
samflores has joined #ruby
Maniacal has quit [Remote host closed the connection]
<SeoxyS> so am i not understanding modules correctly? i thought you could do this:
lggr has joined #ruby
<SeoxyS> module Hello; def world; puts "Hello, world!"; end; end;
<SeoxyS> Hello.world
<eph3meral> SeoxyS: I think I came in late, I haven't seen your original question
yshh has quit [Remote host closed the connection]
<eph3meral> def self.world
<eph3meral> SeoxyS: ^
<SeoxyS> ah
<SeoxyS> got it
samflores has quit [Client Quit]
superjoe has joined #ruby
<superjoe> what's the 1.9 syntax to access an object instance's field by name?
mva3212 has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
<eph3meral> objinstance.fieldname ?
<eph3meral> superjoe: define "field" i suppose
<superjoe> say I have a variable which contains a symbol
<superjoe> which represents the property I want to access
<eph3meral> objinstance.send(var_that_is_a_symbol)
<superjoe> interesting
cbuxton has quit [Quit: Leaving.]
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
jgrevich has quit [Quit: jgrevich]
phelps has quit [Quit: Linkinus - http://linkinus.com]
stkowski has quit [Quit: stkowski]
sorbo_ has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
mmitchell has joined #ruby
mmitchell has quit [Remote host closed the connection]
lggr has joined #ruby
mmitchell has joined #ruby
recycle has joined #ruby
mmitchell has quit [Remote host closed the connection]
Boris317 has joined #ruby
ben_alman_ has quit [Quit: Bloops!]
GoHuyGo has quit [Quit: Leaving]
talsamon has joined #ruby
zeromodulus has joined #ruby
xorgnak has joined #ruby
chrishunt has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
wchun has quit [Quit: Leaving]
iori has joined #ruby
swarley has quit [Ping timeout: 244 seconds]
yshh has joined #ruby
ben_alman has joined #ruby
zeromodulus has quit [Ping timeout: 240 seconds]
zeromodulus has joined #ruby
lggr has joined #ruby
Virunga has quit [Remote host closed the connection]
luckyruby has quit [Remote host closed the connection]
chichou has joined #ruby
chichou has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
chichou has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
AlbireoX has joined #ruby
gfontenot has quit []
r0bby has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
idletom has joined #ruby
mmitchell has joined #ruby
sailias has quit [Quit: Leaving.]
GoldenCider has quit [Quit: GoldenCider]
alunduil has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
samflores has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
verto is now known as verto|off
samflores has quit [Client Quit]
verto|off is now known as verto
dhruvasagar has quit [Ping timeout: 264 seconds]
chrishunt has quit [Ping timeout: 252 seconds]
swarley has joined #ruby
amaya_ has joined #ruby
dhruvasagar has joined #ruby
AlbireoX has quit [Remote host closed the connection]
recycle has quit [Remote host closed the connection]
c0rn_ has quit [Quit: Computer has gone to sleep.]
Guedes0 has quit [Ping timeout: 268 seconds]
<chiel> hey guys
lggr has joined #ruby
<chiel> has any of you ever made a ruby app that auths against github's api?
<chiel> i want to use it, but i'm unsure how that works with local development and all
<havenn> chiel: Omniauth?
<chiel> havenn: yeah that's what I want to use. I'm just curious how it works with callback urls and all
<chiel> or I guess maybe I'm supposed to point my domain at localhost, or something?
aquaranto_ has joined #ruby
hbpoison has joined #ruby
hbpoison has quit [Client Quit]
hbpoison has joined #ruby
zemanel has quit [Quit: zemanel]
havenn has quit [Remote host closed the connection]
zemanel has joined #ruby
Hanmac1 has joined #ruby
wchun has joined #ruby
mmitchell has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
Hanmac has quit [Ping timeout: 268 seconds]
alunduil has left #ruby ["Leaving"]
savage- has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
luckyruby has joined #ruby
vitor-br has quit [Read error: Connection reset by peer]
Companion has joined #ruby
daniel_hinojosa1 has quit [Ping timeout: 252 seconds]
artOfWar has quit [Remote host closed the connection]
neurotech has joined #ruby
pu22l3r has joined #ruby
rubious has quit [Quit: Leaving...]
ncr100 has quit [Ping timeout: 268 seconds]
adeponte has quit [Remote host closed the connection]
manizzle has quit [Ping timeout: 245 seconds]
echobravo has quit [Read error: Connection reset by peer]
bananagram has quit [Quit: WeeChat 0.3.8]
bananagram has joined #ruby
rubious has joined #ruby
lggr has joined #ruby
savage- has quit [Ping timeout: 260 seconds]
ph^ has joined #ruby
beneggett has joined #ruby
squareduck has joined #ruby
chichou has quit [Remote host closed the connection]
daniel_hinojosa has joined #ruby
rubious has quit [Quit: Leaving...]
ph^ has quit [Ping timeout: 268 seconds]
lggr has quit [Ping timeout: 272 seconds]
talsamon has quit [Ping timeout: 252 seconds]
squareduck has quit [Quit: Leaving]
talsamon has joined #ruby
digitalcakestudi has joined #ruby
cakehero has joined #ruby
squareduck has joined #ruby
lggr has joined #ruby
AlbireoX has joined #ruby
iamjarvo has joined #ruby
Monofu has joined #ruby
jenrzzz_ has quit [Ping timeout: 255 seconds]
pk1001100011 has quit [Quit: 4 am :o]
<tarwich> I've been googling all day for console ui support in ruby. Curses seems like the best bet and I'm able to use it so far. However, on Apple's Mountain Lion the charset is all screwy (???? instead of ——). Can anyone recommend a console ui I might try?
<xorgnak> curses is it.
<tarwich> Well at least I know I'm on the right path. Thanks, xorgnak
<xorgnak> no clue. I live in the linux world.
<xorgnak> Im sure you could specify the right character set somehow though.
Agis__ has quit [Quit: Agis__]
lggr has quit [Ping timeout: 260 seconds]
ryanf has quit [Ping timeout: 272 seconds]
zemanel has quit [Quit: Remote hottie closed the connection]
<xorgnak> you could probably do it in your bashrc
nai has joined #ruby
chrxn_ has joined #ruby
<tarwich> Trying to figure out how to tell what is causing this. Since it's the same code I'm certain somewhere I have a codepage or something in bash that's causing it. Looking for the command to get that information.
Guest___ has joined #ruby
ngoldman has joined #ruby
Monofu has quit [Quit: quit]
lggr has joined #ruby
AlbireoX has quit [Remote host closed the connection]
joshman_ has joined #ruby
GoGoGarrett has joined #ruby
daniel_hinojosa has quit [Ping timeout: 245 seconds]
nai has quit [Remote host closed the connection]
maletor has joined #ruby
nai has joined #ruby
<bricker88> I didn't know ruby supported the python-like "not" syntax
<GoGoGarrett> https://gist.github.com/03d2186dd591cb17c114 is there a way to simplify this method?
daniel_hinojosa has joined #ruby
nai has quit [Remote host closed the connection]
kvirani has quit [Remote host closed the connection]
pipopopo has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 260 seconds]
GraemeLion has quit [Quit: out]
AlbireoX has joined #ruby
Ruler_Of_Heaven_ has joined #ruby
joshman_ has quit [Ping timeout: 260 seconds]
cj3kim has quit [Quit: Leaving]
F1skr has quit [Quit: WeeChat 0.3.8]
gfontenot has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 252 seconds]
r0bby has quit [Ping timeout: 244 seconds]
xorgnak has quit [Ping timeout: 260 seconds]
Ruler_Of_Heaven_ has quit [Ping timeout: 246 seconds]
pipopopo has joined #ruby
SeoxyS is now known as kenneth
snorkdude has joined #ruby
_jesse_ has joined #ruby
xorgnak has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
AlbireoX has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
hbpoison has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
beneggett has joined #ruby
pingfloyd has joined #ruby
bricker88 has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 248 seconds]
eph3meral has quit [Quit: eph3meral]
chrxn_ has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
AlbireoX has joined #ruby
luxurymode has quit [Quit: Computer has gone to sleep.]
bnagy_ has quit [Remote host closed the connection]
freeayu has joined #ruby
qos has joined #ruby
fbernier has joined #ruby
axl_ has quit [Quit: axl_]
hbpoison has quit [Ping timeout: 240 seconds]
<kenneth> hey if i want to wrap around a method that takes a block
neurotech has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 245 seconds]
<kenneth> like, i want to make a method that takes a block, does some stuff, and then passes that block to another method
<kenneth> i just take &block as an argument, but then how do i pass that block to the other method, do i just add it as the last argument of that method?
ilyam has quit [Quit: ilyam]
Juul has quit [Ping timeout: 264 seconds]
justinmcp has quit [Remote host closed the connection]
Synthead has joined #ruby
pu22l3r has quit [Remote host closed the connection]
lggr has joined #ruby
nari has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
X-Jester has quit [Ping timeout: 255 seconds]
alvaro_o has quit [Quit: Ex-Chat]
mercwithamouth has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
xpen has joined #ruby
gfontenot has quit []
lggr has quit [Ping timeout: 260 seconds]
justinmcp has joined #ruby
TandemAdam__ has joined #ruby
uris has joined #ruby
TandemAdam has joined #ruby
nari has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
banisterfiend has quit [Ping timeout: 265 seconds]
<fowl> kenneth: to pass it as a block use the & symbol too
maxmmurphy has joined #ruby
TandemAdam_ has quit [Ping timeout: 268 seconds]
TandemAdam__ has quit [Ping timeout: 246 seconds]
c0rn_ has joined #ruby
<fowl> other_method(args, &block)
manizzle has joined #ruby
riley526 has joined #ruby
jrajav has quit []
jasonkuhrt has joined #ruby
daniel_hinojosa has quit [Ping timeout: 240 seconds]
ken_barber1 has joined #ruby
ken_barber has quit [Ping timeout: 252 seconds]
asklov has quit [Ping timeout: 264 seconds]
ewag has joined #ruby
lggr has quit [Ping timeout: 272 seconds]
c0rn_ has quit [Quit: Computer has gone to sleep.]
snorkdude has quit [Remote host closed the connection]
lggr has joined #ruby
daniel_hinojosa has joined #ruby
<chiel> anyone have experience with omniauth?
cakehero has quit [Quit: Leaving...]
<chiel> more specifically with omniauth-github? :)
radic has quit [Disconnected by services]
radic_ has joined #ruby
asv has joined #ruby
radic_ is now known as radic
jenrzzz has joined #ruby
wav1 has joined #ruby
wav1 has left #ruby [#ruby]
chessguy has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
wargasm has joined #ruby
c0rn_ has joined #ruby
sorbo_ has quit [Quit: sorbo_]
cakehero has joined #ruby
riley526 has quit [Remote host closed the connection]
digitalcakestudi has quit [Ping timeout: 244 seconds]
<superjoe> is there a way to make it so I can set any arbitrary fields in a ruby object?
kiyoura has quit [Quit: Leaving]
<swarley> superjoe, can you elaborate?
<superjoe> better question: what's the most readable code that achieves this?
<swarley> what do you mean by fieldds?
<swarley> -d
<superjoe> properties
<superjoe> instance variables
<swarley> like
<swarley> ah
<swarley> Object#instance_variable_set
<superjoe> interesting
<superjoe> thanks
<swarley> obj.instance_variable_set("@sample_var_you_may_not_know", 1)
<swarley> no problem
joelsotherbeard has joined #ruby
<joelsotherbeard> I am struggling to understand the meaning of clone_method and ! methods, google is providing little help. Can anyone give some insight
bricker88 has joined #ruby
bricker88 has quit [K-Lined]
<swarley> joelsotherbeard, typically
<swarley> if a method is postfixed with a '!', it effects the variable directly
<swarley> meaning, "Hello".downcase actually changes the object to "hello"
<swarley> err
<swarley> downcase!
<swarley> while "Hello".downcase only returns "hello", the string object is preserved and is still "Hello"
<joelsotherbeard> Ah
Spooner has quit [Ping timeout: 245 seconds]
<joelsotherbeard> Ok, so I am looking at some code where they have both versions of the method. Is that simply for two different situations? Wouldn't one or the other be required and not both?
lggr has joined #ruby
<joelsotherbeard> It seems like a common pattern to have both
<swarley> Well, having a '!' method is convenient when you want to consolidate obj = obj.method
TandemAdam has quit [Read error: Connection reset by peer]
<swarley> and the other is if keeping the data the same is important
TandemAdam has joined #ruby
cbuxton has joined #ruby
<joelsotherbeard> ok, that makes sense. Thanks a lot. That was a good explanation. It's hard to find that info online in an understandable form
joelsotherbeard is now known as joelsbeard
<swarley> No problem. Always good to help out
cbuxton has quit [Client Quit]
maletor has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
justinmcp has quit [Remote host closed the connection]
seanstickle has quit [Quit: seanstickle]
kenneth has quit [Quit: kenneth]
verto is now known as verto|off
banisterfiend has joined #ruby
ZachBeta has joined #ruby
uris has quit [Quit: Lost terminal]
ilyam has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
Synthead has quit [Ping timeout: 244 seconds]
kn330 has quit [Ping timeout: 272 seconds]
lggr has joined #ruby
ken_barber1 has quit [Remote host closed the connection]
stephh has quit [Ping timeout: 252 seconds]
bluOxigen has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
xpen has quit [Remote host closed the connection]
xpen has joined #ruby
explody has quit [Read error: Connection reset by peer]
explody has joined #ruby
RichieEvan has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
AlbireoX has quit [Remote host closed the connection]
ilyam has quit [Quit: ilyam]
lggr has quit [Ping timeout: 246 seconds]
maletor has joined #ruby
justinmcp has joined #ruby
ewag has quit [Ping timeout: 264 seconds]
lggr has joined #ruby
RichieEvan has joined #ruby
cj3kim has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
xorgnak has quit [Remote host closed the connection]
Bosma has quit [Ping timeout: 260 seconds]
<superjoe> I have a basic language question that is hard to put into words, so I made a pastie: http://pastie.org/4717715
<superjoe> desired output is at the bottom
<superjoe> this code does not work, what am I doing wrong?
<chiel> which document storage would you guys recommend for getting started with?
<swarley> chiel, like, configuration file?
voodoofish430 has quit [Quit: Leaving.]
null- has left #ruby [#ruby]
<chiel> swarley: just in general. i'm new to document storage, but it makes sense for the app i am working on
<swarley> superjoe, fields should be @fields
ananthakumaran has joined #ruby
kenneth has joined #ruby
Drewch has quit [Excess Flood]
<swarley> because you're using an instance variable
<superjoe> swarley, then I get test.rb:8:in `field': undefined method `[]=' for nil:NilClass (NoMethodError)
<swarley> ah, try putting it in initialize
Drewch has joined #ruby
<chiel> i was thinking of going with mongodb, but i'm not 100% sure if it's the best thing out there when it comes to document storage
<swarley> def initialize; @fields = {}; end
<chiel> since there's also couch, and probably countless others.
<swarley> chiel, are you talking about databases?
lggr has quit [Ping timeout: 244 seconds]
bluOxigen has joined #ruby
<chiel> swarley: yes, my bad
<chiel> i should've said document storage db
<chiel> :)
<swarley> It's no problem
<swarley> SQLite is generally a safe one
<superjoe> swarley, same error - could you give a working example?
<swarley> sure
<chiel> swarley: SQLite is relational though, no?
<chiel> my app currently runs on mysql, but it seems to make more and more sense to use a document-based database
lggr has joined #ruby
n_blownapart has joined #ruby
ryanf has joined #ruby
<n_blownapart> hi. When a Set is created and stored in say @hash ||= Hash.new , and only hash keys are stored, are the paired values somehow bound to the keys? thanks
<swarley> n_blownapart, can you show me a sample data structure?
<swarley> of how it would look
xorgnak has joined #ruby
bluOxigen has quit [Ping timeout: 268 seconds]
<swarley> superjoe, I can't understand why it's not working, i tried doing it myself with no luck
mva3212 has joined #ruby
<n_blownapart> yeah one sec. its the Ruby lib Set.rb initialize method. one sec swarley
<swarley> kk
<superjoe> swarley, thanks anywy.
<superjoe> anyone else want to take the challenge?
<swarley> chaplain, ah, well. i've heard good things about mongo. And SQLite is pretty good if you want it to be fast and compact. But if you want to move away from SQL, i qouldnt recommend it
<swarley> i'm sorry, I meant chiel
ryanf has quit [Ping timeout: 268 seconds]
<n_blownapart> swarley: thanks -- http://pastie.org/4717745
<chiel> swarley: cheers, relational made sense in the first iteration, but documents will be much handier now, i feel
<swarley> good luck
banisterfiend has quit [Ping timeout: 240 seconds]
<chiel> hehe thanks
<chiel> i'll need it!
rubious has joined #ruby
<superjoe> time + diligence beats luck any day
<chiel> true :)
jasonkuhrt has quit [Quit: Leaving...]
<chiel> time is sparse though
lggr has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
xorgnak has quit [Ping timeout: 255 seconds]
swarley has quit [Ping timeout: 260 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
luxurymode has joined #ruby
aristidesfl has quit []
Banistergalaxy has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
<Banistergalaxy> Hi boys
<n_blownapart> banistergalaxy please love me
adeponte has joined #ruby
<Banistergalaxy> Not into older men
<rking> Haha
maxmmurphy has quit [Quit: maxmmurphy]
<n_blownapart> Banistergalaxy: what about as Plato did?
lggr has quit [Ping timeout: 246 seconds]
<n_blownapart> hi. When a Set is created and stored in say @hash ||= Hash.new , and only hash keys are stored, are the paired values somehow bound to the keys? thanks http://pastie.org/4717745
asv has quit [Ping timeout: 260 seconds]
blazes816 has quit [Quit: blazes816]
<n_blownapart> that is from Set.rb initialize method ^^
lggr has joined #ruby
h4mz1d has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
nai has joined #ruby
<Banistergalaxy> N_blownapart youre a cock in a sock
ngoldman has quit [Remote host closed the connection]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<n_blownapart> Banistergalaxy: lol
adeponte has quit [Remote host closed the connection]
rjsamson has quit [Remote host closed the connection]
<n_blownapart> Banistergalaxy: praise from you is praise indeed
pdtpatrick has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
maxmmurphy has joined #ruby
cj3kim has quit [Client Quit]
lggr has quit [Ping timeout: 246 seconds]
joelsbeard has quit [Ping timeout: 244 seconds]
<n_blownapart> are values always bound to keys when keys are getting passed around, or are they somewhere else in memory?
ken_barber has joined #ruby
lggr has joined #ruby
cableray has quit [Quit: cableray]
imbric has joined #ruby
TandemAdam has quit [Quit: Leaving]
<superjoe> can a parent class store static attributes which differ between children?
shiki has joined #ruby
TandemAdam has joined #ruby
moshee has quit [Ping timeout: 272 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
TandemAdam has quit [Client Quit]
nai has quit [Remote host closed the connection]
<rking> superjoe: Ehh. You're xy probleming us hardcore.
<superjoe> rking, http://pastie.org/4717715
<rking> superjoe: I don't see from that code what you want, and certainly not why you want it.
<rking> superjoe: When lines 15 and 19 execute, they go into the self.field method with "self" as A and B, not as Parent
<rking> superjoe: Try it — add a `p self` at the top of that self.field method.
lggr has quit [Ping timeout: 268 seconds]
<rking> So of course it's only defining attr_accessor's for the child classes.
<rking> But anyway I don't know w{hat,hy} you want that.
<superjoe> forget the attr_accessor. that's a red herring
<rking> Also I don't know where "fields" is supposed to come from.
<superjoe> the bigger goal is to declare a class using fields which are used by the parent class to serialize the object
lggr has joined #ruby
<rking> Why does the Parent need to know about A's stuff?
X-Jester has joined #ruby
<n_blownapart> hi is a key/value paired object technically one object or do keys get passed around separately? thanks
<superjoe> rking, does it become more clear when I add this? http://pastie.org/4717715
nai has joined #ruby
<rking> superjoe: Now it's crashing pastie. Just use https://gist.github.com
guns has quit [Ping timeout: 252 seconds]
daniel_hinojosa has quit [Ping timeout: 252 seconds]
AlbireoX has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
ilyam has joined #ruby
maxmmurphy has quit [Quit: maxmmurphy]
daniel_hinojosa1 has joined #ruby
imbric has left #ruby [#ruby]
lggr has quit [Ping timeout: 246 seconds]
nari has joined #ruby
luxurymode has quit [Quit: Computer has gone to sleep.]
<superjoe> rking, I suppose the bigger question I'm asking is, "how do I write my own `attr_accessor`s". e.g. how do I write DSL like that with a minimal amount of nasty unreadable metaprogramming
openczun has joined #ruby
<fowl> superjoe: attr_reader is just def NAME() @NAME end
lggr has joined #ruby
amaya_ has quit [Ping timeout: 260 seconds]
<rking> superjoe: Hrm, I don't quite see the link between that question and this code
openczun has left #ruby [#ruby]
<rking> superjoe: But what I think you seem to want is a @fields member of A, as in class A; @fields = {} end
<superjoe> rking, the idea is that I shouldn't have to declare that in every child
lsousa has joined #ruby
<superjoe> I should only have to inherit from Parent and then I can declare `field` whenever I want without any more setup
<rking> Then self.field and self.show can just access @fields, because again, inside those methods "self" is A or B.
bananagram has quit [Ping timeout: 260 seconds]
entrenador has joined #ruby
iamjarvo has quit [Ping timeout: 244 seconds]
<rking> superjoe: Well, you can pepper a @fields ||= {} here or there in the Parent methods.
<superjoe> ah
<rking> I think actually it'll only be needed in self.field, because that'll be called first before the other accesses of it.
<superjoe> yep that's it
<n_blownapart> hey fowl are key/value pairs single objects? why are hashes slower than other sorts of objects? I can't figure out if keys are separate or always bound to their value.
<superjoe> thanks
<rking> Np. =)
<n_blownapart> rking ? ^^
noyb has joined #ruby
macmartine has joined #ruby
h4mz1d has quit [Ping timeout: 260 seconds]
<rking> n_blownapart: The pairs are not single objects. The Hash's main responsibility is associating the key to the value.
<rking> But as for slowness I don't know where the question is coming from or going. I bet you can't demonstrate the slowness.
igaiga has joined #ruby
emanu has joined #ruby
<n_blownapart> rking: I certainly can't show it, the book commented that they are "harder to handle" than arrays, or something to that effect. thanks
<rking> Wait, what book?
<n_blownapart> rking: the well-grounded rubyist -- thanks. so you mean each *element* of the pair is *not* a single entity, or is?
lggr has quit [Ping timeout: 255 seconds]
pu22l3r has joined #ruby
<superjoe> rking, shoot. one more thing (here's my gist again: https://gist.github.com/3719780/) - how would I access child.fields in the :show instance method?
lggr has joined #ruby
<rking> superjoe: Open a line above line 25 and add: p self
<rking> Tell me what it says.
<superjoe> rking, it's the child class, because line 25 is in a static method.
<superjoe> rking, at line 6, self is an instance
diegoviola has joined #ruby
<n_blownapart> so rking , when you define a key/value pair, are you binding two objects together, and can the key get passed separately as an argument, or refer to the value elsewhere? this is what I don't see. sorry, thanks.
<superjoe> ah, you can do .class on an instance
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<rking> superjoe: What does line 6 have to do with your question about 'show'?
<superjoe> rking, sorry, typo. s/show/render/
amaya_ has joined #ruby
<superjoe> rather annoying typo
tarwich has quit [Quit: Leaving.]
mbk has joined #ruby
<superjoe> I can get it with self.class.instance_variable_get(:@fields)
<superjoe> but surely there is a cleaner way?
<rking> superjoe: You should probably provide an accessor for self.fields to expose @fields, then in :render you can be all self.class.fields and stuff.
a_a_g has joined #ruby
<rking> Same thing, but the accessor looks more on-purpose.
<rking> Another option would be to define an accessor that takes a block. def self.each_field
ken_barber has quit [Remote host closed the connection]
<superjoe> cool
Tearan has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
<superjoe> thanks for the help rking
<Banistergalaxy> Superjoe my name isn't rking and I didn't help you
sagax has quit [Quit: Ухожу я от вас]
<superjoe> cute
lggr has quit [Ping timeout: 252 seconds]
mbk has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
tonini has joined #ruby
nat2610 has quit [Ping timeout: 246 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
ananthakumaran has joined #ruby
bnagy has joined #ruby
banisterfiend has joined #ruby
chendo_ is now known as chendo
pu22l3r has quit [Remote host closed the connection]
jjang has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 255 seconds]
Guest___ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Vert has quit [Ping timeout: 252 seconds]
Guest81709 has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
entrenador has quit [Quit: entrenador]
i8igmac has joined #ruby
Guest81709 has quit [Client Quit]
<i8igmac> im hacking a hard time with scan(//)
banisterfiend has quit [Ping timeout: 260 seconds]
<i8igmac> i just need the very next farword slash after a simple string
mrdodo has quit [Remote host closed the connection]
<i8igmac> data.scan(/SIMPLEstring.*. #{farwordslash} /)
<i8igmac> there may be hundreds of forward slash's but i only need the first one
n_blownapart has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
lggr has joined #ruby
Banistergalaxy has joined #ruby
igaiga has quit [Remote host closed the connection]
macmartine has quit [Quit: Computer has gone to sleep.]
n_blownapart has joined #ruby
billycravens has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
nari has quit [Ping timeout: 260 seconds]
arubin has quit [Quit: arubin]
hemanth has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
hemanth has joined #ruby
justinmcp has quit [Remote host closed the connection]
hemanth has quit [Read error: Connection reset by peer]
mark06 has joined #ruby
mark06 has left #ruby [#ruby]
beakerman has quit [Remote host closed the connection]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
justinmcp has joined #ruby
hemanth has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
nai has quit [Remote host closed the connection]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
bluOxigen has joined #ruby
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
lggr has joined #ruby
robbyoconnor has joined #ruby
xpen_ has joined #ruby
xpen has quit [Read error: Connection reset by peer]
igaiga has joined #ruby
arietis has joined #ruby
nari has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
r0bby has joined #ruby
lolmaus has joined #ruby
und3f has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
sspiff has quit [Ping timeout: 244 seconds]
r0bby has quit [Read error: Connection reset by peer]
r0bby has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
r0bby is now known as robbyoconnor
lggr has quit [Ping timeout: 264 seconds]
lggr has joined #ruby
nai has joined #ruby
ryanf has joined #ruby
manizzle has quit [Remote host closed the connection]
aces1up has quit [Ping timeout: 244 seconds]
Morkel has joined #ruby
deryl has quit [Quit: Leaving.]
SCommette has joined #ruby
ph^ has joined #ruby
MasterIdler_ has joined #ruby
nai has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
ABK has joined #ruby
RichieEvan_ has joined #ruby
abionic has joined #ruby
RichieEvan_ has quit [Client Quit]
ryanf has quit [Ping timeout: 244 seconds]
RichieEvan_ has joined #ruby
dandy has joined #ruby
maletor has joined #ruby
<dandy> Any people from portland in here?
RichieEvan has quit [Quit: RichieEvan]
RichieEvan_ has quit [Client Quit]
RichieEvan has joined #ruby
fbernier has quit [Ping timeout: 272 seconds]
lggr has quit [Ping timeout: 240 seconds]
xpen_ has quit [Remote host closed the connection]
ABK has quit [Ping timeout: 260 seconds]
xpen has joined #ruby
ilyam has quit [Quit: ilyam]
xpen has quit [Read error: Connection reset by peer]
xpen has joined #ruby
dandy has left #ruby ["Leaving"]
idletom has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
igaiga has quit [Remote host closed the connection]
answer_42 has joined #ruby
gavit_ has quit [Read error: Connection reset by peer]
eldariof has joined #ruby
igaiga has joined #ruby
igaiga has quit [Read error: Connection reset by peer]
igaiga has joined #ruby
mrdodo has joined #ruby
nari has quit [Ping timeout: 240 seconds]
Sou|cutter has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
nari has joined #ruby
SCommette has quit [Quit: SCommette]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
igaiga has quit [Remote host closed the connection]
GoldenCider has joined #ruby
ltsstar has joined #ruby
igaiga has joined #ruby
lggr has joined #ruby
diegovio1a has joined #ruby
gavit has joined #ruby
mohits_ has joined #ruby
mohits has quit [Read error: Connection reset by peer]
senny has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
abionic has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
qos has quit [Read error: Connection reset by peer]
qos has joined #ruby
lggr has joined #ruby
knirhs has quit [Read error: Connection reset by peer]
n_blownapart has quit [Remote host closed the connection]
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
burgestrand has joined #ruby
dhruvasagar has joined #ruby
kil0byte has joined #ruby
<i8igmac> can some one help me with var.scan(//)
amaya_ has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
<bnagy> help how
<i8igmac> var.scan(/XXX.*. #{the_very_next_quote}/)
<i8igmac> xxx.*."
<bnagy> I have no idea what you're talking about
<i8igmac> this will always go to the very last quote... but i need the first quote
<bnagy> provide a sample input and a desired output
<i8igmac> var.scan(/XXX.*. "/)
<bnagy> first up sounds like you want a non-greedy *
<bnagy> but it doesn't sound like you wabt scan at all
<i8igmac> xxxid=12345"_junk_abcdefghijk_junk"1"2"3"$
<bnagy> *want
<i8igmac> i just need the xxxid12345
tommyvyo has quit [Quit: Computer has gone to sleep.]
maesbn has joined #ruby
<bnagy> str[/(.*?)"/,1] maybe
lggr has quit [Ping timeout: 244 seconds]
<i8igmac> this is my example
<bnagy> my solution appears to wor, no?
<bnagy> damn, still hungover, cannot type
<i8igmac> sorry im not sure if i understand
<bnagy> s[/(.*?)"/,1]
lggr has joined #ruby
<bnagy> => "xxxid=12345"
<bnagy> where s is your string above
matrixise has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
kenneth has quit [Quit: kswizz.com]
gavit has quit [Read error: Connection reset by peer]
<i8igmac> with this regex tool... im testing... i notice it says match 1 match 2 match 3 and so on
<i8igmac> that was with what you suggest
<i8igmac> but comma 1 fails
noyb has quit [Ping timeout: 244 seconds]
daniel_hinojosa1 has quit [Quit: Leaving.]
<bnagy> ignore rubular
<bnagy> the [] part is a method on String, the regexp itself is just /(.*?)"/
<i8igmac> Ok, so string='STARTIDXXX100000879041370\">Bobby Knight\u003C\/a>\u003C\/div>\u003Cdiv class=\"pts\">\u003Cspan class=\"FriendL'
<i8igmac> s[/(.*?)"/]
maxmmurphy has joined #ruby
<i8igmac> i see this works
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
<bnagy> it will get the backslash also, if that's your string
ryanf has joined #ruby
<i8igmac> s.scan(/(.*?)"/)[0]
<i8igmac> that also works
fantazo has quit [Remote host closed the connection]
<bnagy> yeah but using scan is dumb
<i8igmac> i see
<bnagy> if you don't want the backslash just add it outside the group
Sargun has joined #ruby
<i8igmac> so, this just looks for quotes
<bnagy> string[/(.*?)\\"/,1] => "STARTIDXXX100000879041370"
<Sargun> What's the cost of a require? Any reason I wouldn't put require only in the method that actually depends on the library
mohits_ has quit [Ping timeout: 252 seconds]
<bnagy> Sargun: some people do that, but it's fugly
lggr has quit [Ping timeout: 260 seconds]
passbe has quit [Ping timeout: 244 seconds]
Konboi has joined #ruby
lggr has joined #ruby
gavit has joined #ruby
kil0byte_ has joined #ruby
c0rn_ has joined #ruby
xpen has quit [Remote host closed the connection]
xpen has joined #ruby
abionic has joined #ruby
kil0byt__ has joined #ruby
chimay has joined #ruby
chimay has quit [Changing host]
chimay has joined #ruby
sambio has quit []
kil0byte has quit [Ping timeout: 244 seconds]
djdb has joined #ruby
noyb has joined #ruby
cezar has joined #ruby
igaiga has quit [Remote host closed the connection]
eldariof has quit [Ping timeout: 244 seconds]
kil0byte_ has quit [Ping timeout: 246 seconds]
cezar has quit [Client Quit]
stepnem has joined #ruby
timonv has joined #ruby
qos_ has joined #ruby
qos has quit [Read error: Connection reset by peer]
<Sargun> bnagy: Is there any technical reason not to do that
<Sargun> bnagy: I'm using v8, but it's fucking me. It spawns a new thread on import, and that doesn't work well
lggr has quit [Ping timeout: 252 seconds]
maxmmurphy has quit [Quit: maxmmurphy]
emanu has quit [Quit: emanu]
g_rotbart has quit [Remote host closed the connection]
gavit has quit [Read error: Connection reset by peer]
moshee has quit [Ping timeout: 245 seconds]
dekroning has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
igaiga has joined #ruby
dekroning has quit [Remote host closed the connection]
lggr has joined #ruby
sts23 has joined #ruby
<sts23> hi, anyone have few minutes to help out a newbie?
mahmoudimus has joined #ruby
<sts23> i just installed ruby on ubuntu.. took me forever but i finally did it.. now i had few questions such as how do i start writing my first program? i know some of the syntax but don't know how to run it
roadt has quit [Ping timeout: 260 seconds]
zommi has joined #ruby
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
reset has quit [Ping timeout: 252 seconds]
c0rn_ has quit []
AlbireoX has quit [Read error: Connection reset by peer]
<bnagy> Sargun: I have no idea what v8 is
<bnagy> sts23: use a text editor, then run the script with ruby myscriptname.rb
Criztian has joined #ruby
<sts23> im using gedit
<sts23> is that good enough
Kneferilis has joined #ruby
<Kneferilis> hello
<bnagy> any editor works :)
<Kneferilis> are gems written in pure ruby code?
austinbv has joined #ruby
<bnagy> depends on the gem
<davidcelis> unless they have core extensions written in C
ltsstar has quit [Quit: ltsstar]
workmad3_ has quit [Ping timeout: 264 seconds]
<Kneferilis> davidcelis: how would I know if it has C in it?
<davidcelis> by looking at the source code
<Kneferilis> davidcelis: ok
<bnagy> or, meta, if it has a dir called ext/
JohnBat26 has joined #ruby
ryanf has quit [Quit: leaving]
lggr has quit [Ping timeout: 264 seconds]
<sts23> i went to the directory where i saved the file called test.rb
lsousa has quit [Quit: lsousa]
<sts23> i did ruby test.rb but it says ruby:no sufch file or directory -- test.rb (loaderror)
hbpoison has joined #ruby
<bnagy> sts23: sounds wack. Try ruby ./test.rb and if that doesn't work you are not where you think you are or your file is not called what you think it is
khakimov has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
aganov has joined #ruby
<sts23> oh weird. gedit didnt save it first time
<sts23> how do i run it on a browser?
<bnagy> uh
roadt has joined #ruby
<sts23> or is it only on command line
<bnagy> that's quite a leap from running hello world
<sts23> like i said im new to ruby.. i want to learn ror but i figured atleast get familiar with ruby first
<bnagy> I don't know what all the cool kids recommend these days
<bnagy> tryruby.org maybe?
<sts23> well i mean is it possible to run it on a browser or will it all be command line for now?
<sts23> similar to c++
igaiga has quit [Remote host closed the connection]
<bnagy> well I don't really know what you mean by 'run it on a browser'
<sts23> well if i have a file called test.rb and the only code in it is: puts "test"
juarlex has joined #ruby
<sts23> if i open a browser shouldnt it say just test
<bnagy> you need a webserver that can run your script for you and produce the html that the browser will render into a page that says 'test'
<Hanmac1> sts23: there you can test ruby in a browser: tryruby.org
<bnagy> like I said, that's quite a big step
rubious has quit [Quit: Leaving...]
<sts23> alright
juarlex_ has quit [Read error: Connection reset by peer]
Hanmac1 is now known as Hanmac
lggr has quit [Ping timeout: 244 seconds]
s1n4 has joined #ruby
lggr has joined #ruby
s1n4 has quit [Client Quit]
s1n4 has joined #ruby
Criztian has quit [Remote host closed the connection]
ephemerian has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
capsule_toy has joined #ruby
tagrudev has joined #ruby
sent-hil has joined #ruby
jwang has joined #ruby
igaiga has joined #ruby
matrixise has quit [Ping timeout: 260 seconds]
rcsheets has quit [Remote host closed the connection]
rcsheets has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
lolmaus has quit [Ping timeout: 252 seconds]
lolmaus has joined #ruby
sent-hil has quit [Remote host closed the connection]
techsurvivor has joined #ruby
mrdodo has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 272 seconds]
bluOxigen has joined #ruby
jprovazn has joined #ruby
BiHi has joined #ruby
beneggett has joined #ruby
Eldariof18-ru has joined #ruby
hoelzro|away is now known as hoelzro
madhatter has joined #ruby
kil0byte has joined #ruby
lggr has joined #ruby
dpk has joined #ruby
kil0byt__ has quit [Ping timeout: 260 seconds]
<dagobah> Am I right in thinking that f === 2 will try to call the #call method on f, if for example class F; def call(n); n*2; end; end;
a_a_g has quit [Quit: Leaving.]
matthewrobbins has joined #ruby
a_a_g has joined #ruby
lkba has joined #ruby
<hoelzro> >> class F; def call(n); n*2; end; end; f = F.new; puts f == 2
<hoelzro> =(
sagax has joined #ruby
xpen has quit [Remote host closed the connection]
xpen has joined #ruby
mroh has joined #ruby
<dagobah> hoelzro: I was meaning triple equals "===".
lggr has quit [Ping timeout: 246 seconds]
<hoelzro> ah
<dagobah> hoelzro: It seems f.(2) automatically tries to call the #call method.
flype has joined #ruby
<hoelzro> yeah; .(...) is shorthand for .call(...), I believe
<dagobah> I was reading about Procs and it was suggested that you can call a Proc with both f[2] and f === 2.
haxrbyte has joined #ruby
<dagobah> I was wondering whether that would work for non-procs and if the object had a call method, behave the same as .(..)
<hoelzro> dagobah: well, === is defined in Object
<fowl> dagobah: proc do |x| x * 2 end === 4 will return 9
<hoelzro> and I don't think that it considers #call
<fowl> er 8
<hoelzro> but I may be wrong!
<dagobah> Yeah it seems === fails silently and f[2] says undefined methods.
lggr has joined #ruby
<fowl> dagobah: when does === fail silently?
<mroh> hiya
<dagobah> When it's not on a proc but just an object.
<hoelzro> Object#=== by default is the same as Object#==
<hoelzro> s/by default//
<dagobah> Ah.
<dagobah> So it's just a special case that calling procs with [] and === works.
mrdodo has joined #ruby
<dagobah> You'd need to override Objects#=== to get it to work for non procs.
<hoelzro> yup
<dagobah> Fair enough.
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<dagobah> So I can only rely on .(..) or .call(..) - incidentally, is a #call a decent ruby idiom to follow?
<hoelzro> if it's something that's callable, sure
<dagobah> I'm thinking for service classes that just do one thing and need no state.
fixl has joined #ruby
<hoelzro> dagobah: why not just use a Proc, then?
<dagobah> Ha true.
<fowl> ._.
savage- has joined #ruby
<dagobah> I'm not great with procs.
justinmcp has quit [Remote host closed the connection]
LouisGB has joined #ruby
<hoelzro> dagobah: well, if you have questions about them, feel free to ask =)
<dagobah> So I guess there is little argument for not using one!
<hoelzro> you're in the right place ;)
austinbv has quit [Ping timeout: 246 seconds]
<dagobah> Thanks hoelzro, was just getting my head round it, then I happened to stumble across someone saying that blocks aren't objects!
Iszak has quit [Quit: User has gone to sleep.]
<hoelzro> well, blocks aren't
<hoelzro> but
<hoelzro> you can wrap a block in a Proc
capsule_toy has quit []
<hoelzro> and Procs *are* objects!
<hoelzro> I'd show you if the bot were running!
haxrbyte_ has joined #ruby
<dagobah> hoelzro: If I may just ask, at what point do you stop and think, "Aha I need a Proc", I mean, what are the indicators? I want to start using them more but seem to lack the ability to know when is a good case to use them.
igaiga has quit [Remote host closed the connection]
<fowl> hoelzro: def foo(&block) p block end; foo do 1 end; ... blocks are procs
<hoelzro> fowl: isn't that just syntax to make a block into a Proc, though?
<dagobah> hoelzro: I think I get it, there's a sense in which they are not objects but that the only way to use them is to pass them to a Proc?
lggr has quit [Ping timeout: 252 seconds]
<fowl> hoelzro: what would a block be if not a proc
<hoelzro> internally, when you call yield, is it passing the args to a hidden Proc?
<dagobah> So as soon as you try and inspect them, they just become procified?
<hoelzro> dagobah: well, here's a Proc-less example:
<dagobah> fowl: An argument?
<hoelzro> def twice yield yield end
<hoelzro> twice { puts 'hi' }
<fowl> dagobah: lol @ an argument, argument is not a class
<hoelzro> there's no Proc object present (at least not a visible one)
<fowl> hoelzro: what are you high?
<hoelzro> maybe there's one internally
<mroh> i am
<hoelzro> fowl: no, stone sober
lggr has joined #ruby
flype has quit [Remote host closed the connection]
fermion has joined #ruby
<dagobah> fowl: Sorry, I assume then that blocks are an instance of a class?
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<hoelzro> fowl: I'm not sure what you're trying to say
haxrbyte has quit [Ping timeout: 260 seconds]
AlbireoX has joined #ruby
matrixise has joined #ruby
<dagobah> hoelzro: So I guess I just need to be more aware of when a Proc is appropriate?
<hoelzro> if you don't feel I'm explaining blocks vs Procs adaquately, please let me know; I'm still just starting out wiht Ruby myself
<fowl> dagobah: yes, a block is an instance of proc, regardless of if you name it as an argument or not
flype has joined #ruby
<dagobah> fowl: Thanks.
mrdodo has quit [Remote host closed the connection]
<dagobah> fowl: Any advice on how you determine when you need a Proc, rather than say, a method?
savage- has quit [Remote host closed the connection]
<Banistergalaxy> Dagobah you just know, you feel it in your heart in that special place inside. Forever.
<dagobah> Banistergalaxy: Ha, I have yet to carve out that special place.
<Banistergalaxy> You need true loves kiss
lggr has quit [Ping timeout: 248 seconds]
<dagobah> Is a method not strictly a type of closure?
<dagobah> I guess what I'm really asking is when do you choose a Proc over a method?
mrdodo has joined #ruby
thisirs has joined #ruby
rippa has joined #ruby
<fowl> dagobah: procs are used as callbacks or wherever you need an anonymous function
<fowl> whereas methods are in a class and describe the behavior of an object
<dagobah> Excellent.
<dagobah> Anonymous as in not bound to a class / context?
lggr has joined #ruby
<Mon_Ouie> Methods have a name (foo in def foo; … end), procs don't (you can reference them with variables, but that's different)
mbk has joined #ruby
<dagobah> Aha, yes, I finally get it, and they can be defined inline.
demian`__ has quit [Quit: demian`__]
lggr has quit [Ping timeout: 240 seconds]
<dagobah> Procs don't have a name, just the variable assigned to it. Sorry for my incompetence.
elaptics`away is now known as elaptics
JohnBat26 has joined #ruby
rakunHo has joined #ruby
und3f has quit [Read error: Connection reset by peer]
neurotech has joined #ruby
rakl has quit [Quit: sleeping]
amaya_ has joined #ruby
und3f has joined #ruby
mrdodo has quit [Remote host closed the connection]
MasterIdler_ has quit [Quit: MasterIdler_]
dr_bob has joined #ruby
kil0byte_ has joined #ruby
RichieEvan has quit [Quit: RichieEvan]
mneorr has joined #ruby
tvw has joined #ruby
ilyam has joined #ruby
qwerxy has joined #ruby
kil0byte has quit [Ping timeout: 272 seconds]
und3f has quit [Read error: Connection reset by peer]
lggr has joined #ruby
peterhellberg has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
und3f has joined #ruby
robustus has joined #ruby
dekz has quit [Remote host closed the connection]
dekz has joined #ruby
Xeago has joined #ruby
workmad3 has joined #ruby
mucker has joined #ruby
<gyre007> guys, I want to install rbenv - get rid of rvm...anyone has an experience with rbenv on Chef hosted server ? I hope it won't break as many things as RVM does
Rarruga has joined #ruby
manolo has joined #ruby
sts23 has quit [Ping timeout: 272 seconds]
Yomero has quit [Ping timeout: 264 seconds]
qos_ has quit [Quit: Linkinus - http://linkinus.com]
lggr has quit [Ping timeout: 272 seconds]
lggr has joined #ruby
kil0byte_ has quit [Remote host closed the connection]
baphled has joined #ruby
manolo has quit [Ping timeout: 252 seconds]
ltsstar has joined #ruby
ltsstar has quit [Client Quit]
manolo has joined #ruby
ltsstar has joined #ruby
igaiga has joined #ruby
xbayrockx has joined #ruby
manolo has quit [Ping timeout: 246 seconds]
Iszak has joined #ruby
Iszak has joined #ruby
Iszak has quit [Changing host]
lggr has quit [Ping timeout: 272 seconds]
lggr has joined #ruby
manolo has joined #ruby
mohits has quit [Read error: No route to host]
bigmeow has quit [Ping timeout: 244 seconds]
love_color_text has quit [Remote host closed the connection]
igaiga has quit [Ping timeout: 250 seconds]
pingfloyd has quit [Quit: pingfloyd]
ilyam has quit [Quit: ilyam]
moshee has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
tadassce has joined #ruby
peterhellberg has quit [Remote host closed the connection]
lkba has quit [Quit: Bye]
MasterIdler_ has joined #ruby
MasterIdler_ has quit [Read error: Connection reset by peer]
MasterIdler_ has joined #ruby
banisterfiend has joined #ruby
maesbn has quit [Remote host closed the connection]
mneorr1 has joined #ruby
mwilson` has quit [Excess Flood]
mwilson` has joined #ruby
fcoury_ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 260 seconds]
octarine has quit [Remote host closed the connection]
randym has quit [Remote host closed the connection]
dkannan has quit [Remote host closed the connection]
davidboy has quit [Remote host closed the connection]
octarine has joined #ruby
mneorr has quit [Ping timeout: 248 seconds]
jhowarth has quit [Remote host closed the connection]
dkannan has joined #ruby
JC_SoCal_ has quit [Remote host closed the connection]
pvh_ has quit [Remote host closed the connection]
fcoury_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
w400z has joined #ruby
randym has joined #ruby
ewag has joined #ruby
Markvilla has joined #ruby
fasta has quit [Remote host closed the connection]
davidboy has joined #ruby
klipeto has quit [Ping timeout: 252 seconds]
tobyo1 has joined #ruby
fasta has joined #ruby
igaiga has joined #ruby
jhowarth has joined #ruby
<w400z> ramping up my scraping effort, any best practices/tools on multithreading nokogiri?
pvh_ has joined #ruby
lggr has joined #ruby
<dekz> gyre007: what are your doubts?
seoaqua has joined #ruby
JC_SoCal_ has joined #ruby
maesbn has joined #ruby
tobyo has quit [Ping timeout: 264 seconds]
frogprince_mac has joined #ruby
znake has joined #ruby
ABK_ has joined #ruby
<gyre007> dekz, i havent any.....just never done it before...im curious how does Chef environment like rbenv...and whether I should install it system wide....also there is no good tutorial on how to set this up with chef :(
robbyoconnor has quit [Ping timeout: 240 seconds]
Criztian has joined #ruby
tadassce has left #ruby [#ruby]
tadassce has joined #ruby
abionic has quit [Ping timeout: 246 seconds]
tadassce has left #ruby [#ruby]
tadassce has joined #ruby
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tadassce has left #ruby [#ruby]
tadassce has joined #ruby
kil0byte has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
seanwash has joined #ruby
lggr has joined #ruby
seoaqua has quit [Quit: 离开]
wallerdev has quit [Quit: wallerdev]
ewag has quit [Read error: Connection reset by peer]
nari has quit [Ping timeout: 240 seconds]
savage- has joined #ruby
Guedes0 has joined #ruby
w400z has quit []
15SACRBS6 has joined #ruby
16WAA4KGG has joined #ruby
tadassce has left #ruby [#ruby]
chussenot has quit [Remote host closed the connection]
amaya_ has quit [Ping timeout: 244 seconds]
tlifff has joined #ruby
igaiga has quit [Ping timeout: 244 seconds]
chussenot has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Araxia has joined #ruby
savage- has quit [Ping timeout: 268 seconds]
amaya_ has joined #ruby
yeggeps has quit [Quit: yeggeps]
hbpoison has quit [Ping timeout: 255 seconds]
Guedes0 has quit [Ping timeout: 268 seconds]
ij has quit [Ping timeout: 260 seconds]
berserkr has joined #ruby
lggr has joined #ruby
binaryplease has joined #ruby
fir_ed has quit [Read error: Operation timed out]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
gavit has joined #ruby
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
znake has quit [Quit: znake]
mneorr1 has quit [Quit: Leaving.]
monkegjinni has joined #ruby
passbe has joined #ruby
mrdodo has joined #ruby
tonini has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
foofoobar has joined #ruby
<foofoobar> Hi
mrdodo has quit [Ping timeout: 264 seconds]
<foofoobar> Someone working with vim here? I' trying to auto-indent the following ruby-snippet (just a test): http://www.hastebin.com/nojadaleki.rb When I select all and press '=' all indents and spaces are removes so the each line begins at pos1
<foofoobar> Any hints what I can do ? I also set 'filetype indent on' but this does not change anything
<hoelzro> same happens for me
chendo has quit [Ping timeout: 246 seconds]
<hoelzro> you probably need to tell Vim how to indent Ruby
<hoelzro> considering its defaults use { ... }
<hoelzro> hmm
<hoelzro> I don't have that problem with Lua...
<hoelzro> I must have an indent file for it or something
chendo has joined #ruby
shiki has quit [Remote host closed the connection]
chendo has quit [Changing host]
chendo has joined #ruby
octarine has quit [Remote host closed the connection]
pvh_ has quit [Remote host closed the connection]
dotemacs_ has quit [Remote host closed the connection]
dekz has quit [Remote host closed the connection]
rcsheets has quit [Remote host closed the connection]
randym has quit [Write error: Broken pipe]
dkannan has quit [Write error: Broken pipe]
notbrent has quit [Write error: Broken pipe]
im0b has quit [Remote host closed the connection]
JC_SoCal_ has quit [Remote host closed the connection]
sr___ has quit [Write error: Broken pipe]
davidboy has quit [Write error: Broken pipe]
patricksroberts has quit [Write error: Broken pipe]
moeSeth_ has quit [Remote host closed the connection]
dnyy__ has quit [Remote host closed the connection]
[diecast] has quit [Remote host closed the connection]
cool has quit [Remote host closed the connection]
kapowaz has quit [Remote host closed the connection]
aquaranto_ has quit [Remote host closed the connection]
anildigital_work has quit [Remote host closed the connection]
fcoury_ has quit [Remote host closed the connection]
ctevie has quit [Remote host closed the connection]
SeanTAllen has quit [Write error: Broken pipe]
jhowarth has quit [Remote host closed the connection]
14WAAEVCM has quit [Write error: Broken pipe]
Dr4g_ has quit [Write error: Broken pipe]
_marvin_ has quit [Write error: Broken pipe]
<hoelzro> foofoobar: try this:
<hoelzro> :runtime indent/ruby.vim
hasse has joined #ruby
<hoelzro> and then do your =G
mneorr has joined #ruby
<foofoobar> hoelzro: this works :D
<hoelzro> =)
<hasse> How can I "shuffle" an array based on a value? So every time I shuffle using that value it generates the same order.
<Xeago> anyone here heard of xiki, maybe even tried it?
<hoelzro> Xeago: I've heard of it
<hoelzro> I don't get it =/
<hoelzro> I installed it; I don't understand what it offers
<foofoobar> Xeago: Yeah I saw the demo video
<Xeago> looks cool, but what's the use
<hoelzro> I plan to watch the screencast...soonish
<Xeago> tho select * from users/ was cool
<Xeago> tho
<Xeago> why
<foofoobar> Looks interesting, but I don't think there are that many use cases
[diecast] has joined #ruby
<hoelzro> hasse: specify the rng argument?
<foofoobar> hoelzro: so whats wrong with my vim? why is the ident file not loaded?
elaptics is now known as elaptics`away
<foofoobar> I thought this is done automatically?
<hoelzro> foofoobar: indent files aren't loaded by default, I don't think
elaptics`away is now known as elaptics
s1n4 has left #ruby ["leaving"]
<hasse> hoelzro: what do you mean?
lggr has quit [Ping timeout: 244 seconds]
<hoelzro> I have an after plugin for doing that for Lua
kapowaz has joined #ruby
<hoelzro> hasse: array.shuffle(rng)
<foofoobar> hoelzro: so a good way is to put that "runtime indent/ruby.vim" in my .vimrc?
<hoelzro> shuffle accepts a custom rng argument
<hoelzro> foofoobar: I would do something like this:
<hoelzro> au Filetype ruby runtime indent/ruby.vim
<hoelzro> or you could create a more general one
<hoelzro> that automatically loads the proper indent file if it exists
lggr has joined #ruby
mfridh is now known as mfridh_
dekz has joined #ruby
<bnagy> hasse: just use srand
moeSeth has joined #ruby
<banisterfiend> Xeago it's emacs right?
mfridh_ is now known as mfridh
<hoelzro> bnagy: why set the global seed for operations on a single array, though?
<hoelzro> seems kinda unclean to me
<Xeago> banisterfiend: supposedly editor agnostic, but it barely supports any editors besides emacs
<foofoobar> okay
<foofoobar> thanks for your help
<hoelzro> np
matrixise has quit [Ping timeout: 246 seconds]
karakedi has joined #ruby
<banisterfiend> Xeago where did u hear about xiki?
matrixise has joined #ruby
<Xeago> hackernews
anildigital_work has joined #ruby
<Xeago> news.ycombinator.org
<Xeago> com*
Kneferilis has quit [Quit: Page closed]
<banisterfiend> Xeago did it excite you
<Xeago> can't tell
<hoelzro> it's kinda cool
* hoelzro just watched the screencast
<Xeago> I don't see it fit my workflow
Kneferilis has joined #ruby
fcoury has joined #ruby
acidrain has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
dr_bob has quit [Ping timeout: 245 seconds]
foofoobar has quit [Quit: Computer has gone to sleep]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
NimeshNeema has joined #ruby
<hasse> hoelzro: thanks!
JC_SoCal has joined #ruby
frogprince_mac has quit [Quit: Bye!]
dkannan has joined #ruby
schwap has quit [Ping timeout: 252 seconds]
patricksroberts has joined #ruby
ctwiz has joined #ruby
dnyy__ has joined #ruby
rakunHo has quit [Remote host closed the connection]
rcsheets has joined #ruby
lggr has joined #ruby
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
SeanTAllen has joined #ruby
mbk has quit [Ping timeout: 245 seconds]
_marvin_ has joined #ruby
mbk has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
iocor has joined #ruby
randym has joined #ruby
lkba has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
klip has joined #ruby
cool has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
im0b has joined #ruby
aquaranto has joined #ruby
iori has quit [Remote host closed the connection]
Dr4g has joined #ruby
und3f has quit [Read error: Connection reset by peer]
BeLucid_ has quit [Remote host closed the connection]
BeLucid has joined #ruby
manolo has quit [Remote host closed the connection]
und3f has joined #ruby
lggr has joined #ruby
garndt has joined #ruby
Foxandxss has joined #ruby
My_Hearing has joined #ruby
My_Hearing has joined #ruby
My_Hearing has quit [Changing host]
GoldenCider has quit [Quit: GoldenCider]
xpen has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 264 seconds]
Piersandro has joined #ruby
noyb has quit [Ping timeout: 264 seconds]
lggr has quit [Ping timeout: 248 seconds]
Piersandro has quit [Ping timeout: 252 seconds]
sr___ has joined #ruby
kil0byte_ has joined #ruby
lggr has joined #ruby
ctevie has joined #ruby
ctevie has quit [Changing host]
ctevie has joined #ruby
lectrick has joined #ruby
kil0byte has quit [Ping timeout: 252 seconds]
skogis has joined #ruby
<dagobah> So here's an interesting ruby problem I've been trying to solve today: https://gist.github.com/2a0de4273719f1a429ea
<My_Hearing> self.name is needed because just "name =" sets a variable
My_Hearing is now known as Mon_Ouie
<Mon_Ouie> And is there anything that stops you from… just defining method_missing?
<dagobah> Mon_Ouie: Good point.
dhruvasagar has quit [Ping timeout: 252 seconds]
<dagobah> I wondered whether I could do something horrible and change it to @name and have ifs lower down?
jhowarth has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
BiHi has quit [Quit: Computer has gone to sleep]
lessthanphil has joined #ruby
joshman_ has joined #ruby
dhruvasagar has joined #ruby
davidboy has joined #ruby
ltsstar has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
bigkevmcd has quit [Quit: outta here]
Takehiro has joined #ruby
dr_bob has joined #ruby
<Hanmac> dagobah why is Jimmy in your system a Class and not an instance?
<Hanmac> (ok classes are instances too but you should know what i mean)
notbrent has joined #ruby
karakedi has quit [Ping timeout: 260 seconds]
moshee has quit [Ping timeout: 260 seconds]
nohonor has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<dagobah> That was just my poor naming (sorry)
hbpoison has joined #ruby
gl0om has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
pvh has joined #ruby
doritostains has quit [Quit: Leaving...]
lggr has joined #ruby
fixl has quit [Ping timeout: 245 seconds]
Piersandro has joined #ruby
bigmeow has joined #ruby
ZachBeta has joined #ruby
tomeo has joined #ruby
joshman_ has quit [Quit: Computer has gone to sleep.]
<tomeo> Could someone please recommend a data structure that will keep a Set sorted and allows me to look at the first and last item?
<tomeo> SortedSet doesn't work as I can't seem to get the first and last item easily
<Mon_Ouie> Sorted according to <=>, not insertion order, right?
Virunga has joined #ruby
<tomeo> Mon_Ouie: yes
<Mon_Ouie> Using some binary tree would allow you to do that easily
kvirani has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
foofoobar has joined #ruby
<Mon_Ouie> I don't think there is an implementation of that in stdlib though
arkiver has joined #ruby
Targen has quit [Ping timeout: 246 seconds]
<matti> Mon_Ouie: ;]
<Mon_Ouie> 'alut matti ;)
lggr has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
gl0om has quit [Read error: Connection reset by peer]
AllStruck has quit [Ping timeout: 256 seconds]
bigkevmcd has joined #ruby
kil0byte_ has quit [Ping timeout: 255 seconds]
answer_42 has quit [Ping timeout: 276 seconds]
Takehiro has quit [Remote host closed the connection]
coyo has quit []
kitofr has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
kuranai has joined #ruby
gfontenot has joined #ruby
AllStruck has joined #ruby
abionic has joined #ruby
cakehero has joined #ruby
kil0byte has joined #ruby
radic has quit [Remote host closed the connection]
ABK_ has quit [Ping timeout: 244 seconds]
Beoran__ has joined #ruby
josh^ has quit [Remote host closed the connection]
pskosinski has joined #ruby
mucker has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
gfontenot has quit []
Virunga is now known as LennyLinux
Choclo has joined #ruby
Choclo has quit [Read error: Connection reset by peer]
Choclo has joined #ruby
Beoran_ has quit [Ping timeout: 268 seconds]
Agis__ has joined #ruby
kil0byte has quit [Remote host closed the connection]
hunglin has joined #ruby
<workmad3> tomeo: a.first and a.inject{|_, e| e}
Agis__ has quit [Client Quit]
abionic has quit [Ping timeout: 260 seconds]
<Mon_Ouie> workmad3: That's still O(n) for getting the last element; Getting the leftmost/rightmost element in a balanced tree would be O(log(n))
answer_42 has joined #ruby
<hoelzro> tomeo: do you only ever need the first and last?
lggr has quit [Ping timeout: 240 seconds]
<hoelzro> you could create a class that manages a set, and also maintains the notion of which the first and last item are
lggr has joined #ruby
diegoviola is now known as Guest26292
gfontenot has joined #ruby
diegovio1a is now known as diegoviola
F1skr has joined #ruby
hunglin has quit [Quit: Leaving.]
linhx13 has joined #ruby
<tomeo> hoelzro: yes
yshh has quit [Remote host closed the connection]
<hoelzro> then just maintain the pair of lowest and highest
<hoelzro> no need for a binary tree in that situation
kirun has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
hasse has quit [Quit: Page closed]
kil0byte has joined #ruby
Choclo has quit [Quit: Leaving.]
foofoobar has quit [Quit: bb]
linhx13 has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
lggr has quit [Ping timeout: 244 seconds]
<tomeo> thanks hoelzro
<hoelzro> np
lggr has joined #ruby
BiHi has joined #ruby
tk__ has joined #ruby
kil0byte has quit [Remote host closed the connection]
ctwiz has quit [Quit: ctwiz]
geekbri has joined #ruby
jimeh2 has quit [Quit: bye]
mneorr has quit [Quit: Leaving.]
dhruvasagar has quit [Ping timeout: 240 seconds]
justinmcp has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
fermion has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
lggr has quit [Ping timeout: 272 seconds]
Guest81709 has joined #ruby
fermion has joined #ruby
gfontenot has quit []
thunderstrike has joined #ruby
lxsameer has joined #ruby
<lxsameer> is there any general coding style like python PEP 8 for ruby?
lggr has joined #ruby
nw_ has quit [Ping timeout: 240 seconds]
LennyLinux has quit [Remote host closed the connection]
<Xeago> lxsameer: github published their style, not sure if there is an 'official style' from ruby
swistak35 has quit [Quit: ZNC - http://znc.in]
<matti> lxsameer: There are more than one guidelines around.
<matti> lxsameer: Ask Mr G.
<lxsameer> matti: what is the most popular one
snearch has joined #ruby
<matti> No idea.
jaydg has joined #ruby
<matti> There is one on github that seem to be used the mosrt.
<matti> Which is a like a combination of others.
<fowl> most ruby programmers use a dialect called gangsta-2
lggr has quit [Ping timeout: 246 seconds]
nanderoo has joined #ruby
binaryplease has quit [Quit: WeeChat 0.3.8]
<fowl> also we ride bicycles to work and sprout wings when we turn 40
<matti> lol
<matti> fowl: no.
<matti> fowl: Its BroRuby now.
AndChat| has joined #ruby
<matti> fowl: You have outdated infromatin
<matti> ;d
iocor has quit [Quit: Computer has gone to sleep.]
himsin has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 245 seconds]
Banistergalaxy has quit [Ping timeout: 268 seconds]
verto|off is now known as verto
nw has joined #ruby
larissa has joined #ruby
iamjarvo has joined #ruby
lggr has joined #ruby
arkiver has quit [Quit: Leaving]
frogprince has quit [Ping timeout: 252 seconds]
ananthakumaran has joined #ruby
geekbri has quit [Remote host closed the connection]
kryl99_ has joined #ruby
pskosinski has quit [Quit: http://www.redeclipse.net -- Fast-paced online FPS]
pskosinski has joined #ruby
pskosinski has quit [Client Quit]
pskosinski has joined #ruby
frogprince has joined #ruby
sendoushi has joined #ruby
gfontenot has joined #ruby
geekbri has joined #ruby
lkba has quit [Ping timeout: 268 seconds]
mneorr has joined #ruby
jaydg has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 260 seconds]
gfontenot has quit [Client Quit]
justinmcp has quit [Remote host closed the connection]
pskosinski has quit [Client Quit]
lggr has joined #ruby
pskosinski has joined #ruby
RJ3000_ has joined #ruby
krawchyk has joined #ruby
bad_abbe has joined #ruby
kryl99_ has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
bad_abbe has quit [Remote host closed the connection]
KevinSjoberg has joined #ruby
mbk has quit [Ping timeout: 272 seconds]
indian has joined #ruby
indian has quit [Changing host]
indian has joined #ruby
amaya_ has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
ph^ has quit [Ping timeout: 252 seconds]
iocor has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
thunderstrike has quit [Read error: Connection reset by peer]
<KevinSjoberg> Anyone here that can explain how variables work in a module context? Let's say I got a module that has one method. The method define a variable as such "@variable ||= 'some value'". If I then extend the module with itself, how come MyModule.method will work although the variable was a instance variable?
thunderstrike has joined #ruby
sepp2k has joined #ruby
arkiver has joined #ruby
<fowl> KevinSjoberg: modules and classes are instances, they can have instance variables
seanwash has quit [Quit: Computer has gone to sleep.]
sendoushi has quit [Read error: Connection reset by peer]
<KevinSjoberg> fowl: I see. Maybe I'm more concerned about how instance variables and class variables differs then. I mean a class method can't output a instance method right? But a class method can set a instance variable then?
berserkr has quit [Quit: Leaving.]
sendoushi has joined #ruby
lggr has joined #ruby
LennyLinux has joined #ruby
wpaulson has joined #ruby
<KevinSjoberg> But if a class method set a instance method, it will only be for the instance of "that class" then? Did I understand you correctly, fowl?
wpaulson has quit [Client Quit]
<fowl> yes
noahsussman has quit [Quit: Unexpected SpanishInquisitionException]
<KevinSjoberg> I see. Thanks.
<fowl> @@classmethods are shared with the class, and all subclasses and instances of the class and subclasses
wargasm has quit [Ping timeout: 260 seconds]
<fowl> er @@classvars
mbk has joined #ruby
<Axsuul> Is there any way to pass environment variables that are specified in a dotfile when running a script in the same directory?
<KevinSjoberg> fowl: I understand. And instance methods isn't shared at all. Their only available for that particular instance.
Morkel has quit [Quit: Morkel]
ph^ has joined #ruby
<fowl> KevinSjoberg: not true, instance methods get inherited
<KevinSjoberg> fowl: Aha, I see.
wargasm has joined #ruby
linoj has joined #ruby
tscolari has joined #ruby
ndrei has joined #ruby
<KevinSjoberg> fowl: Take this for an example. https://gist.github.com/3721711. So the module method is setting an instance variable for the instance of the module?
tscolari has quit [Client Quit]
tscolari has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
<fowl> KevinSjoberg: you can check with `puts MyModule.instance_variables`
lggr has quit [Ping timeout: 260 seconds]
Spooner has joined #ruby
kn330 has joined #ruby
<KevinSjoberg> fowl: I did, and that's what is confusing me. MyModule#instance_variables and MyModule#class_variables both return an empty array.
lggr has joined #ruby
<KevinSjoberg> fowl: Never mind. I actually tried to look for the instance variable before I ran the method.
xbayrockx has quit []
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<fowl> why do you extend self btw
iocor has quit [Quit: Computer has gone to sleep.]
tommyvyo has joined #ruby
ph^ has quit [Ping timeout: 260 seconds]
Spooner has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
Jellyg00se has joined #ruby
beakerman has joined #ruby
lxsameer has quit [Quit: Leaving]
nai has joined #ruby
mva3212 has quit [Remote host closed the connection]
fantazo has joined #ruby
wargasm has joined #ruby
shiki has joined #ruby
mucker has joined #ruby
fixl has joined #ruby
aristidesfl has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
AndrzejK1zywda is now known as AndrzejKrzywda
invisime has joined #ruby
chrisja has joined #ruby
mmitchell has joined #ruby
lggr has joined #ruby
qwerxy has quit [Quit: offski]
jlwestsr has joined #ruby
arietis has joined #ruby
asteve has joined #ruby
austinbv has joined #ruby
qwerxy has joined #ruby
xbayrockx has joined #ruby
carloslopes has joined #ruby
jlwestsr has quit [Quit: Ex-Chat]
jjbohn has joined #ruby
jbw_ has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 240 seconds]
phelps has joined #ruby
charliesome has joined #ruby
Spooner has joined #ruby
jgarvey has joined #ruby
Takehiro has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
NimeshNeema has quit []
NimeshNeema has joined #ruby
gogiel has joined #ruby
tagrudev has quit [Quit: got haxed]
tagrudevWTF has joined #ruby
Goles has joined #ruby
tagrudevWTF is now known as tagrudev
atmosx has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
Criztian has quit [Remote host closed the connection]
lggr has joined #ruby
Morkel has joined #ruby
robbyoconnor has joined #ruby
Morkel has quit [Client Quit]
acidrain has quit [Quit: Linkinus - http://linkinus.com]
Morkel has joined #ruby
arkiver has quit [Quit: Leaving]
<Hanmac> shevy did you see this ranking? http://redmonk.com/sogrady/2012/09/12/language-rankings-9-12/
ph^ has joined #ruby
bigmeow has quit [Ping timeout: 244 seconds]
fixl has quit [Ping timeout: 255 seconds]
jbw_ has joined #ruby
ged has quit [Ping timeout: 240 seconds]
neurotech has quit [Remote host closed the connection]
<atmosx> Hanmac: not bad, but making questions on SO about AppleScript doesn't mean that it's *that* popular, it maybe means that no ones wants to really know nothing abou it
savage- has joined #ruby
squareduck has quit [Ping timeout: 240 seconds]
herbnerder has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 260 seconds]
squareduck has joined #ruby
nanderoo has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
maesbn_ has joined #ruby
<Hanmac> atmosx the problem about the rankings they only count the code ... try something like "[1,2,3].inject(:+)" in C or Java, you maybe need more lines, because of that Java is ranked higher than ruby :D
oddraisin has quit [Ping timeout: 240 seconds]
herbnerder has joined #ruby
<atmosx> I think that java is more mainstream anyway
oddraisin has joined #ruby
maesbn has quit [Ping timeout: 240 seconds]
classix_ has quit [Ping timeout: 240 seconds]
yxhvuud has joined #ruby
fcoury has quit [Max SendQ exceeded]
wargasm has quit [Ping timeout: 252 seconds]
mva3212 has joined #ruby
philips_ has quit [Excess Flood]
gavit has quit [Ping timeout: 240 seconds]
gentz has quit [Ping timeout: 240 seconds]
zigomir has quit [Ping timeout: 240 seconds]
Takehiro has quit [Remote host closed the connection]
davidcelis has quit [Ping timeout: 244 seconds]
<Hanmac> atmosx and one of my problems is that my ruby stuff does not increase the ruby ranking ... (because its in C++ :D)
RubyPanther has quit [Ping timeout: 240 seconds]
<atmosx> hahahha
<atmosx> now how about *that* ?
yxhuvud has quit [Ping timeout: 240 seconds]
gentz has joined #ruby
Kwpolska has quit [Ping timeout: 244 seconds]
classix has joined #ruby
<Mon_Ouie> Well if the code is written in C++ it isn't Ruby
seanwash has joined #ruby
gavit has joined #ruby
jimeh has joined #ruby
davidcelis has joined #ruby
lggr has joined #ruby
GenghisKen has joined #ruby
GenghisKen has quit [Changing host]
GenghisKen has joined #ruby
<Hanmac> it is not ruby, but its FOR ruby :P
Takehiro has joined #ruby
Kwpolska has joined #ruby
savage- has quit [Read error: Connection reset by peer]
maesbn_ has quit [Remote host closed the connection]
GenghisKen has quit [Changing host]
GenghisKen has joined #ruby
GenghisKen has joined #ruby
philips_ has joined #ruby
savage- has joined #ruby
zigomir has joined #ruby
fcoury has joined #ruby
kn330 has quit [Excess Flood]
explody has quit [Excess Flood]
nai has quit [Remote host closed the connection]
kn330 has joined #ruby
RubyPanther has joined #ruby
explody has joined #ruby
nwest has joined #ruby
uris has joined #ruby
austinbv has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 245 seconds]
billyoc has joined #ruby
Inoperable has joined #ruby
Morkel has quit [Ping timeout: 245 seconds]
neurotech has joined #ruby
mva3212 has quit [Remote host closed the connection]
Inoperable has quit [Remote host closed the connection]
squareduck has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
mneorr has quit [Quit: Leaving.]
mneorr has joined #ruby
yasushi has joined #ruby
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Inoperable has joined #ruby
<m3pow> Hanmac, i followed your advice about starting slowly with Ruby first and i got this book
Inoperable has quit [Remote host closed the connection]
<m3pow> David Flanagan, Yukihiro Matsumoto - The Ruby Programming Language
Inoperable has joined #ruby
<m3pow> would that do it right , hence is written by Matz
uris has quit [Ping timeout: 244 seconds]
mmitchell has quit [Remote host closed the connection]
fmcgeough has joined #ruby
cascalheira has joined #ruby
KevinSjoberg has joined #ruby
<lectrick> or the dave thomas book
shiki has quit [Remote host closed the connection]
kvirani has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
<banisterfiend> m3pow tht's the best one :P
<banisterfiend> lectrick i personally never really liked the dave thoomas book, though the chapter of c ext was pretty cool
ananthakumaran has joined #ruby
nateberkopec has joined #ruby
jrist-afk is now known as jrist
lggr has joined #ruby
<lectrick> ah, i started out on that one, seems like this one is the new black, eh?
<banisterfiend> lectrick where did you hear i wrote pry btw?
quazimodo has quit [Read error: No route to host]
<lectrick> banisterfiend: https://github.com/pry/pry right under the logo :)
PragCypher has joined #ruby
<m3pow> banisterfiend, any others you might recommend ?
<lectrick> don't worry your secret is safe with me if you remove it. thanks again tho :)
dr_bob has quit []
entrenador has joined #ruby
rakuN has joined #ruby
LennyLinux has quit [Remote host closed the connection]
joshman_ has joined #ruby
pricees has joined #ruby
uris has joined #ruby
cantonic has joined #ruby
jjbohn has quit [Quit: Linkinus - http://linkinus.com]
rakm has quit [Read error: Connection reset by peer]
jjbohn has joined #ruby
Konboi has quit [Remote host closed the connection]
pu22l3r has joined #ruby
arkiver has joined #ruby
qwerxy has quit [Quit: offski]
lggr has quit [Ping timeout: 245 seconds]
awarner has joined #ruby
lggr has joined #ruby
kjg has joined #ruby
Morkel has joined #ruby
Markvilla has joined #ruby
sailias has quit [Ping timeout: 260 seconds]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
qwerxy has joined #ruby
Bosma has joined #ruby
ndrei has quit [Quit: leaving]
<m3pow> that's a funny article
* fowl thinks about APL
rippa has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
cj3kim has quit [Client Quit]
<m3pow> now your groceries won't come straight-to-your-door because of Apple
mercwithamouth has joined #ruby
snearch has quit [Quit: Verlassend]
asobrasil has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
rippa has joined #ruby
arkiver has quit [Quit: Leaving]
entrenador has quit [Quit: entrenador]
16WAA4KGG has quit [Quit: Leaving]
GenghisKen has quit [Ping timeout: 248 seconds]
arkiver has joined #ruby
15SACRBS6 has quit [Quit: Leaving]
ewag has joined #ruby
stopbit has joined #ruby
robbyoconnor has quit [Ping timeout: 248 seconds]
lggr has quit [Ping timeout: 255 seconds]
ndrei has joined #ruby
sagax has quit [Quit: Ухожу я от вас]
freeayu has quit [Remote host closed the connection]
<lectrick> rename to Pur.pl
dhruvasagar has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
Inoperable has quit [Remote host closed the connection]
arkiver has quit [Quit: Leaving]
jonathanwallace has quit [Remote host closed the connection]
arkiver has joined #ruby
dhruvasagar has joined #ruby
nari has joined #ruby
sailias has joined #ruby
ken_barber has joined #ruby
jonathanwallace has joined #ruby
mmitchell has joined #ruby
Choclo has joined #ruby
kvirani has joined #ruby
emanu has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
ltsstar has joined #ruby
ananthakumaran has joined #ruby
rakuN has quit [Ping timeout: 260 seconds]
philcrissman has joined #ruby
lotr1 has joined #ruby
axl_ has joined #ruby
<lotr1> jh
tarwich has joined #ruby
rjsamson has joined #ruby
lotr1 has left #ruby [#ruby]
jonathanwallace has quit [Ping timeout: 260 seconds]
emanu has quit [Client Quit]
jonathan_ has joined #ruby
GenghisKen has joined #ruby
GenghisKen has quit [Changing host]
GenghisKen has joined #ruby
<Hanmac> oO what does he mean?
machty has quit [Quit: machty]
tarwich has quit [Read error: Connection reset by peer]
tarwich has joined #ruby
lolmaus has quit []
nohonor has joined #ruby
lggr has joined #ruby
ken_barber has quit [Remote host closed the connection]
tarwich has quit [Read error: Connection reset by peer]
Araxia has quit [Quit: Araxia]
tarwich has joined #ruby
savage- has quit [Remote host closed the connection]
i8igmac has quit [Quit: Leaving]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
cj3kim has quit [Client Quit]
chrishunt has joined #ruby
luxurymode has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
tarwich has quit [Read error: Connection reset by peer]
tarwich has joined #ruby
mercwithamouth has quit [Ping timeout: 250 seconds]
jrist is now known as jrist-mtg
tarwich has quit [Read error: Connection reset by peer]
tarwich has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
Boris317 has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dmiller has quit [Ping timeout: 260 seconds]
rakuN has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
kuranai has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
tarwich has quit [Read error: Connection reset by peer]
tarwich has joined #ruby
arya has joined #ruby
GoGoGarrett has joined #ruby
tarwich has quit [Read error: Connection reset by peer]
tarwich has joined #ruby
Boris317 has joined #ruby
jasonkuhrt has joined #ruby
mneorr has left #ruby [#ruby]
cantonic has quit [Quit: cantonic]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
yasushi has quit [Remote host closed the connection]
neurotech has quit [Remote host closed the connection]
cakehero has joined #ruby
ken_barber has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
dnyy__ is now known as dnyy
SCommette has joined #ruby
wallerdev has joined #ruby
Synthead has joined #ruby
jasonLaster has joined #ruby
lggr has joined #ruby
dmiller has joined #ruby
thiagopnts has joined #ruby
ken_barber1 has joined #ruby
ken_barber has quit [Read error: Connection reset by peer]
bbttxu has joined #ruby
rjsamson has quit [Remote host closed the connection]
arkiver has quit [Quit: Leaving]
<tarwich> I wanted verbose output to see more warnings in my test.rb script, but ruby -w is showing warnings from libraries as well. Can I tell it to only show me warnings from test.rb?
ken_barber1 has quit [Remote host closed the connection]
demian`_ has joined #ruby
<Spooner> tarwich : I don't think Ruby can tell the difference. Annoying that -w is useless since it isn't used by everyone.
billyoc has quit [Remote host closed the connection]
ken_barber has joined #ruby
luckyruby has quit [Remote host closed the connection]
maxmmurphy has joined #ruby
<tarwich> *chuckles* yeah… Well at the worst since I'm on *nix I can ruby -w test.rb | grep test.rb
GoldenCider has joined #ruby
sspiff has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 244 seconds]
joshman_ has quit [Quit: Computer has gone to sleep.]
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
mercwithamouth has joined #ruby
<Hanmac> tariwich what is your code that generates warnings?=
notVert has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
<tarwich> ? My code isn't actually generating warnings. It's the rbcurse gem I'm using that's generating warnings. And even though it's a gem, it's showing up in the -w spill.
<tarwich> lectrick: YES! Already backing it!
lggr has joined #ruby
idletom has joined #ruby
<Spooner> Gems aren't fundamentally different, is the problem. All the code just gets loaded into a big blob. Your grep makes a lot of sense; wish I'd thought of something so obvious ;)
MasterIdler_ has quit [Quit: MasterIdler_]
tlifff has quit [Ping timeout: 272 seconds]
peanuts___ has joined #ruby
kitofr has quit [Read error: Connection reset by peer]
<Hanmac> lectrick looks cool but very "Lego" like XD
<Spooner> It is just a mock-up, hanmac
<lectrick> i loved lego as a kid. and fischer-technik /german
machty has joined #ruby
<Spooner> Though I suppose it isn't clear how much is "we want 2 million to finish this (including textures)" or if that isn't one of the things they need to finish off.
lsousa has joined #ruby
<peanuts___> hi all, I'm looking for something to mock activemq in my tests with rspec
ananthakumaran has quit [Quit: Leaving.]
AlbireoX`Laptop has joined #ruby
<peanuts___> my code is putting something into an activemq queue
AlbireoX has quit [Read error: Connection reset by peer]
<peanuts___> and I want to check if the thing has been inserted into the correct queue
<Spooner> peanuts___ : rspec comes with mocking built in. Not sure of what you are asking exactly.
matrixise has quit [Ping timeout: 268 seconds]
<peanuts___> and of course without running activemq really
jprovazn is now known as jprovazn_away
yasushi has joined #ruby
<Hanmac> Spooner: i hope there will be still this lego style ... it looks funny XD
philcrissman_ has joined #ruby
<Hanmac> but i dont find informations about supported platfroms :(
<Spooner> Yeah, I think it looks fine too, Hanmac
lggr has quit [Ping timeout: 244 seconds]
<Spooner> I'd be surprised if it is not just Windows.
philcrissman_ has quit [Remote host closed the connection]
<Spooner> Hanmac Nope, kickstarter says it will support all 3 OSes.
<peanuts___> Spooner: ok, may be a simpler question would be how to test that something has been sent to an activemq queue in my specs ?
joofsh has joined #ruby
ckrailo has joined #ruby
davidcelis has quit [Quit: K-Lined.]
<Hanmac> YEAH!
Yomero has joined #ruby
rakuN has quit [Quit: rakuN]
<Spooner> peanuts___ : Er, I don't know activemq, but something like: @amq.should_receive(:<<).with(my_data); @my_thingie.do_something_that_adds_to_queue
philcrissman has quit [Ping timeout: 260 seconds]
yasushi has quit [Ping timeout: 250 seconds]
cantonic has joined #ruby
sailias has quit [Ping timeout: 252 seconds]
<peanuts___> activemq is a messaging system server
ph^ has quit [Remote host closed the connection]
<peanuts___> so I think I should not running it for my tests
<peanuts___> but rather mocking it
Essobi has quit [Read error: Connection reset by peer]
hoelzro is now known as hoelzro|away
bigmeow has joined #ruby
a_a_g has quit [Quit: Leaving.]
<Spooner> Yeah, but that doesn't immediately teach me the API so I can't guess exactly what it should do. OK, so you want a pure mock object then, not mocking a method on the amq object. Just replace the amq object with an Object.new then, and then mock the appropriate API methods in your test code.
Choclo has quit [Quit: Leaving.]
lggr has joined #ruby
mikepack has joined #ruby
chussenot_ has joined #ruby
Choclo has joined #ruby
Essobi has joined #ruby
<shevy> lectrick weird, back then when i was a kid, I loved lego too, but fischer-technik always seemed much more expensive and technical
zommi has quit [Ping timeout: 265 seconds]
lggr has quit [Ping timeout: 260 seconds]
joofsh has quit [Ping timeout: 245 seconds]
<lectrick> shevy: it was the best. and I just spent a little time googling, and it seems they have gone the Lego route of going away from open-ended play (kits without an end goal) to kits that are driven towards a photographed model. fucking lame
<lectrick> The vintage ones are still on eBay
Bosma has quit [Quit: leaving]
chussenot has quit [Ping timeout: 260 seconds]
chussenot_ is now known as chussenot
<lectrick> I may have to snap them up, open-ended play is far more important than end-goal play
Choclo has quit [Client Quit]
<lectrick> it's funny that I can see this so clearly
tagrudev has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
<lectrick> not even a parent yet
baroquebobcat has joined #ruby
<lectrick> this is exactly the reason why it is going to get harder to find good programmers
<lectrick> people want the answer handed to them
elux has joined #ruby
<lectrick> the world needs tinkerers and dreamers
<lectrick> not cogs
aganov has quit [Quit: aganov]
Takehiro has quit [Remote host closed the connection]
<shevy> hehe
<lectrick> i bet most of the folks here are tinkerers
<fowl> lectrick: those are lofty ideals but the world does need cogs
<shevy> yeah!
<shevy> RubyOS here I come!
<lectrick> fowl: ok, less cogs more tinkerers/dreamers then
<shevy> java is the world of cogs and hogs
<lectrick> well, even jvm has some glimmers, like scala
<lectrick> if java inspires someone to build something, great. it can still do that
<lectrick> i ran into someone online who "doesn't like ruby" the other day. i was like, how is that even remotely possible?
tarwich has quit [Read error: Connection reset by peer]
<lectrick> ;)
<Spooner> It isn't as good as Perl 6 though, is it :D
<lectrick> Not preferring it, fine. Not being able to use it, fine. Not liking it outright? Srsly?
ged has joined #ruby
tarwich has joined #ruby
<lectrick> Spooner: Or Lisp :O
<shevy> perl 6 will be eternal vapourware
<shevy> perl 5 is more active than perl 6 :-)
sailias has joined #ruby
<shevy> but they are stuck with their awful OOP model
<lectrick> fragmented communities suck
<shevy> yeah, they clearly miss larry wall
<shevy> whoa... he is 57 now
<lectrick> php went through this, python is in the midst of it as I understand it, and now perl is trying to do it
<lectrick> time flies, don't waste it
Jellyg00se has quit [Read error: Connection reset by peer]
<Spooner> lectrick : Did the person who didn't like Ruby just not like the concept of very high level languages? Plenty of people scoff at the idea of doing _anything_ not in C/C++
sambio has joined #ruby
guest123as has joined #ruby
carloslopes has quit [Quit: Leaving.]
coooter has joined #ruby
SegFaultAX has joined #ruby
<lectrick> Spooner: It's possible.
lggr has joined #ruby
<coooter> hi
<guest123as> hey
<shevy> coooter hi scoooter
maletor has joined #ruby
<shevy> lectrick what language was that guy using?
<Spooner> shevy COBOL ;)
tarwich has quit [Read error: Connection reset by peer]
mmitchell has quit [Remote host closed the connection]
<lectrick> no idea, he was just criticizing xiki as "I don't like Ruby"
<fowl> wtf is this xiki stuff i keep hearing about
<fowl> someone explain to an old fool too lazy to google
tarwich has joined #ruby
nari has quit [Ping timeout: 260 seconds]
g00se has joined #ruby
g00se is now known as Jellyg00se
<lectrick> it's got a screencast
savage- has joined #ruby
zommi has joined #ruby
maxmmurphy has quit [Quit: maxmmurphy]
<Spooner> Seems like soemthing that is pointless, but "cool"!
GenghisKen has quit [Ping timeout: 252 seconds]
rmcafee has joined #ruby
<fowl> ty
<fowl> looks crazy
mmitchell has joined #ruby
ndrei has quit [Ping timeout: 248 seconds]
MasterIdler_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
khakimov has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
verto is now known as verto|off
deo has joined #ruby
zigomir has quit [Ping timeout: 250 seconds]
qwerxy has quit [Quit: offski]
philcrissman has joined #ruby
chendo has quit [Ping timeout: 260 seconds]
peanuts___ has quit [Quit: peanuts___]
daniel_hinojosa has joined #ruby
chendo has joined #ruby
savage- has quit [Ping timeout: 268 seconds]
aaroncm has joined #ruby
<shevy> hmmmm
tarwich has quit [Read error: Connection reset by peer]
CodeFriar has joined #ruby
tarwich has joined #ruby
hbpoison has joined #ruby
adambeynon has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
eph3meral has joined #ruby
pikapp has joined #ruby
<superjoe> is it possible to start doing IPC with an already running node.js process if you have the pid?
lggr has joined #ruby
pikapp has quit [Quit: leaving]
stepnem has quit [Ping timeout: 255 seconds]
<Synthead> How can I count elements in an Array in ruby 1.8.5? (assuming ruby cannot be updated)
joshman_ has joined #ruby
<superjoe> oops wrong channel sorry.
bluOxigen has quit [Ping timeout: 248 seconds]
<asteve> Synthead: array.count isn't in 1.8.5?
<Synthead> undefined method `count' for ["this"]:Array (NoMethodError)
<asteve> array.each { |e| counter++ }?
jrist-mtg is now known as jrist
<otters> length
rubious has joined #ruby
<asteve> or length
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
<otters> ["foo"].length
<otters> > 1
<Synthead> nice, .length works
<Synthead> thanks!
m_3 has quit [Quit: leaving]
<Hanmac> oO ruby1.8.5?? what system are you using? DOS1.0 ?
<Spooner> 1.8.5 is a _bit_ ancient synthead, so any docs/tutorials will be unhelpful.
m_3 has joined #ruby
<Synthead> Spooner: yeah, quite a bit. it's for a historic server.
<Hanmac> yeah ... made of Stone-Plates
<Spooner> Hanmac : It is the standard Ruby version for the package maanger on centos - had the same problem recently with someone whining because my stuff wouldn't work on it...
<otters> heh, a server made of gears and falling stones
<shevy> lol
<shevy> a prehistoric server
<shevy> this is what the dinosaurs used
<Spooner> A serversaurus?
<otters> gets just about 2Hz
<shevy> hahaha
rubious has quit [Client Quit]
<otters> you can "overclock" it by greasing the gears
<Hanmac> shevy the prequel to Stonehenge?
fermion has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<otters> Stonehenge was just the first fileserver
larissa has quit [Quit: Leaving]
<Hanmac> yeah, a server without windows :P
jasonLaster has quit [Remote host closed the connection]
davidcelis has joined #ruby
sts23 has joined #ruby
jasonLaster has joined #ruby
davidcelis has quit [Read error: Connection reset by peer]
<fowl> improbable!
davidcelis has joined #ruby
<Boris317> Is there a "cleaner" way to do something like this
mercwithamouth has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
triptec has joined #ruby
workmad3 has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
sts23 has quit [Remote host closed the connection]
sts23 has joined #ruby
snorkdude has joined #ruby
<Hanmac> Boris317 depending on "some_condition"
jasonLaster has quit [Ping timeout: 272 seconds]
<Boris317> Its not the some condition that is important its the moving key/values from one has to some other has already defined somewhere based on a some condition
<Boris317> hash*
<fowl> jeez
<fowl> why would you want anything more or less than a simple iteration like that
mark_locklear has joined #ruby
<Boris317> I just seem to remember something that would let me pass in a hash and the return of the code block would get added to said hash. I could just be making shit up at this point
<fowl> Boris317: you could just merge the two hashes
dmiller has quit [Remote host closed the connection]
<fowl> existing_hash.merge! other_hash
<fowl> oh but i didnt see the condition
mmitchell has quit [Remote host closed the connection]
<Boris317> It doesn't matter I am just making this into a bigger deal than it needs to be
<Hanmac> Hash.merge! has a block variant ...
<Spooner> existing_hash.merge! other_hash if some_condition # seems the same to me
mbk has quit [Read error: Connection reset by peer]
<Spooner> (unless some_condition is based on key and/or value, of course).
<fowl> Spooner: the condition should presumably be run on each key/value
tlifff has joined #ruby
lggr has joined #ruby
chussenot has quit [Quit: chussenot]
<coooter> .
mrdodo has joined #ruby
sspiff has quit [Ping timeout: 252 seconds]
<shevy> ..
zinjacoder has joined #ruby
ananthakumaran has joined #ruby
<Spooner> hanmac Oh right, I didn't know about the block version of merge: http://www.ruby-doc.org/core-1.9.3/Hash.html#method-i-merge
thisirs has quit [Remote host closed the connection]
rubious has joined #ruby
<Spooner> Sometimes I worry that Ruby will have so many obscure helper methods, it will be indistinguishable from Rails ;D
ianbrandt has joined #ruby
ianbrandt has quit [Excess Flood]
johnjohnson has joined #ruby
<Hanmac> Boris317: existing_hash.merge(other_hash){|key,old_value,new_value| some_condition ? new_value : old_value}
Eldariof18-ru has quit [Ping timeout: 244 seconds]
rakm has joined #ruby
bluenemo has quit [Remote host closed the connection]
<Boris317> hanmac: thanks
ianbrandt has joined #ruby
zommi has quit [Ping timeout: 265 seconds]
<fowl> Hanmac: every time you do that you're oppressing a newbie.
Takehiro has joined #ruby
<Spooner> I bet Hash#merge didn't allow blocks in 1.8.5 ;)
snorkdude has quit [Remote host closed the connection]
<Hanmac> does 1.8.5 allready has blocks?
<Spooner> Oh, of that I'm not sure, hanmac.
<fowl> jeez 1.8.5 was what 6 or 7 years ago?
internet_user has joined #ruby
<Spooner> released august 2006, but I'm sure it was "current" for a year or two after that.
lggr has quit [Ping timeout: 240 seconds]
mohits has quit [Ping timeout: 255 seconds]
chussenot has joined #ruby
frogprince_mac has joined #ruby
<Spooner> 1.8.6 was in April 2007
wunz has joined #ruby
aantix has joined #ruby
<Hanmac> and 1.8.7 get a better C-API
Takehiro has quit [Ping timeout: 248 seconds]
<Spooner> 1.8.6 is still the current RubyEE version, isn't it? But nothing special about 1.8.5 as far as I'm aware.
<Hanmac> come on ... who realy needs RubyEE? does whey only buy it because its called "Enterprise Edition"? oO
ananthakumaran has quit [Quit: Leaving.]
lggr has joined #ruby
qos has joined #ruby
stim371 has joined #ruby
<shevy> long live 1.8.x !!!
<rking> I thought that REE was an experiment whose ideas were mostly integrated into 1.9
<shevy> then came Encoding :(
<Spooner> I dunno. 1.6 was fine. Why they bothered with 1.8 is anyone's guess! (I think I started Ruby just as 1.8 appeared)
ddv has quit [Ping timeout: 246 seconds]
<shevy> never used ruby myself before 1.8
<shevy> must have been simpler
<shevy> :)
idletom has quit [Ping timeout: 260 seconds]
Iszak has quit [Quit: User has gone to sleep.]
Foxandxss has joined #ruby
<GeekOnCoffee> rking: REE was huge, performance wise over 1.8.7
<GeekOnCoffee> at least for some things
zommi has joined #ruby
kenzie has joined #ruby
<rking> GeekOnCoffee: I believe it. But from what I recall they mostly are wrapping up the project, saying "Mission Accomplished"
tarwich has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lggr has quit [Ping timeout: 240 seconds]
<GeekOnCoffee> yeah, pretty sure that 1.9 brings in a lot of the performance benefits
tarwich has joined #ruby
libryder has joined #ruby
<eph3meral> I just can't wait til ruby is truly multi-core
<Spooner> On the other hand, REE would be 1.9 fast, but also 1.8 compatible, so I can see why it would still exist now. Converting ancient behemoths to 1.9 might be more trouble than it's worth.
tosoa has joined #ruby
<eph3meral> yep, enterprises hate upgrades
<Spooner> eph3meral : Is that ever coming? I'm still not entirely sure why CRuby is thread-locked as it is.
<eph3meral> and, generally for good reason
ryanf has joined #ruby
jasonLaster has joined #ruby
<eph3meral> Spooner: yeah I don't know either, I just suck it up and use jruby
<eph3meral> actually, forking can accomplish pretty close to the same effect
deryl has joined #ruby
<Spooner> Forking isn't cross-platform though.
cbuxton has joined #ruby
<eph3meral> ahh, ok didn't know that
<Spooner> Windows sucks.
artOfWar has joined #ruby
<eph3meral> so yeah, anyway, i just use jruby
nga4 has joined #ruby
dmiller has joined #ruby
lessthanphil has quit [Quit: lessthanphil]
matthewrobbins has quit [Quit: matthewrobbins]
<Spooner> I probably should, but I have too much sunk cost in CRuby ;$
<eph3meral> I'm not a fan of Java, and there's still definitely some extra pain involved with using jruby given that you end up having to deal with Java to get anything meaningful done
zommi has left #ruby [#ruby]
zinjacoder has quit [Quit: Peace!]
dmiller_ has joined #ruby
<eph3meral> Spooner: eh, i mean, it's ruby, native libs work fine - I happen to need some esoteric science libs that only exist in java and python
gilesw has quit [Quit: gilesw]
<eph3meral> er, well wait that sounds wrong… pure ruby gems work fine, native C gems do not - so that puts some pressure on already existing projects for sure
philcrissman has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 260 seconds]
<eph3meral> JDBC is a huge pain - and Sequel makes it less painful, but even though it's fast, it's still an ORM
<eph3meral> Spooner: for new projects that will be performance bound (massive science type computations/transformations of massive data sets) jruby is a good choice
mercwithamouth has joined #ruby
<eph3meral> for everything else, there's mastercard
jasonLaster has quit [Ping timeout: 272 seconds]
<eph3meral> wait, that came out wrong too
lushious has quit [Remote host closed the connection]
tarwich has quit [Read error: Connection reset by peer]
deo has quit [Read error: Connection reset by peer]
dmiller has quit [Ping timeout: 248 seconds]
tarwich has joined #ruby
<Hanmac> "eph3meral: for everything else, there's mastercard" until someone DDOS there servers again :P
ngoldman has joined #ruby
senny has quit [Remote host closed the connection]
<eph3meral> heh, did that happen recently?
<eph3meral> i don't read the news
sepp2k1 has joined #ruby
lggr has joined #ruby
nohonor_alt has joined #ruby
nohonor has quit [Ping timeout: 246 seconds]
shevy has quit [Read error: Operation timed out]
<Hanmac> no recently
mahmoudimus has joined #ruby
<eph3meral> didn't anonymous do that cuz of wikileaks or something?
love_color_text has joined #ruby
tosoa has quit [Quit: Veloma e!]
ddv has joined #ruby
BiHi has quit [Quit: bye]
verto|off is now known as verto
<Hanmac> Anonymous did DDOS MasterCard and Visa because they did not allow transfers to wikileaks (and because MasterCard and Visa are the bad guys)
sepp2k has quit [Ping timeout: 264 seconds]
malkomalko has joined #ruby
stkowski has joined #ruby
gfontenot has joined #ruby
mmitchell has joined #ruby
<fowl> Hanmac: no, that rapist julian assange is the bad guy
br4ndon has joined #ruby
ddv has quit [Ping timeout: 246 seconds]
<Hanmac> maybe but mastercard and visa are not better
adamkittelson has joined #ruby
lggr has quit [Ping timeout: 272 seconds]
Asher1 has joined #ruby
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby
superjoe_ has joined #ruby
superjoe has quit [Ping timeout: 260 seconds]
kenzie has quit [Remote host closed the connection]
jasonkuhrt has quit [Quit: Leaving...]
lggr has joined #ruby
havenn has joined #ruby
tarwich has quit [Read error: Connection reset by peer]
tarwich has joined #ruby
Asher1 has quit [Ping timeout: 240 seconds]
seanwash has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
carloslopes has joined #ruby
cantonic has quit [Quit: cantonic]
maxmmurphy has joined #ruby
shevy has joined #ruby
Raduwen has joined #ruby
maletor has joined #ruby
<rubious> Can I iterate through a loop using a range? Like: [1..3].each do |i|?
dmiller_ has quit [Remote host closed the connection]
BIGX333 has quit [Ping timeout: 252 seconds]
<rubious> My i keeps returning the range as a whole
<davidcelis> fowl: hahahaha
tk__ has quit [Quit: ばいばい]
<fowl> rubious: (1..3).each
<davidcelis> rubious: (1..3).to_a.each { |x|
<rubious> awesome, thanks davidcelis fowl
<davidcelis> er yeah i figured it should just work with the range
<davidcelis> to_a i think is unnecessary
<workmad3> rubious: (1..3).each
<davidcelis> >> (1..3).each { |x| x }
jonathan_ has quit [Remote host closed the connection]
<davidcelis> bot come baaack
<fowl> rubious: [1..3] is an array containing the range, you need the ()s so that each isnt called on 3 but the range
<workmad3> fowl: stop typing faster than me :P
und3f has quit [Quit: Leaving.]
<fowl> lol
bluOxigen has joined #ruby
baphled has quit [Ping timeout: 272 seconds]
dmiller has joined #ruby
ncamargo has joined #ruby
<rubious> hhahaha
<rubious> fowl: that makes much more sense, thank you
ph^ has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
ltsstar has quit [Quit: ltsstar]
cantonic has joined #ruby
ddv has joined #ruby
beakerman has quit [Remote host closed the connection]
johnjohnson has quit []
asiekierka has joined #ruby
<asiekierka> hey
a_a_g has joined #ruby
<asiekierka> so, i started learning Ruby with O'Reilly's "The Ruby Programming Language"
<asiekierka> as a C and Java hobbyist coder, this sums up my reaction: http://i.imgur.com/EBcXN.jpg
notVert has quit [Read error: Connection reset by peer]
<fowl> lol
<fowl> is that good or bad
<asiekierka> pretty good
<davidcelis> oh boy rage faces,
<davidcelis> perfect time for a meeting
<asiekierka> i'm sorry, i had to
sagax has joined #ruby
<Hanmac> asiekierka: did you read there? http://www.ruby-lang.org/en/documentation/ruby-from-other-languages/ it helps you finding the difference and the same points between ruby and the others
jasonLaster has joined #ruby
<asiekierka> Hanmac - I did but I found that... disappointing
alvaro_o has joined #ruby
<asiekierka> What I was looking for was a Ruby guide for someone who can code but wants to see what the Ruby way is all about
ph^ has quit [Ping timeout: 272 seconds]
<asiekierka> and, for $15 (50% off codes for O'Reilly are everywhere, passing each other), it's the best thing I could have grabbed
gavit has quit [Read error: Connection timed out]
samflores has joined #ruby
Boris317 has quit [Ping timeout: 268 seconds]
gavit has joined #ruby
dmiller has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 272 seconds]
jasonLaster has quit [Ping timeout: 252 seconds]
a_a_g has quit [Read error: Connection reset by peer]
dmiller has joined #ruby
lggr has joined #ruby
chussenot has quit [Ping timeout: 272 seconds]
ncr100 has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
rippa has quit [Ping timeout: 244 seconds]
a_a_g has joined #ruby
roadt has quit [Ping timeout: 252 seconds]
demian`_ has quit [Quit: demian`_]
ryanf has quit [Ping timeout: 240 seconds]
dmiller has quit [Remote host closed the connection]
mrsolo has joined #ruby
spopescu has joined #ruby
tarwich has quit [Read error: Connection reset by peer]
Musok has joined #ruby
kjg has quit [Read error: Connection reset by peer]
sendoushi has quit [Read error: Connection reset by peer]
spopescu has left #ruby [#ruby]
kjg has joined #ruby
tarwich has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
carcajou is now known as Veejay
Takehiro has joined #ruby
<shevy> there is no shortcut for knowledge!
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
havenn has quit [Remote host closed the connection]
lggr has joined #ruby
superjoe_ is now known as superjoe
philcrissman has joined #ruby
Takehiro has quit [Ping timeout: 264 seconds]
tarwich has quit [Read error: Connection reset by peer]
a_a_g has quit [Read error: Connection reset by peer]
ddv has quit [Changing host]
ddv has joined #ruby
a_a_g has joined #ruby
Goles has quit [Quit: Computer has gone to sleep.]
tarwich has joined #ruby
<tarwich> ctrl+shift+k,n
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
<fowl> meta-alt-super-þ
robbyoconnor has joined #ruby
<tarwich> shortcut for knowledge
<tarwich> You have to have a good enough processor though, because it can take a long time to load
emanu has joined #ruby
malkomalko has quit [Remote host closed the connection]
Jamone has joined #ruby
Jamone has joined #ruby
Jamone has quit [Changing host]
F1skr has quit [Quit: WeeChat 0.3.8]
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
JustinCampbell has joined #ruby
jjbohn is now known as jjbohn|afk
lggr has quit [Ping timeout: 248 seconds]
Markvilla has joined #ruby
Monie has quit [Ping timeout: 244 seconds]
daniel_hinojosa has quit [Quit: Leaving.]
<shevy> hmmm
<shevy> I want neural chips for the brain
<fowl> you need neural chips shevy
lggr has joined #ruby
thunderstrike has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
sts23 has quit [Ping timeout: 248 seconds]
<shevy> imagine I would not have to learn anything... I'd simply update my CPU
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
ABK has joined #ruby
Virunga has joined #ruby
Faris has joined #ruby
Faris has left #ruby [#ruby]
GoGoGarrett has quit [Remote host closed the connection]
GoGoGarrett has joined #ruby
Foxandxss has joined #ruby
ph^ has joined #ruby
tommyvyo has joined #ruby
hadees has joined #ruby
philcrissman has quit [Remote host closed the connection]
Guest26292 has quit [Ping timeout: 248 seconds]
diegoviola has quit [Ping timeout: 248 seconds]
<Hanmac> shevy neural chips are cool, but it maybe takes not much time until the US use them as remote control ...
kemet has joined #ruby
kemet has left #ruby [#ruby]
mmitchell has quit [Remote host closed the connection]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<davidcelis> neural chips are about 3 years away from happening
tscolari has quit [Remote host closed the connection]
jgrevich has joined #ruby
<shevy> Hanmac only as long as criminal networks are in charge
<Hanmac> i can wait ...
lggr has quit [Ping timeout: 272 seconds]
aaroncm has quit [Quit: Computer has gone to sleep.]
<shevy> I've seen some crazy performance artist who implanted an ear into his left forearm
<davidcelis> ...
emmanuelux has quit [Quit: emmanuelux]
<Hanmac> shevy neural chips could be make a backup copy of your self
emanu has quit [Quit: emanu]
barefoot has left #ruby [#ruby]
<davidcelis> daily mail...
<davidcelis> so, basically, that shit is faker than 9/11
samflores has quit [Quit: Linkinus - http://linkinus.com]
savage- has joined #ruby
<Hanmac> shevy it would be more cool if he could hear with this ear :P
<davidcelis> wake up sheeplevy
<shevy> davidcelis it is not a fake :)
eph3meral has quit [Quit: eph3meral]
blazes816 has joined #ruby
jasonLaster has joined #ruby
<davidcelis> faker than princess diana's death
jonathanwallace has joined #ruby
<shevy> well, it is not a "real" ear of course
lggr has joined #ruby
<fowl> lol
pu22l3r has quit [Ping timeout: 244 seconds]
<davidcelis> DUH
a_a_g has quit [Quit: Leaving.]
<shevy> pretty nightmarish
mmitchell has joined #ruby
kirun_ has joined #ruby
pu22l3r has joined #ruby
<davidcelis> this shit is faker than my love for hoes one love and im out
horofox has joined #ruby
<coooter> hey
jasonkuhrt has joined #ruby
daniel_hinojosa has joined #ruby
daniel_hinojosa has quit [Client Quit]
<shevy> coooter what
<shevy> coooter say something
<horofox> Hi everybody. In rubyforge there's a rdoc for the class of a gem that I currently maintain(I'm getting started into it), how do I edit it?
<coooter> what?
<shevy> horofox download the gem, extract it, modify the file, push the change?
kirun has quit [Ping timeout: 245 seconds]
<horofox> shevy: where is it located?
<Hanmac> shevy do you know that i hate? when you maybe cut of your arm (i mean maybe in a accident) the zells die ... imo they should fall into hibernate ...
Piersandro has quit [Remote host closed the connection]
<shevy> horofox all gems can be found in cache/ subdirectory
<horofox> shevy: no, I mean the docs.
<shevy> they should be part of the .gem file in question
<shevy> you can extract the .gem archive
<shevy> gem unpack *.gem
<shevy> PREFIX_USED_FOR_YOUR_RUBY_INSTALLATION/lib/ruby/gems/1.9.1/cache/
<shevy> like
<shevy> /usr/lib/ruby/gems/1.9.1/cache/
<shevy> if you use debian then I think it is some crazy other path :)
<horofox> Oh thanks
<horofox> Yea, debian is so hipster
guest123as has quit [Remote host closed the connection]
<shevy> hehe
<Hanmac> horofox the docs are mostly generates from the source code itself ... so look into the *.rb files
guest991x has joined #ruby
codeFiend has joined #ruby
<horofox> Hanmac: yea, i've just noticed that... going to Ack my way to where I have to change
guest991x has quit [Remote host closed the connection]
<horofox> thanks
lggr has quit [Ping timeout: 264 seconds]
KaOSoFt has joined #ruby
<KaOSoFt> Hello.
<shevy> KaOSoFt hi
MissionCritical has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has quit [Remote host closed the connection]
<KaOSoFt> Is ri installed with Ruby?
<Mon_Ouie> It should be
<shevy> KaOSoFt if you compile from source, yes. if you are on debian, they probably dont wanna have you use it by default :P
<KaOSoFt> I installed 1.9.3-p194 through homebrew on OS X, but it only finds the system version.
<KaOSoFt> Hmm...
<Mon_Ouie> Some packagers decide to split it
<Mon_Ouie> I'd use RVM on OS X (and some would recommend rbenv)
xial1 has joined #ruby
<Hanmac> i'd use no OSX :P
<KaOSoFt> I was using rbfu, but since I switched shells, it doesn’t work anymore. I’ll see if there is an RVM wrapper for fish.
jasonLaster has quit [Remote host closed the connection]
kn330 has quit [Excess Flood]
<KaOSoFt> Where would it normally be located?
<KaOSoFt> ri, I mean.
jasonLaster has joined #ruby
kn330 has joined #ruby
<Mon_Ouie> In the same directory as the ruby binary
<Mon_Ouie> Alternatively you could install the gem version of rdoc
rfitz has joined #ruby
snorkdude has joined #ruby
<shevy> ah fish is a funny shell
xclite has quit [Remote host closed the connection]
<KaOSoFt> Hmm... brew package isn’t installing it then. Although for what I see, it’s compiling it from source. Is there an additional CONFIGURE_OPTS line I should add to compile it with ri?
<KaOSoFt> shevy: I’m kind of liking it.
<shevy> I thought it already died though
<KaOSoFt> Yep.
<shevy> yeah, they bring new ideas which is good
aristidesfl has quit [Ping timeout: 248 seconds]
<KaOSoFt> Nah, that’s the new fork, which is progressing smoothly. It’s actually recommended by the original fish author.
mmitchell has quit [Remote host closed the connection]
<KaOSoFt> Mon_Ouie: oh, rdoc gem includes a ri binary?
<Mon_Ouie> I think so
Araxia has joined #ruby
rudyl313 has joined #ruby
aristidesfl has joined #ruby
<KaOSoFt> Mon_Ouie: Indeed it did. I see, of course, this version *does* include interactive mode. That was it, then. :)
cantonic has quit [Read error: Connection reset by peer]
<KaOSoFt> Thank you.
mucker has quit [Quit: leaving]
<Mon_Ouie> There's probably still a problem though
<KaOSoFt> Wha? :'(
<Mon_Ouie> It's not going to include the documentation data for Ruby core classes, only for gems
cantonic has joined #ruby
jasonLaster has quit [Ping timeout: 272 seconds]
<KaOSoFt> Hmm... FileUtils is a core class?
<shevy> yeah
<shevy> you can pull it in via require 'fileutils'
rfitz has left #ruby [#ruby]
<KaOSoFt> “ri FileUtils.mkdir” works just fine.
<Mon_Ouie> Technically it's in stdlib, not core — but yes, I would have expected the documentation for those to be missing to but apparently…
<fowl> KaOSoFt: nobody uses ri anymore ;)
<Mon_Ouie> What about ri String?
JustinCampbell has quit [Remote host closed the connection]
<KaOSoFt> Mon_Ouie: fine as well.
ryanf has joined #ruby
<KaOSoFt> fowl: I use it from time to time. I try not to leave my environment (go to Google and search for it) when checking how something works.
<Hanmac> i use ri :P
<fowl> i use show-doc, show-source and feel leet when doing so
<Hanmac> KaOSoFt you could maybe like "gem server"
lggr has joined #ruby
gen0cide_ has joined #ruby
<Hanmac> fowl i have pry installed but i dont use it :P
<KaOSoFt> Hanmac: what for?
<fowl> Hanmac: im getting more and more convinced that you're a troll in disguise (:
Mission-Critical has joined #ruby
maxmmurphy_ has joined #ruby
imami|afk is now known as banseljaj
<KaOSoFt> I use irb with completion, history and that’s it.
<Mon_Ouie> The problem with show-doc is it sometimes has much less information than ri — e.g. ri Regexp says tons of stuff, show-doc Regexp is almost empty
apok_ has joined #ruby
ryanf has quit [Quit: leaving]
<Hanmac> fowl ... do you really compare me with banister? oO
<KaOSoFt> In any case, thanks for the help.
<KaOSoFt> See you around.
<Mon_Ouie> KaOSoFt: cd into objects, list their methods, etc.
<fowl> Hanmac: you think banister is in disguise?
KaOSoFt has left #ruby [#ruby]
ryanf has joined #ruby
<fowl> his loss
luckyruby has joined #ruby
maxmmurphy__ has joined #ruby
snorkdude has quit [Remote host closed the connection]
maxmmurphy has quit [Ping timeout: 260 seconds]
maxmmurphy__ is now known as maxmmurphy
maxmmurphy has quit [Client Quit]
thatRD has joined #ruby
maxmmurphy_ has quit [Read error: Connection reset by peer]
jrist is now known as jrist-afk
apok has quit [Ping timeout: 260 seconds]
apok_ is now known as apok
tvw has joined #ruby
<shevy> Hanmac, can you tell me on your debian system... libcrypt.so belongs to which package please?
<shevy> libcrypt.so, not libcrypto.so (libcrypto.so belongs to openssl)
lggr has quit [Ping timeout: 240 seconds]
xial1 has quit [Remote host closed the connection]
reset has joined #ruby
trashcann has joined #ruby
<shevy> ah
<shevy> ok... libgcrypt is the name :P
Mission-Critical is now known as MissionCritical
Boris317_ has joined #ruby
reset_ has joined #ruby
reset has quit [Read error: Connection reset by peer]
<Hanmac> shevy: libcrypt.so is in libc6-dev
<shevy> lies!
trashcann has quit [Remote host closed the connection]
<shevy> glibc is the only component that still scares me...
cosmooo has joined #ruby
<Hanmac> shevy i mean libcrypt not libgcrypt
tarwich has quit [Read error: Connection reset by peer]
lggr has joined #ruby
<shevy> ah
cosmooo has quit [Remote host closed the connection]
<shevy> gosh that is confusing... libcrypt libcrypto and libgcrypt
emmanuelux has joined #ruby
tarwich has joined #ruby
yogii has joined #ruby
tvw has quit [Remote host closed the connection]
tvw has joined #ruby
CodeFriar has quit [Quit: Leaving...]
yogii has quit [Client Quit]
iocor has joined #ruby
progin has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
jjbohn|afk is now known as jjbohn
tarwich has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
eldariof has joined #ruby
blazes816 has quit [Quit: blazes816]
tarwich has joined #ruby
tewecske has joined #ruby
stopbit_ has joined #ruby
Goles has joined #ruby
stopbit has quit [Read error: Connection reset by peer]
stopbit_ is now known as stopbit
lggr has quit [Ping timeout: 264 seconds]
GoGoGarrett has quit [Remote host closed the connection]
GoGoGarrett has joined #ruby
<Hanmac> GoGoGarrett: Garret ? wasnt that the Guy from "Dark Project"?
<GoGoGarrett> Not it
Takehiro has quit [Ping timeout: 245 seconds]
stopbit has quit [Read error: Connection reset by peer]
stopbit has joined #ruby
eph3meral has joined #ruby
amacgregor_osx has quit [Remote host closed the connection]
apeiros_ has joined #ruby
jasonLaster has joined #ruby
jasonLaster has quit [Remote host closed the connection]
chrisja has quit [Quit: leaving]
jasonLaster has joined #ruby
<Hanmac> GoGoGarrett: i mean this guy: http://en.wikipedia.org/wiki/Garrett_%28character%29
haxrbyte_ has quit [Ping timeout: 260 seconds]
mmitchell has joined #ruby
abionic has joined #ruby
tarwich has quit [Quit: Leaving.]
<geekbri> When using rbenv and bundler, is there a way to be able to avoid having to type bundle exec every dang time :)
adelcampo has joined #ruby
ABK has quit [Read error: Connection reset by peer]
katherinem13 has quit [Quit: katherinem13]
<lectrick> not if you don't want bundler to manage the gem loading unfortunately
<Hanmac> geekbri yeah avoid both :P
<lectrick> i mean "not if you want"
progin has quit [Remote host closed the connection]
<geekbri> I unfortunately dont know how much of a choice I have. Three separate projects each with different gem dependencies, not sure what other good choice there is :)
wpaulson has joined #ruby
<lectrick> Hanmac: Clearly you've never dealt with gem version collisions and interdependency nightmares across different projects. I'm doing a rails 3.0 to 3.1 upgrade as I speak and I'd be dead in the water without some sort of gemset management
tvw has quit [Remote host closed the connection]
bossman has joined #ruby
tvw has joined #ruby
<lectrick> geekbri: yeah i'm in the same boat. You can use RVM gemsets but then you have to manually switch them when you switch branches
<Hanmac> lectrick you are right ... i never used rails
lggr has joined #ruby
<geekbri> lectrick: yeah i was trying to switch from rvm to rbenv
<elico> anyone worked with tokyocabinet? where can i find docs about the options of open?
katherinem13 has joined #ruby
<shevy> lectrick well I have to agree with Hanmac. the best way to avoid those problems is by ... not using bundler :-)
luxurymode has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jkary has joined #ruby
austinbv has joined #ruby
trey_ has joined #ruby
<shevy> but I think the rails guys don't have much choice here
<shevy> bundler bundler bundler!
swarley has joined #ruby
<Boris317_> elico: http://bit.ly/Slpd0x
ilyam has joined #ruby
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
jasonLaster has quit [Remote host closed the connection]
rippa has joined #ruby
jasonLaster has joined #ruby
mneorr has joined #ruby
Boris317_ is now known as boris317
robbyoconnor has quit [Ping timeout: 255 seconds]
hiram has joined #ruby
<hiram> hello
lggr has quit [Ping timeout: 255 seconds]
remi has joined #ruby
remi has quit [Changing host]
remi has joined #ruby
<shevy> hiram HI
<hiram> Folks, does any of you guys know about a opengis implementation for Ruby? I'm currenly using PostGIS (only for the convenient functions it offers), but I don't really need Postgres
RichieEvan has joined #ruby
<hiram> Hi shevy :)
reset_ has quit [Ping timeout: 245 seconds]
blazes816 has joined #ruby
fantazo has quit [Remote host closed the connection]
<fowl> hiram: if it doesnt come up on google or searching rubygems poke around ruby-toolbox.com
jasonLaster has quit [Ping timeout: 272 seconds]
<hiram> fowl: yep, gotta check. I found RGeo, but I'm not sure if it can do what I need. I don't need to persist anything on postgres/postgis, just need the functions. thx
<hiram> fowl: postgis rocks to make geographic operations (specially on geodesic contexts)
<hiram> fowl: but postgres is a big fat elephant that I don't need, once I use MySQL
ilyam has quit [Quit: ilyam]
jasonLaster has joined #ruby
jgrevich_ has joined #ruby
phelps has quit [Quit: Linkinus - http://linkinus.com]
wpaulson_ has joined #ruby
jgrevich has quit [Ping timeout: 272 seconds]
jgrevich_ is now known as jgrevich
<eph3meral> hiram: s/one/since/ ?
lggr has joined #ruby
<hiram> eph3meral: since :)
cakehero has quit [Quit: Leaving...]
<hiram> eph3meral: I thought I was a geek, but very cool seeing people taking with regexp hhaha
<hiram> s/taking/talking/
havenn has joined #ruby
Musok has quit [Remote host closed the connection]
wpaulson_ has quit [Client Quit]
wpaulson has quit [Ping timeout: 244 seconds]
<hiram> eph3meral: mysql has spatial extensions, but as far as I know, it doesn't offer geodesic operations (ie. distance between two points on earth surface)
<eph3meral> hiram: yeah, spatial extensions that don't work :P
<eph3meral> hiram: I think that if you have a need for an RDBMS anyway already, which you do, since you're already using MySQL, and you could benefit from the PostGIS extensions, then it's a natural choice to migrate your existing app over to MySQL
CarlB_the_great has joined #ruby
<eph3meral> although, I understand if there are barriers to that
<eph3meral> such as if the project is large, or you are an idiot
<eph3meral> you know, the usual
<eph3meral> :P
null- has joined #ruby
<hiram> eph3meral: yep, I didn't give it a try, but probably you did, postgis rocks, but they should have extracted the geo portion from postgis
Zespre has quit [Ping timeout: 245 seconds]
<eph3meral> hiram: yeah, sort of a bummer to require an entire RDBMS if you aren't using an RDBMS
<hiram> eph3meral: I could consider migrating to postgres, I chose MySQL only because I'm more familiar with it, I think rails shouldn't have any problems if I migrate
<hiram> eph3meral: exactly
<eph3meral> hiram: except… you are in fact, using an RDBMS :P
<eph3meral> hiram: and actually, yes you're right, you should have no problem moving to postgres in rails
cakehero has joined #ruby
<eph3meral> hiram: /join #postgres if you like and I can help you with one or two pointers
<hiram> eph3meral: I found RGeo on RubyToolbox, gonna give it a try, if doesn't work I will follow your advice and migrate to postgres
Juul has joined #ruby
<eph3meral> should be all you need to get started
<eph3meral> k
<hiram> hiram: cool
Zespre has joined #ruby
<hiram> eph3meral: cool
PragCypher has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 264 seconds]
swarley has quit [Ping timeout: 244 seconds]
PragCypher has joined #ruby
tvw has quit [Remote host closed the connection]
bananagram has joined #ruby
tvw has joined #ruby
<matti> shevy shevy
austinbv has quit [Ping timeout: 246 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
love_color_text has quit [Remote host closed the connection]
<havenn> db.
luckyruby has quit [Remote host closed the connection]
adelcampo is now known as doritostains
<shevy> matti matti
luckyruby has joined #ruby
<shevy> lol
<shevy> <hiram> hiram: cool
austinbv has joined #ruby
<shevy> shevy: cool
mercwithamouth has joined #ruby
aeos has joined #ruby
sailias has joined #ruby
lggr has joined #ruby
mmitchell has quit [Remote host closed the connection]
chimay has quit [Quit: WeeChat 0.3.9-rc1]
remi has quit [Quit: leaving]
eldariof has quit [Ping timeout: 252 seconds]
tarwich has joined #ruby
bossman has quit [Quit: node-irc says goodbye]
jonathanwallace has quit [Read error: No route to host]
jonathanwallace has joined #ruby
tacotime has joined #ruby
c0rn_ has joined #ruby
tvw has quit [Remote host closed the connection]
tvw has joined #ruby
demian`_ has joined #ruby
tarwich has quit [Read error: Connection reset by peer]
tarwich has joined #ruby
mmitchell has joined #ruby
icooba has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 250 seconds]
tarwich has quit [Read error: Connection reset by peer]
tarwich has joined #ruby
lggr has quit [Ping timeout: 272 seconds]
lggr has joined #ruby
tarwich has quit [Read error: Connection reset by peer]
arya has joined #ruby
tarwich has joined #ruby
banisterfiend has quit [Ping timeout: 264 seconds]
monobit_ has joined #ruby
asteve has quit [Ping timeout: 244 seconds]
monobit_ is now known as asteve
bricker88 has joined #ruby
RichieEvan has quit [Quit: RichieEvan]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
tacotime has quit [Remote host closed the connection]
jrist-afk is now known as jrist
austinbv has quit [Ping timeout: 244 seconds]
Takehiro has joined #ruby
apok has quit [Quit: apok]
tarwich has quit [Read error: Connection reset by peer]
tarwich has joined #ruby
RichieEvan has joined #ruby
apok has joined #ruby
h4mz1d has joined #ruby
ilyam has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
sailias has quit [Quit: Leaving.]
apok has quit [Client Quit]
Takehiro has quit [Ping timeout: 248 seconds]
pricees has quit [Quit: leaving]
jkary has quit [Remote host closed the connection]
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Tearan has joined #ruby
Jake232 has joined #ruby
lggr has joined #ruby
<davidcelis> stop highlighting cool
<davidcelis> leave cool alone
jkary has joined #ruby
arya has left #ruby [#ruby]
ninegrid_ has quit [Ping timeout: 260 seconds]
jkary has quit [Client Quit]
<shevy> lol
chaplain is now known as thomas
Tearan has quit [Client Quit]
stabby_lambda has joined #ruby
Xeago has joined #ruby
ninegrid has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
gen0cide_ has quit [Quit: ["rm -rf $ME"]]
noyb has joined #ruby
luxurymode has joined #ruby
niklasb has joined #ruby
recycle has joined #ruby
mva3212 has joined #ruby
<apeiros_> davidcelis: keep cool
nohonor_alt has quit [Ping timeout: 260 seconds]
octarine has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
recycle has quit [Remote host closed the connection]
h4mz1d has quit [Ping timeout: 272 seconds]
Xeago_ has joined #ruby
nga4 has quit [Ping timeout: 264 seconds]
noyb has quit [Ping timeout: 272 seconds]
pskosinski has quit [Ping timeout: 260 seconds]
noyb has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
cakehero has quit [Quit: Leaving...]
<shevy> apeiros_! you are back!
<apeiros_> no. just visiting.
Xeago has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
robustus has quit [Quit: ZNC - http://znc.in]
Virunga has quit [Remote host closed the connection]
lsousa has left #ruby [#ruby]
lggr has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
pskosinski has joined #ruby
stabby_lambda has quit [Remote host closed the connection]
Nisstyre has quit [Quit: Leaving]
chussenot has joined #ruby
havenn has quit [Remote host closed the connection]
cakehero has joined #ruby
adambeynon has joined #ruby
tarwich has quit [Read error: Connection reset by peer]
elaptics is now known as elaptics`away
tarwich has joined #ruby
thone has joined #ruby
tvw has quit [Ping timeout: 264 seconds]
tvw has joined #ruby
guns has joined #ruby
juarlex has quit [Remote host closed the connection]
guns is now known as Guest44333
Guest44333 has quit [Client Quit]
sneakyness_wk has joined #ruby
mercwithamouth has joined #ruby
<ilyam> if i have a class that's defined in a nested module
<ilyam> is there a short-hand way to define the parent modules on a single line?
haxrbyte has joined #ruby
<fowl> defining modules in one line? when does it end??
Goles has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lggr has quit [Ping timeout: 246 seconds]
<boris317> when your head explodes
gr4ss has joined #ruby
<boris317> ilyam: I don't understand the question
gr4ss has quit [Remote host closed the connection]
<ilyam> i don't want my class body to be indented 10 spaces
thone_ has quit [Ping timeout: 268 seconds]
<ilyam> is there a short-hand way to define the 4 enclosing modules?
<fowl> ilyam: try class Sequel::Mysql2::EM::Synchorny::Database < ::f::u
locriani is now known as locriani-fleeing
locriani-fleeing is now known as locriani
mneorr has quit [Quit: Leaving.]
recycle has joined #ruby
tarwich has quit [Read error: Connection reset by peer]
<ilyam> eh,looks like there's a problem - i'm defining the EM and Synchrony modules for the first time too
tarwich has joined #ruby
seanwash has joined #ruby
* fowl would not use an api like that
<boris317> ilyam: Is that level of nesting needed?
lggr has joined #ruby
* fowl might even file a bug report that just notes the crazy nesting level, depending on how fowl felt that day
<ilyam> heh
<ilyam> you never reference the class directly, Sequel looks it up based on the adapter scheme
<ilyam> and I'm just namespacing it to be consistent with the other adapters it ships with
mark_locklear has quit [Quit: Leaving]
<ilyam> better than a class named "SequelMysql2EmSynchronyDatabase"
lucianosousa has joined #ruby
monkegji_ has joined #ruby
emanu has joined #ruby
haxrbyte_ has joined #ruby
tusk has joined #ruby
tusk has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
lucianosousa has quit [Quit: lucianosousa]
bluenemo_ has joined #ruby
bluenemo_ has quit [Changing host]
bluenemo_ has joined #ruby
corck has joined #ruby
wpaulson has joined #ruby
lucianosousa has joined #ruby
corck has quit [Remote host closed the connection]
<fowl> at least i'd only have to hit tab a few times to get to that
asiekierka has quit [Remote host closed the connection]
<apeiros_> 21:43 fowl: ilyam: try class Sequel::Mysql2::EM::Synchorny::Database < ::f::u
monkegji_ has quit [Read error: Connection reset by peer]
<apeiros_> Sync horny - awesome
luxurymode has quit [Ping timeout: 244 seconds]
<apeiros_> after the horny sync, do the penetration tests…
bluenemo has quit [Ping timeout: 272 seconds]
monkegjinni has joined #ruby
<ilyam> hey i didn't name it
* fowl injects his sql into apeiros_
* apeiros_ squirts his secrets
icooba has joined #ruby
icooba has quit [Excess Flood]
<ilyam> ended up with
<ilyam> module Sequel::Mysql2::Synchrony
<ilyam> class Database < ::Sequel::Mysql2::Database
recycle has quit [Remote host closed the connection]
<ilyam> 2-space indent i can live with
noyb has quit [Ping timeout: 255 seconds]
haxrbyte has quit [Ping timeout: 272 seconds]
icooba has joined #ruby
icooba has quit [Excess Flood]
gordon1 has joined #ruby
icooba has joined #ruby
icooba has quit [Excess Flood]
gordon1 has quit [Remote host closed the connection]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
tvw has quit [Read error: Connection reset by peer]
icooba has joined #ruby
icooba has quit [Excess Flood]
tvw has joined #ruby
icooba has joined #ruby
icooba has quit [Excess Flood]
bluenemo_ has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 264 seconds]
icooba has joined #ruby
icooba has quit [Excess Flood]
recycle has joined #ruby
horofox has quit [Quit: horofox]
icooba has joined #ruby
icooba has quit [Excess Flood]
w400z has joined #ruby
<coooter> sigh
lggr has joined #ruby
monkegjinni has quit [Ping timeout: 272 seconds]
horofox has joined #ruby
icooba has joined #ruby
icooba has quit [Excess Flood]
gordonn has joined #ruby
icooba has joined #ruby
icooba has quit [Excess Flood]
CodeFriar has joined #ruby
icooba has joined #ruby
icooba has quit [Excess Flood]
tvw has quit [Remote host closed the connection]
icooba has joined #ruby
icooba has quit [Excess Flood]
<coooter> glad its friday
tvw has joined #ruby
specialGuest has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
Jake232 has quit [Quit: Computer has gone to sleep.]
icooba has joined #ruby
icooba has quit [Excess Flood]
elux has quit [Quit: Bye!]
icooba has joined #ruby
icooba has quit [Excess Flood]
RichieEvan has quit [Quit: RichieEvan]
billy_ran_away has joined #ruby
icooba has joined #ruby
icooba has quit [Excess Flood]
monobit_ has joined #ruby
asteve has quit [Disconnected by services]
monobit_ is now known as asteve
rutkla has joined #ruby
icooba has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
icooba has quit [Excess Flood]
Araxia_ has joined #ruby
chrxn__ has joined #ruby
<billy_ran_away> Anyone know of an elegant way to, given an array of arrays, get an array of the individual elements within the inner arrays that are common among at least two of them?
icooba has joined #ruby
icooba has quit [Excess Flood]
<billy_ran_away> i.e. [[1,2,3],[1,4,5],[2,6,7],[8,9,10],[]] => [1,2,3]
<billy_ran_away> i.e. [[1,2,3],[1,4,5],[2,6,7],[8,9,10],[]] => [1,2]
<billy_ran_away> No 3...
recycle has quit [Remote host closed the connection]
RichieEvan has joined #ruby
yshh has joined #ruby
icooba has joined #ruby
icooba has quit [Excess Flood]
apok has joined #ruby
<billy_ran_away> I thought array.inject { |similar, first_pass| array.inject { |similar, second_pass| first_pass & second_pass } } was working for me at first...
<billy_ran_away> At least until I had a blank array...
icooba has joined #ruby
icooba has quit [Excess Flood]
bwlang has joined #ruby
<billy_ran_away> I mean at least until I added a blank array to the array of arrays, then it stopped
gordonn has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
icooba has joined #ruby
icooba has quit [Excess Flood]
bluenemo has quit [Remote host closed the connection]
<apeiros_> billy_ran_away: inefficient, O(n^2)
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<apeiros_> use a counting hash
<billy_ran_away> apeiros_: Can you give me an example or a URL?
icooba has joined #ruby
icooba has quit [Excess Flood]
lggr has quit [Ping timeout: 248 seconds]
<Hanmac> billy_ran_away: [[1,2,3],[1,4,5],[2,6,7],[8,9,10],[]].flatten.group_by(&:to_i).select{|k,v|v.size > 1}.keys #=> [1, 2]
wpaulson_ has joined #ruby
<apeiros_> billy_ran_away: are the inner arrays guaranteed to consist of unique items?
icooba has joined #ruby
icooba has quit [Excess Flood]
inokenty has joined #ruby
<billy_ran_away> apeiros_: Yea, it's from a select distinct....
icooba has joined #ruby
icooba has quit [Excess Flood]
<apeiros_> seen = Hash.new(0); ary.each do |inner| inner.each do |x| seen[x] += 1 end end; seen.select { |k,v| v > 1 }.map(&:first)
<apeiros_> or what Hanmac wrote
icooba has joined #ruby
icooba has quit [Excess Flood]
workmad3 has joined #ruby
deryl has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
icooba has joined #ruby
icooba has quit [Excess Flood]
mneorr has joined #ruby
pu22l3r has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
wpaulson_ is now known as wpaulson
icooba has joined #ruby
icooba has quit [Excess Flood]
maletor has joined #ruby
<billy_ran_away> Thanks apeiros_ and Hanmac!
jimeh has quit [Ping timeout: 240 seconds]
icooba has joined #ruby
icooba has quit [Excess Flood]
icooba has joined #ruby
icooba has quit [Excess Flood]
icooba has joined #ruby
icooba has quit [Excess Flood]
tvw has quit [Ping timeout: 272 seconds]
s1n4 has joined #ruby
krawchyk has quit [Remote host closed the connection]
icooba has joined #ruby
abc123x has joined #ruby
<tarwich> If it were in a variable data[0].flatten & data[1..-1].flatten would work
bigmeow has quit [Ping timeout: 244 seconds]
abc123x has quit [Remote host closed the connection]
recycle has joined #ruby
<tarwich> rather data[0] & data[1..-1].flatten
jasonLaster has quit [Remote host closed the connection]
monkegjinni has joined #ruby
<apeiros_> tarwich: ?
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<apeiros_> you mean billy_ran_away's problem?
<apeiros_> then no, that'd be a broken solution.
<tarwich> Yeah...
jasonLaster has joined #ruby
Takehiro has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
<apeiros_> he didn't say "in the first + any of the following array" - which is what yours does.
swarley has joined #ruby
<apeiros_> [[],[1],[1]] # your solution would give a wrong answer for this
<tarwich> Right you are
recycle has quit [Remote host closed the connection]
<billy_ran_away> Thanks for the suggestion though tarwich!
lggr has quit [Ping timeout: 240 seconds]
s1n4 has quit [Client Quit]
gordon1 has joined #ruby
<tarwich> :-)
gordon1 has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
xorgnak has joined #ruby
bobby1 has joined #ruby
jasonLaster has quit [Ping timeout: 244 seconds]
ffranz has joined #ruby
bluenemo has quit [Remote host closed the connection]
Markvilla has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Ping timeout: 264 seconds]
thatRD has quit [Quit: thatRD]
noyb has joined #ruby
deryl has joined #ruby
rubious has quit [Quit: Leaving...]
<shevy> sandwich
bobby1 has quit [Remote host closed the connection]
jimeh has joined #ruby
Markvilla has joined #ruby
<matti> On nom nom
<matti> Thanks shevy !
idletom has joined #ruby
bigmeow has joined #ruby
Markvilla has quit [Client Quit]
<shevy> wat :(
<shevy> thief!
<shevy> give it back!!!
mva3212 has quit [Remote host closed the connection]
<matti> HAhah
<matti> ;]
<matti> Too late ;p
xorgnak has quit [Read error: Connection reset by peer]
lggr has joined #ruby
jonathanwallace has quit [Ping timeout: 272 seconds]
Wizywig has joined #ruby
jonathanwallace has joined #ruby
<tarwich> :-D is there a way… To do something like Debugger.start in the middle of my code, which would suspend execution (run from terminal) and allow me to enter irb-like commands to introspect? ala gdb
fir_ed has joined #ruby
<matti> Yes.
<matti> More that one.
<shevy> One way is to slay the matti beast.
<Wizywig> can anyone PLEASE help tell me how to figure out how many days elapsed in between one date object and one datetime object, im a bit in tears atm due to this insanity
<matti> There is also Pry integration.
* matti bites shevy in the leg
<matti> ARR ARR
<matti> I am a beast
* tarwich proposes to matti
* matti goes O_o
sailias has joined #ruby
<tarwich> Can't offer you a ring, but I can give you another sandwich… Will you marry me?
<fowl> tarwich: i dont know why ruby-debug is the top answer, pry is easier to use
chessguy has joined #ruby
<tarwich> Looking intuit
<matti> fowl: I've mentioned both.
<matti> :<
jjbohn has quit [Ping timeout: 252 seconds]
<matti> tarwich: Snadwich...
<fowl> matti: yes yes you'll get your gold star for the day
<matti> tarwich: I will accept a ring.
phelps has joined #ruby
<matti> tarwich: But then I have to divorce you.
peregrine81 has joined #ruby
<matti> tarwich: So I can sell said ring and buy more Eve Online subscribitons.
<matti> ;D
<tarwich> LOL
<matti> fowl: REALY?
<matti> fowl: A real one?!
voodoofish430 has joined #ruby
savage- has quit [Remote host closed the connection]
<matti> fowl: Like a Sherif star?
<matti> fowl: Will shevy be jealous?
<matti> ;d
chessguy has quit [Remote host closed the connection]
* matti sparkles with joy and excitement
<matti> That's is better than being paind to work with Ruby
<matti> A real star sticket
<matti> sticker*
workmad3 has joined #ruby
axl_ has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
Virunga has joined #ruby
kvirani has quit [Remote host closed the connection]
fowl is now known as fowl-siesta
bosinn has joined #ruby
bosinn has quit [Remote host closed the connection]
chessguy has joined #ruby
apeiros_ has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
coooter has quit [Quit: Page closed]
<shevy> alright
<shevy> I had it up to here
<shevy> matti needs a new project
noyb has quit [Ping timeout: 240 seconds]
<shevy> he has too much time in his hands right now
Wizywig has quit [Quit: Page closed]
chrxn__ has quit [Ping timeout: 260 seconds]
uris has quit [Quit: leaving]
lggr has joined #ruby
Chryson has joined #ruby
tarwich has quit [Read error: Connection reset by peer]
tarwich has joined #ruby
monkegji_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<matti> shevy: Sure.
jasonLaster has joined #ruby
schwap has joined #ruby
<matti> shevy: Like I need more to add to my 12 h working day.
icooba has quit [Quit: Computer has gone to sleep.]
chrxn__ has joined #ruby
gavit has quit [Read error: Connection timed out]
Araxia_ has quit [Ping timeout: 255 seconds]
<shevy> lazy!
gavit has joined #ruby
lggr has quit [Ping timeout: 272 seconds]
<matti> Pfff
* matti stabs shevy
<shevy> ruby is not work
<matti> And your second sandwich is also mine!
<shevy> ruby is poetry in motion
<matti> shevy: I don't work with Ruby
<matti> shevy: I am a systems guy.
<shevy> :(
RichieEvan has quit [Quit: RichieEvan]
nga4 has joined #ruby
<matti> shevy: I have to work with utterly shit Java code that bunch of college-graduates who have primadonna-syndrome write.
rippa has quit [Ping timeout: 252 seconds]
<wunz> be happy you're working :D
jasonLaster has quit [Ping timeout: 272 seconds]
hadees has quit [Quit: hadees]
<matti> wunz: I have no life. 12 h working days and 24/7 on-call.
<wunz> what company?
<shevy> at least you'll get rich
<wunz> or better yet, what industy
<matti> wunz: Its 21:50 and I am just eating lunch.
<matti> wunz: Had another too busy day.
<shevy> isn't it friday night? :)
<wunz> what industry is it?
<shevy> GO OUT AND PARTY
<matti> shevy: With whom?
geekbri has quit [Remote host closed the connection]
asklov has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
<wunz> lol
<wunz> ppl that u don't know?
lggr has joined #ruby
<shevy> with beer in one hand and a sombreror in the other hand
<wunz> thats the point of parting :D
SCommette_ has joined #ruby
<shevy> *sombrero
<shevy> with the happy people!
<shevy> see wunz is da party man, I can see that instantly
monkegji_ has quit [Read error: Connection reset by peer]
<wunz> yes i am
<wunz> i work 930-6pm
monkegjinni has joined #ruby
<wunz> but by 6, i'm already at happy hour meeting corporate money hungry sluts ;p
asteve has quit []
ndrei has joined #ruby
<ndrei> Hi there
<shevy> damn wunz where are you living?
<ndrei> I'm having a weird error with rubygems, " gem install colortail -- INSERT --
<ndrei> srv:~/sandbox$ watch -n 1 --color -d "curl -I sandbox.dev | ccze" -- NORMAL -- │ERROR: Could not find a valid gem 'colortail' (>= 0) in any repository
<shevy> ndrei that gem exists?
SCommette has quit [Ping timeout: 268 seconds]
SCommette_ is now known as SCommette
<ndrei> sorry about that
<shevy> Fetching: tins-0.5.4.gem (100%)
<shevy> Fetching: file-tail-1.0.11.gem (100%)
<shevy> seems to exist
<shevy> installed fine here
<ndrei> shevy
<ndrei> yes
bricker88 is now known as bricker88_
<shevy> :)
nat2610 has joined #ruby
bricker88_ is now known as bricker81
marcoshack has joined #ruby
bricker81 is now known as bricker881
<ndrei> I do 'gem install colortail' and I get 'could not not find a valid gem / possible alternatives...'
eph3meral has quit [Quit: eph3meral]
bricker881 is now known as bricker
Guest81709 has quit [Ping timeout: 240 seconds]
<wunz> shevy: best state in us.
ilyam_ has joined #ruby
aeos has quit [Ping timeout: 240 seconds]
gen0cide_ has joined #ruby
<tarwich> what does gem list --remote colortail or gem list --remote colort give you?
<shevy> wunz Alasca!
<wunz> spelled wrong.
<wunz> ;p
<shevy> ndrei but I do this command too, and it installed for me
marcoshack has quit [Client Quit]
<ndrei> I get a result for 'gem list remote'
marcoshack has joined #ruby
ilyam has quit [Ping timeout: 240 seconds]
<ndrei> odd
ilyam_ is now known as ilyam
<ndrei> now it worked, I guess some RVM weirdness, must of be logged in a terminal where I didn't have it set up correctly
chrxn__ has quit [Read error: Operation timed out]
<ndrei> thank you!
<tarwich> Glad you got it.
marcoshack has quit [Client Quit]
<shevy> aha
snorkdude has joined #ruby
<shevy> RVM!
lggr has quit [Ping timeout: 244 seconds]
<shevy> there are only three real evils in ruby
<tarwich> shevy: you don't like rvm?
<shevy> RVM, bundler and matti
snorkdude has quit [Remote host closed the connection]
<ndrei> haha
<ndrei> 'necessary evils'
<tarwich> … Why don't people (you) like rvm?
<shevy> tarwich, hmm I have no real problem with RVM. I dont need it myself. bundler however I dont like.
<shevy> tarwich, well, I installed into versioned directories already and can switch between ruby versions i.e. similar to what gobolinux does
<tarwich> Haven't gotten that far yet, but I'll consider myself fore-warned
<rking> tarwich: It's implementation is very complex. It redefines all kinds of shell commands, so it becomes hard to debug.
<workmad3> rking: nice FUD there
<rking> tarwich: rbenv, by contrast, builds some actual script files (the shims) and then all it does to your shell env is set $PATH.
<rking> tarwich: rbfu is even simpler, doing away with the shims.
<Hanmac> i dont need RVM because i only support the latest recent version
<shevy> lol
<shevy> wait Hanmac
<workmad3> rking: it doesn't redefine any shell commands unless you actually tell it to, and then it's only cd (which, incidentally, rbfu will also override on request)
<shevy> debian supports more than one ruby version now, right?
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
hadees has joined #ruby
<Hanmac> shevy debian yes, but not I :D
<shevy> :\
<Hanmac> and i saw that RVM makes problem with my gems ... normal rubies does not
<shevy> yeah
<shevy> my favourite combination is RVM + debian system ruby + bundler
nilg has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lggr has joined #ruby
<rking> workmad3: I don't have time to get into all the details, but it is a very complex implementation. rvm itself is a command, btw, so you're already wrong about it "only" defining cd.
<workmad3> rking: no, I said it only *redefines* cd
<workmad3> rking: you said it redefines loads of shell commands
<workmad3> rking: which is wrong
<workmad3> rking: and I won't argue, the implementation is more complex than rbenv
<workmad3> rking: but then... it does more
<rking> workmad3: OK, fine.
<shevy> workmad3 what OS do you use? Arch?
<matti> workmad3: Hi hi
thatRD has joined #ruby
<rking> workmad3: What useful thing does it do?
RichieEvan has joined #ruby
<shevy> matti, this is an epic gentoo vs. arch fight here
<matti> Is it?
<matti> I am missing out?!
<shevy> yeah!
<matti> Oh noess
<workmad3> rking: hey, I use rbfu :) but I hate people spreading FUD based on incorrect info
<shevy> you are still at work matti, you may only watch silently
<rking> Gemsets are a disaster, and unneccessary thanks to Bundler.
<shevy> all praise bundler!
<matti> GO UBUNTU!!!!!1111eleven
<shevy> BUNDLER11111eleveneleven
<shevy> damn... didnt manage a single !
<shevy> :(
<matti> lol
<rking> workmad3: I should be more exact in my villification of it. I've had a ton of trouble with it, and almost none with rbenv, that's all I know.
pricees has joined #ruby
<shevy> see you are lucky
<shevy> you can pick among rbfu rbenv and RVM
nikyrem has joined #ruby
<shevy> what alternative is there to bundler? see? See?!
<workmad3> rking: I had basically no trouble with RVM
gavit has quit [Read error: Connection timed out]
<workmad3> rking: I stopped using it because I disagreed with the direction it was going with bundler integration
<nikyrem> Hello! I'm trying to buy some ruby, how much it costs for 200 grams ?
Targen has joined #ruby
<workmad3> rking: and I dislike the way rbenv spread FUD about rvm as a way to drive up its own popularity when it was released
PragCypher has quit [Read error: Connection reset by peer]
gavit has joined #ruby
<matti> nikyrem: $5
eph3meral has joined #ruby
<matti> nikyrem: Ask shevy
<matti> ;p
PragCypher has joined #ruby
<rking> workmad3: Actually, I'm a recipient of the FUD. I switched because of the security FUD, but afterward found out the simplicity is the real win.
linoj has quit [Quit: linoj]
<shevy> nikyrem you need a license
<rking> workmad3: But actually I'm doing Gentoo Ruby across the board right now, so it's not even as complex as rbenv or rbfu.
<workmad3> rking: :)
<shevy> btw a hilarious question nikyrem ;P
<workmad3> right, off to watch QI
<nikyrem> shevy: I will not sell ruby, why a license ?
<shevy> Gentoo!!!
<shevy> nikyrem #ruby about the programming language ruby http://ruby-lang.org
eph3meral has quit [Client Quit]
<nikyrem> dafuq ? A programming langage called ruby ?
lggr has quit [Ping timeout: 240 seconds]
<shevy> nikyrem, why, we have #perl too
<shevy> ruby is younger
<shevy> and perl was the idol
<shevy> I will create the diamond language one day
w400z has quit []
<shevy> we also have a language whose people speak only Sshsh Sshs sszsHShs SHS
<shevy> it is called #python
<matti> shevy: LOL
workmad3 has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
<nikyrem> You people are weird ...
k3nz0 has joined #ruby
tarwich has quit [Read error: Connection reset by peer]
nikyrem has quit [Quit: Page closed]
tarwich has joined #ruby
snorkdude has joined #ruby
Takehiro has joined #ruby
invisime has quit [Quit: Leaving.]
gmci has quit [Ping timeout: 264 seconds]
aeos has joined #ruby
havenn has joined #ruby
gmci has joined #ruby
banseljaj is now known as imami|afk
internet_user has quit [Remote host closed the connection]
lggr has joined #ruby
<shevy> on linux I can do: result = `ps ax`
jaredrhine has joined #ruby
<shevy> anyone knows if something similar can be done on windows with ruby?
Takehiro has quit [Ping timeout: 264 seconds]
carloslopes has quit [Quit: Leaving.]
answer_42 has quit [Quit: WeeChat 0.3.8]
thunderstrike has joined #ruby
yoklov has joined #ruby
<matti> shevy: You want to lise processes?
AlbireoX`Laptop has quit [Remote host closed the connection]
<shevy> yeah
<shevy> hopefully in a cross-way
<matti> shevy: You have: tasklist, pslist, get-process
<shevy> so that the ruby library here works on windows too, right now it is linux only
<matti> No, its not cross-platform.
<shevy> hmm
<matti> I mean `` is, but then.
<shevy> pslist?
<matti> ps for Windows is achievable with Cygwin.
<shevy> aha hmm
<matti> pslist is from Sysinternals tools.
<shevy> ohhh
<shevy> that is not available on a typical win xp or vista box?
shurizzle has quit [Read error: Connection reset by peer]
<matti> I doubt its there by default.
<shevy> ah well. I'll settle for "Use cygwin." then :D
<shevy> thanks matti
<matti> On no no.
billy_ran_away has quit []
<matti> Cygwin is a major pain in the backsit.
<matti> Man.
evilsushi has joined #ruby
<shevy> hehe
<shevy> but they use windows already!
<matti> Install Linux secretly.
<matti> ;d
gavit has quit [Read error: Connection timed out]
<matti> Get KDE with Windows XP theme or something.
<matti> Nobody will notice ;p
gavit has joined #ruby
Choclo1 has joined #ruby
shurizzle has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
RichieEvan has quit [Quit: RichieEvan]
bwlang has left #ruby [#ruby]
snorkdude has quit [Remote host closed the connection]
triptec has quit [Quit: triptec]
Zespre has quit [Ping timeout: 255 seconds]
Markvilla has joined #ruby
Zespre has joined #ruby
<havenn> shevy: Or if you can use a Server or Enterprise version of Windows you get POSIX subsystem: http://en.wikipedia.org/wiki/Interix
Takehiro has joined #ruby
s1n4 has joined #ruby
R3dy has quit [Quit: Lost terminal]
rubious has joined #ruby
<shevy> cool
s1n4 has quit [Client Quit]
<havenn> shevy: Yeah, I haven't actually used it (avoid Windows) but apparently POSIX with PowerShell ain't bad.
sailias has quit [Quit: Leaving.]
emanu has quit [Quit: emanu]
lggr has joined #ruby
asklov has quit [Ping timeout: 268 seconds]
Dwarf has joined #ruby
Zespre has quit [Ping timeout: 240 seconds]
Choclo1 has quit [Ping timeout: 245 seconds]
Morkel has quit [Quit: Morkel]
gfontenot has quit []
RichieEvan has joined #ruby
Zespre has joined #ruby
swarley has quit [Remote host closed the connection]
swarley has joined #ruby
<ndrei> Anyone know how to output a string without quotes (for command-line usage)?
<ndrei> e.g. I'm doing a .to_s on an object and I'd like to
<ndrei> ok nevermind
<ndrei> I guess I can just gsub, just wondering if there's a "right" way to do it
<havenn> ndrei: puts Object.to_s
tarwich has quit [Read error: Connection reset by peer]
nga4 has quit []
Targen has quit [Ping timeout: 252 seconds]
tarwich has joined #ruby
emanu has joined #ruby
NimeshNeema has quit [Max SendQ exceeded]
<ndrei> nevermind.. I feel silly, I was doing 'p' instead of puts by force of habit
c0rn_ has quit [Quit: Computer has gone to sleep.]
NimeshNeema_ has joined #ruby
null- has left #ruby [#ruby]
riley526 has joined #ruby
Liothen_ has joined #ruby
maahes1 has joined #ruby
rubious has quit [Quit: Linkinus - http://linkinus.com]
<havenn> ndrei: Yeah, #p is basically: puts Object.to_s.inspect
billycraven has joined #ruby
eph3meral has joined #ruby
rmcafee has quit [Quit: rmcafee]
sagax has quit [Ping timeout: 268 seconds]
Liothen has quit [Ping timeout: 268 seconds]
jbpros has quit [Ping timeout: 268 seconds]
lggr has quit [Ping timeout: 255 seconds]
preller has quit [Ping timeout: 268 seconds]
sagax has joined #ruby
haxrbyte_ has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
bbttxu has quit [Quit: bbttxu]
Cork has quit [Ping timeout: 268 seconds]
kiyoura has joined #ruby
jbpros has joined #ruby
Jck_true has quit [Read error: Connection reset by peer]
<ndrei> haveen: Yeah, it's so much more useful that I had somehow forgotten about puts
Cork has joined #ruby
savage- has joined #ruby
mmitchell has quit [Remote host closed the connection]
Jck_true has joined #ruby
billycravens has quit [Ping timeout: 260 seconds]
<ndrei> I didn't use Ruby from the cli much until now
lggr has joined #ruby
mneorr has quit [Quit: Leaving.]
gavit has quit [Read error: Connection timed out]
Nisstyre-laptop has joined #ruby
maahes1 is now known as maahes
Elico1 has quit [Quit: Elico1]
Elico1 has joined #ruby
gavit has joined #ruby
<shevy> \o/
<shevy> ndrei come to ruby man
<shevy> cat foo.html | remove_html
<shevy> those are the aliases I have!
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
jasonLaster has joined #ruby
burgestrand has quit [Quit: Leaving.]
jrist is now known as jrist-afk
tarwich has quit [Read error: Connection reset by peer]
tarwich has joined #ruby
mikepack has quit [Remote host closed the connection]
deryl has quit [Remote host closed the connection]
deryl has joined #ruby
horofox has quit [Quit: horofox]
mmitchell has joined #ruby
savage- has quit [Ping timeout: 272 seconds]
noyb has joined #ruby
Animawish has joined #ruby
Maniacal has joined #ruby
<Animawish> what does "warning: string literal in condition" mean?
<Animawish> in this context: http://pastie.org/4722371
burgestrand has joined #ruby
mmitchell has quit [Remote host closed the connection]
jasonLaster has quit [Ping timeout: 272 seconds]
<shevy> you can use case
<shevy> case asdf
<shevy> when 'b','a','c'
<shevy> Animawish I think you would have to compare the variable three times there
<shevy> rather than use the keyword or
lggr has quit [Ping timeout: 255 seconds]
dmiller has joined #ruby
yxhvuud has quit [Ping timeout: 260 seconds]
<shevy> hmm Animawish http://pastie.org/4722386
<shevy> but use case/when really
mrdodo has quit [Remote host closed the connection]
neohunter has joined #ruby
<Animawish> alright, sounds good. thanks :)
GoGoGarrett has quit [Remote host closed the connection]
emanu has quit [Quit: emanu]
lggr has joined #ruby
riley526 has quit [Remote host closed the connection]
BipolarCoder has joined #ruby
<BipolarCoder> something to read on a lazy Friday afternoon: http://www.scribd.com/doc/105844487/Bipolarcoder-Software-in-the-Key-of-Web
<shevy> BipolarCoder grrrrr
<BipolarCoder> grrrrr?
snorkdude has joined #ruby
theRoUS has quit [Ping timeout: 252 seconds]
kjg has quit [Quit: Bye!]
davidcelis has quit [Quit: K-Lined.]
<rking> BipolarCoder: Interesting.
<rking> BipolarCoder: Do you have a home page of some kind? Github ID?
cantonic_ has joined #ruby
<shevy> Hanmac Intel wants to die
habib has joined #ruby
<shevy> MS probably paid em
nwest has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
gavit has quit [Read error: Connection timed out]
<shevy> it's funny that MS now becomes a tablet OS
<neohunter> this is valid
<neohunter> def search query, &block
<neohunter> emails(opts, &block)
gavit has joined #ruby
<neohunter> so i can delegate the block to the emails method?
<rking> Hanmac: Weird thing, that Clover deal. I don't know why they wouldn't simply announce it as, "We're not targeting Linux, initially." Surely there's no ultimate reason why any other OS couldn't work with it.
<BipolarCoder> rking: no home page really. Github: https://github.com/BipolarCoder
neohunter has quit [Quit: Linkinus - http://linkinus.com]
snorkdude has quit [Remote host closed the connection]
<rking> BipolarCoder: Cool. Have you read Gödel, Escher, Bach by any chance?
cantonic has quit [Ping timeout: 255 seconds]
cantonic_ is now known as cantonic
trey_ has quit [Remote host closed the connection]
mengu has joined #ruby
<BipolarCoder> rking: many times :)
lggr has quit [Ping timeout: 264 seconds]
<rking> BipolarCoder: Hehe. Yeah, the "Key of Web" doc reminds me of it.
bbttxu has joined #ruby
lggr has joined #ruby
tarwich has quit [Read error: Connection reset by peer]
s1n4 has joined #ruby
eph3meral has quit [Quit: eph3meral]
awarner has quit [Remote host closed the connection]
tarwich has joined #ruby
tyfighter has joined #ruby
<shevy> Hanmac ... hmm... how can I find out the equivalent of, commandline:
peregrine81 has quit [Quit: Computer sleeping.]
<shevy> cat foo.rb | coderay -ruby
utzig has joined #ruby
utzig has left #ruby [#ruby]
sts23 has joined #ruby
sts23 has quit [Client Quit]
burgestrand has quit [Quit: Leaving.]
haxrbyte has joined #ruby
evilsushi has quit [Quit: Lost terminal]
davidpk has joined #ruby
MasterIdler__ has joined #ruby
MasterIdler__ has quit [Client Quit]
mercwithamouth has joined #ruby
c0rn_ has joined #ruby
noyb has quit [Ping timeout: 240 seconds]
ilyam has quit [Quit: ilyam]
kiyoura has quit [Quit: Leaving]
Animawish has left #ruby [#ruby]
<habib> hey everyone
<Mon_Ouie> puts Coderay.scan(File.read("foo.rb"), :ruby).term
MasterIdler_ has quit [Ping timeout: 268 seconds]
<habib> why could ruby versyon set from 1.9.3 to 1.8.7. itself when using gosu?
CarlB_the_great has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
lggr has quit [Ping timeout: 248 seconds]
lushious has joined #ruby
trey_ has joined #ruby
ltsstar has joined #ruby
mahmoudimus has joined #ruby
mahmoudimus has quit [Client Quit]
<Hanmac> habib you maybe did something wrong
[Neurotic] has quit [Remote host closed the connection]
Animawish has joined #ruby
<Animawish> is there a way to replace everything in an array with a single character?
BipolarCoder has left #ruby [#ruby]
<Animawish> like array = [a, b, c] ; array.method(x) => array = [x, x, x]
<habib> Hanmac, like what?
<habib> i've just checked it for version. it was 1.9.3
<habib> then i run cosu tutorial code and it worked first few times
<habib> but then something's changed
asobrasil has left #ruby [#ruby]
<Hanmac> do you use rvm?
<havenn> Animawish: Array.new(array.size) { "default value here" }
lggr has joined #ruby
<Hanmac> Animawish: [x] * array.size
c0rn_ has quit [Quit: Computer has gone to sleep.]
<havenn> ^
gavit has quit [Read error: Connection timed out]
<Animawish> thanks
gavit has joined #ruby
<Hanmac> Animawish [1,2,3].fill(x)
<havenn> Or: array.map { "x" }
<Hanmac> i think fill is fastr a bit
<habib> Hanmac, yes i use RVM
tarwich has quit [Read error: Connection reset by peer]
chrxn__ has joined #ruby
tarwich has joined #ruby
<Hanmac> shevy do you see this? rvm is the cause of all problems
<havenn> Hanmac: Yup, I'm benching #fill as 3x faster than #map in 1.9.3.
Jake232 has joined #ruby
<Hanmac> havenn: fill is self chaning ... map is not, test it against map!
<havenn> Hanmac: Ahhha!
tommyvyo has joined #ruby
swarley has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 252 seconds]
<habib> btw if i try rvm list it shows me 1.9.3
<habib> and if ruby -v it shows 1.8.7
trey_ has quit [Remote host closed the connection]
c0rn_ has joined #ruby
dangerousdave has quit [Ping timeout: 252 seconds]
Agis__ has joined #ruby
davidpk has left #ruby ["Ceci n'est pas une broken pipe."]
<Hanmac> habib there is an script what you need to add to your .bashrc file ... try to google that i think you miss that
<habib> i added it allready
<habib> hey do u know can i install gems using RVM?
<tarwich> habib: What OS are you on? I had a similar problem and had to bounce the terminal. However, you could try the
<tarwich> rvm reload
<tarwich> command
<habib> ubuntu
baroquebobcat has quit [Quit: baroquebobcat]
<tarwich> Didn't have to bounce the term when I installed on Ubu12(precise)
<habib> looks like old version of ruby is installed when i installed gosu lib
<tarwich> But… The rvm reload command should reinstall all the shell stuff for that term session making the ruby -v work properly again.
<habib> and rvm doesn't see 1.8.7
statarb3 has quit [Quit: Leaving]
<habib> when rvm list it shows me only 1.9.3
<tarwich> … That's because it's system. Try rvm use system (I think, looking…)
<habib> when ruby -v 1.8.7
baroquebobcat has joined #ruby
<tarwich> Don't do what I said.
<habib> so is it possible to install gems using rvm?
<Hanmac> it should
frogprince_mac has quit [Ping timeout: 272 seconds]
<tarwich> Yes. But do a gem environment first
<tarwich> Let's see what that says.
<tarwich> It might still be the system version.
<tarwich> I was up 'till 1:30 last night playing with rvm so a lot of it is still fresh
lggr has joined #ruby
dmiller has quit [Remote host closed the connection]
<habib> that's good
baroquebobcat has quit [Client Quit]
ltsstar has quit [Quit: ltsstar]
<habib> that's out of gem environment
<tarwich> That doesn't seem right to me
<tarwich> Just a second ago you said rvm reported 1.9.3. Would you be so kind as to run these:
<tarwich> rvm reload
<tarwich> rvm info
dpk has joined #ruby
billyoc has joined #ruby
<habib> yeah
<habib> wait
* tarwich waits
<Hanmac> :') rvm uses 1.9.3, ruby shows 1.8.7, gem shows 1.9.3 but the wrong place ... isnt rvm funny?
<habib> i'll remove rubyes and do rvm uninstall 1.9.3 and then reinstall ruby using rvm and install gosu with rvm this time
<Hanmac> as i said ... the bash script is not loaded
gavit has quit [Read error: Connection timed out]
<habib> Hanmac
<Spooner> There is nothing special about gosu, you know. It is _just_ a gem.
<habib> u mean .bashrc?
<tarwich> Crap. You have to do a rvm use 1.9.3 or whatever version...
<habib> yeah but look
gavit has joined #ruby
<habib> there are list of libs which gosu offers to install before installing gosu itself
cakehero has quit [Quit: Computer has gone to sleep.]
<habib> so it mae be there
stopbit has quit [Quit: Leaving]
rutkla has quit [Ping timeout: 246 seconds]
<Spooner> habib - no, ignore that. DO not install Ruby that way. Use the C++ list of apt-gets.
<Hanmac> habib its not a gosu problem!
<tarwich> habib: I remember last night on ubuntu I had to rvm list, then rvm use <version>, because rvm list didn't have any starred, meaning it was still using system
<habib> i know it Hanmac :)
<Spooner> That assumes you are a complete noob and aren't using rvm, so it tells you how to use apt-get to install ruiby.
RegEchse has joined #ruby
s1n4 has quit [Quit: Lost terminal]
<habib> Spooner, complete noob yeah that's what i came here for, man.
<habib> Taranis, i've allready did this
<habib> it still ruby -v 1.8.7
<tarwich> Ok. I digress.
bananagram has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 244 seconds]
<habib> tarwich,
* tarwich shall now be known as Taranis!
<habib> ah
<Hanmac> habib open an new shell / gnome terminal
Elico1 has quit [Quit: Elico1]
machty has quit [Quit: machty]
<habib> Hanmac, then?
<tarwich> Then do a rvm info, right?
jonathanwallace has quit [Remote host closed the connection]
<Hanmac> or ruby -v
snorkdude has joined #ruby
<tarwich> Crap. I should have just shutup and let you finnish [sic]
<Spooner> I've edited that readme, since I have noticed before how unclear it is!
<habib> after i removed ruby 1.8.7 using synaptic ruby -v shows 1.9.3 but p0
<havenn> Hanmac: Yup, #fill consistently wins. Array.new() {} is in second place. >.>: https://gist.github.com/3725426
lggr has joined #ruby
<Hanmac> habib did you even read that you posted to us?
bananagram has joined #ruby
<Hanmac> habib it says this: https://rvm.io/integration/gnome-terminal/
jasonkuhrt has quit [Quit: Leaving...]
jasonkuhrt has joined #ruby
bier has quit [Ping timeout: 244 seconds]
<habib> Hanmac, i did
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
<habib> ok i think i know how to solve it
<habib> when i done i'll report.
mahmoudimus has joined #ruby
jasonLaster has joined #ruby
gavit has quit [Read error: Operation timed out]
gavit has joined #ruby
<tarwich> Sorry for mucking things up guys… I'll try to be more careful. If I would have just waited a little longer I'm sure better advice would have been given. :-)
* tarwich gained more experience
<habib> tarwich, thnx for trying anyways
seanstickle has joined #ruby
<habib> Hanmac, thnx 2u2. u helped me allready
tommyvyo has quit [Quit: Computer has gone to sleep.]
jasonLaster has quit [Ping timeout: 272 seconds]
<Hanmac> and? where was the problem?
lggr has quit [Ping timeout: 245 seconds]
<Spooner> hanmac: Gosu was moving 1.8.7 files into the 1.9.3 directory ;)
<Hanmac> oO
mbuceta has joined #ruby
<Spooner> And then creating a 1.9.7.2 directory & downloading Python into it.
lggr has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
<habib> i didn't look for it. i just reinstalled ruby and instaled gosu using rvm not straight
zeromodulus has quit [Remote host closed the connection]
trey_ has joined #ruby
<habib> c ya tomorow
habib has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
SCommette has quit [Quit: SCommette]
bier has joined #ruby
stkowski has quit [Quit: stkowski]
tarwich has quit [Read error: Connection reset by peer]
tarwich has joined #ruby
<shevy> Hanmac hehe yah... evil RVM
<shevy> Mon_Ouie thanks
jenrzzz has joined #ruby
<shevy> Spooner lol "& downloading Python into it." weirdest idea ever ;P
Araxia has joined #ruby
joshman_ has quit [Ping timeout: 244 seconds]
iamjarvo has quit [Ping timeout: 244 seconds]
diegoviola has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
zeromodulus has joined #ruby
iamjarvo has joined #ruby
hiram has quit [Ping timeout: 246 seconds]
skogis has quit [Read error: Operation timed out]
iamjarvo has quit [Read error: Connection reset by peer]
diegovio1a has joined #ruby
<deryl> anyone know of a gem I can use to take my program and autocreate docs from it? I know there is rdoc and yard for displaying docs you write when you include their syntax. I'm wondering if there is something that can read a file and generate document just from the code.
tarwich has quit [Read error: Connection reset by peer]
tarwich has joined #ruby
lggr has joined #ruby
amacgregor_osx has joined #ruby
gavit has quit [Read error: Connection timed out]
amacgregor_osx has quit [Read error: Connection reset by peer]
trey_ has quit [Remote host closed the connection]
<deryl> might be a weird request. i have a bin script that uses a case statement for executing, and another that uses trollop for the help system. was wondering if there was a gem that could take those files and autogenerate docs out of them
bbttxu has quit [Quit: bbttxu]
snorkdude has quit [Remote host closed the connection]
gavit has joined #ruby
<deryl> if not i'll look into writing rdoc or yard syntax into the files, just wanted to see if i could cheat a bit :)
amacgregor_osx has joined #ruby
flagg0204 has quit [Quit: leaving]
Animawish has left #ruby [#ruby]
<Spooner> deryl : yard does read your code, rather than just use your annotations, though the docs would be dull without you providing more info.
mbuceta has quit [Quit: Leaving]
<deryl> ok. i'll look into yard a bit more then. thanks for the response. wasn't sure if what i was asking made sense or not
bricker has quit [Quit: Leaving.]
<Spooner> I am not sure what exactly you want to do though. Actually parsing and understanding your code line for line is a) impossibly difficult and b) sort of pointless since you could just read the code.
<deryl> like i thought doxygen could read c/c++ files and write docs from the methods, and thought it could trace back through includes. i'll look at yard some more
<deryl> Spooner: basically was looking for something to make skeleton help-docs, and then i'd go back and populate with more info
<Spooner> Just run yard on your existing code and see if it generates enough. If not, you are going to have to add yard params to it.
<deryl> its a commandline app i'm writing
<deryl> gotcha. thanks for the info
suyu_ has joined #ruby
edenc has quit [Ping timeout: 240 seconds]
RichieEvan has quit [Quit: RichieEvan]
<Spooner> You probably want a README.markdown (or similar) for the actual how-to-use-the-cli bit, which yard will pull in along with the code stuff.
cakehero has joined #ruby
<deryl> yeah i have that already
RichieEvan has joined #ruby
<deryl> well the README.markdown. doesn't contain the how-to-use-the-cli part though.
peregrine81 has joined #ruby
notVert has joined #ruby
<deryl> talk about glossing things in your mind hehe. totally forgot the readme :)
CodeFriar has quit [Quit: Leaving...]
<shevy> deryl come on man
<shevy> let's admit the truth
<shevy> YOU ARE GETTING OLD MAN!!!
<deryl> ?
<deryl> hahah
Synthead has quit [Quit: p33 ba115]
seanwash has quit [Quit: Computer has gone to sleep.]
<deryl> I refuse to admit that! I am 41 years YOUNG damn it!
baroquebobcat has joined #ruby
<shevy> what I don't like with the yard and rdoc docu is that it seems to dislike code comments like "# ===== #"
<shevy> I like my ascii annotations :P
<deryl> heh
<Spooner> That is a year older than me, deryl. That is pretty much dead in my book.
<shevy> but it messes things up for my gems...
<deryl> Spooner: haha! arse ;)
lggr has quit [Ping timeout: 255 seconds]
mahmoudi_ has joined #ruby
<shevy> hey hey hey
<deryl> shevy: well i was writing comments in the files themselves but i keep getting yelled at by just about everybody for doing that.
<shevy> matz is 47
<deryl> damn, 2 months and i'll be 42
<shevy> they yell at you for providing useful documentation in your code?
mahmoudimus has quit [Ping timeout: 246 seconds]
<deryl> shevy: they say thats what the helpdoc gems are for
<Spooner> In a century, we'll all be dust (or goo, depending how we feel).
<shevy> hehe odd
Agis__ has quit [Quit: Agis__]
<shevy> yeah Spooner
<deryl> i wouldn't care what I'd be if i lived another 100 years! I might make it into guiness book of world records for oldest man!
chrxn__ has quit [Ping timeout: 246 seconds]
<shevy> yeah but imagine you can reach 1000 years... or 10000 or 100000 ... what to do with all that time
<deryl> i think i'd go insane before that
<Spooner> IF you just write regular text comments before methods/classes/modeules, then they'll get pulled into rdoc/yard anyway. It is just if you write all your docs inside stuff, where you can't see it...
Targen has joined #ruby
<shevy> yeah deryl ... although I would like to see things being built on the mars before I am dust
<deryl> ahh yeah i have like 3 comments in different methods, but i usually do put comment notes just above the method for what they do. got yardoc.org open now so i'll read through and see what i should be doing and am not
bradhe has joined #ruby
tarwich has quit [Read error: Connection reset by peer]
tarwich has joined #ruby
Tearan has joined #ruby
stabby_lambda has joined #ruby
<deryl> shevy: actually, i truly believe we need to have a lunar base in operation for at least 5 years before we'll be ready for a manned flight to mars. Reason being that A) its cheaper to move and build stuff _in_ space than it is to get it _to_ space, and B) we need to learn closer to home how to properly build a station on a planet thats occupied and takes reloading missions.
lggr has joined #ruby
<deryl> i don't think us just sending a manned flight to mars that is going to take 4 years to complete round trip is going to cut it. still far too many unknowns left to figure out
stabby_lambda is now known as rjsamson
<deryl> something we'll only really figure out how to handle if we build closer to home, like a lunar base, and resupplying it for awhile
suyu_ has quit [Quit: suyu_]
suyu_ has joined #ruby
suyu_ has quit [Client Quit]
cbuxton has quit [Quit: Leaving.]
gavit has quit [Read error: Connection timed out]
neohunter has joined #ruby
suyu has joined #ruby
gavit has joined #ruby
<neohunter> On a Stuck where is stored the data?
loves_color_text has joined #ruby
<neohunter> i need to overwrite a getter method from a Struct
lggr has quit [Ping timeout: 252 seconds]
<tarwich> Can someone look at my underwear (code) and let me know if I've lost my mind? http://pastebin.com/pKBRfYtZ Lines 2 and 14 work in concert with each other and it's to resolve a scope problem, but feels hackish
nari has joined #ruby
<shevy> app = self;
<shevy> why is there a ;
<tarwich> Oops. Habit.
<shevy> also why do you need to assign self to a variable
ephemerian has quit [Quit: Leaving.]
<shevy> button.command do |event| self.chooseDevFolder end # does not work?
<tarwich> Yes.
<tarwich> That's why I got pry
<tarwich> When I do a binding.pry in place of app.chooseDevFolder and type self, it shows Tab
baroquebobcat has quit [Quit: baroquebobcat]
frogprince has quit [Read error: Connection reset by peer]
ph^ has quit [Remote host closed the connection]
<shevy> no I mean
<shevy> if you use self.chooseDevFolder and run the code via "ruby", what error do you get?
<tarwich> Should be chooseDevFolder is undefined… checking… I can upload all 105 lines of source if it helps.
ckrailo has quit [Quit: Computer has gone to sleep.]
ilyam has joined #ruby
<shevy> yeah
<shevy> then others can test it
Xeago_ has quit [Remote host closed the connection]
justinmcp has joined #ruby
kirun_ has quit [Quit: Client exiting]
indian has quit [Ping timeout: 255 seconds]
jgrevich has quit [Quit: jgrevich]
Jake232 has quit [Quit: Computer has gone to sleep.]
baroquebobcat has joined #ruby
lggr has joined #ruby
<shevy> hmm
indian has joined #ruby
<shevy> that you can use that code... I am amazed ;P
<tarwich> Are you talking about rbcurse?
<rking> shevy: To what code do you refer? tarwich's paste?
recycle has joined #ruby
RichieEvan has quit [Quit: RichieEvan]
recycle has quit [Read error: Connection reset by peer]
<tarwich> Or are you talking about my noobish ruby?
<shevy> rking yeah
<shevy> tarwich no, not entirely
idletom has quit [Ping timeout: 268 seconds]
<shevy> RubyCurses::Widget.class_eval do
<shevy> that was not written by you tarwich right?
<shevy> I just don't like code with eval
<tarwich> Sort-of… Wanted to add a method so used code from http://juixe.com/techknow/index.php/2007/01/17/reopening-ruby-classes-2/
<rking> shevy: The block form of _eval isn't so bad.
<deryl> shevy: i've read a lot of people saying that. what about eval engenders that feeling?
jenrzzz has quit [Ping timeout: 240 seconds]
<rking> shevy: And this one looks like it's just a shortcut to open the class.
<deryl> i don't lknow enough about eval to know/think either way
<tarwich> I don't care for eval either, so… I'd be happy to find another method. But this is my first day using Ruby, so...
shiki has joined #ruby
<rking> deryl: I think it's smallmindedness for the most part.
<rking> deryl: Some amazing code happens inside it.
<blazes816> shevy, your mind so small
heisenmink has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
<deryl> this is Kernel#eval we're discussing correct?
<rking> Perl code was always that way. You had your people who used eval "…" and your people who hated those other people.
<rking> deryl: In this case it's a class_eval do … end
<blazes816> nothing wrong with eval as long as you keep user input away from it
<deryl> sec, pulling ri up for it
chrxn__ has joined #ruby
<shevy> deryl one day I realized that *every* time I look at eval, my brain needs extra processing power to understand what is going on
<deryl> ahh from Module
jenrzzz has joined #ruby
<shevy> and in ruby in particular, it isn't helpful that there are multiple different evals out there
<shevy> deryl the .class_eval part of rbcurse
Foxandxss has joined #ruby
gavit has quit [Read error: Connection timed out]
<shevy> I may be happier with .eval rather than .class_eval or any other eval actually :)
<deryl> think i'd have to read the source of those methods to have any inkling about what there is to dislike.
jasonLaster has joined #ruby
<deryl> thanks for answering my side questions
gavit has joined #ruby
cantonic_ has joined #ruby
<shevy> tarwich somehow I still cant run the code, rbcurse does not like me
<deryl> ohhh. the class_eval is specifically meant as a way of adding to a class? am i understanding the ri page right? is this the same thing as .extend but specifically for classes?
blazes816 has left #ruby [#ruby]
emmanuelux has quit [Ping timeout: 246 seconds]
<tarwich> rbcurse didn't like me for about 5 hours… You HAVE TO use 1.4.1
<shevy> ack
<tarwich> The 1.5.x code is broken
<rking> deryl: I don't think there'd be any reason to use it statically, as it is done in tarwich's paste. class Foo; def bar … end end == Foo.class_eval do def bar … end end end
baroquebobcat has quit [Quit: baroquebobcat]
<shevy> then that explains it
<shevy> gem install rbcurse installed 1.5.x for me
lggr has quit [Ping timeout: 252 seconds]
<tarwich> deryl: I found out how to do class methods properly now.
<shevy> and why not def self.bar rking ?
<tarwich> http://pastebin.com/YqSAMc9x fixes the eval YAY!
<shevy> hehe
<deryl> tarwich: cool! the conversation is teaching me quite a bit along with the ri docs. sorry if i pirated your conversation, just seen this type of commentary before and didn't understand the basis of the argument on either side
<shevy> only a dead eval is a good eval!
sneakyness_wk has quit [Ping timeout: 244 seconds]
haxrbyte has quit [Remote host closed the connection]
cantonic has quit [Ping timeout: 268 seconds]
cantonic_ is now known as cantonic
jasonLaster has quit [Ping timeout: 272 seconds]
haxrbyte has joined #ruby
<tarwich> This is the way I thought it should have worked, but google led me astray *glares at google*
<shevy> Taranis, is RubyCurses useable otherwise?
specialGuest has quit [Quit: WeeChat 0.3.8]
<tarwich> ANYWAY… Still have the selfish problem.
Tearan has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
<shevy> well... I really thought self.foo would work the same as would x = self; x.foo
<tarwich> shevy: perfectly, but you have to have that gem 'rbcurse', '1.4.1' line
blazes816 has joined #ruby
<tarwich> The problem is that in do ||, self is getting rewritten. However, foo is being imported from the parent scope.
stim371 has quit [Quit: stim371]
diegovio1a has quit [Ping timeout: 252 seconds]
<shevy> oh I see what you mean
<shevy> well, if it really gets changed, then I guess it makes sense that you refer to an earlier self
<shevy> there can be only one self at any one time, right?
lggr has joined #ruby
<tarwich> Right. Ruby is not Schizophrenic
<deryl> hahaha
<shevy> hehe
<shevy> I wonder if there could be multiple selfs... but that would lead to confusion or?
<shevy> array_of_all_self[-1]
<shevy> naaah
<deryl> far as i know there can only be one 'self' because there can only be one 'current context' object
<shevy> one self to rule them
<tarwich> HAHAH!
<shevy> yeah
<deryl> and thats why self can change on the fly
<shevy> like a finger pointing at the most important object
<deryl> or at least thats my understanding of it
<deryl> right
<deryl> hahaha! i just saw the one self to rule them comment
<deryl> thats rivh
<deryl> err rich
<tarwich> Thank you guys for your help with my two issues. One I didn't even know I had.
<deryl> thanks for letting me hijack part of the conv. educated me a bit :)
atmosx has joined #ruby