apeiros_ changed the topic of #ruby-lang to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
mjio has quit []
gianlucadv has joined #ruby-lang
jovy88_ has quit [Read error: Connection reset by peer]
jovy88_ has joined #ruby-lang
malign has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby-lang
priodev has quit [Ping timeout: 252 seconds]
priodev has joined #ruby-lang
malign has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
scottschecter has quit [Quit: WeeChat 0.4.0]
wyhaines has quit [Remote host closed the connection]
egypt has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
chessguy has joined #ruby-lang
arubin has joined #ruby-lang
jovy88_ has quit [Read error: Connection reset by peer]
jovy88_ has joined #ruby-lang
Guest42605 has quit [Remote host closed the connection]
__butch__ has quit [Quit: Leaving.]
mjio has joined #ruby-lang
marr has quit [Read error: Connection reset by peer]
machuga|away is now known as machuga
<Wardrop> What's with #rb top-level domains. RubyNation seems to own all of robonia domains?
havenwood has joined #ruby-lang
saarinen has quit [Quit: saarinen]
brianpWins has quit [Quit: brianpWins]
ritek has left #ruby-lang [#ruby-lang]
mksm has quit [Ping timeout: 264 seconds]
<erikh> robonia is where Bender B. Martinez comes from
<Wardrop> If I have an enumerable object, should #each, without a given block, return an Enumerator or self?
<woollyams> Wardrop: An Enumerator, I think
<woollyams> Wardrop: self.to_enum
<Wardrop> wollyams: oh yeah, that makes it easy. I assume otherwise, #each should always return self?
<drbrain> woollyams: an Enumerator
<drbrain> oops, Wardrop ↑
<drbrain> Wardrop: Array#each with a block returns self, unless you use break
<drbrain> ruby -e 'p [1, 2, 3].each { |item| break item }'
machuga has left #ruby-lang ["Textual IRC Client: www.textualapp.com"]
<erikh> drbrain: oh, hey. did you get a chance to read that blog?
<drbrain> erikh: yes, I was going to tweet a link to it tomorrow
<drbrain> erikh: good stuff!
<erikh> oh! very cool. I wanted to make sure it was correct
<Wardrop> All makes sense now, thanks
<erikh> there's more coming, I just need to get some energy to write it
saarinen has joined #ruby-lang
<woollyams> On the subject of enumerables, I've been re-inventing the wheel. Feedback welcome. https://github.com/mdub/lazily
saarinen has quit [Client Quit]
<drbrain> woollyams: I think the Enumerator::Lazy prototype was written in ruby
stamina has quit [Ping timeout: 245 seconds]
<drbrain> woollyams: you can probably dig it out of the ruby tracker (or ruby-core list) to compare
arubin has quit [Ping timeout: 246 seconds]
<woollyams> drbrain: Yeah, so is the one in "backports". Everything is based on Enumerator though. IMHO laziness shouldn't be conflated with external iteration.
<drbrain> woollyams: I haven't implemented a laziness library, but it seems that using external iteration can make it easier
<drbrain> but yeah, agreed
Raynes has quit [Ping timeout: 252 seconds]
tomzx_mac has joined #ruby-lang
bothra has quit [Ping timeout: 252 seconds]
bothra has joined #ruby-lang
Raynes has joined #ruby-lang
postmodern has quit [Read error: Operation timed out]
tomzx_mac_ has quit [Ping timeout: 268 seconds]
ikrima has joined #ruby-lang
sepp2k1 has quit [Read error: Connection reset by peer]
singpolyma has quit [Ping timeout: 252 seconds]
singpolyma has joined #ruby-lang
tomzx_mac_ has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 256 seconds]
fn has joined #ruby-lang
fn is now known as Guest74460
scottschecter has joined #ruby-lang
bradland has joined #ruby-lang
s4muel has quit [Ping timeout: 246 seconds]
konr is now known as konr-rebooting
malign has quit [Ping timeout: 248 seconds]
konr-rebooting has quit [Remote host closed the connection]
malign has joined #ruby-lang
spinky has quit [Remote host closed the connection]
spinky has joined #ruby-lang
redyellowgreen has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
pskosinski has quit [Quit: pskosinski]
s4muel has joined #ruby-lang
<bradland> anyone feeling bored? looking for eyes on this bug: https://github.com/net-ssh/net-sftp/issues/27
Wardrop has left #ruby-lang [#ruby-lang]
<bradland> i've got a gdb session open, but i'm not really sure where to go from here (check the gist for gdb `where` output)
Guest74460 has quit [Remote host closed the connection]
mootpointer has joined #ruby-lang
machuga has joined #ruby-lang
krohrbaugh1 has quit [Quit: Leaving.]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
machuga is now known as machuga|away
<erikh> does 1.9.3 even play well with openssl 0.9.8 at all?
<erikh> I thought it was 1.0 only
<bradland> erikh: excellent question. that'd be a good place to do some digging.
<bradland> although this looks like it's lower than Net::SSH even.
<erikh> should be easy enough to test with a build and LD_PRELOAD
<erikh> (or equivalent)
<erikh> right, I've seen this before on rvm-based rubies
tylersmith has joined #ruby-lang
<bradland> might fire up a VM with a linux distro and see if i can repro there
malign has quit [Quit: Lost terminal]
<erikh> I traced somethign similar back to an openssl routine which was doing some null pointer freeing
<erikh> but I told my co-worker having the problem to use ruby-build and never followed up
<erikh> (which installs openssl 1.0)
<bradland> odd that this occurs exactly at 4^32 file size
<erikh> yeah, that's probably a type issue
ikrima has quit [Quit: Computer has gone to sleep.]
<erikh> give it a shot -- it's a bit of work, but would at least give you a workaround, and a place to start looking for changes
malign has joined #ruby-lang
<bradland> looks like 1.9.3 requires >0.9.8
<bradland> which is met
<bradland> 2.0 requires >1.0
<erikh> ah
<erikh> let me check something really quick
<erikh> actually, i'll try your script
dhruvasagar has quit [Quit: leaving]
<erikh> I'm pretty sure my 1.9.3 is on 1.0 here
<bradland> it takes a while
<erikh> that's fine
dhruvasagar has joined #ruby-lang
<erikh> I have mkfile
<erikh> so I don't need to dd things.
glebm has quit [Ping timeout: 268 seconds]
<erikh> (sparse files for the win yo)
<bradland> hehe :)
postmodern has joined #ruby-lang
<erikh> exactly 4g? or bigger?
<bradland> bigger
<erikh> ok
<bradland> i haven't tested it down to the exact byte
<erikh> np, I just did 4.1g
<bradland> yep, that'll give you the shorter of the two stack traces once it fails
<erikh> include Net? ewwwww
<bradland> yeah, that's really unnecessary. i copied this from a reporter in a google group
<bradland> it's part of his larger app
<bradland> although not sure if he's using more of Net elsewhere
tylersmith has quit [Ping timeout: 264 seconds]
<erikh> np, just giving you crap.
<erikh> :)
<bradland> ninja edit :)
<bradland> good catch actually. i bet that will cut down `info variables` in gdb by a few hundred lines haha
<erikh> transfer's going
<erikh> did it over the network
<erikh> not sure why but hey
<bradland> i did localhost, but i'm not sure it's any faster
<bradland> because of the 64K reads size limit
<erikh> nah, i'm saturating the wifi here
tsion has joined #ruby-lang
<erikh> too slooooow. restarting on the box I made the file on
<bradland> haha, yeah, wifi would kill me
<erikh> yeah I was not having a smart moment
<bradland> it takes a solid 5 mins over loopback
<bradland> SSD helps
<erikh> yeah, it's on a SSD
<erikh> back in a few
arubin has joined #ruby-lang
hackeron has quit [Ping timeout: 240 seconds]
rsync has joined #ruby-lang
<erikh> interesting
<erikh> bradland: it's at 4294049792
hackeron has joined #ruby-lang
scottschecter has quit [Ping timeout: 264 seconds]
<erikh> but it's stuck
<bradland> yep
<bradland> that's exactly where i get to as well
<bradland> the math works out really interesting
<erikh> let me make sure I'm on openssl 1.0 here
<erikh> just to be sure i'm not repeating what you've already found
<bradland> k
<bradland> are you on OS X?
<bradland> don't send SIGINT just yet
rwk1 has quit [Remote host closed the connection]
singpolyma has quit [Read error: Connection reset by peer]
S1kx has joined #ruby-lang
S1kx has quit [Changing host]
S1kx has joined #ruby-lang
singpolyma has joined #ruby-lang
<havenwood> woollyams: Love the #lazily.in_threads(n) syntax for spinning up a thread pool! Very cool. Why do you use #collect though, I thought #map had won? :P
lcdhoffman has quit [Quit: lcdhoffman]
<bradland> trying with a 1 byte read size... guess i'll find out the exact break point :)
nertzy3 has joined #ruby-lang
<erikh> bradland: oh, i already did
<erikh> stepping through the response code now, trying to find out if there's just a sftp response that net-sftp isn't handling
<erikh> e.g., "go away net-sftp" and it tries to select anyhow
<bradland> ah, i see
<bradland> so with 1 byte, it still hung at exactly 4294049792 ?
dankest has quit [Quit: Leaving...]
<erikh> it did? I didn't try
<bradland> sry, when you said you already did, i thought you meant the 1 byte read size
<bradland> but you meant SIGINT
<erikh> yes
<erikh> sorry
nertzy2 has quit [Ping timeout: 245 seconds]
<erikh> the default in the code is 32k, fwiw.
<erikh> back in a minute
bzalasky has joined #ruby-lang
redyellowgreen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<erikh> awesome it's giving me a whole lotta nothin'
<erikh> time to hack the gem
tylersmith has joined #ruby-lang
redyellowgreen has joined #ruby-lang
<bradland> gem slaya!
lsegal has joined #ruby-lang
nathanstitt has joined #ruby-lang
scottschecter has joined #ruby-lang
<erikh> does yours actually terminate?
<erikh> reason I'm asking is because I have a heartbeat set up in my ssh config
<erikh> wondering if that's what's keeping mine around
<erikh> bradland: ^
<bradland> no, mine hangs
<bradland> i don't get a stack trace until i send SIGINT
tylersmith has quit [Remote host closed the connection]
<bradland> i've run it with debugger to dig around a bit
<erikh> k
<erikh> the select has no timeout
<erikh> so that's not very surprising
<bradland> but rdb pukes when it hangs
<erikh> rdb?
<erikh> not familiar.
<bradland> rubydebug console
<erikh> ahh
<bradland> i've run it with ruby -rdebug sftp.rb
<erikh> argh
<erikh> nothing still
<erikh> more hacking
<bradland> but i can't get a console once it hangs
headius has joined #ruby-lang
<bradland> i've managed to attach gdb though
<woollyams> havenwood: I vacillate between #collect and #map. I do like the symmetry of collect/detect/select/reject, though.
<erikh> bradland: yeah, because it's stuck waiting on i/o
<erikh> select is a syscall
<erikh> "have fun with that", etc.
<bradland> hahaha, yeah
<erikh> dumping packet data now
<erikh> we'll see if anything turns up
<bradland> i like of had a feeling that's where i ended up
tomzx_mac_ has quit [Ping timeout: 245 seconds]
<bradland> *kind of
jovy88_ has quit [Read error: Connection reset by peer]
<bradland> so it could be that it's hanging on the select, but nothing has actually died inside Ruby. it's that the remote end has stopped sending data.
<erikh> that's exactly what's happening
<erikh> best I can tell
jovy88_ has joined #ruby-lang
<erikh> it's given a status like "go away" or something else net-scp isn't handling
<erikh> trying to find out what that code is now
havenwood has quit [Remote host closed the connection]
<erikh> def process(wait=nil, &block)
<erikh> wait is the value used for the timeout
<erikh> (yay)
<bradland> yeah... wait forever. gee thx.
<bradland> seems that should be some kind of sensible timeout, or at least an opt
bzalasky has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 264 seconds]
headius has quit [Quit: headius]
sent_hil_ has left #ruby-lang [#ruby-lang]
bzalasky has joined #ruby-lang
cstrahan has joined #ruby-lang
Guest22432 has left #ruby-lang [#ruby-lang]
redyellowgreen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<erikh> it is
<erikh> Net::SFTP just doesn't use it
<erikh> it's from Net::SSH
<bradland> ah
<erikh> I've adjusted it to see if letting it timeout changes anything, running again
<erikh> thanks for the fun problem :)
<bradland> hahaha :) seriously
Domon has joined #ruby-lang
<bradland> i just ran a test with Transmit (an SFTP client)
<bradland> blazing fast
rwk1 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
MouseTheLuckyDog has joined #ruby-lang
<MouseTheLuckyDog> drbrain--you here?
<drbrain> MouseTheLuckyDog: hi
<drbrain> what's up?
<MouseTheLuckyDog> What version of ruby are you using?
<drbrain> ruby 2.0.0p0
<MouseTheLuckyDog> Hmmm. You remember that problem from last week?
<drbrain> no, which?
vlad_starkov has quit [Ping timeout: 264 seconds]
cofin has quit [Quit: cofin]
<erikh> bradland: gonna do one last test -- seems I didn't get fully propogated with the timeout
<erikh> this should either spin hard or abort properly
rwk1 has quit [Ping timeout: 246 seconds]
<MouseTheLuckyDog> http://pastie.org/7820795#1,13-14,24, you can replace the trace command with irb and lose the straces.
<erikh> I need to go after this though
<erikh> big week for the rest of it, job interviews
<bradland> yeah, my battery is dying
<drbrain> MouseTheLuckyDog: oh, yes
<drbrain> MouseTheLuckyDog: I ran it, but didn't see any odd behavior
<erikh> bradland: yeah, it's spinning
nlv has joined #ruby-lang
<drbrain> I used my arrow keys and some regular keys in irb
<erikh> bradland: sorry -- I need to stop for now
<bradland> erikh: thx for the help
<bradland> these are good ideas
<erikh> np. your problem is very likely a response coming back that net-scp is not handling properly
<MouseTheLuckyDog> It looks like read_nonblock sets Fcntl::O_NONBLOCK on stdin. I found the place in the source. But it doesn't unset it when an EAGAIN exception is thrown. But that's in 1.9 so they probably fixed it by 2.
<bradland> SCP doesn't do >4GB apparently
<bradland> but SFTP "does"
<bradland> these are great leads
<bradland> thanks a bunch!
<MouseTheLuckyDog> So I guess it's not worth finding the place in the code where it is unset.
<erikh> yeah, that's interesting
bradland has quit [Quit: bradland]
<MouseTheLuckyDog> bradland:what platforms?
<drbrain> MouseTheLuckyDog: it may not be unset
<drbrain> in 2.0 eihter
<drbrain> either
<MouseTheLuckyDog> I don't think OS/X and Linux would behave differently in the two cases.
breakingthings has quit [Quit: breakingthings]
<MouseTheLuckyDog> Or to put it another way, if it's not unset in OS/X and that's the way it's behaving then OS/X is broken.
<drbrain> perhaps
bzalasky has quit [Remote host closed the connection]
cofin has joined #ruby-lang
<drbrain> I admit I don't know if non-blocking mode is inherited by child processes or not
dhruvasagar has joined #ruby-lang
malign has quit [Ping timeout: 276 seconds]
robbyoconnor has joined #ruby-lang
jsullivandigs has joined #ruby-lang
robbyoconnor has quit [Remote host closed the connection]
bizdak has quit [Remote host closed the connection]
krz has joined #ruby-lang
headius has joined #ruby-lang
malign_ has joined #ruby-lang
tylersmith has joined #ruby-lang
senaxfz has joined #ruby-lang
krombr has joined #ruby-lang
malign_ is now known as malign
cstrahan has quit [Ping timeout: 248 seconds]
tylersmith has quit [Ping timeout: 268 seconds]
dankest has joined #ruby-lang
matti has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby-lang
postmodern has quit [Ping timeout: 256 seconds]
JpC0utur3 has joined #ruby-lang
havenwood has quit [Ping timeout: 256 seconds]
lguardiola has quit [Ping timeout: 264 seconds]
senaxfz has left #ruby-lang ["back in a bit"]
hachiya_ has left #ruby-lang [#ruby-lang]
hachiya has joined #ruby-lang
scottschecter has quit [Ping timeout: 268 seconds]
rwk1 has joined #ruby-lang
scottschecter has joined #ruby-lang
rwk1 has quit [Ping timeout: 256 seconds]
krohrbaugh has joined #ruby-lang
krohrbaugh has quit [Client Quit]
krombr has quit [Remote host closed the connection]
cofin has quit [Quit: cofin]
nivanson_ has joined #ruby-lang
nivanson has quit [Read error: Connection reset by peer]
grobb has joined #ruby-lang
xxaM has joined #ruby-lang
postmodern has joined #ruby-lang
havenwood has joined #ruby-lang
aemeredith has joined #ruby-lang
krohrbaugh has joined #ruby-lang
glebm has joined #ruby-lang
chrishunt has quit [Quit: ZzZzZz...]
notak has joined #ruby-lang
notak has quit [Client Quit]
chrishunt has joined #ruby-lang
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
bzalasky has joined #ruby-lang
rwk1 has joined #ruby-lang
scottschecter has quit [Quit: WeeChat 0.4.0]
scottschecter has joined #ruby-lang
GeissT has joined #ruby-lang
dkannan has joined #ruby-lang
tylersmith has joined #ruby-lang
chessguy has quit [Remote host closed the connection]
rwk1 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
tylersmith has quit [Remote host closed the connection]
zmack has joined #ruby-lang
zmack has quit [Remote host closed the connection]
malign has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby-lang
malign has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
vlad_starkov has quit [Ping timeout: 264 seconds]
nlv_ has joined #ruby-lang
malign_ has joined #ruby-lang
malign has quit [Ping timeout: 264 seconds]
aemeredith has quit [Remote host closed the connection]
nlv has quit [Ping timeout: 268 seconds]
nathanstitt has joined #ruby-lang
aemeredith has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
rippa has joined #ruby-lang
malign_ has quit [Ping timeout: 264 seconds]
krohrbaugh has quit [Quit: Leaving.]
dhruvasagar has joined #ruby-lang
krohrbaugh has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
GeissT has quit [Quit: AdiIRC is updating to v1.9.0 Beta Build (120513) 32 Bit]
GeissT has joined #ruby-lang
krombr has joined #ruby-lang
dkannan has quit [Quit: dkannan]
mistym has quit [Remote host closed the connection]
krombr has quit [Client Quit]
malign has joined #ruby-lang
JpC0utur3 has quit [Ping timeout: 256 seconds]
chrishunt has quit [Quit: ZzZzZz...]
__butch__ has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
krohrbaugh has quit [Quit: Leaving.]
nivanson_ has quit [Read error: Connection reset by peer]
DomKM1 has joined #ruby-lang
nivanson has joined #ruby-lang
mksm has joined #ruby-lang
DomKM has quit [Read error: Connection reset by peer]
wudofyr_ has quit [Ping timeout: 246 seconds]
wudofyr_ has joined #ruby-lang
Raynes has quit [Ping timeout: 246 seconds]
Guest47114 has quit [Changing host]
Guest47114 has joined #ruby-lang
Guest47114 has joined #ruby-lang
Guest47114 is now known as Boohbah
crudson has joined #ruby-lang
mjio has quit [Ping timeout: 268 seconds]
mjio has joined #ruby-lang
Raynes has joined #ruby-lang
sailias has joined #ruby-lang
saarinen has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
44UAABGVN has quit [*.net *.split]
closer has quit [*.net *.split]
nivanson has quit [Read error: Connection reset by peer]
nivanson_ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
matti has joined #ruby-lang
matti has quit [Changing host]
matti has joined #ruby-lang
sailias has quit [Quit: Leaving.]
tylersmith has joined #ruby-lang
krohrbaugh has joined #ruby-lang
tylersmith has quit [Ping timeout: 268 seconds]
jovy88_ has quit [Read error: Connection reset by peer]
jovy88_ has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
ikrima has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
__butch__ has quit [Quit: Leaving.]
justinmburrous has quit [Remote host closed the connection]
symm- has joined #ruby-lang
scottschecter has quit [Ping timeout: 246 seconds]
headius has quit [Quit: headius]
aemeredith has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
tsion has quit [Quit: Leaving]
Nisstyre-laptop has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
krohrbaugh has quit [Quit: Leaving.]
dkannan has joined #ruby-lang
scottschecter has joined #ruby-lang
apeiros has joined #ruby-lang
DomKM1 has quit [Quit: Leaving.]
symm- has quit [Ping timeout: 248 seconds]
aemeredith has joined #ruby-lang
lethan has joined #ruby-lang
lethan has left #ruby-lang [#ruby-lang]
aemeredith has quit [Read error: Connection reset by peer]
aemeredith has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
dr_bob has joined #ruby-lang
vlad_starkov has joined #ruby-lang
ikrima has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 276 seconds]
noop_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby-lang
woollyams has quit [Ping timeout: 256 seconds]
ikrima has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
dkannan has quit [Ping timeout: 245 seconds]
dkannan has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
aemeredith has quit [Remote host closed the connection]
JohnBat26 has joined #ruby-lang
rippa has joined #ruby-lang
tbuehlmann has joined #ruby-lang
brianpWins has joined #ruby-lang
apeiros has joined #ruby-lang
mjio has quit []
judofyr has joined #ruby-lang
nlv_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
flak has joined #ruby-lang
rippa has quit [Read error: Connection reset by peer]
flak is now known as Guest14455
somasonic has joined #ruby-lang
<somasonic> hi
<somasonic> i have a class and for each child of that class I need a unique ID - is class variables a good way to do this? (@id == @@id; @@id = @@id + 1)?
rwk1 has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
somasonic was kicked from #ruby-lang by apeiros [when you cross-post, you are required to state that fact]
somasonic has joined #ruby-lang
stamina has joined #ruby-lang
<judofyr> somasonic: depends. do you subclass that class?
<somasonic> yes
<somasonic> all objects that need an ID will be a subclass
<judofyr> somasonic: ah, that was what you meant by "child". well, a class variable is shared across the whole hierarchy so that could work.
<judofyr> somasonic: although I generally try to avoid them.
<somasonic> judofyr: do you have a better idea?
Quatrerwin has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
<judofyr> somasonic: something like this perhaps? http://pastie.org/7906005
<somasonic> judofyr: that seems better for what i want.
<somasonic> judofyr: thanks, i always come here because I know there is a way to do what I want cleanly and I just don't know about it yet :P
<judofyr> somasonic: it's probably more flexible too (in case you want to tweak it a bit)
dhruvasagar has joined #ruby-lang
44UAABGVN has joined #ruby-lang
closer has joined #ruby-lang
solars has joined #ruby-lang
<somasonic> judofyr: thanks again for this. the ID I need is actually a bit of complex stringwork, and this way allows me to do it cleanly and automatically without the subclass ever seeing the code
<judofyr> somasonic: great :)
pencilk has joined #ruby-lang
<yorickpeterse> morning
mbj has joined #ruby-lang
krohrbaugh has joined #ruby-lang
dezasseis has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 268 seconds]
rwk1_ has joined #ruby-lang
pipework has quit [Ping timeout: 256 seconds]
rwk1 has quit [Ping timeout: 264 seconds]
mucker has joined #ruby-lang
pipework has joined #ruby-lang
<somasonic> judofyr: when did += 1 get added to ruby?
<somasonic> has that always been there?
<judofyr> somasonic: since forever
<somasonic> fucks sake
<judofyr> somasonic: it's just ++ that hasn't been there
<somasonic> judofyr: for some reason i'd thought until now it was nonexistant in ruby
krombr has joined #ruby-lang
<judofyr> somasonic: it even works with #[]
barttenbrinke has joined #ruby-lang
<judofyr> >> a = Hash.new(0); a[:hello] += 1; a
<eval-in> judofyr => {:hello=>1} (http://eval.in/29339)
pencilk has quit [Ping timeout: 245 seconds]
corecode has joined #ruby-lang
<judofyr> which is a very nice way to create a counter
rsync has quit [Ping timeout: 264 seconds]
<corecode> why is class << self; def foo; ...; end preferred over def self.foo ...?
<judofyr> corecode: it's not. mostly a matter of taste.
<corecode> two schools of thought?
<judofyr> I try to avoid `class << self; def foo; ...; end` because it adds another level of indention
<corecode> oh i wish there were macros
<judofyr> we can make that happen
<tbuehlmann> rails even wants you to use class << self
gnufied has joined #ruby-lang
<somasonic> what's a good way to make an int into a str with leading 0s where str.len == 3 (i.e. 1 => "001")
rwk1_ has quit [Remote host closed the connection]
<judofyr> somasonic: rjust
<judofyr> >> 1.to_s.rjust('0', 3)
<eval-in> judofyr => /tmp/execpad-a3febba0550e/source-a3febba0550e:2:in `rjust': no implicit conversion of String into Integer (TypeError) ... (http://eval.in/29340)
<judofyr> >> 1.to_s.rjust(3, '0')
<eval-in> judofyr => "001" (http://eval.in/29341)
<judofyr> or maybe printf can do it too
<somasonic> judofyr: how much do i owe you for writing all my code for me?
<andrewvos> tree fitty
<somasonic> lol
<judofyr> >> "%05d" % 1
<eval-in> judofyr => "00001" (http://eval.in/29342)
<judofyr> somasonic: you might find the sprintf-approach above simpler ^
<gnufied> moin
vmoravec_ has quit [Remote host closed the connection]
krombr has quit [Remote host closed the connection]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
marr has joined #ruby-lang
<somasonic> judofyr: it appeals to me more as a C programmer
<somasonic> judofyr: thanks
<judofyr> somasonic: your welcome!
<somasonic> when are #ruby and #ruby-lang gunna merge
<somasonic> it's the most pointless shit ever
<judofyr> that I can agree with
<judofyr> #ruby-lang for life though!
Nisstyre-laptop has quit [Quit: Leaving]
<somasonic> i always come here too, dunno why
<yorickpeterse> Company(#26218120) expected, got AdminTool::Company(#28533700)
<yorickpeterse> AJKDSGHASKJDH NOT THIS CRAP AGAIN
mbj has quit [Ping timeout: 245 seconds]
henrikhodne has joined #ruby-lang
rwk1 has joined #ruby-lang
noop_ has quit [Ping timeout: 245 seconds]
gnufied has quit [Quit: Leaving.]
digs has joined #ruby-lang
digs is now known as Guest22234
sush24 has quit [Quit: This computer has gone to sleep]
floyd2_ has joined #ruby-lang
gnufied has joined #ruby-lang
<gnufied> yorickpeterse: ActiveRecord can be a royal pain if you are namespacing model classes
<yorickpeterse> yeah tell me about it
saarinen has quit [Quit: saarinen]
mytrile has joined #ruby-lang
<gnufied> there is isolate_namespace
rwk1 has quit [Ping timeout: 276 seconds]
<gnufied> mainly used in Rails engines/gems
<gnufied> but see if it can be useful. just a wild thought. :-)
<yorickpeterse> this is in a Rails engine
<gnufied> oh, okay.
<gnufied> look for isolate_namespace then
<yorickpeterse> I know what it does and it doesn't solve my problem
<gnufied> :/
<yorickpeterse> the problem is that AR validates association objects by class names
<yorickpeterse> which is beyond stupid in a duck typed language
krohrbaugh has joined #ruby-lang
<gnufied> it is.
<gnufied> so association validations all fail? interesting
jsullivandigs has quit [Ping timeout: 256 seconds]
jaimef has quit [Ping timeout: 256 seconds]
floyd2 has quit [Ping timeout: 256 seconds]
<yorickpeterse> So basically I have two version of model X, a global one and a namespaced one
<yorickpeterse> the latter provides some extra methods
<yorickpeterse> the problem is that AR uses the global X whereas I'm passing the namespaced one
<yorickpeterse> I already solved it by using `::X` in my code, but it's super confusing and prone to errors
glebm has joined #ruby-lang
jaimef_ has joined #ruby-lang
<judofyr> I think that's a nice summary of Rails: "it's super confusing and prone to errors" :)
<yorickpeterse> it's fine as long as you keep riding on the bike with training wheels on the perfect straight path it provides
<yorickpeterse> The moment you deviate from that you basically crash into everything along the road
vlad_starkov has quit [Remote host closed the connection]
krohrbaugh has quit [Ping timeout: 268 seconds]
<yorickpeterse> then when you've almost reached your destination somebody hits you in the face with a frying pan
<lianj> do people write big ruby webapps without rails, what do they use? sinatra, ramaze or pure rack?
<yorickpeterse> I'd say 85% of it would be Rails
<yorickpeterse> APIs are done in Sinatra, a small minority probably uses Padrino/Ramaze
<yorickpeterse> (still haven't looked at Padrino myself)
<gnufied> Grape is pertty popular for APIs as well.
<judofyr> I'm actually using Camping when I need to throw something up quickly
<gnufied> I have deployed at least 7 grape API apps at my consultancy
<gnufied> but they are basically still using ActiveRecord fwiw
<gnufied> or Mongoid
<gnufied> (for web scale)
<lianj> for quick and small i like sinatra, for something bigger a rack middleware stack with maybe some sinatra::base inside. but haven't done a /huge/ projekt that way
mytrile has quit [Remote host closed the connection]
<gnufied> for quick and smell, i prefer PHP
<lianj> gtfo
<gnufied> :-)
rolfb has joined #ruby-lang
jxie_ has quit [Quit: leaving]
noop_ has joined #ruby-lang
<yorickpeterse> famous last words
<injekt> I have a sinatra app that's been running for over 650 days receiving ~2m hits a day pretty nicely
<yorickpeterse> a hello world app? :>
<injekt> it's a json api
<lianj> for small things i mean not many routes, not slow/unused apps
nlv has joined #ruby-lang
<gnufied> injekt: but what it does? don't kill us with suspence
<judofyr> lianj: have you tried Padrino?
<judofyr> it seems to be Sinatra for bigger apps
<lianj> nope, first time i hear about it :D
<injekt> gnufied: it serves an api for an iphone app
<injekt> that's fairly popular
jxie has joined #ruby-lang
<injekt> but unfortunately, I can't tell you which one because nda
<gnufied> I get it.
<gnufied> no love for #ruby-lang anymore
<injekt> well 'which one' makes it seem like it's THAT popular, it's not
<judofyr> injekt: what? you mean it isn't Angry Birds?
brianpWins has quit [Quit: brianpWins]
stardiviner has joined #ruby-lang
<injekt> judofyr: haha
<yorickpeterse> injekt: is it an app for the Saudi arabian gov?
<lianj> hm, from first sight i don't see the benefit of padrinorb
<lianj> yorickpeterse: perl6 dev blog
<injekt> yorickpeterse: maybe
<judofyr> lianj: I haven't used it so I don't know
<injekt> lianj: me either, and you have to gem install everything to run it
<yorickpeterse> lianj: eh?
<lianj> nvm
<injekt> does Gavin Kistner (Phrogz) idle here? I thought he did
<andrewvos> He used to
<gnufied> there was blink and there was teferi. blink used to maintain/contribute to camping for awhile.
<gnufied> not sure where she disappeared!
<gnufied> *offtopic*
rwk1 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
rwk1 has quit [Ping timeout: 245 seconds]
sandbags has joined #ruby-lang
sandbags has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
thone_ has joined #ruby-lang
jovy88_ has quit [Read error: Connection reset by peer]
jovy88_ has joined #ruby-lang
thone has quit [Read error: Operation timed out]
barttenbrinke has quit [Remote host closed the connection]
<yorickpeterse> "undefined method `eject' for ..." heh
<apeiros> yorickpeterse.eject ?
alessio_rocco has joined #ruby-lang
<yorickpeterse> I mistyped reject
krombr has joined #ruby-lang
44UAABGVN is now known as chendo_
kgrz has joined #ruby-lang
<malign> Winter is coming because of it.
mbj has joined #ruby-lang
<somasonic> judofyr: ping
dezasseis has quit [Read error: Connection reset by peer]
dezasseis1 has joined #ruby-lang
dezasseis has joined #ruby-lang
dezasseis1 has quit [Read error: Connection reset by peer]
barttenbrinke has joined #ruby-lang
nlv has quit [Remote host closed the connection]
<andrewvos> yorickpeterse.reject? #=> true
toretore has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
krombr has quit [Quit: krombr]
<matti> .
rwk1 has joined #ruby-lang
halibut has quit [Read error: No route to host]
mucker has quit [Quit: leaving]
rwk1_ has joined #ruby-lang
rwk1 has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
<judofyr> somasonic: pong
<somasonic> judofyr: figured it out all on my own for once, thx tho
vlad_starkov has joined #ruby-lang
<judofyr> somasonic: nice
elia has joined #ruby-lang
dankest has quit [Read error: Connection reset by peer]
<injekt> next time dominikh insults someone http://i.imgur.com/D6CY3V0.gif
dankest has joined #ruby-lang
<dominikh> wow
<yorickpeterse> wat
barttenbrinke has joined #ruby-lang
scottschecter has quit [Ping timeout: 248 seconds]
Domon has quit [Remote host closed the connection]
Guest14455 has quit [Ping timeout: 240 seconds]
barttenbrinke has quit [Remote host closed the connection]
_dumfries has quit [Ping timeout: 246 seconds]
scottschecter has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
<andrewvos> Hey I want to test my bin in a gem without installing the gem. How do I execute it and have it auto add the lib to $:
_dumfries has joined #ruby-lang
<andrewvos> I suppose -I works
<injekt> andrewvos: ruby -Ilib bin/foo
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
<andrewvos> Yarp got it thanks mate
nettsundere has left #ruby-lang [#ruby-lang]
ikrima has quit [Quit: Computer has gone to sleep.]
kgrz has quit [Ping timeout: 245 seconds]
_dumfries has quit [Quit: ZNC - http://znc.sourceforge.net]
mootpointer has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
wmoxam has joined #ruby-lang
_dumfries has joined #ruby-lang
_dumfries has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
_dumfries has joined #ruby-lang
barttenbrinke has joined #ruby-lang
machuga|away is now known as machuga
Guedes has joined #ruby-lang
Guedes has quit [Changing host]
Guedes has joined #ruby-lang
barttenbrinke has quit [Ping timeout: 245 seconds]
<Spaceghost|cloud> andrewvos: You could either require it or -l
<Spaceghost|cloud> Oh oops.
matti has left #ruby-lang ["8-X"]
matti has joined #ruby-lang
barttenbrinke has joined #ruby-lang
seoaqua has joined #ruby-lang
fosky has quit [Ping timeout: 256 seconds]
sailias has joined #ruby-lang
krz has quit [Quit: krz]
barttenbrinke has quit [Remote host closed the connection]
krohrbaugh has joined #ruby-lang
pskosinski has joined #ruby-lang
retro|cz has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 268 seconds]
barttenbrinke has joined #ruby-lang
mucker has joined #ruby-lang
nkr has joined #ruby-lang
_elia has joined #ruby-lang
tockitj has joined #ruby-lang
tockitj has quit [Changing host]
tockitj has joined #ruby-lang
somasonic has left #ruby-lang ["fin."]
elia has quit [Ping timeout: 264 seconds]
_elia is now known as elia
pipework has quit [Remote host closed the connection]
Swimmin__ has joined #ruby-lang
voker57_ has joined #ruby-lang
egyp7 has joined #ruby-lang
dvorak_ has joined #ruby-lang
GeissT_ has joined #ruby-lang
wudofyr__ has joined #ruby-lang
Raynes_ has joined #ruby-lang
mksm_ has joined #ruby-lang
brownies_ has joined #ruby-lang
brownies_ has quit [Changing host]
brownies_ has joined #ruby-lang
tockitj has quit [*.net *.split]
Raynes has quit [*.net *.split]
wudofyr_ has quit [*.net *.split]
mksm has quit [*.net *.split]
GeissT has quit [*.net *.split]
voker57 has quit [*.net *.split]
egypt has quit [*.net *.split]
Swimming_Bird has quit [*.net *.split]
dvorak has quit [*.net *.split]
SqREL_ has quit [*.net *.split]
brownies has quit [*.net *.split]
agile has quit [*.net *.split]
baseonmars__ has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
eban has quit [*.net *.split]
ioga_wrk has joined #ruby-lang
fosky has joined #ruby-lang
eban has joined #ruby-lang
SqREL_ has joined #ruby-lang
baseonmars__ has joined #ruby-lang
<malign> Heh.
mame0 has joined #ruby-lang
tockitj has joined #ruby-lang
ddfreyne has joined #ruby-lang
agile has joined #ruby-lang
rwk1 has joined #ruby-lang
dkannan has quit [Quit: dkannan]
rwk1_ has quit [Ping timeout: 256 seconds]
barttenbrinke has quit [Remote host closed the connection]
duty2 has joined #ruby-lang
sailias has quit [Quit: Leaving.]
seoaqua has quit [Ping timeout: 245 seconds]
mame0 has quit [Quit: Tiarra 0.1+svn-36726: SIGINT received; exit]
mame0 has joined #ruby-lang
spinky has quit [Ping timeout: 264 seconds]
jxie has quit [Quit: leaving]
yalue has joined #ruby-lang
barttenbrinke has joined #ruby-lang
_elia has joined #ruby-lang
carloslopes has joined #ruby-lang
thone has joined #ruby-lang
banister`tv has joined #ruby-lang
jaimef has joined #ruby-lang
dustint has joined #ruby-lang
elia has quit [*.net *.split]
thone_ has quit [*.net *.split]
noop_ has quit [*.net *.split]
jaimef_ has quit [*.net *.split]
FastJack has quit [*.net *.split]
_elia is now known as elia
barttenbrinke has quit [Remote host closed the connection]
barttenbrinke has joined #ruby-lang
mytrile has joined #ruby-lang
sush24 has joined #ruby-lang
brownies_ is now known as brownies
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
noop_ has joined #ruby-lang
khalua has joined #ruby-lang
duty2 has quit [Ping timeout: 245 seconds]
kevinfagan has quit [Ping timeout: 264 seconds]
khalua_ has quit [Ping timeout: 264 seconds]
robbyoconnor has joined #ruby-lang
mistym has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
kevinfagan has joined #ruby-lang
jovy88_ has quit [Read error: Connection reset by peer]
jovy88_ has joined #ruby-lang
<yorickpeterse> ugh, the AR "LIKE" syntax makes me cringe
vlad_starkov has joined #ruby-lang
<yorickpeterse> and fear SQL injections as well, even though it seems to escape things
<yorickpeterse> herpderp.where('foo LIKE ?', "%#{lol_prepared_statements}%")
cofin has joined #ruby-lang
GeissT_ has quit [Quit: MillBroChat AdIRC User]
GeissT has joined #ruby-lang
<injekt> yorickpeterse: yeah, order doesn't though :D
barttenbrinke has quit [Remote host closed the connection]
mytrile has quit [Remote host closed the connection]
jvrmaia has joined #ruby-lang
wallerdev has joined #ruby-lang
breakingthings has joined #ruby-lang
<yorickpeterse> eh?
<yorickpeterse> You mean that it doesn't escape stuff?
mistym has joined #ruby-lang
wallerdev has quit [Client Quit]
<injekt> yorickpeterse: no
pipework has joined #ruby-lang
kgrz has joined #ruby-lang
cstrahan has joined #ruby-lang
<whitequark> yorickpeterse: yeah, a very common vuln
<yorickpeterse> lol
<whitequark> I wonder why the hell didn't they make h() for strings
<whitequark> er, params
<yorickpeterse> I wonder why the fuck they didn't make a saner AR API
jxie has joined #ruby-lang
<whitequark> legacy?
<yorickpeterse> No offence to the people that wrote it but fuck me, this feels very much like how ORMs were designed 10 years ago
<whitequark> yorickpeterse: because it WAS designed almost ten years ago
<yorickpeterse> I was about to say "oh wait"
<whitequark> well, they added scopes and arel, after which AR became usable in practice
<whitequark> without falling back to SQL for anything complex
<whitequark> but that's about it...
duty2 has joined #ruby-lang
r0bby has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 245 seconds]
<whitequark> grrrr, weird parser bugs
<whitequark> "a" vs "#{"a"}"
spinky has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
enebo has joined #ruby-lang
redyellowgreen has joined #ruby-lang
<injekt> meh I prefer writing the sql anyway in most cases
GeissT has quit [Quit: MillBroChat AdIRC User]
<whitequark> boilerplate is meh
<spike|spiegel> AR: The ORM where you are better off writing sql
<injekt> :D
Taranis_ has quit [Quit: leaving]
eklarskov has joined #ruby-lang
Taranis has joined #ruby-lang
barttenbrinke has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby-lang
barttenbrinke has quit [Ping timeout: 256 seconds]
cstrahan has quit [Quit: leaving]
heftig has quit [Quit: Quitting]
heftig has joined #ruby-lang
r0bby_ has joined #ruby-lang
Kuukunen- has quit [Quit: leaving]
Kuukunen has joined #ruby-lang
r0bby has quit [Ping timeout: 256 seconds]
eklarskov has quit [Ping timeout: 268 seconds]
topaz has joined #ruby-lang
topaz has left #ruby-lang [#ruby-lang]
robbyoconnor has joined #ruby-lang
gnufied1 has joined #ruby-lang
workmad3 has joined #ruby-lang
gnufied has quit [Ping timeout: 256 seconds]
scampbell has joined #ruby-lang
r0bby_ has quit [Ping timeout: 256 seconds]
mistym has quit [Remote host closed the connection]
eklarskov has joined #ruby-lang
eklarskov has quit [Client Quit]
SqREL_ has quit [Remote host closed the connection]
adambeynon has joined #ruby-lang
chrishunt has joined #ruby-lang
heftig has quit [Quit: Quitting]
banister`tv has quit [Remote host closed the connection]
heftig has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 256 seconds]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
tylersmith has joined #ruby-lang
snarfmason has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
Swimmin__ has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby-lang
cofin has quit [Quit: cofin]
Swimming_Bird has joined #ruby-lang
Swimming_Bird has quit [Max SendQ exceeded]
vlad_sta_ has joined #ruby-lang
Swimming_Bird has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 256 seconds]
tik-tak has joined #ruby-lang
matti has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
mootpointer has joined #ruby-lang
mootpointer has quit [Client Quit]
Swimmin__ has joined #ruby-lang
spectra- has joined #ruby-lang
flak has joined #ruby-lang
DomKM has joined #ruby-lang
rsl has joined #ruby-lang
flak is now known as Guest35350
mouse_ has joined #ruby-lang
henrikhodne has quit [Quit: Computer has gone to sleep.]
Spaceghost|work has joined #ruby-lang
mootpointer has joined #ruby-lang
yorickpeterse1 has joined #ruby-lang
dmwuw_ has joined #ruby-lang
valeri_ufo has joined #ruby-lang
s0ber_ has joined #ruby-lang
Asher1 has joined #ruby-lang
Swimming_Bird has quit [*.net *.split]
pipework has quit [*.net *.split]
elia has quit [*.net *.split]
tockitj has quit [*.net *.split]
fosky has quit [*.net *.split]
Raynes_ has quit [*.net *.split]
rolfb has quit [*.net *.split]
Guest22234 has quit [*.net *.split]
solars has quit [*.net *.split]
JohnBat26 has quit [*.net *.split]
Kabaka has quit [*.net *.split]
tdy has quit [*.net *.split]
MouseTheLuckyDog has quit [*.net *.split]
spectra has quit [*.net *.split]
bedouin has quit [*.net *.split]
canton7 has quit [*.net *.split]
rue_XIV has joined #ruby-lang
mose_ has joined #ruby-lang
Kero_ has joined #ruby-lang
TheMoonMaster_ has joined #ruby-lang
yorickpeterse1 has quit [Changing host]
yorickpeterse1 has joined #ruby-lang
yorickpeterse has quit [Disconnected by services]
badeball_ has joined #ruby-lang
bryno has joined #ruby-lang
yorickpeterse1 is now known as yorickpeterse
Raynes has joined #ruby-lang
barttenbrinke has joined #ruby-lang
mucker has quit [Quit: leaving]
badeball has quit [Killed (calvino.freenode.net (Nickname regained by services))]
badeball_ is now known as badeball
mootpointer has quit [Quit: Computer has gone to sleep.]
krohrbaugh has joined #ruby-lang
jxie has quit [Quit: leaving]
JohnBat26 has joined #ruby-lang
pbjorklund_ has joined #ruby-lang
rking1 has quit [*.net *.split]
Kero has quit [*.net *.split]
s0ber has quit [*.net *.split]
dmwuw has quit [*.net *.split]
pbjorklund has quit [*.net *.split]
Asher has quit [*.net *.split]
shinh__ has quit [*.net *.split]
bri has quit [*.net *.split]
mose has quit [*.net *.split]
valeri_uF0 has quit [*.net *.split]
ndrst has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
Guest85414_ has quit [*.net *.split]
rue has quit [*.net *.split]
randym_ has quit [*.net *.split]
s0ber_ is now known as s0ber
jsullivandigs has joined #ruby-lang
barttenbrinke has quit [Ping timeout: 256 seconds]
Kero_ is now known as Kero
rking1 has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
elia has joined #ruby-lang
ndrst has joined #ruby-lang
bedouin has joined #ruby-lang
shinh__ has joined #ruby-lang
tylersmith has joined #ruby-lang
swav has joined #ruby-lang
Kabaka has joined #ruby-lang
kstuart1 has quit [Quit: kstuart1]
mucker has joined #ruby-lang
<yorickpeterse> injekt: what was the "good" Rails channel again, #rubyonrails?
<yorickpeterse> because I'm seriously considering going there to rage
<yorickpeterse> oh wait, I have Twitter for that
<corecode> is there a way to subclass Integer?
Squarepy has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
barttenbrinke has joined #ruby-lang
kstuart has joined #ruby-lang
lguardiola has joined #ruby-lang
Spaceghost|work is now known as pipework
nkr has quit [Ping timeout: 276 seconds]
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby-lang
ikrima has joined #ruby-lang
<injekt> yorickpeterse: yeah
<injekt> corecode: did you try it?
s0ber has quit [Remote host closed the connection]
<injekt> I mean, you cant subclass any numeric types usefull because you can't allocate them
s0ber has joined #ruby-lang
<injekt> usefully-
krohrbaugh has quit [Quit: Leaving.]
_elia has joined #ruby-lang
gnufied1 has quit [Quit: Leaving.]
<corecode> yea
<whitequark> >> class Foo < Numeric; end; Foo.new
<eval-in> whitequark => #<Foo:0x41d894ec> (http://eval.in/29572)
<corecode> hmmm
<whitequark> wat?!
<whitequark> 19>> class Foo < Numeric; end; Foo.new
<eval-in> whitequark => #<Foo:0xa36a128> (http://eval.in/29573)
wallerdev has joined #ruby-lang
<whitequark> ...
<corecode> o hi whitequark
<whitequark> corecode: hi
<corecode> how's it going?
<injekt> heh
<whitequark> corecode: foundry you mean?
dankest has quit [Quit: Leaving...]
<corecode> yea
<whitequark> (btw, you can subclass Numeric... just not Integer.)
<injekt> yeah yeah
<whitequark> corecode: a bit slow... but I finally figured out how exactly do I want to compose code with automatic and manual memory management
<whitequark> which is pretty good :)
spinky has quit [Read error: Connection reset by peer]
khalua_ has joined #ruby-lang
crudson1 has joined #ruby-lang
apeiros_ has joined #ruby-lang
judofyr_ has joined #ruby-lang
voker57__ has joined #ruby-lang
malign_ has joined #ruby-lang
floyd2 has joined #ruby-lang
nertzy2 has joined #ruby-lang
<corecode> cool
retro|cz has quit [Ping timeout: 245 seconds]
carloslopes has quit [Remote host closed the connection]
dr_bob has joined #ruby-lang
mistym_ has joined #ruby-lang
<whitequark> injekt: hey, slop fails to parse the following correctly
bzalasky has joined #ruby-lang
<whitequark> -LEe 'foo'
<whitequark> I'd expect it to have the same effect as -L -E -e 'foo'
havenn_ has joined #ruby-lang
Kabaka has quit [*.net *.split]
bedouin has quit [*.net *.split]
elia has quit [*.net *.split]
_elia is now known as elia
<yorickpeterse> I'm reaching this point where I'm going to buy a shovel and hit people with it
<yorickpeterse> however, this time I'll do my best not to tell my boss I'm going to hit him first
<yorickpeterse> I don't think I can get away with that a second time
<whitequark> lol
<injekt> whitequark: -abc flags are ambiguous so slop provides config options to disambiguate between -a -b -c and -abc, that said I still think your case won't work for either option. Could you open an issue and I'll fix it this eve?
nertzy3 has quit [Ping timeout: 256 seconds]
<whitequark> injekt: wait, how is -abc ambiguous if you use --foo for long opts?
<injekt> whitequark: because slop supports people who want to use -foo for long opts too, but it defaults to separating them
bzalasky has quit [Remote host closed the connection]
<whitequark> #114
totallymike has joined #ruby-lang
mouse_ has quit [*.net *.split]
mistym has quit [*.net *.split]
scampbell has quit [*.net *.split]
duty2 has quit [*.net *.split]
khalua has quit [*.net *.split]
wudofyr__ has quit [*.net *.split]
voker57_ has quit [*.net *.split]
floyd2_ has quit [*.net *.split]
judofyr has quit [*.net *.split]
malign has quit [*.net *.split]
xxaM has quit [*.net *.split]
havenwood has quit [*.net *.split]
bothra has quit [*.net *.split]
blacktulip has quit [*.net *.split]
crudson has quit [*.net *.split]
<injekt> cheers
<zzak> incase you missed it
blacktulip has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
wudofyr__ has joined #ruby-lang
bothra has joined #ruby-lang
bothra has quit [Read error: Connection reset by peer]
duty2 has joined #ruby-lang
mouse_ has joined #ruby-lang
bothra has joined #ruby-lang
scampbell has joined #ruby-lang
kvs has quit [Ping timeout: 246 seconds]
Squarepy has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
kvs has joined #ruby-lang
bzalasky has joined #ruby-lang
Squarepy has joined #ruby-lang
alessio_rocco has quit [Read error: Connection reset by peer]
alessio_rocco has joined #ruby-lang
judofyr_ has quit [Remote host closed the connection]
<whitequark> hey folks
erpuds has joined #ruby-lang
<yorickpeterse> what
<ericwood> yo
<ericwood> today I am teaching interns how to ruby
<whitequark> what would be the most efficient way (it is a hot spot) to: 1) extract positions of \n's from a String 2) find the nearest preceding \n given a position
<whitequark> 3) select n'th line from a string
* ericwood opens up the string docs
<yorickpeterse> split it by \n ?
<yorickpeterse> Then count the length of each segment, add 1 and you have the position
<ericwood> for 2 you should do a substring and then an index()
<whitequark> yorickpeterse: I'd like to avoid storing both the split string and unsplit one
<yorickpeterse> finding the nearest in that case would be a matter of selecting the previous element
<whitequark> and storing unsplit string is more important.
gnufied has joined #ruby-lang
cofin has joined #ruby-lang
<injekt> whitequark: fixed, found another bug though which I intend to fix, then I'll throw out a bugfix release
<whitequark> injekt: wow that was fast
<injekt> :P
<zzak> what is a ruby
<injekt> zzak: u r
vlad_starkov has joined #ruby-lang
carloslopes has joined #ruby-lang
kgrz has quit [Ping timeout: 276 seconds]
<zzak> no u
rebelcan has joined #ruby-lang
wasnotrice has joined #ruby-lang
dankest has joined #ruby-lang
<injekt> whitequark: pushed 3.4.5
vlad_starkov has quit [Ping timeout: 246 seconds]
<whitequark> whoever created a method with name attr_accessible which you are expected to use in the context where attr_accessor is also valid
<whitequark> must be shot
anonymuse has joined #ruby-lang
<ericwood> attr_accessible is a rails thing, isn't it?
<ericwood> to avoid mass-assignment vulns
<injekt> ya
<ericwood> whitelisting update shiznit
<ericwood> I think it's a perfectly valid name
JohnBat26 has quit [Ping timeout: 248 seconds]
<apeiros_> attr_accessible is logic in the wrong domain…
<whitequark> ericwood: I just confused one with the another several times in a row
<whitequark> due to the similar name
<ericwood> pebkac
<ericwood> ;)
<apeiros_> models became the new logic dump. everything happens there.
<ericwood> I practice "fat models, fat controllers, and fat views"
<injekt> heh my editor doesn't highlight anything rails-y but does highlight attr_accessor that's the only way I can quickly see differences
<apeiros_> attr_accessible iirc is dead in rails4 anyway.
<ericwood> models are *supposed* to be where teh logic goes
<injekt> I dont think it's dead is it? just replaced for doing mass assignment via the controller
<injekt> maybe I'm wrong though
<apeiros_> ericwood: it's not a models business to know which user can access what attribute of it. sorry. that's just bullshit.
carloslopes has quit [Ping timeout: 256 seconds]
<apeiros_> the whole collusion of validation and models is shit too.
<ericwood> apeiros_: I'm just talking about which attributes can be mass-assigned
<ericwood> not user stuff
<apeiros_> guess what
<apeiros_> that's connected to users
<injekt> I think all the above stuff is the job of the controller
* ericwood shrugs, doesn't have super strong opinions and doesn't belong in the conversation
Guest35350 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<apeiros_> that's why you can define attr_accessible as: "foo"
flak has joined #ruby-lang
<apeiros_> because some users (admins e.g.) sometimes can mass-assign
<apeiros_> which is when it should start to become obvious that it's a stupid idea to deal with it that way.
<apeiros_> anyway, gotta catch the train.
vlad_starkov has joined #ruby-lang
flak is now known as Guest34966
<injekt> choo choo
<ericwood> choo choo muthafucka
spinky has joined #ruby-lang
carloslopes has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
jvrmaia has quit [Remote host closed the connection]
jxie has joined #ruby-lang
Swimmin__ has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Ping timeout: 276 seconds]
io_syl has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
tylersmith has joined #ruby-lang
mistym_ has left #ruby-lang [#ruby-lang]
mistym has joined #ruby-lang
<erikh> fatty on rails
_elia has joined #ruby-lang
tylersmith has quit [Ping timeout: 252 seconds]
Swimming_Bird has joined #ruby-lang
<whitequark> hm, iterating a string via while and string[index] is marginally slower than #each_char even on cruby
gnufied has joined #ruby-lang
<erikh> has to convert the integer
<whitequark> huh
<erikh> s[] likely is a C call, no? each_char can do it all in C just yielding the character
elia_ has joined #ruby-lang
elia has quit [Ping timeout: 248 seconds]
elia_ is now known as elia
<erikh> with s[], you need to do an i, and increment it, and then s[i] will require i to be converted to a native C type
<erikh> presuming that's how the loop looks. am I missing something here?
_elia has quit [Read error: Operation timed out]
<whitequark> erikh: kinda
<whitequark> ruby has fixnums... integers are VALUEs, i.e. fit in the native pointer and aren't heap allocated
<whitequark> well, small integers.
<whitequark> however, earlier (in 1.8 times), invoking closures was kinda slow
<whitequark> I'm delighted to learn it isn't anymore.
<whitequark> http://pastie.org/7907578 < my bbbbenchmark
<whitequark> haha, I just used ruby 2.0's bsearch
enebo has quit [Quit: enebo]
alessio_rocco has quit [Remote host closed the connection]
banister`tv has joined #ruby-lang
utkanos has joined #ruby-lang
elia has quit [Read error: Connection reset by peer]
elia has joined #ruby-lang
matti has joined #ruby-lang
matti has quit [Changing host]
matti has joined #ruby-lang
<utkanos> hi there, somewhat new to ruby and hopefully a quick formatting question that is plaguing me currently. I am needing to print out some data that contains ascii characters that do not translate to normal characters and puts seems to be interpreting it literally, causing erratic garbage characters, etc to come out.
<erikh> ok, interview time
<erikh> ttfn
<utkanos> I am packing the output to Hex encoded string, it appears fine when manually called, but when run through a loop and using puts, its garbling the data
__butch__ has joined #ruby-lang
sono_ has joined #ruby-lang
<utkanos> its type is string already, I want to find some way to print the literal output instead of it being interpreted
apeiros has joined #ruby-lang
dr_bob has left #ruby-lang [#ruby-lang]
<whitequark> utkanos: try #inspect
<utkanos> whitequark: alright will do, thanks.
<utkanos> this might explain it better than I am: http://pastebin.com/TRmW4HjJ
nlv has joined #ruby-lang
sailias has quit [Quit: Leaving.]
valcker has joined #ruby-lang
sailias has joined #ruby-lang
spinky has quit [Ping timeout: 252 seconds]
<utkanos> whitequark: thank you so much, exactly what I needed
jvrmaia has joined #ruby-lang
<spike|spiegel> 2.0.0-p195 is out.... title update?
utkanos has left #ruby-lang ["Leaving"]
<whitequark> strings are ghetto.
<whitequark> more specifically, precisely locating string literals in ruby code is... HARD.
tomzx_mac has joined #ruby-lang
enebo has joined #ruby-lang
Guest85414_ has joined #ruby-lang
randym_ has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
erpuds has quit [Quit: erpuds]
tdy has joined #ruby-lang
erpuds has joined #ruby-lang
<sono_> : Howdy, we are trying to install ruby 1.9.3-p426 and running into the following error when building, previous versions compile without issue:
<sono_> Wandering if anyone else is having issues getting p426 compiled
nlv has quit [Remote host closed the connection]
Karql has quit [Read error: Connection reset by peer]
ericmathison has joined #ruby-lang
matled has quit [Remote host closed the connection]
spinky has joined #ruby-lang
benlovell has joined #ruby-lang
pskosinski has quit [Remote host closed the connection]
Guest34966 has left #ruby-lang [#ruby-lang]
pskosinski has joined #ruby-lang
JpC0utur3 has joined #ruby-lang
<spike|spiegel> keep wandering
rippa has joined #ruby-lang
<sono_> doh.. hehe.. I am doing a bit of both now. Wandering and wondering
krohrbaugh has joined #ruby-lang
xcombelle has joined #ruby-lang
TheNotary has joined #ruby-lang
dhruvasagar has joined #ruby-lang
JpC0utur3 has quit [Ping timeout: 246 seconds]
tylersmith has joined #ruby-lang
duty2 has quit [Quit: Leaving]
zmike has joined #ruby-lang
retro|cz has joined #ruby-lang
valcker has quit [Remote host closed the connection]
elia has quit [Read error: Operation timed out]
spinky has quit [Read error: Connection reset by peer]
gnufied has quit [Quit: Leaving.]
swygue has joined #ruby-lang
krohrbaugh1 has joined #ruby-lang
rickhull has joined #ruby-lang
krohrbaugh has quit [Read error: Connection reset by peer]
<whitequark> hur hur, it seems that parser's AST can be simplified and rectified even further
S1kx has quit [Quit: Leaving]
* whitequark <3 removing nodes
erpuds has quit [Quit: erpuds]
krohrbaugh has joined #ruby-lang
krohrbaugh1 has quit [Ping timeout: 248 seconds]
robbyoconnor has joined #ruby-lang
<yorickpeterse> zzak: you need to start a website for your cat
<yorickpeterse> or an Atom/RSS feed
scampbell has quit [Remote host closed the connection]
<zzak> haha
<zzak> follow me on instagram
<yorickpeterse> I don't have Instagram
<zzak> its like 80% cats
<yorickpeterse> here, like this http://cat.yorickpeterse.com/
<zzak> lol
<zzak> build my cat a website
<yorickpeterse> it was set up for another IRC channel but kinda got out of hand from there
<zzak> he will thank you for it!
<yorickpeterse> it's even open sores!
<erikh> catom
amerine has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 260 seconds]
<zzak> but i dont want to have to upload anything
solars has joined #ruby-lang
<yorickpeterse> pff
<zzak> maybe instagram has an rss feed
amerine has joined #ruby-lang
* yorickpeterse has his catom feed hooked up to an IRC bot
<yorickpeterse> which is aptly called cyberpolice
vlad_starkov has joined #ruby-lang
workmad3 has joined #ruby-lang
<yorickpeterse> in unrelated news, train wifi here in NL is wack
symm- has joined #ruby-lang
<yorickpeterse> it appears to be routed through Germany (https://gist.github.com/YorickPeterse/5577586)
tenderlove has quit [Remote host closed the connection]
grobb has quit [Quit: grobb]
headius has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<zzak> lol
JohnBat26 has joined #ruby-lang
<matti> zzak: ;]
<yorickpeterse> awwww hell yeah
<yorickpeterse> that one is going into my feed reader
krombr has joined #ruby-lang
<zzak> :D
mrsolo has joined #ruby-lang
mrsolo has left #ruby-lang [#ruby-lang]
mrsolo_ has joined #ruby-lang
<andrewvos> erikh: Hey did you say you were learning Go?
JpC0utur3 has joined #ruby-lang
mrsolo_ has left #ruby-lang [#ruby-lang]
mouse_ has quit [Quit: Leaving]
<erikh> yes
<erikh> I'm about to lose internet for a few hours though
mrsolo has joined #ruby-lang
<whitequark> erikh: hey I want to discuss module systems with you
<whitequark> still
zmike has quit [Quit: Выходжу]
<whitequark> but I probably need to take a look at Project Jigsaw first, anyway...
workmad3 has quit [Ping timeout: 276 seconds]
TheMoonMaster_ is now known as TheMoonMaster
dhruvasagar has joined #ruby-lang
<TheNotary> i'm getting unexpected behavior while doing `gem install gas2` from within my rspec tests I have for a gem that uses bundler.
matti has quit [Ping timeout: 246 seconds]
D9 has joined #ruby-lang
matti has joined #ruby-lang
matti has joined #ruby-lang
D9 has quit [Read error: Connection reset by peer]
JpC0utur3 has quit [Ping timeout: 256 seconds]
spectra- has quit [Quit: ZNC - http://znc.sourceforge.net]
nyuszika7h has quit [Read error: Operation timed out]
machuga is now known as machuga|away
benlovell has quit [Ping timeout: 252 seconds]
spectra has joined #ruby-lang
benlovell has joined #ruby-lang
<andrewvos> erikh: Are you going to Go offline?
<andrewvos> erikh: Sorry
matti has quit [Ping timeout: 252 seconds]
<andrewvos> erikh: Erm, what do you think of Go? I haven't really researched it but just noticed it's not JVM so am kinda interested.
matti has joined #ruby-lang
matti has joined #ruby-lang
holgerno has joined #ruby-lang
holgerno has quit [Client Quit]
matti has quit [Ping timeout: 248 seconds]
cwd1 has joined #ruby-lang
enebo has quit [Quit: enebo]
sono_ has left #ruby-lang [#ruby-lang]
machuga|away is now known as machuga
saarinen has joined #ruby-lang
forrest has joined #ruby-lang
scampbell has joined #ruby-lang
cwd1 has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 246 seconds]
headius has quit [Quit: headius]
<yorickpeterse> whitequark: question: I need a name for a data container that will contain info such as variables, method calls and all that limited to a certain scope (e.g. a method body)
<yorickpeterse> would "Context" be a decent name for such a data container?
swav has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 248 seconds]
jxpx777 has joined #ruby-lang
workmad3 has joined #ruby-lang
fsvehla has joined #ruby-lang
<whitequark> yorickpeterse: Scope.
<yorickpeterse> I'm not sure which I like better
<yorickpeterse> both are basically the same
JpC0utur3 has joined #ruby-lang
<yorickpeterse> also god damn it, I really need to find somebody who's just as crazy as I am so I can rubberduck with said person
<yorickpeterse> (close by that is)
<whitequark> you're not crazy
whitequark is now known as shrieker
<yorickpeterse> heh
* shrieker shrieks
shrieker is now known as whitequark
S1kx has joined #ruby-lang
<yorickpeterse> interesting enough there's a guy I work with at $WORK (he works part time for us once in a while) who's bascially me but 10 years older
<yorickpeterse> as in, at some point he even had the same t-shirt
<whitequark> 10-year-older you or you, but 10 year older?
<yorickpeterse> and he also walks around socks while drinking tea
<yorickpeterse> whitequark: 10 year older than I am
<yorickpeterse> he's around 30 or so
<yorickpeterse> * on socks
<whitequark> as in
<whitequark> does he have 10 years more valuable experience and generally more wise, or just older
<yorickpeterse> AS IN AGE DAMN IT
<whitequark> not sure why I suddenly wanted to ask this
<whitequark> ok
<injekt> ...
<whitequark> inkjet: wat?
<injekt> what has become of this channel
<yorickpeterse> injekt: mind your own business brit bieber
<whitequark> shriekers
<yorickpeterse> bbieber, ha
<injekt> yorickpeterse: I HAVE SHORT HAIR
<yorickpeterse> more like bruv-bieber
<yorickpeterse> amirite?
<injekt> more like gtfo
<yorickpeterse> hm, I should get a camera and record myself coding
<yorickpeterse> that would be pretty fucking hilarious to watch
<injekt> oO
<yorickpeterse> given I have music playing that is
<whitequark> (insert obscene analogy here)
<yorickpeterse> haha
<injekt> yeah not sure i'd wanna watch that
<injekt> maybe I should do it and play bieber in the background
<yorickpeterse> whitequark: just imagine me singing along with nightwish's escapist
<yorickpeterse> and "drumming"
<injekt> uh "drumming" D:
<whitequark> haha nightwish
<whitequark> also wtf travis
<yorickpeterse> sadly I can't exactly reach high tones
<whitequark> why did all of my 1.8 builds have failed to connect to github
dezasseis has left #ruby-lang [#ruby-lang]
tbuehlmann has quit [Remote host closed the connection]
<yorickpeterse> Ok next question: do I call the code that creates method definitions and all that VirtualMachine or Environment?
<yorickpeterse> it's not entirely a VM but I like the name
<yorickpeterse> and it makes more sense than Environment
<whitequark> s,VirtualMachine,PartialEvaluator,
<whitequark> because that is what you have there
<yorickpeterse> meh
<whitequark> Environment is a different shit
__butch__ has quit [Quit: Leaving.]
<whitequark> Environment would contain your local variables... in your case, its responsibilities are already taken care of by Scope (if I understand you correctly)
nyuszika7h has joined #ruby-lang
<whitequark> damn it's HOT here
<yorickpeterse> Scope was just an idea, not sure if I actually need a new class for it since I already have Definition::RubyObject and Definition::RubyMethod
* whitequark sighs
<injekt> drbrain: ping
<whitequark> bbl
ebouchut has joined #ruby-lang
<injekt> go go topic range
apeiros changed the topic of #ruby-lang to: Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
<injekt> r
<Swimming_Bird> 2.0 is already up to p195?
<injekt> yeah first patch level
<Swimming_Bird> lots of patches
<yorickpeterse> apeiros: the join message is still mentioning Ruby 1.9.2
<yorickpeterse> huh, it has been changed
<yorickpeterse> nevermind
<apeiros> can't change that one
banister`tv has quit [Read error: Connection reset by peer]
PigDude has joined #ruby-lang
PigDude has left #ruby-lang [#ruby-lang]
mbj has quit [Quit: leaving]
benlovell has joined #ruby-lang
<andrewvos> This channel has descended to madness
sepp2k has joined #ruby-lang
<apeiros> it finally reached your preferred niveau? :)
<andrewvos> I like to think I had a fair hand in it
<andrewvos> Been reading dictionaries?
<apeiros> hm? no?
zommi has joined #ruby-lang
<yorickpeterse> implying this channel was ever normal to begin with
<yorickpeterse> I'd like to see it as a club of mad scientists
<amerine> Or a gaggle of angry neck beards ¯\_(ツ)_/¯
benlovell has quit [Ping timeout: 276 seconds]
headius has joined #ruby-lang
mistym is now known as mistym_meeting
robbyoconnor has quit [Max SendQ exceeded]
david___ has joined #ruby-lang
robbyoconnor has joined #ruby-lang
david___ has left #ruby-lang [#ruby-lang]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
headius has quit [Ping timeout: 252 seconds]
vlad_sta_ has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
xcombelle has quit [Remote host closed the connection]
anonymuse has quit [Quit: Leaving...]
JpC0utur3 has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
mistym_meeting is now known as mistym
dpatel has joined #ruby-lang
r0bby has joined #ruby-lang
symm- has quit [Ping timeout: 256 seconds]
krombr has quit [Remote host closed the connection]
banister`tv has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
robbyoconnor has quit [Ping timeout: 256 seconds]
benlovell has joined #ruby-lang
malign_ is now known as malign
<malign> Hello.
barttenbrinke has joined #ruby-lang
canton7 has joined #ruby-lang
sush24 has joined #ruby-lang
justinmburrous has joined #ruby-lang
<yorickpeterse> hai
nyuszika7h has quit [Quit: WeeChat 0.4.1-rc2]
mbj has joined #ruby-lang
JpC0utur3 has joined #ruby-lang
yalue has quit [Ping timeout: 276 seconds]
nyuszika7h has joined #ruby-lang
blowmage has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
yalue has joined #ruby-lang
Swimming_Bird has quit [Quit: Computer has gone to sleep.]
justinmburrous has quit [Remote host closed the connection]
mucker has quit [Quit: leaving]
retro|cz has quit [Ping timeout: 256 seconds]
sailias has quit [Quit: Leaving.]
sailias1 has joined #ruby-lang
redyellowgreen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sush24 has quit [Quit: This computer has gone to sleep]
sandbags has quit [Remote host closed the connection]
chessguy has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
kstone has joined #ruby-lang
ahf has quit [Ping timeout: 245 seconds]
rippa has quit [Ping timeout: 240 seconds]
ahf has joined #ruby-lang
ahf has quit [Changing host]
ahf has joined #ruby-lang
<kstone> having issues with require and require_relative
<kstone> after a require on a file that is symlinked $" reflects the symlink name
<kstone> later require_relative accesses the same file but requires the absolute path
Swimming_Bird has joined #ruby-lang
<kstone> resulting in a double require
<kstone> using ruby 1.9.2
<apeiros> why do you symlink?
<injekt> kstone: require_relative does not resolve symlinks, dont require symlinks
<kstone> symlinking /vendor directories together across deploys to make the bundle install process faster
JpC0utur3 has quit [Ping timeout: 248 seconds]
<kstone> the source for require_relative shows it using file_abosute_path, is that doing something else?
<apeiros> I don't think ruby is supposed to figure whether foo/bar and foo/baz are the same file or not
<apeiros> so if foo/bar is a symlink of foo/baz, that's still two different files to ruby
vlad_starkov has joined #ruby-lang
tdy has quit [Ping timeout: 245 seconds]
<injekt> yup
<cout> when I implemented something like require_relative back in the ruby 1.6 days, I had it resolve symlinks, but I think ruby 1.9 is actually right to not do so
anonymuse has joined #ruby-lang
pipework has quit [Remote host closed the connection]
totallymike has quit [Quit: WeeChat 0.4.0]
benlovell has quit [Ping timeout: 256 seconds]
<kstone> I agree that ruby on a whole should not resolve symlinks but during the require phase why shouldn't require be using the canonical paths to avoid as many double requires as possible?
barttenbrinke has quit [Remote host closed the connection]
<workmad3> why are you symlinking your code all over the place? :/
vlad_starkov has quit [Ping timeout: 260 seconds]
<kstone> only vendored gem directories to make bundle install a bit faster
nathanstitt has quit [Quit: I growing sleepy]
justinmburrous has joined #ruby-lang
enebo has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
redyellowgreen has joined #ruby-lang
nathanstitt has joined #ruby-lang
pr0ton has joined #ruby-lang
TheNotary has quit [Quit: Leaving]
pskosinski has quit [Remote host closed the connection]
scottschecter has quit [Ping timeout: 256 seconds]
sush24 has joined #ruby-lang
jovy88_ has quit [Read error: Connection reset by peer]
jovy88_ has joined #ruby-lang
workmad3 has quit [Ping timeout: 246 seconds]
jmeeuwen has quit [Ping timeout: 264 seconds]
malign has quit [Ping timeout: 276 seconds]
zommi has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
saarinen has quit [Quit: saarinen]
bastetmilo has quit [Ping timeout: 252 seconds]
saarinen has joined #ruby-lang
pskosinski has joined #ruby-lang
malign has joined #ruby-lang
r0bby has quit [Ping timeout: 256 seconds]
kstone has left #ruby-lang [#ruby-lang]
kstone has joined #ruby-lang
jmeeuwen has joined #ruby-lang
bastetmilo has joined #ruby-lang
crudson1 has quit [Quit: Leaving.]
mucker has joined #ruby-lang
Xzyx987X has joined #ruby-lang
PacketMonkey_ has quit [Quit: ZNC - http://znc.sourceforge.net]
PacketMonkey has joined #ruby-lang
Xzyx987X_ has quit [Ping timeout: 240 seconds]
DomKM has quit [Quit: Leaving.]
matti has joined #ruby-lang
<injekt> rue_XIV: ping
Paradox has quit [Read error: Connection reset by peer]
<drbrain> injekt: pong
<malign> :(
DarkBushido has joined #ruby-lang
<injekt> drbrain: t'was regarding the discussion we just had
<drbrain> ok!
_dabradley has left #ruby-lang [#ruby-lang]
Paradox has joined #ruby-lang
io_syl has quit [Ping timeout: 252 seconds]
voker57__ has quit [Read error: Connection reset by peer]
benlovell has quit [Ping timeout: 256 seconds]
io_syl has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
krohrbaugh has quit [Read error: Connection reset by peer]
krohrbaugh1 has joined #ruby-lang
pr0ton has joined #ruby-lang
swygue has quit [Ping timeout: 264 seconds]
voker57 has joined #ruby-lang
voker57 has joined #ruby-lang
sailias1 has quit [Quit: Leaving.]
krohrbaugh1 has quit [Ping timeout: 246 seconds]
krohrbaugh has joined #ruby-lang
mucker has quit [Quit: leaving]
r0bby has joined #ruby-lang
vlad_starkov has joined #ruby-lang
gianlucadv has quit [Ping timeout: 260 seconds]
blacktulip has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 248 seconds]
redyellowgreen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<injekt> drbrain: are you happy for me to deprecate 1.8 in the next 2.x release of mechanize?
<drbrain> injekt: yes
<drbrain> 1.8.7 reaches EOL for security fixes in six weeks
<injekt> great :)
<injekt> yup
s0ber_ has joined #ruby-lang
rygood has joined #ruby-lang
redyellowgreen has joined #ruby-lang
s0ber has quit [Ping timeout: 256 seconds]
matti has quit [Ping timeout: 246 seconds]
s0ber_ is now known as s0ber
jvrmaia has quit [Remote host closed the connection]
redyellowgreen has quit [Client Quit]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
carloslopes has quit [Remote host closed the connection]
<darix> drbrain: nooooooooooo
machuga is now known as machuga|away
<darix> drbrain: i think going EOL upstream and actually stopped being shipped will be a large difference.
<drbrain> darix: yeah
<darix> it will take quiet a bit until the rhel/sles releases with 1.8 in them go EOL
khalua_ has quit [Remote host closed the connection]
<darix> you dont want to know how long i backported to 1.4!
<drbrain> darix: but I sure am getting tired of writing "on ruby 1.9+ I could write (two words) but this works on 1.8.7" followed by a five lines of a backwards compatible implementation
<drbrain> darix: ha!
yalue has quit [Quit: Leaving]
<darix> drbrain: just 5 lines? then i dont understand all the hot air:p
<drbrain> darix: it's harshing on my good vibes, man!
<darix> if 1.9 would be a drop in replacement for 1.8 ... updating would be so much easier
<whitequark> bonus points for the implementation actually not being completely compatible on some weird edge cases
<whitequark> darix: well, 2.0 is
<whitequark> (for 1.9)
<darix> nice... that wont solve the show stopper from 1.8 -> newer
bcardarella has left #ruby-lang [#ruby-lang]
<andrewvos> erikh: Great blog entry (gem activation)
chessguy has quit [Remote host closed the connection]
pr0ton has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jbsan has joined #ruby-lang
redyellowgreen has joined #ruby-lang
mrfelix has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
Squarepy has quit [Quit: Leaving]
saarinen has quit [Quit: saarinen]
alessio_rocco has joined #ruby-lang
redyellowgreen has quit [Quit: Textual IRC Client: www.textualapp.com]
kstone has quit [Quit: kstone]
sush24 has quit [Quit: This computer has gone to sleep]
retro|cz has joined #ruby-lang
enebo has quit [Ping timeout: 256 seconds]
henrikhodne has joined #ruby-lang
Swimming_Bird has quit [Quit: Computer has gone to sleep.]
wmoxam has quit [Ping timeout: 256 seconds]
rwilcox has joined #ruby-lang
kstone has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
breakingthings has quit [Quit: breakingthings]
<kstone> is there a log for this room?
saarinen has joined #ruby-lang
Spaceghost|cloud is now known as pipecloud
<drbrain> kstone: yes, but I don't remember where whitequark maintains it
forrest has quit [Quit: Leaving]
<injekt> kstone: ^
sailias has joined #ruby-lang
toretore has quit [Quit: Leaving]
cofin has quit [Quit: cofin]
vlad_starkov has joined #ruby-lang
justinmburrous has joined #ruby-lang
pr0ton has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 256 seconds]
mistym has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
mrfelix has quit [Quit: Computer has gone to sleep.]
r0bby has quit [Ping timeout: 256 seconds]
alessio_rocco has quit [Ping timeout: 264 seconds]
<pipecloud> injekt: Nifty. You wrote that?
hahuang65 has joined #ruby-lang
<pipecloud> Oh it's whitequark's
scottschecter has joined #ruby-lang
<injekt> yes
<injekt> (at the latter) :-)
kstone has quit [Quit: kstone]
malign has quit [Read error: Operation timed out]
pr0ton has quit [Quit: pr0ton]
pr0ton has joined #ruby-lang
JpC0utur3 has joined #ruby-lang
malign has joined #ruby-lang
glebm has quit [Ping timeout: 256 seconds]
<brownies> is Nokogiri still the way to go for parsing HTML and doing things with it?
<lianj> yes
kstone has joined #ruby-lang
<brownies> ok. just checking. thanks.
saarinen has quit [Quit: saarinen]
Boohbah has quit [Quit: Lost terminal]
solars has quit [Ping timeout: 256 seconds]
pr0ton has quit [Ping timeout: 252 seconds]
pr0ton has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
henrikhodne has quit [Quit: Computer has gone to sleep.]
woollyams has joined #ruby-lang
r0bby has joined #ruby-lang
rsync has joined #ruby-lang
vlad_starkov has joined #ruby-lang
dustint has quit [Quit: Leaving]
heftig has quit [Quit: Quitting]
heftig has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
nathanstitt has joined #ruby-lang
matti has joined #ruby-lang
matti has quit [Changing host]
matti has joined #ruby-lang
JpC0utur3 has quit [Ping timeout: 276 seconds]
<erikh> andrewvos: thanks!
<erikh> just got out of my interview. need to find a bar.
<erikh> bbl
jovy88_ has quit [Ping timeout: 248 seconds]
Swimming_Bird has joined #ruby-lang
breakingthings has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 248 seconds]
gianlucadv has joined #ruby-lang
breakingthings has quit [Quit: breakingthings]
breakingthings has joined #ruby-lang
mrsolo has quit [Quit: This computer has gone to sleep]
stamina has quit [Ping timeout: 256 seconds]
D9 has joined #ruby-lang
idkazuma has joined #ruby-lang
DomKM has joined #ruby-lang
asunderland has joined #ruby-lang
postmodern has joined #ruby-lang
fosky has joined #ruby-lang
saarinen has joined #ruby-lang