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
<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
<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]
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?
<[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
<[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
<[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]
<[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>
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. ;)
<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>
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]
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)
<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?
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
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
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]
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]
<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)
<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]
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…]
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
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
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]
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
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