fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
cj3kim has quit [Quit: This computer has gone to sleep]
LouisGB has quit [Ping timeout: 246 seconds]
<mc0e1> I guess if you think you need to keep up with how others do their ads...
<drags> I'm well aware.. and I find all forms of commercialism to be mental pollution.. but "to each their own" is a lesson I've learned to question less and less as I age
<mc0e1> right. now take that idea back to the bot
<drags> (again: not my bot)
<fowl> that bot is a bastard, nobody will own up to it
Nowaker has quit [Ping timeout: 246 seconds]
<drags> fowl: I just said, it's owned by 'radar'
M- has joined #ruby
Nowaker has joined #ruby
<drags> or at least, he came in from the same linode host
<drags> and he's currently in #rubyonrails
<trooney> drags: you put me on the right path. i just had to move my RACK_ENV stuff ahead of my require's ... for some reason.
<blazes816> drags: Radar is an op in #rubyonrails
<drags> trooney: it works? if so, hell yeah to cargo culting tech support :)
banisterfiend has joined #ruby
<drags> blazes816: if he's not one here and didn't ask to have his bot giving out response in here than he needs to have his bot part
beneggett has quit [Quit: Computer has gone to sleep.]
<blazes816> drags: just letting you know who he is. idk what the problem is.
<blazes816> oh, I see. had no idea helpa was round these parts
<drags> helpa: part #ruby
codyrobbins has left #ruby [#ruby]
<drags> helpa: fuck off
<fowl> helpa: get out
<fowl> helpa: LEAVE THIS PLACE
baroquebobcat has quit [Quit: baroquebobcat]
<fowl> drags: i called him out on it in the channel, if that doesnt work nothing will
BSaboia__ has quit [Quit: Fui embora]
<fowl> besides banning obv
machty has quit [Ping timeout: 276 seconds]
<drags> I feel bad, codyrobbins had a real and interesting question and we're chatting about bot politics :(
<drags> unfortunately I'm far from qualified to add anything to his discussion :/
recycle has joined #ruby
cantonic has quit [Quit: cantonic]
maxmmurphy has quit [Quit: maxmmurphy]
futini has quit [Ping timeout: 248 seconds]
ZachBeta has joined #ruby
lolzie has quit [Quit: Page closed]
luckyruby has quit [Remote host closed the connection]
jgrevich_ has joined #ruby
<fowl> drags: his question was lame. its possible to do all those things but he wanted an "easy way" ie someone to write it for him
jgrevich has quit [Ping timeout: 252 seconds]
jgrevich_ is now known as jgrevich
cj3kim has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
cj3kim has quit [Changing host]
cj3kim has joined #ruby
cj3kim has quit [Remote host closed the connection]
bradhe has joined #ruby
<canton7> Tachyon, and you've spotted your typo?
hunglin has joined #ruby
hunglin has quit [Client Quit]
futini has joined #ruby
rjsamson has joined #ruby
<Tachyon> canton7: no, i still don't know
Criztian has quit [Remote host closed the connection]
<canton7> Tachyon, @muter/@mutex ?
<Tachyon> ah
<Tachyon> canton7: thx!
<canton7> it helps if you post the error ;)
elico has quit [Quit: elico]
<canton7> that would have told you that there's no method 'synchronise for NilClass
<canton7> which means @mutex was never initialized... and that leans you to the constructor
elux has joined #ruby
<Tachyon> canton7: actually the error was
<Tachyon> kuk2.rb:14: syntax error, unexpected '\n', expecting tASSOC
<Tachyon> kuk2.rb:20: syntax error, unexpected '\n', expecting tASSOC
<Tachyon> canton7: but when you told me about the typo i realized that the { must be on the same line as synchronize
<canton7> does line 14 correspond to line 14 of the pastebin?
<Tachyon> and now it works :)
<blazes816> ah, it thought you were trying to make a hash, not a block
<blazes816> tricky tricky parser
<Tachyon> canton7: no, 14 regards to line 11 in the pastebin
sepp2k has quit [Remote host closed the connection]
katherinem13 has quit [Quit: Might IS right.]
cantonic has joined #ruby
recycle has quit [Read error: Connection reset by peer]
pdtpatrick has quit [Quit: pdtpatrick]
jrist is now known as jrist-afk
katherinem13 has joined #ruby
mikepack has quit [Remote host closed the connection]
Takehiro has joined #ruby
Takehiro has quit [Remote host closed the connection]
keyvan is now known as keyvan|away
jenrzzz has quit [Read error: Connection reset by peer]
elux has quit [Quit: Leaving...]
jenrzzz has joined #ruby
LouisGB has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
moted has quit [Read error: Connection reset by peer]
ChadStud1uffin has joined #ruby
<Tachyon> >> Thread.new { print "ahoj" }
<al2o3cr> ahoj, Console: (Thread) #<Thread:0x00000002419f68 run>
moted has joined #ruby
recycle has joined #ruby
shvelo has joined #ruby
shvelo has quit [Changing host]
shvelo has joined #ruby
chrishunt has joined #ruby
<shvelo> shevy, ahoy brotharr!
dhruvasagar has joined #ruby
wpaulson has joined #ruby
recycle has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
hersoy has quit [Ping timeout: 252 seconds]
machty has joined #ruby
datsik33 has quit [Quit: This computer has gone to sleep]
vu33 has quit [Quit: Leaving]
elux has joined #ruby
banisterfiend has quit [Remote host closed the connection]
Targen has quit [Ping timeout: 246 seconds]
<shevy> shvelo hahaha hi
<shevy> now we just miss shlevy
<shvelo> shevy, yea
<shvelo> shevy, sup?
<shevy> he hangs out on #nixos usually
<shevy> he is more a python guy though :(
<shevy> shvelo I am glad you picked ruby!
hersoy has joined #ruby
<shvelo> I'm gonna switch too :D
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
elico has joined #ruby
<shvelo> btw I now checked out coffeescript, it's like both Python and Ruby that compiles to JS, it's awesomesauce
jgrevich_ has joined #ruby
<shvelo> shevy,
<shevy> shvelo switch to python?
<shevy> hehe
<shevy> I dunno
<shevy> I dont wanna use JS
<shvelo> I want to create native GUI so Ruby doesn't fit there
fyolnish_ has joined #ruby
Gm4n has joined #ruby
jgrevich has quit [Ping timeout: 244 seconds]
jgrevich_ is now known as jgrevich
AndChat| has joined #ruby
<blazes816> shvelo: jruby + swing!
keymone_ has joined #ruby
fbernier has quit [Ping timeout: 245 seconds]
bricker88 has quit [Quit: Leaving.]
auntieNeo has quit [Ping timeout: 245 seconds]
<shvelo> blazes816, hmm, I'll check it out
<shvelo> but Python is a must-learn too
<blazes816> do it my son
keymone has quit [Ping timeout: 246 seconds]
keymone_ is now known as keymone
<blazes816> it's not bad to learn, but must-learn is too far
<blazes816> I'd say if you're trying to learn, perl > python as far as education
fyolnish_ has quit [Remote host closed the connection]
<blazes816> mostly what not to do
auntieNeo has joined #ruby
fbernier has joined #ruby
mmitchell has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
fyolnish_ has joined #ruby
<shvelo> I'm also gonna learn Java
<shvelo> Java and Python are used at Google
<shvelo> so I'll need them :D
LouisGB has quit []
<shvelo> I hope
<blazes816> are you trollin?
<blazes816> sounds like perhaps not
<blazes816> i can't stand java, and barely like python, so i'm definitely biased against them. but it's all about general experience/knowledge. if a company hires you because and only because you know language X it probably isn't a job you want
enyo has quit [Quit: Lost terminal]
kaushik_ has quit [Ping timeout: 264 seconds]
jonathanwallace has quit [Remote host closed the connection]
ttilley has quit [Quit: ttilley]
ezra has joined #ruby
ezra has quit [Changing host]
ezra has joined #ruby
mmitchell has quit [Ping timeout: 246 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
jonathanwallace has joined #ruby
DrShoggoth has joined #ruby
vitor-br has joined #ruby
jonathan_ has joined #ruby
jonathanwallace has quit [Read error: Connection reset by peer]
yshh has joined #ruby
yshh has quit [Remote host closed the connection]
yshh has joined #ruby
dmiller has quit [Remote host closed the connection]
beneggett has joined #ruby
Bosma has quit [Quit: leaving]
_veer has quit [Quit: Leaving]
bapa has quit [Read error: Connection reset by peer]
luxurymode has joined #ruby
bapa has joined #ruby
jonathan_ has quit [Remote host closed the connection]
beneggett has quit [Quit: Computer has gone to sleep.]
jonathanwallace has joined #ruby
mc0e1 is now known as mc0e
davidcelis has joined #ruby
pskosinski has quit [Ping timeout: 260 seconds]
macmartine has joined #ruby
jerrad has quit [Quit: Linkinus - http://linkinus.com]
tommyvyo has quit [Quit: Computer has gone to sleep.]
dmiller has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
gh has joined #ruby
horofox has joined #ruby
beneggett has joined #ruby
adeponte has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 246 seconds]
rcloak has quit [Quit: rcloak]
pdtpatrick has joined #ruby
blazes816 has quit [Quit: blazes816]
chrishunt has quit [Quit: Leaving...]
shvelo has quit [Read error: Connection reset by peer]
eignerchris has quit [Remote host closed the connection]
elux has quit [Quit: Leaving...]
hersoy has quit [Ping timeout: 272 seconds]
vitor-br has quit [Quit: Saindo]
tiripamwe has joined #ruby
gh has quit [Quit: gh]
alvaro_o has quit [Quit: Ex-Chat]
hersoy has joined #ruby
fragmachine has joined #ruby
mascool has quit [Ping timeout: 244 seconds]
<fragmachine> CAn anyone tell me why Mechanize won't load https sites? I try 'Mechanize.new.get('https://webmail.westnet.com.au/login/default.aspx') and I always recieve a 'Errno::ECONNRESET: Connection reset by peer - SSL_connect' message
<fragmachine> it's driving me mad
joofsh has joined #ruby
banisterfiend has joined #ruby
gtuckerkellogg has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
c0rn_ has joined #ruby
c0rn_ has quit [Client Quit]
sambio_ has joined #ruby
sambio_ has quit [Read error: Connection reset by peer]
maletor has joined #ruby
kvirani has quit [Remote host closed the connection]
c0rn_ has joined #ruby
AndChat| has quit [Ping timeout: 272 seconds]
jorge has joined #ruby
steven- has quit [Ping timeout: 240 seconds]
wpaulson has quit [Read error: Connection reset by peer]
wpaulson has joined #ruby
jrxiii has joined #ruby
<jrxiii> hi all
Chryson has joined #ruby
Hanmac1 has joined #ruby
jorge has quit [Remote host closed the connection]
<jrxiii> I'm looking for some guidance on parallel processing within ruby variants
<fragmachine> exit
fragmachine has quit [Quit: leaving]
beneggett has joined #ruby
<jrxiii> Is there an accepted means of getting around the GIL while using, say, jruby?
Hanmac has quit [Ping timeout: 245 seconds]
<banisterfiend> jrxiii: jruby doesnt have a gil
<jrxiii> right
bradhe has quit [Remote host closed the connection]
ibash has joined #ruby
<jrxiii> so if I use jruby to parallelize my tasks, I should be able to take full advantage of multiple cores on a machine?
<banisterfiend> i guess so
<jrxiii> hmm… time to read then
<jrxiii> effing jruby
joofsh has quit [Quit: Page closed]
c0rn_ has quit [Quit: Computer has gone to sleep.]
steven- has joined #ruby
tiripamwe has quit [Ping timeout: 260 seconds]
<jrxiii> for those playing at home
vitor-br has joined #ruby
sambio_ has joined #ruby
banisterfiend has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
futini_ has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
snuglepuss has quit [Remote host closed the connection]
futini has quit [Ping timeout: 252 seconds]
ibash has quit [Quit: ibash]
jromine has quit [Remote host closed the connection]
ibash has joined #ruby
ibash has quit [Client Quit]
adamkitt_ has quit [Remote host closed the connection]
Maniacal has quit [Quit: Leaving]
pdtpatrick has quit [Quit: pdtpatrick]
sonkei has joined #ruby
tiripamwe has joined #ruby
jrxiii has quit [Quit: jrxiii]
fforbeck has joined #ruby
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
fforbeck has quit [Client Quit]
iori has joined #ruby
gtuckerkellogg has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
eroc has joined #ruby
pu22l3r has joined #ruby
pdtpatrick has joined #ruby
dmiller has joined #ruby
manizzle has quit [Ping timeout: 244 seconds]
dmiller has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
dmiller has joined #ruby
kenneth has quit [Quit: kenneth]
kenneth has joined #ruby
kenneth has quit [Client Quit]
sambio_ has quit [Quit: Saliendo]
horofox has quit [Quit: horofox]
philcrissman has joined #ruby
bradhe has joined #ruby
raz has joined #ruby
<raz> ghow do i get the first *byte* (integer value) of a string in a way that works on both 1.8.7 and 1.9+?
voodoofish430 has quit [Quit: power was shut off!]
mmitchell has joined #ruby
nari has joined #ruby
Nisstyre_ is now known as Nisstyre
savage- has quit [Remote host closed the connection]
mmitchell has quit [Ping timeout: 276 seconds]
luxurymode has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Read error: Connection reset by peer]
enyo has joined #ruby
dmiller has quit [Remote host closed the connection]
emmanuelux has quit [Remote host closed the connection]
uris has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
stephenjudkins has quit [Quit: stephenjudkins]
Juul has quit [Read error: Connection reset by peer]
seoaqua has joined #ruby
radic has quit [Read error: Operation timed out]
mmitchell has joined #ruby
luxurymode has joined #ruby
dmiller has joined #ruby
AlbireoX has quit [Read error: Connection reset by peer]
tchebb1 has joined #ruby
pu22l3r has quit [Remote host closed the connection]
brandon2 has joined #ruby
S1kx has quit [Ping timeout: 248 seconds]
dmiller has quit [Ping timeout: 272 seconds]
tchebb has quit [Ping timeout: 246 seconds]
AlbireoX has joined #ruby
baroquebobcat has joined #ruby
zburt has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
radic has joined #ruby
sonkei has joined #ruby
bgupta has quit [Ping timeout: 244 seconds]
kenneth has joined #ruby
hipertracker has quit [Ping timeout: 260 seconds]
sonkei has quit [Client Quit]
shadoi has quit [Quit: Leaving.]
zigidias has quit [Remote host closed the connection]
banisterfiend has joined #ruby
cakehero has quit [Quit: Leaving...]
machty has quit [Ping timeout: 246 seconds]
rakl has joined #ruby
adamkittelson has joined #ruby
kn330 has quit [Ping timeout: 276 seconds]
adamkittelson has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 246 seconds]
pingfloyd has joined #ruby
g_rotbart has quit [Read error: Connection reset by peer]
datsik33 has joined #ruby
asklov has quit [Ping timeout: 276 seconds]
g_rotbart has joined #ruby
bananagram has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
jonathanwallace has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
macmartine has quit [Quit: Computer has gone to sleep.]
ckrailo has quit [Quit: Computer has gone to sleep.]
dmiller_ has joined #ruby
seoaqua has quit [Ping timeout: 260 seconds]
porron has joined #ruby
cableray has quit [Quit: cableray]
fyolnish_ has quit [Remote host closed the connection]
dpk has quit [Quit: Asleep at the keyboard.]
mmitchell has quit [Remote host closed the connection]
manizzle has joined #ruby
jasonkuhrt has joined #ruby
sonkei has joined #ruby
tiripamwe has quit [Ping timeout: 272 seconds]
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
rohit has joined #ruby
awarner has joined #ruby
fyolnish_ has joined #ruby
Guedes has quit [Ping timeout: 240 seconds]
fyolni___ has joined #ruby
deryldoucette has joined #ruby
deryl has quit [Ping timeout: 244 seconds]
deryldoucette is now known as deryl
tomoyuki28jp has joined #ruby
<tomoyuki28jp> Is there a easy way to expand a shorten url like https://t.co/?
fyolnish_ has quit [Ping timeout: 245 seconds]
futini_ has quit [Quit: Lost terminal]
Targen has joined #ruby
fyolnish_ has joined #ruby
freeayu has joined #ruby
Moggle has joined #ruby
pu22l3r has joined #ruby
ezra has quit [Ping timeout: 276 seconds]
fyoln____ has joined #ruby
fyolni___ has quit [Ping timeout: 246 seconds]
awarner has quit [Remote host closed the connection]
fyolni___ has joined #ruby
fyolnish_ has quit [Ping timeout: 240 seconds]
fyolni___ has quit [Read error: Connection reset by peer]
fyoln____ has quit [Ping timeout: 246 seconds]
fyolnish has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
fyolni___ has joined #ruby
fyolni___ has quit [Remote host closed the connection]
EPIK has quit [Ping timeout: 255 seconds]
al-ol has quit [Ping timeout: 244 seconds]
EPIK has joined #ruby
apok_ has joined #ruby
apok_ has quit [Client Quit]
coderguy has joined #ruby
fyolnish has quit [Ping timeout: 245 seconds]
pingfloyd has quit [Ping timeout: 246 seconds]
apok has quit [Ping timeout: 244 seconds]
aristidesfl has quit []
tiripamwe has joined #ruby
keyvan|away is now known as keyvan
rohit has quit [Ping timeout: 272 seconds]
macmartine has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<bnagy> morning rubynauts
brandon2 has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
<bnagy> coooooffeee
tomoyuki28jp has quit [Remote host closed the connection]
<karstensrage> so if you do attr_accessor :fname, :lname that sets up public getters and setters?
<karstensrage> and attr_reader sets up read-only?
<bnagy> raz: str.slice(0,1).chr should be compatible
sterex has quit [Quit: sterex]
<bnagy> dunno if there is a nicer way, haven't used 1.8 for several years
<banisterfiend> karstensrage: Yeah
<bnagy> raz: .ord I mean sorry (pre coffee)
rohit has joined #ruby
mdelcx has quit [Quit: Lost terminal]
machty has joined #ruby
deryl has quit [Quit: deryl]
chenhan has joined #ruby
sterex has joined #ruby
jenrzzz has joined #ruby
al-ol has joined #ruby
kaushik_ has joined #ruby
sonkei has joined #ruby
deryl has joined #ruby
sonkei has quit [Client Quit]
wpaulson has joined #ruby
Guest5516 has joined #ruby
uris has quit [Quit: Lost terminal]
<chenhan> hi
Free563 has joined #ruby
<chenhan> hgh
c0rn_ has joined #ruby
arietis has joined #ruby
Monie has quit [Ping timeout: 244 seconds]
chenhan has quit [Ping timeout: 252 seconds]
samflores has joined #ruby
samflores has quit [Client Quit]
philcrissman has quit [Remote host closed the connection]
philcrissman has joined #ruby
rjsamson has quit [Remote host closed the connection]
Spooner has quit [Ping timeout: 260 seconds]
shadoi has joined #ruby
mmitchell has joined #ruby
Banistergalaxy has joined #ruby
chaplain has quit [Ping timeout: 600 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
SCommette has joined #ruby
savage- has joined #ruby
mmitchell has quit [Ping timeout: 276 seconds]
ryanf has joined #ruby
mmitchell has joined #ruby
Free563 has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Free563 has joined #ruby
chrishunt has joined #ruby
Free563 has quit [Client Quit]
ChadStud1uffin has quit [Ping timeout: 240 seconds]
mmitchell has quit [Ping timeout: 276 seconds]
keyvan is now known as keyvan|away
porron has quit [Quit: Saliendo]
sambio has quit [Read error: Connection reset by peer]
<karstensrage> hmm
<karstensrage> if i just write some test ruby code in a file foo.rb
<karstensrage> and i load it up in irb with load 'foo.rb'
<karstensrage> is there way to access things in the .rb file?
<karstensrage> does it get put in some namespace or something?
mahmoudimus has joined #ruby
<examancer> its executed in the current namespace
<examancer> your classes, methods, etc should all be there
snorkdude has joined #ruby
justsee has joined #ruby
g_rotbart has quit [Read error: Connection reset by peer]
justsee has quit [Changing host]
justsee has joined #ruby
yasushi has joined #ruby
<examancer> technically its executed in the instance of <main>, which is an instance of Object
g_rotbart has joined #ruby
<karstensrage> so like how would i access something like 'foo' if the file just had 'foo = 2 * 6' or something
<examancer> so something along the lines of <main>.instance_eval{ # your code here }
<fowl> karstensrage: you cannot access a local variable outside the file
artOfWar_ has quit [Ping timeout: 248 seconds]
chendo_ has quit [Ping timeout: 255 seconds]
SCommette has quit [Quit: SCommette]
sagax has quit [Ping timeout: 240 seconds]
fearoffish has quit [Quit: Computer has gone to sleep.]
fbernier has quit [Ping timeout: 245 seconds]
<examancer> karstensrage: if you do something like @foo = 2*6 you'll be able to retrieve it
chendo_ has joined #ruby
<examancer> then you are adding an instance variable to <main>, which you can read from the console since you are in the same object
fbernier has joined #ruby
dmiller_ has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
jasonkuhrt has quit [Quit: Leaving...]
banisterfiend has joined #ruby
<karstensrage> NameError: undefined local variable or method `foo' for #<Object:0x10e3cc288>
<karstensrage> thats with the @
burgestrand has quit [Quit: Leaving.]
<fowl> no it isnt
<karstensrage> oh
coderguy has quit [Quit: coderguy]
<karstensrage> @foo is how to get it
SCommette has joined #ruby
<karstensrage> oh cool
<karstensrage> thanks
pingfloyd has joined #ruby
chaplain has joined #ruby
pingfloyd has quit [Client Quit]
luxurymode has quit [Quit: Computer has gone to sleep.]
rohit has quit [Ping timeout: 244 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
datsik33 has quit [Quit: This computer has gone to sleep]
greasegum has joined #ruby
bananagram has quit [Ping timeout: 245 seconds]
elico has quit [Quit: elico]
snorkdude has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
<karstensrage> so far im impressed
<karstensrage> now for XML
<karstensrage> dun dun
deryl has quit [Quit: deryl]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
pingfloyd has joined #ruby
ananthakumaran has joined #ruby
pu22l3r has quit [Remote host closed the connection]
macmartine has quit [Quit: Computer has gone to sleep.]
pu22l3r has joined #ruby
bananagram has joined #ruby
Guest5516 has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
enyo has quit [Quit: Lost terminal]
pu22l3r has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
recycle has joined #ruby
mercwith1mouth has joined #ruby
dmiller has quit [Ping timeout: 252 seconds]
vectorshelve has joined #ruby
gregorg has quit [Read error: Connection reset by peer]
<vectorshelve> HI
tommyvyo has quit [Quit: Computer has gone to sleep.]
jenrzzz has quit [Ping timeout: 244 seconds]
bananagram has quit [Ping timeout: 276 seconds]
malkomalko has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
mmitchell has joined #ruby
zommi has joined #ruby
iamjarvo has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
yasushi has quit [Remote host closed the connection]
diegoviola has joined #ruby
ronnieBoy has joined #ruby
eroc has quit [Quit: eroc]
dmiller has joined #ruby
mmitchell has quit [Ping timeout: 246 seconds]
ronnieBoy has quit [Ping timeout: 246 seconds]
chendo_ has quit [Ping timeout: 246 seconds]
malkomalko has quit [Remote host closed the connection]
devsharpen has joined #ruby
SCommette has quit [Quit: SCommette]
chendo_ has joined #ruby
SCommette has joined #ruby
Goles has joined #ruby
dmiller has quit [Ping timeout: 244 seconds]
philcrissman has quit [Remote host closed the connection]
ramu3 has joined #ruby
vitor-br has quit [Quit: Saindo]
rakl has quit [Quit: sleeping]
banisterfiend has quit [Remote host closed the connection]
Nirmala has joined #ruby
jarjar_prime has joined #ruby
jarjar_prime has quit [Client Quit]
Hanmac1 is now known as Hanmac
ttilley has joined #ruby
SeySayux has quit [Read error: Operation timed out]
banisterfiend has joined #ruby
Goles has quit [Quit: Computer has gone to sleep.]
locriani has quit [Remote host closed the connection]
Nirmala has quit [Client Quit]
Hanmac has quit [Quit: Leaving.]
yxhuvud has joined #ruby
adeponte has joined #ruby
locriani_ has joined #ruby
sonkei has joined #ruby
dmiller has joined #ruby
will1000 has joined #ruby
sagax has joined #ruby
dmiller has quit [Ping timeout: 246 seconds]
beneggett has joined #ruby
ramu3 has quit [Quit: Leaving...]
burgestrand has joined #ruby
Chryson has quit [Quit: Leaving]
greasegum has quit [Ping timeout: 252 seconds]
machty has quit [Ping timeout: 276 seconds]
luckyruby has joined #ruby
dmiller has joined #ruby
vampireza has joined #ruby
<vampireza> olaa
<vampireza> ;)
Hanmac has joined #ruby
arubin has quit [Quit: leaving]
vampireza has left #ruby [#ruby]
beneggett has quit [Quit: Computer has gone to sleep.]
thunderstrike has joined #ruby
dmiller has quit [Ping timeout: 244 seconds]
arubin has joined #ruby
SeySayux has joined #ruby
igotnolegs has quit [Quit: Computer has gone to sleep.]
rubyNoob has joined #ruby
<rubyNoob> hello
<luckyruby> Hi
<rubyNoob> awesome
<rubyNoob> this works
<rubyNoob> thanks for the response
<rubyNoob> was just banging my head for a while on this xpath query
<rubyNoob> context:
<rubyNoob> trying to parse out html from a webpage
justinmcp has quit [Remote host closed the connection]
<rubyNoob> using nokogiri
<rubyNoob> I'm trying to get all the tr's in a table, which should be pretty simple:
<rubyNoob> table = page.at_xpath('//table[1][@border="0" and @cellpadding="3" and @cellspacing="0" and @width="100%"][preceding::p]')
<rubyNoob>
<rubyNoob> is the table
lushious has quit [Ping timeout: 252 seconds]
amskah has joined #ruby
<rubyNoob> from what I read on w3schools for xpath syntax, I should be able to do : trs = table.at_xpath('./tr')
<rubyNoob> this only gives me the first tr under the table
<rubyNoob> can't figure out why it won't give me all of them
<matled> rubyNoob: nokogiri has #at for the first match and #search for all matches
<rubyNoob> thanks matled
<matled> check the documentation if you need specifically the xpath version
<rubyNoob> I'm IRC noob too, so please excuse
<rubyNoob> cool
<matled> and for quick hacking note that there is also / and % as shortcuts for at and search (I'm not sure which way around)
arkiver has joined #ruby
<rubyNoob> great!
<rubyNoob> thanks bro
maletor has joined #ruby
AlbireoX`Laptop has joined #ruby
sent-hil has joined #ruby
<rubyNoob> emacs erc is awesome
<sent-hil> is `class A < B(C); end` valid?
lushious has joined #ruby
areil has joined #ruby
<sent-hil> i think it is, forgot what `B(C)` does.
SCommette has quit [Quit: SCommette]
<banisterfiend> sent-hil: B(C) calls method B with C as parameter
<banisterfiend> so it would have to return a class ;)
<sent-hil> banisterfiend: oh right, B is a method in this case
und3f has joined #ruby
zommi has quit [Quit: Leaving.]
AlbireoX has quit [Ping timeout: 272 seconds]
lkba has quit [Ping timeout: 255 seconds]
hipertracker has joined #ruby
noyb has joined #ruby
mmitchell has joined #ruby
freeayu has quit [Ping timeout: 276 seconds]
maesbn has joined #ruby
mascool has joined #ruby
burgestrand has quit [Quit: Leaving.]
recycle has quit [Read error: Connection reset by peer]
<rubyNoob> I guess the html I'm trying to parse is malformed
<rubyNoob> :()
<sent-hil> banisterfiend: thx
sent-hil has quit [Remote host closed the connection]
mmitchell has quit [Ping timeout: 246 seconds]
djdb has joined #ruby
dmiller has joined #ruby
thaz has joined #ruby
rubyNoob has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
Synthead has quit [Quit: p33 ba115]
freeayu has joined #ruby
yoklov has quit [Quit: bye!]
keymone has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
ph^ has joined #ruby
keymone has joined #ruby
Tachyon has quit [Ping timeout: 255 seconds]
r0bby has joined #ruby
Tachyon has joined #ruby
recycle has joined #ruby
ph^ has quit [Remote host closed the connection]
dimday has joined #ruby
r0bby has quit [Read error: Connection reset by peer]
alec-c4 has joined #ruby
c0rn_ has quit []
r0bby has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Ping timeout: 240 seconds]
r0bby is now known as robbyoconnor
mahmoudimus has joined #ruby
r0bby has joined #ruby
mahmoudimus has quit [Read error: Connection reset by peer]
mahmoudimus has joined #ruby
savage- has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 255 seconds]
yxhuvud has quit [Ping timeout: 268 seconds]
M- has quit [Quit: This computer has gone to sleep]
mneorr has joined #ruby
r0bby is now known as robbyoconnor
ecksit has joined #ruby
<ecksit> hello, i seem to be having issues installing compass - http://pastesite.com/43241
<ecksit> running ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
<Hanmac> ecksit why not using an newer ruby?
<Hanmac> PS: it works for me so the problem should be in your internet connection? maybe using a proxy?
Hugo-Boss has joined #ruby
peterpan has joined #ruby
tiripamwe has quit [Remote host closed the connection]
<Hugo-Boss> third party tool for ruby ?
<Hanmac> Hugo-Boss for what? what do you want to do with this tool?
<ecksit> tried installing 1.9 and got the same issue. probably a proxy issue
<Hugo-Boss> i am new in ruby i dunno where to start
<Hanmac> Hugo-Boss you can use every text editor like kate,gedit,vim or what you do want for developing ruby
<Hanmac> if you want version-control or maybe other stuff you could try eclipse ... after install plugins it can do c++ and ruby too
<Hugo-Boss> thanks
ecksit has quit [Quit: Page closed]
justinmcp has joined #ruby
jgrevich has quit [Quit: jgrevich]
hipertracker has quit [Quit: hipertracker]
<Scient> Hugo-Boss: textmate, sublime text 2, RubyMine
Morkel has joined #ruby
hahaha has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
khakimov has quit [Quit: Computer has gone to sleep.]
sgmac has joined #ruby
sgmac has left #ruby [#ruby]
<Hugo-Boss> Scient: thanks
noyb has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
specialGuest has joined #ruby
lolmaus has joined #ruby
qwerxy has joined #ruby
timonv has joined #ruby
maletor has joined #ruby
bradhe has quit [Remote host closed the connection]
arturaz has joined #ruby
c0rn_ has joined #ruby
fragmachine has joined #ruby
matrixise has joined #ruby
<fragmachine> does anyone know why mechanize fails with https now?
<fragmachine> I try: Mechanize.new.get('https://webmail.westnet.com.au/login/default.aspx')
<fragmachine> but I get an error: Errno::ECONNRESET: Connection reset by peer - SSL_connect
<fragmachine> this script used to work about two months ago no problems
<fragmachine> I've had no luck googling the problem
fantazo has quit [Remote host closed the connection]
mmitchell has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
<Hanmac> fragmachine: did you install your ruby yourself or installed it via rvm?
<fragmachine> I installed it via rvm
<Hanmac> what happend if you do "require 'opensssl'" ?
<fragmachine> I'll try
<fragmachine> aha: LoadError: cannot load such file -- open-ssl
<fragmachine> gem install open-ssl?
<Hanmac> sorry i mean: "require 'openssl'"
<Hanmac> without "-"
<fragmachine> oh ok
mmitchell has quit [Ping timeout: 246 seconds]
mascool has quit [Ping timeout: 244 seconds]
<fragmachine> true
<fragmachine> it's there
<Hanmac> ok so openssl is installed ...
<fragmachine> I looked in the cert directory in rvm and there are no certs there
<fragmachine> not sure if there are supposed to be any though
<Azure> When reading a large file (like say, 100MB or more), would it be wise to use IO#each_line rather than read the entire file and iterate over the lines in memory?
cezar has joined #ruby
arkiver has quit [Quit: Leaving]
<bnagy> depends if you think 100M is a significant amount of memory
banisterfiend has joined #ruby
<Hanmac> Azure yeah each_line may be better ... or look at File.foreach
<bnagy> but if it's just as easy to iterate then yes.
gen0cide_ has quit [Quit: ["rm -rf $ME"]]
rakl has joined #ruby
<fragmachine> is there a Ruby mechanize irc channel?
cezar has quit [Client Quit]
zommi has joined #ruby
<fragmachine> or maybe I should askin rvm
<Hanmac> hm i cant help you ... your line works for me (a non-rvm user)
<fragmachine> hmm
<fragmachine> I think I'll go ask the folks over at rvm
<fragmachine> must be a rvm issue
<Mon_Ouie> I doubt that has anything to do with RVM
<Hanmac> every error has to do with RVM :D
<Azure> well, I've been starting work on a project that might need to handle a large amount of logfiles and parsing a good amount of that data into objects, further processing that data into statistics. Wee.
<fragmachine> I just installed mechanize in the system ruby, when I try and require it I get an error with this line in it 'from /usr/lib/ruby/1.8/openssl/x509-internal.rb:53
<fragmachine> mechanize won't load in 1.8.7
<fragmachine> do you think that might be a clue to the problem?
eldariof has joined #ruby
Tachyon has quit [Ping timeout: 272 seconds]
<fragmachine> I'm on ubuntu 12.04
keymone has left #ruby [#ruby]
Tachyon has joined #ruby
<Hanmac> you could install ruby1.9.1-full
ph^ has joined #ruby
<fragmachine> ok I'll try that
<Hanmac> and then change the system ruby with "sudo update-alternatives --config ruby"
<fragmachine> I don't want to mess with the system ruby if I can help it
specialGuest has quit [Quit: WeeChat 0.3.8]
<Hanmac> my system ruby has 1.9.3p194 as version
<fragmachine> are you on ubuntu?
BiHi has joined #ruby
<Hanmac> yeah .. but its the next version :P
<fragmachine> haha cool
Know1edge has quit [Ping timeout: 244 seconds]
<fragmachine> I just changed over to ubuntu from mac
<fragmachine> it's good so far
thone has joined #ruby
<Scient> or you could just compile ruby from source, which is easy as pie :)
thone_ has quit [Ping timeout: 244 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
wobr has joined #ruby
<fragmachine> installing the full ruby didn't work
ephemerian1 has joined #ruby
<Scient> try it from source then
<Scient> its just configure, make and make install basically
ephemerian1 has quit [Client Quit]
<fragmachine> can someone tell me what's in the /home/fragmachine/.rvm/usr/ssl/certs
jprovazn_away is now known as jprovazn
<fragmachine> folder?
<fragmachine> if I install it from source will it take over the system ruby?
josh^ has quit [Ping timeout: 246 seconds]
<Scient> you'd need to remove the rvm path thingie
<fragmachine> /usr/ssl/certs
recycle has quit [Remote host closed the connection]
xorigin has joined #ruby
josh^ has joined #ruby
luckyruby has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
<Hanmac> fragmachine ... i have a package called ca-certificates installed ... maybe it helps you
charliesome has joined #ruby
<fragmachine> ok cool, I'll see if I can find and install it from somewhere
<Hanmac> it should be installable via apt
<Hanmac> (apt-get)
Tachyon has quit [Ping timeout: 250 seconds]
<Banistergalaxy> Hanmac hello hans
<Banistergalaxy> Guten tag
Tachyon has joined #ruby
<fragmachine> hmm it's already on my system
<Hanmac> hm then i dont know why yoru rvm is not working
mr_dynamix has joined #ruby
mr_dynamix has quit [Client Quit]
<fragmachine> oh well thanks for your help
<fragmachine> I'll figure it out somehow
ori-l has joined #ruby
<ori-l> how do i select elements from a hash if the key matches some condition?
<Banistergalaxy> Use select?
c0rn_ has quit []
fragmachine has quit [Quit: leaving]
statarb3 has joined #ruby
statarb3 has quit [Remote host closed the connection]
statarb3 has joined #ruby
statarb3 has quit [Read error: Connection reset by peer]
Criztian has joined #ruby
mr_dynamix has joined #ruby
statarb3 has joined #ruby
smellynoser has joined #ruby
Criztian has quit [Remote host closed the connection]
c0rn_ has joined #ruby
keymone has joined #ruby
elico has joined #ruby
bradhe has joined #ruby
kaushik_ has quit [Ping timeout: 276 seconds]
jimeh has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
haxrbyte has joined #ruby
Xeago has joined #ruby
etank has quit [Ping timeout: 246 seconds]
mr_dynamix has quit [Quit: mr_dynamix]
mmitchell has joined #ruby
ephemerian has joined #ruby
haxrbyte_ has joined #ruby
mr_dynamix has joined #ruby
amskah has quit [Quit: Leaving]
love_color_text has joined #ruby
puchi23 has joined #ruby
haxrbyte has quit [Ping timeout: 246 seconds]
chimay has joined #ruby
chimay has quit [Changing host]
chimay has joined #ruby
diegoviola has quit [Quit: leaving]
ryanf has quit [Ping timeout: 252 seconds]
mmitchell has quit [Ping timeout: 246 seconds]
ori-l is now known as ori-l-away
hipertracker has joined #ruby
rakl has quit [Quit: sleeping]
kenneth has quit [Quit: kswizz.com]
stepnem has joined #ruby
Tachyon has quit [Ping timeout: 244 seconds]
Morkel has quit [Quit: Morkel]
Tachyon has joined #ruby
zigomir has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
pingfloyd has quit [Quit: pingfloyd]
hoelzro|away is now known as hoelzro
<hoelzro> does anyone have any recommendations for viewing ri documentation from within Vim?
gen0cide_ has joined #ruby
hoelzro is now known as hoelzro|away
elaptics`away is now known as elaptics
s1n4 has joined #ruby
puchi23 has quit [Remote host closed the connection]
alec-c4 has quit [Remote host closed the connection]
thunderstrike has quit [Read error: Connection reset by peer]
thunderstrike has joined #ruby
baphled has joined #ruby
Gabita123 has joined #ruby
justinmcp has quit [Remote host closed the connection]
robozahn has joined #ruby
dryule has joined #ruby
chussenot has joined #ruby
<banisterfiend> hoelzro|away: can't vim open shells?
<banisterfiend> emacs can :D
jrist-afk has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
robotmay has joined #ruby
beiter has joined #ruby
rohit has joined #ruby
Tachyx has joined #ruby
Tachyon has quit [Ping timeout: 252 seconds]
justsee has quit [Quit: Leaving...]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
imami|afk is now known as banseljaj
justsee has quit [Client Quit]
<ionte> Hi. Need a hint. I have a string A that contains between zero and four characters. What is the best way to make this string always of length 4, padding with, say, "X"?
etank has joined #ruby
<ionte> so - "" -> "XXXX", "a" -> "aXXX", "abcd" -> "abcd"
<bnagy> ljust
<Xeago> not rjust?
<Hanmac> >> "%4s" % "F"
<al2o3cr> (String) " F"
saschagehlich has joined #ruby
<banisterfiend> >> "a".ljust(4, "X")
<al2o3cr> (String) "aXXX"
<banisterfiend> >> "a".rjust(4, "X")
<al2o3cr> (String) "XXXa"
saschagehlich has quit [Read error: Connection reset by peer]
<banisterfiend> Xeago: Nope
<banisterfiend> >> "ab".ljust(4, "X")
<al2o3cr> (String) "abXX"
<banisterfiend> >> "abc".ljust(4, "X")
<al2o3cr> (String) "abcX"
<banisterfiend> >> "abcdef".ljust(4, "X")
<al2o3cr> (String) "abcdef"
dimday has quit [Remote host closed the connection]
<fowl> >>"stfu"*20
<al2o3cr> (String) "stfustfustfustfustfustfustfustfustfustfustfustfustfustfustfustfustfustfustfustfu"
<banisterfiend> fust fust fust fust
<bnagy> fust! you're speaking kiwi!
<banisterfiend> >> "labyu, artemis fowl"
<al2o3cr> (String) "labyu, artemis fowl"
asshopo has quit [Ping timeout: 240 seconds]
<banisterfiend> bnagy: hehe
<banisterfiend> that's true
qwerxy has joined #ruby
<fowl> what does fust mean in kiwi
manolo has joined #ruby
<banisterfiend> fowl: first
<banisterfiend> it's our accent
asshopo has joined #ruby
<bnagy> or first I guess - but yeah I thought of first, uh.. first
<bnagy> *or fist
wuzzzzaah has joined #ruby
<fowl> o
bradhe has joined #ruby
jasonkuhrt has joined #ruby
jasonkuhrt has quit [Client Quit]
jrist has joined #ruby
jiphex has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
mneorr has left #ruby [#ruby]
peterpan has quit [Ping timeout: 245 seconds]
mmitchell has joined #ruby
athit has joined #ruby
<vectorshelve> Hia
Markvilla has joined #ruby
Rochefort has joined #ruby
nari has quit [Ping timeout: 245 seconds]
justinmcp has joined #ruby
JohnDu has joined #ruby
mmitchell has quit [Ping timeout: 276 seconds]
Tachyx has quit [Ping timeout: 276 seconds]
<banisterfiend> vectorshelve: hello Equus.
<vectorshelve> banisterfiend: :)
Tachyx has joined #ruby
<banisterfiend> vectorshelve: Oh Equus! Son of Flexus, son of Septus, son of Plexus!
<vectorshelve> banisterfiend: :)
frogprince_mac has joined #ruby
nu7hatch has joined #ruby
puchi23 has joined #ruby
puchi23 has quit [Client Quit]
LouisGB has joined #ruby
ananthakumaran has quit [Ping timeout: 260 seconds]
puchi23 has joined #ruby
ananthakumaran has joined #ruby
Gabita123 has quit [Quit: Page closed]
nari has joined #ruby
cascalheira has joined #ruby
puchi23 has quit [Remote host closed the connection]
rakunHo has joined #ruby
darkf has joined #ruby
Takehiro has joined #ruby
<darkf> I'm trying to install a native gem but I'm getting 'native gem requires installed buidl tools.' even though I'm in a mingw shell with gcc, make, sh, etc. Why?
<bnagy> darkf: probably path stuff
<darkf> yeah but they're in the path
<bnagy> did you install devkit? That's the easiest way by far
<darkf> nope, because I already have a mingw installation that works :p
<bnagy> ok, well have fun with that then
<darkf> anyone else?
wobr has quit [Read error: Connection reset by peer]
wobr has joined #ruby
freeayu has quit [Remote host closed the connection]
nu7hatch has left #ruby [#ruby]
hoelzro|away is now known as hoelzro
shadoi has quit [Quit: Leaving.]
<banisterfiend> darkf: build it manually
<banisterfiend> darkf: get the gem, ruby ruby extconf.rb and then execute the Makefile
JohnDu has left #ruby [#ruby]
SegFault1X|work2 has joined #ruby
<darkf> banisterfiend: it just has a rakefile, which I assume won't install everything nicely for me?
hoelzro is now known as hoelzro|away
Rochefort has quit [Remote host closed the connection]
<banisterfiend> darkf: it should have an extconf.rb in the ext/ directory
<darkf> banisterfiend: ah, it does, thanks
c0rn_ has quit []
mklappstuhl has joined #ruby
dekroning has joined #ruby
SegFaultAX|work2 has quit [Ping timeout: 248 seconds]
SegFaultAX|work2 has joined #ruby
SegFault1X|work2 has quit [Ping timeout: 268 seconds]
mXr has quit [Remote host closed the connection]
darkf has quit [Quit: Leaving]
Nathandim has joined #ruby
takamichi has quit [Ping timeout: 246 seconds]
arkiver has joined #ruby
haxrbyte has joined #ruby
takamichi has joined #ruby
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
rohit has quit [Ping timeout: 252 seconds]
haxrbyte_ has quit [Ping timeout: 246 seconds]
thunderstrike has quit [Read error: Connection reset by peer]
thunderstrike has joined #ruby
arkiver has quit [Client Quit]
<ionte> bnagy, Xeago, Hanmac, banisterfiend: thanks everyone! got a phone call and missed your answers, but "ljust" was exactly what i was looking for!
rohit has joined #ruby
s1n4 has quit [Ping timeout: 264 seconds]
deryl has joined #ruby
Takehiro has quit [Remote host closed the connection]
love_color_text has quit [Remote host closed the connection]
Takehiro has joined #ruby
<dryule> l/quit
dryule has quit [Quit: leaving]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
elico has quit [Quit: elico]
elico has joined #ruby
tomaw_ has joined #ruby
cascalheira has joined #ruby
vlad_starkov has joined #ruby
kjellski has joined #ruby
mmitchell has joined #ruby
elico has quit [Quit: elico]
xkx has joined #ruby
mmitchell has quit [Ping timeout: 246 seconds]
Mon_Ouie has quit [Read error: Connection reset by peer]
Criztian has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
perun_ has quit [Ping timeout: 264 seconds]
<Hanmac> mon_ouie does the changing host make so much sense? i allready saw your ip (or what ever this is)
chussenot has quit [Quit: chussenot]
Guedes_out is now known as Guedes
<Mon_Ouie> It's done automatically when I identify. The point isn't really to hide my IP (or more commonly "host" in IRC-speak) ;)
fbernier has quit [Ping timeout: 245 seconds]
Hardcore has joined #ruby
mr_dynamix has quit [Quit: mr_dynamix]
<Hardcore> hi have the problem: `require': no such file to load -- highline/import (LoadError)
<Hardcore> but gem list say highline (1.6.14)
Takehiro has quit [Remote host closed the connection]
<Hardcore> any suggestion?
statarb3 has quit [Quit: Leaving]
fbernier has joined #ruby
Takehiro has joined #ruby
<banisterfiend> Hardcore: what ruby version?
<Hardcore> banisterfiend: ruby 1.8.7
<banisterfiend> Hardcore: require 'rubygems' first
<banisterfiend> Hardcore: but really, why dont you upgrade to ruby 1.9 ?
<Hardcore> banisterfiend: i don't know i'm very new to ruby
jenrzzz has quit [Ping timeout: 246 seconds]
<Hardcore> hm something is still wrong
DrShoggoth has quit [Ping timeout: 246 seconds]
hoelzro|away is now known as hoelzro
<hoelzro> banisterfiend: sure it can! but I was looking for something a little more "integrated"
<Hardcore> i installed ruby with this command:
<Hardcore> end of installation Should be ruby 1.9.3p194: ruby 1.9.3p194
<Hardcore> but ruby --version say 1.8.7
<banisterfiend> Hardcore: install rvm or rbenv (google then :P)
<Hardcore> whats rvm?
<Hardcore> ah version manager
manizzle has quit [Ping timeout: 252 seconds]
krz has quit [Quit: krz]
manizzle has joined #ruby
Takehiro has quit [Ping timeout: 255 seconds]
samflores has joined #ruby
chussenot has joined #ruby
samflores has left #ruby [#ruby]
takamichi has quit [Ping timeout: 252 seconds]
takamichi has joined #ruby
<Hardcore> banisterfiend: i used rvm install 1.9.3 but i just have 1.8 -.-
fearoffish has joined #ruby
withnale has quit [Quit: Terminated with extreme prejudice - dircproxy 1.2.0]
elico has joined #ruby
withnale has joined #ruby
<Hanmac> Hardcore, your PATH is not fixed ... you need to add some rvm commands inside your bashrc ... read the docs of rvm
Takehiro has joined #ruby
<withnale> Hi. Silly question. Can I just chmod 4755 a ruby script to get it to run setuid these days? (this is specifically setuid to a non-root user)
<banisterfiend> Hardcore: rvm 1.9.3
<banisterfiend> Hardcore: type that
mneorr1 has joined #ruby
rohit has quit [Quit: Leaving]
tomaw has quit [Quit: Quitting]
tomaw_ is now known as tomaw
elico has quit [Quit: Elico]
elico has joined #ruby
elico has quit [Client Quit]
Rochefort has joined #ruby
kvirani has joined #ruby
<Hanmac> withnale add "#!/usr/bin/env ruby" as first and "# encoding: utf-8" as second line
<whowantstolivefo> what is the best advertising platform for selling ipad/iphone/android apps ? google ? facebook or any other ? pleasa advice
elico has joined #ruby
kvirani has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
gen0cide_ has quit [Ping timeout: 260 seconds]
niklasb has joined #ruby
ezra has joined #ruby
ezra has quit [Changing host]
ezra has joined #ruby
fearoffish has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
gen0cide_ has joined #ruby
mr_dynamix has joined #ruby
alec-c4 has joined #ruby
RegEchse has joined #ruby
ezra has quit [Ping timeout: 276 seconds]
Elico1 has joined #ruby
hoelzro is now known as hoelzro|away
elico has quit [Ping timeout: 244 seconds]
sepp2k has joined #ruby
mmitchell has joined #ruby
gen0cide_ has quit [Quit: Computer has gone to sleep.]
sterex has quit [Quit: sterex]
Nathandim has quit [Read error: Connection reset by peer]
justinmcp has quit [Remote host closed the connection]
zommi has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
cakehero has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
mmitchell has quit [Ping timeout: 276 seconds]
chussenot has quit [Quit: chussenot]
<Hardcore> banisterfiend: thanks now its works with rvm use ...
<Hardcore> but i have the same error now
<Hardcore> require': no such file to load -- highline/import (LoadError)
<Hardcore> gem list -> highline (1.6.14)
gen0cide_ has joined #ruby
dekroning has quit [Ping timeout: 260 seconds]
Criztian has quit [Remote host closed the connection]
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
<banisterfiend> Hardcore: because you have to reinstall the highline gem
mneorr1 has quit [Remote host closed the connection]
<banisterfiend> for 1.9.3
mc0e1 has joined #ruby
<banisterfiend> oh
<banisterfiend> hmm
<Hardcore> i have reinstalled ist because after switching to 1.9.3 gem list dont list up highline
<Hardcore> *it
kvirani has joined #ruby
<Hardcore> hmmm
berkes has joined #ruby
mc0e has quit [Ping timeout: 244 seconds]
mneorr has joined #ruby
Foxandxss has joined #ruby
haxrbyte_ has joined #ruby
deryl has quit [Quit: deryl]
zommi has joined #ruby
haxrbyte has quit [Ping timeout: 245 seconds]
Tombar has joined #ruby
robustus has joined #ruby
lushious has quit [Ping timeout: 252 seconds]
schickung has joined #ruby
larissa has joined #ruby
Morkel has joined #ruby
dekroning has joined #ruby
ctp has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
lushious has joined #ruby
nari has quit [Ping timeout: 245 seconds]
xorgnak has joined #ruby
mmitchell has joined #ruby
Axsuul has quit [Ping timeout: 268 seconds]
gen0cide_ has quit [Quit: Computer has gone to sleep.]
fermion has joined #ruby
perun has joined #ruby
vlad_starkov has joined #ruby
artm has joined #ruby
TheFuzzball has quit [Disconnected by services]
TheFuzzball has joined #ruby
TheFuzzball has quit [Disconnected by services]
TheFuzzball has joined #ruby
TheFuzzball has quit [Disconnected by services]
wpaulson has joined #ruby
TheFuzzb_ has joined #ruby
thunderstrike has quit [Read error: Connection reset by peer]
saschagehlich has joined #ruby
thunderstrike has joined #ruby
geekbri has joined #ruby
Guedes has quit [Remote host closed the connection]
keymone has left #ruby [#ruby]
alec-c4 has quit [Remote host closed the connection]
lushious has quit [Ping timeout: 252 seconds]
<shevy> Hardcore perhaps rvm interferes
mmitchell has quit [Remote host closed the connection]
<_br_> Hardcore: require 'rubygems' ?
nateberkopec has joined #ruby
lushious has joined #ruby
carloslopes has joined #ruby
ezra has joined #ruby
ezra has quit [Changing host]
ezra has joined #ruby
aristidesfl has joined #ruby
chendo_ has quit [Ping timeout: 244 seconds]
athit has quit [Ping timeout: 272 seconds]
mark_locklear has joined #ruby
athit has joined #ruby
iori has quit [Remote host closed the connection]
sgmac has joined #ruby
sgmac has left #ruby [#ruby]
chendo_ has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
lushious has quit [Ping timeout: 252 seconds]
verto|off is now known as verto
darthdeus has joined #ruby
Dreamer3 has joined #ruby
chendo_ has quit [Ping timeout: 252 seconds]
heisenmink has joined #ruby
Spooner has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
chendo_ has joined #ruby
justinmcp has joined #ruby
ZachBeta has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
vlad_starkov has joined #ruby
alek_b has quit [Remote host closed the connection]
ezra has quit [Ping timeout: 276 seconds]
dekroning has quit [Ping timeout: 276 seconds]
dmiller has quit [Remote host closed the connection]
dmiller has joined #ruby
<trooney> What might be wrong if I can rackup -p 9393 my Sinatra app, but running shotgun just gives me 404 errors?
chendo_ has quit [Quit: Leaving...]
_bart has quit [Quit: _bart]
cuit has joined #ruby
mneorr has quit [Quit: Leaving.]
jonathanwallace has quit [Ping timeout: 276 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
sumim has joined #ruby
geekbri has quit [Remote host closed the connection]
geekbri has joined #ruby
Markvilla has quit [Quit: Computer has gone to sleep.]
dekroning has joined #ruby
mneorr has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
nwest has joined #ruby
heisenmi_ has joined #ruby
sumim has quit [Remote host closed the connection]
verto is now known as verto|off
iamjarvo has joined #ruby
nanderoo has joined #ruby
verto|off is now known as verto
cantonic has joined #ruby
cascalheira has quit [Quit: qicr for android: faster and better]
heisenmink has quit [Ping timeout: 240 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
heisenmi_ has quit [Remote host closed the connection]
lushious has joined #ruby
philcrissman has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vectorshelve has quit [Quit: Page closed]
banisterfiend has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
chussenot has joined #ruby
dpk has joined #ruby
Guest5516 has joined #ruby
dmiller has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 268 seconds]
yasushi has joined #ruby
jonathanwallace has joined #ruby
enroxorz-work has joined #ruby
Goles has joined #ruby
banisterfiend` has joined #ruby
tommyvyo_ has joined #ruby
will1000 has quit [Ping timeout: 252 seconds]
jasonkuhrt has joined #ruby
jasonkuhrt has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 245 seconds]
emka has joined #ruby
<emka> Hi, this is not really a ruby question even thoI wonder if there any useful gems or something that can make it cleaner…I want to have a field in a form that takes a duration. ex 1.5 = 1hour 30 minutes, or 01:30:00 = 1 hour 30 minutes or 30:15 = 30 minutes 15 seconds. I want to be able to take this an convert everything into seconds in the db field. Any tips or tricks to do it clean?
<emka> the recogniz
jonathanwallace has quit [Remote host closed the connection]
<emka> and convert part I mean
Agis__ has joined #ruby
jonathanwallace has joined #ruby
jonathanwallace has quit [Read error: Connection reset by peer]
<Xeago> there sure are some gems out there that will help with that
robozahn has quit [Quit: leaving]
<Xeago> but I am unaware of their names. Google will help
Nisstyre has quit [Ping timeout: 246 seconds]
<Xeago> first hit on google
<emka> mm
<emka> I'm just looking into chronic
<ccooke> Chronic is pretty good
philcrissman has quit [Remote host closed the connection]
heisenmink has joined #ruby
<Xeago> why doesn't ruby have a ++ increment operator
<bnagy> cause we got +=1
<banisterfiend`> Xeago: i can write one for u if u give me dat scrill
locriani_ has quit [Remote host closed the connection]
<Xeago> scrill?
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
<banisterfiend`> $$$
zommi has quit [Ping timeout: 265 seconds]
<shevy> Xeago because ++ does not make sense
mmitchell has joined #ruby
Takehiro has quit [Remote host closed the connection]
resure has joined #ruby
cantonic has quit [Quit: cantonic]
<shevy> also look at the parsing rules given. x = a++b parses as x = a + (+b)
und3f has quit [Read error: Operation timed out]
yshh has quit [Remote host closed the connection]
<Xeago> but code that wants to work like that is just wrong
<JonnieCache> i think someone remade a new version of chronic
yshh has joined #ruby
<Xeago> JonnieCache?
<JonnieCache> emka: called it something else
<Mon_Ouie> Chronic changed maintainer at some point, now it's injekt — but he still maintains the same gem
und3f has joined #ruby
sagax has quit [Quit: Ухожу я от вас]
<JonnieCache> https://www.ruby-toolbox.com/categories/Natural_Language_Date_Parsing still shows chronic on top. i must be thinking of something else
mmitchell has quit [Ping timeout: 246 seconds]
resure is now known as resure|wtf_with_
resure|wtf_with_ is now known as resure
<emka> ok
<emka> hmm
BIGX333 has joined #ruby
yshh has quit [Ping timeout: 252 seconds]
schickung has quit [Quit: schickung]
fmcgeough has joined #ruby
cantonic has joined #ruby
mmitchell has joined #ruby
Coolhand_ is now known as Coolhand
johnjohnson has joined #ruby
rouss_ has joined #ruby
justsee has quit [Quit: Linkinus - http://linkinus.com]
pipopopo has joined #ruby
zommi has joined #ruby
tdelam has joined #ruby
cantbecool has joined #ruby
vlad_starkov has joined #ruby
GoGoGarrett has joined #ruby
johnjohnson has quit [Remote host closed the connection]
mc0e has joined #ruby
mmitchell has quit [Ping timeout: 276 seconds]
johnjohnson has joined #ruby
chimay has quit [Ping timeout: 246 seconds]
mc0e1 has quit [Ping timeout: 264 seconds]
jonathanwallace has joined #ruby
br4ndon has joined #ruby
thunderstrike has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Read error: Connection reset by peer]
thunderstrike has joined #ruby
jonathanwallace has joined #ruby
<Hardcore> i just have the same problem
<Hardcore> can someone help?
locriani has quit [Remote host closed the connection]
manolo has quit [Remote host closed the connection]
<charliesome> night
<charliesome> wrong channel
dekronin1 has joined #ruby
<charliesome> whatever, seeya
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<carloslopes> Hardcore: your script is not finding the highline/import file
`brendan has joined #ruby
dekroning has quit [Ping timeout: 245 seconds]
Tombar has quit [Remote host closed the connection]
krawchyk has joined #ruby
noam has quit [Ping timeout: 276 seconds]
cuit has left #ruby ["Konversation terminated!"]
noam has joined #ruby
lushious has quit [Ping timeout: 252 seconds]
<kjellski> why am I not able to require 'addressable' ?
justinmcp has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
<kjellski> I've installed the gem that went just fine
mmitchell has joined #ruby
paul_andrew has joined #ruby
justinmcp has joined #ruby
ConstantineXVI has quit [Excess Flood]
ConstantineXVI has joined #ruby
ConstantineXVI has quit [Excess Flood]
kvirani has quit [Remote host closed the connection]
Takehiro has joined #ruby
krawchyk has quit [Remote host closed the connection]
guyvdb_ has joined #ruby
krawchyk has joined #ruby
<Hardcore> carloslopes: why? :D
justinmcp has quit [Remote host closed the connection]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<carloslopes> i don't know.. can you paste here the part that you require the highline/import file in your rlog-recover.rb?
<carloslopes> cc/ Hardcore
guyvdb_ has quit [Read error: Connection reset by peer]
zigomir has quit [Quit: Leaving]
jclem has joined #ruby
<GoGoGarrett> if I use define_method "blah_blah" { }
<GoGoGarrett> is there anyway to make that take a paramter
<banisterfiend`> GoGoGarrett: Yes.
<otters> make the block take parameters
<otters> :?
<Xeago> { |v1,v2| .. }
<GoGoGarrett> ah i see
<GoGoGarrett> thanks
<banisterfiend`> it can even take block parameters
<banisterfiend`> define_method(:pig) { |&block| block.call }
<banisterfiend`> dont use 'yield' inside the block to invoke the block though ;)
<banisterfiend`> it wont work
<otters> in fact, it can take any parameters that your average method can take
Dr4g is now known as Dr4g|afk
br4ndon has quit [Ping timeout: 246 seconds]
horofox has joined #ruby
<Xeago> how would you pass a variable that eats up rest of the args
<Xeago> err
<Xeago> like printf does in c
<Xeago> forgot how it is called
<banisterfiend`> Xeago: *args
<canton7> called 'splat' in ruby
<Xeago> {|*args,&block| puts "valid?" }
porron has joined #ruby
<Xeago> is that valid?>
sambio has joined #ruby
porron has quit [Read error: Connection reset by peer]
cantonic has quit [Ping timeout: 264 seconds]
<banisterfiend`> Xeago: Yeah
<banisterfiend`> Xeago: but really u should try things out in a repl ;)
<RegEchse> like ... pry? ;P
<Xeago> I pry within irb atm...
<Xeago> :3
bbttxu has joined #ruby
<banisterfiend`> RegEchse: how did u guess? :P
lushious has joined #ruby
mercwith1mouth has quit [Ping timeout: 246 seconds]
<RegEchse> banisterfiend`: dunno, just a feeling ;D
<Xeago> isn't irb considered to be ancient amongst idlers here?
matrixise has quit [Read error: Connection reset by peer]
matrixise has joined #ruby
stopbit has joined #ruby
<banisterfiend`> Xeago: i hope so :)
cascalheira has joined #ruby
eins11 has joined #ruby
tdelam has quit [Remote host closed the connection]
tdelam has joined #ruby
cascalheira has quit [Client Quit]
cantbecool has quit [Quit: Textual IRC Client: www.textualapp.com]
philcrissman has joined #ruby
hsbt is now known as hsbt_away
<Xeago> any synonyms of "to the point"
<Danielpk> How i can verify if var is boolean?
<Xeago> .class
<Xeago> >> true.class
<al2o3cr> (Class) TrueClass
lushious has quit [Ping timeout: 252 seconds]
<Xeago> >> false.class
<al2o3cr> (Class) FalseClass
<Xeago> >> a=false; a.class
<al2o3cr> (Class) FalseClass
und3f has quit [Ping timeout: 240 seconds]
Nisstyre_ has joined #ruby
<Danielpk> so i need to test both class?
flagg0204 has joined #ruby
rakunHo has quit [Remote host closed the connection]
helpa has quit [Remote host closed the connection]
sailias has joined #ruby
r126l_ has quit [Remote host closed the connection]
Nisstyre_ is now known as Nisstyre
<Danielpk> What if i just want know if is boolean and don't care if it is true or false…?
joshman_ has joined #ruby
hsbt_away is now known as hsbt
verto is now known as verto|off
<kjellski> I run ruby 1.9.3 and would like to use addressable, why can't I require it after installing the gem?
emka has quit [Read error: Connection reset by peer]
cakehero has joined #ruby
cakehero_ has joined #ruby
locriani has joined #ruby
locriani has joined #ruby
locriani has quit [Changing host]
<Xeago> Danielpk: probably
BIGX333 has quit [Disconnected by services]
will1000 has joined #ruby
<banisterfiend`> Danielpk: use this
ncamargo has joined #ruby
<banisterfiend`> Danielpk: !!b == b
chussenot has quit [Quit: chussenot]
<Danielpk> And what it mean? Sorry I'm new with Ruby...
ncamargo is now known as BIGX333
<banisterfiend`> Danielpk: not telling ;)
<Xeago> oh meanie
cakehero_ has quit [Client Quit]
locriani_ has joined #ruby
athit has quit [Ping timeout: 272 seconds]
lushious has joined #ruby
<Mon_Ouie> Checking for the class on a true/false isn't really useful, as you can just check for equality
awarner has joined #ruby
<Mon_Ouie> a == true, a == false
Ugallu has joined #ruby
<Danielpk> i liked using !!b == b but i don't know what !! mean :D
<Xeago> >> !false
<al2o3cr> (TrueClass) true
<Xeago> hint
athit has joined #ruby
djdb has quit [Remote host closed the connection]
locriani_ has quit [Client Quit]
wmoxam_ has joined #ruby
johnlcox has joined #ruby
locriani_ has joined #ruby
locriani_ has quit [Client Quit]
locriani_ has joined #ruby
locriani has quit [Ping timeout: 240 seconds]
kvirani has joined #ruby
seanyo has joined #ruby
locriani_ is now known as locriani
locriani has quit [Changing host]
locriani has joined #ruby
wuzzzzaah has quit [Read error: Connection reset by peer]
mercwith1mouth has joined #ruby
Virunga has joined #ruby
ph^ has quit [Ping timeout: 248 seconds]
wuzzzzaah has joined #ruby
Tachyon__ has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
Nisstyre has quit [Remote host closed the connection]
<hahaha> Mmkay, why doesn't ruby print the full stack trace of the stack overflow?
<banisterfiend`> hahaha: if the stack overflow is caused by a recursive function
<banisterfiend`> u probably dont want that
<JonnieCache> how big does the stack go before it errors out?
<JonnieCache> pretty big
<hahaha> There's just one function.
<hahaha> That's not too useful too.
<hahaha> (line of trace)
<Xeago> then you know it is within that function stuff is bad
<Xeago> not in the callee
chimay has joined #ruby
<JonnieCache> i presume youre talking about StackTooDeep not an actual stack overflow?
chimay has quit [Changing host]
chimay has joined #ruby
Tachyx has quit [Ping timeout: 244 seconds]
berkes has quit [Quit: Ex-Chat]
thaz has quit [Quit: thaz]
internet_user has joined #ruby
seanyo has quit [Ping timeout: 246 seconds]
<shevy> kjellski what is addressable? and how did you install the gem. you should give more info man
linoj has joined #ruby
Markvilla has joined #ruby
Dreamer3__ has joined #ruby
fearoffish has joined #ruby
ezra has joined #ruby
ezra has quit [Changing host]
ezra has joined #ruby
LBRapid has joined #ruby
Dreamer3 has quit [Ping timeout: 244 seconds]
CarlB_the_great has joined #ruby
<Hanmac> JonnieCache: do you mean like this? http://pics.nase-bohren.de/do-not-stack.jpg
Dreamer3__ is now known as Dreamer3
atmosx has joined #ruby
philcrissman has quit [Remote host closed the connection]
<JonnieCache> im sure yarv lets you have a bigger stack than that
philcrissman has joined #ruby
insulator has joined #ruby
<lectrick> Can I not YAML dump/load a Proc?
pricees has joined #ruby
<kjellski> shevy: gem install addressable; rib require 'addressable' doesn't work
<kjellski> s/rib/irb/
<Xeago> what does the s in s/a/b/ mean?
<kjellski> Xeago: substitute
<lectrick> and I can't Marshal.dump a proc either
<lectrick> Why are these things bugging me this morning
mark_locklear has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
<lectrick> come on, dynamic language, let me massage your innards
ken_barber has quit [Remote host closed the connection]
_bart has joined #ruby
ken_barber has joined #ruby
datsik33 has joined #ruby
<banisterfiend`> lectrick: serializing a proc is extremely difficult, if not impossible in MRI
athit has quit [Quit: leaving]
<JonnieCache> Xeago: its vim command syntax for find and replace
<lectrick> banisterfiend`: that doesn't mean it wouldn't be cool if you could
athit has joined #ruby
<banisterfiend`> lectrick: i never said it wouldn't be cool... :)
<JonnieCache> Xeago: vim users like to use it to correct themselves on irc so they can look cool
heisenmink has quit [Remote host closed the connection]
mark_locklear has joined #ruby
<lectrick> banisterfiend`: know if something like rubinius or some other ruby project will let you do cool stuff like that?
<JonnieCache> >> require 'pp'; pp RubyVM::InstructionSequence.compile('puts "hello world"').to_a
<al2o3cr> (Array) ["YARVInstructionSequence/SimpleDataFormat", 1, 2, 1, {:arg_size=>0, :local_size=>1, :stack_max=>2}, "<compiled>", "<compiled>", nil, 1, :top, [], 0, [], [1, [:trace, 1], [:putself], [:putstring, "hello world"], [:send, :puts, 1, nil, 8, 0], [..., Console: ["YARVInstructionSequence/SimpleDataFormat",, 1,, 2,, 1,, {:arg_size=>0, :local_size=>1, :stack_max=>2},, "<compiled>",, "<compiled>",, nil,, 1,, :top,, [],, 0,, [],, [1,, [:trace, ...
<al2o3cr> ... 1],, [:putself],, [:putstring, "hello world"],, [...
<JonnieCache> tada
<banisterfiend`> lectrick: maglev does
IrishGringo has quit [Remote host closed the connection]
atmosx has quit [Ping timeout: 264 seconds]
Criztian has joined #ruby
<Xeago> JonnieCache: didn't know it was substitute, I always just searched in vim, and typed over it..
atmosx has joined #ruby
pskosinski has joined #ruby
datsik33 has quit [Ping timeout: 252 seconds]
<lectrick> banisterfiend`: is maglev still on 1.8.7 api?
datsik33 has joined #ruby
vlad_starkov has joined #ruby
Hugo-Boss has left #ruby [#ruby]
paul_andrew has quit [Ping timeout: 240 seconds]
geggam has quit [Read error: Connection reset by peer]
paul_andrew has joined #ruby
canton8 has joined #ruby
atmosx has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
<shevy> kjellski, you did not read the readme
kalleth has quit [Remote host closed the connection]
<shevy> kjellski, look into the content of the gem. you will find one example use require "addressable/uri"
insulator has quit [Changing host]
insulator has joined #ruby
insulator has joined #ruby
vlad_starkov has joined #ruby
mark_locklear has quit [Ping timeout: 252 seconds]
flagg0204 has quit [Quit: leaving]
ananthakumaran has quit [Quit: Leaving.]
rakunHo has joined #ruby
<kjellski> shevy: you're right, I didn't never needed to… sorry
<shevy> kjellski you can ungem a .gem file
<shevy> gem unpack add*.gem
Rochefort has quit [Remote host closed the connection]
<shevy> it has no addressable.rb file, which is the reason why require 'addressable' alone does not work
canton7 has quit [Ping timeout: 264 seconds]
<kjellski> shevy: okay, thanks, I will keep that in mind when something comes along again :)
<shevy> I am not sure why some gems don't have projectname.rb
kalleth has joined #ruby
flagg0204 has joined #ruby
Takehiro has quit [Remote host closed the connection]
<JonnieCache> addressable is a weird gem.
uris has joined #ruby
<JonnieCache> it generates a bazillion constants
Takehiro has joined #ruby
ph^ has joined #ruby
<shevy> hah
mark_locklear has joined #ruby
hoelzro|away is now known as hoelzro
insulator has quit [Quit: insulator]
Nisstyre_ has joined #ruby
bluenemo has quit [Remote host closed the connection]
Nisstyre_ is now known as Nisstyre
bluenemo has joined #ruby
Coolhand has quit [Read error: Connection reset by peer]
Moggle has quit [Ping timeout: 244 seconds]
<banisterfiend`> JonnieCache: whycome
sgmac has joined #ruby
SCommette has joined #ruby
heda has quit [Quit: heda]
will1000 has quit [Ping timeout: 246 seconds]
sgmac has left #ruby [#ruby]
iamjarvo has quit [Ping timeout: 246 seconds]
resure has quit [Remote host closed the connection]
rakunHo has quit [Remote host closed the connection]
Coolhand has joined #ruby
yshh has joined #ruby
<JonnieCache> banisterfiend`: it has a lot of hardcoded anyway, but i think it loops through some dataset and generates many constants at runtime
<JonnieCache> its to do with recognising unicode URIs
<JonnieCache> iirc
resure has joined #ruby
fantazo has joined #ruby
frogprince_mac has quit [Quit: Leaving...]
rakunHo has joined #ruby
rippa has joined #ruby
Tachyon__ has quit [Read error: Connection reset by peer]
Tachyon__ has joined #ruby
jprovazn is now known as jprovazn_away
jprovazn_away has quit [Quit: Leaving]
iamjarvo has joined #ruby
chussenot has joined #ruby
alec-c4 has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
paul_andrew has quit [Quit: leaving]
v0n has joined #ruby
<trooney> There's a ruby gem i once saw someone use... it allows you to drop from Webrick into an irb shell or somethign to that effect -- does anyone know this?
zommi has left #ruby [#ruby]
<JonnieCache> pry
<JonnieCache> this is amazing: http://i.imgur.com/b2feF.png
<JonnieCache> SO TRUE. not just for photography
<trooney> JonnieCache: thx!
<trooney> heh yah
answer_42 has joined #ruby
elico has joined #ruby
yasushi has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
pdtpatrick has joined #ruby
leoncamel has joined #ruby
dekroning has joined #ruby
<trooney> For DataMapper Class, how can I get all the defined properties?
dekronin1 has quit [Ping timeout: 246 seconds]
elux has joined #ruby
samflores has joined #ruby
theRoUS has quit [Ping timeout: 272 seconds]
Guest5516 has quit [Ping timeout: 248 seconds]
samflores has left #ruby [#ruby]
<JonnieCache> ask in the datamapper channel
<trooney> I am. Nobody home :)
yasushi has joined #ruby
Elico1 has quit [Ping timeout: 246 seconds]
<banisterfiend`> JonnieCache: does pry rock out your D. ?
darthdeus has quit [Quit: Linkinus - http://linkinus.com]
znake has joined #ruby
Jay_Levitt has joined #ruby
znake has quit [Remote host closed the connection]
sagax has joined #ruby
Elico1 has joined #ruby
<trooney> pry is pretty cool.
larissa has quit [Quit: Leaving]
joofsh has joined #ruby
frogprince_mac has joined #ruby
darthdeus has joined #ruby
madcat has joined #ruby
madcat has quit [Client Quit]
madcat has joined #ruby
iamjarvo has quit [Ping timeout: 244 seconds]
thunderstrike has quit [Read error: Connection reset by peer]
madcat has quit [Client Quit]
bambanx has joined #ruby
thunderstrike has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
bambanx has quit [Client Quit]
bambanx has joined #ruby
Guest5516 has joined #ruby
chimay has quit [Quit: WeeChat 0.3.9-rc1]
johnjohnson has quit []
mahmoudimus has joined #ruby
chimay has joined #ruby
chimay has quit [Changing host]
chimay has joined #ruby
<banisterfiend`> damnit was trying to get JonnieCache to say something crude, but he has too much self respect
eins11 has quit [Quit: Verlassend]
headius has joined #ruby
matrixise has quit [Read error: Operation timed out]
jrist is now known as jrist-brb
heisenmink has joined #ruby
fearoffish has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
emmanuelux has joined #ruby
qwerxy has quit [Read error: Connection reset by peer]
sonkei has joined #ruby
Synthead has joined #ruby
qwerxy has joined #ruby
alek_b has joined #ruby
cantonic has joined #ruby
savage- has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
foolove has joined #ruby
darthdeus has quit [Quit: Leaving...]
fearoffish has joined #ruby
<JonnieCache> i wasnt here
<JonnieCache> plus i dont know what "rock out your D means"
<JonnieCache> if D stands for dick it still doesnt make sense to me :)
<foolove> i type ocra script.rb username password my.csv <---- these are the parameters to my script but my error complains about the username parameter and my script is not compiling
bbttxu has quit [Quit: bbttxu]
Nisstyre has quit [Remote host closed the connection]
maesbn has quit [Remote host closed the connection]
<banisterfiend`> JonnieCache: it means cause an erection of the male genitalia
clj_newb has joined #ruby
hoelzro is now known as hoelzro|away
<JonnieCache> ive heard of "object sexuality" where people are sexually attracted to inanimate objects
lolmaus has quit []
<JonnieCache> but ive never heard of people being sexually attracted to conceptual entities like REPLs
<JonnieCache> that would be deeply confusing and problematic i think
<JonnieCache> at least if you fetishize a desk or a door you can quite easily do something about it
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<banisterfiend`> JonnieCache: i just write erotic fiction about it
<JonnieCache> haha oh god
<trooney> lol
canton8 has quit [Remote host closed the connection]
<JonnieCache> i bet that exists
<JonnieCache> in quantity
canton8 has joined #ruby
canton8 has quit [Remote host closed the connection]
<banisterfiend`> 'as i typed `cd Class` i felt myself descend in deeper into ruby's object hierarchy, `cd Object`..and deeper still...before suddenly an `ls` revealed all the feminine mystery lurking at the heart, a vision i've lusted after for so long, finally naked before my eyes'
bradhe has joined #ruby
canton7 has joined #ruby
<banisterfiend`> 'instance variables quivering in expectation to be manipulated'
<JonnieCache> MAKE IT STOP
<banisterfiend`> 'methods blushing in my direction, wanting me to slot those final parameters in before invoking them into paroxysms of ecstacy'
<JonnieCache> ohh paroxysms thats a lot of scrabble points right there
stanzgy has quit [Ping timeout: 260 seconds]
davidcelis has quit [Quit: K-Lined.]
mneorr has quit [Quit: Leaving.]
<foolove> i type ocra script.rb username password my.csv <---- these are the parameters to my script but my error complains about the username parameter and my script is not compiling
aspiers has quit [Ping timeout: 252 seconds]
<canton7> foolove, without your script, it's kind of hard to say what's going on....
jakob-_ has joined #ruby
jobicoppola has joined #ruby
jakob-_ has quit [Client Quit]
<Xeago> banisterfiend`: do you need credit for that if I copy your lines?
<banisterfiend`> Xeago: haha wtf would you copy thoselines
<Xeago> tweet/document them
<Xeago> archive it
bwlang has joined #ruby
<banisterfiend`> go for it..
locriani has quit [Remote host closed the connection]
<Xeago> do you need credit?
<banisterfiend`> up to you if u want to credit me, i dont demand it ;)
aspiers has joined #ruby
<JonnieCache> banisterfiend`: my friend is the bpython dev you could collaborate on some slash fiction
johnjohnson has joined #ruby
<Xeago> a tweet's only 140chars long..
Elico1 has quit [Quit: Elico1]
baroquebobcat has joined #ruby
punkrawkR has joined #ruby
chrishunt has quit [Quit: Leaving...]
Elico1 has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
Elico1 has quit [Client Quit]
Elico1 has joined #ruby
nacengineer has quit [Quit: Leaving.]
tomzx has joined #ruby
<Xeago> banisterfiend`: mind continuing your novel :3?
<banisterfiend`> JonnieCache: haha
<banisterfiend`> JonnieCache: i've met your friend, he was doing ruby for a while
<banisterfiend`> and hung out here
<JonnieCache> not the person i know...
<banisterfiend`> JonnieCache: i also met a guy who worke don both the bpython and pry code bases ;) and said pry's was better :D
<banisterfiend`> JonnieCache: bob_f ?
<JonnieCache> yeah
becom33 has joined #ruby
locriani_ has joined #ruby
<banisterfiend`> bob_f was definitely here
<JonnieCache> when was he doing ruby?
<banisterfiend`> and he was learning ruby
<banisterfiend`> for a short while
<banisterfiend`> about 4-5 months ago
<banisterfiend`> i remember talking to him about it and bpython
<JonnieCache> ah right just learning it. i know he doesnt really use it at work
<becom33> its crazy in IT, we call cheating as hacking lol :P
<banisterfiend`> i think he had a small ruby project he had to learn it for
<JonnieCache> yeah that makes sense
<JonnieCache> i knew him for years and only recently found out he did bpython. didnt know how good a hacker he was
<banisterfiend`> yeah bpython is definitely popular
wobr has quit [Ping timeout: 260 seconds]
<JonnieCache> he is also stupidly good at the piano http://www.youtube.com/watch?v=OYcarKPFjR4&feature=plcp
<JonnieCache> the funny thing is he's amazing at melody and improvisation and theory and stuff but has no rhythm at all
<JonnieCache> he can barely clap his hands in time lol
hipertracker has quit [Quit: hipertracker]
cakehero has quit [Quit: Leaving...]
bbttxu has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
locriani_ has quit [Ping timeout: 244 seconds]
Monie has joined #ruby
<Xeago> banisterfiend`: I long for you to write more..
<Xeago> it's well written :D
lushious has quit [Ping timeout: 252 seconds]
codespectator has joined #ruby
adeponte has quit [Remote host closed the connection]
revans has joined #ruby
Dreamer3 has quit [Ping timeout: 244 seconds]
dhruvasagar has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
Dreamer3 has joined #ruby
<trooney> style looks familiar, too... did you write twilight?
rakunHo has quit [Remote host closed the connection]
dekroning has quit [Ping timeout: 256 seconds]
darthdeus has joined #ruby
Free563 has joined #ruby
duracrisis has joined #ruby
CarlB_th_ has joined #ruby
mneorr has joined #ruby
pricees has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
joofsh has quit [Ping timeout: 245 seconds]
CarlB_the_great has quit [Ping timeout: 246 seconds]
mneorr has quit [Client Quit]
joephelius has joined #ruby
cantonic has quit [Quit: cantonic]
gregorg has joined #ruby
gregorg has quit [Changing host]
gregorg has joined #ruby
pricees has joined #ruby
<JonnieCache> did you know 50 shades of grey started life as twilight fanfic?
<JonnieCache> and you thought it couldnt get any lamer
jiphex has quit [Quit: Leaving]
ben_m has joined #ruby
mneorr has joined #ruby
eldariof has quit [Ping timeout: 244 seconds]
tcopp has quit [Quit: Lost terminal]
nacengineer has joined #ruby
Goles has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
karakedi has joined #ruby
resure is now known as resure|programmi
resure|programmi is now known as resure|coding
<banisterfiend`> JonnieCache: yeah, crazy
kaushik_ has joined #ruby
blazes816 has joined #ruby
jakob- has joined #ruby
yshh has quit [Remote host closed the connection]
GuidovanPossum has joined #ruby
pricees has quit [Ping timeout: 272 seconds]
jorge_ has joined #ruby
mikepack has joined #ruby
<libryder> trying to explain to a colleague why it's a bad idea to put has_many attributes on the model it belongs to, ending up with one flat table that represents 5 different classes
pricees has joined #ruby
ss0 has joined #ruby
<trooney> If I have Hash A and Hash B, what's the best way to make a new Hash C that contains all the values of B where B and A contain the same key?
ss0 has left #ruby [#ruby]
Morkel has quit [Quit: Morkel]
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
<JonnieCache> i think theres Hash#intersection or something like that
<JonnieCache> look in the docs
karakedi has quit [Ping timeout: 246 seconds]
<trooney> Cool. Thx.
<JonnieCache> theres definitely a method on hash or enumerable that does that kind of thing
bradhe has quit [Remote host closed the connection]
<JonnieCache> >> {:a => 1, :b => 2} - {:a => 1}
<al2o3cr> -e:1:in `eval': undefined method `-' for {:a=>1, :b=>2}:Hash (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<JonnieCache> >> {:a => 1, :b => 2} | {:a => 1}
<al2o3cr> -e:1:in `eval': undefined method `|' for {:a=>1, :b=>2}:Hash (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<JonnieCache> hmmmm
jakob- has quit [Ping timeout: 264 seconds]
karakedi has joined #ruby
<JonnieCache> >> {:a => 1, :b => 2} % {:a => 1}
<al2o3cr> -e:1:in `eval': undefined method `%' for {:a=>1, :b=>2}:Hash (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
beiter has quit [Quit: beiter]
BigFatFatty has joined #ruby
rippa has quit [Ping timeout: 244 seconds]
wuzzzzaah has quit [Quit: wuzzzzaah]
jakob-_ has joined #ruby
robotmay has quit [Remote host closed the connection]
datsik33 has quit [Quit: Leaving]
mklappstuhl has quit [Ping timeout: 246 seconds]
<Xeago> rofl: "Duration: 39 sec, Finished: about a minute from now"
cpasmoi has joined #ruby
<cpasmoi> hi
jrist-brb is now known as jrist
will1000 has joined #ruby
headius has quit [Quit: headius]
<enroxorz-work> Anyone here good with XPath?
<Xeago> xml, yuck
<enroxorz-work> not even, HTML XPath
<trooney> JonnieCache: Seems not to be a direct way, eh?
Takehiro has quit [Remote host closed the connection]
mr_dynamix has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
Xeago_ has joined #ruby
triptec has quit [Quit: triptec]
<Muz> enroxorz-work: what're you trying to do?
<Mon_Ouie> other.keys.each { |h| h.delete k }
Xeago_ has quit [Remote host closed the connection]
clj_newb has quit [Ping timeout: 268 seconds]
<enroxorz-work> Muz: let me uplaod the HTML sample. Can I PM you when it is up?
rippa has joined #ruby
<JonnieCache> or b.select {|k,v| a.include? k}
<JonnieCache> but Mon_Ouies is more efficient
<Muz> enroxorz-work: no, you can post it publically to the channel.
<Muz> I'm sure I'm not the only person here who can do things with XPath.
gfontenot has joined #ruby
<enroxorz-work> okie dokie
pdtpatrick has joined #ruby
Xeago has quit [Ping timeout: 246 seconds]
Mr-LuCkY has joined #ruby
JustinCampbell has joined #ruby
<enroxorz-work> The situation is this. There is a link in the first cell that I have to click utilizing WATIR, but I cannot use the link method as I normally would (typically I can do a simple RegEx on the URL and get the right link from there, but this is missing it). The identifier for this link is in a cell two coloumns to the right (the date). How do I get access to the link utilizing the date?
<enroxorz-work> sorry for the long winded question
Mr-LuCkY has quit [Client Quit]
<JonnieCache> firebug can spit out xcode for elements on demand i think
matrixise has joined #ruby
chussenot has joined #ruby
<JonnieCache> but obviously the query it gives you isnt generic
<JonnieCache> oops xpath not xcode
IrishGringo has joined #ruby
Afal has joined #ruby
Ithrendil has joined #ruby
<enroxorz-work> JonnieCache: I am embarrased to admit that this site only works on IE, so access to firebug isnt necessarily easy :( (its a legacy site we have to maintain)
<JonnieCache> my comiserations
<enroxorz-work> wait
linoj has quit [Quit: linoj]
<JonnieCache> have you considered just directly interacting with the server?
<JonnieCache> making the requests in your own code rather than driving a browser
<enroxorz-work> cant. its a WATIR/Cucumber project for teh QAs
joephelius has quit [Ping timeout: 246 seconds]
<JonnieCache> oic
rouss_ has quit [Read error: Connection reset by peer]
<enroxorz-work> but i have an idea
<JonnieCache> heres an idea: tell the customer its going to cost thousands of dollars an hour for you to keep working on it
<JonnieCache> hey presto either you have thousands of dollars an hour, or you dont have to maintain cucumber scenarios for an IE only app anymore
<enroxorz-work> hah, i wish
<JonnieCache> let me guess its an internal tool for the company you work at?
<enroxorz-work> ;)
<enroxorz-work> this tool is old and out dated
robacarp has quit [Quit: leaving]
<enroxorz-work> BUT they dont want to get rid of it since the investment was so high (scoffs)
Afal has left #ruby [#ruby]
sonkei has quit [Quit: Computer has gone to sleep.]
<JonnieCache> write a document detailing exactly how much money is lost because of this tools lameness
<JonnieCache> preferably with pie charts
linoj has joined #ruby
<JonnieCache> give this to your boss.
Hugo-Boss has joined #ruby
davidcelis has joined #ruby
athit has quit [Ping timeout: 248 seconds]
<Hugo-Boss> i downloaded this ->ruby-1.9.3-p194-i386-mingw32
<Hugo-Boss> but dunno what to do after that ?
davidcelis has quit [Read error: Connection reset by peer]
<enroxorz-work> what are you trying to do Hugo-Boss?
chrishunt has joined #ruby
davidcelis has joined #ruby
<Hugo-Boss> enroxorz-work: i want start learning ruby i downloaded above file now i want to shoot up my notepad++ then start to programming
<Hugo-Boss> but dunno where to i can compile it
<enroxorz-work> what OS Hugo-Boss?
<Hugo-Boss> win 7
rouss_ has joined #ruby
<enroxorz-work> ok, and did you install it? also, have you downloaded the devkit? if not, download and install that as well for certain gems.
yxhuvud has joined #ruby
khakimov has joined #ruby
jenrzzz has joined #ruby
alvaro_o has joined #ruby
jlogsdon has joined #ruby
<Hugo-Boss> enroxorz-work: it is too confusing to me any window installer in market
<enroxorz-work> oh god yes
<enroxorz-work> make your life easier bro
<Hugo-Boss> : )
<enroxorz-work> after isntalling the main ruby exe, look at Addons, and install the devkit as well. After that, it should be smooth sailing.
shadoi has joined #ruby
<Hugo-Boss> i see i will do after downloading
<Hugo-Boss> thanks for your help enroxorz-work
<enroxorz-work> NP. If you have any questions, youre eat the right place.
Elico1 has quit [Quit: Elico1]
nicoulaj has joined #ruby
<Hugo-Boss> eat ?
<enroxorz-work> at. damn my keyboard!
<Hugo-Boss> oh at : )
<Hugo-Boss> enroxorz-work: where are you from ?
Tref has joined #ruby
hugo has joined #ruby
<enroxorz-work> Hugo-Boss: I come from the land of ice and snow, From the midnight sun where the hot springs blow...
<Hugo-Boss> np :) but i like your suggestion "enroxorz-work>make your life easier bro" you read my mind :)
hugo is now known as Guest23829
<Hugo-Boss> Norway ?
Guest23829 has quit [Client Quit]
<enroxorz-work> nah, i just like zeppelin. i havent seen snow since i was a kid.
<Hugo-Boss> Greenland :D
okunnig has joined #ruby
<enroxorz-work> way farther south, and more to your west...
<Hugo-Boss> no Bhutan
<enroxorz-work> florida
<Hugo-Boss> aa one more guess
<Hugo-Boss> lol
<bnagy> Bhutan???
s1n4 has joined #ruby
eroc has joined #ruby
<Hugo-Boss> meet too i never seen snow falling in my life
<Hugo-Boss> bnagy: bhutan yes very small place
<bnagy> I know exactly where it is :)
<bnagy> just nowhere near norway / greenland or the midnight sun
<Hugo-Boss> buddhist place
<banisterfiend`> Hugo-Boss: snow is falling right now
adeponte has joined #ruby
rcloak has joined #ruby
<Hugo-Boss> banisterfiend`: xD don't fire my emotions :P
Virunga is now known as O123456789
<bnagy> bhutan is about 400km east of me, at a guess
sepp2k1 has joined #ruby
<Hugo-Boss> brb
Chryson has joined #ruby
sepp2k has quit [Ping timeout: 276 seconds]
<bnagy> 427 according to the internet
c0rn_ has joined #ruby
CodeFriar has quit [Quit: Linkinus - http://linkinus.com]
O123456789 is now known as LennyLinux
geggam has joined #ruby
sonkei has joined #ruby
lyaunzbe has joined #ruby
x77686d has joined #ruby
leoncamel has quit [Ping timeout: 268 seconds]
<JonnieCache> bhutan is supposedly the nicest place in the world
<lyaunzbe> hello guys, quick question, is there an equivalent to python's dir method, which would give me a list/array of an object's methods?
stkowski has joined #ruby
<JonnieCache> the king of bhutan declared that the primary goal of the economy is not GDP, but national happiness
<davidcelis> lyaunzbe: .methods
<davidcelis> lyaunzbe: or .instance_methods
<lyaunzbe> thanks mate
<JonnieCache> they had no TV or cars until like 10 years ago. apparently its gone downhill since then
xorigin has quit [Quit: leaving]
Tachyx has joined #ruby
<GuidovanPossum> I just saw this a project about Bhutan recently: http://balloonsofbhutan.org/
<okunnig> What is the best way to register a class when it's loaded? I did it like this: http://pastie.org/private/98elf6yfqy9qmyd6yxsxw
<GuidovanPossum> I found it to be an interesting survey of Gross Domestic Happiness
ori-l-away is now known as ori-l
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
failshell has joined #ruby
<JonnieCache> our politicians in the UK talked about measuring gross domestic happniess a lot
<failshell> hello. how do i convert a string into a time interval? i get the error: sleep': can't convert String into time interval (TypeError)
<JonnieCache> but it was just to get elected :(
<failshell> google isnt helping me here
Takehiro has joined #ruby
<JonnieCache> failshell: convert a string to an integer with to_i
<JonnieCache> >> sleep("1".to_i)
<al2o3cr> (Fixnum) 1
joofsh has joined #ruby
emmanuelux has quit [Remote host closed the connection]
Tachyon__ has quit [Ping timeout: 255 seconds]
<JonnieCache> obviously that will go wrong if your string isnt just a number like that
<failshell> JonnieCache: thanks!
x77686d has quit [Quit: x77686d]
<failshell> ah damn
<failshell> i was mixing python syntax
<failshell> like int(foo)
<JonnieCache> failshell: you can do that in ruby too
<failshell> didnt work
codespectator has quit [Ping timeout: 244 seconds]
mahmoudimus has joined #ruby
<JonnieCache> >> Integer("1")
<al2o3cr> (Fixnum) 1
<JonnieCache> the same as...
<JonnieCache> >> Integer.new("1")
<al2o3cr> -e:1:in `eval': undefined method `new' for Integer:Class (NoMethodError), from -e:1:in `eval', from -e:1:in `<main>'
<JonnieCache> oops no its not :)
<failshell> undefined method `int' for main:Object (NoMethodError)
<failshell> anyway. on to the next bug hehe
<blazes816> JonnieCache: Integer has no initialize because they're singletons
apok has joined #ruby
<JonnieCache> ahhhh of course
<JonnieCache> theyre not singletons theres a proper name for the classes that act like that
<JonnieCache> integers symbols etc
<bnagy> immediates
jenrzzz has quit [Ping timeout: 240 seconds]
<JonnieCache> thats the one
tcopp has joined #ruby
Takehiro has quit [Ping timeout: 240 seconds]
shevy has quit [Read error: Operation timed out]
apok_ has joined #ruby
frogprince_mac has quit [Quit: Leaving...]
maletor has joined #ruby
BiHi has quit [Quit: Computer has gone to sleep]
jgrevich has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
mascool has joined #ruby
kvirani has quit [Remote host closed the connection]
apok has quit [Ping timeout: 244 seconds]
apok_ is now known as apok
mahmoudimus has joined #ruby
<Hanmac> oh no ... timeout is shevy-picking :(
karakedi has quit [Ping timeout: 246 seconds]
kenichi has joined #ruby
<Hugo-Boss> bnagy: Bhutan is lil 600 KM away from my side
Moggle has joined #ruby
arkiver has joined #ruby
rouss_ has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
minijupe has joined #ruby
arkiver has quit [Client Quit]
iamjarvo has quit [Read error: Connection reset by peer]
codespectator has joined #ruby
g33k has joined #ruby
sneakyness_wk has joined #ruby
jorge_ has quit [Remote host closed the connection]
dekhaus has joined #ruby
bradhe has quit [Remote host closed the connection]
frogprince_mac has joined #ruby
<dekhaus> Hi All. I need access to every printable character - or to put it another way - how can i easily generate an array that contains all printable characters ? Thx
Chryson has quit [Ping timeout: 260 seconds]
verto|off is now known as verto
shevy has joined #ruby
chussenot has quit [Remote host closed the connection]
<GuidovanPossum> ASCII loop
chussenot has joined #ruby
apok has quit [Remote host closed the connection]
<dekhaus> GuidovanPossum - can you be more specific please ?
sonkei has quit [Quit: Computer has gone to sleep.]
jgrevich_ has joined #ruby
Nisstyre_ has joined #ruby
headius has joined #ruby
jgrevich has quit [Ping timeout: 246 seconds]
jgrevich_ is now known as jgrevich
<dekhaus> never mind - figured it out. thx
dekhaus has quit [Quit: dekhaus]
chussenot_ has joined #ruby
elaptics is now known as elaptics`away
kjellski has quit [Quit: This computer has gone to sleep]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
eldariof has joined #ruby
bricker88 has joined #ruby
ori-l is now known as ori-l-away
<Hugo-Boss> any free domain site for ruby hosting ?
c0rn_ has quit []
snuglepuss has joined #ruby
mmitchell has quit [Remote host closed the connection]
geggam has quit [Remote host closed the connection]
<failshell> github
chussenot has quit [Ping timeout: 246 seconds]
chussenot_ is now known as chussenot
c0rn_ has joined #ruby
Criztian has quit [Ping timeout: 240 seconds]
adamkittelson has joined #ruby
<enroxorz-work> Hugo-Boss: try using heroku. for dev testing its great.
areil has quit [Remote host closed the connection]
voodoofish430 has joined #ruby
c0rn_ has quit [Ping timeout: 252 seconds]
<Hugo-Boss> both sites are looking awesome thanks for sharing ( :
chussenot has quit [Quit: chussenot]
nateberkopec has joined #ruby
<Hanmac> Hugo-Boss: another site: bitbucket ... its similar to github
<Mon_Ouie> Github is just for hosting source code, not to run your Ruby code on the server
paul_and1ew has joined #ruby
beneggett has joined #ruby
Criztian has joined #ruby
<minijupe> can I add class methods to a class through a module?
<fearoffish> extend
<minijupe> fearoffish: that for me?
<fearoffish> yep
kn330 has joined #ruby
<fearoffish> include is for instance methods, extend is for class
<Hanmac> you could extend to other objects too, but this is a different story
cj3kim has quit [Quit: This computer has gone to sleep]
griotspeak has joined #ruby
stkowski has quit [Quit: stkowski]
stkowski has joined #ruby
Free563 has quit [Quit: Computer has gone to sleep.]
adeponte has quit [Remote host closed the connection]
adeponte has joined #ruby
<griotspeak> does anyone know of a good way to set metadata on a file in ruby?
GuidovanPossum has left #ruby [#ruby]
yasushi has quit [Remote host closed the connection]
c0rn_ has joined #ruby
x77686d has joined #ruby
ori-l-away is now known as ori-l
echobravo has quit [Quit: Pull the pin and count to what?]
wobr has joined #ruby
g33k has quit [Quit: Leaving]
c0rn_ has quit [Ping timeout: 240 seconds]
<theRoUS> ruby 1.8.7. does anyone know of a good/better way to consolidate sequences in an array into ranges? i have this: https://gist.github.com/3656728 but i'm not perfectly happy with it -- it was a quick hack
stephenjudkins has joined #ruby
aristidesfl has quit []
kvirani has joined #ruby
Nisstyre_ is now known as Nisstyre
lushious has joined #ruby
ttilley has quit [Quit: ttilley]
wobr has quit [Client Quit]
samflores has joined #ruby
wobr has joined #ruby
samflores has left #ruby [#ruby]
andrewpthorp has joined #ruby
c0rn_ has joined #ruby
wobr has quit [Ping timeout: 268 seconds]
pskosinski has quit [Quit: http://www.redeclipse.net -- Fast-paced online FPS]
jenrzzz has joined #ruby
minijupe has quit [Quit: minijupe]
answer_42 has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
diegoviola has joined #ruby
answer_42 has joined #ruby
luxurymode has joined #ruby
Takehiro has joined #ruby
dekroning has joined #ruby
ori-l is now known as ori-l-away
kn330 has quit [Ping timeout: 264 seconds]
altamic has joined #ruby
x77686d has quit [Ping timeout: 268 seconds]
Takehiro has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
kn330 has joined #ruby
RegEchse has quit [Ping timeout: 265 seconds]
groupcat is now known as mrmist
sterex has joined #ruby
horofox has quit [Quit: horofox]
failshell has quit [Quit: leaving]
pu22l3r has joined #ruby
pu22l3r has quit [Remote host closed the connection]
foolove has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
pu22l3r has joined #ruby
horofox has joined #ruby
trebaum has joined #ruby
trebaum has quit [Changing host]
trebaum has joined #ruby
thaz has joined #ruby
sonkei has joined #ruby
pricees has quit [Quit: leaving]
lushious has quit [Ping timeout: 252 seconds]
RegEchse has joined #ruby
robotmay has joined #ruby
<okunnig> What is the best way to register a class when it's loaded? I did it like this: http://pastie.org/private/98elf6yfqy9qmyd6yxsxw
<Paradox> okunnig, that looks fine, although its a bit inefficient
knightblader has joined #ruby
arturaz has quit [Remote host closed the connection]
<okunnig> Paradox: okay, but what the alternative?
<okunnig> what's
<Paradox> i cant think of one off the top of my head
manizzle has quit [Ping timeout: 252 seconds]
<okunnig> Paradox: me neither
locriani has quit [Remote host closed the connection]
Free563 has joined #ruby
x77686d has joined #ruby
<blazes816> why do you need to keep track of them all?
locriani has joined #ruby
<okunnig> Paradox: Maybe that all converters inherits from a BaseConverter. And in the def inherited(base) metod. I register the converter?
locriani has quit [Changing host]
locriani has joined #ruby
<okunnig> blazes816: because when the application starts. I would like to know what converters it's using
ori-l-away is now known as ori-l
v0n has quit [Ping timeout: 246 seconds]
Kneferilis has quit [Disconnected by services]
pu22l3r has quit [Ping timeout: 244 seconds]
Agis__ has quit [Quit: Agis__]
cakehero has joined #ruby
johnlcox has quit [Ping timeout: 244 seconds]
johnlcox has joined #ruby
krawchyk_ has joined #ruby
trebaum has quit [Quit: leaving]
horofox has quit [Quit: horofox]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
kn330 has quit [Ping timeout: 255 seconds]
krawchyk has quit [Ping timeout: 248 seconds]
rogeruiz has joined #ruby
sneakyness_wk has quit [Ping timeout: 268 seconds]
kn330 has joined #ruby
Markvilla has quit [Quit: Computer has gone to sleep.]
richwestcoast has joined #ruby
heisenmi_ has joined #ruby
sneakyness_wk has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
ladder4 has quit [Quit: Connection closed for inactivity]
mc0e1 has joined #ruby
peterpan has joined #ruby
lushious has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
mc0e has quit [Ping timeout: 248 seconds]
joofsh has quit [Ping timeout: 245 seconds]
CodeFriar has joined #ruby
heisenmink has quit [Ping timeout: 245 seconds]
ori-l is now known as ori-l-away
will1000 has quit [Ping timeout: 252 seconds]
v0n has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
chimay has quit [Quit: WeeChat 0.3.9-rc1]
heisenmi_ has quit [Remote host closed the connection]
heisenmink has joined #ruby
pskosinski has joined #ruby
kn330 has quit [Ping timeout: 252 seconds]
thunderstrike has quit [Read error: Connection reset by peer]
eldar has joined #ruby
thunderstrike has joined #ruby
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
alibama has joined #ruby
kn330 has joined #ruby
<alibama> hi all = having a time getting vagrant installed on fedora 17
h4mz1d has joined #ruby
<alibama> ruby packaging for f17 seems to be the culprit
<alibama> has anyone seen this?
Dreamer3 has quit [Ping timeout: 272 seconds]
<alibama> i'm getting errors about installing dev tools, but they've already been installed
artOfWar has joined #ruby
headius has quit [Quit: headius]
sonkei has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
<alibama> You have to install development tools first.
trebaum has joined #ruby
trebaum has quit [Changing host]
trebaum has joined #ruby
<alibama> ugh, that didn't come out right
eldariof has quit [Ping timeout: 244 seconds]
trebaum has quit [Client Quit]
<alibama> usr/share/ruby/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
<alibama> and then the "you have to install dev tools…" but i've got ruby-devel in stalled
<banisterfiend`> JonnieCache: man it must be crazy being a geologist
_md has joined #ruby
<alibama> anyhow, the vagrant folks sent me this way…
ckrailo has joined #ruby
<banisterfiend`> JonnieCache: even the very shortest time scales they deal with (like 100K years) outstrip the length of entire human civilization not to mention their own lifespan by thousands of times
krawchyk_ has joined #ruby
<alibama> am betting i can get someone here to send me to fedora, but I'm hoping there's someone around who has some experience with this :) :)
<banisterfiend`> JonnieCache: could be because im high, but it's a eerie thought
<banisterfiend`> an*
lushious has quit [Ping timeout: 252 seconds]
_md has quit [Client Quit]
spinagon has joined #ruby
lyaunzbe has quit [Remote host closed the connection]
alienvenom has quit [Ping timeout: 244 seconds]
ori-l-away is now known as ori-l
savage- has quit [Ping timeout: 246 seconds]
blazes816 has quit [Quit: blazes816]
baphled has quit [Ping timeout: 264 seconds]
rippa has quit [Ping timeout: 245 seconds]
<alibama> anyone here working on fedora 17?
indian has joined #ruby
indian has quit [Changing host]
indian has joined #ruby
deryl has joined #ruby
savage- has joined #ruby
<alibama> basically can't seem to install any gems using sudo gem install __package___
aldodelgado has joined #ruby
rcloak has quit [Quit: rcloak]
k-bopper has joined #ruby
qwerxy has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
<k-bopper> new to ruby, I have this regex: %r{templates/.+\.html} and I want it to ignore files that start with ".#" like ".#file.html"
sonkei has quit [Quit: Computer has gone to sleep.]
joofsh has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
<ben_m> That example starts with a dot
<ben_m> Oh, nevermind
tdelam has quit [Remote host closed the connection]
<ben_m> Didn't see the dot in the first string
<Mon_Ouie> You could require the beginning to be ([^.]|\.[^#])
baphled has joined #ruby
<rogeruiz> wouldn't this work? ([^\.\#].*\.html)
<Mon_Ouie> rogeruiz: That wouldn't match something that starts with a #, even if there's no . in front of it
alienvenom has joined #ruby
clj_newb has joined #ruby
macabre has joined #ruby
<k-bopper> Mon_Ouie: Thanks!
<rogeruiz> Mon_Quie: I see, your suggestion makes more sense. didn't see the pipe in there the first time
k-bopper has left #ruby [#ruby]
macabre has left #ruby [#ruby]
atmosx has joined #ruby
baphled has quit [Ping timeout: 264 seconds]
baphled_ has joined #ruby
Hugo-Boss has left #ruby [#ruby]
Moggle has quit [Ping timeout: 276 seconds]
tomzx has quit [Ping timeout: 244 seconds]
Takehiro has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
Axsuul has joined #ruby
baphled_ has quit [Ping timeout: 252 seconds]
baphled has joined #ruby
altamic has quit [Ping timeout: 246 seconds]
mk03 has joined #ruby
Russell^^ has joined #ruby
jorge_ has joined #ruby
LBRapid has quit [Quit: Farewell.]
Zespre_ has quit [Ping timeout: 248 seconds]
Takehiro has quit [Ping timeout: 240 seconds]
okunnig has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
Zespre has joined #ruby
tomzx has joined #ruby
baphled has quit [Ping timeout: 264 seconds]
doomMonkey has quit [Ping timeout: 252 seconds]
pskosinski has quit [Ping timeout: 246 seconds]
ben_m has quit [Quit: Leaving]
johnlcox has quit [Quit: Computer has gone to sleep.]
<atmosx> anyone used TweetStream gem? I wonder if I have to somehow handle the backoff for .track function or I don't need to be bothered since the connection stays up forever
altamic has joined #ruby
altamic has quit [Changing host]
altamic has joined #ruby
heisenmink has quit [Remote host closed the connection]
<alibama> so i was able to gem install bundlre
<alibama> er bundler
<alibama> so it's not that all gem installs are busted
<alibama> just the ones i need :)
asklov has joined #ruby
krawchyk has joined #ruby
mneorr has quit [Quit: Leaving.]
johnlcox has joined #ruby
<alibama> for all those interested here's the make out file http://pastebin.com/pDyLTQkM
aldodelgado has quit [Quit: aldodelgado]
stkowski has quit [Quit: stkowski]
x77686d_ has joined #ruby
Free563 has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
x77686d has quit [Ping timeout: 240 seconds]
x77686d_ is now known as x77686d
clj_newb has quit [Ping timeout: 252 seconds]
billiam has joined #ruby
resure|coding has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
uris has quit [Read error: Connection reset by peer]
headius has joined #ruby
pskosinski has joined #ruby
locriani has quit [Remote host closed the connection]
luxurymode has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
uris has joined #ruby
keppy has joined #ruby
qwerxy has joined #ruby
bambanx_ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
ori-l is now known as ori-l-away
qwerxy has quit [Client Quit]
Dreamer3 has quit [Ping timeout: 244 seconds]
DrShoggoth has joined #ruby
eniolopes has joined #ruby
bambanx has quit [Ping timeout: 248 seconds]
juarlex has joined #ruby
doomMonkey has joined #ruby
wmoxam_ has quit [Quit: leaving]
stephenjudkins has quit [Quit: stephenjudkins]
darthdeu has joined #ruby
asklov has quit [Quit: Changing server]
sneakyness_wk has quit [Quit: tato]
vinicius has joined #ruby
vinicius is now known as asklov
blazes816 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
qwerxy has joined #ruby
hadees has joined #ruby
darthdeus has quit [Ping timeout: 246 seconds]
tigris_ has joined #ruby
<tigris_> hi guys, i'm using Net::FTP and getting quite a few #<IOError: stream closed>, wondering if anyone would be able to point me in the right step to debugging
becom33 has quit [Ping timeout: 252 seconds]
becom33 has joined #ruby
lushious has joined #ruby
jarred has joined #ruby
xorgnak has quit [Remote host closed the connection]
tcopp has left #ruby [#ruby]
schaerli has joined #ruby
xorgnak has joined #ruby
jgrevich_ has joined #ruby
ori-l-away is now known as ori-l
jgrevich has quit [Ping timeout: 252 seconds]
jgrevich_ is now known as jgrevich
xorgnak has quit [Remote host closed the connection]
lushious has quit [Ping timeout: 252 seconds]
xorgnak has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
beneggett has joined #ruby
specialGuest has joined #ruby
sambio has quit [Ping timeout: 240 seconds]
specialGuest has quit [Changing host]
specialGuest has joined #ruby
<atmosx> tigris_: ruby -d program.rb is a very good start
xorgnak has quit [Remote host closed the connection]
ttilley has joined #ruby
xorgnak has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
Criztian has quit [Ping timeout: 240 seconds]
athit has joined #ruby
stephenjudkins has joined #ruby
xorgnak has quit [Remote host closed the connection]
<Azure> So, I was looking at loading a logfile and reading it as a string, vs reading each line from the file separately.
Criztian has joined #ruby
<Azure> http://pastie.org/4675812 Intel Core i5 2410M @ 2.30GHz, 8.00 GB Dual-Channel DDR3 @ 665MHz
saschagehlich has quit [Quit: saschagehlich]
bambanx_ has quit [Read error: Connection reset by peer]
alibama has quit [Remote host closed the connection]
ori-l is now known as ori-l-away
alibama has joined #ruby
qwerxy has quit [Quit: offski]
baphled has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
Free563 has joined #ruby
becom33 has quit [Quit: Leaving]
jorge_ has quit [Remote host closed the connection]
ori-l-away is now known as ori-l
savage- has quit [Remote host closed the connection]
CoverSlide has quit [Ping timeout: 240 seconds]
headius has quit [Quit: headius]
altamic has quit [Remote host closed the connection]
Takehiro has joined #ruby
pricees has joined #ruby
krawchyk has quit [Remote host closed the connection]
krawchyk has joined #ruby
minijupe has joined #ruby
<Azure> (speccy seems to be detecting my ram speed weird.)
paul_and1ew has quit [Quit: leaving]
artm has quit [Quit: artm]
fantazo has quit [Remote host closed the connection]
nicoulaj has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 244 seconds]
<minijupe> how do I add class methods to a class via a module?
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
<Mon_Ouie> Module#extend
<Mon_Ouie> >> module Foo; def some_method; puts "method from a module!!!"; end; end; class Bar; extend Foo; end; Bar.some_method
<al2o3cr> (NilClass) nil, Console: method from a module!!!
epalm has joined #ruby
<Hanmac> minijupe didnt you asked it allready?
<Mon_Ouie> At least someone did
<epalm> i'm looking at http://docs.rubygems.org/read/chapter/10#page40 and i don't see a way to update a gem (rails, say) to a specific version. i want 3.2.6 but "gem update rails" is giving me 3.2.8
<epalm> any pointers?
<Mon_Ouie> And yeah, it was him
c0rn_ has joined #ruby
aristidesfl has joined #ruby
<Mon_Ouie> epalm: gem install rails --version=3.2.8
<epalm> what the...is that in the docs and i'm just blind?
jarred has quit [Quit: jarred]
<blazes816> gem install rails --version=3.2.6
<Mon_Ouie> It's in the docs, see gem help install
<Mon_Ouie> Oh yeah, got the number wrong, but still that syntax
<epalm> but i'm updating
cj3kim has quit [Quit: This computer has gone to sleep]
<blazes816> :p you correct me all the time. this was my only chance
<epalm> i should use 'install', not 'update'?
<blazes816> you aren't updating
<Mon_Ouie> updating is just a way of automatically installing the latest version
<blazes816> you're installing an older version
<epalm> argh. thanks
<blazes816> the old one will stay in place
locriani has quit [Ping timeout: 252 seconds]
<Mon_Ouie> I don't need to rush on the occasion, but: by default gem update will still keep older versions too :p
Guedes is now known as Guedes_out
xorgnak has joined #ruby
<Mon_Ouie> You can run gem clean if you want to remove them
<minijupe> Mon_Ouie: if I want to mixin a module and have some of the methods be class and some be instance methods, how should I do that?
headius has joined #ruby
<blazes816> ;_;
<Mon_Ouie> minijupe: You can't do that with a single module, you need one for instance methods and one for class methods
<Mon_Ouie> There's a common trick to make it appear as if there is only one module
levieraf has joined #ruby
<minijupe> Mon_Ouie: should I make module InstanceMehtods and module ClassMethods inside the main module?
nanderoo has quit [Remote host closed the connection]
cj3kim has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<Mon_Ouie> No, don't make an InstanceMethods module, that's silly; only make the ClassMethods one
gen0cide_ has joined #ruby
Nisstyre is now known as Nisstyre-laptop
<minijupe> Mon_Ouie: ok, then I do extend MainModule::ClassMethods ?
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
<Mon_Ouie> Yes, or you can use the Module#included hook to call it automatically
\13k has joined #ruby
Nisstyre has joined #ruby
Dreamer3 has joined #ruby
<minijupe> Mon_Ouie: where would I put that?
<Mon_Ouie> def self.included(by); …; end in the module
<minijupe> Mon_Ouie: thanks...
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
levieraf has quit [Quit: Saliendo]
artm has joined #ruby
Poapfel has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
thunderstrike has quit [Read error: Connection reset by peer]
Rikkit has joined #ruby
thunderstrike has joined #ruby
Guest5516 has quit [Ping timeout: 240 seconds]
artm has quit [Client Quit]
c0rn_ has joined #ruby
kaushik_ has quit [Ping timeout: 276 seconds]
<libryder> can someone point me to a resource on the problem with having unrelated attributes on a (db) model? as in, mixing attributes on a model to avoid creating several sub-models
vlad_starkov has quit [Ping timeout: 240 seconds]
manizzle has joined #ruby
<reactormonk> libryder: rails-related?
<libryder> not necessarily
<blazes816> ActiveRecord related?
<libryder> ORM related
xorgnak has quit [Remote host closed the connection]
<libryder> i guess it would apply to activerecord
mneorr has joined #ruby
c0rn_ has quit [Client Quit]
<blazes816> what problem are you referring to? are you having a specific issue or are you just looking for info about how to do it?
Rikkit has quit [Remote host closed the connection]
sneakyness_wk has joined #ruby
paul_andrew has joined #ruby
vlad_starkov has joined #ruby
<libryder> blazes816: i'm having a conversation with a colleague that is new to programming about it, and i'm having a hard time convincing him that attributes on a submodel should not go in the parent model
<reactormonk> libryder: STI n stuff?
<blazes816> why would they? unless they override. e.g. A#foo is a varchar column and B#foo is an integer
<blazes816> other than that, that's the point of inheritance. the child is inheriting properties from the parent
<libryder> blazes816: because according to him, it makes it easier to query
<blazes816> that's called denormalization and it's bad mmm'kay
<libryder> it is really a non-argument, i know, but i'm having trouble conveying the concepts
<blazes816> it's great for secondary data stores
<blazes816> but for a 'master' store no way jose
<blazes816> well, are you talking STI only? or multiple-table inheritance as well?
<blazes816> with STI it's all in one table so it doesn't really matter
<blazes816> with MTI unless the child's attr overrides the parent's type, having it in both tables will only lead to data corruption
Poapfel has joined #ruby
<libryder> i haven't considered STI; currently thinking polymorphism
artm has joined #ruby
linoj has quit [Quit: linoj]
<libryder> without any of the attributes: http://i48.tinypic.com/2ntuv6w.png
<libryder> so instead of having schedule_route and all the other route types, put all those attributes into the call_flows table
s1n4 has left #ruby ["leaving"]
<blazes816> yeah, so have Route model, and then SimpleRoute < Route, GeoRoute < Route, etc
<blazes816> or call it CallFlows, whatever
<blazes816> CallFlow*
spopescu has joined #ruby
<libryder> blazes816: so you think i should go the STI route rather than polymorphism?
<blazes816> in this particular case, it looks like it.
<libryder> i like that idea
<blazes816> a lot of people strongly dislike STI, but I do not
<libryder> i'll do some more reading on it
vlad_starkov has quit [Read error: Connection reset by peer]
<blazes816> in many cases it can be too constraining, but this looks like a classic case.
Free563 has quit [Quit: Computer has gone to sleep.]
<blazes816> then have callflows_options
<libryder> and each of the xxx_route would have_many xxx_options?
<libryder> oh i see
xorgnak has joined #ruby
<blazes816> has_many :callflows_options, :as => :options
jobicoppola has quit [Read error: Connection reset by peer]
<blazes816> has_many :route_options, :as => :options
<blazes816> whichever
<blazes816> but then you're down to 2 tables with all the data integrity (and them some!) of before
datsik33 has joined #ruby
cableray has joined #ruby
<libryder> yeah because xxx_options all have different attributes
<blazes816> ah
<blazes816> then polymorphism there
<blazes816> or MTI, but there's not much out there to support it. i have a half-working MTI gem somewhere but it's not stable yet
<libryder> can't i have ivr_route inherit from call_flows then ivr_route would has_many ivr_options?
Chryson has joined #ruby
sambio has joined #ruby
xorgnak has quit [Remote host closed the connection]
* Hanmac still think that this is not the right channel for activerecord stuff
<blazes816> it's data modeling
<libryder> i think it's pretty relevant to any ORM
jbw has quit [Ping timeout: 246 seconds]
<libryder> i guess not ruby-specific though
Morkel has joined #ruby
dpk has joined #ruby
<blazes816> the has_many ivr_options would need to be polymorhpic, but yeah
alibama_ has joined #ruby
alibama_ has quit [Client Quit]
wpaulson has joined #ruby
wpaulson has quit [Client Quit]
axl__ has joined #ruby
krawchyk has quit [Remote host closed the connection]
eldariof has joined #ruby
eldariof has quit [Client Quit]
alibama has quit [Ping timeout: 268 seconds]
krawchyk has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
eldar has quit [Ping timeout: 240 seconds]
jbw has joined #ruby
axl_ has quit [Ping timeout: 264 seconds]
axl__ is now known as axl_
deryl has quit [Quit: deryl]
alibama has joined #ruby
blazes816 has quit [Quit: blazes816]
Bosma has joined #ruby
athit has quit [Quit: leaving]
jbw has quit [Remote host closed the connection]
Nisstyre has quit [Quit: Leaving]
jenrzzz has joined #ruby
luckyruby has joined #ruby
luxurymode has joined #ruby
bwlang has left #ruby [#ruby]
c0rn_ has joined #ruby
elux has quit [Quit: Bye!]
ananthakumaran has quit [Quit: Leaving.]
robustus has quit [Ping timeout: 244 seconds]
atmosx has quit [Ping timeout: 244 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
tomzx has quit [Quit: tomzx]
tigris_ has left #ruby ["Leaving"]
eniolope_ has joined #ruby
krawchyk has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
chrishunt has quit [Quit: Leaving...]
atmosx has joined #ruby
macer1 has quit [Quit: ZNC - http://znc.in]
AlbireoX`Laptop has quit [Ping timeout: 245 seconds]
headius has quit [Quit: headius]
spinagon has quit [Ping timeout: 252 seconds]
eniolopes has quit [Ping timeout: 268 seconds]
ananthakumaran has joined #ruby
codeFiend has joined #ruby
timonv has quit [Remote host closed the connection]
Takehiro has joined #ruby
chrishunt has joined #ruby
krz has joined #ruby
chrishunt has quit [Client Quit]
echobravo has joined #ruby
frogprince_mac has quit [Quit: Leaving...]
LennyLinux is now known as IlPorco
stepnem has quit [Ping timeout: 264 seconds]
rogeruiz has quit [Remote host closed the connection]
JustinCampbell has quit [Remote host closed the connection]
bananagram has joined #ruby
IlPorco is now known as Pork
Pork is now known as O123456789
chrishunt has joined #ruby
rakm has quit [Read error: Connection reset by peer]
Takehiro has quit [Ping timeout: 246 seconds]
jarred has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.8]
O123456789 is now known as Shock
Shock is now known as Portos-
jlogsdon_ has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
epalm has quit [Quit: Leaving]
jlogsdon_ has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
porron has joined #ruby
porron has quit [Client Quit]
porron has joined #ruby
porron has quit [Read error: Connection reset by peer]
yxhuvud has quit [Read error: Connection reset by peer]
mark_locklear has quit [Read error: Connection reset by peer]
alec-c4 has quit [Remote host closed the connection]
alec-c4 has joined #ruby
Portos- is now known as Notte
jlogsdon has quit [Ping timeout: 240 seconds]
Nisstyre-laptop has quit [Quit: Leaving]
thaz has quit [Quit: thaz]
ttilley has quit [Quit: ttilley]
cakehero has joined #ruby
alec-c4 has quit [Read error: Operation timed out]
banisterfiend` has quit [Read error: Connection reset by peer]
richwestcoast has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
fmcgeough has quit [Quit: fmcgeough]
chrisja has joined #ruby
geekbri has quit [Remote host closed the connection]
<shevy> hmmm
rakm has joined #ruby
puchi23 has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
Notte is now known as Rutto
moted has quit [Remote host closed the connection]
knightblader has quit [Quit: leaving]
Rutto is now known as LennyLinux
AlbireoX has joined #ruby
moted has joined #ruby
jbw has joined #ruby
Morkel has quit [Quit: Morkel]
carloslopes has quit [Quit: Leaving.]
irc-user has joined #ruby
sneakyness_wk has quit [Quit: tato]
puchi23 has quit [Remote host closed the connection]
<irc-user> new to irc
atmosx has quit [Ping timeout: 240 seconds]
luxurymode has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Jamone has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
recycle has joined #ruby
maletor has joined #ruby
Monie has quit [Ping timeout: 245 seconds]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
Jamone has quit [Ping timeout: 244 seconds]
qwerxy has joined #ruby
chussenot has joined #ruby
adeponte has quit [Remote host closed the connection]
<fowl> irc-user: type /nick some_awesome_nickname to change your name
alibama has quit [Quit: alibama]
alec-c4 has joined #ruby
atmosx has joined #ruby
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
MasterIdler has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
MasterIdler has quit [Client Quit]
joofsh has quit [Ping timeout: 245 seconds]
axl_ has joined #ruby
thunderstrike has quit [Read error: Connection reset by peer]
thunderstrike has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
maletor has quit [Quit: Computer has gone to sleep.]
sneakyness_wk has joined #ruby
gfontenot has quit []
shinobi_one has joined #ruby
horofox has joined #ruby
recycle has quit [Remote host closed the connection]
etan|123321 has joined #ruby
Tref has quit [Quit: Tref]
fantazo has joined #ruby
gen0cide_ has quit [Ping timeout: 240 seconds]
h4mz1d has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
Nisstyre-laptop has joined #ruby
clj_newb has joined #ruby
vlad_sta_ has joined #ruby
atmosx has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Read error: No route to host]
eignerchris has joined #ruby
atmosx has joined #ruby
rins_ has quit [Ping timeout: 252 seconds]
GoGoGarrett has quit [Remote host closed the connection]
nwest has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
savage- has joined #ruby
radic has quit [Ping timeout: 252 seconds]
rubious has joined #ruby
<shinobi_one> could someone take a peek at this for me? http://pastebin.com/u8ytm94a
sonkei has joined #ruby
chendo_ has joined #ruby
faen has quit [Quit: faen]
spstarr has joined #ruby
spstarr has left #ruby ["Leaving"]
Takehiro has joined #ruby
faen has joined #ruby
<Mon_Ouie> shinobi_one: By putting the code to open the database in a method to call when you need it
chussenot_ has joined #ruby
<Mon_Ouie> Also, you should avoid global variables and class variables
awarner has quit [Remote host closed the connection]
khakimov has joined #ruby
theRoUS has quit [Ping timeout: 252 seconds]
jasmina87SA__ has joined #ruby
<Mon_Ouie> You could define a method to get the db like def db; @db ||= actually_open_the_db; end
<Mon_Ouie> And use that accessor instead of using @db (or @@db in your current code) directly
adeponte has joined #ruby
chussenot has quit [Ping timeout: 244 seconds]
chussenot_ is now known as chussenot
Takehiro has quit [Ping timeout: 246 seconds]
<shinobi_one> I don't see why I would need to avoid global variables in this situation, but I'll take that into consideration. As for defining a method to get the db. You mean in the global scope? or as a class method or instance method?
maletor has quit [Quit: Computer has gone to sleep.]
joschi has quit [Excess Flood]
<shinobi_one> i want the db variable available in both class and instance methods, that's why i made it a class variable
<Mon_Ouie> In your A class, as a class method in that case
<Mon_Ouie> You can still call methods on the current object's class — self.class.db
c0rn_ has quit [Quit: Computer has gone to sleep.]
<shinobi_one> i know, but it just seemed sexier to have it as a class variable, but i suppose that will not do and the class method is a better option
<shinobi_one> thanks
joschi has joined #ruby
c0rn_ has joined #ruby
spopescu has quit [Quit: Leaving]
<Mon_Ouie> Class variables are generally avoided in favor of class instance variables — mostly because of class variables being shared with all descendants
<shinobi_one> which is what i wanted :P
devsharpen has quit []
smittyjohansen has joined #ruby
aristidesfl has quit []
cakehero has quit [Ping timeout: 244 seconds]
radic has joined #ruby
<shinobi_one> is name a reserved object method?
Ugallu has quit [Quit: Gone Now.]
<shinobi_one> ah it appears so
<Mon_Ouie> It's not
<shinobi_one> try Integer.name
<Mon_Ouie> defined in a standard class != reserved
<shinobi_one> ah true
aristidesfl has joined #ruby
cakehero has joined #ruby
alanp has joined #ruby
<Mon_Ouie> Methods that *really* must not be overridden are those that start with __ (e.g. __send__)
<lupine_85> Mind you, overriding #send is also evil
<shinobi_one> ^
specialGuest has quit [Quit: WeeChat 0.3.8]
<lupine_85> We have one project where that happens, it bites me a lot
Ithrendil has quit [Quit: Quitte]
<shinobi_one> sometimes it really can accomplish a certain task >.<
<Mon_Ouie> There's another place where it happens… IO#send
<Mon_Ouie> Socket#send*
ChadStudmuffin has joined #ruby
ttilley has joined #ruby
chussenot has quit [Quit: chussenot]
recycle has joined #ruby
vlad_starkov has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
alanp_ has quit [Ping timeout: 240 seconds]
johnjohnson has quit []
maletor has joined #ruby
snorkdude has joined #ruby
jclem has quit [Quit: Leaving...]
<fowl> you dont often dynamically call methods on socket though
vlad_sta_ has quit [Ping timeout: 246 seconds]
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
<Mon_Ouie> Still, if you write code that can be called on any kind of Object, you should know to use __send__ instead of send (other case where it breaks: BasicObject)
radic has quit [Ping timeout: 252 seconds]
joshman_ has quit [Ping timeout: 268 seconds]
`vitoravelino is now known as vitoravelino
vitoravelino is now known as vitoravelino`afk
savage- has quit [Read error: Connection reset by peer]
savage- has joined #ruby
savage- has quit [Remote host closed the connection]
chussenot has joined #ruby
vitoravelino`afk is now known as vitoravelino
sambio has quit [Ping timeout: 246 seconds]
matrixise has quit [Ping timeout: 264 seconds]
radic has joined #ruby
alec-c4 has quit [Remote host closed the connection]
stkowski has joined #ruby
sambio has joined #ruby
chussenot has quit [Quit: chussenot]
Dr4g|afk is now known as Dr4g
Dr4g has quit [Changing host]
Dr4g has joined #ruby
Dr4g has joined #ruby
hsbt has quit [Ping timeout: 272 seconds]
keppy has quit [Ping timeout: 252 seconds]
johnjohnson has joined #ruby
recycle has quit [Remote host closed the connection]
bbttxu has quit [Quit: bbttxu]
kvirani has quit [Remote host closed the connection]
snorkdude has quit [Remote host closed the connection]
jgrevich has quit [Ping timeout: 272 seconds]
Ithrendil has joined #ruby
sambio_ has joined #ruby
headius has joined #ruby
h4mz1d has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
jgrevich has joined #ruby
jgrevich has quit [Client Quit]
slicekick has joined #ruby
codespectator has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
stopbit has quit [Quit: Leaving]
recycle has joined #ruby
billiam has quit [Read error: Connection reset by peer]
chendo_ has quit [Ping timeout: 240 seconds]
radic has quit [Ping timeout: 276 seconds]
stephenjudkins has joined #ruby
chendo_ has joined #ruby
zigomir has joined #ruby
Nisstyre-laptop has quit [Remote host closed the connection]
hsbt has joined #ruby
radic has joined #ruby
hadees has quit [Quit: hadees]
torarne1 has quit [Quit: Leaving.]
minijupe has quit [Quit: minijupe]
philcrissman has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
internet_user has quit [Remote host closed the connection]
zigomir has quit [Ping timeout: 245 seconds]
pricees has quit [Quit: leaving]
cascalheira has joined #ruby
bier has quit [Ping timeout: 248 seconds]
Criztian has quit [Remote host closed the connection]
slicekick has quit [Remote host closed the connection]
elijah has joined #ruby
DaniG2k has joined #ruby
<DaniG2k> holy cr@p
<DaniG2k> ruby just blew my mind...
workmad3 has quit [Ping timeout: 248 seconds]
<DaniG2k> 10000.times {puts ('1'..'z').to_a.shuffle[0..10].join}
<DaniG2k> that's the coolest password generator I've ever written :P
<DaniG2k> sorry guys I'm new to Ruby ^^
ephemerian has quit [Quit: Leaving.]
justinmcp has joined #ruby
cascalheira has quit [Read error: Connection reset by peer]
Tachyx has left #ruby ["."]
cascalheira has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
DaniG2k has quit [Quit: leaving]
<canton7> heh, I know that feeling :D
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
Takehiro has joined #ruby
bier has joined #ruby
cascalheira has quit [Read error: Connection reset by peer]
CarlB_th_ has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 246 seconds]
thunderstrike has quit [Remote host closed the connection]
<shevy> hehe
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
johnlcox has quit [Ping timeout: 240 seconds]
axl_ has quit [Quit: axl_]
paul_andrew has quit [Ping timeout: 272 seconds]
bananagram has quit [Ping timeout: 260 seconds]
Xeago has quit [Ping timeout: 248 seconds]
SCommette has quit [Quit: SCommette]
stkowski has quit [Quit: stkowski]
<irc-user> :fowl : thanks for the tip
<irc-user> fowl: I'm new to irc
adeponte has quit [Read error: Connection reset by peer]
eniolope_ has quit [Remote host closed the connection]
<irc-user> is there an irc command reference somewhere?
adeponte has joined #ruby
nari has joined #ruby
deryl has joined #ruby
c0rn_ has joined #ruby
ezra has quit [Ping timeout: 276 seconds]
wallerdev has joined #ruby
blazes816 has joined #ruby
uris has quit [Quit: leaving]
dagnachewa has joined #ruby
headius has quit [Quit: headius]
Agis__ has joined #ruby
<shinobi_one> i'm still bombing this.. so if i have a class instance variable @db = self.class.db defined in the initializer, and a class method self.db that returns @db ||= "set", does the class always have to reference that object by a call to self.db?
c0rn_ has quit [Client Quit]
radic has quit [Ping timeout: 245 seconds]
<irc-user> thank you!
irc-user has quit [Remote host closed the connection]
chrisja has quit [Quit: leaving]
bananagram has joined #ruby
atmosx has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Quit: Leaving...]
khakimov has quit [Quit: Computer has gone to sleep.]
jgarvey has quit [Quit: Leaving]
c0rn_ has joined #ruby
atmosx has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
eignerchris has quit [Remote host closed the connection]
datsik33 has quit [Quit: This computer has gone to sleep]
radic has joined #ruby
fbernier has quit [Ping timeout: 245 seconds]
Ithrendil has quit [Quit: Quitte]
h4mz1d has quit [Ping timeout: 276 seconds]
ori-l is now known as ori-l-away
recycle has quit [Remote host closed the connection]
Beoran_ has quit [Ping timeout: 264 seconds]
jpreyer has quit [Quit: Leaving...]
atmosx has quit [Ping timeout: 260 seconds]
fbernier has joined #ruby
Xeago has joined #ruby
Russell^^ has quit [Quit: Russell^^]
Tomasso has joined #ruby
mengu has quit [Remote host closed the connection]
root is now known as UdontKnow
recycle has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
stephenjudkins has quit [Quit: stephenjudkins]
pskosinski has quit [Ping timeout: 255 seconds]
ChadStudmuffin has quit [Ping timeout: 260 seconds]
BSaboia has joined #ruby
c0rn_ has joined #ruby
deryl has quit [Quit: Time To Go, Too Bad, So Sad!]
eroc has quit [Quit: eroc]
Beoran_ has joined #ruby
c0rn_ has quit [Client Quit]
gh has joined #ruby
clj_newb has quit [Ping timeout: 240 seconds]
qwerxy has quit [Quit: offski]
jenrzzz has quit [Ping timeout: 245 seconds]
stephenjudkins has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
BigFatFatty has left #ruby [#ruby]
[Neurotic] has joined #ruby
x77686d has quit [Ping timeout: 240 seconds]
ori-l-away is now known as ori-l
khakimov has joined #ruby
peterpan has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
freeayu has joined #ruby
<elijah> Can I ask a guard question in here?
<elijah> #guard is dead right now
emmanuelux has joined #ruby
rjsamson has joined #ruby
vlad_starkov has joined #ruby
<blazes816> pretty sure it is here too but give it a shot
<blazes816> (i've never used guard)
<elijah> I am a noob, I am just trying to get livereload working for web developement with Drupal - my question is --> Does there need to be a guardfile in every project directory or just $HOME, also does it matter if it is hidden or not (.guardfile vs guardfile) and is it case sensitive?
<elijah> blazes816: thanks
Xeago has quit [Remote host closed the connection]
<elijah> When I run guard in a directory I get an error no guardfile found please create one with guard init, it makes a non-hidden one
<elijah> When I copy it from home it works but I get an "error: invalid guardfile, original error is: no block given"
gh has quit [Quit: gh]
<elijah> I am not sure what blocks are?
vlad_starkov has quit [Ping timeout: 244 seconds]
etan|123321 is now known as etan
Takehiro has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
<elijah> Nonetheless, it appears guard is now watching my compass directory but that error bugs me
mneorr has quit [Quit: Leaving.]
sambio_ has quit [Quit: Saliendo]
sonkei has joined #ruby
sambio has quit [Remote host closed the connection]
luckyruby has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 252 seconds]
rgc` has joined #ruby
qwerxy has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
fbernier has quit [Ping timeout: 245 seconds]
sambio has joined #ruby
<blazes816> elijah: blocks are 'containers' of code. if(cond){ #this is the block area }; a.each{ #this is the block area }
<blazes816> somewhere you call a method and it expects you to pass a block, and you are not
kiyoura has joined #ruby
<blazes816> (and by you, it could very well be the lib or something)
cantonic has joined #ruby
<blazes816> is what I mean
<elijah> blazes816: thanks, can you take a look here --> https://gist.github.com/3661100#file_gistfile1.rb
<elijah> so curly braces are the blocks, there is only one in the guardfile