Es0teric has quit [Quit: Computer has gone to sleep.]
<dminuoso>
indistylo: Read the README for unicorn-worker-killer
djbkd_ has joined #ruby
<indistylo>
dminuoso: already readed that but no clue how to calculate the memory threshold, I mean that document does not tell us the way how to set the memory threshold
shmuli has joined #ruby
shmuli has quit [Read error: Connection reset by peer]
shmuli has joined #ruby
lightheaded has quit [Remote host closed the connection]
<dminuoso>
indistylo: It says that you set the max RSS (google for Resident Set Size)
SteenJobs has quit [Quit: SteenJobs]
weems has quit [Read error: Connection reset by peer]
shmuli has quit [Ping timeout: 265 seconds]
SteenJobs has joined #ruby
Immune has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shock_one has joined #ruby
<dminuoso>
indistylo: It's essentially just the amount of physical memory a processes uses at a given moment.
<dminuoso>
indistylo: (virtual memory is not really interesting, since that may be swapped out or even lazily mapped)
k3rn31 has quit [Quit: Computer has gone to sleep.]
ta_ has joined #ruby
aupadhye has joined #ruby
nando293921 has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
alexherbo2 has quit [Quit: WeeChat 1.5]
alexherbo2 has joined #ruby
ta_ has quit [Ping timeout: 255 seconds]
vdamewood has joined #ruby
bkxd has joined #ruby
nankyokusei has joined #ruby
nando293921 has joined #ruby
Macaveli has joined #ruby
lightheaded has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
bkxd has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
pandaant has joined #ruby
bigkevmcd has joined #ruby
djbkd_ has quit []
yfeldblum has quit [Ping timeout: 250 seconds]
dminuoso has quit [Ping timeout: 244 seconds]
SteenJobs has quit [Quit: peaceee]
firstdayonthejob has joined #ruby
dhk has joined #ruby
tildes has joined #ruby
greister__ has joined #ruby
dminuoso has joined #ruby
pawnbox has quit [Remote host closed the connection]
djbkd_ has joined #ruby
sumobob has joined #ruby
last_staff has joined #ruby
pawnbox has joined #ruby
quazimodo has quit [Ping timeout: 244 seconds]
Rodya_ has quit [Remote host closed the connection]
benlieb has joined #ruby
Rodya_ has joined #ruby
quazimodo has joined #ruby
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 244 seconds]
qba73 has joined #ruby
quazimod1 has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
greister_ has quit [Read error: Connection reset by peer]
quazimodo has quit [Ping timeout: 255 seconds]
wugy has joined #ruby
djbkd_ has quit [Remote host closed the connection]
greister_ has joined #ruby
qba73 has quit [Read error: No route to host]
benlieb has quit [Quit: benlieb]
loopy has quit [Ping timeout: 244 seconds]
FastJack_ has quit [Quit: leaving]
quazimod1 has quit [Ping timeout: 276 seconds]
FastJack has joined #ruby
ur5us has quit [Remote host closed the connection]
quazimodo has joined #ruby
ur5us has joined #ruby
aibot has quit [Ping timeout: 252 seconds]
mrwn has quit [Ping timeout: 244 seconds]
ur5us has quit [Ping timeout: 244 seconds]
Snickers has joined #ruby
last_staff has quit [Quit: last_staff]
firstdayonthejob has quit [Ping timeout: 244 seconds]
greister__ has quit [Quit: Page closed]
dminuoso has quit [Remote host closed the connection]
dhk has quit [Quit: Leaving]
submitnine has joined #ruby
Emmanuel_Chanel has joined #ruby
gingray has joined #ruby
kanobt61 has quit [Read error: Connection reset by peer]
kanobt61 has joined #ruby
aibot has joined #ruby
duncannz has joined #ruby
sumobob has quit [Ping timeout: 250 seconds]
shock_one has quit [Remote host closed the connection]
jgt has joined #ruby
shock_one has joined #ruby
Sammichmaker has joined #ruby
Sammichmaker has quit [Changing host]
Sammichmaker has joined #ruby
last_staff has joined #ruby
dminuoso has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
quazimodo has joined #ruby
biberu has joined #ruby
anisha has joined #ruby
shock_one has quit [Ping timeout: 240 seconds]
pierrehoudyer has joined #ruby
pierreho_ has joined #ruby
pierrehoudyer has quit [Read error: Connection reset by peer]
rsampaio_ has quit [Ping timeout: 260 seconds]
conta has joined #ruby
patteh has joined #ruby
patteh__ has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
pierrehoudyer has joined #ruby
pierreho_ has quit [Read error: Connection reset by peer]
rsampaio has joined #ruby
mark_66 has joined #ruby
ur5us has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ur5us has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
antgel has joined #ruby
bsrd has joined #ruby
bsrd has quit [Client Quit]
bsrd has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
d0nn1e has quit [Ping timeout: 252 seconds]
d0nn1e has joined #ruby
dedavai has joined #ruby
ur5us has quit [Ping timeout: 265 seconds]
<dedavai>
hi everyone, is this a good place to ask for help with Ruby development?
djbkd_ has joined #ruby
heftig_ is now known as heftig
benlieb has joined #ruby
DoubleMalt has joined #ruby
tummy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackgoat has quit [Ping timeout: 250 seconds]
shock_one has joined #ruby
claudiuinberlin has joined #ruby
shmuli has joined #ruby
shmuli has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
jgt has quit [Ping timeout: 250 seconds]
Ishido has quit [Remote host closed the connection]
haxrbyte has quit [Quit: Leaving...]
shmuli_ has quit [Remote host closed the connection]
mieko has joined #ruby
<dedavai>
is there a way to rescue from all errors that inherit from a particular error class? I have a class that defines a bunch of errors, all of them inheriting from the `SomeClass::Error` parent class. Instead of catching errors individually, is there a way to catch the entire class of these errors?
Ishido has joined #ruby
<canton7>
sure, rescue SomeClass::Error
Beams has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
flying has joined #ruby
Snowy has joined #ruby
dedava has joined #ruby
<dedava>
@canton7 thank you, that's the first thing I'd tried, but can't seem to catch them
einarj has joined #ruby
dedavai has quit [Ping timeout: 264 seconds]
dedava is now known as dedavai
<gregf_>
dedavai: what have you tried? mind pasting some code?
patteh has quit [Read error: Connection reset by peer]
raeoks has joined #ruby
einarj has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 264 seconds]
da3mon has joined #ruby
<indistylo>
I am using unicorn-worker-killer rubygem to fix the memory leakage problem, I am bombarding puppet-master-server with 30puppet-agent-request for catalogue, which consumes a memory, new workers should be spawned as memory usage goes high, which means new process ID should be created, In my case this is not happening, Using puppet 2.7.23, Ruby 1.9.3, Unicorn 5.1.0, unicorn-worker-killer0.4.4
<indistylo>
running "puppetd --debug" as process to request for catalogue from puppetmaster
<indistylo>
kindly let me know please the way to solve through this problem, tried several memory threshold limit as unicorn-worker-killer ReadMe suggests, nothing working as of now.
mikecmpbll has joined #ruby
<Gerak>
why are you bombarding your puppet master like that?
<indistylo>
Gerak: did you got change to go through and infer something
<indistylo>
chance*
<Gerak>
Honestly not used worker killer, I was just seeing if your config was okay. It looks fine to me, maybe try and setup a test case with low memory limits to see if reaping is happening at all
jgt has joined #ruby
saneax is now known as saneax-_-|AFK
<indistylo>
This problem is very jittery, having sleepless nights :)memory problems are hard to debug, i tried 50+ thresholds 2Mb to 324Mb
<indistylo>
fro ruby 2.2.2 its works but the GC in ruby 1.9 works is bit different, i gues
Coldblackice_ has quit [Ping timeout: 265 seconds]
Silthias has quit [Ping timeout: 244 seconds]
<Gerak>
are you using 1.9
Silthias has joined #ruby
JesseH has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
zacts has quit [Ping timeout: 264 seconds]
saneax-_-|AFK is now known as saneax
deuterium has joined #ruby
rbr has quit [Ping timeout: 255 seconds]
Gerak has left #ruby [#ruby]
rbr has joined #ruby
Agent001 has joined #ruby
qwvsma has quit [Read error: Connection reset by peer]
sheperson has joined #ruby
MadLamb has quit [Remote host closed the connection]
BlkDynmt has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
[k- has joined #ruby
indistylo has quit [Remote host closed the connection]
Madplatypus has quit [Quit: Connection closed for inactivity]
aupadhye has quit [Ping timeout: 276 seconds]
astrobun_ has quit [Remote host closed the connection]
stamina has joined #ruby
Hyuk has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
parus has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
Beams has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alaibe has joined #ruby
Snickers has quit [Ping timeout: 276 seconds]
Guest34368 has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
duncannz has quit [Remote host closed the connection]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dn`_ has joined #ruby
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
sheperson_ has joined #ruby
aupadhye has joined #ruby
Es0teric has joined #ruby
Beams has joined #ruby
Es0teric has quit [Max SendQ exceeded]
dn`_ has quit [Client Quit]
Es0teric has joined #ruby
dn`_ has joined #ruby
Es0teric has quit [Max SendQ exceeded]
dn`_ has quit [Client Quit]
dn` has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
sheperson has quit [Ping timeout: 276 seconds]
sheperson_ is now known as sheperson
pawnbox has quit [Remote host closed the connection]
indistylo has quit [Remote host closed the connection]
aries_liuxueyang has quit [Ping timeout: 252 seconds]
aries_liuxueyang has joined #ruby
blackgoat has joined #ruby
spudowiar has joined #ruby
dn` has joined #ruby
Littlemyu has quit [Quit: Leaving]
aidalgol has quit [Quit: zZzZzZzzzzz]
blackgoat_ has joined #ruby
blackgoat has quit [Ping timeout: 250 seconds]
TvL2386 has quit [Quit: Ex-Chat]
raMp has quit [Quit: Konversation terminated!]
raMp has joined #ruby
sdothum has joined #ruby
raMp has quit [Client Quit]
raMp has joined #ruby
BlkDynmt has quit [Quit: BlkDynmt]
johnmilton has joined #ruby
Burgestrand has joined #ruby
blackgoat_ has quit [Ping timeout: 276 seconds]
Hyuk has joined #ruby
ruby-lang985 has joined #ruby
ruby-lang985 has quit [Client Quit]
Snowy has quit [Remote host closed the connection]
[k- has quit [Ping timeout: 264 seconds]
antgel has quit [Ping timeout: 276 seconds]
blackgoat_ has joined #ruby
vuoto has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
pawnbox has joined #ruby
Agent001 has quit [Ping timeout: 265 seconds]
jgt has quit [Ping timeout: 240 seconds]
anisha_ has joined #ruby
da3mon has quit [Quit: Zzzz...]
c0mrad3 has joined #ruby
[k- has joined #ruby
benlieb has joined #ruby
benlieb has quit [Client Quit]
anisha has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
aupadhye has quit [Quit: Leaving]
hanmac has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
craigp has joined #ruby
aupadhye has joined #ruby
umdstu has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
craigp has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
deuterium has quit [Ping timeout: 240 seconds]
aupadhye has quit [Ping timeout: 240 seconds]
umdstu has joined #ruby
pawnbox has joined #ruby
aries_liuxueyang has quit [Ping timeout: 250 seconds]
Littlemyu has joined #ruby
symm-_ has quit [Ping timeout: 250 seconds]
hanmac has joined #ruby
aries_liuxueyang has joined #ruby
bayed has joined #ruby
JesseH has joined #ruby
byteflame has quit [Ping timeout: 276 seconds]
ICantCook has joined #ruby
da3mon has joined #ruby
aupadhye has joined #ruby
aries_liuxueyang has quit [Ping timeout: 252 seconds]
aries_liuxueyang has joined #ruby
redpants has joined #ruby
tomchapi_ has joined #ruby
tomchapin has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
BlkDynmt has joined #ruby
LoneHerm_ has joined #ruby
Vingador has joined #ruby
Silthias has quit [Ping timeout: 250 seconds]
LoneHerm_ has quit [Ping timeout: 250 seconds]
koooge has quit [Quit: Leaving...]
antgel has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Silthias has joined #ruby
tk__ has joined #ruby
lxsameer has joined #ruby
jgt has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JoshS has joined #ruby
jshjsh has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
jgt has quit [Ping timeout: 250 seconds]
VladGh has quit [Ping timeout: 252 seconds]
charliesome has quit [Client Quit]
<MrBloo>
2.X and 1.9 DO have different GC's
<MrBloo>
so don't expect not-even-close results when comparing both
craigp has joined #ruby
<MrBloo>
I don't know if that's phrased the right wat, but you get what I mean :D
lightheaded has quit [Remote host closed the connection]
charliesome has joined #ruby
charliesome has quit [Client Quit]
Snowy has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dispatch has joined #ruby
Snowy has quit [Remote host closed the connection]
millerti has joined #ruby
Snowy has joined #ruby
JeanCarloMachado has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
dionysus69 has joined #ruby
<Bish>
can i set instance variables outside of initialize?
craigp has quit [Quit: WeeChat 1.5]
lightheaded has joined #ruby
craigp has joined #ruby
Puffball has quit [Remote host closed the connection]
VladGh has joined #ruby
Ch4mp has joined #ruby
Puffball has joined #ruby
<Ch4mp>
hi, can somebody tell me, why this doesn't work? #{Format(:red, m.user.nick)} i run a cinch bot
<Ch4mp>
its a method
interki has quit [Quit: Going offline, see ya! (www.adiirc.com)]
saneax is now known as saneax-_-|AFK
DoubleMalt has quit [Ping timeout: 244 seconds]
sballert has joined #ruby
Rasi has quit [Ping timeout: 244 seconds]
sballert has quit [Client Quit]
Rasi has joined #ruby
da3mon has quit [Quit: Zzzz...]
synthroid has joined #ruby
rodfersou is now known as rodfersou|afk
saneax-_-|AFK is now known as saneax
jgt has joined #ruby
nankyokusei has joined #ruby
jdawgaz has joined #ruby
flashpoint9 has joined #ruby
lightheaded has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
Guest360 has quit [Ping timeout: 255 seconds]
nankyokusei has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
olistik has joined #ruby
da3mon has joined #ruby
pawnbox has joined #ruby
<Ch4mp>
so many people here and nobody can help?
jgt has joined #ruby
brunodlz has joined #ruby
<elomatreb>
Ch4mp: "This doesn't work" isn't exactly a good error description
lightheaded has joined #ruby
<flashpoint9>
hey guys Im building this app which is facebook and google combined!!!! omg! but it no worky, fix please!!!11
<flashpoint9>
:P
Ch4mp has quit []
Omni has joined #ruby
Omni is now known as Guest42381
priodev has quit [Ping timeout: 276 seconds]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brunodlz has quit [Client Quit]
GinoManWorks has joined #ruby
pawnbox has quit [Remote host closed the connection]
GinoManWorks has quit [Remote host closed the connection]
[k- has quit [Ping timeout: 264 seconds]
Littlemyu has quit [Ping timeout: 265 seconds]
skweek has joined #ruby
priodev has joined #ruby
craigp has quit [Quit: WeeChat 1.5]
[k- has joined #ruby
Burgestrand has joined #ruby
Puffball has quit [Remote host closed the connection]
craigp has joined #ruby
<[k->
Bish: depends on how you are trying to set them (eg, inside the class? outside the class? in a method of the class?, etc). If it is okay, could you show me an example of what you are trying to do?
Azure has joined #ruby
benlieb has joined #ruby
benlieb has quit [Client Quit]
Puffball has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackgoat_ has quit [Quit: WeeChat 1.5]
ctp has joined #ruby
quadgrande has joined #ruby
flashpoi_ has joined #ruby
flashpoint9 has quit [Read error: Connection reset by peer]
wpumup has joined #ruby
fmcgeough has joined #ruby
Beams has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quazimodo has joined #ruby
coolboy has joined #ruby
swills has quit [Quit: Leaving]
swills has joined #ruby
coolboy has quit [Remote host closed the connection]
lightheaded has quit [Remote host closed the connection]
swills has quit [Max SendQ exceeded]
Asher has quit [Quit: Leaving.]
lightheaded has joined #ruby
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
byteflame has joined #ruby
swills has joined #ruby
gnufied has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
da3mon has quit [Quit: Zzzz...]
aegis3121 has joined #ruby
da3mon has joined #ruby
skweek has joined #ruby
Asher has joined #ruby
craigp has quit [Quit: WeeChat 1.5]
ta_ has quit [Remote host closed the connection]
craigp has joined #ruby
ixti has joined #ruby
Snowy has quit [Ping timeout: 244 seconds]
quadgrande has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<[k->
Ok, I'll try. I thought that was what I was doing but in fact it was not
cyphase has joined #ruby
hahuang65 has joined #ruby
Rodya_ has joined #ruby
braincras has quit [Ping timeout: 276 seconds]
dminuoso has joined #ruby
braincrash has joined #ruby
hopsoft has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
Burgestrand has joined #ruby
flashpoint9 has joined #ruby
Burgestrand has quit [Client Quit]
hahuang65 has quit [Ping timeout: 276 seconds]
Rodya_ has quit [Ping timeout: 250 seconds]
Beams has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
Beams has joined #ruby
Burgestrand has joined #ruby
flashpoint9 has quit [Client Quit]
dionysus69 has joined #ruby
cyclonis has joined #ruby
Burgestrand has quit [Client Quit]
skweek has quit [Ping timeout: 276 seconds]
hopsoft has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Azure has quit [Ping timeout: 265 seconds]
ChiefAlexander has quit [Quit: Leaving...]
flopsec has joined #ruby
Azure has joined #ruby
symm- has joined #ruby
bkxd has joined #ruby
etetz has joined #ruby
deadprez has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 255 seconds]
dikaio has joined #ruby
dikaio has quit [Max SendQ exceeded]
cdg has quit [Remote host closed the connection]
Devalo has joined #ruby
ruby_ has quit [Remote host closed the connection]
ruby_ has joined #ruby
rsampaio has joined #ruby
<Nilium>
The bbatsov style guide MD currently has 12,354 words according to wc. I'm considering submitting a pull request to make this 12,345 just because.
bmurt has joined #ruby
skweek has joined #ruby
skweek has quit [Max SendQ exceeded]
drzel has joined #ruby
dminuoso has quit [Remote host closed the connection]
skweek has joined #ruby
skweek has quit [Max SendQ exceeded]
BlkDynmt has joined #ruby
LoneHerm_ has joined #ruby
ruby_ has quit [Ping timeout: 252 seconds]
quadgrande has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Bish has quit [Ping timeout: 250 seconds]
deadprez has joined #ruby
JoshS has joined #ruby
Dispatch has quit [Remote host closed the connection]
AzureStigma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
submitnine has quit []
Bish has joined #ruby
ruby_ has joined #ruby
mikecmpbll has joined #ruby
jshjsh has quit [Ping timeout: 240 seconds]
aupadhye has quit [Ping timeout: 276 seconds]
dikaio has joined #ruby
aegis312_ has joined #ruby
aegis3121 has quit [Read error: Connection reset by peer]
aufi has quit [Ping timeout: 260 seconds]
AzureStigma has joined #ruby
mikecmpb_ has quit [Ping timeout: 265 seconds]
synthroid has quit [Remote host closed the connection]
conta has quit [Ping timeout: 240 seconds]
d10n-work has joined #ruby
Littlemyu has joined #ruby
mjuszczak has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
rippa has joined #ruby
deadprez has quit [Remote host closed the connection]
quadgrande has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rubie has quit [Remote host closed the connection]
benlieb has joined #ruby
zipace has quit [Ping timeout: 265 seconds]
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
avelldiroll has joined #ruby
rubnob has joined #ruby
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
Guest38 has joined #ruby
quadgrande has joined #ruby
tyang has joined #ruby
bsrd has joined #ruby
tyang has quit [Client Quit]
tyang has joined #ruby
lightheaded has quit [Ping timeout: 255 seconds]
hopsoft has joined #ruby
tyang has quit [Client Quit]
jsrn_ has quit [Remote host closed the connection]
tyang has joined #ruby
tyang has quit [Client Quit]
tyang has joined #ruby
tyang has quit [Client Quit]
tyang has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
synthroid has joined #ruby
aegis312_ has quit [Ping timeout: 240 seconds]
bsrd has quit [Client Quit]
tyang has quit [Read error: Connection reset by peer]
polishdub has joined #ruby
synthroid has quit [Remote host closed the connection]
synthroid has joined #ruby
cyphase has quit [Ping timeout: 250 seconds]
dminuoso has joined #ruby
ngscheur1 has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
cdg has joined #ruby
quadgrande has quit [Ping timeout: 264 seconds]
ChiefAlexander has joined #ruby
TomyWork has quit [Ping timeout: 276 seconds]
cyphase has joined #ruby
<kegster>
If I want to determine isTrue() before doing something in ruby, but I want to check every X seconds if isTrue() -- what's the best way to implement this without infinite loop? I don't mind setting a max tries, etc
eizua has quit [Quit: Leaving]
<ljarvis>
the method name isn't actually "isTrue" right?
<ljarvis>
anyway, you want to do something every X seconds but you don't want to use a loop?
<ljarvis>
why not?
turingbombe has quit [Quit: This computer has gone to sleep]
<ljarvis>
and you can just write a recursive method with a sleep if you want. Better yet, handle this in your cron
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
ngscheur1 has joined #ruby
bmn has quit [Ping timeout: 252 seconds]
bkxd has quit [Ping timeout: 265 seconds]
jackjackdripper has joined #ruby
agent_white has joined #ruby
<agent_white>
Mornin'
ferr has quit [Quit: WeeChat 1.5]
AzureStigma has joined #ruby
Sou|cutter has quit [Ping timeout: 250 seconds]
ruby_ has quit [Remote host closed the connection]
ruby_ has joined #ruby
benlieb has quit [Quit: benlieb]
Beams has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Eiam has joined #ruby
ruby_ has quit [Client Quit]
bmn has joined #ruby
araujo_ has joined #ruby
Littlemyu has quit [Ping timeout: 265 seconds]
flying has quit []
sepp2k has quit [Ping timeout: 240 seconds]
araujo_ has quit [Max SendQ exceeded]
araujo_ has joined #ruby
araujo has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Remote host closed the connection]
raeoks has joined #ruby
DoubleMalt has quit [Ping timeout: 276 seconds]
chouhoulis has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
da3mon has joined #ruby
Pumukel has joined #ruby
cyphase has quit [Ping timeout: 255 seconds]
Jardayn has quit [Read error: Connection reset by peer]
deadprez has quit [Remote host closed the connection]
Rodya_ has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
[k-_ has joined #ruby
hahuang65 has joined #ruby
bigkevmcd has joined #ruby
cdg has quit [Remote host closed the connection]
Madplatypus has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
[k- has quit [Ping timeout: 264 seconds]
LoneHerm_ has joined #ruby
benlieb has joined #ruby
cyphase has joined #ruby
aegis3121 has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gnufied has quit [Quit: Leaving]
hutch34 has quit [Read error: Connection reset by peer]
deadprez has joined #ruby
gnufied has joined #ruby
hutch34 has joined #ruby
PaulCapestany has joined #ruby
mikecmpbll has joined #ruby
LoneHerm_ has quit [Ping timeout: 240 seconds]
coolboy has quit [Ping timeout: 240 seconds]
benlieb has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
tjvc_ has quit [Ping timeout: 252 seconds]
Rodya_ has joined #ruby
wugy has quit []
claudiuinberlin has joined #ruby
PaulCape_ has quit [Ping timeout: 264 seconds]
AnarchyAo has joined #ruby
memorasus has joined #ruby
dviola has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
hk238 has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kegster>
dminuoso, i have an API that can only do commands on an item if it's not locked. i need to check if item is locked before executing code-- so i'd like to isLocked() then wait 250ms then try again for like 4sec
quazimodo has quit [Ping timeout: 250 seconds]
<kegster>
ljarvis, no i'm OK with using a loop, but just not needing an infinite one
<dminuoso>
kegster: Is it an external API, or is the API under your control?
olistik has joined #ruby
benlieb has joined #ruby
solars has joined #ruby
tjvc has joined #ruby
tjvc has quit [Changing host]
tjvc has joined #ruby
CodingWolf has joined #ruby
_djbkd has joined #ruby
wonz has joined #ruby
kanobt61_ has joined #ruby
cyphase has quit [Ping timeout: 250 seconds]
hahuang65 has quit [Ping timeout: 250 seconds]
marxarelli has joined #ruby
pwnd_nsfw has joined #ruby
<kegster>
external
|ifei5g00d has quit [Ping timeout: 244 seconds]
<kegster>
The only issue is when two users try to do something to an object at once, we have problems. but simpluy making 1 wait would solve it.
kanobt61 has quit [Ping timeout: 250 seconds]
<dminuoso>
kegster: You can use something like producer/consumer to make this transparent to multiple users.
ftj has quit [Ping timeout: 276 seconds]
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
akitada has quit [Quit: Connection closed for inactivity]
arup_r has quit [Remote host closed the connection]
<dminuoso>
kegster: i.e. provide your own interface for the api, and each request (with a callback perhaps in form of a future/promise) gets tossed into a queue, with a worker popping one at a time, and using it until it completes.
cdg has joined #ruby
rcvalle has joined #ruby
lxsameer has joined #ruby
cyphase has joined #ruby
|ifei5g00d has joined #ruby
turingbombe has joined #ruby
Kyhz has joined #ruby
dhk has joined #ruby
coolboy has joined #ruby
<lifted>
Ruby devs working full time: HOW DO YOU AVOID BLOWING YOUR BRAIN OUT??
cyclonis has quit [Ping timeout: 250 seconds]
AzureStigma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
<Mon_Ouie>
kegster: What's if two users check if a resource is locked at the same time, both see that it isn't locked, and then both try to access it?
<toretore>
Mon_Ouie: one would assume that this is handled by the provider
careta has quit [Ping timeout: 265 seconds]
eljimbo has joined #ruby
<kegster>
Mon_Ouie, good idea
<lifted>
dminuoso: please, because my new ruby job is making me crazy right now. the whole setup just keeps dying RANDOMLY :(
<lifted>
thanks for the music dminuoso
<mikecmpbll>
:D
<kegster>
dminuoso, Mon_Ouie the API i'm using has 2 different APIs. One is scripting the other is a restful. The restful version of the script i'm creating does it somehow.
<Mon_Ouie>
Then why do you need to have the client check if it's locked at all?
<lifted>
hi mikecmpbll :)
<mikecmpbll>
lifted : ohai
<kegster>
Mon_Ouie, you are making me think about a different scenario haha. i wonder how the restful is doing it? the restful api uses the scripting api--- but i can't see the code
<kegster>
if that makes any sense
finisherr has joined #ruby
<toretore>
kegster: it won't make much sense without knowing the details
<toretore>
kegster: you haven't told us exactly what "api" is
<dminuoso>
lifted: Today I sealed my decision. Im looking for a new job, preferrably one that is as far away from Ruby as possible.
<mikecmpbll>
:O
<lifted>
dminuoso: Top 3 reasons for doing so?
<mikecmpbll>
why do you hate us.
<dminuoso>
lifted: I want to get back to programming close to hardware.
<lifted>
dminuoso: makes sense. IoT?
<dminuoso>
lifted: No, anything.
aspiers has quit [Ping timeout: 250 seconds]
SteenJobs has joined #ruby
cyphase has quit [Ping timeout: 255 seconds]
<dminuoso>
lifted: I mean don't get me wrong. I think I have a decent understanding of Ruby, it's a fine language despite some of its quirks. But I don't enjoy developing Ruby applications.
firstdayonthejob has joined #ruby
<dminuoso>
And I absolutely don't enjoy Rails anymore.
<lifted>
dminuoso: i gotcha. Well, i just came from 10 years of PHP/MySQL and python dev
<mikecmpbll>
lols
<toretore>
lifted: do you want to know the secret? learn and use ruby, not the thousands of shitty gems out there. be very conservative when adopting code coming from the "community", 90% of it will make your life worse
<mikecmpbll>
that's not ruby specific.
<kegster>
toretore, what can i tell you?
zacts has joined #ruby
<kegster>
Mon_Ouie, what if i store the status inside postgres -- doesnt a sql based system take 1 request at a time?
<toretore>
lifted: you have probably inherited some monster with a hundred hairball gems, which is why nothing is working properly
<dminuoso>
kegster: No.
<lifted>
toretore: yes. YES. It's like 20,000 lines of code running on 100 gems.
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dminuoso>
kegster: PostgreSQL has all the mechanisms to allow concurrency.
nando293921 has joined #ruby
<kegster>
toretore, the API has a restful section (url endpoints) and a scripting API (can run ruby scripts). the API allows you to access data for cases
<lifted>
toretore: across 15 servers that have not been managed. backups filling up drives... from 2013... and it makes ME look like an idiot for not being able to maintain this stuff
<kegster>
not sure how else to explain what the API is
<kegster>
lol
<kegster>
sorry :\
<kegster>
i will try ! :)
<mikecmpbll>
lifted : there's nothing inherently wrong with that.
<mikecmpbll>
20,000 lines and 100 gems, so what?
<lifted>
wouldnt be a huge deal if it was running properly. but its memory leaking everywhere.
<lifted>
causing DoS for random apps / dbs across the biz
<toretore>
lifted: you'll just have to roll up your sleeves, figure out how it all fits together and then start to improve
<dminuoso>
toretore: Unmanaged servers, backups filling harddrives - sounds to me like you have more serious problems than Rubys GC.
<toretore>
depends on your definition of leaks
<mikecmpbll>
then fix it.
<lifted>
dminuoso: thus, 32GB of ram getting eaten because of Postgres and Ruby w/ Activerecord
cyphase has joined #ruby
<dminuoso>
lifted: Profile it, use valgrind.
Pumukel has quit [Remote host closed the connection]
<lifted>
yeah!! great advice dminuoso
<lifted>
i just finished reading Ruby perf. optimization
<mikecmpbll>
ruby doesn't just randomly memory leak
<toretore>
kegster: what is a "scripting api"?
<mikecmpbll>
you, or someone else, has written code with memory leakage
<mikecmpbll>
ruby doesn't just randomly memory leak very often*
<dminuoso>
mikecmpbll: You cant leak memory in Ruby trivialy.
<mikecmpbll>
:p
<dminuoso>
mikecmpbll: Either you keep a reference (in which case its not a leak), or the GC will clean the object.
<mikecmpbll>
dminuoso : well, i'd consider that a memory leak
marr has quit [Ping timeout: 265 seconds]
<kegster>
toretore, i'm not sure how to explain it. it's what they call it. it's an API written in ruby
<lifted>
What about CPU consumption where I can't even SSH in? I've never had that type of issue with big Python scripts I wrote.
<toretore>
it doesn't necessarily leak in the sense that the memory is unrecoverable, but ruby is well known to 1) use a lot of memory and 2) not want to give it back once it's got it
<kegster>
Well is there a way to use a begin/rescue system so I can try to openItem() or someting--- if I get an error, then wait and try again?
<lifted>
i guess thats a sysadmin config issue
DoubleMalt has joined #ruby
rsampaio has quit [Quit: WeeChat 1.5]
<toretore>
kegster: so.. a library?
<lifted>
whats the terminology for using a lot of memory and making your processes break because it wont allow reuse
<kegster>
i think i saw a 'retry if'
<kegster>
toretore, no.
<mikecmpbll>
memory leaks are problems where memory isn't being released when it should be .. keeping a reference inadvertently is a case of that
<kegster>
well, maybe could be perceived as one
<dminuoso>
toretore: Which is perfectly fine. Your Linux does the same - if you think you have 2GB of free RAM, Linux will be using *all* of it to cache things.
<dminuoso>
(or Windows, or any modern OS)
<dminuoso>
Keeping things in memory is a good thing.
<toretore>
dminuoso: of course it's not fine. it's not available for other processes and it just sitting there doing nothing
<kegster>
toretore, basically there's a huge backend system that operates with it's own windows program, etc. you can manipulate and access the data via a scripting api in ruby (that must be ran thru their system, can't be included like a library) OR i can use web endpoints for pre-scripted actions
<kegster>
does that help? heh
<toretore>
the kernel knows how to use that memory for other things if necessary
<toretore>
kegster: so, you send ruby code somewhere to be executed?
<kegster>
toretore, with the way i'm using it in this scenario, SORT OF: i store the ruby script and I start it with a tool they give me to start the scripts
<kegster>
i can pass custom data to the script
<kegster>
it actually passes through the restful endpoints, but allows me to write the code.
<toretore>
so why aren't you just using the endpoints?
AzureStigma has joined #ruby
pandaant has quit [Remote host closed the connection]
spider-mario has joined #ruby
cyclonis has joined #ruby
<lifted>
I have New Relic installed. Will this be a suitable replacement for RubyProf/Valgrind? What about using ScoutApp for CPU/Time+RAM usage?
<mikecmpbll>
not for memory, afaik
CodingWolf has quit [Quit: Leaving]
iamvery has joined #ruby
cyphase has quit [Ping timeout: 244 seconds]
<kegster>
toretore, because the endpoints aren't as versatile. for example, they have a "query case" endpoint that lacks a lot of features in the "scripting api" -- so i write a simple query script to replace. works fine except in this scenario haha.
<kegster>
i think my begin/rescue might work if i keep it to a simple implementation -- and just retry. i don't know much about retry so i'll have to see if i can wait before retrying
<kegster>
is there a way? lol
<toretore>
kegster: if you can trust the locking semantics to work as advertised it's simple
<toretore>
a loop as you say works fine
<kegster>
toretore, i should be able to trust them. just unsure of how i "wait" before doing my "retry" -- is sleep() the best method/
<toretore>
probably
inukshuk has quit [Ping timeout: 240 seconds]
<kegster>
looks like i have some trial and error :D
<kegster>
i didn't think of the begin/rescue until yall mentioned about the isTrue() being called at same time
<kegster>
it's so annoying bc this ruby part is so small -- as i use the endpoints for most things--- but i've been forced to make a couple custom scripts
<toretore>
but the fact that it seems like there's a separate "isLocked" and "checkout" call doesn't seem very good
cyphase has joined #ruby
djbkd_ has joined #ruby
_djbkd has quit [Ping timeout: 252 seconds]
claudiuinberlin has quit [Remote host closed the connection]
<kegster>
toretore, more of isClosed, and an open for cases--- but there's too much to explain in this chat for you to fully grasp what's going on haha.
<kegster>
toretore, but yes i understand what you mean. i'm just hoping i can trick it into working--- the restful does it some how.
dionysus69 has quit [Ping timeout: 252 seconds]
dionysus70 is now known as dionysus69
<kegster>
the API is not well built. if i have to revert to the search endpoint over my own custom (until their support finally will maybe shine some light), then i'll lose a little bit of functionality.
<Scient>
im having an "interesting" issue with ruby and openssl
<Scient>
doing a client cert auth (soap) call, works in one environment, wont work in the other one
<Scient>
im also providing my own CA file for the call
<Scient>
so it should not rely on the system CA certs at all
<Scient>
in one of the systems the call succeeds, yet fails in the other one
<Scient>
i have this feeling that somehow ruby is picking up wrong CA files and/or ignoring the CA file I provide
<toretore>
kegster: and this open and close stuff functions as a lock?
<Scient>
anyone got any great ideas where to look to trace this issue down?
dionysus69 has quit [Ping timeout: 255 seconds]
sumobob has quit [Ping timeout: 250 seconds]
MeMeK_ has quit [Ping timeout: 240 seconds]
<toretore>
Scient: how are you providing the certs?
<Scient>
as files on the system
<Scient>
also on the server where the ruby HTTP call fails, curl works just fine with the same certs and CA file
<Scient>
this leads me to think it has to be something with ruby
<toretore>
Scient: i suspect there are several layers between openssl and where you are actually providing them from
benlieb has quit [Quit: benlieb]
<Scient>
hence the problem :P
<Scient>
i replicated the call in pure net::http to cut out as much as possible
shinnya has quit [Ping timeout: 252 seconds]
<kegster>
toretore, well, yes, but there is no "open()" -- the case just opens when you do stuff. hard to explain. but yes, essentially, it's a locking system. but more complicated than that lmao. it's not very well put together.
<toretore>
Scient: i'd start by reducing it down to Net::HTTP and/or OpenSSL first to see if that's where the problem lies
<Scient>
it literally cant verify the client certificate
<Scient>
note that this is a protected endpoint and your "regular" CAs wont have the given chain anywhere in them, hence why im providing my own CAfile
dionysus69 has joined #ruby
<Scient>
its either not picking that CAfile up, not using it, or using some system default CAfile/CApath over the one I specify
<Scient>
is what im thinking
mtkd has quit [Ping timeout: 250 seconds]
raeoks has joined #ruby
cyphase has joined #ruby
aegis3121 has quit [Read error: Connection reset by peer]
<toretore>
but you said the server can't verify the client cert
<toretore>
that doesn't have anything to do with the ca you're providing (or not)
aegis3121 has joined #ruby
tyang has joined #ruby
tyang has quit [Client Quit]
<Scient>
did i say that? in that case my bad, faily certain its failing to verify the endpoints cert against the CA
<toretore>
ok
mtkd has joined #ruby
<toretore>
i'm assuming you've double checked that all the files are identical?
<Scient>
yep
Junaos has joined #ruby
<toretore>
did you try OpenSSL.debug = true ? not sure what it does exactly
<toretore>
but maybe it'll tell you which certs it's using
jhack has joined #ruby
<Scient>
http.rb:923: warning: error on stack: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
<Scient>
only additional output really
<toretore>
right
<kegster>
toretore, :D
bocaneri has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
aegis3121 has quit [Ping timeout: 244 seconds]
chouhoulis has joined #ruby
cyclonis has joined #ruby
aegis3121 has joined #ruby
r00t_us3r has quit [Quit: Connection closed for inactivity]
devbug has quit [Read error: Connection reset by peer]
<Scient>
yeah... but i cant stuff my CA things into the system path though, mine are also dynamic :P
cyphase has joined #ruby
hutch34 has quit [Ping timeout: 244 seconds]
cdg has quit [Remote host closed the connection]
Azure has joined #ruby
<Scient>
trying out a minimal test now with openssl and tcp sockets directly
jgt has joined #ruby
alexherbo2 has quit [Quit: WeeChat 1.5]
<Scient>
the broken env just fails with the same message all the time, while the other one has different failures based on if i provide the CA file or not etc
zacts has quit [Ping timeout: 265 seconds]
devbug has joined #ruby
nankyokusei has quit [Remote host closed the connection]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
da3mon has joined #ruby
<toretore>
Scient: this would seem to indicate that it's actually trying to use the provided cert though
bkxd has joined #ruby
da3mon has quit [Client Quit]
_joes___ has quit [Quit: _joes___]
_joes___ has joined #ruby
_joes___ has quit [Client Quit]
kjellpropell has joined #ruby
<toretore>
Scient: wait, i read that wrong, it's the opposite
_joes___ has joined #ruby
_joes___ has quit [Client Quit]
<toretore>
Scient: file permissions?
cyphase has quit [Ping timeout: 260 seconds]
<toretore>
i don't know if openssl checks that
ule has joined #ruby
<ule>
hi there.. how would you guys do this statement on a simple way?
<ljarvis>
also move the array to a constant (probably)
<ule>
ljarvis: thanks dude
<Scient>
mmm file permissions are the same on both as well
jazzonmym11nd has quit [Ping timeout: 260 seconds]
cyphase has joined #ruby
<toretore>
Scient: can you rebuild the broken env?
<Batholith>
Anyone tried IronRuby?
<toretore>
Scient: aka turn it off and then back on again :P
LoneHermit has joined #ruby
<Scient>
well.. the thing is the broken env is built recently, so it should be newer and stuff
<Scient>
doesnt help that our devops dude is on his honeymoon :D
<Scient>
and this image is a part of the process to moving to AWS
<Scient>
aka new stuffs
<Scient>
which noone else is really familiar with
turingbombe has quit [Quit: This computer has gone to sleep]
<lifted>
Hey guys - just so you know ScoutApp works nice to identify problematic CPU usage/RAM usage! And you simply add it to the gem file, copy & paste a config file... super awesome....
zipace has joined #ruby
<lifted>
Any tips for migrating a Postgres DB from a server with the app running it (Postgres was consuming like 60% of resources) besides just updating config/credentials where the DB points to?
swills has quit [Read error: Connection reset by peer]
swills has joined #ruby
Rodya_ has quit [Remote host closed the connection]
rideh has quit [Changing host]
rideh has joined #ruby
JoshS has quit [Quit: Leaving]
cyphase has quit [Ping timeout: 264 seconds]
dhk has quit [Quit: Leaving]
M-manveru has joined #ruby
M-mistake has joined #ruby
millerti has joined #ruby
aegis3121 has quit [Ping timeout: 250 seconds]
aegis3121 has joined #ruby
cyphase has joined #ruby
Rodya_ has joined #ruby
turingbombe has joined #ruby
BlkDynmt has quit [Quit: BlkDynmt]
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
lightheaded has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
aidalgol has joined #ruby
<adam12>
Has anybody seen a push (or shovel) operation inside a reduce actually swap order?
<adam12>
(ie. push to the head instead of the tail)
angrywombat has joined #ruby
angrywombat has left #ruby [#ruby]
Immune has joined #ruby
cyphase has quit [Ping timeout: 276 seconds]
sumobob has joined #ruby
elastix has joined #ruby
Azure has joined #ruby
jazzonmym11nd has joined #ruby
conta has quit [Ping timeout: 264 seconds]
cyphase has joined #ruby
deadprez has quit [Remote host closed the connection]
deadprez has joined #ruby
Guest43 has joined #ruby
anisha has joined #ruby
Guest43 has quit [Changing host]
Guest43 has joined #ruby
Guest43 is now known as Rufus
byteflame has joined #ruby
aidalgol has quit [Quit: BYEEEE!]
spudowiar has joined #ruby
wonz has quit [Quit: Leaving]
NetSage has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
cyphase has quit [Ping timeout: 276 seconds]
turingbombe has quit [Quit: This computer has gone to sleep]
turingbombe has joined #ruby
BlkDynmt has joined #ruby
<maxmanders>
Having trouble finding an answer to this one - is there a mechanism for getting a platform independent cache directory, e.g. for storing on-disk cache files for a command line script?
johnmilton has quit [Remote host closed the connection]
<Papierkorb>
maxmanders: Do you want to create a temporary file, or just the path to the temp dir?
<Papierkorb>
maxmanders: ah sorry, I read "tempdir" not "cachedir"
cyphase has joined #ruby
last_staff has joined #ruby
byteflam1 has joined #ruby
<maxmanders>
I'll be calling an API, and storing the results on disk to avoid expensive subsequent calls - but want to invalidate the cache after some period of time, and force another API all.
byteflam1 has quit [Client Quit]
byteflame has quit [Quit: leaving]
<maxmanders>
On Linux, I'd store in /var/cache/... on Windows ???, but I figured there may be some wrapper to get some common cache directory for whichever platform the code is running on.
byteflame has joined #ruby
<Papierkorb>
Create a `cache` directory in your applications user-local configuration directory? You could also use e.g. a SQLite DB
<maxmanders>
I guess in this case temp and cache are synonymous, and just writing out to a temp dir would do.
<Papierkorb>
maxmanders: And, the normal user doesn't have write-access to /var/cache
conta has joined #ruby
<maxmanders>
@Papierkorb Good points ;-) Thanks!
benlieb has quit [Quit: benlieb]
<Papierkorb>
maxmanders: Temporary directories/files should only be used during the lifecycle of the process, they may be removed at will. Caches are fragile too, but they may survive a computer reboot or similar
benlieb has joined #ruby
benlieb has quit [Client Quit]
<maxmanders>
Aye, in this case Dir.tmpdir() is probably too ephemeral. Creating ~/path/to/app/cache is probably a good solution. SQLite is a good choice for most things, but in this case, the thing I'm caching is a legit file.
<maxmanders>
And Dir.home() is platform independent too, so would work if I want to write this in a platform independent way.
<maxmanders>
Thanks for the rubber-duck!
<mikecmpbll>
why not just write it to the project dir?
<Papierkorb>
For small files, I'd stuff it into the SQLite, to avoid issues where the a/c/mtime's of the files are off. iirc browsers commonly use a SQLite for this reason as bookkeeping device and store the file in the filesystem
[Butch] has quit [Quit: I'm out . . .]
loopy has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
<maxmanders>
I'll give it a shot!
<Papierkorb>
maxmanders: There's also ~/.cache/, but you'd have to read up on the XDG specification for it (or wherever that comes from) to find out how to use it "correctly"
lightheaded has quit [Remote host closed the connection]
* maxmanders
has horrible memories of doing something terrible with patched fonts and fc-cache
lightheaded has joined #ruby
vuoto has joined #ruby
conta has quit [Ping timeout: 255 seconds]
spudowiar has quit [Quit: Leaving.]
cyphase has quit [Ping timeout: 252 seconds]
claudiuinberlin has quit [Remote host closed the connection]
<havenwood>
maxmanders: If the $HOME env var isn't set the former should work or on Win return `nil` but then the latter should work: require 'etc'; Dir.home(Etc.getlogin) || ENV['HOME']
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Devalo has quit [Remote host closed the connection]
<maxmanders>
Excellent!
blackgoat has joined #ruby
lightheaded has quit [Ping timeout: 255 seconds]
claudiuinberlin has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
ebbflowgo has joined #ruby
minotep has joined #ruby
millerti has joined #ruby
last_staff has quit [Remote host closed the connection]
cyphase has joined #ruby
last_staff has joined #ruby
johnmilton has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
Qommand0r has quit [Quit: Exiting...]
lxsameer has quit [Quit: WeeChat 1.5]
eljimbo has quit [Read error: Connection reset by peer]
eljimbo has joined #ruby
Qommand0r has joined #ruby
cdg has joined #ruby
auxbuss has joined #ruby
John2496 has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Snickers has joined #ruby
bsrd has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
l4v2 has joined #ruby
turingbombe has quit [Quit: This computer has gone to sleep]
SteenJobs has quit [Quit: SteenJobs]
BlkDynmt has quit [Quit: BlkDynmt]
turingbombe has joined #ruby
AnarchyAo has quit [Excess Flood]
replay has quit [Ping timeout: 250 seconds]
millerti has joined #ruby
byteflame has quit [Ping timeout: 250 seconds]
Rodya_ has joined #ruby
eljimbo has quit [Quit: This computer has gone to sleep]
turingbombe has quit [Client Quit]
benlieb has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
mprelude has joined #ruby
mprelude has quit [Client Quit]
Vingador has quit [Ping timeout: 265 seconds]
turingbombe has joined #ruby
pawnbox has quit [Remote host closed the connection]
craigp has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
memorasus has quit [Read error: Connection reset by peer]
AnarchyAo has joined #ruby
DoubleMalt has quit [Ping timeout: 244 seconds]
cyphase has quit [Ping timeout: 240 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mikecmpbll>
:/
shinnya has joined #ruby
aegis3121 has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
aegis3121 has joined #ruby
habitullence has quit [Ping timeout: 244 seconds]
habitullence_ has joined #ruby
jhack has quit [Quit: jhack]
Devalo has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
cyphase has joined #ruby
bungoman has quit [Ping timeout: 250 seconds]
polyidus has joined #ruby
duderonomy has joined #ruby
polyidus has quit [Client Quit]
Devalo has quit [Ping timeout: 240 seconds]
c0mrad3 has joined #ruby
turingbombe has quit [Quit: This computer has gone to sleep]
[k-_ has quit [Quit: Page closed]
raMp has quit [Quit: Konversation terminated!]
John2496 has joined #ruby
John2496 has quit [Remote host closed the connection]
John2496 has joined #ruby
DoubleMalt has joined #ruby
auxbuss has quit [Quit: I'm gone.]
replay has joined #ruby
SteenJobs has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
Blaguvest has quit []
SteenJobs has quit [Client Quit]
jhack has joined #ruby
cyphase has quit [Ping timeout: 250 seconds]
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
ReK2 has quit [Remote host closed the connection]
claudiuinberlin has quit [Client Quit]
devbug has quit [Read error: Connection reset by peer]
Glitchy has joined #ruby
l4v2 has quit [Quit: l4v2]
vdl has quit [Ping timeout: 244 seconds]
DoubleMalt has quit [Ping timeout: 260 seconds]
aegis3121 has quit [Ping timeout: 276 seconds]
cyphase has joined #ruby
aegis3121 has joined #ruby
workmad3 has joined #ruby
millerti has joined #ruby
devbug has joined #ruby
ReK2 has joined #ruby
wldcordeiro has quit [Read error: Connection reset by peer]
DoubleMalt has joined #ruby
wldcordeiro has joined #ruby
turingbombe has joined #ruby
nankyokusei has joined #ruby
HumBird has joined #ruby
Rodya_ has joined #ruby
bkxd has joined #ruby
cyphase has quit [Ping timeout: 276 seconds]
turingbombe has quit [Ping timeout: 240 seconds]
Coldblackice has joined #ruby
synthroid has quit []
nankyokusei has quit [Ping timeout: 264 seconds]
bkxd has quit [Ping timeout: 252 seconds]
cyphase has joined #ruby
ChiefAlexander has joined #ruby
HumBird has left #ruby ["Leaving"]
[Butch] has joined #ruby
bsrd has quit [Quit: WeeChat 1.5]
BlkDynmt has joined #ruby
LoneHerm_ has joined #ruby
iamvery has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
iamvery has joined #ruby
turingbombe has joined #ruby
vuoto has quit [Quit: Lost terminal]
Pumukel has joined #ruby
turingbombe_ has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
LoneHerm_ has quit [Ping timeout: 255 seconds]
turingbombe_ has quit [Client Quit]
turingbombe has quit [Ping timeout: 255 seconds]
cyphase has quit [Ping timeout: 265 seconds]
benlieb has quit [Read error: No route to host]
SteenJobs has joined #ruby
dminuoso has quit [Ping timeout: 250 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
turingbombe_ has joined #ruby
iamvery has quit [Remote host closed the connection]
benlieb has joined #ruby
Hien has quit [Remote host closed the connection]
turingbombe__ has joined #ruby
cyphase has joined #ruby
last_staff has quit [Quit: last_staff]
Kyhz has quit [Ping timeout: 265 seconds]
unsymbol has quit [Quit: cheerio]
turingbombe_ has quit [Ping timeout: 265 seconds]
rodfersou has quit [Quit: leaving]
turingbombe__ has quit [Client Quit]
ur5us has joined #ruby
yfeldblum has joined #ruby
loopy has quit [Ping timeout: 244 seconds]
hahuang65 has quit [Ping timeout: 244 seconds]
chrisja has quit [Quit: leaving]
benlieb has quit [Quit: benlieb]
turingbombe__ has joined #ruby
DoubleMalt has quit [Ping timeout: 276 seconds]
devbug has quit [Quit: ZZZzzz…]
BlkDynmt has quit [Quit: BlkDynmt]
duderonomy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
deadprez has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
vdl has joined #ruby
Dreamer3 has joined #ruby
turingbombe__ has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
turingbombe__ has joined #ruby
turingbombe__ has quit [Client Quit]
AndrewIsHere has quit [Remote host closed the connection]
Dreamer3 has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
l4v2 has joined #ruby
Madplatypus is now known as RadPlatypus
djbkd_ has quit [Remote host closed the connection]
turingbombe__ has joined #ruby
d0nn1e has quit [Ping timeout: 244 seconds]
_djbkd has joined #ruby
turingbombe_ has joined #ruby
d0nn1e has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
lightstalker has quit [Ping timeout: 252 seconds]
deadprez has joined #ruby
deadprez has quit [Remote host closed the connection]
turingbombe__ has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
nikivi has joined #ruby
platzhirsch has joined #ruby
millerti has joined #ruby
tk__ has quit [Quit: ばいばい]
spudowiar has joined #ruby
cyphase has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 252 seconds]
nando293921 has quit [Read error: Connection reset by peer]
Rodya_ has quit [Remote host closed the connection]
John2496 has quit []
AndrewIsHere has quit [Remote host closed the connection]
symm- has joined #ruby
AndrewIsHere has joined #ruby
tvw has quit []
minimalism has joined #ruby
mwlang has joined #ruby
symm- has quit [Client Quit]
cyphase has joined #ruby
Puffball has quit [Remote host closed the connection]
ThereIsNoYeti has quit [Ping timeout: 250 seconds]
wrkrcoop has quit [Quit: wrkrcoop]
duderonomy has quit [Ping timeout: 244 seconds]
wrkrcoop has joined #ruby
Moosashi has quit [Quit: Moosashi]
hopsoft has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solocshaw has joined #ruby
careta has quit [Ping timeout: 244 seconds]
SteenJobs has quit [Quit: SteenJobs]
Immune has quit [Ping timeout: 252 seconds]
solocshaw has quit [Remote host closed the connection]
devbug has joined #ruby
solocshaw has joined #ruby
govg has quit [Ping timeout: 252 seconds]
coolboy has joined #ruby
govg has joined #ruby
benlieb has quit [Quit: benlieb]
solocshaw has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 260 seconds]
zacts has quit [Ping timeout: 250 seconds]
nyuszika7h has quit [Ping timeout: 250 seconds]
Immune has joined #ruby
solocshaw has joined #ruby
jgnagy has joined #ruby
benlieb has joined #ruby
cyphase has quit [Ping timeout: 265 seconds]
<jgnagy>
hello fellow rubyists, quick question: anybody familiar enough with pry know how to disable the context (the `whereami` command) that automatically runs on invocation?
coolboy has quit [Ping timeout: 252 seconds]
nyuszika7h has joined #ruby
<jgnagy>
using pry as the base of my developer console in an app (pretty much fully working) just don't like the annoying section showing the file and unnecessary code context
ddffg has quit [Ping timeout: 264 seconds]
govg has quit [Ping timeout: 260 seconds]
solocshaw has quit [Remote host closed the connection]
govg has joined #ruby
cyphase has joined #ruby
NetSage has quit [Remote host closed the connection]
SteenJobs has joined #ruby
hutch34 has quit [Ping timeout: 265 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
NetSage has joined #ruby
solocshaw has joined #ruby
mikecmpbll has quit [Client Quit]
UserOO7 has joined #ruby
quazimodo has joined #ruby
NetSage has quit [Read error: Connection reset by peer]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
zacts has joined #ruby
ngscheur1 has quit [Ping timeout: 265 seconds]
sepp2k has quit [Quit: Leaving.]
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vile` has joined #ruby
SteenJobs has quit [Ping timeout: 276 seconds]
<wrkrcoop>
hi
<wrkrcoop>
i’ve been programming for almost 2 years now …
NetSage has joined #ruby
<wrkrcoop>
what should i focus on to be an excellent programmer? im thinking i should get really good at algorithms, data structures, and software design …
zacts has quit [Ping timeout: 244 seconds]
koooge has joined #ruby
<wrkrcoop>
then learn assembly and c
<baweaver>
The ability to use Google to find the answer to common questions.
dhollinger has quit [Ping timeout: 264 seconds]
<wrkrcoop>
i dont trust quora
<baweaver>
There are several good posts already written on the subject
<baweaver>
ok, then your advice is to get over that
<baweaver>
or find something on StackOverflow
<wrkrcoop>
im looking for the kind of advice youd get from someone who doesn’t post on those sites
shmuli has quit [Remote host closed the connection]
<baweaver>
well that's exactly what I am
<baweaver>
and I'm telling you to trust those sites.
<baweaver>
There's a wealth of experience, and thumbing your nose at them is ignorant
pawnbox has joined #ruby
Puffball has quit [Remote host closed the connection]
byteflame has quit [Ping timeout: 252 seconds]
<wrkrcoop>
the thing is the answers are never very insightful, right? when you read those answers you think ‘hmm learned nothing new here'
<wrkrcoop>
just sayin
cyphase has quit [Ping timeout: 264 seconds]
UserOO7 has quit [Read error: Connection reset by peer]
<baweaver>
They're plenty insightful. It's just that there's no such thing as an absolute guide to success.
<baweaver>
Anyone who says differently is selling something
byteflame has joined #ruby
<wrkrcoop>
that’s the problem, to get the good answers you gotta pay $
<baweaver>
the problem is that you seem to be convinced the free ones aren't good.