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
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?
<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
<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.
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]
<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?
<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
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 :(
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]
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.
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]
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.
<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
<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
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
<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"
<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>
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>
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]
<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 :-)
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
<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]
<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]
<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
<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]
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?
<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>
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.
<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
<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]
<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.
<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 :)