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:
<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
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.
<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
<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...
<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.