perdido has quit [Read error: Connection reset by peer]
zlogan has quit [Ping timeout: 265 seconds]
perdido has joined #ruby-lang
Cakey has joined #ruby-lang
nigerianceo has quit []
kurko_ has quit [Quit: Computer has gone to sleep.]
zxd has quit [Ping timeout: 252 seconds]
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ando has quit [Ping timeout: 252 seconds]
dragonkh has joined #ruby-lang
kurko_ has joined #ruby-lang
kitak has joined #ruby-lang
Cakey has quit [Ping timeout: 252 seconds]
dik_dak has quit [Quit: Leaving]
pr0ton has joined #ruby-lang
kitak_ has joined #ruby-lang
kitak has quit [Ping timeout: 245 seconds]
kitak has joined #ruby-lang
kitak_ has quit [Ping timeout: 245 seconds]
coca_rails has joined #ruby-lang
michaeldeol has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
CaptainJet has quit []
coca_rails has quit [Ping timeout: 245 seconds]
ivanskie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kurko_ has quit [Quit: Computer has gone to sleep.]
lfox has quit [Quit: ZZZzzz…]
fijimunk1i has quit [Ping timeout: 252 seconds]
zenspider has joined #ruby-lang
kitak has quit [Remote host closed the connection]
Cakey has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
breakingthings has quit []
amerine has joined #ruby-lang
faces has quit [Ping timeout: 252 seconds]
face has joined #ruby-lang
Cakey has quit [Ping timeout: 260 seconds]
momomomomo has joined #ruby-lang
fijimunkii has joined #ruby-lang
CoreData has joined #ruby-lang
<zenspider>
idgi... despite not having the hand tuned optimizations that my old lexer has... the new parser is ~90% faster
<zenspider>
there has to be something wrong... it doesn't make sense
CoreData has quit [Client Quit]
Onixs_ has joined #ruby-lang
kitak has joined #ruby-lang
VTLob has quit [Quit: VTLob]
MrZYX is now known as MrZYX|off
enebo has joined #ruby-lang
tmm1_ has joined #ruby-lang
tmm1_ has left #ruby-lang [#ruby-lang]
tylersmith has quit [Remote host closed the connection]
tmm1 has joined #ruby-lang
tylersmith has joined #ruby-lang
cnivolle has quit []
enebo has quit [Client Quit]
jonahR has joined #ruby-lang
<zenspider>
wow. no obvious regressions either... it really is just faster
<zenspider>
I can't explain it
tylersmith has quit [Ping timeout: 252 seconds]
|jemc| has quit [Ping timeout: 252 seconds]
jxie has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
nathanstitt has joined #ruby-lang
bradcliffe has joined #ruby-lang
dragonkh has quit [Quit: Bye!]
darix has quit [Ping timeout: 252 seconds]
jstemmer has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
havenwood has joined #ruby-lang
darix has joined #ruby-lang
tt1187 has quit [Ping timeout: 252 seconds]
havenwood has quit [Ping timeout: 265 seconds]
pr0ton has quit [Quit: pr0ton]
jstemmer has joined #ruby-lang
symm- has joined #ruby-lang
symm- has quit [Client Quit]
elia has quit [Quit: Computer has gone to sleep.]
coca_rails has joined #ruby-lang
<zenspider>
soo confused
Cakey has joined #ruby-lang
coca_rails has quit [Ping timeout: 245 seconds]
mistym has quit [Quit: Leaving]
marr has quit [Ping timeout: 252 seconds]
Onixs_ has quit [Quit: Onixs_]
deens has quit []
bantic has quit [Quit: bantic]
amerine has quit [Quit: Computer has gone to sleep.]
jonahR has quit [Quit: jonahR]
cored has quit [Ping timeout: 252 seconds]
bradcliffe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dik_dak has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
<r0bgleeson>
zenspider: what new parser?
<r0bgleeson>
zenspider: did you rewrite it
<zenspider>
I'm rewriting my lexer to be more managable and apparently ~80% faster
<zenspider>
tho I fully expected it to slow down by a few percent
<r0bgleeson>
ah
<r0bgleeson>
nice surprise then
havenwood has joined #ruby-lang
<zenspider>
means something is wrong
Newbie0086 has joined #ruby-lang
<r0bgleeson>
maybe you had a bottleneck in there that you unitentionally removed
symm- has joined #ruby-lang
pr0ton has joined #ruby-lang
havenwood has quit [Ping timeout: 252 seconds]
|jemc| has joined #ruby-lang
lfox has joined #ruby-lang
patriciomacadden has joined #ruby-lang
kaiza has joined #ruby-lang
lcdhoffman has joined #ruby-lang
simoz118 has joined #ruby-lang
havenwood has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
fijimunkii has quit [Ping timeout: 265 seconds]
tylersmith has joined #ruby-lang
coca_rails has joined #ruby-lang
ecnalyr has joined #ruby-lang
tylersmith has quit [Ping timeout: 252 seconds]
kaiza has quit [Read error: Connection reset by peer]
kaiza has joined #ruby-lang
prc has joined #ruby-lang
hahuang65 has quit [Ping timeout: 252 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
ItSANg___ has joined #ruby-lang
plurt has joined #ruby-lang
PantsMeh has joined #ruby-lang
FlyingLeap_ has joined #ruby-lang
crypt1d has quit [Remote host closed the connection]
pabs_ has joined #ruby-lang
doki_pen_ has joined #ruby-lang
jarib_ has joined #ruby-lang
ericwood_ has joined #ruby-lang
Kuukunen- has joined #ruby-lang
kaiza has quit [Read error: Connection reset by peer]
neurodam1ge has joined #ruby-lang
hackeron_ has joined #ruby-lang
coffeeju1 has joined #ruby-lang
ItSANgo has quit [Ping timeout: 272 seconds]
ericwood has quit [Ping timeout: 272 seconds]
abstr4ct has quit [Ping timeout: 272 seconds]
doki_pen has quit [Ping timeout: 272 seconds]
Rylee has quit [Ping timeout: 272 seconds]
canton7 has quit [Ping timeout: 272 seconds]
jarib has quit [Ping timeout: 272 seconds]
Kuukunen has quit [Ping timeout: 272 seconds]
pabs has quit [Ping timeout: 272 seconds]
hackeron has quit [Ping timeout: 272 seconds]
FiXato has quit [Ping timeout: 272 seconds]
FlyingLeap has quit [Ping timeout: 272 seconds]
coffeejunk has quit [Ping timeout: 272 seconds]
neurodamage has quit [Ping timeout: 272 seconds]
coffeeju1 is now known as coffeejunk
Rylee has joined #ruby-lang
FiXato has joined #ruby-lang
mistym has joined #ruby-lang
|jemc|_ has joined #ruby-lang
spuk_ has quit [Quit: Human beings were created by water to transport it uphill.]
|jemc| has quit [Ping timeout: 260 seconds]
DevDoo has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
JoshuaPaling has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
ecnalyr has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
mehlah has quit [Ping timeout: 260 seconds]
Barrin6 has joined #ruby-lang
ecnalyr has quit [Ping timeout: 245 seconds]
pr0ton has quit [Quit: pr0ton]
snsei has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
jstemmer has quit [Ping timeout: 252 seconds]
diegoviola has joined #ruby-lang
jstemmer has joined #ruby-lang
patriciomacadden has quit [Quit: Textual IRC Client: www.textualapp.com]
Caius has quit [Ping timeout: 260 seconds]
GarethAdams has quit [Ping timeout: 246 seconds]
Caius has joined #ruby-lang
GarethAdams has joined #ruby-lang
ivanskie has joined #ruby-lang
JoshuaPaling has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Oloryn_lt2 has joined #ruby-lang
Elico has quit [Quit: Elico]
michaeldeol has joined #ruby-lang
perdido has quit [Quit: Leaving]
hahuang65 has joined #ruby-lang
Dessan has joined #ruby-lang
hahuang65 has quit [Ping timeout: 252 seconds]
hahuang65 has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Dessan>
Hey everyone, I hate to be that new guy who just lays a question on you. However I'm stuck and just can't figure it out. I need to cause an action to happen x(divisible by ten) times out of 100. However I need it to be distributed as evenly as possible over 100 per the percentage. Any Ideas?
ledestin has quit [Ping timeout: 252 seconds]
prc has quit [Quit: Leaving.]
snsei has quit [Remote host closed the connection]
<toretore>
rand(100) > x
<toretore>
< i mean
kurko_ has joined #ruby-lang
bradcliffe has joined #ruby-lang
<Dessan>
Sat with that going for a while. Over a large number that may wash out but over an action happening say 100 a day it is fairly inaccurate. Was my first inclination though.
plurt has quit [Quit: Computer has gone to sleep.]
simi has quit [Ping timeout: 252 seconds]
mistym_ has joined #ruby-lang
mistym has quit [Ping timeout: 260 seconds]
perdido has joined #ruby-lang
fijimunkii has joined #ruby-lang
markphd has joined #ruby-lang
|jemc|_ has left #ruby-lang [#ruby-lang]
|jemc| has joined #ruby-lang
<|jemc|>
well, in order to solve your problem you'll have to pin down what you mean mathematically to say that they are "distributed as evenly as possible"
hahuang65 has quit [Ping timeout: 252 seconds]
hahuang65 has joined #ruby-lang
<|jemc|>
once you can define for yourself what about the numbers you're getting from rand aren't suitable to you it may be a very easy problem to solve
mistym has joined #ruby-lang
mistym_ has quit [Ping timeout: 260 seconds]
JoshuaPaling has joined #ruby-lang
knu has quit [Ping timeout: 252 seconds]
simoz118 has quit [Ping timeout: 252 seconds]
|jemc| has quit [Quit: WeeChat 0.4.2]
fire has joined #ruby-lang
|jemc| has joined #ruby-lang
DevDoo has quit [Remote host closed the connection]
felix125 has quit [Remote host closed the connection]
Barrin6 has quit [Quit: Leaving]
fijimunkii has quit [Ping timeout: 252 seconds]
michaeldeol has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
lfox has quit [Quit: ZZZzzz…]
Jeticus has quit []
michaeldeol has quit [Ping timeout: 272 seconds]
fijimunkii has joined #ruby-lang
apeiros has joined #ruby-lang
arBmind has joined #ruby-lang
albioner has joined #ruby-lang
kurko_ has joined #ruby-lang
h_kon has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
seanlinsley has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
AKASkip has quit [Ping timeout: 272 seconds]
postmodern has quit [Quit: Leaving]
daikan has quit [Remote host closed the connection]
saarinen has joined #ruby-lang
charliesome has joined #ruby-lang
RobertBirnie has joined #ruby-lang
saarinen has quit [Client Quit]
mechanicles has quit [Quit: Computer has gone to sleep.]
Newbie0086 has quit [Quit: 离开]
vmoravec has joined #ruby-lang
michaeldeol has joined #ruby-lang
xcesariox has joined #ruby-lang
simoz118 has joined #ruby-lang
vinhbachsy has joined #ruby-lang
xcesariox has quit [Client Quit]
xcesariox has joined #ruby-lang
dagobah has joined #ruby-lang
solars has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
apeiros has joined #ruby-lang
|jemc| has quit [Ping timeout: 252 seconds]
skade has joined #ruby-lang
AKASkip has joined #ruby-lang
fire has joined #ruby-lang
face has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
faces has quit [Ping timeout: 252 seconds]
ivanskie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wudofyr_ has joined #ruby-lang
amerine has joined #ruby-lang
wudofyr_ has quit [Remote host closed the connection]
jonahR has joined #ruby-lang
wudofyr_ has joined #ruby-lang
wudofyr_ has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ahmedelgabri has quit [Remote host closed the connection]
michd is now known as MichD
saarinen has joined #ruby-lang
daikan has joined #ruby-lang
arBmind has joined #ruby-lang
mechanicles has joined #ruby-lang
apeiros_ has joined #ruby-lang
daikan has quit [Ping timeout: 260 seconds]
matp has quit [Remote host closed the connection]
simoz118 has quit [Ping timeout: 252 seconds]
daikan has joined #ruby-lang
matp has joined #ruby-lang
mechanicles has quit [Ping timeout: 252 seconds]
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
DouweM has quit [Ping timeout: 252 seconds]
ledestin has joined #ruby-lang
saarinen has quit [Read error: Connection reset by peer]
saarinen has joined #ruby-lang
Cakey_ has quit [Ping timeout: 252 seconds]
tectonic has quit []
apeiros_ has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
michaeldeol has quit [Remote host closed the connection]
verto has joined #ruby-lang
zenspider has quit [Read error: Connection reset by peer]
tbuehlmann has joined #ruby-lang
zxd has joined #ruby-lang
simoz118 has joined #ruby-lang
fusi0n has joined #ruby-lang
mechanicles has joined #ruby-lang
cschneid has joined #ruby-lang
zenspider has joined #ruby-lang
Johz has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
atmosx has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
saarinen has quit [Quit: saarinen]
mbj has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
skade has quit [Quit: Computer has gone to sleep.]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
<yorickpeterse>
morning
Forgetful_Lion has joined #ruby-lang
<yorickpeterse>
yay DB repair done, that took oly 6,5 hours
Forgetful_Lion has quit [Read error: Connection reset by peer]
<ljarvis>
hi
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
benlovell has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mehlah has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
jxie_ has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
relix has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
dik_dak has quit [Quit: Leaving]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
ryez has quit [Quit: Page closed]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
paramg has joined #ruby-lang
<ledestin>
I want to make a module such as calling def_hook :onExpiry in class context would lead to method def onExpiry &b; @onExpiry = b || DO_NOTHING; end' and @onExpiry = DO_NOTHING called.
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
<ledestin>
I was able to do it by calling def_hook in the initialize method, but that has disadvantages
vlad_starkov has quit [Ping timeout: 264 seconds]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
<maloik>
What's the question ?
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
elia has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
judofyr has quit [Remote host closed the connection]
<crankharder>
why does line #7 in that example raise? I would think line #4 is class level and correctly sets the attribute. but it doens't. why?
<r0bgleeson>
crankharder: self.bar = 234
<crankharder>
just updated that gist to reverse my comments
<crankharder>
r0bgleeson: yea, i noticed that fixes it -- but why?
<r0bgleeson>
well, on L4 you have assigned a local variable
<r0bgleeson>
you need to prefix "self."/a receiver when calling a setter
<crankharder>
...in what context?
<r0bgleeson>
in the context of class Broken
rippa has joined #ruby-lang
<crankharder>
kinda a weird place for a variable. is that accessible inside methods?
<r0bgleeson>
you can assign a variable anywhere in ruby. the only exception being a constant inside a method, as far as i know
<r0bgleeson>
it's not accessible inside a method, no
<crankharder>
hmm, ok. wasn't expecting that
<r0bgleeson>
yeah, unfortunately "foo = 1" is ambigious, so it is not resolved to self, since you could really want a local.
<r0bgleeson>
you need an explicit receiver in that case
<r0bgleeson>
self.foo = 1 etc
<crankharder>
ya, ok.
<crankharder>
thanks :)
<r0bgleeson>
sure
perdido has joined #ruby-lang
[_aeris_] is now known as _aeris_
<cout>
"constant variable"
<r0bgleeson>
nature of ruby ;)
<cout>
still weird
<r0bgleeson>
yeah, for sure
<r0bgleeson>
my constants are always constant
<r0bgleeson>
and typically defined in class body, not a method
<cout>
C++ has the same quirk in its nomenclature
patriciomacadden has joined #ruby-lang
lfox has quit [Quit: ZZZzzz…]
michaeldeol has joined #ruby-lang
Elico has joined #ruby-lang
sea6ear has joined #ruby-lang
jds has joined #ruby-lang
<jds>
Any suggestions what might cause a backtrace of "synchronize at <internal:prelude>:10" ? I'm trying to track down a Rails deprecation warning
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has quit [Ping timeout: 260 seconds]
ando has quit [Ping timeout: 252 seconds]
huma has joined #ruby-lang
<r0bgleeson>
jds: can you gist the whole backtrace and exception, that's a single line out of a trace
<jds>
r0bgleeson: that's the only info I have. Guess I'll monkey-patch the deprecation warning method to give a full backtrace
<r0bgleeson>
is it an exception or a deprecation message?
<jds>
deprecation
<r0bgleeson>
ah
<r0bgleeson>
try to not monkey patch
patriciomacadden has joined #ruby-lang
<jds>
"DEPRECATION WARNING: Relation#calculate with finder options is deprecated. Please build a scope and then call calculate on it instead. (called from synchronize at <internal:prelude>:10)" is all I get. I'm open to non-monkey patch suggestions...
mechanicles has quit [Quit: Computer has gone to sleep.]
zxd has quit [Ping timeout: 272 seconds]
<r0bgleeson>
where do you call calculate from?
<r0bgleeson>
you want to say something like, where(product_id: [1,2,3,4]).calcucate()
<r0bgleeson>
i dont know what calculate does, but the warning is saying you're pasing conditions into calculate() itself
blowmage has quit [Ping timeout: 248 seconds]
ryanf has quit [Remote host closed the connection]
m6n has quit [Ping timeout: 248 seconds]
heftig has joined #ruby-lang
zxd has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
vlad_sta_ has quit [Write error: Broken pipe]
vlad_starkov has joined #ruby-lang
mechanicles has joined #ruby-lang
jsullivandigs has joined #ruby-lang
yellow5 has quit [Ping timeout: 248 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
daikan has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
Locke23rus has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
apeiros has quit [Ping timeout: 252 seconds]
mechanicles has quit [Read error: Connection reset by peer]
<jds>
r0bgleeson: Yep, I'm not calling calculate directly. That message crops up occasionally in our log files, but it's a pretty huge app and will be difficult to narrow down where it comes from. I can't reproduce it myself, but I see it occasionally while our app is running
mechanicles has joined #ruby-lang
jeff_r has quit [Read error: Connection reset by peer]
mechanic_ has joined #ruby-lang
jeff_r has joined #ruby-lang
tkuchiki has quit [Ping timeout: 252 seconds]
senj has joined #ruby-lang
zlogan has quit [Ping timeout: 260 seconds]
senj has quit [Client Quit]
tylersmith has joined #ruby-lang
senj has joined #ruby-lang
mechanic_ has quit [Client Quit]
mechanic_ has joined #ruby-lang
momomomomo has joined #ruby-lang
<r0bgleeson>
jds: ah. it might be good to try find out where it happens, because deprecation warnings turn into unsupported APIs in time
mikecmpbll has joined #ruby-lang
<jds>
That's why I'm trying to get a backtrace
mechanic_ has left #ruby-lang [#ruby-lang]
prc has quit [Quit: Leaving.]
mechanicles has quit [Client Quit]
mechanicles has joined #ruby-lang
<r0bgleeson>
you could do something like this, class Relation; hm = method(:calculate); define_method(:calculate) { |*args, &block| p caller; hm.bind(self).call(*args, &block) }; end
vmoravec has quit [Quit: Leaving]
<r0bgleeson>
pretty much to monkey patch, print the callers stack, and then restore old behavior by calling the oriignal
<r0bgleeson>
original
daikan has joined #ruby-lang
m6n has joined #ruby-lang
ryanf has joined #ruby-lang
blowmage has joined #ruby-lang
yellow5 has joined #ruby-lang
jeff_r has quit []
<r0bgleeson>
jds: that's all wrong, hm = instance_method(:calculate) (probably)
<r0bgleeson>
jds: the important part is you can use 'caller'
mistym has joined #ruby-lang
marcostoledo has joined #ruby-lang
vondruch has quit [Ping timeout: 264 seconds]
imperator2 has joined #ruby-lang
CaptainJet has joined #ruby-lang
cads has joined #ruby-lang
Johz has quit [Quit: Leaving]
DarkBushido has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
AKASkip has joined #ruby-lang
mechanic_ has joined #ruby-lang
mechanicles has quit [Ping timeout: 260 seconds]
_aeris_ is now known as [_aeris_]
mechanicles has joined #ruby-lang
mechanic_ has quit [Read error: Connection reset by peer]
mechanic_ has joined #ruby-lang
mechanicles has quit [Ping timeout: 260 seconds]
tbuehlmann has quit [Quit: Konversation terminated!]
fijimunkii has joined #ruby-lang
<yorickpeterse>
Hmpf, Sinatra doesn't seem to like it when I nest a `use` call in a namespace
CaptainJet has quit []
cnivolle_ has joined #ruby-lang
cnivolle has quit [Ping timeout: 264 seconds]
cnivolle_ has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby-lang
RobertBirnie has joined #ruby-lang
riffraff has joined #ruby-lang
anulman has joined #ruby-lang
michaeldeol has joined #ruby-lang
daikan has quit [Read error: Connection reset by peer]
daikan_ has joined #ruby-lang
senj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
daikan_ has quit [Remote host closed the connection]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xcesariox has joined #ruby-lang
xcesariox has quit [Max SendQ exceeded]
vlad_sta_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
ecnalyr has quit [Ping timeout: 245 seconds]
senj has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
lfox has joined #ruby-lang
judofyr has joined #ruby-lang
dagobah has quit [Remote host closed the connection]
imperator2 has quit [Ping timeout: 252 seconds]
joshcooper has joined #ruby-lang
joshcooper has left #ruby-lang [#ruby-lang]
badeball has quit [Ping timeout: 252 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
badeball has joined #ruby-lang
fijimunkii has quit [Ping timeout: 252 seconds]
Locke23rus has quit [Remote host closed the connection]
VTLob has joined #ruby-lang
elia has quit [Read error: Operation timed out]
judofyr has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
patriciomacadden has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 265 seconds]
judofyr has quit [Read error: Connection reset by peer]
judofyr has quit [Read error: Connection reset by peer]
mechanic_ has quit []
judofyr has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
badeball_ has joined #ruby-lang
havenwood has joined #ruby-lang
skade has joined #ruby-lang
mrevd has quit [Read error: Connection reset by peer]
badeball has quit [Ping timeout: 272 seconds]
benlovell has quit [Ping timeout: 252 seconds]
judofyr has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby-lang
diegoviola has joined #ruby-lang
judofyr has joined #ruby-lang
mrevd has joined #ruby-lang
mrevd has quit [Changing host]
mrevd has joined #ruby-lang
Oloryn_lt2 has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Read error: Operation timed out]
havenwood has quit [Ping timeout: 246 seconds]
<crankharder>
hrm, anyone know a way to stub/expect that super is called? using test/unit & mocha
mrevd has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
judofyr has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
mrevd has joined #ruby-lang
heftig has quit [Quit: Quitting]
MrZYX|off is now known as MrZYX
skade has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby-lang
patriciomacadden has joined #ruby-lang
hahuang65 has quit [Ping timeout: 252 seconds]
mrevd has quit [Read error: Connection reset by peer]
mrevd has joined #ruby-lang
badeball_ is now known as badeball
mrevd has quit [Read error: Connection reset by peer]
patriciomacadden has quit [Ping timeout: 252 seconds]
mrevd has joined #ruby-lang
saarinen has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
mrevd has quit [Read error: Connection reset by peer]
saarinen has quit [Client Quit]
mrevd has joined #ruby-lang
saarinen has joined #ruby-lang
anulman has joined #ruby-lang
mrevd has quit [Read error: Connection reset by peer]
mrevd has joined #ruby-lang
patriciomacadden has joined #ruby-lang
saarinen has quit [Client Quit]
judofyr has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
anulman1 has joined #ruby-lang
apeiros has joined #ruby-lang
anulman has quit [Read error: Connection reset by peer]
saarinen has joined #ruby-lang
__butch__ has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
__butch__ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
__butch__ has joined #ruby-lang
anulman1 has quit [Ping timeout: 245 seconds]
<maloik>
I'm creating an app where the show view of an object contains a payment form and is publicly accessible, but I suppose the regular id's are better obfuscated... is uuid the best way to handle this ?
judofyr has quit [Remote host closed the connection]
<yorickpeterse>
just use an UUID already, if it's not a primary key you'll be fine
<darix>
apeiros: yes
<yorickpeterse>
unless you have omg-scale data the extra storage cost is small
<yorickpeterse>
(e.g. in our case it would only be an extra 500MB)
<apeiros>
yeah, storage shouldn't be an issue
snsei has joined #ruby-lang
<maloik>
well if I were to do that I was going to use it as a primary key... if not I'll go the slug route
<maloik>
not that there's a big difference but still
<apeiros>
even with 1 million records, it'd only cost around 16MB of storage (the uuids alone)
<yorickpeterse>
what's wrong with just HerpDerp.find_by_uuid
<yorickpeterse>
apeiros: 1M is fuck all
<yorickpeterse>
that reminds me of those people that "benchmark" Mongo by inserting a massive 1 million documents
snsei_ has quit [Ping timeout: 272 seconds]
<yorickpeterse>
wohoo spooky, 1M documents
* yorickpeterse
shakes cane
marcostoledo has quit [Quit: Leaving...]
vlad_sta_ has joined #ruby-lang
<darix>
maloik: mysql has a uuid function too btw
dragonkh has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
snsei_ has joined #ruby-lang
robmiller has quit [Quit: robmiller]
sepp2k has joined #ruby-lang
zxd has quit [Ping timeout: 265 seconds]
simoz118 has joined #ruby-lang
snsei has quit [Ping timeout: 252 seconds]
tt1187 has joined #ruby-lang
judofyr has quit [Read error: No route to host]
judofyr has joined #ruby-lang
fijimunkii has joined #ruby-lang
snsei_ has quit [Ping timeout: 252 seconds]
snsei has joined #ruby-lang
ohsix has quit [Quit: leaving]
ohsix has joined #ruby-lang
daikan has joined #ruby-lang
judofyr has quit [Ping timeout: 246 seconds]
fusi0n has joined #ruby-lang
Johz has joined #ruby-lang
<yorickpeterse>
nice if you can process about 100.000 reviews per hour
<yorickpeterse>
using 10 servers
<yorickpeterse>
I suppose my concurrency work is paying off
daikan has quit [Ping timeout: 252 seconds]
Pupeno_w has quit [Read error: Operation timed out]
judofyr has joined #ruby-lang
<yorickpeterse>
and this is on MRI, pretty sure Rbx can do more
judofyr has quit [Ping timeout: 246 seconds]
WifiBrain has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
<whitequark>
I wonder if it can
__butch__ has joined #ruby-lang
<yorickpeterse>
I have already benchmarked it locally and it can
<yorickpeterse>
(after I took out the bottlenecks such as stupid socket usage by yours truly)
patricio_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snsei has quit [Ping timeout: 245 seconds]
lfox has quit [Quit: ZZZzzz…]
vlad_sta_ has quit [Remote host closed the connection]
<yorickpeterse>
granted the benchmark was rather crude
<yorickpeterse>
once this batch is done I'll just flip the switch and see how it holds up for a few days
vlad_starkov has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
__butch__ has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
<yorickpeterse>
which basically comes down to 1) echo rbx-2.2 > .ruby-version 2) go to jenkins, hit release and choose "rbx-2.2" 3) wait 2-3 minutes for servers to reboot
<darix>
and other servers should authenticate using your key?
<ljarvis>
darix: exactly
<darix>
Host <jumphost>
<darix>
ForwardAgent yes
<darix>
in .ssh/config
<darix>
or
<darix>
ssh -A
<darix>
hth
jerrytgarcia has quit [Quit: WeeChat 0.4.2]
<ljarvis>
hm
<darix>
yes?
serroft has quit [Quit: Leaving.]
anulman has joined #ruby-lang
jonahR has joined #ruby-lang
BlitzBolt has quit []
vlad_starkov has joined #ruby-lang
anulman has quit [Ping timeout: 260 seconds]
io_syl has joined #ruby-lang
seanlinsley has quit [Quit: …]
mucker has quit [Remote host closed the connection]
mucker has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
jonahR has quit [Quit: jonahR]
seanlinsley has joined #ruby-lang
mucker has quit [Ping timeout: 245 seconds]
yalue has quit [Quit: Leaving]
serroft has joined #ruby-lang
Guedes has quit [Disconnected by services]
Guedes_ has joined #ruby-lang
mehlah has joined #ruby-lang
badeball has quit [Read error: Operation timed out]
lfox has joined #ruby-lang
riffraff has quit [Quit: Leaving]
dingus_khan has joined #ruby-lang
daikan has joined #ruby-lang
daikan has quit [Ping timeout: 265 seconds]
finnnnnnnnnnn_ has joined #ruby-lang
pr0ton has joined #ruby-lang
<finnnnnnnnnnn_>
hey, I'm having some issues migrating from RVM to rbenv. Bundler seems to be looking in the wrong place for gems. Anyone able to help?
<whitequark>
and if you don't autocreate the config file it's always fine
jovon has quit [Quit: Leaving]
<apeiros>
that said, I love all those shitty apps (micro$oft, I'm looking at you) which think it's awesome to put config files and stuff into ~/Documents in OSX.
<apeiros>
srsly, fuck those companies.
<yorickpeterse>
whitequark: XDG isn't strictly for just desktops
<yorickpeterse>
at least not anymore
<yorickpeterse>
somebody should write Gunix (Unix in Go) with just one directory: /
anulman has joined #ruby-lang
Johz has quit [Quit: Leaving]
<yorickpeterse>
the file system is statically typed so you can't have any file corruptions
CaptainJet has joined #ruby-lang
CaptainJet has quit [Client Quit]
dingus_khan has quit [Remote host closed the connection]
CaptainJet has joined #ruby-lang
anulman1 has joined #ruby-lang
anulman has quit [Read error: Connection reset by peer]
<finnnnnnnnnnn_>
sorry, I thought. I'd fixed it but no luck. Still unable run gems :(
<finnnnnnnnnnn_>
I run bundle and get a happy result - Your bundle is complete! but I try to 'foreman start' and get a Could not find 'foreman' (>= 0) among 10 total gem(s)
|jemc| has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.2]
<whitequark>
yorickpeterse: wat/
<whitequark>
*?
<yorickpeterse>
that was a joke
<whitequark>
go's type system is laughable
<yorickpeterse>
"Unix in Go" - should've been enough
<whitequark>
the only thing it prevents you from having is reusable code
<finnnnnnnnnnn_>
screw it, I give up. thanks
finnnnnnnnnnn_ has left #ruby-lang [#ruby-lang]
anulman1 has quit [Quit: Leaving.]
anulman has joined #ruby-lang
<yorickpeterse>
I was about to say "try chruby"
patriciomacadden has joined #ruby-lang
dingus_khan has joined #ruby-lang
seanlinsley has quit [Quit: …]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]