apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<havenwood> nobitanobi: #one?
<havenwood> hmm
<Kamuela> onestring.eql? twostring, threestring, fourstring # does that work?
<benzrf> [1, 2, 3].one
<benzrf> ?
<benzrf> >> [1, 2, 3].one
<eval-in> benzrf => undefined method `one' for [1, 2, 3]:Array (NoMethodError) ... (https://eval.in/67405)
<benzrf> whats one
<benzrf> >> [1, 2, 3].one?
<eval-in> benzrf => false (https://eval.in/67406)
<benzrf> sounds good
<benzrf> >> [?a, ?a, ?a].one?
<eval-in> benzrf => false (https://eval.in/67408)
<nobitanobi> oh great
<benzrf> or nott
<nobitanobi> oh
<nobitanobi> shut
<nobitanobi> :D
<nobitanobi> hold on
yfeldblu_ has quit [Ping timeout: 272 seconds]
<nobitanobi> >> ['a','a','a'].one?
<eval-in> nobitanobi => false (https://eval.in/67409)
sam113102 has joined #ruby
myappleguy has joined #ruby
sam113102 has quit [Client Quit]
Xeago_ has quit [Remote host closed the connection]
maletor has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
Guest17043 has quit [Read error: Connection reset by peer]
whunt has quit [Quit: Computer has gone to sleep.]
mary5030 has joined #ruby
ngoldman has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
<Kamuela> nobitanobi, you can't pass multiple strings to .eql? ??
<Kamuela> onestring.eql? twostring, threestring, fourstring # does that work?
sam113101 has quit [Quit: ZNC - http://znc.in]
<havenwood> >> ['this', 'this', 'that'].group_by { |i| i }.one?
<eval-in> havenwood => false (https://eval.in/67414)
<havenwood> group_by.one?
<havenwood> hrm, no
<nobitanobi> anyway, I will just do ifs
<nobitanobi> ~
<nobitanobi> Kamuela, eql? just expects one argument
<benzrf> >> [1, 1, 1].product
<eval-in> benzrf => [[1], [1], [1]] (https://eval.in/67415)
<havenwood> >> ['a', 'a', 'a'].group_by { |x| x }.one?
<eval-in> havenwood => true (https://eval.in/67416)
<benzrf> >> l = [1, 1, 1];
<eval-in> benzrf => [1, 1, 1] (https://eval.in/67417)
<benzrf> >> l = [1, 1, 1]; l.product(l)
<eval-in> benzrf => [[1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1]] (https://eval.in/67418)
<benzrf> >> l = [1, 1, 1]; l.product(l).collect &:==
<eval-in> benzrf => wrong number of arguments (0 for 1) (ArgumentError) ... (https://eval.in/67420)
xk_id has joined #ruby
jamblack has joined #ruby
<benzrf> dang
bradsmith has quit [Remote host closed the connection]
dangerousdave has quit [Ping timeout: 272 seconds]
CreativeEmbassy has joined #ruby
ngoldman has joined #ruby
<nobitanobi> haha
<nobitanobi> no worries benzrf
werdnativ_ has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
<benzrf> >> l = [1, 1, 1]; l.product(l).collect {|a, b| a == b}
<eval-in> benzrf => [true, true, true, true, true, true, true, true, true] (https://eval.in/67423)
<benzrf> why no sections ruby
<benzrf> -.-
<benzrf> >> l = [1, 1, 1]; l.product(l).collect {|a, b| a == b}.all?
<eval-in> benzrf => true (https://eval.in/67425)
bradsmith has joined #ruby
<benzrf> >> l = [1, 2, 1]; l.product(l).collect {|a, b| a == b}.all?
<eval-in> benzrf => false (https://eval.in/67426)
jamblack has quit [Client Quit]
Mars has joined #ruby
freezey has quit [Remote host closed the connection]
werdnativ_ has quit [Client Quit]
Mars is now known as Guest94527
asteros has quit [Quit: asteros]
dayepa has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 246 seconds]
sepp2k has quit [Quit: Leaving.]
freezey has joined #ruby
werdnativ has quit [Ping timeout: 245 seconds]
davidboy has joined #ruby
ngoldman has quit [Read error: Connection reset by peer]
<havenwood> another way: .each_cons(2).all? { |a, b| a == b }
pw3 has quit [Ping timeout: 250 seconds]
jamblack has joined #ruby
<nobitanobi> thanks guys. interesting
<benzrf> god dammit
jamesaanderson has joined #ruby
<benzrf> >> [1, 2, 3].each_cons
<eval-in> benzrf => wrong number of arguments (0 for 1) (ArgumentError) ... (https://eval.in/67432)
<benzrf> >> [1, 2, 3].each_cons 2
<eval-in> benzrf => #<Enumerator: [1, 2, 3]:each_cons(2)> (https://eval.in/67433)
<benzrf> >> [1, 2, 3].each_cons(2).to_a
<eval-in> benzrf => [[1, 2], [2, 3]] (https://eval.in/67434)
mary5030 has quit [Remote host closed the connection]
dayepa has joined #ruby
<benzrf> I like livescript's thing where a spaced dot implicitly closes a no-paren call
<benzrf> i.e.
<nobitanobi> >> ["a","a","a"].uniq.length == 1
<eval-in> nobitanobi => true (https://eval.in/67435)
<nobitanobi> >> ["a","a","b"].uniq.length == 1
<eval-in> nobitanobi => false (https://eval.in/67436)
<havenwood> uniq...
dnyy_ has joined #ruby
drumsrgr8forn8 has joined #ruby
<benzrf> foo.bar baz.quux == foo.bar(baz.quux)
<benzrf> but
mary5030 has joined #ruby
<benzrf> foo.bar baz .quux == foo.bar(baz).quux
<havenwood> benzrf: yeah, i'm not thinking clearly - i suck at multi-tasking
vlad_starkov has quit [Remote host closed the connection]
<havenwood> uniq.one?
<havenwood> ^
<nobitanobi> +1
<nobitanobi> >> ["a","a","b"].uniq.one?
<eval-in> nobitanobi => false (https://eval.in/67439)
<nobitanobi> >> ["a","a","a"].uniq.one?
<eval-in> nobitanobi => true (https://eval.in/67440)
<nobitanobi> nice! thanks guys
ngoldman has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy_ is now known as dnyy
bradsmith has quit [Ping timeout: 272 seconds]
Solnse has joined #ruby
weszlem has quit []
<Kamuela> ["string1","string2","string3"].include? myString
vlad_starkov has joined #ruby
<benzrf> dur
<benzrf> >.>
<benzrf> no wait
<benzrf> that's only if ONE of them is equal
<benzrf> *one or more
mary5030 has quit [Ping timeout: 245 seconds]
drumsrgr8forn8 has quit [Ping timeout: 245 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<Kamuela> >> ["string1","string2","string3"].include? "string1"
<eval-in> Kamuela => true (https://eval.in/67450)
<Kamuela> >> ["string1","string2","string3"].include? "string12"
<eval-in> Kamuela => false (https://eval.in/67452)
<Kamuela> >> ["string1","string2","string3"].include? "string"
<eval-in> Kamuela => false (https://eval.in/67453)
<Kamuela> word
<Kamuela> :(
dkamioka has joined #ruby
<deepy> >> ["str1","str2","str3"].include? ["str1","str2"]
<eval-in> deepy => false (https://eval.in/67455)
<deepy> :-(
<Kamuela> now we're all playing with the bot :)
ehc has quit [Quit: ehc]
hiroyuki_ has quit [Ping timeout: 240 seconds]
whunt has joined #ruby
mlpinit has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
mengu has quit [Remote host closed the connection]
mlpinit has quit [Client Quit]
einarj has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
kofno has quit [Ping timeout: 272 seconds]
dkamioka has quit [Ping timeout: 240 seconds]
threesome has joined #ruby
kofno has joined #ruby
Kneferilis has quit [Ping timeout: 245 seconds]
ssvo has quit [Quit: Lost terminal]
kayloos has joined #ruby
mengu has quit [Ping timeout: 246 seconds]
hogeo has joined #ruby
jhulten has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 264 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamblack has quit [Quit: jamblack]
bootcoder has quit [Read error: Connection reset by peer]
mojjojo has quit [Quit: mojjojo]
fgo has quit [Remote host closed the connection]
bootcoder has joined #ruby
bean has joined #ruby
Beoran_ has joined #ruby
predator117 has joined #ruby
Soda has quit [Read error: Connection reset by peer]
kayloos has quit [Ping timeout: 246 seconds]
<benzrf> is there a way to get a list of fields in a struct
<benzrf> nvm got ir
<benzrf> *it
jamesaanderson has joined #ruby
taternuts has joined #ruby
asteros has joined #ruby
gustavo__ has joined #ruby
Beoran__ has quit [Ping timeout: 246 seconds]
ephemerian has quit [Quit: Leaving.]
predator217 has quit [Ping timeout: 272 seconds]
<DanBoy> ruby has structures now
simplyaubs has quit [Quit: simplyaubs]
jamblack has joined #ruby
daxroc1 has quit [Quit: Leaving.]
coldmethod1 has joined #ruby
coldmethod has quit [Remote host closed the connection]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DanBoy> ?
sam113101 has joined #ruby
Guedes0 has joined #ruby
brtdv has quit []
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
filipe_ has quit [Remote host closed the connection]
<benzrf> >>3
<eval-in> benzrf => 3 (https://eval.in/67490)
<benzrf> >> l = [[1]]; m = l.dup; m[0][0] = 3; l
<eval-in> benzrf => [[3]] (https://eval.in/67491)
<benzrf> :|
<benzrf> >> l = [[1]]; m = l.clone; m[0][0] = 3; l
<eval-in> benzrf => [[3]] (https://eval.in/67492)
<benzrf> >> l = [[1]]; m = l.collect &:dup; m[0][0] = 3; l
<eval-in> benzrf => [[1]] (https://eval.in/67493)
jonathanwallace has quit [Ping timeout: 244 seconds]
simplyaubs has joined #ruby
hogeo_ has joined #ruby
atno has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
mattattaque has quit [Ping timeout: 240 seconds]
freezey has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
freezey has joined #ruby
jjbohn has joined #ruby
randomnick_ has quit [Remote host closed the connection]
i_s has quit []
<benzrf> >> [true, false].none?
<eval-in> benzrf => false (https://eval.in/67508)
<benzrf> >> [false, false].none?
<eval-in> benzrf => true (https://eval.in/67509)
vlad_starkov has joined #ruby
<benzrf> >> [nil, nil, nil].none?
<eval-in> benzrf => true (https://eval.in/67510)
jjbohn has quit [Client Quit]
asteros has quit [Quit: asteros]
<benzrf> >> {[1, 2] => 3}
<eval-in> benzrf => {[1, 2]=>3} (https://eval.in/67511)
sam113101 has quit [Quit: WeeChat 0.4.3-dev]
<benzrf> oh neat
<benzrf> python only lets you use immutables as kesy
<benzrf> *key
<benzrf> s
freezey has quit [Ping timeout: 246 seconds]
sam113101 has joined #ruby
<benzrf> >> {[1, 2] => 3}[[1] + [2]]
<eval-in> benzrf => 3 (https://eval.in/67512)
<bricker> benzrf: do you not have ruby installed on your computer?
<benzrf> yes i do
<benzrf> but i like spamming
<bricker> don't we all
sam113101 has quit [Client Quit]
sam113101 has joined #ruby
timonv has joined #ruby
binaryplease has quit [Ping timeout: 248 seconds]
asteros has joined #ruby
mattattaque has joined #ruby
zz_karupanerura is now known as karupanerura
zz_jrhorn424 is now known as jrhorn424
baroquebobcat has joined #ruby
scarolan has quit [Ping timeout: 252 seconds]
jjbohn has joined #ruby
bronson_ has joined #ruby
^Chris^ has quit [Read error: No route to host]
^Chris^ has joined #ruby
freezey has joined #ruby
ngoldman has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
timonv has quit [Ping timeout: 240 seconds]
^Chris^ has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
^Chris^ has joined #ruby
guns has quit [Quit: guns]
kofno has quit [Ping timeout: 244 seconds]
robustus has quit [Ping timeout: 264 seconds]
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
Jetchisel has joined #ruby
Deele has joined #ruby
atrocitas has joined #ruby
thesheff17 has joined #ruby
Ox6abe has joined #ruby
threesome has quit [Ping timeout: 264 seconds]
robustus has joined #ruby
<Kamuela> DanBoy, asked if ruby had structures
<Kamuela> anyone know enough rails to answer "can a project be named anything with no problems later on? meaning if i just modified the heck out of a tutorial's sample app, could i deploy that?"
tkuchiki has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
baroquebobcat has quit [Quit: baroquebobcat]
MattStratton has joined #ruby
dkamioka has joined #ruby
<benzrf>
eka has joined #ruby
eka has quit [Client Quit]
johnnyfuchs has joined #ruby
dmyers has quit [Ping timeout: 245 seconds]
tylersmith has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
codeFiend has joined #ruby
asteros has quit [Quit: asteros]
Monie has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
sevenseacat has joined #ruby
gverri has quit [Quit: Textual IRC Client: www.textualapp.com]
tsykoduk is now known as zz_tsykoduk
asteros has joined #ruby
dmyers has joined #ruby
Monie has quit [Client Quit]
dnyy has quit []
Voodoofish430 has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
tannerburson has quit [Read error: Connection reset by peer]
tannerburson has joined #ruby
Voodoofish430 has joined #ruby
zeade has quit [Quit: Leaving.]
vlad_starkov has quit [Ping timeout: 245 seconds]
RTG has joined #ruby
RTG is now known as Guest4202
RTG` has quit [Ping timeout: 272 seconds]
myappleguy has quit [Ping timeout: 252 seconds]
mojjojo has joined #ruby
Guest4202 is now known as RTG`
bricker is now known as bricker`away
vlad_starkov has joined #ruby
<platzhirsch> What have I done? I wasted 2 hours on that game, do you know how much Ruby code I could have refactored in that time...
<iajrz> platzhirsch: what's the game?
Briareos1 has quit [Remote host closed the connection]
<platzhirsch> iajrz: I don't want to drag you down
<iajrz> DouweM: pull request submitted
<platzhirsch> bombermine.com
<platzhirsch> ops
<iajrz> platzhirsch: I'm already into LoL, can't get worse
<platzhirsch> haha yeah, that's true
RichardBaker has quit [Quit: RichardBaker]
tvw has joined #ruby
myappleguy has joined #ruby
<platzhirsch> pull requested submitted? Aw man, what else have I missed
Xeago has joined #ruby
Olipro has quit [Ping timeout: 260 seconds]
<iajrz> lol, it was a silly thing
Voodoofish4301 has joined #ruby
<iajrz> was about time I started to commit publicly though
gr33n7007h has joined #ruby
<platzhirsch> Well, it will now appear as a GitHub contribution on your account, does not sound silly to me. Probably you are hired by tomorrow
Bry8Star{T2 has joined #ruby
fomatin has joined #ruby
<iajrz> lol heheheh
Voodoofish430 has quit [Ping timeout: 245 seconds]
kenneth has quit [Quit: kenneth]
Chris-_ has quit [Quit: Chris-_]
bradsmith has joined #ruby
Soliah has joined #ruby
Voodoofish430 has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
kcantwel has joined #ruby
tharindu has quit [Quit: Leaving...]
Voodoofish4301 has quit [Ping timeout: 246 seconds]
blotchy has joined #ruby
<iajrz> well,time for me to rest... nice meeting you platzhirsch ... it _is_ a dangerous game, keep that away from me :)
<platzhirsch> ^^ yeah
iajrz has left #ruby [#ruby]
kofno has joined #ruby
Monie has joined #ruby
Monie has quit [Client Quit]
lmickh has quit [Quit: lmickh]
Davey has quit [Quit: Computer has gone to sleep.]
bradsmith has quit [Ping timeout: 272 seconds]
aspires has quit [Quit: sudo making a sandwich]
mikepack has joined #ruby
fella5s has quit [Remote host closed the connection]
<bnagy> DanBoy: yeah, but kinda awful ones. There's a Struct class
<bnagy> I think it's for refugees from other languages
aley has quit [Quit: aley]
bugsinlights has joined #ruby
benzrf has left #ruby [#ruby]
asteros has quit [Quit: asteros]
daxroc has joined #ruby
sputnik13 has quit [Ping timeout: 240 seconds]
kenneth has joined #ruby
kenneth has quit [Client Quit]
mikepack has quit [Ping timeout: 272 seconds]
dnyy has joined #ruby
jonathanwallace has joined #ruby
`MArceLL` has quit [Ping timeout: 246 seconds]
DrShoggoth has quit [Quit: Leaving]
iliketurtles has joined #ruby
burlyscudd has quit [Quit: Leaving.]
Solnse has quit [Ping timeout: 252 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
iliketurtles has quit [Client Quit]
epichero has joined #ruby
CaptainJet has quit []
Monie has joined #ruby
asteros has joined #ruby
valesk has joined #ruby
CaptainJet has joined #ruby
tharindu has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Davey has joined #ruby
myappleguy has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
Jdubs has quit [Remote host closed the connection]
Jdubs has joined #ruby
zz_michael_mbp is now known as michael_mbp
brianpWins has quit [Quit: brianpWins]
Monie has quit [Ping timeout: 272 seconds]
horseislikeaman has joined #ruby
xk_id has quit [Quit:
kaspergrubbe has quit [Remote host closed the connection]
raphaelivan has joined #ruby
Jdubs has quit [Read error: Connection reset by peer]
alvaro_o has quit [Quit: Ex-Chat]
zz_scottstamp is now known as scottstamp
Jdubs has joined #ruby
Jdubs has quit [Remote host closed the connection]
daxroc has quit [Ping timeout: 246 seconds]
iceden has quit [Ping timeout: 272 seconds]
Guedes0 has quit [Ping timeout: 252 seconds]
peterdecroos has joined #ruby
`MArceLL` has joined #ruby
mojjojo has quit [Quit: mojjojo]
rjhunter has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
<DanBoy> bnagy, weird i never heard of it
mlpinit has joined #ruby
err_ok has quit [Ping timeout: 245 seconds]
<DanBoy> i thought he was writing some C library and trying to use it with ruby
Davey has joined #ruby
peterdecroos has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
<DanBoy> oh god bombermine
<DanBoy> stay away
lukec has quit [Quit: lukec]
benzrf has joined #ruby
<DanBoy> its a time travel device
<benzrf> hello
<bnagy> yeah I only heard of it a few days ago - it's a weird thing that builds new classes based on an input hash
<bnagy> for working with C FFI has 'proper' structs
<DanBoy> 1 minute bomber man time will be 6 hours real time
diegoviola has joined #ruby
<benzrf> i am attempting a challenge, described here http://bpaste.net/show/149475/ , my code is at http://bpaste.net/show/149476/
iliketurtles has joined #ruby
<DanBoy> even if you load it up in an SNES emulator, forget the site
<benzrf> it passes almost all the tests, except for one
<benzrf> well, actually there might be more
<benzrf> but it seems entirely correct to me
Ox6abe has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
whunt has quit [Quit: Computer has gone to sleep.]
ckinni has joined #ruby
xk_id has joined #ruby
JimmyNeutron has quit [Quit: Leaving]
iceden has joined #ruby
ngoldman has joined #ruby
ravster has quit [Quit: Leaving.]
Apane has joined #ruby
saarinen has quit [Quit: saarinen]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sleepee has joined #ruby
mlpinit has quit [Remote host closed the connection]
mlpinit has joined #ruby
anderson has quit [Excess Flood]
kcantwel has quit [Quit: Computer has gone to sleep.]
anderson has joined #ruby
bronson_ has quit [Quit: bronson_]
dhruvasagar has joined #ruby
jamesaanderson has joined #ruby
<bnagy> feedback - that code is extremely unrubyish
<bnagy> so it's hard to read, which is going to make less people look at it
mlpinit has quit [Ping timeout: 272 seconds]
mattattaque has quit [Ping timeout: 240 seconds]
<benzrf> :(
<benzrf> in what way is it unrubyish
havenwood has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
bronson_ has joined #ruby
epichero has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
kevinykchan has joined #ruby
<bnagy> too much chaining, use of 'collect', building ranges with upto...
<benzrf> how is use of collect unrubyish
<benzrf> ;_;
<bnagy> and some formatting like, like, add some newlines already so we can see 'paragraphs'
codeFiend has quit [Quit: codeFiend]
<bnagy> *issues like
<benzrf> :[
scottstamp is now known as zz_scottstamp
<bnagy> nobody uses collect, we use map
drim has quit [Quit: drim]
<benzrf> wait, really?
<benzrf> i saw it all the time on the site im practicing on
<benzrf> o:
<bnagy> well nobody uses Struct either
<benzrf> huh
<benzrf> is openstruct implemented with method_missing
jrhorn424 is now known as zz_jrhorn424
<bnagy> NFI, but that's how I'd do it
alup has quit [Ping timeout: 252 seconds]
<benzrf> nfi?
<bnagy> no idea
<benzrf> ah
<sevenseacat> no f***ing idea
kevinykchan has quit [Ping timeout: 246 seconds]
pragmatism has quit [Quit: Leaving...]
carlyle has joined #ruby
nanothief has joined #ruby
peterdecroos has joined #ruby
fgo has joined #ruby
asteros has quit [Quit: asteros]
Apane has quit [Ping timeout: 240 seconds]
maycon__ has joined #ruby
maycon__ has joined #ruby
maycon__ has quit [Changing host]
raphaelivan has quit [Quit: Leaving.]
jjbohn has quit [Quit: Leaving...]
<DanBoy> lol
<DanBoy> no one uses a structure is all i can comment on
truka has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
christopherdupon has joined #ruby
maycon_ has quit [Ping timeout: 240 seconds]
<DanBoy> like i said before about 2 minutes before you came back i had never even heard there was some form of structure in ruby
<DanBoy> and bnagy only heard about it a few days ago
<Kamuela> wb DanBoy
<DanBoy> :P
<bnagy> well I'm not "against" Struct, I just think it's dumb
<DanBoy> i didn't even look it up yet
peterdecroos has quit [Remote host closed the connection]
<DanBoy> i probably won't to be honest
Guest94527 has quit [Remote host closed the connection]
musty has joined #ruby
<Kamuela> DanBoy, word, i shit on things i don't understand all day
musty has left #ruby [#ruby]
musty has joined #ruby
<bnagy> I'd imagine it's supposed to be a robustness thing
peterdecroos has joined #ruby
Mars has joined #ruby
<DanBoy> did i shit on it?
<DanBoy> i understand structure quite well
<DanBoy> i've done C for over a decade
Mars is now known as Guest20315
Ox6abe has joined #ruby
jamblack has quit [Quit: jamblack]
<musty> Good for you.
thesheff17 has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
^Chris^ has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
dkamioka has quit [Read error: Connection reset by peer]
dkamioka_ has joined #ruby
<DanBoy> not being elitist at all, just telling you i understand what a structure is and i wasn't shitting on it
<DanBoy> just after reading 4-5 books on ruby alone and not once has any of them mentioned it i figure you can go with out it
<DanBoy> but do what you want thats what ruby is for
Guest20315 has quit [Ping timeout: 245 seconds]
grimly has joined #ruby
hogeo_ has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
peterdecroos has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
dkamioka_ has quit [Read error: Connection reset by peer]
awkisopen is now known as wolvesisopen
kayloos has joined #ruby
agent_white has joined #ruby
mikepack has joined #ruby
daxroc has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
juniorzoid has joined #ruby
hamakn has joined #ruby
RTG` has quit [Ping timeout: 245 seconds]
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
kayloos has quit [Ping timeout: 246 seconds]
myappleguy has joined #ruby
unRealElite has quit [Quit: This computer has gone to sleep]
mikepack has quit [Ping timeout: 248 seconds]
iajrz has joined #ruby
alekst has joined #ruby
yfeldblum has joined #ruby
Lewix has quit [Remote host closed the connection]
unRealElite has joined #ruby
thesheff17 has joined #ruby
typicalbender has joined #ruby
ngoldman has quit [Remote host closed the connection]
daxroc has quit [Ping timeout: 272 seconds]
falood has joined #ruby
nobitanobi has quit [Quit: Leaving]
benzrf has left #ruby [#ruby]
Aryasam has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
sam113101 has quit [Quit: WeeChat 0.4.3-dev]
Jdubs has joined #ruby
sam113101 has joined #ruby
iliketurtles has joined #ruby
ezkl has quit [Quit: QUIT!]
ezkl has joined #ruby
ezkl has joined #ruby
yfeldblum has quit [Remote host closed the connection]
tharindu has quit [Quit: Leaving...]
sayan has quit [Ping timeout: 248 seconds]
timonv has quit [Ping timeout: 244 seconds]
ehc has joined #ruby
ehc has quit [Client Quit]
tvw has quit [Ping timeout: 240 seconds]
nonamehero has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
Apane has joined #ruby
kitak_ has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
nonamehero has joined #ruby
wolvesisopen is now known as awkisopen
kitak has quit [Ping timeout: 246 seconds]
Bira_ has joined #ruby
maletor has joined #ruby
codeFiend has joined #ruby
jbsnake has quit [Read error: Connection reset by peer]
Bira has quit [Ping timeout: 246 seconds]
bugsinlights has quit [Remote host closed the connection]
codeFiend has quit [Ping timeout: 240 seconds]
ezkl has quit [Quit: QUIT!]
ezkl has joined #ruby
kaspergrubbe has joined #ruby
sayan has joined #ruby
huttan has quit [Read error: Operation timed out]
earthquake has joined #ruby
Advocation has joined #ruby
nari has joined #ruby
pragmatism has joined #ruby
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
jjbohn has joined #ruby
kaspergrubbe has quit [Ping timeout: 245 seconds]
Soliah has quit [Read error: Connection reset by peer]
ryan0x2 has joined #ruby
Advocation has quit [Ping timeout: 246 seconds]
gener1c_ has quit [Ping timeout: 248 seconds]
gener1c has joined #ruby
_maes_ has joined #ruby
freezey has quit [Ping timeout: 245 seconds]
jlast has quit [Remote host closed the connection]
platypine has quit [Ping timeout: 246 seconds]
sleepee has quit [Quit: Leaving]
Ox6abe has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
kcombs has joined #ruby
nateberkopec has quit [Quit: Leaving...]
mrj has joined #ruby
io_syl has quit [Ping timeout: 272 seconds]
poutine has quit [Quit: ZNC - http://znc.sourceforge.net]
bronson_ has quit [Quit: bronson_]
poutine has joined #ruby
carlyle has quit [Remote host closed the connection]
unRealElite has quit [Quit: This computer has gone to sleep]
ngoldman has joined #ruby
Spami has joined #ruby
ngoldman has quit [Remote host closed the connection]
ehc has joined #ruby
ner0x has joined #ruby
polaco is now known as polaco_zZz
vlad_starkov has joined #ruby
myappleguy has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
<mrj> Can anyone recommend a good book on planning out an application? Working on my first semi complex app
vlad_starkov has quit [Read error: Connection reset by peer]
platzhirsch has quit [Ping timeout: 245 seconds]
unRealElite has joined #ruby
maycon_ has joined #ruby
maycon__ has quit [Ping timeout: 252 seconds]
pragmatism has quit [Remote host closed the connection]
fomatin has quit [Quit: Computer has gone to sleep.]
aryaching has joined #ruby
maletor has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
heidi has quit [Quit: Leaving.]
dkamioka has joined #ruby
<Kamuela> mrj, rails or ruby proper?
ItSANgo has quit [Quit: Leaving...]
<mrj> im not concerned about language
<mrj> actual development planning
Shidash has joined #ruby
<mrj> like, hey stupid mrj, stop making huge milestones
huttan has joined #ruby
<bnagy> I think you'll find "opinions differ"
<mrj> well yeah, agile, scrum, yadda yadda. i just want something simple if it exists, not something expecting a project manager to run through it
<bnagy> you can find some good stuff by googling for blogs about people's SCM workflow
<bnagy> there's a lot of good practice that is kind of implicit in how you manage source
<bnagy> a lot also depends on how many people are on the team
Jdubs has quit [Remote host closed the connection]
<mrj> thats a good start. it's just me working on this.. are you aware of any sole-developer blogs where they go in depth about workflow choics?
<mrj> what worked, what didnt, ya know
alekst has quit [Quit: Leaving...]
<bnagy> not offhand, I was just surfing around looking for a sane branch / merge workflow :)
<mrj> i just found some good stack overflow hits but it's just questions really
<mrj> .
daxroc has joined #ruby
huttan has quit [Ping timeout: 241 seconds]
grimly has quit [Quit: Leaving...]
<bnagy> in the ruby community there's a lot of test fetishism, so you also need to decide to what extent you get into that
<bnagy> assuming you're writing ruby
hiyosi has quit [Ping timeout: 245 seconds]
jrhe has joined #ruby
radic has joined #ruby
digital-ghost has quit [Remote host closed the connection]
LaPetiteFromage has joined #ruby
jlast has joined #ruby
diegoviola has quit [Ping timeout: 272 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
<gr33n7007h> >> Temp = Struct.new(:c) do; def conv; (c * 1.8) + 32; end; end; Temp.new(100).conv
<eval-in> gr33n7007h => 212.0 (https://eval.in/67557)
Lewix has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
juniorzoid has quit [Quit: leaving]
varfoo has joined #ruby
iliketurtles has joined #ruby
jjbohn has joined #ruby
radic_ has quit [Ping timeout: 272 seconds]
mixel has quit [Quit: mixel]
<gr33n7007h> >> class Numeric; def conv; (self * 1.8) + 32; end; end; 100.conv
<eval-in> gr33n7007h => 212.0 (https://eval.in/67558)
ItSANgo has joined #ruby
* bnagy vomits quietly
<sevenseacat> the bot isn't a substitute for irb
funburn has quit [Quit: funburn]
baroquebobcat has joined #ruby
* gr33n7007h hangs his head in shame
dkamioka has quit [Ping timeout: 246 seconds]
jjbohn has quit [Ping timeout: 246 seconds]
SirFunk has joined #ruby
fwchld has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
Guest80501 has joined #ruby
Guest80501 is now known as diegoviola
thelorax123 has quit [Remote host closed the connection]
nateberkopec has joined #ruby
IceDragon has quit [Quit: Space~~~]
kobain has quit [Ping timeout: 272 seconds]
kobain has joined #ruby
Aryasam has quit [Quit: Bye]
thelorax123 has joined #ruby
io_syl has joined #ruby
nateberkopec has quit [Client Quit]
musty has quit [Ping timeout: 245 seconds]
ItSANgo has quit [Quit: Leaving...]
nateberkopec has joined #ruby
^Chris^ has joined #ruby
priyam_ has quit [Quit: Connection closed for inactivity]
christopherdupon has quit [Ping timeout: 260 seconds]
larissa has quit [Quit: Leaving]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Advocation has joined #ruby
Kamuela has quit [Quit: Leaving]
dnyy has quit [Read error: Connection reset by peer]
ItSANgo has joined #ruby
mattattaque has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
carif has quit [Ping timeout: 244 seconds]
baroquebobcat has joined #ruby
Advocation has quit [Ping timeout: 245 seconds]
baroquebobcat has quit [Client Quit]
endash has quit [Quit: endash]
daxroc has quit [Ping timeout: 240 seconds]
gener1c has quit [Disconnected by services]
gener1c_ has joined #ruby
osvico has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mlpinit has joined #ruby
xk_id has quit [Quit:
falood has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
dkamioka has joined #ruby
tharindu has joined #ruby
rjhunter has joined #ruby
thesheff17 has quit [Ping timeout: 248 seconds]
PPH has joined #ruby
carif has joined #ruby
baroquebobcat has joined #ruby
<PPH> Is there a way to write an inline if statement like this? do_that() if true else do_this()
<sevenseacat> if (something) ? do_this : do_that
horseislikeaman has quit [Ping timeout: 246 seconds]
<sevenseacat> look up ternary operators :)
earthquake has quit [Quit: earthquake]
<sevenseacat> and remove the if from what i wrote >_>
thesheff17 has joined #ruby
Mars has joined #ruby
vlad_starkov has joined #ruby
Mars is now known as Guest8278
<PPH> sevenseacat: lol you again:P I know ternary operators, but I usually use them to assing a variable. I can use them to call functions?
Nisstyre-laptop has joined #ruby
OdNairy has joined #ruby
<sevenseacat> you can use them for any code
aryaching_ has joined #ruby
<PPH> sevenseacat: awesome, Thanks again:)
<sevenseacat> np
<bnagy> they're in the 'stinky' band of ruby style though, as is some_func() with empty parens
Ox6abe has joined #ruby
<sevenseacat> kinda stinky, depending on context
<PPH> well I was hoping for something more readable but if it's the only solution
aspiers has joined #ruby
io_syl has quit [Ping timeout: 240 seconds]
<bnagy> depends on the code you're trying to write, there are often ways to restructure
<bnagy> but multiline if is the most readable, if there is no way to avoid it
aryaching has quit [Ping timeout: 248 seconds]
<sevenseacat> readable and inline, seems contradictory
vlad_starkov has quit [Ping timeout: 244 seconds]
<sevenseacat> if you want readable, split out into a proper if/else
Guest8278 has quit [Remote host closed the connection]
Ox6abe has quit [Ping timeout: 240 seconds]
<PPH> well coffee script have if 1 > 0 then "Ok" else "Y2K!"
<sevenseacat> well use rubys if/else on one line then
gr33n7007h has quit [Read error: No route to host]
cam`_ has quit [Quit: Connection closed for inactivity]
<PPH> sevenseacat: with "end" at the end? better stick on multiline
<sevenseacat> yes, you would have to put the end at the end.
<sevenseacat> you cant just drop off bits of syntax you don't like
peterdecroos has joined #ruby
DanKnox is now known as DanKnox_away
<PPH> lol I wish :P
<PPH> Ruby I already light on syntaxt tho :)
jetblack has quit [Quit: leaving]
kayloos has joined #ruby
mattattaque has quit [Ping timeout: 245 seconds]
iliketurtles has quit [Quit: zzzzz…..]
Bira_ has quit []
timonv has joined #ruby
xcess_denied has joined #ruby
mikepack has joined #ruby
duggiefresh has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mlpinit has quit [Remote host closed the connection]
dkamioka has quit [Ping timeout: 244 seconds]
mlpinit has joined #ruby
hiyosi has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
kayloos has quit [Ping timeout: 244 seconds]
Bira has joined #ruby
ehc has quit [Quit: ehc]
earthquake has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
EvanR_ has joined #ruby
mlpinit has quit [Ping timeout: 245 seconds]
choobie has left #ruby [#ruby]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiyosi has quit [Ping timeout: 246 seconds]
blarghmatey has joined #ruby
mj12albert has quit [Quit: Textual IRC Client: www.textualapp.com]
jjbohn has joined #ruby
unRealElite has quit [Quit: This computer has gone to sleep]
xcess_denied has quit [Quit: Leaving...]
falood has joined #ruby
ckinni has joined #ruby
unRealElite has joined #ruby
jjbohn has quit [Ping timeout: 272 seconds]
mattattaque has joined #ruby
ananthakumaran has joined #ruby
funburn has joined #ruby
thesheff17 has quit [Ping timeout: 252 seconds]
tylersmith has joined #ruby
gr33n7007h has joined #ruby
iliketurtles has joined #ruby
peterdecroos has quit [Remote host closed the connection]
peterdecroos has joined #ruby
<RubyPanther> depends on which bits you don't like
krz has joined #ruby
gr33n7007h has quit [Client Quit]
typicalbender has quit [Quit: Leaving.]
dkamioka has joined #ruby
peterdecroos has quit [Ping timeout: 248 seconds]
blarghmatey has quit [Ping timeout: 245 seconds]
Kamuela has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h has quit [Client Quit]
Bira has quit []
gr33n7007h has joined #ruby
<PPH> If I wanna validate a hostname do I need a regex or there is already something for that?
xcess_denied has joined #ruby
gustavo__ has quit [Quit: This computer has gone to sleep]
hogeo has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
gustavo__ has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
elcontrastador has joined #ruby
Galgorth has joined #ruby
Galgorth has quit [Client Quit]
duggiefresh has quit [Remote host closed the connection]
simplyaubs has quit [Quit: simplyaubs]
casheew_ has joined #ruby
nobitanobi has joined #ruby
<nobitanobi> night
brianpWins has joined #ruby
ananthakumaran has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Leaving...]
ananthakumaran has joined #ruby
ananthakumaran has quit [Client Quit]
ananthakumaran has joined #ruby
dkamioka has quit [Ping timeout: 272 seconds]
taternuts has quit []
<Kamuela> good night nobi
casheew has quit [Ping timeout: 246 seconds]
<nobitanobi> what's up Kamuela? how's it going?
yacks has quit [Quit: Leaving]
<sevenseacat> lol
<nobitanobi> .?.
<Kamuela> haha
<Kamuela> thought you said good night man
rjhunter has quit [Remote host closed the connection]
Nisstyre-laptop is now known as nisstyre
<Kamuela> sevenseacat, all right, i'm trying to make a URL shortener. it's so simple i just wanted to figure out myself
<sevenseacat> cool
<Kamuela> i'm using a URL model with a remote and local
<Kamuela> and local i want to be set with the model code
achru has joined #ruby
<Kamuela> but the issue i'm getting is that it regenerates the local URL constantly
<Kamuela> any time it's viewed or anything, it doesn't persist
<sevenseacat> still need code to help you.
CaptainJet has quit []
sandeepk has joined #ruby
<Kamuela> there's gotta still be something leftover from the scaffold that's causing local to be set over and over
FDj has quit [Ping timeout: 272 seconds]
<Kamuela> I dunno. I don't think it's the scaffold. I think that's just not how activerecord works or something
chomskiii has quit [Read error: Connection reset by peer]
<sevenseacat> like i said before, if you want to use activerecord attributes, theyre not instance variables
bootcoder has quit [Quit: Konversation terminated!]
bootcoder has joined #ruby
EvanR_ has quit [Ping timeout: 240 seconds]
coldmethod1 has quit [Ping timeout: 240 seconds]
<Kamuela> i'm not sure what you mean by that, which isn't shorthand for not being able to possibly understand your meaning, just that i don't know whether or not you mean to tell me to use active record attributes or to realize that i need code in my controller to do what i'm asking for
kcombs has quit [Remote host closed the connection]
phansch has joined #ruby
<sevenseacat> i dont know what you just said, but is `local` a field in your database that you are using activerecord to manage?
duggiefresh has joined #ruby
carif has quit [Ping timeout: 244 seconds]
simplyaubs has joined #ruby
Vivekananda has quit [Quit: Ex-Chat]
falood has quit [Remote host closed the connection]
OdNairy has joined #ruby
<Kamuela> sevenseacat, yes. i want it to be created and linked to the URL table. but created once. that's why i went for initialize overload at first if you remember, and then we thought about after_init
<sevenseacat> right, so @local is not the data you are storing in your dataase
<sevenseacat> activerecord attributes are not instance variables
<sevenseacat> replace is with self.attributes[:local]
Mars has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Mars is now known as Guest94183
daxroc has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
<Kamuela> sevenseacat, so Models can have all kinds of crazy code doing whatever it wants, but only those few attributes matter to its actions upon the database?
mikepack has joined #ruby
<sevenseacat> again, i dont know what you just said.
chomskiii has joined #ruby
io_syl has joined #ruby
Guest94183 has quit [Ping timeout: 240 seconds]
<Kamuela> @local is not that data stored in the database, @this, @this_again, @nor_that isn't stored in the database
<sevenseacat> correct
<Kamuela> def this_weird function acting upon @this @thisnthat doesn't do anything
<nobitanobi> Kamuela, what are you trying to do?
<sevenseacat> the data from the database is in attributes
<Kamuela> nice
falood has joined #ruby
simplyaubs has quit [Quit: simplyaubs]
mikepack has quit [Ping timeout: 272 seconds]
capicue has joined #ruby
Astralum has joined #ruby
<Kamuela> so is :local a symbol that represents that string in my database?
<shevy> Kamuela a symbol is always a symbol
asteros has joined #ruby
<shevy> Kamuela it can never represent a string object
<sevenseacat> your field name is `local`. ergo, :local.
<sevenseacat> 'local' might also work, havent tried it.
<Kamuela> shevy, i think it means something to rails because it's pointing to a spot in a database, I THINK BUT CANNOT KNOW
<shevy> Kamuela sure, behind the scenes it can do all sorts of conversions
<sevenseacat> convention over configuration
vlad_starkov has joined #ruby
<Kamuela> yeah... tell that to all the tutorial writers
jjbohn has joined #ruby
<Kamuela> they approach things 12 different ways... each
<sevenseacat> is there actually still a problem?
Dreamer3 has quit [Ping timeout: 246 seconds]
<Kamuela> yeah most definitely, maybe you assumed that i knew some other way to use self.attribute[:local] but i can't just assign a value to it
<sevenseacat> yes you can
<Kamuela> the server breaks in half when i try
mlpinit has joined #ruby
<sevenseacat> and its attributes, not attribute
<shevy> Kamuela why do you want to use that
<shevy> Kamuela I mean you must reason, for all parts that you use here: self.attribute[:local]
<shevy> I suppose attribute is a method?
rjhunter has joined #ruby
<shevy> probably returns the ivar @attribute
<shevy> a hash I guess
<sevenseacat> also 'the server breaks in half' isnt something i can fix without more information
<shevy> yeah
<Kamuela> i don't know what it returns. it's a blackhole. it just takes
happydude has joined #ruby
<bnagy> HEY U GUISE you know a great place to talk about rails??
<shevy> Kamuela, nah, it must use ruby language, it can not be complete blackhole, it must at least use valid ruby syntax
<Kamuela> bnagy, can't do it. i can't do it. too stuffy in there most days
<shevy> Kamuela you can always debug from within your .rb script(s)
<sevenseacat> i do, and we were talking there before, but for some reason Kamuela moved here
<Kamuela> bnagy, will seriously consider shutting up if i'm bringing the stuffy here though :(
vlad_starkov has quit [Remote host closed the connection]
<shevy> he moved here because we know ruby, unlike #rubyonrails
<sevenseacat> to continue talking about his rails app
<sevenseacat> shevy: lol
<sevenseacat> by all means, i'll let you help him then.
<shevy> Kamuela when you do self.attribute[:local], what error is displayed to you?
fwchld has quit [Quit: Textual IRC Client: www.textualapp.com]
<bnagy> . o O ( fuuuck KILL MEEEEE )
earthquake has quit [Quit: earthquake]
<Kamuela> i was being dramatic, no error, just no functionality
<Kamuela> the variable does not set
<shevy> set
<shevy> set how or where
jjbohn has quit [Ping timeout: 245 seconds]
<shevy> I mean, you talk more than you show code ;)
<Kamuela> save? !
ananthakumaran has quit [Quit: Leaving.]
* Kamuela goes digging into the MVC connections
vlad_starkov has joined #ruby
mlpinit has quit [Ping timeout: 241 seconds]
<nobitanobi> Kamuela, what are you trying to accomplish?
<Kamuela> nobitanobi, a URL shortener
<sevenseacat> i made a mistake with the code i gave, but oh well
<nobitanobi> so what is your problem?
<sevenseacat> guess its because i dont know ruby lolololo
iajrz_ has joined #ruby
<Kamuela> generating a local URL and saving it to the database
iajrz has quit [Ping timeout: 250 seconds]
iajrz_ is now known as iajrz
<nobitanobi> ok. Do you already save URLs into the database?
ageis_ has quit [Ping timeout: 244 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<Kamuela> nobitanobi, I do, Url.remote gets saved just fine
ananthakumaran has joined #ruby
<nobitanobi> I don't know what Url.remote is
Aqib has joined #ruby
<nobitanobi> Why don't you show your code? Create a Gist with your code model/controller/ - Whatever that is in the flow that is causing the problem
Aqib has left #ruby ["Konversation terminated!"]
<Kamuela> nobitanobi, rails g scaffold URL remote:string local:string, that is my code, 95% of it
<bnagy> and then paste it in #rubyonrails
<bnagy> ffs
<nobitanobi> also Kamuela have you considered going to #rubyonrails?
brisbin has quit [Ping timeout: 244 seconds]
ananthakumaran has quit [Client Quit]
<shevy> Kamuela if you call a method that sets an @ivar, that @ivar is set
<Kamuela> sevenseacat, what was the mistake?
<sevenseacat> let shevy figure it out
<Kamuela> that's unfair! mostly to poor bnagy lol
<sevenseacat> so why are you still asking rails questions in a non-rails channel then?
<Kamuela> because i got offered help by 3 people here
<shevy> I think they only want to send you away, not help you :(
vlad_starkov has quit [Remote host closed the connection]
<sevenseacat> then let them figure it out
<nobitanobi> unnacceptabruu!
<Kamuela> shevy, i think they wanted me to say rails 3 times, and then have the spell of the kingdom automatically cast me away
ryan0x2 has quit [Remote host closed the connection]
<shevy> you must be more persistent
<Kamuela> sevenseacat, you are one of the 3
<iajrz> hey, I'm seeing a method like this: def bla(&arg)
<iajrz> does the & mean arg _must_ be a block?
<Kamuela> it's an object reference
<bnagy> iajrz: yeah pretty much
<Kamuela> in C, it's an object reference
<shevy> iajrz it's kinda cheating, it looks like a regular argument but it's a block
ageis has joined #ruby
ageis is now known as Guest30088
<iajrz> that'd be C++, if it's object
<bnagy> you can only & blocks procs lambdas etc
<iajrz> excelent
<iajrz> so I'm getting this...
<bnagy> iajrz: it gets weird though - you don't ever have to actually use it :)
<Kamuela> iajrz, you're right, i meant address of an "object" but in C they weren't objects proper just complex datatypes
<bnagy> like you can check block_given? and just use yield 'naked', you don't need to blk.call
<iajrz> aye, Kamuela, it's like a pointer...
merica has joined #ruby
<iajrz> aye, aye, I saw that earlier in this script
<Kamuela> iajrz, it's what the pointer is pointed to yes
<bnagy> ruby is not C
<Kamuela> ruby is not C
<shevy> ruby is not C
<iajrz> lol
<Kamuela> sigh... rofl on rails i guess
graydot has joined #ruby
aspiers has quit [Ping timeout: 246 seconds]
Deele has quit [Ping timeout: 260 seconds]
<iajrz> ruby has reassuring syntax
<iajrz> "rescue", "ensure"
<xybre> ruby is c
* xybre reassures iajrz
FDj has joined #ruby
* Kamuela sets topic "Ruby is basically C"
dhruvasagar has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
jlast has joined #ruby
nso95 has joined #ruby
Advocation has joined #ruby
jjbohn has joined #ruby
<xybre> The whole point of using a high level language is so you don't have to do all the manual crap of a low level language, the conciseness, expressive power, and ability to convey meaning along with you code, rapidly prototype and quickly iterate on ideas.
<shevy> cool
froy has quit [Remote host closed the connection]
<apeiros> my ideas quickly iterate on themselves, then they stumble, fall and cry :(
<shevy> halsbe?
<apeiros> no, that idea is not yet crying
brisbin has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
<iajrz> if the idea is young, it can get up and get stronger.
<Kamuela> xybre, don't forget the endless fun of pointing and laughing at the people who don't yet "get" it
baroquebobcat has joined #ruby
* shevy points at Kamuela and laughs loudly
<xybre> I wget it. But I usually curl it. I work out, dontchaknow.
<shevy> admit it was set up ;)
Dreamer3 has joined #ruby
happydude has quit [Remote host closed the connection]
hogeo has joined #ruby
<Kamuela> i admit that i will feel that nothing is a "dirty hack" as i proceed through rails
Advocation has quit [Ping timeout: 272 seconds]
daxroc has quit [Ping timeout: 246 seconds]
<Kamuela> i'll ditch that mindset because the whole thing is a dirtyhack-fest with dirty-hack size comparisons all day everyday
<sevenseacat> welcome to programming.
timonv has joined #ruby
jjbohn has quit [Ping timeout: 272 seconds]
<shevy> Kamuela nah, don't build hacks on hacks on hacks
dhruvasagar has quit [Read error: Connection reset by peer]
<Kamuela> sevenseacat, i dunno, that seems mighty specific to rails
<Kamuela> maybe something like javascript also or PHP
<sevenseacat> well theres nothing i can say to that that isnt going to insinuate that you dont know much about programming
<Kamuela> hell maybe that's just web programming
dhruvasagar has joined #ruby
dkamioka has joined #ruby
<Kamuela> C++ and the STL didn't result in all that much dirty code
icyleaf has joined #ruby
<shevy> right. they created boost
<bnagy> HAHAH
<icyleaf> hello world
<sevenseacat> for starters, you're comparing a language/stdlib and a framework
osvico has quit []
<bnagy> that should be on @ShitHNSays
ananthakumaran has joined #ruby
<iajrz> STL is technically a framework
<sevenseacat> not a full-stack one
<Kamuela> define full-stack
<Kamuela> that doesn't even make sense
<Kamuela> when you say full-stack, you're talking about full-stack web delivery
<Kamuela> STL is full-stack data processing
<sevenseacat> no shit, given you're whinging about rails
aryaching_ has quit []
lukec has joined #ruby
<Kamuela> i'm not whining about anything
asteros has quit [Quit: asteros]
<sevenseacat> why on earth would i be talking about web-related things in the context of rails
<iajrz> well, I am
<sevenseacat> i have no idea
<Kamuela> i just suxxx is all i'm saying mang
<Kamuela> iajrz, lay it on me
xcess_denied has quit [Quit: Leaving...]
<iajrz> lol, I was jk
<Kamuela> iajrz, thanks your jokes made me feel better about myself
<iajrz> thinking about a lil exercise in the koans
<Kamuela> whatever 6/324 or whatever it was ended my koans career
xcess_denied has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<iajrz> Kamuela if it makes you feel better, be happy you're not doing JSF
<shevy> you need to start to embrace ruby without rails
gener1c_ has quit [Remote host closed the connection]
<Kamuela> shevy, but but but, i wanna be a webstar :(
<shevy> you are black box fiddling
<Kamuela> they get the lights, the music, the ladies!
dkamioka has quit [Ping timeout: 244 seconds]
<shevy> and the money
<iajrz> why didja stop the koans?
sergicles has quit [Quit: sergicles]
<Kamuela> iajrz, i can't remember the problem i had, just didn't make sense to me and i gave up
<iajrz> ah! you'll die debugging javascript some day
<Kamuela> iajrz, iirc there was a bunch of make this equal to true stuff and then... and then i made something equal true and it was like "nah, u rack disciprine"
<iajrz> have you been working on code for long?
<Kamuela> iajrz, on the contrary, i believe i will have the sense and laziness to walk away long before even mid-morning hunger with your javascript problems
gcds has joined #ruby
<iajrz> ah... well
<iajrz> I was a contractor for a large telecom company til very recently
<iajrz> if we'd done that
asteros has joined #ruby
<iajrz> Weblogic wouldn't have got some nasty issues fixed
icyleaf has quit [Ping timeout: 250 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
nso95 has left #ruby [#ruby]
<iajrz> and the Lucene guys wouldn't have got some sweet reqs for SOLR
<iajrz> you're going to find corner cases, odd things, and those are the most rewarding ones to address
<iajrz> if you run away from that, they come back and bite you in the ass
<iajrz> how long have you been programming?
lukec has quit [Quit: lukec]
aarkerio has quit [Quit: Verlassend]
<Kamuela> not long, i stopped when i was 14
timonv has quit [Remote host closed the connection]
<iajrz> I highly recommend that you do the koans
<iajrz> and then rubymonk
timonv has joined #ruby
<iajrz> and if you get stuck or anything
<iajrz> come here, chill, moan, whine
<iajrz> and get back into it
rezzack has quit [Ping timeout: 272 seconds]
<iajrz> the guys here are very friendly.
<iajrz> (I think you noticed)
<iajrz> rubymonk ends with a ror introduction
ZenGuy311 has quit [Ping timeout: 244 seconds]
duggiefresh has quit [Ping timeout: 272 seconds]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<iajrz> just a thought: if a hard bug won't die
mattattaque has quit [Read error: Connection reset by peer]
<iajrz> will you not ship a thousands-of-dollars project?
hogeo has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 245 seconds]
atrocitas has quit [Remote host closed the connection]
mattattaque has joined #ruby
atrocitas has joined #ruby
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
JonahR has quit [Quit: jonahR]
<Kamuela> hack'd. set the damned thing in the controller
<Kamuela> i sense a life filled with fat as hell controllers for me
<iajrz> Kamuela, I asked something up there. If you'd rather not talk about it, let me know :)
<apeiros> Kamuela, as he's slowly fading to the dark side…
kayloos has joined #ruby
<Kamuela> apeiros, what's funny is i feel like there's more ruby and less rails magic in the controller than in the model
CreativeEmbassy has joined #ruby
<apeiros> nonsense. ruby is 100% scientific.
<Kamuela> apeiros i think the syntax is but rails gets close to DSL
aces1up has joined #ruby
<apeiros> (don't take me seriously - I just got up and am very tired…)
<aces1up> i have an ascii-8bit encoded stirng with \u003c type characters..
daxroc has joined #ruby
<aces1up> how would i convert those to normal chars?
baroquebobcat has joined #ruby
<apeiros> aces1up: you couldn't
kayloos has quit [Ping timeout: 240 seconds]
<apeiros> because in ascii-8bit, those are not chars
<sevenseacat> Kamuela: why, oh why
DonRichie has joined #ruby
hiyosi has joined #ruby
<sevenseacat> seriously, why
<aces1up> apeiros i know, can i convert the whole string to utf8 or something to get those characters converted?
<apeiros> aces1up: the point of an *encoding* is to inform what byte means what char. ascii-8bit only defines chars for the bytes 0x20-0x7f
St_Marx has quit [Remote host closed the connection]
Bry8Star{T2 has quit [Remote host closed the connection]
DanBoy has quit [Remote host closed the connection]
end_guy has quit [Remote host closed the connection]
Kabaka has quit [Remote host closed the connection]
hiyosi has quit [*.net *.split]
capicue has quit [*.net *.split]
unRealElite has quit [*.net *.split]
tharindu has quit [*.net *.split]
elcontrastador has quit [*.net *.split]
sayan has quit [*.net *.split]
cburyta has quit [*.net *.split]
Jabberish has quit [*.net *.split]
rickmasta has quit [*.net *.split]
shevy has quit [*.net *.split]
zodiak has quit [*.net *.split]
v0n has quit [*.net *.split]
jbw has quit [*.net *.split]
eval-in has quit [*.net *.split]
banisterfiend has quit [*.net *.split]
Bish_ has quit [*.net *.split]
adamholt has quit [*.net *.split]
ValicekB has quit [*.net *.split]
hakunin has quit [*.net *.split]
tskogberg has quit [*.net *.split]
neaer has quit [*.net *.split]
Rylee has quit [*.net *.split]
queequeg2 has quit [*.net *.split]
pdtpatri1k has quit [*.net *.split]
Tritania- has quit [*.net *.split]
tchebb has quit [*.net *.split]
sweeper has quit [*.net *.split]
wudofyr has quit [*.net *.split]
sindork has quit [*.net *.split]
jmccune has quit [*.net *.split]
TheSpect1e has quit [*.net *.split]
kryptek has quit [*.net *.split]
skinny_much has quit [*.net *.split]
jtperreault has quit [*.net *.split]
elektronaut has quit [*.net *.split]
Lindrian has quit [*.net *.split]
Koshian has quit [*.net *.split]
moshee has quit [*.net *.split]
abstractj has quit [*.net *.split]
justinwe1ss has quit [*.net *.split]
<Kamuela> booooooom
* apeiros off, commute
apeiros has quit [Remote host closed the connection]
<sevenseacat> Kamuela: the very first google result for 'rails override setter' http://stackoverflow.com/questions/10464793/what-is-the-right-way-to-override-a-setter-method-in-ruby-on-rails
apeiros has joined #ruby
hogeo has joined #ruby
Lindrian has joined #ruby
<Kamuela> sevenseacat, the top 20 results in my Brain didn't include "rails override setter"
closures999 has joined #ruby
<aces1up> apeiros dude ok, so how do i just convert it to utf8 or what ever is needed so i can see them?
<bnagy> aces1up: 'see' what?
<Kamuela> sevenseacat, the logic of "accessor" doesn't enter my head either when i specifically needed it to be generated once and read only within the model
<sevenseacat> hell you dont even need to override the setter, just use self.local
kobain has quit []
<sevenseacat> actually that might not work
<sevenseacat> meh
valesk has quit [Ping timeout: 240 seconds]
<rjhunter> aces1up: if you know that the string is actually encoded in, say UTF-8, but it's coming into your code as ascii-8bit, you have an environment issue (or a bug)
gr33n7007h has quit [Read error: Connection reset by peer]
<bnagy> well not neccessarily
<Kamuela> it's alright sevenseacat you've probably had a long day of a hundred times more complicated and useful stuff than this no worries
<bnagy> there are lots of things that will give you ascii-8
apeiros has quit [Ping timeout: 240 seconds]
<Kamuela> it's just a particular way i'm thinking probably that other people think of in another way
<bnagy> anything you read at a low level, probably
<bnagy> you can always .encode or .force_encoding
hogeo has quit [Remote host closed the connection]
<rjhunter> aces1up: if you're reading from a file using File.open, you can specify the encoding as the mode string
mrsolo has joined #ruby
fysaen has joined #ruby
ValicekB has joined #ruby
wallerdev has quit [Quit: wallerdev]
<Kamuela> iajrz, ill def take anotht crack at the koand
peterdecroos has joined #ruby
<iajrz> that'd be healthy.
peterdecroos has quit [Remote host closed the connection]
peterdecroos has joined #ruby
mengu has joined #ruby
<Kamuela> iajrz, taking a break from rails to do it right now actually. i got to where i couldn't get past
<iajrz> cool stuff :) I'm still working on koan 187
Spami has joined #ruby
<sevenseacat> i keep hearing about these koans, I should try them at some point
<iajrz> it requires me to write actual ruby
dodosan has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<iajrz> they're fun. make one think.
<Kamuela> iajrz, immediately i hit this one http://d.pr/i/bgce
hogeo has joined #ruby
<nobitanobi> what is koan? ~
<iajrz> a koan
<iajrz> is a phrase or short story in zen buddhism
<iajrz> which enlightens you
<iajrz> so... the guys at rubykoans.com
<nobitanobi> oh great
<sevenseacat> Kamuela: makes sense
<iajrz> did something in that spirit to learn ruby
<iajrz> Kamuela: the exception isn't of the same tipe you're comparing it to
<nobitanobi> oh this is great
<nobitanobi> thank you
mattattaque has quit [Remote host closed the connection]
<iajrz> nobitanobi: is that sarcasm ?
peterdecroos has quit [Ping timeout: 241 seconds]
<nobitanobi> nopes
<nobitanobi> I like it
<iajrz> ^_^
artm has joined #ruby
<sevenseacat> hehe i will try these later
<nobitanobi> I hope I find a Koan that explains me the Chicken vs Egg paradox of Class is an Object
<nobitanobi> :P
<iajrz> there is no paradox
<iajrz> o_O
<iajrz> an object does not require a class
<iajrz> to exist
<Kamuela> iajrz, yeah, still have no idea what's up
<Kamuela> but the definition of a class IS an object
<iajrz> Kamuela: the error tells you what's up
<nobitanobi> iajrz, uh ah.
sandeepk has quit [Quit: Leaving...]
<iajrz> NoMethodError
<sevenseacat> calling a method that doesnt exist doesnt raise an Exception
<iajrz> is what you should be asserting
<sevenseacat> so you wont catch an Exception
chrisbolton has joined #ruby
<Kamuela> iajrz, yeah i've tried that and it doesn't get me one step further
<iajrz> read all of the output, always
<iajrz> wait
<iajrz> what file is it?
<iajrz> Kamuela:
<Kamuela> sevenseacat, new easiest way to share code http://d.pr/i/tMN5
<sevenseacat> yuck
<iajrz> actually, it's a pic
<iajrz> pastebin does better than that
<iajrz> when sharing code because of an issue, always strive for a sscce.
kayloos has joined #ruby
<Kamuela> sscce?
funburn has quit [Quit: funburn]
<iajrz> sending pics is not sending compilable code, so ...
<iajrz> yeah, no one can easily reproduce and be the most help they can be
fysaen has quit [Quit: Linkinus - http://linkinus.com]
<rjhunter> in other words, make it easy for someone to help you
<Kamuela> i thought failing code was nails on a chalkboard to read :)
<iajrz> btw, you didn't say which's the file with the koan you're having issues at
<Kamuela> iajrz, i was doing it online that time so it wasn't a file
iajrz has quit [Read error: Connection reset by peer]
iajrz_ has joined #ruby
<iajrz_> ah
<iajrz_> hate that
<iajrz_> unstable WiFi
jjbohn has joined #ruby
aganov has joined #ruby
noop has joined #ruby
jlast has quit [Ping timeout: 246 seconds]
artm has quit [Ping timeout: 245 seconds]
<iajrz_> g2g, wife calls
<iajrz_> ttyl
jhaals has joined #ruby
artm has joined #ruby
daxroc has quit [Ping timeout: 244 seconds]
dangerousdave has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<Kamuela> iajrz_, have a good one
jjbohn has quit [Ping timeout: 252 seconds]
Kneferilis has joined #ruby
rainbird10 has joined #ruby
choobie has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
dkamioka has joined #ruby
<nobitanobi> sleep time
<nobitanobi> night folks
iajrz_ has quit [Ping timeout: 272 seconds]
nobitanobi has quit [Quit: Leaving]
sandeepk has joined #ruby
chrisbolton has quit [Quit: chrisbolton]
ner0x has quit [Quit: Leaving]
babinho has quit [Quit: leaving]
dkamioka has quit [Ping timeout: 246 seconds]
<DouweM> Morning
olivier_bK has joined #ruby
<Kamuela> Hey DouweM, good morning!
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dhruvasagar has quit [Ping timeout: 244 seconds]
braincra- has quit [Ping timeout: 248 seconds]
<DouweM> heya Kamuela
ckinni has joined #ruby
<Kamuela> i'm still railsin :)
jhaals has joined #ruby
baroquebobcat has joined #ruby
ckinni has quit [Client Quit]
braincrash has joined #ruby
nanothief has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
rjhunter has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
dhruvasagar has joined #ruby
jhaals has quit [Ping timeout: 246 seconds]
<DouweM> Good for you. No more confusion over MVC and related matters?
bassclef has quit [Ping timeout: 245 seconds]
macmartine has joined #ruby
truka has quit [Remote host closed the connection]
asteros has quit [Quit: asteros]
<Kamuela> No promises :)
Hanmac1 has joined #ruby
risatti has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 244 seconds]
Spami has quit [Quit: This computer has gone to sleep]
hukl has joined #ruby
hukl has quit [Remote host closed the connection]
jlast has joined #ruby
Apane has quit [Ping timeout: 245 seconds]
asteros has joined #ruby
asteros has quit [Client Quit]
hiyosi has joined #ruby
mikepack has joined #ruby
iliketurtles has joined #ruby
hogeo has quit [Remote host closed the connection]
olivier_bK has quit [Ping timeout: 252 seconds]
mikepack has quit [Ping timeout: 248 seconds]
hiyosi has quit [Ping timeout: 248 seconds]
fella5s has joined #ruby
Nogbit has joined #ruby
sandeepk has quit [Quit: Leaving...]
watermel0n has joined #ruby
simplyaubs has joined #ruby
macmartine has quit [Remote host closed the connection]
tagrudev has joined #ruby
weszlem has joined #ruby
xcess_denied has quit [Quit: Leaving...]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
holderbaum has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
d45h has joined #ruby
zipper has joined #ruby
sayan has joined #ruby
DouweM has quit [Ping timeout: 264 seconds]
Kamuela has quit [Quit: Leaving]
DanKnox_away is now known as DanKnox
jprovazn has joined #ruby
timonv has joined #ruby
ahawkins has joined #ruby
camilasan has joined #ruby
artm has quit [Ping timeout: 245 seconds]
iliketurtles has quit [Quit: zzzzz…..]
jhaals has joined #ruby
relix has joined #ruby
amacgregor_ has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
DonRichie has quit [Ping timeout: 264 seconds]
Dreamer3 has joined #ruby
DonRichie has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
amacgregor has quit [Ping timeout: 246 seconds]
thelorax123 has quit [Remote host closed the connection]
dagobah has joined #ruby
DanKnox is now known as DanKnox_away
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
xcess_denied has joined #ruby
sandeepk has joined #ruby
thelorax123 has joined #ruby
h_kon has joined #ruby
einarj has joined #ruby
weszlem has quit []
zoee has joined #ruby
Advocation has joined #ruby
zoee has quit [Remote host closed the connection]
jjbohn has joined #ruby
ananthakumaran has quit [Ping timeout: 244 seconds]
stkowski has quit [Quit: stkowski]
Nogbit has left #ruby [#ruby]
camilasan has quit [Read error: Operation timed out]
baroquebobcat has quit [Quit: baroquebobcat]
zoee has joined #ruby
jbpros has joined #ruby
LexicalScope has joined #ruby
ewnd9 has joined #ruby
tharindu has joined #ruby
relix has quit [Read error: Connection reset by peer]
Advocation has quit [Ping timeout: 252 seconds]
relix_ has joined #ruby
jjbohn has quit [Ping timeout: 248 seconds]
dkamioka has joined #ruby
brtdv has joined #ruby
zigomir has joined #ruby
derebos has joined #ruby
dkamioka has quit [Ping timeout: 264 seconds]
risatti has quit [Remote host closed the connection]
wildroman2 has joined #ruby
havenwood has quit []
shofestal has joined #ruby
sergicles has joined #ruby
skaflem has joined #ruby
mrsolo has joined #ruby
tonni has quit [Read error: Connection reset by peer]
phansch has quit [Remote host closed the connection]
amacgregor has joined #ruby
tonni has joined #ruby
claymore has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
Boohbah has joined #ruby
RTG` has joined #ruby
noname001__ has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
weszlem has joined #ruby
weszlem has quit [Max SendQ exceeded]
weszlem has joined #ruby
leonidlm has joined #ruby
shofestal has quit [Remote host closed the connection]
blaxter_ has joined #ruby
wildroman2 has quit [Remote host closed the connection]
bhullar has joined #ruby
wildroman2 has joined #ruby
Megtastique has quit [Ping timeout: 264 seconds]
Macaveli has joined #ruby
shevy has joined #ruby
Megtastique has joined #ruby
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
obs has joined #ruby
relix has joined #ruby
wildroman2 has quit [Remote host closed the connection]
andikr has joined #ruby
jlast has quit [Ping timeout: 272 seconds]
dodosan has quit [Remote host closed the connection]
hiyosi has joined #ruby
alup has joined #ruby
rainbird10 has quit [Read error: Connection reset by peer]
hiyosi has quit [Ping timeout: 240 seconds]
LexicalScope has quit [Ping timeout: 245 seconds]
Psi|4ward has joined #ruby
Nilium has quit [Ping timeout: 240 seconds]
Hobogrammer_ has joined #ruby
mrj_ has joined #ruby
<Psi|4ward> Hi there, how to refactor "o << args[0]" to avoid "can't convert nil into String" error
vpretzel_ has joined #ruby
Asher1 has joined #ruby
xk_id has joined #ruby
chihhsin_ has joined #ruby
ItSANgo has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
Haegin_ has joined #ruby
nuba_ has joined #ruby
chihhsin_ has quit [Client Quit]
xxi has joined #ruby
ccooke_ has joined #ruby
tonini_ has joined #ruby
wereHams1er has joined #ruby
weszlem has quit []
chihhsin_ has joined #ruby
sivoais_ has joined #ruby
jinxD_ has joined #ruby
magbeat_ has joined #ruby
bluenemo has joined #ruby
<tobiasvl> o << args[0] if args[0]
<tobiasvl> ?
<PPH> is it possible to raise an exception and rescue it in it's caller?
<Psi|4ward> tobiasvl: ive o << (args[0].empty?) ? '' : args[0]
chihhsin_ has quit [Client Quit]
<Psi|4ward> the "empty?" is correct?
<Psi|4ward> ive really NO knowlage about ruby
somasonic_ has joined #ruby
<tobiasvl> no
mrsolo is now known as 45PAALGD0
Douglish has joined #ruby
sindork has joined #ruby
hakunin has joined #ruby
ananthakumaran has joined #ruby
cburyta has joined #ruby
sweeper has joined #ruby
eval-in has joined #ruby
Bish_ has joined #ruby
Tritania- has joined #ruby
Jabberish has joined #ruby
mrsolo has joined #ruby
cek has joined #ruby
Rylee has joined #ruby
rickmasta has joined #ruby
tskogberg has joined #ruby
jbw has joined #ruby
Koshian has joined #ruby
v0n has joined #ruby
tchebb has joined #ruby
zodiak has joined #ruby
jmccune has joined #ruby
pdtpatri1k has joined #ruby
kryptek has joined #ruby
jtperreault has joined #ruby
moshee has joined #ruby
abstractj has joined #ruby
elektronaut has joined #ruby
banisterfiend has joined #ruby
capicue has joined #ruby
adamholt has joined #ruby
queequeg2 has joined #ruby
skinny_much has joined #ruby
TheSpect1e has joined #ruby
justinwe1ss has joined #ruby
wudofyr has joined #ruby
juan_ has joined #ruby
lsmola_ has joined #ruby
Boohbah has quit [Changing host]
Boohbah has joined #ruby
noop has quit [Changing host]
noop has joined #ruby
jprovazn has quit [Changing host]
jprovazn has joined #ruby
andikr has quit [Changing host]
andikr has joined #ruby
lsmola_ has quit [Changing host]
lsmola_ has joined #ruby
steinsgate has joined #ruby
45PAALGD0 has quit [*.net *.split]
ewnd9 has quit [*.net *.split]
xcess_denied has quit [*.net *.split]
jhaals has quit [*.net *.split]
ahawkins has quit [*.net *.split]
chomskiii has quit [*.net *.split]
closures999 has quit [*.net *.split]
aces1up has quit [*.net *.split]
gcds has quit [*.net *.split]
mrj has quit [*.net *.split]
achru has quit [*.net *.split]
radic has quit [*.net *.split]
predator117 has quit [*.net *.split]
pixelgremlins has quit [*.net *.split]
Hobogrammer has quit [*.net *.split]
brandonblack has quit [*.net *.split]
jwest has quit [*.net *.split]
vpretzel has quit [*.net *.split]
YaNakilon has quit [*.net *.split]
choobie has quit [*.net *.split]
user258467 has quit [*.net *.split]
dekz has quit [*.net *.split]
coaster has quit [*.net *.split]
juan__ has quit [*.net *.split]
bigkevmcd has quit [*.net *.split]
tewmten has quit [*.net *.split]
magbeat has quit [*.net *.split]
gigetoo has quit [*.net *.split]
ph8 has quit [*.net *.split]
Haegin has quit [*.net *.split]
Kovensky has quit [*.net *.split]
Underbyte has quit [*.net *.split]
somasonic has quit [*.net *.split]
wchun has quit [*.net *.split]
Asher has quit [*.net *.split]
lsmola has quit [*.net *.split]
bakedb has quit [*.net *.split]
diegok has quit [*.net *.split]
wereHamster has quit [*.net *.split]
StanleyD has quit [*.net *.split]
sivoais has quit [*.net *.split]
chihhsin has quit [*.net *.split]
banzounet has quit [*.net *.split]
TorpedoSkyline has quit [*.net *.split]
dreamchaser has quit [*.net *.split]
ericwood has quit [*.net *.split]
nuba has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
jinxD has quit [*.net *.split]
ixx has quit [*.net *.split]
tonini has quit [*.net *.split]
destructure has quit [*.net *.split]
phantomcircuit has quit [*.net *.split]
ccooke has quit [*.net *.split]
<Psi|4ward> ah right
somasonic_ is now known as somasonic
<Psi|4ward> args.empty? would do the job
<Psi|4ward> OR args[0].nil?
choobie has joined #ruby
ahawkins has joined #ruby
choobie has quit [Changing host]
<shevy> PPH wherever you place begin/rescue is the point where you do rescue
choobie has joined #ruby
coaster has joined #ruby
achru has joined #ruby
gigetoo has joined #ruby
ph8 has joined #ruby
jwest has joined #ruby
gcds has joined #ruby
radic has joined #ruby
Underbyte has joined #ruby
ewnd9 has joined #ruby
chomskiii has joined #ruby
bigkevmcd has joined #ruby
jhaals has joined #ruby
YaNakilon has joined #ruby
banzounet has joined #ruby
predator117 has joined #ruby
user258467 has joined #ruby
aces1up has joined #ruby
brandonblack has joined #ruby
TorpedoSkyline has joined #ruby
Kovensky has joined #ruby
destructure has joined #ruby
diegok has joined #ruby
bakedb has joined #ruby
dekz has joined #ruby
ericwood has joined #ruby
phantomcircuit has joined #ruby
coaster has quit [Changing host]
coaster has joined #ruby
<shevy> PPH if your caller does not have begin/rescue I don't think you can rescue in the caller
chihhsin has joined #ruby
robonerd has quit [Remote host closed the connection]
<PPH> shevy: well there'a begin rescue and it down't work... it's weird
huttan has joined #ruby
Jabberish has quit [Ping timeout: 272 seconds]
ph8 has quit [Max SendQ exceeded]
robonerd has joined #ruby
<shevy> without code it is not possible to verify that
robonerd has quit [Max SendQ exceeded]
vlad_starkov has joined #ruby
robonerd has joined #ruby
Lindrian has quit [Changing host]
Lindrian has joined #ruby
mrfoto has joined #ruby
tewmten has joined #ruby
robonerd has quit [Max SendQ exceeded]
robonerd has joined #ruby
OdNairy has quit []
ItSANgo has joined #ruby
huttan has quit [Read error: Operation timed out]
kreantos has joined #ruby
amacgregor_ has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
OdNairy has joined #ruby
Xeago has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
xk_id has quit [Quit:
steinsgate has quit [Changing host]
steinsgate has joined #ruby
camilasan has joined #ruby
Jetchisel has quit [Ping timeout: 260 seconds]
jlast has joined #ruby
nomenkun has joined #ruby
sandeepk has quit [Quit: Leaving...]
intuxicated has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
tesuji has joined #ruby
marr has joined #ruby
leonidlm has quit [Ping timeout: 246 seconds]
ph8 has joined #ruby
Mission-Critical has joined #ruby
jjbohn has joined #ruby
platypine has joined #ruby
cek has quit [Quit: жопа диридай диридиридай]
Xeago has joined #ruby
camilasan has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
camilasan has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
Haegin_ is now known as Haegin
Astralum has joined #ruby
yjmsf20 has joined #ruby
olivier_bK has joined #ruby
hogeo has joined #ruby
platypine has quit [Ping timeout: 246 seconds]
relix has joined #ruby
<derebos> hi
jjbohn has quit [Ping timeout: 272 seconds]
Mission-Critical is now known as MissionCritical
Xeago has quit [Remote host closed the connection]
Astralum has quit [Read error: Connection reset by peer]
achru has quit [Ping timeout: 272 seconds]
<derebos> add_runtime_dependency how can i specify the source of gem what if i want it to fetch from git repo
Astralum has joined #ruby
dkamioka has joined #ruby
threesome has joined #ruby
newbiehacker has joined #ruby
achru has joined #ruby
relix has quit [Client Quit]
jcf has joined #ruby
drumusician has joined #ruby
nari has quit [Ping timeout: 245 seconds]
dkamioka has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
<gcds> hmm I have problem with such thing: I have loop which reads from tcpsocket 4048 bytes to buff and then writes buff to tcpserver and breaks the loop if buff size is smaller than 4048 bytes and it always breaks doesnt matter that there is like 3 times more data to read
dhruvasagar has joined #ruby
leonidlm has joined #ruby
jcf has quit [Client Quit]
Jetchisel has joined #ruby
jcf has joined #ruby
Megtastique has quit []
Blaze_Boy has joined #ruby
ephemerian has joined #ruby
Psi|4ward has left #ruby ["terminated"]
jetblack has joined #ruby
jenenliu has joined #ruby
jenenliu has quit [Remote host closed the connection]
jrhe has left #ruby [#ruby]
jenenliu has joined #ruby
weems has quit [Read error: Connection reset by peer]
<jenenliu> hi guys, I want to learn ruby, are there some great books for ruby beginners ?
srji has joined #ruby
nfk has joined #ruby
<jcf> @jenenliu Programming Ruby is worth a read http://pragprog.com/book/ruby/programming-ruby
<yjmsf20> jenenliu: try rubymonk.com
zarubin has joined #ruby
<jcf> @jenenliu check out the extracts http://media.pragprog.com/titles/ruby/tut_containers.pdf
apeiros has joined #ruby
sevenseacat has quit [Quit: Leaving.]
sandeepk has joined #ruby
nvrch has joined #ruby
<jenenliu> jcf: yjmsf20 thanks ;)
TMM has joined #ruby
jcf has quit [Quit: jcf]
hiyosi has joined #ruby
mikepack has joined #ruby
shaunbaker has joined #ruby
allsystemsarego has joined #ruby
shaunbak_ has joined #ruby
<jrobeson> jenenliu, check the rubykoans also.. nice way to learn imo..
<jrobeson> it's not a book.. it's more like an exercise..
xcess_denied has joined #ruby
timonv has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
gustavo__ has quit [Quit: Leaving]
mikepack has quit [Ping timeout: 252 seconds]
hiyosi has quit [Ping timeout: 252 seconds]
shaunbaker has quit [Ping timeout: 245 seconds]
lkba has quit [Ping timeout: 252 seconds]
daxroc has joined #ruby
daxroc has quit [Changing host]
daxroc has joined #ruby
jcf has joined #ruby
<mrfoto> jrobeson: http://tryruby.org/ is also nice for absolute beginners
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
wildroman2 has joined #ruby
gianlucadv has joined #ruby
err_ok has joined #ruby
dodosan has joined #ruby
<jrobeson> mrfoto, don't tell me tell jenenliu
<mrfoto> jrobeson: ups, sorry, scrolled to fast :P
sayan has quit [Ping timeout: 240 seconds]
deegen has left #ruby [#ruby]
sbos99 has joined #ruby
wildroman2 has quit [Ping timeout: 246 seconds]
mweshi has joined #ruby
Zespre has joined #ruby
jcf has quit [Quit: Leaving.]
jcf has joined #ruby
Macaveli has quit [Remote host closed the connection]
dodosan has quit [Ping timeout: 272 seconds]
Al_ has joined #ruby
ccooke_ is now known as ccooke
jcf has quit [Client Quit]
jcf has joined #ruby
srji has quit [Quit: Lost terminal]
capicue has quit [Quit: Leaving...]
nism-pi has joined #ruby
adambeynon has joined #ruby
Xeago has joined #ruby
Banistergalaxy has joined #ruby
sayan has joined #ruby
banghouse has quit [Remote host closed the connection]
ua has quit [Ping timeout: 246 seconds]
hiall has joined #ruby
err_ok has quit [Ping timeout: 246 seconds]
jlast has quit [Ping timeout: 245 seconds]
zoee has quit [Quit: This computer has gone to sleep]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
jjbohn has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
jjbohn has quit [Ping timeout: 244 seconds]
Guest82912 has joined #ruby
nari has joined #ruby
Guest82912 has left #ruby [#ruby]
Guest82912 has joined #ruby
zeeraw has joined #ruby
<Guest82912>
* Guest82912
ua has joined #ruby
hiall has quit [Quit: hiall]
phansch has joined #ruby
Guest82912 has left #ruby ["Textual IRC Client: www.textualapp.com"]
Guest82912 has joined #ruby
Guest82912 has quit [Quit: Textual IRC Client: www.textualapp.com]
DouweM has joined #ruby
zoee has joined #ruby
Rollabunna has joined #ruby
blaxter_ is now known as blaxter
Jabberish has joined #ruby
mercwithamouth has joined #ruby
zipper has quit [Ping timeout: 245 seconds]
mweshi has quit [Remote host closed the connection]
zipper has joined #ruby
keen___ has joined #ruby
blackmesa has joined #ruby
cek has joined #ruby
<cek> any knows how t odebug with pry? i'm getting tons of errors with it
keen__ has quit [Ping timeout: 240 seconds]
<cek> "pry bundle exec script" doesn't work . pry ~/.rvm/gems/ruby-1.9.3-p448@global/bin/bundle exec script " gives me Could not find task "
zipper has quit [Ping timeout: 246 seconds]
yacks has joined #ruby
Hanmac1 is now known as Hanmac
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jrobeson> cek, i'm not sure but you might have to do something like
sayan has quit [Ping timeout: 244 seconds]
<jrobeson> pry -e
nfk has quit [Ping timeout: 264 seconds]
<jrobeson> oh no that's not right
<cek> width rdebug, I just "rdebug bundle -- exec shit" and it works
<cek> why can't that be done in pry?
<cek> why inventing bicycle again
<cek> i wish my debugger could actually stop on breakpoints i tell him
maasha has joined #ruby
sepp2k has joined #ruby
<jrobeson> actually yes..
<cek> i really really don't wish to engage RubyMine's IDE debugger that works *always*
timonv has quit [Remote host closed the connection]
jlast has joined #ruby
<cek> somehow those guys produce perfect product, polished, unbugged and *working*
timonv has joined #ruby
<jrobeson> actually it doesn't seem possible..
<jrobeson> did some googling
<jrobeson> banisterfiend, you about?
thelorax123 has quit [Remote host closed the connection]
kitak_ has quit [Remote host closed the connection]
<cek> why does everyone suggest pry. Do they actually debug ruby scripts? do they write code or just "blogging"?
<jrobeson> because it's a better debugger
zipper has joined #ruby
<jrobeson> and has all sort sof neat extensions
barratt has joined #ruby
<jrobeson> and it works way better as a repl than irb
<jrobeson> lots of reasons
<cek> i don't need "extensions" . i need GDB: break on instruction / memory/var access, step, continue.
ewnd9 has quit [Ping timeout: 272 seconds]
<jrobeson> it has that ..
<jrobeson> stop being such a whiner
<maasha> I am trying to extend the Math class, but within a module of mine for name space reasons - and this of cause gives an error: https://gist.github.com/maasha/0072c7b442dc913441ab what is the way to resolve this?
timonv_ has joined #ruby
<jrobeson> the quick fix is just to add require 'pry'; binding.pry! to your script
mrsolo has quit [Quit: This computer has gone to sleep]
timonv has quit [Read error: Connection reset by peer]
<cek> that quick fix will fix my "debugger" gem
kitak has joined #ruby
<jrobeson> you could dothat
<cek> i dont need git diff from pry. that's nonsense. you can do that in next open shell tab
DaniG2k has joined #ruby
<cek> why build another ide...
<DaniG2k> why is this line not working at all? (1..4000).inject {|sum, n| (sum + n) if n.even?}
JeanMertz has joined #ruby
* jrobeson quits
Es0teric has quit [Quit: Computer has gone to sleep.]
leonidlm has quit [Ping timeout: 246 seconds]
hiyosi has joined #ruby
<cek> DaniG2k, why are you summarizing accumulator that's nil?
thelorax123 has joined #ruby
<DaniG2k> cek: I basically want to do something like reduce(:+) but only if even
zipper has quit [Ping timeout: 240 seconds]
<DaniG2k> cek: so sum is nil?
zeeraw has quit [Ping timeout: 245 seconds]
<cek> n.even?? (sum+n):0
nari has quit [Ping timeout: 240 seconds]
zipper has joined #ruby
wesside has joined #ruby
<cek> or sum instead of 0? have no idea)
<DaniG2k> cek: cool thanks
madb055 has quit [Ping timeout: 246 seconds]
<apeiros> DaniG2k: or select first
<Hanmac> >> (1..4000).each.lazy.select(&:even?).inject(0,:+)
<eval-in> Hanmac => 4002000 (https://eval.in/67714)
<apeiros> enum.select(&:even?).inject(:+)
<apeiros> Hanmac beat me to it
<DaniG2k> oh thats sweet
hiyosi has quit [Ping timeout: 260 seconds]
<cek> still, that's hell lot of overhead
relix has joined #ruby
<cek> why not use arithmetic progression forumlas
<DaniG2k> apeiros: does lazy need .each before it?
<Hanmac> apeiros: someday i will make an "mega_each" like that: mega_each([:select,:inject],lazy: true, select: &:even?, inject: [0,:+])
karupanerura is now known as zz_karupanerura
<DaniG2k> ah apparently i dont need it
<DaniG2k> .select(&:even?).inject(0,:+) worked
<DaniG2k> thanks, thats awesome
<Hanmac> DaniG2k: lazy prevents select from creating an new Array
juan_ has quit [Read error: Operation timed out]
juan_ has joined #ruby
Es0teric has joined #ruby
Es0teric has quit [Client Quit]
cascalheira has joined #ruby
amacgregor__ has joined #ruby
camilasa_ has quit [Remote host closed the connection]
camilasan has joined #ruby
bluenemo has quit [Remote host closed the connection]
akonny has joined #ruby
err_ok has joined #ruby
Hanmac1 has joined #ruby
h_kon has quit [Remote host closed the connection]
amacgregor_ has quit [Ping timeout: 246 seconds]
Hanmac has quit [Ping timeout: 246 seconds]
guns has joined #ruby
leonidlm has joined #ruby
wchun has joined #ruby
Jollyrotten has joined #ruby
<Jollyrotten> which is better? rbenv or rvm?
<apeiros> Hanmac1: I like the unix approach. small tools which do one task well and integrate with other tools.
<apeiros> Jollyrotten: going for a holy war?
camilasan has quit [Ping timeout: 246 seconds]
SnatchFrigate has joined #ruby
<apeiros> Jollyrotten: seriously, questions like that are entirely pointless :)
<Jollyrotten> apeiros: i am a holy monkey
<apeiros> I like rvm. I haven't tried rbenv, as rvm never gave me a reason to leave it.
<apeiros> hth
* apeiros off for lunch
<Jollyrotten> apeiros: am returning to ruby after a break, i used to use rvm - now seen talk of rbenv
xk_id has joined #ruby
<Xeago> I am very happy with chruby on my work laptop
<Xeago> having used rbenv before
<Jollyrotten> another one?
<Jollyrotten> :(
<Xeago> there was rb_fu too ;p
<Xeago> that one joined chruby
<Jollyrotten> oof, am using ubuntu as dev box, gentoo on server
zoee has quit [Quit: This computer has gone to sleep]
<Hanmac1> i used rvm on Mac but not because of the gem sets but it makes compiling ruby trunk easier
Hanmac1 is now known as Hanmac
<Xeago> Hanmac: doesn't ruby-install and ruby-build solve that too?
<Jollyrotten> i've wrestled a bit with rbenv but i'll check out chruby too in that case
h_kon has joined #ruby
<Xeago> Jollyrotten: conceptually it gets easier:
<cek> use bundler
<Xeago> in this order rvm > rbenv > chruby
<Hanmac> Xeago: maybe but i didnt try them ... i like to "CC=... rvm install ruby-trunk"
<Jollyrotten> rvm does seem to do too many things at once, not hating on it, used to use on my macbook
ckinni has joined #ruby
ckinni has quit [Client Quit]
zoee has joined #ruby
<Jollyrotten> Xeago: chruby looks awesome!
<Jollyrotten> Xeago: any downsides? works on ubuntu?
eka has joined #ruby
<Jollyrotten> Xeago: gentoo uses its own eselect thingy which manages multiple packages
thelorax123 has quit [Remote host closed the connection]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<DaniG2k> the guy who made Gentoo is a friend of mine
<DaniG2k> Daniel Robbins
<DaniG2k> interesting guy
<DaniG2k> small world innit?
thelorax123 has joined #ruby
<Jollyrotten> DaniG2k: that's cool
jhaals has joined #ruby
<Jollyrotten> DaniG2k: i don't know anyone famous except for myself
<DaniG2k> you're famous?
<Jollyrotten> in my own head
<DaniG2k> :O
<Jollyrotten> best kind of fame baby
Advocation has joined #ruby
jjbohn has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
xk_id has quit [Quit:
nism-pi has quit [Ping timeout: 252 seconds]
zoee has quit [Quit: This computer has gone to sleep]
blackmesa has quit [Ping timeout: 240 seconds]
jjbohn has quit [Ping timeout: 246 seconds]
Advocation has quit [Ping timeout: 265 seconds]
tvw has joined #ruby
ewnd9 has joined #ruby
huttan has joined #ruby
Jollyrotten is now known as J0llyR0tten
soba has quit [Ping timeout: 240 seconds]
J0llyR0tten is now known as j0llyr0tten
j0llyr0tten is now known as J0llyr0tten
Bry8Star{T2 has joined #ruby
Deele has joined #ruby
visof has joined #ruby
<visof> hello
<J0llyr0tten> hi
J0llyr0tten has left #ruby [#ruby]
camilasan has joined #ruby
<visof> how can i create simple transparent window in gnome with simple string?
brandon_ has quit [Read error: Operation timed out]
glen has joined #ruby
zipper has quit [Ping timeout: 260 seconds]
<glen> how do i remove BAD_IPS array from IP_LIST array in ruby?
<Hanmac> visof: what lib/gem did you use for that job?
<glen> i.e all elements present in in BAD_IPS should be removed from IP_LIST array
<Hanmac> glen: "IP_LIST - BAD_IPS"
zipper has joined #ruby
<glen> and to modify IP_LIST itself?
lkba has joined #ruby
<visof> Hanmac: i didn't decide yet but any suggestions will be welcomed
<Hanmac> "IP_LIST -= BAD_IPS"
<visof> Hanmac: i'm using gnome
<glen> thakS1
brandon has joined #ruby
brandon is now known as Guest7039
<Hanmac> visof: hm first i needed to look which lib supports transparent windows ... ( i dont know that yet)
mikecmpbll has joined #ruby
mephux has quit [Quit: w0ots...]
watermel_ has joined #ruby
mephux has joined #ruby
halfie has joined #ruby
<halfie> have you guys seen https://community.rapid7.com/thread/3031 ?
sandeepk has quit [Quit: Leaving...]
watermel0n has quit [Ping timeout: 252 seconds]
robonerd has quit [Remote host closed the connection]
d45h has quit []
hiall has joined #ruby
tesuji_ has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
<DouweM> why would we have?
tesuji_ has quit [Read error: Connection reset by peer]
nari has joined #ruby
indigo has quit [Quit: Leaving]
<Hanmac> or better question: why should we care?
popl has quit [Quit: We must make an idol of our fear, and call it God.]
indigo has joined #ruby
bassclef has joined #ruby
bassclef is now known as Guest7624
tesuji has joined #ruby
<banisterfiend> cek the emphasis of pry is not debugging, but it does have many of those features
leonidlm has quit [Read error: Operation timed out]
aces1up has quit []
mklappstuhl has joined #ruby
zipper has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Remote host closed the connection]
zarubin has quit [Ping timeout: 272 seconds]
jlast has quit [Ping timeout: 260 seconds]
mklappst_ has joined #ruby
zipper has joined #ruby
<maasha> Anyone with experience running SimpleCov on non-rails projects? When I run it, it shows all code as untested :o( - but a fair bit is tested.
<maasha> I am initializing SimpleCov in this test helper: https://github.com/maasha/biopieces/blob/master/test/helper.rb
hiyosi has joined #ruby
sandeepk has joined #ruby
mikepack has joined #ruby
glen has left #ruby [#ruby]
mklappstuhl has quit [Ping timeout: 265 seconds]
<halfie> DouweM, Hanmac is that a ruby 2.0.x bug? seems like one.
<halfie> personally, I believe it was a mistake to write metasploit in ruby but hey, what's done is done.
<Hanmac> halfie: it says " superclass mismatch" ... that means the in the requireing order is something wrong
aapzak has quit [Ping timeout: 245 seconds]
<halfie> Hanmac, how do I reproduce this error message using some dummy code? also, why are there so many SSL related warnings?
<DouweM> halfie: it's probably an issue with one of their gems
TH34D has joined #ruby
<DouweM> halfie: because apparently OpenSSL is required twice
<halfie> looking at the exception trace isn't helping much
Blaze_Boy has quit [Ping timeout: 240 seconds]
<halfie> Douglish, aren't the imports "idempotent"?
danshultz has joined #ruby
<halfie> repeating imports shouldn't affect anything, right?
TH34D has quit [Client Quit]
aapzak has joined #ruby
mikepack has quit [Ping timeout: 248 seconds]
hiyosi has quit [Ping timeout: 272 seconds]
<DouweM> halfie: I don't know if that blogpost is still accurate, but it does describe a situation where something could be required twice
<DouweM> halfie: and the superclass mismatch isn't the issue here—the issue is the double require which then goes on to cause a superclass mismatch for some reason
<halfie> this sucks. at least Python got the imports right it seems :-(
<halfie> DouweM, I see.
<halfie> makes sense.
guns has quit [Quit: guns]
<DouweM> halfie: have you read the post correctly? it's not a case of "getting it right", it's just an edge case
<holderbaum> maasha: Your test-file is prefixed with test_
<DouweM> halfie: but I agree that it the safeguard should be better. I have no idea whether that 6 year old blogpost is still accurate though
<holderbaum> maasha: I believe, minitest / TestUnit conventions use a postfix: _test.rb or _spec.rb
<halfie> DouweM, yes. I grepped for all requires and they all say "require 'openssl'" always.
<holderbaum> maasha: Perhaps thats the reason for your struggle?
<DouweM> halfie: strange
mephux has quit [Quit: w0ots...]
<halfie> DouweM, and metasploit is one of the largest ruby project. it might be the biggest IIRC.
jhaals has quit [Ping timeout: 244 seconds]
mephux has joined #ruby
Hanmac1 has joined #ruby
jhaals has joined #ruby
<DouweM> perhaps so, but I can't believe they haven't tested it with 2.0. this is probably an issue with another gem
leonidlm has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
Hanmac1 is now known as Hanmac
<halfie> DouweM, things were even more broken some time back. those guys aren't the quickest when it comes to supporting new ruby versions
newbiehacker has quit [Ping timeout: 245 seconds]
Guest7039 has quit [Ping timeout: 248 seconds]
Nilium has joined #ruby
watermel0n has joined #ruby
watermel_ has quit [Ping timeout: 260 seconds]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
Blaze_Boy has joined #ruby
<halfie> "m = OpenSSL::Digest::Digest.new('sha1')" <== ruby-2.0.0 doesn't like this code. was this code every right? "m = OpenSSL::Digest::SHA1.new" is correct instead, right?
Soda has joined #ruby
Olipro has joined #ruby
kaspergrubbe has joined #ruby
<Hanmac> halfie: on my system, both works and both returns the same
sbos99 has quit [Quit: Leaving]
danshultz has quit [Ping timeout: 240 seconds]
Nucc has joined #ruby
<halfie> Hanmac, I see http://fpaste.org/53997/30045138/
<halfie> NoMethodError: undefined method `new' for Digest:Module
<halfie> (irb):2: warning: toplevel constant Digest referenced by OpenSSL::Digest::Digest
<halfie> ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]
bluenemo has joined #ruby
jlast has joined #ruby
<Hanmac> halfie: i have 2.1+ and i get this:
<Hanmac> irb(main):001:0> m = OpenSSL::Digest::Digest.new('sha1') => #<OpenSSL::Digest::Digest: da39a3ee5e6b4b0d3255bfef95601890afd80709>
<Hanmac> irb(main):002:0> m = OpenSSL::Digest::SHA1.new => #<OpenSSL::Digest::SHA1: da39a3ee5e6b4b0d3255bfef95601890afd80709>
<halfie> Hanmac, building fresh ruby from git.
<mikecmpbll> you're doing different things
<mikecmpbll> oh nvm
<halfie> "OpenSSL::Digest::SHA1.new" works just fine but "OpenSSL::Digest::Digest.new('sha1'" doesn't on Fedora 20's ruby. very very strange.
<halfie> I need to figure out what we broke in fedora
<mikecmpbll> halfie: what's the output from OpenSSL::OPENSSL_VERSION
xk_id has joined #ruby
<halfie> mikecmpbll, => "OpenSSL 1.0.1e 11 Feb 2013"
<mikecmpbll> and OpenSSL::VERSION ;d
ldnunes has joined #ruby
<halfie> OpenSSL::VERSION
<halfie> => "1.1.0"
<halfie> jesus, how are both there :S ?
<mikecmpbll> that's fine
<halfie> oh, yes, its fine. I mis-read.
Squarepy has joined #ruby
zoee has joined #ruby
<jrobeson> i had to patch my ruby openssl to get it working in fedora .. although not the system fedora
<DouweM> And yet OpenSSL::Digest::Digest.new("sha1") isn't working for me? It is for my 1.1.0
<jrobeson> err not the system ruby.. the ruby via ruby-build
jjbohn has joined #ruby
<DouweM> eh, *not working for you
<DouweM> it is working for me
<jrobeson> ok? and
<halfie> jrobeson, can you show me your patch?
<DouweM> jrobeson: I was talking to halfie
agent_white has quit [Quit: gnight]
<jrobeson> halfie, i should have been more specific about getting it to build.. not this far
<halfie> DouweM, no. "OpenSSL::Digest::Digest.new("sha1")" does not work on Fedora 20 systems.
<jrobeson> i wonder when a new ruby patch version is coming out..
<DouweM> halfie: Huh.
<jrobeson> ruby 2.0.0 patch level*
carif has joined #ruby
<jrobeson> halfie, how did you build ruby? or did you just use a package?
<halfie> jrobeson, I am just using the ruby provided by the distro (Fedora).
<halfie> currently, I am also building ruby from git to debug the problem
<mikecmpbll> strange that it doesn't work, but why do you need to do that anyway
workmad3 has joined #ruby
<jrobeson> ah ok
freezey has joined #ruby
Squarepy has quit [Ping timeout: 272 seconds]
jjbohn has quit [Ping timeout: 260 seconds]
<jrobeson> halfie, i had to use this patch due to the new openssl used by default.. so if you run into this.. gotta patch it https://bugs.ruby-lang.org/issues/8384
carif has quit [Read error: Connection reset by peer]
<jrobeson> new openssl in fedora that is* it removed something that ruby expected.. as it's been in most builds for a long time. but recently had some sort of security concern
nobitanobi has joined #ruby
khushildep has joined #ruby
<halfie> Douglish, confirmed. a fresh ruby from git works just fine.
<halfie> wondering how Fedora has screwed things up so badly.
<DouweM> ain't that some shit
wildroman has joined #ruby
atrocitas has quit [Remote host closed the connection]
<halfie> its terrible. even node.js and scala are broken in fedora :( ..
<halfie> need to talk some sense into those packagers.
<jrobeson> i can expect node.js .. since it just appeared in the last release officially.
<jrobeson> but scala.. that seems weird.. wtf could they have done to it
Squarepy has joined #ruby
<jrobeson> i'm not used to running into fedora ruby users in the wild
<halfie> jrobeson, scala + some jline problem. some api differences
<jrobeson> honestly i just skipped out on the system ruby and went with rbenv + ruby-build
<jrobeson> chruby + ruby-install might be more preferable to many though
<halfie> oh, I am used to using rvm? is that ok too?
<jrobeson> i don't like rvm.. too much magic.. and messin with my cd command and junk
<jrobeson> but it will work just fine i'm sure
<halfie> strange. /opt/ruby/bin/gem install bundler <== this fails due to permissions issue with /opt. why doesn't gem trying to install gems in ~/.gem as usual?
krandi has joined #ruby
andikr has quit [Ping timeout: 244 seconds]
ckinni has joined #ruby
decoponio has joined #ruby
leonidlm has quit [Ping timeout: 272 seconds]
<workmad3> jrobeson: you know that the 'messing with cd command' is completely optional, was turned off by default for quite a while and only turned on again by default again due to popular demand, right?
minos__ has joined #ruby
vlad_starkov has joined #ruby
minos__ has quit [Client Quit]
<workmad3> halfie: your GEM_HOME environment variable is probably wrong
iajrz_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby
AlSquire has joined #ruby
<Olipro> if I have a String object that is a sequence of bytes read in from a TCP socket, is there a way to "map" that into a structure that I've defined (other than just manipulating it as an array and using unpack)
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
<lupine> Olipro, there's libraries that do it for you
<lupine> Packetsomethingoranother?
<lupine> packetfu
<lupine> bindata
Olipro was kicked from #ruby by apeiros [if you cross post, you're required to at least tell that in every channel where you cross post. thank you (this is only a kick, not a ban)]
<lupine> heh
Olipro has joined #ruby
kitak has quit [Ping timeout: 246 seconds]
<iajrz_> DouweM: you here?
<DouweM> iajrz_: yessir
<iajrz_> I need to know
<iajrz_> do I drop the request
<_br_> apeiros: He was spamming several channels?
<iajrz_> or how do I go about it?
<lupine> Olipro, I've used bindata in the past, and it's not terrible
kitak_ has quit [Remote host closed the connection]
<apeiros> _br_: I wouldn't call it spamming, but yes, he was cross-posting.
sandeepk_ has joined #ruby
sandeepk has quit [Read error: Connection reset by peer]
<_br_> apeiros: I just ask because kicking him, isn't that a bit extreme?
<Olipro> I posted it in ruby-lang
<Olipro> and there was no responses
<apeiros> _br_: experience shows people don't bother if you merely tell them.
<Olipro> apeiros: if you're going to behave like that, maybe put such a requirement in the topic
<_br_> apeiros: Hm, true you are probably right.
<lupine> well, there was a bit of response, but I didn't notice it eas in there
<apeiros> Olipro: I'd assume people have a basic sense of decency.
<Olipro> wow, you actually consider it *offensive*
<workmad3> Olipro: also, 2 minutes isn't exactly a long time to wait for a reply
<lupine> bindata is definitely an answer, anyway
<Olipro> ok, fine
<apeiros> Olipro: I consider it dick-behavior, yes.
<apeiros> "your time is free so I don't need to be considerate in the least way"
* lupine wonders if noting that in #ruby-lang would also count as cross-posting ;)
<Olipro> they're entirely separate channels
<Olipro> spamming? sure, that is definitely irritating
nari has quit [Ping timeout: 260 seconds]
<apeiros> Olipro: yes. they are. which is why what you do is cross-posting.
<Olipro> and maybe consider that #ruby and #ruby-lang are made up of different people
<lupine> the overlap is considerable, I'm sure
<workmad3> Olipro: except that everyone that you're talking to here is also *there*
<Olipro> so perhaps I just wanted to get different views - either way, I don't see how it's "dick behaviour"
ewnd9 has quit [Ping timeout: 260 seconds]
<workmad3> lupine: maybe we should go and wave at Olipro in #ruby-lang? :)
freezey has quit [Ping timeout: 272 seconds]
<Olipro> workmad3: then that raises the question of why the two channels exist
<Olipro> and I really doubt that exactly the same people are in both channels
<workmad3> Olipro: not the exact same people
<Olipro> you're not really "everyone" now, are you?
<apeiros> Olipro: it's irrelevant to cross-posting without announcement being dick behavior.
<workmad3> Olipro: but all the people you're talking to atm are
<workmad3> Olipro: hence 'everyone you're talking to' != 'everyone'
<apeiros> set theory is lost on some
<lupine> honestly, I find meta-knobbing about crossposting to be more disruptive than crossposting itself. it's definitely an etiquette breach, it's relatively minor, we can all move on
<apeiros> as is basic decency
<DouweM> lupine: yup
<apeiros> lupine: agreed
<Olipro> apeiros: I'm trying to discern exactly what cost or inconvenience it's incurring you by my posting in both channels
Soda has quit [Ping timeout: 272 seconds]
<lupine> bindata is much cooler to talk about
<apeiros> Olipro: people taking their time trying to answer a question you already got answered elsewhere.
* Olipro gets back on topic
<workmad3> lupine: I don't personally care about the cross-posting... it's a bit annoying, especially if the same answers come up in both channels :)
<lupine> it impedes gestalt, certainly
<apeiros> Olipro: but since you consider everybody but your time to be free…
<Olipro> ...
<apeiros> *everbodys
<Olipro> yes, I absolutely implied that
<workmad3> apeiros: *everybodies
<apeiros> gah
<workmad3> ;)
<apeiros> fuck english :)
<_br_> MINSWAN... ...
<apeiros> thanks workmad3
<maasha> holderbaum: sorry, was away for a while. I will test your suggestion
<workmad3> lupine: mostly I just take offence to people being wrong
<Hanmac> Olipro #ruby-lang is register protected
<lupine> everybodies is not a word
<lupine> you mean everybody's
<workmad3> ok, yes
* workmad3 gets offended at himself
Ivo has quit [Read error: Connection reset by peer]
<lupine> :p
ezkl has quit [Quit: QUIT!]
leonidlm has joined #ruby
<lupine> anyway, bindata has some weirdnesses and is quite possibly not the best in this class of library
<workmad3> lupine: of course, that's not getting into the awful grammar of apeiros' phrase :)
<lupine> anyone know of anything like-but-better?
<Olipro> what sort of weirdness?
intuxicated has quit [Quit: Leaving]
<apeiros> lupine: I'll see to handling the issue in a way which avoids the "what?!? but I'm entitled to behaving dickish and you have no clue" discussion afterwards.
<Olipro> can I only have one endian in the entire class?
<lupine> Olipro, it can get difficult when the structure of the data you're reading is determined by other data you're reading
<lupine> no, you can specify endianness per field
Ivo has joined #ruby
tonini_ is now known as tonini
<Olipro> yeah, I've got that
<Olipro> *that situation
Asher1 has quit [Quit: Leaving.]
hiyosi has joined #ruby
<lupine> equivalent-to-backreferences are difficult as well
Soda has joined #ruby
<Olipro> although I suppose I could work around it by splitting the format up into separate classes
<Olipro> one for the common header
Asher has joined #ruby
<Olipro> and then classes for whatever the payload type is indicated by the header
<lupine> that's what I did for the bitcoin one. you need to start from the smallest primitives and then build up from there
<lupine> if you look at how I had to handle the "there are two possible formats for this field, depending on the protocol version" bit - AddrFrom31402 class - that sort of illustrates why I'm not very happy with bindata's approach
<Olipro> does this thing default to native endian?
<lupine> no idea
<lupine> if you're not specifying endianness for everything explicitly, you're doing it wrong anyway ^^
xcess_denied has quit [Quit: Leaving...]
<Olipro> heh, just curiousity :P
jenenliu has quit [Read error: Connection reset by peer]
Asher has quit [Client Quit]
survili has joined #ruby
<lupine> the documentation was passable, but not great, when I did this
<lupine> especially around the "choice" method, I had to really struggle to understand what was going on
jprovazn has quit [Ping timeout: 245 seconds]
<lupine> but, it works. it might even be vaguely performant, for ruby
<holderbaum> maasha: you should always try to stick with the ruby conventions, it can lead to nontrivial conflicts as soon as you start baking your own stuff :)
hiyosi has quit [Ping timeout: 272 seconds]
graydot has quit [Quit: graydot]
peta_ has joined #ruby
<maasha> holderbaum: I thought I was.
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Soda has quit [Ping timeout: 246 seconds]
<survili> hi guys, noob question. when I print exception using puts "#{exception.backtrace}" I get a one ling line... but if I use puts exception.backtrace I get a multiline output just like I want.. my question is why interpolation has such an affect
<survili> *ling=long
<maasha> holderbaum: hm, I see other gems with unit tests where the file names start with test_
cascalheira has quit [Quit: Leaving...]
<maasha> holderbaum: including rake
<workmad3> >> puts ["hello", "world"]
<eval-in> workmad3 => hello ... (https://eval.in/67876)
<workmad3> >> puts ["hello", "world"].to_s
<eval-in> workmad3 => ["hello", "world"] ... (https://eval.in/67877)
<workmad3> survili: ^^ that's why
<maasha> holderbaum: so I dont think that is the problem anyway. Its more like SimpeCov never traverses the namespace of module BioPieces
shredding has joined #ruby
<holderbaum> maasha: interesting, test_*.rb is the ole TestUnit and MiniTest Unit convention, _spec.rb for specs
<maasha> holderbaum: conventions are good if people follow them - I try to. But I think there is something else going on here.
sandeepk_ has quit [Quit: Leaving...]
<holderbaum> maasha: tried to add the lib filter by hand?
<holderbaum> perhaps you overwrite the default filter rules by specifying your own?
sandeepk has joined #ruby
<survili> eval-in: sorry, didn't get the point, can you explain ?
<Banistergalaxy> Lol
<maasha> holderbaum: I put the output online: http://newton.binf.ku.dk/~maasha/simple_cov/index.htm
dhruvasagar has quit [Ping timeout: 252 seconds]
CreativeEmbassy has joined #ruby
camilasan has quit [Remote host closed the connection]
<maasha> holderbaum: to me it seems like SimpleCov is doing something, but it never traverses the module BioPieces, and hence it looks like nothing is tested.
<shredding> Can I use Net::HTTP.post_form to post a raw post body?
camilasan has joined #ruby
<shredding> I have this: post_data = Net::HTTP.post_form(URI.parse(target_url), some_string)
<survili> workmad3: do you mean that .to_s is called for interpolation and default .to_s for arrays doesn't add \n between elements ?
<shredding> The string is expected to have not params, just the raw body.
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<holderbaum> maasha: obviously, scov detects your code as present. Do zou use MRI for running zour tests?
jhaals has quit [Ping timeout: 246 seconds]
<maasha> holderbaum: yup. Ruby 2.0
cascalheira has joined #ruby
allanm has joined #ruby
<maasha> holderbaum: the documentation of scov is just very rails oriented - and so is anything I can find with google.
sandeepk has quit [Quit: Leaving...]
<holderbaum> maasha: I am using simplecov in every project, without struggles like that
hamakn has quit [Remote host closed the connection]
jprovazn has joined #ruby
hamakn has joined #ruby
nari has joined #ruby
<workmad3> survili: yes
danshultz has joined #ruby
supergeek has joined #ruby
<holderbaum> maasha: your gemspec contains a require 'biopieces', I think bundler loads this file on boot. Effectifely, biosphere gets required before simplecov.
<holderbaum> maasha: IIRK, this is important to simplecov, that it gets loaded before the actual codebase
<holderbaum> maasha: change that require to 'biopieces/version' and try again
<survili> workmad3: thank you, I wonder when ruby encounters interpolation, it doesn't call to_s for it ? and if yes, then I would expect to see same result(without \n), or is puts "smart" and when it sees Array as a parameter it goes over it and adds \n after each element is printed ? btw, for next time, how can I analyze puts code by myself ? how can I find in which .rb file it is implemented ?
<workmad3> survili: 'puts' isn't very smart
supergeek has quit [Client Quit]
<workmad3> survili: when you do 'puts "a", "b"' or 'puts ["a", "b"]' it treats them the same, and as though you'd done separate 'puts' calls for each item
err_ok has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has quit [Ping timeout: 272 seconds]
BizarreCake has joined #ruby
hamakn has quit [Ping timeout: 265 seconds]
<workmad3> survili: and also "start#{foo}end" is always equivalent to "start" + foo.to_s + "end" in end-result (but the second version has more intermediary strings created :) )
robbyoconnor has joined #ruby
iajrz_ has quit [Read error: Connection reset by peer]
<survili> workmad3: thank you, it was very useful! :)
iajrz_ has joined #ruby
jjbohn has joined #ruby
<Douglish> Hello everyone. Is there any rails way how to select a subset of objects inlucding subset of child elements. Example I have albums and each album has songs. I want to select 50 most played songs, order them and return only albums where these songs are and also from this album have asses only to filtered songs. Is there any way how to achive this?
Guest24707 has joined #ruby
xk_id has quit [Quit:
<workmad3> survili: also, 'puts' is implemented somewhere in core ruby... you'd need to dig through the ruby source code to find it (and it's probably implemented in plain C) :)
Soda has joined #ruby
supergeek has joined #ruby
leonidlm has quit [Ping timeout: 252 seconds]
iajrz_ has quit [Read error: Connection reset by peer]
<Guest24707> Hey. Anyone care/can explain why this code works after changing @users to @@users or $users? https://github.com/cinchrb/cinch/blob/master/examples/basic/seen.rb
krandi has quit [Ping timeout: 240 seconds]
<Guest24707> If you leave it at @users, it can't see the hash.
<survili> workmad3: you're right, it's in C
jjbohn has quit [Ping timeout: 248 seconds]
Dave has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Dave is now known as Guest42810
<DouweM> survili: link? I'm curious
blackmesa has joined #ruby
sergicles has quit [Quit: sergicles]
fsfs_ has joined #ruby
survili has quit [Ping timeout: 250 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
sambao21 has joined #ruby
iajrz_ has joined #ruby
iajrz_ is now known as iajrz
<iajrz> is there a way to get a reference to a position in an array?
platzhirsch has joined #ruby
jamesaanderson has joined #ruby
<workmad3> iajrz: ?
<iajrz> yessir!
<iajrz> (or ma'am)
<workmad3> iajrz: sorry, that ? was 'what do you mean, a reference to a position?'
<DouweM> that doesn't make a lot of sense as written. what are you trying to do?
<iajrz> aye, I'm typing
rickmasta has quit [Quit: Leaving...]
tharindu has quit [Quit: Leaving...]
<iajrz> something like a = &array[index]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sergicles has joined #ruby
<iajrz> a =3; assert_equal a,array[index]
<workmad3> iajrz: ah, like that
<workmad3> iajrz: no
<iajrz> :) ok
falood has quit [Remote host closed the connection]
falood has joined #ruby
ravster has joined #ruby
Asher has joined #ruby
nobitanobi has quit [Ping timeout: 248 seconds]
marcgg has quit [Ping timeout: 248 seconds]
marcgg has joined #ruby
leonidlm has joined #ruby
^Chris^ has quit [Read error: Connection reset by peer]
^Chris^ has joined #ruby
fsfs_ has quit [Quit: Page closed]
ffranz has joined #ruby
falood has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
mrfoto has quit [Remote host closed the connection]
jjbohn has joined #ruby
hiroyuki has joined #ruby
graydot has joined #ruby
mark_locklear has joined #ruby
Squarepy_ has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
burlyscudd has joined #ruby
Squarepy has quit [Ping timeout: 246 seconds]
testslave has quit [Read error: Operation timed out]
hiyosi has joined #ruby
stringoO has joined #ruby
mikepack has joined #ruby
burlyscudd has quit [Client Quit]
testslave has joined #ruby
burlyscudd has joined #ruby
SteveBenner9 has quit [Ping timeout: 246 seconds]
^Chris^ has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
brandon has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
<shevy> alright
hiyosi has quit [Ping timeout: 260 seconds]
<shevy> guys to do another round of coding without clothes
brandon is now known as Guest56227
Soda has quit [Remote host closed the connection]
<iajrz> shevy: what's that?
<holderbaum> maasha: did it work? :)
mlpinit has joined #ruby
<shevy> iajrz we all write sexy code naked!
sevenseacat has joined #ruby
<iajrz> o_O I've been doing that since last night lol
SirFunk has quit [Read error: Connection reset by peer]
<iajrz> well, dunno if code is sexy though
<shevy> of course
<shevy> it was written under the right circumstances
<workmad3> plenty of code is sexy
<workmad3> not many coders though...
polaco_zZz is now known as polaco
DaniG2k has quit [Quit: leaving]
Squarepy_ has quit [Ping timeout: 246 seconds]
<iajrz> all instance variables are immediately private
zoee has quit [Quit: This computer has gone to sleep]
err_ok has joined #ruby
SirFunk has joined #ruby
ExCa|iBuR has joined #ruby
kaldrenon has joined #ruby
cody-- has joined #ruby
jerius has joined #ruby
<iajrz> but as good as public if you use attr_accessor... many ways to do stuff
<shevy> private :parts
ananthakumaran has quit [Quit: Leaving.]
anderson has left #ruby ["Leaving"]
breakingthings has joined #ruby
<shevy> >> def parts;end; private :parts
<eval-in> shevy => Object (https://eval.in/67906)
<shevy> >> private :parts
<eval-in> shevy => undefined method `parts' for class `Object' (NameError) ... (https://eval.in/67908)
<shevy> hmm... Objects need to find get to know hat private parts are
<shevy> *first
Asher has quit [Quit: Leaving.]
<shevy> and *what
banister has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
zoee has joined #ruby
EvanR has joined #ruby
kpshek has joined #ruby
EvanR is now known as Guest35220
banister has quit [Client Quit]
banisterfiend has joined #ruby
jerius has quit [Client Quit]
jkamenik has joined #ruby
RaCx has joined #ruby
lupine has quit [Read error: Connection reset by peer]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
icecandy has joined #ruby
momomomomo has joined #ruby
vlad_starkov has joined #ruby
dayepa has quit [Quit: dayepa]
lupine has joined #ruby
jetblack has quit [Quit: leaving]
dayepa has joined #ruby
Tomasso_ has joined #ruby
newbiehacker has joined #ruby
<Hanmac> iajrz: in ruby private cant protect methods or variables if the user REALLY wants to call them ;P
leonidlm has quit [Ping timeout: 260 seconds]
<iajrz> aye, I noticed that
<iajrz> reminiscent of python
<iajrz> only there's _less_ protection in python
<workmad3> reminiscent of most languages
<shevy> python is unsafe?
<iajrz> define unsafe
myappleguy has joined #ruby
greenrose has quit [Ping timeout: 264 seconds]
<workmad3> iajrz: it runs with scissors
<prophile> you can cause a segfault in python
<prophile> by generating dodgy code objects and then executing them
<prophile> that counts as pretty unsafe in my books
<iajrz> you can have assembler embedded in C embedded in python
vlad_starkov has quit [Remote host closed the connection]
jleishman has joined #ruby
greenrose has joined #ruby
<workmad3> iajrz: pfft, you can get a gem that lets you embed assembler in ruby... no need for the C step :P
<iajrz> running with scissors? you can run with chainsaws
<iajrz> well, if so, you can also cause segfaults within ruby, can't you?
<prophile> cf an environment like lua where you can't segfault (interpreter bugs notwithstanding)
aspiers has joined #ruby
iamjarvo has joined #ruby
<Hanmac> iajrz: with this https://github.com/yugui/evil-ruby/blob/master/lib/evil.rb you can manipulate the internal structure of ruby objects ;P
kobain has joined #ruby
<iajrz> lol, evil
cascalheira has quit [Quit: Leaving...]
<iajrz> people keep giving these guys such names... in java you have an Unsafe class that allows you to directly touch the memory
vlad_starkov has joined #ruby
<yjmsf20> ey up fellas, I'm running into trouble importing bootstrap-responsive. Rails tells me File to import not found or unreadable: bootstrap-responsive.
jkamenik has quit [Quit: Leaving.]
<banisterfiend> iajrz evil is a third party library though
<yjmsf20> all the answers on stack overflow tell me to use @import "bootstrap-responsive";
RaCx has quit [Ping timeout: 272 seconds]
<yjmsf20> which I am already doing :S
<sevenseacat> yjmsf20: if you're using bootstrap 3, that file no longer exists.
<sevenseacat> bootstrap is responsuve by default.
<sevenseacat> responsive even
<iajrz> aye... makes me think ruby has lisp-like extensibility
jprovazn has quit [Ping timeout: 244 seconds]
<yjmsf20> ah OK
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
err_ok has quit [Ping timeout: 260 seconds]
mlpinit has quit [Remote host closed the connection]
iamjarvo has quit [Remote host closed the connection]
jkamenik has joined #ruby
mlpinit has joined #ruby
iamjarvo has joined #ruby
<Hanmac> " directly touch the memory" ... thats like touching the core of the sun ... with BARE HANDS ;P
leonidlm has joined #ruby
<iajrz> feel like a superhero when coding in C
<iajrz> only if you don't get burnt to a crisp
SirFunk has quit [Remote host closed the connection]
<workmad3> Hanmac: hmm, I wonder what metallic hydrogen would feel like
<iajrz> huh, sounds like we could get lyrics to a song from these statements
hamakn has joined #ruby
<ccooke> workmad3: it would feel instant cell death ;-)
hiroyuki has quit [Ping timeout: 246 seconds]
<ccooke> workmad3: extremely painful
SirFunk has joined #ruby
<workmad3> iajrz: I don't think we need to stretch ourselves that much to get song lyrics :) e.g. http://www.youtube.com/watch?v=qObzgUfCl28
supergeek has quit [Quit: Leaving]
lmickh has joined #ruby
Guest93411 has joined #ruby
<workmad3> ccooke: pfft, next you'll be trouning my ideas to listen to the third sound :P
<workmad3> *trouncing
<ccooke> workmad3: :-)
nvrch has quit [Ping timeout: 252 seconds]
<iajrz> lol
mmitchell has joined #ruby
SirFunk has quit [Remote host closed the connection]
<iajrz> the city gets built... it could've been about the language, totally
angusiguess has joined #ruby
vpretzel_ is now known as vpretzel
mlpinit_ has joined #ruby
SirFunk has joined #ruby
kayloos has quit []
hamakn has quit [Ping timeout: 248 seconds]
bhullar has quit [Remote host closed the connection]
jleishman has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
<Hanmac> workmad3: http://what-if.xkcd.com/50/ look at the section about "Liquid helium"
bluenemo has quit [Read error: Connection reset by peer]
<workmad3> Hanmac: yeah, that's what I was referring to :P
mlpinit has quit [Ping timeout: 244 seconds]
Guest35220 has quit [Ping timeout: 265 seconds]
newbiehacker has quit [Ping timeout: 244 seconds]
banister has joined #ruby
RaCx has joined #ruby
<Hanmac> workmad3: did you see the newest one http://what-if.xkcd.com/71/ about Stirring Tea ?
bamdad has joined #ruby
h_kon has quit [Remote host closed the connection]
<workmad3> Hanmac: just read it :)
<cek> how do I specify .gemrc location for rubygems?
iamjarvo has quit [Ping timeout: 246 seconds]
<cek> want to change the dfault one for building purposes
atno has quit [Remote host closed the connection]
dev1x has joined #ruby
<dev1x> hello, is there a way do deny eql? ?
hamakn has joined #ruby
<dev1x> for instance, if i have eql?(blahblah) and i want all it to work just if the (blahblah) is false
mklappst_ has quit [Remote host closed the connection]
err_ok has joined #ruby
ghr has quit [Remote host closed the connection]
nvrch has joined #ruby
tesuji has quit [Ping timeout: 272 seconds]
emocakes has joined #ruby
cody-- has quit [Quit: derp]
ghr has joined #ruby
shredding has quit [Quit: shredding]
Xeago_ has joined #ruby
visof has quit [Quit: leaving]
Asher has joined #ruby
jprovazn has joined #ruby
derebos has quit [Quit: Leaving]
Xeago has quit [Ping timeout: 245 seconds]
brtdv has quit []
<iajrz> unless?
<iajrz> dev1x
<emocakes> dev1x, unless???
<iajrz> unless (cond)
<maasha> holderbaum: sorry was away again (damn meetings!).
<dev1x> naaahh that doesnt solve, i've fixed it with an if-else condition
d45h has joined #ruby
ValicekB has quit []
<iajrz> dev1x gist please
<iajrz> I'd like to see that creature
iamjarvo_ has quit [Remote host closed the connection]
kpshek has quit []
<emocakes> can we please see dev1x
<emocakes> im just learning ruby
<iajrz> afaik, unless(cond) is the same as if(!cond)
<hoelzro> almost
iamjarvo has joined #ruby
<dev1x> this is for a chef recipe
<hoelzro> there's funkiness about if something overloads !
gcds has quit [Quit: gcds]
brtdv has joined #ruby
<maasha> hoelzro: I dont get the part "change that require to 'biopieces/version'" ?
<maasha> hoelzro: sorry
<maasha> holderbaum: I dont get the part "change that require to 'biopieces/version'" ?
OdNairy has joined #ruby
jhaals has joined #ruby
<holderbaum> maasha: you say "require 'biopieces'" in your gemspec
<maasha> yup
<holderbaum> maasha: so everytime the gemspec gets loaded, your entire codebase is loaded too
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<maasha> holderbaum: I see
<holderbaum> maasha: but you only need the VERSION constant here
<holderbaum> maasha: I remember, that simplecov needs to be required before the actual code that is to be inspected
merica has quit [Ping timeout: 245 seconds]
<holderbaum> maasha: and the gemspec gets required by bundler before your actual test-helper with the simplecov init
Rollabunna has quit [Remote host closed the connection]
banister has joined #ruby
sailias has joined #ruby
<maasha> holderbaum: ok, so I changed the require in gemspec and rerun rake -> the coverage page looks the same
bean__ has joined #ruby
<maasha> holderbaum: ill put in some print statements to test that SimpleCov is required first
freezey has joined #ruby
xk_id has joined #ruby
<maasha> holderbaum: unless there is a buffer problem when printing, simplecov is loaded before biopieces
fmcgeough has joined #ruby
Apane has joined #ruby
duggiefresh has joined #ruby
phantasm66 has joined #ruby
drumusician has quit [Ping timeout: 248 seconds]
<holderbaum> maasha: I'd not go so far and say that there is a buffer issue with puts statements. simplecov gets laoded first, so this is not the source of the bug
<maasha> holderbaum: but only after changing to: require 'biopieces/version' - so there must be an additional problem?
Bhaveshkumar has joined #ruby
ValicekB has joined #ruby
EvanR_ has joined #ruby
xk_id has quit [Client Quit]
aapzak has quit [Ping timeout: 260 seconds]
<holderbaum> maasha: perhaps another, yes. I'd definetly stay with the /version require in the gemspec
Bhaveshkumar has quit [Client Quit]
<maasha> holderbaum: that is fixed now.
spider-mario has joined #ruby
tkuchiki has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiyosi has joined #ruby
lukec has joined #ruby
CamonZ has joined #ruby
aapzak has joined #ruby
duggiefresh has quit [Client Quit]
<maasha> hm, what the heck is going on then.
duggiefresh has joined #ruby
banister has joined #ruby
<maasha> I think I need a minimalistic example
<holderbaum> maasha: that is always a good idea. Try to add simplecov as an development dependency to your gemspec, btw
sandeepk has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has quit [Read error: Connection reset by peer]
<maasha> holderbaum: what should that do?
jlast has joined #ruby
drag00n has joined #ruby
sayan has joined #ruby
<holderbaum> maasha: nothing to your problem but it is in fact a development dependency ;)
Guest18577 has joined #ruby
<maasha> holderbaum: ok. clean-up and conventions are always welcome :o)
xk_id has joined #ruby
hiyosi has quit [Ping timeout: 248 seconds]
EvanR_ has quit [Ping timeout: 260 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
icecandy has quit [Quit: Going offline, see ya! (www.adiirc.com)]
sivoais_ is now known as sivoais
sivoais has quit [Changing host]
sivoais has joined #ruby
mudmaster has quit [Remote host closed the connection]
zoee has quit [Quit: This computer has gone to sleep]
jlast has quit [Ping timeout: 252 seconds]
jleishman has joined #ruby
mudmaste_ has joined #ruby
andikr has joined #ruby
<platzhirsch> There's not something like require 'module/*' is there...
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<Hanmac> platzhirsch: nope
ananthakumaran has joined #ruby
<platzhirsch> Hanmac: the alternative would be to fetch the files and use load or so
<Hanmac> because ruby cant know in which order the files should be required
xk_id has quit [Quit:
vt102 has joined #ruby
<platzhirsch> ah ok, that makes sense
shredding has joined #ruby
CalimeroTeknik has quit [Ping timeout: 246 seconds]
<Hanmac> thats why you mostly also have a "module.rb" file so you can require 'module' and the "module.rb" does handle the order
Guest18577 has quit [Ping timeout: 260 seconds]
dhruvasa1ar has joined #ruby
bamdad has left #ruby [#ruby]
wallerdev has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
Guest24707 has left #ruby [#ruby]
iamjarvo has joined #ruby
CalimeroTeknik has joined #ruby
londerson_ has joined #ruby
<maasha> holderbaum: are you on Ruby 2.0?
<londerson_> hello guys anyone cold help me whith this error
fgo has quit [Remote host closed the connection]
coaster has quit [Remote host closed the connection]
<londerson_> ops
<londerson_> .rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799: [BUG] Segmentation fault
<londerson_> I'm using 1.9.3
falood has joined #ruby
zoee has joined #ruby
<platzhirsch> Hanmac: oh the last point is important, because currently I do some meta programming by using subclasses to generate fields and other components and I have messed a bit up :)
<holderbaum> maasha: indeed
xcess_denied has joined #ruby
kcombs has joined #ruby
kpshek has joined #ruby
freezey has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 252 seconds]
<maasha> holderbaum: ok, here is a simple example based the "build your first gem" guide: http://newton.binf.ku.dk/~maasha/test/
<maasha> holderbaum: this one: http://guides.rubygems.org/make-your-own-gem/
freezey has joined #ruby
<maasha> I must be failing somewhere basic
zeeraw has joined #ruby
<Hanmac> platzhirsch: then you may need to sort the files first, because for sample Dir["*"] does returns the files in the order of the file system
mmitchell has quit [Remote host closed the connection]
zerOnepal has joined #ruby
<platzhirsch> Hanmac: accidently it works, but if there start to happen dependencies which are not backed by the file system order, I have a problem
leonidlm has quit [Ping timeout: 246 seconds]
coaster has joined #ruby
nism-pi has joined #ruby
khushildep_ has joined #ruby
<Hanmac> platzhirsch: for one of my project i added require_relative between the internal files so even if i shuffle the file list, and require_all should still work
<zerOnepal> Greeting everyone, How can I find out the number of parameters appared in a request url ?
<zerOnepal> Eg: url=example.com/chat?par1=hello&par2=hi&par3=namaste...
<platzhirsch> Hanmac: oh that's a gem, isn't it? require_all
<Hanmac> no, it just fit into the sentence
ckinni has joined #ruby
khushildep has quit [Ping timeout: 246 seconds]
khushildep_ is now known as khushildep
<maasha> holderbaum: ah, simplecov must be loaded before the test suite as well.
mercwithamouth has quit [Ping timeout: 240 seconds]
freezey has quit [Ping timeout: 272 seconds]
Bofu2U has quit [Quit: I outta here.]
Hanmac1 has joined #ruby
Bofu2U has joined #ruby
dkamioka has joined #ruby
matt_ has joined #ruby
nism-pi has quit [Client Quit]
matt_ is now known as Guest94401
Astralum has quit [Ping timeout: 252 seconds]
nism-pi has joined #ruby
nateberkopec has joined #ruby
Guest94401 has quit [Client Quit]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
benwoody has joined #ruby
Hanmac1 is now known as Hanmac
Bofu2U has quit [Client Quit]
sandeepk has quit [Quit: Leaving...]
<Hanmac> zerOnepal:
<Hanmac> >> require "uri"; URI("example.com/chat?par1=hello&par2=hi&par3=namaste").query.scan(/([^=&]+)=([^=&]+)/)
<eval-in> Hanmac => [["par1", "hello"], ["par2", "hi"], ["par3", "namaste"]] (https://eval.in/67947)
Advocation has joined #ruby
asobrasil has joined #ruby
sbos99 has joined #ruby
<shevy> >> "penis".size
<eval-in> shevy => 5 (https://eval.in/67950)
Bofu2U has joined #ruby
ehc has joined #ruby
mary5030 has joined #ruby
dhruvasa1ar has quit [Ping timeout: 260 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
<maasha> holderbaum: gotit! that was the problem! simplecov needs to be loaded not only before your application code but also before the test/unit - (that was not clear from the docs)
<workmad3> shevy: >> "bigpenis".size > "smallpenis".size
<maasha> holderbaum: thanks for the help!
<workmad3> >> "bigpenis".size > "smallpenis".size
<eval-in> workmad3 => false (https://eval.in/67953)
vlad_starkov has quit [Remote host closed the connection]
dhruvasa1ar has joined #ruby
<shevy> oh man the poor bot has to eval penis size
hamakn has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
nism-pi has quit [Quit: leaving]
hamakn has joined #ruby
nism-pi has joined #ruby
Advocation has quit [Ping timeout: 246 seconds]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
leonidlm has joined #ruby
endash has joined #ruby
bruno- has joined #ruby
shredding has quit [Quit: shredding]
iajrz has quit [Remote host closed the connection]
bradsmith has joined #ruby
sandeepk has joined #ruby
hamakn has quit [Ping timeout: 272 seconds]
thelorax123 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
drumsrgr_ has joined #ruby
LexicalScope has joined #ruby
camilasan has quit [Ping timeout: 246 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
achru has quit [Remote host closed the connection]
CreativeEmbassy has joined #ruby
dkamioka has quit []
achru has joined #ruby
thelorax123 has joined #ruby
camilasan has joined #ruby
<holderbaum> maasha: nice one!
<holderbaum> maasha: I'll def take that in mind for future debug sessions :)
dkamioka has joined #ruby
cody-- has joined #ruby
KenDhia has joined #ruby
kreantos has quit [Remote host closed the connection]
bw_ has quit [Quit: Reconnecting]
bw_ has joined #ruby
sambao21 has joined #ruby
<maasha> holderbaum: or we should make an effort to get the docs updated :o)
<holderbaum> maasha: sounds liek an even better idea!
<maasha> I'm on it
phantasm66 has quit [Read error: Connection reset by peer]
interactionjaxsn has joined #ruby
freezey has joined #ruby
achru has quit [Ping timeout: 246 seconds]
shredding has joined #ruby
aryaching has joined #ruby
BigBlueBacon has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
bigkevmcd has joined #ruby
<shevy> wow
<shevy> see Hanmac learn from maasha, he is a tireless doc-writer
Ox6abe has joined #ruby
<shevy> perhaps you can hire him
yfeldblum has joined #ruby
<maasha> shevy: ? there is a gem for that -> lorem I think its called.
failshell has joined #ruby
eeriegeek has quit [Quit: Leaving.]
RaCx has joined #ruby
rippa has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jlast has joined #ruby
jamblack has joined #ruby
thesheff17 has joined #ruby
carlyle has joined #ruby
Czupa has joined #ruby
vlad_starkov has joined #ruby
atno has joined #ruby
mrsolo has joined #ruby
falood has quit [Remote host closed the connection]
blaxter has quit [Quit: foo]
sbos99 has quit [Quit: Leaving]
wallerdev has quit [Quit: wallerdev]
zipper has quit [Quit: leaving]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has joined #ruby
Fraeon has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
weems has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
mark_locklear has quit [Ping timeout: 272 seconds]
kcantwel has joined #ruby
YaNakilon has quit [Ping timeout: 272 seconds]
noop has quit [Ping timeout: 264 seconds]
Astralum has joined #ruby
elux has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
xk_id has joined #ruby
hiyosi has joined #ruby
Grundell has joined #ruby
YaNakilon has joined #ruby
<Grundell> Hello, im trying to build a regex that is able to understand a string that can vary a little in how it looks...
<Grundell> Where do i show what im trying to do ?
<holderbaum> Grundell: gist.github.com
KenDhia has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
burlyscudd has quit [Quit: Leaving.]
<maasha> Grundell: http://rubular.com/
dhruvasa1ar has quit [Ping timeout: 272 seconds]
<Grundell> That is what im trying to work with at the moment
<shevy> and what do you want to find in it
burlyscudd has joined #ruby
havenwood has joined #ruby
bronson has joined #ruby
sevenseacat has quit [Remote host closed the connection]
<Grundell> What i want to do is match the Anf. with number (if there is a position) Person (All capital letters) Party (S) / (M)
hiyosi has quit [Ping timeout: 246 seconds]
<Grundell> And i cant really get it to work the way i want it to...
ananthakumaran has quit [Quit: Leaving.]
<Grundell> since the Position isn't always there... so how do i make (if position exists else skip )
mikecmpbll has joined #ruby
<maasha> s/meaningless political statements/philanthropic visions/
<Grundell> Do you understand or do you want me to try to explain it better ?
<Grundell> maasha: It's the political party the are working for.
<Grundell> maasha: haven't added that yet since i cant get the position to work...
momomomomo has quit [Quit: momomomomo]
graydot has quit [Ping timeout: 244 seconds]
billy_ran_away has joined #ruby
<Grundell> (if you look at match 2) there is position Statsminister. which is correct. but since he is the only one who has a position i need to have some sort of if exists...
atno has quit [Remote host closed the connection]
<billy_ran_away> a = "hey I'm a string"; b = "this is a string: '#{a}'" #=> "this is a string: 'hey I'm a string'"
atno has joined #ruby
sergicles has quit [Quit: sergicles]
graydot has joined #ruby
<billy_ran_away> How can I escape that quote ' in the sub string within the interpolation?
<billy_ran_away> So I get... "this is a string: 'hey I\'m a string'"
<holderbaum> billy_ran_away: try \\
<lupine> "hey I\\'m a string"
jjbohn has quit [Quit: Leaving...]
<holderbaum> it is an escaped escape
<billy_ran_away> Okay... but how can I have done for me not knowing if or where a has a quote...
<holderbaum> kinda :D
<billy_ran_away> a.escaped
<billy_ran_away> Obviously, a.gsub("'", "\\'") would work...
matchaw has quit [Ping timeout: 245 seconds]
<billy_ran_away> Just hoping for a more generic catchall method that I hadn't come across yet...
sergicles has joined #ruby
lewis has joined #ruby
lewis has quit [Changing host]
lewis has joined #ruby
<Grundell> maasha: Do you understand what im trying to achieve?
jjbohn has joined #ruby
four33 has joined #ruby
<four33> hallo
mrsolo has quit [Quit: This computer has gone to sleep]
Ox6abe has quit [Remote host closed the connection]
karl___ has joined #ruby
mark_locklear has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<maasha> Grundell: Not quite. You should break the problem down into subproblems.
<karl___> I've got a file open, and want to use each_line to run through it and puts the line if it does not contain any of several different words. What's the proper way to do the "if line does not contain any of the following" conditional? A bunch of or's just seemed sloppy to me, but I'm not sure how to better phrase the question to get google to answer
<Grundell> maasha: okay, ill show you what i want to get out at the end of the text string. see if you understand then if that works for you ?
<maasha> Grundell: first one is Anf number: that would be: ^Anf\.\s+\d+
LexicalScope has quit [Read error: Connection reset by peer]
<Grundell> maasha: yes
<havenwood> karl___: ['this', 'that'].all? { |word| 'meh'.include? word }
<maasha> Grundell: second is name with a possible position - what possible positions are there?
<havenwood> Grundell: Have any code to Gist? (I arrived late.)
matchaw has joined #ruby
<havenwood> four33: g'mron
<havenwood> g'morn*
<Grundell> that is the full code
sandeepk has quit [Read error: Connection reset by peer]
sandeepk has joined #ruby
<four33> I've recently decided to start learning Ruby - am I too late to the party? Lots of articles i'm reading are saying things like "Ruby is dying" "Ruby was a fad", etc. et.
<Grundell> maasha: ass it looks niot
<Grundell> now **
<havenwood> four33: You are just on time! :)
<deepy> four33: I know a lot of non-Ruby developers saying it's already dead and their language is superior and I'd trust them slightly less than the Ruby developers who says it's fine
momomomomo has joined #ruby
<deepy> But then again, the startup time is driving me insane
<havenwood> four33: Ruby is thriving... Just got back from RubyConf and never seen it so large with so many sponsors.
<Grundell> maasha: There are like 125 different positions so id prefer if there is if the position exists in the string..
aspires has quit [Quit: sudo making a sandwich]
<havenwood> deepy: Are you on JRuby?
aspires has joined #ruby
Spami has joined #ruby
<karl___> havenwood: neat! thank you
nomenkun has quit [Ping timeout: 244 seconds]
<deepy> Not quite, I work professionally with Java tohugh :-)
enebo has joined #ruby
<four33> Yeah... at the same time I see a hell of a lot of Ruby job postings offering exorbitant amounts of money
<maasha> Grundell: Right. So position is: \s+\w*
<billy_ran_away> a = "Mc'Dougle"; a.gsub("'", "\\") #=> "Mc\\Dougle"
<havenwood> four33: It is honestly wildly popular. And I hope stays that way because lovely to use.
<billy_ran_away> a = "Mc'Dougle"; a.gsub("'", "\\'") #=> "McDougleDougle"
myappleguy has quit [Ping timeout: 272 seconds]
<maasha> Grundell: hm. nasty
<four33> Well then, I shall continue to learn!
<billy_ran_away> a = "Mc'Dougle"; a.gsub("'", "\\\'") #=> "McDougleDougle"
<billy_ran_away> I just want "Mc\'Dougle"
<four33> and I will continue to linger here on freenode
<Grundell> maasha: i know, it's the documents of whats said in the swedish parlament
<deepy> billy_ran_away: why do you want the ' escaped?
<billy_ran_away> How the hell do I get that?
wallerdev has joined #ruby
<billy_ran_away> SQL statement
<maasha> Grundell: ill play with the rubular
<deepy> You're doing something wrong if you're escaping SQL
<deepy> Prepared statements!
<Grundell> okay
<billy_ran_away> deepy: For a SOQL statement actually.
m8 has joined #ruby
<Grundell> maasha: i do the same trying to understand :P
<billy_ran_away> deepy: Yes I agree, unfortunately I didn't write this code, I've just been asked to solve this one problem...
ExCa|iBuR has quit [Ping timeout: 245 seconds]
<deepy> Then solve the problem, make it use prepared statements
<billy_ran_away> deepy: Can you explain what you mean? I'm trying to prepare the statement with string interpolation
<deepy> You'll spend more time writing a library to do SQL escaping becuase of silly things like ’
Fire-Dragon-DoL has joined #ruby
iajrz_ has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<deepy> billy_ran_away: are you using a literal prepared statement or are you constructing a statement?
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
myappleguy has joined #ruby
atno has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
<maasha> Grundell: so that rubular works now for this guy without position
<billy_ran_away> deepy: Constructing a statement.
bronson has quit [Quit: bronson]
<Grundell> and the guy with position ?
<deepy> billy_ran_away: then you're doing it wrong, make a prepared statement, pass the stuff you're doing now as variables
mengu has quit [Remote host closed the connection]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
baroquebobcat has joined #ruby
mikepack has joined #ruby
<billy_ran_away> I know that, but I'm not going to refactor everything that's been written, I'm just trying to fix one specific problem with the quotes. Plus there's no good libs for SOQL
Czupa has quit [Remote host closed the connection]
<maasha> Grundell: thats there now as a work starting with one capital letter and then one or more lowercase letters.
<deepy> billy_ran_away: SOQL seems ot have prepared statements though
burlyscudd has quit [Quit: Leaving.]
alexgandy has joined #ruby
burlyscudd has joined #ruby
alexgandy has quit [Client Quit]
<Grundell> maasha: yes correct
jlast_ has joined #ruby
<deepy> static queries and bind variables
<Grundell> That is position.
alexgandy has joined #ruby
jlast_ has quit [Remote host closed the connection]
<billy_ran_away> deepy: The variables aren't being escaped properly...
<Grundell> hmm cant seam to get it to work on my rubular maasha...
atno has joined #ruby
<deepy> billy_ran_away: I don't think you understand the power behind prepared statements
SirFunk has quit [Read error: Connection reset by peer]
alexgandy has quit [Client Quit]
<billy_ran_away> deepy: I don't think I understand what you mean by prepared statements. But I'd like to.
alexgandy has joined #ruby
hiyosi has joined #ruby
<maasha> Grundell: ^Anf\.\s+\d+\s+([A-Z][a-z]+\s+)?[^(]+\([A-Z]\):$
<deepy> err, meant to link another place
baroquebobcat has quit [Client Quit]
<deepy> http://wiki.developerforce.com/page/Secure_Coding_SQL_Injection#How_Do_I_Protect_My_Application.3F - look at the second example to get an idea of how it works
CreativeEmbassy has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
kaspergrubbe has joined #ruby
jjbohn is now known as jjbohn|afk
alexgandy has quit [Remote host closed the connection]
alexgandy has joined #ruby
jlast has quit [Ping timeout: 248 seconds]
SirFunk has joined #ruby
alup has quit [Quit: Leaving]
SirFunk has quit [Read error: Connection reset by peer]
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
CreativeEmbassy has quit [Remote host closed the connection]
cafhacker has joined #ruby
<workmad3> billy_ran_away: with prepared statements, the query and the data are sent separately, so there's no need for anything to escape the variables because there's no way they can be mis-interpreted as SQL commands
DrShoggoth has joined #ruby
<billy_ran_away> workmad3: Okay thanks, that makes sense.
Solnse has joined #ruby
jlast has joined #ruby
lewis has quit [Remote host closed the connection]
alexgandy has quit [Client Quit]
tharindu has joined #ruby
<workmad3> deepy: wow, that RoR section there is old :)
<workmad3> deepy: Rails 3.1+ uses prepared statements when possible btw ;)
vlad_starkov has quit [Remote host closed the connection]
<deepy> workmad3: I don't know Ruby, or Rails, but I know SQL :-)
Kiba has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
mjs2600_ has joined #ruby
newbiehacker has joined #ruby
digital-ghost has joined #ruby
sputnik13 has joined #ruby
mlpinit_ is now known as mlpinit
heidi has joined #ruby
ahawkins has quit [Quit: leaving]
SirFunk has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JeanMertz has quit [Ping timeout: 244 seconds]
OdNairy has joined #ruby
Xeago has joined #ruby
SirFunk has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
atno has joined #ruby
Xeago_ has quit [Ping timeout: 245 seconds]
nari has quit [Ping timeout: 244 seconds]
maasha has quit [Quit: Page closed]
elux has quit [Quit: Bye!]
threesome has quit [Ping timeout: 272 seconds]
<billy_ran_away> deepy: Salesforce doesn't support prepared statements for its REST API, that I can see.
OdNairy has quit [Ping timeout: 260 seconds]
<billy_ran_away> deepy: Do you off hand know otherwise?
<deepy> You said you were doing SOQL
<billy_ran_away> SOQL for Salesforce
<billy_ran_away> Though it's REST API
<billy_ran_away> http://www.salesforce.com/us/developer/docs/api_rest/index_Left.htm#CSHID=intro_understanding_username_password_oauth_flow.htm|StartTopic=Content%2Fintro_understanding_username_password_oauth_flow.htm|SkinName=webhelp
aryaching_ has joined #ruby
<Grundell> maasha: any progress ?
evenix has joined #ruby
evenix has quit [Remote host closed the connection]
<deepy> Then unfortunately I don't quite know
jbpros has quit [Quit: jbpros]
evenix has joined #ruby
<deepy> I work with very different databases
yfeldblum has quit [Remote host closed the connection]
hamakn has joined #ruby
vlad_starkov has joined #ruby
<billy_ran_away> deepy: Okay thanks for your help though.
yfeldblum has joined #ruby
RaCx has joined #ruby
bronson has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
crashx has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
<evenix> hi all
iamjarvo has joined #ruby
timonv_ has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
<crashx> hi
timonv has joined #ruby
ValicekB has quit [Ping timeout: 248 seconds]
<havenwood> g'morning
freezey has joined #ruby
iamjarvo_ has joined #ruby
Clooth has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
stkowski has joined #ruby
hamakn has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
ggordan has joined #ruby
matchaw_ has joined #ruby
banisterfiend is now known as banisterfiend`
banister is now known as banisterfiend
iamjarv__ has joined #ruby
matchaw has quit [Ping timeout: 252 seconds]
dweeb has joined #ruby
iamjarv__ has quit [Remote host closed the connection]
rickmasta has joined #ruby
weirdpercent has joined #ruby
timonv has quit [Ping timeout: 250 seconds]
iamjarvo has quit [Ping timeout: 278 seconds]
freezey has quit [Ping timeout: 248 seconds]
iamjarvo has joined #ruby
dhruvasagar has joined #ruby
randomnick_ has joined #ruby
<weirdpercent> I want to use gsub to insert newlines before and after the word Quote and before and after quotation marks with body text like this: http://gist.github.com/weirdpercent/7469705
leonidlm has quit [Ping timeout: 260 seconds]
iamjarvo_ has quit [Ping timeout: 246 seconds]
<weirdpercent> I don't know how to phrase the replacement to include everything between quotation marks
crashx has quit [Quit: crashx]
ValicekB has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
mercwithamouth has quit [Ping timeout: 244 seconds]
<havenwood> >> 'turnip cart'.gsub(/^/, "Quote\n")
<eval-in> havenwood => "Quote\nturnip cart" (https://eval.in/68038)
<havenwood> weirdpercent: Not really sure what the expected input and output is from your Gist.
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
<weirdpercent> havenwood: plaintext before and after quote, plaintext inside quotation marks, newlines to pretty print it
mrsolo has joined #ruby
<havenwood> weirdpercent: each and every line is quoted, this is a multi-line string, right?
jamesaanderson has joined #ruby
<havenwood> weirdpercent: Or you want to find existing quotation marks, that surround quotes?
iamjarvo has quit []
<weirdpercent> havenwood: the latter
CaptainJet has joined #ruby
yfeldblum has quit [Remote host closed the connection]
err_ok has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<weirdpercent> I'm scraping text from a forum, and I want to separate the text each time there is a Quote\n"Lorem ipsum..."
coaster has quit [Quit: ZNC - http://znc.in]
jbpros has joined #ruby
hogeo has quit [Ping timeout: 246 seconds]
holderbaum has quit [Quit: leaving]
Ox6abe has joined #ruby
mikepack_ has joined #ruby
baroquebobcat has joined #ruby
zarubin has joined #ruby
<weirdpercent> something like this if stext =~ /Quote\n\".*\"/ then stext.gsub(/Quote\n\".*\"/, "Quote\n\"UNKNOWN TEXT\"\n")
jbpros has quit [Client Quit]
<weirdpercent> the unknown text is what is tripping me up
<havenwood> >> "turnip cart sayeth Quote\n\"blah blah...\"\n\n unto Quote\n\"quack\"".scan /Quote\n\"[^\\"]*/m
<eval-in> havenwood => ["Quote\n\"blah blah...", "Quote\n\"quack"] (https://eval.in/68044)
nfk has joined #ruby
<weirdpercent> ok so I should use scan to deconstruct it and rebuild it with the match elements?
mikepack has quit [Ping timeout: 246 seconds]
<havenwood> weirdpercent: I was just using #scan to show you the regex.
leonidlm has joined #ruby
<_br_> I'm a bit puzzled. I'm here on gentoo, just did a rvm get head ; and trying to install rvm install 2.0.0 ; That all runs fine, but it tries to install a ton of libs I already have on my system... why? Can I turn that off? Installing required packages: net-misc/curl, sys-devel/patch, app-shells/bash, virtual/libiconv, sys-libs/readline, sys-libs/zlib, dev-libs/openssl, net-misc/curl, dev-libs/libyaml, dev-db/sqlite, sys-devel/libtool, s
yfeldblum has joined #ruby
<havenwood> weirdpercent: I still don't get what your expected output is, so i didn't delve to do that part.
<weirdpercent> havenwood: ok thank you much
<havenwood> weirdpercent: If you wanna show expected input (the string) and output (resultant string) i could give it a shot.
Guest7624 has quit [Ping timeout: 248 seconds]
tharindu has quit [Quit: Leaving...]
<weirdpercent> havenwood: I think I can do it with scan, thanks
mikepack_ has quit [Ping timeout: 265 seconds]
^Chris^ has joined #ruby
icecandy has joined #ruby
<havenwood> weirdpercent: np
jamblack has quit [Quit: jamblack]
<havenwood> _br_: rvm autolibs disable
macmartine has joined #ruby
<havenwood> _br_: http://rvm.io/rvm/autolibs
dkamioka has quit [Remote host closed the connection]
drumusician has joined #ruby
<havenwood> _br_: Could ask mpapis on #rvm why it is doing it in the first place if you want. I dunno.
<_br_> havenwood: ahhh thank you!
weirdpercent has quit [Quit: Leaving]
<havenwood> _br_: They might just need an issue ticket filed that that isn't desired behavior on Gentoo.
<_br_> I was surpised about this behavior, never saw this before in rvm. Appreciate the help havenwood .
<havenwood> _br_: np
zz_jrhorn424 is now known as jrhorn424
zz_tsykoduk is now known as tsykoduk
^Chris^ has quit [Read error: No route to host]
peta_ has quit [Quit: peta_]
^Chris^ has joined #ruby
kaspergrubbe has quit [Ping timeout: 252 seconds]
achru has joined #ruby
carlyle has quit [Remote host closed the connection]
wildroma_ has joined #ruby
RichardBaker has joined #ruby
Fraeon has joined #ruby
mercwithamouth has joined #ruby
kcantwel has quit [Quit: Computer has gone to sleep.]
icecandy has quit [Quit: Going offline, see ya! (www.adiirc.com)]
dgfdgf has joined #ruby
`MArceLL` has quit [Ping timeout: 246 seconds]
dgfdgf is now known as `MArceLL`
wildroman has quit [Ping timeout: 272 seconds]
cafhacker has quit [Ping timeout: 246 seconds]
christopherdupon has joined #ruby
^Chris^ has quit [Read error: No route to host]
christopherdupon has quit [Client Quit]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tagrudev has quit [Remote host closed the connection]
d45h has quit []
ckinni has joined #ruby
cgore has quit [Remote host closed the connection]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
kreisys has joined #ruby
kreisys has quit [Max SendQ exceeded]
kreisys has joined #ruby
jjbohn|afk is now known as jjbohn
noop has joined #ruby
aganov has quit [Remote host closed the connection]
kreisys has quit [Max SendQ exceeded]
kreisys has joined #ruby
nari has joined #ruby
achru has quit [Remote host closed the connection]
leonidlm has quit [Ping timeout: 252 seconds]
<_br_> havenwood: FYI, I submitted an issue for this - https://github.com/wayneeseguin/rvm/issues/2359 - cheers!
threesome has joined #ruby
cgore has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has quit [Quit: Konversation terminated!]
achru has joined #ruby
SHyx0rmZ has joined #ruby
JimmyNeutron has joined #ruby
hornairs has joined #ruby
hogeo has joined #ruby
breakingthings has quit []
io_syl has quit []
moneydouble has joined #ruby
jibi has joined #ruby
Ox6abe has quit [Remote host closed the connection]
nobitanobi has joined #ruby
Advocation has joined #ruby
<nobitanobi> good morning folks
YaNakilon has quit [Quit: Íå ñòîèò ðàññêàçûâàòü âñåãî ñðàçó. Ïîòîìó ÷òî íåäîñêàçàííîñòü - îíà êàê...]
Hanmac1 has joined #ruby
wildroma_ has quit [Remote host closed the connection]
shaunbak_ has quit [Remote host closed the connection]
Grundell has quit [Remote host closed the connection]
motto has joined #ruby
achru has quit [Ping timeout: 260 seconds]
froy has joined #ruby
testest has joined #ruby
nobitanobi has quit [Disconnected by services]
Hanmac has quit [Ping timeout: 260 seconds]
Monie has joined #ruby
Blaze_Boy has quit [Read error: Connection reset by peer]
m8 has quit [Ping timeout: 240 seconds]
echevemaster has joined #ruby
jb41 has joined #ruby
dweeb has quit [Quit: Computer has gone to sleep.]
Advocation has quit [Ping timeout: 272 seconds]
prophile is now known as trolling
ananthakumaran has quit [Ping timeout: 244 seconds]
yjmsf20 has quit [Quit: leaving]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest93411 has quit [Ping timeout: 246 seconds]
pragmatism has joined #ruby
Hanmac1 is now known as Hanmac
brtdv has quit []
tharindu has joined #ruby
dagobah has quit [Remote host closed the connection]
dnyy has joined #ruby
freezey has joined #ruby
daxroc has quit [Quit: Leaving.]
jjbohn is now known as jjbohn|afk
dkamioka has joined #ruby
tharindu has quit [Ping timeout: 246 seconds]
pel_daniel has joined #ruby
Xeago has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
jondkinney has joined #ruby
Ox6abe has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
zoee has joined #ruby
maletor has joined #ruby
<jondkinney> Hi there, I'm passing an argument as a hash to a method where all the keys and values of the argument need to be passed into another method call as individual arguments (aka I can't just pass the hash itself along). What's the best way to extract those keys and values from the hash to pass along as arguments?
dweeb has joined #ruby
dkamioka has quit [Ping timeout: 246 seconds]
Voodoofish430 has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
myappleguy has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
andikr has quit [Remote host closed the connection]
danman has joined #ruby
<jwest> jondkinney: hash.flatten, probably
eichenwald has quit [Remote host closed the connection]
<jondkinney> jwest: hi, thanks! I looked at that, but with that I'd have to reconstruct them as key value pairs it seems, right?
Nogbit has joined #ruby
<jondkinney> oh, nevermind
<jondkinney> I read my irb wrong
<jondkinney> flatten is exactly what I need
<jb41> hash.keys, hash.values ?
DanKnox_away is now known as DanKnox
<jwest> Glad I could help! Good luck!
<jondkinney> jwest: thanks!
<Nogbit> how could I use minitest spec to say for example...... myvar.must_be :>, 20 && :< 30
ngoldman has joined #ruby
<andrewvos> What's the name of that site that lists all gems and descriptions etc and says what the most used ones are?
<andrewvos> (I need a gem to do url shortening in rails)
<jb41> guys, what is the best way to delete array element with index i, depending on value of some_caluculations(arr[i-1], arr[i])?
camilasan has quit [Remote host closed the connection]
<jondkinney> andredieb: rubytoolkit I believe
camilasan has joined #ruby
<andrewvos> >> [1,2,3].delete(0)
<eval-in> andrewvos => nil (https://eval.in/68113)
<andrewvos> hehe
<andrewvos> erm
<andrewvos> >> [1,2,3].delete_at(0)
<eval-in> andrewvos => 1 (https://eval.in/68114)
freezey has quit [Remote host closed the connection]
<andrewvos> >> a=[1,2,3]; a.delete_at(0);a
<eval-in> andrewvos => [2, 3] (https://eval.in/68115)
sepp2k has joined #ruby
<andrewvos> jb41: That ok ^ ?
<jb41> ok, so I'll do it old-school, each on everything and delete_at
<andrewvos> jondkinney: Thanks, I think
<jb41> I think it's ok
Tiger|2 has joined #ruby
freezey has joined #ruby
zeade has joined #ruby
<andrewvos> jb41: You could just do [1,2,3] = [1]
<andrewvos> >> [1,2,3] - [1]
<eval-in> andrewvos => [2, 3] (https://eval.in/68116)
<jb41> but I was wondering if there is some sugar syntax or cool oneliner;p
<jb41> >> [1,2,3] = [1]
<eval-in> jb41 => /tmp/execpad-6673403498ae/source-6673403498ae:2: syntax error, unexpected '=', expecting keyword_end ... (https://eval.in/68117)
<jb41> >> [1,2,3] == [1]
<eval-in> jb41 => false (https://eval.in/68118)
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<andrewvos> Sorry I meant minus not equals
<andrewvos> >> [1,2,3] - [1]
<eval-in> andrewvos => [2, 3] (https://eval.in/68119)
<andrewvos> >> [1,2,3] - [2]
<eval-in> andrewvos => [1, 3] (https://eval.in/68120)
<jb41> hmm
<jb41> I will just do: for i in 1..arr.size-1 ;)
<jondkinney> jb41: so on my hash.flatten question from earlier, I'm double wrong...aka I did read my irb correctly, and flatten disassociates the keys from their values. I need them to stay key value pairs, but just not be inside a hash anymore... it's kinda weird, I know
aspires has joined #ruby
dweeb has quit [Quit: Computer has gone to sleep.]
udon has joined #ruby
duggiefresh has quit [Remote host closed the connection]
aspires has quit [Client Quit]
shredding has quit [Quit: shredding]
Czupa has joined #ruby
ephemerian has quit [Quit: Leaving.]
cburyta_ has joined #ruby
duggiefresh has joined #ruby
<jb41> so, you want it in array?
noname001__ has quit [Ping timeout: 246 seconds]
camilasan has quit [Ping timeout: 260 seconds]
<waxjar> jb41: ew, for loops.
Nucc has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 244 seconds]
aspires has joined #ruby
breakingthings has joined #ruby
burlyscudd has quit [Quit: Leaving.]
<jb41> jondkinney: h.keys + h.values
<jondkinney> jb41: I don't want it in anything is the problem...
noop has quit [Ping timeout: 244 seconds]
<waxjar> how about [1,2,3,4,5].size.pred.times { |i| p i }
freezey has quit [Ping timeout: 272 seconds]
zxq9 has joined #ruby
jerius has joined #ruby
noop has joined #ruby
<jondkinney> jb41: on line 4 of some_controller.rb I have the wkhtmltopdf_options there, and those keys and values need to go into line 26 of the pdf_generator.rb as arguments after the html argument
cburyta has quit [Ping timeout: 272 seconds]
<jb41> waxjar: it's just each_index ;d
aspires has quit [Client Quit]
kevinykchan has joined #ruby
aspires has joined #ruby
err_ok has joined #ruby
<ehc> where is += defined in ruby? I'm wondering what it does and calls behind the scences
duggiefresh has quit [Ping timeout: 252 seconds]
<waxjar> jb41, neat :)
<jb41> >> h={'a': 1, 'b': 2}; h.keys + h.values
<eval-in> jb41 => /tmp/execpad-6b512a14852f/source-6b512a14852f:2: syntax error, unexpected ':', expecting => ... (https://eval.in/68125)
<jb41> >> h={'a' => 1, 'b' => 2}; h.keys + h.values
<eval-in> jb41 => ["a", "b", 1, 2] (https://eval.in/68127)
iliketurtles has joined #ruby
<jb41> jondkinney: something like that?
iliketurtles has quit [Remote host closed the connection]
johnnyfuchs has joined #ruby
Ox6abe has quit [Remote host closed the connection]
<jb41> then you do *array_name
<jb41> and here you are
sandeepk has quit [Ping timeout: 265 seconds]
nari has quit [Ping timeout: 252 seconds]
jerius has quit [Client Quit]
jjbohn|afk is now known as jjbohn
<jondkinney> it'd be a lot easier if PDFKit took an options hash for it's optional configurations... kit = PDFKit.new(html, :page_size => 'Letter')
<jondkinney> kit = PDFKit.new(html, :page_size => 'Letter', footer_line: true, footer_left: 'hi there')
testest has quit [Read error: Operation timed out]
<jondkinney> is basically what I need to get to ^
JeanMertz has joined #ruby
<jb41> ok
<jb41> ohhh
<jb41> jondkinney: so what you need?
<jb41> you've to pass hash with options, or just arguments?
TMM has quit [Quit: Ex-Chat]
jrhorn424 is now known as zz_jrhorn424
tharindu has joined #ruby
ngoldman has quit [Remote host closed the connection]
<jondkinney> I'm trying to avoid needing to pass each wkhtmltopdf option as an individual parameter to the pdf_generator module's generate_pdf method, but that's how PDFKit wants them
<jondkinney> So I was trying to take in an options hash, and then just extract it's keys and values to pass into PDFKit.new
<jb41> extract it to what?
jamesaanderson has joined #ruby
<jb41> let's say we have hash = {a: '1', b: '2'}
dkamioka has joined #ruby
<jb41> what you want to have?
jamesaanderson has quit [Client Quit]
<jondkinney> I want to have a: '1' and b: '2' as arguments to PDFKit.new(html, a: '1', b: '1')
thatchris has joined #ruby
luke_ has joined #ruby
luke_ has quit [Client Quit]
<jondkinney> b: '2' meant to say above
myappleguy has joined #ruby
<jb41> ok
jamesaanderson has joined #ruby
duggiefresh has joined #ruby
<jondkinney> in the context where I'm calling PDFKit.new though, I just have the hash itself, and need to extract it's keys and values I guess?
lukec has quit [Quit: lukec]
jamesaanderson has quit [Client Quit]
zigomir has quit [Quit: zigomir]
JonahR has joined #ruby
shaunbaker has joined #ruby
tharindu has quit [Ping timeout: 248 seconds]
<jb41> passing just values isn't ok?
<jb41> I see for the first time such combination
<jb41> one pair from hash as an argument
<jb41> :d
elux has joined #ruby
wildroman has joined #ruby
Ox6abe has joined #ruby
dkamioka_ has joined #ruby
barratt has quit [Ping timeout: 259 seconds]
<jb41> wait a minute
GoodTimes has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jondkinney> jb41: maybe PDFKit.new is expecting a hash as it's second argument, but just is omitting the curly braces?
joshwines has quit [Quit: Connection closed for inactivity]
<jb41> h.inject([]) { |m, v| m << {v[0] => v[1]}}
<jb41> it's array of small hashes
dkamioka has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
<jb41> *(h.inject([]) { |m, v| m << {v[0] => v[1]}}) will do what you want, I hope
nvrch has quit [Quit: nvrch]
<xibalba> ruby newb here, but what's the *( .... ) indicate?
momomomomo has quit [Quit: momomomomo]
<xibalba> reminds me of C pointer syntax
soulcake has quit [Ping timeout: 260 seconds]
<jb41> xibalba: when you've method like def dupa(a, b, c, d)
sambao21 has quit [Quit: Computer has gone to sleep.]
Tarential has quit [Excess Flood]
<jb41> you can pass array as argument there dupa(*[1,2,3,4])
Tarential has joined #ruby
<jb41> I don't know what is correct name for that syntax
simplyaubs has quit [Quit: simplyaubs]
dkamioka_ has quit [Ping timeout: 260 seconds]
<xibalba> oh ok, reminds me of how you handle ARGV
<xibalba> im sure ill get to it in a few chapeters
<Hanmac> jb41: its array splat
sambao21 has joined #ruby
shaunbaker has quit [Remote host closed the connection]
heftig has quit [Ping timeout: 260 seconds]
kaspergrubbe has joined #ruby
<jondkinney> jb41: So thank you for all the help! I guess it turns out that it can accept an options hash after all
<jondkinney> even though the docs seemed to indicate named parameters to me
<jondkinney> idk
freezey has joined #ruby
shaunbaker has joined #ruby
whunt has joined #ruby
heftig has joined #ruby
anderse has joined #ruby
<jb41> jondkinney: my above answer isn't working?
<jb41> *(h.inject([]) { |m, v| m << {v[0] => v[1]}})
burlyscudd has joined #ruby
<jb41> it's not pretty, but it's propably what you want
<jb41> small hashes
RichardBaker has quit [Quit: RichardBaker]
awarner_ has joined #ruby
Mars has joined #ruby
<jb41> >> h={'a' => 1, 'b' => 2, 'c' => 3}; (h.inject([]) { |m, v| m << {v[0] => v[1]}}
<eval-in> jb41 => /tmp/execpad-4096c22361f3/source-4096c22361f3:3: syntax error, unexpected keyword_rescue, expecting ')' ... (https://eval.in/68140)
<jb41> >> h={'a' => 1, 'b' => 2, 'c' => 3}; h.inject([]) { |m, v| m << {v[0] => v[1]}}
<eval-in> jb41 => [{"a"=>1}, {"b"=>2}, {"c"=>3}] (https://eval.in/68141)
Mars is now known as Guest97312
sambao21 has quit [Client Quit]
kpshek has quit []
<jb41> jondkinney: right?
burlyscudd has quit [Client Quit]
roobatube has joined #ruby
nobitanobi has joined #ruby
<Hanmac> jb41 why using inject?
<Hanmac> >> {a: '1', b: '2'}.map {|k,v| {k => v}}
<eval-in> Hanmac => [{:a=>"1"}, {:b=>"2"}] (https://eval.in/68144)
<jondkinney> not exactly. Luckily though it seems PDFKit can actually do this... PDFKit.new(html, options={})
<jondkinney> So I don't have to use a tricky solution
kpshek has joined #ruby
<jondkinney> I can just pass the options hash as the 2nd parameter and it'll work
<jb41> : D
mikepack has joined #ruby
<jb41> Hanmac: I was wondering if there's map for hash
<nobitanobi> >> a = [1,2,3,4]; a[-1..1]
<eval-in> nobitanobi => [] (https://eval.in/68147)
<jb41> now I see it is
<nobitanobi> why ranges don't let us go backwards?
<jondkinney> jb41: it seems this is idiomatic ruby actually. A friend pointed this out - https://gist.github.com/chriswarren/0867870dca1f207c54f3
<jb41> becouse there's reverse
phansch has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
sambao21 has joined #ruby
burlyscudd has joined #ruby
kaspergrubbe has quit [Ping timeout: 272 seconds]
awarner has quit [Ping timeout: 272 seconds]
shaunbaker has quit [Ping timeout: 276 seconds]
ghr has quit [Quit: Computer has gone to sleep.]
jhulten has joined #ruby
io_syl has joined #ruby
<roobatube> I've got a question about looping, if anyone could point me in the right direction: I"ve made a simple hangman game, but I'm having trouble getting in and out of the main loop between games
<PPH> Hi, anyone would be kind and tell me how this could be refactored further please? :) https://gist.github.com/anonymous/7471381
freezey has quit [Ping timeout: 260 seconds]
lukec has joined #ruby
mojjojo has joined #ruby
<roobatube> every time i start a new game, i get put into a new main_loop, which I can see by Ctrl-Cing out of the game
revans has joined #ruby
OdNairy has joined #ruby
Advocation has joined #ruby
RichardBaker has joined #ruby
zeeraw has quit [Read error: Connection reset by peer]
soulcake has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
mklappstuhl has quit [Remote host closed the connection]
soulcake has quit [Read error: Connection reset by peer]
Spami has joined #ruby
timonv has joined #ruby
Advocation has quit [Ping timeout: 252 seconds]
soulcake has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
sbos99 has joined #ruby
mrsolo has joined #ruby
momomomomo has quit [Quit: momomomomo]
workmad3 has quit [Ping timeout: 272 seconds]
<Apane> hey guys, why wouldn't max store all of the numbers that are less than 98? https://gist.github.com/anonymous/1ce9994d91c0078bc90a
Eiam has joined #ruby
hiall has quit [Ping timeout: 246 seconds]
<Apane> how does it know to grab just the absolute lowest? that's where I'm stumped
bronson has quit [Quit: bronson]
rhys has left #ruby ["oops"]
Al_ has quit [Quit: Al_]
timonv has quit [Ping timeout: 272 seconds]
soulcake has quit [Ping timeout: 260 seconds]
khushildep has quit [Read error: Operation timed out]
JeanMertz has quit []
soulcake has joined #ruby
<roobatube> Apane: max = arr[index] -- you're setting max to a single index each time, max is not an array here
kevinykchan has quit [Quit: Computer has gone to sleep.]
kcantwel has joined #ruby
havenwood has quit [Remote host closed the connection]
<roobatube> are you trying to just find the max in arr?
shredding has joined #ruby
iliketurtles has joined #ruby
zerOnepal has left #ruby [#ruby]
<PPH> there's an better way temporarily "clone" an array thant that? the_array.map{|i|i}.each{ |items| do_something_unkind_to_the_initial_array }
<Apane> roobatube, right - but why wouldn't it just store 73 because it is true
<Apane> why does it continue to iterate until it hits the lowest that's what I'm confused about
MrZYX|off is now known as MrZYX
soulcake has quit [Ping timeout: 260 seconds]
kevinykchan has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
err_ok has quit [Ping timeout: 244 seconds]
<Apane> 73 < 98 is true, so what makes it continue looping until it gets the actual lowest of 61
carlyle has joined #ruby
myappleguy has quit [Ping timeout: 246 seconds]
maletor has joined #ruby
thesheff17 has quit [Ping timeout: 248 seconds]
<roobatube> you are iterating through the entire array
banghouse has joined #ruby
banghouse is now known as Guest95808
<roobatube> and is max really min?
iliketurtles has quit [Quit: zzzzz…..]
<Apane> roobatube, yeah, sorry lol just did the max calculation now doing min didn't switch the var
aspiers has quit [Ping timeout: 272 seconds]
<Apane> i'm just confused as to why 96 wouldn't be stored as the min since it is less than 98 and is the last in the array
mmitchell has joined #ruby
Guest95808 is now known as banghouse
soulcake has joined #ruby
<Apane> ohhhh, because the min keeps getting smaller
<Apane> got it :) lol
obs has quit [Remote host closed the connection]
gr33n7007h has quit [Remote host closed the connection]
<roobatube> yea
<roobatube> lol that was confusing, storing min in max
leonidlm has joined #ruby
<Apane> i know lol sry
snuffeluffegus has joined #ruby
asteros has joined #ruby
jbpros has joined #ruby
mojjojo has quit [Ping timeout: 244 seconds]
olivier_bK has quit [Ping timeout: 244 seconds]
roobatube has quit [Quit: Page closed]
mercwithamouth has joined #ruby
scarolan has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
iliketurtles has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
ce_afk is now known as cescalante
krz has quit [Quit: krz]
myappleguy has joined #ruby
momomomomo has joined #ruby
bruno- has joined #ruby
gr33n7007h has joined #ruby
mojjojo has joined #ruby
mephux has quit [Ping timeout: 265 seconds]
jbpros has quit [Client Quit]
ExCa|iBuR has joined #ruby
rrichardsr3 has joined #ruby
wildroman has quit [Remote host closed the connection]
mephux has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
opt9 has joined #ruby
wildroman has joined #ruby
noop has quit [Ping timeout: 246 seconds]
momomomomo has quit [Quit: momomomomo]
thatchris has left #ruby ["Textual IRC Client: www.textualapp.com"]
dkamioka has joined #ruby
mojjojo has quit [Quit: mojjojo]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nisstyre has quit [Quit: Leaving]
bronson has joined #ruby
dan_ has joined #ruby
pragmatism has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 244 seconds]
dan_ is now known as Guest30274
MrZYX is now known as MrZYX|off
err_ok has joined #ruby
tharindu has joined #ruby
aspiers has joined #ruby
dkamioka has quit [Ping timeout: 265 seconds]
Guest29309 has joined #ruby
Clooth has quit [Quit: Leaving...]
saarinen has joined #ruby
capicue has joined #ruby
Guest29309 is now known as diegoviola
Xeago has joined #ruby
thekkid has joined #ruby
londerson_ has quit [Quit: londerson_]
surrealanalysis has joined #ruby
JonahR has quit [Quit: jonahR]
<thekkid> I was using the omniauth-google-apps gem to do authentication
<thekkid> I accidentally deleted a tmp lock file
<thekkid> and now it's broken any advise?
dkamioka has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JonahR has joined #ruby
tharindu has quit [Ping timeout: 244 seconds]
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
cody-- has quit [Quit: derp]
<somasonic> thekkid, don't delete tmp lock files
hiroyuki has joined #ruby
udon has quit [Read error: Operation timed out]
JonahR has quit [Client Quit]
thelorax123 has quit [Write error: Broken pipe]
udon has joined #ruby
burlyscudd has quit [Quit: Leaving.]
atno__ has joined #ruby
dkamioka has quit [Ping timeout: 246 seconds]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
kaspergrubbe has joined #ruby
Shellcat has joined #ruby
thelorax1231 has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby
atno has quit [Ping timeout: 272 seconds]
capicue has quit [Quit: Leaving...]
lnormous has joined #ruby
reset has joined #ruby
_jesse_ has quit [Ping timeout: 260 seconds]
kevinykc_ has joined #ruby
bricker`away has quit [Ping timeout: 245 seconds]
kevinykchan has quit [Read error: Connection reset by peer]
MrZYX|off is now known as MrZYX
bricker`work has quit [Ping timeout: 246 seconds]
iamjarvo has joined #ruby
Fire-Dragon-DoL has left #ruby [#ruby]
mklappstuhl has joined #ruby
carlyle has quit [Remote host closed the connection]
dkamioka has joined #ruby
coldmethod has joined #ruby
hiall has joined #ruby
thesheff17 has joined #ruby
thesheff17_ has joined #ruby
zeropx has joined #ruby
Es0teric has joined #ruby
nanoyak has joined #ruby
thesheff17 has quit [Disconnected by services]
thesheff17_ is now known as thesheff17
thesheff17_ has joined #ruby
Es0teric has quit [Max SendQ exceeded]
xcess_denied has quit [Quit: Leaving...]
bricker`away has joined #ruby
bricker`work has joined #ruby
thesheff17_ has quit [Read error: Connection reset by peer]
interactionjaxsn has quit [Remote host closed the connection]
BigBlueBacon has quit []
interactionjaxsn has joined #ruby
phinfonet has joined #ruby
eldariof has joined #ruby
Advocation has joined #ruby
<platzhirsch> oh my, I think I have gotten the class loading under control now
* platzhirsch whips Rails
momomomomo has joined #ruby
bricker`away is now known as bricker
leonidlm has quit [Ping timeout: 248 seconds]
bricker`work has quit [Disconnected by services]
tharindu has joined #ruby
agorman has joined #ruby
burlyscudd has joined #ruby
interactionjaxsn has quit [Ping timeout: 260 seconds]
cody-- has joined #ruby
ckinni has joined #ruby
<iliketurtles> is there ever a case where, in a hash, { id: "foo" } and { "id" => "foo" } can be accessed interchangeably by hash[:foo] and hash["foo"]? as in, if my hash is { "id" => "foo" } can I ever access the value of hash["id"] by calling hash[:id]
Advocation has quit [Ping timeout: 260 seconds]
eldariof has quit [Ping timeout: 246 seconds]
decoponio has quit [Quit: Leaving...]
wildroman has quit [Remote host closed the connection]
DrCode has joined #ruby
DrCode has quit [Remote host closed the connection]
havenwood has joined #ruby
<Hanmac> iliketurtles: there is a reason why it is not, and Railians still want to replace the current ruby-core code with their way
<iliketurtles> Hanmac: can you elaborate?
<iliketurtles> You're saying this is possible in rails, but not in pure ruby?
tharindu has quit [Ping timeout: 244 seconds]
diegoviola has quit [Ping timeout: 248 seconds]
<Eiam> he's saying rails changed the behavior of a core ruby implementation
<Eiam> which isn't uncommon, they have fucked me over several times by doing that
_jesse_ has joined #ruby
<iliketurtles> Eiam: i see -- can you explain, or point me to, the changed behavior of hash in rails? so I can better understand it
* Eiam staring at Ruby docs saying "hmm, it says this method does this but.. its not doing that.." oh duh, Rails changed how that method works, thanks guys for changing how Hash works.
<four33> do other languages have things which resemble/function in the same way as symbols in ruby?
<Hanmac> Eiam: they didnt manage it yet, but they try often enough
shredding has quit [Quit: shredding]
<iliketurtles> four33: as I understand it, symbols are just strings that are immutable
RaCx has quit [Ping timeout: 244 seconds]
tsykoduk is now known as zz_tsykoduk
<Eiam> four33: kMyConst = "Hello"; ?
bluenemo has quit [Ping timeout: 246 seconds]
<iliketurtles> Hanmac: so, Rails has NOT overridden any hash behavior then?
<four33> Right, but all of the tutorials i've been reading suggest that symbols are somehow "cheaper" in overhead than normal strings
mephux has quit [Ping timeout: 246 seconds]
<Hanmac> not yet but they did try it
<iliketurtles> Hanmac: heh.
<Hanmac> iliketurtles: do you know that Symbols are stick more on you than bad smell? once created only the closing of the ruby interpreter can get rib of them
phansch has joined #ruby
randomnick_ has quit [Read error: Connection reset by peer]
<iliketurtles> Hanmac: hmm, why is that potentially problematic?
Guest97312 has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
<iliketurtles> that would suggest to me that strings would be cheaper in overhead if its so hard to get rid of a symbol in memory
<Xeago> *poke* jeekl
<Hanmac> iliketurtles: it is when symbols are generated automaticlly and/or on user input ...
<Eiam> like as hash keys =p
mephux has joined #ruby
<iliketurtles> Hanmac: can you give an example of what you mean? i'm not sure I understand
Nogbit has quit [Ping timeout: 252 seconds]
<Xeago> parsing user input
<havenwood> create ALL THE SYMBOLS \o/ (uses all the RAM)
<Xeago> and turning parts of that into symbols
jcf has quit [Quit: Leaving.]
<Xeago> repeat that over and over again with multiple inputs
<Xeago> and see your memory growing
kpshek has quit []
<iliketurtles> Xeago: using the same symbols? or new symbols each iteration?
<Hanmac> iliketurtles: 1000.times {|i| :"abc#{i}" } #<< this will create 1000 symbols ... and you cant get rip of them anymore
<Xeago> iliketurtles: different symbols
<havenwood> iliketurtles: new symbols, the idea would be a malicious flooding
<Eiam> iliketurtles: I don't recall the specific example, I was just using an instance method on a core ruby object and it didn't behavior as expected per the Ruby docs, because it was calling the Rails version of the same method
scarolan has quit [Ping timeout: 265 seconds]
<Eiam> I don't use rails anymore so I don't worry about problems like that
<Hanmac> but the next time it access the same symbols so there are still 1000 and not 2000 after the second time
Monie has joined #ruby
Lewix has joined #ruby
<iliketurtles> Hanmac: but it still grows in memory?
randomnick_ has joined #ruby
snuffeluffegus has quit [Remote host closed the connection]
<Hanmac> iliketurtles: only the first time
<iliketurtles> Hanmac: OK. this doesn't seem like a bad behavior?
<havenwood> iliketurtles: 1.upto(Float::INFINITY) { |n| :"another#{n}" }
<Eiam> ...
<havenwood> iliketurtles: ^ watch the memory grow
<Eiam> iliketurtles: anytime you don't control the creation of your symbols (e.g. they are dynamic) it can be dangerous is the point
Guest42810 has quit [Quit: Linkinus - http://linkinus.com]
<Hanmac> it is not but you should try to avoid loops and userinput
pushpak has joined #ruby
dangerousdave has joined #ruby
<havenwood> iliketurtles: can be avoided by *not* assigning an infinite number of symbols :P
<Hanmac> iliketurtles: this is maybe the class you want if you really want that to access your way: http://api.rubyonrails.org/classes/ActiveSupport/HashWithIndifferentAccess.html
<four33> immutable means I cannot change its value?
<iliketurtles> havenwood: makes sense haha
leonidlm has joined #ruby
<iliketurtles> Hanmac: avoid loops? and userinput? what do you mean?
<iliketurtles> four33: it exists in memory and cannot be removed without killing the ruby interpreter, as I understand it
<Hanmac> iliketurtles: i mean using symbols is okay, but do not turn userinput you get from something like gets or other functions into symbols
jjbohn has quit [Quit: Leaving...]
iamjarvo has quit [Remote host closed the connection]
<iliketurtles> Hanmac: rather store it as an object? i've never seen code where they store user input as a symbol...
jjbohn has joined #ruby
<iliketurtles> oh wow, ActiveSupport::HashWithIndifferentAccess I always wondered what that was
zz_jrhorn424 is now known as jrhorn424
<Eiam> iliketurtles: taking in json from an external source?
<iliketurtles> Eiam: hmm, I see. So it would be better to use strings in this JSON -> Ruby case?
burlyscudd has quit [Quit: Leaving.]
<Eiam> one of my apps deals with 20-30 megs of json per session easily
DrCode has joined #ruby
ngoldman has joined #ruby
<Eiam> iliketurtles: It is "Safer" to use strings whenever you are dealing with content that you don't explicitly own/generate/control
alvaro_o has joined #ruby
<iliketurtles> Eiam: but string are not really less/more memory overhead than symbols?
<Eiam> iliketurtles: the string overhead goes away when the object goes.
<Eiam> the symbol does not
jrhorn424 is now known as zz_jrhorn424
<iliketurtles> "goes" meaning is garbage collected?
<Eiam> yes
mercwithamouth has quit [Ping timeout: 272 seconds]
<four33> how does Ruby garbage collection work?
<havenwood> four33: Depends on the implementation of Ruby.
<Hanmac> four33: mark-and-sweep (on MRI)
<iliketurtles> i recall reading of a new GC algorithm in ruby 2
jjbohn has quit [Ping timeout: 246 seconds]
<havenwood> four33: 2.0.0 added copy-on-write friendly mark-and-sweep, but 2.1.0 switches to generational
<Hanmac> in ruby2.1+ there are frozen string literals ... which are like a hybrid between string and symbol
<iliketurtles> bitmap marking?
<havenwood> iliketurtles: 2.0, yes
<havenwood> iliketurtles: 1.9 and 2.1, no
<iliketurtles> Hanmac: what does that mean, frozen string literals?
Nogbit has joined #ruby
<four33> cause i've heard mark-and-sweep is generally looked down upon?
<iliketurtles> havenwood: oh weird, they're dropping bitmap marking from 2.1?
<havenwood> iliketurtles: well, with generational gc you lose CoW friendliness but that is the nature of gcs, tradeoffs
Nogbit has quit [Client Quit]
kirun has joined #ruby
<iliketurtles> CoW = copy on write?
<havenwood> iliketurtles: ya
colonolGron has joined #ruby
<havenwood> Koichi-san did a good talk at RubyConf on 2.1's GC
<iliketurtles> so why implement bitmap marking for only one major version of ruby and drop it in the next bump
<Hanmac> iliketurtles: "abc"f does mean: make a string as a literal, but make it frozen ... (frozen sting literals are shared like symbols) that means : "abc".object_id != "abc".object_id but "abc"f.object_id == "abc"f.object_id
anderse has quit [Quit: anderse]
nobitanobi has quit [Read error: Connection reset by peer]
Soda has joined #ruby
<four33> the lack of semicolons in ruby screws me right up
pixelgremlins has joined #ruby
<iliketurtles> four33: you can add them and the interpreter will ignore :P
mikepack has quit [Read error: Connection reset by peer]
<havenwood> iliketurtles: one was a refinement on the status quo, the other took another year to get ready
<iliketurtles> havenwood: i see
mikepack has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
zz_jrhorn424 is now known as jrhorn424
dangerousdave has joined #ruby
<havenwood> iliketurtles: nice to have options, with different performance characteristics - but seems like 2.1's default is humming
Clooth has joined #ruby
wildroman has joined #ruby
<iliketurtles> havenwood: this talk yes? http://vimeo.com/67807718
rellin has quit [Ping timeout: 240 seconds]
<iliketurtles> can barely hear him :P
err_ok has quit [Ping timeout: 246 seconds]
tannerburson has quit [Quit: tannerburson]
<havenwood> iliketurtles: ooh, thx for the link - yeah, i missed the RubyConf talk and was planning on waiting for Confreaks version
sambao21 has quit [Quit: Computer has gone to sleep.]
<iliketurtles> gotta turn it up super loud :P
<havenwood> iliketurtles: they usually do a nice audio
<havenwood> didn't realize he'd given the talk at RubyKaigi
<iliketurtles> well there ya go
<iliketurtles> haha
mrsolo has quit [Quit: This computer has gone to sleep]
rrichardsr3 has quit [Quit: -- I'm getting very tired --]
<havenwood> i heard there was a dancing figure demonstration comparing 2.0 and 2.1, maybe i'll scan through and find that then wait for audio
fmcgeough has quit [Ping timeout: 244 seconds]
<iliketurtles> havenwood: let me know if you find it
Monie has quit [Ping timeout: 252 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Remote host closed the connection]
<havenwood> maybe not be in this talk, internet too slow here for me to finely check but didn't spot it
<Hanmac> iliketurtles: also an nice feature in 2.0 is that enumerators can now be sized:
<Hanmac> >> [1,2,3].cylce.size
<eval-in> Hanmac => undefined method `cylce' for [1, 2, 3]:Array (NoMethodError) ... (https://eval.in/68213)
opt9 has quit [Ping timeout: 252 seconds]
atno__ has quit [Read error: Connection reset by peer]
<Hanmac> >> [1,2,3].cycle.size
<eval-in> Hanmac => Infinity (https://eval.in/68214)
<Hanmac> >> [1,2,3].cycle(4).size
<eval-in> Hanmac => 12 (https://eval.in/68215)
<havenwood> Hanmac: nice
chuk has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
barratt has joined #ruby
chuk has quit [Client Quit]
robonerd has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
carlyle has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
interactionjaxsn has joined #ruby
jkhwan has joined #ruby
<iliketurtles> Hanmac: can you explain what that does? Just carves out a specific chunk in memory for the enumerator rather than letting it grow to infinity?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> >> 1.upto(Float::NAN).size
<eval-in> havenwood => 0 (https://eval.in/68216)
robert- has joined #ruby
maletor has joined #ruby
<Eiam> Hanmac: whats the point of the frozen literals? why not just use a symbol?
<Eiam> Hanmac: the literals are collected I guess?
<Eiam> (GC)
<heftig> Eiam: :foo is not == "foo", but f"foo" is
<Eiam> heftig: yes I realize that
AlSquirrel has joined #ruby
<Eiam> heftig: but :foo is == :foo
AlSquire has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
<Eiam> so why use "foo"f, its more characters to type
Guedes0 has joined #ruby
<Hanmac> Eiam and it seems that frozen literals are sometime collected ... (as far as is see from the code)
<Eiam> Hanmac: so the only point in using a frozen literal over a symbol is it is occasionally collected, probably
Kabaka has joined #ruby
<havenwood> it looks like the literal syntax ''.frozen may win too
<havenwood> over ''f
<Eiam> heftig: if you are going to freeze something to say I want this to always be this, you've almost defined a symbol
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Eiam> havenwood: good, "f is unclear as all hell
<havenwood> Hanmac: prefer ""f and ""b or "".frozen and ""binary
Tiger|2 has quit [Remote host closed the connection]
<havenwood> ?
revans has quit [Read error: Operation timed out]
<heftig> .frozen, not .freeze?
<havenwood> err, freeze**
danshultz has quit [Ping timeout: 272 seconds]
<havenwood> sry, typo
<Hanmac> havenwood: i prefer short forms, but i allow long forms too
<Eiam> already history for .frozen
<Eiam> oh, and .freeze
<Eiam> wait what
<havenwood> "literal".freeze
<heftig> Eiam: .frozen?, not .frozen
<Eiam> how does this differ from the existing .freeze
robert- has quit [Client Quit]
<Hanmac> havenwood: there was a ticket to add ".frozen" which is "".dup.freeze
Lewix has quit [Remote host closed the connection]
revans has joined #ruby
<Hanmac> havenwood: there is also a ticket to treat "literal".freeze equal to "literal"f but is not commited/allowed yet
<havenwood> ^ i was convoluting the former with the latter, when i meant the latter
ExCa|iBuR has quit [Ping timeout: 245 seconds]
<Hanmac> yeah that what i meant ... i keep watching https://bugs.ruby-lang.org/projects/ruby-trunk/issues
camilasan has joined #ruby
<four33> Guise, ruby is so weird
terrellt has quit [Read error: Connection reset by peer]
<havenwood> humans are weird, so ruby accommodates
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<Eiam> ruby is pretty cool...
<Eiam> =
<Eiam> )
<four33> I'm just so used to Java
<havenwood> hmm, should
<havenwood> >.>
d45h has joined #ruby
sambao21 has joined #ruby
jkhwan has quit [Remote host closed the connection]
<momomomomo> havenwood: Either way, Matz isn't giving the stamp of approval
cafhacker has joined #ruby
<momomomomo> but that is hilarious
jkhwan has joined #ruby
cafhacker has quit [Client Quit]
<Hanmac> havenwood: there is also a ticket about ["abc","def","ghi"]f
err_ok has joined #ruby
<havenwood> FREEZE ALL THE THINGS \o/
<iliketurtles> hahaha havenwood that is pretty funny
anderse has joined #ruby
mengu has joined #ruby
tvw has quit []
jkhwan has quit [Ping timeout: 272 seconds]
cpruitt has joined #ruby
cpruitt has joined #ruby
relix has joined #ruby
lkba has joined #ruby
aspiers has quit [Ping timeout: 272 seconds]
RichardBaker has quit [Quit: RichardBaker]
timonv has joined #ruby
err_ok has quit [Ping timeout: 268 seconds]
mercwithamouth has joined #ruby
filipe_ has joined #ruby
Monie has joined #ruby
momomomomo has quit [Quit: momomomomo]
revans has quit [Remote host closed the connection]
revans has joined #ruby
Monie has quit [Client Quit]
tannerburson has joined #ruby
barratt has quit [Quit: Linkinus - http://linkinus.com]
anderse has quit [Quit: anderse]
timonv has quit [Ping timeout: 246 seconds]
Banistergalaxy has quit [Ping timeout: 246 seconds]
Banistergalaxy has joined #ruby
Clooth has quit [Quit: Leaving...]
udon has quit [Ping timeout: 246 seconds]
Tarential has quit [Excess Flood]
Tarential has joined #ruby
<four33> all this do end stuff - so weird
nomenkun has joined #ruby
asteros has quit [Quit: asteros]
rlsdev has joined #ruby
BizarreCake has quit [Ping timeout: 246 seconds]
udon has joined #ruby
myappleguy has quit [Ping timeout: 260 seconds]
anderse has joined #ruby
<four33> What is a "module" ?
shadoi has quit [Quit: Leaving.]
<banisterfiend`> four33 they're blocks, you'll learn to love them
<banisterfiend`> four33 it's basically a 'mixin'
zz_jondkinney has joined #ruby
shadoi has joined #ruby
zipper has joined #ruby
<banisterfiend`> four33 but they have a dual role in ruby, they're used for namespacing as well
zz_jondkinney has left #ruby [#ruby]
<four33> hmmmm
jibi has quit [Quit: .]
<four33> I don't think Java has mixins..
<banisterfiend`> four do u know what a mixin is?
mjs2600_ has quit [Remote host closed the connection]
<four33> from what i';m reading now it's apparently a class which contains methods from other classes
<four33> which sounds a little useless to me
bruno- has quit [Ping timeout: 246 seconds]
tharindu has joined #ruby
Mars has joined #ruby
<banisterfiend`> four33 a mixin is like a class but it can be dynamically mixed into inheritance chains
<banisterfiend`> it's pretty powerful
Mars is now known as Guest5307
<banisterfiend`> you can add a whole set of methods to an object on the fly, or share methods among unrelated classes
<four33> ah, I see
<four33> sounds like an interface
<platzhirsch> Modules remind of interfaces in Java, except that they are already implemented
rellin has joined #ruby
<banisterfiend`> four33 simlar, except modules also contain implementation, not just interface
<platzhirsch> but in contrast to Java, it's not used as a contract
anderse has quit [Client Quit]
<four33> why would you want to share methods and not just rewrite them for each?
<platzhirsch> four33: redundant code
<banisterfiend`> four33 why would you want to rewrite a bunch of methods that are already implemented somewhere else? seems like a chance to introduce inconsistencies and bugs
<four33> right, I wouldn't - but is this really the only use for mixins/interfaces/modules, etc.?
<four33> (just trying to wrap my head around possible uses)
<havenwood> four33: for humans to help organize stuff
<banisterfiend`> four33 i told you the other use already
Guest30274 has quit [Quit: Leaving...]
<Hanmac> about unicode, how was that named again that two strings has the same encoding, the same output but a different byte style? ... like str1 and str2 are not the total the same, but they can be treated the same ? so like "â" can be maked from "a" + "^" ?
mjs2600 has joined #ruby
<four33> namespacin', right!
<banisterfiend`> four33 also, that's not just 'any use', that's a tremendous amount of power you can use for a lot of different things
<four33> I guess i'll fully understand when I encounter their use
<four33> I've honestly still never used an interface in Java
<iliketurtles> banisterfiend`: can you give an example of where using a mixin might be useful?
asteros has joined #ruby
<iliketurtles> a practical example
<banisterfiend`> iliketurtles Enumerable
momomomomo has joined #ruby
zipper has quit [Quit: leaving]
<MrZYX> or Comparable
Es0teric has joined #ruby
jkhwan has joined #ruby
<banisterfiend`> iliketurtles a_hash.any? and an_array.any? { } the methods come from the same place (Enumerable)
ldnunes has quit [Quit: Leaving]
vlad_starkov has joined #ruby
<iliketurtles> banisterfiend`: you're referring to the .any? method?
tharindu has quit [Ping timeout: 272 seconds]
dnyy has quit [Read error: Connection reset by peer]
<banisterfiend`> iliketurtles that's just an example of a method that is defined in the Enumeable module but is available on both Hashes and Arrays
<banisterfiend`> as Enumeralbe is mixed into both classes
dnyy has joined #ruby
<iliketurtles> banisterfiend`: interesting. i did not know that. so where is .any? actually defined
Hanmac1 has joined #ruby
<banisterfiend`> iliketurtles omg
<iliketurtles> sorry
<banisterfiend`> iliketurtles dude, it's on Enumerable (that's the whole point of this discussion :P)
<iliketurtles> a little distracted. enumerable module
scarolan has joined #ruby
havenwood has quit [Ping timeout: 268 seconds]
<four33> so Enumerable defines it, and Comparable inherits/extends it?
<banisterfiend`> no
kcantwel has quit [Quit: Textual IRC Client: www.textualapp.com]
<banisterfiend`> Comparable is another module
nisstyre has joined #ruby
VTLob has joined #ruby
SloggerKhan has joined #ruby
thelorax1231 has quit [Remote host closed the connection]
<four33> hmmmm
blahwoop has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
<blahwoop> good afternoon
Hanmac1 is now known as Hanmac
thelorax123 has joined #ruby
<iliketurtles> so how do modules and mixins differ?
<four33> and what the hell are they?!
<Apane> hey guys, any help would be great: https://gist.github.com/anonymous/216fbc3acf8e0fc5a076
<MrZYX> iliketurtles: four33 you mixin a module into a class
mmitchell has quit [Remote host closed the connection]
<SloggerKhan> Anyone know something like trello that lets you create groups of tasks with with same due date or create boards by due date or have a really simple 'sprint' functionality? We're looking to just try to keep track of what we want to get done each month and what we do get done, not do all kinds of sprint planning agile stuff but also not have to keep adding due dates to things ad nauseum.
<four33> so now my class contains the methods of that module, and I can use them without having to rewrite them.
<four33> right?
sayan has quit [Ping timeout: 260 seconds]
zz_tsykoduk is now known as tsykoduk
nanoyak has quit [Quit: Computer has gone to sleep.]
<MrZYX> Apane: I guess I'd just sort and split in half
mojjojo has joined #ruby
<MrZYX> four33: yeah
havenwood has joined #ruby
Solnse has quit [Remote host closed the connection]
<iliketurtles> so "mixin" is not actually something in ruby, it's something you do WITH a module?
scarolan has quit [Ping timeout: 246 seconds]
nisstyre has quit [Disconnected by services]
nisstyre has joined #ruby
RaCx has joined #ruby
<Apane> Thanks MrZYX, Tht's great and I agree just not sure how was thinking <=> instead of > but can u show some example code?
<MrZYX> we often call a module intended to be mixed into a class a mixin, since modules are also often used as namespaces for example
cek has quit [Ping timeout: 245 seconds]
scarolan has joined #ruby
drumusician has quit [Ping timeout: 252 seconds]
aspiers has joined #ruby
mmitchell has joined #ruby
pragmatism has joined #ruby
jhaals has joined #ruby
<iliketurtles> MrZYX: OK that makes sense
err_ok has joined #ruby
bruno- has joined #ruby
nism-pi has quit [Ping timeout: 248 seconds]
zarubin has quit [Ping timeout: 272 seconds]
<iajrz_> why can you pass messages with name.send and name.__send__ ??
<four33> Thanks MrZYX and banisterfiend`
<MrZYX> Apane: array = [...]; array.sort!; lower = array[0, array.size/2]; upper = array[array.size/2, array.size/2] with some nicer splitting code I can't come up right now
<Hanmac> iajrz_: maybe because its the only way? ;P
<iajrz_> o_O I listed two method names
olivier_bK has joined #ruby
<MrZYX> iajrz_: 1) useful for debugging 2) actually often a valid way to call a method, think a delegator using method_missing for example. Though I prefer #public_send in the later case
aspiers has quit [Ping timeout: 244 seconds]
mmitchell has quit [Ping timeout: 265 seconds]
<iajrz_> can't he the only way if there are two ways, huh?
carlyle has quit [Remote host closed the connection]
<MrZYX> #__send__ is defined on BasicObject and #send on Object iirc
ngoldman has quit [Remote host closed the connection]
<iajrz_> hm... alright, I'll check it out. Darn koans, making me worry
zipper has joined #ruby
Hanmac1 has joined #ruby
<Hanmac1> MrZYX & Apane: what about: lower, upper = data.each_slice(data.size/2).to_a
asteros has quit [Quit: asteros]
<MrZYX> right, thanks Hanmac
<Apane> thanks Hanmac1
<MrZYX> but now I want a slices method to go on par with #chars etc :P
Hanmac has quit [Ping timeout: 246 seconds]
Hanmac1 is now known as Hanmac
scarolan has quit [Ping timeout: 265 seconds]
mark_locklear has quit [Ping timeout: 248 seconds]
<Hanmac> MrZYX: first i did try "*lower, *upper = data" but it did not work, it was "unexpected" ;D
tvw has joined #ruby
<MrZYX> ^^
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
scarolan has joined #ruby
<Hanmac> MrZYX yetAnotherWay
<Hanmac> >> lower, upper = [*0..100].partition{|i| i < 50}
<eval-in> Hanmac => [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49], [50, 51, ... (https://eval.in/68238)
<MrZYX> hm
<MrZYX> you need to know the value range and hardcode it as a magic number
<MrZYX> don't think I like that too much
<blahwoop> where would i go to see how ruby methods like sort and capitalize are written
<Hanmac> >> even, odd = [*0..100].partition(&:even?)
<eval-in> Hanmac => [[0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100] ... (https://eval.in/68240)
asteros has joined #ruby
<MrZYX> blahwoop: rubydoc.info and ruby-doc.org both have "view source" buttons
<blahwoop> ok thanks
<bahar> hey. any RubyMine users here?
<Hanmac> blahwoop: another source page is https://github.com/ruby/ruby
nomenkun_ has joined #ruby
phansch has quit [Quit: Leaving]
petey has joined #ruby
* Hanmac prefers http://www.ruby-mine.de/ over RubyMine ,P
<MrZYX> blahwoop: Hanmac: and the last one to add to the list: http://rxr.whitequark.org/mri/search
Xeago has quit [Remote host closed the connection]
cek has joined #ruby
mark_locklear has joined #ruby
nomenkun has quit [Ping timeout: 265 seconds]
newbiehacker has quit [Ping timeout: 248 seconds]
camilasan has quit [Ping timeout: 244 seconds]
coffeina has joined #ruby
coffeina has quit [Client Quit]
mojjojo has quit [Quit: mojjojo]
johhny111 has joined #ruby
Clooth has joined #ruby
coffeina has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
rlsdev has left #ruby [#ruby]
mikepack has joined #ruby
scarolan has quit [Ping timeout: 264 seconds]
scarolan has joined #ruby
reset has quit [Quit: Leaving...]
Davey has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<coffeina> hi
<havenwood> hi
<coffeina> I have question
Ox6abe has quit [Remote host closed the connection]
<havenwood> #=> true
Ox6abe has joined #ruby
mercwithamouth has quit [Ping timeout: 261 seconds]
<coffeina> I'm new to this language and from week writing examples from the book
<coffeina> it becomes a little boring
bronson has quit [Quit: bronson]
banas has joined #ruby
<banas> I'm getting troubled by this
<coffeina> what do you think that should be a new step
<havenwood> learning the alphabet is boring too, i'm sure there are some tricks, but power through
<banas> trying to insert an i from a JS
<banas> for loop
<MrZYX> coffeina: find a problem you personally have and solve it using ruby
<DouweM> banas: you're mixing JS and Ruby. that won't work
<banas> hm, so how do i pass the i from js to ruby?
moneydouble has quit [Quit: Leaving.]
<DouweM> haml/erb is just a preprocessor. you can't access Ruby from the JS code like you are attempting
<banas> aint possible at all DouweM ?
hiall has quit [Quit: hiall]
<banas> hm, so what alt do i have DouweM ?
<DouweM> banas: do the loop from Ruby
RaCx has joined #ruby
<coffeina> MrZYX thx
<banas> ok ill try that :)
Tomasso_ has quit [Ping timeout: 250 seconds]
iliketurtles has quit [Quit: zzzzz…..]
carlyle has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
<MrZYX> coffeina: if you already know a language and already solved a problem you had with it, solving it again with ruby can also be a good exercise
scarolan has quit [Ping timeout: 272 seconds]
<havenwood> coffeina: The power you gain is immense, if you don't know another language the challenge is harder, but still worth it for sure.
rezzack has joined #ruby
<MrZYX> coffeina: and once you're done with that, come here again and ask for a review ;)
<coffeina> MrZYX: I was thinking of writing a work of Diploma engineering work
<havenwood> coffeina: Are you new to programming or new to Ruby?
jamblack has joined #ruby
mmitchell has joined #ruby
<coffeina> MrZYX:
<coffeina> real developer, I'm a student
<banas> DouweM: im gettig this now https://gist.github.com/sarupbanskota/7474020
lmadrigal has joined #ruby
GoodTimes has quit [Ping timeout: 248 seconds]
<banas> im sorry im kinda new to both ruby and js
GoodTimes has joined #ruby
<banas> how do we fix that?
<coffeina> MrZYX: I'm new in porogramming and new in Ruby
<DouweM> banas: I don't have experience with Haml I'm afraid, but otherwise its looks better now. it's probably a haml syntax issue of sorts
mmitchell has quit [Read error: No route to host]
<havenwood> coffeina: I've heard people highly recommend Learn to Program by Chris Pine, which is in Ruby but I've never read it
mmitchell has joined #ruby
<banas> ok lemme try something out :)
<havenwood> coffeina: Ruby is a great lang, get the C-derivative bulk of things with a lisp and functional grip.
aspires has joined #ruby
<coffeina> <havenwood> <MrZYX>Now I started to read a lot of books and articles on Ruby and programming
<havenwood> coffeina: That is the way to go, just absorb everything you can get ahold of.
<coffeina> I work as software tester
<havenwood> coffeina: Ask here if you get confused.
achru has joined #ruby
<MrZYX> but don't forget to actually do some programming!
<iajrz_> Ruby makes me a happy person.
moneydouble has joined #ruby
eeriegeek has joined #ruby
<interactionjaxsn> banas: if this is rails, https://rubygems.org/gems/gmaps4rails
<coffeina> yes but programming sometimes it is difficult for me
momomomomo has quit [Quit: momomomomo]
<havenwood> coffeina: it is difficult, period
<coffeina> a lot of things I do not know
<iajrz_> +1
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Davey has joined #ruby
<coffeina> I do not understand
<iajrz_> coffeina: if you spend a couple of hundred hours programming, it won't be so hard
<four33> there is no mystery
<iajrz_> in the beginning, there is the need to adapt the process of thought to the demands of programming
<four33> it's just doing
myappleguy has joined #ruby
<four33> it's the same with anything ever
<coffeina> how to reconcile it with work and studies ?
<iajrz_> exactly... I mean, riding a bike is no less demanding on the body after you learn to do it.
Guest5307 has quit [Remote host closed the connection]
<iajrz_> you just know better what to do
<interactionjaxsn> coffeina: http://exercism.io/ is great for peer review and exposing yourself to several languages
dkamioka has quit []
<havenwood> coffeina: spare time, and it can replace paid work even at the learning stage - many shops are hiring beginner rubyists
Mars has joined #ruby
mmitchell has quit [Ping timeout: 260 seconds]
<four33> How to reconcile it with work and studies?
<four33> lol
Mars is now known as Guest65066
<four33> maybe you should code a calendar or something
<four33> that could be your first pet project
<iajrz_> let the coding become both work and studies~
<coffeina> pet project :) nice
scarolan has joined #ruby
<havenwood> if projects noone else uses are cats, i'm a cat lady
atrocitas has joined #ruby
vlad_sta_ has joined #ruby
srji has joined #ruby
jjbohn has joined #ruby
Davey has quit [Remote host closed the connection]
<four33> Ruby installation stuck on "Installing required packages: libyaml, readline, libksba"
<havenwood> a nice think about nobody using your gems is little time spent on support
<havenwood> four33: Whatcha installing with?
<iajrz_> four33: where are you installing?
<four33> RVM
<havenwood> four33: The OS?
<coffeina> I would like to change their work with software tester to developer
<four33> Mac OSX
iamjarvo has joined #ruby
<havenwood> four33: Your rvm is latest?: rvm get latest
<iajrz_> what OS?
iajrz_ is now known as iajrz
RaCx has quit [Quit: Computer has gone to sleep.]
<four33> MAC OS X
<four33> im doing rvm --ruby
<havenwood> four33: Are you using Homebrew or Macports?
<iajrz> ah, I don't belong in the walled garden, sorry.
* iajrz is at a loss.
Guest65066 has quit [Ping timeout: 260 seconds]
<havenwood> iajrz: Darwin is open source.
camilasan has joined #ruby
<four33> looks like it's Ports
Davey has joined #ruby
<havenwood> iajrz: but fair enough
<four33> im doing it with "\curl -L https://get.rvm.io | bash -s stable --ruby"
vlad_starkov has quit [Ping timeout: 244 seconds]
ffranz has quit [Quit: Leaving]
<havenwood> four33: I'd recommend the path of least resistance, which is Homebrew.
skaflem has quit [Quit: Leaving]
<havenwood> four33: I use ruby-install with chruby, but rvm is fine. Just install Homebrew, and it is worth getting used to installing brew packages.
<four33> oh, you know what, I think it's just going suuuuuper slowly
rrichardsr3 has joined #ruby
<havenwood> four33: Could be you're waiting for macports packages to compile
<four33> yeah turns out i'm just being impatient :P
jprovazn has quit [Quit: Odcházím]
<havenwood> four33: You should learn your package manager though.
<havenwood> four33: Be it Homebrew, Macports, or Fink.
<four33> Macports
bahar has quit [Ping timeout: 252 seconds]
terrellt has joined #ruby
<four33> it seemed to handle everything automatically
<havenwood> Less support, but better multi-user support (read: any multi-user OS support at all)
<havenwood> four33: If you're on a single user system, Homebrew is the norm.
<havenwood> four33: Macports is fine though, if you prefer. Just less mainstream.
stkowski has quit [Quit: stkowski]
<four33> I don't really care :P
SirFunk has joined #ruby
<four33> it seems to be installing my shit
<havenwood> four33: Homebrew.
<havenwood> four33: Well, if *all* you need is Ruby, that works just fine.
Guedes0 has quit [Ping timeout: 268 seconds]
<havenwood> If you are gunna be installing gems and want a smooth ride, you might have better luck with Homebrew.
xk_id has quit [Quit:
<havenwood> ymmv
atrocitas has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
michael_mbp is now known as zz_michael_mbp
amacgregor__ is now known as allanmacgregor
benwoody has quit [Quit: benwoody]
<havenwood> brew install chruby ruby-install <- ftw
yfeldblum has quit [Remote host closed the connection]
xk_id has joined #ruby
dweeb_ has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
jhaals has joined #ruby
<four33> do you peeps know any other languages?
workmad3 has joined #ruby
bahar has joined #ruby
atrocitas has joined #ruby
<havenwood> four33: most do, Rubyists tend to be polyglots
RichardBaker has joined #ruby
RichardBaker has quit [Client Quit]
tharindu has joined #ruby
<four33> I don't know if it's a super great idea, but i'm learning Java already, and have just started on Ruby
<havenwood> four33: Check out JRuby.
RichardBaker has joined #ruby
achru has quit []
jibi has joined #ruby
<havenwood> four33: Ruby is nicer than Java, but you can build Java extensions or compile to jars.
iamjarvo has quit [Remote host closed the connection]
SirFunk has quit [Remote host closed the connection]
<four33> define "nicer"?
zipper has quit [Quit: leaving]
iamjarvo has joined #ruby
<iajrz> nicer = more like ruby :P
<havenwood> four33: More elegant, concise, less cruft, more predictable, formable into what you want
scarolan has quit [Ping timeout: 268 seconds]
<four33> hm
A124 has joined #ruby
<four33> less readable
<four33> :P
CorySimmons has joined #ruby
<iajrz> not necessarily, I daresay...
cpruitt has quit [Quit: cpruitt]
<four33> maybe I'm just used to Java
<havenwood> four33: silliness :P Java is only more readable if you learn Java before sanity
<iajrz> java 8 has closures
<four33> yeah you never forget your first Hello, world
<iajrz> no, not when it's so long >_>
agent_white has joined #ruby
<four33> haha
<havenwood> four33: Clojure or Ruby are so much nicer than Java, and you can dip down whenever you like.
<MrZYX> I had to work with a java project recently where basically all arguments and returns types where Object
<havenwood> Scala and Java are for masochists.
<four33> People are praising Scala lately
<iajrz> There are horrendous programmers out there, MrZYX.
<lupine> I've been writing a lot of C recently
<Hanmac> havenwood: thats not difficult .,.. nearly everything in nicer than java
Monie has joined #ruby
<lupine> it's funny how it grows on you
jbpros has joined #ruby
<lupine> bad C is horrid, bad java is horrid, bad ruby is horrid
iamjarvo has quit [Remote host closed the connection]
<iajrz> lupine: it's your psyche trying to get adjusted to the pain
<lupine> no, honestly
<havenwood> lawl
<terrellt> Bad ruby is less horrid than bad C.
bronson has joined #ruby
* terrellt shivers
<iajrz> bad C is not just horrid, it's cancer.
keen___ has quit [Ping timeout: 246 seconds]
<havenwood> good C and good Java are horrid
<lupine> no, goodC is a joy
bahar has quit [Ping timeout: 268 seconds]
<Hanmac> lupine: i use C-Macros very often in my C++ stuff to generate methods so i can bind them for the ruby methods
<iajrz> good Java ain't horrid. Unless you're doing web development.
sbos99 has quit [Ping timeout: 246 seconds]
<havenwood> lupine: joy is relative
johnnyfuchs has joined #ruby
<iajrz> or UIs in general
<four33> man this Ruby install is huge
<havenwood> iajrz: again, horrid is relative
<lupine> *shrug*
scarolan has joined #ruby
tharindu has quit [Ping timeout: 272 seconds]
<havenwood> you get used to ugly
<lupine> if what you're saying is "I dislike working in C", that's fine
<four33> how do you guys distribute programs - does the user have to know how to install with Homebrew, etc.?
<iajrz> lol, that was my psyche adjusting to the pain, I guess
<iajrz> a year too many coding java
<platzhirsch> workmad3: did you get my memo? :P
<iajrz> four33: gem ?
<four33> gem?
asteros has quit [Quit: asteros]
<lupine> four33, I gave up distributing work's ruby gui application on mac
<iajrz> guys, am I right? wouldn't ruby gems be the way to distribute ruby thingies?
<lupine> it's doable until you need C extensions
bahar has joined #ruby
<lupine> iajrz, gems are for programmers
Czupa has quit [Remote host closed the connection]
<platzhirsch> iajrz: yes
<lupine> for a desktop application, you want a dmg, it's what apple users are hot for
<havenwood> lupine: I'm saying being accustomed to pain is a shame to accept. What is acceptable in programming quickly becomes arcane and bizzare.
yfeldblum has joined #ruby
<four33> let's say you make a beautiful ruby program which displays pictures of cats, you want to send it to your grandmother to run on her computer - how do?
<lupine> havenwood, then your assertion is plainly incorrect
SirFunk has joined #ruby
<havenwood> lupine: COBOL ftw.
<iajrz> guys, we should be doing scheme
<platzhirsch> four33: windows, apple, linux?
* iajrz ducks, as another language war erupts around him
<four33> you don't know
<havenwood> lupine: Why have loops, binary octets work for me.
<four33> she might have told you windows at one point, but you can't remember
<iajrz> platzhirsch: what's the link of the bomberman MMO clone?
<platzhirsch> four33: then you host it on a web server and send her the link
<lupine> you're obviously not going to be reasonable with it
<four33> she doesn't have the internet, and you have to mail her a USB stick
<platzhirsch> iajrz: I won't give it out, it's eating all the time you should spent programming Ruby :P
<iajrz> lol
<havenwood> lupine: C is C. I Ruby to not C.
cody-- has quit [Quit: derp]
yfeldblu_ has joined #ruby
<iajrz> mail her an android with the APK installed, four33
<lupine> havenwood, and I ruby and C
<iajrz> :P
myappleguy has quit [Ping timeout: 246 seconds]
<iajrz> platzhirsch: I need to play :'( and if I start playing LoL
<four33> May as well write it in Java, then
carraroj has joined #ruby
capicue has joined #ruby
<iajrz> ... I don't know what will be of me
<iajrz> four33: jruby?
tonni_ has joined #ruby
<four33> an abomination!
<platzhirsch> four33: then you package it for OS X, Linux and Windows and tell her to try out any of these three
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lupine> deploying ruby applications on mac, as .app dmg files, is fairly difficult
alekst has joined #ruby
<four33> this is what i'm wondering
<lupine> there are a variety of we'll-do-it-for-you frameworks
<four33> coming from java, it's fairly easy for me to send someone an application
<lupine> none of them worked for a QtRuby application last I tried
<four33> I don't know enough about Ruby to know how to do that here
<lupine> you can deploy a jruby application as a jar file
lethjakman has joined #ruby
<lupine> this might be the way forward for you
<four33> let's forget JRuby for the time being
<lethjakman> hey, I'm trying to use blocks, but I'd like to also be able to pass the text in by hand
<lethjakman> I have a method that looks like this https://gist.github.com/lethjakman/7474531
<lethjakman> but I'm getting an unexpected & when refering to the block
<lupine> for ruby, it's a matter of putting the files in the right places that all the search paths work and stuff, and creating a shortcut where the user can see it
<lethjakman> anyone know what I'm doing wrong?
eddie has joined #ruby
<havenwood> lupine: of course good C is good, i just was being silly - but Ruby is a reason in itself imho
danshultz has joined #ruby
tonni has quit [Ping timeout: 252 seconds]
<lupine> the .app format is very weird, and apple's dynamic linker is braindead
eddie is now known as Guest1895
Guest1895 is now known as another_eddie
<lupine> pure ruby applications are perfectly doable, though
<four33> it doesn't sound like it :/
<havenwood> sure, a couple good examples of MacRuby apps
yfeldblum has quit [Ping timeout: 240 seconds]
<lupine> linker aside, the main problem is that mac os is properly alien
havenwood has quit [Remote host closed the connection]
<MrZYX> lethjakman: using &block captures the block, converts it into a Proc object and assigns it to the local variable block
<lupine> all the information is there, but you have to learn what you're doing from scratch
<MrZYX> so now you have a Proc object inside the local variable block
Hanmac has quit [Ping timeout: 246 seconds]
spider-mario has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
banister has joined #ruby
Lewix has joined #ruby
scarolan has quit [Remote host closed the connection]
Hanmac has joined #ruby
myappleguy has joined #ruby
bahar has quit [Changing host]
bahar has joined #ruby
SteveBenner9 has joined #ruby
<somasonic> anyone got a favourite smtp mail sending lib?
scarolan has joined #ruby
mephux has quit [Ping timeout: 246 seconds]
another_eddie has quit [Client Quit]
<four33> so i've found one reason Java is better than Ruby
<somasonic> please enlighten us
mephux has joined #ruby
<shevy> four33 because it is compiled?
<four33> I can easily make an application and share it with potential users of the application
mklappstuhl has quit [Remote host closed the connection]
<iajrz> ease of packaging
nobitanobi has quit [Read error: Connection reset by peer]
SirFunk has quit [Read error: Connection timed out]
<bahar> asking about RubyMine because I have a script going, and I'm putting an ip address into a variable, and RubyMine is returning the error, "no .<digit> floating literal anymore; put 0 before dot (SyntaxError)" <-- any insight?
SirFunk has joined #ruby
<Lewix> four33: what about git
Apane has quit [Ping timeout: 244 seconds]
<shevy> four33 huh, gems are not about "sharing" with users?
nobitanobi has joined #ruby
parduse has quit [Read error: Connection reset by peer]
<iajrz> bahar: you have a number which is .##
<iajrz> they ask you to make it be 0.##
IceDragon has joined #ruby
<four33> shevy: what if the user doesn't know how to install ruby through command line
<bahar> if i have for example, 192.168.1.0, i should make it 1920.1680.10.1?
<iajrz> huh
<iajrz> that's weird
<iajrz> shouldn't be necessary, no
<bahar> yeah its weird
<bahar> it doesnt like the dots in the ip address
<iajrz> but they're acting as though you're using a float literal
<iajrz> this is silly, but do you have your quotes?
parduse has joined #ruby
<Hanmac> bahar: use string
<iajrz> "192.168.1.0"
keen___ has joined #ruby
<iajrz> yay! I successfully finished writing the proxy :D
<bahar> well what i'm using is config.hue_ip = 192.168.1.0
<iajrz> I love being able to run irb and ask Object.methods
<iajrz> bahar: make it a string
<bahar> i should make it config.hue_ip.to_s = 192.168.1.0 or config.hue_ip = "192.168.1.0" ?
<shevy> four33 ok what other scripting language allows that?
<iajrz> the second one
Banistergalaxy has quit [Ping timeout: 272 seconds]
dallasm_ has joined #ruby
banas has quit [Quit: ChatZilla 0.9.90.1 [Firefox 25.0/20131030081700]]
<Hanmac> or use that ;D IPAddr.new("192.168.1.0")
sambao21 has quit [Quit: Computer has gone to sleep.]
newbiehacker has joined #ruby
sambao21 has joined #ruby
<four33> shevy: no idea
macmartine has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 244 seconds]
dallasm_ has quit [Remote host closed the connection]
leonidlm has quit [Ping timeout: 264 seconds]
Banistergalaxy has joined #ruby
mjs2600 has joined #ruby
macmartine has joined #ruby
jamblack has quit [Ping timeout: 244 seconds]
nomenkun_ has quit [Remote host closed the connection]
reset has joined #ruby
Jetchisel has joined #ruby
nomenkun has joined #ruby
Apane has joined #ruby
<shevy> four33 well there is the ruby one click installer on windows
Reach has joined #ruby
jamblack has joined #ruby
<four33> interseting
iliketurtles has joined #ruby
<iajrz> I'm at the last koan
* iajrz shivers
<Reach> I feel like I can write code, but I never learned how to actually turn that into a piece of software
<Reach> like an executable to run
macmartine has quit [Remote host closed the connection]
<Reach> and I certainly don't know how to do it from terminal
<four33> Good luck doing that with Ruby
macmartine has joined #ruby
<iajrz> Mountains are merely mountains
<Reach> what do you mean four33?
mixel has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
<Reach> four33: I'm a mathematician, so the programming I do is more in matlab and stuff like in projecteuler
CamonZ has quit [Ping timeout: 246 seconds]
nomenkun has quit [Ping timeout: 245 seconds]
mikepack has quit [Remote host closed the connection]
<iajrz> ok, I got tired of the whining here
reset has quit [Ping timeout: 272 seconds]
<iajrz> there's one
<iajrz> for windows executables
<four33> oh nice
sriehl has joined #ruby
sriehl has quit [Changing host]
sriehl has joined #ruby
<four33> my legitimate questions have turned up a response
<lethjakman> MrZYX: ahhh got it. thank you.
<iajrz> aaand
mikepack has joined #ruby
<iajrz> first page of google search
<four33> I don't use search engines
<iajrz> you should
<iajrz> they help you find stuff
<iajrz> ;)
<four33> so do you guys, though
<four33> ^_^
aryaching has joined #ruby
<iajrz> you just made me a very angry, frustrated and unhappy person
Mars has joined #ruby
<iajrz> if I could forever erase the text I put in here, I'd erase those links.
<four33> I have that effect on many people
<four33> no i'm just fucking around guys, thanks to all of you
err_ok has left #ruby ["Textual IRC Client: www.textualapp.com"]
<shevy> Reach on linux you should be able to simply type the name of the file you want to run, i.e. as absolute path. if the name of your file is foo.rb you simply type "./foo.rb" or "ABSOLUTE/PATH/TO/IT"
<four33> you've been a great audience
Mars is now known as Guest4553
<Reach> I don't see how I was whining...
graydot has quit [Ping timeout: 240 seconds]
<four33> I think he's referring to me
<iajrz> Actually, no
<iajrz> we weren't looking for an answer
<iajrz> it wasn't whining
gr33n7007h has quit [Read error: Operation timed out]
<iajrz> we were... not being productive
<Reach> I'm using OSX
<iajrz> that gets tiresome
<four33> I was certainly looking for an answer
<shevy> Reach should work the same on OSX too, OSX is using some modified BSD isn't it? that is also a unix derivative, like linux
<four33> I think I found three of them, too...
<Reach> I just want to be more sueful with my programming skills as I gotta look for a job soon
<shevy> only windows users are really forced to work with the GUI
hiyosi has joined #ruby
<shevy> like, you can install bash on windows, but the only way you can manage is to have to use the GUI, on linux and osx you can choose
aryaching_ has quit [Ping timeout: 244 seconds]
reset has joined #ruby
evenix has quit [Remote host closed the connection]
<shevy> perhaps less so on linux... :P
CorySimmons has quit [Quit: Leaving.]
<shevy> but there are graphical package managers
* Hanmac prefers cmd for making ... its so much faster
<shevy> yeah
<iajrz> shevy: powershell
graydot has joined #ruby
leonidlm has joined #ruby
<iajrz> actually, there are some headless windows server installs lately, iirc
<shevy> hmm
Kamuela has joined #ruby
<shevy> does powershell allow you to install ruby?
<Kamuela> that's a good question. just got 8.1 up today
<iajrz> wait a sec, brb
<shevy> I stopped using windows after XP
<Kamuela> at the expense of xubuntu :)
<shevy> ubuntu sucks anyway
timonv has joined #ruby
<Kamuela> completely screwed up my setup and trying to fix grub n all dat right now
<Hanmac> "powershell" should be rewritten in ruby ;P
<shevy> YES
<iajrz> you can do all management tasks from the shell, it seems.
<Reach> shevy: should I learn bash as well?
SHyx0rmZ has quit [Ping timeout: 260 seconds]
tannerburson has quit [Ping timeout: 272 seconds]
<iajrz> wait. wait
<shevy> Reach dunno. I gave up on shell scripts and only use ruby scripts. I hate shell scripts. if you like them, sure, use shell stuff
<iajrz> wrong link XD
<Kamuela> shevy, make no mistake, if you like your shell scripts, you can keep your shell scripts
mary5030 has quit [Remote host closed the connection]
<shevy> shell scripts were more useful before scripting languages emerged, really
<shevy> kamuela lol
<shevy> kamuela I think I keep about 20 or 30 for legacy reasons or something like t hat
mary5030 has joined #ruby
<iajrz> these are the dudes
<Kamuela> shevy, what platform are you on right now?
<iajrz> there's a protocol for remote management et all
<shevy> kamuela linux (slackware, because it does only little)
hiyosi has quit [Ping timeout: 246 seconds]
<shevy> the idea behind powershell is cool
<shevy> we need that for ruby
reset has quit [Ping timeout: 246 seconds]
<Kamuela> what is the idea behind powershell?
A124 has quit [Remote host closed the connection]
<shevy> kamuela everything on windows becomes an object!
<Kamuela> shevy, no wei.
<shevy> so you pipe data to your objects... and create excel files, office files etc...
musty has joined #ruby
A124 has joined #ruby
<Kamuela> shevy, how do they implement that? do they require it as a feature of .NET apps or something?
<shevy> kamuela so rather than treating stuff like on linux "everything is a file", you basically treat it as object-like entity, that can respond to a common set of behaviour
<shevy> my dream would be to apply audio and video filters that way easily
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> like avisynth scritps do... but right in the shell, integrated
timonv has quit [Ping timeout: 260 seconds]
kcombs has quit [Remote host closed the connection]
<Kamuela> hmm, is that an NT thing they're working on? does the GUI work on that interface?
<shevy> kamuela yeah I think you need .NET :(
jrhe has joined #ruby
<shevy> it used to be called "monad shell"
aryaching has quit [Ping timeout: 264 seconds]
nisstyre has quit [Quit: Leaving]
Guedes0 has joined #ruby
benwoody has joined #ruby
<Kamuela> I played with C# .NET for a little bit. It was kinda cool
scarolan has quit [Ping timeout: 240 seconds]
<shevy> I hate that it is locked for windows
Apane has quit [Ping timeout: 265 seconds]
mary5030 has quit [Ping timeout: 272 seconds]
benwoody has quit [Client Quit]
<iajrz> my life makes no sense now
<iajrz> no koans to complete
<shevy> iajrz it's ok, drink a beer
<Kamuela> iajrz, you finished koans?
<iajrz> aye, all of the vanilla ones
<iajrz> they have an extra_credit
<iajrz> and... a java_interop
<Kamuela> i promise to work on them once i fix xubuntu
pixelgremlins has quit [Ping timeout: 268 seconds]
<iajrz> what's up with xubuntu?
drumusician has joined #ruby
<iajrz> kamuela
jkamenik has quit [Quit: Leaving.]
SHyx0rmZ has joined #ruby
jjbohn has quit [Quit: Leaving...]
Guest4553 has quit [Remote host closed the connection]
<Kamuela> iajrz, i went to give it more room today
myappleguy has quit [Ping timeout: 260 seconds]
<Kamuela> it was on the tail end of my drive with only 100GB
Hanmac1 has joined #ruby
<Kamuela> with windows doing nothing with 600GB
newbiehacker has quit [Quit: Leaving]
<Kamuela> so went to windows but ended up completely reinstalling 8.1 insead of 8
<Kamuela> and gave it 100GB, then gparted to push everybody up
<Kamuela> but windows 8.1 installed a system reserved partition, so my table isn't the same, so i'm grub-fixin
coffeina has quit [Quit: Wychodzi]
<iajrz> argh. I don't do "windows after linux" gigs because of that
camilasan has quit [Remote host closed the connection]
<iajrz> good luck with that, I don't know how to do it... because I've always avoided it
zoee has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
Hanmac has quit [Ping timeout: 244 seconds]
<Kamuela> iajrz, basically i install grub to the linux root /, and tell windows to make that partition active
camilasan has joined #ruby
<Kamuela> it's not extremely complex, i just screwed something up somewhere
gr33n7007h has joined #ruby
sambao21 has joined #ruby
kcombs has joined #ruby
GoodTimes has quit []
asteros has joined #ruby
Apane has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ckinni has joined #ruby
plotter has quit [Read error: Connection reset by peer]
<shevy> hehe
plotter has joined #ruby
plotter has joined #ruby
plotter has quit [Changing host]
camilasan has quit [Ping timeout: 252 seconds]
<platzhirsch> Tricky, how do I know if a URI is already encoded? Because running URI.encode twice results in a different URI. Just run URI.decode before URI.encode?
myappleguy has joined #ruby
dnyy_ has joined #ruby
kaldrenon has quit [Remote host closed the connection]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rrichardsr3 has quit [Quit: -- I'm out --]
tannerburson has joined #ruby
<platzhirsch> nevermind, I don't need to encode it, this is the task of the Http library
kaldrenon has joined #ruby
mercwithamouth has joined #ruby
dnyy has quit [Read error: Connection reset by peer]
dnyy_ is now known as dnyy
bassclef has joined #ruby
bassclef is now known as Guest86407
<shevy> need help
mrsolo has joined #ruby
<shevy> how could I "alias" (rather, call) from a class method to an instance method?
blahwoop has quit []
jbpros has quit [Quit: jbpros]
jerius has joined #ruby
scarolan has joined #ruby
<PPH> there's an better way temporarily "clone" an array thant that? the_array.map{|i|i}.each{ |items| do_something_unkind_to_the_initial_array }
jerius has quit [Client Quit]
kaldrenon has quit [Ping timeout: 265 seconds]
tharindu has joined #ruby
mary5030 has joined #ruby
reset has joined #ruby
kreisys has quit [Quit: Computer has gone to sleep.]
<MrZYX> .dup
asteros has quit [Quit: asteros]
<MrZYX> note that both are shallow copies
danshultz has quit [Remote host closed the connection]
shterrett has joined #ruby
<shevy> hmm... calling a class method from within an instance method is trivial... perhaps the opposite way is not possible, in a module
<coldmethod> PPH: why not this: old = [1], new = old[0..-1]
<coldmethod> ?
danshultz has joined #ruby
larissa has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
<MrZYX> coldmethod: that's too a shallow copy, so not different from .dup
<platzhirsch> shevy: class Dummy; include Test; end.new().test
swarmy is now known as lovesmen
<platzhirsch> not very fine though :P
<PPH> MrZYX: what do u mean by shallow?
Fire-Dragon-DoL has joined #ruby
thesheff17 has quit [Ping timeout: 272 seconds]
<MrZYX> they array object is copied, the contained objects aren't
<PPH> coldmethod: well I'm trying to refactor to have less line of code
Tarential has quit [Excess Flood]
<shevy> platzhirsch that requires me to include the Module? I want to retain the flexibility to call it standalone, without including the full namespace into a project
atrocitas has quit [Remote host closed the connection]
Tarential has joined #ruby
<PPH> in fact I'd like to refactor this https://gist.github.com/anonymous/7471381
tharindu has quit [Ping timeout: 264 seconds]
hiyosi has joined #ruby
stkowski has joined #ruby
<platzhirsch> shevy: both methods need to have the same name right?
dubsteph has joined #ruby
ngoldman has joined #ruby
thelorax123 has quit [Remote host closed the connection]
shterrett has quit [Quit: shterrett]
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> platzhirsch yeah, they basically should "serve" as alias, but allow flexible call
akonny has quit [Quit: akonny]
<platzhirsch> shevy: there is module_function :test
<shevy> modules kinda give me more flexibility than classes, except for #new :(
<platzhirsch> but it does not work if they have the same name
lovesmen is now known as talntid
<shevy> yeah it's ok for now, I decided to have "def self.test" be the main method, and the instance method simply calls that method now
<shevy> thanks platzhirsch
eka has joined #ruby
danshultz has quit [Ping timeout: 259 seconds]
<shevy> let me paste the relevant part onto a pastie
thelorax123 has joined #ruby
<shevy> return callcc { |cont| cc = cont }
<MrZYX> PPH: I'd probably do something like accounts_to_add = accounts.select {...}; accounts_to_add.each do ... end; accounts -= accounts_to_add for that portion
<shevy> def __; eval 'self.class', caller_binding; end
<four33> hehe pastie
aryaching has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
dorei has joined #ruby
srji has quit [Ping timeout: 264 seconds]
epichero has joined #ruby
shaunbaker has joined #ruby
shaunbaker has quit [Client Quit]
interactionjaxsn has joined #ruby
<MrZYX> PPH: actually you probably just could plan.accounts += accounts_to_add
<shevy> four33 come on man, learn ruby!
<four33> im at work!!
<bahar> some of us are :)
<four33> I am going to! I ordered a book from amazon should have arrived today
<MrZYX> PPH: or .concat if you care about number of created objects
<shevy> four33 then learn at home in your free time!
<shevy> well
<shevy> a book can only get you started...
<four33> i'm going to!
<shevy> you need to go active and write yourself
<PPH> MrZYX: ok thx
<four33> I know!
ua has quit [Quit: Leaving]
<four33> what the hell are you talking about?!
<shevy> don't be so passive!
<shevy> publish gems!
zoee has quit [Quit: This computer has gone to sleep]
<four33> I don't know how to write a single line yet really!
<shevy> MrZYX are you using rubygems.org?
<shevy> four33 come on... everyone knows how to write hello world...
<coldmethod> PPH: shalow copies work fine if array doesn't refer to other objects.. dup is cheaper than clone and doesn't copy any singleton classes
<MrZYX> shevy: in what way?
<four33> puts "Hello, world"
<shevy> MrZYX with a collection of your gems :>
<shevy> four33 YES
<shevy> four33 you are now past stage 0
<four33> you want that in a gem?
platypine has joined #ruby
<platzhirsch> lol, completely wrong, there is no comma after Hello
<shevy> four33 no, that gem already exists
<four33> yes there is
udon has quit [Quit: Leaving]
<MrZYX> shevy: only got one so far and I'm unhappy with the API so not much to discover ;)
<shevy> MrZYX ok
<shevy> platzhirsch are you using rubygems.org?
<four33> Hello, world. is syntactically correct.
<platzhirsch> shevy: I am afraid yes
<shevy> I mean, with your own gems
<shevy> not searching for other gems
<platzhirsch> No, I have a gem that I should publish soon
<shevy> four33 yes, you passed stage 0... next stage would be to make use of conditional checks
<shevy> if something
<shevy> # hello world here
<shevy> else
<shevy> # end of the world is soon here
<shevy> end
<platzhirsch> I think the comma should be removed beforehand, but whatever
<shevy> world war III will erupt over a comma
sn0wb1rd has quit [Quit: See ya]
interactionjaxsn has quit [Ping timeout: 252 seconds]
<Reach> damn nazis!
<platzhirsch> syntactically correct or not. No one speaks like that
<shevy> right... they should have used the comma as symbol back then...
<shevy> some people speak
<shevy> some other people yodel
brtdv has joined #ruby
mark_locklear has quit [Read error: Operation timed out]
<four33> haha you're arguing against syntax in a programming chat room
watermel0n has quit []
<shevy> he has a point! syntax is very important
<lupine> indeed, it can ruin a language
<lupine> look at poor lisp ;)
<Reach> t.t
<lupine> </troll> etc
<shevy> In perl you must not forget ;
<shevy> I forgot a ; about every tenth time I saved a perl file
<platzhirsch> Finally, my accuracy metric does what it should do. Sending HTTP requests to URLs and looking if the expected MIME type complies with the actual MIME type and if it's wrong they get Score 0.0 haha
<shevy> that was such an annoying error because it wa so useless...
petey has quit [Remote host closed the connection]
<four33> I love this "trick"
<shevy> in ruby there is missing end, but this one is not so often for me as I tend to indent, so it is instantly clear to me where an end is missing
Guedes0 has quit [Ping timeout: 252 seconds]
nfk has quit [Quit: yawn]
jamblack has quit [Ping timeout: 246 seconds]
momomomomo has joined #ruby
<platzhirsch> shevy: holy ghost, I think I have to save that pastie for later. That's homework ^^
tannerburson_ has joined #ruby
<four33> hehe pastie
<shevy> platzhirsch it's rather insane
tannerburson has quit [Read error: Connection reset by peer]
tannerburson_ is now known as tannerburson
<platzhirsch> four33: what are you thinking of? pasty?
Mars has joined #ruby
vlad_starkov has joined #ruby
<shevy> four33 man, your brain is wicked...
niftylettuce has joined #ruby
<four33> nah a pastie is the thing you put on a nipple
<shevy> are you thinking of nipples at work???
Mars is now known as Guest4512
<four33> im working from the bathroom
<shevy> lol
<platzhirsch> oh my
jamblack has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
epichero has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<four33> keep saying pasties
<four33> I need to finish "work"
<shevy> man
<coldmethod> shevy: that wicked trickery is quite common in oop basically i.e. using self
<shevy> what are you going to do after work
<four33> Start learning Ruby!
vlad_sta_ has quit [Ping timeout: 244 seconds]
Manistri has joined #ruby
petey_ has joined #ruby
<Manistri> Hi, how can I run system calls in Python?
sambao21 has joined #ruby
<dubsteph> Rach, I have another way of doing this: a = b + a - (b = a)
threesome has quit [Ping timeout: 272 seconds]
<shevy> Manistri lol
<shevy> Manistri in ruby you can do: system('ls') or `ls` or use popen
petey has joined #ruby
<shevy> in python you have to make hiss-like sounds and pray to the great snake god
<Manistri> shevy: NameError: name 'system' is not defined
jamblack has quit [Ping timeout: 265 seconds]
iajrz has quit [Remote host closed the connection]
<shevy> Manistri yeah python is too dumb
daxroc has joined #ruby
<Manistri> :( I hate you
Manistri has quit [Client Quit]
cpruitt has joined #ruby
<four33> wtf
zxq9 has quit [Quit: Konversation terminated!]
<shevy> lol
petey_ has quit [Read error: Operation timed out]
TigerWolf has joined #ruby
einarj has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
wlanboy has quit [Ping timeout: 245 seconds]
RichardBaker has quit [Quit: RichardBaker]
jamblack has joined #ruby
<four33> why would he ask py questions in an rb channel?
wlanboy has joined #ruby
<dorei> trolling or maybe too stoned/drunk
dubsteph has quit [Read error: Connection reset by peer]
rezzack has quit [Ping timeout: 268 seconds]
macmartine has quit [Remote host closed the connection]
mephux has quit [Ping timeout: 244 seconds]
iliketurtles has joined #ruby
rezzack has joined #ruby
<trolling> he's not trolling
<trolling> I'm trolling
d45h has quit []
dubsteph has joined #ruby
mephux has joined #ruby
<musty> Lovely.
kcombs has quit [Remote host closed the connection]
cescalante is now known as ce_afk
<musty> trolling: Elsewhere.
wildroman2 has joined #ruby
cek has quit [Ping timeout: 244 seconds]
vlad_sta_ has joined #ruby
srji has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
cpruitt has quit [Quit: cpruitt]
colonolGron has quit [Quit: leaving]
cpruitt has joined #ruby
ngoldman_ has joined #ruby
volty has joined #ruby
<shevy> yeah he was trolling
failshel_ has joined #ruby
dubsteph has quit [Read error: Connection reset by peer]
Monie has joined #ruby
forced_request has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
jamblack has quit [Quit: jamblack]
claymore has quit [Quit: Leaving]
ngoldman has quit [Ping timeout: 260 seconds]
stringoO has quit [Quit: stringoO]
<mary5030> hi i have two javascript functions one starts my dialog one stops it how can I include this to my link_to
<mary5030> any help is appreciated
dubsteph has joined #ruby
scarolan has quit [Ping timeout: 264 seconds]
failshell has quit [Ping timeout: 252 seconds]
nfk has joined #ruby
RichardBaker has joined #ruby
jibi has quit [Ping timeout: 268 seconds]
failshel_ has quit [Ping timeout: 246 seconds]
surrealanalysis has quit [Quit: surrealanalysis]
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
platzhirsch1 has joined #ruby
<shevy> isn't this rails!
<shevy> link_to()
<shevy> that sounds like rails!
<mary5030> yes
<mary5030> i am stuck and new to rails
jrhe has quit [Quit: jrhe]
sailias has quit [Quit: Leaving.]
allsystemsarego has quit [Quit: Leaving]
<mary5030> this is my controller http://pastebin.com/ctb14Nkj
Longlius has joined #ruby
lmadrigal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jrhe has joined #ruby
<mary5030> and the previous link is a link to my view from a partial
<Radar> mary5030: #rubyonrails
platzhirsch has quit [Ping timeout: 246 seconds]
vlad_sta_ has quit [Remote host closed the connection]
myappleguy has quit [Ping timeout: 246 seconds]
VTLob has quit [Quit: VTLob]
Guest86407 is now known as fluffheadsr
<mary5030> yes i find this place very helpful, and think some of the smarter dudes are here
lmadrigal has joined #ruby
<mary5030> but will check rails out soon
DanBoy has joined #ruby
<Kamuela> haha mary5030, Radar is the rails maaastaaa, he'll help you out
drag00n has quit [Ping timeout: 246 seconds]
<Kamuela> he's calling you to his channel :)
cek has joined #ruby
<DanBoy> hello everyone
brtdv has quit []
mikepack has quit [Remote host closed the connection]
dnyy has quit [Read error: Connection reset by peer]
danman has quit [Quit: danman]
<shevy> mary5030 yeah but ruby knowledge. the folks here stink when it comes to rails and javascript
jrhorn424 is now known as zz_jrhorn424
<mary5030> i am somehow not able to join could be connection
<mary5030> or not sure
cek has quit [Client Quit]
<volty> you have to register
<DanBoy> in #rubyonrails
<DanBoy> to talk you gotta regis,...
<DanBoy> what he said :P
<mary5030> Radar i hear you are a rails master mind taking a look at my stuff
<Radar> mary5030: Please ask in #RubyOnRails.
maletor has joined #ruby
<Radar> mary5030: I am personally too busy to look at your app right now but there are other people in that channel that can help you.
<Radar> Register your name.
<Radar> ./msg nickserv help register
<Radar> Without the dot
yfeldblu_ has quit [Remote host closed the connection]
mikepack has joined #ruby
<Kamuela> wish me luck with this cup of buntu
<volty> /msg nickserv help register
momomomomo has quit [Quit: momomomomo]
<Kamuela> away we go!
brtdv has joined #ruby
<volty> (you need just a space in front)
Kamuela has quit [Quit: Leaving]
duggiefresh has quit [Remote host closed the connection]
randomnick_ has quit [Read error: Connection reset by peer]
elux has quit [Quit: Bye!]
Liothen has joined #ruby
<DanBoy> just a double //
duggiefresh has joined #ruby
<DanBoy> /blam hello
<volty> /hello
osvico has joined #ruby
<volty> //msg
<mary5030> sweet thanks
four33 has quit [Remote host closed the connection]
<volty> sweet mary goes on rails
olivier_bK has quit [Ping timeout: 252 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
asteros has joined #ruby
<shevy> it's a guy
yfeldblu_ has joined #ruby
<DanBoy> lol
<mary5030> i am a girl shevy but that shouldnt change anything
<volty> for small xml files: Builder or Nokogiri::XML::Builder ?
asteros has quit [Client Quit]
<shevy> mary5030 volty will be nicer now
<volty> ahahah
<talntid> oh she's lost
platzhirsch1 has left #ruby [#ruby]
<talntid> #kitchen!
rezzack has quit [Quit: Leaving.]
<volty> that's not true -- i'm bad only when I «smell» kinda frustrated souls :)
<shevy> I am frustrated
dubsteph has quit [Read error: Connection reset by peer]
<shevy> I am procrastinating
sergicles has quit [Quit: sergicles]
<shevy> I should continue porting an old module to a new API but I am so lazy :(
<volty> i do not believe but, anyway: you do not spread it on others
duggiefresh has quit [Ping timeout: 272 seconds]
srji has quit [Ping timeout: 260 seconds]
rezzack has joined #ruby
dubsteph has joined #ruby
<volty> so Builder or Nokogiri::XML::Builder ? anyone here used/tried both?
aspiers has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
<volty> any count | report | trace on how many 'girls' use ruby ?
<DanBoy> i've used builder one time
kaspergrubbe has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
rezzack has quit [Ping timeout: 246 seconds]
MrZYX is now known as MrZYX|off
graydot has quit [Quit: graydot]
<volty> ok, i'll go with nokogiri since i use it for parsing and since i have simple xmls to generate (for now) thx DanBoy: you are extremelly useful :)
rezzack has joined #ruby
<DanBoy> lol ya
<volty> no RubyGirls conferences around ?
<DanBoy> my one liner comment with no info given :P
<DanBoy> sorry
<DanBoy> i was gunna say
<DanBoy> its pretty easy to use
<DanBoy> pretty straight forward
mary5030 has quit [Remote host closed the connection]
jibi has joined #ruby
mary5030 has joined #ruby
<volty> i'll try both but first nokogiri, thx
kaspergrubbe has quit [Ping timeout: 252 seconds]
tharindu has joined #ruby
jrhe_ has joined #ruby
jrhe has quit [Read error: Connection reset by peer]
jrhe_ is now known as jrhe
mlpinit has quit [Quit: Leaving...]
awgl has joined #ruby
mrsolo has joined #ruby
kevind_ has joined #ruby
brtdv has quit []
<volty> btw: for your info and future choice: i have to deal with rss stuff and found «rss» gem to be a nightmare, «rss-simple» a simple state of the art piece of simplicity (get the things done!) for parsing though can not generate (and statet that never will)
<volty> stated
mary5030 has quit [Ping timeout: 246 seconds]
kaspergrubbe has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
Mohan has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
tharindu has quit [Ping timeout: 272 seconds]
Underbyte has quit [Quit: Linkinus - http://linkinus.com]
asobrasil has left #ruby [#ruby]
awgl has left #ruby [#ruby]
johnnyfuchs has quit [Quit: Leaving.]
sn0wb1rd has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiall has joined #ruby
jibi_ has joined #ruby
jibi has quit [Ping timeout: 264 seconds]
dbck_ has joined #ruby
Kamuela has joined #ruby
<Kamuela> meh reinstalling xubuntu
nfk has quit [Quit: yawn]
benwoody has joined #ruby
<volty> why and which version (mine is 12.04)?
Tearan has joined #ruby
<volty> ops , i'm blind, sorry: mine is kubuntu
kevinykc_ has quit [Quit: Computer has gone to sleep.]
srji has joined #ruby
<jb41> what's the difference between them and just ubuntu?
Mohan has joined #ruby
kitak has joined #ruby
<volty> kubuntu's default desktop is kde
<sam113101> the desktop environment
vlad_starkov has joined #ruby
kevinykchan has joined #ruby
<sam113101> unity vs kde vs xfce
dbck_ has quit [Quit: Bye bye.]
<jb41> ohhh...
<volty> though you can install all of them and switch at need
<Kamuela> jb41, ubuntu is ugly and xubuntu is not as ugly
dbck has joined #ruby
<jb41> kamuela: i'm using ubuntu right now
<jb41> but I preffer tilling window managers
<sam113101> that's like, uuh, your opinion man
<Kamuela> if you like unity, by all means you're in good hands
earthquake has joined #ruby
<jb41> no, I don't like such WM
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nfk has joined #ruby
<sam113101> I like unity's concept, I just think it's poorly implemented right now
mikecmpbll has joined #ruby
<sam113101> (compiz plugin, bloated)
<Kamuela> sam113101, i guess it is my opinion. in much the same way i prefer the average woman's face to a horse's ass
mengu has quit [Remote host closed the connection]
<volty> i prefer many desktops & activities to tiling
<jb41> only tilling window managers
leonidlm has quit [Ping timeout: 260 seconds]
<Kamuela> although i will stop there and just agree with anything you've said. i've gotten into far too many arguments with people saying that purple and orange is beautiful and unity is perfect etc
dbck has quit [Client Quit]
<volty> kde tiles pretty well but i tile just the consoles and my ruby editor // everything else is too big to be tiled
awgl has joined #ruby
mixel has quit [Quit: mixel]
<jb41> :)
<Kamuela> volty, i'd probably like KDE if i weren't keen on gtk being primarily how things worked
DonRichie has quit [Quit: Verlassend]
MrZYX|off is now known as MrZYX
drumsrgr_ has quit [Remote host closed the connection]
<DanBoy> anyone ever tried awesome wm
kevind_ has quit [Quit: kevind_]
tannerburson has quit [Quit: tannerburson]
breakingthings has quit []
<musty> Yep.
<DanBoy> how did it go?
macmartine has joined #ruby
<DanBoy> im using fluxbox now but i've been interested in switching
<awgl> DanBoy - Yes. Decent, but I prefer OpenBox.
hogeo has quit [Ping timeout: 248 seconds]
<musty> It went in a manner unrelated to ruby.
<DanBoy> they claim you can use it without a mouse
<DanBoy> with hot keys and what not
sn0wb1rd has quit [Quit: See ya]
yfeldblu_ has quit [Remote host closed the connection]
Voodoofish4301 has joined #ruby
aspiers has quit [Ping timeout: 272 seconds]
<volty> i'm a mouse hater and I wrote plenty of scripts to avoid using mouse
yfeldblum has joined #ruby
nowthatsamatt has joined #ruby
<awgl> There's always RatPoison for taht
Voodoofish4302 has joined #ruby
sn0wb1rd has joined #ruby
Tarential has quit [Excess Flood]
Tarential has joined #ruby
joschi has quit [Read error: Operation timed out]
joschi has joined #ruby
<DanBoy> im just addicted to the swiping on the mac
<volty> that's what I wanted: going to install and try awesome wm
srji has quit [Ping timeout: 264 seconds]
sam113101 has quit [Quit: WeeChat 0.4.3-dev]
jamesaanderson has joined #ruby
srji has joined #ruby
<DanBoy> you can use lua with it
hiall has quit [Quit: hiall]
Voodoofish430 has quit [Ping timeout: 265 seconds]
<volty> yes, I saw the introductory page, thx
<Kamuela> brb
Kamuela has quit [Quit: Leaving]
maletor has quit [Quit: Computer has gone to sleep.]
sam113101 has joined #ruby
kirun has quit [Quit: Client exiting]
Voodoofish4301 has quit [Ping timeout: 272 seconds]
Apane has quit [Ping timeout: 260 seconds]
ner0x has joined #ruby
awgl has quit [Quit: Leaving.]
Voodoofish430 has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
tvw has quit []
pothibo has joined #ruby
tvw has joined #ruby
<shevy> volty you are worse than a cat
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mercwithamouth has quit [Ping timeout: 260 seconds]
earthquake has quit [Quit: earthquake]
surrealanalysis has joined #ruby
<pothibo> I'm usually interfacing with rbenv to set all the environment. pacman came with 2.0.0 so I didn't feel the need to install rbenv. However, gem tries to install themselves to /usr/lib/ruby/gems/2.0.0 and I want to change that to $HOME/.gem/ruby/2.0.0 GEM_PATH and GEM_HOME aren't set... where is it ?
lmadrigal has quit [Quit: Computer has gone to sleep.]
Voodoofish4302 has quit [Ping timeout: 260 seconds]
lupine has quit [Quit: If you see this, my dogfood was poisoned]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
kevinykchan has joined #ruby
<heftig> pothibo: gem or bundler?
<pothibo> well, both.
<heftig> gem alone should install into ~/.gem already
<heftig> for bundler you need to set GEM_HOME
<pothibo> heftig: damn, you are right
<pothibo> I had the clue right in front of my face and I couldn't figure it out. :( Sorry for bothering you
einarj has joined #ruby
yfeldblu_ has joined #ruby
mikepack has quit [Remote host closed the connection]
Bry8Star{T2 has joined #ruby
Guest4512 has quit [Read error: Connection reset by peer]
Mars has joined #ruby
bradsmith has quit [Remote host closed the connection]
Mars is now known as Guest84325
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
filipe_ has quit [Remote host closed the connection]
Voodoofish4301 has joined #ruby
bradsmith has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
macmartine has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
wildroman2 has joined #ruby
srji has quit [Ping timeout: 264 seconds]
mojjojo has joined #ruby
<volty> I install gems with: sudo `which gem` install .... since there's a mess with rights etc // I know that it is not the right way but i'm going to reinstall everything soon
Voodoofish430 has quit [Ping timeout: 264 seconds]
<volty> (with rbenv )
<pothibo> volty: wat?
yfeldblum has quit [Ping timeout: 272 seconds]
Bry8Star{T2 has quit [Excess Flood]
cpruitt has quit [Quit: cpruitt]
petey has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 260 seconds]
<volty> i need them site-wide and I probably didn't setup everything properly
<shevy> hmm so...
Bry8Star{T2 has joined #ruby
<shevy> how do you guys solve the following
<shevy> I have a large project, and I keep a README that lists all its dependencies
<shevy> now I write a .gemspec, but I want to reference to that file, I guess
zz_michael_mbp is now known as michael_mbp
<shevy> I noticed that you can get the dependencies of a gem with .dependencies
<shevy> # => #<Gem::Specification:0x497986c RBT-0.0.1>
<shevy> but how do I get an array of all dependencies?
bradsmith has quit [Ping timeout: 252 seconds]
otherj has joined #ruby
nisstyre has joined #ruby
otherj has quit [Max SendQ exceeded]
macmartine has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
carlyle has quit [Remote host closed the connection]
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
<shevy> got it
<shevy> x.dependencies.each {|entry| puts entry }
ngoldman_ has quit [Read error: Connection reset by peer]
ngoldman has joined #ruby
otherj has joined #ruby
Apane has joined #ruby
jamblack has joined #ruby
nisstyre has quit [Ping timeout: 244 seconds]