mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
apeiros_ has joined #ruby-lang
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
mistym has quit [Remote host closed the connection]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
rue has quit [Remote host closed the connection]
ViPi has joined #ruby-lang
ViPi has quit [Max SendQ exceeded]
rue has joined #ruby-lang
ViPi has joined #ruby-lang
apeiros_ has quit [Ping timeout: 272 seconds]
solars has quit [Ping timeout: 276 seconds]
justinram has joined #ruby-lang
macmartine has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
cableray has quit [Quit: cableray]
mercwithamouth has quit [Ping timeout: 264 seconds]
cableray has joined #ruby-lang
tonni has joined #ruby-lang
ericmuyser|air has joined #ruby-lang
rdw200169 has joined #ruby-lang
tonni has quit [Ping timeout: 240 seconds]
Rakko has quit [Quit: Bye]
apeiros_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
singpolyma has quit [Ping timeout: 264 seconds]
singpolyma has joined #ruby-lang
apeiros_ has quit [Ping timeout: 272 seconds]
tonni has joined #ruby-lang
rdw200169 has quit [Read error: No route to host]
vlad_starkov has quit [Remote host closed the connection]
gaveen has quit [Remote host closed the connection]
rdw200169 has joined #ruby-lang
karasawa has quit [Ping timeout: 252 seconds]
gsav has quit [Read error: No route to host]
gsav has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
blazes816 has quit [Quit: blazes816]
apeiros_ has joined #ruby-lang
waffleau has joined #ruby-lang
thufir_ has left #ruby-lang [#ruby-lang]
leopard_me has joined #ruby-lang
bzalasky has joined #ruby-lang
apeiros_ has quit [Ping timeout: 252 seconds]
karasawa has joined #ruby-lang
retro|cz has joined #ruby-lang
Nss has joined #ruby-lang
saward has joined #ruby-lang
waffleau has quit [Quit: waffleau]
<saward>
I'm having an issue (1.9.3). I have some code that should run fast. Sometimes it goes MUCH slower for a brief period when my system is under load. But here's the weird thing - the longer my app has been running (or rather, the more it has loaded into memory), the more frequently the code runs slow. The problem is, the code that's slow doesn't make use of any large objects.
<saward>
Does the existence of large hashes elsewhere slow down code unrelated to (e.g.) those hashes?
richardburton has joined #ruby-lang
xcombelle has joined #ruby-lang
waffleau_ has joined #ruby-lang
Jessykinz has quit []
richardburton has quit [Quit: Leaving.]
richardburton has joined #ruby-lang
tbuehlmann has joined #ruby-lang
lele has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
xalei has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
MaddinXx has joined #ruby-lang
apeiros_ has quit [Ping timeout: 255 seconds]
adambeynon has joined #ruby-lang
solars has joined #ruby-lang
vlad_starkov has joined #ruby-lang
waffleau_ has quit [Quit: waffleau_]
MaddinXx has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby-lang
saward has quit [Quit: saward]
ericmuyser|air has quit [Ping timeout: 264 seconds]
nkr has joined #ruby-lang
workmad3 has joined #ruby-lang
apeiros_ has joined #ruby-lang
_Sketch_ has quit [Read error: Connection reset by peer]
_Sketch_ has joined #ruby-lang
kiddorails has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 276 seconds]
shtirlic has joined #ruby-lang
serhart has quit [Quit: Leaving.]
cableray has quit [Quit: cableray]
brianpWins has quit [Quit: brianpWins]
emocakes has joined #ruby-lang
karasawa has quit [Ping timeout: 264 seconds]
karasawa has joined #ruby-lang
naquad has quit [Ping timeout: 260 seconds]
naquad has joined #ruby-lang
gsav has joined #ruby-lang
assurbanipal has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
richardburton has quit [Quit: Leaving.]
richardburton has joined #ruby-lang
neocoin has joined #ruby-lang
robotmay has joined #ruby-lang
richardburton has quit [Quit: Leaving.]
m3nd3s has joined #ruby-lang
justinram has quit [Remote host closed the connection]
madish has joined #ruby-lang
Fretta has quit [Quit: Fretta]
Seleucus has joined #ruby-lang
MaddinXx has joined #ruby-lang
dwu1 has quit [Quit: Leaving.]
shtirlic has quit [Remote host closed the connection]
sn0wb1rd has quit [Quit: sn0wb1rd]
shtirlic has joined #ruby-lang
swav has quit [Remote host closed the connection]
shtirlic has quit [Remote host closed the connection]
robotmay has quit [Read error: Connection reset by peer]
robotmay has joined #ruby-lang
assurbanipal has quit [Quit: Konversation terminated!]
Nss has quit [Read error: Connection reset by peer]
gsav has quit [Ping timeout: 252 seconds]
kiddorails has quit [Ping timeout: 252 seconds]
gaveen has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
runeb has joined #ruby-lang
jxie has joined #ruby-lang
asaaki|home has joined #ruby-lang
karasawa has quit [Ping timeout: 248 seconds]
waffleau_ has quit [Quit: waffleau_]
karasawa has joined #ruby-lang
vlad_starkov has joined #ruby-lang
runeb has quit [Remote host closed the connection]
rdw200169 has quit [Ping timeout: 272 seconds]
emocakes has quit [Quit: emocakes]
asaaki|home has quit [Remote host closed the connection]
adambeynon has joined #ruby-lang
rdw200169 has joined #ruby-lang
soypirate has joined #ruby-lang
ViPi has joined #ruby-lang
hackeron has quit [Ping timeout: 246 seconds]
rdw200169 has quit [Ping timeout: 276 seconds]
runeb has joined #ruby-lang
rdw200169 has joined #ruby-lang
kuja has quit [Ping timeout: 252 seconds]
waffleau has joined #ruby-lang
b1rkh0ff has joined #ruby-lang
kuja has joined #ruby-lang
shtirlic has joined #ruby-lang
serhart has quit [Ping timeout: 256 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
b1rkh0ff has quit [Quit: Leaving]
b1rkh0ff has joined #ruby-lang
shtirlic has quit [Ping timeout: 260 seconds]
Rarrikins has joined #ruby-lang
kiddorails has quit [Ping timeout: 276 seconds]
adambeynon has quit [Quit: Computer has gone to sleep.]
orluke has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 272 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
stonerfish has joined #ruby-lang
shtirlic has joined #ruby-lang
robbyoconnor has joined #ruby-lang
srbaker has joined #ruby-lang
waffleau has quit [Quit: waffleau]
runeb has quit [Remote host closed the connection]
orluke has left #ruby-lang [#ruby-lang]
andrewhl has joined #ruby-lang
apeiros has joined #ruby-lang
apeiros_ has quit [Read error: Operation timed out]
kiddorails has joined #ruby-lang
rolfb has joined #ruby-lang
randym has quit [Remote host closed the connection]
grandy has quit [Remote host closed the connection]
amdprophet has quit [Remote host closed the connection]
randym has joined #ruby-lang
serhart has joined #ruby-lang
rdw200169 has quit [Ping timeout: 240 seconds]
grandy has joined #ruby-lang
amdprophet has joined #ruby-lang
tomzx has joined #ruby-lang
workmad3 has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
rolfb has quit [Quit: Leaving...]
kiddorails has quit [Ping timeout: 276 seconds]
Fretta has joined #ruby-lang
kiddorails has joined #ruby-lang
wyhaines has joined #ruby-lang
krz has joined #ruby-lang
gustavnils has joined #ruby-lang
runeb has joined #ruby-lang
gustavnils has quit [Client Quit]
kiddorails has quit [Ping timeout: 276 seconds]
richardburton has joined #ruby-lang
xsarin has quit [Quit: xsarin]
tbuehlmann has quit [Remote host closed the connection]
unlikely_monkey has joined #ruby-lang
s1n4 has joined #ruby-lang
kogent has quit [Quit: kogent]
srbaker has quit [Quit: Computer has gone to sleep.]
karasawa has quit [Ping timeout: 264 seconds]
kiddorails has joined #ruby-lang
karasawa has joined #ruby-lang
kiddorails has quit [Ping timeout: 246 seconds]
rdw200169 has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 272 seconds]
gix has quit [Ping timeout: 248 seconds]
ebouchut has quit [Quit: This computer has gone to sleep]
wyhaines_ has joined #ruby-lang
wyhaines has quit [Read error: Connection reset by peer]
srbaker has joined #ruby-lang
ebouchut has joined #ruby-lang
runeb has quit [Remote host closed the connection]
kiddorails has joined #ruby-lang
stevechiagozie has joined #ruby-lang
scottschecter has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has joined #ruby-lang
justinram has joined #ruby-lang
cableray has joined #ruby-lang
solars has quit [Ping timeout: 244 seconds]
slaytanic has quit [Quit: mmmb0p.]
swav has joined #ruby-lang
Rarrikins has quit [Ping timeout: 264 seconds]
Rarrikins has joined #ruby-lang
Rarrikins_r has joined #ruby-lang
Mellett68 has joined #ruby-lang
blazes816 has joined #ruby-lang
maxmanders has joined #ruby-lang
cableray has quit [Quit: cableray]
justinram has quit [Remote host closed the connection]
Rarrikins has quit [Ping timeout: 276 seconds]
davidbalber|away is now known as davidbalbert
slaytanic has joined #ruby-lang
adambeynon has joined #ruby-lang
scottschecter has joined #ruby-lang
hackeron has joined #ruby-lang
mytrile has joined #ruby-lang
runeb has joined #ruby-lang
emocakes has joined #ruby-lang
dankest has joined #ruby-lang
workmad3 has joined #ruby-lang
__DOGBERT__ has joined #ruby-lang
__DOGBERT__ has quit [Client Quit]
srbaker has quit [Quit: Computer has gone to sleep.]
rolfb has joined #ruby-lang
ebouchut has quit [Quit: This computer has gone to sleep]
runeb has quit [Ping timeout: 264 seconds]
justinram has joined #ruby-lang
justinram has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
cjs226 has quit [Ping timeout: 276 seconds]
b1rkh0ff has quit [Ping timeout: 246 seconds]
guikos has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
ebouchut has joined #ruby-lang
rolfb has quit [Ping timeout: 244 seconds]
cjs226 has joined #ruby-lang
srbaker has joined #ruby-lang
havenn has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
b1rkh0ff has joined #ruby-lang
justinram has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
guikos has quit [Quit: guikos]
guikos has joined #ruby-lang
guikos has quit [Client Quit]
guikos has joined #ruby-lang
dwu1 has joined #ruby-lang
bzalasky has joined #ruby-lang
mytrile has joined #ruby-lang
MaddinXx has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
guikos has quit [Client Quit]
guikos has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
guikos has quit [Remote host closed the connection]
guikos has joined #ruby-lang
Rarrikins_r has quit [Ping timeout: 255 seconds]
bzalasky has joined #ruby-lang
Rarrikins has joined #ruby-lang
guikos has quit [Read error: No route to host]
wyhaines has joined #ruby-lang
dwu2 has joined #ruby-lang
Fretta_ has joined #ruby-lang
madish_ has joined #ruby-lang
weeb1e_ has joined #ruby-lang
unlikel__ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
srbaker has quit [Quit: Computer has gone to sleep.]
Rarrikins has quit [Ping timeout: 240 seconds]
tomzx has quit [Quit: tomzx]
chris2_ has joined #ruby-lang
leopard__ has joined #ruby-lang
jbsan has quit [Ping timeout: 272 seconds]
Rarrikins has joined #ruby-lang
[dmp]_ has joined #ruby-lang
[dmp]_ has quit [Changing host]
[dmp]_ has joined #ruby-lang
hachiya_ has joined #ruby-lang
jbsan has joined #ruby-lang
benteaa_ has joined #ruby-lang
rebelcan_ has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
guikos has joined #ruby-lang
tris- has joined #ruby-lang
Rarrikins_g has joined #ruby-lang
Rarrikins has quit [Ping timeout: 248 seconds]
dwu1 has quit [*.net *.split]
wyhaines_ has quit [*.net *.split]
b1rkh0ff has quit [*.net *.split]
Fretta has quit [*.net *.split]
unlikely_monkey has quit [*.net *.split]
leopard_me has quit [*.net *.split]
madish has quit [*.net *.split]
weeb1e has quit [*.net *.split]
eban has quit [*.net *.split]
tris has quit [*.net *.split]
chris2 has quit [*.net *.split]
hachiya has quit [*.net *.split]
rebelcan has quit [*.net *.split]
[dmp] has quit [*.net *.split]
benteaa has quit [*.net *.split]
schroedinbug has quit [*.net *.split]
fuzzy8balls has quit [*.net *.split]
yibe_ has quit [*.net *.split]
Fretta_ is now known as Fretta
chris2_ is now known as chris2
tris- is now known as tris
yfeldblum has quit [Ping timeout: 264 seconds]
Rarrikins_g_u has joined #ruby-lang
karasawa has quit [Ping timeout: 276 seconds]
Rarrikins_g has quit [Ping timeout: 264 seconds]
krz has quit [Quit: krz]
runeb has joined #ruby-lang
b1rkh0ff has joined #ruby-lang
macmartine has joined #ruby-lang
schroedinbug has joined #ruby-lang
tomzx has joined #ruby-lang
ebouchut has quit [Quit: This computer has gone to sleep]
unlikely_monkey has joined #ruby-lang
yibe_ has joined #ruby-lang
eban has joined #ruby-lang
unlikel__ has quit [Ping timeout: 240 seconds]
<maxmanders>
I have a case block, and I seem to have trouble referencing a variable outside of that case block; how do I pass in or access a variable outside of a case block, within it?
justinram has quit [Remote host closed the connection]
<apeiros>
maxmanders: case/when does not introduce a new scope
<apeiros>
so either that's not the only thing you have or something else is missing
fuzzy8balls has joined #ruby-lang
<maxmanders>
apeiros: Hmm okay thanks, something else is producing symptoms that suggest that… will keep digging ;-)
rolfb has joined #ruby-lang
workmad3 has quit [Ping timeout: 255 seconds]
runeb has quit [Ping timeout: 264 seconds]
<maxmanders>
apeiros: https://gist.github.com/4525773 - I'll put it down to tiredness, but current_account is set and only has a value in the first 'when'.
<maxmanders>
apeiros: if I'm setting current_account outside of the case, and it has the same scope, then shouldn't it be set in the first 'when', and that new value retrieved in subsequent 'when' blocks...
<maxmanders>
apeiros: In my output, current_account only has a value in the first 'when' block, and is empty elsewhere, as if my setting current_account = account is only scoped within the first 'when' block.
* maxmanders
is still learning Ruby!
yfeldblum has joined #ruby-lang
<manveru>
maxmanders: only one when block is executed
rolfb has quit [Ping timeout: 255 seconds]
<maxmanders>
manveru: sorry, I don't follow...
<maxmanders>
*facepalm* damn it!
<manveru>
maxmanders: ruby breaks after a when block
<maxmanders>
Course - really not on the ball today!
<manveru>
:)
guikos has quit [Ping timeout: 272 seconds]
<manveru>
btw
<manveru>
p account_name: account_name
<manveru>
easier to write and read
<maxmanders>
manveru: thanks
<manveru>
and doesn't blow up every now and then
* apeiros
uses that too (p hash)
shtirlic has quit [Remote host closed the connection]
<maxmanders>
I'm basically writing something to parse a file, the match in the first 'when' needs to be stored somewhere until the next line that matches...
<maxmanders>
I've been using ap (awesome_print) for hashes - but I'll use p too!
<maxmanders>
I think I need a stack to hold that value so I can pop it off when I hit another match.
<manveru>
yeah
<manveru>
hm
<maxmanders>
Thanks folks - much appreciated!
<manveru>
anw, there are easier ways to write this
wallerdev has joined #ruby-lang
<maxmanders>
Do tell… I'm coming to Ruby from a PHP background (I've seen the light ;-) ) -- still familiarising myself with 'the ruby way' and the best methods to use!
<maxmanders>
My algorithm is iterate over line; if it's a line like [something], then pop that on a stack for use until the next [something else]… then every other line, split on'=' and assign left to key and right to value in a hash
<manveru>
parsing ini?
<maxmanders>
each has will have the value in [something] as a key to another hash
sepp2k1 has joined #ruby-lang
<maxmanders>
manveru: Yeah - I tried ParseIni and IniParser; which both borked on my ini file… the file looks fine; it the file used by the AWS CLI python tool, which seems to be basic INI format.
sepp2k has quit [Ping timeout: 264 seconds]
justinram has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
<maxmanders>
manveru: much appreciated, much cleaner. And just spotted my schoolboy error of missing a 'section' key ;-)
karasawa has joined #ruby-lang
<maxmanders>
Really love the hash initialisation on line 4… which I'd switch to Ruby a long time ago!
<manveru>
i came from php in 2005 :)
andrewhl has quit [Remote host closed the connection]
<maxmanders>
Haha - I'll always have a soft spot for PHP; but I like the 'make one thing that solves the problem well' mentality, rather than building N frameworks which solve the same old problems. And the community is soooo helpful!
<manveru>
actually...
<manveru>
if you want every key, it would be even easier :)
<maxmanders>
?
karasawa has quit [Ping timeout: 260 seconds]
justinram has quit [Remote host closed the connection]