fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
peregrine81 has joined #ruby
LouisGB has quit []
mpereira has quit [Ping timeout: 240 seconds]
jasonkuhrt has joined #ruby
shadoi has quit [Quit: Leaving.]
65MAA7XCQ has joined #ruby
verto|off is now known as verto
savage- has quit [Ping timeout: 276 seconds]
williamherry has quit [Ping timeout: 265 seconds]
Pip has quit [Read error: Connection reset by peer]
davidcelis has quit [Quit: K-Lined.]
blazed has joined #ruby
peregrine81 has quit [Quit: Computer sleeping.]
daniel_hinojosa has quit [Ping timeout: 248 seconds]
richardcreme has quit [Read error: Connection reset by peer]
65MAA7XCQ has quit [Ping timeout: 246 seconds]
brianpWins has quit [Quit: brianpWins]
deryl has joined #ruby
ping-pong has joined #ruby
capsule_toy has joined #ruby
Banistergalaxy has joined #ruby
cbuxton has quit [Quit: Leaving.]
mpereira_ has joined #ruby
Erdos1 has quit [Ping timeout: 252 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
Erdos1 has joined #ruby
tommyvyo has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
chendo_ has quit [Quit: Leaving...]
jasonkuhrt has joined #ruby
Nisstyre_ has quit [Read error: Connection reset by peer]
Nisstyre_ has joined #ruby
verto is now known as verto|off
bricker88 has quit [Quit: Leaving.]
bradhe has joined #ruby
havenn has joined #ruby
bradhe has quit [Remote host closed the connection]
richardcreme has joined #ruby
skipper has joined #ruby
skipper has quit [Remote host closed the connection]
daniel_hinojosa has joined #ruby
blazed has quit [Ping timeout: 246 seconds]
ph^ has joined #ruby
ciopte7 has joined #ruby
blazes816 has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
jso has quit []
Erdos1 has left #ruby [#ruby]
sdwrage has quit [Quit: geekli.st/programmer]
ph^ has quit [Ping timeout: 246 seconds]
daniel_hinojosa has quit [Ping timeout: 264 seconds]
Banistergalaxy has quit [Ping timeout: 244 seconds]
Vert has quit [Read error: Connection reset by peer]
fyolnish has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
capsule_toy has quit []
jasonkuhrt has quit [Quit: Leaving...]
daniel_hinojosa has joined #ruby
freeayu has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
quest88 has joined #ruby
fyolnish has quit [Ping timeout: 245 seconds]
SegFaultAX|work2 has quit [Ping timeout: 244 seconds]
v0n has quit [Ping timeout: 246 seconds]
blazes816 has quit [Quit: This computer has gone to sleep]
linoj has quit [Quit: linoj]
slaytanic has joined #ruby
tds has quit [Quit: tds]
slaytanic has left #ruby [#ruby]
adamkittelson has quit [Remote host closed the connection]
stdev has quit [Remote host closed the connection]
deryl has quit [Quit: deryl]
edenc has joined #ruby
Takehiro has joined #ruby
mucker has joined #ruby
t19622 has quit [Remote host closed the connection]
rcloak has quit [Quit: rcloak]
t47631 has joined #ruby
jarred has joined #ruby
adeponte has quit [Remote host closed the connection]
richwestcoast has joined #ruby
mpereira_ has quit [Ping timeout: 264 seconds]
Takehiro has quit [Ping timeout: 248 seconds]
revolver has joined #ruby
SCommette has quit [Quit: SCommette]
nari_ has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
emmanuelux has joined #ruby
ilyam has quit [Quit: ilyam]
havenn has quit [Remote host closed the connection]
wez_ has joined #ruby
mengu has quit [Remote host closed the connection]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
gtuckerkellogg has joined #ruby
johnjohnson has joined #ruby
zarubin has joined #ruby
wez_ has quit [Client Quit]
fearoffish has quit [Quit: Computer has gone to sleep.]
sdwrage has joined #ruby
Jonah11_ has quit [Ping timeout: 248 seconds]
zugomir has joined #ruby
butblack has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
SCommette has joined #ruby
zigomir_ has joined #ruby
zugomir has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby
jorge has quit [Remote host closed the connection]
dev_ryan70 has joined #ruby
zigomir_ has quit [Remote host closed the connection]
blazes816 has joined #ruby
blazes816 has quit [Client Quit]
shadoi has joined #ruby
wmoxam has joined #ruby
jarred has quit [Quit: jarred]
Banistergalaxy has quit [Ping timeout: 264 seconds]
dev_ryan70 has quit [Ping timeout: 276 seconds]
SCommette has quit [Quit: SCommette]
cj3kim has quit [Quit: Leaving]
mohits has quit [Read error: Connection reset by peer]
ph^ has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 268 seconds]
mascool has joined #ruby
Spooner has quit [Ping timeout: 264 seconds]
ph^ has quit [Ping timeout: 240 seconds]
deryl has joined #ruby
Know1edge has quit []
voodoofish430 has quit [Quit: Leaving.]
wez_ has joined #ruby
ryanf has joined #ruby
fyolnish has joined #ruby
FifthWall has quit [Quit: Zzzzzzzzzzzzz]
alvaro_o_ has quit [Quit: Ex-Chat]
ilyam has joined #ruby
fyolnish has quit [Ping timeout: 245 seconds]
wpaulson has joined #ruby
wpaulson has quit [Client Quit]
linoj has joined #ruby
seanstickle has quit [Quit: seanstickle]
wez_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Takehiro has joined #ruby
pradeepto has joined #ruby
richwestcoast has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
richwestcoast has joined #ruby
justsee has quit [Quit: Leaving...]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Ping timeout: 248 seconds]
BetaPinky has quit [Quit: BetaPinky]
tds has joined #ruby
NiteRain has quit [Ping timeout: 246 seconds]
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
ciopte7 has left #ruby [#ruby]
uris has joined #ruby
oddraisin has joined #ruby
shadoi1 has joined #ruby
shadoi1 has quit [Client Quit]
sdwrage has quit [Quit: geekli.st/programmer]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
t47631 has quit [Remote host closed the connection]
SegFaultAX|work2 has joined #ruby
t11977 has joined #ruby
shadoi has quit [Ping timeout: 245 seconds]
revolver has left #ruby [#ruby]
Ruler_Of_Heaven_ has quit [Ping timeout: 276 seconds]
pipopopo has joined #ruby
mascool has quit [Ping timeout: 244 seconds]
Agis__ has joined #ruby
billyoc has joined #ruby
ken_barber has quit [Ping timeout: 245 seconds]
ken_barber1 has joined #ruby
rubious has quit [Quit: Leaving...]
gtuckerkellogg has joined #ruby
krz has quit [Quit: krz]
sdwrage has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
radic_ is now known as radic
dev_ryan70 has joined #ruby
dev_ryan70 has quit [Remote host closed the connection]
dev_ryan70 has joined #ruby
deryl has quit [Quit: deryl]
malcolmva has quit [Ping timeout: 244 seconds]
Agis__ has quit [Quit: Agis__]
tommyvyo has quit [Quit: Computer has gone to sleep.]
ph^ has joined #ruby
Agis__ has joined #ruby
Agis__ has quit [Client Quit]
ph^ has quit [Ping timeout: 255 seconds]
malcolmva has joined #ruby
pencilcheck has joined #ruby
fyolnish has joined #ruby
pencilcheck has quit [Remote host closed the connection]
pencilcheck has joined #ruby
pencilcheck is now known as pen__
pen__ is now known as pen
ZachBeta has joined #ruby
fyolnish has quit [Ping timeout: 272 seconds]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
ZachBeta has quit [Client Quit]
asklov has quit [Ping timeout: 245 seconds]
wpaulson has joined #ruby
rakl has joined #ruby
fungoat has joined #ruby
Banistergalaxy has joined #ruby
richwestcoast has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
tds has quit [Quit: tds]
Takehiro has joined #ruby
Bubs has joined #ruby
Bubs has left #ruby [#ruby]
tommyvyo has quit [Quit: Computer has gone to sleep.]
gtuckerkellogg has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
DrunkDave has joined #ruby
RudyValencia has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
linoj has quit [Quit: linoj]
fungoat has quit [Quit: fungoat]
johnjohnson has quit []
ZachBeta has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
deryl has joined #ruby
emmanuelux has quit [Read error: No route to host]
fyolnish_ has joined #ruby
dev_ryan70 has quit [Remote host closed the connection]
cdepue has quit [Remote host closed the connection]
hipertracker has quit [Quit: hipertracker]
S1kx has quit [Ping timeout: 240 seconds]
mahmoudimus has joined #ruby
NiteRain has joined #ruby
wpaulson has joined #ruby
paolooo has quit [Quit: Page closed]
td123 has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
nari_ has quit [Ping timeout: 252 seconds]
emmanuelux has joined #ruby
digitalcakestudi has joined #ruby
ph^ has joined #ruby
fyolnish_ has quit [Remote host closed the connection]
mucker has quit [Ping timeout: 240 seconds]
adeponte has joined #ruby
DrunkDave has quit [Quit: Leaving.]
tds has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
t11977 has quit [Remote host closed the connection]
ph^ has quit [Ping timeout: 245 seconds]
t40794 has joined #ruby
justsee has quit [Quit: Leaving...]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
gmci has quit [Quit: Computer has gone to sleep.]
macmartine has joined #ruby
Chryson has quit [Quit: Leaving]
tds has quit [Quit: tds]
m4tth3w has joined #ruby
gmci has joined #ruby
mahmoudimus has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
Takehiro has joined #ruby
r1_ has quit [Quit: leaving]
tds has joined #ruby
jenrzzz has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
Jake232 has joined #ruby
ken_barber1 has quit [Remote host closed the connection]
tds has quit [Ping timeout: 244 seconds]
sdwrage has quit [Quit: geekli.st/programmer]
jasonkuhrt has joined #ruby
banisterfiend` has joined #ruby
ken_barber has joined #ruby
td123 has quit [Quit: WeeChat 0.3.8]
sdwrage has joined #ruby
ryanf has quit [Read error: Connection reset by peer]
Banistergalaxy has quit [Ping timeout: 255 seconds]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
ryanf has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
replore_ has joined #ruby
ryanf has quit [Ping timeout: 240 seconds]
Tearan has joined #ruby
Tearan_ has joined #ruby
Tearan has quit [Read error: Connection reset by peer]
Tearan_ is now known as Tearan
iamjarvo has quit [Ping timeout: 246 seconds]
areil has joined #ruby
n_blownapart has joined #ruby
ryanf has joined #ruby
ryanf has quit [Client Quit]
Axsuul has quit [Read error: Connection reset by peer]
koshii has joined #ruby
<koshii> Evening guys
jenrzzz has quit [Read error: Connection reset by peer]
ken_barber has quit [Remote host closed the connection]
CarlB_the_great has joined #ruby
<n_blownapart> 100 > 50.object_id => true ; 100 < 50.object_id => false ; (100 > 50).object_id => 2 ; hi would someone explain what is happening in this 3rd expression? thanks
diegoviola has quit [Ping timeout: 252 seconds]
<fowl> >> [true.object_id, false.object_id]
<al2o3cr> (Array) [2, 0]
jasonkuhrt has quit [Quit: Leaving...]
<fowl> that being said, why are you comparing object_id
<fowl> >> 100 > 50.object_id
<al2o3cr> (FalseClass) false
<fowl> da fuq r u doing n_blownapart
jenrzzz has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<banisterfiend`> >> "fowl is a nice boy. Pure of heart, and keen of eye"
<al2o3cr> (String) "fowl is a nice boy. Pure of heart, and keen of eye"
rohit has joined #ruby
<n_blownapart> fowl just wondering why the parenthesis doesn't evaluate to true or false
savage- has joined #ruby
<fowl> n_blownapart: you are tripping
replore_ has quit [Remote host closed the connection]
<fowl> try it in here with the bot
Jake232 has quit [Quit: Computer has gone to sleep.]
<n_blownapart> dont know how to use the bot fowl
CarlB_th_ has joined #ruby
<fowl> nvm lol im too high for this
<banisterfiend`> n_blownapart: prefix the code u wanna evaluatei with >>, e.g
<banisterfiend`> >> >> "sup" + " n_" + "blownapart"
<al2o3cr> -e:1:in `eval': (eval):1: syntax error, unexpected tRSHFT (SyntaxError), >> "sup" + " n_" + "blownapart", ^, from -e:1:in `<main>'
<n_blownapart> banisterfiend`: yeah thanks just figured it out. never used it: one sec
<banisterfiend`> >> "sup" + " n_" + "blownapart"
<al2o3cr> (String) "sup n_blownapart"
<banisterfiend`> >> gets
<al2o3cr> (NilClass) nil
<n_blownapart> >> (100 > 50).object_id
<al2o3cr> (Fixnum) 2
replore_ has joined #ruby
mahmoudimus has joined #ruby
<n_blownapart> so does it have something to do with operator precedence ? banisterfiend` fowl
CarlB_the_great has quit [Ping timeout: 272 seconds]
<fowl> >> [true.object_id, false.object_id]
<al2o3cr> (Array) [2, 0]
rohit has quit [Ping timeout: 240 seconds]
CarlB_th_ has quit [Ping timeout: 246 seconds]
Jake232 has joined #ruby
<n_blownapart> fowl oh is the obj. id for true always 2 ?
sailias has joined #ruby
<n_blownapart> >> true.object_id
<al2o3cr> (Fixnum) 2
Jake232 has quit [Client Quit]
<n_blownapart> >> nil.object_id
<al2o3cr> (Fixnum) 4
jenrzzz has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
t40794 has quit [Remote host closed the connection]
t81339 has joined #ruby
aristidesfl has quit []
<n_blownapart> thanks fowl banisterfiend`
ph^ has joined #ruby
becom33 has quit [Ping timeout: 244 seconds]
nari_ has joined #ruby
ananthakumaran has joined #ruby
CarlB_the_great has joined #ruby
jenrzzz has joined #ruby
ph^ has quit [Ping timeout: 246 seconds]
kiyoura has quit [Quit: Leaving]
CarlB_the_great has quit [Read error: Connection reset by peer]
CarlB_the_great has joined #ruby
CarlB_the_great has quit [Read error: Connection reset by peer]
CarlB_the_great has joined #ruby
centipedefarmer has joined #ruby
centipedefarmer has quit [Client Quit]
CarlB_the_great has quit [Read error: Connection reset by peer]
yoklov has quit [Quit: computer sleeping]
CarlB_the_great has joined #ruby
ken_barber has joined #ruby
ken_barber has quit [Remote host closed the connection]
CarlB_th_ has joined #ruby
ken_barber has joined #ruby
becom33 has joined #ruby
CarlB_t__ has joined #ruby
TheLZA has joined #ruby
deryl has quit [Quit: deryl]
CarlB_the_great has quit [Ping timeout: 268 seconds]
<n_blownapart> fowl I was trying to understand why some expressions evaluate to true, and others to true (TrueClass)
CarlB_th_ has quit [Ping timeout: 246 seconds]
Bosox20051 has joined #ruby
<n_blownapart> ^^ to the object true
bapa has quit [Remote host closed the connection]
CarlB_t__ has quit [Read error: Connection reset by peer]
CarlB_the_great has joined #ruby
Taichouchou2 has joined #ruby
cableray has quit [Remote host closed the connection]
dr0id has joined #ruby
CarlB_th_ has joined #ruby
<dr0id> what was the method to filter an array based on some condition ?
bapa has joined #ruby
<wmoxam> .select ?
<wmoxam> .reject ?
Takehiro has joined #ruby
<dr0id> ah thanks
replore_ has quit [Remote host closed the connection]
sailias has quit []
CarlB_the_great has quit [Ping timeout: 268 seconds]
TheLZA has quit [Quit: Bye]
TheLZA has joined #ruby
sailias has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
yasushi has joined #ruby
n_blownapart has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
uris has quit [Quit: leaving]
baphled has joined #ruby
rohit has joined #ruby
jarred has joined #ruby
brianpWins has joined #ruby
rubious has joined #ruby
ananthakumaran has quit [Ping timeout: 244 seconds]
CarlB_the_great has joined #ruby
CarlB_t__ has joined #ruby
jrajav has joined #ruby
baphled has quit [Ping timeout: 252 seconds]
nesoi has joined #ruby
<nesoi> so, which version of ruby is best to use? 1.9.2 or 1.9.3?
<dr0id> I am on 1.9.3
<fowl> 2.0 pre
<dr0id> 2.0 post
CarlB_th_ has quit [Ping timeout: 276 seconds]
<wmoxam> nesoi: 1.9.3
CarlB_the_great has quit [Ping timeout: 272 seconds]
<nesoi> ok, thanks!
<dr0id> nesoi: so which one?
n_blownapart has joined #ruby
Hanmac1 is now known as Hanmac
Tearan has quit [Quit: Sleepy Badger....]
yoklov has joined #ruby
noyb has joined #ruby
butblack has left #ruby [#ruby]
DrunkDave has joined #ruby
DrunkDave is now known as Guest72153
CarlB_t__ has quit [Remote host closed the connection]
gloomer has joined #ruby
ph^ has joined #ruby
CarlB_the_great has joined #ruby
SCommette has joined #ruby
rohit has quit [Remote host closed the connection]
Guest72153 has quit [Changing host]
Guest72153 has joined #ruby
digitalcakestudi has quit [Ping timeout: 268 seconds]
fyolnish has joined #ruby
ph^ has quit [Ping timeout: 246 seconds]
replore has joined #ruby
daniel_hinojosa has quit [Ping timeout: 260 seconds]
CarlB_th_ has joined #ruby
CarlB_the_great has quit [Ping timeout: 260 seconds]
mohits has quit [Read error: Connection reset by peer]
answer_42 has joined #ruby
mohits has joined #ruby
HashNuke has joined #ruby
<HashNuke> hey guys!
<adeponte> how is it going?
CarlB_the_great has joined #ruby
<HashNuke> adeponte: Not so nice :)
<adeponte> HashNuke: why is that?
stopbit has joined #ruby
<HashNuke> I'm trying to scrape a few pages from a site. The js for the ajax call is obfuscated/packed. I had no luck in trying to undo it (so that I can figure out the params & url of the ajax call being made). Is there a way I can intercept the ajax call to get the results?
CarlB_th_ has quit [Ping timeout: 264 seconds]
<n_blownapart> hi why does 100 > 40.object_id evaluate to true, and 100 > 50.object_id evaluate to false? thanks
<dr0id> yw
<Hanmac> n_blownapart: because:
<Hanmac> >> 100.object_id
<al2o3cr> (Fixnum) 201
<Hanmac> >> 50.object_id
<al2o3cr> (Fixnum) 101
<Hanmac> object_id = fixnum * 2 + 1
dr0id has left #ruby [#ruby]
becom33 has quit [Ping timeout: 268 seconds]
<nesoi> 1.9.3 rc1 or which version?
banisterfiend` has quit [Remote host closed the connection]
<bnagy> p194
<Hanmac> nesoi: http://www.ruby-lang.org/en/downloads/ << there is 1.9.3p194
gmci has quit [Quit: Computer has gone to sleep.]
sailias has quit []
<n_blownapart> Hanmac oh thats cool I didn't see it. thank you
banisterfiend` has joined #ruby
<Hanmac> >> (0..5).map {|i|ObjectSpace._id2ref(i)}
<al2o3cr> (Array) [false, 0, true, 1, nil, 2]
noyb has quit [Ping timeout: 245 seconds]
Takehiro has joined #ruby
yoklov has quit [Quit: computer sleeping]
Synthead has quit [Remote host closed the connection]
mercwith1mouth has joined #ruby
SCommette has quit [Quit: SCommette]
<n_blownapart> Hanmac: what is that doing?
Takehiro has quit [Ping timeout: 246 seconds]
<Hanmac> it was to show you wich object has wich object id
Takehiro has joined #ruby
becom33 has joined #ruby
cdepue has joined #ruby
Guest72153 has quit [Quit: Leaving.]
Bosox20051 has quit [Quit: Leaving]
<banisterfiend`> >> (0..15).map {|i|ObjectSpace._id2ref(i)}
<al2o3cr> -e:1:in `eval': 0x00000000000006 is not id value (RangeError), from (eval):1:in `block in <main>', from (eval):1:in `each', from (eval):1:in `map', from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
<banisterfiend`> >> (0..15).map {|i|ObjectSpace._id2ref(i) rescue nil}
<al2o3cr> (Array) [false, 0, true, 1, nil, 2, nil, 3, nil, 4, nil, 5, nil, 6, nil, 7]
<dross> al2o3cr: /whois aperion
<dross> oop
nari_ has quit [Ping timeout: 246 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<n_blownapart> Hanmac: banisterfiend` so each integer in the range is fed into the block and the code assigns it its obj_id?
<banisterfiend`> n_blownapart: no
<n_blownapart> banisterfiend`: wtf
<banisterfiend`> n_blownapart: in pry type: ? ObjectSpace._id2ref
<Hanmac> i think this is more clear:
<Hanmac> >> (-15..15).each_with_object({}) {|i,h|(h[i]=ObjectSpace._id2ref(i)) rescue nil}
<al2o3cr> (Hash) {-15=>-8, -13=>-7, -11=>-6, -9=>-5, -7=>-4, -5=>-3, -3=>-2, -1=>-1, 0=>false, 1=>0, 2=>true, 3=>1, 4=>nil, 5=>2, 7=>3, 9=>4, 11=>5, 13=>6, 15=>7}
quest88 has quit [Quit: quest88]
cdepue has quit [Remote host closed the connection]
replore has quit [Remote host closed the connection]
rohit has joined #ruby
mahmoudimus has joined #ruby
forexwaldo has joined #ruby
fyolnish has quit [Remote host closed the connection]
gloomer has quit [Ping timeout: 264 seconds]
cdepue has joined #ruby
forexwaldo is now known as gloomer
<n_blownapart> banisterfiend`: Hanmac so the method within takes the obj_id and makes a "pointer" to the original object?
<nesoi> hm. rbenv seems to be working
<n_blownapart> within the block ^^
<nesoi> I had to install homebrew first, then xcode, then rbenv
Morkel has joined #ruby
<nesoi> installing xcode first didn't work
t81339 has quit [Remote host closed the connection]
t41874 has joined #ruby
<banisterfiend`> n_blownapart: if u ping me one more time i'm going to hang you up in the barn and whip you so hard your great grand children will feel it and cry out loud all the rest of their lives
yxhuvud has joined #ruby
Taichouc_ has joined #ruby
<Hanmac> n_blownapart: use "ri ObjectSpace._id2ref" the method is documented
Taichouchou2 has quit [Ping timeout: 244 seconds]
<n_blownapart> banisterfiend`: my great grandchildren will be great shamans and turn you into a warthog by going into the past and covering your white ass with thick bristles.
coderguy has joined #ruby
<Hanmac> shevy: today is a good day because banister has been trolled :P
yasushi has quit [Remote host closed the connection]
<becom33> if I have a variable asign as @demo = 'demo' and I wanna use it in a array like arr[:demo] i cant do arr[:@demo] how can I use that variable as array key ?
Taichouc_ has quit [Ping timeout: 246 seconds]
<Hanmac> arr[@demo.to_sym]
<fowl> becom33: arrays are indexed by number
Taichouchou2 has joined #ruby
cdepue has quit [Remote host closed the connection]
<becom33> fowl associative array
<fowl> oh. my. god.
<Hanmac> he means a Hash
* fowl is going into hibernation, see yall in 4 years
rgs_ has joined #ruby
jorum has joined #ruby
nari_ has joined #ruby
elico has joined #ruby
ph^ has joined #ruby
n_blownapart has quit [Remote host closed the connection]
benatkin_ has joined #ruby
benatkin_ has quit [Client Quit]
freeayu has quit [Read error: Connection reset by peer]
ph^ has quit [Ping timeout: 246 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
k0m has joined #ruby
butblack has joined #ruby
ZachBeta has joined #ruby
rohit has quit [Quit: Leaving]
coderguy has quit [Quit: coderguy]
coderguy has joined #ruby
und3f has joined #ruby
pu22l3r has joined #ruby
h4mz1d has joined #ruby
<Hanmac> becom33 you are an ex-php user, arnt you? ... "our Arrays are different"
answer_42 has quit [Remote host closed the connection]
butblack has left #ruby [#ruby]
khakimov has quit [Quit: Computer has gone to sleep.]
LouisGB has joined #ruby
<k0m> how are PHP arrays?
HashNuke has quit [Quit: HashNuke]
<Hanmac> k0m in php you try todo [3,4,5] but reality you get {0=>3,1=>4,2=>5}
HashNuke has joined #ruby
<k0m> Do you access it the same? arr[0] => 3
<Hanmac> yeah, but it is not realy an array ... its a hash
sdwrage has quit [Quit: geekli.st/programmer]
m4tth3w has quit [Quit: Now if you will excuse me, I have a giant ball of oil to throw out my window]
<k0m> Oh, I see
<k0m> just checked the documentation
pu22l3r has quit [Remote host closed the connection]
thaz has joined #ruby
jorum has quit [Quit: Leaving...]
ananthakumaran has joined #ruby
h4mz1d has quit [Ping timeout: 246 seconds]
banisterfiend` has quit [Remote host closed the connection]
mneorr has joined #ruby
HashNuke has quit [Quit: HashNuke]
matrixise has joined #ruby
CarlB_th_ has joined #ruby
CarlB_the_great has quit [Ping timeout: 246 seconds]
mercwith1mouth has quit [Ping timeout: 240 seconds]
mneorr has quit [Remote host closed the connection]
kstephens has quit [Ping timeout: 246 seconds]
ry4nn has quit [Read error: Connection reset by peer]
ry4nn has joined #ruby
ph^ has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
ph^ has quit [Ping timeout: 246 seconds]
DrunkDave has joined #ruby
DrunkDave is now known as Guest60623
atno has joined #ruby
cdepue has joined #ruby
thone_ has quit [Read error: Operation timed out]
nesoi has quit [Quit: Leaving.]
emmanuelux has quit [Ping timeout: 272 seconds]
rubious has quit [Quit: Leaving...]
kstephens has joined #ruby
ph^ has joined #ruby
thone has joined #ruby
jacobw has joined #ruby
cdepue has quit [Ping timeout: 248 seconds]
wvms has left #ruby [#ruby]
Taichouc_ has joined #ruby
Taichouchou2 has quit [Read error: Connection reset by peer]
ken_barber1 has joined #ruby
diegoviola has quit [Ping timeout: 246 seconds]
ken_barber1 has quit [Read error: Connection reset by peer]
ken_barber1 has joined #ruby
ken_barber has quit [Ping timeout: 240 seconds]
Banistergalaxy has joined #ruby
t41874 has quit [Remote host closed the connection]
t47839 has joined #ruby
ph^ has quit [Remote host closed the connection]
hipertracker has joined #ruby
<Mon_Ouie> And that results in a lot of wasted memory
Morkel has quit [Quit: Morkel]
<Hanmac> php is allways a memory waste :P
ranjan has quit [Ping timeout: 244 seconds]
nadirvardar has joined #ruby
imami|afk is now known as banseljaj
Taichouc_ has quit [Remote host closed the connection]
deepgray has joined #ruby
<deepgray> hi!
deepgray has quit [Quit: Ухожу я от вас]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<epitron> javascript has fake arrays too!
<epitron> don't leave out our old friend ECMA
Axsuul has joined #ruby
justinmcp has joined #ruby
kstephens has quit [Ping timeout: 276 seconds]
ilyam has quit [Quit: ilyam]
davidcelis has joined #ruby
Guest60623 has quit [Quit: Leaving.]
kstephens has joined #ruby
Eldariof-ru has joined #ruby
Taichouchou2 has joined #ruby
pskosinski has joined #ruby
thaz has quit [Quit: thaz]
Synthead has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
ph^ has joined #ruby
<Hanmac> hm i thought about an Range support class, like an array of range ... like [1,10,5] is solved like this:
<Hanmac> >> [1,10,5].each_cons(2).with_index.map {|(a,b),i| (a < b ? (i.zero? ? a : a+1 ).upto(b) : (i.zero? ? a : a-1).downto(b))}.map(&:to_a).flatten
<al2o3cr> (Array) [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 9, 8, 7, 6, 5]
cdepue has joined #ruby
nari_ has quit [Ping timeout: 245 seconds]
ananthakumaran has quit [Ping timeout: 260 seconds]
CarlB_th_ has quit [Remote host closed the connection]
Taichouchou2 has quit [Remote host closed the connection]
pdelgallego has joined #ruby
Synthead has quit [Quit: Leaving]
sepp2k has joined #ruby
Synthead has joined #ruby
Synthead has quit [Read error: Connection reset by peer]
und3f has quit [Ping timeout: 246 seconds]
und3f has joined #ruby
Synthead has joined #ruby
jarred has quit [Quit: jarred]
jorge has joined #ruby
und3f has quit [Ping timeout: 264 seconds]
nadirvardar has quit [Read error: Connection reset by peer]
artOfWar has quit [Ping timeout: 246 seconds]
pskosinski is now known as pk-s
pk-s is now known as pskosinski
DrunkDave has joined #ruby
DrunkDave has joined #ruby
DrunkDave has quit [Changing host]
mohits has quit [Ping timeout: 264 seconds]
nadirvardar has joined #ruby
Synthead has quit [Read error: Connection reset by peer]
wangr_ has quit [Quit: No Ping reply in 180 seconds.]
HashNuke has joined #ruby
Synthead has joined #ruby
fantazo has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
lkba has quit [Quit: Bye]
DrunkDave has left #ruby [#ruby]
<becom33> ins this posible ? res.body =~ /s0(.*)s0/
<ccooke> assuming res.body returns a String, or something with a match method, yes
Guest5516 has joined #ruby
<becom33> code = res.body =~/s0(.*)s0/ should store the values in side s0 in code variable right for a example if res.body = s0roots0
<becom33> code should store root right ?
ananthakumaran has joined #ruby
und3f has joined #ruby
<Hanmac> no
coderguy has quit [Quit: coderguy]
<becom33> Hanmac, then how can I get root in s0roots0 ?
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
cdepue has quit [Remote host closed the connection]
<Hanmac> res.body[/s0(.*)s0/,1]
<Hanmac> shevy i found a difference between String#=~ and Regexp#=~
kstephens has quit [Ping timeout: 246 seconds]
<Hanmac> >>/s0(?<code>.*)s0/ =~ "s0roots0";code
<al2o3cr> (String) "root"
<Hanmac> >>"s0roots0" =~ /s0(?<code>.*)s0/;code
<al2o3cr> -e:1:in `eval': undefined local variable or method `code' for main:Object (NameError), from -e:1:in `eval', from -e:1:in `<main>'
cantonic_ has joined #ruby
k0m has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
t47839 has quit [Remote host closed the connection]
jorge has quit [Remote host closed the connection]
<Paradox> i baked you a pie
<Paradox> oh boy
<Paradox> what flavor
<Paradox> PIE FLAVOR
t33177 has joined #ruby
np_complete has joined #ruby
Eldariof-ru is now known as eldariof
<np_complete> hi there
cantonic has quit [Ping timeout: 264 seconds]
cantonic_ is now known as cantonic
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
<shevy> Hanmac hmm
<becom33> Hanmac, have a little problem . see this code http://pastebin.com/dUCfafrR
<becom33> in the begining it shows s0555 and in the end it has s0555 i want everything in the middle in a variable :/
havenn has joined #ruby
<np_complete> When I iterate through a 'File' using 'each_line', and I 'break' the iteration when a line matches a certain regexp, then I can not inject text at that point. What am I doing wrong?
Takehiro has joined #ruby
ph^ has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
<becom33> anyone
<becom33> shevy, ?
Guest87705 is now known as Musfuut
<shevy> wat
wangr has joined #ruby
kstephens has joined #ruby
<shevy> so you have a string
<shevy> becom33 do you know how to capture with a regex
<shevy> becom33 do you know what is a regex
banisterfiend has joined #ruby
yasushi has joined #ruby
ph^ has joined #ruby
robustus has joined #ruby
Takehiro has joined #ruby
Banistergalaxy has quit [Ping timeout: 246 seconds]
Takehiro has quit [Remote host closed the connection]
matrixise has quit [Ping timeout: 264 seconds]
mele- has joined #ruby
<becom33> yea I know . but not expert
<mele-> anyone know of a pure ruby MP3 Tag library?
<becom33> i think the problem is \
ph^ has quit [Ping timeout: 246 seconds]
<mele-> I found a few, but they resort to using a native library and in most cases are old
dakine has quit [Ping timeout: 246 seconds]
mele- is now known as rburton-
havenn has quit [Remote host closed the connection]
* becom33 anyone ?
<Hanmac> pure ruby libs can be a massive performance lost ...
<becom33> Hanmac, any idea for my problem ?
graspee has quit [Quit: leaving]
<Hanmac> did you try str[/s0555(.*)s0555/,1] ?
HashNuke has quit [Quit: HashNuke]
<juha_> i have foo123, how do i get only 123? i'm trying with gsub but can't figure out the right regex :D
graspee has joined #ruby
<becom33> I dont undertand it works fine in there
<becom33> yes Hanmac that what I tried in my script
<Hanmac> juha_ str[/\d+/]
<shevy> becom33 you must use a capture group
<juha_> nice, thanks!
<Hanmac> becom33 so and what is the problem?
<shevy> becom33 and then access it via either $1 $2 etc... or on your matchdata object via [0]
<shevy> becom33 do you really know what is a capture group
<shevy> :P
wangr has quit [Quit: No Ping reply in 180 seconds.]
<Hanmac> you could use the second parameter with string[/regex/,group]
<becom33> shevy, Hanmac check this http://pastebin.com/0LzKVdFW
Eldariof-ru has joined #ruby
<becom33> umm ?
wangr has joined #ruby
eldariof has quit [Ping timeout: 246 seconds]
<Hanmac> did you read the docs?
justsee has quit [Quit: Leaving...]
yasushi has quit [Remote host closed the connection]
<shevy> does not work
<becom33> not completely :/
<shevy> it seems . does not match \n
<Hanmac> shevy i knew how it works but first he must learn how to help hishself
<Hanmac> /./ - Any character EXCEPT a newline.
<Hanmac> /./m - Any character (the m modifier enables multiline mode)
t33177 has quit [Remote host closed the connection]
t8148 has joined #ruby
<shevy> whoa
<shevy> m enables two things?
<becom33> umm >
<shevy> why does m also check for newlines?
<shevy> oh
<shevy> yeah
<shevy> multi lines
<shevy> and lines are done via \n
<Hanmac> /pat/m - Treat a newline as a character matched by . +
<Hanmac> - the +
<shevy> becom33, there you go, append m to your regex
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
<becom33> hay thank works shevy , Hanmac thanks you guys <3
<shevy> yeah Hanmac solved the mystery
<shevy> the m was the missing character in action
<Hanmac> this would work too: b[/s0555(?m:(.*))s0555/,1]
k_89 has joined #ruby
<k_89> do all you ruby devs use orms?
<Hanmac> or more interesting: [/s(\d+)(?m:(.*))s\1/,2]
<Hanmac> k_89 what is "orms"?
<k_89> 'object relational mapper's
<rburton-> Times like this I want to cock slap Apple
ph^ has joined #ruby
<Hanmac> k_89 i think you are in the wrong channel ... i think you want to #rubyonrails
<k_89> be back in a sc .. i was about to bash orms :P
<Hanmac> i never used some kind of mapper like datamapper
ph^ has quit [Remote host closed the connection]
<k_89> orms slow the system a hell damn lot .. that makes me think .. why the fk is rails so popular .. even among biggies'
und3f has quit [Quit: Leaving.]
nadirvardar has quit [Quit: Computer has gone to sleep.]
whowantstolivefo has quit []
<k_89> loading 400-500 objects in memory slows the system down a lot ..
<Hanmac> k_89 you are still in the wrong channel ...
<k_89> ahh ..ok
<k_89> i'll do orm bashing on ror
<atno> haha k_89
<Hanmac> we have a three strike rule ... asking three stupid rails questions there and you will be muted
<atno> k_89: try #rubyonrails :D
<Hanmac> or we ignore you :P
<k_89> hehe .. k .. already started trolling ror
<k_89> :P
np_complete has quit [Quit: Leaving]
Mon_Ouie has quit [Ping timeout: 245 seconds]
Mon_Ouie has joined #ruby
caveat- has quit [Disconnected by services]
Virunga has joined #ruby
caveat- has joined #ruby
niklasb has joined #ruby
pen has quit [Remote host closed the connection]
fastred has joined #ruby
x0F_ has joined #ruby
x0F has quit [Disconnected by services]
x0F_ is now known as x0F
pdelgallego has quit [Quit: pdelgallego]
ph^ has joined #ruby
guns has quit [Ping timeout: 248 seconds]
cdepue has joined #ruby
<becom33> if Im adding values in to a hash inside a loop , if Im using val = {key, value} it only stores the last value of the loop
caveat- has quit [Disconnected by services]
Virunga is now known as LennyLinux
caveat- has joined #ruby
cdepue has quit [Ping timeout: 244 seconds]
xbayrockx has joined #ruby
<k_89> atno, you do ruby dev too?
<atno> nope, not yet
<becom33> anyone ?
snearch has joined #ruby
<Mon_Ouie> becom3: Because you replace the hash with a new hash at every iteration. Use hash[key] = value.
<k_89> atno, btw, when i was trolling #ror with that orm hting, a guy shut me up before i could really start by stating "anyone who loads 1500 objects in memory is a fool" :P
<k_89> so yeah .. thats the solution
kluuge has joined #ruby
kluuge has quit [Client Quit]
kluuge has joined #ruby
elaptics`away is now known as elaptics
lkba has joined #ruby
lonre has joined #ruby
richwestcoast has joined #ruby
rakl has quit [Quit: sleeping]
<becom33> Mon_Ouie, @ret[file] = url.sub(/#{@con['name']}/, value)
<becom33> it gives me a error `[]=': can't convert String into Integer (TypeError)
<Mon_Ouie> Because @ret, whatever it is, is not à hash
xbayrockx has quit []
<becom33> oh
<Mon_Ouie> a*
<becom33> got it
<becom33> lol I had @ret = [] on the top of them method . totally fogot about it
lonre has quit [Client Quit]
snearch has quit [Ping timeout: 246 seconds]
atmosx has joined #ruby
chimay has joined #ruby
arquebus has joined #ruby
nim_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
gloomer has quit [Ping timeout: 248 seconds]
t8148 has quit [Remote host closed the connection]
kluuge has quit [Quit: leaving]
t16694 has joined #ruby
ph^ has quit [Remote host closed the connection]
snearch has joined #ruby
Foxandxss has joined #ruby
arquebus has quit [Quit: Konversation terminated!]
chimay has quit [Quit: WeeChat 0.3.9-rc1]
ickmund has quit [Ping timeout: 252 seconds]
rburton- has quit [Ping timeout: 265 seconds]
mxweas has joined #ruby
fastred has left #ruby [#ruby]
carrythezero has quit [Quit: Lost terminal]
hsbt has quit [Ping timeout: 246 seconds]
fastred has joined #ruby
fastred has quit [Client Quit]
hsbt has joined #ruby
areil has quit [Remote host closed the connection]
Speed has quit [Ping timeout: 252 seconds]
yasushi has joined #ruby
mxweas has quit [Quit: Leaving...]
wez has joined #ruby
banisterfiend has quit [Ping timeout: 246 seconds]
carrythezero has joined #ruby
banisterfiend has joined #ruby
yasushi has quit [Remote host closed the connection]
carrythezero has quit [Client Quit]
yasushi has joined #ruby
Hien has quit [Quit: leaving]
Hien has joined #ruby
chendo_ has joined #ruby
carrythezero has joined #ruby
wangr has quit [Quit: No Ping reply in 180 seconds.]
wangr has joined #ruby
tommyvyo has joined #ruby
wez has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
snearch has quit [Read error: No route to host]
snearch has joined #ruby
johnjohnson has joined #ruby
LennyLinux has quit [Remote host closed the connection]
HashNuke has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
LennyLinux has joined #ruby
edwardj has joined #ruby
LennyLinux has quit [Remote host closed the connection]
mc0e has quit [Ping timeout: 245 seconds]
tommyvyo has joined #ruby
kidoz has quit [Ping timeout: 264 seconds]
ph^ has joined #ruby
emmanuelux has joined #ruby
freeayu has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
ph^ has quit [Ping timeout: 246 seconds]
rohit has joined #ruby
baphled has joined #ruby
NimeshNeema has quit [Max SendQ exceeded]
LouisGB has quit [Ping timeout: 240 seconds]
NimeshNeema has joined #ruby
LouisGB has joined #ruby
niklasb has quit [Quit: WeeChat 0.3.8]
tiripamwe has joined #ruby
matrixise has joined #ruby
niklasb has joined #ruby
LennyLinux has joined #ruby
snearch has quit [Read error: No route to host]
snearch has joined #ruby
LennyLinux has quit [Remote host closed the connection]
jjbohn has joined #ruby
Eldariof-ru has quit []
hsbt has quit [Ping timeout: 255 seconds]
hsbt has joined #ruby
Eldariof-ru has joined #ruby
chimay has joined #ruby
r0bby is now known as robbyoconnor
ken_barber1 has quit [Remote host closed the connection]
Eldariof-ru has quit [Read error: Operation timed out]
wpaulson has joined #ruby
wpaulson has quit [Client Quit]
LennyLinux has joined #ruby
Eldariof-ru has joined #ruby
dimday has joined #ruby
kirun has joined #ruby
jjbohn has quit [Quit: Leaving...]
edwardj has quit [Remote host closed the connection]
veer has joined #ruby
aristidesfl has joined #ruby
veer is now known as Guest98333
Takehiro has joined #ruby
jjbohn has joined #ruby
lolsuper_ has quit [Ping timeout: 245 seconds]
dimday has quit [Ping timeout: 248 seconds]
emmanuelux has quit [Ping timeout: 245 seconds]
Axsuul has quit [Ping timeout: 264 seconds]
Russell^^ has joined #ruby
peregrine81 has joined #ruby
iamjarvo has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rohit has quit [Quit: Leaving]
deryl has joined #ruby
mc0e has joined #ruby
banisterfiend has quit [Remote host closed the connection]
Nisstyre_ has quit [Quit: Leaving]
snearch has quit [Read error: No route to host]
snearch has joined #ruby
linoj has joined #ruby
hsbt has quit [Ping timeout: 255 seconds]
t16694 has quit [Remote host closed the connection]
t27034 has joined #ruby
banisterfiend has joined #ruby
jjbohn has quit [Quit: Leaving...]
hsbt has joined #ruby
sambio_ has joined #ruby
jorum has joined #ruby
sambio_ is now known as sambio
sambio has quit [Read error: Connection reset by peer]
guns has joined #ruby
sambio_ has joined #ruby
sambio_ is now known as sambio
Spooner has joined #ruby
guns is now known as Guest78772
nateberkopec has joined #ruby
seanyo has joined #ruby
jjbohn has joined #ruby
dimday has joined #ruby
gfontenot has joined #ruby
becom33 has quit [Ping timeout: 264 seconds]
mahmoudimus has joined #ruby
becom33 has joined #ruby
mahmoudimus has quit [Client Quit]
dimday has quit [Ping timeout: 248 seconds]
Eldariof-ru has quit [Ping timeout: 252 seconds]
seanstickle has joined #ruby
dangerousdave has quit [Quit: Linkinus - http://linkinus.com]
dangerousdave has joined #ruby
jrajav has quit []
ZachBeta has joined #ruby
emmanuelux has joined #ruby
pipopopo has quit [Ping timeout: 244 seconds]
pipopopo has joined #ruby
mahmoudimus has joined #ruby
wangr has quit [Quit: No Ping reply in 180 seconds.]
kiyoura has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
hiroyuki has quit [Ping timeout: 248 seconds]
dimday has joined #ruby
twinturbo has joined #ruby
mahmoudimus has quit [Client Quit]
peregrine81 has quit [Quit: Computer sleeping.]
gmci has joined #ruby
caveat- has quit [Ping timeout: 248 seconds]
caveat- has joined #ruby
s1n4 has joined #ruby
peregrine81 has joined #ruby
dimday has quit [Ping timeout: 240 seconds]
s1n4 has quit [Client Quit]
ph^ has joined #ruby
jjbohn has quit [Read error: Connection reset by peer]
peregrine81 has quit [Client Quit]
fearoffish has joined #ruby
dev_ryan70 has joined #ruby
haxrbyte has joined #ruby
haxrbyte_ has joined #ruby
verto|off is now known as verto
ph^ has quit [Remote host closed the connection]
ZachBeta has quit [Quit: Computer has gone to sleep.]
haxrbyte has quit [Ping timeout: 246 seconds]
LennyLinux has quit [Remote host closed the connection]
Dave has joined #ruby
Dave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Dave is now known as Guest59767
linoj has quit [Quit: linoj]
billyoc has quit [Remote host closed the connection]
vectorshelve has joined #ruby
<vectorshelve> Hi All
<vectorshelve> shevy: :)
peregrine81 has joined #ruby
yasushi has quit [Remote host closed the connection]
<shevy> vectorshelve hi
<shevy> vectorshelve what evil thing are you planning to do today
<shevy> vectorshelve meet becom33
<vectorshelve> becom33: hi
<shevy> he is fighting with ruby today as well :)
<vectorshelve> shevy: who is he ? evil man ? :D
<shevy> I think he lives on sri lanka
verto is now known as verto|off
<shevy> he had a regex problem
<vectorshelve> shevy: I need a well understandable design pattern doc for pacman... nothing online :)
<vectorshelve> shevy: I am not from Sri Lanks
<shevy> he solved it by using /blabla/m <--- the m
<shevy> m for "multiline" in regex. it matches a newline too
<Hanmac> shevy no he was only to lazy to read the docs
<shevy> vectorshelve yeah but you two are not that far away :)
<shevy> I am in europa, like Hanmac
<shevy> uhm
<shevy> *Europe
<shevy> hehehe
yasushi has joined #ruby
<vectorshelve> shevy: Yes... Neighbours in peace
<vectorshelve> Hanmac: who me ?
<vectorshelve> Hanmac: i couldnt find one online and the whole design pattern (doing it in oops way) for pacman seemed complicated.. and intricated
<shevy> vectorshelve he meant becom33
<shevy> :D
haxrbyte has joined #ruby
jasonkuhrt has joined #ruby
t27034 has quit [Remote host closed the connection]
butblack has joined #ruby
t22613 has joined #ruby
gfontenot has quit []
vectorshelve has quit [Ping timeout: 245 seconds]
haxrbyte_ has quit [Ping timeout: 246 seconds]
seanyo_ has joined #ruby
ZachBeta has joined #ruby
_jgr_ has quit [Quit: leaving]
seanyo has quit [Ping timeout: 246 seconds]
LennyLinux has joined #ruby
sailias has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
seanyo_ has quit [Ping timeout: 246 seconds]
<k_89> any ruby dev here who does something other than standard web-development ?
yasushi has quit [Remote host closed the connection]
jasonkuhrt has quit [Quit: Leaving...]
zeknox has quit [Changing host]
zeknox has joined #ruby
zeknox has left #ruby [#ruby]
<Hanmac> k_89 you are still in the wrong channel!! standard ruby has only less todo with web-development
Guest59767 has quit [Quit: Linkinus - http://linkinus.com]
<Hanmac> i use ruby for 3d games
<k_89> cool!
LennyLinux has quit [Remote host closed the connection]
<seanstickle> I use Ruby for compilers.
tommyvyo has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
<seanstickle> We all use Ruby in wonderful ways. Only sometimes for the Web.
<_br_> Ruby for research :)
<Mon_Ouie> I use Ruby for doing more Ruby
<Hanmac> k_89 and you may get it wrong: i dont use ruby as scripting engine for a game, i make the game OF ruby :P
haxrbyte has quit [Ping timeout: 268 seconds]
<k_89> you mean you make games using ruby, right >
<k_89> ?
<k_89> seanstickle, what sort of compilers?
<seanstickle> k_89: compilers for the APL language
<k_89> (i am just a curious web developer :P)
<Hanmac> k_89 yeah with my mighty-bindings i can use Ogre inside ruby
ph^ has joined #ruby
<seanstickle> k_89: also for operations research
dev_ryan70 has quit [Ping timeout: 246 seconds]
<seanstickle> Although I am thinking of switching to Perl
<Hanmac> seanstickle why go backwarts? and when you do, why not assampler?
<Hanmac> :P
<seanstickle> Hanmac: I quite like Perl. That's where I started.
<seanstickle> And I've been getting into Parrot assembly code.
<seanstickle> Hanmac: assampler?
dangerousdave has joined #ruby
<Hanmac> i mean Assembler
<seanstickle> Ah
<seanstickle> Well, as you see, Parrot assembly. :)
dev_ryan70 has joined #ruby
_jgr_ has joined #ruby
<seanstickle> Pity that Cardinal never really took off.
vectorshelve has joined #ruby
LennyLinux has joined #ruby
<vectorshelve> Got Disconnected :( shevy Hanmac
Guest78772 has quit [Ping timeout: 276 seconds]
<seanstickle> Hanmac: I was fiddling with that some years ago.
<seanstickle> I am a fringe language enthusiast
cuit has joined #ruby
<shevy> vectorshelve welcome back
<shevy> seanstickle fringe? fridge?
Trudko has joined #ruby
<Trudko> Guys bit off topic, my friend who is average PC user, asked me to help him with programming. He want to learn to program and I am thinking what books to give him? I heard that python is good first language to learn
<vectorshelve> shevy: yes.. so what about the design pattern doc for pacman ?
<Hanmac> Turdko begin with C :P
<vectorshelve> Hanmac: this dude Trudko is asked the same questions in multiple rooms including #java
<vectorshelve> :)
<Trudko> Hanmac: hh :)
ZachBeta has quit [Quit: Computer has gone to sleep.]
<Trudko> vectorshelve: yes so?
<Hanmac> Turdko imo the best learning is "C" -> "C++" -> "ruby"
<shevy> vectorshelve I dont think you need design docs
ph^ has quit [Remote host closed the connection]
<vectorshelve> Trudko: its isnt clear which language do you want books on :)
dpk has joined #ruby
<Trudko> vectorshelve: my question is language agnostic as you can see
noyb has joined #ruby
t22613 has quit [Remote host closed the connection]
warr has joined #ruby
<vectorshelve> shevy: why so ? I need to learn that in particular... help me mate or rather give me your own design pattern for the game if you think its good enough :)
t60442 has joined #ruby
<vectorshelve> Trudko: hmm...
<warr> hello to evry one
Agis__ has joined #ruby
<warr> hi to alllllllllllllllllll
<vectorshelve> shevy: I dont want to end up here searching for it :D http://www.toxel.com/inspiration/2009/09/14/15-cool-designs-inspired-by-pac-man/
sailias has quit [Ping timeout: 240 seconds]
<shevy> vectorshelve no i mean
<shevy> I dont design by documents
<shevy> I try to find the problems and solve them
<vectorshelve> shevy: what I meant by doc what a good design implementation of that game.. :) if you have your own share it :) that's what I meant
_jgr_ has quit [Read error: Connection reset by peer]
<warr> any one want to chat a mannnnnnnnnnnnnnnnnnnnnnnnnnnnnn
<Agis__> lol @warr
deryl has quit [Quit: deryl]
yasushi has joined #ruby
<Hanmac> eating pills and fuits, chasing blue ghosts ... its normal, isnt?
cuit has left #ruby ["Konversation terminated!"]
<vectorshelve> Hanmac: :)
yasushi has quit [Read error: Connection reset by peer]
yasushi_ has joined #ruby
rubious has joined #ruby
<seanstickle> shevy: fringe
<vectorshelve> shevy: why no reply ?
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
justsee has quit [Client Quit]
warr has left #ruby [#ruby]
VictorMartins has joined #ruby
<shevy> vectorshelve was looknig at something else
<vectorshelve> shevy: hoping it be related to pacman ;)
<shevy> vectorshelve I dont really have a good way to design a game yet... I usually try to describe all data structures first
<shevy> once I have all required data, the first step is solved
<macer1> is it better to have a new line at end of file or not? (o.o)
<shevy> macer1 I think no
<macer1> ok
<shevy> may depend on the file but consider this file:
<shevy> - foo: bar
<shevy> - lala: yeah
<macer1> because auto generated ruby files have it
<shevy> it describes 2 data elements
<shevy> why?
<macer1> dunno
<shevy> File.new <--- you can append a newline, or not
<shevy> no no no I dont believe you :)
<shevy> how are these files "auto generated", by what precisely
linoj has joined #ruby
VictorMartins has quit [Client Quit]
emmanuelux has quit [Remote host closed the connection]
<macer1> new bundle gem
justinmcp has quit [Remote host closed the connection]
<macer1> gem.gemspec have too new line at end
horrror has joined #ruby
fkumro has quit [Quit: too quiet here]
<shevy> ok so you use bundler
<macer1> yes
<shevy> I am sure you could patch bundler to not append a newline if you dont want it
twinturbo has quit [Quit: twinturbo]
fkumro has joined #ruby
<macer1> option 1. ignore, op 2. delete all new lines at end op 3. add new lines at end everywhere
<macer1> what ruby coding standards say about that?
<shevy> macer1, File.open('test','a+') {|f| f.print ''}
<shevy> this makes an empty new file called "test"
<shevy> let me show you what I autogenerate
tommyvyo has quit [Quit: Computer has gone to sleep.]
<shevy> that's the default .gemspec that a ruby script generates
kuzushi has quit [Ping timeout: 255 seconds]
<shevy> last line is "}"
<shevy> and not "}\n" I dont think a newline would make it look better
rubious has quit [Quit: Leaving...]
<macer1> *deletes all crappy new lines at end of file*
<shevy> hehe
elux has joined #ruby
elux has quit [Client Quit]
butblack has quit [Quit: butblack]
<macer1> "ensure_newline_at_eof_on_save": true
<macer1> *solved*
HashNuke has quit [Quit: HashNuke]
<macer1> <3 sublime text 2
horrror has quit [Quit: horrror]
SCommette has joined #ruby
schaerli has joined #ruby
kuzushi has joined #ruby
<vectorshelve> shevy: :)
mucker has joined #ruby
rubious has joined #ruby
dev_ryan70 has quit [Remote host closed the connection]
tommyvyo has joined #ruby
SCommette has quit [Quit: SCommette]
xiphiasx_ has quit [Ping timeout: 250 seconds]
SCommette has joined #ruby
ibash has joined #ruby
freeayu has quit [Quit: 离开]
k_89 has quit [Ping timeout: 244 seconds]
elux has joined #ruby
xiphiasx_ has joined #ruby
SCommette has quit [Client Quit]
otters has quit [Ping timeout: 272 seconds]
HashNuke has joined #ruby
nim__ has joined #ruby
arturaz has joined #ruby
statarb3 has quit [Ping timeout: 245 seconds]
<shevy> hmm for windows, what should I use for ruby+GUI?
<shevy> and second question... I can install ruby to D: harddisc? C: harddisc on that computer is 99% full already ...
<Hanmac> wx is cool ... but my binding is not finish yet :(
s1n4 has joined #ruby
nim_ has quit [Ping timeout: 245 seconds]
<seanstickle> shevy: browser is ideal for GUI
<seanstickle> shevy: it's what I use, recommended
<seanstickle> shevy: and you can certainly install to D
HashNuke has quit [Quit: HashNuke]
tiripamwe has quit [Ping timeout: 252 seconds]
cdepue has joined #ruby
jjbohn has joined #ruby
yasushi_ has quit [Remote host closed the connection]
phanousit has joined #ruby
phanousit is now known as siameseguy
<macer1> how to create a new ruby project with bundler?
<macer1> that is not a gem
nim__ has quit [Ping timeout: 252 seconds]
<s1n4> macer1: what do you mean?
cdepue has quit [Remote host closed the connection]
linoj has quit [Quit: linoj]
<macer1> hmm a new project with Gemfile in it to add dependencies
<macer1> and lib/ and bin/
<macer1> some bundler command or something
<s1n4> macer1: add dependencies in the Gemfile, and 'bundle install' will install dependencies
<macer1> and something that will make install the things from bin/
<s1n4> macer1: what you want is like a gem, but you said "that is not a gem"
<macer1> whatever, it can be a gem
<macer1> >.<
ph^ has joined #ruby
<macer1> bundle new myapp
<macer1> rake install
<macer1> looks good
spopescu has joined #ruby
cdepue has joined #ruby
<s1n4> macer1: bundle gem myapp
<macer1> ah yes
hiroyuki has joined #ruby
vectorshelve has quit [Quit: Page closed]
<Hanmac> macer1 did you try at #bundler ?
ph^ has quit [Ping timeout: 246 seconds]
<macer1> Hanmac: whatever, got it working as I wanted :D
tiripamwe has joined #ruby
rubious has quit [Quit: Leaving...]
havenn has joined #ruby
adeponte has quit [Remote host closed the connection]
nim__ has joined #ruby
elux has quit [Quit: Bye!]
adeponte has joined #ruby
sailias has joined #ruby
jgrevich has joined #ruby
baphled has quit [Ping timeout: 260 seconds]
KevinSjoberg has joined #ruby
KevinSjoberg has quit [Client Quit]
KevinSjoberg has joined #ruby
KevinSjoberg has quit [Client Quit]
KevinSjoberg has joined #ruby
otters has joined #ruby
m_3 has quit [Remote host closed the connection]
khakimov has joined #ruby
atno has quit [Quit: Leaving...]
spopescu has quit [Quit: leaving]
ddv has quit [Ping timeout: 246 seconds]
spopescu has joined #ruby
ddv has joined #ruby
<becom33> this is how my hash is stored . when i do logs.each do |key, value|
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<becom33> the all the values doesnt show up . there are only two keys . and in all those two key . each has all the values
<becom33> I want each /etc/ item values to loop one by one
<becom33> ANYONE ?
* becom33 alo ?
spopescu has quit [Client Quit]
spopescu has joined #ruby
und3f has joined #ruby
ph^ has joined #ruby
<Hanmac> becom33 you didnt understand Hash/Array right?
<becom33> I do but this is confusing . do I have to do a another each loop inside it ?
<sailias> becom33: you want to loop through all the values or just the ones with etc?
<Hanmac> logs.each do |key, values| values.each{|v| p v } }
<becom33> sailias, well linux and win are keys . and values in them are values .
<becom33> i wanna read all those values
<becom33> Hanmac, yea thats what I wanna gonna do
<sailias> or hash.values.flatten.each{|v| puts v}
<KevinSjoberg> sailias approach is way cleaner.
adeponte has quit [Remote host closed the connection]
<Hanmac> imo there should be some kind of flatten_each
noyb has quit [Ping timeout: 244 seconds]
rubious has joined #ruby
dakine has joined #ruby
<koshii> Can someone help me with a Ruby Koans problem? I'm stuck on line 39 here ( https://gist.github.com/3578935 )
ph^ has quit [Ping timeout: 260 seconds]
<koshii> Apparently I'm not writing in the right regex, but I've tried EVERYTHING.
adeponte has joined #ruby
horrror has joined #ruby
digitalcakestudi has joined #ruby
HashNuke has joined #ruby
<Mon_Ouie> Somehow I always think the koans where you have to fill in a regexp like that are silly — because // matches everything
larissa has joined #ruby
ph^ has joined #ruby
qwebirc47241 has joined #ruby
<koshii> Well I haven't tried // :)
<koshii> Aaand it doesn't work.
<Mon_Ouie> What is the error exactly?
<koshii> [FillMeInError] exception expected, not Class: <ArgumentError> Message: <"wrong number of arguments (3 for 2)"> ---Backtrace--- /Users/w/Dropbox/rubyapps/edgecase-ruby_koans-9cb57ef/koans/about_methods.rb:3:in `my_global_method' /Users/w/Dropbox/rubyapps/edgecase-ruby_koans-9cb57ef/koans/about_methods.rb:42:in `block in test_calling_global_methods_with_wrong_number_of_arguments' ---------------
<Mon_Ouie> Because even what you had should have passed
<Mon_Ouie> That's line 42, not 39
grillo has quit [Ping timeout: 245 seconds]
<Mon_Ouie> And the placeholder is at line 41
<koshii> But I don't have 41 filled in.
<Mon_Ouie> That's why the test fails
<koshii> Argh. :-)
<koshii> OK I got past it. Thanks Mon_Ouie
deryl has joined #ruby
fearoffish has quit [Quit: Computer has gone to sleep.]
mrck has joined #ruby
mrck has quit [Remote host closed the connection]
mrck has joined #ruby
LennyLinux has quit [Remote host closed the connection]
noam_ has quit [Ping timeout: 256 seconds]
LennyLinux has joined #ruby
jjbohn has quit [Read error: Connection reset by peer]
cdepue has quit [Remote host closed the connection]
jjbohn has joined #ruby
cdepue has joined #ruby
atno has joined #ruby
adeponte has quit [Remote host closed the connection]
<Sou|cutter> if you have a method with an optional argument, is there a way to determine if the caller has specified that argument from within the method?
sailias has quit []
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
cdepue has quit [Ping timeout: 246 seconds]
<Mon_Ouie> Unfortunately, no; the closest you can get is set the default value to nil, and check if the argument is nil at the beginning of the method
LennyLinux has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
quest88 has joined #ruby
wobr has joined #ruby
sailias has joined #ruby
grillo has joined #ruby
jorge has joined #ruby
wobr has quit [Client Quit]
wobr has joined #ruby
LennyLinux has joined #ruby
sailias has quit [Client Quit]
brianpWins has quit [Quit: brianpWins]
Agis__ has quit [Quit: Agis__]
sepp2k has quit [Ping timeout: 246 seconds]
moshef has joined #ruby
shevy has quit [Ping timeout: 268 seconds]
LennyLinux has quit [Remote host closed the connection]
jorum has quit [Quit: Leaving...]
maletor has joined #ruby
wobr has quit [Ping timeout: 246 seconds]
schaerli_ has joined #ruby
SegFaultAX has joined #ruby
HashNuke has quit [Quit: HashNuke]
otters has quit [Ping timeout: 244 seconds]
schaerli has quit [Ping timeout: 244 seconds]
HashNuke has joined #ruby
LennyLinux has joined #ruby
asklov has joined #ruby
<moshef> if I have a class name Scope::ClassName
<moshef> how will I get only the class name? without some ugly regex/gsub?
<davidcelis> .to_s.gsub(/^.*::/, '')
LennyLinux has quit [Remote host closed the connection]
<davidcelis> i decided to combine both of the things you didn't want
<davidcelis> but IMO that's a pretty tame regex
ken_barber has joined #ruby
GuidovanPossum has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
<moshef> :D
ken_barber has quit [Read error: Connection reset by peer]
<moshef> seriously tho, nothing in the ruby spirit?
ken_barber has joined #ruby
hipertracker has quit [Quit: hipertracker]
ken_barber has quit [Read error: Connection reset by peer]
shevy has joined #ruby
<davidcelis> ?
<davidcelis> wasn't aware that the "ruby spirit" was to avoid gsub and regexp
jrajav has joined #ruby
<davidcelis> you could use ActiveSupport::Inflector from Rails, which provides a `demodulize` method
ken_barber has joined #ruby
<shevy> davidcelis hmm is it? I like .gsub
<shevy> Regexp.new I dont like that much though
<davidcelis> but ActiveSupport does the gsub i described above
<shevy> matchdata object I like
<shevy> what kills my brain is... Regexp.quote or whatever was the name again...
adeponte has joined #ruby
<shevy> ActiveSupport is evil
<davidcelis> ActiveSupport is pretty awesome, actually
adeponte has quit [Read error: Connection reset by peer]
<davidcelis> it provides a lot of good shit
sepp2k has joined #ruby
larissa has quit [Ping timeout: 264 seconds]
<bperry> shevy: I think I know what you are getting at, but evil is a strong word :)
<bperry> why do you think it is 'evil'
<shevy> bperry lemme count how many methods it has
<davidcelis> he probably just means the general fear of it being "magical"
<davidcelis> lol number of methods?
<bperry> yeah I am not sure why number of methods determined evilness
larissa has joined #ruby
<shevy> 1255 def methods, 21 define_method() methods, 87 instances of eval
verto|off is now known as verto
<shevy> hmm I may have miscounted the second, could be more as there is stuff like singleton_class.send(:define_method, "#{name}=") do |value|
* Hanmac can do ruby magic with sugar and without eval
<shevy> it has the awesome file called whiny_nil.rb
<davidcelis> most of ActiveSupport has good code climate
<shevy> "Extensions to +nil+ which allow for more helpful error messages for people who # are new to Rails."
<shevy> I tell you. Rails 5.0 will be a new language independent of ruby.
haxrbyte has joined #ruby
<shevy> add_whiner ::Array <-- did you know that Array is a whiner?
moshef has quit [Quit: moshef]
brianpWins has joined #ruby
<shevy> hmm
<shevy> what is an "inflection"?
<shevy> lemme show an example
larissa has quit [Ping timeout: 248 seconds]
<shevy> inflect.plural(/(ax|test)is$/i, '\1es')
<shevy> hmm
<shevy> oh
<Hanmac> it turns "testis" into "testes"
<shevy> testes???
<shevy> who would have thought that activesupport is naughty
ph^ has quit [Remote host closed the connection]
<Hanmac> or "axis" into "axes"
joshman_ has joined #ruby
t60442 has quit [Remote host closed the connection]
mascool has joined #ruby
t91785 has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
gloomer has joined #ruby
<bperry> the inflection actually does annoy
verto is now known as verto|off
maletor has quit [Quit: Computer has gone to sleep.]
moshef has joined #ruby
<moshef> I'd like to have a class where all my class methods are my instance methods run with self.method_name (or the other way around, don't care). what would be the best way to achieve that?
jorum has joined #ruby
ibash_ has joined #ruby
rins_ has joined #ruby
haxrbyte has quit [Remote host closed the connection]
veer has joined #ruby
veer is now known as Guest60729
haxrbyte has joined #ruby
Virunga has joined #ruby
Virunga has quit [Remote host closed the connection]
banisterfiend` has joined #ruby
<moshef> anyone?
carrythe1ero has joined #ruby
joshman_ has quit [Quit: Computer has gone to sleep.]
Viper has joined #ruby
Viper is now known as Guest91927
companion_ has joined #ruby
dnyy__ has joined #ruby
haxrbyte has quit [Ping timeout: 276 seconds]
jearvondharrie has joined #ruby
eighty4_ has joined #ruby
shaman42_ has joined #ruby
nahhh has quit [Read error: Operation timed out]
BSaboia has quit [Read error: Connection reset by peer]
NiteRain has quit [Ping timeout: 246 seconds]
ibash has quit [Ping timeout: 246 seconds]
carrythezero has quit [Ping timeout: 246 seconds]
cool has quit [Ping timeout: 246 seconds]
rins has quit [Read error: Connection reset by peer]
dnyy_ has quit [Ping timeout: 246 seconds]
companion has quit [Ping timeout: 246 seconds]
davidboy has quit [Ping timeout: 246 seconds]
neersighted has quit [Ping timeout: 246 seconds]
ibash_ is now known as ibash
tchebb has quit [Ping timeout: 246 seconds]
zii has quit [Ping timeout: 246 seconds]
Guest98333 has quit [Ping timeout: 246 seconds]
<Hanmac> moshef you are looking for module and module_function
GuidovanPossum has left #ruby [#ruby]
strcrzy_ has quit [Ping timeout: 246 seconds]
banisterfiend has quit [Ping timeout: 246 seconds]
ctevie has quit [Ping timeout: 246 seconds]
Gonzih has quit [Ping timeout: 246 seconds]
eighty4 has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Ping timeout: 246 seconds]
allsystemsarego has joined #ruby
shaman42 has quit [Ping timeout: 246 seconds]
allsystemsarego has quit [Quit: Leaving]
tris has quit [Excess Flood]
Hanmac has quit [Ping timeout: 246 seconds]
ctevie has joined #ruby
ctevie has joined #ruby
ctevie has quit [Changing host]
companion_ is now known as companion
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
ctevie has joined #ruby
ctevie has quit [Changing host]
berserkr has joined #ruby
companion has quit [Changing host]
companion has joined #ruby
strcrzy has joined #ruby
Virunga has joined #ruby
Hanmac has joined #ruby
<moshef> any example?
Virunga has quit [Remote host closed the connection]
HashNuke has quit [Quit: HashNuke]
GuidovanPossum has joined #ruby
GuidovanPossum has left #ruby [#ruby]
jasonkuhrt has joined #ruby
<Hanmac> >> module A; module_function; def x;end;end; A.x
<al2o3cr> (NilClass) nil
HashNuke has joined #ruby
otters has joined #ruby
HashNuke has quit [Client Quit]
nahhh has joined #ruby
jorge has quit [Remote host closed the connection]
t91785 has quit [Remote host closed the connection]
<Hanmac> >> module A; module_function; def x;end;end; class B; include A; def y;x;end;end; B.new.y
<al2o3cr> (NilClass) nil
t44360 has joined #ruby
<moshef> yeah found something, thanks dude
<moshef> let me try
ibash has quit [Quit: ibash]
<shevy> bperry what does "inflection" mean in rails context? or in active support context? I have not seen the word before actually... dictionary says... "turning point"
ph^ has joined #ruby
nim__ has quit [Ping timeout: 246 seconds]
<bperry> rails will inflect your table names for you, make them pluralized
<bperry> so tickets_to_be_procesed becomes tickets_to_be_processeds
<bperry> and then you wonder why all your sql queries don't work
<bperry> because it does it magically
DrShoggoth has joined #ruby
davidboy has joined #ruby
<fowl> aint life gr8
<shevy> ah I see
tchebb has joined #ruby
whowantstolivef has joined #ruby
whowantstolivef is now known as whowantstolivefo
NiteRain has joined #ruby
tris has joined #ruby
ilyam has joined #ruby
ilyam has quit [Client Quit]
mascool has quit [Ping timeout: 244 seconds]
tris has quit [Excess Flood]
asklov has quit [Ping timeout: 240 seconds]
KevinSjoberg has joined #ruby
<moshef> Hanmac: I def some_method in my module, and then include it within my class. On the class I can't run Class.some_method?
<moshef> am I missing something?
bd0 has joined #ruby
<bperry> including isn't inheritance?
schaerli_ has quit [Ping timeout: 252 seconds]
<koshii> What does the asterisk mean here def method_with_var_args(*args)
<koshii> Does * just mean "take as many arguments as you get" ?
<bperry> arbirary array of args
<bperry> arbitrary*
<koshii> bperry: So, as many as I want to give
<bperry> yep
<koshii> Cool. Thanks!
<KevinSjoberg> bperry: That will define a instance method, not a class method.
<bperry> some people call it splat
<KevinSjoberg> moshef: I mean
<moshef> KevinSjoberg: it doesn't define both class and instance?
<Hanmac> >> module A; def xyz; end;end; class B; extend A;end; B.xyz
<al2o3cr> (NilClass) nil
<KevinSjoberg> moshef: Defining methods directly in a module and then include this module within a class will generate instance methods.
<KevinSjoberg> moshef: No. If you want class methods you could extend the module.
<moshef> I know, but I want to have the same instance methods as class methods
<bperry> B << A
<bperry> er
<moshef> so all my instance methods will just be self.method ..
<bperry> B < A
<KevinSjoberg> moshef: That's commonly not want you want. But you could define a included-hook and extend from there.
itnomad has quit [Quit: Leaving]
<moshef> thats commonly not what I want?
<libryder> which version here do you guys prefer? https://gist.github.com/3faa52fd622c38c80444
Virunga has joined #ruby
<KevinSjoberg> moshef: If you just want your methods to on class level, just extend the module instead.
<Mon_Ouie> libryder: Remove the result =
<libryder> Mon_Ouie: then i would have to repeat the conditional at the bottom, or do it before the if statement
<moshef> KevinSjoberg: I want them both available to the class and instance level
<koshii> If I define a method without a return value explicitly set, is it true that the last value active in the method is what will be returned?
<moshef> koshii: yes
<Mon_Ouie> libryder: You can use an else
<koshii> moshef: Thanks
<libryder> true
<KevinSjoberg> moshef: This will do that: https://gist.github.com/5da243ed0926a7a2f7b8
<moshef> KevinSjoberg: and include that in another class
<moshef> ??
tris has joined #ruby
<becom33> what am I doing wrong here ? https://gist.github.com/b483bdab8a5fc1752be3
<moshef> think it should be a module, since I want to provide this functionality to another class..
<KevinSjoberg> moshef: Exactly.
<Mon_Ouie> becom33: You probably want parameters to be {:id => 1, …}
<moshef> KevinSjoberg: exactly to which question? :)
<KevinSjoberg> By including that module in another class you will trigger the included callback which will also extend the module itself.
<moshef> but you created a class not a module
<KevinSjoberg> Misstake of mine, it should be a module.
<KevinSjoberg> :)
<moshef> :)
<KevinSjoberg> moshef: Updated the code as well.
<moshef> KevinSjoberg: trying..
baphled has joined #ruby
Asher has quit [Quit: Leaving.]
<KevinSjoberg> moshef: Perfect!
ZachBeta has joined #ruby
<moshef> KevinSjoberg: it doesn't work :(
<moshef> oh wait, think its because I had the order wrong
noam has joined #ruby
<KevinSjoberg> Probably, I've tested it ;)
<becom33> Mon_Ouie, the problem is thats a example . this the method https://gist.github.com/332f43df4d87a87881e4
<moshef> KevinSjoberg: thanks
ZachBeta has quit [Client Quit]
havenn has joined #ruby
<moshef> include MyModule within the other class right?
<KevinSjoberg> Correct.
ph^ has quit [Remote host closed the connection]
<moshef> and you can Class.some_method and Class.new.some_method?
diegoviola has joined #ruby
<moshef> think I'm having a problem to load my classes, that freaking rails dev boost crappy plugin
alcuadrado has joined #ruby
<alcuadrado> can anyone help me with maruku?
<alcuadrado> I'm formatting a kindle book with markdown and compiling it with maruku
Virunga has quit [Remote host closed the connection]
<alcuadrado> but it gives me error when I use kindle specific pagebreaks: <mbp:pagebreak />
ringotwo has quit [Remote host closed the connection]
<moshef> KevinSjoberg: getting expected /.../my_module.rb to define my_module
Asher has joined #ruby
<moshef> KevinSjoberg: I'm using ruby 1.8.7 if this matters..
<KevinSjoberg> moshef: My code was just a guideline.
<KevinSjoberg> Hold on, I'll fix it so it work.
<moshef> KevinSjoberg: well not sure what I'm missing..
ringotwo has joined #ruby
deryl has quit [Quit: deryl]
havenn has quit [Remote host closed the connection]
<moshef> its supposed to be the full bass.class_eval do extend class methods etc?
nim_ has joined #ruby
havenn has joined #ruby
<moshef> base.cass_eval * ..
<KevinSjoberg> moshef: I've updated it. https://gist.github.com/5da243ed0926a7a2f7b8. Make sure you use the correct name. If the module name is MyModule you need to include it as such.
<KevinSjoberg> It's case sensitive.
<moshef> KevinSjoberg: its exactly what I'm doing..
<moshef> starting to become annoying :
<moshef> :(
<KevinSjoberg> What error message do you get?
havenn has quit [Ping timeout: 276 seconds]
<moshef> tried to include another class and had the expected to define bla bla
burgestrand has quit [Quit: Leaving.]
mercwith1mouth has joined #ruby
<moshef> but now I also tried to use it with the old class, and for Class.some_method I'm getting undefined but it does seem to work for Class.new.some_method
k_89 has joined #ruby
<moshef> think my ruby might need a refresh :D
baphled has quit [Ping timeout: 248 seconds]
burgestrand has joined #ruby
<moshef> can you access it both as instance and class?
<KevinSjoberg> moshef: Yes.
<moshef> ill create another class, lets see
<KevinSjoberg> moshef: Just ran my code through the terminal. Exactly the code from the gist. It worked. Tried MyClass.say_hello and MyClass.new.say_hello
<KevinSjoberg> Both returned "Hello!"
ibash has joined #ruby
ibash has quit [Client Quit]
Tref has joined #ruby
<moshef> hmm
<moshef> looks like something related to the loading is fucked up a bit
<KevinSjoberg> moshef: Although I'm using Ruby 1.9.3.
<moshef> oh
<moshef> can you try run it on 1.8.7?
<KevinSjoberg> Sure, I'll install it first. Give me a few seconds.
<moshef> thanks dude
<moshef> I'm about to do this shit un-DRY :x
Xeago has joined #ruby
<Hanmac> you could use some method_missing hook
<moshef> hmm
<Xeago> well, that restart last about 36 hours :\
<moshef> I thought I can just create a list of methods and tell ruby to create class one for each instance method
<KevinSjoberg> Hanmac: Well, that should be avoided if possible. Overriding method_missing should be last case solution.
<moshef> thought its 5 lines
<moshef> yeah I'm not that trilled with that idea either
<KevinSjoberg> moshef: I'm installing GCC, seems versions lower than 1.9.2 need the official GCC package.
<KevinSjoberg> moshef: Or wait, I'll just use the system version of Ruby.
<KevinSjoberg> One sec.
<moshef> you're not using rvm?
CarlB_the_great has joined #ruby
<moshef> dont you to get into too much trouble over this..
<Hanmac> moshef i use system ruby, because the system version is 1.9.3p194
<moshef> dont want*
<moshef> ok
<Mon_Ouie> becom33: What does it change?
ringotwo has quit [Remote host closed the connection]
<KevinSjoberg> moshef: This works fine in Ruby 1.8.7 as well.
<moshef> yeah I just changed it to something else and got the same problem
<KevinSjoberg> Open a IRB session and copy paste my code. Does that work?
<moshef> doing something wrong with the files themselves
baphled has joined #ruby
<KevinSjoberg> I've got to go. But the code is confirmed in 1.8.7 and above.
<moshef> hmm
cj3kim has quit [Quit: This computer has gone to sleep]
<moshef> last question, if my class is defined as Class::ClassName, this can disturb it anyway?
CarlB_th_ has joined #ruby
sysbeast has joined #ruby
meskyanichi has joined #ruby
ananthakumaran has quit [Ping timeout: 244 seconds]
<shevy> disturb what
<shevy> it is just a namespace
<moshef> hmm
kiyoura has quit [Quit: Leaving]
<shevy> class Class; class ClassName; end; end
<shevy> I dont understand why you want to modify class Class though
CarlB_the_great has quit [Ping timeout: 252 seconds]
<shevy> I want module Class to work :(
mikekelly has quit [Ping timeout: 250 seconds]
TheLZA has quit [Quit: Bye]
hipertracker has joined #ruby
<Xeago> urgh, my system is horribly broken
<moshef> shevy: what?
<shevy> Xeago dont use windows!!!
tommyvyo has quit [Quit: Computer has gone to sleep.]
<shevy> moshee, class Class works. module Class does not
<Xeago> I killed my os x install shevy
<shevy> Xeago and you put os x back up? or another OS
<Xeago> Xeago
<Xeago> err
<Xeago> o sx
<Xeago> lal
<shevy> hmm
<Xeago> I worked as root one day
<Xeago> ruined it
<shevy> I still have not tested oxs myself
<shevy> *osx
<Xeago> reinstalled over old install
<shevy> hehe
<Xeago> but as expected everything that was symlinekd
<Xeago> no longe ris
<shevy> welcome to linux! I reinstall like at least once every month
<shevy> oh wait... that is curious
<Xeago> safari doesn't start on this borken install
<shevy> what kind of symlinks do you mean?
<Xeago> symlinks I made
<shevy> symlinks from programs to system directories?
<shevy> ah ok... so your personal symlinks... not system ones
<Xeago> yea
<shevy> gobolinux uses a scheme like /Programs/Glibc/2.15 -> symlinked into /System/Links (and subdirectories there)
<Xeago> and git is not in $PATH
t44360 has quit [Remote host closed the connection]
t11933 has joined #ruby
_justin has joined #ruby
<Xeago> looks like xcode is no longer in my path
<Xeago> it used to be
<Xeago> but then again
<Xeago> no
<Xeago> never had it in my path
<Xeago> had command line tools installed
<Xeago> xcode is installed on this install, but commandline tools apparently not
<_justin> anybody who have worked with koala gem ??
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
cj3kim has quit [Client Quit]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
<_justin> the photo tagging is working perfectly on my local server, but it doesn't work once its uploaded on heroku
<fowl> HERO-KU
<_justin> fowl: hero-ku!!
ananthakumaran has joined #ruby
nadirvardar has joined #ruby
ringotwo has joined #ruby
johnjohnson has quit []
nadirvardar has quit [Client Quit]
ringotwo has quit [Remote host closed the connection]
havenn has joined #ruby
elaptics is now known as elaptics`away
nadirvardar has joined #ruby
siameseguy has quit [Quit: siameseguy]
phanousit has joined #ruby
<moshef> can I do something like ["method_one", "method_two".each do {|m| def m; puts "something nice"; end} ?
<burgestrand> moshee: use define_method, or define_singleton_method, depending on which one you want. It will do that for you.
Eldariof-ru has joined #ruby
Tref has quit [Quit: Tref]
<moshef> any example?
ananthakumaran has quit [Ping timeout: 244 seconds]
<moshef> k trying..
vitor-br has joined #ruby
canton7 has joined #ruby
phanousit has quit [Ping timeout: 272 seconds]
CarlB_th_ has quit [Remote host closed the connection]
gfontenot has joined #ruby
ph^ has joined #ruby
adeponte has joined #ruby
answer_42 has joined #ruby
gfontenot has quit [Client Quit]
<moshef> burgestrand: for params I just do define_method(name, param) ?
<burgestrand> moshef: how would that work?
jjbohn has quit [Read error: Connection reset by peer]
<moshef> it cant
<burgestrand> moshef: you give define_method a name, and a block. The block receives the parameters when invoked.
billyoc has joined #ruby
ananthakumaran has joined #ruby
havenn has quit [Remote host closed the connection]
<shevy> I want to ban the nick burgestrand
<shevy> when I read his nick I get hungry
<moshef> lol
<shevy> :(
berkes has joined #ruby
jjbohn has joined #ruby
frogprince_mac has joined #ruby
<Hanmac> the other nick ... the ban fiend is more anoying
<moshef> shevy: can't pass default value in 1.8.7, seems like its possible in later versions
<moshef> ruby versions *
ph^ has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
CarlB_the_great has joined #ruby
<shevy> Hanmac yeah but when it comes to repeated horse p0rn spam the only solution is to ignore the spammer
_justin has quit [Remote host closed the connection]
<moshef> k it works anyhow just raises some warning
Chryson has joined #ruby
ken_barber1 has joined #ruby
Xeago has joined #ruby
moshef has quit [Quit: moshef]
<Xeago> blurgh
<Xeago> Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: (index >= 0) && (index < [_itemArray count])'
<Xeago> when I start safari
ken_barber has quit [Ping timeout: 260 seconds]
xorpnox has joined #ruby
schaerli has joined #ruby
<shevy> hehe
<Xeago> anyone mind looking it up
<Xeago> as I kinda have no browser to google :\
Xeago has quit [Remote host closed the connection]
<shevy> k
<canton7> "updating safari may help"
<shevy> "Download and install Safari 6 from this link (it's the link used by software update to download Safari6 for Lion 10.7.4) :"
Xeago has joined #ruby
<shevy> "Have you restarted in Safe Mode or done both a iMac SMC and PRAM reset? If not do all of these at least 2x each. The Safe Mode restart will clear some caches. "
jenrzzz has quit [Ping timeout: 244 seconds]
schaerli has quit [Remote host closed the connection]
<shevy> Xeago come to the dark side man
<shevy> come to linux
ph^ has joined #ruby
adeponte has quit [Remote host closed the connection]
t11933 has quit [Remote host closed the connection]
t45014 has joined #ruby
<Xeago> running linux on every other machine besides this one
<Xeago> Safe Mode, is not single user mode right>
Eldariof59-ru has joined #ruby
<fowl> run it in windows 96 mode
lggr has joined #ruby
Eldariof-ru has quit [Ping timeout: 240 seconds]
savage- has quit [Remote host closed the connection]
<shevy> Xeago sorry absolutely no idea
ringotwo has joined #ruby
<shevy> as I have a horrible brain, I always write down useful things for linux
savage- has joined #ruby
moshef has joined #ruby
brianpWins has quit [Ping timeout: 246 seconds]
noam has quit [Ping timeout: 246 seconds]
jasonkuhrt has quit [Quit: Leaving...]
brianpWins has joined #ruby
seanyo has joined #ruby
moshef has quit [Client Quit]
mercwith1mouth has quit [Ping timeout: 264 seconds]
schaerli has joined #ruby
ph^ has quit [Read error: Connection reset by peer]
jorge has joined #ruby
noam has joined #ruby
supergiantrobot_ has quit [Quit: supergiantrobot_]
frogprince_mac has quit [Quit: Leaving...]
BrianJ has joined #ruby
daniel_hinojosa has joined #ruby
thaz has joined #ruby
zii has joined #ruby
peregrine81 has quit [Quit: Computer sleeping.]
Gonzih has joined #ruby
Trudko has quit [Ping timeout: 245 seconds]
<Xeago> let's hope that installing safari6 will be the solution
<Xeago> joooh,
<Xeago> stuff started working
<Xeago> !
Eldariof27-ru has joined #ruby
tiripamwe has quit [Ping timeout: 276 seconds]
schaerli has quit [Remote host closed the connection]
quest88 has left #ruby [#ruby]
Eldariof59-ru has quit [Ping timeout: 240 seconds]
Axsuul has joined #ruby
Vert has joined #ruby
vitor-br has quit [Quit: Saindo]
Virunga has joined #ruby
Xeago has quit [Remote host closed the connection]
alexwh has joined #ruby
Poapfel has quit [Quit: WeeChat 0.3.7]
Xeago has joined #ruby
otters has quit [Quit: WeeChat 0.3.8]
Poapfel has joined #ruby
parus has quit [Read error: Operation timed out]
parus_ has joined #ruby
eridani has quit [Read error: Connection reset by peer]
eridani has joined #ruby
Poapfel has quit [Client Quit]
Poapfel has joined #ruby
peregrine81 has joined #ruby
jjbohn has quit [Quit: Leaving...]
wereHamster has quit [Ping timeout: 265 seconds]
jjbohn has joined #ruby
wereHamster has joined #ruby
snearch has quit [Quit: Verlassend]
jorge has quit [Remote host closed the connection]
billyoc has quit [Quit: switching to ERC]
jorge has joined #ruby
jorge has quit [Remote host closed the connection]
Eldariof-ru has joined #ruby
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
t45014 has quit [Remote host closed the connection]
t27594 has joined #ruby
Eldariof27-ru has quit [Ping timeout: 252 seconds]
ananthakumaran has quit [Ping timeout: 244 seconds]
k0m has joined #ruby
<jearvondharrie> when you define a ==method say def ==(game); true; end do you pass in the argument like a regular method == game ?
jorge has joined #ruby
alta is now known as alta189
xorpnox has quit [Quit: xorpnox]
Foxandxss has joined #ruby
<canton7> yup.
berkes has quit [Quit: Ex-Chat]
<k0m> yeah
<fowl> >> o = Object.new; def o.==(x) puts x * 7298347 end; o == 50
<al2o3cr> (NilClass) nil, Console: 364917350
<canton7> grr my clipboard's gone on broken again. otherwise i've got a pastie :P
xnm has joined #ruby
havenn has joined #ruby
nadirvardar has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<shevy> what's up with today's failures
<shevy> first Xeago kills his computer
<shevy> then canton7 breaks his clipboard
<shevy> what will happen next!
seanyo_ has joined #ruby
* canton7 hangs head in shame
<jearvondharrie> http://pastie.org/private/rk0faukroudztlla3qgzmw i dont understand why this is passing maybe i am not reading the instructions right
<shevy> I would change self.games = games to @games = games
rdg has joined #ruby
<shevy> are you sure that def ==(game) works
seanyo has quit [Ping timeout: 240 seconds]
<fowl> i just showed you
<Hanmac> >> a=(0/0.0); a == a
<al2o3cr> (FalseClass) false
<fowl> >> o = Object.new; def o.==(x) puts "#{x} is a newbie!" end; o == "shevy"
<al2o3cr> (NilClass) nil, Console: shevy is a newbie!
<shevy> fowl, no I meant his code
<jearvondharrie> shevy: not sure its from codeschool
<shevy> name == game.name && system == game.system && year == game.year
<shevy> because you use such things which look like local variables
<fowl> shevy: you newbie, do you not see the attr_accessor?
<k0m> So I just went through this http://vim-adventures.com/ and want to learn more about Vim and configuring it. Does anyone know a good place to start?
<shevy> fowl well then there is no error in his code I suppose
seanyo has joined #ruby
alta189 is now known as alta
<jearvondharrie> but == in game.rb takes a game and in Lib class game == games passes?
<fowl> jearvondharrie: you dont show the call to Library#has_game? or where its initialized
<fowl> jearvondharrie: i dont see anything wrong with that code
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
seanyo_ has quit [Ping timeout: 264 seconds]
havenn has quit [Ping timeout: 240 seconds]
<shevy> jearvondharrie if you have an error, what is the actual error?
rdg has quit [Quit: ttfn]
<shevy> k0m #vim :D the basic key commands are quite easy to learn ... 5dd <-- delete 5 lines
Takehiro has quit [Remote host closed the connection]
<jearvondharrie> shevy: not any error, just dont understand the reason the code passes the test
<jearvondharrie> shevy: giving it a second read to see if im missing a small detail
johnjohnson has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
<Hanmac> the only commands i use in vim are q! and wq!
<matti> shevy shevy shevy
<shevy> I dunno, I hate this code you showed :)
<shevy> let's ask detective matti to have a look
<fowl> Hanmac: you have to press i to start typing, lul
<shevy> matti what is wrong with this code here -> http://pastie.org/private/rk0faukroudztlla3qgzmw
<matti> Amm
<fowl> jearvondharrie: it seems to me that your code does what the instructions say, that is to check for equality with the game system and year
goodieboy has joined #ruby
rubious has quit [Quit: Leaving...]
peregrine81 has quit [Quit: Goodbye.]
jarred has joined #ruby
<jearvondharrie> fowl: but if you look at Game#== they are passing in game not games
<matti> shevy: I am onmobile.
<matti> shevy: What is the problem?
<Hanmac> shevy the has_game? is not so good
<Hanmac> imo it should be something like @games.include?(game)
<jearvondharrie> also game == game makes it pass their test
<jearvondharrie> i guess what they are trying to do is to see if the game passed in is in the games array
<matti> Can you minin Comparable and implement what is needed?
<matti> mixin*
havenn has joined #ruby
<matti> I might be missing some context ;-)
<Hanmac> ==(game) should use "@name" insteat of "name"
<matti> Isnt == for values vs. eql?
k0m has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<BrianJ> I'm running a standalone ruby script and I need to pass in variables. I'm assigning the variables values to ARGV[0] through 6.. is there a better way of doing this with like symbols?
<fowl> jearvondharrie: like i said, its not shown how has_game? is called, at least not to me..
<matti> BrianJ: OptParse?
<BrianJ> matti: I'll take a look into that
<jearvondharrie> fowl: i am not sure either, but i think they probably have some iteration method and then calls has_game? one each iteration
<matti> BrianJ: ARGF
chimay has quit [Quit: WeeChat 0.3.9-rc1]
tommyvyo has joined #ruby
CarlB_the_great has quit [Remote host closed the connection]
ringotwo has quit [Remote host closed the connection]
seanyo has quit [Ping timeout: 245 seconds]
horrror has quit [Quit: horrror]
berkes has joined #ruby
<shevy> matti I think the problem is that jearvondharrie did not write the code by himself
<shevy> BrianJ can u show code?
jbw has quit [Ping timeout: 244 seconds]
Eplemosen has joined #ruby
jasonkuhrt has joined #ruby
Eplemosen has quit [Client Quit]
otters has joined #ruby
<shevy> BrianJ ah I see
haxrbyte has joined #ruby
<shevy> BrianJ quite a lot of parameters to your script :)
<BrianJ> shevy: ya, trying to make it a bit cleaner
horrror has joined #ruby
Eldariof-ru is now known as eldariof
eldariof has quit []
eldariof has joined #ruby
yxhuvud has quit [Ping timeout: 244 seconds]
Eplemosen has joined #ruby
eldariof has quit [Client Quit]
<shevy> BrianJ well
<shevy> BrianJ I think since you need 7 arguments, there is not much you can make it cleaner
<shevy> but what I would do is
<shevy> (a) write a class that handles this
jjbohn has quit [Quit: Leaving...]
<shevy> (b) use methods, even for ARGV
<BrianJ> so a class that takes in the ARGVs and then sets them to variables?
jjbohn has joined #ruby
gfontenot has joined #ruby
thaz has quit [Quit: thaz]
<shevy> via a method, yes
<shevy> where I never use ARGV directly
<shevy> def set_argv(i = ARGV)
<shevy> or something like that
Takehiro has joined #ruby
monkegjinni has joined #ruby
jbw has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<shevy> matti yeah that looks nicer
<shevy> jearvondharrie, try to write code like matti does
<fowl> dafuq? its called codeschool for a reason
fowl has left #ruby ["Leaving"]
Proshot has joined #ruby
haxrbyte has quit [Remote host closed the connection]
jorum has quit [Quit: Leaving...]
wallerdev has joined #ruby
<matti> shevy: It is still not quite a proper in a OO-Ruby-sense.
<matti> jearvondharrie: Refresh this gits.
<shevy> perfection is hard to reach
<matti> LOL
<matti> shevy: ;d
<shevy> :)
<shevy> I am rewriting a 4 year old .rb file right now... *sigh*
<matti> shevy: Old code looks like a Python developer was porting to Ruby.
<shevy> hehehe
<matti> I mean with the self. etc
Knodi has joined #ruby
<jearvondharrie> matti: got a link. doesnt look like the link i have got updated
<matti> jearvondharrie: There is list of changes on the right side ;]
<matti> jearvondharrie: Gists are in git ;d
horrror has quit [Quit: horrror]
<matti> jearvondharrie: Anyway, not sure if this is what you wanted.
berkes has quit [Quit: Ex-Chat]
<matti> jearvondharrie: And when implementing proper object protocol with equality checking etc... have a look at http://stackoverflow.com/questions/7156955/whats-the-difference-between-equal-eql-and
<jearvondharrie> matti: thanks
<matti> shevy: I am taking off my detective hat ;]
<matti> shevy: Happy?
<shevy> matti hmmm
<shevy> matti what hat will you wear after that?
<matti> shevy: I will put my "Wizzard" hat back ;d
<matti> [ Reference to Pratchett... ]
t27594 has quit [Remote host closed the connection]
<burgestrand> Your robe and wizard hat?
t3298 has joined #ruby
<matti> Yes, but it says "Wizzard" :)
jrajav has quit [Quit: The best darkness is strange and surprising]
gfontenot has quit []
<burgestrand> (:
<shevy> lol
brianpWins has quit [Quit: brianpWins]
hipertracker has quit [Quit: hipertracker]
gfontenot has joined #ruby
naz has quit [Ping timeout: 244 seconds]
<shevy> it is time for a bash org quote
Urtokk has quit [Ping timeout: 244 seconds]
X-Jester has quit [Read error: Connection reset by peer]
X-Jester has joined #ruby
<matti> Haha
wvms has joined #ruby
<matti> Whyzard.
* matti is not near the might _why.
und3f has quit [Quit: Leaving.]
<matti> Anybody plays ME3 MP?
<matti> I am tired of random people not knowing how to play in Silver difficulty.
sysbeast has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
goodieboy has quit [Remote host closed the connection]
manizzle has joined #ruby
banseljaj is now known as imami|afk
answer_42 has quit [Remote host closed the connection]
replore_ has joined #ruby
s1n4 has quit [Quit: peace out]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
mohits has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
rakl has joined #ruby
allsystemsarego has quit [Quit: Leaving]
jjbohn has quit [Quit: Leaving...]
bd0 has quit [Quit: tempus fugit]
wallerdev has quit [Quit: wallerdev]
erichmenge has joined #ruby
erichmenge has quit [Client Quit]
Knodi has quit [Quit: Knodi]
schaerli has joined #ruby
papik has joined #ruby
Takehiro has quit [Remote host closed the connection]
papik has quit [Client Quit]
Guest5516 has quit [Ping timeout: 252 seconds]
schaerli has quit [Remote host closed the connection]
<jearvondharrie> matti, shevy i think i figured out their example out
s0ber has quit [Read error: Connection reset by peer]
adeponte has joined #ruby
schaerli has joined #ruby
graspee has quit [Quit: leaving]
s0ber has joined #ruby
Danielpk_ has joined #ruby
Danielpk has quit [Ping timeout: 246 seconds]
Danielpk_ is now known as Danielpk
tiripamwe has joined #ruby
bapa has quit [Remote host closed the connection]
bapa has joined #ruby
croz has quit [Quit: changing servers]
schaerli has quit [Remote host closed the connection]
croz has joined #ruby
croz has quit [Max SendQ exceeded]
croz has joined #ruby
croz has quit [Max SendQ exceeded]
knightblader has quit [Quit: WeeChat 0.3.8]
croz has joined #ruby
croz has quit [Max SendQ exceeded]
mercwith1mouth has joined #ruby
croz has joined #ruby
croz has quit [Max SendQ exceeded]
FifthWall has joined #ruby
croz has joined #ruby
schaerli has joined #ruby
goodieboy has joined #ruby
jorge has quit [Remote host closed the connection]
billyoc has joined #ruby
schaerli has quit [Remote host closed the connection]
t3298 has quit [Remote host closed the connection]
t58187 has joined #ruby
Xeago_ has joined #ruby
havenn has quit [Remote host closed the connection]
ryanf has joined #ruby
robustus has quit [Ping timeout: 244 seconds]
specialGuest has joined #ruby
adeponte has quit [Remote host closed the connection]
specialGuest has joined #ruby
specialGuest has quit [Changing host]
dmiller has joined #ruby
justsee has joined #ruby
dakine has quit [Ping timeout: 246 seconds]
Xeago has quit [Ping timeout: 268 seconds]
Guest60729 is now known as lolsuper_
lolsuper_ has quit [Changing host]
lolsuper_ has joined #ruby
wallerdev has joined #ruby
jorge has joined #ruby
aknagi has joined #ruby
progme has joined #ruby
<progme> Does ruby complain about whitespace?
<reactormonk> progme: define
alanp has joined #ruby
arturaz has quit [Read error: Connection reset by peer]
<progme> like python
<reactormonk> ah nope, blocks are closed by 'end' or '}'
<progme> ok, thanks
alanp has joined #ruby
<reactormonk> progme: I think the term is 'indent-based syntax'
<progme> interesting... i like whitespace better, lol
<aknagi> progme: You'll love this language then; http://compsoc.dur.ac.uk/whitespace/
<aknagi> :)
alanp_ has quit [Ping timeout: 244 seconds]
hipertracker has joined #ruby
<progme> Simply print it out!
<progme> that's beautiful
<aknagi> pradeepto: lol
dev_ryan70 has joined #ruby
mrck has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
dangerousdave has quit [Ping timeout: 265 seconds]
alcuadrado has quit [Quit: killall -9 alcuadrado]
jjbohn has joined #ruby
bradhe has quit [Remote host closed the connection]
dev_ryan70 has quit [Remote host closed the connection]
havenn has joined #ruby
mikepack has joined #ruby
ph^ has joined #ruby
gfontenot has quit []
xnm has quit [Quit: WeeChat 0.3.7]
shadoi has joined #ruby
naz has joined #ruby
jjbohn has quit [Client Quit]
fyolnish_ has joined #ruby
boboy77b has joined #ruby
boboy77b has left #ruby [#ruby]
<progme> is Object a type in ruby?
pingfloyd has joined #ruby
imami|afk is now known as banseljaj
<aknagi> progme: Object (with a capital) is a class.
dmiller has quit [Remote host closed the connection]
schaerli has joined #ruby
otters has quit [Ping timeout: 244 seconds]
<aknagi> progme: It's kind of the mother of all things in ruby, because most things are objects.
t58187 has quit [Remote host closed the connection]
<progme> Ok
t25734 has joined #ruby
<progme> I am getting an obscure error with a Ruby app and I am not a Ruby guy... So I am trying to figure out if Ruby or Rails is out of date
<shevy> and what error is that
wo66le has joined #ruby
<aknagi> progme: Yer - pastie it.
<progme> It's a one liner: /usr/local/redmine-2.0/plugins/engines/init.rb:3: undefined local variable or method `config' for main:Object (NameError)
goodieboy has quit [Remote host closed the connection]
<progme> config appears to be a rails thing
<shevy> then this method does not exist
<shevy> rails uses ruby code just as well
<shevy> but redmine is a rails app
<progme> The redmine site says I should be on Ruby 1.8.7, 1.9.2 or 1.9.3. Currently, I am on 1.8.7 and would like to upgrade to 1.9.2 but do not know how or if this would even fix my problem
<progme> my rails and gems versions are in line with the reqs
goodieboy has joined #ruby
nwest has joined #ruby
twinturbo has joined #ruby
twinturbo has quit [Client Quit]
<aknagi> progme: Looks like that code is either a redmine plugin, or someone added it. This directory is usually empty - https://github.com/redmine/redmine/tree/2.0-stable/plugins
schaerli has quit [Remote host closed the connection]
<progme> ok, ill move it out and see what happens
samflores has joined #ruby
jorge_ has joined #ruby
jorge has quit [Read error: Connection reset by peer]
banseljaj is now known as imami|afk
samflores has left #ruby [#ruby]
Xeago has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
Xeago__ has joined #ruby
berserkr has quit [Quit: Leaving.]
bier has quit [Ping timeout: 240 seconds]
pingfloyd has quit [Quit: pingfloyd]
Xeago has quit [Ping timeout: 252 seconds]
<koshii> Can I just say again how much Ruby Koans rocks? This is the best method I've ever seen of learning a programming language.
bier has joined #ruby
fearoffish has joined #ruby
mengu has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
replore_ has quit [Remote host closed the connection]
malcolmva has quit [Quit: Leaving]
malcolmva has joined #ruby
Proshot has quit [Read error: Connection reset by peer]
schaerli has joined #ruby
dev_ryan70 has joined #ruby
<macer1> hey I have a problem >_>
<macer1> some user using my gem run into segfaulting openssl at http module...
wo66le has quit [Quit: Computer has gone to sleep.]
<macer1> and we have same ruby & openssl versions
rakl has quit [Quit: sleeping]
<reactormonk> macer1: same OS?
goodieboy has quit [Remote host closed the connection]
<macer1> he is using OSX, I am using linux
replore_ has joined #ruby
<macer1> here's a stacktrace.. https://gist.github.com/b605807f14a6fc0ae69b
schaerli has quit [Remote host closed the connection]
<macer1> and it is crashing every time
<macer1> emm or no its not
dev_ryan70 has quit [Ping timeout: 276 seconds]
gloomer has quit [Ping timeout: 245 seconds]
justsee has quit [Quit: Leaving...]
Targen_ has joined #ruby
Targen has quit [Ping timeout: 244 seconds]
datapolitical has joined #ruby
gloomer has joined #ruby
fantazo has joined #ruby
khakimov has quit [Ping timeout: 252 seconds]
t25734 has quit [Remote host closed the connection]
t51447 has joined #ruby
otters has joined #ruby
yasushi has joined #ruby
TTilus has quit [Ping timeout: 244 seconds]
khakimov has joined #ruby
Takehiro has joined #ruby
TTilus has joined #ruby
jenrzzz has joined #ruby
erichmenge has joined #ruby
yasushi has quit [Ping timeout: 245 seconds]
Tearan has joined #ruby
SCommette has joined #ruby
havenn has quit [Remote host closed the connection]
replore_ has quit [Remote host closed the connection]
Tearan has quit [Client Quit]
Takehiro has quit [Ping timeout: 252 seconds]
punkrawkR has quit [Read error: Connection reset by peer]
LouisGB has quit [Ping timeout: 246 seconds]
lkba has quit [Ping timeout: 248 seconds]
datapolitical has quit [Quit: Leaving]
SCommette has quit [Quit: SCommette]
replore_ has joined #ruby
hipertracker has quit [Quit: hipertracker]
Markvilla has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
SCommette has joined #ruby
dakine has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
rakl has joined #ruby
Foxandxss has joined #ruby
jonathanwallace has quit [Ping timeout: 272 seconds]
tiripamwe has quit [Ping timeout: 268 seconds]
becom33 has quit [Ping timeout: 248 seconds]
acies has quit [Ping timeout: 248 seconds]
brianpWins has joined #ruby
becom33 has joined #ruby
gfontenot has joined #ruby
iifseq has joined #ruby
SCommette has quit [Quit: SCommette]
bradhe has joined #ruby
acies has joined #ruby
<iifseq> I am sorry if this question is silly, but it is ungoogleable. I am new to programming, and when I read ruby code I always find this thing "=>", and it seems to mean '(the thing to the left) has the value (the thing to the right)'. What is this => called?
justsee has quit [Quit: Leaving...]
lkba has joined #ruby
<seanstickle> iifseq: hash-rocket
<canton7> in ruby, it's normally called "hash rocket syntax", or something similar
<iifseq> Thank you, and most of all, thank you for being patient with a noob!
replore_ has quit [Remote host closed the connection]
ph^ has quit [Read error: Connection reset by peer]
ph^ has joined #ruby
hipertracker has joined #ruby
fyolnish_ has quit [Remote host closed the connection]
iifseq has quit [Quit: Page closed]
TheShadowFog has joined #ruby
TomRone has quit [Ping timeout: 252 seconds]
GraemeLion has joined #ruby
erichmenge has quit [Quit: Linkinus - http://linkinus.com]
dmiller has joined #ruby
TomRone has joined #ruby
dakine has quit [Read error: Connection reset by peer]
dakine has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
t51447 has quit [Remote host closed the connection]
t29232 has joined #ruby
sepp2k has quit [Remote host closed the connection]
dev_ryan70 has joined #ruby
Cache_Money has joined #ruby
progme has quit [Quit: Leaving]
mercwith1mouth has quit [Ping timeout: 244 seconds]
dev_ryan70 has quit [Ping timeout: 246 seconds]
manizzle has quit [Ping timeout: 272 seconds]
mercwith1mouth has joined #ruby
richwestcoast has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
manizzle has joined #ruby
jonathanwallace has joined #ruby
GraemeLion has quit [Quit: Lost terminal]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
Virunga has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby