apeiros changed the topic of #ruby-lang to: Ruby 2.1.0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || RubyConf 2013 at http://www.justin.tv/confreaks
tkuchiki has joined #ruby-lang
fonz has joined #ruby-lang
thmzlt has quit []
dorei has joined #ruby-lang
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
tectonic has quit []
jackhammer2022 has joined #ruby-lang
MartynKeigher2 has joined #ruby-lang
jtw has quit []
cnivolle has quit [Remote host closed the connection]
coca_rails has joined #ruby-lang
vlad_starkov has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
lmuhammad1 has joined #ruby-lang
Elico has quit [Ping timeout: 256 seconds]
lmuhammad1 has left #ruby-lang [#ruby-lang]
tkuchiki has quit [Ping timeout: 245 seconds]
DouweM has quit [Ping timeout: 260 seconds]
arooni-mobile has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
symm- has quit [Ping timeout: 246 seconds]
kitak has joined #ruby-lang
workmad3 has quit [Ping timeout: 260 seconds]
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
shinnya has quit [Ping timeout: 250 seconds]
arooni-mobile has quit [Ping timeout: 245 seconds]
jackhammer2022 has joined #ruby-lang
cnivolle has joined #ruby-lang
marr has quit [Ping timeout: 260 seconds]
woollyams has joined #ruby-lang
dachi has quit [Quit: ...]
coca_rails has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
dachi has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 246 seconds]
jhass is now known as jhass|off
mistym has quit [Remote host closed the connection]
toretore has quit [Quit: Leaving]
kalehv has joined #ruby-lang
arooni-mobile has joined #ruby-lang
Johz has quit [Quit: Leaving]
kalehv has quit [Ping timeout: 272 seconds]
mykoweb has quit [Remote host closed the connection]
jsullivandigs has quit [Remote host closed the connection]
arooni-mobile has quit [Ping timeout: 252 seconds]
havenwood has quit []
jsullivandigs has joined #ruby-lang
mykoweb has joined #ruby-lang
hahuang65 has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
jsullivandigs has quit [Ping timeout: 250 seconds]
hahuang65 has quit [Ping timeout: 245 seconds]
tectonic has joined #ruby-lang
micalexander has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
amclain has quit [Read error: Connection reset by peer]
amclain has joined #ruby-lang
micalexander has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby-lang
specialblend has joined #ruby-lang
jsullivandigs has joined #ruby-lang
fonz has quit [Remote host closed the connection]
Wardrop has joined #ruby-lang
<Wardrop> Ok, this seems harder than it should be. What's the best way to convert an array into a hash, where every element of the array is a key. I want all the values of the hash to be nil?
bahar has quit [Ping timeout: 252 seconds]
elliotec has joined #ruby-lang
<Wardrop> I know I could do a #map and use Hash[], but I'm thinking there must be a more elegant way.
bahar has joined #ruby-lang
nathanstitt has joined #ruby-lang
RobertBirnie has joined #ruby-lang
cored has quit [Ping timeout: 246 seconds]
<heavyhorse> well
<heavyhorse> map is the way id do it
<heavyhorse> but you could
<heavyhorse> Hash[*array.zip([]).flatten)
nathanstitt has quit [Client Quit]
<pipecloud> ^
<pipecloud> I was all array.zip blah. :(
<heavyhorse> yeah i don't like that too much
<Wardrop> Fuck I hate Hash[] syntax. Can't wait until #to_h is implemented. Anyway, my hate for Hash[] has driven me to use #reduce, e.g. array.reduce({}) { |m,v| m[v] = nil; m }
<pipecloud> heavyhorse: No flatten needed, I think.
zastern has joined #ruby-lang
<Wardrop> Probably slower, but can't be worth worrying about
<pipecloud> Wardrop: Hash[array.zip]
<pipecloud> Oh wait, it is needed. :(
<heavyhorse> arrays are keys
<heavyhorse> so every other item needs to be nil
<heavyhorse> or some placeholder
mykoweb has quit [Ping timeout: 252 seconds]
<pipecloud> heavyhorse: I was thinking that zip would flatten like other things do.
<pipecloud> Wardrop: If the array is one-dimensional, no flatten needed. Otherwise you do need it.
<pipecloud> Wardrop: Why don't you like Hash[]?
<heavyhorse> nope creates a 2D-array
<heavyhorse> or tuples
cnivolle has quit [Remote host closed the connection]
<pipecloud> heavyhorse: It also has some warnings.
<heavyhorse> I think ruby 2.1.x will hash a direct 2d array to hash
micalexander has joined #ruby-lang
micalexander has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
<Wardrop> pipecloud: Because Hash[] is ugly as hell. It works for something like Hash[array.zip], but when it gets longer, it's ugly as hell:
<Wardrop> Hash[['models/**/*.rb', 'lib/**/*.rb'].map { |pattern| Dir.glob(pattern) }.flatten]
mehlah has quit [Quit: Leaving...]
<pipecloud> >> $VERBOSE = true; Hash[[[:lol], :wat]]
<eval-in> pipecloud => /tmp/execpad-15d6230dead7/source-15d6230dead7:2: warning: wrong element type Symbol at 1 (expected array) ... (https://eval.in/99993)
<Wardrop> I just despise it
<Wardrop> I think in Ruby 2.2 we'll have Array#to_h
<heavyhorse> right
<heavyhorse> should reduce the number of map calls
<Wardrop> I mean, #[] is meant to be an accessor. Using it for instantiating a Hash is just ugly to begin with
<Wardrop> I don't know who it was on the Ruby team that though it was a better idea than simply Hash#from_array or any other standard method name.
<pipecloud> I don't know, I've used #[] for more than just accessors.
<Wardrop> pipecloud: Why?
<pipecloud> It works really well for channels in a pubsub system.
<pipecloud> And cache-management. I mean everything is an accessor in a way, but do you mean attribute?
<pipecloud> I'd suspect that Array#to_h would be the nicest interface.
<Wardrop> pipecloud: I mean using #[] for performing an action, rather than retrieving some information, like Hash.[] does.
<heavyhorse> there might be something in Backports if you really want to dig for the best way
<pipecloud> Wardrop: I don't agree, and you're a bit confusing.
<heavyhorse> in which case you'd reopen the Array class and add a to_h method
<Wardrop> pipecloud: You don't agree that #[] should be used exclusively as an accessor interface?
<pipecloud> Wardrop: I don't agree.
<Wardrop> pipecloud: I just think it's ugly and unsemantic
<pipecloud> Wardrop: I think it's acceptable and should only be done when it's the nicest choice for the need.
<Wardrop> pipecloud: Not much different to using other special methods for arbitrary purposes, like Using #+ to perform so random operation. E.g. Hash + array #=> {key => value, key => value}
<heavyhorse> keys.each { |k| h[k] = nil; }
<pipecloud> Wardrop: Love duck typing, don't you?
<heavyhorse> where h = {}
<Wardrop> pipecloud: ?
<pipecloud> heavyhorse: I think Hash[] is different from Hash#[]
<heavyhorse> and keys = [:k1, :k2, ...]
<heavyhorse> oh i probably never used the second one there
broconne has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
<pipecloud> Wardrop: I think if people started publishing API's more, I would adopt different opinions.
<pipecloud> I think that [] is useful for many things outside of just accessing variables.
<pipecloud> I've used it for sending messages, getting and putting resources into a distributed system, and for less neat things like accessing inner structs for lulz.
broconne has quit [Ping timeout: 260 seconds]
<pipecloud> At the end of the day, I've used it for both accessing values, constructing values, and modifying them.
<Wardrop> pipecloud: I didn't restrict it to accessing variables, but in general #[] should be used to access information relating to an object. I don't believe it should be used to perform some arbitrary action like Hash[] does. I mean, Hash[] means nothing to anyone who's unfamiliar with it. Hash.from_array for example is a way better interface. First, you can make use of optional parentheses, and it's clear what the method actually does. Hash[] is not just mean
<Wardrop> misleading.
<pipecloud> Wardrop: It's for creating something.
<pipecloud> Wardrop: I disagree that Hash::from_array is a good idea.
<Wardrop> pipecloud: #[]= is for creation/assignment, not #[]
<pipecloud> Array#to_h or Array#to_hash is though.
<pipecloud> Wardrop: I disagree.
<pipecloud> Normally it is used for that, but it's not a dogmatic principle worth adhering.
<pipecloud> People assign values without using #{method_name}= all the time.
<Wardrop> pipecloud: We'll have to settle for a difference of opinion then
<pipecloud> That's exactly what it is! :D
<Wardrop> pipecloud: Yes, I don't mind *not* using #[] or #[]=. I do mind when they're misused though.
<pipecloud> Wardrop: I'm glad you aren't the authority I must comply to then!
eoinkelly has joined #ruby-lang
<pipecloud> Wardrop: I mean, Matz's hero thinks ruby's lexical scoping is absolutely wrong, but he does it anyways. And look what we have here, a nice language even though he didn't take everything from perl, only a huge portion.
RoxasShadowRS has quit [Read error: Connection reset by peer]
<centrx> pipecloud, Who is Matz's hero?
<pipecloud> centrx: Larry Wall of course.
<Wardrop> I mean, SQL[:connect] = 'sql01.domain.local' would be a really shit interface for establishing a database connection. SQL.connect('sql01.domain.local') is much more logical/semantic/etc. I apply the same logic to #[].
mistym has joined #ruby-lang
<pipecloud> Wardrop: Then don't use things that use it.
<pipecloud> They're not wrong and it's a great interface. It's just not one you appreciate, clearly.
<Wardrop> pipecloud: I can surely dislike something without having to avoid using it.
<Wardrop> I accept Hash[] for example, but think it's a shit interface
nathanstitt has joined #ruby-lang
<pipecloud> Wardrop: Surely you can.
<pipecloud> So are we done whinging then?
<Wardrop> I'm sure the majority of Rubyist's would agree that Hash[] is just bad.
<pipecloud> and?
<Wardrop> In fact, there's a bug entry for it. The one that discusses Array#to_h.
<pipecloud> The benefit of it is that Hash[] is a single implementation that can accept a number of syntaxes and objects passed to it.
<pipecloud> By splitting it out, you must implement the behaviour in all the places that Hash[] already handled.
<Wardrop> pipecloud: I'm not whinging, I'm clarifying for you. You keep making silly suggestions like "Then don't use things that use it.".
<pipecloud> Not necessarily a bad thing.
jtw has joined #ruby-lang
sriehl has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
<pipecloud> Let me be clear, you haven't clarified anything. I think your opinion has value when you state that you prefer it be used for a particular purpose. I disagree when you get dogmatic about how it should be used.
<Wardrop> So Hash.from wouldn't be able to provide the same behaviour as Hash[]?
<Wardrop> Or Hash.<insert any other method name here>
<pipecloud> Wardrop: I'd rather Hash.new accept things.
<pipecloud> But Hash holding the ability to convert things to a hash is probably the right place to do it.
<Wardrop> pipecloud: So would I, but that interface seems to be already used for too many other things, which is a shame.
<pipecloud> Wardrop: I dont' really purport to care about that.
<pipecloud> #new is for getting an instance of the factory.
<Wardrop> Why not make Hash a method them, e.g. Hash() is much nicer in my opinion than Hash[] in my opinion
<Wardrop> Anyway...
mykoweb has joined #ruby-lang
<pipecloud> Hash() wouldn't work.
nathanstitt has quit [Ping timeout: 260 seconds]
<pipecloud> Hash is a class. Having Hash() would mean that you either change ruby to require () for the Hash[] syntax, or you're breaking ruby.
<pipecloud> I'd prefer Hash{}, because it'd match the block passing syntax and that plays well with my thoughts on how else I pass blocks with ruby.
jtw has quit [Ping timeout: 272 seconds]
<Wardrop> pipecloud: Have a play and tell me what breaks:
wallerdev has joined #ruby-lang
<Wardrop> def Hash(*args)
<Wardrop> Hash[*args]
<Wardrop> end
<Wardrop> This is a common pattern that I see used a lot
<Wardrop> >> def Hash(*args); Hash[*args]; end; Hash 'dog', 'roof', 'cat', 'meow'
<eval-in> Wardrop => {"dog"=>"roof", "cat"=>"meow"} (https://eval.in/99994)
<Wardrop> def Hash(*args); Hash[*args]; end; Hash [['dog', 'roof'], ['cat', 'meow']]
<Wardrop> Whoops...
<Wardrop> >>def Hash(*args); Hash[*args]; end; Hash [['dog', 'roof'], ['cat', 'meow']]
<pipecloud> Wardrop: Yeah, I suppose it parses fine. Seems pretty ugly though.
<eval-in> Wardrop => {"dog"=>"roof", "cat"=>"meow"} (https://eval.in/99995)
<Wardrop> Much prettier than Hash[].
<pipecloud> Disagree.
<pipecloud> Hash[] indicates you're not actually referring to the Hash class constant.
<Wardrop> pipecloud: Back to square one then
<pipecloud> Wardrop: Hash alone looks like I'm maybe referring to the class.
<pipecloud> The best thing, imo, is a syntax that doesn't confuse users. Both Hash[] and Hash might confuse the poor users.
mykoweb has quit [Remote host closed the connection]
<Wardrop> I'm not suggesting I'm a huge fan of Hash() either, but if you want a Hash[]/Hash() style interface, Hash() is better in my opinion.
<pipecloud> That's nice, I disagree much more with ::Hash() than ::Hash[], but dislike both.
<Wardrop> Hash.convert_this_fucking_shit_for_me(array)
<Wardrop> Much better
Coincidental has joined #ruby-lang
<pipecloud> I'd probably revert any commits defining a method like that the moment I came across it.
<pipecloud> I think you're losing the constructive intent. I'm done.
amclain has quit [Read error: Connection reset by peer]
amclain has joined #ruby-lang
verto has quit [Remote host closed the connection]
verto_ has joined #ruby-lang
kitak has quit [Read error: Connection reset by peer]
kitak has joined #ruby-lang
verto_ is now known as verto
vlad_starkov has joined #ruby-lang
tylersmith has joined #ruby-lang
nathanstitt has joined #ruby-lang
nathanstitt has quit [Client Quit]
lcdhoffman has quit [Quit: lcdhoffman]
iben has joined #ruby-lang
lsegal has joined #ruby-lang
specialblend has quit [Quit: specialblend]
Coincidental has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
havenwood has joined #ruby-lang
Coincidental has quit [Ping timeout: 245 seconds]
sriehl has quit []
havenwood has quit []
woollyams has quit [Ping timeout: 252 seconds]
woollyams has joined #ruby-lang
dorei has quit []
vlad_starkov has quit [Read error: Connection reset by peer]
kitak has quit [Read error: Connection reset by peer]
retro|cz has quit [Ping timeout: 245 seconds]
kitak has joined #ruby-lang
mdub has joined #ruby-lang
woollyams has quit [Read error: Connection reset by peer]
bzalasky has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
sferik has joined #ruby-lang
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Client Quit]
nirix has quit [Ping timeout: 260 seconds]
breaking_ has quit [Ping timeout: 260 seconds]
breakingthings has joined #ruby-lang
nirix has joined #ruby-lang
sferik has quit [Ping timeout: 252 seconds]
jsullivandigs has quit [Remote host closed the connection]
sepp2k has quit [Read error: Connection reset by peer]
Sirupsen has joined #ruby-lang
mykoweb has joined #ruby-lang
jsullivandigs has joined #ruby-lang
bzalasky has joined #ruby-lang
nick_h has quit [Ping timeout: 252 seconds]
Coincidental has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
ConstantineXVI has quit [Ping timeout: 265 seconds]
bzalasky has quit [Remote host closed the connection]
ConstantineXVI has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
Barrin6 has joined #ruby-lang
tylersmith has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
iben has quit [Ping timeout: 246 seconds]
mdub has quit [Ping timeout: 252 seconds]
ItSANg___ has joined #ruby-lang
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ItSANgo has quit [Ping timeout: 272 seconds]
hahuang65 has joined #ruby-lang
DannyC has joined #ruby-lang
nisstyre has joined #ruby-lang
nisstyre has quit [Changing host]
nisstyre has joined #ruby-lang
ItSANg___ has quit [Ping timeout: 245 seconds]
kalehv has joined #ruby-lang
hahuang65 has quit [Ping timeout: 246 seconds]
ItSANgo__ has joined #ruby-lang
iben has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
elliotec has joined #ruby-lang
eoinkelly has quit [Ping timeout: 245 seconds]
heavyhorse has quit [Quit: Computer has gone to sleep]
heavyhorse has joined #ruby-lang
RobertBirnie has quit [Quit: Textual IRC Client: www.textualapp.com]
imperator has joined #ruby-lang
DannyC has quit []
heavyhor1e has joined #ruby-lang
heavyhor1e has left #ruby-lang [#ruby-lang]
heavyhorse has quit [Ping timeout: 250 seconds]
jsullivandigs has quit [Quit: Leaving...]
kalehv has quit [Remote host closed the connection]
eugenejen has joined #ruby-lang
bzalasky has joined #ruby-lang
eugenejen has quit [Client Quit]
Coincidental has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
rahul_j has quit [Quit: rahul_j]
fragamus has joined #ruby-lang
bzalasky has joined #ruby-lang
crankharder has quit [Remote host closed the connection]
ratmav has joined #ruby-lang
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
rahul_j has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
iben has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
havenwood has joined #ruby-lang
vlad_starkov has joined #ruby-lang
tylersmith has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
woollyams has quit [Ping timeout: 252 seconds]
fuhgeddaboudit has quit [Ping timeout: 248 seconds]
mistym has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 260 seconds]
vlad_sta_ has quit [Remote host closed the connection]
nisstyre has quit [Quit: Leaving]
woollyams has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
imperator has quit [Ping timeout: 248 seconds]
Nisstyre-laptop is now known as nisstyre
danijoo has joined #ruby-lang
<Wardrop> Anyone have any tips on how you'd unit test a tool that requires files? The problem is that once a file is required, subsequent tests are going to either fail or not be tested properly as the file will already be required.
<Wardrop> I suppose I should probably use something like this: https://github.com/corntrace/rspec-isolation
phansch has joined #ruby-lang
kalehv has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
<Wardrop> Except that extension doesn't seem to work.
<centrx> Wardrop, Not many people around right now since it is night-time in both U.S. and Europe
<centrx> Wardrop, You can also try #ruby
kalehv has quit [Ping timeout: 265 seconds]
centrx has quit [Quit: Leaving]
mykoweb has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
clamstar has quit [Quit: ZNC - http://znc.in]
Markvill_ has quit [Quit: Computer has gone to sleep.]
ecnalyr_ has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
rivaler has joined #ruby-lang
ecnalyr has quit [Ping timeout: 240 seconds]
diegoviola has quit [Quit: WeeChat 0.4.2]
nisstyre has quit [Quit: WeeChat 0.4.2]
Nisstyre-laptop has joined #ruby-lang
woollyams has joined #ruby-lang
kiwnix has joined #ruby-lang
Nisstyre-laptop is now known as nisstyre
Cakey has joined #ruby-lang
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
tectonic has quit []
heftig has quit [Quit: Quitting]
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
lun_ has joined #ruby-lang
kitak_ has joined #ruby-lang
ratmav has quit [Quit: Leaving]
ecnalyr has joined #ruby-lang
kitak has quit [Ping timeout: 245 seconds]
ecnalyr has quit [Ping timeout: 240 seconds]
ratmav has joined #ruby-lang
tonni_ has quit [Remote host closed the connection]
tonni has joined #ruby-lang
ender|dktm has quit [Ping timeout: 260 seconds]
tonni has quit [Ping timeout: 260 seconds]
Barrin6 has quit [Quit: Leaving]
kiwnix has quit [Quit: Leaving]
arBmind has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
ruby-lang640 has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
tonni has joined #ruby-lang
tylersmith has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
ruby-lang640 has quit [Ping timeout: 245 seconds]
tylersmith has quit [Ping timeout: 245 seconds]
Mon_Ouie has quit [Read error: Operation timed out]
havenwood has quit [Ping timeout: 252 seconds]
amclain has quit [Quit: Leaving]
mistym has joined #ruby-lang
tylersmith has joined #ruby-lang
existensil has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dachi has quit [Quit: ...]
dachi has joined #ruby-lang
tylersmith has quit [Ping timeout: 245 seconds]
phansch has quit [Quit: Leaving]
marr has joined #ruby-lang
existensil has joined #ruby-lang
tonni has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby-lang
meizaps has quit [Ping timeout: 246 seconds]
meizaps has joined #ruby-lang
havenwood has joined #ruby-lang
lun_ has quit [Read error: Connection reset by peer]
lun_ has joined #ruby-lang
tonni has joined #ruby-lang
arooni-mobile has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
|jemc| has quit [Ping timeout: 245 seconds]
nisstyre has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 245 seconds]
vlad_sta_ has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 250 seconds]
bzalasky has quit [Remote host closed the connection]
Cakey has quit [Ping timeout: 252 seconds]
dagobah has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
kitak_ has quit [Read error: Connection reset by peer]
kitak has joined #ruby-lang
vlad_starkov has joined #ruby-lang
phansch has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
arooni-mobile has quit [Ping timeout: 250 seconds]
arBmind has quit [Quit: Leaving.]
jhass|off is now known as jhass
vlad_starkov has quit [Remote host closed the connection]
paulp has joined #ruby-lang
paulp has left #ruby-lang [#ruby-lang]
vlad_starkov has joined #ruby-lang
hahuang65 has joined #ruby-lang
kitak has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
kitak has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
tonni has quit [Remote host closed the connection]
rahul_j has quit [Quit: rahul_j]
rahul_j has joined #ruby-lang
lun_ has quit [Remote host closed the connection]
jackhammer2022 has joined #ruby-lang
ConstantineXVI has quit [Ping timeout: 265 seconds]
tpope has quit [Ping timeout: 246 seconds]
lun_ has joined #ruby-lang
Cakey has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
tpope has joined #ruby-lang
jackhammer2022 has quit [Client Quit]
ConstantineXVI has joined #ruby-lang
lun_ has quit [Ping timeout: 245 seconds]
dbussink has joined #ruby-lang
dachi has quit [Quit: ...]
hahuang65 has quit [Ping timeout: 246 seconds]
dachi has joined #ruby-lang
arBmind has joined #ruby-lang
charliesome has joined #ruby-lang
havenwood has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
tonni has joined #ruby-lang
havenwood has quit [Ping timeout: 252 seconds]
marr has quit [Ping timeout: 272 seconds]
sluukkonen1 is now known as sluukkonen
charliesome has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby-lang
benlovell has joined #ruby-lang
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
cnivolle has joined #ruby-lang
tbuehlmann has joined #ruby-lang
hahuang65 has joined #ruby-lang
ironcamel has quit [Ping timeout: 250 seconds]
phansch has quit [Quit: Leaving]
jsrn has joined #ruby-lang
skade has joined #ruby-lang
Markvilla has joined #ruby-lang
skade has quit [Client Quit]
skade has joined #ruby-lang
havenwood has joined #ruby-lang
vondruch has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
indrub has joined #ruby-lang
elliotec has quit [Ping timeout: 245 seconds]
jinie_ has joined #ruby-lang
benlovell has quit [Read error: Operation timed out]
havenwood has quit [Ping timeout: 250 seconds]
jinie has quit [Ping timeout: 264 seconds]
benlovell has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
rolfb has joined #ruby-lang
hahuang65 has quit [Ping timeout: 252 seconds]
jinie_ is now known as jinie
Cakey has quit [Ping timeout: 245 seconds]
skade has joined #ruby-lang
Cakey has joined #ruby-lang
<indrub> hi guys , i am new to ruby. i have a question to ask?
rivaler has quit [Quit: rivaler]
<indrub> is it possible to check wether an element (in static array) is nil , if it is so , i want to insert an element?
<yorickpeterse> morning folks
<indrub> what kind of command should i use?
<rolfb> morning
heftig has joined #ruby-lang
<ljarvis> indrub: arr.map { |x| x || "some value" }
Elico has joined #ruby-lang
<ljarvis> also moin
Cakey has quit [Ping timeout: 248 seconds]
marr has joined #ruby-lang
<yorickpeterse> sheeeeeeeeee we have Euruko tickets
<yorickpeterse> now to actually wrap up my talk and I might not even need one, hopefully
mistym has quit [Remote host closed the connection]
lun_ has joined #ruby-lang
<benlovell> yorickpeterse: did you see the venue?
<yorickpeterse> I saw some photos flying around
<yorickpeterse> in between the photos of burning tires
<ljarvis> heh
elliotec has joined #ruby-lang
<ljarvis> weather y u so cold
gianlucadv has joined #ruby-lang
mucker has joined #ruby-lang
<yorickpeterse> m8 you live in England
<yorickpeterse> what did you expect, sun?
<ljarvis> m8 i will fuk i up k ya prick
<ljarvis> my house sucks and doesn't stay warm :(
indrub has quit [Quit: Page closed]
jhass is now known as jhass|off
elliotec has quit [Ping timeout: 252 seconds]
<yorickpeterse> I still need to fix some insulation and a broken heater but other than that it stays at a nice 30C
skade has quit [Ping timeout: 260 seconds]
<yorickpeterse> and yet I still walk around in a jumper and slippers
<ljarvis> read that as a broken hipster
<yorickpeterse> Funny enough I'm the only one walking in a shirt here in the office
workmad3 has joined #ruby-lang
<yorickpeterse> I have the best slippers you'll ever see
skade has joined #ruby-lang
<yorickpeterse> need new ones though, they're wearing off
indrub has joined #ruby-lang
<indrub> hi
<indrub> I have an static array, how to do i check if any element in the array is nil .If its nil, insert a value at that index only
<ljarvis> indrub: I already told you
<indrub> using map will transfrom all values in it??
<ljarvis> did you try it?
<ljarvis> >> 1
<eval-in> ljarvis => 1 (https://eval.in/100049)
<ljarvis> >> [1,2,nil,3,4,nil].map { |x| x || "x" }
<eval-in> ljarvis => [1, 2, "x", 3, 4, "x"] (https://eval.in/100050)
<indrub> i want to insert at first nil only , not at all nil value
<indrub> inset x at array[2] only , not at array[5]
sferik has joined #ruby-lang
<yorickpeterse> TIL 2014-02-10 > 2014-02-10 12:59:48
<yorickpeterse> Fucking Ruby
vlad_sta_ has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
vlad_st__ has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
phansch has joined #ruby-lang
<yorickpeterse> Also, does anybody know if it's possible to tell Mongoid not to spit out stupidly verbose error messages?
<yorickpeterse> as in
benlovell has quit [Ping timeout: 272 seconds]
<yorickpeterse> http://hastebin.com/raw/cimalofeho as in this
kitak has quit [Read error: Connection reset by peer]
kitak has joined #ruby-lang
havenwood has joined #ruby-lang
mehlah has joined #ruby-lang
tkuchiki has quit [Ping timeout: 250 seconds]
<yorickpeterse> oh ffs, seems I'm stuck with that stupid format
marr has quit [Ping timeout: 250 seconds]
<yorickpeterse> fuckit, taking Mongoid out
havenwood has quit [Ping timeout: 246 seconds]
VTLob has joined #ruby-lang
benlovell has joined #ruby-lang
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby-lang
sferik has joined #ruby-lang
sferik has quit [Client Quit]
sferik has joined #ruby-lang
symm- has joined #ruby-lang
michd is now known as MichD
d4rkr4i has joined #ruby-lang
ljarvis has quit [Quit: leaving]
woollyams has quit [Read error: No route to host]
woollyams has joined #ruby-lang
hahuang65 has quit [Ping timeout: 246 seconds]
AKASkip has joined #ruby-lang
dorei has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
d4rkr4i has quit [Quit: Leaving.]
ikrima has quit [Ping timeout: 245 seconds]
jhass|off is now known as jhass
havenwood has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
indrub has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
d4rkr4i has joined #ruby-lang
indrub has joined #ruby-lang
dachi has quit [Quit: ...]
havenwood has quit [Ping timeout: 250 seconds]
vlad_st__ has quit [Remote host closed the connection]
arBmind has quit [Read error: Connection reset by peer]
arBmind has joined #ruby-lang
mehlah has joined #ruby-lang
vlad_starkov has joined #ruby-lang
cored has joined #ruby-lang
toretore has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 260 seconds]
elia has joined #ruby-lang
indrub has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
retro|cz has joined #ruby-lang
DarkBushido has quit [Ping timeout: 265 seconds]
ConstantineXVI has quit [Ping timeout: 265 seconds]
tpope has quit [Ping timeout: 245 seconds]
pabloh has quit [Quit: Saliendo]
tpope has joined #ruby-lang
kirin` has quit [Ping timeout: 260 seconds]
kirin` has joined #ruby-lang
tpope has quit [Ping timeout: 248 seconds]
cout has quit [Ping timeout: 252 seconds]
mbj has joined #ruby-lang
tpope has joined #ruby-lang
DarkBushido has joined #ruby-lang
mbj has left #ruby-lang [#ruby-lang]
DarkBushido is now known as Guest87981
cout has joined #ruby-lang
ConstantineXVI has joined #ruby-lang
gr33n7007h has joined #ruby-lang
jinie has quit [Ping timeout: 246 seconds]
relix has joined #ruby-lang
dachi has joined #ruby-lang
kitak has quit [Remote host closed the connection]
jinie has joined #ruby-lang
symm- has quit [Ping timeout: 260 seconds]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lun_ has quit [Remote host closed the connection]
lun_ has joined #ruby-lang
havenwood has joined #ruby-lang
lun_ has quit [Ping timeout: 250 seconds]
dachi has quit [Quit: ...]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
havenwood has quit [Ping timeout: 260 seconds]
tedstriker has joined #ruby-lang
dachi has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
yangfinder has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
d4rkr4i has quit [Quit: Leaving.]
yangfinder has left #ruby-lang ["Leaving"]
Mon_Ouie has quit [Read error: Operation timed out]
yalue has joined #ruby-lang
woollyams has joined #ruby-lang
marcofernandez has quit [Ping timeout: 272 seconds]
marcofernandez has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
elia has quit [Quit: Computer has gone to sleep.]
smashwilson has joined #ruby-lang
elia has joined #ruby-lang
hahuang65 has joined #ruby-lang
lmuhammad1 has joined #ruby-lang
hahuang65 has quit [Ping timeout: 252 seconds]
<yorickpeterse> * photos
<yorickpeterse> of course I look like a muppet as usual
mforrester has joined #ruby-lang
<yorickpeterse> oh shit, I actually appear in multiple photos for a change
ljarvis has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sferik has joined #ruby-lang
havenwood has joined #ruby-lang
dachi has quit [Quit: ...]
RoxasShadowRS has joined #ruby-lang
jhass is now known as jhass|off
dachi has joined #ruby-lang
gr33n7007h has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
Squarepy has joined #ruby-lang
DevDoo has quit [Remote host closed the connection]
DevDoo has joined #ruby-lang
lmuhammad1 has left #ruby-lang [#ruby-lang]
lun_ has joined #ruby-lang
DevDoo has quit [Ping timeout: 252 seconds]
lpvn has joined #ruby-lang
sferik_ has joined #ruby-lang
jhass|off is now known as jhass
gianluca- has joined #ruby-lang
gianlucadv has quit [Quit: Ex-Chat]
jgpawletko has joined #ruby-lang
arBmind has joined #ruby-lang
sferik has quit [Ping timeout: 252 seconds]
Markvilla has quit [Quit: Computer has gone to sleep.]
gianluca- is now known as gianlucadv
tedstriker has quit [Quit: I have grown tired of your feeble excuses]
vlad_starkov has joined #ruby-lang
vpretzel has joined #ruby-lang
atmosx has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 272 seconds]
gianlucadv is now known as zz_gianlucadv
vlad_starkov has joined #ruby-lang
micalexander has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
micalexa_ has joined #ruby-lang
micalexander has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
micalexa_ has quit [Ping timeout: 246 seconds]
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
skade has joined #ruby-lang
atmosx has quit [Ping timeout: 248 seconds]
jsilver_ has joined #ruby-lang
jsilver has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elia has quit [Ping timeout: 248 seconds]
sferik has joined #ruby-lang
havenwood has joined #ruby-lang
sferik_ has quit [Read error: Connection reset by peer]
sferik has quit [Client Quit]
gianlucadv has joined #ruby-lang
gianlucadv has quit [Client Quit]
relix has joined #ruby-lang
wallerdev has joined #ruby-lang
lele has quit [Ping timeout: 252 seconds]
havenwood has quit [Ping timeout: 260 seconds]
elia has joined #ruby-lang
lele has joined #ruby-lang
mrevd has joined #ruby-lang
shinnya has joined #ruby-lang
sferik has joined #ruby-lang
tonni has quit [Remote host closed the connection]
tonni has joined #ruby-lang
Oak has joined #ruby-lang
jackyalcine has quit [Excess Flood]
tonni has quit [Read error: Operation timed out]
woollyams has joined #ruby-lang
jackyalcine has joined #ruby-lang
nszceta has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
rolfb has quit [Quit: Leaving...]
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby-lang
rahul_j has joined #ruby-lang
tonni has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
skade has quit [Quit: Computer has gone to sleep.]
sferik_ has joined #ruby-lang
skade has joined #ruby-lang
Markvilla has joined #ruby-lang
sferik has quit [Ping timeout: 252 seconds]
crankharder has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
micalexander has joined #ruby-lang
danijoo has joined #ruby-lang
machindo has joined #ruby-lang
micalexander has quit [Ping timeout: 265 seconds]
tylersmith has joined #ruby-lang
mykoweb has joined #ruby-lang
machindo has quit [Ping timeout: 246 seconds]
<crankharder> an I 'hook' an existing rake task? like a before filter or something.
machindo has joined #ruby-lang
elliotec has joined #ruby-lang
<yorickpeterse> Yeah I believe if you overwrite the task without a block you can prepend stuff to it
<yorickpeterse> so just `task :foo => [:other_task_first]`, not 100% sure though
KU0N has joined #ruby-lang
ledestin has quit [Ping timeout: 245 seconds]
nathanstitt has joined #ruby-lang
diegovio1 has joined #ruby-lang
seanlinsley has quit [Quit: …]
elliotec_ has joined #ruby-lang
ratmav has quit [Quit: Leaving]
bjh13 has joined #ruby-lang
ledestin has joined #ruby-lang
elliotec has quit [Ping timeout: 250 seconds]
feinbergscott has joined #ruby-lang
AKASkip has quit [Ping timeout: 248 seconds]
matp has quit [Ping timeout: 250 seconds]
<ljarvis> that would require a new rake task unless the namespace is different
wallerdev has joined #ruby-lang
<ljarvis> (which i would also do personally)
gianlucadv has joined #ruby-lang
havenwood has joined #ruby-lang
symm- has joined #ruby-lang
rippa has joined #ruby-lang
gianlucadv has quit [Client Quit]
gianlucadv_ has joined #ruby-lang
heftig has quit [Quit: Quitting]
gianlucadv_ has quit [Client Quit]
micalexander has joined #ruby-lang
cnivolle_ has joined #ruby-lang
elliotec_ has quit [Remote host closed the connection]
cnivolle has quit [Ping timeout: 246 seconds]
d4rkr4i has joined #ruby-lang
elliotec has joined #ruby-lang
mnngfltg has joined #ruby-lang
clamstar has joined #ruby-lang
ender|dktm has joined #ruby-lang
momomomomo has joined #ruby-lang
matp has joined #ruby-lang
micalexander has quit [Remote host closed the connection]
ironcamel has joined #ruby-lang
micalexander has joined #ruby-lang
Thanatermesis has joined #ruby-lang
Thanatermesis has joined #ruby-lang
<ljarvis> oh god importing into rds
<ljarvis> dat cpu spike
elliotec has quit [Remote host closed the connection]
micalexander has quit [Ping timeout: 265 seconds]
elliotec has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
sferik_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bzalasky has joined #ruby-lang
sferik has joined #ruby-lang
senj has joined #ruby-lang
|jemc| has joined #ruby-lang
Oak has left #ruby-lang ["Later guys... :)"]
<yorickpeterse> ljarvis: eh, I think I've overwritten Bundler's `build` task this way in the past
diegovio1 is now known as diegoviola
<yorickpeterse> Yeah:
<yorickpeterse> task :build => [:requirements, 'python:clean:bytecode']
<yorickpeterse> that still runs the old task as well, it just prepends the requirements to it
arooni-mobile has joined #ruby-lang
woollyams has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
seanlinsley has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
mforrester has quit [Ping timeout: 246 seconds]
deception has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
<kith> how long does Process.wait wait till a child returns?
chouhoulis has joined #ruby-lang
<yorickpeterse> Forever
<pipecloud> kith: Yes
<kith> thx
tylersmith has quit [Ping timeout: 265 seconds]
artm_ has quit [Quit: Connection closed for inactivity]
Markvilla has quit [Ping timeout: 248 seconds]
<kith> if two child processes try to save something into a database simultanously, will my programm blow up?
<ljarvis> yorickpeterse: ah ok interesting to know!
<yorickpeterse> kith: no
<kith> what happens then?
<yorickpeterse> Unless you're using MongoDB, then it might blow up
momomomomo has joined #ruby-lang
<kith> postgres
<yorickpeterse> If it's a SQL database then inserts are atomic, but you might end up with duplicate data
<kith> ok
<kith> thx
jackyalcine has quit [Excess Flood]
cmckni3 has joined #ruby-lang
pabloh has joined #ruby-lang
mforrester has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
jackyalcine has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
jackyalcine has quit [Excess Flood]
cnivolle_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
senj has quit [Quit: Sleep Now]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hakunin has joined #ruby-lang
hakunin_ has quit [Read error: Connection reset by peer]
mykoweb has quit [Remote host closed the connection]
senj has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
vlad_starkov has joined #ruby-lang
momomomomo has joined #ruby-lang
jtw has joined #ruby-lang
jackyalc- has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
relix has joined #ruby-lang
jsrn has quit [Ping timeout: 248 seconds]
dagobah has quit [Quit: Leaving...]
Pupeno has joined #ruby-lang
michaeldeol has quit [Ping timeout: 250 seconds]
micalexander has joined #ruby-lang
elliotec has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
jtw has quit []
vpretzel has quit [Remote host closed the connection]
vpretzel has joined #ruby-lang
<darix> kith: if you want to update things... you could add locks.
micalexander has quit [Ping timeout: 245 seconds]
pabloh has quit [Ping timeout: 246 seconds]
jsullivandigs has joined #ruby-lang
seanlinsley has quit [Quit: seanlinsley]
jtw has joined #ruby-lang
seanlinsley has joined #ruby-lang
goatish_mound is now known as rsl
machindo has quit [Quit: machindo]
tbuehlmann has quit [Quit: Leaving]
certainty has quit [Ping timeout: 248 seconds]
certainty has joined #ruby-lang
alakra has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
<ljarvis> yorickpeterse: see if/when you need to ec2->rds, be glad you're using poopsql
<ljarvis> s/see/so/
phansch has quit [Quit: Leaving]
feinbergscott has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has quit [Remote host closed the connection]
pabloh has joined #ruby-lang
havenwood has joined #ruby-lang
madb055 has joined #ruby-lang
gianlucadv has joined #ruby-lang
momomomomo has joined #ruby-lang
senj has quit [Ping timeout: 255 seconds]
ender|dktm has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
havenwood has joined #ruby-lang
ender|dktm has joined #ruby-lang
centrx has joined #ruby-lang
rh1n0 has joined #ruby-lang
elia has quit [Ping timeout: 260 seconds]
jsrn has joined #ruby-lang
ggherdov has quit [Ping timeout: 265 seconds]
skade has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
bjh13 has quit [Quit: leaving]
havenwood has joined #ruby-lang
gianlucadv has quit [Quit: Ex-Chat]
rh1n0 has quit [Client Quit]
neurodamage has quit [Ping timeout: 260 seconds]
__butch__ has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 248 seconds]
sfroehler has quit [Ping timeout: 246 seconds]
ggherdov has joined #ruby-lang
sfroehler has joined #ruby-lang
benlovell has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby-lang
jsullivandigs has quit [Read error: Connection reset by peer]
neurodamage has joined #ruby-lang
jsullivandigs has joined #ruby-lang
Sirupsen has joined #ruby-lang
madb055 has quit [Read error: Connection reset by peer]
madb055 has joined #ruby-lang
Johz has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
Sirupsen has quit [Ping timeout: 245 seconds]
momomomomo has joined #ruby-lang
havenwood has joined #ruby-lang
mforrester has quit [Ping timeout: 260 seconds]
woollyams has joined #ruby-lang
bougyman is now known as bm
bm is now known as Guest47018
Guest47018 is now known as bougyman
nichtdiebohne has joined #ruby-lang
AKASkip has joined #ruby-lang
AKASkip has quit [Max SendQ exceeded]
sferik has joined #ruby-lang
AKASkip has joined #ruby-lang
AKASkip has quit [Max SendQ exceeded]
phansch has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
hybrid_alex has joined #ruby-lang
madb055 has quit [Read error: Connection reset by peer]
madb055 has joined #ruby-lang
AKASkip has joined #ruby-lang
saarinen has joined #ruby-lang
AKASkip has quit [Max SendQ exceeded]
rue_XIW has quit [Remote host closed the connection]
AKASkip has joined #ruby-lang
AKASkip has quit [Max SendQ exceeded]
AKASkip has joined #ruby-lang
AKASkip has quit [Max SendQ exceeded]
AKASkip has joined #ruby-lang
AKASkip has quit [Max SendQ exceeded]
AKASkip has joined #ruby-lang
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jtw has quit []
RobertBirnie has joined #ruby-lang
mforrester has joined #ruby-lang
jackyalc- has quit [Excess Flood]
dbussink has quit [Ping timeout: 245 seconds]
pkrnj has joined #ruby-lang
shinnya has quit [Ping timeout: 250 seconds]
jtw has joined #ruby-lang
sepp2k has joined #ruby-lang
mnngfltg has quit [Quit: Ex-Chat]
madb055 has quit [Quit: Konversation terminated!]
madb055 has joined #ruby-lang
alekst has joined #ruby-lang
tonni has joined #ruby-lang
jtw has quit []
pabloh has quit [Quit: Saliendo]
Johz has quit [Ping timeout: 245 seconds]
saarinen has quit [Quit: saarinen]
brettweavnet has joined #ruby-lang
saarinen has joined #ruby-lang
madb055 has quit [Read error: Connection reset by peer]
jtw has joined #ruby-lang
madb055 has joined #ruby-lang
Oloryn_lt2 has joined #ruby-lang
madb055 has quit [Client Quit]
joevandyk has joined #ruby-lang
madb055 has joined #ruby-lang
hybrid_alex has left #ruby-lang [#ruby-lang]
pr0ton has joined #ruby-lang
sferik has joined #ruby-lang
sferik has quit [Client Quit]
mforrester has quit [Ping timeout: 252 seconds]
rivaler has joined #ruby-lang
workmad3 has quit [Ping timeout: 250 seconds]
arBmind has quit [Quit: Leaving.]
rivaler has quit [Ping timeout: 260 seconds]
sferik has joined #ruby-lang
sferik has quit [Client Quit]
dfr|work has quit [Remote host closed the connection]
jtw has quit []
Mon_Ouie has joined #ruby-lang
chouhoulis has quit [Ping timeout: 250 seconds]
sferik has joined #ruby-lang
madb055 has quit [Read error: Connection reset by peer]
madb055 has joined #ruby-lang
madb055 has quit [Read error: Connection reset by peer]
madb055 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
clamstar has quit [Quit: ZNC - http://znc.in]
madb055 has quit [Client Quit]
madb055 has joined #ruby-lang
platzhirsch has joined #ruby-lang
<platzhirsch> Circa 75 people are missing so we hit the 1,000 user mark in #ruby. Join #ruby!
* platzhirsch throws confetti over his head
chouhoulis has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
momomomomo has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
mistym has joined #ruby-lang
ender|dktm has quit [Quit: Lost terminal]
<yorickpeterse> ljarvis: eh?
<yorickpeterse> You mean you've been moving self hosted MySQL instances to RDS?
diegoviola has quit [Quit: WeeChat 0.4.2]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rue_XIW has joined #ruby-lang
jackyalc- has joined #ruby-lang
rivaler has joined #ruby-lang
bradland has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
jackyalc- is now known as jackyalcine
jackyalcine has quit [Changing host]
jackyalcine has joined #ruby-lang
Nisstyre-laptop is now known as nisstyre
Coincidental has joined #ruby-lang
clamstar has joined #ruby-lang
vlad_starkov has joined #ruby-lang
momomomomo has quit [Ping timeout: 250 seconds]
imcookie has joined #ruby-lang
sferik has joined #ruby-lang
rue_XIW has quit [Ping timeout: 246 seconds]
Mon_Ouie has quit [Ping timeout: 250 seconds]
arBmind has joined #ruby-lang
d4rkr4i has quit [Quit: Leaving.]
momomomomo has joined #ruby-lang
hahuang65 has joined #ruby-lang
<ljarvis> yorickpeterse: pg in my case
SteveBenner09 has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
teleological has joined #ruby-lang
<yorickpeterse> heh
<yorickpeterse> that shouldn't be that hard
<yorickpeterse> surely it's just a pg dump and a pg restore :>
teleological has left #ruby-lang [#ruby-lang]
<bougyman> depends on how many terabytes of data.
<yorickpeterse> funny enough the one thing Mongo does do without any problems is dumping and restoring 150 GB of data
<yorickpeterse> (so far at least)
pkrnj has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
<ljarvis> yorickpeterse: yeah just annoying rds doesn't support zero downtime for pg like it does for mysql
<yorickpeterse> That would depend on the type of import you're doing. If it's just a SQL dump it shouldn't require downtime
<yorickpeterse> if you're doing an actual pg_restore then I'm not sure, don't think I've ever used that
<ljarvis> yeah it's not that simple
<ljarvis> rds provides a lot more support/options for mysql (which isn't much of a surprise)
<yorickpeterse> Out of curiosity, what's the problem with a sql dump? Too big??
<yorickpeterse> minus one ?
<ljarvis> yorickpeterse: I'm doing a pg_dump and direct import into the new db, but that requires disabling writes
hahuang65 has quit [Quit: WeeChat 0.4.2]
yfeldblum has joined #ruby-lang
rh1n0 has joined #ruby-lang
<yorickpeterse> Ah
<yorickpeterse> but I take it you're running it in parallel next to the EC2 instances right?
<yorickpeterse> or is it impossible to switch Loco to read-only mode?
<jsilver_> yorickpeterse: wtf is your name? Yo Rick Peters SE (sweden?)
<jsilver_> Yorick Peterse?
<yorickpeterse> jsilver_: yorick peterse ?
<jsilver_> oh, thought so
<yorickpeterse> it's a name
<jsilver_> ah
<yorickpeterse> alas poor yorick, etc
<jsilver_> lol
<yorickpeterse> I have a t-shirt of that
<jsilver_> where from?
<yorickpeterse> .nl
<jsilver_> lol
<jsilver_> ah
<jsilver_> nice
<jsilver_> is it a form of Erick?
<yorickpeterse> a what?
<platzhirsch> When I want to monkey patch the method self.method_added on class Object, how can I wrap this into a module to monkey patch it in an unobtrusive way?
<yorickpeterse> platzhirsch: refinements
* yorickpeterse runs
<jsilver_> lmao
<ljarvis> heh, that really is the only way if you want "unobtrusive"
<ljarvis> and if it's on object, then it's kinda pointless anyway
<yorickpeterse> ljarvis: so anyway, I'm probably beating a dead horse here but what we usually do with Mongo is the following: start up new cluster with a copy of the data, mess up new database, swap apps to database, reload apps
elliotec has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
<yorickpeterse> I guess we're lucky since our user facing apps are all read-only except for some basic data stored in SQL
<yorickpeterse> and everything else we can just turn off for a day
<ljarvis> yorickpeterse: right yeah, we have hundreds of writes a minute
<yorickpeterse> dayum
<ljarvis> probably hundreds a second
<yorickpeterse> Normally you might be able to abuse a master/slave setup, but I'm not sure how that would work if you're going from EC2 to RDS
<platzhirsch> ljarvis: pointless?
<yorickpeterse> That is, set up a cluster, one slave on RDS, make sure it gets elected as the master, kill the rest
<ljarvis> platzhirsch: monkey-patching a class method on Object? yes
<ljarvis> yorickpeterse: yup that's the part mysql rds supports and pg does not
<platzhirsch> ljarvis: If you want to execute code everytime a method is added to a class during runtime, it's really not pointless
<ljarvis> platzhirsch: the fact that you want to do that is the stupid part
<platzhirsch> because in this case you need to define the singleton method method_added on Object
<ljarvis> but anyway, there's method_added hook
<yorickpeterse> platzhirsch: a better way would probably be to use set_trace_func, though I'm not sure if it has hooks for method definitions
vlad_starkov has joined #ruby-lang
<yorickpeterse> Also, I'm not sure if Object.method_added is even called in MRI
<ljarvis> it is
<yorickpeterse> seeing how it bypasses a lot of stuff in C land
<yorickpeterse> ah
<ljarvis> but set_trace_func would work too
pkrnj has joined #ruby-lang
<platzhirsch> yorickpeterse: it is
<ljarvis> if you're going to take a tank to kill a duck, you might as well take the biggest stupid tank available
<platzhirsch> for TracePoint there is :call, that would be too inefficient to use on any method anyway
nvll has quit [*.net *.split]
EvilJStoker has quit [*.net *.split]
beawesomeinstead has quit [*.net *.split]
swills has quit [*.net *.split]
soraher has quit [*.net *.split]
mattyohe has quit [*.net *.split]
justinmcp has quit [*.net *.split]
bcardarella has quit [*.net *.split]
mje113_ has quit [*.net *.split]
pipecloud has quit [*.net *.split]
_rgn has quit [*.net *.split]
savage- has quit [*.net *.split]
antonishen has quit [*.net *.split]
avdi has quit [*.net *.split]
JEG2 has quit [*.net *.split]
styped_ has quit [*.net *.split]
nhmood has quit [*.net *.split]
lupine has quit [*.net *.split]
nomadicoder has quit [*.net *.split]
mjc_ has quit [*.net *.split]
mogox has quit [*.net *.split]
konr has quit [*.net *.split]
jevs has quit [*.net *.split]
Guest85414______ has quit [*.net *.split]
shaileshg_____ has quit [*.net *.split]
lupine has joined #ruby-lang
_rgn has joined #ruby-lang
<platzhirsch> ljarvis yorickpeterse: Just in case you wonder, it's for a silly method counter https://gist.github.com/platzhirsch/0791872fabe11f194c16
swills has joined #ruby-lang
Guest85414______ has joined #ruby-lang
bcardarella has joined #ruby-lang
rh1n0 has quit [Ping timeout: 260 seconds]
nvll\ has joined #ruby-lang
nvll\ is now known as nvll
soraher has joined #ruby-lang
swills has quit [Changing host]
swills has joined #ruby-lang
nvll has quit [Changing host]
nvll has joined #ruby-lang
<centrx> EARTHQUAKE!
woollyams has quit [Ping timeout: 252 seconds]
mattyohe has joined #ruby-lang
shaileshg_____ has joined #ruby-lang
<yorickpeterse> platzhirsch: what are you trying to achieve (in the tl;dr form)?
<yorickpeterse> Ah, a profiler
justinmcp has joined #ruby-lang
nomadicoder has joined #ruby-lang
EvilJStoker has joined #ruby-lang
nhmood_ has joined #ruby-lang
mjc_ has joined #ruby-lang
Fire-Dragon-DoL has joined #ruby-lang
<yorickpeterse> either way, what you could do is
Fire-Dragon-DoL has left #ruby-lang [#ruby-lang]
jevs has joined #ruby-lang
<yorickpeterse> >> class Object; class << self; alias_method :_method_added, :method_added; def method_added(*args); _method_added(*args); end; end; end
<eval-in> yorickpeterse => :method_added (https://eval.in/100197)
<yorickpeterse> >> class Object; class << self; alias_method :_method_added, :method_added; def method_added(*args); puts 'YOYOYO'; _method_added(*args); end; end; end; def foo; end
<eval-in> yorickpeterse => YOYOYO ... (https://eval.in/100198)
<yorickpeterse> something like that
jds has quit [Ping timeout: 264 seconds]
mogox has joined #ruby-lang
konr has joined #ruby-lang
<yorickpeterse> and it's a one-liner too!
beawesomeinstead has joined #ruby-lang
<ljarvis> derp
<platzhirsch> Well thanks, but it does that already :)
styped__ has joined #ruby-lang
JEG2_ has joined #ruby-lang
mje113_ has joined #ruby-lang
shevy_ has joined #ruby-lang
<yorickpeterse> Then I think I misunderstood the question
__butch__ has joined #ruby-lang
antonishen has joined #ruby-lang
pkrnj has quit [Ping timeout: 250 seconds]
<platzhirsch> Yeah well actually it works all as expected, I just started to wonder if I can wrap the monkey patching of class Object and class Module into a Module, but I think how I could do this, but I think it's not worth tackling right now
savage-_ has joined #ruby-lang
<yorickpeterse> Those would actually be refinements
<yorickpeterse> or you'd have to abuse ActiveSupport concerns somehow
<yorickpeterse> but the end result would more or less be the same
<yorickpeterse> However, if you use refinements I'll put you on my list of people to chase down with a torch during conferences
<platzhirsch> yorickpeterse: okay now I got it, didn't know it's an actually keyword
<yorickpeterse> it's a new feature in MRI 2.0/2.1
avdi has joined #ruby-lang
<platzhirsch> yorickpeterse: Sounds fun, but why try to hang me? Isn't it better than plain monkey patching
hybrid_alex has joined #ruby-lang
<platzhirsch> well, the concept looks wobbly
<yorickpeterse> I didn't say anything about hanging
<bougyman> yorickpeterse: I take it you're unrefined.
<yorickpeterse> I said I'd chase you with a torch
nisstyre has quit [Quit: WeeChat 0.4.2]
<platzhirsch> yorickpeterse: Why do you want to knife me down?
<yorickpeterse> Problem with refinements is that you're basically trying to solve one problem by introducing a variable number of new problems that are a pita to debug
<yorickpeterse> because they may now come from different places in any given file
<platzhirsch> yorickpeterse: yeah I can imagine
jds has joined #ruby-lang
<platzhirsch> that's really not sound
<yorickpeterse> plus I'm not sure how they modify the ancestor chain, thus `super` might behave differently
vlad_starkov has quit [Remote host closed the connection]
<yorickpeterse> (not sure about that part)
<yorickpeterse> alternatively you could do something like...
vlad_starkov has joined #ruby-lang
<yorickpeterse> >> module Foo; def self.included(by); by.class_eval { alias_method :foo, :bar }; end; end;
<eval-in> yorickpeterse => :included (https://eval.in/100199)
<yorickpeterse> >> module Foo; def self.included(by); by.class_eval { alias_method :foo, :bar }; end; end; class Bar; def bar; end; include Foo; end
<eval-in> yorickpeterse => Bar (https://eval.in/100200)
<yorickpeterse> In essence that's the same though, but it doesn't rely on an MRI 2.1 feature
diegoviola has joined #ruby-lang
<cout> 2.1 is out?
<platzhirsch> cout: since Christmas man
hybrid_alex has left #ruby-lang [#ruby-lang]
<cout> huh
<platzhirsch> It was anounded to be released on 25th December 2013 and it happened as promised
<platzhirsch> what did you do on 25th Dec? :P
<cout> I don't see how you young people keep up with all these things
<platzhirsch> Too much actual time
imcookie has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<yorickpeterse> cout: we have the internet for that, you should try it some day
<ljarvis> the wat
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
bradland has quit [Quit: bradland]
Lewix has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
eoinkelly has joined #ruby-lang
yfeldblum has joined #ruby-lang
<yorickpeterse> it's this cool thing youngsters use these days to harass people online
yuko7 has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Remote host closed the connection]
hybrid_alex has joined #ruby-lang
hybrid_alex has quit [Client Quit]
hybrid_alex has joined #ruby-lang
elliotec has joined #ruby-lang
mistym has quit [Ping timeout: 250 seconds]
arooni-mobile has quit [Ping timeout: 248 seconds]
jtw has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
hahuang65 has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
arooni-mobile has joined #ruby-lang
symm- has quit [Ping timeout: 252 seconds]
io_syl has joined #ruby-lang
Guest87981 has quit [Quit: ZNC - http://znc.in]
DarkBushido has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
havenwood has quit [Ping timeout: 250 seconds]
lun_ has quit [Remote host closed the connection]
ecnalyr has quit [Ping timeout: 240 seconds]
bin7me has joined #ruby-lang
dik_dak has quit [Ping timeout: 248 seconds]
yfeldblum has joined #ruby-lang
hahuang65 has quit [Ping timeout: 260 seconds]
Coincidental has quit [Remote host closed the connection]
symm- has joined #ruby-lang
phansch has quit [Quit: Leaving]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vlad_starkov has joined #ruby-lang
mehlah has joined #ruby-lang
cnivolle has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
dik_dak has joined #ruby-lang
mistym_ has joined #ruby-lang
machindo has joined #ruby-lang
dik_dak has quit [Client Quit]
jaimef has quit [Excess Flood]
|jemc| has quit [Ping timeout: 260 seconds]
micalexander has joined #ruby-lang
machindo has quit [Remote host closed the connection]
jhass is now known as jhass|off
mistym has quit [Ping timeout: 260 seconds]
mistym_ is now known as mistym
ecnalyr has joined #ruby-lang
x0f has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
jaimef has joined #ruby-lang
x0f_ has quit [Ping timeout: 260 seconds]
toretore has quit [Quit: Leaving]
ecnalyr has joined #ruby-lang
eoinkelly has quit [Quit: leaving]
ecnalyr has quit [Ping timeout: 240 seconds]
toretore has joined #ruby-lang
rolfb has joined #ruby-lang
Squarepy has quit [Remote host closed the connection]
jtw has quit []
rolfb has quit [Quit: Linkinus - http://linkinus.com]
brettweavnet has quit [Quit: Bye]
jgpawletko has quit [Quit: jgpawletko]
andrewvos has joined #ruby-lang
andrewvos has quit [Client Quit]
jtw has joined #ruby-lang
jtw has quit [Client Quit]
brettweavnet has joined #ruby-lang
deception has quit [Quit: Goodbye]
andrewvos has joined #ruby-lang
<andrewvos> Wow
<andrewvos> My old IRC config
<andrewvos> Note to everyone here, DigitalOcean just zeroed out a shitload of my files on a production box
andrewvos has left #ruby-lang [#ruby-lang]
<momomomomo> Annnnnd that's why you should A) Use your provider's backup solution, B) Never trust your provider's backup solution 100% C) Use more than one provider/region
AKASkip has quit [Ping timeout: 265 seconds]
<centrx> You should have backed it up in Ruby
<momomomomo> ?
<momomomomo> files could be anything from db dumps to config files
<momomomomo> could back up the image, back up the db_dump on a cron job to a separate server / few servers
rivaler has quit [Quit: rivaler]
heftig has joined #ruby-lang
vlad_starkov has joined #ruby-lang
MichD is now known as michd
nathanstitt has quit [Quit: I growing sleepy]
hybrid_alex has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
smashwilson has quit [Quit: Leaving]
agrinb has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 250 seconds]
Gr3yph0x has joined #ruby-lang
jtw has joined #ruby-lang
havenwood has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
vlad_starkov has joined #ruby-lang
Gr3yph0x has quit [Ping timeout: 245 seconds]
platzhirsch has quit [Read error: Operation timed out]
rivaler has joined #ruby-lang
hahuang65 has joined #ruby-lang
momomomomo has joined #ruby-lang
andrewvos has joined #ruby-lang
andrewvos has left #ruby-lang [#ruby-lang]
arBmind has quit [Quit: Leaving.]
vlad_starkov has quit [Ping timeout: 260 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brettweavnet has quit [Quit: Bye]
marr has joined #ruby-lang
brettweavnet has joined #ruby-lang
dik_dak has joined #ruby-lang
hfp`away is now known as hfp
micalexander has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
nszceta has quit [Remote host closed the connection]
brettweavnet has quit [Ping timeout: 260 seconds]
yfeldblu_ has joined #ruby-lang
shevy_ is now known as pipecloud
pipecloud has quit [Changing host]
pipecloud has joined #ruby-lang
pipecloud has joined #ruby-lang
pipecloud has quit [Changing host]
michaeldeol has joined #ruby-lang
skade has joined #ruby-lang
micalexander has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<pipecloud> momomomomo: Hey pal!
<momomomomo> pipecloud: :D
<pipecloud> momomomomo: I'm working on building out that blog project! Your run through of gettingstarted helped a lot!
<momomomomo> ha, glad to hear it
hfp is now known as hfp`away
coca_rails has joined #ruby-lang
ikrima has joined #ruby-lang
micalexander has joined #ruby-lang
retro|cz has quit [Remote host closed the connection]
pyk has joined #ruby-lang
pipecloud is now known as spacecloud
pyk has left #ruby-lang [#ruby-lang]
micalexander has quit [Read error: Connection reset by peer]
micalexander has joined #ruby-lang
bin7me has quit [Read error: Connection reset by peer]
tonni has quit [Quit: Leaving...]
ecnalyr has joined #ruby-lang
gix has quit [Ping timeout: 247 seconds]
lun_ has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
micalexander has quit [Ping timeout: 248 seconds]
agrinb has quit [Quit: Computer has gone to sleep.]
lun_ has quit [Ping timeout: 250 seconds]
cschneid has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has joined #ruby-lang
Nisstyre-laptop is now known as nisstyre
gix has joined #ruby-lang
postmodern has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Oloryn_lt2 has quit [Read error: Connection reset by peer]
cschneid has joined #ruby-lang
vlad_starkov has joined #ruby-lang
woollyams has quit [Read error: Connection reset by peer]
woollyams has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
chouhoulis has quit [Remote host closed the connection]
jtw has quit []
woollyams has quit [Read error: Connection reset by peer]
solars has quit [Ping timeout: 248 seconds]
woollyams has joined #ruby-lang
yxhuvud has quit [Ping timeout: 247 seconds]
Lewix has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
jsrn has quit [Quit: Leaving]
micalexander has joined #ruby-lang
yxhuvud has joined #ruby-lang
ecnalyr has quit [Ping timeout: 240 seconds]
micalexander has quit [Ping timeout: 248 seconds]
__butch__ has quit [Quit: Leaving.]
woollyams has quit [Read error: Connection reset by peer]
woollyams has joined #ruby-lang
workmad3 has joined #ruby-lang
nszceta has joined #ruby-lang
mdub has joined #ruby-lang
woollyams has quit [Read error: Connection reset by peer]
dorei has quit [Ping timeout: 250 seconds]
<Paradox> any recommendations for a web mocking gem? I've used VCR before
mykoweb has joined #ruby-lang
pyk has joined #ruby-lang
<drbrain> if you liked VCR I would stick with it
mrevd has quit [Quit: Leaving.]
<drbrain> it's pretty popular
<drbrain> Paradox: ↑
<Paradox> i didnt care for it
<Paradox> particularly the casettes
<drbrain> I think fakeweb is the other popular one
nathanstitt has joined #ruby-lang
<Paradox> i've heard good things about webmock
<drbrain> yeah, I forgot about that one
vlad_starkov has joined #ruby-lang
<Paradox> right now im working on the next version of my snoo ruby gem
<Paradox> the one for interacting with reddit
<Paradox> the current version is based off code i wrote when i was still pretty new to ruby
tylersmith has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
vlad_starkov has quit [Read error: Connection reset by peer]
<zenspider> drbrain: what was the yydebug tweet about?
elliotec has quit [Remote host closed the connection]
<drbrain> zenspider: I'm trying to port the bpf grammar to ruby
mdub has quit [Ping timeout: 252 seconds]
madb055 has quit [Read error: Connection reset by peer]
madb055 has joined #ruby-lang
<zenspider> so are you looking at raw yydebug dumps, or the .output file?
samuelkadolph has joined #ruby-lang
coca_rails has quit [Remote host closed the connection]
<zenspider> something I've been meaning to publish is a script that normalizes both racc's and yacc's .output files into something diffable. let's me diff my parser vs MRI's
<zenspider> (at the grammar level only)
jtw has joined #ruby-lang
<drbrain> zenspider: at this point I'm just running tcpdump -Y … and looking manually
skade has quit [Quit: Computer has gone to sleep.]
<drbrain> so far I only have the grammar/scanner ported
<zenspider> I can imagine that's about as painful as it can get. good luck.
<drbrain> I don't yet have the rules ported
<zenspider> I use -y to double check I've got my state transistions correct, tho recently I've been hacking out ruby's parser directly, because there's too much info missing.