Lewix has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
jhass is now known as jhass|off
sMecKs has joined #ruby-lang
vintik has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
vintik has joined #ruby-lang
ender|dkm has joined #ruby-lang
vintik has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
|jemc| has joined #ruby-lang
Cakey has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 245 seconds]
parenjitsu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_Kerber0s_ has joined #ruby-lang
amjibaly has joined #ruby-lang
Kerber0s has quit [Ping timeout: 252 seconds]
Cakey has quit [Ping timeout: 245 seconds]
RobertBi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karamazov has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
emmesswhy has quit [Quit: Leaving]
karamazov has joined #ruby-lang
jgpawletko has joined #ruby-lang
ender|dkm has quit [Ping timeout: 264 seconds]
karamazov has quit [Ping timeout: 252 seconds]
shinnya has joined #ruby-lang
|jemc| has quit [Quit: WeeChat 0.4.3]
karamazov has joined #ruby-lang
mistym_ has joined #ruby-lang
|jemc| has joined #ruby-lang
mistym has quit [Ping timeout: 255 seconds]
hahuang65 has quit [Ping timeout: 252 seconds]
Kerber0s has joined #ruby-lang
symm- has quit [Ping timeout: 272 seconds]
mistym_ has quit [Remote host closed the connection]
_Kerber0s_ has quit [Ping timeout: 272 seconds]
Kerber0s has quit [Ping timeout: 264 seconds]
symm- has joined #ruby-lang
nertzy has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vintik has joined #ruby-lang
symm-_ has joined #ruby-lang
symm- has quit [Ping timeout: 245 seconds]
symm-_ has quit [Read error: Connection reset by peer]
chills42 has quit [Remote host closed the connection]
symm- has joined #ruby-lang
chills42 has joined #ruby-lang
symm- has quit [Read error: Connection reset by peer]
Kerber0s has joined #ruby-lang
ruby-lang364 has joined #ruby-lang
tkuchiki has joined #ruby-lang
fizwidget has joined #ruby-lang
symm- has joined #ruby-lang
marr has quit [Ping timeout: 245 seconds]
chills42 has quit [Ping timeout: 246 seconds]
havenwood has quit []
djbkd has quit [Remote host closed the connection]
saarinen has joined #ruby-lang
davispuh has quit [Ping timeout: 245 seconds]
ruby-lang364 has quit [Ping timeout: 246 seconds]
Averna has joined #ruby-lang
symm- has quit [Read error: Connection reset by peer]
saarinen has quit [Client Quit]
davispuh has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
centrx has quit [Quit: Mead error: Connection reset by beer]
mistym has joined #ruby-lang
RobertBirnie has joined #ruby-lang
sargas has joined #ruby-lang
sargas has quit [Changing host]
sargas has joined #ruby-lang
sargas has quit [Client Quit]
mistym has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 264 seconds]
mistym has joined #ruby-lang
sargas has joined #ruby-lang
sargas has quit [Changing host]
sargas has joined #ruby-lang
charliesome has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 264 seconds]
sargas has quit [Client Quit]
law has joined #ruby-lang
RobertBirnie has joined #ruby-lang
<law>
hey all, in Ruby 2.1.2, if I know an array contains a certain string (thanks to Array.include?) but I want to know what position its in, how do I do that?
kirin` has quit [Ping timeout: 246 seconds]
sargas has joined #ruby-lang
kirin` has joined #ruby-lang
sargas has quit [Client Quit]
<womble>
law: Array#index
Lewix has quit [Remote host closed the connection]
dorei has quit []
centrx has joined #ruby-lang
<law>
awesome, thank you!
amjibaly has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
lsegal has joined #ruby-lang
seamon has joined #ruby-lang
migbar has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby-lang
Miphix has joined #ruby-lang
sepp2k1 has quit [Read error: Connection reset by peer]
mistym_ has joined #ruby-lang
rayrai has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
<rayrai>
test
mistym has quit [Ping timeout: 255 seconds]
sleepee has joined #ruby-lang
Kerber0s has quit [Remote host closed the connection]
Kerber0s has joined #ruby-lang
<centrx>
rayrai, test failed
fizwidget has quit []
b06464f377 has quit [Ping timeout: 240 seconds]
|jemc| has quit [Ping timeout: 260 seconds]
b06464f377 has joined #ruby-lang
law has left #ruby-lang [#ruby-lang]
toastynerd has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
emmesswhy has joined #ruby-lang
Cakey has joined #ruby-lang
jdecuirm has quit [Ping timeout: 276 seconds]
wallerdev has joined #ruby-lang
djbkd has joined #ruby-lang
migbar has joined #ruby-lang
_Kerber0s_ has joined #ruby-lang
<rayrai>
simple question
<rayrai>
anything=gets.chomp
Kerber0s has quit [Ping timeout: 268 seconds]
<rayrai>
if i input anything = 1
<rayrai>
will the ruby consider it as a string or integer
migbar has quit [Ping timeout: 268 seconds]
<centrx>
rayrai, anything you type in is a string
<centrx>
rayrai, gets stands for get String
nathanstitt has quit [Read error: Connection reset by peer]
<rayrai>
ok
<rayrai>
but I am trying to evaluate if the given input is integer or string
davispuh has quit [Ping timeout: 245 seconds]
jbardin has quit [Quit: jbardin]
<rayrai>
while anything.empty? || anything.is_a? Integer
<rayrai>
it's not wokring
nathanstitt has joined #ruby-lang
<rayrai>
anything.to_i.is_a? Integer
<rayrai>
how do you evaluate it
<centrx>
rayrai, anything.to_i.nonzero? if zero is not an expected number to be entered
<centrx>
bnagy, Would you say using rescue for control flow is bad practice? Is Integer()/rescue just the only reliable way to do this?
migbar has joined #ruby-lang
<rayrai_>
centrx I was trying to exact opposite
<rayrai_>
only accept Integer
<rayrai_>
until (String(human) rescue nil)
<rayrai_>
I know it won't work
<rayrai_>
I mean the program should accept only string
<centrx>
rayrai_, ok, you can change the until back to a while then
<rayrai_>
ok let me try
<centrx>
rayrai_, while x == until !x
<rayrai_>
yeap it worked..thanks
<rayrai_>
I am little bit curious about rescue nil
<rayrai_>
what role did rescue nil played in the program
migbar has quit [Ping timeout: 268 seconds]
<centrx>
rayrai_, Look up "exception handling"
<centrx>
rayrai_, Integer(x) throws an error if x is not an integer/convertible to an integer
<centrx>
rayrai_, rescue catches that and turns it into a "false/nil" (falsey) result, instead of a program-ending error
<rayrai_>
I was googling about rescue nil and your explanation "rescue catches that and turns it into a "false/nil" (falsey) result, instead of a program-ending error" make every clear in one sentence
karamazov has quit [Remote host closed the connection]
<rayrai_>
Cheers centrx thanks again, In a mean while I am going deep into exception handling
<centrx>
You are welcome
toastynerd has joined #ruby-lang
sleepee has quit [Ping timeout: 268 seconds]
gix has quit [Ping timeout: 268 seconds]
toastynerd has quit [Remote host closed the connection]
s1kx has quit [Ping timeout: 260 seconds]
toastynerd has joined #ruby-lang
gix has joined #ruby-lang
mistym has quit [Remote host closed the connection]
Kerber0s has joined #ruby-lang
Phrogz has quit [Ping timeout: 246 seconds]
rayrai_ has quit [Ping timeout: 246 seconds]
centrx has quit [Quit: Mead error: Connection reset by beer]
jxie has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
tkuchiki has quit [Ping timeout: 245 seconds]
jxie has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby-lang
tkuchiki_ has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
<law>
I get the same output regardless of whether I use split or scan
toretore has joined #ruby-lang
chussenot has joined #ruby-lang
<jhass>
law: neither are self modifying (they can't since they would change the type), so each is not going to work
<law>
I'm not quite sure I understand all the intricacies of what you just said, but... how can I make it do what I want? :-)
sMecKs has quit [Read error: Connection reset by peer]
<jhass>
well, it's not tremendously clear what you want but my best guesses are .map or .flat_map
arBmind has joined #ruby-lang
<law>
I'm reading in a file that has a fairly wide variation in punctuation, emphasis, etc
ur5us has joined #ruby-lang
rsl has quit [Read error: Connection reset by peer]
<law>
and I want all the words to be elements in an array, along with whatever weird punctuation may come with it. the weird punctuation should be their own elements, so I can manipulate the words (really, enumerate them and remove the duplicates) without too much hassle
<law>
so I can replace that line.scan(/\w+/) with split(/\b/) ?
<jhass>
or just use the code I showed and git rid of all the unnecessary stuff ;)
<jhass>
also always use the block form of File.open or helper methods like File.read or File.write
ironhide_604 has joined #ruby-lang
<jhass>
that way you don't leak filehandles
<jhass>
a = []; something.else {|i| a << i / a.push(i) } can almost always replaced by a .map
<jhass>
something.map { }.flatten is most likely something.flat_map { }
<law>
cool! TIL!
<law>
and it seems that I can't just de-serialize my array with successive invocations of .flatten!
<law>
I read it in as plain text, chopped it into a monster array, "did stuff" do it, now I want to write it back out as plain text, hopefully still respecting newlines, etc
jds has joined #ruby-lang
allomov has quit [Remote host closed the connection]
<jhass>
flatten by default is already recursive
<law>
actually, I should be able to iterate with .each on my array... let me try that and see how badly it mangles things
<jhass>
I thought you want to grab some sleep first? ;)
vinhbachsy has joined #ruby-lang
migbar has joined #ruby-lang
[spoiler] has joined #ruby-lang
ur5us has joined #ruby-lang
allomov has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
zmartAzz has joined #ruby-lang
havenwood has joined #ruby-lang
<yorickpeterse>
benlovell: congrats on the ltd, so you'll be doing freelancing now?
migbar has quit [Ping timeout: 246 seconds]
_elia has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
elia has quit [Ping timeout: 268 seconds]
ur5us has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
Sphynx has quit [Remote host closed the connection]
diegoviola has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 255 seconds]
allomov has joined #ruby-lang
allomov_ has joined #ruby-lang
allomov has quit [Read error: Connection reset by peer]
kgrz has joined #ruby-lang
ur5us has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
Missphoenix has joined #ruby-lang
riffraff has joined #ruby-lang
zmartAway has joined #ruby-lang
zmartAzz has quit [Read error: Connection reset by peer]
Miphix has quit [Ping timeout: 252 seconds]
ianmcshane has joined #ruby-lang
jxie has quit [Quit: leaving]
Sphynx has joined #ruby-lang
JohnBat26 has quit [Ping timeout: 268 seconds]
haraoka has quit [Ping timeout: 246 seconds]
marr has joined #ruby-lang
Cakey has quit [Ping timeout: 245 seconds]
diegoviola has joined #ruby-lang
kgrz has quit []
Cakey has joined #ruby-lang
tkuchiki has joined #ruby-lang
Iskarlar has joined #ruby-lang
face has joined #ruby-lang
stamina has joined #ruby-lang
chussenot has joined #ruby-lang
migbar has joined #ruby-lang
migbar has quit [Ping timeout: 260 seconds]
benlovel1 has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 1.0]
kek has quit [Ping timeout: 260 seconds]
diegoviola has joined #ruby-lang
benlovell has quit [Ping timeout: 252 seconds]
Cakey has quit [Ping timeout: 245 seconds]
koderok has quit [Quit: koderok]
robmiller has quit [Quit: Leaving.]
koderok has joined #ruby-lang
koderok has quit [Remote host closed the connection]
mkaesz has quit [Ping timeout: 246 seconds]
diegoviola has quit [Remote host closed the connection]
jammanbo has joined #ruby-lang
skade has joined #ruby-lang
diegoviola has joined #ruby-lang
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 245 seconds]
zmartAway is now known as zmartAzz
skade has quit [Quit: Computer has gone to sleep.]
symm- has joined #ruby-lang
ur5us has joined #ruby-lang
harly_ has joined #ruby-lang
ur5us has quit [Ping timeout: 245 seconds]
harly has quit [Ping timeout: 250 seconds]
ianmcshane has quit [Remote host closed the connection]
kek has joined #ruby-lang
kek has quit [Remote host closed the connection]
ianmcshane has joined #ruby-lang
kek has joined #ruby-lang
diegoviola has quit [Remote host closed the connection]
hellangel7 has quit [Remote host closed the connection]
harly_ is now known as harly
diegoviola has joined #ruby-lang
_elia has quit [Quit: Computer has gone to sleep.]
ianmcshane has quit [Ping timeout: 255 seconds]
elia has joined #ruby-lang
<jammanbo>
Please don't yell, but is anybody using massive_record/hbase/thrift. Having bother, evidently from thrift, connecting from ruby to hbase on my mac. "Thrift::ProtocolException: No version identifier, old protocol client?"
harly_ has joined #ruby-lang
harly_ has quit [Client Quit]
harly has quit [Quit: Leaving]
harly has joined #ruby-lang
chussenot has quit [Quit: chussenot]
emmesswhy has joined #ruby-lang
migbar has joined #ruby-lang
chills42 has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 1.0]
migbar has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
chills42 has joined #ruby-lang
benlovel1 has quit [Ping timeout: 246 seconds]
mkaesz has joined #ruby-lang
vinhbachsy has quit [Remote host closed the connection]
vinhbachsy has joined #ruby-lang
nofxx__ has quit [Ping timeout: 246 seconds]
bsvineeth has quit [Read error: Connection reset by peer]
nofxx__ has joined #ruby-lang
bsvineeth has joined #ruby-lang
vinhbachsy has quit [Ping timeout: 276 seconds]
elia has quit [Quit: Computer has gone to sleep.]
mkaesz has quit [Ping timeout: 246 seconds]
Mon_Ouie has quit [Read error: No route to host]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
ianmcshane has joined #ruby-lang
diegoviola has quit [Read error: Connection reset by peer]
Iskarlar has joined #ruby-lang
diegoviola has joined #ruby-lang
ldnunes has joined #ruby-lang
mkaesz has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
migbar has joined #ruby-lang
skade has joined #ruby-lang
earthquake has joined #ruby-lang
JaReAx has joined #ruby-lang
Sgeo has quit [Read error: Connection reset by peer]
allomov_ has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
karamazov has joined #ruby-lang
CaptainJet has quit []
bsvineet_ has joined #ruby-lang
benlovell has quit [Ping timeout: 255 seconds]
elia has joined #ruby-lang
bsvineeth has quit [Ping timeout: 260 seconds]
chussenot has joined #ruby-lang
twe4ked has quit [Excess Flood]
symm- has quit [Ping timeout: 240 seconds]
twe4ked has joined #ruby-lang
shinnya has joined #ruby-lang
dwknoxy has joined #ruby-lang
Voker57|2 is now known as Voker57
allomov has joined #ruby-lang
jammanbo has quit [Quit: Leaving.]
[spoiler] has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
earthquake has quit [Quit: earthquake]
benlovell has joined #ruby-lang
postmodern has quit [Quit: Leaving]
emmesswhy has quit [Quit: This computer has gone to sleep]
mkaesz has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
skade has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby-lang
skade has joined #ruby-lang
wallerdev has quit [Ping timeout: 246 seconds]
elia has joined #ruby-lang
ianmcshane has quit []
cryptoca_ has joined #ruby-lang
workmad3 is now known as wm3|away
cryptoca has quit [Ping timeout: 240 seconds]
diegoviola has quit [Quit: WeeChat 1.0]
vinhbachsy has joined #ruby-lang
miqui has joined #ruby-lang
sepp2k has joined #ruby-lang
mkaesz has joined #ruby-lang
nfsnobody has quit [*.net *.split]
freedrull has quit [Ping timeout: 250 seconds]
diegoviola has joined #ruby-lang
Dev-Gitter has quit [Ping timeout: 268 seconds]
FarlaTux has quit [Ping timeout: 276 seconds]
PHP4Ever has quit [Ping timeout: 276 seconds]
freedrul1 has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
nfsnobody has joined #ruby-lang
_elia has joined #ruby-lang
elia has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby-lang
yfeldblu_ has quit [Ping timeout: 255 seconds]
mkaesz has quit [Ping timeout: 240 seconds]
_elia has quit [Quit: (IRC Client: textualapp.com)]
jammanbo has joined #ruby-lang
elia has joined #ruby-lang
vintik has quit [Remote host closed the connection]
diegoviola has quit [Remote host closed the connection]
tbuehlmann has quit [Quit: Leaving]
allomov has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
allomov has joined #ruby-lang
wm3|away has quit [Ping timeout: 264 seconds]
allomov has quit [Read error: Connection reset by peer]
allomov has joined #ruby-lang
kgrz has joined #ruby-lang
SkramX_ is now known as SkramX
hellangel7 has joined #ruby-lang
malconis has joined #ruby-lang
vinhbachsy has quit []
kgrz has quit [Ping timeout: 272 seconds]
nfsnobody has quit [*.net *.split]
chussenot has quit [Quit: chussenot]
kwd has joined #ruby-lang
nfsnobody has joined #ruby-lang
karamazov has quit []
kwd has quit [Client Quit]
bsvineet_ has quit [Remote host closed the connection]
spastorino has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has quit [Quit: Leaving.]
nathanstitt has joined #ruby-lang
sepp2k has joined #ruby-lang
Iskarlar has joined #ruby-lang
nathanstitt has quit [Client Quit]
nofxx__ has quit [Ping timeout: 272 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 245 seconds]
sleepee has joined #ruby-lang
faces has joined #ruby-lang
face has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
wm3|away has joined #ruby-lang
relix_ has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has quit [Quit: WeeChat 1.0]
kgrz has joined #ruby-lang
yfeldblum has joined #ruby-lang
wm3|away is now known as workmad3
tbuehlmann has joined #ruby-lang
loincloth has joined #ruby-lang
Kerber0s has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
AKASkip has quit [Ping timeout: 268 seconds]
kgrz has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
riffraff has quit [Quit: Leaving]
Lewix has joined #ruby-lang
kgrz has quit [Ping timeout: 245 seconds]
nathanstitt has joined #ruby-lang
nfsnobody has quit [*.net *.split]
robmiller has joined #ruby-lang
robmiller has quit [Client Quit]
yatish27 has joined #ruby-lang
riffraff has joined #ruby-lang
nfsnobody has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
bruno- has joined #ruby-lang
phrozen77 has quit [Changing host]
phrozen77 has joined #ruby-lang
Dev-Gitter has joined #ruby-lang
PHP4Ever has joined #ruby-lang
Dev-Gitter has quit [Max SendQ exceeded]
chussenot has joined #ruby-lang
Dev-Gitter has joined #ruby-lang
ducklobster has joined #ruby-lang
wallerdev has joined #ruby-lang
Dev-Gitter has quit [Max SendQ exceeded]
Dev-Gitter has joined #ruby-lang
Dev-Gitter has quit [Max SendQ exceeded]
kgrz has joined #ruby-lang
chussenot_ has joined #ruby-lang
Dev-Gitter has joined #ruby-lang
chussenot has quit [Ping timeout: 245 seconds]
chussenot_ is now known as chussenot
wallerdev has quit [Ping timeout: 252 seconds]
toastynerd has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
CaptainJet has joined #ruby-lang
chussenot has quit [Quit: chussenot]
chills42 has quit [Ping timeout: 264 seconds]
RobertBirnie has joined #ruby-lang
chussenot has joined #ruby-lang
DivineEntity has quit [Quit: Lost terminal]
cmhobbs has joined #ruby-lang
cmhobbs has joined #ruby-lang
cmhobbs has quit [Read error: Connection reset by peer]
cmhobbs has joined #ruby-lang
cmhobbs has quit [Changing host]
cmhobbs has joined #ruby-lang
torrieri has joined #ruby-lang
vinhbachsy has joined #ruby-lang
skade has joined #ruby-lang
chills42 has joined #ruby-lang
hellangel7 has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby-lang
chussenot has quit [Quit: chussenot]
chussenot has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
chussenot has quit [Client Quit]
chussenot has joined #ruby-lang
sharpmachine has joined #ruby-lang
chussenot has quit [Client Quit]
mistym has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
chussenot has joined #ruby-lang
sharpmachine has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
sharpmachine has joined #ruby-lang
|jemc| has joined #ruby-lang
torrieri has joined #ruby-lang
chussenot has quit [Quit: chussenot]
centrx has joined #ruby-lang
elia has quit [Read error: Connection reset by peer]
elia has joined #ruby-lang
hellangel7 has joined #ruby-lang
chussenot has joined #ruby-lang
hellangel7 has quit [Max SendQ exceeded]
cmhobbs has quit [Quit: Leaving]
shinnya has quit [Ping timeout: 268 seconds]
chussenot has quit [Client Quit]
sharpmachine has quit [Remote host closed the connection]
jxie has joined #ruby-lang
JoelMcCracken has joined #ruby-lang
wallerdev has joined #ruby-lang
wallerdev has joined #ruby-lang
sarkyniin has joined #ruby-lang
chussenot has joined #ruby-lang
chussenot has quit [Client Quit]
JoelMcCracken has left #ruby-lang [#ruby-lang]
chussenot has joined #ruby-lang
klmlfl has joined #ruby-lang
mistym has joined #ruby-lang
chussenot has quit [Client Quit]
sharpmachine has joined #ruby-lang
robbyoconnor has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hellangel7 has joined #ruby-lang
charliesome has quit [Quit: zzz]
solars has quit [Ping timeout: 246 seconds]
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby-lang
toastynerd has joined #ruby-lang
klmlfl has quit []
klmlfl has joined #ruby-lang
vintik has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
seamon has joined #ruby-lang
sepp2k has quit [Quit: Leaving.]
mikecmpbll has quit [Ping timeout: 255 seconds]
mistym has quit [Remote host closed the connection]
Missphoenix has quit [Quit: Leaving]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klmlfl has quit [Remote host closed the connection]
ironhide_604 has quit [Ping timeout: 272 seconds]
amsi has joined #ruby-lang
hellangel7 has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
banister has joined #ruby-lang
vintik has quit [Remote host closed the connection]
jammanbo has quit [Quit: Leaving.]
__butch__ has joined #ruby-lang
symm- has joined #ruby-lang
dwknoxy is now known as dknox_afk
toastynerd has quit [Remote host closed the connection]
<avdi>
Phrogz: I haven't used a lib, but I've run avprobe as a subprocess to get length data about video files
<Phrogz>
avdi: Thanks; I got the info I needed from ffmpeg.
loincloth has quit [Remote host closed the connection]
zer0ne has joined #ruby-lang
relix has joined #ruby-lang
zer0ne is now known as boscoe
mistym has joined #ruby-lang
boscoe is now known as b0scoe
seamon has quit [Quit: Zzzzzzz]
taylorrf has joined #ruby-lang
vintik has quit [Ping timeout: 255 seconds]
mistym_ has quit [Ping timeout: 276 seconds]
seamon has joined #ruby-lang
Dev-Gitter has quit [Quit: Leaving [Bye Everybody]]
PHP4Ever has quit [Quit: Leaving [Bye Everybody]]
vintik has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
seamon has quit [Client Quit]
Iskarlar has joined #ruby-lang
ruby-lang538 has joined #ruby-lang
yfeldblum has joined #ruby-lang
ta_ has joined #ruby-lang
<ruby-lang538>
I have a class with an attr_accessor, I'm getting a "wrong number of arguments" error when I try to instantiate the class with a hash. What am I doing wrong? Pastebin here - http://pastebin.com/efnvrjPx
ta has quit [Ping timeout: 268 seconds]
Asher2 has joined #ruby-lang
<wallerdev>
thats not how accessors work
<wallerdev>
lol
<wallerdev>
[
Asher has quit [Ping timeout: 245 seconds]
<ruby-lang538>
oh, i feel dumb then
<wallerdev>
you can do g = Game.new; g.teamname = 'test'
<ruby-lang538>
thanks lol
<centrx>
ruby-lang538, def initialize always needs some boilerplate
yfeldblum has quit [Ping timeout: 240 seconds]
Asher2 is now known as Asher
bsvineeth has joined #ruby-lang
vintik has quit [Remote host closed the connection]
taylorrf has quit [Remote host closed the connection]
Lewix has quit [Read error: Connection reset by peer]
Lewix has joined #ruby-lang
vintik has joined #ruby-lang
hahuang65 has quit [Ping timeout: 276 seconds]
hahuang65 has joined #ruby-lang
AmBienCeD has joined #ruby-lang
AmBienCeD has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
Mon_Ouie has quit [Ping timeout: 268 seconds]
loincloth has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
kek has joined #ruby-lang
emmesswhy has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 276 seconds]
omosoj has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
kek has quit [Ping timeout: 245 seconds]
kgrz has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
Lewix has quit [Read error: Connection reset by peer]
Lewix has joined #ruby-lang
16WAACAOY has joined #ruby-lang
kgrz has quit [Ping timeout: 264 seconds]
chancancode has quit [Read error: Connection reset by peer]
chancancode has joined #ruby-lang
hellangel7 has joined #ruby-lang
<law>
how does one search an array for the presence of numbers? I'm trying "array.include?(/0-9/)", but it's consistently returning false
<law>
do I have my pattern syntax wrong, or am I using the wrong method entirely?
<yorickpeterse>
You can not search arrays using regular expressions
<yorickpeterse>
array.include?(/0-9/) literally means "Does this array include the regular expression object /0-9/"
<law>
well poop. whats a better way to do it?
<yorickpeterse>
You can however do something like this:
<yorickpeterse>
>> range = 0..9; [1,2,3,4,5,6,10,12].select { |val| range.cover?(val) }
BloodyHistory has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mistym has quit [Quit: Leaving...]
<sarkyniin>
centrx / wallerdev : in the end, I used execjs
<sarkyniin>
but thanks anyway
loincloth has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
seamon has joined #ruby-lang
mistym has joined #ruby-lang
omosoj has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
taylorrf has joined #ruby-lang
hahuang65 has quit [Ping timeout: 245 seconds]
bsvineeth has quit [Ping timeout: 260 seconds]
|jemc| has joined #ruby-lang
klmlfl has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
Kerber0s has quit [Remote host closed the connection]
Kerber0s has joined #ruby-lang
Benstr has joined #ruby-lang
vintik has joined #ruby-lang
dangerousdave has joined #ruby-lang
Kerber0s has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Client Quit]
emmesswhy has quit [Quit: This computer has gone to sleep]
nathanstitt has quit [Quit: I growing sleepy]
Mon_Ouie has joined #ruby-lang
|jemc| has quit [Read error: Connection reset by peer]
amsi has quit [Ping timeout: 246 seconds]
|jemc| has joined #ruby-lang
<sarkyniin>
is there any reason as to why the JSON module's pretty_generate won't work?
<sarkyniin>
it produces the same output as dump
<zmartAzz>
I'm new to this language and really want to master it. I've bought "The Well-Grounded Rubyist 2nd ed" but are there any other (this time free) resources I should start with or is it ok to jump on that book? Got experience from Java (computer science class). :)
<havenwood>
zmartAzz: http://tryruby.org/ is a nice quick intro. since you've done a bit of Java before, just going through Well-Grounded makes sense. ;)
elia has quit [Quit: Computer has gone to sleep.]
<havenwood>
centrx: koans and monk, you'd think we were a religious order
<havenwood>
centrx: but good stuff! ;)
<centrx>
The way of the Ruby is the way of the Way
<zmartAzz>
Thanks guys :) Yeah, I've been doing some coding with java in the computer science class. The language doesn't appell to me that much but Ruby did. So I got a go with my professor to do all the assignments and do the finals in Ruby :P So hope to learn enough to do so :)
Kerber0s has joined #ruby-lang
<zmartAzz>
I will try out the intro you gave me havenwood and read both books (switching back and forth) from the newest edition programming ruby and well-grounded
<zmartAzz>
That should cover most of it :)
<sarkyniin>
is it just me or is rubygems having problems?
<centrx>
Java has been known to cause brain damage
<sarkyniin>
I can't seem to gem install packages.
omosoj has quit [Ping timeout: 276 seconds]
wallerdev_ has joined #ruby-lang
torrieri has joined #ruby-lang
<zmartAzz>
I love details and java is ugly compared to ruby and python, but ruby is so far the one I want occupying my brain cells :P
wallerdev has quit [Ping timeout: 246 seconds]
wallerdev_ is now known as wallerdev
jarto has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
seamon has quit [Quit: Zzzzzzz]
elia has joined #ruby-lang
dangerousdave has joined #ruby-lang
<zmartAzz>
centrx, the gist link you gave me were just what I needed! Thanks
dangerousdave has quit [Client Quit]
yfeldblum has joined #ruby-lang
dorei has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
law has left #ruby-lang [#ruby-lang]
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
jarto has joined #ruby-lang
jarto has quit [Client Quit]
jarto has joined #ruby-lang
jarto has quit [Remote host closed the connection]
jarto has joined #ruby-lang
dangerousdave has joined #ruby-lang
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
kgrz has joined #ruby-lang
Iskarlar has joined #ruby-lang
yfeldblum has joined #ruby-lang
taylorrf has quit [Remote host closed the connection]
<sarkyniin>
ERROR: Could not find a valid gem 'json' (>= 0), here is why:
Lewix has quit [Remote host closed the connection]
eddiezane_zzz is now known as eddiezane
eddiezane is now known as eddiezane_zzz
kgrz has quit [Ping timeout: 255 seconds]
araujo has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
jbardin has quit [Quit: jbardin]
maruchan4 has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
seamon has joined #ruby-lang
sarkyniin has quit [Quit: Quitte]
AKASkip has quit [Read error: Connection reset by peer]
arBmind1 has quit [Quit: Leaving.]
cmhobbs has joined #ruby-lang
cmhobbs has joined #ruby-lang
s1kx_ has joined #ruby-lang
_ht has quit [Remote host closed the connection]
AKASkip has joined #ruby-lang
amsi has joined #ruby-lang
s1kx has quit [Ping timeout: 264 seconds]
sarkyniin has joined #ruby-lang
elia has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby-lang
maruchan4 has quit [Ping timeout: 245 seconds]
bin7me has quit [Read error: Connection reset by peer]
cmhobbs has quit [Quit: Leaving]
jbardin has joined #ruby-lang
sharpmachine has quit [Remote host closed the connection]
torrieri has joined #ruby-lang
miqui has quit [Read error: Connection reset by peer]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby-lang
emmesswhy has joined #ruby-lang
mistym has quit [Remote host closed the connection]
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
riffraff has joined #ruby-lang
riffraff has quit [Client Quit]
arBmind has joined #ruby-lang
tejas-manohar has joined #ruby-lang
klmlfl has quit [Ping timeout: 255 seconds]
catepillar has quit [Quit: brb]
ruby-lang259 has joined #ruby-lang
<ruby-lang259>
hello
<ruby-lang259>
anyone in here
<wallerdev>
nope
sharpmachine has joined #ruby-lang
<ruby-lang259>
:)
<ruby-lang259>
newbie here
<ruby-lang259>
is this chat very active?
<centrx>
sometimes
<centrx>
There is also #ruby and #rubyonrails
<ruby-lang259>
gotcha
<ruby-lang259>
what are your thoughts on something like appacademy.io
kgrz has joined #ruby-lang
<centrx>
sounds similar to Codecademy
sharpmachine has quit [Remote host closed the connection]
<pipework>
ruby-lang259: not that positive
<ruby-lang259>
you teach urself with codeacademy
toretore has quit [Quit: This computer has gone to sleep]
<ruby-lang259>
appacademy other programmers will teach you and help you find a job - tuition is like 15k or 20% of your salary for a year
nofxx__ has quit [Ping timeout: 246 seconds]
<ruby-lang259>
they teach you fullstack
<centrx>
ruby-lang259, I would recommend cheaper one-week bootcamps, in person. Maximize your investment by learning it yourself ahead of time and continuing afterwards
<pipework>
I think the best situation for anyone using those 'schools' is when you're already on your way and just need that kind of environment to get you further along on your current path.
hellangel7 has quit [Remote host closed the connection]
<ruby-lang259>
i dont know where to start is the problem
emmesswhy has quit [Quit: This computer has gone to sleep]
<pipework>
However, there are some of these 'schools' that purport to take anyone and turn them into a bonafide employable programmer in N weeks/months. These are the things you should probably avoid.
<pipework>
ruby-lang259: What do you like to do to learn? Read, tinker, break things?
hahuang65 has joined #ruby-lang
io_syl has joined #ruby-lang
<thagomizer>
I agree with pipework. If you are already on your way, really want to be a developer, these schools can provide good mentoring and help you focus on employable skills.
kgrz has quit [Ping timeout: 272 seconds]
omosoj has joined #ruby-lang
<thagomizer>
That said I know far more bootcamp grads who are unemployed than i do employed ones
<ruby-lang259>
\help
<thagomizer>
I'd also avoid any program that hasn't had at least 3 classes of grads and can give you the average starting salaries and how long it took their folks to find jobs.
<ruby-lang259>
right, there are some out there that you only have to pay once you are employed
ldnunes has quit [Quit: Leaving]
dangerousdave has joined #ruby-lang
<pipework>
ruby-lang259: I think you should decide whether you excel in insitutional learning centers, reading, tinkering, or however you learn best and whatever keeps you interested.
<ruby-lang259>
i would like to learn as much as I can, not sure how far I can get on my own
<pipework>
Knowing that, you'll be able to plot a course and level up your awesomeness.
<ruby-lang259>
just constantly running into things I dont understand
<centrx>
*constantly reading up on things I don't understand
<centrx>
^ Corrected that for you
<ruby-lang259>
true - if i like to tinker around with code what would you suggest
<pipework>
ruby-lang259: I'd suggest you either take someone else's app apart and changing it to do things it wasn't originally meant to do, or if you would prefer, build something yourself and just have fun trying to get things to work, add new features.
<ruby-lang259>
ok i'll try that
<ruby-lang259>
where can i find code
<pipework>
Either way, you'll have to pick either a target platform of some kind. This could be anything, like a desktop app, web app, server app, tooling, anything that sounds neat to you.
<pipework>
ruby-lang259: github.com
<ruby-lang259>
like github?
seamon has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sMecKs has joined #ruby-lang
MikaAK has joined #ruby-lang
MikaAK has quit [Client Quit]
karamazov has joined #ruby-lang
ruby-lang259 has quit [Quit: Page closed]
ruby-lang605 has joined #ruby-lang
b0scoe has quit []
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Benstr has quit [Ping timeout: 272 seconds]
nathanstitt has quit [Quit: I growing sleepy]
duderonomy has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
torrieri has joined #ruby-lang
torrieri has quit [Changing host]
torrieri has joined #ruby-lang
<thagomizer>
ruby-lang259: if there's a user group near you they might have some ideas as well. I'm in Seattle and Seattle.rb has helped a number of new folks figure out where to start and what to look at next based on their goals. The local folks will also have a good idea if a particular bootcamp is worth the money.
jdecuirm has quit [Ping timeout: 276 seconds]
<pipework>
thagomizer: Maybe you mean ruby-lang605, if that's the same person as before.
<ruby-lang605>
thanks pipework
<thagomizer>
thanks pipework
<ruby-lang605>
the chirp caught my attention
<thagomizer>
sorry about that
<ruby-lang605>
I'll definitly check out any local meetups. Any other beginners in here interested in doing a google hangout shoot me a message
bruno- has quit [Ping timeout: 252 seconds]
nofxx__ has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
jdecuirm has joined #ruby-lang
elia has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
kgrz has joined #ruby-lang
heftig has quit [Quit: Quitting]
heftig has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 245 seconds]
kgrz has quit [Ping timeout: 246 seconds]
jds has quit [Quit: Connection closed for inactivity]
mistym has joined #ruby-lang
seamon has quit [Quit: Zzzzzzz]
dorei has quit []
Kerber0s has quit [Remote host closed the connection]
seamon has joined #ruby-lang
mistym has quit [Remote host closed the connection]
loincloth has quit [Remote host closed the connection]
mistym has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Benstr has joined #ruby-lang
mistym has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
mistym has joined #ruby-lang
bruno- has joined #ruby-lang
karamazov has quit []
sharpmachine has joined #ruby-lang
bruno- has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby-lang
allomov has quit [Remote host closed the connection]
wallerdev has quit [Ping timeout: 245 seconds]
seamon has quit [Quit: Zzzzzzz]
AKASkip has quit [Ping timeout: 245 seconds]
Sgeo has joined #ruby-lang
Cakey has joined #ruby-lang
io_syl_ has joined #ruby-lang
saarinen has quit [Quit: saarinen]
Cakey has quit [Ping timeout: 268 seconds]
io_syl has quit [Ping timeout: 252 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
maruchan4 has joined #ruby-lang
workmad3 has quit [Ping timeout: 260 seconds]
seamon has joined #ruby-lang
maruchan4 has left #ruby-lang [#ruby-lang]
Cakey has joined #ruby-lang
16WAACAOY has quit [Remote host closed the connection]
mkaesz has quit [Remote host closed the connection]
mkaesz has joined #ruby-lang
mkaesz has quit [Remote host closed the connection]