arBmind1 has quit [Read error: Connection reset by peer]
arBmind has joined #ruby-lang
diegovio1 is now known as diegoviola
<ledestin>
ruby-lang760: it looks like shell mixed with Ruby
<ruby-lang760>
ledestin: I want to execute a bash command
bruno- has joined #ruby-lang
<yorickpeterse>
morning
alexju has quit [Remote host closed the connection]
joonty has joined #ruby-lang
<ljarvis>
moin
simoz1111116 has quit [Ping timeout: 240 seconds]
francisfish has joined #ruby-lang
<ruby-lang760>
ledestin: any idea?
<ledestin>
ruby-lang760: why do you need Ruby for that in the first place?
vintik has quit [Remote host closed the connection]
fjfish has joined #ruby-lang
francisfish has quit [Read error: Connection reset by peer]
<ledestin>
in Ruby backticks run a command, if you need text it prints on stdout
<ledestin>
e.g. `ls`
knu has joined #ruby-lang
<ledestin>
crap, I don’t remember if that’s Ruby or bash
<ledestin>
yep, it’s Ruby too
arBmind has quit [Quit: Leaving.]
<ruby-lang760>
ledestin: i want to get the available space of a filesystem within a ruby script. the recommended way is to do that with the df command from bash
<ledestin>
ruby-lang760: well, perhaps, that’s a good way, though not very cross-platform
<Mon_Ouie>
Your ruby syntax is fine, your shell command is just invalid
<ruby-lang760>
ledestin: thats ok. it will only run on 1 os
<ruby-lang760>
Mon_Ouie: would you show me, how it has to be, please
<Mon_Ouie>
I don't know shell well enough. Your backslashes look odd though.
<ruby-lang760>
have a meeting now. so execuse me, please.
knu has quit [Ping timeout: 260 seconds]
scmx has joined #ruby-lang
qba73 has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
kiddorails has joined #ruby-lang
lolmaus has quit [Read error: Connection reset by peer]
arBmind has joined #ruby-lang
ur5us has joined #ruby-lang
tomqq has joined #ruby-lang
qba73 has quit [Read error: Connection reset by peer]
qba73 has joined #ruby-lang
Mellett68 has joined #ruby-lang
mehlah has joined #ruby-lang
kek has joined #ruby-lang
postmodern has quit [Quit: Leaving]
Mellett68_ has quit [Ping timeout: 260 seconds]
marr has joined #ruby-lang
vintik has joined #ruby-lang
workmad3 has joined #ruby-lang
kith_ has joined #ruby-lang
valeri_uF0 has joined #ruby-lang
valeri_ufo has quit [Read error: Connection reset by peer]
valeri_uF0 is now known as valeri_ufo
kith has quit [Disconnected by services]
kith_ is now known as kith
chaos___________ has quit [Ping timeout: 260 seconds]
bruno- has quit [Quit: leaving]
flak has joined #ruby-lang
certainty has quit [Ping timeout: 260 seconds]
vintik has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 240 seconds]
toretore has joined #ruby-lang
rippa has joined #ruby-lang
bruno- has joined #ruby-lang
spinagon has joined #ruby-lang
flak has quit [Ping timeout: 240 seconds]
certainty has joined #ruby-lang
bruno- has quit [Client Quit]
rippa has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby-lang
spinagon has quit [Read error: Connection reset by peer]
spinagon has joined #ruby-lang
Cakey has quit [Ping timeout: 240 seconds]
rippa has joined #ruby-lang
ironhide_604 has joined #ruby-lang
spinagon has quit [Ping timeout: 240 seconds]
francisfish has joined #ruby-lang
fjfish has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 260 seconds]
LBo has quit [Ping timeout: 260 seconds]
mbr has quit [Ping timeout: 260 seconds]
gregf_ has quit [Ping timeout: 260 seconds]
diegovio1 has joined #ruby-lang
diegoviola has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby-lang
gregf_ has joined #ruby-lang
LBo has joined #ruby-lang
mbr has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby-lang
sferik has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
kek has quit [Remote host closed the connection]
kek has joined #ruby-lang
kek has quit [Client Quit]
kiddorails has joined #ruby-lang
diegovio1 is now known as diegoviola
kek has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
kiddorails has joined #ruby-lang
Miphix has quit [Quit: Leaving]
skade has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
kiddorails has quit [Remote host closed the connection]
kiddorails has joined #ruby-lang
kyb3r_ has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 240 seconds]
symm- has joined #ruby-lang
sferik has quit [Remote host closed the connection]
superduperfreeno has quit [Ping timeout: 264 seconds]
sferik has joined #ruby-lang
klaNath has quit [Ping timeout: 240 seconds]
fjfish has joined #ruby-lang
stardiviner has joined #ruby-lang
francisf_ has joined #ruby-lang
francisfish has quit [Ping timeout: 264 seconds]
jxie has quit [Ping timeout: 256 seconds]
fjfish has quit [Ping timeout: 240 seconds]
jxie has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
Fushi has joined #ruby-lang
tomqq has quit [Remote host closed the connection]
tomqq has joined #ruby-lang
knu has joined #ruby-lang
kiddorails has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
kiddorails has joined #ruby-lang
francisf_ has quit [Ping timeout: 240 seconds]
|jemc|_ has quit [Ping timeout: 256 seconds]
flak has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
kiddorails has joined #ruby-lang
flak has quit [Read error: Connection reset by peer]
flak has joined #ruby-lang
flak has quit [Client Quit]
rippa has quit [Ping timeout: 256 seconds]
tomqq has left #ruby-lang [#ruby-lang]
Tingo1983 has joined #ruby-lang
<ruby-lang760>
Ok, here is something about my problem. But i still don't get it work.
sferik_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has joined #ruby-lang
nathanstitt has joined #ruby-lang
Tingo1983 has quit [Ping timeout: 260 seconds]
skade has quit [Client Quit]
loincloth has joined #ruby-lang
skade has joined #ruby-lang
francisfish has joined #ruby-lang
ddv has quit [Changing host]
ddv has joined #ruby-lang
fjfish has quit [Ping timeout: 240 seconds]
snsei has joined #ruby-lang
chouhoulis has joined #ruby-lang
<ljarvis>
dangerousdave: huh?
<ljarvis>
most rubyist than passing multiple arguments to a method?
<ljarvis>
rubyesque*
Tingo1983 has joined #ruby-lang
tbuehlmann has quit [Quit: Leaving]
symm- has quit [Ping timeout: 240 seconds]
tdy has quit [Remote host closed the connection]
chouhoulis has quit []
fjfish has joined #ruby-lang
sferik has joined #ruby-lang
francisfish has quit [Ping timeout: 240 seconds]
mbj has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
francisfish has joined #ruby-lang
touzin1 has joined #ruby-lang
fjfish has quit [Ping timeout: 260 seconds]
fjfish has joined #ruby-lang
chouhoulis has joined #ruby-lang
<yorickpeterse>
dangerousdave: Yes
<yorickpeterse>
dangerousdave: Use dependency injection
<yorickpeterse>
dangerousdave: and factories
<yorickpeterse>
maloik: you muppet, there's nothing on line 11
<yorickpeterse>
maloik: "be rspec spec/models/candidacy_spec.rb:11" <--- file doesn't go until line 9
<yorickpeterse>
errrr "file doesn't have more than 9 lines"
francisfish has quit [Ping timeout: 240 seconds]
jsullivandigs has joined #ruby-lang
<maloik>
I only copied the relevant lines
<jhass>
don't
<maloik>
I've found the issue by now, apparently the block for DatabaseCleaner where they use example.run to run a test wrapped in a DBCleaner transaction was only added in 1.3 and we're on 1.2
<maloik>
just weird that it didn't throw any errors whatsoever, just let everything pass
mbj has left #ruby-lang [#ruby-lang]
qq17 has quit [Ping timeout: 240 seconds]
scampbell has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
skade has joined #ruby-lang
qq17 has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
kiddorails has joined #ruby-lang
<yorickpeterse>
maloik: meh, don't use database cleaner
kiddorails has quit [Remote host closed the connection]
kiddorails has joined #ruby-lang
<yorickpeterse>
Clean up your DB shit after your tests, save yourself the performance penalty and extra code to worry about
<yorickpeterse>
or do something like `config.before(:suite) { ActiveRecord::Base.subclasses.each(&:delete_all) }`
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
kwd has quit [Quit: Leaving.]
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
tylersmith has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby-lang
Jam has joined #ruby-lang
Jam is now known as Guest17043
AncientAmateur has quit [Remote host closed the connection]
sharpmachine has joined #ruby-lang
tylersmith has joined #ruby-lang
Tingo1983 has quit [Ping timeout: 240 seconds]
tylersmith has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
solars has quit [Ping timeout: 256 seconds]
AKASkip has quit [Ping timeout: 240 seconds]
cornerma1 has joined #ruby-lang
mistym has joined #ruby-lang
|jemc| has joined #ruby-lang
<ljarvis>
D:
matp has quit [Quit: ZZZzzz…]
apeiros has quit [Ping timeout: 240 seconds]
sdouglas has quit [Remote host closed the connection]
cornerman has quit [Ping timeout: 240 seconds]
AncientAmateur has joined #ruby-lang
theharshest has quit [Quit: This computer has gone to sleep]
mistym has quit [Remote host closed the connection]
qba73 has quit []
monees has joined #ruby-lang
shinnya has quit [Ping timeout: 260 seconds]
flak has joined #ruby-lang
momomomomo has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kiddorails has quit [Remote host closed the connection]
flak has quit [Read error: Connection reset by peer]
sferik has joined #ruby-lang
mistym has joined #ruby-lang
ironhide_604 has quit [Ping timeout: 264 seconds]
mustmodify has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
<mustmodify>
I'm trying to compare how long it takes to start irb on two machines... just as a smoke test. I've done this before and can't seem to put together how I did it. Something like `irb < echo 'exit'` ...
sarkyniin has quit [Quit: Quitte]
AncientAmateur has quit [Remote host closed the connection]
<pabs>
mustmodify: probably time irb < /dev/null
emmesswhy has joined #ruby-lang
CaptainJet has joined #ruby-lang
<mustmodify>
clever.
mustmodify has left #ruby-lang [#ruby-lang]
francisfish has joined #ruby-lang
touzin1 has quit [Ping timeout: 256 seconds]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fjfish has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
kaiserpathos has joined #ruby-lang
saarinen has joined #ruby-lang
khaase has quit [Remote host closed the connection]
khaase has joined #ruby-lang
sdouglas has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
luiz_lha has joined #ruby-lang
ascarter has joined #ruby-lang
MikaAK1 has joined #ruby-lang
khaase has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby-lang
bruno- has quit [Ping timeout: 240 seconds]
Guest17043 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sferik has joined #ruby-lang
bruno- has joined #ruby-lang
theharshest has joined #ruby-lang
MikaAK2 has joined #ruby-lang
theharshest has quit [Read error: Connection reset by peer]
danijoo has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 272 seconds]
danijoo has joined #ruby-lang
theharshest has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AncientAmateur has joined #ruby-lang
vsorlov has joined #ruby-lang
vsorlov has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
AncientAmateur has quit [Ping timeout: 240 seconds]
__butch__ has joined #ruby-lang
mustmodify has joined #ruby-lang
araujo has joined #ruby-lang
sdouglas has quit [Ping timeout: 264 seconds]
Cakey has quit [Ping timeout: 264 seconds]
<mustmodify>
I'm just learning about profiling, so I need a push. I have these two profiles... one of Rails startup for dev, one for production. The top line is an obvious red flag: Array::== takes 3.32s in dev, 44s in production. But now what? How do I figure out what's calling Array::== ?
sdouglas has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<workmad3>
mustmodify: first you need to figure out from the profile report if it's a single call to '==' that's taking 44s or if that's total time spent there in the profile run
<mustmodify>
workmad3: I noticed that there were a few more calls in production than in dev... so you're right... it could be one super-slow call... though other evidence suggests everything in production is about 2x slower. :(
<workmad3>
mustmodify: is that while loading?
<mustmodify>
workmad3: so how do I do that? I don't really have visibility into why it's starting up the way it's starting up.
<mustmodify>
workmad3: yes, this is just wrapped around config/environment.rb
<mustmodify>
which seems to just be init.
<mustmodify>
stuff
saarinen has quit [Quit: saarinen]
<workmad3>
mustmodify: because rails production does load more slowly... because it eager-loads all the code
<mustmodify>
less bunder
<mustmodify>
workmad3: Ah, nice try. I set dev to eager load so it's apples to apples.
<workmad3>
heh ;)
<workmad3>
mustmodify: how about anything in your codebase or initializers that's loading data out the database in production?
<workmad3>
mustmodify: or even in dev, but with the prod db I'd expect that to take longer (more data) ;)
yatish27 has joined #ruby-lang
<mustmodify>
workmad3: it's true, there is more data in production. I tailed the log looking for that and didnt' see anything. But now that I think about it, I'm not sure Rails logs SQL in production...
<workmad3>
it doesn't ;)
<mustmodify>
so that may have been a false negative.
<mustmodify>
one interesting thing is that vim seems to take one to two seconds to pull up files in production... small config files. However, a quick test of file load times shows production is only a hair slower in loading files..... 2e-4 instead of 8e-5 locally... and I have SSDs. So I suspect the slowness is coming from a wide variety of places, but every time I look to verify my thinking, as with the files, I come up short.
Cakey has joined #ruby-lang
AncientAmateur has joined #ruby-lang
<workmad3>
mustmodify: is that a factor of 10 increase for *each* file?
ascarter has joined #ruby-lang
<workmad3>
(or rather, a factor of 40)
francisfish has quit [Remote host closed the connection]
kek has quit [Ping timeout: 260 seconds]
MikaAK3 has joined #ruby-lang
<banisterfiend>
workmad3 'alut
<workmad3>
banisterfiend: o/
MikaAK2 has quit [Quit: node-irc says goodbye]
<banisterfiend>
workmad3 do you have any experience setting up VPNs ?
francisfish has joined #ruby-lang
<workmad3>
not particularly
<mustmodify>
Well, that's me timing how long it takes to load one config file from irb.
luiz_lha has quit [Remote host closed the connection]
<workmad3>
mustmodify: right... so it's possible that your prod server is 40 times slower pulling files off disk...
luiz_lha has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 260 seconds]
kek_ has quit [Ping timeout: 272 seconds]
emmesswhy has quit [Quit: emmesswhy]
matp has joined #ruby-lang
wallerdev has joined #ruby-lang
francisfish has quit [Ping timeout: 272 seconds]
dwknoxy has joined #ruby-lang
MikaAK3 has quit [Quit: node-irc says goodbye]
<mustmodify>
workmad3: 20 / 8 is more like 2.5, but yes, slower.
mistym has joined #ruby-lang
<mustmodify>
ok, it's not a database issue.
dik_dak has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
<mustmodify>
I changed the log level and found and remove the two places it was making db calls.
kaiserpathos has quit []
<workmad3>
mustmodify: ah yeah, did my maths the wrong way around... :)
djbkd has joined #ruby-lang
apeiros has joined #ruby-lang
khaase has joined #ruby-lang
khaase has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
duderonomy has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
<mustmodify>
so for instance, bundler setup takes 1.5s locally and 3.48s on the server...
loincloth has quit [Remote host closed the connection]
<mustmodify>
so I'm assuming that's pretty much all because of the difference in loading files.
yfeldblum has joined #ruby-lang
mikecmpbll has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shinnya has joined #ruby-lang
yatish27 has quit [Ping timeout: 260 seconds]
vintik has joined #ruby-lang
wallerdev has joined #ruby-lang
nofxx has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
heftig has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
Cakey has quit [Ping timeout: 260 seconds]
vintik has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
touzin1 has joined #ruby-lang
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby-lang
vintik has joined #ruby-lang
ayonkhan has joined #ruby-lang
tbuehlmann has joined #ruby-lang
sferik has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
postmodern has joined #ruby-lang
postmodern has quit [Changing host]
postmodern has joined #ruby-lang
neurodev has joined #ruby-lang
havenwood has joined #ruby-lang
MikaAK has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
saarinen has joined #ruby-lang
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
rramphal has joined #ruby-lang
rramphal has left #ruby-lang [#ruby-lang]
rramphal has joined #ruby-lang
rramphal has quit [Client Quit]
monees has quit [Ping timeout: 264 seconds]
heftig has quit [Quit: Quitting]
Miphix has quit [Quit: Leaving]
pixelhandler has joined #ruby-lang
loincloth has joined #ruby-lang
djbkd has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
centrx has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
centrx is now known as BigCo
yfeldblum has joined #ruby-lang
BigCo is now known as centrx
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
relix_ has joined #ruby-lang
relix has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby-lang
acknowledge has joined #ruby-lang
AKASkip has joined #ruby-lang
momomomomo has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arBmind has quit [Quit: Leaving.]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby-lang
malconis has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
Cakey has joined #ruby-lang
malconis has quit [Remote host closed the connection]
malconis has joined #ruby-lang
spastorino has joined #ruby-lang
yfeldblu_ has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby-lang
mistym has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
Cakey has quit [Ping timeout: 256 seconds]
AndChat-30900 has joined #ruby-lang
opaboy has joined #ruby-lang
AndChat-30900 has quit [Read error: Connection reset by peer]
opaboy is now known as _opaaaa_
solars has joined #ruby-lang
<_opaaaa_>
Hello guys, I'm new here, where do I can find some project to help?
karamazov has quit [Remote host closed the connection]
_opaaaa_ has quit [Read error: Connection reset by peer]
opaboy has joined #ruby-lang
AndChat|30900 has joined #ruby-lang
opaboy has quit [Read error: Connection reset by peer]
<mustmodify>
How long have you been working with Ruby?
mistym has quit [Remote host closed the connection]
dik_dak has quit [Quit: Leaving]
sepp2k has joined #ruby-lang
mistym has joined #ruby-lang
opaboy has joined #ruby-lang
AndChat|30900 has quit [Read error: Connection reset by peer]
AndChat|30900 has joined #ruby-lang
opaboy has quit [Read error: Connection reset by peer]
AndChat|30900 is now known as _opaaaa_
<centrx>
_opaaaa_, Look at the issue tracker for the projects you use, see if you can fix something, submit a patch
_opaaaa_ has quit [Read error: Connection reset by peer]
<centrx>
and...it's gone
opaboy has joined #ruby-lang
<centrx>
_opaaaa_, Look at the issue tracker for the projects you use, see if you can fix something, submit a patch
futilegames has joined #ruby-lang
MikaAK1 has quit [Ping timeout: 256 seconds]
futilegames has quit [Client Quit]
MikaAK has quit [Ping timeout: 264 seconds]
monees has joined #ruby-lang
chouhoulis has quit [Read error: Connection reset by peer]
chouhoul_ has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
__butch__ has quit [Quit: Leaving.]
<opaboy>
Centx, is it possible? So, I can fix something in Rails E.g., can I?
<opaboy>
Really great
Sirupsen has joined #ruby-lang
sarkyniin has joined #ruby-lang
sarkyniin has quit [Client Quit]
__butch__ has joined #ruby-lang
<centrx>
opaboy, Yes. The Rails issues may be more tricky than other projects because Rails already has many contributors.
karamazov has joined #ruby-lang
<centrx>
It is certainly one of the most popular Ruby projects, if not the most popular
<centrx>
By the same token however, it also has many many issues that need fixing.