duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pico-pete has joined #ruby-lang
djbkd has quit [Quit: My people need me...]
mattyohe has quit [Quit: Connection closed for inactivity]
centrx has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
centrx has joined #ruby-lang
charliesome has joined #ruby-lang
CatMartyn has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
aef has quit [Remote host closed the connection]
aef has joined #ruby-lang
smoitra has joined #ruby-lang
brocktimus has quit [Quit: Leaving]
godd2 has quit [Ping timeout: 252 seconds]
Musashi007 has quit [Quit: Musashi007]
duderonomy has joined #ruby-lang
b_hoffman has joined #ruby-lang
sankaber has joined #ruby-lang
baweaver has joined #ruby-lang
nfsnobody has quit [Quit: IRC is just multiplayer notepad]
gwendall has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
charliesome has quit [Quit: zzz]
charliesome has joined #ruby-lang
michael_mbp has quit [Excess Flood]
bantic has joined #ruby-lang
michael_mbp has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 256 seconds]
wallerdev has quit [Quit: wallerdev]
centrx has quit [Remote host closed the connection]
bb010g has joined #ruby-lang
marr has quit [Ping timeout: 265 seconds]
Musashi007 has joined #ruby-lang
lytol has joined #ruby-lang
hahuang62 has quit [Ping timeout: 265 seconds]
lytol has quit [Ping timeout: 252 seconds]
martinbmadsen has joined #ruby-lang
ledestin has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fujimura has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
paraxor has joined #ruby-lang
waroperator has joined #ruby-lang
mikecmpbll has quit [Read error: Connection reset by peer]
fujimura has quit [Ping timeout: 252 seconds]
baweaver has quit [Remote host closed the connection]
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
hendranata_ has joined #ruby-lang
stardiviner has joined #ruby-lang
ghostpl_ has joined #ruby-lang
nfsnobody has joined #ruby-lang
charliesome has quit [Ping timeout: 256 seconds]
ghostpl_ has quit [Ping timeout: 272 seconds]
fujimura has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby-lang
jrexroad_ has quit [Ping timeout: 244 seconds]
amclain has joined #ruby-lang
SuMo_D has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
riotjones has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 255 seconds]
doctorly has joined #ruby-lang
riotjones has quit [Ping timeout: 265 seconds]
TechTonics has joined #ruby-lang
hahuang62 has joined #ruby-lang
fujimura has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
fujimura has joined #ruby-lang
waroperator has quit [Remote host closed the connection]
<doctorly>
Hi, I am looking for advice. I was hoping that there was an open source project I could help work on. I am relatively new and am looking for more resources to dive into. Any help on which type of project to get involved in would be awesome.
Sirupsen has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
<TechTonics>
does anyone have any experience working with ods spreadsheets in ruby?
caseypatrickdris has joined #ruby-lang
amystephen has quit [Quit: amystephen]
sankaber has joined #ruby-lang
arooni-mobile has joined #ruby-lang
shinnya has quit [Ping timeout: 264 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nathanstitt has joined #ruby-lang
lytol has joined #ruby-lang
nertzy has quit [Quit: Leaving]
bruno- has quit [Ping timeout: 265 seconds]
<itstooloud>
what is the [0] in this expression? num = Kernel.gets.match(/\d+/)[0]
<bougyman>
it's the whole match.
<bougyman>
#match returns a MatchData object.
nertzy has joined #ruby-lang
<itstooloud>
oh RIGHT! which can be read like an array, so [0] is the first element
<bougyman>
kind of but don't think of it as an array :)
matp has quit [Ping timeout: 265 seconds]
lytol has quit [Ping timeout: 272 seconds]
<itstooloud>
more importantly, why is ruby-doc so poor on this subject
<bougyman>
"foobar".match(/(foo)(bar)/)[1] is 'foo', [2] is 'bar' and [0] is foobar
<bougyman>
because accessing it like an array is kind of unruby
<bougyman>
there are other methods (#captures) which are more intuitive.
j4cknewt has quit [Remote host closed the connection]
b_hoffman has joined #ruby-lang
caseypatrickdris has joined #ruby-lang
symm- has quit [Ping timeout: 252 seconds]
matp has joined #ruby-lang
caseypatrickdris has quit [Ping timeout: 252 seconds]
semperfried76 has joined #ruby-lang
martinbmadsen has joined #ruby-lang
SuMo_D has joined #ruby-lang
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
b_hoffman has quit [Quit: b_hoffman]
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
stardiviner has joined #ruby-lang
stardiviner has quit [Client Quit]
ghostpl_ has joined #ruby-lang
havenwood has joined #ruby-lang
stardiviner has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
SuMo_D has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 244 seconds]
sankaber has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 246 seconds]
arooni-mobile has quit [Ping timeout: 245 seconds]
semperfried76 has quit [Quit: Be back later ...]
bruno- has joined #ruby-lang
snsei has joined #ruby-lang
iamninja has quit [Read error: Connection reset by peer]
lytol has joined #ruby-lang
iamninja has joined #ruby-lang
stardiviner has quit [Remote host closed the connection]
snsei has quit [Client Quit]
snsei has joined #ruby-lang
stardiviner has joined #ruby-lang
octodoodle has joined #ruby-lang
lytol has quit [Ping timeout: 246 seconds]
jcabmin has joined #ruby-lang
SuMo_D has joined #ruby-lang
rgb-one has joined #ruby-lang
Rayford has joined #ruby-lang
Rayford has quit [Client Quit]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjones has joined #ruby-lang
<jcabmin>
What's the best way to learn ruby for an experienced programmer?
Rayford has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
riotjones has quit [Ping timeout: 250 seconds]
<jhass>
jcabmin: get your stuff reviewed here
Rayford has quit [Quit: Rayford]
snsei has quit [Remote host closed the connection]
itstooloud has quit [Quit: itstooloud]
znz_jp has quit [Quit: kill -QUIT $$]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
znz_jp has joined #ruby-lang
sferik has joined #ruby-lang
snsei has joined #ruby-lang
smoitra has quit [Ping timeout: 244 seconds]
<jcabmin>
I'm looking for some good resources for learning ruby. I'm a very experienced programmer. So obviously looking for something very fast paced. Any suggestions?
<jhass>
jcabmin: then I'd suggest digging up a styleguide and/or porting one of your scripts to Ruby and get it reviewed here (and also feel free to ask questions in the process)
godd2 has joined #ruby-lang
jacecore has joined #ruby-lang
godd2 has quit [Remote host closed the connection]
godd2 has joined #ruby-lang
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
yfeldblum has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
<jcabmin>
jhass: Right. What's most authoritative styleguide?
<jhass>
bbatsov probably
<jhass>
though I disagree with some choices personally
<_sillymarkets>
and i change it to puts hash["#{c}"] it still doesn't go?
<centrx>
c is an array
jacecore has joined #ruby-lang
smoitra has quit [Quit: Leaving]
stan has quit [Ping timeout: 265 seconds]
banister has joined #ruby-lang
<_sillymarkets>
figured it out, thanks
<_sillymarkets>
c = b[0].to_s
relix has joined #ruby-lang
rikkipitt has joined #ruby-lang
solars has quit [Ping timeout: 244 seconds]
<_sillymarkets>
centrx -> once I know find the index value of what i'm trying to match in the original array. How would i go about adding a leading "0" to that element, in the initial array?
sferik has joined #ruby-lang
<_sillymarkets>
I searched my array for the first character being a decimal. Then I found which index in the array that decimal was. Now I want to go back and add an leading zero before that decimal and keep the original array
centrx has quit [Remote host closed the connection]
centrx has joined #ruby-lang
setanta_ has joined #ruby-lang
<_sillymarkets>
centrx , i just asked you a question and you got dc'd. Happen to get that?
rikkipitt has quit [Client Quit]
<centrx>
entries_to_fix.map { |x| "0#{x}" }
<centrx>
all_entries.map { |x| x.start_with?('.') ? "0#{x}" : x }
<_sillymarkets>
wow
chinmay_dd has quit [Read error: Connection reset by peer]
<_sillymarkets>
I was getting there, but it was at 25 lines of code
waxjar has quit [Ping timeout: 265 seconds]
<centrx>
Ruby expressive power
<_sillymarkets>
ruby is crazy. People that know it can truncate that to one line
<_sillymarkets>
thanks a lot man, i know its basic questions for you :)
<centrx>
Many happy adventures to you
nertzy has quit [Quit: This computer has gone to sleep]
centrx has quit [Quit: Shutting down, Please wait...]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
Musashi007 has joined #ruby-lang
jwaldrip has joined #ruby-lang
kadoppe has quit [Ping timeout: 272 seconds]
ayonkhan has joined #ruby-lang
kadoppe has joined #ruby-lang
solars has joined #ruby-lang
stamina has joined #ruby-lang
ghostpl_ has quit [Remote host closed the connection]
jwaldrip has quit [Ping timeout: 250 seconds]
wallerdev has quit [Quit: wallerdev]
ghostpl_ has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
Musashi007 has joined #ruby-lang
agarie has quit [Remote host closed the connection]
jwaldrip has joined #ruby-lang
revath has quit [Ping timeout: 255 seconds]
Iskarlar_ has joined #ruby-lang
baweaver has joined #ruby-lang
martinbmadsen has joined #ruby-lang
Iskarlar has quit [Ping timeout: 250 seconds]
revath has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
Iskarlar_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
b_hoffman has joined #ruby-lang
djbkd has joined #ruby-lang
<_sillymarkets>
How do i find a character in an element of an array, when the array includes Mixed datatypes?
agarie has joined #ruby-lang
<_sillymarkets>
[1.098, 1.11, 1.268, ".978"]
djbkd has quit [Ping timeout: 250 seconds]
<_sillymarkets>
if i use ( array.select { |p| p[0] == "." } it comes back with undefined method '[]' for 1.098:FLOAT
shazaum has quit [Quit: Leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<_sillymarkets>
anyone ? ;\
<jhass>
_sillymarkets: guard with .is_a?(String)
<jhass>
or get your data straight
<jhass>
and don't have mixed types
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby-lang
Guest85414______ has joined #ruby-lang
ender|dkm has joined #ruby-lang
baweaver has quit [Ping timeout: 250 seconds]
banister has joined #ruby-lang
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nathanstitt has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby-lang
waroperator has joined #ruby-lang
gwendall has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
JohnBat26 has joined #ruby-lang
mattyohe has joined #ruby-lang
grandy has joined #ruby-lang
joaomdmoura has joined #ruby-lang
Iskarlar has joined #ruby-lang
ta has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ghostpl_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
wallerdev has joined #ruby-lang
bantic has joined #ruby-lang
nertzy has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
lacrosse__ has joined #ruby-lang
chadwtaylor has quit [Quit: Leaving...]
Shoffner_____ has joined #ruby-lang
symm- has quit [Read error: Connection reset by peer]
benlakey has joined #ruby-lang
momomomomo has joined #ruby-lang
symm- has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
th2389_____ has joined #ruby-lang
Lewix has joined #ruby-lang
daguar has joined #ruby-lang
SkramX_ has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
djbkd has joined #ruby-lang
whippythellama has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby-lang
whippythellama has joined #ruby-lang
Musashi007 has joined #ruby-lang
agarie has quit []
baweaver has quit [Ping timeout: 256 seconds]
revath has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
sferik has joined #ruby-lang
Lewix has joined #ruby-lang
waroperator has quit [Remote host closed the connection]
<_sillymarkets>
hm, i have an array, and i keep getting undefined method "to_i" for Array when I try to map the array to i
Musashi007 has quit [Quit: Musashi007]
<jhass>
then you have an array of arrays
<jhass>
_sillymarkets: p(data)
<jhass>
use that to inspect your data
symm- has quit [Ping timeout: 252 seconds]
banister has joined #ruby-lang
banister has quit [Client Quit]
Lewix has quit [Remote host closed the connection]
<_sillymarkets>
okay jhass. I found #flatten. So i flattened by array of arrays to an array of strings, but i still can't use "split" on the array of strings
<jhass>
yes, you can't split an array
<_sillymarkets>
i need to convert each element in that array to an integer
<jhass>
then do that
djbkd has quit [Remote host closed the connection]
waroperator has joined #ruby-lang
Musashi007 has joined #ruby-lang
deol has joined #ruby-lang
jds has quit [Quit: Connection closed for inactivity]
djbkd has joined #ruby-lang
banister has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 255 seconds]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]