apeiros changed the topic of #ruby-lang 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
pr0ton has quit [Ping timeout: 246 seconds]
pr0ton has joined #ruby-lang
wmoxam has joined #ruby-lang
_ffio_ has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby-lang
swav_ has joined #ruby-lang
wmoxam has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby-lang
saarinen has quit [Quit: saarinen]
swav has quit [Ping timeout: 246 seconds]
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
jmeeuwen has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
marr has quit [Ping timeout: 248 seconds]
nathanstitt has quit [Quit: I growing sleepy]
julweber_ has joined #ruby-lang
_ffio_ has joined #ruby-lang
kuja has quit [Ping timeout: 264 seconds]
julweber has quit [Ping timeout: 246 seconds]
nathanstitt has joined #ruby-lang
kuja has joined #ruby-lang
cored has quit [Ping timeout: 276 seconds]
glebm has quit [Quit: Computer has gone to sleep.]
hogeo has joined #ruby-lang
glebm has joined #ruby-lang
mjc_ has quit [Disconnected by services]
nathanstitt has quit [Quit: I growing sleepy]
nathanstitt has joined #ruby-lang
nathanstitt has quit [Client Quit]
ruurd has joined #ruby-lang
mistym has quit [Remote host closed the connection]
ruby-lang518 has joined #ruby-lang
tkuchiki has joined #ruby-lang
duphus has quit [Quit: Leaving.]
iliketurtles has quit [Quit: zzzzz…..]
ruby-lang518 has quit [Changing host]
ruby-lang518 has joined #ruby-lang
duphus1 has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
flip_digits has joined #ruby-lang
wmoxam has joined #ruby-lang
gregmoreno has quit [Ping timeout: 240 seconds]
Gaelan is now known as GaelanAintAround
duphus1 has quit [Quit: Leaving.]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruby-lang518 has quit [Ping timeout: 250 seconds]
GeissT has joined #ruby-lang
robbyoconnor has quit [Read error: No route to host]
robbyoconnor has joined #ruby-lang
Polish_ has joined #ruby-lang
wmoxam has quit [Ping timeout: 240 seconds]
Polish_ has quit [Client Quit]
fosky has quit [Remote host closed the connection]
julweber_ has quit [Remote host closed the connection]
iliketurtles has joined #ruby-lang
arooni-mobile has joined #ruby-lang
daihuws has joined #ruby-lang
nathanstitt has joined #ruby-lang
<arooni-mobile> basic question but /blah[/]?/ should be an optional / or nothing at all right
<daihuws> Hi all. Can anyone tell me how to get an array for the positions of a series of Regexp matches - i.e. for a string "s s s s" and pattern /\s/ you'd get [1,3,5] ?
<drbrain> arooni-mobile: if your regexp is inside // you need to escape / everywhere inside the regexp
<arooni-mobile> so should be /blah[\/]?/ ?
<drbrain> arooni-mobile: and yes, that's an optional "/"
<drbrain> yes
<drbrain> you can drop the [] for matching "/" too
<drbrain> so also /blah\/?/ (or %r%blah/?%)
<arooni-mobile> sorry i meant .... an optoinal \ ... so that would be /blah[\\]
<arooni-mobile> sorry /blah[\\]?/
<drbrain> yes
<drbrain> or /blah\\?/
<arooni-mobile> i i guess i didnt need the brackets huh
<drbrain> for special characters it might be more clear to use [] like ?, +, *
<Nilium> %r{ blah \\? }x ← I sort of like this way of doing it.
<Nilium> Keeps the regular expressions more readable to have some padding around bits of it
<arooni-mobile> i have a string that comes up sometimes 'id=41NQPPU\' ... and my match is /id=([^&\\]*)/ but whereas i dont want the trailing slash
<arooni-mobile> im still collecting it
pr0ton has quit [Quit: pr0ton]
MrPoT4tO has joined #ruby-lang
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<Nilium> So why are you collecting the slash if you don't want it?
vlad_starkov has quit [Ping timeout: 240 seconds]
iliketurtles has quit [Ping timeout: 276 seconds]
mdedetrich has joined #ruby-lang
julweber has joined #ruby-lang
iliketurtles has joined #ruby-lang
Domon has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
julweber has quit [Ping timeout: 246 seconds]
nathanstitt has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
toretore has quit [Quit: Leaving]
<arooni-mobile> i was trying to collect everything but the slash
gja has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
<arooni-mobile> so i put it in the ^ not part
<arooni-mobile> or do i need the ^ in front of every character?
<arooni-mobile> within the []
MrPoT4tO has quit [Read error: Connection reset by peer]
MrPoT4tO has joined #ruby-lang
duphus has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
<Nilium> You only need it as the first character.
flip_digits has joined #ruby-lang
<Nilium> I'm just not sure how you're collecting the slash if you're not collecting the slash
<Nilium> Hm I could code or I could play borderlands 2
ecnalyr has joined #ruby-lang
flip_digits has quit [Ping timeout: 268 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
mdedetrich has joined #ruby-lang
flip_digits has joined #ruby-lang
krz has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
Kabaka has quit [Remote host closed the connection]
Kabaka has joined #ruby-lang
Kabaka has quit [Client Quit]
Kabaka has joined #ruby-lang
daihuws has quit [Quit: Leaving]
iliketurtles has quit [Quit: zzzzz…..]
GeissT has quit [Quit: MillBroChat AdIRC User]
mdedetrich has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mdedetrich has joined #ruby-lang
tylersmith has joined #ruby-lang
GeissT has joined #ruby-lang
tylersmith has quit [Ping timeout: 276 seconds]
pothibo has quit [Quit: pothibo]
johnnytao has joined #ruby-lang
Domon has quit [Ping timeout: 268 seconds]
henrikhodne has quit [Ping timeout: 264 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
Guest57544 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
KM has joined #ruby-lang
KM is now known as Guest62459
dhruvasagar has quit [Ping timeout: 264 seconds]
Cakey has joined #ruby-lang
shinnya has quit [Ping timeout: 260 seconds]
io_syl has quit [Ping timeout: 246 seconds]
rickruby has joined #ruby-lang
johnnytao has left #ruby-lang [#ruby-lang]
duphus has quit [Quit: Leaving.]
nathanstitt has quit [Quit: I growing sleepy]
hahuang65 has quit [Quit: Computer has gone to sleep.]
Oak has joined #ruby-lang
Oak has joined #ruby-lang
Oak has quit [Changing host]
* Oak waves
johnnytao has joined #ruby-lang
D9 has quit [Quit: Leaving]
iliketurtles has joined #ruby-lang
io_syl has joined #ruby-lang
io_syl_ has joined #ruby-lang
johnnytao has quit [Ping timeout: 248 seconds]
joshuawscott has quit [Quit: Leaving.]
johnnytao has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
Johnny_ has joined #ruby-lang
Johnny_ has quit [Client Quit]
io_syl_ has quit [Quit: Computer has gone to sleep.]
Johnny_ has joined #ruby-lang
diegoviola has joined #ruby-lang
johnnytao has quit [Ping timeout: 268 seconds]
johnnytao has joined #ruby-lang
johnnytao has quit [Client Quit]
Johnny_ has quit [Quit: Leaving]
jonahR has joined #ruby-lang
swav_ has quit [Remote host closed the connection]
cmaxw_ has joined #ruby-lang
swav has joined #ruby-lang
henrikhodne has joined #ruby-lang
Nisstyre has quit [Quit: Leaving]
bzalasky has joined #ruby-lang
dhruvasagar has joined #ruby-lang
cmaxw_ has quit [Read error: Connection reset by peer]
bzalasky has quit [Remote host closed the connection]
cmaxw__ has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
roadt__ has quit [Ping timeout: 240 seconds]
roadt__ has joined #ruby-lang
brianpWins has joined #ruby-lang
duphus has joined #ruby-lang
MrPoT4tO has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
cordax has joined #ruby-lang
Y_Ichiro has quit [Ping timeout: 240 seconds]
Y_Ichiro has joined #ruby-lang
Y_Ichiro has quit [Changing host]
Y_Ichiro has joined #ruby-lang
rshetty has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 240 seconds]
Domon has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
iliketurtles has joined #ruby-lang
PaulePanter has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
_ffio_ is now known as ffio
mistym has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
jsullivandigs has quit [Remote host closed the connection]
vbatts has quit [Ping timeout: 264 seconds]
jsullivandigs has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 240 seconds]
tenderlove has joined #ruby-lang
jsullivandigs has joined #ruby-lang
cschneid has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
hahuang65 has joined #ruby-lang
cschneid has joined #ruby-lang
roadt__ has quit [Ping timeout: 240 seconds]
roadt__ has joined #ruby-lang
iliketurtles has joined #ruby-lang
bzalasky has joined #ruby-lang
jonahR has quit [Quit: jonahR]
<henrikhodne> Is there some easy way to get a Hash from an array where the keys are unique elements and the values are the counts of the elements? So %w[foo foo bar foobar bar baz].magic_function == { "foo" => 2, "bar" => 2, "foobar" => 1, "baz" => 1 }
adambeynon has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 240 seconds]
<henrikhodne> Ah, I just realised that I solved this very problem a few days ago. ary.uniq.inject({}) { |hsh, word| hsh.merge(word => ary.count(word) }
zoo-zed has joined #ruby-lang
zoo-zed has quit [Client Quit]
zoo-zed has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
io_syl has quit [Quit: io_syl]
zoo-zed has quit [Client Quit]
zoo-zed has joined #ruby-lang
cmaxw__ has quit [Read error: Connection reset by peer]
zoo-zed has quit [Client Quit]
cmaxw_ has joined #ruby-lang
rshetty has quit [Ping timeout: 240 seconds]
scottj has joined #ruby-lang
dagobah has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 268 seconds]
Guest27023 has quit [Changing host]
Guest27023 has joined #ruby-lang
Guest27023 has joined #ruby-lang
benlovell has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
Guest27023 is now known as Boohbah
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
apeiros has joined #ruby-lang
rshetty has joined #ruby-lang
Domon has quit [Remote host closed the connection]
fosky has joined #ruby-lang
workmad3 has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
<heftig> henrikhodne: that's really slow, though
<heftig> >> %w[foo foo bar foobar bar baz].each_with_object(Hash.new(0)) {|x,h| h[x]+=1}
<eval-in> heftig => {"foo"=>2, "bar"=>2, "foobar"=>1, "baz"=>1} (https://eval.in/37963)
workmad3 has quit [Ping timeout: 240 seconds]
bzb has joined #ruby-lang
rolfb has joined #ruby-lang
bzb has quit [Max SendQ exceeded]
bzb has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
brianpWins has joined #ruby-lang
Domon has joined #ruby-lang
bzb has quit [Quit: I hate to quit but my bladder's full. :-(]
cmaxw_ has quit [Quit: cmaxw_]
flip_digits has joined #ruby-lang
tomkadwill has joined #ruby-lang
flip_digits has quit [Ping timeout: 264 seconds]
tomkadwill has quit [Remote host closed the connection]
joeroot has joined #ruby-lang
ryez has joined #ruby-lang
<henrikhodne> heftig: I realised that I only allow two different values in the array, so I ended up with { "foo" => ary.count("foo"), "bar" => ary.count("bar") }
<heftig> henrikhodne: still traverses the array twice
gja has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
mdedetrich has joined #ruby-lang
<diegoviola> is mocking and stubbing in rspec about faking objects for testing?
<diegoviola> i'm new with tdd/bdd
<henrikhodne> heftig: True. The arrays won't be long enough for this to be a significant performance hit, though.
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
diegoviola was kicked from #ruby-lang by apeiros [cross-posting without telling that you cross-post is not welcome. this is only a kick, not a ban, take it as a warning.]
diegoviola has joined #ruby-lang
<diegoviola> sorry
solars has joined #ruby-lang
joeroot has quit [Quit: Leaving...]
bzalasky has joined #ruby-lang
ChristianS has joined #ruby-lang
firstdayonthejob has quit [Quit: WeeChat 0.4.1]
tobiasvl has joined #ruby-lang
cordax has quit [Quit: Computer has gone to sleep.]
stan has joined #ruby-lang
julweber has joined #ruby-lang
vbatts has joined #ruby-lang
duphus has quit [Quit: Leaving.]
gja has quit [Quit: This computer has gone to sleep]
vikhyat has joined #ruby-lang
marr has joined #ruby-lang
Nss has joined #ruby-lang
ffio has quit [Ping timeout: 240 seconds]
ffio_ has joined #ruby-lang
PaulePanter has joined #ruby-lang
<yorickpeterse> morning
mytrile has joined #ruby-lang
rsync has quit [Ping timeout: 240 seconds]
hhatch has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
fosky has quit [Ping timeout: 240 seconds]
fosky has joined #ruby-lang
rolax has joined #ruby-lang
rolax has quit [Remote host closed the connection]
* yorickpeterse cries
fosky has quit [Ping timeout: 240 seconds]
rolfb has quit [Quit: Leaving...]
ngw has joined #ruby-lang
judofyr has joined #ruby-lang
rshetty has quit [Quit: Sleeping]
tbuehlmann has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
atmosx has joined #ruby-lang
vikhyat_ has joined #ruby-lang
<whitequark> yorickpeterse: fast and furious
<whitequark> what else do you need to know
<judofyr> whitequark: the Q&A on habrahabr is in some sort of gibberish language!
<judofyr> :D
<whitequark> judofyr: you're talking in some sort of gibberish language right now
<whitequark> what is it, canadian?!
rolfb has joined #ruby-lang
<judofyr> whitequark: helt enig. engelsk er ganske gibberish.
<whitequark> wat
vikhyat has quit [Ping timeout: 264 seconds]
<yxhuvud> judofyr: det gäller ju iofs norska också.
<judofyr> yxhuvud: jøss, en svenske?
<yxhuvud> japp.
<judofyr> ikke verst
<yorickpeterse> judofyr: bork bork bork
<judofyr> :D
<judofyr> hah, nice abuse of LD_PRELOAD: https://www.flamingspork.com/projects/libeatmydata/
<whitequark> ... are there examples where LD_PRELOAD is *not* abused?
<judofyr> good point
<yxhuvud> I like the name of that lib
roadt__ has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby-lang
Oak has quit [Ping timeout: 248 seconds]
<whitequark> i like eating your data
<judofyr> that's what she said?
<whitequark> yes, something along that line
spuk has quit [Ping timeout: 260 seconds]
skade has joined #ruby-lang
atmosx has quit [Quit: And so the story goes…]
duphus has joined #ruby-lang
<Nilium> This cat is taking up so much space on my futon
roadt__ has joined #ruby-lang
rshetty has joined #ruby-lang
<yorickpeterse> take pictures
<gnufied> excellent library.
<Nilium> Wow, people use bazaar still
<gnufied> I am wondering how it performs when you have mysql data directory mounted on a tmpfs (in memory file system)
<Nilium> I thought that died when it became clear hg and git won
<yorickpeterse> Nilium: :3
<gnufied> I still use Bazaar to buy fish and stuff. Is that outdated?
<Nilium> I managed to relocate the kitty, she's now stretched out against me instead of hogging the bed
bzalasky has quit [Remote host closed the connection]
mdedetrich has quit [Quit: Computer has gone to sleep.]
zz_jus is now known as jus
atmosx has joined #ruby-lang
<yorickpeterse> Seems I'll be running benchmarks for two days
<yorickpeterse> awwww yisss
lsegal` has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<yorickpeterse> Including a set of benchmarks for Amazon SQS queues. Wonder if I can open sauce that
mdedetrich has joined #ruby-lang
fosky has joined #ruby-lang
mreq has joined #ruby-lang
gja has joined #ruby-lang
gja has joined #ruby-lang
irmbrady has joined #ruby-lang
henrikhodne has quit [Ping timeout: 240 seconds]
tbuehlmann has quit [Remote host closed the connection]
jus is now known as zz_jus
postmodern has quit [Ping timeout: 240 seconds]
Voker57 has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
postmodern has joined #ruby-lang
Cakey has quit [Ping timeout: 268 seconds]
joeroot has joined #ruby-lang
vikhyat_ has quit [Ping timeout: 240 seconds]
jsullivandigs has quit [Remote host closed the connection]
<erikh> benchmarks for SQS?
jsullivandigs has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 240 seconds]
<yorickpeterse> As in, how long it would take our code to consume a queue of N messages in size
atmosx has quit [Quit: And so the story goes…]
diegoviola has quit [Quit: WeeChat 0.4.1]
spuk has joined #ruby-lang
marr has quit [Ping timeout: 268 seconds]
irmbrady has quit [Quit: WeeChat 0.4.0]
gja has quit [Ping timeout: 240 seconds]
Voker57 has quit []
melter has quit [Ping timeout: 260 seconds]
RickHull1 has quit [Quit: Leaving.]
duphus has quit [Quit: Leaving.]
gja has joined #ruby-lang
gja has joined #ruby-lang
<injekt> morning
axsuul has quit [Ping timeout: 268 seconds]
ledestin has quit [Ping timeout: 264 seconds]
ChristianS has left #ruby-lang ["Ciao"]
melter has joined #ruby-lang
krz has quit [Quit: krz]
krz has joined #ruby-lang
krz has quit [Client Quit]
krz has joined #ruby-lang
krz has quit [Client Quit]
krz has joined #ruby-lang
roadt__ has quit [Ping timeout: 246 seconds]
jvrmaia has joined #ruby-lang
roadt__ has joined #ruby-lang
rolfb has quit [Quit: Linkinus - http://linkinus.com]
ledestin has joined #ruby-lang
zz_jus is now known as jus
vlad_starkov has quit [Remote host closed the connection]
mbj has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
marr has joined #ruby-lang
vikhyat has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
skmp has quit [Quit: Leaving.]
Domon has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
benlovell has quit [Ping timeout: 264 seconds]
canton7 is now known as that_
that_ is now known as canton7
krz has quit [Quit: krz]
mantono has quit [Remote host closed the connection]
heftig has quit [Quit: Quitting]
heftig has joined #ruby-lang
heftig has quit [Remote host closed the connection]
heftig has joined #ruby-lang
jus is now known as zz_jus
hogeo has quit [Remote host closed the connection]
flip_digits has joined #ruby-lang
rshetty has quit [Quit: Sleeping]
rshetty has joined #ruby-lang
pipework has quit [Remote host closed the connection]
mnngfltg has joined #ruby-lang
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby-lang
kstuart has joined #ruby-lang
ldnunes has joined #ruby-lang
hashkey has joined #ruby-lang
benlovell has joined #ruby-lang
jxie has quit [Quit: leaving]
maxmanders has joined #ruby-lang
vlad_starkov has joined #ruby-lang
anonymuse has joined #ruby-lang
anonymuse has quit [Remote host closed the connection]
anonymuse has joined #ruby-lang
gja has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
anonymuse has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby-lang
toretore has joined #ruby-lang
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
vlad_starkov has quit [Ping timeout: 248 seconds]
zz_jus is now known as jus
yxhuvud has quit [Quit: Nettalk6 - www.ntalk.de]
ecnalyr has joined #ruby-lang
<yorickpeterse> Fuck you bundler, if I run `bundle update derp` I expect you to update `derp` and not a bunch of other dependencies
<yorickpeterse> especially if those deps are not even related to `derp`
<yorickpeterse> oh.....wrong Ruby
<yorickpeterse> derp
* yorickpeterse slaps himself around with a large trout
<injekt> :/
<apeiros> why do you punish the trout?
<whitequark> around a bit*
<injekt> sounds like a euphemism
<injekt> mom get out i'm punishing the trout
<injekt> I'll see myself out
<yorickpeterse> wat
<injekt> I'll see myselt trout*
<whitequark> lol
<whitequark> injekt: I'm so going to use this
<whitequark> "punishing the trout", my ass
mnngfltg has quit [Ping timeout: 240 seconds]
heftig has quit [Ping timeout: 245 seconds]
<injekt> git s
<injekt> oops
breakingthings has joined #ruby-lang
<yorickpeterse> weeeeh, ruby-lint featured again in ruby weekly
<yorickpeterse> though without a description this time
swav has quit [Remote host closed the connection]
mnngfltg has joined #ruby-lang
retro|cz has joined #ruby-lang
joshuawscott has joined #ruby-lang
<judofyr> yorickpeterse: congrats!
<judofyr> maybe I should try it out
dhruvasagar has quit [Ping timeout: 240 seconds]
jus is now known as zz_jus
Nss has quit [Quit: Sto andando via]
<gnufied> yorickpeterse new charlie of #ruby-lang!
tomzx_mac has joined #ruby-lang
<yorickpeterse> judofyr: "stable" release has some bugs though, but those have already been fixed in Git HEAD
pipework has joined #ruby-lang
malev has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
kstuart has quit [Ping timeout: 264 seconds]
carloslopes has joined #ruby-lang
marr has quit [Ping timeout: 246 seconds]
swav has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
<ledestin> yorickpeterse: bugs indeed
joshuawscott has quit [Quit: Leaving.]
<judofyr> yorickpeterse: classes can only inherit another class (TypeError) :(
postmodern has quit [Quit: Leaving]
rshetty has quit [Quit: Sleeping]
rshetty has joined #ruby-lang
<yorickpeterse> already fixed
joshuawscott has joined #ruby-lang
<gnufied> what we need is to fun a kick starter so as Yorick can hire a QA team
<gnufied> fund*
<yorickpeterse> I have a Q&A team, it's the internet :)
<ledestin> running the lint on many ruby projects should do it
<yorickpeterse> ledestin: correct, but first need to solve some false positives in Rails
<gnufied> I meant QA team, not Q&A team
<yorickpeterse> there's a difference?
<whitequark> quality assurance vs questions and answers
<gnufied> ^
<yorickpeterse> right
<yorickpeterse> I thought they were the same
<whitequark> lol
mbj_ has joined #ruby-lang
<judofyr> :D
mbj has quit [Ping timeout: 240 seconds]
anonymuse has joined #ruby-lang
<judofyr> yorickpeterse: what's up with develop and master branches?
<yorickpeterse> master is stable, develop is semi stable
<yorickpeterse> It's a pretty common pattern actually
cmaxw_ has joined #ruby-lang
<yorickpeterse> master only gets updated between releases
<whitequark> antipattern
<whitequark> ;)
<judofyr> tag == stable, master == latest
<whitequark> ^
<yorickpeterse> haha, go tell that to every big project out there
<whitequark> like linux?
<judofyr> and Rails?
<whitequark> Rails isn't exactly big :p
<whitequark> also yeah
<judofyr> no, but it's in the context of Ruby development
<yorickpeterse> ehm, not entirely
vlad_starkov has joined #ruby-lang
<yorickpeterse> it's pretty common in non dickfarts projects (not just in Ruby land) to have some sort of stable branch to allow people to make patches without having to deal with your hacks and what not
<whitequark> yorickpeterse: that's not exactly how it works
<whitequark> you maintain a branch for each stable release
<yorickpeterse> that's a different pattern?
<whitequark> it doesn't make sense to just have "a" stable branch
<yorickpeterse> it makes perfect sense
<DefV> not really
<yorickpeterse> I'm not going to bikeshed about it, deal with it
<yorickpeterse> http://nvie.com/posts/a-successful-git-branching-model/ this is an extreme overkill but it's worth the read
hashkey has quit [Ping timeout: 264 seconds]
<whitequark> >extreme overkill
<whitequark> yes exactly
anonymuse has quit [Remote host closed the connection]
<whitequark> look at the rationale for separated develop and master branches
<gnufied> I have seen as well people using so called "develop" branch.
anonymuse has joined #ruby-lang
<gnufied> but it does not make any sense for open source gem/pkg projects
<yorickpeterse> whitequark: can you for once not be a fucking ass and try to understand the reasoning behind it?
<yorickpeterse> "OH SHIT IT DOESN'T SAY X IN THE FIRST PARAGRAPH, TL;DR THEREFOR IT'S WRONG"
<yorickpeterse> I'd love to explain it but not right now, I'm dealing with CRUD
<whitequark> yorickpeterse: I understand the reasoning behind it, I simply consider it unnecessary
arcz has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
Squarepy has joined #ruby-lang
<yorickpeterse> Assuming people have problems with it (e.g. they keep comitting shit in the wrong branch) I'll merge the two together, but until then I'd prefer to keep them separate
anonymuse has quit [Ping timeout: 276 seconds]
<yorickpeterse> I may be a pedantic dick but I don't really have problems with reconsidering things if it makes things easier
<whitequark> yes you are
<whitequark> well, pedantic at least
wmoxam has joined #ruby-lang
<yorickpeterse> I'm both, trust me
<yorickpeterse> at least when it comes to IT
<yorickpeterse> I suppose I'm like Linus but a factor of 10 less bad
<yorickpeterse> Plus I'd prefer not to yell at contributors unless they do stupid things on purpose
<whitequark> Linus doesn't either
<yorickpeterse> I suppose the best way to piss me off would be to take a random project of mine, fork it, relicense it under the WTFPL and submit a PR
zz_jus is now known as jus
<yorickpeterse> and I probably shouldn't have said that
vlad_starkov has quit [Remote host closed the connection]
sethetter has joined #ruby-lang
sethetter has left #ruby-lang [#ruby-lang]
scampbell has joined #ruby-lang
mnngfltg has quit [Quit: Ex-Chat]
<yorickpeterse> Fuckit, I'm merging the two branches. whatever, yolo, etc
<yorickpeterse> Seeing how this also fixes some issues with Codeclimate (DIFFERENT BRANCHES WHAT'S THAT?) and friends
<zzak> injekt: ping
rshetty has quit [Quit: Sleeping]
Mon_Ouie has joined #ruby-lang
<yorickpeterse> ugh, `distance_of_time_in_words` is such a dumb name
<yorickpeterse> PIG DISGUSTING
mucker has joined #ruby-lang
kstuart has joined #ruby-lang
<yorickpeterse> might as well have called it carpal_tunnel_syndrome
rickruby has quit [Remote host closed the connection]
<zzak> yorick
<zzak> how_much_coffee_did_you_have_today_so_far?
<kalleth> Drinking::NotEnoughCaffeineException
<yorickpeterse> zzak: I don't drink coffee
<yorickpeterse> The smell alone makes me barf
<yorickpeterse> But that reminds me, I should probably make some tea
* whitequark places a cup under yorickpeterse's face
<yorickpeterse> whitequark: enjoy the arm pain by holding that cup up! Ha! Take that!
<GarethAdams> (╯°□°)╯︵ ┻━┻
<yorickpeterse> haha
<yorickpeterse> Not as much as I used to these days
ecnalyr has joined #ruby-lang
<yorickpeterse> it's usually grumpy sounds followed by "HNNNGGGgggg....what the"
<yorickpeterse> (not too uncommon is "Oh....dumbass" followed by it)
<judofyr> yorickpeterse: how should I run ruby-lint against a project?
<judofyr> yorickpeterse: http://hastebin.com/vufohikoti.txt
MaddinXx has joined #ruby-lang
<yorickpeterse> oh heh, that's the manifest
<yorickpeterse> you can ignore that
<yorickpeterse> just run `ruby ./bin/ruby-lint FILE`
<yorickpeterse> (bundler is only used for installing deps easily)
realDAB has joined #ruby-lang
<judofyr> yorickpeterse: I tried to add it in my project's Gemfile
<whitequark> yorickpeterse: read that as "installing deeply"
<whitequark> the resulting mental image is scary
<yorickpeterse> whitequark: deep dependency inspection
cordax has joined #ruby-lang
<whitequark> hngg... *crawls under the table*
<yorickpeterse> and no, I'm not some german fetishist
<whitequark> german?
<whitequark> did you guys have too much wars in middle ages? :D
<yorickpeterse> For some reason there's this stereotype over here of Germans being sex addicts wearing spandex
<yorickpeterse> Don't ask
<yorickpeterse> I have no idea where it comes from
<whitequark> ...
<judofyr> yorickpeterse: woah, I got tons of errors. but no context :(
<yorickpeterse> judofyr: yeah there are lots of false positives
<yorickpeterse> e.g. it can't figure out stuff from outside the file you're processing unless there are pre built definitions
<yorickpeterse> (as is the case for stdlib and up to a certain extend Rails)
realDAB has quit [Client Quit]
<whitequark> yorickpeterse: wait, you don't even do cross-file analysis?
<yorickpeterse> whitequark: no, not yet
vlad_starkov has joined #ruby-lang
<yorickpeterse> I can't rely on require() calls so it's not there yet
<yorickpeterse> e.g. try following `require herp_derp_custom_method` when there's no return value tracking yet (properly)
cored has quit [Ping timeout: 248 seconds]
<whitequark> that's a really minor issue
<yorickpeterse> https://github.com/YorickPeterse/ruby-lint/issues/29 corresponding issue
<whitequark> like 99.9% of require calls are static
<whitequark> and you can pattern-match common autoloading stuff
<whitequark> like autoload and Rails thingy
<yorickpeterse> eh? require File.expand_path is pretty common too, though not too difficult
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
<judofyr> whitequark: how's Foundry going btw?
<yorickpeterse> The real issue is autoloading
<whitequark> judofyr: working on it right now
vlad_starkov has quit [Remote host closed the connection]
<whitequark> I'm writing a production compiler if you don't know
<whitequark> and in parallel composing a language spec
<judofyr> yorickpeterse: yeah, good luck detecting this autoloading: https://github.com/rtomayko/tilt/blob/master/lib/tilt/mapping.rb#L82
Ignas has joined #ruby-lang
<judofyr> cool
Ignas has left #ruby-lang [#ruby-lang]
fosky has quit [Ping timeout: 276 seconds]
<whitequark> yeah, pattern-match that as well
<whitequark> yorickpeterse: not sure how autoload is an issue
<yorickpeterse> whitequark: ...that won't solve anything
<yorickpeterse> I'd still have to resolve `class_name` in that case
<whitequark> you just need to find calls of form "autoload :Foo, 'string'"
<yorickpeterse> and `file`
<whitequark> and that's it
<yorickpeterse> and all the other crap associated with it
<whitequark> yorickpeterse: no
<whitequark> pattern-match code which depends on Tilt and calls its API
<yorickpeterse> "To build a nuclear reactor you just need to have some concrete and that's it! Easy!"
realDAB has joined #ruby-lang
<whitequark> this thing: mapping.register_lazy 'MyEngine::Template', 'my_engine/template', 'mt'
tomzx_mac has quit [Ping timeout: 248 seconds]
<whitequark> huh?
<whitequark> that's about five lines of code
<yorickpeterse> I don't want to end up with project specific stuff if possible (maybe except for Rails)
<yorickpeterse> since it quite frankly doesn't "scale"
<judofyr> whitequark: right, so it's a thing that you set up in your own config file?
realDAB has quit [Client Quit]
<whitequark> yorickpeterse: you will have to do that
<yorickpeterse> however, I do have some other ideas but I have to look into that performance wise
<whitequark> judofyr: no, I imagine there's not much autoloading code out there
<whitequark> rails, maybe sinatra, tilt, stdlib autoload
<whitequark> that's about it
<judofyr> Camping
<judofyr> but good luck linting Camping
<whitequark> yorickpeterse's not going to write a partial evaluator good enough to detect autoloading in general case
<whitequark> because that partial evaluator is called rubinius
<judofyr> whitequark: re: Foundry: I'm still wondering if there's a decent market for embedded Ruby. but it sure is an interesting technical project :)
<whitequark> judofyr: at first, I'm aiming at hobbyists
<yorickpeterse> judofyr: I'm not aiming to deal with the stuff like Camping
<yorickpeterse> it's too meta-wtf
<whitequark> judofyr: since folks who do actual embedded work are insanely conservative and also have quite higher demands, so that'll take some time to get Foundry in the necessary shape
<yorickpeterse> either way, hopefully I can tackle this in at least a basic form before August 1st
<whitequark> years, perhaps.
<whitequark> but I'm completely sure that there is a need for a much more flexible language with C/C++ perf characteristics
<judofyr> whitequark: I've probably asked you before, but what are your thoughts on Rust?
<whitequark> judofyr: it's a fine language, but has two problems
<whitequark> 1) insane churn. they really don't know what they want their language to do. and it doesn't seem that the churn slows down significantly :/
<whitequark> 2) it has metaprogramming in form of template macros, which sucks even more than autoconf+cpp
<yorickpeterse> "I need dis...and dis...and dis" - Rust
fosky has joined #ruby-lang
<whitequark> also yes, I believe that everyone who does metaprogramming with macros is fundamentally wrong :3
<yorickpeterse> http://hastebin.com/raw/jiwinipihi what the fuck is this even supposed to mean
rails_smith has quit [Quit: Leaving.]
<judofyr> yorickpeterse: bundler bug
<yorickpeterse> right
<yorickpeterse> I also have devise_invitable in there, maybe if I just remove devise
<yorickpeterse> sine the former already depends on the latter
<yorickpeterse> * since
mdedetrich has quit [Quit: Computer has gone to sleep.]
<whitequark> judofyr: Rust really seems like C++14 without the [legacy] C++ part
<whitequark> and more safety.
<judofyr> yorickpeterse: I think it's this bug: https://github.com/bundler/bundler/issues/2464
<whitequark> shared_ptr, unique_ptr, all that stuff
tkuchiki has quit [Remote host closed the connection]
setmeaway has quit [Ping timeout: 276 seconds]
<yorickpeterse> hmm
<judofyr> yorickpeterse: I applied this patch locally and it fixed it: https://gist.github.com/judofyr/5527938
<gnufied> judofyr: bundler resolver has unfortunate bugs. :(
<judofyr> yorickpeterse: ignore the added lines regarding Tilt. it's only to trigger the bug condition.
jus is now known as zz_jus
<judofyr> gnufied: Bundler - where I can rip out 20 lines in the middle of the resolver and all tests still pass, and my bug is fixed
<yorickpeterse> judofyr: lol wtf is that Gem::Specification class even doing there
<yorickpeterse> * was
<yorickpeterse> heh, this looks like one of those "FUCKIT, THIS WORKS" patches
<judofyr> yorickpeterse: they stored information there. you know, because storing it in a Hash somewhere else would be too tricky
<yorickpeterse> like where "fixing C" means just commenting some assignments
<yorickpeterse> No compiler warnings == no bugs
jsullivandigs has joined #ruby-lang
<whitequark> lol
<judofyr> where I commented on an obvious bug. and it was acknowledged, but it hasn't been fixed…
Drago has joined #ruby-lang
<gnufied> judofyr: bundler code is horribly undocumented
<yorickpeterse> "Sorry, this commit took too long to generate"
<yorickpeterse> :<
<yorickpeterse> DAMN YOU GITHUB
<gnufied> it uses a recursive back tracking algorithm to find the dependencies and exact details are locked in brains of Yehuda Katz
<gnufied> backtracking*
<yorickpeterse> sounds like what that "You dun goof'd" guy would say
<whitequark> sounds like a recipe for disaster
<yorickpeterse> judofyr: still can't load said commit :<
Drago has quit [Remote host closed the connection]
<yorickpeterse> ZEH F5 DOES NOTHING
Drago has joined #ruby-lang
<judofyr> (it's the same code, but this was the commit where it was introduced)
Drago has quit [Remote host closed the connection]
<judofyr> the other one was just a restructuring commit where I
<whitequark> >I don't actually remember writing this code
<yorickpeterse> heh, appending .patch to the first URL does display it
<judofyr> I opened a proper issue: https://github.com/bundler/bundler/issues/2548
<yorickpeterse> also TESTS?
nathanstitt has joined #ruby-lang
<yorickpeterse> wot tests m8
<judofyr> it's so tempting rewriting rubygems/bundler…
<judofyr> must… resist…
<yorickpeterse> slim-bundler
<ledestin> is it common for travis to disregard Gemfile changes?
<judofyr> ledestin: I thought it installed all dependencies from scratch in every build.
heftig has joined #ruby-lang
<ledestin> judofyr: no, I mean that after my last push it doesn't rebuild my project
<judofyr> ledestin: also: #travis is probably a better place to ask
<yorickpeterse> Hmpf, fucking propeller hat for my cat still hasn't been shipped
<yorickpeterse> DAMN IT ETSY
<ledestin> judofyr: ok, ty
<judofyr> ledestin: oh. hm. don't think so…
arooni-mobile has joined #ruby-lang
<injekt> zzak: yo
<injekt> zzak: in the office so it's a little easier to chat on here, ping me when you're around
realDAB has joined #ruby-lang
realDAB has quit [Client Quit]
glebm has quit [Ping timeout: 276 seconds]
<yorickpeterse> In hindsight, starting the trend of opening the windows in the dev cage might've not been my best decision
<yorickpeterse> it's a lot warmer here than in the rest of the office
zomgbie has joined #ruby-lang
anonymuse has joined #ruby-lang
<injekt> yorickpeterse: "when i run out of rails to complain about, i move on to the weather"
<yorickpeterse> hey the weather itself is fine
<yorickpeterse> which reminds me, this little duck family should be at my napping spot by now. Should have a look in a bit
<yorickpeterse> (I've been taking a nap for 2 weeks now aroudn the same time as this duck family showing up)
<yorickpeterse> needless to say papa duck doesn't like me being around
<injekt> :/
<yorickpeterse> it's also on "private property" but that's a different story
<judofyr> when did #ruby-lang turn into yorickpeterse's diary btw?
<judofyr> (not that I'm complaining)
<breakingthings> 20 minutes ago
<injekt> 20 minutes ago?
<injekt> hahaha
<judofyr> kthx
<injekt> weeks
<injekt> months
<breakingthings> injekt: well yeah before that it was yorickpeterse's echochamber
<yorickpeterse> judofyr: ever since I joined
<injekt> I like to call it, yorickpeterse's bitch crib
<yorickpeterse> implying I'm a pimp
<injekt> (not to be confused with the place with yorickpeterse's bitches are located)
<injekt> ^
<yorickpeterse> or some racial stereotype
mytrile has quit [Remote host closed the connection]
<yorickpeterse> I also don't have dogs
<judofyr> current soundtrack: http://www.youtube.com/watch?v=X5KmB8Laemg - I wish more artists would something similar. random people on the street are fun.
<yorickpeterse> oh ha, that one is great
<yorickpeterse> The african american dude is pretty funny
skmp has joined #ruby-lang
<judofyr> specially when the music stops
<yorickpeterse> haha yeah
cored has quit [Ping timeout: 240 seconds]
<yorickpeterse> "how much is it, I'll take two"
<judofyr> I think I've played this song maybe 20 times today
<judofyr> (or, the video)
<yorickpeterse> the hipster dude is also fun
<yorickpeterse> "I've heard it much earlier when it first came out"
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
<yorickpeterse> "Some super girl some feminist would approve of" haha
xxaM has quit [Quit: ZZzZzzZzzZZ]
<judofyr> and that jr. high school student
<yorickpeterse> haha
<judofyr> so skeptical
<judofyr> oh well
marr has joined #ruby-lang
<judofyr> there went my productivity
elia has joined #ruby-lang
fosky has quit [Ping timeout: 240 seconds]
kstuart has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby-lang
Cakey has joined #ruby-lang
tbuehlmann has joined #ruby-lang
benlovell has quit [Ping timeout: 264 seconds]
hhatch has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
glebm has joined #ruby-lang
Cakey has quit [Read error: Connection reset by peer]
snarfmason has joined #ruby-lang
benlovell has joined #ruby-lang
cmaxw_ has quit [Ping timeout: 268 seconds]
<yorickpeterse> bah, my flawless code is not so flawless after all
skade has quit [Quit: Computer has gone to sleep.]
snarfmason has quit [Client Quit]
<yorickpeterse> MySQL question that's related: if I do a JOIN on 25 rows (the joined table has like a bazillion rows), does it only join those 25 or does it gobble everything up and then filter out what it needs?
<yorickpeterse> so it's basically 25 -> N where I only need 25 of N
cmaxw_ has joined #ruby-lang
<yorickpeterse> if that makes sense
zomgbie has quit [Read error: Connection reset by peer]
Drago has joined #ruby-lang
Drago has quit [Client Quit]
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
hhatch has joined #ruby-lang
elia has quit [Ping timeout: 240 seconds]
adwhit has quit [Ping timeout: 245 seconds]
elia has joined #ruby-lang
adwhit has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 256 seconds]
<judofyr> yorickpeterse: EXPLAIN is your friend
<apeiros> AAAARGH IEEEEEEEEE!!!!!
<whitequark> EXPLAIN SELECT yorickpeterse(code) FROM github WHERE repo = "rails/rails";
<apeiros> IE8 & CSS == russian roulette
<yorickpeterse> meh, I fixed it by not joining and just doing a WHERE on the column in question. Associated data seems to always exist anyway
shinnya has joined #ruby-lang
ecnalyr has quit [Ping timeout: 245 seconds]
GeissT has quit [Quit: MillBroChat AdIRC User]
vlad_starkov has joined #ruby-lang
<yorickpeterse> heh, ruby-weekly does really help: http://downloads.yorickpeterse.com/images/screenshot_180713_17%3a33%3a57.png
<yorickpeterse> andrewvos: :3
<yorickpeterse> http://www.etsy.com/listing/130975578/propeller-hat-propeller-beanie-sf-fandom? I got this for my cat but haven't received it yet
benlovell has quit [Ping timeout: 268 seconds]
rshetty has joined #ruby-lang
imperator has joined #ruby-lang
<yorickpeterse> https://github.com/crowdlab-uk what the hell, what gives with all the forks?
<andrewvos> wow creepy cat
carloslopes has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
kstuart has joined #ruby-lang
jxie has joined #ruby-lang
mistym has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
elia has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 276 seconds]
adwhit has quit [Ping timeout: 240 seconds]
pipework has quit [Ping timeout: 276 seconds]
adwhit has joined #ruby-lang
mbj_ is now known as mbj
pipework has joined #ruby-lang
havenwood has joined #ruby-lang
realDAB has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
arcz has quit [Ping timeout: 248 seconds]
bzalasky has joined #ruby-lang
dhruvasagar has joined #ruby-lang
mistym has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
tkuchiki has joined #ruby-lang
carloslopes has joined #ruby-lang
kstuart has quit [Ping timeout: 268 seconds]
dhruvasagar has quit [Ping timeout: 260 seconds]
kstuart has joined #ruby-lang
mreq has quit [Ping timeout: 276 seconds]
thepumpkin has joined #ruby-lang
ffio_ has quit [Ping timeout: 248 seconds]
_ffio_ has joined #ruby-lang
ndrst has quit [Ping timeout: 248 seconds]
<yorickpeterse> "On my machine (FreeBSD 3.2 on P5, 100MHz) this generates:"
<yorickpeterse> relics of the past
mistym has joined #ruby-lang
skade has joined #ruby-lang
skade has quit [Client Quit]
dagobah has quit [Remote host closed the connection]
_jpb_ has joined #ruby-lang
cored has quit [Ping timeout: 268 seconds]
bzalasky has quit [Read error: Connection reset by peer]
bzalasky has joined #ruby-lang
cored has joined #ruby-lang
cored has joined #ruby-lang
ngw has quit [Quit: Bye!]
bzalasky has quit [Remote host closed the connection]
__butch__ has joined #ruby-lang
kstuart has quit [Ping timeout: 260 seconds]
kstuart has joined #ruby-lang
realDAB has joined #ruby-lang
swav has quit [Remote host closed the connection]
stan has quit [Ping timeout: 264 seconds]
anonymuse has quit [Remote host closed the connection]
saarinen has joined #ruby-lang
gregmoreno has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
anonymuse has joined #ruby-lang
hahuang65 has quit [Quit: Computer has gone to sleep.]
iliketurtles has joined #ruby-lang
dhruvasagar has joined #ruby-lang
iliketurtles has quit [Client Quit]
iliketurtles has joined #ruby-lang
swav has joined #ruby-lang
anonymuse has quit [Remote host closed the connection]
kstuart has quit [Ping timeout: 248 seconds]
kstuart has joined #ruby-lang
JohnBat26 has joined #ruby-lang
realDAB has quit [Quit: realDAB]
henrikhodne has joined #ruby-lang
_jpb_ has quit [Quit: leaving]
GaelanAintAround is now known as Gaelan
_jpb_ has joined #ruby-lang
_jpb_ has quit [Client Quit]
realDAB has joined #ruby-lang
_jpb_ has joined #ruby-lang
ndrst has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
rickhull has joined #ruby-lang
saarinen has quit [Quit: saarinen]
joeroot has quit [Quit: Leaving...]
apeiros has joined #ruby-lang
swav has quit [Remote host closed the connection]
kstuart has quit [Ping timeout: 240 seconds]
cordax has quit [Quit: Computer has gone to sleep.]
agile has quit [Remote host closed the connection]
symm- has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
__butch__ has quit [Read error: Connection reset by peer]
__butch__ has joined #ruby-lang
Squarepy has quit [Quit: Leaving]
<joevandyk> I always get confused between '\n' and "\n". Why does "\n" make a line break and the other doesn't?
cmaxw_ has quit [Quit: cmaxw_]
brianpWins has quit [Quit: brianpWins]
iliketurtles has quit [Quit: zzzzz…..]
agile has joined #ruby-lang
<apeiros> because '\n' is "\\n"
<apeiros> i.e. a backslash followed by an n
<apeiros> and that's because single quoted strings only knows 2 escape sequences: \' and \\
<apeiros> everything else is literal in SQ strings
iliketurtles has joined #ruby-lang
rshetty has quit [Ping timeout: 240 seconds]
realDAB has quit [Quit: realDAB]
<joevandyk> apeiros: ah, that makes sense. Thanks.
<whitequark> oh god. "Your Klout score went up"
cored has quit [Ping timeout: 264 seconds]
gregmoreno has quit [Remote host closed the connection]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
<apeiros> Klout? the thing we should shoot Randall Munroe if he ever uses it?
carloslopes has joined #ruby-lang
scampbell has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
anonymuse has joined #ruby-lang
<whitequark> yeah
_jpb_ has quit [Quit: leaving]
glebm has quit [Quit: Computer has gone to sleep.]
carloslopes has quit [Ping timeout: 240 seconds]
jsullivandigs has joined #ruby-lang
andrewvos has quit [Quit: leaving]
joeroot has joined #ruby-lang
joeroot has quit [Client Quit]
roadt__ has quit [Read error: Connection reset by peer]
andrewvos has joined #ruby-lang
_jpb_ has joined #ruby-lang
retro|cz has quit [Ping timeout: 264 seconds]
_jpb_ has quit [Client Quit]
_jpb_ has joined #ruby-lang
benanne has joined #ruby-lang
vlad_starkov has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 260 seconds]
vikhyat has quit [Remote host closed the connection]
mucker has quit [Quit: Lost terminal]
firstdayonthejob has joined #ruby-lang
arcz has joined #ruby-lang
brianpWins has joined #ruby-lang
gregmoreno has joined #ruby-lang
joeroot has joined #ruby-lang
ruurd has joined #ruby-lang
cored has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
mreq has joined #ruby-lang
andrewvos has quit [Quit: leaving]
hahuang65 has joined #ruby-lang
pr0ton has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
joeroot has quit [Ping timeout: 240 seconds]
adambeynon has joined #ruby-lang
henrikhodne has quit [Ping timeout: 248 seconds]
root has joined #ruby-lang
root is now known as Guest50463
tylersmith has joined #ruby-lang
Guest50463 has quit [Client Quit]
root2 has joined #ruby-lang
root2 is now known as andrewvos
dhruvasagar has joined #ruby-lang
andrewvos has quit [Client Quit]
duphus has joined #ruby-lang
andrewvos has joined #ruby-lang
<andrewvos> hello
eugenejen has joined #ruby-lang
andrewvos has quit [Client Quit]
bondar has joined #ruby-lang
bondar has joined #ruby-lang
hahuang65 has quit [Quit: leaving]
hahuang65 has joined #ruby-lang
bondar has quit [Excess Flood]
bondar has joined #ruby-lang
bondar has quit [Excess Flood]
bondar has joined #ruby-lang
rdg has joined #ruby-lang
Gaelan has quit [Ping timeout: 240 seconds]
<freedrull> [6] pry(main)> Time.instance_method(:>).source.display
<freedrull> MethodSource::SourceNotFoundError: Could not locate source for >!
<freedrull> :{
glebm has joined #ruby-lang
<whitequark> in C
<freedrull> ah
bondar has joined #ruby-lang
workmad3 has quit [Ping timeout: 276 seconds]
Gaelan has joined #ruby-lang
<yorickpeterse> hnnnnggg almost 200 stars on github
hashkey has joined #ruby-lang
<yorickpeterse> and 10 forks, which I don't understand
<yorickpeterse> (I never got that "LETS FORK RANDOM THINGS" mentality)
hahuang65 has quit [Quit: leaving]
hahuang65 has joined #ruby-lang
<apeiros> freedrull: gem install pry-doc, then: [1] pry(main)> $ Time#>
<apeiros> works with core C methods
enebo has joined #ruby-lang
rdg has quit [Quit: [quit]]
iliketurtles has quit [Quit: zzzzz…..]
<freedrull> apeiros: oh sweet
andrewvos has joined #ruby-lang
andrewvos has quit [Client Quit]
vlad_starkov has joined #ruby-lang
rickhull has quit [Quit: Leaving.]
andrewvos has joined #ruby-lang
<freedrull> thats pretty awesome
kstuart has joined #ruby-lang
andrewvos has quit [Client Quit]
benlovell has joined #ruby-lang
andrewvos has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
bgant has joined #ruby-lang
<andrewvos> Anyone know how to make the weechat prompt the channel instead of the username?
<yorickpeterse> You mean on the same line as where you type?
<andrewvos> yorickpeterse: So instead of "yorickpeterse(zi)" I want to see "#ruby-lang".
<yorickpeterse> hmmm, not sure how to do that
workmad3 has joined #ruby-lang
andrewvos has quit [Quit: WeeChat 0.3.7]
andrewvos has joined #ruby-lang
<andrewvos> yorickpeterse: weechat.bar.input.items = "[buffer_name]+(away),[input_search],[input_paste],input_text"
vlad_starkov has joined #ruby-lang
pr0ton has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Ping timeout: 246 seconds]
brianpWins has quit [Quit: brianpWins]
vlad_starkov has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
pothibo has joined #ruby-lang
malev has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
mreq has quit [Ping timeout: 276 seconds]
<yorickpeterse> neato
maxmanders has quit [Quit: Computer has gone to sleep.]
malev has joined #ruby-lang
bondar has quit []
anonymuse has quit [Remote host closed the connection]
Gaelan is now known as GaelanAintAround
carloslopes has joined #ruby-lang
thepumpkin has quit [Remote host closed the connection]
hashkey has quit [Quit: Leaving]
__butch__ has quit [Quit: Leaving.]
symm- has quit [Ping timeout: 276 seconds]
pkrnj has joined #ruby-lang
<freedrull> i'm trying to make a NullDate class and implement <=> by including the Comparable module. seems to work fine except not in rails? https://gist.github.com/mcfiredrill/cbf120e63fad37087195
<apeiros> freedrull: I think rails overrides to_date etc.
<apeiros> freedrull: may want to take a look at https://github.com/apeiros/sorting
<apeiros> Sorting::Bigger/Sorting::Smaller in particular
thepumpkin has joined #ruby-lang
hhatch has quit [Ping timeout: 268 seconds]
<yorickpeterse> Given I have an array with length N, how do I remove X items from the right hand side of the array?
<yorickpeterse> e.g. `[10, 20, 30].remove_right(2) => [10]`
<apeiros> slice! or shift
<apeiros> err, pop, not shift
<apeiros> the return value might not be what you want, though
ilyam has joined #ruby-lang
<yorickpeterse> shift removes it from the left
<apeiros> 21:57 apeiros: err, pop, not shift
<yorickpeterse> ah, pop takes arguments
<yorickpeterse> ta
<yorickpeterse> yeah missed that
<yorickpeterse> soz
<apeiros> I think pop taking args happened in 1.9, not sure whether it was in 1.9.1 already or only in a later
iorek has joined #ruby-lang
<yorickpeterse> I don't care for 1.8 so that's fine
vlad_starkov has joined #ruby-lang
<apeiros> ninja time! cya guys
apeiros has quit [Remote host closed the connection]
hahuang65 has quit [Quit: leaving]
vlad_starkov has quit [Remote host closed the connection]
kstuart has quit [Ping timeout: 256 seconds]
saarinen has joined #ruby-lang
iliketurtles has joined #ruby-lang
realDAB has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
maxmanders has joined #ruby-lang
hahuang65 has joined #ruby-lang
realDAB has quit [Client Quit]
MaddinXx has joined #ruby-lang
lcdhoffman has joined #ruby-lang
pothibo has quit [Quit: pothibo]
iorek has quit [Quit: iorek]
nazty has quit [Read error: Connection reset by peer]
nignaztic has joined #ruby-lang
pr0ton has joined #ruby-lang
hahuang65 has quit [Quit: leaving]
hahuang65 has joined #ruby-lang
<freedrull> hmm, my NullDate isn't comparable to DateTime either...outside of rails
diegoviola has joined #ruby-lang
_jpb_ has quit [Ping timeout: 240 seconds]
<freedrull> or Date
_jpb_ has joined #ruby-lang
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby-lang
mosca_ has joined #ruby-lang
maxmanders has quit [Ping timeout: 276 seconds]
realDAB has joined #ruby-lang
ilyam_ has joined #ruby-lang
ilyam has quit [Ping timeout: 240 seconds]
ilyam_ is now known as ilyam
realDAB has quit [Client Quit]
flip_digits has quit [Remote host closed the connection]
benanne has quit [Quit: kbai]
Nisstyre-laptop has quit [Ping timeout: 240 seconds]
thepumpkin has quit [Remote host closed the connection]
benanne has joined #ruby-lang
thepumpkin has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
<andrewvos> Damn weechat is good
jsullivandigs has quit [Remote host closed the connection]
<diegoviola> sure it is
zomgbie has joined #ruby-lang
vlad_starkov has joined #ruby-lang
hashkey has joined #ruby-lang
<yorickpeterse> andrewvos: welcome to the cool kids club
<andrewvos> yorickpeterse: I was already in that club.
jsullivandigs has joined #ruby-lang
rails_smith has joined #ruby-lang
<yorickpeterse> no no, you used Irssi before
agile has quit [Quit: Ex-Chat]
<yorickpeterse> Irssi is for nerds
havenwood has joined #ruby-lang
arcz has quit [Quit: leaving]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
workmad3 has joined #ruby-lang
wmoxam has quit [Ping timeout: 248 seconds]
carloslopes has quit [Read error: Connection reset by peer]
diegoviola has quit [Read error: Connection reset by peer]
carloslopes has joined #ruby-lang
<freedrull> gah, if i put NullDate on the other side of the comparison, it works? :(
Guest93225 has joined #ruby-lang
Guest93225 is now known as diegoviola
<freedrull> maybe i'll open a rails issue
PacketMonkey_ has left #ruby-lang [#ruby-lang]
<andrewvos> yorickpeterse: Seen any good movies lately?
PacketMonkey has joined #ruby-lang
hahuang65 has quit [Quit: leaving]
hahuang65 has joined #ruby-lang
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby-lang
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
<yorickpeterse> not really, last movie I saw was back in April when I was in South Korea
<yorickpeterse> and that was oblivion, which was meh
<andrewvos> Worth watching, yorickpeterse?
benlovell has quit [Ping timeout: 268 seconds]
<yorickpeterse> It's an ok movie but personally I'm really tired of Tom cruise
<andrewvos> yeah
<yorickpeterse> and somewhere half way I figured out how it was going to end so it wasn't that exciting anymore
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby-lang
<andrewvos> meh
<andrewvos> looks shit
realDAB has joined #ruby-lang
havenwood has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby-lang
mosca_ has quit [Quit: Sto andando via]
breakingthings has quit [Quit: breakingthings]
havenwood has joined #ruby-lang
Nisstyre has joined #ruby-lang
pr0ton has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
saarinen has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
duphus has quit [Quit: Leaving.]
MaddinXx has quit [Remote host closed the connection]
jvrmaia has quit [Quit: Leaving]
ldnunes has quit [Quit: Leaving]
mdedetrich has joined #ruby-lang
pr0ton has joined #ruby-lang
ilyam has quit [Quit: ilyam]
realDAB has quit [Quit: realDAB]
realDAB has joined #ruby-lang
x0f_ has joined #ruby-lang
duphus has joined #ruby-lang
bgant has quit [Quit: Leaving.]
x0f has quit [Ping timeout: 240 seconds]
slash_nick has quit [Quit: Lost terminal]
joeroot has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 248 seconds]
realDAB has quit [Quit: realDAB]
postmodern has joined #ruby-lang
diegoviola has quit [Ping timeout: 260 seconds]
ruurd has quit [Quit: Leaving...]
wmoxam has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
tbuehlmann has quit []
joeroot has quit [Quit: Leaving...]
wmoxam has quit [Ping timeout: 264 seconds]
mbj has quit [Quit: leaving]
ruurd has joined #ruby-lang
pkrnj has quit [Quit: Computer has gone to sleep.]
<ledestin> is there a way for rdoc to ignore a line?
<ledestin> comment line
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
iliketurtles has joined #ruby-lang
ilyam has joined #ruby-lang
iliketurtles has quit [Max SendQ exceeded]
joshuawscott has quit [Quit: Leaving.]
iliketurtles has joined #ruby-lang
Nisstyre has quit [Quit: Leaving]
wmoxam has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
<Nilium> ledestin: Put it between lines that tell it to ignore the comment..
<Nilium> Namely, between #-- and #++
wmoxam has quit [Ping timeout: 240 seconds]
<ledestin> Nilium: thanks a lot
joeroot has joined #ruby-lang
jacktrick has joined #ruby-lang
<ledestin> Nilium: I use vim tags and it was getting frustrating
* Nilium shrugs
<Nilium> All I did was look at the rdoc documentation.
vlad_starkov has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
<ledestin> I tried googling for ignore to no avail
duphus has quit [Quit: Leaving.]
enebo has quit [Quit: enebo]
wmoxam has joined #ruby-lang
Xzyx987X has quit [Read error: Connection reset by peer]
Xzyx987X has joined #ruby-lang
wimplash has joined #ruby-lang
cored has quit [Ping timeout: 240 seconds]
GaelanAintAround is now known as Gaelan
swav has joined #ruby-lang
joeroot has quit [Quit: Linkinus - http://linkinus.com]
swav has quit [Ping timeout: 240 seconds]
pkrnj has joined #ruby-lang
realDAB has joined #ruby-lang
fosky has joined #ruby-lang
Voker57 has joined #ruby-lang
zomgbie has quit [Ping timeout: 240 seconds]
wmoxam has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby-lang
jaimef has quit [Excess Flood]
MrPoT4tO has joined #ruby-lang
pr0ton has quit [Ping timeout: 264 seconds]
wimplash has quit [Quit: Leaving.]
jaimef has joined #ruby-lang
tomzx_mac has joined #ruby-lang
jaimef has quit [Excess Flood]
saarinen has quit [Quit: saarinen]
vlad_starkov has quit [Ping timeout: 248 seconds]
pr0ton has joined #ruby-lang
mbj has joined #ruby-lang
realDAB has quit [Quit: realDAB]
jaimef has joined #ruby-lang
peeyek has joined #ruby-lang
malev has quit [Remote host closed the connection]
ruurd has quit [Quit: Leaving...]
benanne has quit [Quit: kbai]
zomgbie has joined #ruby-lang
MrPoT4tO has quit [Read error: Connection reset by peer]
MrPoT4tO has joined #ruby-lang
d2biG has quit [Remote host closed the connection]
wimplash has joined #ruby-lang
zomgbie has quit [Ping timeout: 248 seconds]
<Nilium> There we go, finally got Dash to see newly-installed gem documentation.
mistym has quit [Remote host closed the connection]
mbj has quit [Ping timeout: 276 seconds]
jonahR has joined #ruby-lang
saarinen has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
xxaM has joined #ruby-lang
mdedetrich has joined #ruby-lang
Gaelan is now known as GaelanAintAround
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
iliketurtles has quit [Quit: zzzzz…..]
uta has joined #ruby-lang
mistym has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 248 seconds]
jacktrick has quit [Quit: Leaving]
realDAB has joined #ruby-lang
realDAB has quit [Client Quit]
nignaztic has quit [Read error: Connection reset by peer]
Asher has quit [Read error: Connection reset by peer]
nignaztic has joined #ruby-lang
Asher1 has joined #ruby-lang
pipework has quit [Remote host closed the connection]
zomgbie has joined #ruby-lang
iliketurtles has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
ilyam has quit [Quit: ilyam]
zomgbie has quit [Ping timeout: 246 seconds]
ilyam has joined #ruby-lang
realDAB has joined #ruby-lang
jonahR_ has joined #ruby-lang
skmp has quit [Quit: Leaving.]
realDAB has quit [Client Quit]
jonahR has quit [Ping timeout: 248 seconds]
jonahR_ is now known as jonahR
MrPoT4tO has quit [Read error: Connection reset by peer]
ilyam has quit [Ping timeout: 260 seconds]