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
sunnymolini has joined #ruby
vlad_sta_ has joined #ruby
__noname001__ has quit [Ping timeout: 256 seconds]
whimsybit has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
alex__c2022 has joined #ruby
Bira has quit [Ping timeout: 248 seconds]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
mrsolo has joined #ruby
einarj has joined #ruby
vlad_starkov has quit [Ping timeout: 272 seconds]
radic has quit [Ping timeout: 260 seconds]
radic has joined #ruby
<bricker> How could I do this without creating a new array around [@feature] or adding @feature to @articles?
bklane has joined #ruby
<bricker> (@articles + [@feature]).reduce { |sum, a| sum + a.public_datetime.to_i }
whimsybit has quit [Quit: leaving]
marcdel has joined #ruby
roadt_ has joined #ruby
`Chris` has quit [Read error: Connection reset by peer]
nari has joined #ruby
vpretzel has quit [Remote host closed the connection]
`Chris` has joined #ruby
judd7 has quit [Quit: judd7]
<pragmatism> Has anyone gotten Libv8 to compile in Mavericks?
einarj has quit [Ping timeout: 240 seconds]
<pragmatism> This is driving me up the wall
pitzips has quit [Ping timeout: 256 seconds]
RichardBaker has left #ruby [#ruby]
brennanMKE has joined #ruby
mlpinit_ has joined #ruby
Azulinho has joined #ruby
dayepa has quit [Quit: dayepa]
dayepa has joined #ruby
yfeldblum has quit [Remote host closed the connection]
gregas has joined #ruby
sergicles has joined #ruby
mlpinit has quit [Ping timeout: 272 seconds]
brennanMKE has quit [Ping timeout: 248 seconds]
weirdpercent has joined #ruby
mlpinit_ has quit [Ping timeout: 252 seconds]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
kurt21 has joined #ruby
kvirani_ has quit [Remote host closed the connection]
Azulinho has quit [Ping timeout: 240 seconds]
johnnyfuchs has quit [Quit: Leaving.]
<weirdpercent> trying to get this regex to work. here's the string": March 23rd 2013Laura, Ark, Belibaste, Perceval, Andromeda, PoB, Ailen, Data, Kniall, Mr. Scott" I want to split the string at the \d\d\d\d
zz_michael_mbp is now known as michael_mbp
ce_afk is now known as cescalante
sailias has joined #ruby
gregas has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
dcunit3d has joined #ruby
mixel has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
hogeo has joined #ruby
weirdpercent has quit [Quit: Leaving]
drumsrgr8forn8 has joined #ruby
lewis has joined #ruby
[rust] has joined #ruby
endash has quit [Quit: endash]
yfeldblum has joined #ruby
nari has quit [Ping timeout: 240 seconds]
i_s has quit [Remote host closed the connection]
drumsrgr8forn8 has quit [Ping timeout: 248 seconds]
mneorr has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kevinykchan has quit [Quit: Computer has gone to sleep.]
maletor has quit [Quit: Computer has gone to sleep.]
vipjun has joined #ruby
kevinykchan has joined #ruby
mikeg has joined #ruby
burlyscudd has quit [Quit: Leaving.]
<mikeg> can I ask rake questions here or is there a more appropriate channel?
magik is now known as DaZ
mikeg has quit [Remote host closed the connection]
vpretzel has joined #ruby
Davey has joined #ruby
ShinySides has quit [Ping timeout: 245 seconds]
<beanHolez_> DaZ: #rails is probably more appropriate
fridim_ has joined #ruby
nateberkopec has joined #ruby
<DaZ> wat >:
alex__c2022 has quit [Quit: alex__c2022]
<beanHolez_> weirdpercent: are you saying you want to break that string on the year?
<beanHolez_> DaZ whoops, wrong person.
lewis has quit [Remote host closed the connection]
<beanHolez_> mokeg: #rails is probably more appropriate
<beanHolez_> mikeg: #rails is probably more appropriate
<andrewvos> beanHolez_: RAKE
vpretzel has quit [Ping timeout: 272 seconds]
vpretzel has joined #ruby
rrichardsr3 has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
nfk has quit [Remote host closed the connection]
tcgden has joined #ruby
nfk has joined #ruby
Lewix has quit [Remote host closed the connection]
modems51 has joined #ruby
Tamal_Away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrsolo has quit [Quit: This computer has gone to sleep]
modems51 has quit [K-Lined]
DrCode has joined #ruby
mrsolo has joined #ruby
k610 has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
mneorr has quit [Ping timeout: 248 seconds]
yfeldblum has quit [Remote host closed the connection]
mixel has quit [Quit: mixel]
vpretzel has quit [Ping timeout: 272 seconds]
fenec2 has quit [Ping timeout: 256 seconds]
Bira_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
amacgregor has joined #ruby
blackmesa has joined #ruby
mojjojo has quit [Quit: Leaving]
amacgregor_ has quit [Ping timeout: 260 seconds]
ravster has quit [Quit: Leaving.]
amacgregor has quit [Ping timeout: 260 seconds]
burlyscudd has joined #ruby
agjacome has quit [Quit: leaving]
astrobunny has quit [Ping timeout: 240 seconds]
burlyscudd has quit [Client Quit]
dcunit3d has quit [Quit: dcunit3d]
jibi has quit [Quit: .]
funburn has joined #ruby
funburn has quit [Client Quit]
tkuchiki has joined #ruby
elaptics`away is now known as elaptics
nari has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
Davedo has quit [Ping timeout: 256 seconds]
yxhuvud has quit [Read error: Operation timed out]
fenec2 has joined #ruby
judd7_ has joined #ruby
astrobunny has joined #ruby
Volsus has quit [Ping timeout: 240 seconds]
fredjean has joined #ruby
snakehsu has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
t_p has quit [Quit: Computer has gone to sleep.]
blackmesa has quit [Ping timeout: 240 seconds]
nobitanobi has quit [Ping timeout: 250 seconds]
lyanchih has joined #ruby
pragmatism has quit [Quit: Leaving...]
jkline has quit [Quit: jkline]
mrsolo has quit [Quit: This computer has gone to sleep]
snovak has joined #ruby
pragmatism has joined #ruby
nadirvardar has joined #ruby
mrsolo has joined #ruby
brennanMKE has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
tonini has quit [Ping timeout: 245 seconds]
julian-delphiki has joined #ruby
ngpestelos has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
c0rn has quit [Quit: Computer has gone to sleep.]
snovak has quit [Ping timeout: 252 seconds]
yxhuvud has joined #ruby
bean has quit [Ping timeout: 272 seconds]
brennanMKE has quit [Ping timeout: 272 seconds]
kurt21 has quit [Quit: Leaving.]
julweber has quit [Remote host closed the connection]
julweber has joined #ruby
havenwood has quit [Remote host closed the connection]
sergicles has quit [Quit: sergicles]
rrichardsr3 has quit [Quit: -- I'm out --]
Voodoofish430 has quit [Quit: Leaving.]
baroquebobcat has joined #ruby
sevenseacat has joined #ruby
pragmatism has quit [Quit: Leaving...]
jamblack has joined #ruby
_dma has quit [Remote host closed the connection]
d4heyDU has quit [Quit: d4heyDU]
julweber has quit [Ping timeout: 252 seconds]
zeade has joined #ruby
jrhorn424 is now known as zz_jrhorn424
burlyscudd has joined #ruby
mrsolo has quit [Quit: Leaving]
Deele has quit [Ping timeout: 260 seconds]
Monie has joined #ruby
burlyscudd has quit [Read error: Operation timed out]
havenwood has joined #ruby
t_p has joined #ruby
tonini has joined #ruby
lyanchih has quit [Ping timeout: 256 seconds]
lyanchih_ has joined #ruby
_dma has joined #ruby
maletor has joined #ruby
dcunit3d has joined #ruby
heidi has quit [Quit: Leaving.]
Spami has quit [Quit: This computer has gone to sleep]
larissa has quit [Quit: Leaving]
thepumpkin has quit [Remote host closed the connection]
itcharlie has joined #ruby
thepumpkin has joined #ruby
Domon has joined #ruby
hogeo has quit [Remote host closed the connection]
timonv has joined #ruby
vpretzel has joined #ruby
Domon has quit [Remote host closed the connection]
theoretick has quit [Quit: Textual IRC Client: www.textualapp.com]
ngpestelos has quit [Ping timeout: 272 seconds]
hogeo has joined #ruby
hamakn has joined #ruby
Ripp__ has quit []
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
nadirvardar has quit [Quit: Computer has gone to sleep.]
pragmatism has joined #ruby
pragmatism has quit [Remote host closed the connection]
kil0byte has joined #ruby
thepumpkin has quit [Ping timeout: 248 seconds]
sparq__ has quit [Ping timeout: 248 seconds]
amacgregor has joined #ruby
VTLob has quit [Quit: VTLob]
timonv has quit [Ping timeout: 272 seconds]
vpretzel has quit [Ping timeout: 260 seconds]
amacgregor_ has joined #ruby
havenwood has quit [Remote host closed the connection]
dcunit3d has quit [Quit: dcunit3d]
amacgregor has quit [Ping timeout: 260 seconds]
dcunit3d has joined #ruby
Domon has joined #ruby
_dma has quit [Remote host closed the connection]
_dma has joined #ruby
d4heyDU has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
baroquebobcat has quit [Quit: baroquebobcat]
_dma has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
sparq__ has joined #ruby
derebos has quit [Quit: Leaving]
amacgregor has joined #ruby
amacgregor__ has joined #ruby
gyre007 has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 256 seconds]
plotter has quit [Quit: Leaving]
gyre007 has joined #ruby
MrPoT4tO has joined #ruby
mrpot4to_ has joined #ruby
ChronocityLC has quit [Ping timeout: 260 seconds]
amacgregor_ has quit [Ping timeout: 260 seconds]
mlpinit has joined #ruby
MrPoT4tO has quit [Client Quit]
cescalante is now known as ce_afk
lembacon has joined #ruby
mlpinit has quit [Read error: Connection reset by peer]
mrpot4to_ has quit [Client Quit]
MrPoT4tO has joined #ruby
MrPoT4tO has quit [Client Quit]
nfk has quit [Quit: yawn]
Loaft has joined #ruby
amacgregor has quit [Ping timeout: 272 seconds]
itcharlie has left #ruby [#ruby]
_dma has joined #ruby
mvangala_ has quit [Remote host closed the connection]
gyre007 has quit [Ping timeout: 241 seconds]
snovak has joined #ruby
mvangala has joined #ruby
pen has joined #ruby
brennanMKE has joined #ruby
judd7_ has quit [Quit: judd7_]
julweber has joined #ruby
pen has quit [Remote host closed the connection]
dcunit3d has quit [Quit: dcunit3d]
petey has quit [Remote host closed the connection]
pen has joined #ruby
havenwood has joined #ruby
pencilcheck has joined #ruby
snovak has quit [Ping timeout: 272 seconds]
_maes_ has joined #ruby
kurt21 has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
brennanMKE has quit [Ping timeout: 252 seconds]
three18ti has quit [Ping timeout: 268 seconds]
rjhunter has joined #ruby
sparq__ has quit [Ping timeout: 248 seconds]
tcgden has quit [Quit: Lost terminal]
three18ti has joined #ruby
julweber has quit [Ping timeout: 272 seconds]
Jeticus has joined #ruby
pen has quit [Ping timeout: 240 seconds]
jmeeuwen has quit [Ping timeout: 245 seconds]
fuhgeddaboudit has joined #ruby
CaptainJet has quit [Ping timeout: 240 seconds]
jmeeuwen has joined #ruby
axl_ has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
lfox has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
Tamal has joined #ruby
Tamal has quit [Client Quit]
My_Hearing has joined #ruby
sevenseacat has quit [Remote host closed the connection]
sevenseacat has joined #ruby
fgo has joined #ruby
bean has joined #ruby
<sam113101> sevenseacat: do you like angularjs?
<sevenseacat> i havent used it
Mon_Ouie has quit [Read error: Operation timed out]
<sam113101> ok
<Senjai> sam113101: not really a ruby question is it :P
<sam113101> I know, but she doesn't want people to PM her
KobraKao has joined #ruby
julian-delphiki has quit [Ping timeout: 248 seconds]
Davey_ has joined #ruby
funburn has joined #ruby
mobileblue has joined #ruby
<jrobeson> it's not just her sam113101
<jrobeson> nobody wants people they don't know to pm them unless asked for
<bnagy> except in #bearcave
<sam113101> jrobeson: I personally don't care
<jrobeson> it's ok that you don't
<jrobeson> but people who hang out in tech support chatrooms helping people for hours really do
<sam113101> I thought people wouldn't care either
lfox has quit [Quit: ZZZzzz…]
<sam113101> it came to me as a surprise
<jrobeson> this is normal for most people in tech support channels not to like it. most channels even put it in their rules
Volsus has joined #ruby
maletor has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<jrobeson> if you want to pm somebody in a tech support channel always ask. it's good etiquette
burlyscudd has joined #ruby
vpretzel has joined #ruby
<jrobeson> bnagy, i don't even know what that is
jaimef has quit [Excess Flood]
<sam113101> I find it weird
<jrobeson> because everybod ythinks they are special enough to get private support
<jrobeson> it adds up and gets annoying
<jrobeson> it's not just because you did it, its all the other people who do it
jaimef has joined #ruby
ssvo has quit [Ping timeout: 245 seconds]
mobilebl- has quit [Ping timeout: 272 seconds]
<sam113101> I guess I don't help people often enough
<bnagy> jrobeson: don't google it
<sam113101> I do get people PMing me without asking but not too often
ssvo has joined #ruby
Monie has quit [Ping timeout: 252 seconds]
<jrobeson> and then we get into a situation where people will be like 'but x helped me in a pm' :(
<sam113101> what kind of situation is that?
vpretzel has quit [Ping timeout: 240 seconds]
<sam113101> I mean, how is it troublesome
<bnagy> I feel the same way when I see people giving money to homeless guys. I just run up and abuse them.
<bnagy> "DUDE UR RUINING IT FOR EVERYONE HE WANTS TO BE POOR"
<jrobeson> it's not at all similiar.. because nobody has an expecation that the next person is the same as the other.. it's not a closed group
<bnagy> gets em uppitty
<jrobeson> it's a city street.
Monie has joined #ruby
<jrobeson> happens to me all the time in baltimore. but i don't really get annoyed at that.. except for the people who i know are just gonna buy booze for sure
<jrobeson> at least in portland people will have signs like "i need money for beer"
burlyscudd has quit [Ping timeout: 246 seconds]
<jrobeson> sam113101, just stick around awhile on a channel for awhile.. you'll see
<bnagy> you should at least make them dance for it, so they get a work ethic
yvemath has joined #ruby
<sam113101> jrobeson: I'm on different channels already
<jrobeson> for how long?
maletor has quit [Quit: Computer has gone to sleep.]
<sam113101> hmmm, a year or so
jcarouth has left #ruby ["Linkinus - http://linkinus.com"]
<jrobeson> try it after 5 or so ..
<sam113101> I can't wait
<sam113101> (not sure how that changes anything)
maletor has joined #ruby
kil0byte_ has joined #ruby
kil0byte has quit [Ping timeout: 272 seconds]
dcunit3d has joined #ruby
JJ_ has joined #ruby
<jrobeson> this channel is pretty well behaved though
`Chris`_ has joined #ruby
varfoo has joined #ruby
<jrobeson> ruby is pretty chilled out now
elaptics is now known as elaptics`away
[rust] has quit [Ping timeout: 248 seconds]
<sam113101> anyway, I messaged her when I was in #rubyonrails I think
<sam113101> I messaged radar too
<sam113101> he didn't mind at first but ever since he wrote this book
<sam113101> he's rude with me
<sam113101> ;_;
|jemc| has joined #ruby
mercwithamouth has joined #ruby
`Chris` has quit [Ping timeout: 272 seconds]
<bnagy> this is eight screen inches of my life I am never getting back
`Chris`_ has quit [Client Quit]
`Chris` has joined #ruby
<jrobeson> that is a channel rule in rubyonrails i think
<sam113101> dropped your monitor on the floor, uh?
JJ_ has quit [Ping timeout: 248 seconds]
<sam113101> I don't know, I stopped going there
<sam113101> I don't like it
n_blownapart has joined #ruby
<jrobeson> yep.. rule #12
tspike has joined #ruby
<sevenseacat> bnagy: sorry.
_adeponte has quit [Remote host closed the connection]
jamblack has quit [Quit: jamblack]
ehc has quit [Quit: ehc]
<sam113101> rule #12 best rule
<sam113101> !rules
<sam113101> !guidelines
<sevenseacat> no helpa here.
<bnagy> we have rules??
<sam113101> no rules!
<|jemc|> !conventions
<|jemc|> !understandings
<|jemc|> nope, none of those either
<bnagy> !normative ethical frameworks
<|jemc|> !chaos
fuhgeddaboudit has quit [Ping timeout: 240 seconds]
<bnagy> dammit that just gets me the !normative spam
<|jemc|> !normative
<|jemc|> also, this might have been amusing had I done it earlier:
<|jemc|> >> rules
<eval-in> |jemc| => undefined local variable or method `rules' for main:Object (NameError) ... (https://eval.in/57292)
maletor has quit [Quit: Computer has gone to sleep.]
burlyscudd has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
n_blownapart is now known as crucify_me
gja has quit [Quit: This computer has gone to sleep]
Volsus has quit [Ping timeout: 272 seconds]
<crucify_me> sevenseacat: hey what's up with the rails channel?
snappy has quit [Ping timeout: 260 seconds]
<sevenseacat> nothing?
<crucify_me> hmm , its inoperable for me
<|jemc|> inoperable?
jcarouth has joined #ruby
<jrobeson> crucify_me, do you mean you can't join because your nick isn't registered?
ldnunes has quit [Quit: Leaving]
<sevenseacat> most likely
<|jemc|> ah
jcarouth has quit [Quit: Coyote finally caught me]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snappy has joined #ruby
snappy has joined #ruby
snappy has quit [Changing host]
<crucify_me> no it , they are
<sevenseacat> we had a problem with spammers, so we added +r
<jrobeson> hmm.. then you'll have to be more specific .. what happens when you try?
axl_ has quit [Quit: axl_]
ce_afk is now known as cescalante
<crucify_me> just my entries, jrobeson nothing else at all.
<jrobeson> what exactly are you typing in?
_dma has quit [Remote host closed the connection]
<crucify_me> just a question about rails with a pastie link . jrobeson
<jrobeson> no.. i mean to join the room
<sevenseacat> are you in the right channel?
s3itz has joined #ruby
<jrobeson> #rails isn't right. #rubyonrails is
johnnyfuchs has joined #ruby
johnnyfuchs has quit [Client Quit]
_dma has joined #ruby
capicue has quit [Quit: Leaving...]
<crucify_me> yeah its my default channel ..that's how its listed jrobeson
dcunit3d has quit [Quit: dcunit3d]
<jrobeson> hmm.. not sure what else could be causing it. perhaps Radar would have an idea
<crucify_me> maybe radar got mad at me or something.
<jrobeson> well it would tell you if you were banned
<jrobeson> i didn't think irc had a concept of shadow banning
* sevenseacat shrugs
<crucify_me> it just says cannot connect or something. oh well.
<jrobeson> cannot connect? never seen that before on irc
<crucify_me> jrobeson: Error(404): #RubyOnRails Cannot send to channel
<jrobeson> 404 ?
julweber has joined #ruby
<sevenseacat> register your nick, move on.
<crucify_me> I had them both registered with a command I don't recall now.
<crucify_me> anyway thanks
_dma has quit [Ping timeout: 248 seconds]
Shidash has quit [Read error: No route to host]
Shidash1 has joined #ruby
axl_ has joined #ruby
mayorga has quit [Ping timeout: 265 seconds]
carif has quit [Ping timeout: 272 seconds]
Nisstyre-laptop has joined #ruby
julweber has quit [Ping timeout: 260 seconds]
capicue has joined #ruby
brennanMKE has joined #ruby
byprdct has joined #ruby
brennanM_ has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
mrsolo has joined #ruby
Monie has joined #ruby
fuhgeddaboudit has joined #ruby
<jrobeson> you made it crucify_me
Radar has joined #ruby
gyre007 has joined #ruby
dhruvasagar has joined #ruby
rezzack has quit [Quit: Leaving.]
smitjel has joined #ruby
ebetancourt has joined #ruby
brennanM_ has quit [Ping timeout: 240 seconds]
byprdct has quit [Ping timeout: 240 seconds]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
gyre007 has quit [Ping timeout: 260 seconds]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
rahulkmr has joined #ruby
chickenf_ has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
snakehsu has quit [Ping timeout: 248 seconds]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
rahulkmr has joined #ruby
lukec has joined #ruby
Jake232 has joined #ruby
pr0ggie has quit [Ping timeout: 246 seconds]
pdimitrov has quit [Ping timeout: 272 seconds]
pr0ggie has joined #ruby
ananthakumaran has joined #ruby
Volsus has joined #ruby
crucify_me has quit [Remote host closed the connection]
Akuma has joined #ruby
KobraKao has quit [Quit: Leaving]
havenwood has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
nateberkopec has quit [Quit: Leaving...]
`Chris` has quit [Remote host closed the connection]
cescalante is now known as ce_afk
ce_afk is now known as cescalante
`Chris` has joined #ruby
vpretzel has joined #ruby
carif has joined #ruby
smitjel has left #ruby [#ruby]
jeer_ has joined #ruby
halida_ has joined #ruby
pwh has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
burlyscudd has quit [Quit: Leaving.]
nilved has quit [Read error: Operation timed out]
nilved has joined #ruby
<halida_> Hello, I'm using ruby-2.0.0-p0 in my rails server, should I use 2.0.0-p247? thanks~
petey has joined #ruby
`Chris` has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
<|jemc|> if you're asking if it will raise any rails-specific issues, try #rubyonrails
pdimitrov has joined #ruby
<|jemc|> I'm not a rails user but I would guess you won't have any issues
vpretzel has quit [Ping timeout: 272 seconds]
<Radar> halida_: You can use either version. It's recommended though that you use the latest patch releases that are available, as they do sometimes contain patches for security problems with Ruby.
<jrobeson> halida_, generally keep up iwth the patch levels
sergicles has joined #ruby
<halida_> I do concern about security issue, looks like I *should* update it, thanks~
fridim_ has quit [Ping timeout: 240 seconds]
<halida_> Next release I will do the job, after I finish a regression test.
colonolGron has quit [Quit: leaving]
mary5030 has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
cescalante is now known as ce_afk
mrsolo has joined #ruby
thepumpkin has joined #ruby
jcarouth has joined #ruby
nisstyre has joined #ruby
bklane has quit [Remote host closed the connection]
thepumpkin has quit [Ping timeout: 240 seconds]
astrobun_ has joined #ruby
Flashmasterson has joined #ruby
S0da has quit [Read error: Connection reset by peer]
astrobunny has quit [Ping timeout: 246 seconds]
beanHolez_ has quit [Quit: Page closed]
hello_world has joined #ruby
robert_ has joined #ruby
sparq_ has joined #ruby
sparq_ has quit [Client Quit]
ewnd9 has joined #ruby
My_Hearing has quit [Ping timeout: 240 seconds]
<Flashmasterson> why isn't this ticket object https://gist.github.com/Flashmasterson/7149215
<Flashmasterson> returning as This ticket is for: Author's reading, at Town Hall, on 01/02/03.///The performer is Mark Twain.///
<Flashmasterson> The seat is Second Balcony, row J, seat 12, and it costs $5.50. ?
<sevenseacat> where are you setting all the ticket values?
<Flashmasterson> irb
<Radar> Flashmasterson: not in that code you're not.
<sevenseacat> and where is the code for that?
helpa has joined #ruby
<Flashmasterson> comin up...
<Radar> Fun.
<sevenseacat> so is that ticket the same ticket as you're calling in the first gist?
<Radar> Works for me
<Radar> Flashmasterson: Try putting the code in a ruby file and running it
<Radar> If it still doesn't work, gist that file
jhulten has quit [Remote host closed the connection]
<Flashmasterson> weird
<Flashmasterson> Radar: ok
havenwood has joined #ruby
<sevenseacat> not really weird, i cant see where you';re defining the methods on the same instance that you're calling all the print code on
lyanchih_ has quit [Quit: lyanchih_]
havenwood has quit [Read error: Connection reset by peer]
<Flashmasterson> well here
mr_red has quit [Ping timeout: 256 seconds]
nateberkopec has joined #ruby
havenwood has joined #ruby
<Radar> Cool.
<Radar> That's the error.
theKayhan has joined #ruby
<Radar> But it isn't the file?
<sevenseacat> exactly.
<Radar> [15:01:19] <Radar> If it still doesn't work, gist that file
<Radar> Following instructions is hard. Let's go shopping.
<sevenseacat> you arent defining the methods on the same object you're calling printing things o
<sevenseacat> on
krz has joined #ruby
<Flashmasterson> sevenseacat: i'm not sure i understand, you mean it's ticket = Object.new versus ticket.rb ?
sergicles has quit [Quit: sergicles]
<Flashmasterson> sevenseacat: i'm very new to this stuff
<sevenseacat> i know.
<sevenseacat> in one set of code you defined a bunch of methods on an object, and then in the other code you created a new object and expected all those methods to be available.
mary5030 has quit [Remote host closed the connection]
jamblack has joined #ruby
<bnagy> I would totally pay $5.50 to see Mark Twain
mary5030 has joined #ruby
fenec2 has quit [Ping timeout: 246 seconds]
<|jemc|> only if he was playing his old stuff
<Radar> Flashmasterson: show us ticket.rb please.
<Flashmasterson> sevenseacat: ok i get that, so it's now a matter of me seeing how black is connecting the two in that section of the book
<bnagy> |jemc|: yeah that shit with skrillex was lame
<Flashmasterson> Radar: Flashmasterson
<Flashmasterson> 11:54
<Flashmasterson> returning as      This ticket is for: Author's reading, at Town Hall, on 01/02/03.///The performer is Mark Twain.///
<Flashmasterson> why isn't this ticket object https://gist.github.com/Flashmasterson/7149215
<Flashmasterson> The seat is Second Balcony, row J, seat 12, and it costs $5.50.    ?  
<Radar> Flashmasterson: you didn't define any methods for that ticket object.
<sevenseacat> ding ding ding
<Radar> Flashmasterson: defining methods in IRB will not make them magically available in your scripts
d4heyDU has quit [Quit: d4heyDU]
<Radar> Flashmasterson: You need to define them in the programs themselves!
WickedAtMelb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
halida_ has quit [Quit: halida_]
hello_world has quit [Ping timeout: 250 seconds]
havenwood has quit [Remote host closed the connection]
halida_ has joined #ruby
bluOxigen has joined #ruby
havenwood has joined #ruby
<Flashmasterson> Radar: ah ok, black didn't specify to use ruby or irb, so i split it
halida_ has quit [Client Quit]
zeade has quit [Quit: Leaving.]
<sevenseacat> where exactly is this?
<sevenseacat> in the book
<Flashmasterson> section 2.2 of the well grounded rubyist
mary5030 has quit [Ping timeout: 260 seconds]
<Radar> Flashmasterson: Ok. When you're running a Ruby program you need to set up all the code in the one file.
snovak has joined #ruby
nateberkopec has quit [Ping timeout: 272 seconds]
<Radar> IRB is a completely isolated environment. It's useful for testing out code and that's it.
Jetchisel has joined #ruby
dcunit3d has joined #ruby
<Radar> In the one file you can require other files which set up more code...
<sevenseacat> "save all of the code to a file called ticket.rb"
<sevenseacat> nothing in there about irb
<Flashmasterson> or text editor though, so i got confused
<Flashmasterson> programming is a place to be easily confused
<sevenseacat> you need to be told that to save code to a file called ticket.rb, you need to open your text editor?
<sevenseacat> and create file called ticket.rb?
<Flashmasterson> man… i went to college for music, this is so opposite of the world i know. easy.
pencilcheck has quit [Remote host closed the connection]
<Flashmasterson> even if i laid out the simplest way to transpose an viola melody for you, you'd screw it up
brennanMKE has joined #ruby
<Flashmasterson> *a viola
tjad has quit [Ping timeout: 246 seconds]
theKayhan has quit [Remote host closed the connection]
n_blownapart has joined #ruby
n_blownapart is now known as crucify_me
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
snovak has quit [Ping timeout: 252 seconds]
mr_red has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
kurt21 has quit [Ping timeout: 265 seconds]
kreeves has quit [Ping timeout: 262 seconds]
cads has joined #ruby
Volsus has quit [Ping timeout: 252 seconds]
astrobun_ has quit [Ping timeout: 241 seconds]
maletor has joined #ruby
jkline has joined #ruby
soba has joined #ruby
petey has quit [Remote host closed the connection]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
krz has quit [Quit: krz]
krz has joined #ruby
krz has quit [Client Quit]
Guest81590 has joined #ruby
Guest81590 has quit [Client Quit]
krzkrz has joined #ruby
Monie has joined #ruby
krzkrz has quit [Client Quit]
Lewix has joined #ruby
<Flashmasterson> ok so i created this gist https://gist.github.com/Flashmasterson/7149471 as Object.new, then ran this gist https://gist.github.com/Flashmasterson/7149475
krzkrz has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<Flashmasterson> but the result is still this gist https://gist.github.com/Flashmasterson/7149479
vpretzel has joined #ruby
tspike has quit [Ping timeout: 248 seconds]
carraroj has joined #ruby
carraroj has quit [Changing host]
carraroj has joined #ruby
tjad has joined #ruby
<bnagy> Flashmasterson: you need to read some very, very basic stuff and then come back
krzkrz has quit [Client Quit]
krz has joined #ruby
vpretzel_ has joined #ruby
<bnagy> I think a lot of the ruby code in Zed Shaw's ruby the hard way is non-idiomatic, but at least it starts you at absolute zero
vpretzel has quit [Disconnected by services]
<bnagy> or Learn to Program maybe
vpretzel_ is now known as vpretzel
<Flashmasterson> bnagy: ok well i don't have money for more books right now
<Flashmasterson> so maybe you can be nice
<bnagy> both free afaik
<bnagy> hardway is online
<Flashmasterson> so what do you do here then?
<bnagy> help those that help themselves?
<Flashmasterson> buying this book and spending 10 days on chapter one isn't helping myself?
byprdct has joined #ruby
<bnagy> for which I receive a handsome stipend and my name in the newpaper, plus an annual parade
<bnagy> I don't know what book you've got
<bnagy> but some stuff starts out with too much assumed knowledge
<Flashmasterson> the well grounded rubyist
<|jemc|> Flashmasterson: IRC as a whole is a pretty harsh and unforgiving place - the people in this channel are very patient and helpful by comparison. They've given you some good advice, and in exchange you've endured a little sarcasm but please try not to take it personally.
<jrobeson> that's above your pay grade.
<Flashmasterson> great. a lot of people from here recommended that i buy it as the best beginners book
<Flashmasterson> and here i am, trying to take people's advice
<jrobeson> a beginner who already knows the basics of coding i think
<jrobeson> that is.. a ruby beginner.
dhruvasagar has quit [Ping timeout: 260 seconds]
peterhu has quit [Quit: leaving]
<byprdct> Hello all. Question. If run someobject.public_methods and it provides me with a list of available methods to use on that object how do I can I figure out how to use each method for that object? (little documentation online for the methods)
<byprdct> I*
peterhu has joined #ruby
earthquake has joined #ruby
<bnagy> byprdct: afaik all you can use is show_source - you can get arity I think, but not really much more
<jrobeson> byprdct, ri <Class::method> is one way to get the docs
<byprdct> wow that kind of sucks
<|jemc|> byprdct: a helpful console tool is ri
<bnagy> cause we're pretty flexibly typed
carraroj has quit [Ping timeout: 272 seconds]
<byprdct> ahh perfect thanks jrobeson
<jrobeson> and on the console with pry you can get the docs IN the console byprdct
<byprdct> thanks bnagy
<byprdct> pry? is that like a pretty print?
<jrobeson> not really
<jrobeson> it's an irb replacement
kvirani has joined #ruby
<bnagy> sorry I thought you meant programmatically :/
crucify_me has quit [Remote host closed the connection]
<byprdct> ok looking into it now - thanks so much guys :)
<jrobeson> Flashmasterson, it's hard for people to judge what people mean when tehy say they are beginners. when i first learned to code. i didn't just use one resource. i bounced around a lot
<jrobeson> i think you will still find that book quite useful even if isn't your ONLY resource
tjad has quit [Quit: No Ping reply in 180 seconds.]
tjad has joined #ruby
<Flashmasterson> alright well it's free so that's cool. thanks
ananthakumaran has quit [Quit: Leaving.]
justsee has quit [Ping timeout: 260 seconds]
<byprdct> just seen your post |jemc| thank you going to check it out
DanKnox is now known as DanKnox_away
Al_ has joined #ruby
<|jemc|> yeah ri is basically a console-based browser for the documentation data generated by Rdoc
<|jemc|> so the info you see when you type 'ri Array' in a terminal is basically the same as what you get from online sources like 'http://www.ruby-doc.org/core-2.0.0/Array.html'
<|jemc|> 'ri Array' gives you general info about Array, as well as a list of methods it takes
dhruvasagar has joined #ruby
<|jemc|> and from there you can view info about an individual method by typing something like 'ri Array#delete_at'
orien has quit []
<|jemc|> by default, your ruby installation will store this documentation data for every gem you install
WickedAtMelb has joined #ruby
capicue has quit [Quit: Leaving...]
jamblack has quit [Quit: jamblack]
zz_jrhorn424 is now known as jrhorn424
Davedo has joined #ruby
zakame has joined #ruby
<zakame> ls
zakame has left #ruby [#ruby]
Nisstyre-laptop has quit [Ping timeout: 272 seconds]
nisstyre has quit [Ping timeout: 260 seconds]
<|jemc|> heh. I think we've been probed
vpretzel has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
vpretzel has joined #ruby
Shidash1 has quit [Ping timeout: 240 seconds]
funburn has quit [Quit: funburn]
nateberkopec has joined #ruby
vpretzel has quit [Ping timeout: 252 seconds]
jrhorn424 is now known as zz_jrhorn424
jamblack has joined #ruby
astrobunny has quit [Ping timeout: 246 seconds]
nateberkopec has quit [Ping timeout: 272 seconds]
lyanchih has joined #ruby
Senjai has quit [Remote host closed the connection]
tspike has joined #ruby
snovak has joined #ruby
Heero has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
tomzx_mac has quit [Ping timeout: 265 seconds]
<DanBoy> ls
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
bocaneri has joined #ruby
Davey_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Senjai has joined #ruby
astrobunny has joined #ruby
brennanMKE has joined #ruby
nisstyre has joined #ruby
snovak has quit [Ping timeout: 252 seconds]
Shidash has joined #ruby
fightback has joined #ruby
justsee has joined #ruby
Al_ has quit [Read error: Connection reset by peer]
julweber has joined #ruby
earthquake has quit [Quit: earthquake]
brennanMKE has quit [Ping timeout: 252 seconds]
dkeefe75_ has joined #ruby
timonv has joined #ruby
chickenf_ has quit [Quit: Textual IRC Client: www.textualapp.com]
julweber has quit [Read error: Connection reset by peer]
julweber has joined #ruby
fightback has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
carif has quit [Ping timeout: 272 seconds]
thesheff17 has quit [Ping timeout: 272 seconds]
byprdct has quit [Ping timeout: 252 seconds]
diegoviola has joined #ruby
robbyoconnor has joined #ruby
julweber has quit [Ping timeout: 272 seconds]
Davey_ has joined #ruby
Shidash has quit [Ping timeout: 246 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
brtdv has joined #ruby
DonRichie has joined #ruby
capicue has joined #ruby
fella6s has quit [Read error: Connection reset by peer]
axl_ has quit [Read error: Connection reset by peer]
Flashmasterson has quit [Quit: Leaving.]
vlad_starkov has quit [Read error: Connection reset by peer]
Shidash has joined #ruby
earthquake has joined #ruby
fella5s has joined #ruby
apeiros has quit [Ping timeout: 272 seconds]
dhruvasagar has quit [Ping timeout: 260 seconds]
capicue has quit [Ping timeout: 272 seconds]
vpretzel has joined #ruby
tagrudev has joined #ruby
postmodern has quit [Ping timeout: 256 seconds]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
ananthakumaran has joined #ruby
pen has joined #ruby
postmodern has joined #ruby
brtdv has quit []
<pen> I'm getting errors when I am writing my own debugger: warning: variable $KCODE is no longer effective
havenwood has quit [Remote host closed the connection]
<pen> how do I supress this warning
<pen> or eliminates it
thepumpkin has joined #ruby
<rjhunter> pen: are you referencing $KCODE in your own code?
sayan has joined #ruby
<pen> rjhunter: no, i'm using TracePoint in ruby 2.0.0
dkeefe75_ has quit [Quit: Leaving]
mrsolo has quit [Quit: This computer has gone to sleep]
vpretzel has quit [Ping timeout: 265 seconds]
mrsolo has joined #ruby
chickenf_ has joined #ruby
justsee has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
thepumpkin has quit [Ping timeout: 246 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Shidash has quit [Read error: Connection timed out]
kvirani has quit [Remote host closed the connection]
codenapper has joined #ruby
weems has quit [Read error: Connection reset by peer]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
Shidash has joined #ruby
postmodern has quit [Quit: Leaving]
<rjhunter> pen: Ruby emits that particular warning when something tries to read $KCODE -- see if you can figure out where exactly
postmodern has joined #ruby
<rjhunter> (writing $KCODE is a different warning)
dash_ has joined #ruby
<pen> rjhunter: how do I find that out?
Al_ has joined #ruby
<pen> rjhunter: I never got this warning before, somehow it is starting to appear, all I did is enable TracePoint
weems has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
<rjhunter> pen: the warning itself probably describes which file and line is triggering the read
<pen> rjhunter: yea, the line that I call enable
<rjhunter> >> puts $KCODE
axl_ has joined #ruby
<eval-in> rjhunter => /tmp/execpad-51a4c69c320b/source-51a4c69c320b:2: warning: variable $KCODE is no longer effective ... (https://eval.in/57293)
justsee has quit [Client Quit]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
<pen> rjhunter: that's weird
<DanBoy> i read they did away with that in 1.9
<bnagy> are you using the built-in 2.0 TracePoint, or the old gem?
<pen> bnagy: 2.0 TracePoint
<pen> i'm also getting warning: variable $= is no longer effective
capicue has joined #ruby
<bnagy> can you create a short repro?
apeiros has joined #ruby
<pen> bnagy: it's a vim plugin with ruby binding
DonRichie has quit [Quit: Verlassend]
<pen> bnagy: I don't know if I can recreate this easily, but I can try to upload the repo to github
tspike has quit [Ping timeout: 246 seconds]
Jeticus has quit []
<bnagy> if you can unstick the ruby code from vim and still see the issue, that would be good info
sayan has quit [Quit: Leaving]
CaptainJet has joined #ruby
sayan has joined #ruby
brtdv has joined #ruby
Jetchisel has joined #ruby
dangerousdave has joined #ruby
ebetancourt has quit [Quit: Textual IRC Client: www.textualapp.com]
CaptainJet has quit [Client Quit]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kil0byte_ has quit [Remote host closed the connection]
CaptainJet has joined #ruby
<pen> bnagy: well, before I move to vim, I never think I have this issue before
vlad_starkov has joined #ruby
ebetancourt has joined #ruby
Ripp__ has joined #ruby
nateberkopec has joined #ruby
freerobby has quit [Quit: Leaving.]
zipper has joined #ruby
echevemaster has quit [Quit: Leaving]
dzhulk has joined #ruby
adeponte has joined #ruby
noop has joined #ruby
capicue has quit [Quit: Leaving...]
<bnagy> huh.. well nothing jumps out as obviously stupid, sorry
<bnagy> can you use your bucket stuff in irb etc?
mark06 has joined #ruby
nateberkopec has quit [Ping timeout: 252 seconds]
rahulkmr has quit [Read error: Connection reset by peer]
rahulkmr1 has joined #ruby
<zipper> Could anyone send me a link to an article that explains how to add directories to $LOAD_PATH
rahulkmr1 has quit [Client Quit]
rahulkmr has joined #ruby
brtdv has quit []
rahulkmr has quit [Max SendQ exceeded]
<bnagy> $: << '~'
<bnagy> but don't, it's code smell
rahulkmr has joined #ruby
_andyj_ has quit [Quit: leaving]
<zipper> bnagy: say what?
rahulkmr has quit [Client Quit]
rahulkmr1 has joined #ruby
<bnagy> modifying load path is usually a sign of doing something wrong
rahulkmr1 has quit [Client Quit]
rahulkmr has joined #ruby
<zipper> well what if I want to require a file in the same directory?
<mark06> how can I delete all occurrences of a substring from a string? something more elegant than gsub(foo, '')
rahulkmr has quit [Client Quit]
<zipper> what do you advise I do?
rahulkmr1 has joined #ruby
<mark06> slice will remove only first occurrence
snovak has joined #ruby
<bnagy> zipper: use require_relative
<zipper> bnagy: is that really better practice?
rahulkmr1 has quit [Read error: Connection reset by peer]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
<bnagy> >> "voodoo".delete 'oo'
<eval-in> bnagy => "vd" (https://eval.in/57294)
justsee has quit [Ping timeout: 240 seconds]
<bnagy> zipper: yes.
frustrum has quit [Ping timeout: 256 seconds]
rahulkmr has joined #ruby
BizarreCake has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
rahulkmr has quit [Read error: Connection reset by peer]
rahulkmr1 has joined #ruby
<bnagy> mark06: ^^
Kneferilis has joined #ruby
rahulkmr1 has quit [Client Quit]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
ebetancourt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
DanBoy has left #ruby [#ruby]
rahulkmr has joined #ruby
DanBoy has joined #ruby
<zipper> bnagy: uh why do you think the following would fail when tried in irb:
<zipper> ` $LOAD_PATH << /home/urbanslug/code/ruby/rails/koans/RoughWork/ `
earthquake has quit [Quit: earthquake]
<zipper> Yet that is a valid path?
rahulkmr1 has joined #ruby
<mark06> bnagy: it does not accept a regex
brennanMKE has joined #ruby
<bnagy> mark06: you said substring :)
rahulkmr1 has quit [Read error: Connection reset by peer]
snovak has quit [Ping timeout: 246 seconds]
<bnagy> gsub
rahulkmr1 has joined #ruby
<bnagy> zipper: probably you forgot to put it in quotes
<rjhunter> bnagy: I'd go the other way -- I'd prefer making sure the load path is set up properly (ideally, outside of code) and using plain `require`.
<mark06> bnagy: sorry, actually regex is for case insensitive, so any way to delete do that?
rahulkmr1 has quit [Client Quit]
rahulkmr2 has joined #ruby
<mark06> bnagy: gsub(/foo/, "") is so ugly you know :)
<bnagy> mark06: I would use gsub /oo/i, ''
<rjhunter> bnagy: I'd be interested to hear your opinion in more depth sometime
WillAmes has quit [Remote host closed the connection]
rahulkmr1 has joined #ruby
rahulkmr2 has quit [Read error: Connection reset by peer]
rahulkmr1 has quit [Read error: Connection reset by peer]
rahulkmr2 has joined #ruby
popl has joined #ruby
popl has joined #ruby
Nogbit has joined #ruby
<bnagy> rjhunter: modifying an interpreter-wide global instead of using a require_relative, which has been introduced for that _exact reason_ is overkill and dangerous
<bnagy> although the danger is unlikely to be a real-world issue - ie if they can pollute local dirs you have worse issues
freerobby has joined #ruby
WillAmes has joined #ruby
<bnagy> and if you're loading relative stuff SO OFTEN then it should probably just be a gem anyway
<mark06> bnagy: I think I'll give up on lowercase, it's a currency symbol, "R$", I think people don't usually type "r$"
rdark has joined #ruby
<mark06> bnagy: and the string should not have more than one occurrence, so no problem crashing if so
rahulkmr has quit [Ping timeout: 260 seconds]
user258467 has joined #ruby
inrgnc has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
aagdbl has joined #ruby
zeade has joined #ruby
zeade has quit [Client Quit]
rahulkmr2 has quit [Ping timeout: 272 seconds]
ewnd9 has quit [Ping timeout: 272 seconds]
jamblack has quit [Quit: jamblack]
axl_ has quit [Quit: axl_]
tharindu has joined #ruby
ehaliewicz has joined #ruby
justsee has joined #ruby
jhw has joined #ruby
ahawkins has joined #ruby
ahawkins has left #ruby [#ruby]
fightback has joined #ruby
platypine has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
michael_mbp is now known as zz_michael_mbp
astrobunny has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
Shidash1 has joined #ruby
Shidash has quit [Quit: Leaving.]
<zipper> Is initialize a private mathod by default?
<mark06> thanks all
mark06 has left #ruby [#ruby]
coderhs has joined #ruby
ewnd9 has joined #ruby
<bnagy> >> String.private_methods.include? :initialize
<eval-in> bnagy => true (https://eval.in/57295)
mengu has quit [Remote host closed the connection]
lanastasov has joined #ruby
mengu has joined #ruby
sayan has quit [Ping timeout: 260 seconds]
persand has joined #ruby
nateberkopec has quit [Ping timeout: 248 seconds]
amritanshu_RnD has joined #ruby
Al_ has quit [Quit: Al_]
Elhu has joined #ruby
jblack has quit [Ping timeout: 246 seconds]
mengu__ has joined #ruby
jhaals has joined #ruby
mengu has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
Shidash1 has quit [Ping timeout: 248 seconds]
Shidash has joined #ruby
vpretzel has joined #ruby
ewnd9 has quit [Ping timeout: 256 seconds]
<zipper> bnagy: please have a look: http://pastebin.com/Vp3bbBjA
<bnagy> you probably want to expose @car_type with something like arr_reader :car_type, then check car.car_type == "Toyota"
<zipper> So uh where exactly is the problem? Is that method private? I'm sorry I didn't understand your paste.
vpretzel has quit [Ping timeout: 246 seconds]
<zipper> googles arr_reader
maletor has quit [Quit: Computer has gone to sleep.]
<bnagy> sorry attr_reader, was a typo
<bnagy> you should never call initialize directly
Volsus has joined #ruby
dhruvasagar has joined #ruby
<CaptainJet> The only reason to call initialize directly is if you're overwriting #new
freerobby1 has joined #ruby
<zipper> Man I see people doing it all over these learn ruby things
freerobby has quit [Read error: Connection reset by peer]
brtdv has joined #ruby
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
workmad3 has joined #ruby
wallerdev has quit [Quit: wallerdev]
Mr_Wharfsnort has joined #ruby
rahulkmr has joined #ruby
lyanchih has quit [Quit: lyanchih]
raul782 has left #ruby [#ruby]
<sevenseacat> link?
aganov has joined #ruby
freerobby1 has quit [Ping timeout: 240 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
Volsus has quit [Ping timeout: 272 seconds]
<zipper> bnagy: uh same error despite adding attr_reader :car_type
<zipper> see this: http://pastebin.com/Vp3bbBjA
CaptainJet has quit []
fightback has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sevenseacat> theyre not calling initialize directly
capicue has joined #ruby
<bnagy> zipper: you have to actually do both things I said, not just half of it :)
<zipper> bnagy: check where exactly? I doubt that is something I can learn from a google search.
workmad3 has quit [Ping timeout: 240 seconds]
<zipper> sevenseacat: look under `Custom Method to create Ruby Objects :`
lyanchih has joined #ruby
<sevenseacat> yes, they are *defining* an initialize method
<bnagy> assert_equal "Toyota", car1.initialize <- use car_type not initialize
<sevenseacat> they are not *calling* it directly
g0bl1n_ has joined #ruby
g0bl1n has joined #ruby
vlad_starkov has joined #ruby
ewnd9 has joined #ruby
rickmasta has quit [Read error: Connection reset by peer]
capicue has quit [Ping timeout: 252 seconds]
<zipper> bnagy: ah! I see what you mean
jhw has left #ruby [#ruby]
Es0teric has quit [Quit: Computer has gone to sleep.]
mrsolo has quit [Quit: This computer has gone to sleep]
dcunit3d has quit [Quit: dcunit3d]
byprdct has joined #ruby
<zipper> because attr_reader created a new method called car_type implicitly, right?
kil0byte has joined #ruby
h_kon has joined #ruby
<bnagy> uh huh
<zipper> sevenseacat: ah! now I get what you mean!
rickmasta has joined #ruby
kaspergrubbe has joined #ruby
<zipper> I was so focused on getting it to work I didn't quite undertsand what you meant by dib't call initialize. I understood it as don't declare.
banisterfiend has quit [Read error: Connection reset by peer]
lsmola has joined #ruby
tjad has quit [Ping timeout: 265 seconds]
Spami has quit [Quit: This computer has gone to sleep]
julweber has joined #ruby
<sevenseacat> all good :)
vlad_starkov has quit [Ping timeout: 241 seconds]
timonv has joined #ruby
<pen> bnagy: hey
banisterfiend has joined #ruby
vlad_starkov has joined #ruby
<pen> bnagy: Yes, but as I said earlier, it doesn't happen before and I'm confounded.
jprovazn has joined #ruby
maoko has joined #ruby
timonv_ has joined #ruby
adeponte has quit [Remote host closed the connection]
relix has joined #ruby
fightback has joined #ruby
snovak has joined #ruby
Mr_Wharfsnort has quit [Quit: Leaving]
Spami has joined #ruby
timonv has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Advocation has joined #ruby
skaflem has joined #ruby
vlad_starkov has joined #ruby
jkline has quit [Quit: jkline]
WickedAtMelb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zipper> Why's Poignant Guide to Ruby: http://mislav.uniqpath.com/poignant-guide/
Deele has joined #ruby
<sevenseacat> i didnt much like that
<popl> sevenseacat: it's probably ok if you're someone with add
<zipper> bnagy: ha! I have a very funny thing to tell you.
<popl> :)
brennanMKE has joined #ruby
<zipper> You know what Swahili is? It's a language. A language that people speak.
Xeago has joined #ruby
<zipper> The language has the word bangi which sounds similar to bnagy
fightback has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<popl> bnagy is Swahili for "curmudgeon"
<zipper> bnagy: Now ask me what bangi means
alup has joined #ruby
<sevenseacat> lol popl
Advocation has quit [Quit: Advocation]
<zipper> popl: do you know swahili
<zipper> *?
vlad_starkov has quit [Ping timeout: 272 seconds]
snovak has quit [Ping timeout: 272 seconds]
<popl> zipper: jambo means hello
banisterfiend has joined #ruby
<popl> Does knowing a few words in Swahili mean that one knows Swahili?
<zipper> Ok brb to tell you what that guy's name means and probably why he would hardly get through airports in parts of Africa without getting thoroughly searched.
brennanMKE has quit [Ping timeout: 272 seconds]
<zipper> popl: ever been to Africa?
<zipper> Where in Africa?
jamblack has joined #ruby
<popl> I just read a lot about African cultures.
<popl> I'm a nerd.
Volsus has joined #ruby
Soda has joined #ruby
<zipper> popl: I'm Kenyan In Kenya All Kenyan.
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
jamblack has quit [Client Quit]
bcd87 has joined #ruby
WickedAtMelb has joined #ruby
<popl> I had a roommate who was from Côte d'Ivoire.
<zipper> popl: I doubt they speak Swahili though. It's an east and central african language.
rahulkmr has quit [Ping timeout: 240 seconds]
<zipper> Anyway bangi means weed and I've been thinking about it ever since I joined this channel.
<popl> I thought we were talking about our links to Africa. I did not suggest they spoke Swahili. :)
<popl> They spoke French, really.
<popl> And English of course.
<popl> Very good English.
sayan has joined #ruby
<popl> I knew someone once who spoke Xhosa. That's a neat language.
<zipper> That is cool.
thesheff17 has joined #ruby
h_kon has quit [Remote host closed the connection]
capicue has joined #ruby
avril14th has joined #ruby
jbpros has joined #ruby
mklappstuhl has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
noop has quit [Ping timeout: 248 seconds]
WickedAtMelb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
capicue has quit [Ping timeout: 246 seconds]
zipper has quit [Ping timeout: 240 seconds]
chickenf_ has quit [Quit: Textual IRC Client: www.textualapp.com]
jbpros has quit [Quit: jbpros]
banisterfiend has joined #ruby
nateberkopec has joined #ruby
m00nlight has joined #ruby
tesuji has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
thesheff17 has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
Elhu has joined #ruby
byprdct has quit [Ping timeout: 240 seconds]
m00nligh_ has joined #ruby
Elhu has quit [Client Quit]
zipper has joined #ruby
Elhu has joined #ruby
coderhs has quit [Ping timeout: 272 seconds]
m00nlight has quit [Ping timeout: 246 seconds]
zoee has joined #ruby
Volsus has quit [Quit: Leaving]
h_kon has joined #ruby
noop has joined #ruby
thepumpkin has joined #ruby
jamblack has joined #ruby
m00nligh_ has quit [Remote host closed the connection]
m00nlight has joined #ruby
jamblack has quit [Client Quit]
thepumpkin has quit [Ping timeout: 240 seconds]
astrobunny has quit [Ping timeout: 240 seconds]
jamblack has joined #ruby
freerobby has joined #ruby
Sharetel has joined #ruby
zenon3_ has joined #ruby
<Sharetel> Hi, while starting Redmine, I am getting this error: /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query': Mysql2::Error: Unknown table engine 'InnoDB': SHOW CREATE TABLE `issue_relations` (ActiveRecord::StatementInvalid). Please can someone help me on this?
ephemerian has joined #ruby
julweber has quit [Remote host closed the connection]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
julweber has joined #ruby
m00nlight has quit [Remote host closed the connection]
m00nlight has joined #ruby
jamblack has quit [Quit: jamblack]
astrobunny has joined #ruby
jamblack has joined #ruby
jbpros has joined #ruby
julweber has quit [Ping timeout: 272 seconds]
jimmyy has joined #ruby
elaptics`away is now known as elaptics
jamblack has quit [Client Quit]
capicue has joined #ruby
jbpros has quit [Client Quit]
h_kon has quit [Remote host closed the connection]
shredding has joined #ruby
h_kon has joined #ruby
camilasan has joined #ruby
capicue has quit [Ping timeout: 252 seconds]
barratt has joined #ruby
monkegjinni has joined #ruby
justsee has quit [Ping timeout: 260 seconds]
rjhunter has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
Shidash has quit [Quit: Leaving.]
BizarreCake has quit [Ping timeout: 246 seconds]
snovak has joined #ruby
adeponte has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
Vaibhav_Rajput has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
astrobunny has quit [Ping timeout: 272 seconds]
einarj has joined #ruby
dcunit3d has joined #ruby
kil0byte has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 241 seconds]
brennanMKE has joined #ruby
nathanieldavid has joined #ruby
adeponte has quit [Ping timeout: 240 seconds]
nathanieldavid has left #ruby [#ruby]
<zipper> What is the relevance of the inspect method? Why not just use to_s?
<bnagy> Vaibhav_Rajput: I'd check out grosser/parallel on github, that will do process pools for you
<bnagy> zipper: they're different
tvw has joined #ruby
<bnagy> inspect gives you the 'closest to internal' representation
astrobunny has joined #ruby
vpretzel has joined #ruby
* zipper moves on to learning about fixnum
jhaals has joined #ruby
adambeynon has joined #ruby
brennanMKE has quit [Ping timeout: 265 seconds]
Anticom has joined #ruby
freerobby has quit [Ping timeout: 272 seconds]
<Vaibhav_Rajput> bnagy, How it is efficient to use it?
claymore has joined #ruby
cpruitt has joined #ruby
<bnagy> uh.. efficient?
helloworld has quit [Ping timeout: 245 seconds]
cpruitt has quit [Client Quit]
tvw has quit []
<Vaibhav_Rajput> bnagy, for example I wanted to create 100 processes, at a time i can execute only 10 process if any of the processes among 10 complete its work or job is done then only it should create another process
<bnagy> yeah, that's what the gem does
vpretzel has quit [Ping timeout: 265 seconds]
<bnagy> you can also do it with threads, if you use jruby or rubinius
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shredding has quit [Quit: shredding]
justsee has quit [Ping timeout: 240 seconds]
tatsuya_o has joined #ruby
capicue has joined #ruby
<Vaibhav_Rajput> bnagy, I am really not getting it. Can you tell me how I can configure it for my problem?
coderhs has joined #ruby
coderhs has quit [Client Quit]
<bnagy> the docs on the github are pretty clear, dude
workmad3 has joined #ruby
noname001 has joined #ruby
<bnagy> Parallel.each( list_of_stuff, in_processes: 10 ) {|thing| #do stuff}
crunchy_crow has joined #ruby
<bnagy> there's another one people use called Peach, I think
blackmesa has joined #ruby
Al_ has joined #ruby
shredding has joined #ruby
capicue has quit [Ping timeout: 256 seconds]
<bnagy> https://github.com/schleyfox/peach but I think it's threads only, so not so hot for MRI
thesheff17 has joined #ruby
<Vaibhav_Rajput> bnagy, Dude, It is pretty easy. I understood now. Thanks man.
nateberkopec has joined #ruby
justsee has joined #ruby
<Vaibhav_Rajput> bnagy, I am going with parallel.
<Vaibhav_Rajput> grosser parallel.
monkegjinni has quit [Remote host closed the connection]
<bnagy> I have used it a lot, seems to work pretty well.
workmad3 has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
<bnagy> mainly use native java threadpools now
workmad3 has joined #ruby
hp_ has joined #ruby
lyanchih has quit [Quit: lyanchih]
fightback has joined #ruby
fightback has quit [Max SendQ exceeded]
timonv has quit [Remote host closed the connection]
julweber has joined #ruby
timonv has joined #ruby
nateberkopec has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 260 seconds]
monkegjinni has quit [Read error: No route to host]
Zai00 has joined #ruby
nomenkun has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
supreme__ has joined #ruby
<zipper> uh what type is a word that starts with a colon?
<zipper> e.g. array = [:peanut, :butter, :and, :jelly]
workmad3 has quit [Ping timeout: 265 seconds]
<sevenseacat> a symbol?
<supreme__> Hi, can someone help recommend a good and simple algorith for calculating tredning topics? say topic A has 10 hits but they all happend 60 minutes ago and there is topic B which has 8 hits but all happend in last 5 minutes, then topic B is "hotter/trendier"
<Senjai> zipper: :peanut.class :P
timonv has joined #ruby
<supreme__> but need to understand the time thing, alternatives and how it effects
shaunbaker has joined #ruby
<supreme__> but should be simple no overkill
workmad3 has joined #ruby
<zipper> Senjai: thanks
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zipper> sevenseacat: thanks
shaunbak_ has joined #ruby
zigomir has joined #ruby
<supreme__> I get the hits over real time (streaming)
<Senjai> supreme__: I'd suggest picking up a book. http://www.manning.com/marmanis/
fntzr has joined #ruby
luke has joined #ruby
<Senjai> books solve everything
luke is now known as Guest40146
luke_ has joined #ruby
<popl> Senjai: dyslexia?
barratt has quit [Ping timeout: 272 seconds]
tvw has joined #ruby
<supreme__> Senjai: nice book, thanks. but it did not include just this that I requested
<Senjai> supreme__: Well, we can't exactly sit here and design an algorithm completely for you. Make an attempt, try, show your output, and give us an example of what your output should hope to look like
freerobby has joined #ruby
<Senjai> popl: Some ebooks can be programmatically read :P
<Senjai> popl: e.g. text to speech.
<Senjai> heh
<zipper> How can I get the index of an element after entering the element of the array? e.g array = [12, 11, 100] How can I enter 100 and get it's index?
shaunbaker has quit [Ping timeout: 260 seconds]
<bnagy> supreme__: you want to weight recent hits more highly. Recent -> small number of seconds ( miliseconds whatever ) ago
relix has joined #ruby
xk_id has quit [Quit:
<bnagy> supreme__: so look at ways to make small numbers big and big numbers small, eg 1/x or a_large_number -
<bnagy> x
fixl has joined #ruby
<bnagy> or, like a million other ways
<bnagy> I imagine this is a well covered area on teh googlez
<Senjai> zipper: hmm? array[2] == 100
workmad3 has quit [Ping timeout: 240 seconds]
tharindu has quit [Ping timeout: 260 seconds]
<zipper> Senjai: no not like that
Guest40146 has quit [Ping timeout: 264 seconds]
<bnagy> [12,11,100].index 100
<bnagy> >> [12,11,100].index 100
<eval-in> bnagy => 2 (https://eval.in/57332)
<zipper> I mean if I didn't know what it's index was
ewnd9 has quit [Remote host closed the connection]
<Senjai> bnagy: too awesome :P
workmad3 has joined #ruby
<supreme__> bnagy: exactly. but what is this type of algorith called so I can read up on?
<supreme__> I understand that I need a "rate"
<bnagy> 'arithmetic'
freerobby has quit [Ping timeout: 240 seconds]
<zipper> bnagy: on point
<zipper> bnagy: lol
jbpros has joined #ruby
ewnd9 has joined #ruby
<bnagy> or like hits_last_minute + hits_last_five / 2 + hits_last_hour / 4 + ...
<bnagy> I dunno
lembacon has quit [Remote host closed the connection]
<bnagy> I'm just makin shit up off the top of my head
Alina-malina has quit [Ping timeout: 252 seconds]
thesheff17 has quit [Quit: Leaving]
bluenemo has joined #ruby
jbpros has quit [Client Quit]
Jetchisel has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
<Senjai> You could even do a weighted proporiton, e.g. 20% of the weight from total hits, 40% of weight from hits in the last hour, 20% from number of commnets, 20% of weights from the last 10 minutes
<Senjai> and order by the weight :)
Azulinho has joined #ruby
klaut has joined #ruby
<Senjai> again, making shit up :p
workmad3 has joined #ruby
capicue has joined #ruby
havenwood has quit [Remote host closed the connection]
gyre007 has joined #ruby
gyre007 has quit [Remote host closed the connection]
gyre007 has joined #ruby
capicue has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
gyre007 has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
gyre007 has joined #ruby
sr78ger has joined #ruby
<supreme__> Senjai: ye I could just make shit up but I rather use a standard algorith
gyre007 has quit [Read error: Operation timed out]
<supreme__> m
<Senjai> supreme__: It's subjective. So there is no "right" answer
sr78ger has quit [Max SendQ exceeded]
<supreme__> Senjai: I know, the algoriths does not "work" either
<Senjai> supreme__: huh?
<supreme__> what I mean is
sr78ger has joined #ruby
<supreme__> tredning topics can never be correct or wrong as you say
<supreme__> it depends on the algorith
<supreme__> but they are better and worse :)
sr78ger has quit [Max SendQ exceeded]
sr78ger has joined #ruby
sr78ger has quit [Max SendQ exceeded]
workmad3 has quit [Ping timeout: 240 seconds]
<Senjai> supreme__: Google is your friend
sr78ger has joined #ruby
Sharetel has left #ruby [#ruby]
jibi has joined #ruby
workmad3 has joined #ruby
sr78ger has quit [Max SendQ exceeded]
<Senjai> need I go on?
sr78ger has joined #ruby
workmad3 has quit [Client Quit]
sr78ger has quit [Max SendQ exceeded]
<sevenseacat> sif google anything
<Senjai> sevenseacat: sif?
<sevenseacat> as if
sr78ger has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
sr78ger has quit [Max SendQ exceeded]
<supreme__> Senjai: the number of different ways todo this is not a problem :)
yacks has quit [Quit: Leaving]
<supreme__> but like the storm one etc is a bit complex for my situation
<Senjai> supreme__: Then uhh.. Why are you asking it?
<supreme__> but I am looking at "moving average" now
sr78ger has joined #ruby
<Senjai> supreme__: uhh.. kay
<supreme__> Senjai: I asked for a simple way.
snovak has joined #ruby
fightback has joined #ruby
maoko has joined #ruby
adeponte has joined #ruby
<Senjai> supreme__: simple and algorithm rarely find themselves in the same sentence ;)
<supreme__> but think I found it in the moving average algo
<bnagy> might want to weight a MA
sevenseacat has left #ruby [#ruby]
<bnagy> [XXXXX ] and [ XXXXX] are the same
hp_ has quit [Ping timeout: 246 seconds]
hp_ has joined #ruby
<supreme__> bnagy: but moving average does take time into account right?
<supreme__> so they are not worth the same right?
<bnagy> in a normal MA they're the same
<bnagy> until values start dropping off
<supreme__> like look at this
<supreme__> this is for node tho
<supreme__> but it takes time into account
aagdbl has quit [Read error: Connection reset by peer]
aagdbl has joined #ruby
decoponio has joined #ruby
<supreme__> right?
<Senjai> Supposedly.
<supreme__> :)
<bnagy> yeah that weights
snovak has quit [Ping timeout: 256 seconds]
brennanMKE has joined #ruby
<supreme__> cool
<supreme__> then I can study that code
<supreme__> not much code
<supreme__> that is what I mean with simple
adeponte has quit [Ping timeout: 252 seconds]
<bnagy> copying something == simple. OK, I understand.
zarubin has joined #ruby
<supreme__> haha nah nah
<Senjai> bnagy: Made me lol
<supreme__> I will use ruby so no copy paste
<supreme__> but now I can read on wiki about "ma" and "mv"
<Senjai> supreme__: That is just a moving average calculation, thats not an algorithm for trending topics
<supreme__> and look at code implementation to understand and write my own
<Senjai> supreme__: converting that to ruby would take what, a minute?
gyre007 has joined #ruby
<supreme__> Senjai: what is missing then?
<supreme__> I got a stream of data coming in for topics
<supreme__> using this algo
<supreme__> plotting on a graph
<supreme__> should be enough for most popular at "time" given a MA value
<bnagy> right, beerz
byprdct has joined #ruby
<supreme__> MA uses to "smooth" it out, right?
boxmein has joined #ruby
hp_ has quit [Ping timeout: 246 seconds]
brennanMKE has quit [Ping timeout: 260 seconds]
vpretzel has joined #ruby
<Senjai> supreme__: I feel like you should actually learn what you're talking about. copy and pasting code snippits only go so far, and that will not by itself satiate what would be a modern trending algorithm
<supreme__> Senjai: who ever said I would copy and paste that code and use it, stop assuming things.
<Senjai> like you say 'x' is too complicated for me. Well x might be the right solution, the fact you say its complicated just means "I don't get it and I don't want to figure it out"
<supreme__> neither you or I come up with these algorithms
<supreme__> probaly some greek guy 300 years ago, my job is to find what ways there is, weight them and use one that is good for my case
<supreme__> it's not to complicated for ME per se, just for this given situation
<supreme__> Senjai: I have never said that, you assume that, and it's wrong
<Senjai> supreme__: Okay, tell me how it is too complicated for this situation
Azulinho has quit [Read error: Connection reset by peer]
Azulinho has joined #ruby
<supreme__> I don't want to use something big like Storm for htis
<supreme__> I will either use nodejs with websockets or eventmachine
<supreme__> with websockets aswell..
<supreme__> and use some algo for smoothen the hits out over time
<supreme__> and plot on a graphg
<supreme__> that is my use case
<Senjai> supreme__: Uhm, you dont need to use storm. You can impliment that in any language.
<supreme__> setting up a machine using storm etc just for this, is not worth my time to invest etc
<supreme__> Senjai: storm is a computation system that does 100 things, I want to make 1 thing, why build 99 things I don't need?
Jabberish has quit [Remote host closed the connection]
<zipper> Ruby has these data structures I never heard of called ranges. This is weird.
<supreme__> that is not to say it's to difficult, it's just more complex then it needs to be
<supreme__> for the given situation
vpretzel has quit [Ping timeout: 272 seconds]
<supreme__> have to eat now :) back later, I appriciate the discussion
boxmein has left #ruby ["[00:12.05] <\m> An into-solid turner"]
_5kg has quit [Read error: Connection reset by peer]
<zipper> Ruby has these data structures I never heard of called ranges. This is weird.
m00nlight has quit [Remote host closed the connection]
_5kg has joined #ruby
<Senjai> zipper: Not really. (1..5) is a range from 1 to 5 inclusive
capicue has joined #ruby
<Senjai> (1..5).to_a produces [1,2,3,4,5]
drumusician has joined #ruby
<zipper> Senjai: so what's the use of a range?
caveat- has quit [Ping timeout: 264 seconds]
<zipper> To make it easier for one to come up with an array?
<Senjai> zipper: (1..5).each {|x| print x},
<Senjai> or check if a number is within a range
Jabberish has joined #ruby
<zipper> or with a range of values?
<Senjai> e.g. if 1 <= x <= 50
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
<zipper> Senjai: I was reading that
caveat- has joined #ruby
capicue has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
newbiehacker has joined #ruby
mobileblue has quit [Read error: Connection reset by peer]
<Senjai> zipper: Ranges are tons of fun, in irb try ("hello".."zzzzz").to_a :P
mobileblue has joined #ruby
<Senjai> >> ("hello".."zzzzz").to_a.size
<eval-in> Senjai => [FATAL] failed to allocate memory (https://eval.in/57333)
<Senjai> 8604504 :P
deeepblue has quit [Quit: deeepblue]
nateberkopec has quit [Ping timeout: 252 seconds]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
mobileblue has quit [Excess Flood]
astrobunny has quit [Ping timeout: 240 seconds]
<Senjai> >> size=0; ("hello".."zzzzz").each {|x| size += 1}
<eval-in> Senjai => (https://eval.in/57334)
mobileblue has joined #ruby
<Senjai> >> size=0; ("hello".."zzzzz").each {|x| size += 1}; print size
<eval-in> Senjai => (https://eval.in/57335)
<heftig> >> ("hello".."zzzzz").each.size
<eval-in> heftig => nil (https://eval.in/57336)
<heftig> >> ("hello".."zzzzz").each.count
<eval-in> heftig => (https://eval.in/57337)
<Senjai> Eh
<Senjai> time limit exceeded
admin0 has joined #ruby
<zipper> I got this as size: 8604504
<Senjai> zipper: Yea, I was just trying to get eval-in to do it
sr78ger has quit [Quit: Textual IRC Client: www.textualapp.com]
<zipper> Senjai: wow it's looking really cool
g0bl1n has quit [Quit: Ex-Chat]
g0bl1n_ has quit [Quit: Ex-Chat]
<zipper> It looks like I'm scrolling sideways when I'm scrolling up
<heftig> >> "hello".tr("a-z","0-9a-z")
<eval-in> heftig => "74bbe" (https://eval.in/57339)
<heftig> >> "zzzzz".tr("a-z","0-9a-z").to_i(36) - "hello".tr("a-z","0-9a-z").to_i(36)
<eval-in> heftig => 31231523 (https://eval.in/57340)
einarj has quit [Remote host closed the connection]
<zipper> Basically arrays here are like lists. They don't have to hold a specific type.
Elhu has quit [Ping timeout: 256 seconds]
einarj has joined #ruby
thepumpkin has joined #ruby
adeponte has joined #ruby
astrobunny has joined #ruby
Luka_ has joined #ruby
Elhu has joined #ruby
h_kon has quit [Remote host closed the connection]
thepumpkin has quit [Ping timeout: 246 seconds]
einarj has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
Vaibhav_Rajput has quit [Ping timeout: 260 seconds]
Vaibhav_Rajput has joined #ruby
persand has quit [Quit: persand]
tboerger has quit [Ping timeout: 245 seconds]
adeponte has quit [Ping timeout: 272 seconds]
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
gianlucadv has quit [Quit: ZNC - http://znc.sourceforge.net]
freerobby has quit [Read error: Operation timed out]
neonlex has joined #ruby
gnul0ver has joined #ruby
Ziarkaen has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
popl has quit [Quit: We must make an idol of our fear, and call it God.]
kil0byte has joined #ruby
gianlucadv has joined #ruby
h_kon has joined #ruby
julweber has quit [Remote host closed the connection]
WickedAtMelb has joined #ruby
julweber has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
Squarepy has joined #ruby
capicue has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
Luka_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
neonlex has quit [Ping timeout: 246 seconds]
julweber has quit [Ping timeout: 256 seconds]
luke_ has quit [Quit: Leaving...]
includex has joined #ruby
fuleo has quit [Remote host closed the connection]
astrobunny has joined #ruby
nvrch has joined #ruby
fuleo has joined #ruby
zz_michael_mbp is now known as michael_mbp
capicue has quit [Ping timeout: 261 seconds]
zarubin has quit [Ping timeout: 272 seconds]
Jabberish has quit [Remote host closed the connection]
barratt has joined #ruby
barratt has quit [Remote host closed the connection]
barratt has joined #ruby
gnul0ver_ has joined #ruby
Jabberish has joined #ruby
michael_mbp is now known as zz_michael_mbp
gnul0ver_ is now known as BeamMeUp
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
julweber has joined #ruby
snovak has joined #ruby
zipper has quit [Quit: leaving]
nari has joined #ruby
tboerger has joined #ruby
ekarlso has quit [Changing host]
ekarlso has joined #ruby
snovak has quit [Ping timeout: 240 seconds]
Luka_ has joined #ruby
camilasa_ has joined #ruby
brennanMKE has joined #ruby
Xeago has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
helperW has joined #ruby
<helperW> Hi
mojjojo has joined #ruby
<helperW> I Just installed RoR. http://rubyonrails.org/download
<helperW> I went to localhost:3000 but nothing is happening What can be wrong
<tobiasvl> #rubyonrails
dzhulk1 has joined #ruby
<helperW> In my folder I did: rails new Application but now there are some setup files etc but the app is stil l not running.
<tobiasvl> please go to #rubyonrails
Lewix has quit [Remote host closed the connection]
hiall has joined #ruby
camilasa_ has quit [Remote host closed the connection]
lyanchih has joined #ruby
camilasan has joined #ruby
<helperW> I can't join that chan.
zz_michael_mbp is now known as michael_mbp
dzhulk has quit [Ping timeout: 260 seconds]
Guest19745 has joined #ruby
<tobiasvl> /msg nickserv register PASSWORD EMAIL
brennanMKE has quit [Ping timeout: 240 seconds]
Criztian has joined #ruby
Ripp__ has quit []
Al_ has quit [Quit: Al_]
astrobunny has quit [Ping timeout: 272 seconds]
dash_ has quit [Quit: dash_]
sepp2k has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
ldnunes has joined #ruby
fuleo has quit [Remote host closed the connection]
fuleo has joined #ruby
einarj has joined #ruby
capicue has joined #ruby
astrobunny has joined #ruby
Weazy has joined #ruby
t_p has quit [Quit: Computer has gone to sleep.]
nateberkopec has joined #ruby
inrgnc has quit [Ping timeout: 240 seconds]
inrgnc has joined #ruby
capicue has quit [Ping timeout: 265 seconds]
jprovazn has quit [Quit: Leaving]
nateberkopec has quit [Ping timeout: 256 seconds]
shredding has quit [Quit: shredding]
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
krz has quit [Quit: krz]
Zai00 has quit [Ping timeout: 252 seconds]
Domon has quit [Remote host closed the connection]
lembacon has joined #ruby
Zai00 has joined #ruby
helperW has quit [Quit: helperW]
kil0byte has quit [Read error: Connection reset by peer]
Elhu has quit [Quit: Computer has gone to sleep.]
heftig has quit [Quit: Quitting]
boxmein has joined #ruby
helloworld has joined #ruby
znake has joined #ruby
freerobby has joined #ruby
neo__ has joined #ruby
neo__ has quit [Client Quit]
kil0byte_ has joined #ruby
Xeago has joined #ruby
Jetchisel has joined #ruby
ehaliewicz has quit [Ping timeout: 272 seconds]
freerobby has quit [Ping timeout: 265 seconds]
kaspergrubbe has joined #ruby
amacgregor__ has quit [Read error: Connection reset by peer]
Xeago has quit [Ping timeout: 272 seconds]
amacgregor__ has joined #ruby
jamblack has joined #ruby
astrobunny has quit [Ping timeout: 246 seconds]
xk_id has joined #ruby
Desert_eagle has joined #ruby
swordsmanz has joined #ruby
capicue has joined #ruby
VTLob has joined #ruby
astrobunny has joined #ruby
fgo has quit [Read error: Connection reset by peer]
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
julweber has quit [Remote host closed the connection]
fgo has joined #ruby
julweber has joined #ruby
capicue has quit [Ping timeout: 240 seconds]
carif has joined #ruby
hp_ has joined #ruby
hp_ has quit [Client Quit]
bcd87 has quit [Quit: Page closed]
zipper has joined #ruby
persand has joined #ruby
jprovazn has joined #ruby
lkba has joined #ruby
carif has quit [Read error: Connection reset by peer]
julweber has quit [Ping timeout: 272 seconds]
Mon_Ouie has joined #ruby
<zipper> What are such things called in ruby: a5 = Array.new (15) {|e| e*e}
newbiehacker has quit [Read error: Connection reset by peer]
<canton7> the { ... }?
<canton7> blocks
<zipper> the part in the brackets is what I want to understand
<zipper> Yes
newbiehacker has joined #ruby
<zipper> !google ruby blocks
Alina-malina has joined #ruby
snovak has joined #ruby
Al_ has joined #ruby
BeamMeUp has left #ruby [#ruby]
blackmesa has joined #ruby
julweber has joined #ruby
Xeago has joined #ruby
_bart has joined #ruby
snovak has quit [Ping timeout: 240 seconds]
kil0byte_ has quit [Remote host closed the connection]
brennanMKE has joined #ruby
astrobunny has quit [Ping timeout: 260 seconds]
amacgregor has joined #ruby
amacgregor_ has joined #ruby
Xeago has quit [Remote host closed the connection]
amacgregor__ has quit [Ping timeout: 240 seconds]
caveat- has quit [Ping timeout: 246 seconds]
ngpestelos has joined #ruby
caveat- has joined #ruby
vpretzel has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
jrhe has joined #ruby
bcd87 has joined #ruby
amacgregor has quit [Ping timeout: 258 seconds]
astrobunny has joined #ruby
pen has quit [Remote host closed the connection]
pen has joined #ruby
sunnymolini has quit [Quit: Leaving]
znake has quit [Quit: Linkinus - http://linkinus.com]
pencilcheck has joined #ruby
lucazi has joined #ruby
blackmesa has quit [Remote host closed the connection]
vpretzel has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
`Chris` has joined #ruby
helperW has joined #ruby
Xeago has joined #ruby
lyanchih has quit [Read error: Operation timed out]
admin0 has left #ruby ["Leaving"]
nari has quit [Ping timeout: 265 seconds]
pen has quit [Ping timeout: 248 seconds]
lucazi_ has joined #ruby
lucazi has quit [Ping timeout: 260 seconds]
capicue has joined #ruby
persand has quit [Read error: Connection reset by peer]
g0bl1n has joined #ruby
nateberkopec has joined #ruby
whunt has quit [Quit: Computer has gone to sleep.]
`Chris` has quit []
dcunit3d has quit [Quit: dcunit3d]
`Chris` has joined #ruby
capicue has quit [Ping timeout: 240 seconds]
`Chris` has quit [Client Quit]
`Chris` has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
dhruvasagar has quit [Ping timeout: 260 seconds]
nateberkopec has quit [Ping timeout: 260 seconds]
jbpros has joined #ruby
Luka_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
shredding has joined #ruby
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
Hanmac has joined #ruby
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
mojjojo has quit [Ping timeout: 246 seconds]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
thepumpkin has joined #ruby
Mon_Ouie has quit [Read error: Operation timed out]
jkamenik has joined #ruby
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
rahulkmr has joined #ruby
adeponte has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
swingha has joined #ruby
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
adeponte has quit [Read error: Connection reset by peer]
adeponte has joined #ruby
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
freerobby has joined #ruby
Elhu has joined #ruby
rahulkmr has joined #ruby
thepumpkin has quit [Ping timeout: 246 seconds]
neonlex has joined #ruby
Criztian has quit [Remote host closed the connection]
k610 has joined #ruby
adeponte has quit [Ping timeout: 260 seconds]
Soda has quit [Ping timeout: 246 seconds]
Al_ has quit [Quit: Al_]
varfoo has quit [Ping timeout: 240 seconds]
derebos has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
nari has joined #ruby
mark_locklear has joined #ruby
julweber has quit [Remote host closed the connection]
julweber has joined #ruby
mojjojo has joined #ruby
rahulkmr has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
Bira has joined #ruby
Al_ has joined #ruby
mark_locklear has quit [Read error: Connection reset by peer]
heftig has joined #ruby
mark_locklear has joined #ruby
Ziarkaen has quit [Read error: Connection reset by peer]
julweber has quit [Ping timeout: 256 seconds]
jamblack has quit [Quit: jamblack]
capicue has joined #ruby
DonRichie has joined #ruby
nari has quit [Ping timeout: 246 seconds]
dzhulk has joined #ruby
kalleth has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
kalleth has joined #ruby
osvico has joined #ruby
vipjun has quit [Ping timeout: 260 seconds]
ChronocityLC has joined #ruby
jimmyy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dzhulk1 has quit [Ping timeout: 248 seconds]
sevenseacat has joined #ruby
h_kon has quit [Remote host closed the connection]
Hobogrammer has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
capicue has quit [Ping timeout: 246 seconds]
weirdpercent has joined #ruby
amacgregor_ has quit [Read error: Connection reset by peer]
amacgregor_ has joined #ruby
xk_id has quit [Quit:
Azulinho_ has joined #ruby
xk_id has joined #ruby
habanany has joined #ruby
snovak has joined #ruby
ChronocityLC has quit [Ping timeout: 252 seconds]
habanany has quit [Client Quit]
osvico has quit [Ping timeout: 256 seconds]
Beoran__ has joined #ruby
Hobogrammer_ has joined #ruby
ItSANg___ has joined #ruby
xk_id has quit [Client Quit]
<weirdpercent> I have a string "Session Date: March 23rd 2013Lxxxx, Axx, Bxxxxxxxx, Pxxxxxxx, Axxxxxxxx, Pxx, Axxxx, Dxxx, Kxxxxx, Mxxxxxxxx", I want to use a regex to match where 2013 and Lxxxxx meet but I don't know how to phrase it
Azulinho has quit [Ping timeout: 265 seconds]
AlSquire has joined #ruby
ItSANgo_ has quit [Ping timeout: 260 seconds]
helperW has quit [Ping timeout: 240 seconds]
vipjun has joined #ruby
Beoran_ has quit [Ping timeout: 245 seconds]
Criztian has joined #ruby
Hobogrammer has quit [Ping timeout: 260 seconds]
rahulkmr has joined #ruby
xk_id has joined #ruby
snovak has quit [Ping timeout: 252 seconds]
bcd87 has quit [Ping timeout: 250 seconds]
fightback has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
h_kon has joined #ruby
osvico has joined #ruby
ChronocityLC has joined #ruby
pdimitrov has quit [Read error: Operation timed out]
robbyoconnor has quit [Ping timeout: 272 seconds]
brennanMKE has joined #ruby
pdimitrov has joined #ruby
xk_id has quit [Client Quit]
julweber has joined #ruby
asobrasil has joined #ruby
Banistergalaxy has joined #ruby
xk_id has joined #ruby
freerobby has quit [Ping timeout: 246 seconds]
ChronocityLC has quit [Ping timeout: 240 seconds]
enebo has joined #ruby
vpretzel has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
osvico has quit [Ping timeout: 272 seconds]
<_br_> weirdpercent: Not sure what you want to do. You mean this ? /Session Date: .+ [0-9]+[a-z]+ 20[0-9]+/
kreeves has joined #ruby
AndChat| has quit [Ping timeout: 272 seconds]
bcd87 has joined #ruby
<_br_> try rubular, helpful for learning a bit about regex.
includex has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
`Chris` has quit [Remote host closed the connection]
armanm has joined #ruby
`Chris` has joined #ruby
platypine has joined #ruby
platypine has joined #ruby
platypine has quit [Changing host]
Criztian has quit [Remote host closed the connection]
zipper is now known as a_female_on_the_
a_female_on_the_ is now known as a_female_on_chan
a_female_on_chan is now known as female_on_channe
vpretzel has quit [Ping timeout: 272 seconds]
lanastasov has quit [Quit: Page closed]
female_on_channe is now known as I_am_female
Luka_ has joined #ruby
Banistergalaxy has quit [Ping timeout: 265 seconds]
jbpros has quit [Ping timeout: 246 seconds]
Banistergalaxy has joined #ruby
platypine has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
aagdbl has quit [Ping timeout: 248 seconds]
xk_id has quit [Quit:
crunchy_crow has quit [Quit: Leaving]
jbpros has joined #ruby
capicue has joined #ruby
mansi has joined #ruby
stringoO has joined #ruby
nateberkopec has joined #ruby
t_p has joined #ruby
asphx has joined #ruby
aagdbl has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
jbpros has quit [Read error: Connection reset by peer]
capicue has quit [Ping timeout: 248 seconds]
tharindu has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
kil0byte has joined #ruby
sailias has joined #ruby
<gnul0ver> hello
hogeo has quit [Ping timeout: 248 seconds]
<gnul0ver> fellow rubist
<gnul0ver> rubyist
vlad_starkov has joined #ruby
enebo has quit [Quit: enebo]
<hoelzro> ahoy
h_kon has quit [Remote host closed the connection]
<gnul0ver> So does anyone in here make any money with Ruby"
<gnul0ver> ?
lucazi_ has quit [Ping timeout: 260 seconds]
<armanm> gnul0ver: what up?
jbpros has joined #ruby
<gnul0ver> sup
Vaibhav_Rajput has quit [Quit: Leaving]
<armanm> gnul0ver: lots of money to be made. Depends on the idea
<gnul0ver> facebook
Vaibhav_Rajput has joined #ruby
<gnul0ver> facebook was on ruby
<gnul0ver> at one time
lembacon has quit [Remote host closed the connection]
<I_am_female> gnul0ver: when was that?
<I_am_female> I think you're lying.
Mothore has quit [Quit: Computer has gone to sleep.]
<_br_> Facebook? No, php.
<armanm> I don't think it was ever on Ruby. Ruby wasn't that great then
<armanm> _br_ agreed
<gnul0ver> witter is built on Ruby on Rails
<gnul0ver> facebook uses PHP primarily, but also relies on "C++, Java, Python and Erlang"
<lupine> facebook was php
<lupine> twitter was ruby
Mothore has joined #ruby
<gnul0ver> well there writer component was built on ruby on rails.
freerobby has joined #ruby
adeponte has joined #ruby
<_br_> Doesn't really matter anyway. Good companies will rely on a variety of languages and tools.
tharindu has quit [Quit: Leaving...]
<weirdpercent> I have a string "23rd 2013Lxxxx," and I want to insert a newline between the 2013 and Lxxxx, how do I phrase the regex in the gsub?
<gnul0ver> i think they use Java
<gnul0ver> now
h_kon has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jbpros has quit [Ping timeout: 240 seconds]
<armanm> gnul0ver: where are you going with this?
includex has joined #ruby
<_br_> weirdpercent: I already postet that for you.
<gnul0ver> i was just wondering what language did facebook used if it was ror
tatsuya_o has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
<_br_> ror is just a framework.
<gnul0ver> i know
<gnul0ver> just like .net
<weirdpercent> _br_ I saw that regex did match, but HOW do you insert a newline, what is the operator that signifies between \d\d\d\d & \w+?
breakingthings has joined #ruby
maasha has joined #ruby
<maasha> Hello
ewnd9 has quit [Ping timeout: 252 seconds]
<_br_> gnul0ver: .net is more, includes eg. CLR
<maasha> I am messing around with mixins and not getting it to work: https://gist.github.com/maasha/d596b1d955ff34d7137a
Mothore has quit [Ping timeout: 272 seconds]
<maasha> It silently fails
<gnul0ver> irb is fun
freerobby has quit [Ping timeout: 272 seconds]
<gnul0ver> i've been learning ruby
<gnul0ver> I came from the C++ .net
<_br_> weirdpercent: match for it and gsub the match data with whatever you want
adeponte has quit [Ping timeout: 272 seconds]
mengu__ is now known as mengu
mengu has quit [Changing host]
mengu has joined #ruby
<_br_> maasha: A good way to learn is to e.g. attach pry debugger and step through your code to see whats going on
<gnul0ver> _br_: you can build a time machine with Ruby's Build in date class. ;)
krawchyk has joined #ruby
krawchyk has quit [Remote host closed the connection]
<_br_> Time machine ? :)
<gnul0ver> built
<gnul0ver> :D
nari has joined #ruby
krawchyk has joined #ruby
lucazi has joined #ruby
julweber has quit [Remote host closed the connection]
<gnul0ver> so what is the most Useful class in ruby
<maasha> _br_: I was indeed wondering how to debug this.
robbyoconnor has joined #ruby
WickedAtMelb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
julweber has joined #ruby
nvrch has quit [Ping timeout: 260 seconds]
<_br_> gnul0ver: Most useful? How would one measure that?
<gnul0ver> i was just museing
kil0byte has quit [Ping timeout: 272 seconds]
xk_id has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.1]
drumsrgr8forn8 has joined #ruby
<maasha> _br_: thought, I think that since this is small test code a debugger would be overkill. I am failing something mentally
<weirdpercent> _br_ but the data matches a pattern, maybe what I want to do can't be done with regex. gsub isn't what I need, I need to replace that section of the string with a duplicate containing a newline there
<gnul0ver> maasha: try to unit test mode
<gnul0ver> class
armanm has quit [Remote host closed the connection]
pleal has joined #ruby
nvrch has joined #ruby
kil0byte has joined #ruby
pleal has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
<Hanmac> hm i think Enumerable is one of the most useful ones ;P
<weirdpercent> Enumerable is bread and butter
pleal has joined #ruby
<gnul0ver> yup
justsee has quit [Ping timeout: 272 seconds]
d4heyDU has joined #ruby
Soda has joined #ruby
oz has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<_br_> maasha: I'm not quite sure what this exercise of "Inception" style Mixins is supposed to do, hence my Pry debugger comment.
<gnul0ver> syntactical sugar.
nilved has quit [Quit: leaving]
nilved has joined #ruby
<cout> inception-style?
<cout> (I never saw the movie so I have no clue what that means)
<maasha> _br_: I have a toolbox of modules and classes that I would like to be able to include with a simple "require 'toolbox'". However, namespace should be provided - and will need to be able to do mixins.
<gnul0ver> If you use Ruby On Rails there is a technique to prevent crackers from using the sq-injection method on your website.
julweber has quit [Ping timeout: 272 seconds]
jcromartie has joined #ruby
cads has quit [Ping timeout: 260 seconds]
oz has joined #ruby
_HolyCow1 has joined #ruby
<gnul0ver> _br_: are you talking about Modules ?
<gnul0ver> Mixing classes with Modules
vjt has quit [Remote host closed the connection]
vjt has joined #ruby
tiglog has joined #ruby
<gnul0ver> maasha: name your modules with different name spaces to avoid a name space collision.
capicue has joined #ruby
_HolyCow has quit [Ping timeout: 245 seconds]
<gnul0ver> A.namespace
<gnul0ver> B.namespace
<_br_> weirdpercent: You mean something like this ? "Session Date: March 23rd 2013Lxxxx, Axx, Bxxxxxxxx, Pxxxxxxx, Axxxxxxxx, Pxx, Axxxx, Dxxx, Kxxxxx, Mxxxxxxxx".gsub( /Session Date: .+ [0-9]+[a-z]+ 20[0-9]+/ ) { "#{$&} | " }
<maasha> gnul0ver: so I want one module to be my working namespace. And then a couple of embedded modules for mixins.
xk_id has quit [Quit:
<Hanmac> there is also some funny parameter for Kernel#load ;D
danshultz has joined #ruby
<gnul0ver> Yes You should declare the module on the top before you start including class.
<Hanmac> shevy: did you know the difference between load "path" and load "path", true ? ;P
<weirdpercent> _br_ yes, that question mark is that part of the line?
Xeago has joined #ruby
tboerger has quit [Read error: Operation timed out]
<_br_> you confuse me.
<_br_> Just open irb or pry or whatever and play with it, its not that hard.
<weirdpercent> "like this ?" that question mark ok thank you very much
<maasha> gnul0ver: did you see my gist?
<gnul0ver> masha i don't know if that would help u
fenec2 has joined #ruby
ngpestelos has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gnul0ver> #!/usr/bin/ruby
<gnul0ver> class Decade
<gnul0ver> require "support"
<gnul0ver> include Week # I think week is another Method from another class
capicue has quit [Ping timeout: 272 seconds]
<maasha> gnul0ver: thanks. I also have the ruby cookbook here, but the examples there are not working for what I am trying.
<gnul0ver> hmmm
theRoUS has joined #ruby
theRoUS has joined #ruby
<gnul0ver> im trying to learn ruby myself
<Hanmac> gnul0ver: the first line is wrong, use "#!/usr/bin/env ruby"
pleal has quit [Read error: Connection reset by peer]
nilved has left #ruby [#ruby]
<gnul0ver> that's from a website
<gnul0ver> bro
<Hanmac> then the website is shitty
<gnul0ver> so then it's a typo
pleal has joined #ruby
<gnul0ver> i found a typo on the Ruby's Manual Book
<I_am_female> hanmac: what should it read?
WickedAtMelb has joined #ruby
helloworld has quit [Ping timeout: 245 seconds]
<maasha> hanmac: what is the problem with that hashbang line?
rahulkmr has quit [Ping timeout: 272 seconds]
h_kon has quit [Remote host closed the connection]
<maasha> hanmac: oh, I misread. "#!/usr/bin/env ruby" is the way to go
<gnul0ver> http://www.rubyist.net/~slagell/ruby/examples.html typo. Written by the big guy him self
<_br_> Its the old form. Rubyists often jump around with ruby vm's hence env is easier to maintain.
Jabberish has quit [Read error: Connection reset by peer]
<maasha> :o)
<Hanmac> I_am_female &maasha: the reason: "#!/usr/bin/ruby" does not work with rvm, rbenv, or self compiled ruby … so when you do "ruby script.rb" and "./script.rb" it runs in different rubies because env uses the $PATH variable
helloworld has joined #ruby
<maasha> hanmac: exactly
snovak has joined #ruby
justsee has joined #ruby
<d4heyDU> is there a short way to make [:a, :b, :c], this turns it into a string array
<d4heyDU> >> %w{:a :b :c}
<eval-in> d4heyDU => [":a", ":b", ":c"] (https://eval.in/57355)
carif has joined #ruby
gyre007 has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 260 seconds]
gyre007 has joined #ruby
<tobiasvl> you don't think [:a, :b, :c] is short enough?
<juan_> d4heyDU, something like this? %w{:a :b :c}.join ' '
<d4heyDU> juan_: well, I want the items in the final array to be symbols, [:a, :b, :c]
<tobiasvl> >> [:a, :b, :c]
<eval-in> tobiasvl => [:a, :b, :c] (https://eval.in/57356)
<tobiasvl> …
<tobiasvl> you want to skip the … commas?
wildroman has joined #ruby
<maasha> So this last line in test.rb works as intended: https://gist.github.com/maasha/d596b1d955ff34d7137a
wildroman has quit [Remote host closed the connection]
<d4heyDU> yes, i want to skip the commas
<tobiasvl> >> %i(a b c)
<eval-in> tobiasvl => [:a, :b, :c] (https://eval.in/57357)
<tobiasvl> there!
<tobiasvl> just learned that myself by googling ;)
wildroman has joined #ruby
<juan_> nice
<maasha> However, I dont understand why method hello is not being replaced when I call the Include Mixin1 ?!?
idoru has quit [Read error: Connection reset by peer]
<gnul0ver> :)
brennanMKE has joined #ruby
<d4heyDU> tobiasvl: awesome, thanks! I could have googled but I like the interaction
<Hanmac> maasha look at the difference between "include" and "prepend"
yacks has joined #ruby
gyre007 has quit [Ping timeout: 246 seconds]
<Hanmac> >> module A; end; class B;include A;end; B.ancestors
<eval-in> Hanmac => [B, A, Object, Kernel, BasicObject] (https://eval.in/57362)
<Hanmac> >> module A; end; class B;prepend A;end; B.ancestors
<eval-in> Hanmac => [A, B, Object, Kernel, BasicObject] (https://eval.in/57363)
<Hanmac> maasha: for method calling #ancestors is important
snovak has quit [Remote host closed the connection]
Jabberish has joined #ruby
snovak has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
baordog_ has joined #ruby
gyre007 has joined #ruby
<maasha> prepend. hmmm. another novelty to me :o) - I wouldnt say ruby is a nice small language
<maasha> ruby is a nice language - but small, no
poseid has joined #ruby
<poseid> hi
<poseid> the André MÜller ... how would I transcode that to Andre Muller with Ruby 2.0 ?
<Hanmac> maasha: its because include cant overwrite an method which is defined in the same class in which the module is included … prepend can
<poseid> the old code Iconv.iconv('ascii//translit', 'utf-8',
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<maasha> hanmac: prepend gives the effect I was looking for! very nice! but its so new that its not even syntax hilighted correctly in vi!
relix has joined #ruby
kreeves has quit [Ping timeout: 240 seconds]
<Hanmac> poseid:
<Hanmac> >> "André Müller".tr("éü","eu")
<eval-in> Hanmac => "Andre Muller" (https://eval.in/57364)
hashpuppy has joined #ruby
<maasha> oh it is.
<maasha> its not a keyword but a method on Object?
ebetancourt has joined #ruby
<maasha> hm, no?
<Hanmac> maasha: hm no prepend if defined in module, i think you miss interpret it with extend … (and PS: include is not a keyword, iven if vi thinks that)
bluenemo has quit [Remote host closed the connection]
<maasha> hanmac: Oh. wow.
sbos99 has joined #ruby
<poseid> hanmac, cool, thanks
<maasha> hanmac: thanks. now I can safely say its beer oclock :o)
_HolyCow1 is now known as _HolyCow
maasha has quit [Quit: Page closed]
thesheff17 has joined #ruby
asphx has quit [Quit: leaving]
nilved has joined #ruby
ewnd9 has joined #ruby
ffranz has joined #ruby
jonathanwallace2 has joined #ruby
kvirani has joined #ruby
Guedes has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
SeySayux has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
jonathanwallace1 has quit [Ping timeout: 252 seconds]
fredjean has quit [Quit: Computer has gone to sleep.]
IceDragon has joined #ruby
ehc has joined #ruby
Elhu has joined #ruby
vpretzel has joined #ruby
cads has joined #ruby
bcd87 has quit [Quit: Page closed]
Amnesia has joined #ruby
<Hanmac> good that i didnt tell him how prepend, include, extend works when its done on both the class and the singleton_class of the object of the class ,P
<Amnesia> does anyone over here know a good source which explains how the ruby interpreter works under the hood?
carif has quit [Quit: Ex-Chat]
<Banistergalaxy> Amnesia yep
BizarreCake has joined #ruby
<Banistergalaxy> Google "Ruby under the microscope"
<Amnesia> Banistergalaxy: ty
Clooth has joined #ruby
<Amnesia> Banistergalaxy: people keep talking 'bout "the ruby VM" but in my understanding /usr/bin/ruby is just a binary that translated source code to machine code^^
eject_ck has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
<eject_ck> Hi all
Mothore has joined #ruby
mark_locklear has quit [Quit: Leaving]
robbyoconnor has joined #ruby
jerius has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 272 seconds]
kobain has joined #ruby
<Banistergalaxy> Amnesia then you need to read that book ;)
julian-delphiki has joined #ruby
svector has joined #ruby
<Amnesia> hm, 360 pages is quite a lot though:P
inrgnc has quit []
Hanmac has quit [Quit: Leaving.]
KobraKao has joined #ruby
kil0byte has joined #ruby
tomzx_mac has joined #ruby
douglarek_ has joined #ruby
tyleretters has joined #ruby
Mon_Ouie has joined #ruby
douglarek_ has left #ruby [#ruby]
<lupine> Amnesia, it needs at least that many pages to fix your misconceptions
gnul0ver has quit [Ping timeout: 256 seconds]
<Amnesia> heh
<swingha> Hi, sorry for my english, i try to create a scripts manager, i explain with examples: https://gist.github.com/anonymous/5778a2dda80ec349e8bc
thepumpkin has joined #ruby
bean has quit [Ping timeout: 240 seconds]
<swingha> If someone could give me some idea ? Thanks
burlyscudd has joined #ruby
tvw has quit []
kstephens has quit [Ping timeout: 248 seconds]
<eject_ck> how can I check why gem install failing ? http://pastebin.com/HHNv7bR9
kil0byte has quit [Remote host closed the connection]
sambao21 has joined #ruby
burlyscudd has quit [Client Quit]
Mon_Ouie has quit [Read error: Operation timed out]
nateberkopec has quit [Quit: Leaving...]
elux has joined #ruby
adeponte has joined #ruby
thepumpkin has quit [Ping timeout: 248 seconds]
jonathanwallace3 has joined #ruby
burlyscudd has joined #ruby
jonathanwallace2 has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
failshell has joined #ruby
WickedAtMelb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
adeponte has quit [Ping timeout: 260 seconds]
mrsolo has joined #ruby
tkuchiki has joined #ruby
iamjarvo_ has joined #ruby
iamjarvo_ has quit [Read error: Connection reset by peer]
snovak_ has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
cpruitt has joined #ruby
astrobunny has quit [Ping timeout: 252 seconds]
Vaibhav_Rajput has quit [Quit: Leaving]
sambao21 has quit [Ping timeout: 265 seconds]
_maes_ has joined #ruby
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
snovak has quit [Ping timeout: 248 seconds]
<I_am_female> All killer no filler
tkuchiki has quit [Ping timeout: 272 seconds]
justsee has quit [Ping timeout: 265 seconds]
snovak_ has quit [Ping timeout: 272 seconds]
blackmesa has joined #ruby
astrobunny has joined #ruby
robbyoconnor has quit [Read error: No route to host]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
includex has quit [Ping timeout: 272 seconds]
sbos99 has quit [Quit: Leaving]
mlpinit has joined #ruby
Squarepy_ has joined #ruby
sjltaylo_ has joined #ruby
Squarepy has quit [Ping timeout: 246 seconds]
snovak has joined #ruby
capicue has joined #ruby
hashpuppy has quit [Quit: Computer has gone to sleep.]
snql has joined #ruby
mlpinit_ has joined #ruby
KobraKao has quit [Quit: Leaving]
dhruvasagar has joined #ruby
interactionjaxsn has joined #ruby
Stygia has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
mlpinit has quit [Ping timeout: 240 seconds]
cads has quit [Ping timeout: 260 seconds]
zarubin has joined #ruby
seich- has quit [Ping timeout: 264 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
KobraKao has joined #ruby
tvw has joined #ruby
mmitchell has joined #ruby
capicue has quit [Ping timeout: 240 seconds]
drumsrgr8forn8 has joined #ruby
sjltaylo_ has quit [Remote host closed the connection]
Flashmasterson has joined #ruby
zoee has quit [Quit: zoee]
seich- has joined #ruby
includex has joined #ruby
klaut has quit [Remote host closed the connection]
bean has joined #ruby
klaut has joined #ruby
klaut has quit [Client Quit]
fmcgeough has joined #ruby
tomzx_mac has quit [Ping timeout: 272 seconds]
<_br_> eject_ck: Seems ri or rdoc stuff is failing try installing with e.g. --no-ri --no-rdoc
kstephens has joined #ruby
Mothore has quit [Quit: Lingo - http://www.lingoirc.com]
alup has quit [Quit: Leaving]
Mothore has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
Nogbit has left #ruby [#ruby]
coderhs has quit [Quit: Leaving]
tvw has quit []
snovak has quit [Remote host closed the connection]
drumsrgr_ has joined #ruby
DanKnox_away is now known as DanKnox
araujo has quit [Read error: Connection reset by peer]
vipjun has quit [Ping timeout: 260 seconds]
Luka_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brennanMKE has joined #ruby
araujo has joined #ruby
Monie has joined #ruby
Mitchellvanw has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 260 seconds]
RORgasm has joined #ruby
Methylated has joined #ruby
Luka_ has joined #ruby
<_br_> swingha: Whats the point of this? Is this some kind of rspec replacement?
theRoUS has quit [Ping timeout: 256 seconds]
Flashmasterson has quit [Quit: Leaving.]
sambao21 has joined #ruby
<_br_> swingha: Or is this a "fancy" wrapper around require / Object.send(:remove_const, :Foo) ?
brtdv has quit []
shadoi1 has joined #ruby
dhruvasagar has joined #ruby
noop has quit [Ping timeout: 272 seconds]
shredding has quit [Quit: shredding]
wallerdev has joined #ruby
tharindu has joined #ruby
shadoi has quit [Ping timeout: 264 seconds]
brennanMKE has quit [Ping timeout: 272 seconds]
aagdbl has quit [Quit: Leaving.]
heftig has quit [Ping timeout: 260 seconds]
k610 has quit [Quit: Leaving]
frustrum has joined #ruby
larissa has joined #ruby
KobraKao has quit [Quit: Leaving]
lsmola has quit [Ping timeout: 240 seconds]
sambao21 has quit [Ping timeout: 272 seconds]
iamjarvo has quit [Remote host closed the connection]
cpruitt has joined #ruby
mansi has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
mansi has joined #ruby
DanKnox is now known as DanKnox_away
siwica has joined #ruby
KobraKao has joined #ruby
mary5030 has joined #ruby
tharindu has quit [Ping timeout: 272 seconds]
tagrudev has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
kevind has joined #ruby
dzhulk has quit [Quit: Leaving.]
I_am_female has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
kstephens has quit [Ping timeout: 256 seconds]
aagdbl has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
tesuji has quit [Ping timeout: 265 seconds]
aagdbl has quit [Client Quit]
kofno has quit [Quit: leaving]
kstephens has joined #ruby
kil0byte has joined #ruby
tommylommykins has quit [Remote host closed the connection]
julweber has joined #ruby
sevenseacat has quit [Quit: Leaving.]
zz_tsykoduk has quit [Read error: Operation timed out]
ananthakumaran has joined #ruby
veinofstars has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
soukihei has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
iamjarvo has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
capicue has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
derebos has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
DanKnox_away is now known as DanKnox
iamjarvo has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
snovak has joined #ruby
KobraKao has quit [Quit: Leaving]
kstephens has quit [Ping timeout: 240 seconds]
brennanMKE has joined #ruby
kaspergrubbe has joined #ruby
theRoUS has joined #ruby
soba has quit [Ping timeout: 240 seconds]
kstephens has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
capicue has quit [Ping timeout: 264 seconds]
colonolGron has joined #ruby
niklasb has joined #ruby
DanKnox is now known as DanKnox_away
nateberkopec has joined #ruby
kaspergrubbe has quit [Read error: Operation timed out]
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
johnnyfuchs has joined #ruby
jlast has joined #ruby
Gooder has joined #ruby
DanKnox_away is now known as DanKnox
hashpuppy has joined #ruby
mrsolo has quit [Write error: Broken pipe]
KobraKao has joined #ruby
heftig has joined #ruby
jrhe has quit [Quit: jrhe]
axl_ has joined #ruby
<swingha> _br_, yes a wrapper around require/load for add scripting support to my main app.
gazarsgo has joined #ruby
petey_ has joined #ruby
<swingha> _br_, and i want to write scripts in a shell-like syntax.
fredjean has joined #ruby
brennanMKE has quit [Remote host closed the connection]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gja has joined #ruby
wallerdev has quit [Quit: wallerdev]
mrsolo has joined #ruby
burlyscudd has quit [Quit: Leaving.]
poseid has quit [Quit: Page closed]
jbpros has joined #ruby
soba has joined #ruby
hashpuppy has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
camilasan has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 265 seconds]
adeponte has joined #ruby
camilasan has joined #ruby
Banistergalaxy has joined #ruby
julweber has quit [Remote host closed the connection]
soba_ has joined #ruby
volty has joined #ruby
<_br_> swingha: shell like syntax in ruby? Hm
julweber has joined #ruby
<swingha> _br_, just a simple syntax, example: i want to associate callbacks to events, i do: register(:type) do ...
mlpinit_ is now known as mlpinit
Mitchellvanw has quit [Quit: Dozing off...]
julweber has quit [Remote host closed the connection]
|jemc| has quit [Ping timeout: 263 seconds]
xxpor__ has quit [Ping timeout: 240 seconds]
soba has quit [Ping timeout: 272 seconds]
julweber has joined #ruby
aspiers has quit [Ping timeout: 260 seconds]
Bira has quit [Remote host closed the connection]
adeponte has quit [Ping timeout: 256 seconds]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
soukihei has joined #ruby
srji has joined #ruby
burlyscudd has joined #ruby
allaire has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
julweber has quit [Ping timeout: 272 seconds]
shaunbaker has joined #ruby
heftig has quit [Read error: Connection reset by peer]
shaunbak_ has joined #ruby
heftig has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
agustinvinao has joined #ruby
aspiers has joined #ruby
kaspergrubbe has joined #ruby
kil0byte has quit [Ping timeout: 252 seconds]
utkarsh has quit [Changing host]
utkarsh has joined #ruby
_maes_ has joined #ruby
jrhe has joined #ruby
supreme__ has quit [Quit: Lost terminal]
mrsolo has quit [Quit: This computer has gone to sleep]
sayan has quit [Ping timeout: 246 seconds]
shaunbaker has quit [Ping timeout: 260 seconds]
hp_ has joined #ruby
hp_ has quit [Client Quit]
starfox21 has joined #ruby
mansi has quit [Ping timeout: 272 seconds]
rcedillor has joined #ruby
theRoUS has quit [Ping timeout: 240 seconds]
ce_afk is now known as cescalante
phantasm66 has joined #ruby
capicue has joined #ruby
bcd87 has joined #ruby
mansi has joined #ruby
Jake232 has joined #ruby
Clooth has quit [Quit: Leaving...]
lfox has joined #ruby
<mojjojo> how to share variables between functions in a ruby class?
capicue has quit [Ping timeout: 260 seconds]
<mojjojo> so to make them public and not private to each function
alex__c2022 has joined #ruby
jamblack has joined #ruby
<sweeper> mojjojo: use instance attributes
krz has joined #ruby
<sweeper> @myvar
postmodern has quit [Quit: Leaving]
<sweeper> for bonus points, initialize them
|jemc| has joined #ruby
<sweeper> before use
gja has quit [Quit: This computer has gone to sleep]
<mojjojo> and not self.myvar, what is the difference?
<sweeper> mm, 'attributes' is the wrong word, my bad
<sweeper> variables
<volty> @myvar is is and instance variable, attr_xxx is a 'attribute' / attr_accessor defines a self.myvar and self.myvar= methods
wallerdev has joined #ruby
Es0teric has joined #ruby
Methylated has quit [Quit: Leaving.]
rahulkmr has joined #ruby
yfeldblum has joined #ruby
Methylated has joined #ruby
`Chris` has quit [Read error: Connection reset by peer]
fntzr has quit [Read error: Operation timed out]
delasteve has joined #ruby
`Chris` has joined #ruby
delasteve has quit [Changing host]
delasteve has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<mojjojo> thanks
soba_ has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Quit: Leaving.]
otwieracz has left #ruby [#ruby]
amritanshu_RnD has quit [Quit: Leaving]
KobraKao has quit [Quit: Leaving]
jamblack has quit [Quit: jamblack]
colonolGron has quit [Read error: Connection reset by peer]
_maes_ has quit [Ping timeout: 256 seconds]
mercwithamouth has joined #ruby
<_br_> I have a chain of modals with prev, next and cancel buttons. How can I detect if a modal is just closing because its opening a new modal or closing because the user clicked on the background ? Event wise its always hide, hidden right?
<_br_> ups wrong channel, sorry
Methylated has quit [Quit: Leaving.]
colonolGron has joined #ruby
Methylated has joined #ruby
<mojjojo> in ruby class everythin is inherited from superclass including attr_accessors and initialize method?
capncrunch4me has joined #ruby
zz_tsykoduk has joined #ruby
<capncrunch4me> why would I be getting errors if I run a ruby script from cron vs by hand?
<capncrunch4me> getting: `require': cannot load such file -- memcached (LoadError)
Clooth has joined #ruby
<sweeper> mojjojo: yep
<sweeper> mojjojo: but you can override all the things, as well as call super
<volty> capncrunch4me: because of the difference of load path
rurban has quit [Read error: Connection reset by peer]
jamblack has joined #ruby
<capncrunch4me> what is a resolution here?
<sweeper> capncrunch4me: bundle install most likely
<sweeper> ohwait, I read back
havenwood has joined #ruby
KobraKao has joined #ruby
jamblack has quit [Client Quit]
<capncrunch4me> so that isn't the solution?
<sweeper> if you're running from cron, you maybe be using a different ruby/env
<volty> solution is to 1) fix root env RUBYLIB 2) explicit path
<mojjojo> and how do I call the function in the same class defined as def func , is it func() ?
yfeldblum has quit [Remote host closed the connection]
<sweeper> mojjojo: yes
<capncrunch4me> how would I tell?
Methylated has quit [Ping timeout: 260 seconds]
<volty> google for setting env variables with bash
<mojjojo> thanks
mengu has quit [Remote host closed the connection]
<volty> (probably /etc/profile, ~/.bash_profile -- or similar
<capncrunch4me> we used rvm plus the memcached gem
<volty> first of all you should determine the privileges needed to run that cron
thedonvaughn has quit [Ping timeout: 272 seconds]
<volty> (not always have to be root -- it depends on what you access, what you run etc etc )
fntzr has joined #ruby
Bira has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
fntzr has joined #ruby
momomomomo has joined #ruby
gustavn has joined #ruby
gustavn has quit [Client Quit]
boxmein has joined #ruby
Underbyte has joined #ruby
Underbyte has quit [Changing host]
Underbyte has joined #ruby
MrZYX|off is now known as MrZYX
thedonvaughn has joined #ruby
hamakn has quit [Ping timeout: 272 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
tharindu has joined #ruby
yfeldblum has joined #ruby
soba has joined #ruby
hashpuppy has joined #ruby
axl_ has quit [Quit: axl_]
ghr has quit [Quit: Computer has gone to sleep.]
baroquebobcat has joined #ruby
IceDragon has quit [Read error: Connection reset by peer]
volty has left #ruby ["Konversation terminated!"]
capicue has joined #ruby
alse has joined #ruby
jalcine_ is now known as jalcine
mrsolo has joined #ruby
tharindu has quit [Ping timeout: 272 seconds]
momomomomo has quit [Quit: momomomomo]
endash has joined #ruby
Es0teric has quit [Ping timeout: 252 seconds]
<capncrunch4me> tried export ruby path
<capncrunch4me> no dice
maletor has joined #ruby
jprovazn has quit [Quit: Odcházím]
capicue has quit [Ping timeout: 256 seconds]
tylersmith has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
soba has quit [Ping timeout: 272 seconds]
<capncrunch4me> set path to /usr/local/rvm/gems/ruby-1.9.3-p448 still can't find it
<capncrunch4me> grr, frustrating
momomomomo has joined #ruby
jonathanwallace3 has quit [Ping timeout: 240 seconds]
Lewix has joined #ruby
Banistergalaxy has quit [Ping timeout: 265 seconds]
nvrch has quit [Quit: nvrch]
axl_ has joined #ruby
thepumpkin has joined #ruby
okinomo has joined #ruby
astrobun_ has joined #ruby
svector has quit [Ping timeout: 252 seconds]
burlyscudd has joined #ruby
Luka_ has left #ruby ["Textual IRC Client: www.textualapp.com"]
brennanMKE has joined #ruby
sambao21 has joined #ruby
<_br_> when you execute the cron script what does "type rvm" say? Shell function or path?
sailias has quit [Quit: Leaving.]
astrobunny has quit [Ping timeout: 252 seconds]
thepumpkin has quit [Ping timeout: 272 seconds]
brennanMKE has quit [Ping timeout: 245 seconds]
ner0x has joined #ruby
brennanMKE has joined #ruby
sambao21 has quit [Ping timeout: 272 seconds]
pel_daniel has joined #ruby
micho has joined #ruby
mlpinit has quit [Remote host closed the connection]
bline79 has quit [Remote host closed the connection]
mlpinit has joined #ruby
bline79 has joined #ruby
Methylated has joined #ruby
avril14th has quit [Remote host closed the connection]
pleal has quit [Read error: Connection reset by peer]
pleal has joined #ruby
pitzips has joined #ruby
pleal has quit [Remote host closed the connection]
<micho> hello. Is there any reason, about which I have no idea, why it: http://pastebin.com/WfB8eucs doesn't work?
mercwithamouth has quit [Ping timeout: 265 seconds]
neonlex has quit [Ping timeout: 240 seconds]
jibi has quit [Quit: .]
pleal has joined #ruby
tharindu has joined #ruby
rahulkmr has quit [Ping timeout: 256 seconds]
kimos has joined #ruby
i_s has joined #ruby
<matti> I wonder.
mlpinit has quit [Ping timeout: 268 seconds]
apeiros has quit [Remote host closed the connection]
alex__c2022 has quit [Quit: alex__c2022]
_bart has quit [Ping timeout: 240 seconds]
<matti> How does one make 0755 in ERB render as-is, instead of its integer value?
apeiros has joined #ruby
endash has quit [Quit: endash]
larissa has quit [Quit: Leaving]
pleal has quit [Remote host closed the connection]
gazarsgo has quit [Read error: Operation timed out]
dhruvasagar has quit [Ping timeout: 248 seconds]
Banistergalaxy has joined #ruby
<heftig> matti: 0755 is an integer
Bira has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
<heftig> is you want to have it as-is, use "0755"
Bira has joined #ruby
apeiros has quit [Ping timeout: 245 seconds]
pitzips has quit [Quit: Leaving]
pleal has joined #ruby
Stygia has quit [Quit: Leaving]
colonolGron has quit [Quit: Lost terminal]
zarul has quit [Ping timeout: 256 seconds]
`Chris` has quit [Read error: Connection reset by peer]
`Chris` has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
lfox has quit [Quit: ZZZzzz…]
caveat- has quit [Ping timeout: 256 seconds]
<matti> heftig: I am not talking about it being a Fixnum.
<matti> I suppose it cannot be helped.
jbpros has joined #ruby
siwica has quit [Ping timeout: 272 seconds]
pleal has quit [Remote host closed the connection]
jonathancutrell has joined #ruby
Ripp__ has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
<jonathancutrell> Hey folks - I'm trying to capture a variable from osascript that I'm running via ruby's `system'
<jonathancutrell> the command looks like: system('osascript', '-e' 'display dialog "Question to get answers from" buttons {"No", "Yes"}')
caveat- has joined #ruby
kevind_ has joined #ruby
<jonathancutrell> It's easy enough in AppleScript on its own, but this is inside a ruby script of course, so I need to pass that variable back.
ssmithstone has joined #ruby
zz_jrhorn424 is now known as jrhorn424
jbpros has quit [Client Quit]
julweber has joined #ruby
Methylated has quit [Quit: Leaving.]
Scient has quit [Ping timeout: 272 seconds]
sumark has joined #ruby
zigomir has quit [Quit: zigomir]
kaspergrubbe has quit [Ping timeout: 248 seconds]
Anticom has quit [Ping timeout: 265 seconds]
delasteve has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
Scient has joined #ruby
veinofstars has quit [Quit: veinofstars]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
burlyscudd has quit [Ping timeout: 272 seconds]
Nisstyre-laptop has joined #ruby
kevind has quit [Ping timeout: 272 seconds]
kevind_ is now known as kevind
Squarepy_ has quit [Read error: Operation timed out]
nisstyre has quit [Disconnected by services]
ssmithstone has left #ruby [#ruby]
mansi has quit [Remote host closed the connection]
slash_nick has quit [Remote host closed the connection]
Nisstyre-laptop is now known as nisstyre
Todd has quit [Remote host closed the connection]
slash_nick has joined #ruby
gwb3 has quit [Ping timeout: 245 seconds]
nomenkun has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
mansi has joined #ruby
gwb3 has joined #ruby
yours_truly has joined #ruby
jbpros has joined #ruby
Soda has quit [Read error: Connection reset by peer]
Squarepy has joined #ruby
hamakn has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
burlyscudd has quit [Client Quit]
rcedillor has quit [Quit: leaving]
adeponte has joined #ruby
`Chris` has quit []
`Chris` has joined #ruby
Jake232 has joined #ruby
mansi has quit [Ping timeout: 268 seconds]
lfox has joined #ruby
Andrevan has joined #ruby
nik_-_ has joined #ruby
juan_ has quit [Quit: Leaving]
eeriegeek has quit [Quit: Leaving.]
lyanchih has joined #ruby
lukec has quit [Quit: lukec]
user258467 has quit [Quit: Quitte]
mj12albert has quit [Quit: Textual IRC Client: www.textualapp.com]
Methylated has joined #ruby
dash_ has joined #ruby
Guedes has left #ruby ["Saindo"]
gregorg has quit [Ping timeout: 272 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
jonathanwallace3 has joined #ruby
<havenwood> jonathancutrell: usually you use backticks (%x) when you care about the result
<jonathancutrell> havenwood: Makes sense.
<jonathancutrell> havenwood: Thank you.
<havenwood> jonathancutrell: guess you could do it manually with exec: pid = fork { exec('osascript', '-e', 'display dialog "Question to get answers from" buttons {"No", "Yes"}') }; Process.wait pid
<havenwood> jonathancutrell: or maybe look at IO.popen
gregorg has joined #ruby
dash_ has quit [Client Quit]
sailias has joined #ruby
<havenwood> ^ exec is verbose of course, but should work
d2dchat_ has joined #ruby
peregrine81 has joined #ruby
cpruitt has quit [Read error: Connection reset by peer]
mansi has joined #ruby
cpruitt has joined #ruby
momomomomo has quit [Quit: momomomomo]
SilverKey has quit [Remote host closed the connection]
ebetancourt has quit [Ping timeout: 240 seconds]
Notte has joined #ruby
mj12albe_ has joined #ruby
nouitfvf_ has quit []
mj12albe_ has quit [Max SendQ exceeded]
mneorr has joined #ruby
alex__c2022 has joined #ruby
bamdad has joined #ruby
threesome has joined #ruby
ph88 has joined #ruby
aspires has joined #ruby
<ph88> anyone experience with phusion passenger here ?
dhruvasagar has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
gregorg has quit [Ping timeout: 246 seconds]
tommylommykins has joined #ruby
fntzr has quit [Ping timeout: 248 seconds]
julweber has quit [Remote host closed the connection]
<micho> hello. Is there any reason, about which I have no idea, why it: http://pastebin.com/WfB8eucs doesn't work?
<micho> I use datamapper (on #datamapper I got no reply)
timonv has quit [Remote host closed the connection]
includex has quit [Quit: Textual IRC Client: www.textualapp.com]
jalcine is now known as jalcine_
zigomir has joined #ruby
timonv has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
jonathancutrell has left #ruby [#ruby]
tyleretters_ has joined #ruby
apeiros has joined #ruby
camilasan has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
gregorg has joined #ruby
heftig has quit [Quit: Quitting]
CaptainJet has joined #ruby
perplexa has joined #ruby
tyleretters has quit [Ping timeout: 260 seconds]
tyleretters_ is now known as tyleretters
mj12albert has joined #ruby
Banistergalaxy has quit [Quit: Bye]
Jake232 has quit [Ping timeout: 245 seconds]
noname001 has quit [Ping timeout: 260 seconds]
<perplexa> hi, when i have a class 'x' with 2 dicts 'a' and 'b' and i have a variable 'c' that holds either a or b, can i somehow access x.a or x.b depending on what's in c without using if/else? something like x.eval(c)?
timonv has quit [Ping timeout: 245 seconds]
julweber has joined #ruby
Tuxist has joined #ruby
petey__ has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nik_-_ has quit [Quit: nik_-_]
xk_id has joined #ruby
nari has quit [Ping timeout: 246 seconds]
krz has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Quit: Leaving.]
mansi has quit [Ping timeout: 272 seconds]
<apeiros> perplexa: I assume you mean *object*, not *class* and I assume you mean you have 2 methods, 'a' and 'b'
zeade has joined #ruby
<perplexa> i have attr_accessors.
<apeiros> perplexa: if so then see Object#send. c = 'a'; x.send(c)
okinomo has quit [Ping timeout: 265 seconds]
relix has joined #ruby
<apeiros> attr_accessors are methods
<perplexa> i know :P
<perplexa> i just wanted to keep the question short
<apeiros> then why did you say it?
heftig has joined #ruby
<perplexa> because you're taking the piss about terminology despite understanding perfectly fine what i'm asking :)
tiglog has quit [Remote host closed the connection]
gregorg has quit [Ping timeout: 245 seconds]
<apeiros> perplexa: ok, next time I'll just ignore you.
<perplexa> thx tho :P
petey_ has quit [Ping timeout: 260 seconds]
<apeiros> if it's too much of a bother for you to use correct terminology then I'm not interested in even trying to help you.
<perplexa> like if i didn't know an object is an instance of a class? ;p
<perplexa> so i'm not allowed to refer to the class itself? :)
<apeiros> perplexa: not all objects are classes
<perplexa> nvm, this is stupid
<apeiros> your question made no sense the way you asked it.
drumsrgr_ has quit [Ping timeout: 240 seconds]
<perplexa> but you got it?
mercwithamouth has quit [Ping timeout: 260 seconds]
<perplexa> pretty sure it could have been worse
<perplexa> anyways, thanks for helping
<apeiros> yes, keep orienting yourself towards how you could do it even worse
<apeiros> seriously, wtf is wrong with you?
mercwithamouth has joined #ruby
<apeiros> you get told the right terminology, you get help, and you're acting like an ass about it.
gregorg has joined #ruby
<apeiros> learn the f'ing terminology and use it.
<perplexa> i said thanks, f*ckwit
<perplexa> let it be
<perplexa> ignore me, be done
momomomomo has joined #ruby
<perplexa> i'll do the same, have a nice evening
jalcine_ is now known as jalcine
brian__ has joined #ruby
micho has quit [Quit: Leaving]
perplexa was kicked from #ruby by apeiros [no insults]
DrShoggoth has joined #ruby
sepp2k has quit [Quit: Konversation terminated!]
jbpros has quit [Quit: jbpros]
iamjarvo has quit [Ping timeout: 272 seconds]
Banistergalaxy has joined #ruby
newbiehacker has quit [Ping timeout: 240 seconds]
<apeiros> what an ass.
bamdad has quit [Quit: bamdad]
whunt has joined #ruby
aganov has quit [Remote host closed the connection]
wildroman has quit [Remote host closed the connection]
whunt has quit [Client Quit]
mercwithamouth has quit [Ping timeout: 272 seconds]
petey_ has joined #ruby
wildroman has joined #ruby
gregorg has quit [Ping timeout: 272 seconds]
<havenwood> ph88: Some, what's your Passenger question?
petey__ has quit [Read error: Connection reset by peer]
DrShoggoth has quit [Remote host closed the connection]
<havenwood> micho, oh he left
<havenwood> well, it was of course `user` the method each time being a different instance of User
tylersmith has joined #ruby
_bart has joined #ruby
<sweeper> obviously a python user
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
petey_ has quit [Read error: Connection reset by peer]
zeropx has joined #ruby
petey_ has joined #ruby
kstephens has quit [Ping timeout: 272 seconds]
soba_ has joined #ruby
gregorg has joined #ruby
iamjarvo has joined #ruby
heidi has joined #ruby
ivanoats has quit [Quit: IRCRelay - http://ircrelay.com]
wildroman has quit [Ping timeout: 268 seconds]
ivanoats has joined #ruby
ivanoats has joined #ruby
ivanoats has quit [Changing host]
kstephens has joined #ruby
starfox21 has quit [Quit: starfox21]
schfkt has joined #ruby
schfkt has left #ruby [#ruby]
Spami has joined #ruby
freerobby has quit [Quit: Leaving.]
soba__ has joined #ruby
eject_ck has quit [Quit: Leaving.]
freerobby has joined #ruby
Voodoofish430 has joined #ruby
_bart has quit []
veinofstars has joined #ruby
heidi has quit [Client Quit]
kevinykchan has quit [Quit: Computer has gone to sleep.]
soba_ has quit [Ping timeout: 240 seconds]
johnnyfuchs has quit [Quit: Leaving.]
barratt has quit [Ping timeout: 260 seconds]
soba__ has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
apeiros has joined #ruby
jrhorn424 is now known as zz_jrhorn424
bnagy has quit [Ping timeout: 240 seconds]
Guest19745 has quit [Remote host closed the connection]
Nogbit has joined #ruby
mercwithamouth has joined #ruby
bamdad has joined #ruby
b00stfr3ak has joined #ruby
Methylated has quit [Quit: Leaving.]
Xeago has quit [Remote host closed the connection]
gyre007 has quit [Ping timeout: 246 seconds]
hashpuppy has quit [Quit: Computer has gone to sleep.]
brtdv has joined #ruby
larissa has joined #ruby
xk_id has quit [Quit:
drumsrgr8forn8 has joined #ruby
pothibo has joined #ruby
Monie has joined #ruby
c0rn has joined #ruby
lucazi has quit [Ping timeout: 252 seconds]
theRoUS has quit [Ping timeout: 248 seconds]
drumsrgr_ has joined #ruby
bamdad has quit [Client Quit]
Hanmac has joined #ruby
jamblack has joined #ruby
heidi has joined #ruby
eject_ck has joined #ruby
lukec has joined #ruby
hiall has quit [Ping timeout: 240 seconds]
drumsrgr8forn8 has quit [Ping timeout: 245 seconds]
jaimef has quit [Excess Flood]
snovak_ has joined #ruby
KobraKao has quit [Quit: Leaving]
tatsuya_o has quit [Remote host closed the connection]
alex__c2022 has quit [Quit: alex__c2022]
banisterfiend has joined #ruby
snovak has quit [Ping timeout: 240 seconds]
zenon3_ has quit [Ping timeout: 250 seconds]
petey_ has quit [Remote host closed the connection]
petey_ has joined #ruby
Clooth has quit [Quit: Leaving...]
xk_id has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
petey_ has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
petey_ has joined #ruby
petey_ has quit [Remote host closed the connection]
thepumpkin has joined #ruby
astrobun_ has quit [Ping timeout: 268 seconds]
petey_ has joined #ruby
burlyscudd has joined #ruby
fenec2 has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
jaimef has joined #ruby
lnormous has joined #ruby
fedalto has joined #ruby
peregrine81 has quit []
okinomo has joined #ruby
julweber has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 248 seconds]
astrobunny has joined #ruby
Liquid-- has joined #ruby
theRoUS has joined #ruby
jalcine is now known as jalcine_
mercwithamouth has quit [Ping timeout: 265 seconds]
yvemath has quit [Read error: Connection reset by peer]
yvemath has joined #ruby
saarinen has joined #ruby
zarubin has quit [Ping timeout: 256 seconds]
johnnyfuchs has joined #ruby
Renich has joined #ruby
lsmola has joined #ruby
<Renich> hello
<MrZYX> hi
<Renich> I want to write a little command line tool; to consume an API
<Renich> that said, I like MVC and I think it could be applicable but I don't want to over complicate
<Renich> any recommendations?
delasteve has joined #ruby
delasteve has joined #ruby
delasteve has quit [Changing host]
Notte has quit [Remote host closed the connection]
<wuest> Renich: MVC for a little cli tool? Sounds overcomplicated.
<MrZYX> mvc is a design pattern, it's just often misused as an architecture pattern
Notte has joined #ruby
<Renich> wuest: yeah, but I don't want to have a kilometric file; I'd like to have things separated
<wuest> Separation != mvc
<MrZYX> ^
<Renich> since there are a ton of possibilities to the API I am to consume.
aspires has quit [Quit: sudo making a sandwich]
<Renich> wuest: yes; I agree. I just mentioned it to add context.
sbos99 has joined #ruby
<Renich> any recommendations?
<wuest> My recommendation, if you're thinking a lot about architecture, layout, &c? Go read Design Patterns in Ruby. It's got lots of information on A: how to think about design patterns from GoF, and B: how that thinking translates in an idiomatic way into the Ruby world
kaspergrubbe has joined #ruby
<wuest> If purchasing a book isn't in the cards, go look at how other cli applications tend to be laid out. Experiment. Find ways that work and make sense to you.
<Renich> wuest: thanks, I will
aspires has joined #ruby
capicue has joined #ruby
einarj has quit [Remote host closed the connection]
snovak_ has quit [Remote host closed the connection]
soheil has quit []
Notte has quit [Ping timeout: 252 seconds]
soheil has joined #ruby
snovak has joined #ruby
<Renich> wuest: is it still relevant; the book? It's 2007
CaptainJet has quit [Read error: Connection reset by peer]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kh019267 has joined #ruby
snovak_ has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
fgo has quit [Remote host closed the connection]
niklasb has quit [Read error: Operation timed out]
mercwithamouth has joined #ruby
starfox21 has joined #ruby
hashpuppy has joined #ruby
Zai00 has quit [Quit: Zai00]
snovak__ has joined #ruby
attomos has joined #ruby
<Renich> thanx, momomomomo
<attomos> hi
<momomomomo> hi attomos
<attomos> oh yeah, I can talk now
yfeldblum has quit [Read error: Connection reset by peer]
mansi has joined #ruby
ssvo_ has joined #ruby
eject_ck has quit [Quit: Leaving.]
yfeldblum has joined #ruby
jalcine_ is now known as jalcine
snovak has quit [Ping timeout: 272 seconds]
snovak_ has quit [Ping timeout: 252 seconds]
CaptainJet has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
<havenwood> g'morning
ssvo has quit [Ping timeout: 246 seconds]
srji has quit [Ping timeout: 264 seconds]
kimos has quit [Quit: leaving]
<Renich> momomomomo: great stuff on the slides
<momomomomo> agreed, good luck
mercwithamouth has quit [Ping timeout: 245 seconds]
<momomomomo> Nogbit: there are examples on the slide deck
gja has joined #ruby
<momomomomo> :)
vlad_starkov has quit [Remote host closed the connection]
carif has joined #ruby
<Nogbit> not a complete solution like I linked to
Zai00 has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sepp2k has joined #ruby
pencilcheck has quit [Remote host closed the connection]
ssvo has joined #ruby
Squarepy has quit [Quit: Leaving]
ssvo_ has quit [Ping timeout: 252 seconds]
gja has quit [Client Quit]
Methylated has joined #ruby
okinomo has quit [Ping timeout: 260 seconds]
FukUmist has joined #ruby
failshell has quit [Remote host closed the connection]
<FukUmist> help?
pushpak has joined #ruby
Zai00 has quit [Ping timeout: 272 seconds]
mercwithamouth has joined #ruby
carif has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Remote host closed the connection]
attomos has quit [Quit: leaving]
maletor has quit [Quit: Computer has gone to sleep.]
failshell has joined #ruby
Lewix_ has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
ebetancourt has joined #ruby
maletor has joined #ruby
Lewix has quit [Ping timeout: 272 seconds]
c0rn_ has joined #ruby
zeropx has quit [Quit: zeropx]
c0rn has quit [Ping timeout: 246 seconds]
zeropx has joined #ruby
wildroman has joined #ruby
gyre007 has joined #ruby
Mon_Ouie has joined #ruby
dzhulk has joined #ruby
failshell has quit [Remote host closed the connection]
tharindu has quit [Quit: Leaving...]
choppy has joined #ruby
<havenwood> FukUmist: Welcome to #ruby. Can i place your order?
weirdpercent has quit [Quit: Leaving]
zeropx has quit [Ping timeout: 240 seconds]
okinomo has joined #ruby
iamjarvo has quit [Remote host closed the connection]
mansi has quit [Read error: Connection reset by peer]
lyanchih has quit [Quit: lyanchih]
burlyscudd has joined #ruby
iamjarvo has joined #ruby
mansi has joined #ruby
whunt has joined #ruby
zeropx has joined #ruby
brtdv has quit []
jamblack has quit [Quit: jamblack]
nisstyre has quit [Ping timeout: 272 seconds]
freerobby has quit [Read error: Connection reset by peer]
<Akuma> hello, I'm encountering some issues with substrings and encoding. For some reason the encoding of the substring becomes CP850 while the original string is UTF-8
kevinykchan has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
<Akuma> when I try to encode he substring by doing x = y[0,5].encode('UTF-8') I get an error saying that utf8 and cp850 are not compatible
kevinykchan has quit [Client Quit]
kevinykchan has joined #ruby
jerius_ has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mneorr_ has joined #ruby
iamjarvo has quit [Ping timeout: 260 seconds]
jerius has quit [Ping timeout: 248 seconds]
Underbyte has quit [Quit: Leaving...]
theoretick has joined #ruby
arietis has joined #ruby
mneorr_ has quit [Remote host closed the connection]
mneorr has joined #ruby
Spami has quit [Read error: Connection timed out]
marcdel has joined #ruby
tharindu has joined #ruby
Spami has joined #ruby
iamjarvo has joined #ruby
mudmaster has quit [Remote host closed the connection]
mudmaster has joined #ruby
freerobby has joined #ruby
carif has joined #ruby
wildroman has quit [Remote host closed the connection]
zeropx has quit [Quit: zeropx]
mercwithamouth has quit [Ping timeout: 272 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
gr33n7007h has joined #ruby
choobie has left #ruby [#ruby]
brian__ has quit [Quit: Leaving]
zarul has joined #ruby
Notte has joined #ruby
burlyscudd has quit [Quit: Leaving.]
momomomomo has quit [Quit: momomomomo]
mneorr has quit [Ping timeout: 268 seconds]
RicFlair has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130910160258]]
gyre007 has quit [Remote host closed the connection]
pothibo has quit [Quit: pothibo]
zeropx has joined #ruby
nadirvardar has joined #ruby
kil0byte has joined #ruby
Al_ has quit [Quit: Al_]
mneorr has joined #ruby
mercwithamouth has joined #ruby
breakingthings has quit []
snovak__ has quit [Remote host closed the connection]
brennanMKE has quit [Remote host closed the connection]
snovak has joined #ruby
asteros has joined #ruby
brennanMKE has joined #ruby
choobie has joined #ruby
niklasb has joined #ruby
kirun has joined #ruby
zipper has joined #ruby
<apeiros> Akuma: you're saying that y.encoding == Encoding::UTF_8 and y[0,5].encoding != Encoding::UTF_8?
heftig has quit [Quit: Quitting]
Ripp__ has quit []
k610 has joined #ruby
FukUmist has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
rahulkmr has joined #ruby
pdimitrov has quit [Ping timeout: 272 seconds]
pr0ggie has quit [Ping timeout: 272 seconds]
rdark has quit [Quit: leaving]
pr0ggie has joined #ruby
pdimitrov has joined #ruby
Shidash has joined #ruby
_if has joined #ruby
barratt has joined #ruby
carif has quit [Quit: Ex-Chat]
alex__c2022 has joined #ruby
zipper has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
carif_ has joined #ruby
nsxt has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
kindjal has joined #ruby
yours_truly has quit [Quit: Leaving]
RichardBaker has joined #ruby
mneorr_ has joined #ruby
<nsxt> are there any libraries for analyzing fluctuations in graph data? i'm not looking to plot anything, rather looking to analyze what _would_ look like a line chart if i plotted a series of values
mark06 has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
kindjal_ has joined #ruby
brennanMKE has quit [Remote host closed the connection]
zz_jrhorn424 is now known as jrhorn424
bean has joined #ruby
hashpuppy has quit [Quit: Computer has gone to sleep.]
mneorr_ has quit [Remote host closed the connection]
mneorr has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
kindjal has quit [Ping timeout: 246 seconds]
kindjal_ is now known as kindjal
mneorr has joined #ruby
kidoz has joined #ruby
kobain has quit [Ping timeout: 272 seconds]
cescalante is now known as ce_afk
ewag has joined #ruby
<Akuma> aperios: yes
carif_ has quit [Quit: Ex-Chat]
<Akuma> apeiros:
jkline has joined #ruby
<apeiros> Akuma: can you provide a short demo code including output?
<apeiros> or, wait
<Akuma> sure, gimme a sec
Elhu has joined #ruby
carif__ has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> Akuma: can you run this? http://pastie.org/8430517
mneorr_ has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
bocaneri has quit [Remote host closed the connection]
TheMoonMaster has quit [Excess Flood]
<Akuma> here is the code: http://pastebin.com/KfTpcCnd
TheMoonMaster has joined #ruby
gyre007 has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
breakingthings has joined #ruby
<Akuma> your code shows this: [#<Encoding:UTF-8>, #<Encoding:UTF-8>, #<Encoding:UTF-8>]
<apeiros> hm
<apeiros> ok, can you paste the precise exception you get with your code?
capicue has quit [Quit: Leaving...]
<MrZYX> can you also post Encoding.default_internal and Encoding.default_external?
<Akuma> here is the output: http://pastebin.com/yfmyQXP1
zarubin has joined #ruby
rahulkmr has quit [Ping timeout: 272 seconds]
<MrZYX> and lst.encoding
<Akuma> line 162 would correspond to this: nln += "#{field};"
aagdbl has joined #ruby
<apeiros> Akuma: btw., unrelated to your issue - you should use the CSV stdlib library
<MrZYX> and nicer variable names :P
<apeiros> makes your code simpler and your output probably more correct ;-)
mneorr_ has quit [Remote host closed the connection]
<Akuma> default external shows CP850
<Akuma> Default internal shows nothing
mneorr has joined #ruby
<apeiros> Akuma: you're probably reading input then and since default_external is CP850, so will be the result of that reading be CP850
<Akuma> apeiros: good to know, I didn't know there was such a thing, I'll probably use it for my next CSV project, this one is more of a one time conversion use
sayan has joined #ruby
<apeiros> either change default_external or read with explicit encoding argument. e.g. File.read(path, encoding: 'utf-8')
xk_id has quit [Quit:
peregrine81 has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
marcdel has joined #ruby
<Akuma> I'm currently doing File.open(filename)
mneorr has joined #ruby
<apeiros> same argument there. File.open(filename, encoding: 'utf-8')
<Akuma> let me give that a try
einarj has joined #ruby
peregrine81 has quit [Client Quit]
BizarreCake has quit [Read error: Operation timed out]
rezzack has joined #ruby
Bira has quit [Remote host closed the connection]
<Akuma> apeiros: the file open argument did the trick
jerius_ has quit []
<Akuma> Thanks a lot, I greatly appreciate it
fgo has joined #ruby
hashpuppy has joined #ruby
<apeiros> Akuma: another btw. - foo.each do |x| puts x end --> you can just do `puts foo` instead
srji has joined #ruby
timonv has joined #ruby
ewag has quit [Remote host closed the connection]
<apeiros> line 94-96 in your pastie --> puts nlst
jibi has joined #ruby
burlyscudd has quit [Quit: Leaving.]
<apeiros> and line 100-104, just File.write(of, nlst.join(''))
<apeiros> (might need the encoding argument too btw.)
freezey has joined #ruby
<Akuma> puts will print on screen?
<apeiros> puts is almost the same as print
mansi has quit [Remote host closed the connection]
<apeiros> yes, it prints on screen
larissa has quit [Quit: Leaving]
peregrine81 has joined #ruby
<Akuma> I see
<Akuma> still getting acquainted with ruby
<apeiros> additionally it appends a newline to the output if none is present. and it can print an array of strings directly.
mansi has joined #ruby
tharindu has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 245 seconds]
DrShoggoth has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
ryanRT has quit [Read error: Connection reset by peer]
fgo has quit [Ping timeout: 245 seconds]
gja has joined #ruby
ryanRT has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
atmosx has joined #ruby
<Banistergalaxy> Apeiros Sup Swiss guy
<apeiros> Akuma: http://pastie.org/8430563 - alternative way to write your line 37-49
<Akuma> Thanks for the tips
alvaro_o has joined #ruby
dcunit3d has joined #ruby
<apeiros> whoops, without the ==
srji has quit [Ping timeout: 264 seconds]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<apeiros> Akuma: http://pastie.org/8430568 - and even a bit shorter
<apeiros> Banistergalaxy: too much work. finally going back to work a bit on my C parser for EPT
<apeiros> Banistergalaxy: what about you? enjoying your new gig? :)
existensil has quit [Quit: leaving]
gwb3 has quit [Ping timeout: 245 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has quit [Ping timeout: 245 seconds]
<Akuma> hehe, lots of habits from other languages, trying to mimic the same. It seems Ruby does have simpler ways to achieve lots of things
slash_nick has quit [Remote host closed the connection]
jeer_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
c0rn_ has quit [Quit: Computer has gone to sleep.]
slash_nick has joined #ruby
mneorr has quit [Remote host closed the connection]
<Akuma> apeiros: Thanks a lot for your help,
<apeiros> Akuma: no problem, you're welcome ;-)
<Banistergalaxy> Just signed contract, have to fly to nyc next month, but it's good in theory, good pay, can work where/when I want etc
mneorr has joined #ruby
<apeiros> Akuma: yes, it sometimes takes a bit of unlearning in order to use ruby to its fullest.
jerius has joined #ruby
jerius has quit [Client Quit]
levity_island has joined #ruby
DrShoggoth has quit [Remote host closed the connection]
<Akuma> indeed!
lfox has quit [Quit: ZZZzzz…]
flops has joined #ruby
Methylated has quit [Quit: Leaving.]
Methylated has joined #ruby
vipjun has joined #ruby
mansi has joined #ruby
coderhs has joined #ruby
`Chris` has quit [Read error: Connection reset by peer]
`Chris` has joined #ruby
kvirani has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
roadt_ has quit [Ping timeout: 260 seconds]
kvirani has joined #ruby
hashpuppy has quit [Quit: Computer has gone to sleep.]
mneorr has quit [Ping timeout: 265 seconds]
marcdel has joined #ruby
mercwithamouth has joined #ruby
vpretzel has quit [Remote host closed the connection]
supergeek has joined #ruby
supergeek has quit [Max SendQ exceeded]
Azulinho_ has quit [Ping timeout: 248 seconds]
Methylated has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
eichenwald has joined #ruby
freezey has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
Shidash1 has joined #ruby
Shidash has quit [Read error: Connection reset by peer]
freezey has joined #ruby
devoldmx3 has joined #ruby
forced_request has joined #ruby
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
k610 has quit [Ping timeout: 260 seconds]
zipper has joined #ruby
jerius has joined #ruby
michael_mbp is now known as zz_michael_mbp
<apeiros> anybody know where Data_Make_Struct is defined?
jerius has quit [Client Quit]
niklasb has quit [Ping timeout: 245 seconds]
devoldmx has quit [Ping timeout: 272 seconds]
niklasb has joined #ruby
vlad_starkov has joined #ruby
freezey has quit [Ping timeout: 248 seconds]
Methylated has joined #ruby
ravster has joined #ruby
gwb3 has joined #ruby
dcunit3d has quit [Quit: dcunit3d]
ewnd9 has quit [Ping timeout: 272 seconds]
wildroman has joined #ruby
ybart has joined #ruby
kstephens has quit [Ping timeout: 245 seconds]
elaptics is now known as elaptics`away
jrhorn424 is now known as zz_jrhorn424
Scient has quit [Ping timeout: 240 seconds]
hashpuppy has joined #ruby
bluOxigen has joined #ruby
zz_jrhorn424 is now known as jrhorn424
slash_nick has quit [Ping timeout: 272 seconds]
randomnick_ has joined #ruby
jrhorn424 is now known as zz_jrhorn424
slash_nick has joined #ruby
kstephens has joined #ruby
Tearan has joined #ruby
jerius has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
krawchyk has quit []
<Tearan> Hey ya… why would x.split.reverse.join(" ") drop punctuation. How do I fix that
Nogbit has left #ruby [#ruby]
petey_ has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
petey_ has joined #ruby
<|jemc|> apeiros: it's a macro in ruby.h
<Tearan> I tont understand that. Explain it to me like I'm 5
<|jemc|> apeiros: or rather, in /usr/include/ruby/ruby.h
<apeiros> |jemc|: thanks, I forgot to tell that I found it :(
<Tearan> oh.. never mind..
i_s has quit [Remote host closed the connection]
brennanMKE has joined #ruby
eeriegeek has joined #ruby
<apeiros> I thought it was a function and was really curios how it allowed to pass a type
i_s has joined #ruby
freerobby has joined #ruby
Bira has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
brennanMKE has quit [Read error: Connection reset by peer]
mansi has quit [Remote host closed the connection]
brennanMKE has joined #ruby
peregrine81 has quit []
mansi has joined #ruby
stkowski has joined #ruby
tyleretters has quit [Ping timeout: 265 seconds]
okinomo has quit [Ping timeout: 246 seconds]
mansi has quit [Read error: Connection reset by peer]
Scient has joined #ruby
<Hanmac> apeiros: in my bindings i have helper functions around that ... so you can do that: Type *ptr = wrap<Type*>(Rvalue); (where wrap is a template with specifications)
<zipper> >> x = 5
<eval-in> zipper => 5 (https://eval.in/57399)
tyleretters has joined #ruby
starfox21 has quit [Quit: starfox21]
petey_ has quit [Ping timeout: 272 seconds]
<zipper> Ha! So happy I made the bot interpreat ruby.
<|jemc|> Tearan: post your input and output
<|jemc|> in a pastebin
<|jemc|> "What's wrong? Anything?".split.reverse.join(" ")
<zipper> I wish the python bot did that.
wildroman has quit [Remote host closed the connection]
<Hanmac> apeiros: and because in most functions you need something like self -> cself i have a macro named _self which does that for you
<|jemc|> >> "What's wrong? Anything?".split.reverse.join(" ")
<eval-in> |jemc| => "Anything? wrong? What's" (https://eval.in/57400)
mansi has joined #ruby
wildroman has joined #ruby
i_s has quit [Ping timeout: 245 seconds]
rippa has joined #ruby
mansi has quit [Read error: Connection reset by peer]
sarlalian has quit [Quit: WeeChat 0.4.0]
mansi has joined #ruby
sarlalian has joined #ruby
brennanMKE has quit [Ping timeout: 246 seconds]
mansi has quit [Remote host closed the connection]
freezey has joined #ruby
JohnBat26 has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
peregrine81 has joined #ruby
mansi has joined #ruby
banisterfiend has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
theoretick has joined #ruby
nadirvardar has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 268 seconds]
Monie has joined #ruby
carif__ has quit [Ping timeout: 265 seconds]
wildroman has quit [Ping timeout: 252 seconds]
Banistergalaxy has quit [Ping timeout: 272 seconds]
nsxt has quit [Quit: Leaving]
asteros has quit [Quit: asteros]
Bira has quit [Ping timeout: 272 seconds]
tatsuya_o has joined #ruby
mercwithamouth has joined #ruby
okinomo has joined #ruby
mansi_ has joined #ruby
jeer_ has joined #ruby
dcunit3d has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
jeer_ has quit [Max SendQ exceeded]
drumsrgr_ has quit [Remote host closed the connection]
mansi_ has quit [Remote host closed the connection]
jeer_ has joined #ruby
Azulinho_ has joined #ruby
jeer_ has quit [Max SendQ exceeded]
jeer_ has joined #ruby
jeer_ has quit [Max SendQ exceeded]
dzhulk has quit [Quit: Leaving.]
markisonfire has joined #ruby
jeer_ has joined #ruby
jeer_ has quit [Max SendQ exceeded]
jkline has quit [Quit: jkline]
jeer_ has joined #ruby
jeer_ has quit [Max SendQ exceeded]
ce_afk is now known as cescalante
iamjarvo_ has joined #ruby
mansi has joined #ruby
jeer_ has joined #ruby
volty has joined #ruby
zarubin has quit [Ping timeout: 240 seconds]
lfox has joined #ruby
iamjarvo has quit [Read error: Operation timed out]
jkline has joined #ruby
theRoUS has quit [Ping timeout: 245 seconds]
kil0byte has quit [Read error: Connection timed out]
c0rn has joined #ruby
burgess|vayo has joined #ruby
mansi has quit [Remote host closed the connection]
marcdel has joined #ruby
mansi has joined #ruby
Nogbit has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
jamblack has joined #ruby
heftig has joined #ruby
ludar has joined #ruby
momomomomo has joined #ruby
dweeb_ has joined #ruby
snql has quit [Ping timeout: 240 seconds]
likemike has quit [Ping timeout: 252 seconds]
slash_nick has quit [Ping timeout: 245 seconds]
failshell has joined #ruby
Azulinho_ has quit [Ping timeout: 265 seconds]
mansi_ has joined #ruby
slash_nick has joined #ruby
moted has quit [Quit: moted]
g0bl1n has quit [Ping timeout: 272 seconds]
Spami has quit [Read error: Connection reset by peer]
iamjarvo_ has quit [Remote host closed the connection]
mansi has quit [Read error: Connection reset by peer]
asteros has joined #ruby
iamjarvo has joined #ruby
arskeytect has joined #ruby
Azulinho_ has joined #ruby
pixelgremlins has quit [Read error: Connection reset by peer]
cescalante is now known as ce_afk
iamjarvo has quit [Read error: Connection reset by peer]
gwb3 has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
<mark06> any idea how to detect if stdout is mintty?
jamblack has quit [Ping timeout: 245 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gwb3 has joined #ruby
petey_ has joined #ruby
arskeytect has quit [Quit: Leaving]
<Tearan> Booo IRB lies
carif__ has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
robustus has quit [Read error: Connection reset by peer]
kil0byte has joined #ruby
moted has joined #ruby
kobain has joined #ruby
kobain has quit [Excess Flood]
Guest41539 has joined #ruby
Guest41539 has quit [Excess Flood]
kobain_ has joined #ruby
kobain_ has quit [Excess Flood]
iamjarvo has quit [Read error: Connection reset by peer]
Guest15203 has joined #ruby
iamjarvo has joined #ruby
Guest15203 has quit [Excess Flood]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_bart has joined #ruby
dcunit3d has quit [Quit: dcunit3d]
PragCypher has joined #ruby
brennanMKE has joined #ruby
<ludar> hi im a python progammer and i want to start learn a ruby also.. whats is the best sites for this ? thank you
<mark06> String#encoding lies too: http://bugs.ruby-lang.org/issues/9016
<markisonfire> there are tons of awesome resources, though
<mark06> yeah, programming MF!
<ludar> thank you
<|jemc|> ludar: when I came over from python, I found it helpful to pick a somewhat difficult and complex python project I had done and try to port it to ruby, learning each analogous technique as needed
robustus has joined #ruby
freezey has quit [Remote host closed the connection]
<ludar> sounds great
<ludar> thank you
<|jemc|> over time, I also learned ruby idioms to replace my python idioms I was familiar with, changing my mindset as well
Nogbit has left #ruby [#ruby]
<jkamenik> ludar: you can also try http://rubykoans.com/
freezey has joined #ruby
<ludar> thank you very much guys!
sniffingcats has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
Volsus has joined #ruby
freezey_ has joined #ruby
freezey has quit [Read error: No route to host]
<shevy> |jemc| do you still write python?
<shevy> ludar, I think when it comes down to it, the best is to really just start to write small ruby scripts, and buildup from there. start with simple things, if you used python, try to find to do something similar in ruby, but more OOPish perhaps
<|jemc|> shevy: basically only for sublime text plugins - I've come to appreciate the ruby way in most projects that don't require python for some other reason
ce_afk is now known as cescalante
okinomo has quit [Ping timeout: 268 seconds]
carif__ has quit [Read error: Operation timed out]
<ludar> what is the mean diffrent between python and ruby as lang?
Emmanuel_Chanel has joined #ruby
<|jemc|> other than syntax differences, main conceptual difference is probably monkey-patching
<volty> google ruby vs python
<|jemc|> also ruby does nto have multiple inheritance, but has mixins, a slightly different concept
Azulinho_ has quit [Read error: Operation timed out]
<volty> it is not that easy to transfer what you have in your head
aagdbl has quit [Quit: Leaving.]
<ludar> main* im sorry
<|jemc|> also, investigate blocks/Procs in Ruby; much more powerful and interesting than python's lambdas
<|jemc|> python's lambdas are all but useless, imo
awarner_ has joined #ruby
pherryman has joined #ruby
Spami has joined #ruby
Elhu has joined #ruby
axl_ has quit [Quit: axl_]
elux has quit [Quit: Bye!]
lfox has quit [Quit: ZZZzzz…]
axl_ has joined #ruby
awarner has quit [Ping timeout: 268 seconds]
RichardBaker has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
jhaals has joined #ruby
mneorr has joined #ruby
okinomo has joined #ruby
axl_ has quit [Client Quit]
capicue has joined #ruby
wildroman has joined #ruby
<shevy> ludar the philosophy
skaflem has quit [Quit: Leaving]
mikepack has joined #ruby
carif__ has joined #ruby
<Hanmac> ludar i see ruby often as pythons evil twin sister ;P
fedalto has quit [Quit: Leaving]
Elhu has quit [Ping timeout: 272 seconds]
kobain99 has joined #ruby
soheil has quit [Remote host closed the connection]
soheil has joined #ruby
derebos has joined #ruby
failshell has quit [Remote host closed the connection]
Jake232 has joined #ruby
failshell has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
`Chris` has quit [Read error: Connection reset by peer]
flori_ has quit [Ping timeout: 272 seconds]
brennanMKE has quit [Remote host closed the connection]
flori has joined #ruby
`Chris` has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
ebetancourt has quit [Quit: Textual IRC Client: www.textualapp.com]
brennanMKE has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
<|jemc|> yeah, if you're familiar with the python easter egg of typing 'import this' in a repl
iamjarvo has joined #ruby
<|jemc|> where it prints the philosophy of python
<|jemc|> many of those rules get regularly broken in ruby
<|jemc|> for better and for worse
mansi_ has quit [Remote host closed the connection]
devoldmx has joined #ruby
mansi has joined #ruby
cescalante is now known as ce_afk
Davey_ is now known as Davey
soheil has quit [Ping timeout: 268 seconds]
ldnunes has quit [Quit: Leaving]
mercwithamouth has quit [Ping timeout: 272 seconds]
bnagy has joined #ruby
mudmaster has quit [Quit: Leaving...]
DanBoy has quit [Ping timeout: 240 seconds]
<volty> or for good or for evil, in the superlative degree of comparison only
devoldmx3 has quit [Ping timeout: 272 seconds]
burgess|vayo has quit [Quit: ^zzz]
capicue has quit [Quit: Leaving...]
mercwithamouth has joined #ruby
brennanMKE has quit [Ping timeout: 268 seconds]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has quit [Ping timeout: 245 seconds]
blitz has joined #ruby
freerobby has quit [Quit: Leaving.]
carif__ has quit [Quit: Ex-Chat]
<volty> ah - it was from «The Tale of Two Langs", from V. Trollens :)
<blitz> if you have a list of [a,b,c] whats the easiest way to call a.merge(b.merge(c))
brennanMKE has joined #ruby
marcdel has joined #ruby
carif_ has joined #ruby
<flops> blitz: Do you mean a join() ?
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<blitz> no
s00pcan has quit [Quit: Lost terminal]
<Hanmac> blitz: i think a,b,c are Hash, so try this: [a,b,c].inject({},:merge)
<volty> then define merge
freerobby has joined #ruby
s00pcan has joined #ruby
<blitz> yeah, inject that's right
carif_ has quit [Max SendQ exceeded]
drumsrgr8forn8 has joined #ruby
carif_ has joined #ruby
<Hanmac> PS: you may need to reverse the Array order if they are not in the right one
mneorr has quit [Read error: Connection reset by peer]
<volty> or shuffle ?
mneorr has joined #ruby
<Senjai> I'm really bad with text manipulation, how can I turn a string of strings into an array of strings? e.g. "\"public\"" -> ["public"]
<Senjai> or "\"public\"\"www\"" -> ['public', 'www']
johnnyfuchs has quit [Quit: Leaving.]
<Senjai> wow nvm
<Senjai> that was easy
<Senjai> String.scan
Mitchellvanw has joined #ruby
burgess has joined #ruby
mneorr_ has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
<Senjai> fyi cross post from #ruby-lang
Loaft has quit [Ping timeout: 272 seconds]
mansi has joined #ruby
<RubyPanther> .split(/\a"|""|"\z/) looks really awesome though
sayan has quit [Ping timeout: 252 seconds]
capicue has joined #ruby
mansi has quit [Remote host closed the connection]
Liquid-- has quit [Quit: Computer has gone to sleep.]
<RubyPanther> like an alien in a helmet, cheering
mansi has joined #ruby
capicue has quit [Client Quit]
carif_ has quit [Quit: Ex-Chat]
<apeiros> \A instead of \a
allsystemsarego has quit [Quit: Leaving]
<apeiros> interesting idea
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has joined #ruby
<volty> what about split /(^") | ("\s*") | ("\s*$)/ ?
<volty> -> final /x missing
mansi has quit [Read error: Connection reset by peer]
<apeiros> personally I prefer the scanning method. easier to allow for escaped quotes IMO.
mansi has joined #ruby
Gooder has quit [Ping timeout: 252 seconds]
alex__c2022 has quit [Quit: alex__c2022]
maletor has joined #ruby
<volty> nop
<volty> (mine)
lfox has joined #ruby
<RubyPanther> oh yeah, thanks for debugging my alien
unstable has joined #ruby
<unstable> What is a good way to pick a software project/bug/feature to work on?
<unstable> There are too many choices, I'm not sure how to pick.
<apeiros> unstable: one you use yourself
<unstable> (I want something ruby related, which is why I'm asking in here)
<RubyPanther> unstable: you scratch the one that itches the most
<apeiros> personal interest/scratching one of your own itches is always a good motivator
mercwithamouth has quit [Ping timeout: 240 seconds]
<unstable> hmm, I agree with that. Though basically everything I want I have.
<unstable> wrt software
iamjarvo_ has joined #ruby
<flops> unstable: I'm pretty certain you are using some software which you think you could make better ;)
<RubyPanther> unstable: a project I'd love to see is one to get MRI compiling on android using the google compiler
devbug has joined #ruby
Elhu has joined #ruby
SHyx0rmZ has joined #ruby
intuxicated has quit [Ping timeout: 252 seconds]
<flops> unstable: Or go to the github page of a project you like and use and start tinkering with it
<devbug> For some reason http://pastie.org/pastes/8428490/text?key=fpwvx7ceft6qqjo4gdkwq doesn't match -MT
<devbug> It matches -M, -MM, and > fine
<devbug> but not -MT
`Chris` has quit []
claymore has quit [Quit: Leaving]
crystalneth has joined #ruby
`Chris` has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jkamenik has quit [Quit: Leaving.]
<flops> How can I empty/delete a database I created with ActiveRecord through camping?
<matti> How does one handle thread safety from C extension? I have a library that is not thread safe.
capicue has joined #ruby
niklasb has quit [Ping timeout: 260 seconds]
awarner_ has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 245 seconds]
aspires has joined #ruby
awarner has joined #ruby
superscott[8] has joined #ruby
dcunit3d has joined #ruby
awarner_ has joined #ruby
nkts has joined #ruby
okinomo has quit [Ping timeout: 245 seconds]
dzhulk has joined #ruby
awarner_ has quit [Read error: Connection reset by peer]
awarner_ has joined #ruby
<Hanmac> matti i think its complicated ... i mean if the lib is not thread-safe, then the binding cant be easy thread-safe (all my bindings are not thread-safe :/ )
<RubyPanther> matti: http://media.pragprog.com/titles/ruby3/ext_ruby.pdf you basically just need to learn about the global lock, and make a couple API calls at the right time
<apeiros> RubyPanther: oh, dave made that available for free?
<RubyPanther> The end result is that you avoid needing real thread safety because of the lock
<RubyPanther> Yeah, it's their free chapter :) yay
awarner has quit [Ping timeout: 245 seconds]
<apeiros> nice! thanks for that link :)
mikepack has quit [Remote host closed the connection]
okinomo has joined #ruby
mikepack has joined #ruby
johnnyfuchs has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
jimmyy has joined #ruby
mikepack has joined #ruby
<matti> RubyPanther: I've added NOGVL wrapper functions for anything IO related, and it works very nicetly.
<Hanmac> matti & apeiros & RubyPanther isnt that mosty https://github.com/ruby/ruby/blob/trunk/README.EXT ?
Xeago has joined #ruby
<matti> RubyPanther: But, now I want to make sure that when people call methonds from the same object using the same underlying C bindings, they will not be corrupted.
dfrank has joined #ruby
Czupa has joined #ruby
xk_id has joined #ruby
<matti> RubyPanther: I could even use Mutex.new, but I don't know how to add @mutex.synchronize to existing methods from C code on the fly on the Ruby side.
<RubyPanther> matti: make sure you need it before adding a mutex
breakingthings has quit []
mneorr_ has quit [Remote host closed the connection]
soheil has joined #ruby
timonv has quit [Remote host closed the connection]
srji has joined #ruby
mikepack has quit [Remote host closed the connection]
<|jemc|> yeah, it can be tempting to throw mutexes all over the place thinking you're creating safety, but its easy to create deadlock that way
timonv has joined #ruby
<RubyPanther> Hanmac: it's a good reference, but it doesn't give a high level explanation
wildroman has quit [Remote host closed the connection]
<Hanmac> some day, my bindings will be also good references ;D
wildroman has joined #ruby
m8 has joined #ruby
simoz has joined #ruby
timonv_ has joined #ruby
mneorr has joined #ruby
okinomo has quit [Ping timeout: 246 seconds]
timonv has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
niklasb has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
timonv_ has quit [Remote host closed the connection]
timonv has joined #ruby
petey_ has quit [Remote host closed the connection]
petey_ has joined #ruby
wildroman has quit [Ping timeout: 272 seconds]
dfrank has quit [Ping timeout: 272 seconds]
barratt has quit [Read error: Connection reset by peer]
barratt has joined #ruby
btanaka has joined #ruby
peregrine81 has quit []
Mothore has quit [Quit: Computer has gone to sleep.]
eichenwald has quit [Quit: WeeChat 0.3.8]
timonv has quit [Ping timeout: 260 seconds]
dfrank has joined #ruby
Mitchellvanw has quit [Quit: Dozing off...]
Mothore has joined #ruby
<dfrank> hi guys. I'm learning ruby on rails, here's very little example of the ruby model code: pastey.org/view/raw/c9c8b7f1 I can't find explanation of such syntax: "validates :title, uniqueness: true" Is this method call, or ...? I know that ruby allows to omit parentheses, but this case seems not to be a method call. Just in case, I have tested: added parentheses, but it wasn't helped.
breakingthings has joined #ruby
<dfrank> *it didn't help
<dfrank> So, could you please point me where can I read about it?
zz_jrhorn424 is now known as jrhorn424
<Xeago> dfrank: it is a method call on the class
nisstyre has joined #ruby
<Xeago> as you might or might not now, any code anywhere is evaluated as soon as it is parsed
nhhagen has joined #ruby
<|jemc|> :title is the first argument, uniqueness:true is a keyword argument
<Xeago> >> class Foo; puts "bar"; end;
<eval-in> Xeago => bar ... (https://eval.in/57402)
burgess has quit [Quit: ^zzz]
<Xeago> s/now/know
petey_ has quit [Ping timeout: 272 seconds]
<dfrank> but I tried to add parentheses, it leads to syntax error: validates (:title, uniqueness: true)
<apeiros> dfrank: it's equivalent to: validates(:title, {:uniqueness => true})
_if has quit [Ping timeout: 272 seconds]
capicue has quit [Quit: Leaving...]
<apeiros> dfrank: yes, don't put a space in front of the parens.
<apeiros> foo(bar) != foo (bar)
mneorr has quit [Read error: Connection reset by peer]
<apeiros> (I think 1.8 was less picky in that regard?)
pherryman_ has joined #ruby
mneorr has joined #ruby
<Xeago> apeiros: not that I know
pherryman has quit [Read error: Connection reset by peer]
<dfrank> apeiros: oh, thanks
Mothore has quit [Ping timeout: 248 seconds]
<dfrank> thanks guys!
<apeiros> yw
Liquid-- has joined #ruby
<apeiros> hi there Xeago! :)
<Xeago> in irb:
<Xeago> foo (:foo, :bar)
<Xeago> (irb):13: warning: don't put space before argument parentheses
<Xeago> either it is irb catching that
decoponio has quit [Quit: Leaving...]
<Xeago> or ruby being lenient
<Xeago> hi apeiros :)
ce_afk is now known as cescalante
<Xeago> just got home, quit tipsy/drunk form the afterwork :)
danshultz has quit [Remote host closed the connection]
<flops> Xeago: def hello; puts "hi"; end \n hello () ArgumentError
<Xeago> definitely satisfied with today :D
blitz has left #ruby ["bye"]
phantasm66 has quit [Quit: *poof*]
danshultz has joined #ruby
ShawnMcCool has joined #ruby
dcunit3d has quit [Quit: dcunit3d]
mneorr has quit [Read error: Connection reset by peer]
Jetchisel has joined #ruby
mneorr has joined #ruby
<ShawnMcCool> i have a folder with 2 subfolders, src/ and test/, in my src/ folder i have a file todo.rb src/todo.rb. if i go to the src folder and do 'irb' and try to require 'todo' it says that it can't infer base path
mneorr has quit [Remote host closed the connection]
<ShawnMcCool> what should i do?
Monie has joined #ruby
<|jemc|> require_relative
mneorr has joined #ruby
<apeiros> ShawnMcCool: irb -Isrc
<|jemc|> that too
<apeiros> (that's a capital i, not lowercase L)
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
<ShawnMcCool> thanks
<apeiros> ShawnMcCool: common name for the library is 'lib' btw., not 'src'
<apeiros> cf. rubygems
<Xeago> mind elaborating on this problem?
vlad_sta_ has joined #ruby
<ShawnMcCool> so if i'm just creating some domain logic to play with ruby, i'd put my code in lib/ not in src/
<Xeago> shouldn't irb jsut find it in ./todo.rb?
<Xeago> not caring in which directory it is in?
jhaals has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
<apeiros> Xeago: require/load is always relative to the dirs in $LOAD_PATH (unless you explicitly use an absolute path or use a './' prefix)
axl_ has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 245 seconds]
__main__ has quit [Read error: Connection reset by peer]
aspires has quit [Quit: sudo making a sandwich]
<Xeago> ok, ty
vlad_starkov has joined #ruby
mneorr_ has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
srji has quit [Quit: leaving]
markisonfire has left #ruby [#ruby]
tatsuya_o has quit [Remote host closed the connection]
volty has left #ruby ["Konversation terminated!"]
__main__ has joined #ruby
tatsuya_o has joined #ruby
asteros has quit [Quit: asteros]
angusiguess has quit [Ping timeout: 245 seconds]
dfrank has quit [Ping timeout: 260 seconds]
adambeynon has joined #ruby
<atmosx> %w{01 02 03 04 05 06 07 08 09 10 11 12} <-- can I turn this values into numbers somehow automatically? Instead of text?
<atmosx> s/numbers/integers
Gooder has joined #ruby
dcunit3d has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Elhu has quit [Quit: Computer has gone to sleep.]
peregrine81 has joined #ruby
dcunit3d has quit [Client Quit]
<apeiros> atmosx: map
<apeiros> atmosx: but since it's a literal, just use []
<lupine> well, he'd need commas too
<apeiros> oh noes! :)
__main__ has quit [Read error: Connection reset by peer]
<atmosx> yeap
tatsuya_o has quit [Ping timeout: 246 seconds]
<lupine> I'd probably do (1..12).to_a
<atmosx> lupine: that makes sense heh
_main_ has joined #ruby
<atmosx> hmm I need 01
pwh has quit []
<atmosx> not 1
<lupine> then you don't want fixnums, you want strings
<lupine> or... something
<Hanmac> a = *1..12
platypine has joined #ruby
<apeiros> ^
verto has joined #ruby
<atmosx> okay then I'm ok I guess
diegoviola has joined #ruby
* atmosx it's an old helper method lol
<lupine> you can always ensure the fixnum is displayed as "01" in your output logic, of course
<lupine> but in number terms, 01 and 1 are identicxal
<apeiros> 09 and 9 aren't
zeade has quit [Quit: Leaving.]
<lupine> indeed :)
<lupine> well
<lupine> 09 isn't even valid is it?
<atmosx> I'll leave it as a sring
<atmosx> string
<apeiros> yupp, 09 would raise
<atmosx> will work anyway
<lupine> SyntaxError: (irb):1: Invalid octal digit
<lupine> 010 and 10 are not the same
<apeiros> which makes 09 pretty different from 9 ;-)
cescalante is now known as ce_afk
<lupine> :)
peregrine81 has quit [Client Quit]
capicue has joined #ruby
<apeiros> yeah, 010 would work and be different in value. but 010 wasn't in his code, while 08 and 09 are.
mansi has quit [Read error: Connection reset by peer]
_main_ is now known as __main__
<apeiros> (hence I pointed that out)
ner0x has quit [Quit: Leaving]
mansi has joined #ruby
capicue_ has joined #ruby
Renich has left #ruby [#ruby]
drumsrgr8forn8 has quit [Remote host closed the connection]
jrhorn424 is now known as zz_jrhorn424
Zai00 has joined #ruby
petey_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
asteros has joined #ruby
capicue has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
SJr has quit [Excess Flood]
kaspergrubbe has joined #ruby
_dma has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
m8 has quit [Quit: Sto andando via]
SJr has joined #ruby
_maes_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
mneorr_ has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 268 seconds]
mneorr has joined #ruby
Mitchellvanw has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
mneorr has quit [Read error: Connection reset by peer]
Davey has quit [Quit: Computer has gone to sleep.]
mneorr has joined #ruby
mansi_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
Soda has joined #ruby
Davey has joined #ruby
sniffingcats has quit [Quit: Til rivido Idisti!]
verto has quit [Ping timeout: 272 seconds]
Gooder has quit [Ping timeout: 245 seconds]
mneorr has quit [Remote host closed the connection]
newbiehacker has joined #ruby
mneorr has joined #ruby
simoz has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
failshell has quit []
_dma has quit [Remote host closed the connection]
jeer_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
Volsus has quit [Ping timeout: 252 seconds]
jlast has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
<d4heyDU> does anyone use bitwise very often in practice? I'm just curious, I was learning about bitwise operations on numbers last night
<d4heyDU> >> 12 & 14
<eval-in> d4heyDU => 12 (https://eval.in/57410)
<apeiros> d4heyDU: in ruby it's rather rare
mneorr has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
<|jemc|> d4heyDU - only common ruby use I can think of is when dealing with C APIs that have bit flags
<d4heyDU> interesting, I'm sure there are some clever uses for it
<apeiros> there are
<d4heyDU> I remember seeing ryan bates use it in a rails cast for setting admin permission levels
<apeiros> |jemc|: in some cases when you want to optimize something they can help too
<apeiros> e.g. fast/small set types
<|jemc|> you can use the bitwise & operator in arrays - but it's not really doing a bitwise operation - just a mnemonic
<|jemc|> >> [3, 4, 6] & [3, 2, 1, 4]
IceDragon has joined #ruby
<eval-in> |jemc| => [3, 4] (https://eval.in/57411)
stringoO has quit [Quit: stringoO]
dhruvasagar has joined #ruby
<d4heyDU> |jemc| yeah for sure
mark06 has left #ruby [#ruby]
mneorr has quit [Ping timeout: 272 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
d4heyDU has left #ruby [#ruby]
vince_prignano has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
Czupa has quit [Ping timeout: 272 seconds]
capncrunch4me has quit [Quit: capncrunch4me]
d4heyDU has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanothief has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Xeago has quit [Remote host closed the connection]
Monie has joined #ruby
ShawnMcCool has left #ruby ["Konversation terminated!"]
tomzx_mac has joined #ruby
jeer_ has joined #ruby
allaire has quit []
btanaka has quit [Remote host closed the connection]
mrsolo has quit [Quit: Leaving]
_dma has joined #ruby
mrsolo has joined #ruby
nanothief has joined #ruby
Mitchellvanw has quit [Quit: Dozing off...]
jblack has joined #ruby
mmitchell has quit [Remote host closed the connection]
mmitchell has joined #ruby
DonRichie has quit [Quit: Verlassend]
lsmola has quit [Ping timeout: 272 seconds]
devdazed has quit [Quit: Bye]
ngpestelos has joined #ruby
jerius has quit [Ping timeout: 268 seconds]
ninegrid has quit [Ping timeout: 248 seconds]
Tuxist has quit [Remote host closed the connection]
zipper has quit [Read error: Connection reset by peer]
ninegrid has joined #ruby
ybart has quit [Quit: ybart]
Mitchellvanw has joined #ruby
sailias has quit [Ping timeout: 248 seconds]
mmitchell has quit [Ping timeout: 245 seconds]
zipper has joined #ruby
zipper is now known as Guest82160
carraroj has quit [Quit: Konversation terminated!]
mark06 has joined #ruby
mark06 has left #ruby [#ruby]
mary5030 has joined #ruby
baordog_ has quit [Remote host closed the connection]
ssvo_ has joined #ruby
momomomomo has joined #ruby
ssvo has quit [Ping timeout: 272 seconds]
flops has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
momomomomo has quit [Client Quit]
Mothore has joined #ruby
mary5030 has joined #ruby
_dma has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
_dma has joined #ruby
mary5030 has joined #ruby
mneorr has joined #ruby
asobrasil has left #ruby [#ruby]
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
brianpWins has quit [Quit: brianpWins]
axl_ has joined #ruby
d4heyDU has quit [Remote host closed the connection]
hashpuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
Mothore has quit [Ping timeout: 265 seconds]
tyleretters has quit [Quit: tyleretters]
colonolGron has joined #ruby
froy has quit [Quit: kablam!]
zeade has joined #ruby
Mothore has joined #ruby
mary5030 has quit [Ping timeout: 272 seconds]
_dma has quit [Ping timeout: 272 seconds]
Mothore has quit [Client Quit]
capicue_ has quit [Quit: Leaving...]
endash has joined #ruby
danshultz has joined #ruby
sunnymolini1 has quit [Ping timeout: 246 seconds]
mmitchell has joined #ruby
mneorr has quit [Ping timeout: 248 seconds]
vince_prignano has quit [Remote host closed the connection]
Guest82160 has quit [Quit: leaving]
Notte has quit [Remote host closed the connection]
ce_afk is now known as cescalante
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
danshultz has quit [Ping timeout: 272 seconds]
havenwood has quit [Remote host closed the connection]
thedonvaughn has quit [Read error: Operation timed out]
zeade has quit [Quit: Leaving.]
brennanMKE has quit [Remote host closed the connection]
kh019267 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
petey_ has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
petey_ has joined #ruby
havenwood has joined #ruby
dweeb_ has quit [Quit: Textual IRC Client: www.textualapp.com]
milardovich has joined #ruby
mrsolo has joined #ruby
<milardovich> Hi guys, I'm having problems with a conditional value
<milardovich> if a == @class.b then works perfectly, but if a <= @class.b then doesn't
<milardovich> I have no idea what I'm doing wrong
petey_ has quit [Read error: Operation timed out]
ctp has joined #ruby
<|jemc|> put your code and the output in a pastebin
Liquid-- has quit [Quit: Computer has gone to sleep.]
agustinvinao has quit [Remote host closed the connection]
<ctp> Howdy. Anyone has an idea how to remove the first element of that array and append a new one at the end _in one expression_. ["S", "S", "F", "F", "S", "S", "F", "S", "S", "F"].shift would remove the first one, ["S", "S", "F", "F", "S", "S", "F", "S", "S", "F"].push("S") would append one. but how to combine both?
agustinvinao has joined #ruby
saarinen has quit [Quit: saarinen]
thedonvaughn has joined #ruby
<havenwood> milardovich: Does your class include Comparable?: http://ruby-doc.org/core-2.0.0/Comparable.html
cescalante is now known as ce_afk
<apeiros> ctp: push returns the array, call shift on it. but IMO it's ugly, just keep it two separate instructions.
asteros has quit [Quit: asteros]
<milardovich> havenwood, ohh no, it doesn't
jeer_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mitchellvanw has quit [Quit: Dozing off...]
<|jemc|> ctp: there's also (below), but combining push and shift is cleaner
<|jemc|> >> a=[1,2,3]; a=a[1..-1]+[4]
<eval-in> |jemc| => [2, 3, 4] (https://eval.in/57418)
<|jemc|> or
<|jemc|> >> a=[1,2,3]; a=a[1..-1] << 4
<eval-in> |jemc| => [2, 3, 4] (https://eval.in/57419)
kil0byte has quit [Read error: Connection timed out]
baroquebobcat has quit [Quit: baroquebobcat]
<|jemc|> although your requirement about being in 'one expression' isn't as specific as you think it is
froy has joined #ruby
Soda has quit [Ping timeout: 252 seconds]
swingha has quit [Quit: WeeChat 0.4.2]
agustinvinao has quit [Ping timeout: 246 seconds]
baroquebobcat has joined #ruby
einarj has joined #ruby
jkline has quit [Quit: jkline]
<ctp> ok, got it, a simple foo.push("S").shift does its work :) thanks
Soda has joined #ruby
einarj has quit [Remote host closed the connection]
<Akuma> hello, if I define an array x=Array.new(10), define some values for this array in a file, (file1.rb) and do a require 'file1' in a file2, will I be able to access the values of the array x in file 2 defined in file1?
<apeiros> ctp: um, yeah, which is what I said. still I think it's ugly.
einarj has joined #ruby
<ctp> apeiros: yeah it is :)
Volsus has joined #ruby
Jetchisel has joined #ruby
<apeiros> Akuma: if you define the variable as `x`, then on. lowercase variables are local variables. the "local" part in the name means what it says ;-)
<|jemc|> Akuma: locals do not cross files
<|jemc|> Akuma: you can make it a global with $x, but there is often a better way to do what you want
<apeiros> you can use constants (start with an uppercase letter) to share objects across files.
* apeiros hits |jemc| with a stick
<|jemc|> yeah, constants is often the better way, I was about to refer to
* |jemc| ducks
<apeiros> don't use globals. really. it's best to just pretend they don't exist (except for the predefined ones)
terrellt has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Remote host closed the connection]
<Akuma> I see, I'll check how I can work around this
<|jemc|> well, you have to know about the devil before you can resist his temptations
<Akuma> Thank you
<havenwood> Poof, what are these globals you're talking about. Fairy tales I tell ya!
* havenwood goes merrily about his day.
yfeldblum has joined #ruby
<havenwood> Friday! :)
colonolGron has quit [Quit: Lost terminal]
<havenwood> I had to double check to make sure it still was. >.>
dhruvasagar has quit [Ping timeout: 268 seconds]
<|jemc|> ignorance of bad design patterns doesn't make you subconsciously use good ones
<apeiros> saturday here
freezey_ has quit [Remote host closed the connection]
ybart has joined #ruby
einarj has quit [Ping timeout: 246 seconds]
<apeiros> |jemc|: true
<apeiros> |jemc|: but you suggested using a bad pattern :)
_dma has joined #ruby
<|jemc|> I was using it as a segue to bring up constants
<|jemc|> if only I had a higher words per minute!
ybart has quit [Client Quit]
<|jemc|> :P
<|jemc|> speaking of devilish globals
timonv has joined #ruby
ShellFu has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
<havenwood> >> password = global_variables.join
<|jemc|> anyone know if there are any plans to make thread-local versions of the post =~ vars $1, $2, etc?
<eval-in> havenwood => "$;$-F$@$!$SAFE$~$&$`$'$+$=$KCODE$-K$,$/$-0$\\$_$stdin$stdout$stderr$>$<$.$FILENAME$-i$*$?$$$:$-I$LOAD_PATH$\"$LOADED_FEATURES$VERBOSE$-v$-w$-W$DEBUG$-d$0$PROGRAM_NAME$-p$-l$-a$1$2$3$4$5$6$7$8$9" (https://eval.in/57423)
<havenwood> They'll never guess my password, muahaha. >.>
<|jemc|> yeah, if they never look at the irc logs :P
Hganavak has joined #ruby
Liquid-- has joined #ruby
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> |jemc|: mmm, i'll put a #reverse on the end
<havenwood> dash, now you know my tricks!
QKO has quit [Ping timeout: 256 seconds]
soheil has quit [Remote host closed the connection]
<|jemc|> but yeah, the fact that Threads exist and $1, $2, $3 exist as standards in the same language just baffles me
<|jemc|> it's just asking for trouble
vlad_starkov has quit [Read error: Connection reset by peer]
soheil has joined #ruby
d2dchat_ has quit [Remote host closed the connection]
<apeiros> |jemc|: $1 etc. are not truly globals
kil0byte has joined #ruby
<apeiros> which makes things in some regards worse…
nutella has joined #ruby
<apeiros> but they're thread local
mneorr has joined #ruby
<|jemc|> oh really?
<|jemc|> I thought I tested it and found otherwise
<|jemc|> well, good
<apeiros> they're even stack-frame local iirc
nutella is now known as Guest18054
<apeiros> whatever they are, their scoping is rather, um, lets say 'uncommon'
<|jemc|> heh
<ShellFu> hey all. Im trying to reduce the complexity of a piece of code here. Id like some thoughts >http://pastebin.com/e29h9W3a< Im thinking perhaps a recursive method, but since im not a professional programmer I thought you guys could smack me around a bit :)
<|jemc|> well, I'm happier that they're a special case than being trou globals
<gr33n7007h> i = 1.0/0; (1..i).each {|n| puts n}
idoru has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
<ShellFu> It can be copied directly into irb
<ShellFu> to see the desired result
volty has joined #ruby
<havenwood> gr33n7007h: 1.upto(Float::INFINITY) { |n| puts n }
<gr33n7007h> cool ;)
Hanmac has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
mneorr has quit [Ping timeout: 272 seconds]
jibi has quit [Quit: .]
dzhulk has quit [Quit: Leaving.]
_maes_ has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
RORgasm has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
QKO has joined #ruby
kaspergrubbe has joined #ruby
brennanMKE has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
m_3 has quit [Remote host closed the connection]
QKO has quit [Changing host]
QKO has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zastern has joined #ruby
<heftig> ShellFu: no need for that inject
baroquebobcat has quit [Quit: baroquebobcat]
<heftig> ShellFu: Hash[string.split(',').map{|s|k,*v=s.split('^');[k,v.empty??nil:Hash[v.map{|x|x.split("=")}]]}]
<heftig> just a small improvement
pontiki has joined #ruby
jerius has joined #ruby
ngpestelos has quit [Ping timeout: 245 seconds]
mlpinit has joined #ruby
<ShellFu> Any improvement is good :) I appreciate the input. Trying to get some of these harder to understand lines broken down.
<havenwood> :P 1.upto(Float::NAN) { |n| puts n }
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brennanMKE has quit [Ping timeout: 272 seconds]
agustinvinao has joined #ruby
zigomir has quit [Ping timeout: 272 seconds]
kil0byte has quit [Read error: Connection timed out]
<havenwood> >> Float::MAX * 1.000000000000009
<eval-in> havenwood => Infinity (https://eval.in/57427)
<gr33n7007h> haha
<havenwood> >> Float::MAX * 1.0000000000000001
<eval-in> havenwood => 1.7976931348623157e+308 (https://eval.in/57428)
<havenwood> The point of inflection...
yfeldblum has quit [Ping timeout: 245 seconds]
freerobby has quit [Quit: Leaving.]
<|jemc|> heh
lfox has quit [Quit: ZZZzzz…]
<|jemc|> that brightened my day
<|jemc|> (which is almost over, as far as work is concerned)
breakingthings has quit []
<havenwood> FRIDAY! \o/
RichardBaker has quit [Quit: RichardBaker]
coderhs has quit [Ping timeout: 245 seconds]
RichardBaker has joined #ruby
nateberkopec has quit [Quit: Leaving...]
pel_daniel has left #ruby [#ruby]
<|jemc|> Time.now * 1.0000000000000001 == Workweek::MAX
astrobunny has quit [Ping timeout: 272 seconds]
agustinvinao has quit [Ping timeout: 248 seconds]
kh019267 has joined #ruby
veinofstars has quit [Quit: veinofstars]
vlad_sta_ has joined #ruby
ehc has quit [Quit: ehc]
terrellt has joined #ruby
vlad_starkov has quit [Ping timeout: 258 seconds]
Volsus has quit [Ping timeout: 246 seconds]
fenec2 has joined #ruby
astrobunny has joined #ruby
froy has quit [Quit: kablam!]
zeropx has quit [Quit: zeropx]
Shidash1 has quit [Ping timeout: 268 seconds]
agjacome has joined #ruby
zeropx has joined #ruby
sepp2k1 has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby
sepp2k has quit [Ping timeout: 268 seconds]
m_3 has joined #ruby
beneggett has joined #ruby
ngpestelos has joined #ruby
zeropx has quit [Ping timeout: 272 seconds]
marcdel has joined #ruby
mansi_ has quit [Remote host closed the connection]
testr0n has joined #ruby
mansi has joined #ruby
<unstable> wow, ruby p247 has been around for awhile now
<testr0n> if i want to write an irc bot in ruby, what is the best way to go about this? use a pure ruby gem, or use a ruby gem which uses a C irc implementation?
Zai00 has quit [Quit: Zai00]
mlpinit has quit [Remote host closed the connection]
<|jemc|> IRC is not hard to implement
<|jemc|> so you don't need C
<MrZYX> I can recommend cinchrb
mlpinit has joined #ruby
<|jemc|> there are 3 or 4 gems floating around
<MrZYX> I wouldn't base the choice on the implementation details
nadirvardar has joined #ruby
<testr0n> fair points
<testr0n> what would you base the choice on MrZYX ?
<MrZYX> a nice API
<|jemc|> or you can have fun with sockets and do it yourself for some nice fun
yvemath has quit [Ping timeout: 260 seconds]
brennanMKE has joined #ruby
<MrZYX> and maybe the feature set, if you need more esoteric ones
<shevy> who is good with minitest and can recommend a tutorial for it
kvirani has quit [Remote host closed the connection]
thepumpkin has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 268 seconds]
coderhs has joined #ruby
<|jemc|> shevy, coming from another testing framework or coming new to TDD?
<shevy> totally new here
freerobby has joined #ruby
kirun has quit [Quit: Client exiting]
kevind has quit [Quit: kevind]
<shevy> it's also an area that seemed hard to learn because it is not very exciting :(
SilverKey has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
zastern has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
zastern has joined #ruby
<testr0n> MrZYX ok reading the docs for cinch. it's plugin system seems odd
<dominikh> testr0n: odd how?
<testr0n> is that good code? specifically, the "match" deal, etc
predator117 has joined #ruby
<testr0n> plugins are only fired up when they match to an incoming message?
<MrZYX> sure, Ruby APIs do such things all the time
<dominikh> every message gets matched against all registered matchers, and on a match, the methods will be called
<|jemc|> shevy: a little googling isn't really yielding any tutorials that I actually like the style of, but
levity_island has quit [Quit: levity_island]
<testr0n> how would you make a plugin which handled a dcc chat request, or session, or file transfer? etc
vlad_sta_ has quit [Ping timeout: 252 seconds]
<testr0n> there is no 'message' to match here
<|jemc|> but the style is.. meh
<|jemc|> anyway, just practice writing your tests before you write your actual code
<dominikh> testr0n: of course there is. DCC initiations are plain PRIVMSGs with escape sequences
jerius has quit []
<|jemc|> with the tests guiding the feature set as you go
adeponte has quit [Remote host closed the connection]
<dominikh> (DCC SEND is already implemented in Cinch itself though. CHAT etc are not, but can easily be done as plugins)
<shevy> |jemc| ok
adeponte has joined #ruby
<testr0n> dominikh oh interesting
<|jemc|> the main idea being that it sucks to write tests later - it's pretty boring
<shevy> |jemc| I always want to head-start with writing code first :(
Shidash has joined #ruby
<shevy> hahaha yeah... I can see that
<|jemc|> and, if you think about it
predator217 has quit [Ping timeout: 272 seconds]
<|jemc|> you're often writing psuedo tests as you go
<|jemc|> implementing a feature, then running your code to make sure it works
<dominikh> testr0n: NB that besides "match" there's also listen_to, which can listen to specific events without doing any pattern matching, e.g. to notice all JOINs, or artifical events like :dcc_send, which Cinch emits when it detected an incoming DCC SEND
<|jemc|> before moving on to the next thing
<dominikh> testr0n: c.f. http://rubydoc.info/gems/cinch/Cinch/DCC/Incoming/Send for that in particular
<|jemc|> the trick is to have the discipline to make those little tests a permanent fixture that you can run later
<dominikh> testr0n: but really, Cinch was written to be very flexible in implementing features on top of it
<testr0n> dominikh thank you, great explanations. it's sounding very strong
<|jemc|> because if all your features have tests, you can be confident as you move forward that your code won't regress and introduce bugs
<dominikh> testr0n: and in case it wasn't obvious, I'm the author ;)
<testr0n> oh, haha
<testr0n> do you actively maintain it?
<|jemc|> so for every feature, write a test, and for every bug fix that had no test, write a test
mlpinit_ has joined #ruby
<dominikh> testr0n: I'm not actively developing any features etc anymore, but I fix bugs that need fixing and coordinate patches that others might contribute
threesome has quit [Ping timeout: 252 seconds]
kh019267 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<testr0n> yea, good enough. i just need some basic abstracted hooks to pull on and bugs to be fixed
<testr0n> don't need continual flow of new features
<|jemc|> minitest/spec is big on syntax sugar and ease of use to try and make it easier to have the discipline to write tests as you go
<dominikh> yeah, it's mostly "done" with regard to features
ismlages has quit [Remote host closed the connection]
drumsrgr8forn8 has joined #ruby
<testr0n> dominikh i've been doing c/objc for 5 years, did ruby before that, but rusty. what's the quickest way from a fresh mac os x terminal i can get cinch installed and a base bot running connected to my freenode dev channel?
volty has left #ruby ["Konversation terminated!"]
<testr0n> if you don't mind me asking. feel no pressure to hand hold
<|jemc|> and imo the difference between spec tests and unit tests in this context is really just a syntactical difference - although in its history is a conceptual difference, I use spec tests for 'unit' tests because I like the syntax sugar
<shevy> In general things must work with "gem install <name>"
Methylated has quit [Quit: Leaving.]
<shevy> so judging from the name, "gem install cinch" ought to work
Methylated has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<dominikh> testr0n: gem install cinch; ruby /whereever/the/examples/are/basic/hello.rb ;) I'm not an OSX person.
<|jemc|> and the more sugarry your tests are, the more they are self documenting, which is a significant thing
<shevy> |jemc| hmm
osvico has joined #ruby
ChronocityLC has joined #ruby
<unstable> What is a simple way to find out if a string contains only letters?
<testr0n> thank you
testr0n is now known as ibot
<|jemc|> there are probably many who disagree with me about the spec/unit thing though
<|jemc|> hence the 'imo'
mlpinit has quit [Ping timeout: 268 seconds]
ibot is now known as ib
mlpinit_ has quit [Ping timeout: 268 seconds]
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
<shevy> |jemc| I think I will try to rewrite my first game written in ruby and use minitest from the get-go
brennanM_ has joined #ruby
randomnick_ has quit [Quit: Leaving]
julian-delphiki has quit [Read error: Connection reset by peer]
<|jemc|> yeah, it'll be weird at first but become second nature hopefully
<ib> hmm, mac os x comes with an old ruby. what's the cleanest way to put latest ruby 2 on os x?
Methylated has quit [Ping timeout: 260 seconds]
<|jemc|> rvm is what most mac users use
<|jemc|> installed through brew
<ib> ugh
<ib> so long of a process to set up a dev env :P
bean has joined #ruby
<|jemc|> yeah, especially when apple doesn't give you a package manager...
brennanMKE has quit [Ping timeout: 265 seconds]
<dominikh> install 1.9 while you're at it; I have no idea if Cinch works with 2 :P – there was some issue once that was due to a bug in Ruby 2 and I have no idea if it's fixed. nobody else reported problems with Cinch on Ruby 2 though, but maybe that's because nobody is using that combination.
soheil has quit [Remote host closed the connection]
<ib> uh
soheil has joined #ruby
<ib> lame :/
<shevy> unstable, perhaps compare the length, and if not the same, you assume that it does not contain only letters, perhaps see:
<shevy> >> "123abc".gsub(/[a-z]/i,'')
<eval-in> shevy => "123" (https://eval.in/57429)
<dominikh> (specifically it was a bug in the Queue class)
milardovich has quit [Quit: Leaving]
snovak has quit [Ping timeout: 272 seconds]
Monie has joined #ruby
<ib> damn, 1.8 is too old to use
bcd87 has quit [Quit: leaving]
ib is now known as testr0n
<dominikh> 1.8? yes, very much so
veinofstars has joined #ruby
|jemc| has quit [Ping timeout: 246 seconds]
einarj has joined #ruby
<MrZYX> dominikh: I do run cinch under 2 for some time now
<MrZYX> didn't notice any increased hangs or crashes
fredjean has quit [Quit: Computer has gone to sleep.]
<testr0n> no /increase/ of hangs or crashes, hmm
<testr0n> doesn't sound encouraging :P
<MrZYX> the ones I have are through some plugins ;)
<testr0n> the code itself quality MrZYX ?
nateberkopec has joined #ruby
<testr0n> and don't mind that dominikh is right here
tkuchiki has joined #ruby
<MrZYX> I initially recommended you cinch, I wouldn't do that if I'm not convinced of its quality
<dominikh> if you don't like Cinch, your only other option is to write your own library, as the other ones are even worse ;)
_bart has quit [Remote host closed the connection]
Lewix_ has quit [Remote host closed the connection]
nadirvardar has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<testr0n> :P
<testr0n> ok i'll try it
<testr0n> i sure hope its dcc functionality works well, i want to set up a file server
Dwarf has quit [Changing host]
Dwarf has joined #ruby
brennanM_ has quit [Remote host closed the connection]
johnnyfuchs has joined #ruby
brennanMKE has joined #ruby
johnnyfuchs has quit [Client Quit]
<dominikh> the DCC SEND works very well (both sending and receiving files, even receiving from clients that implement the "spec" poorly). other DCC features you will need to implement yourself
einarj has quit [Ping timeout: 245 seconds]
<unstable> shevy: "hello" =~ /[a-z]/ would this work?
<dominikh> even though I do have to admit that receiving is better tested than sending, so if you discover any bugs, report them.
<testr0n> what other dcc features would i need to implement for example?
<dominikh> testr0n: no idea, which ones do you want :)
<testr0n> do you mean domain specific stuff like handling file selection + serving?
<dominikh> unstable: that checks that there is at least one letter in the string.
<dominikh> testr0n: that's not DCC features, that's application logic :) but there's a plethora of DCC features, such as CHAT, WHITEBOARD and some others probably nobody uses
<testr0n> whoa, whiteboard? odd
Dwarf has quit [Quit: ZNC - http://znc.in]
Dwarf has joined #ruby
<dominikh> yeah, not something a bot needs.
tylersmith has quit [Remote host closed the connection]
blackmes1 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
b00stfr3ak has quit [Ping timeout: 268 seconds]
<shevy> unstable hmm don't think so... what are the characters that should not be included?
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki_ has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
AntelopeSalad has quit [Read error: Connection reset by peer]
Methylated has joined #ruby
AntelopeSalad has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ssvo_ has quit [Ping timeout: 272 seconds]
Methylated1 has joined #ruby
testr0n has left #ruby ["..."]
Methylated has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 272 seconds]
MrZYX is now known as MrZYX|off