apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
boxmein has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
Xeago has quit [Remote host closed the connection]
TheNotary has quit [Quit: Leaving]
Deele has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
DanKnox_away is now known as DanKnox
rubyracer has quit [Quit: Konversation terminated!]
Mars`_ has quit [Remote host closed the connection]
kurt211 has joined #ruby
drumsrgr8forn8 has joined #ruby
baroquebobcat has joined #ruby
DanKnox is now known as DanKnox_away
Mars` has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
kurt21 has quit [Ping timeout: 272 seconds]
tjbarber has quit [Ping timeout: 272 seconds]
zachrab has quit [Remote host closed the connection]
Ox6abe has joined #ruby
zachrab has joined #ruby
SeySayux has quit [Ping timeout: 248 seconds]
drocsid has quit [Quit: Lost terminal]
Deele has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
kayloos has quit [Remote host closed the connection]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
jlast has quit [Remote host closed the connection]
SeySayux has joined #ruby
VTLob has quit [Quit: VTLob]
rylev has joined #ruby
mercwith1mouth has quit [Ping timeout: 240 seconds]
GeissT has joined #ruby
ce_afk is now known as cescalante
zachrab has quit [Ping timeout: 272 seconds]
kayloos_ has joined #ruby
kayloos_ has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
sedeki has joined #ruby
rylev has quit [Ping timeout: 272 seconds]
xk_id has quit [Quit:
baroquebobcat has joined #ruby
taternuts has joined #ruby
cescalante is now known as ce_afk
DonRichie has quit [Ping timeout: 240 seconds]
DonRichie has joined #ruby
jrhe has quit [Quit: jrhe]
razi has quit [Read error: Connection reset by peer]
razi1 has joined #ruby
postmodern has joined #ruby
rgoodwin has joined #ruby
apeiros has joined #ruby
mklappstuhl has joined #ruby
sedeki has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
kevinykchan has joined #ruby
Mars` has joined #ruby
bricker`LA has joined #ruby
Mars` has quit [Remote host closed the connection]
wallerdev has joined #ruby
Ren^ has quit [Ping timeout: 240 seconds]
Mars` has joined #ruby
horofox has joined #ruby
kofno has quit [Ping timeout: 265 seconds]
horofox has quit [Client Quit]
rylev has joined #ruby
ce_afk is now known as cescalante
Mars` has quit [Ping timeout: 272 seconds]
brennanMKE has joined #ruby
Memphizzzzzz has joined #ruby
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Memphizzzzzz> Can anyone help me install this: http://linuxpurist.com/how-to-use-google-from-command-line-a-tutorial-by-kerrick/? The command install google does not work...
baroquebobcat has quit [Quit: baroquebobcat]
wykydtron has joined #ruby
habstinat has quit [Ping timeout: 272 seconds]
<bnagy> might mean gem install google
peterhu has joined #ruby
cescalante is now known as ce_afk
kunday has joined #ruby
<Memphizzzzzz> bnagy: ok its "Building native extensions..."
xiphias has quit [Ping timeout: 240 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
kofno has joined #ruby
<Memphizzzzzz> bnagy: nice it works :) thanks
<bnagy> np
peterhu has quit [Ping timeout: 272 seconds]
travisjeffery has joined #ruby
ehaliewicz has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
endash has joined #ruby
jdenen has joined #ruby
bluepojo has joined #ruby
jdenen has quit [Remote host closed the connection]
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
aryaching has quit []
mklappstuhl has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
bricker`LA has quit [Read error: Connection reset by peer]
bricker`LA has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
chxane has quit [Quit: Leaving]
eka has joined #ruby
mklappstuhl has quit [Ping timeout: 272 seconds]
einarj has joined #ruby
vxxr has joined #ruby
jibi has quit [Quit: .]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
fwmath has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
taternuts has quit []
razi1 has quit [Read error: Operation timed out]
kaspergrubbe has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
xiphias has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
senayar has joined #ruby
kevinykchan has joined #ruby
Mars` has joined #ruby
kaspergrubbe has joined #ruby
baroquebobcat has joined #ruby
kaspergr_ has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
funburn has quit [Ping timeout: 272 seconds]
kunday has quit [Remote host closed the connection]
bobthenameless has quit [Read error: Connection reset by peer]
senayar has quit [Ping timeout: 252 seconds]
Ox6abe has quit [Remote host closed the connection]
funburn has joined #ruby
Ox6abe has joined #ruby
kofno has quit [Ping timeout: 246 seconds]
jrhe has joined #ruby
Lewix has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
Ox6abe has quit [Ping timeout: 240 seconds]
sniffingcats has joined #ruby
Moogly2012_ has joined #ruby
kofno has joined #ruby
brennanMKE has quit [Remote host closed the connection]
fgo has joined #ruby
kobain has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Greg___ has joined #ruby
Mars` has quit [Remote host closed the connection]
agjacome has quit [Quit: leaving]
cody-- has joined #ruby
Mars` has joined #ruby
ukd1 has joined #ruby
Moogly2012_ has quit [Ping timeout: 240 seconds]
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
funburn has quit [Read error: Connection reset by peer]
Mars` has quit [Ping timeout: 245 seconds]
Mars`_ has joined #ruby
funburn has joined #ruby
ukd1 has quit [Ping timeout: 240 seconds]
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sniffingcats has quit [Quit: Til rivido Idisti!]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
rylev has quit [Ping timeout: 272 seconds]
senayar has joined #ruby
peterhu has joined #ruby
Greg___ has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
Hanmac1 has joined #ruby
Ren^ has joined #ruby
ace_striker has joined #ruby
hanmac has quit [Ping timeout: 252 seconds]
amacgregor has quit [Read error: Connection reset by peer]
peterhu has quit [Ping timeout: 240 seconds]
funburn has quit [Quit: funburn]
rjhunter has joined #ruby
zigomir has quit [Ping timeout: 248 seconds]
Seich has quit [Quit: Computer has gone to sleep.]
Seich has joined #ruby
pwh has quit []
wow000 has joined #ruby
Seich has quit [Ping timeout: 245 seconds]
fgo has quit [Remote host closed the connection]
habstinat has joined #ruby
lunarjar has quit [Ping timeout: 264 seconds]
lunarjar has joined #ruby
fwmath has quit [Ping timeout: 240 seconds]
Deele has quit [Ping timeout: 260 seconds]
radic has quit [Disconnected by services]
radic_ has joined #ruby
<weeb1e> Does anyone have a better suggestion than using ruby-prof for profiling long running ruby 1.9.3 applications?
<bnagy> use jruby
<weeb1e> If I restart ruby-prof every 20 seconds and log the result it can block for many seconds while processing the result, which is an issue for a reactor based application
<bnagy> the java profiling tools are awesome
<weeb1e> That is not an option bnagy
uokesita has quit [Quit: Leaving]
volty has quit [Quit: Konversation terminated!]
<weeb1e> I need something that would work with MRI, if using another implementation were an option, I would be using rubinius, not jruby
ereslibre has quit [Ping timeout: 245 seconds]
ukd1 has joined #ruby
endash has quit [Quit: endash]
Deele has joined #ruby
zz_michael_mbp is now known as michael_mbp
katsrc has joined #ruby
Tarential has quit [Excess Flood]
Tarential has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
nemysis has quit [Read error: Connection reset by peer]
x684867 has joined #ruby
<weeb1e> I was hoping for a slightly more ruby tailored profiling solution, rather than having to resort to gdb RubyPanther
parzo has joined #ruby
<RubyPanther> weeb1e: yeah, consider it a worst case possibility
<RubyPanther> I think there might be a commercial one x.x
nemysis has joined #ruby
<ace_striker> morning folks
uokesita_ has joined #ruby
zz_tsykoduk is now known as tsykoduk
<weeb1e> RubyPanther: Did you just swear in #ruby?
rjhunter has quit [Remote host closed the connection]
<RubyPanther> sorry, I won't do it again
<uokesita_> whY can't i write on thi channel?
ukd1 has quit [Ping timeout: 272 seconds]
<weeb1e> This looks promising
Seich has joined #ruby
<uokesita_> I was getting Cannot send to channel
astrobunny has joined #ruby
<weeb1e> Very promising in fact
<weeb1e> I'm surprised this gem is not more well known
x684867 has quit [Ping timeout: 265 seconds]
echevemaster has joined #ruby
<weeb1e> I have done a lot of research into MRI profilers in the past, and this is the first time I have come across it
<RubyPanther> That's where I stole my extconf.rb options
<weeb1e> "perftools samples your process using setitimer() so it can be used in production with minimal overhead."
<weeb1e> A dream come true
<RubyPanther> I don't actually use the profiler, but perftools has great code examples! lol
<weeb1e> Haha
<weeb1e> Lets hope it doesn't segfault my application like ruby-prof did
<bnagy> wonder if you can use >2 set_trace_func to hack a sampling MRI profiler
T_T has joined #ruby
T_T has quit [Read error: Connection reset by peer]
cody-- has quit [Quit: derp]
T_T has joined #ruby
Jdubs_ has quit [Remote host closed the connection]
marcdel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tsykoduk is now known as zz_tsykoduk
blarghmatey_ has joined #ruby
astrobunny has quit [Ping timeout: 246 seconds]
lyanchih has joined #ruby
osvico has quit [Ping timeout: 240 seconds]
ChronocityLC has quit [Ping timeout: 264 seconds]
astrobunny has joined #ruby
freerobby has joined #ruby
zz_tsykoduk is now known as tsykoduk
mobileblue has quit [Ping timeout: 252 seconds]
lukec has quit [Quit: lukec]
Biohazard has quit [Ping timeout: 245 seconds]
bio has joined #ruby
Siecje has joined #ruby
mobileblue has joined #ruby
brennanMKE has joined #ruby
mrsolo has joined #ruby
larissa has quit [Quit: Leaving]
gr33n7007h has joined #ruby
tsykoduk is now known as zz_tsykoduk
astrobun_ has joined #ruby
peterhu has joined #ruby
<weeb1e> perftools.rb does indeed seem to be the profiler on my dreams, I recommend everyone starts using it immediately :)
petey has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
Alina-malina has quit [Ping timeout: 245 seconds]
Siecje has left #ruby [#ruby]
obs has joined #ruby
lyanchih has quit [Quit: lyanchih]
petey has quit [Ping timeout: 272 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
jrhe has quit [Quit: jrhe]
Davey has joined #ruby
blarghmatey_ has quit [Ping timeout: 246 seconds]
aapzak has quit [Read error: Operation timed out]
kofno has quit [Ping timeout: 252 seconds]
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aapzak has joined #ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
DonRichie has quit [Quit: Verlassend]
ace_striker has quit [Ping timeout: 250 seconds]
michael_mbp is now known as zz_michael_mbp
Siecje has joined #ruby
<Siecje> I'm trying to install rails but I get this error when I do rvm requirements https://dpaste.de/w3mb
<popl> Siecje: you probably want #rubyonrails
DanKnox_away is now known as DanKnox
kofno has joined #ruby
ereslibre has quit [Ping timeout: 245 seconds]
<Siecje> sweet thanks I was in rails and it was not very popular
iamjarvo has joined #ruby
dagnachew has joined #ruby
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
ukd1 has joined #ruby
Mars`_ has quit [Remote host closed the connection]
Mars` has joined #ruby
pragmatism has quit [Quit: Peace]
dagnachew has quit [Quit: Leaving]
dagnachew has joined #ruby
iamjarvo has quit [Remote host closed the connection]
<joshAnderson99> just hopped over from #rubygems. having problems installing ruby-debug in windows ruby 2.0. if anyone around at this time that has any familiarity with this, would appreciate any comments.
iamjarvo has joined #ruby
obs has quit [Quit: Konversation terminated!]
dagnachew has quit [Client Quit]
mrsolo has quit [Quit: This computer has gone to sleep]
dagnachew has joined #ruby
ukd1 has quit [Ping timeout: 240 seconds]
Mars` has quit [Ping timeout: 240 seconds]
muh has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
Xaitec has joined #ruby
Siecje has left #ruby [#ruby]
postmodern has quit [Quit: Leaving]
stefff has quit [Ping timeout: 272 seconds]
cainus has joined #ruby
poisonarms has joined #ruby
mlpinit_ has joined #ruby
<cainus> Can anyone tell a ruby-n00b what to do when `sudo bundle` keeps saying: /usr/local/bin/bundle:9:in `require': no such file to load -- rubygems (LoadError) ??
mrsolo has joined #ruby
<cainus> i've tried it with and without rvm on ubuntu, including following about 14 stack overflow suggestions
rjhunter has joined #ruby
neaer has quit []
ce_afk is now known as cescalante
mlpinit has quit [Ping timeout: 240 seconds]
<popl> is that the entire error message?
mlpinit_ has quit [Ping timeout: 246 seconds]
Lewix has quit [Remote host closed the connection]
<cainus> sorry... one more line: from /usr/local/bin/bundle:9
<cainus> but if it is, the solutions don't work
uokesita_ has quit [Quit: This computer has gone to sleep]
T_T has quit [Remote host closed the connection]
T_T has joined #ruby
Lewix has joined #ruby
roadt has joined #ruby
ericmathison has quit [Ping timeout: 252 seconds]
Seich has quit [Quit: Lingo - http://www.lingoirc.com]
<roadt> hi, is any library to assist build rails model-like interface to a arbitrary xml service? (i mean, maybe not soap service, i.e. not standard xml service. e.g. proprietary xml service .etc..)
tomzx_mac has joined #ruby
sam113101 is now known as sam113101_afk
cescalante is now known as ce_afk
T_T has quit [Ping timeout: 272 seconds]
sam113101_afk is now known as sam113101
<roadt> activeresource only works for REST-xml-interface. wonder if any similar library to design for communicate to configurable xml servcie.
<jrobeson> activemodel ?
ereslibre has joined #ruby
ereslibre has joined #ruby
<roadt> yes, activemodel seems must be. but any library to communicate to configurable xml service? ideally there is some DSL abstraction to define a xml service, so that it is easy to integrate the service to activemodel..
eka has quit [Quit: Computer has gone to sleep.]
Xaitec has quit [Remote host closed the connection]
DanKnox is now known as DanKnox_away
astrobun_ has quit [Ping timeout: 245 seconds]
Xaitec has joined #ruby
ewnd9_ has joined #ruby
katsrc has quit [Remote host closed the connection]
mary5030 has joined #ruby
astrobunny has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
Greg___ has joined #ruby
ereslibre has quit [Ping timeout: 264 seconds]
funburn has joined #ruby
kaspergrubbe has quit [Ping timeout: 272 seconds]
jeffdb has quit [Quit: jeffdb]
bluepojo has quit [Ping timeout: 240 seconds]
bluepojo has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
Greg___ has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
aryaching has joined #ruby
rezzack has joined #ruby
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
dagnachew has quit [Remote host closed the connection]
Xaitec has quit [Remote host closed the connection]
<cainus> wow ruby on ubuntu is a minefield for newbies
<pontiki> cainus: it's really not *that* hard
<cainus> yeah it's silly actually
<cainus> since ubuntu people will have to apt-get remove ruby first
<pontiki> no they won't
<cainus> I had to do it to use rvm without rubygems going to the wrong dir
<r0bgleeson> cainus: sure its a confusing mess
<jrobeson> pontiki, how's it goin?
<pontiki> i'm feeling sick
<jrobeson> :(
<pontiki> fine thing on one's birthday
<jrobeson> !!!!
<pontiki> get yelled at by everyone
<pontiki> and running to the potty
<pontiki> sick of sitting around
<pontiki> missing all my family and friends
<jrobeson> i hope you feel better soon
ukd1 has joined #ruby
<pontiki> and just being all whingey
<cainus> would be easier if aptitude just removed their rubygems package... but ubuntu people will not expect it to be so broken
<jrobeson> i haven't yet had the "pleasure" of being sick on my birthday
<pontiki> also feeling so lonely
<jrobeson> i hope tomorrow is a better day for you.
juni0r has quit [Ping timeout: 260 seconds]
<jrobeson> lonely? nobody to keep you company?
<pontiki> no, cainus, it would be better if you didn't try to install the new ruby as the system ruby
juni0r has joined #ruby
ascci has joined #ruby
<cainus> pontiki: don't see why I shouldn't be able to use the system ruby...
<jrobeson> sounds like a day to snuggle and watch movies or something
ukd1 has quit [Ping timeout: 240 seconds]
<jrobeson> system ruby is fail .. too many differnet projects.. i just stopped bothering
<pontiki> cainus: you can
<pontiki> but it seems everyone gets caught up trying to figure out how
<cainus> k...well when I do, apt-get install rubygems is a dead end
gr33n7007h has quit [Remote host closed the connection]
<pontiki> and changing the system ruby means you'll wind up out of sync with whatever debian and ubuntu decide to do
<cainus> still needs to be installed the rubygems.org way
<pontiki> yet, quite
<pontiki> as it should be
<pontiki> if you want to use apt/dpkg, you have to stay with what deb/ubu gives you
<cainus> right. so the rubygems package on aptitude is a waste of time that people will assume works
Deele has quit [Ping timeout: 260 seconds]
<cainus> it simply doesn't work by all accounts that I've read
<cainus> given that, I agree rvm is the way to go
<pontiki> but if they actually read the ruby pages, they might just go with the suggestion there
<cainus> but if you tried the aptitude way, it's going to be all kinds of fucked afterward
<pontiki> yes indeed
<cainus> come on... if you see a rubygems package in aptitude, you're going to assume it works. not google to make sure
IcyDragon has quit [Quit: Space~~~]
gr33n7007h has joined #ruby
mary5030 has quit [Remote host closed the connection]
Jetchisel has joined #ruby
mary5030 has joined #ruby
DanKnox_away is now known as DanKnox
coldbeer has quit [Quit: leaving]
<pontiki> so convince debian to fix it
parzo has quit [Remote host closed the connection]
parzo has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
parzo has quit [Ping timeout: 252 seconds]
<r0bgleeson> pontiki: youre not being helpful, people have tried to "fix" it, its not a trivial problem but a fundamental disagreement between debian & rubygems.
<pontiki> how can I help?
<cainus> removing the package would be better
ukd1 has joined #ruby
<pontiki> seriously, what would a helpful action be?
<pontiki> i never in any way thought it was trivial
<r0bgleeson> you could start by not having a pissy attitude towards someone being bitten by the clusterfuck that can be installing ruby
<cainus> <pontiki> cainus: it's really not *that* hard
<pontiki> i don't have a pissy attitude
Tearan has joined #ruby
<pontiki> but it sure seems like you have a permanent burr under you bonnet
<r0bgleeson> i dont at all, but you're not being helpful, you're trying to be a smart ass know-it-all, thats how i see almost every single response
<pontiki> cainus: that was not referring the divide between debian and rubygems
<jrobeson> a fundamental disagreement between debian and anybody who doesn't like the way they package things :)
<pontiki> cainus: merely to the ability to actually install a working modern ruby and ecosystem on debain or ubuntu
<pontiki> rob gleeson: you are an ass of immense propotion. do you know that?
<pontiki> rob gleeson, and very unlikely to be able to see anything other than your own ass for it's immenseness
<r0bgleeson> i guess so, don't expect to sooth negativity all over the place and for no one to call you out
DanKnox is now known as DanKnox_away
<cainus> it's a hell of a lot easier on a mac
<pontiki> call me out?
Boohbah has quit [Remote host closed the connection]
<r0bgleeson> "it's not *that* hard", "tell debian to fix it", aren't even replies worth saying
<pontiki> call me out then
<pontiki> those things are not even related, as i just told cainus
<r0bgleeson> people have put serious efforts in trying, much more than a few words on IRC
Boohbah has joined #ruby
<r0bgleeson> its not a simple problem because the two things are at total odds with each other
<pontiki> "it" in the first case refers to have a working modern ruby on your computer
<pontiki> not as the system ruby
<r0bgleeson> uh right ok
<pontiki> right
<cainus> r0bgleeson, what's the aptitude/ubuntu side of the argument?
<pontiki> maybe you can just admit you're mistook what i was saying and get on with things
<cainus> pontiki: but it's precisely hard because of the packaging issue
wesside has quit [Ping timeout: 245 seconds]
<r0bgleeson> pontiki: okay i mistook what youre saying
<r0bgleeson> i really dont care in such bullshit
<pontiki> then why do you wallow in it?
<cainus> and not hard because the package isn't usable, but because if you try the package you get into a difficult-to-revert-from state
<pontiki> cainus: if by "it" in that sentence you are referring to dpkg, then yes it is hard
<r0bgleeson> cainus: so,the issue is that rubygems is packaged at all. it is bundled with MRI 1.9, but debian want to "track" its upgrade through package manager
<cainus> i'm talking about the ruby newbie installation experience on ubuntu. people naturally try the apt packages.
<r0bgleeson> pontiki: i just dont like how you behave, you're not being helpful at all, you haven't said one thing thats actually answered a single question this person has had
<r0bgleeson> you just babble about "doing it wrong", "tell debian"
<r0bgleeson> such nonsense
<r0bgleeson> go get a clue
DanKnox_away is now known as DanKnox
<pontiki> i haven't actually heard a question
<r0bgleeson> i have
<r0bgleeson> answered it too
<pontiki> where?
<r0bgleeson> im not going to read IRC for you
<cainus> r0bgleeson, wonder why they care. it almost seems like rubygems and ruby should just be installed/versioned together... but I'm probably missing some reasons why they're now
<pontiki> oh about what debian's attitude is, yes i see that
<r0bgleeson> and im not going to talk to you anymore either
<pontiki> that helps
<pontiki> oh goodie!! i am so lucky now
ascci has left #ruby [#ruby]
<cainus> \/s/now/not
<r0bgleeson> cainus: debian doesn't see it that way
<r0bgleeson> they go to great lengths to make you not stray off that path
dbRenaud is now known as zz_dbRenaud
<r0bgleeson> even monkey-patch gem update --system (maybe not anymore, thats been a while)
<cainus> debian wouldn't have much choice if ruby and rubygems became bundled together though
agent_white has quit [Quit: leaving]
ukd1 has quit [Ping timeout: 272 seconds]
<r0bgleeson> they are
<cainus> well I mean versioned/updated together as well though
<r0bgleeson> well they're not the same codebase
<cainus> I guess that's a coupling no one wants though
<r0bgleeson> they live separate lives
<cainus> yeah :\
atmosx has quit [Ping timeout: 240 seconds]
<pontiki> yup , solving that problem
<r0bgleeson> at least he/she understands more than "doing it wrong" and "go tell debian" now
aryaching has quit []
tjad has joined #ruby
jeffdb has joined #ruby
pen has quit [Remote host closed the connection]
sevenseacat has joined #ruby
baroquebobcat has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
pen has joined #ruby
ewnd9_ has quit [Remote host closed the connection]
fgh has joined #ruby
ewnd9 has joined #ruby
VictorSK has joined #ruby
parzo has joined #ruby
popl has quit [Read error: Operation timed out]
DanKnox is now known as DanKnox_away
senayar has quit [Ping timeout: 265 seconds]
kaspergrubbe has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
jeffdb has quit [Quit: jeffdb]
VictorSK has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 240 seconds]
parzo has quit [Ping timeout: 252 seconds]
adaoraul has joined #ruby
thehodapp has left #ruby [#ruby]
parzo has joined #ruby
parzo has quit [Remote host closed the connection]
parzo has joined #ruby
stefff has joined #ruby
valesk has joined #ruby
muh has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
mrsolo has joined #ruby
funburn has quit [Quit: funburn]
adaoraul has quit [Quit: leaving]
kreeves has quit [Ping timeout: 252 seconds]
kobain has quit [Ping timeout: 272 seconds]
kobain has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
brennanMKE has quit [Remote host closed the connection]
brennanMKE has joined #ruby
scottstamp has left #ruby ["Leaving"]
brennanMKE has quit [Ping timeout: 272 seconds]
gmas has joined #ruby
kaldrenon has joined #ruby
PragCypher has joined #ruby
kracekumar has joined #ruby
kaldrenon has quit [Ping timeout: 272 seconds]
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
baroquebobcat has quit [Quit: baroquebobcat]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
apeiros_ has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
tjad_ has joined #ruby
fgo has quit [Remote host closed the connection]
tjad has quit [Ping timeout: 272 seconds]
guilherme_ has joined #ruby
chxane has joined #ruby
chxane has quit [Read error: Connection reset by peer]
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
guilherme_ has quit [Client Quit]
guilherme_ has joined #ruby
baroquebobcat has joined #ruby
peterhu has quit [Ping timeout: 272 seconds]
robertjpayne has joined #ruby
guilherme_ has quit [Ping timeout: 246 seconds]
haxrbyte_ has quit [Ping timeout: 248 seconds]
teapop has joined #ruby
nitrix has joined #ruby
nitrix has left #ruby ["WeeChat 0.4.1"]
apeiros_ has quit [Remote host closed the connection]
apeiros has joined #ruby
fgo has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
bricker`LA has quit [Ping timeout: 246 seconds]
tomzx_mac has quit [Read error: Operation timed out]
xerxas has quit [Ping timeout: 264 seconds]
apeiros has quit [Ping timeout: 265 seconds]
cookcode has joined #ruby
gr33n7007h has quit [Quit: Where's John Conner]
advorak has joined #ruby
WillAmes has quit [Remote host closed the connection]
byprdct has joined #ruby
byprdct has quit [Client Quit]
<advorak> https://gist.github.com/advorak/309c8e8b6aee661ad594 -- I am trying to match, essentially, /<div>.*?</table>/m in nokogiri ... is there a way do do this with xpath, to return the table and the preceding div, or must I perform a bunch parent_node and previous_sibling methods?
WillAmes has joined #ruby
kracekumar has quit [Quit: Computer has gone to sleep.]
guns has joined #ruby
teapop has quit []
freerobby has quit [Quit: Leaving.]
teapop has joined #ruby
lukec has joined #ruby
fgo has quit [Remote host closed the connection]
teapop has quit [Client Quit]
teapop has joined #ruby
ce_afk is now known as cescalante
nisstyre has joined #ruby
adeponte has joined #ruby
osvico has joined #ruby
ChronocityLC has joined #ruby
zz_michael_mbp is now known as michael_mbp
wildroman has joined #ruby
NinjaPenguin_ has joined #ruby
NinjaPenguin has quit [Ping timeout: 245 seconds]
alexju_ has joined #ruby
cescalante is now known as ce_afk
ereslibre has joined #ruby
ereslibre has joined #ruby
michael_mbp is now known as zz_michael_mbp
peterhu has joined #ruby
alexju has quit [Ping timeout: 272 seconds]
valesk has quit [Ping timeout: 272 seconds]
ereslibre has quit [Ping timeout: 245 seconds]
wildroman has quit [Read error: Connection reset by peer]
petey has joined #ruby
wildroman has joined #ruby
maroloccio has quit [Ping timeout: 240 seconds]
rrichardsr3 has joined #ruby
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
petey has quit [Ping timeout: 265 seconds]
wildroman has quit [Ping timeout: 246 seconds]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
lukec has quit [Quit: lukec]
fgo has joined #ruby
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
rrichardsr3 has quit [Ping timeout: 272 seconds]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
ce_afk is now known as cescalante
mityaz has joined #ruby
decoponio has joined #ruby
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
wesside has joined #ruby
bradhe has joined #ruby
Ren^ has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 245 seconds]
crus has joined #ruby
kracekumar has quit [Ping timeout: 256 seconds]
crus` has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
kobain has quit []
alexju_ has quit [Remote host closed the connection]
alexju has joined #ruby
cescalante is now known as ce_afk
crus has quit [Ping timeout: 245 seconds]
jhn has quit [Ping timeout: 272 seconds]
Macaveli has joined #ruby
alexju has quit [Ping timeout: 245 seconds]
wesside has quit [Ping timeout: 240 seconds]
Jdubs has joined #ruby
zz_michael_mbp is now known as michael_mbp
wesside has joined #ruby
ereslibre has joined #ruby
<shaileshg_> Hi, I am trying to read certificate.cer to fetch public key for encrypting data in ruby, but it is showing nested asn1 error error. Can anyone help with it?
<shaileshg_> Here is the gist to it
<shaileshg_> ?
Tearan has quit [Quit: Sleepy Badger....]
jeffdb has joined #ruby
Tearan has joined #ruby
[gnubie] has joined #ruby
Tearan has quit [Client Quit]
* [gnubie] waves
<shaileshg_> hello?
baroquebobcat has quit [Quit: baroquebobcat]
<[gnubie]> how do you convert this command to ruby? => free -m | grep Mem | awk -F " " '{ print $2 }'
<[gnubie]> or anyone can give me a hint what should i do to use this kind of regex?
ereslibre has quit [Ping timeout: 245 seconds]
<shaileshg_> gnubie: I don't know how to solve your problem.. but cud you have a look at mine.
brennanMKE has joined #ruby
wesside has quit [Ping timeout: 240 seconds]
nisstyre has quit [Quit: Leaving]
fgo has joined #ruby
mklappstuhl has joined #ruby
jeffdb has quit [Quit: jeffdb]
<[gnubie]> shaileshg_: i'm a newbie. i am trying to convert my shell script to ruby hoping to learn it.
<shaileshg_> gnubie: okay.. no problem
wesside has joined #ruby
<shaileshg_> I am not sure where I am going wrong
Xeago has joined #ruby
Ren^ has joined #ruby
wallerdev has quit [Quit: wallerdev]
brennanMKE has quit [Ping timeout: 245 seconds]
mklappstuhl has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
relix has joined #ruby
vince_prignano has joined #ruby
mklappstuhl has quit [Ping timeout: 265 seconds]
peterhu has quit [Ping timeout: 245 seconds]
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
ce_afk is now known as cescalante
jeffdb has joined #ruby
adeponte has quit [Remote host closed the connection]
end_guy has quit [Ping timeout: 240 seconds]
ereslibre has quit [Ping timeout: 245 seconds]
cescalante is now known as ce_afk
JohnBat26 has joined #ruby
crus` has quit [Read error: Connection reset by peer]
end_guy has joined #ruby
rezzack has quit [Quit: Leaving.]
crus has joined #ruby
kitak_ has joined #ruby
Xeago_ has joined #ruby
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
Elhu has joined #ruby
Mitchellvanw has joined #ruby
gmas has quit [Ping timeout: 272 seconds]
Lewix_ has joined #ruby
xerxas has joined #ruby
carraroj has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
advorak has quit [Quit: Leaving]
phrozen77 has joined #ruby
<joshAnderson99> hi folks, between ubuntu and mint, either preferable for rails/ruby dev? or anything else, other than arch as i'm not familar at all with the linux world, coming from windows.
jeffdb has quit [Quit: jeffdb]
<joshAnderson99> notice google uses ubuntu, but mint apparently has a slicker interface.
<sevenseacat> for dev, theyre much the same
<sevenseacat> people prefer what they prefer
zigomir has joined #ruby
<joshAnderson99> well, occasionally there might be reasons for preference that are less purely subjective.
<sevenseacat> not in this case
<joshAnderson99> it will probably cure installation issues with ruby? at least some of them i hope.
<sevenseacat> mint is ubuntu, ubuntu is debian, they all use the same packages for ruby which you shouldnt use
<joshAnderson99> shoudln't?
<sevenseacat> yes.
<araujo> from a programming language point of view, not much different between them.. since programming languages these days develop their own tools and even package managers systems for installing libs, plugins, etc...
noname001__ has joined #ruby
<araujo> difference*
Spami has quit [Read error: Connection reset by peer]
carraroj has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
Spami has joined #ruby
<araujo> which you should preferable use as a developer
<joshAnderson99> ok, glad to know it's that open, and there aren't niche distributions with language support bias.
<araujo> certainly, this is something that applies to any language, not only ruby...
<joshAnderson99> sevenseacat: they use the same packages for ruby that i shouldn't use. lost as to what you mean there.
<sevenseacat> you shouldnt use the operating system packages for installing and managing ruby
<joshAnderson99> so there's packages on both systems that should be avoided?
anderson has joined #ruby
<joshAnderson99> ic
<joshAnderson99> command line and gems presumably
<sevenseacat> use something like rvm/ruby-build/ruby-install to manage installation
<joshAnderson99> it's necessary to partition for linux right? unless i use a particular ubuntu dist.
<sevenseacat> same advice for if you were using osx
<sevenseacat> huh?
<joshAnderson99> to create a separation partition, distinct from existing windows ones. i know this isnt strictly ruby, but since you're all using linux, thought i might ask.
<sevenseacat> your linux installer will handle this
wildroman has joined #ruby
Zolo has joined #ruby
<joshAnderson99> yeah but if i have to create a new partition, will have to shuffle files around probably. prefer to avoid this, in which case the ubuntu dist which installs from windows might be preferable. assuming it does actually run from a windows partition. although at small cost in performance apparently.
<sevenseacat> small post in performance and large risk of screwing up your entire system, sure
<sevenseacat> *cost
<sevenseacat> wubi isnt a good idea
<joshAnderson99> it doesn't sound it really does it
<sam113101> man
<sam113101> partition your drive from the live cd
<sam113101> move your files
<sam113101> that's it, you made it!
<sevenseacat> just let the installer shrink the existing partition and make any new ones it requires
fgo has joined #ruby
<joshAnderson99> sam113101: live cd is required also for mint? isn't there a download specifically for it from the mint site?
<sam113101> uh, if he needs to move stuff around it's not going to work
<joshAnderson99> wow, linux has come a long way obviously
guns has quit [Quit: guns]
<sam113101> what do you mean "live cd is required"?
<joshAnderson99> well, as a stop gap measure it might suffice on the remaining space, handling that automatically. but as you say the space issue remains really.
<sevenseacat> what space issue?
<sevenseacat> if you dont have the room to install and use linux, no amount of rearranging files will help you
spider-mario has joined #ruby
<joshAnderson99> have a lot of drive space, but mostly approaching being full. can make some space though.
<sam113101> you should tell us more about your current setup and what you want
<joshAnderson99> ha..
<joshAnderson99> windows user since the start. but having problems getting ruby debugger to install successfully. tried lots of things. pissed against the wind perhaps doing this sort of thing in windows. so figure i might be making life easier by hopping into linux, where the ruby world properly exists.
<joshAnderson99> dont know anything about linux though.
<joshAnderson99> advised mint is probably the most suitable.
bricker`LA has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
<sam113101> man, that's exactly why I switched to linux the last time
<joshAnderson99> was hoping to run an exe, and it would install somwhere on a drive in the already partitioned space ideally, but if necessary, can let the setup play around with partitions as it has to
<sam113101> doing any kid of programming (that isn't .net) on windows is just a pain
<jrobeson> alternatively.. use a virtual machine and run ubuntu in there
<sevenseacat> +1
<joshAnderson99> would like a much cross functionality between the two platforms if possible, part of the reason for wanting it to share the same file space. but not essential.
<jrobeson> if you still really wanna keep windows for a bunh of other stuff.. just run linux in a vm
lucazi has joined #ruby
<jrobeson> although you should still perhaps clear space to install it natively on a disk instead for performance
<jrobeson> you'll have the best of both worlds (minus a bit of performance) ..
<sam113101> delete windows to make some room
<jrobeson> i think that sounds a bit drastic
<jrobeson> better to spend money and buy a new hard drive
<joshAnderson99> was under the impression that install would require a VM to install on the same system as windows. or VM means running together at the same time?
<sam113101> that also sounds drastic
<joshAnderson99> ok. seems VM is running in parallel.
<jrobeson> i love linux and can't imagine not using it for my primary.. however.. i wouldn't want to force other people to use linux if it doesn't handle what they need
<jrobeson> yes parallel
cogent has joined #ruby
<sevenseacat> VM is running one inside the other
<sevenseacat> separate, but inside
<jrobeson> you can actually boot a vm inside of a vm.. but the performance woudl be lame
<vasilakisFiL> I have a problem with dashing: How do I run capybara tests? I can only run them if I run dashing start (that is start the server) from another terminal and then start the tests in another terminal
<sam113101> vm nesting is fun
<jrobeson> vasilakisFiL, seems like you should talk to the dashing people
<joshAnderson99> for programming work, unless running some long data crunching program, i dont see that the performance impact would be too much of an issue. unless its really noticeable.
<jrobeson> sounds awfully specific to their software
<vasilakisFiL> ok
<vasilakisFiL> thanks
sameerynho has joined #ruby
<sam113101> file access will be slower obviously
<joshAnderson99> just a little uncertain what i'm getting in to
<jrobeson> well that's the nice thing about vm.. you can just play with it.. if it doesn't work out.. only a little time lost
<jrobeson> your system is still fully intact
<sameerynho> can i add a dependency in a gemspec to git repository of a gem ?
<jrobeson> sameerynho, no
<joshAnderson99> windows is.. oxygen, and i dont want to step on to mars without breathing apparatus in case the atmosphere isn't what readings said it would be.
<jrobeson> joshAnderson99, and that is why a vm is the best start
<joshAnderson99> affects performance of both OS's presumably, not only linux.
<joshAnderson99> but with option presumably to run only one OS, to avoid performance loss?
tk__ has joined #ruby
<jrobeson> it uses ram up..
<sam113101> to avoid the pain of switching from host OS to VM
<sameerynho> jrobeson: is there any other solution to allow my gem use a dependency gem via git in run time?
<joshAnderson99> that looks simple enough.
<[gnubie]> how do you convert this command to ruby? => free -m | grep Mem | awk -F " " '{ print $2 }'
<jrobeson> sameerynho, how can you assume that git actually exists on their system.. that is why it is not allowed
<jrobeson> or one reason anyawys
<sam113101> [gnubie]: you want the result in a ruby string?
<jrobeson> sameerynho, provide a rake task or something
<sam113101> or
<joshAnderson99> blast, the 16GB would have been preferable. 8 didn't last long as plentiful.
Zai00 has joined #ruby
<[gnubie]> sam113101: i just want to convert that shell commands to ruby so that i can get the same result.
<jrobeson> tell to them edit hteir gemfile
<sameerynho> jrobeson: I understand the point, but what can i do for my development ? can i install the gem separately ?
<jrobeson> if it's in your Gemfile.. it works
<sameerynho> jrobeson: oh rake task is a good idea
<[gnubie]> sam113101: i've been looking for ways to extract the data from that command but with no luck
<jrobeson> split it up into pieces
<joshAnderson99> sam113101: thanks for the link. assume still need to download the linux dist first for it to install.
<sam113101> [gnubie]: use `
<jrobeson> [gnubie], i think you nee dto read more ruby docs
<jrobeson> it would become clear
<sam113101> mem = `free -m | grep Mem | awk -F " " '{ print $2 }'`.chomp
<sevenseacat> yes, you need to download linux before you can install it.
<[gnubie]> sam113101: i am starting with this => %x(free -m).scan(/Mem/)
<jrobeson> hi sevenseacat
<sam113101> mem = `free -m | grep Mem | awk -F " " '{ print $2 }'`.chomp.to_i
<sevenseacat> jrobeson: howdy
<sam113101> [gnubie]: ^ that's how you do it
<[gnubie]> sam113101: i want to get rid of grep and awk. if there's even a way to get rid from free and directly using whatever is builtin into ruby, that will be better
Zolo has quit [Read error: No route to host]
Zolo has joined #ruby
<jrobeson> well first you'd have ot understand what the awk is doing then you should be able to find a ruby equivalent
<[gnubie]> jrobeson: extracting the value
cookcode has quit [Remote host closed the connection]
<[gnubie]> i want to read the line with the Mem and get the value on the right after the first whitespace
Jdubs has quit [Remote host closed the connection]
<jrobeson> you could write a regex.
<sam113101> I think he wants a OS-agnostic way of finding the amount of ram the user has
carraroj has joined #ruby
<[gnubie]> sam113101: not really. just linux specific.
Jdubs has joined #ruby
<jrobeson> well iniitally.. he just wanted a way to learn how to do basic scripting in ruby i think.. this is just an example
<jrobeson> excuse me.. they..
peterhu has joined #ruby
<joshAnderson99> any recommendation for ballpark on space required for linux partition, just mainly for dev?
<joshAnderson99> 500GB? or less?
<sevenseacat> o.O 500GB
<sam113101> there are no females on the Internet, anyway
<[gnubie]> jrobeson: i am aware that i have to use regex here. but how can i get that integer right after the Mem?
NinjaPenguin_ is now known as NinjaPenguin
<sevenseacat> you probably want at least 20GB for a decent linux install
<jrobeson> [gnubie], practice on rubular.com
<joshAnderson99> wow.. that's so lean
<sam113101> linux is lean
<joshAnderson99> some of my movies are nearly taht big.
<joshAnderson99> *that
<jrobeson> i'm assuming you actually want to learn something with this excercise [gnubie] ? if so.. you're gonna have to learn some regex yourself
<jrobeson> otherwisee just stick with your shell script
<sam113101> [gnubie] could also do some euler challenges
jibi has joined #ruby
<[gnubie]> jrobeson: i understand regex. what i am not aware is how to get that line matching Mem
<jrobeson> a multi line regex.
<jrobeson> search for mem, get what's after
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Jdubs has quit [Ping timeout: 246 seconds]
<[gnubie]> jrobeson: this is what i started => %x(free -m).scan(/Mem/)
<[gnubie]> jrobeson: but i only get Mem itself
<jrobeson> you could loop over every line looking for one that contains mem..
sevenseacat has quit [Quit: Leaving.]
<jrobeson> but seriously.. you really need to practice ruby itself
<jrobeson> try the ruby koans
<[gnubie]> jrobeson: if i do a => %x(free -m).scan(/Mem.+/) , i will get the line in a single array
<jrobeson> that way you'll get used to solving basic problems like that.. even if perhaps not in the most efficient way, it'll be ruby
<joshAnderson99> sam113101: another question for you if might ask.. if existing windows partition takes up a whole drive, and linux wants to create another partition, it will have to delete the existing one right? so the drive needs to be clean.
parzo has quit [Ping timeout: 272 seconds]
peterhu has quit [Ping timeout: 252 seconds]
parzo has joined #ruby
<sam113101> YOU decide what you want to do
<joshAnderson99> that's actually an open question is sam113101 isn't around.
<sam113101> the installer will ask you if you want to erase windows, install beside it, etc.
spider-mario_ has joined #ruby
spider-mario_ has quit [Client Quit]
<sam113101> or you can just create/resize partitions like you want
Elinos has joined #ruby
spider-mario_ has joined #ruby
spider-mario has quit [Ping timeout: 246 seconds]
<sam113101> I always do it manually because I'm too scared of losing something I don't want to lose
<[gnubie]> jrobeson: i understand your point. this is my way to practice ruby by writing in ruby.
spider-mario_ is now known as spider-mario
<joshAnderson99> ha.. i'm kind of liking this chat setup, it's quite convenient sometimes. like having an oracle around. trying out actually, as usually i'd be searching the web and going through heaps of stuff to come up with the right answers.
osvico has quit [Ping timeout: 245 seconds]
carraroj has quit [Ping timeout: 272 seconds]
ereslibre has joined #ruby
ereslibre has joined #ruby
<joshAnderson99> but found myself in a state of semi-shock at the number of issues getting ruby to run on windows.
ChronocityLC has quit [Ping timeout: 272 seconds]
smirn0v has joined #ruby
<joshAnderson99> hence how i came about here.
<sam113101> what's not working for you, btw?
<sam113101> about your ruby installation
<joshAnderson99> installing ruby-debug gem.
<sam113101> get any error message?
<joshAnderson99> tried all sorts of commands
<joshAnderson99> sure
<joshAnderson99> fogotten what the last one was. varied depending on installation command tried.
<sam113101> maybe we can help with that
<joshAnderson99> if you could that would be marvellous.
<joshAnderson99> then maybe i could hold off with linux temporarily at least.
<sam113101> we need 1. what you tried 2. the result (error messages)
<joshAnderson99> before that though.. "resize partition". i wasn't aware it's possible to resize as in downsize, or up for that matter, without deleting the partition first?
tk__ has quit [Quit: ばいばい]
<sam113101> yeah, you can resize if there is enough space (for example, you could resize a 90 GB partition to 50 GB if there's only 40 GB actually used)
<sam113101> beware though: MOVING data around takes a looooot of time
<joshAnderson99> ok.. that will simplify the task if it comes to installing linux.
dzhulk has joined #ruby
<joshAnderson99> but if you're downsizing from 90 to 40, it's not moving.
<joshAnderson99> it's just closing up on empty space presumably.
<sam113101> if you can arrange your partitions in a way that you don't have to move things around, do that, it will be much faster
<joshAnderson99> sure, that's why i'm asking. it will take half the night to copy what's on the drive elsewhere, if that's required before the existing full disk partition can be shrunk to accommodate a linux one.
<[gnubie]> anyone cares to help, even just to give me some hint? unless i am OT here.
boxmein has joined #ruby
ereslibre has quit [Ping timeout: 264 seconds]
<sam113101> you can move things if you want, but it takes a long time
Davey has quit [Quit: Computer has gone to sleep.]
<sam113101> because it must read, fill a buffer, write the buffer to disk, repeat
<joshAnderson99> but.. that wouldn't be done right, because you can resize. so i can just shrink the windows partition down to make room for the linux one.
<sam113101> yes
<sam113101> if your windows partition isn't full
<sam113101> and if the gap will be sufficient
<joshAnderson99> never heard of that before. i trust you're speaking of fact there.
<[gnubie]> well, i assume no one and ignored.
<sam113101> [gnubie]: what's your problem, again?
<sam113101> joshAnderson99: only facts
<joshAnderson99> will look it up on google anyway, just to confirm. seems reasonable, but there's FATs, or similar. and if you just lop off part of the partition, the FAT might be unhappy.
<joshAnderson99> but the resize function must adjust the FAT accordingly.
<sam113101> you should defragment your partitions before you repartion your drive
<sam113101> so that problems like that don't happen
<[gnubie]> sam113101: how do you convert this command to ruby? => free -m | grep Mem | awk -F " " '{ print $2 }'
<sam113101> yeah it edits the partition table and everything
<sam113101> so that it's all nice and clean
<joshAnderson99> ha.. but surely one cannot rely on that as a means of not losing data on the resize. because partitioning doesn't provide any guarantee of being clear of the new end partition point.
<joshAnderson99> ic..
<[gnubie]> joshAnderson99: just install virtual box for your linux/windows setup.
<joshAnderson99> so it's not a requirement to defrag, but might be nice to make it easier for the resize command.
<joshAnderson99> virtual box.. not vagrant?
<sam113101> joshAnderson99: if you just shrink your partition, you're not going to lose anything, but if you move it… it's possible, and you should backup whatever you really don't want to lose
<joshAnderson99> vagrant http://www.vagrantup.com/
<joshAnderson99> ok
<sam113101> [gnubie]: which part
<sam113101> you still want to use free, right?
carraroj has joined #ruby
<[gnubie]> joshAnderson99: it is just a one time setup, right? don't waste your time. fire up virtual box and install the os you want.
<[gnubie]> sam113101: if i don't have a choice, yes. but at least, i want to get rid of grep and awk. my main objective is to get the value of total Mem
<sam113101> [gnubie]: then hold on
joshAnderson99 has quit [Ping timeout: 272 seconds]
joshAnderson99 has joined #ruby
<joshAnderson99> connection dropped
<joshAnderson99> [gnubie]: waste time with what?
<sam113101> [gnubie]: `free -m`.each_line.find { |x| x =~ /Mem/ }.split(' ')[1]
ce_afk is now known as cescalante
<[gnubie]> sam113101: so you loop
<[gnubie]> sam113101: i mean, read each line and search that Mem
<sam113101> yes
carraroj has quit [Ping timeout: 272 seconds]
<sam113101> there are many ways you can do that, and it's one of them
<sam113101> I like the way you can chain everything in ruby to get what you want
<[gnubie]> sam113101: the keywords, methods, etc. and combining them is what i'm not familiar.
rjhunter has quit [Remote host closed the connection]
<sam113101> [gnubie]: read a book on ruby
atmosx has joined #ruby
skaflem has joined #ruby
skaflem is now known as thomas
wudofyr has joined #ruby
<sam113101> use irb/pry and look at what each piece returns
thomas is now known as Guest49674
Guest49674 is now known as skaflem
<joshAnderson99> [gnubie]: ok, you mean vagrant. sure, virtualbox on reading about it seems like it would suffice.
<[gnubie]> sam113101: i understand reading the books. but there are problems that are not discussed in the book and i have to get familiarise all of them because i can't easily write that is similar on what you have given.
<joshAnderson99> sam113101: if i could get ruby-debug to install, that could save the linux installation, at least for now. this is the result i get when installing ruby-debug:
<joshAnderson99> C:\>gem install ruby-debug
<joshAnderson99> Temporarily enhancing PATH to include DevKit...
<joshAnderson99> Building native extensions. This could take a while...
<joshAnderson99> ERROR: Error installing ruby-debug:
<joshAnderson99> ERROR: Failed to build gem native extension.
<joshAnderson99> C:/Ruby200/bin/ruby.exe extconf.rb
<joshAnderson99> Can't handle 1.9.x yet
<joshAnderson99> *** extconf.rb failed ***
<joshAnderson99> according to the output, ruby-debug just doesn't support 1.9 upwards.
<sam113101> yeah
<sam113101> have you tried with an older ruby?
<joshAnderson99> not even 1.9
<joshAnderson99> i haven't. but doesn't rails 4 require at least 1.9?
atmosx has quit [Quit: WeeChat 0.4.2-rc2]
<[gnubie]> sam113101: that is the same thing why joshAnderson99 asked you about what's the best size of partition for developers. he can just read linux books just to know how much size is good for linux.
<joshAnderson99> so even reverting to 1.9.3 or whatever it is to still be compatible with rails 4, it's still not going to support the debugger.
<joshAnderson99> and.. is it the same for linux?
<sam113101> why do you need ruby-debug?
<[gnubie]> sam113101: but thank you for giving your solution to my problem.
<sam113101> [gnubie]: execute it in irb
<sam113101> cut some parts, see the result
<sam113101> that's how you learn
colonolGron has joined #ruby
<[gnubie]> sam113101: i already did.
atmosx has joined #ruby
<joshAnderson99> [gnubie]: asking because OS install mistakes can be very time consuming, and painful too if data loss occurs. but a search on google for recommended partition size gave the answer right away. just checking from a developer standpoint.
<sam113101> [gnubie]: did you learn new things? :)
<[gnubie]> joshAnderson99: i understand.
<joshAnderson99> sam113101: why do i need a debugger? well, as a software developer in my experience it's usually considered a given. they can be useful right. in an IDE. to step through code, especially being new to ruby, it can help quickly pointpoint cause of errors.
<sam113101> joshAnderson99: ruby already has a debugger, built-in, no need to install anything
atmosx has quit [Client Quit]
<sam113101> ruby-debug is to make it faster, I think
<joshAnderson99> but the issue here is also.. if a core component of a language isn't working, maybe windows is going to cause problems down the track with all sorts of things.
<sam113101> or just a different one
fgo has joined #ruby
<[gnubie]> sam113101: of course! what you shared was a big help already. not because i got the result i need but to understand your way in getting the result and by chaining them. ;)
lucazi has quit [Quit: Textual IRC Client: www.textualapp.com]
<joshAnderson99> really. no one else has mentioned that yet. but i believe you.
<joshAnderson99> but in eclipse, when i run in debug mode it says...
boxmein is now known as [boxmein]
<joshAnderson99> Debugging Engine not started
<joshAnderson99> The 'Fast Ruby Debugger (ruby-debug)' is selected, but the 'ruby-debug' gem doesn't seem to be installed in the selected Ruby Interpreter (C:\Ruby200\bin\ruby.exe)
<sam113101> and there is a gem called ruby-debug19 for ruby 1.9 and up, it seems
kleinerdrache has joined #ruby
<joshAnderson99> ah, that's the fast ruby debugger
<joshAnderson99> maybe there's an option for the inbuilt one. is it much slower?
chxane has joined #ruby
wesside has quit [Ping timeout: 265 seconds]
<sam113101> I don't know. can't you select something else, though?
bradhe has joined #ruby
<sam113101> like, download ruby-debug19 and select that
<sam113101> I never used eclipse
atmosx has joined #ruby
<joshAnderson99> i've tried that, but it doesn't work.
Elinos has quit [Quit: Leaving]
<joshAnderson99> but on ruby 1.9 it might. but rails 4 recommends ruby 2.0
fgo has quit [Ping timeout: 256 seconds]
<sam113101> what doesn't work?
<joshAnderson99> ruby-debug19
<sam113101> you can't install it?
dhamidi has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx> I never run ruby-debug
<atmosx> hm
<joshAnderson99> it brings up another error.. a la:
<joshAnderson99> C:\>gem install ruby-debug19
<joshAnderson99> Temporarily enhancing PATH to include DevKit...
<joshAnderson99> Building native extensions. This could take a while...
<joshAnderson99> ERROR: Failed to build gem native extension.
<joshAnderson99> ERROR: Error installing ruby-debug19:
<joshAnderson99> C:/Ruby200/bin/ruby.exe extconf.rb
<joshAnderson99> checking for vm_core.h... no
<atmosx> why is that so?
wesside has joined #ruby
<joshAnderson99> C:/Ruby200/lib/ruby/gems/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:39:in `create_makefile_with_core': Use RbCo
<joshAnderson99> nfig instead of obsolete and deprecated Config.
nari has joined #ruby
<joshAnderson99> C:/Ruby200/lib/ruby/gems/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:39:in `create_makefile_with_core': Use RbCo
<joshAnderson99> nfig instead of obsolete and deprecated Config.
<joshAnderson99> checking for vm_core.h... no
<joshAnderson99> *** extconf.rb failed ***
<sam113101> IT'S HAPPENING
<atmosx> oh window
<atmosx> s
<atmosx> brrrrrr
valesk has joined #ruby
<joshAnderson99> we dont know if it is windows.
mrsolo has joined #ruby
<sam113101> yeah man, setup eclipse so that it uses the default debugger
<joshAnderson99> fast debug might not work on linux either. i've not tried.
ereslibre has joined #ruby
ereslibre has joined #ruby
relix has joined #ruby
colonolGron has quit [Ping timeout: 252 seconds]
lkba has quit [Ping timeout: 272 seconds]
<joshAnderson99> ok, changed the debugger to inbuilt.. but now an error in kernel_require.rb:55
<joshAnderson99> even without a breakpoint, this is produced:
<joshAnderson99> C:/Users/Jaspar/AppData/Local/Temp/dltk22121.tmp/debugger/AbstractRunner.rb:97: warning: else without rescue is useless
<joshAnderson99> C:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': C:/Users/Jaspar/AppData/Local/Temp/dltk22121.tmp/debugger/AbstractRunner.rb:94: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError)
<joshAnderson99> ^
<joshAnderson99> C:/Users/Jaspar/AppData/Local/Temp/dltk22121.tmp/debugger/AbstractRunner.rb:95: syntax error, unexpected keyword_when, expecting keyword_end
<joshAnderson99> when nil: NullLogManager.new
<joshAnderson99> when 'stdout': StdoutLogManager.new
<joshAnderson99> ^
<joshAnderson99> C:/Users/Jaspar/AppData/Local/Temp/dltk22121.tmp/debugger/AbstractRunner.rb:95: syntax error, unexpected ':', expecting keyword_end
<joshAnderson99> when 'stdout': StdoutLogManager.new
<joshAnderson99> ^
<joshAnderson99> C:/Users/Jaspar/AppData/Local/Temp/dltk22121.tmp/debugger/AbstractRunner.rb:105: syntax error, unexpected keyword_end, expecting end-of-input
<joshAnderson99> from C:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
<joshAnderson99> from C:/Users/Jaspar/AppData/Local/Temp/dltk22121.tmp/debugger/BasicRunner.rb:10:in `<top (required)>'
bradhe has quit [Ping timeout: 240 seconds]
<joshAnderson99> from C:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
<joshAnderson99> from C:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
valesk has quit [Ping timeout: 240 seconds]
ereslibre has quit [Ping timeout: 264 seconds]
<joshAnderson99> at least if i install linux and it doesn't work, then i know there's no other solution. but in windows, there remains the possibility that it might in linux.
<sam113101> you're going to have an easier time installing gems at least
<joshAnderson99> well, i've not gone beyond that yet for obvious reasons.
<joshAnderson99> but there's no one with ruby 2.0 that's successfully gotten debug installed?
<joshAnderson99> on linux
<sam113101> lol
catphish has joined #ruby
<sam113101> I can try it if you want me to
cogent has quit [Quit: cogent]
<catphish> is it possible to define the behaviour of ||=
<joshAnderson99> well, the error msg says doesn't support 1.9 upwards.. i'm not sure if that's a windows specific msg, or general. if the latter, then it might apply to linux as well.
<joshAnderson99> but there is a gem install debugger alternative i believe.
<Hanmac1> the AbstractRunner file is shitty ;D
Hanmac1 is now known as Hanmac
rylev has joined #ruby
<catphish> i'm observing that defining a pair of methods (def foo and def foo=) foo||= does not cause foo= to be called
<sam113101> I get the same error
<joshAnderson99> well, frankyl i have no idea what it is, but if that's the case.. a shitty debugger might be inadvisable.
<sam113101> maybe some dependencies missing
wesside has quit [Ping timeout: 272 seconds]
colonolGron has joined #ruby
<joshAnderson99> implying perhaps that it's an error that might stick for a while.
haxrbyte has joined #ruby
nari has quit [Ping timeout: 240 seconds]
wesside has joined #ruby
ShawnMcCool has joined #ruby
<joshAnderson99> debugger gem + byebug gem for 2.0 might work in linux. if the standard ruby-debug doesn't. also the inbuilt debugger may work there as well, when it's not at present due to the error in the aforementioned lacklustre component.
Elhu has joined #ruby
goto has joined #ruby
goto has left #ruby [#ruby]
Macaveli has quit [Ping timeout: 246 seconds]
astrobunny has quit [Ping timeout: 252 seconds]
Squarepy has joined #ruby
einarj has joined #ruby
<[gnubie]> i have a yaml file that i use as my config. how will i check it first if it has a proper key: value pair? if a key does not have a value, i want to prompt that it has a missing value for that key. is there a way to check the yaml file in ruby?
senayar has joined #ruby
astrobunny has joined #ruby
<[gnubie]> i can load the yaml file and convert it to hash. but is there a straight way to check whether the yaml file has a proper key: value pair without loading it, convert to hash, and check it for key: value pair?
_bart has joined #ruby
bio is now known as Biohazard
Elhu has quit [Quit: Computer has gone to sleep.]
senayar has quit [Ping timeout: 252 seconds]
Elhu has joined #ruby
atSetKey has joined #ruby
noname001__ has quit [Read error: Connection reset by peer]
tjad_ has quit [Ping timeout: 240 seconds]
noname001__ has joined #ruby
atSetKey_ has quit [Ping timeout: 264 seconds]
siwica has joined #ruby
jrhe has joined #ruby
dzhulk1 has joined #ruby
dzhulk has quit [Ping timeout: 240 seconds]
parzo_ has joined #ruby
parzo_ has quit [Remote host closed the connection]
parzo_ has joined #ruby
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
mercwithamouth has joined #ruby
parzo has quit [Ping timeout: 246 seconds]
Squarepy has quit [Read error: Connection reset by peer]
mikehodgson has joined #ruby
mhodgson has quit [Ping timeout: 265 seconds]
Squarepy has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
wildroman has quit [Ping timeout: 252 seconds]
[boxmein] is now known as boxmein
haxrbyte has quit [Ping timeout: 246 seconds]
T_T has joined #ruby
ALVAN has left #ruby [#ruby]
Lewix_ has quit [Remote host closed the connection]
Xeago_ has quit [Remote host closed the connection]
rylev has quit [Remote host closed the connection]
fgo has joined #ruby
pragmatism has joined #ruby
rylev has joined #ruby
Xeago_ has joined #ruby
ereslibre has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
siwica has quit [Quit: siwica]
mrsolo has quit [Quit: This computer has gone to sleep]
Xeago_ has quit [Ping timeout: 240 seconds]
ereslibre has quit [Ping timeout: 245 seconds]
vince_prignano has quit []
[gnubie] has quit [Quit: [gnubie]]
Elhu has quit [Quit: Computer has gone to sleep.]
Boohbah has quit [Ping timeout: 240 seconds]
DrCode has quit [Ping timeout: 240 seconds]
Kabaka has quit [Ping timeout: 240 seconds]
rjhunter has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
petey has joined #ruby
ehaliewicz has quit [Ping timeout: 246 seconds]
DrCode has joined #ruby
heftig_ has joined #ruby
Elhu has joined #ruby
Kabaka has joined #ruby
petey has quit [Ping timeout: 240 seconds]
heftig has quit [Ping timeout: 272 seconds]
schaerli has joined #ruby
Xeronic has joined #ruby
kil0byte has joined #ruby
Boohbah has joined #ruby
foofoobar has joined #ruby
<foofoobar> Hi. Gem::InstallError: paperclip requires Ruby version >= 1.9.2. -- ruby -v: ruby 1.9.3p0
<foofoobar> How can this be?
swordsmanz has joined #ruby
jezen has joined #ruby
T_T has quit [Read error: Connection reset by peer]
T_T has joined #ruby
rylev_ has joined #ruby
timonv has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
jrhe has quit [Quit: jrhe]
rylev has quit [Ping timeout: 272 seconds]
razi has joined #ruby
DonRichie has joined #ruby
obs has joined #ruby
<vasilakisFiL> can I test with capybara html5 attributes? such as data-xxxx ?
VTLob has joined #ruby
schaerli has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
astrobun_ has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
Banistergalaxy has quit [Ping timeout: 272 seconds]
zarubin has joined #ruby
mikehodgson has quit [Ping timeout: 265 seconds]
Kar- has joined #ruby
atSetKey_ has joined #ruby
wildroman has joined #ruby
rylev_ has quit [Remote host closed the connection]
atSetKe__ has joined #ruby
rylev has joined #ruby
atSetKey has quit [Ping timeout: 272 seconds]
atSetKey_ has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
fgo has joined #ruby
boxmein has quit [Ping timeout: 252 seconds]
rylev has quit [Ping timeout: 272 seconds]
atSetKe__ has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
maroloccio has joined #ruby
barratt has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 272 seconds]
fgo has quit [Ping timeout: 272 seconds]
MrSamuel has joined #ruby
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
Jdubs has joined #ruby
obs has quit [Quit: Konversation terminated!]
Xeronic has quit [Quit: Xeronic]
jezen has quit [Remote host closed the connection]
dhamidi has quit [Ping timeout: 240 seconds]
jezen has joined #ruby
<sergicles> hi all
<sergicles> trying to calculate frequency of each line in the file…
jezen has quit [Read error: Operation timed out]
<sergicles> freq = Hash.new File.open('test.txt', 'r').each { |line| freq[line.strip] = +1 } puts freq <-- but it seems that each line which is the same overrides the previous one, so i get a unique list of values, rather than value=>count (i.e. get value=>1)
zarubin has quit [Ping timeout: 252 seconds]
catphish has quit [Ping timeout: 252 seconds]
<Hanmac> sergicles: File.foreach("text.txt").with_object(Hash.new(0)) {|line,freq| freq[line.strip] += 1}
threesome has joined #ruby
<sergicles> Hanmac: thanks, not what i had but hey learned something new
<sergicles> p.s. thats my first ever ruby program lol
<sergicles> Hanmac: does ".with_object(" imply that this is single instantiation of that hash inside the foreach scope ?
<sergicles> o0
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
<Hanmac> with_object means: take this object, use this object in each iteration, and then return this object ... no copy is created
kracekumar has quit [Max SendQ exceeded]
hamakn has joined #ruby
<Hanmac> sergicles: PS: warning you open the File with File.open without a block ... that means you need to close it again ... so File.open() {} is better ... or File.foreach if you only wants the lines
srji has joined #ruby
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
<sergicles> Hanmac: PM?
kracekumar has joined #ruby
<Hanmac> nah i think that can be solved in channel ... so that others can learn from this too ;P
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
<sergicles> more on internals, so based on that, your code, once that's done, 'freq' is theoretically not accessible outside the closure?
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
<sergicles> ohhh and the freq variable seems to be overridden on each iteration, no?
kracekumar has quit [Max SendQ exceeded]
joshAnderson991 has joined #ruby
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
<sergicles> it looks like freq is redeclared on each iteration {|line,freq| freq[line.strip] += 1}
kracekumar has joined #ruby
<sergicles> methinks with my limited understanding
kracekumar has quit [Max SendQ exceeded]
catphish has joined #ruby
kracekumar has joined #ruby
<Xeago> sergicles: could you repaste so I can learn?
kracekumar has quit [Max SendQ exceeded]
<sergicles> Hanmac: sergicles: File.foreach("text.txt").with_object(Hash.new(0)) {|line,freq| freq[line.strip] += 1}
senayar has joined #ruby
T_T has quit [Remote host closed the connection]
joshAnderson99 has quit [Ping timeout: 240 seconds]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
<Xeago> sergicles: freq here refers to the instance that Hash.new(0) returns
<Hanmac> sergicles: yes freq is only valid inside the iteration, but the line returns it too
<Xeago> it is initialized ones, and re-used in each block
<Xeago> s/ones/once
kracekumar has joined #ruby
graft has quit [Ping timeout: 265 seconds]
kracekumar has quit [Max SendQ exceeded]
<sergicles> so, does it make more sense to do this: req = Hash.new(0) <newline> File.foreach("test.txt").with_object(freq) { |line| freq[line.strip] += 1}
anekos_ has quit [Ping timeout: 264 seconds]
kracekumar has joined #ruby
<Hanmac> hm not so much
kracekumar has quit [Max SendQ exceeded]
cucumbrman has quit [Quit: No Ping reply in 180 seconds.]
graft has joined #ruby
<sergicles> Hanmac: ok, a. i feel this is awesomeelegant (yes, i did just invent a word) and b. i am not sure how to then access freq from outside of the block 
<Hanmac> sergicles: just do: new_freg = File.foreach("text.txt").with_object(Hash.new(0)) {|line,freq| freq[line.strip] += 1}
cucumbrman has joined #ruby
kracekumar has joined #ruby
dhamidi has joined #ruby
<sergicles> mind blown
kracekumar has quit [Max SendQ exceeded]
Stalkr_ has joined #ruby
newbiehacker_ has joined #ruby
anekos_ has joined #ruby
parzo_ has quit [Remote host closed the connection]
<Hanmac> sergicles: that what i meand with with_object returns the object used inside the iteration
<sergicles> *nods
parzo has joined #ruby
<sergicles> Hanmac: thanks
<Stalkr_> When breaking the method parameters up into multiple lines (because it exceeds 80 characters for example), what's the Ruby convention for alignment? My editor does the first by default, but I see a lot do second http://pastie.org/8398896
<Xeago> depends on the context, I might indent the .permit call itself
jbpros has joined #ruby
<Xeago> I'd go for the second, but I'd prefer delimiting the method call when logical
<Hanmac> Stalkr_: hm i think my indent would look like this https://gist.github.com/anonymous/e8dc5d429421c6d395c2
Spami has quit [Ping timeout: 265 seconds]
parzo has quit [Ping timeout: 245 seconds]
<Xeago> I think the first is horrible, it does not read with as much context as the other (3) solutions
<waxjar> you could try not to chain or splat a symbol array: arr = [:a, :b, :c]; …#permit *arr
SHyx0rmZ has joined #ruby
someish has joined #ruby
<Stalkr_> Hanmac: and if it needs more params you would just break it again like this? http://pastie.org/8398905
DylanJ has quit [Ping timeout: 264 seconds]
<Stalkr_> Is it uncommon to do this? http://pastie.org/8398908
<Xeago> at the point where it spans more than 2 lines
<Xeago> I'd go with 1 line per
<Hanmac> i think both is okay
<Hanmac> but i think that what Xeago says would be the best
DaZ has quit [Ping timeout: 240 seconds]
<Stalkr_> All words on single line, unless multiple lines, then 1 word per line essentially?
mahlon_ has quit [Ping timeout: 240 seconds]
<Stalkr_> and if it's just a param or two, then just on same line I guess
<Stalkr_> Is there a common 'max chars per line' such as 78 or 80 in Ruby? I currently use a ruler at 80
MrSamuel has quit [Quit: MrSamuel]
fwmath has joined #ruby
pragmatism has quit [Quit: Peace]
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
mahlon_ has joined #ruby
astrobun_ has quit [Ping timeout: 272 seconds]
Jdubs has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 272 seconds]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
DaZ has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
sevenseacat has joined #ruby
astrobunny has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Jdubs has joined #ruby
jb41 has joined #ruby
adkron has joined #ruby
drumsrgr8forn8 has joined #ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
fgo has joined #ruby
noname001__ has quit [Ping timeout: 252 seconds]
Jdubs has quit [Remote host closed the connection]
parzo has joined #ruby
cody-- has joined #ruby
zarubin has joined #ruby
danshultz has joined #ruby
xk_id has joined #ruby
ereslibre has quit [Ping timeout: 264 seconds]
aryaching has joined #ruby
cody-- has quit [Quit: derp]
BizarreCake has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
rgbdev has joined #ruby
tjad has joined #ruby
astrobunny has joined #ruby
kofno has quit [Ping timeout: 246 seconds]
Elhu has joined #ruby
danshultz has quit [Remote host closed the connection]
francisfish has joined #ruby
tonni has quit [Remote host closed the connection]
tonni has joined #ruby
kirun has joined #ruby
catphish has quit [Ping timeout: 252 seconds]
AlSquire has joined #ruby
ewnd9 has joined #ruby
Deele has joined #ruby
razi has quit [Quit: Leaving.]
dhamidi has quit [Ping timeout: 252 seconds]
razi has joined #ruby
barratt has quit [Quit: Leaving...]
workmad3 has joined #ruby
fgo has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
siwica has joined #ruby
mengu has joined #ruby
catphish has joined #ruby
dhamidi has joined #ruby
foofoobar has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 240 seconds]
razi has quit [Quit: Leaving.]
ravster has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
aryaching_ has joined #ruby
someish has quit [Quit: someish]
wallerdev has joined #ruby
aryaching has quit [Ping timeout: 256 seconds]
claymore has joined #ruby
astrobunny has joined #ruby
kaspergrubbe has joined #ruby
fwmath has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
rgbdev has quit [Quit: rgbdev]
noname001__ has joined #ruby
newbiehacker_ has quit [Ping timeout: 246 seconds]
<waxjar> not really, i like to keep my lines <= 80 chars but that's just personal preference
gyzmodo has joined #ruby
<Xeago> also, how frequent do you expect it to be changed
<Xeago> if it is user information
<Xeago> that might be expanded in some later time
<Xeago> I'd definitely have it spread over multiple lines
Greg_ has joined #ruby
banisterfiend has joined #ruby
wildroman has quit [Remote host closed the connection]
<shevy> I keep it at lower than 80 chars, but only for code. comments I sometimes let flow into 100
wildroman has joined #ruby
eka has joined #ruby
aryaching_ has quit [Ping timeout: 272 seconds]
simoz has joined #ruby
<Xeago> shevy: only under very uncommon circumstances do I do that
<Xeago> if a comment needs more than 100 characters and the nature of the sentence makes it hard to split
<Xeago> it is a code smell
<shevy> nono I mean
<shevy> you have indent and code lines that could range up to let's say 70 chars
carraroj has joined #ruby
kracekumar has joined #ruby
<Xeago> you mean code.call(args) # make sure args was set
<shevy> now you want to comment it. you could write a larger comment on top of it, or you could comment to the side
<shevy> yeah
kracekumar has quit [Max SendQ exceeded]
<Xeago> meh, likely on top
<Xeago> still a code smell :)
<shevy> when it is on top of the code, it distracts me more than when it is on the side
<Xeago> if that is the case
wildroman has quit [Read error: No route to host]
<Xeago> is the comment necessary there?
kracekumar has joined #ruby
<shevy> it could be removed, but so could all comment :)
<Xeago> can't it live at the top of the block and be part of the overal explanation?
kracekumar has quit [Max SendQ exceeded]
<shevy> no, that would inflate the amount of lines I have!!!
<Xeago> 'meh' :P
<Xeago> again I still consider it a code smell
<Xeago> the thing however is
wildroman has joined #ruby
kracekumar has joined #ruby
<Xeago> don't try to reduce your number of smells to 0
kracekumar has quit [Max SendQ exceeded]
<shevy> lol
<Xeago> it is a negative metric, not a positive metric
<Xeago> you know the term?
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
tomzx_mac has joined #ruby
<shevy> I dont know the term
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
<Xeago> an example of negative metric is blood pressure
<Xeago> a high blood pressure is an indicator something is likely worng with you
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
<Xeago> however if it does not occur, you might still not be health
adkron has quit [Ping timeout: 265 seconds]
<Hanmac> Xeago good that you did not see the code of my C++ extensions ... ;D
<Xeago> over exaggerating: trying to optimise the bloodpressure - chop off head: 0 pressure
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
<banisterfiend> Xeago low blood pressure is bad too, bb
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
<Xeago> for the single metric that I provided as an example: high blood pressure, that is a very clear example :P
Nahra has quit [Quit: leaving]
kofno has joined #ruby
<Xeago> I did include the 'over exagg erating' for a reason…
kitak_ has quit [Remote host closed the connection]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
<banisterfiend> Xeago You don't know what you're talking about, do you? Frendo.
<banisterfiend> ;)
kitak_ has joined #ruby
Nahra has joined #ruby
kracekumar has joined #ruby
<Xeago> biology wise, I know that low pressure is bad
<Xeago> still high bloodpressure can be bad too
kracekumar has quit [Max SendQ exceeded]
<Xeago> 'can'
spider-mario has quit [Read error: Connection reset by peer]
<Xeago> banisterfiend: my biology is not the strongest but it doesn't need to be to explain -/+ metrics
Greg_ has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<banisterfiend> just teasing, i wanted to use that quote from 'no country for old men'
<Xeago> let me use another example
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
<Xeago> 100% code coverage for unit tests, still doesn't mean that your code is correct
colonolGron has quit [Quit: Lost terminal]
kracekumar has joined #ruby
<Xeago> having low coverage is awful, and improving it is likely to be worthwhile
kracekumar has quit [Max SendQ exceeded]
<Xeago> the effect from 0-50% is much larger than from 50%-100%
carraroj has quit [Ping timeout: 272 seconds]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
zz_dbRenaud is now known as dbRenaud
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
spider-mario has joined #ruby
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
kracekumar has quit [Max SendQ exceeded]
cogent has joined #ruby
kracekumar has joined #ruby
ehaliewicz has joined #ruby
justsee has quit [Quit: leaving]
mengu has quit [Remote host closed the connection]
<waxjar> sounds kinda like that "80% of the work in 20% of the time" thing
DaZ_ has joined #ruby
<Xeago> more concrete tho :)
mengu has joined #ruby
allsystemsarego has joined #ruby
parzo has quit [Remote host closed the connection]
Mathieu has joined #ruby
parzo has joined #ruby
kofno has quit [Ping timeout: 272 seconds]
dangerousdave has joined #ruby
DaZ has quit [Ping timeout: 272 seconds]
DaZ_ is now known as DaZ
atmosx has quit [Quit: WeeChat 0.4.2-rc2]
kaldrenon has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
z has quit [Quit: Moving infrastructure around, be back shortly.]
mengu has quit [Ping timeout: 265 seconds]
sniffingcats has joined #ruby
atmosx has joined #ruby
wykydtron has quit [Quit: ZNC - http://znc.sourceforge.net]
GeissT has quit [Remote host closed the connection]
DaZ has quit [Read error: Connection reset by peer]
kaldrenon has quit [Read error: Operation timed out]
Tearan has joined #ruby
Tearan has quit [Client Quit]
cogent has quit [Quit: cogent]
srji has quit [Ping timeout: 264 seconds]
tessi has quit [Ping timeout: 260 seconds]
Xaitec has joined #ruby
dbRenaud is now known as zz_dbRenaud
vince_prignano has joined #ruby
Squarepy_ has joined #ruby
ereslibre has joined #ruby
Squarepy_ has quit [Remote host closed the connection]
Squarepy has quit [Quit: Leaving]
eka has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby
lyanchih has joined #ruby
sepp2k has joined #ruby
Xaitec has quit [Remote host closed the connection]
aryaching has joined #ruby
DaZ has joined #ruby
ericmathison has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
newbiehacker_ has joined #ruby
ereslibre has quit [Ping timeout: 245 seconds]
leynos has joined #ruby
fwmath has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
vince_prignano has quit []
gemmy has joined #ruby
srji has joined #ruby
cody-- has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
Jetchisel has joined #ruby
vince_prignano has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
vince_prignano has quit [Max SendQ exceeded]
ravster has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
Ox6abe has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
xk_id has quit [Quit:
astrobunny has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
decoponio has quit [Read error: Connection reset by peer]
<joshAnderson991> hi, this isn't a ruby issue strictly, but in trying to run ruby i'm installing Mint under VirtualBox, using that instead of Windows. But in Mint install default option is "Erase disk and install Linux Mint". in the context of VirtualBox, does this mean using just the whole storage space allocated to the 'machine', or does it actually mean the whole drive?
decoponio has joined #ruby
sameerynho has quit [Quit: Leaving]
kreeves has joined #ruby
<Hanmac> joshAnderson991: hm only the space that you assigned to the VM ... the VM cant access your whole drive ...
raphaelivan has joined #ruby
fwmath has quit [Ping timeout: 246 seconds]
catphish has left #ruby ["Leaving"]
<joshAnderson991> thanks, assumed so, but with a potential drive wipe, wanted to confirm.
<vasilakisFiL> hey is there a way to start a background bash process through ruby
<vasilakisFiL> and get the pid ?
<vasilakisFiL> so that I can terminate it whenever I want
<vasilakisFiL> system("command") returns only true if everything is ok nothing more :/
astrobunny has quit [Ping timeout: 256 seconds]
jbpros has joined #ruby
<Hanmac> joshAnderson991: like when you have an 2TB disk inside, and says: the VM gets an 200GB disk, then Mint can only clean the 200GB disk image
<Hanmac> vasilakisFiL: hm you can try IO#popen ..
kil0byte has quit [Remote host closed the connection]
sniffingcats has quit [Quit: Til rivido Idisti!]
SilverKey has quit [Quit: Sleep now]
astrobunny has joined #ruby
SilverKey has joined #ruby
joshAnderson991 has quit [Ping timeout: 265 seconds]
<vasilakisFiL> hmm Hanmac good idea but doesn't seem to work
zigomir_ has joined #ruby
<vasilakisFiL> (when I add the &)
DylanJ has joined #ruby
jbpros has quit [Ping timeout: 256 seconds]
duggiefresh has joined #ruby
<vasilakisFiL> actually I want to start from rake the thin web server in the background, run some tests and then stop the server
workmad3 has joined #ruby
<vasilakisFiL> with one rake task
Elhu has joined #ruby
newbiehacker_ has quit [Ping timeout: 272 seconds]
lukec has joined #ruby
relix has joined #ruby
zigomir has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
lfox has joined #ruby
carraroj has joined #ruby
siwica has quit [Ping timeout: 240 seconds]
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
endash has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
beilabs has quit [Ping timeout: 240 seconds]
wildroman has quit [Ping timeout: 256 seconds]
danshultz has quit [Ping timeout: 265 seconds]
beilabs has joined #ruby
horofox has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
Spami has joined #ruby
3JTAAGTXK has joined #ruby
osvico has joined #ruby
Ziarkaen has joined #ruby
predator217 has quit [Ping timeout: 246 seconds]
popl has quit [Quit: We must make an idol of our fear, and call it God.]
freerobby has quit [Client Quit]
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby
cescalante is now known as ce_afk
francisfish has quit [Read error: Connection reset by peer]
francisfish has joined #ruby
geggam_ is now known as geggam
predator117 has joined #ruby
rylev has joined #ruby
wildroman has joined #ruby
dhamidi has quit [Remote host closed the connection]
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
ereslibre has joined #ruby
ereslibre has joined #ruby
mlpinit has joined #ruby
francisfish has quit [Remote host closed the connection]
mlpinit has quit [Remote host closed the connection]
z_ has joined #ruby
rgbdev has joined #ruby
rjhunter has quit [Remote host closed the connection]
francisfish has joined #ruby
z_ is now known as z
jezen has joined #ruby
simoz has quit [Ping timeout: 246 seconds]
calmyournerves has quit [Quit: ZNC - http://znc.in]
calmyournerves has joined #ruby
ereslibre has quit [Ping timeout: 245 seconds]
robertjpayne has quit [Remote host closed the connection]
francisfish has quit [Ping timeout: 245 seconds]
DaZ has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
Kar- has quit [Ping timeout: 240 seconds]
rylev has quit [Remote host closed the connection]
Kabaka has quit [Remote host closed the connection]
Kabaka has joined #ruby
cody-- has quit [Quit: derp]
Elhu has joined #ruby
mixel has joined #ruby
DaZ has joined #ruby
noctua has joined #ruby
ce_afk is now known as cescalante
noctua has quit [Client Quit]
gyre007 has joined #ruby
noname001__ has quit [Read error: Operation timed out]
horofox has quit [Read error: Connection reset by peer]
horofox has joined #ruby
ravster has joined #ruby
DaZ has quit [Ping timeout: 240 seconds]
newbiehacker_ has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
barratt has joined #ruby
boxmein has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
volty has joined #ruby
volty has left #ruby [#ruby]
volty has joined #ruby
mixel has quit [Quit: mixel]
jbpros has joined #ruby
wallerdev has joined #ruby
mixel has joined #ruby
tabolario has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
dzhulk1 has quit [Quit: Leaving.]
DaZ has joined #ruby
leynos has quit [Quit: Off to dreams of Laserdiscs and Neo-Geos]
mixel has quit [Client Quit]
einarj has joined #ruby
duggiefresh has quit [Ping timeout: 246 seconds]
aryaching has quit [Ping timeout: 252 seconds]
Vivekananda has joined #ruby
robert__ has joined #ruby
mixel has joined #ruby
robert_ has quit [Ping timeout: 240 seconds]
robert__ is now known as robert_
lessless has quit [Remote host closed the connection]
ereslibre has joined #ruby
boxmein has quit [Ping timeout: 272 seconds]
DaZ has quit [Ping timeout: 240 seconds]
wildroman has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 256 seconds]
wildroman has joined #ruby
drumsrgr8forn8 has joined #ruby
Kar- has joined #ruby
wildroman has quit [Ping timeout: 240 seconds]
DaZ has joined #ruby
someish has joined #ruby
ereslibre has quit [Ping timeout: 245 seconds]
siwica has joined #ruby
krz has quit [Quit: krz]
alekst has joined #ruby
krz has joined #ruby
lyanchih has quit [Quit: lyanchih]
lyanchih has joined #ruby
Kar- has quit [Ping timeout: 246 seconds]
obs has joined #ruby
lyanchih has quit [Client Quit]
Elhu has quit [Quit: Computer has gone to sleep.]
polaco_zZz is now known as polaco
S0da has quit [Remote host closed the connection]
haxrbyte has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
_maes_ has joined #ruby
Elinos has joined #ruby
DaZ has quit [Ping timeout: 240 seconds]
obs has quit [Quit: Konversation terminated!]
_maes_ has quit [Client Quit]
freerobby has joined #ruby
smirn0v has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rok has joined #ruby
Kar- has joined #ruby
randomnick_ has joined #ruby
rok has quit [Client Quit]
Mon_Ouie has quit [Ping timeout: 272 seconds]
<shevy> hmmm
<shevy> x = true
<shevy> x = ! x
<shevy> that toggles
<shevy> but why?
preller has joined #ruby
wildroman has joined #ruby
<Memphizzzzzz> because youre setting x to its opposite
<sevenseacat> what d oyou mean, why?
sergicles has left #ruby [#ruby]
wildroman has quit [Remote host closed the connection]
<shevy> hmm
wildroman has joined #ruby
ravster has quit [Ping timeout: 246 seconds]
<mixel> if x = true then !x = false
<mixel> so now x = false
srji has quit [Ping timeout: 260 seconds]
danshultz has joined #ruby
marius has quit [Quit: xy]
marius has joined #ruby
wildroman has quit [Ping timeout: 272 seconds]
<waxjar> haskell fixes this :P
sevenseacat has quit [Read error: Connection reset by peer]
raphaelivan has quit [Quit: Leaving.]
mrsolo has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
lsmola has quit [Ping timeout: 240 seconds]
danshultz has quit [Ping timeout: 272 seconds]
<volty> >> def true.!; true; end; x = true; x = !x
<eval-in> volty => true (https://eval.in/54329)
<volty> if you don't want to toggle :)
kracekumar has quit [Quit: Computer has gone to sleep.]
krz has quit [Quit: krz]
someish has quit [Quit: someish]
mary5030 has joined #ruby
jbpros has quit [Quit: jbpros]
kracekumar has joined #ruby
krz has joined #ruby
Tearan has joined #ruby
pen has quit [Remote host closed the connection]
kofno has quit [Read error: Connection reset by peer]
pen has joined #ruby
<volty> shevy: ! is 'not' - negation, opposite
mary5030 has quit [Remote host closed the connection]
kofno has joined #ruby
mary5030 has joined #ruby
astrobunny has joined #ruby
Tearan has quit [Client Quit]
<Hanmac> volty: PS: beware "if not obj" is not the same as "unless obj"
siwica has quit [Ping timeout: 245 seconds]
schaerli has joined #ruby
Tearan has joined #ruby
pumper has joined #ruby
srji has joined #ruby
Tearan has quit [Client Quit]
mary5030 has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
parzo_ has joined #ruby
3JTAAGTXK has quit [Ping timeout: 240 seconds]
byprdct has joined #ruby
ravster has joined #ruby
byprdct has quit [Max SendQ exceeded]
dzhulk has joined #ruby
osvico has quit [Ping timeout: 245 seconds]
parzo has quit [Ping timeout: 265 seconds]
wow000 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130814063812]]
Dave has joined #ruby
Dave is now known as Guest51541
pumper has quit [Remote host closed the connection]
lsmola has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
astrobunny has quit [Ping timeout: 245 seconds]
drumsrgr8forn8 has joined #ruby
io_syl has quit []
dangerousdave has quit [Ping timeout: 240 seconds]
rx_ has joined #ruby
Guest51541 has quit [Quit: Linkinus - http://linkinus.com]
banisterfiend has joined #ruby
<volty> Hanmac: in which context?
dangerousdave has joined #ruby
<Hanmac> unless does not care if you overwrite the "!" method
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
<volty> ah ! :)
rx_ has quit [Client Quit]
alekst has quit [Quit: Leaving...]
astrobunny has joined #ruby
rx_ has joined #ruby
<volty> like what I did above -- of course, thx
horofox has quit [Read error: Connection reset by peer]
horofox has joined #ruby
rx_ is now known as rixth
dzhulk has quit [Quit: Leaving.]
michael_mbp is now known as zz_michael_mbp
threesome has quit [Ping timeout: 246 seconds]
end_guy has quit [Remote host closed the connection]
arietis has joined #ruby
aspiers has quit [Ping timeout: 252 seconds]
atSetKey has joined #ruby
barratt has quit [Quit: Leaving...]
atSetKey has quit [Remote host closed the connection]
dangerousdave has quit [Quit: Linkinus - http://linkinus.com]
apeiros has joined #ruby
maletor has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
dzhulk has joined #ruby
srji has quit [Ping timeout: 260 seconds]
<shevy> volty that is one of the weirdest ruby code I ever saw
srji has joined #ruby
someish has joined #ruby
barratt has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
Tearan has joined #ruby
Tearan has quit [Client Quit]
^conner has quit [Ping timeout: 264 seconds]
kaspergrubbe has quit [Ping timeout: 241 seconds]
Xeronic has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
raphaelivan has joined #ruby
msafi311 has joined #ruby
msafi311 has left #ruby [#ruby]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Xeronic has left #ruby [#ruby]
ereslibre has joined #ruby
kaspergrubbe has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 252 seconds]
renanoronfle has joined #ruby
ereslibre has quit [Ping timeout: 245 seconds]
ravster has quit [Quit: Leaving.]
einarj has joined #ruby
^conner has joined #ruby
<krz> is it possible to include a module only if condition is met?
<volty> require ... if
<volty> sorry
<apeiros> require != include
<volty> ignore me
<apeiros> same thing, though. include … if …
<volty> include if
horofox has quit [Quit: Leaving.]
Tearan has joined #ruby
Tearan has quit [Client Quit]
<krz> thanks
geggam has quit [Quit: Leaving]
<volty> btw thx to apeiros for the hint about ripper
<volty> saved me reinventing the wheel
<apeiros> aaaaw :(
srji has quit [Ping timeout: 260 seconds]
<apeiros> I'm sorry
parzo_ has quit [Remote host closed the connection]
<apeiros> reinventing the wheel is where all the fun lies…
parzo has joined #ruby
<volty> true, i was in part sorry and in part satisfied
geggam has joined #ruby
<weeb1e> shevy: gsub! /weird/, 'scary'
roadt has quit [Ping timeout: 272 seconds]
tkuchiki has joined #ruby
freerobby has quit [Quit: Leaving.]
maz-dev_ has joined #ruby
Mathieu has quit []
<Hanmac> weeb1e: youwant to see scary?
<Hanmac> >> a=""; /(?<str>\w+)#{a}/ =~ "abc123 xyz" ; str
<eval-in> Hanmac => undefined local variable or method `str' for main:Object (NameError) ... (https://eval.in/54330)
maz-dev has quit [Ping timeout: 265 seconds]
<Hanmac> >> /(?<str>\w+)#{" "}/ =~ "abc123 xyz" ; str
<eval-in> Hanmac => "abc123" (https://eval.in/54331)
maletor has quit [Quit: Computer has gone to sleep.]
<weeb1e> That isn't really scary :P
<weeb1e> I'd use similar code, in the right place
maz-dev has joined #ruby
<weeb1e> Changing `!true` on the other hand, is very scary
tkuchiki has quit [Ping timeout: 272 seconds]
<Hanmac> nah i mean you dont understand, it is interesting that regexliteral can interpolarate string literal without losing the local variable ability
maz-dev_ has quit [Ping timeout: 252 seconds]
barratt has quit [Quit: Leaving...]
freerobby has joined #ruby
brennanMKE has joined #ruby
maletor has joined #ruby
Hanmac1 has joined #ruby
Ahti333 has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 265 seconds]
blackmesa has joined #ruby
astrobunny has quit [Ping timeout: 265 seconds]
zerun0_ has quit [Ping timeout: 240 seconds]
<krz> how can i write this a "safer" way: eval "include Foo::Bar::#{baz}"
<krz> possible to do this with const_get?
<apeiros> const = Foo::Bar.const_get baz; include const
<apeiros> (or in one step if you prefer)
<krz> kk
zerun0_ has joined #ruby
^conner has quit [Ping timeout: 256 seconds]
someish has quit [Quit: someish]
Ahti333 has joined #ruby
astrobunny has joined #ruby
likemike_ has quit [Ping timeout: 264 seconds]
pushpak has joined #ruby
likemike has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
nisstyre has joined #ruby
srji has joined #ruby
brennanMKE has quit [Remote host closed the connection]
brennanMKE has joined #ruby
jezen has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
haxrbyte has quit [Ping timeout: 240 seconds]
trok has joined #ruby
<trok> hey, are there any performance problems regardig string character access
<trok> since unicode chars could be multiple bytes
<apeiros> yes
<trok> str[1000], is that O(n) or O(1)
<apeiros> former
kracekumar has quit [Quit: Computer has gone to sleep.]
<apeiros> for the reason you stated
T_T has joined #ruby
<trok> for real?
<apeiros> obviously does not apply to fixed-width encodings
<trok> where could I read more about this?
<apeiros> there it's O(1)
<apeiros> in the source code
<trok> oh, that's a bummer
brennanMKE has quit [Ping timeout: 245 seconds]
<trok> this should be fixed
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<apeiros> how?
<trok> storing characters as 4 bytes regardless how big they really are
<apeiros> that's not a fix
<apeiros> you can do that already. use utf-32.
T_T has quit [Read error: Connection reset by peer]
<apeiros> otherwise you're breaking encodings. entirely.
mary5030 has joined #ruby
T_T has joined #ruby
Davey has joined #ruby
seoNinjaWarrior has quit [Ping timeout: 264 seconds]
poisonarms has quit [Quit: Computer has gone to sleep]
maletor has quit [Quit: Computer has gone to sleep.]
dangerousdave has joined #ruby
pumper has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
banisterfiend has quit [Quit: Computer has gone to sleep.]
gmas has joined #ruby
Vivekananda has quit [Quit: Ex-Chat]
Tearan has joined #ruby
Tearan has quit [Client Quit]
xk_id has joined #ruby
banisterfiend has joined #ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
AlHafoudh has joined #ruby
<AlHafoudh> is it possible to load gem that I work on without building and installing it?
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
newbiehacker_ has quit [Ping timeout: 272 seconds]
habanany has joined #ruby
trok has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
<apeiros> AlHafoudh: add its lib-dir to $LOAD_PATH
<apeiros> e.g. ruby -I lib bin/yourgemsexecutable
<apeiros> the I in -I is a capital i, not a lowercase L
apeiros has quit [Remote host closed the connection]
ereslibre has quit [Ping timeout: 264 seconds]
pyr0commie has joined #ruby
<AlHafoudh> apeiros: thanks
habanany has quit [Read error: Connection reset by peer]
kracekumar has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
kracekumar has quit [Max SendQ exceeded]
kracekumar has joined #ruby
soba_ has joined #ruby
DaZ has joined #ruby
peterhu has joined #ruby
helpD has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
schaerli has quit [Remote host closed the connection]
<helpD> hello
<helpD> is this the ruby channel?
maletor has joined #ruby
<helpD> please, I need help if there are Ruby developers around to help a nooby?
<volty> No, this is a channel where Ruby Coco Chanel admirers stay :)
peterhu has quit [Ping timeout: 265 seconds]
astrobunny has quit [Ping timeout: 272 seconds]
<volty> just ask what you want to know about Coco
<Hanmac1> helpD the "real" developers are in #rubyonrails
Hanmac1 is now known as Hanmac
<helpD> coco or ruby?
<helpD> i am only interested in ruby
<helpD> not the rails part? which channel should i join?
<volty> jast ask
<volty> just ask
marcdel has joined #ruby
<helpD> def sum_to_n(nums, n)
<helpD> boolvalue = false
<helpD> if nums.length<=0
<helpD> return 0
<helpD> end
senayar has quit [Ping timeout: 240 seconds]
<helpD>
<helpD> for i in 0...nums.length
<helpD> if((nums[i]+nums[i+1])==n)
<helpD> boolvalue = true
<helpD> end
<helpD> end
<helpD> return boolvalue
<helpD>
<helpD> end
<helpD> I got this code and don't know why it is giving an error when I test it
dangerousdave has quit [Quit: Leaving...]
maletor has quit [Ping timeout: 240 seconds]
<volty> open eval.in in paste your code there -- here is unreadable
mary5030 has quit [Remote host closed the connection]
dangerousdave has joined #ruby
mary5030 has joined #ruby
parzo has quit [Remote host closed the connection]
vince_prignano has joined #ruby
parzo has joined #ruby
colonolGron has joined #ruby
marcdel has quit [Ping timeout: 256 seconds]
astrobunny has joined #ruby
<volty> if I get it right this is: nums.each_cons(2).detect { |x, y| x + y == n }
Tearan has joined #ruby
<helpD> ok i will do that now.
<volty> s/this is/should be/
Mon_Ouie has joined #ruby
srji has quit [Remote host closed the connection]
srji has joined #ruby
<Hanmac> hm ok i misunderstand it for the reading i thought the line should find duplicates ... if someone is interested in this:
<Hanmac> >> [1,2,2,3,4].each_cons(2).any?(&:uniq!)
<eval-in> Hanmac => true (https://eval.in/54335)
DaZ has quit [Read error: Operation timed out]
mary5030 has quit [Ping timeout: 240 seconds]
<helpD> @volty ==> http://pastebin.com/6GY2hHjs
parzo has quit [Ping timeout: 240 seconds]
dzhulk has quit [Quit: Leaving.]
<volty> helpD: what is your goal? implement such a function or fix that one?
<helpD> if you can implement such, itz ok, if you can fix it, itz ok. The goal is to find if there are two numbers in the array whose sum equals the second parameter passed into the function
<volty> i gave it to you
marcdel has joined #ruby
<volty> >> nums = (1..10).to_a; def find_sum(nums, sum); nums.each_cons(2).detect { |x, y| x + y == sum }; end; find_sum(nums, 9)
<eval-in> volty => [4, 5] (https://eval.in/54338)
einarj has quit [Remote host closed the connection]
<helpD> @volty, let me try it.
einarj has joined #ruby
srji has quit [Quit: leaving]
workmad3 has joined #ruby
<helpD> @volty why do you have ; and then end; could you paste your code on pastebin clearly so I can study it? thanks
DaZ has joined #ruby
<volty> helpD: just paste it in your editor and put new lines where you please
jb41 has quit [Ping timeout: 260 seconds]
Zolo has quit [Remote host closed the connection]
<helpD> @volty, it is complaining about a method : nums.each_cons(2); undefined method
Zolo has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
DaZ has quit [Read error: Operation timed out]
Zolo has quit [Ping timeout: 245 seconds]
rixth has quit [Quit: Textual IRC Client: www.textualapp.com]
ereslibre has joined #ruby
zigomir has joined #ruby
jaimef has quit [Excess Flood]
jaimef has joined #ruby
<helpD> @volty, I keep getting error..try this ==>http://pastebin.com/vVaJq3iP
Advocation has joined #ruby
brennanMKE has joined #ruby
zigomir_ has quit [Ping timeout: 265 seconds]
ereslibre has quit [Ping timeout: 245 seconds]
ahawkins has joined #ruby
DaZ has joined #ruby
robert__ has joined #ruby
robert_ has quit [Ping timeout: 246 seconds]
brennanMKE has quit [Ping timeout: 272 seconds]
rte has joined #ruby
<rte> why are strings, otherwise binary equal, just different encoding hashed differently
<rte> this matters for Hash
carraroj has quit [Quit: Konversation terminated!]
abhishek77in has joined #ruby
<volty> helpD: run it on eval.in (or stop trolling)
<volty> going to drink my coffee
<helpD> PLEASE, can it be ran only on eval.in? I want to know
T_T has quit [Read error: Connection reset by peer]
Tearan has quit [Quit: Sleepy Badger....]
T_T has joined #ruby
<Mon_Ouie> rte: They're only hashed differently if they would not be considered equal in the first place
<Hanmac> rte same happens for strings that have the same encoding, the same content, but a different binary storing ... (when multi-byte-chars exist as one "≃" or as combined "~"+"=" )
someish has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
rte has quit [Quit: Page closed]
mrsolo has quit [Quit: This computer has gone to sleep]
hidensoft has joined #ruby
apeiros has joined #ruby
mrsolo has joined #ruby
astrobunny has joined #ruby
dzhulk has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
kaspergrubbe has quit [Remote host closed the connection]
gyre007 has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
T_T has quit [Read error: Connection reset by peer]
Monie has joined #ruby
T_T has joined #ruby
petey has joined #ruby
Advocation has quit [Quit: Advocation]
blackmes1 has joined #ruby
boxmein has joined #ruby
danshultz has joined #ruby
decoponio has quit [Quit: Leaving...]
kaspergrubbe has quit [Ping timeout: 246 seconds]
smirn0v has joined #ruby
kenneth has joined #ruby
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
ahawkins has quit [Ping timeout: 265 seconds]
otherj has joined #ruby
ahawkins has joined #ruby
stkowski has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
AlHafoudh has quit [Quit: Computer has gone to sleep.]
petey has quit [Ping timeout: 265 seconds]
<AntelopeSalad> how can i test time equality, basically i'm trying to write a test that "if published_at is empty, then use current time" and the test is testing to make sure the time is set to time.current vs the published_at field but it's off by a few seconds
<AntelopeSalad> so i hacked together https://gist.github.com/anonymous/6966030 and it works , but is there a more elegant/real way to do test equality checks when you're checking vs the current time?
blackmes1 has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
peterhu has joined #ruby
parzo has joined #ruby
blackmes1 has joined #ruby
BizarreCake has quit [Ping timeout: 256 seconds]
astrobunny has quit [Ping timeout: 240 seconds]
<AntelopeSalad> even the created_at and published_at times are off by 1 full second
workmad3 has quit [Ping timeout: 240 seconds]
teddyp1cker has joined #ruby
abhishek77in has quit [Quit: Page closed]
teddyp1cker has quit [Remote host closed the connection]
hidensoft is now known as intuxicated
teddyp1cker has joined #ruby
jrhe has joined #ruby
peterhu has quit [Ping timeout: 272 seconds]
parzo has quit [Ping timeout: 256 seconds]
mpeg has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
burlyscudd has joined #ruby
dzhulk has quit [Quit: Leaving.]
pushpak has joined #ruby
dzhulk has joined #ruby
astrobunny has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<volty> assert equal (Time.now.to_i - ptime.to_i) / allowed_delay, 0
krz has quit [Quit: krz]
<apeiros> volty: why .to_i ?
<volty> booh
<volty> just to give the idea
mrsolo has quit [Quit: This computer has gone to sleep]
fgo has joined #ruby
<volty> he can do it with whatever he thinks is appropriate
<udoprog> AntelopeSalad: You could consider rewriting your procedure to allow for defining what the current time is deterministically in the test case
<apeiros> volty: no, I mean Time#- already returns the difference in seconds. there's no need to use .to_i on it first
DaZ has quit [Ping timeout: 245 seconds]
mrsmith75 has joined #ruby
<AntelopeSalad> udoprog: isn't that going over board?
<AntelopeSalad> volty: that looks pretty interesting but isn't that about as hacky as my solution?
<udoprog> AntelopeSalad: depends on how important it is for you to prevent false positives and how difficult it is to do it
<AntelopeSalad> i was just looking for a reasonable way to test to make sure the published_at time is "now" when you post it without selecting a time
<volty> apeiros is right but I am distracted by else and do not want to think about his real time classes
<mrsmith75> I'm trying to initialize an instance of Foo and store that instance in a class variable @@foo, so I can later access as Foo.foo. I tried setting @@foo = self in the initialize method, and setting attr_accessor :foo, but that doesn't appear to work. Any suggestions?
<AntelopeSalad> realistically in the application if the created_at and published_at times diff by a second (or even 10) is not a big deal
Banistergalaxy has joined #ruby
ewnd9 has quit [Ping timeout: 256 seconds]
<volty> AntelopeSalad: (nowtime - lasttime) % max_limit == 0 isn't hacky (as yours)
<volty> AntelopeSalad: (nowtime - lasttime) / max_limit == 0 isn't hacky (as yours)
dangerousdave has quit [Read error: Connection reset by peer]
<Banistergalaxy> Volty what are your tips when trying to impress the ladies
dangerousdave has joined #ruby
<AntelopeSalad> volty: i only thought it was equally as hacky because the delay is out of our control here
<volty> on the other hand i didn't do anything with time sine long ago
Stalkr_ has quit [Ping timeout: 265 seconds]
<AntelopeSalad> the db might process it in 500 microseconds or 50 seconds
<udoprog> to be picky, it implies that you are specifically testing that threshold.
<volty> i don't know what time - time returns, i'll go to see when I will need it
Xaitec has joined #ruby
vince_prignano has quit []
<mrsmith75> Is @@foo = self not valid in the initialize method?
<AntelopeSalad> udoprog: yeah i do like that aspect of his solution
<AntelopeSalad> mine just chops off the seconds and hopes it gets done within a minute
skaflem has quit [Quit: Leaving]
<mrsmith75> I can see @@foo in Foo.class_variables.
DaZ has joined #ruby
<mrsmith75> But I can't access it with Foo.foo.
<Mon_Ouie> mrsmith75: It's valid.
Beoran_ has quit [Ping timeout: 272 seconds]
<udoprog> AntelopeSalad: but do you really want to test the database latency?
baroquebobcat has joined #ruby
lfox has joined #ruby
jrhe has quit [Ping timeout: 272 seconds]
<Mon_Ouie> Well, that's because you didn't define a getter for it
<AntelopeSalad> udoprog: nope not at all
<mrsmith75> I set attr_accessor :foo though.
MrZYX|off is now known as MrZYX
<Mon_Ouie> That defines an instance method to access an instance variable @foo
<udoprog> AntelopeSalad: so in practice, you might be able to stup out Time.current to return something deterministic for that specific test case. Or write a simple abstraction which allows for something similar.
Jdubs has joined #ruby
<Mon_Ouie> You need a class method that accesses a class variable
<Mon_Ouie> e.g. def self.foo; @@foo; end
kaspergrubbe has joined #ruby
habstinat has quit [Ping timeout: 240 seconds]
<mrsmith75> Hmm, okay.
<AntelopeSalad> udoprog: yeah maybe
<AntelopeSalad> btw volty: with a delay of 10, 1, or 0.5 your calculation always returns false, is that expected?
schaerli has joined #ruby
einarj has joined #ruby
mercwithamouth has joined #ruby
Xaitec has quit [Remote host closed the connection]
someish has quit [Quit: someish]
<volty> yes, could be, if you include the module Trolling
spider-mario has joined #ruby
_bart has quit [Remote host closed the connection]
<AntelopeSalad> oh, so is that variable not the allowed delay then?
syoma has joined #ruby
schaerli has quit [Remote host closed the connection]
kracekumar has quit [Quit: Computer has gone to sleep.]
<syoma> hello
einarj has quit [Ping timeout: 245 seconds]
jbpros has joined #ruby
teapop has quit [Remote host closed the connection]
<volty> >> start = 5; (5..15).map { |i| (i - 5) / 5 } # that's why to_i -- you never know - stable, clear
<eval-in> volty => [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2] (https://eval.in/54359)
jbpros has quit [Client Quit]
teapop has joined #ruby
JZTech101 has quit [Ping timeout: 252 seconds]
Banistergalaxy has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby
teapop has quit [Ping timeout: 240 seconds]
^conner has joined #ruby
JZTech101 has joined #ruby
mpeg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ereslibre has joined #ruby
ereslibre has joined #ruby
Beoran has joined #ruby
newbiehacker_ has joined #ruby
Kabaka has quit [Ping timeout: 240 seconds]
frustrum has joined #ruby
Ahti333 has quit [Ping timeout: 240 seconds]
atSetKey has joined #ruby
jrhe has joined #ruby
ereslibre has quit [Ping timeout: 245 seconds]
Ahti333 has joined #ruby
threesome has joined #ruby
Kabaka has joined #ruby
jnix has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
syoma has quit [Quit: leaving]
jnix has joined #ruby
Hanmac1 has joined #ruby
lsmola has quit [Read error: Operation timed out]
jnix has quit [Changing host]
jnix has joined #ruby
stefff has quit [Ping timeout: 272 seconds]
robustus has quit [Ping timeout: 264 seconds]
jeffdb has joined #ruby
carraroj has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
peterhu has joined #ruby
jeffdb has quit [Client Quit]
robustus has joined #ruby
heftig_ is now known as heftig
spider-mario has quit [Remote host closed the connection]
Lewix has joined #ruby
danshultz has quit [Remote host closed the connection]
soba_ has quit [Ping timeout: 246 seconds]
SilverKey has quit [Quit: Sleep now]
aspires has joined #ruby
Elhu has joined #ruby
danshultz has joined #ruby
rixth has joined #ruby
kstephens has quit [Ping timeout: 240 seconds]
zigomir has quit [Read error: Operation timed out]
zz_michael_mbp is now known as michael_mbp
ereslibre has joined #ruby
kstephens has joined #ruby
w3pm has joined #ruby
heidi has joined #ruby
SilverKey has joined #ruby
heidi has quit [Client Quit]
MrZYX is now known as MrZYX|off
peterhu has quit [Ping timeout: 240 seconds]
heftig has quit [Quit: Quitting]
carraroj has quit [Quit: Konversation terminated!]
heftig has joined #ruby
michael_mbp is now known as zz_michael_mbp
|PiP|_ has joined #ruby
<|PiP|_> what's the best way to find duplicate keys in a yaml file?
drumsrgr8forn8 has joined #ruby
sepp2k has quit [Quit: Leaving.]
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
fayimora has joined #ruby
Dave is now known as Guest96726
mrsolo has joined #ruby
parzo has joined #ruby
ereslibre has quit [Ping timeout: 245 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
banisterfiend has quit [Quit: Computer has gone to sleep.]
go|dfish has quit [Remote host closed the connection]
mercwithamouth has quit [Read error: Operation timed out]
peterhu has joined #ruby
echevemaster has quit [Remote host closed the connection]
<fayimora> Hey folks, I'm trying to use mechanise to visit a page and log in but i kep getting this => certificate verify failed (OpenSSL::SSL::SSLError)
allsystemsarego has quit [Quit: Leaving]
<fayimora> How do i "fix" it?
jrhe has quit [Ping timeout: 246 seconds]
parzo has quit [Ping timeout: 265 seconds]
jeffdb has joined #ruby
mercwithamouth has joined #ruby
burlyscudd has quit [Quit: Leaving.]
go|dfish has joined #ruby
nazty has quit [Read error: Connection reset by peer]
nazty has joined #ruby
fgo has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
roadt has joined #ruby
Guest96726 has quit [Quit: Linkinus - http://linkinus.com]
dangerousdave has joined #ruby
pencilcheck has joined #ruby
Xeago has joined #ruby
einarj has joined #ruby
burlyscudd has joined #ruby
astrobunny has joined #ruby
pen has quit [Ping timeout: 272 seconds]
soulcake has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
rgbdev has quit [Quit: rgbdev]
Davey has quit [Quit: Computer has gone to sleep.]
Hooman has joined #ruby
Hooman has left #ruby [#ruby]
jbpros has joined #ruby
newbiehacker_ has quit [Ping timeout: 265 seconds]
mrsmith75 has quit [Quit: leaving]
kleinerdrache has quit [Remote host closed the connection]
zz_scottstamp has joined #ruby
pencilcheck has quit [Remote host closed the connection]
zz_scottstamp is now known as scottstamp
Davey has joined #ruby
s0ber has quit [Read error: Connection reset by peer]
rixth has quit [Quit: Computer has gone to sleep.]
volty_ has joined #ruby
volty has quit [Ping timeout: 245 seconds]
aspires has quit [Quit: aspires]
s0ber has joined #ruby
Spami has quit [Quit: Leaving]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Mitchell_ has joined #ruby
apeiros has quit [Remote host closed the connection]
Mitchellvanw has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
jbpros has quit [Quit: jbpros]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has joined #ruby
jonahR has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
Heero has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
Heero has quit [Changing host]
Heero has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
Banistergalaxy has joined #ruby
teapop has joined #ruby
mixel has quit [Quit: mixel]
wookiehangover has quit [Ping timeout: 240 seconds]
fgo has quit [Remote host closed the connection]
Mars`_ has joined #ruby
teapop has quit [Ping timeout: 240 seconds]
boxmein has quit [Read error: Connection reset by peer]
gyzmodo has quit []
k-man has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
aspires has joined #ruby
danshultz has quit [Remote host closed the connection]
k-man has joined #ruby
haxrbyte has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
NicolasTarzia has joined #ruby
wookiehangover has joined #ruby
Mitchell_ is now known as Mitchellvanw
VTLob has quit [Quit: VTLob]
AndChat| has joined #ruby
Soda has joined #ruby
senayar has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
jasdeep has joined #ruby
apeiros has joined #ruby
jasdeep has left #ruby [#ruby]
maroloccio has quit [Quit: WeeChat 0.4.0]
soulcake has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
aspires has quit [Quit: aspires]
xk_id has quit [Quit:
dzhulk has quit [Read error: Connection reset by peer]
dzhulk1 has joined #ruby
alexju has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
someish has joined #ruby
haxrbyte has quit [Remote host closed the connection]
volty_ is now known as volty
xk_id has joined #ruby
haxrbyte has joined #ruby
|PiP|_ has quit [Ping timeout: 256 seconds]
nfk has joined #ruby
nfk has quit [Client Quit]
beilabs has quit [Ping timeout: 245 seconds]
xk_id has quit [Client Quit]
peterhu has quit [Ping timeout: 245 seconds]
baroquebobcat has joined #ruby
Mars`_ has quit [Remote host closed the connection]
MrZYX|off is now known as MrZYX
Ziarkaen` has joined #ruby
beilabs has joined #ruby
aspires has joined #ruby
jan1337z is now known as Jan
Mars` has joined #ruby
Jan is now known as jan1337z
lfox has quit [Remote host closed the connection]
lfox has joined #ruby
Ziarkaen has quit [Ping timeout: 246 seconds]
starfox21 has joined #ruby
bklane has joined #ruby
<shevy> alright...
<shevy> I wanna play with Readline autocompletion
xixo has joined #ruby
<shevy> and for this, I may need to write some script that analyzes a case/when menu
<shevy> case x
<shevy> when 'foo','foobar'
<shevy> foobar()
<shevy> hmm bad example
Mars`_ has joined #ruby
<shevy> in that case it would be simple...
<shevy> going to think of a better example
habstinat has joined #ruby
Mars` has quit [Read error: Connection reset by peer]
lsmola has joined #ruby
dmiller has joined #ruby
<xixo> Hi. If I have a block of code that I execute more than once in my unit tests, can I stick it into a helper method, and if so, where can that method typically live? Also, if I'm testing a method of class Foo, and said method has X permutations, do I create a test method for each permutation, or do I just stick all the permutations into one method?
Deele has quit [Ping timeout: 260 seconds]
starfox21 has quit [Client Quit]
Spleeze has quit [Ping timeout: 246 seconds]
Kabaka has quit [Ping timeout: 240 seconds]
Spleeze has joined #ruby
roadt has quit [Ping timeout: 272 seconds]
aspires has quit [Quit: aspires]
mixel has joined #ruby
Kabaka has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
workmad3 has joined #ruby
helpD has quit [Quit: Leaving...]
Ziarkaen` has quit [Remote host closed the connection]
BraddPitt has quit [Ping timeout: 245 seconds]
jrhe has joined #ruby
BraddPitt has joined #ruby
Mitchellvanw is now known as Mitchellvanw_zzz
|PiP|_ has joined #ruby
w3pm has quit [Quit: This computer has gone to sleep]
Deele has joined #ruby
gemmy has quit [Read error: Connection reset by peer]
bklane has quit [Remote host closed the connection]
voidPirate has joined #ruby
BraddBitt has joined #ruby
gemmy has joined #ruby
MrZYX is now known as MrZYX|off
BraddPitt has quit [Ping timeout: 240 seconds]
kofno has quit [Ping timeout: 241 seconds]
habstinat has quit [Ping timeout: 246 seconds]
<AntelopeSalad> hey guys, i'm stuck trying to refactor a test. i'm at the point where i'm spinning my wheels and i'm not sure why it's not working
<AntelopeSalad> old working tests: https://gist.github.com/anonymous/6967211 , new broken/but cleaned up tests: https://gist.github.com/anonymous/6967740 (they always pass)
nouitfvf_ has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Quit: Leaving...]
lsmola has quit [Ping timeout: 252 seconds]
<AntelopeSalad> my method for detecting if it passes or not has been to not reload article #2 or #3 and then it should fail but it never fails in the refactored version, i don't think i know ruby well enough to do what i'm trying to do
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
nouitfvf has quit [Ping timeout: 246 seconds]
Ox6abe has quit [Remote host closed the connection]
rixth has joined #ruby
Ox6abe has joined #ruby
Ox6abe_ has joined #ruby
astrobunny has joined #ruby
kitak_ has quit [Remote host closed the connection]
kitak_ has joined #ruby
tkuchiki has joined #ruby
kofno has joined #ruby
Ox6abe has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 272 seconds]
Mitchellvanw_zzz has quit [Quit: Dozing off...]
BraddBitt has quit [Ping timeout: 246 seconds]
w3pm has joined #ruby
BraddPitt has joined #ruby
w3pm has quit [Remote host closed the connection]
colonolGron has quit [Quit: Lost terminal]
aspiers has joined #ruby
mercwithamouth has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
habstinat has joined #ruby
Azulinho has joined #ruby
rixth has quit [Quit: Computer has gone to sleep.]
Azulinho has quit [Client Quit]
jrhe has quit [Quit: jrhe]
larissa has joined #ruby
Azulinho has joined #ruby
<Veejay> What respond_to? :each? I wanted to use that instead of .is_a? Enumerable but I'm afraid they're not equivalent
jrhe has joined #ruby
kaichanvong has quit [Quit: _]
Mon_Ouie has quit [Ping timeout: 256 seconds]
_maes_ has joined #ruby
rixth has joined #ruby
<Veejay> Though from my understanding, being enumerable does mean you respond to each
aspiers has quit [Ping timeout: 272 seconds]
|PiP|_ has quit [Ping timeout: 245 seconds]
claymore has quit [Quit: Leaving]
robaman has quit [Ping timeout: 252 seconds]
robaman has joined #ruby
g0bl1n has joined #ruby
jrhe has quit [Quit: jrhe]
poisonarms has joined #ruby
kaichanvong has joined #ruby
whateverman12121 has joined #ruby
xk_id has joined #ruby
dangerousdave has joined #ruby
xk_id has quit [Client Quit]
<whateverman12121> Hey! I need your help. I need t generate a Gemfile.lock for the following Gemfile
kofno has quit [Ping timeout: 246 seconds]
gemmy has quit [Quit: Lost terminal]
<g0bl1n> This is not working for the first lines, but works in bash. Could it be an escape problem ? system("echo $'g/^#/d\nw' | ed -s #{file}")
zarubin has quit [Ping timeout: 256 seconds]
snuffeluffegus has joined #ruby
rixth has quit [Quit: Computer has gone to sleep.]
Azulinho has quit [Quit: WeeChat 0.4.1]
leynos has joined #ruby
Asher has quit [Quit: Leaving.]
vasilakisFiL has left #ruby ["Konversation terminated!"]
Asher has joined #ruby
xk_id has joined #ruby
Xeago has quit [Remote host closed the connection]
rixth has joined #ruby
senayar has joined #ruby
RichardBaker has joined #ruby
raphaelivan has quit [Quit: Leaving.]
RichardBaker has quit [Client Quit]
peterhu has joined #ruby
kofno has joined #ruby
someish has quit [Quit: someish]
whateverman12121 has quit [Quit: Page closed]
Zai00 has quit [Quit: Zai00]
justsee has joined #ruby
peterhu has quit [Ping timeout: 240 seconds]
_bart has joined #ruby
|PiP|_ has joined #ruby
petey has joined #ruby
kirun has quit [Quit: Client exiting]
DrShoggoth has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
haxrbyte has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
jibi has quit [Quit: .]
kil0byte has joined #ruby
haxrbyte has quit [Remote host closed the connection]
ewnd9 has joined #ruby
haxrbyte has joined #ruby
tjad has quit [Ping timeout: 240 seconds]
_bart has quit [Remote host closed the connection]
Xaitec has joined #ruby
travisjeffery has joined #ruby
xk_id has quit [Quit:
haxrbyte has quit [Ping timeout: 272 seconds]
xixo has quit [Ping timeout: 250 seconds]
leynos has quit [Quit: Off to dreams of Laserdiscs and Neo-Geos]
<unstable> "3 3 9 1 6 5 8 1 5 3".split(" ").map { |str| str.to_i }.sort.each { |int| (return int) if (self.count(int) == 1) }
frustrum has quit [Quit: WeeChat 0.4.1]
<unstable> I want to return the lowest number in a string (that isn't a duplicate).
<unstable> In a short/concise way.
<unstable> My self.blah stuff doesn't work.. I'm not sure I know what I'm doing with that section.
<jrobeson> for space seperated perhaps go with %w{ } as that's standard
<jrobeson> instead of the split i mean
<jrobeson> what do you get after the sort? is it what you expect? if so.. why not just .first ?
polaco is now known as polaco_zZz
cescalante is now known as ce_afk
tjad has joined #ruby
havenwood has joined #ruby
<unstable> jrobeson: [1, 1, 3, 3, 3, 5, 5, 6, 8, 9]
<unstable> I get that ruby datastructure after the sort.
<jrobeson> .uniq.first ?
<unstable> jrobeson: .first or .uniq.first both give me 1
<popl> you want 6?
<jrobeson> isn't that what you want?
<unstable> The correct answer should be 6
<popl> ok
<popl> you could have phrased the question differently unstable :)
<jrobeson> oh.. i misread, you want duplicates gone altogether
Azulinho has joined #ruby
<|PiP|_> what's the best way to find duplicate keys in a yaml file?
gstamp has quit [Quit: Textual IRC Client: www.textualapp.com]
Vivekananda has joined #ruby
<|PiP|_> i have a huge translation file that i believe has duplicates
<|PiP|_> anyone know of a tool to parse a yaml for structural errors?
Tearan has joined #ruby
Azulinho has quit [Client Quit]
ereslibre has joined #ruby
Azulinho has joined #ruby
tjad has quit [Ping timeout: 240 seconds]
gstamp has joined #ruby
einarj has quit [Remote host closed the connection]
ereslibre has quit [Ping timeout: 245 seconds]
habstinat has quit [Read error: Operation timed out]
Vivekananda has quit [Remote host closed the connection]
aryaching has joined #ruby
w3pm has joined #ruby
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlSquire has quit [Quit: This computer has gone to sleep]
pyr0commie has quit [Remote host closed the connection]
NinjaPenguin_ has joined #ruby
Elinos has quit [Quit: Leaving]
NinjaPenguin has quit [Ping timeout: 272 seconds]
r0bgleeson has quit [Ping timeout: 264 seconds]
Mars`_ has quit [Ping timeout: 252 seconds]
burlyscudd has quit [Quit: Leaving.]
dangerousdave has quit [Ping timeout: 246 seconds]
Kar- has quit [Ping timeout: 252 seconds]
dangerousdave has joined #ruby
ewnd9 has quit [Ping timeout: 240 seconds]
oliver__ has joined #ruby
wchun has quit [Read error: Operation timed out]
Mars` has joined #ruby
tjad has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
xk_id has joined #ruby
oliver__ is now known as oponder
T_T has quit [Remote host closed the connection]
blarghmatey has joined #ruby
rixth has quit [Quit: Textual IRC Client: www.textualapp.com]
predator217 has joined #ruby
havenwood has quit [Remote host closed the connection]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
havenwood has joined #ruby
havenwood has quit [Remote host closed the connection]
duggiefresh has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
predator117 has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
astrobun_ has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
brennanMKE has joined #ruby
starfox21 has joined #ruby
T_T has joined #ruby
T_T has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 256 seconds]
starfox21 has quit [Client Quit]
someish has joined #ruby
astrobun_ has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
astrobunny has joined #ruby
zz_michael_mbp is now known as michael_mbp
blackmes1 has quit [Ping timeout: 240 seconds]
gyre007 has joined #ruby
michael_mbp is now known as zz_michael_mbp
Jetchisel has joined #ruby
unstable has left #ruby [#ruby]
ahawkins has quit [Quit: leaving]
zachrab has joined #ruby
tjad has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
Jetchisel has quit [Ping timeout: 260 seconds]
petey has quit [Remote host closed the connection]
robert__ is now known as robert_
Jetchisel has joined #ruby
bluepojo_ has joined #ruby
petey has joined #ruby
astrobunny has quit [Ping timeout: 265 seconds]
bluepojo has quit [Ping timeout: 272 seconds]
Mars` has quit [Ping timeout: 264 seconds]
petey has quit [Ping timeout: 265 seconds]
kaspergrubbe has quit [Remote host closed the connection]
yourmysin has joined #ruby
threesome has quit [Read error: Operation timed out]
astrobunny has joined #ruby
kaspergrubbe has joined #ruby
<Tearan> anyone here play with the minitest / test unit that is built into the 2.0 ruby?
forced_request has quit [Ping timeout: 240 seconds]
<popl> unstable isn't here :(
petey has joined #ruby
<popl> >> [1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 8, 9, 10].select {|i| a.count(i) == 1}.first
<eval-in> popl => undefined local variable or method `a' for main:Object (NameError) ... (https://eval.in/54376)
<popl> d'oh
<popl> >> a= [1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 8, 9, 10]; a.select {|i| a.count(i) == 1}.first
<eval-in> popl => 6 (https://eval.in/54377)
kaspergrubbe has quit [Ping timeout: 252 seconds]