apeiros_ changed the topic of #ruby-lang to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste code on http://gist.github.com
Sadin has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
test4868 has joined #ruby-lang
bantic has quit [Quit: bantic]
yfeldblum has quit [Remote host closed the connection]
nathanstitt has quit [Ping timeout: 264 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
ta has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
ta has quit [Ping timeout: 252 seconds]
skade has joined #ruby-lang
djbkd has joined #ruby-lang
brooks has joined #ruby-lang
pabloh has joined #ruby-lang
Aova has joined #ruby-lang
yusuf1 has joined #ruby-lang
chadwtay_ has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
charliesome has quit [Quit: zzz]
lytol has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 252 seconds]
ta has joined #ruby-lang
Guest85414______ has quit []
Guest85414______ has joined #ruby-lang
ta has quit [Ping timeout: 252 seconds]
|jemc| has quit [Ping timeout: 244 seconds]
diegovio1 has joined #ruby-lang
brooks has quit [Quit: brooks]
diegoviola has quit [Ping timeout: 264 seconds]
imperator has quit [Quit: Valete!]
nathanstitt has joined #ruby-lang
ta has joined #ruby-lang
yfeldblum has joined #ruby-lang
ta has quit [Ping timeout: 256 seconds]
oleo is now known as Guest65369
oleo__ has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Ping timeout: 250 seconds]
iamninja has quit [Excess Flood]
chadwtay_ has quit [Remote host closed the connection]
iamninja has joined #ruby-lang
Guest65369 has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby-lang
ta has joined #ruby-lang
hanachin has joined #ruby-lang
avdi has quit [Ping timeout: 272 seconds]
poikon has quit [Ping timeout: 245 seconds]
rkrdo has joined #ruby-lang
<hagabaka> is there a common cause for "no implicit conversion of Array into String (TypeError)"?
rkrdo has quit [Remote host closed the connection]
adambeynon has quit [Ping timeout: 265 seconds]
chrisseaton has quit [Ping timeout: 245 seconds]
manveru has quit [Read error: Connection reset by peer]
tmpo has quit [Quit: Textual IRC Client: www.textualapp.com]
ta has quit [Ping timeout: 250 seconds]
bryancp has quit [Ping timeout: 276 seconds]
djbkd has quit [Remote host closed the connection]
<hagabaka> I'm getting it in https://github.com/seanchas116/ruby-qml/blob/master/ext/qml/ext_metaobject.cpp#L143 I don't really know what it's doing, but I wanted to try at least finding out which line is doing it
rkrdo has joined #ruby-lang
enebo has quit [Quit: enebo]
shinnya has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby-lang
diegovio1 is now known as diegoviola
<centrx> hagabaka, That looks like C++, there must be something else attached to it?
poikon has joined #ruby-lang
<hagabaka> yeah it's a C++ extension to a Ruby library
<weaksauce> hagabaka well arrays aren't strings. if you want to convert it you need to use a conversion like [].join(" ")
Aova has quit [Read error: Connection reset by peer]
<hagabaka> I know that, but I'm trying to find out what code is producing that error
chrisseaton has joined #ruby-lang
manveru has joined #ruby-lang
hahuang61 has quit [Ping timeout: 250 seconds]
<hagabaka> for example [1,2,3]['a'] gives TypeError: no implicit conversion of String into Integer
marr has quit []
<weaksauce> yes
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hendranata_ has joined #ruby-lang
avdi has joined #ruby-lang
<weaksauce> because it's not a hash and ['a'] is trying to look up like a hash
<weaksauce> vs array [1,2,3][1] == 2 => true
<weaksauce> hagabaka are you talking about where in your code specifically it is causing that error? or are you talking about in general which ways could it happen? [1,2,3] + "string" will also do that error
adambeynon has joined #ruby-lang
bryancp has joined #ruby-lang
<hagabaka> well I'm curious in general, but I'm also trying to find out what part of that code is causing it. But that's a good answer, "string" + [1,2,3] gives the error I got
<weaksauce> basically what that means is that ruby is trying to coerce the type of an array to a string
Aova has joined #ruby-lang
<weaksauce> to_s shouldn't cause that error.
<hagabaka> that's not my code btw, I'm just trying to use the library
<weaksauce> I'd say one of the + or * operators is doingit
<weaksauce> but most likely +
|jemc| has joined #ruby-lang
gix has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby-lang
mattyohe has quit []
mattyohe has joined #ruby-lang
gix has joined #ruby-lang
stamina has quit [Ping timeout: 255 seconds]
roamingdog has quit [Remote host closed the connection]
jxie has quit [Quit: leaving]
sankaber has joined #ruby-lang
centrx has quit [Quit: In the beginning there was nothing, which exploded. - Terry Pratchett]
roamingdog has joined #ruby-lang
lytol has joined #ruby-lang
grandy has quit []
grandy has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
lytol has quit [Ping timeout: 240 seconds]
roamingdog has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
AlexAltea has quit [Quit: Leaving]
roamingdog has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
roamingdog has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
amsi has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
j4cknewt has joined #ruby-lang
Pugsley_ has quit [Quit: Lingo: www.lingoirc.com]
Musashi007 has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
rkrdo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tunaCanBruh has quit [Ping timeout: 265 seconds]
lytol has joined #ruby-lang
Aova has joined #ruby-lang
postmodern has quit [Quit: Leaving]
<crankharder> when my gem is loaded it includes a module into ActionController::Base depending on the current version of Rails - this makes testing a bit difficult since I want to test the effects of each module on ActionController::Base, but as far as I can tell the gem's source is only loaded the one time
<crankharder> suggestions how I can test it against different versions?
pabloh has quit [Quit: Saliendo]
chills42 has joined #ruby-lang
sankaber has joined #ruby-lang
rkrdo has joined #ruby-lang
fujimura has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
amclain has joined #ruby-lang
roamingdog has quit [Read error: No route to host]
roamingdog has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
xcesariox has joined #ruby-lang
elsimate has joined #ruby-lang
elsimate has left #ruby-lang [#ruby-lang]
djbkd has quit [Remote host closed the connection]
elsimate has joined #ruby-lang
elsimate has left #ruby-lang [#ruby-lang]
roamingdog has quit [Read error: No route to host]
elsimate has joined #ruby-lang
roamingdog has joined #ruby-lang
Musashi007 has quit [Ping timeout: 245 seconds]
roamingdog has quit [Remote host closed the connection]
anonymous2352529 has joined #ruby-lang
anonymous2352529 has left #ruby-lang [#ruby-lang]
roamingdog has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Aova has quit [Read error: Connection reset by peer]
tunaCanBruh has joined #ruby-lang
Bwild has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby-lang
Bwild has joined #ruby-lang
iamninja has quit [Quit: ZZZzzz…]
elsimate has quit [Remote host closed the connection]
Aova has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 264 seconds]
Bwild has quit [Ping timeout: 255 seconds]
Bwild has joined #ruby-lang
jxie has joined #ruby-lang
wallerdev has joined #ruby-lang
roamingdog has quit []
arooni-mobile has joined #ruby-lang
matp_ has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
matp has joined #ruby-lang
Bwild has quit [Ping timeout: 264 seconds]
chriscerami has joined #ruby-lang
ta has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
lytol has quit [Remote host closed the connection]
bb010g has joined #ruby-lang
stardiviner has joined #ruby-lang
ta has quit [Ping timeout: 252 seconds]
lacrosse__ has quit []
lacrosse__ has joined #ruby-lang
sonic_boom has joined #ruby-lang
j4cknewt has joined #ruby-lang
amystephen has quit [Quit: amystephen]
roamingdog has joined #ruby-lang
skade has joined #ruby-lang
sankaber has joined #ruby-lang
pnzqrchos has joined #ruby-lang
pnzqrchos has quit [Client Quit]
sankaber has quit [Read error: Connection reset by peer]
sankaber has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
vozcelik has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
sankaber has quit [Read error: Connection reset by peer]
jgpawletko has quit [Quit: jgpawletko]
sankaber has joined #ruby-lang
vozcelik has quit [Ping timeout: 252 seconds]
Aova has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
cornerma1 has joined #ruby-lang
chills42 has joined #ruby-lang
sankaber has quit [Read error: Connection reset by peer]
sankaber has joined #ruby-lang
hramrach has quit [Remote host closed the connection]
ta has joined #ruby-lang
cornerman has quit [Ping timeout: 256 seconds]
hramrach has joined #ruby-lang
cornerma1 is now known as cornerman
sankaber has quit [Read error: Connection reset by peer]
sankaber has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
ta has quit [Ping timeout: 252 seconds]
lytol has joined #ruby-lang
deol has joined #ruby-lang
ur5us has quit [Ping timeout: 245 seconds]
Shoffner_____ has quit []
Shoffner_____ has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
cycorld1 has quit [Read error: Connection reset by peer]
sankaber has quit [Read error: Connection reset by peer]
cycorld1 has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sankaber has joined #ruby-lang
sankaber has quit [Client Quit]
nathanstitt has quit [Quit: I growing sleepy]
TheMoonMaster has quit [Ping timeout: 245 seconds]
btiefert has joined #ruby-lang
benlakey has quit []
benlakey has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
kyb3r_ has joined #ruby-lang
djbkd has joined #ruby-lang
stardiviner has quit [Ping timeout: 240 seconds]
th2389_____ has quit []
maso has quit [Remote host closed the connection]
th2389_____ has joined #ruby-lang
gix has quit [Ping timeout: 250 seconds]
ta has joined #ruby-lang
skade has joined #ruby-lang
gix has joined #ruby-lang
ta has quit [Ping timeout: 252 seconds]
Musashi007 has joined #ruby-lang
Torrieri has quit [Read error: No route to host]
tunaCanBruh has joined #ruby-lang
ozialien has quit [Quit: Leaving]
rkrdo has quit [Quit: Textual IRC Client: www.textualapp.com]
stardiviner has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 250 seconds]
skade has quit [Read error: Connection reset by peer]
wallerdev has quit [Read error: Connection reset by peer]
brooks has joined #ruby-lang
cdtaylor has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
ottlikg has joined #ruby-lang
havenwood has quit []
Aova has joined #ruby-lang
hramrach has quit [Ping timeout: 250 seconds]
Musashi007 has quit [Quit: Musashi007]
wallerdev has joined #ruby-lang
hramrach has joined #ruby-lang
skade has joined #ruby-lang
ta has joined #ruby-lang
chills42 has joined #ruby-lang
lytol has quit [Remote host closed the connection]
daguar has quit []
daguar has joined #ruby-lang
duderonomy has joined #ruby-lang
ottlikg has quit [Ping timeout: 264 seconds]
lytol has joined #ruby-lang
SkramX_ has quit []
SkramX_ has joined #ruby-lang
ta has quit [Ping timeout: 252 seconds]
skyrocker has quit [Ping timeout: 276 seconds]
chills42 has quit [Ping timeout: 252 seconds]
Sadin has joined #ruby-lang
dellavg_ has joined #ruby-lang
RobertBirnie has joined #ruby-lang
skyrocker has joined #ruby-lang
Sadin has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: zzz]
ta has joined #ruby-lang
ottlikg has joined #ruby-lang
ta has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby-lang
hahuang61 has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
j4cknewt has quit [Remote host closed the connection]
skade has joined #ruby-lang
charliesome has quit [Quit: zzz]
hahuang61 has quit [Ping timeout: 245 seconds]
skade has quit [Read error: Connection reset by peer]
ta has joined #ruby-lang
cdtaylor has joined #ruby-lang
lytol has quit [Remote host closed the connection]
ta has quit [Ping timeout: 252 seconds]
skade has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
skade has quit [Read error: Connection reset by peer]
brooks has quit [Quit: brooks]
Bwild has joined #ruby-lang
diegoviola has quit [Remote host closed the connection]
skade has joined #ruby-lang
mkaesz has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
djbkd_ has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
Aova has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
banister has joined #ruby-lang
oleo__ has quit [Quit: Verlassend]
hanjin has joined #ruby-lang
symm- has joined #ruby-lang
enkristoffer has quit [Ping timeout: 246 seconds]
futilegames has joined #ruby-lang
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
ta has joined #ruby-lang
lytol has joined #ruby-lang
ta has quit [Ping timeout: 252 seconds]
iamninja has joined #ruby-lang
skade has joined #ruby-lang
hahuang62 has quit [Quit: WeeChat 0.4.2]
ottlikg has quit [Ping timeout: 245 seconds]
Averna has quit [Quit: Leaving.]
fiddyc has quit [Remote host closed the connection]
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby-lang
djbkd has quit [Quit: My people need me...]
mskaesz has joined #ruby-lang
symm- has quit [Ping timeout: 264 seconds]
hendranata_ has quit [Ping timeout: 245 seconds]
mkaesz has quit [Read error: No route to host]
mkaesz has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
mskaesz has quit [Ping timeout: 244 seconds]
hahuang61 has quit [Quit: WeeChat 0.4.2]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby-lang
j4cknewt has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 245 seconds]
mkaesz has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
ta has joined #ruby-lang
roamingdog has joined #ruby-lang
ta has quit [Ping timeout: 246 seconds]
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
AKASkip has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roamingdog has quit [Ping timeout: 255 seconds]
hendranata_ has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
ottlikg has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
Aova has joined #ruby-lang
ta has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
ledestin has joined #ruby-lang
SuMo_D has joined #ruby-lang
hahuang62 has joined #ruby-lang
ur5us has joined #ruby-lang
solars has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
fusillicode has joined #ruby-lang
hendranata_ has quit [Read error: Connection reset by peer]
|jemc| has quit [Ping timeout: 255 seconds]
mkaesz has joined #ruby-lang
sonic_boom has quit [Ping timeout: 245 seconds]
hanjin has quit [Quit: HANJIN]
ta has quit [Remote host closed the connection]
Miphix has joined #ruby-lang
yfeldblum has joined #ruby-lang
JohnBat26 has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
nofxx has quit [Ping timeout: 250 seconds]
ta has joined #ruby-lang
solars has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
|jemc| has joined #ruby-lang
hendranata_ has joined #ruby-lang
lytol has quit [Remote host closed the connection]
twe4ked has joined #ruby-lang
hahuang62 has quit [Ping timeout: 245 seconds]
ta has quit [Ping timeout: 252 seconds]
Aova has quit [Read error: Connection reset by peer]
Xzanron has joined #ruby-lang
<Xzanron> Has anyone notice an issue with Basic Auth on Net::HTTP? It seems that it's truncating the hash by a character
hanjin has joined #ruby-lang
panda__ has joined #ruby-lang
<panda__> I want to learn data structures and algorithms
<panda__> Is Ruby the language for that?
<panda__> And if so, which book should I use?
ta has joined #ruby-lang
lytol has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
Aova has joined #ruby-lang
iamninja has quit [Remote host closed the connection]
warcisan has joined #ruby-lang
hendranata_ has quit [Ping timeout: 246 seconds]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
ghostpl has joined #ruby-lang
<warcisan> hi all, i don't know if this is the correct place to ask, but i can't wrap my head around a regex issue
<warcisan> in interactive ruby it works, but when i execute it as a function from a puppet module i can't get a match
<warcisan> i want to match something like "££aaa::blabla::zzz££" with: val.to_s.match(/\302\243\302\243[[[:alnum:]]+:*]+\302\243\302\243/)
<warcisan> anyone any idea what i'm doing wrong?
djbkd_ has quit [Ping timeout: 264 seconds]
kwd has joined #ruby-lang
panda__ has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
nofxx has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby-lang
<wnd> either I'm not following or your input encoding is not utf-8, which you seem to expect
solars has joined #ruby-lang
<warcisan> aha, i was already suspecting some kind of character issue... but i got these values by performing an "inspect"
<warcisan> when i create a simpeler match between the pound signs, it works
<warcisan> so it's more the "[[:alnum:]]" part that has issues
<wnd> alnum probably only matches US-ASCII
<wnd> nevermind: "POSIX bracket expressions are also similar to character classes. They provide a portable alternative to the above, with the added benefit that they encompass non-ASCII characters."
warcisan has quit [Ping timeout: 246 seconds]
ta_ has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby-lang
hendranata_ has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
greenarrow has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
SuMo_D has quit [Remote host closed the connection]
tunaCanBruh has quit [Ping timeout: 252 seconds]
fujimura has joined #ruby-lang
|jemc| has quit [Ping timeout: 252 seconds]
roamingdog has joined #ruby-lang
ta has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
roamingdog has quit [Ping timeout: 264 seconds]
ta has joined #ruby-lang
ta has quit [Remote host closed the connection]
ta has joined #ruby-lang
pepperbreath has quit [Quit: Leaving.]
pepperbreath has joined #ruby-lang
chills42 has joined #ruby-lang
marr has joined #ruby-lang
Integralist has joined #ruby-lang
chills42 has quit [Ping timeout: 264 seconds]
Integralist has quit [Client Quit]
Integralist has joined #ruby-lang
lytol has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
twe4ked has quit [Ping timeout: 245 seconds]
Aova has joined #ruby-lang
mskaesz has joined #ruby-lang
mkaesz_ has joined #ruby-lang
mkaesz has quit [Ping timeout: 252 seconds]
pico-pete has quit [Ping timeout: 255 seconds]
mskaesz has quit [Read error: No route to host]
mkaesz has joined #ruby-lang
twe4ked has joined #ruby-lang
mkaesz_ has quit [Ping timeout: 244 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
Xzanron has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby-lang
stamina has joined #ruby-lang
solars has quit [Ping timeout: 245 seconds]
arBmind has quit [Quit: Leaving.]
fclausen has quit [Ping timeout: 272 seconds]
skyrocker has quit [Read error: Connection reset by peer]
hendranata_ has quit [Ping timeout: 245 seconds]
solars has joined #ruby-lang
<yorickpeterse> morning
rikkipitt has joined #ruby-lang
workmad3 has joined #ruby-lang
arBmind has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
yusuf1 has quit [Quit: Leaving.]
Xzanron has joined #ruby-lang
auspenskii has joined #ruby-lang
charliesome has joined #ruby-lang
Aova has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
ta_ has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
twe4ked has quit [Quit: ZNC - http://znc.in]
twe4ked has joined #ruby-lang
tmpo has joined #ruby-lang
auspenskii has quit [Quit: Leaving]
fujimura has quit [Remote host closed the connection]
skyrocker has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
fujimura has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 264 seconds]
ghostpl has quit [Remote host closed the connection]
chinmay_dd has joined #ruby-lang
roamingdog has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
cdtaylor has quit []
ledestin has quit [Quit: ledestin]
fclausen has joined #ruby-lang
roamingdog has quit [Ping timeout: 264 seconds]
ghostpl has joined #ruby-lang
ocko has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
nofxx has quit [Ping timeout: 252 seconds]
mkaesz has quit [Ping timeout: 264 seconds]
Aova has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby-lang
Integralist has quit [Ping timeout: 250 seconds]
djbkd_ has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
djbkd has quit [Ping timeout: 245 seconds]
fclausen has quit [Ping timeout: 272 seconds]
tmpo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
twe4ked has quit [Quit: ZNC - http://znc.in]
twe4ked has joined #ruby-lang
qba73 has joined #ruby-lang
cdtaylor has joined #ruby-lang
fclausen has joined #ruby-lang
Integralist has joined #ruby-lang
qba73 has quit [Remote host closed the connection]
jgpawletko has joined #ruby-lang
ur5us has joined #ruby-lang
fclausen has quit [Ping timeout: 272 seconds]
ur5us has quit [Ping timeout: 245 seconds]
mkaesz has joined #ruby-lang
futilegames has quit [Quit: futilegames]
tcopeland has quit [Quit: Leaving.]
tcopeland has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
chills42 has joined #ruby-lang
ta_ has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
chills42 has joined #ruby-lang
qba73 has joined #ruby-lang
ta_ has quit [Ping timeout: 250 seconds]
haraoka_ has quit [Ping timeout: 245 seconds]
roamingdog has quit [Ping timeout: 264 seconds]
intinig has joined #ruby-lang
Integral1st has joined #ruby-lang
ta_ has joined #ruby-lang
Integralist has quit [Ping timeout: 245 seconds]
ldnunes has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
Aova has joined #ruby-lang
dagda1_ has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
AKASkip has quit [Ping timeout: 255 seconds]
tunaCanBruh has quit [Ping timeout: 240 seconds]
iamninja has quit [Ping timeout: 250 seconds]
fujimura has joined #ruby-lang
ta_ has joined #ruby-lang
setanta has joined #ruby-lang
iamninja has joined #ruby-lang
ta_ has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: zzz]
Forgetful_Lion has quit [Remote host closed the connection]
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
intinig has quit [Remote host closed the connection]
intinig has joined #ruby-lang
qba73 has quit []
iamninja has quit [Ping timeout: 250 seconds]
hramrach has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby-lang
Xzanron has quit [Ping timeout: 245 seconds]
Integral1st has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
shinnya has joined #ruby-lang
intinig has quit [Remote host closed the connection]
mkaesz has quit [Quit: Leaving...]
Aova has quit [Read error: Connection reset by peer]
<cdtaylor> Annnnd I just ragequitted a ##programming.
<yorickpeterse> ¯\_(ツ)_/¯
<tbuehlmann> yorickpeterse, regarding your tweet: any idea if and how it's possible to use foo in the aggregation in your pg query?
roamingdog has joined #ruby-lang
Pugsley_ has joined #ruby-lang
fujimura has quit [Ping timeout: 245 seconds]
Aova has joined #ruby-lang
<yorickpeterse> eh?
<yorickpeterse> Not sure if I'm understanding the question
<tbuehlmann> SELECT SUM(X) AS foo FROM Y WHERE foo > 5;
<tbuehlmann> will not work, right?
<tbuehlmann> oh, my question didn't make sense, sorry.
roamingdog has quit [Ping timeout: 264 seconds]
malconis has joined #ruby-lang
malconis has quit [Remote host closed the connection]
<yorickpeterse> That's not possible
<yorickpeterse> (sadly)
<yorickpeterse> That lead me to the question: if SUM(X) would be re-used
<yorickpeterse> The query planner output isn't entirely clear on this
<tbuehlmann> yea, already assumed so
malconis has joined #ruby-lang
sudoubuntu has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
pico-pete has joined #ruby-lang
Xzanron has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
symm- has joined #ruby-lang
tcopeland has joined #ruby-lang
Miphix has quit [Ping timeout: 246 seconds]
iamninja has joined #ruby-lang
Miphix has joined #ruby-lang
rikkipitt has quit [Remote host closed the connection]
sankaber has joined #ruby-lang
intinig has joined #ruby-lang
TvL2386 has joined #ruby-lang
hanachin has quit [Remote host closed the connection]
ta_ has joined #ruby-lang
rikkipitt has joined #ruby-lang
cdtaylor has quit [Remote host closed the connection]
arBmind has quit [Quit: Leaving.]
ta_ has quit [Ping timeout: 264 seconds]
amystephen has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
roamingdog has joined #ruby-lang
enkristoffer has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 256 seconds]
hramrach has joined #ruby-lang
yfeldblum has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
chills42 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
dzejrou has joined #ruby-lang
futilegames has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
Integralist has joined #ruby-lang
Integral1st has joined #ruby-lang
melter has quit [Quit: Client exiting]
hanachin has joined #ruby-lang
Aova has joined #ruby-lang
lele|w has quit [Quit: Leaving]
lele|w has joined #ruby-lang
Xzanron has quit [Ping timeout: 246 seconds]
Bwild has quit [Quit: leaving]
slawrence00 has joined #ruby-lang
chadwtaylor has joined #ruby-lang
ruby-lang362 has joined #ruby-lang
ruby-lang362 has left #ruby-lang [#ruby-lang]
ta_ has joined #ruby-lang
mattyohe has joined #ruby-lang
b_hoffman has joined #ruby-lang
chinmay_dd has quit []
chinmay_dd has joined #ruby-lang
tkuchiki has quit [Ping timeout: 264 seconds]
enebo has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
fujimura has joined #ruby-lang
ta_ has joined #ruby-lang
chadwtaylor has quit [Read error: Connection reset by peer]
vrinek has joined #ruby-lang
vrinek has quit [Client Quit]
chadwtaylor has joined #ruby-lang
fujimura has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 244 seconds]
<yorickpeterse> oh hey, MongoDB 3.0
<yorickpeterse> Good to see their marketing team is as strong as ever
<yorickpeterse> zomg transactions
Xzanron has joined #ruby-lang
stamina has quit [Quit: WeeChat 1.1.1]
symm- has quit [Ping timeout: 245 seconds]
matrisking has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
j4cknewt has joined #ruby-lang
TvL2386 has quit [Quit: Ex-Chat]
j2p2 has joined #ruby-lang
symm- has joined #ruby-lang
tkuchiki has joined #ruby-lang
intinig has quit [Read error: Connection reset by peer]
the_real_intinig has joined #ruby-lang
mattwildig has joined #ruby-lang
jgpawletko has joined #ruby-lang
j2p2 has quit [Ping timeout: 264 seconds]
j2p2 has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
oleo has joined #ruby-lang
xcesariox has quit [Ping timeout: 264 seconds]
b_hoffman has quit [Quit: b_hoffman]
chadwtaylor has quit [Read error: Connection reset by peer]
hanachin has quit [Remote host closed the connection]
Aova has joined #ruby-lang
Xzanron has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
gix has quit [Ping timeout: 246 seconds]
cdtaylor has joined #ruby-lang
nathanstitt has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
chills42 has joined #ruby-lang
gix has joined #ruby-lang
ottlikg has quit [Ping timeout: 264 seconds]
cdtaylor has quit [Remote host closed the connection]
arooni-mobile has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Ping timeout: 245 seconds]
hanachin has joined #ruby-lang
hanachin has quit [Client Quit]
Sirupsen has joined #ruby-lang
Integral1st has quit [Quit: leaving]
rippa has joined #ruby-lang
ocko has quit [Read error: Connection reset by peer]
Sadin has joined #ruby-lang
cdtaylor has joined #ruby-lang
whippythellama has joined #ruby-lang
AKASkip has joined #ruby-lang
jxie has quit [Quit: leaving]
tunaCanBruh has joined #ruby-lang
Sadin has quit [Ping timeout: 264 seconds]
ta_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
kwd has quit [Quit: kwd]
Integral1st has joined #ruby-lang
Integralist has quit [Ping timeout: 252 seconds]
thelastinuit has joined #ruby-lang
cmisenas has joined #ruby-lang
kapil__ has quit [Quit: Connection closed for inactivity]
arBmind has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
Miphix has quit [Quit: Leaving]
Aova has joined #ruby-lang
riotjone_ has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
|jemc| has joined #ruby-lang
dzejrou has quit [Ping timeout: 264 seconds]
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
symm- has quit [Ping timeout: 264 seconds]
iamninja has quit [Quit: ZZZzzz…]
SuMo_D has quit [Ping timeout: 256 seconds]
fusillicode has quit [Ping timeout: 250 seconds]
mattwildig has quit []
tunaCanBruh has quit [Ping timeout: 264 seconds]
j4cknewt has quit [Remote host closed the connection]
deol has joined #ruby-lang
j4cknewt has joined #ruby-lang
Integral1st has quit [Ping timeout: 255 seconds]
roamingdog has quit [Remote host closed the connection]
cornerma1 has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
diegoviola has joined #ruby-lang
j4cknewt_ has joined #ruby-lang
cornerman has quit [Ping timeout: 264 seconds]
cornerma1 is now known as cornerman
ta_ has joined #ruby-lang
symm- has joined #ruby-lang
j4cknewt has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 252 seconds]
__butch__ has joined #ruby-lang
twe4ked has quit [Ping timeout: 245 seconds]
j4cknewt has joined #ruby-lang
twe4ked has joined #ruby-lang
j4cknewt_ has quit [Ping timeout: 256 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
j4cknewt_ has joined #ruby-lang
ta_ has joined #ruby-lang
rippa has quit [Ping timeout: 255 seconds]
j4cknewt has quit [Ping timeout: 256 seconds]
rippa has joined #ruby-lang
SuMo_D has joined #ruby-lang
kith_ has joined #ruby-lang
amsi has joined #ruby-lang
kith_ has quit [Changing host]
kith_ has joined #ruby-lang
ghostpl has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
kith has quit [Ping timeout: 264 seconds]
j4cknewt_ has quit [Ping timeout: 256 seconds]
hanjin has left #ruby-lang [#ruby-lang]
ta_ has quit [Ping timeout: 245 seconds]
SuMo_D has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
chriscerami has quit []
webhat has quit [Quit: No Ping reply in 180 seconds.]
webhat_ has joined #ruby-lang
HappySlappy has joined #ruby-lang
j4cknewt_ has joined #ruby-lang
Aova has joined #ruby-lang
j4cknewt has quit [Ping timeout: 255 seconds]
fusillicode has joined #ruby-lang
havenwood has joined #ruby-lang
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
rikkipitt has quit [Quit: Leaving...]
riotjones has joined #ruby-lang
tkuchiki has quit [Ping timeout: 245 seconds]
riotjones has quit [Ping timeout: 246 seconds]
rikkipitt has joined #ruby-lang
Sadin has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 246 seconds]
wallerdev has joined #ruby-lang
Sadin has quit [Ping timeout: 245 seconds]
rikkipitt has quit [Read error: Connection reset by peer]
greenarrow has quit [Quit: 500]
rikkipitt has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
arBmind has quit [Quit: Leaving.]
yfeldblum has joined #ruby-lang
dzejrou has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 264 seconds]
Miphix has joined #ruby-lang
rikkipit_ has joined #ruby-lang
rikkipitt has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
SuMo_D has quit [Remote host closed the connection]
rikkipit_ has quit [Read error: No route to host]
SuMo_D has joined #ruby-lang
zoo-zed has joined #ruby-lang
rikkipitt has joined #ruby-lang
rikkipitt has quit [Read error: Connection reset by peer]
SuMo_D has quit [Ping timeout: 244 seconds]
roamingdog has joined #ruby-lang
j4cknewt_ has quit []
symm- has quit [Ping timeout: 255 seconds]
mikecmpbll has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
chadwtaylor has joined #ruby-lang
roamingdog has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
dzejrou has quit [Quit: Leaving]
the_real_intinig has quit [Remote host closed the connection]
chills42 has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
wallerdev has joined #ruby-lang
lytol has joined #ruby-lang
amsi has quit [Ping timeout: 245 seconds]
hahuang62 has joined #ruby-lang
yfeldblum has joined #ruby-lang
chills42 has joined #ruby-lang
RobertBirnie has joined #ruby-lang
hahuang62 has quit [Ping timeout: 250 seconds]
b_hoffman has joined #ruby-lang
djbkd has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
Aova has joined #ruby-lang
workmad3 has quit [Ping timeout: 250 seconds]
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 244 seconds]
dhruvasagar_ is now known as dhruvasagar
djbkd has quit [Remote host closed the connection]
amsi has joined #ruby-lang
Sirupsen has quit [Ping timeout: 250 seconds]
SuMo_D has joined #ruby-lang
frzng has joined #ruby-lang
lytol has quit [Remote host closed the connection]
hahuang62 has joined #ruby-lang
djbkd has joined #ruby-lang
SuMo_D has quit [Ping timeout: 256 seconds]
djbkd has quit [Remote host closed the connection]
tunaCanBruh has quit [Ping timeout: 245 seconds]
symm- has joined #ruby-lang
fusillicode has quit [Read error: No route to host]
djbkd has joined #ruby-lang
fusillicode has joined #ruby-lang
marr has quit [Ping timeout: 246 seconds]
petertretyakov has joined #ruby-lang
fusillicode1 has joined #ruby-lang
fusillicode has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
donove has joined #ruby-lang
wallerdev has joined #ruby-lang
petertretyakov has quit [Quit: Be back later ...]
bb010g has joined #ruby-lang
chadwtaylor has left #ruby-lang ["Leaving..."]
lytol has joined #ruby-lang
petertretyakov has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
riotjones has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
Sadin has joined #ruby-lang
fclausen has joined #ruby-lang
riotjones has quit [Ping timeout: 264 seconds]
Aova has joined #ruby-lang
fusillicode1 has quit [Read error: Connection reset by peer]
sarkyniin has joined #ruby-lang
fusillicode has joined #ruby-lang
rbpd5015 has joined #ruby-lang
Sadin has quit [Ping timeout: 245 seconds]
<rbpd5015> Ok guys I am stuck in a hole
<rbpd5015> I am trying to finalize something and have major issues
fusillicode has quit [Read error: Connection reset by peer]
<rbpd5015> When I use my static file, I get the output I want
<rbpd5015> but when I scrape the web I get an output I do not want
<rbpd5015> anybody got a second?
fusillicode has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
dzejrou has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
lytol has quit [Remote host closed the connection]
rbpd5015 has quit [Quit: Page closed]
Sadin has joined #ruby-lang
frzng has quit [Quit: frzng]
wallerdev has quit [Quit: wallerdev]
lytol has joined #ruby-lang
Sadin has quit [Ping timeout: 252 seconds]
duderonomy has joined #ruby-lang
<havenwood> RBP, ah, left already
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
ghostpl has joined #ruby-lang
ur5us has joined #ruby-lang
lytol has quit [Remote host closed the connection]
rbowlby has joined #ruby-lang
apeiros_ has quit []
apeiros_ has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
yfeldblum has joined #ruby-lang
roamingdog has joined #ruby-lang
solars has quit [Ping timeout: 256 seconds]
marr has joined #ruby-lang
gwendall has joined #ruby-lang
priodev has quit [Ping timeout: 244 seconds]
waxjar has quit [Ping timeout: 246 seconds]
Aova has quit [Read error: Connection reset by peer]
ldnunes has quit [Quit: Leaving]
chills42 has quit [Remote host closed the connection]
chills42 has joined #ruby-lang
ruby-lang489 has joined #ruby-lang
Aova has joined #ruby-lang
chouhoul_ has joined #ruby-lang
dRbiG has quit [Quit: co'o ro do]
dRbiG has joined #ruby-lang
ruby-lang489 has quit [Ping timeout: 246 seconds]
chouhoulis has quit [Ping timeout: 265 seconds]
chouhoul_ has quit [Remote host closed the connection]
dRbiG has quit [Client Quit]
dRbiG has joined #ruby-lang
ledestin has joined #ruby-lang
petertretyakov_ has joined #ruby-lang
waxjar has joined #ruby-lang
priodev has joined #ruby-lang
petertretyakov has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby-lang
twe4ked has quit [Ping timeout: 245 seconds]
priodev has quit [Ping timeout: 252 seconds]
waxjar has quit [Ping timeout: 252 seconds]
priodev has joined #ruby-lang
waxjar has joined #ruby-lang
apeiros has joined #ruby-lang
apeiros_ has quit [Ping timeout: 256 seconds]
apeiros__ has quit [Ping timeout: 276 seconds]
apeiros_ has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
apeiros_ has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby-lang
SuMo_D has joined #ruby-lang
iamninja has joined #ruby-lang
riotjones has joined #ruby-lang
apeiros__ has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 250 seconds]
chills42 has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 250 seconds]
apeiros__ has quit [Ping timeout: 264 seconds]
Aova has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
djellemah has joined #ruby-lang
Aova has joined #ruby-lang
futilegames has quit [Quit: futilegames]
Missphoenix has joined #ruby-lang
djbkd has joined #ruby-lang
chinmay_dd has quit [Quit: Connection closed for inactivity]
yfeldblu_ has joined #ruby-lang
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dzejrou has quit [Ping timeout: 255 seconds]
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
nofxx has joined #ruby-lang
Miphix has quit [Ping timeout: 252 seconds]
dzejrou has joined #ruby-lang
rbpd5015 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
<rbpd5015> ok guys simple question
<rbpd5015> if I got a word and I want to split it at a space wouldnt it just be
<rbpd5015> ou =lines.text.split(' ')
<rbpd5015> but it is not recognizing the space
<rbpd5015> and that is the only way I know to split it at the space?
<havenwood> >> 'an example'.split
<eval-in__> havenwood => ["an", "example"] (https://eval.in/277206)
<havenwood> >> 'another example'.scan /\S+/
<eval-in__> havenwood => ["another", "example"] (https://eval.in/277211)
<wallerdev> are you sure it's a space
<havenwood> rbpd5015: ^
<rbpd5015> no i guess i am not
<rbpd5015> LOL
<rbpd5015> I think it is
<rbpd5015> -8 -110
dellavg_ has quit [Ping timeout: 264 seconds]
<rbpd5015> thats the output of the line
devgiant has joined #ruby-lang
apeiros_ has joined #ruby-lang
dRbiG has quit [Ping timeout: 244 seconds]
<rbpd5015> havenwood
<rbpd5015> what else can it be?
<havenwood> rbpd5015: check its bytes?
<rbpd5015> ^
chouhoulis has joined #ruby-lang
<havenwood> >> "-8 -110".bytes
<eval-in__> havenwood => [45, 56, 32, 45, 49, 49, 48] (https://eval.in/277213)
chouhoulis has quit [Remote host closed the connection]
<havenwood> >> 32.chr
<eval-in__> havenwood => " " (https://eval.in/277214)
<havenwood> >> " ".ord
<eval-in__> havenwood => 32 (https://eval.in/277215)
devgiant has quit [Client Quit]
b_hoffman has joined #ruby-lang
chouhoulis has joined #ruby-lang
<wallerdev> im loving the giant row of commented out puts
<wallerdev> lol
<rbpd5015> yeah sorry just trying to narrow down this section
<rbpd5015> thats all
<rbpd5015> then I will change all fo that
<wallerdev> try using p instead of puts
<rbpd5015> so I get 45 56 194 160 45 49 49 48
<rbpd5015> for -8 -110
zoo-zed has quit [Quit: Leaving.]
<wallerdev> 194 isn't a space
<rbpd5015> what is 194 160
<rbpd5015> ?
<wallerdev> do you know what encoding the site is using
<wallerdev> maybe an encoding issue
<rbpd5015> view-source:http://www.sportsbookreview.com/betting-odds/nba-basketball/
<rbpd5015> dont see any encoding
nofxx has quit [Ping timeout: 256 seconds]
<wallerdev> says utf-8, maybe a bug in the site then haha
<wallerdev> >> '45 56 194 160 45 49 49 48'.split(' ').map(&:to_i).pack('U*')
dRbiG has joined #ruby-lang
<wallerdev> eval-in__: pls
<darix> rbpd5015: curl -sSI http://www.sportsbookreview.com/betting-odds/nba-basketball/ | grep Content-Type
<darix> Content-Type: text/html; charset=utf-8
<wallerdev> if you know it's going to be numbers / negatives you can just scan for those
<rbpd5015> guys thanks for everyones help
<rbpd5015> its not always negatic
<rbpd5015> negative
<rbpd5015> damm just need to split this string right at the space LOL
<wallerdev> >> "-8 110".scan(/[\d-]+/)
<eval-in__> wallerdev => ["-8", "110"] (https://eval.in/277219)
<wallerdev> something simple like that
<wallerdev> grabs digits and negative signs
Bwild has joined #ruby-lang
<rbpd5015> wallerdev
<rbpd5015> works 99
<rbpd5015> but I cant split on a .
duderonomy has joined #ruby-lang
<wallerdev> the stuff inside the [] are the characters you allow
<wallerdev> so theres \d for all digits
<wallerdev> a dash for negative signs
<wallerdev> you can add a . in there too
<rbpd5015> haha'
<rbpd5015> !!!!
<rbpd5015> thanks
<wallerdev> np
<HappySlappy> http://rubular.com/ good resource for testing RageEx
<rbpd5015> wallerdev can you look at this code in 5 real fast
djellemah has quit [Ping timeout: 246 seconds]
<wallerdev> maybe
twe4ked has joined #ruby-lang
solars has joined #ruby-lang
tcopeland has quit [Ping timeout: 252 seconds]
<rbpd5015> ok havibng an issue
lytol has joined #ruby-lang
<rbpd5015> it does not work the way I was hoping it was going to work :(
<havenwood> rbpd5015: save your Gist with .rb extension for syntax highlighting
<rbpd5015> ok
<wallerdev> what doesnt work aobut it
<rbpd5015> so here is what I want
<rbpd5015> I want after each book
<havenwood> rbpd5015: Ruby 1.8 is dead, so drop: require 'rubygems'
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
<rbpd5015> to list the lines on 4 different lines
uberjar has joined #ruby-lang
<rbpd5015> 1st line I want away Line, then away moneyline
<rbpd5015> then home line and home moneyline
<rbpd5015> but instead the 1st line I get ["+8", "-110"]
<rbpd5015> and second line ["-8", "-110"]
<uberjar> will whatever is on the right hand side of ||= be evaluated if whatever's on the left hand side is truthy ?
donove has quit [Remote host closed the connection]
<wallerdev> no
<uberjar> k thnx
<wallerdev> it will short circuit
<uberjar> didn't think so, just wanted to be sure
<rbpd5015> got rid of that rubygems line
sarkyniin has quit [Remote host closed the connection]
yfeldblu_ has quit [Remote host closed the connection]
<rbpd5015> .
<rbpd5015> I think I lost connection
<rbpd5015> did you say anything havenwood
<havenwood> rbpd5015: nope, i didn't follow what you're trying to do. what's the input and what's the expected output?
<rbpd5015> I am trying to extract everything in order from a single game
<rbpd5015> however when i get to bettting lines it comes in a group of 2
<rbpd5015> away and home
<rbpd5015> and I need it in a group of 4
<rbpd5015> so i can save the line and the moneyline in a different column
<rbpd5015> i am so close
<rbpd5015> so frustrated
<wallerdev> do you have much experience programming?
petertretyakov_ has quit [Quit: Be back later ...]
<wallerdev> you could do something like have a counter, n = 0, then increment it each result, and when it hits 2 you can combine the last 2 results, then set it back to 0
<rbpd5015> i have some basic experience
<rbpd5015> were you able to run the code i just posted?
<wallerdev> didnt try
<rbpd5015> ok look there thats the output I am getting
<rbpd5015> that is 1 of 12 or 13 NBA games today
<rbpd5015> lines 1-14 are perfect
<rbpd5015> on line 15 is the book number which is correct
<rbpd5015> line 16 is then puts out the away SPREAD and LINE on 1 line
<rbpd5015> I want line 16 to be -8.5
<rbpd5015> and line 17 to be -110
<rbpd5015> line 18 to be 18 +8.5 andline 19 -110
<rbpd5015> and so on and so on
<rbpd5015> once i get that i will store everyputs into my DB
mshieldsdunn has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
shazaum has joined #ruby-lang
HappySlappy has left #ruby-lang ["Textual IRC Client: www.textualapp.com"]
roamingdog has joined #ruby-lang
<havenwood> rbpd5015: It is easier to understand data than logic. I commented on your Gist with one of the game's :opener and :live_lines. Is this the part you're talking about? Given that input, what is the output you'd want?
roamingdog has quit [Ping timeout: 244 seconds]
<rbpd5015> open was fine just the live lines
<havenwood> so given that Array, what output are you wanting?
<havenwood> Another Array? A Hash? What does it look like ideally?
<rbpd5015> ok given an array I want it to be AwaySpread,AwayMoneyline,HomeSpread,HomeMoneyline
<rbpd5015> ill comment ideally
roamingdog has joined #ruby-lang
Aova has quit [Read error: Connection reset by peer]
<havenwood> rbpd5015: Is that supposed to represent lines of print?
<rbpd5015> yes
<rbpd5015> because I will store it in the DB as a betting line which is -8
<rbpd5015> and then the moneyline of the betting line -110
<rbpd5015> if I ask for the betting line I want to see -8
<rbpd5015> If I ask for the betting line of the spread I want -110
<havenwood> rbpd5015: So given the first Array, what would it look like as a new Array with each Array item representing a line of print? Show what that Array literal would look like.
<rbpd5015> so write now we have what
<rbpd5015> we have an array of the lines 1 for home 1 for away
<rbpd5015> now I need the same thing but inside home i need an array with spread and moneyline
djbkd has quit [Remote host closed the connection]
<rbpd5015> and away I need an array of spread and moneyline
Aova has joined #ruby-lang
<havenwood> rbpd5015: Check out this example of what I mean: https://gist.github.com/havenwood/fc630b8cb439e6572641
djbkd has joined #ruby-lang
<havenwood> rbpd5015: The "I want" part is made up, put what you want there.
<rbpd5015> ok yeah, havenwood you going to be on in a few? i am running home from the office
<rbpd5015> I got ya
<havenwood> rbpd5015: :)
jo__ has quit [Quit: Connection closed for inactivity]
rbpd5015 has quit [Ping timeout: 246 seconds]
havenwood has quit []
Torrieri has joined #ruby-lang
Torrieri has joined #ruby-lang
roamingdog has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby-lang
yfeldblum has joined #ruby-lang
chills42 has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
b_hoffman has quit [Quit: b_hoffman]
rbpd5015 has joined #ruby-lang
<rbpd5015> hey Havenwood are you around?
<rbpd5015> anybody around?
nathanstitt has quit [Quit: I growing sleepy]
__butch__ has quit [Quit: Leaving.]
<wallerdev> everyone left
<rbpd5015> hey
<rbpd5015> i am here
<rbpd5015> so you mind continuing to help
<rbpd5015> i am so lost lol
riotjones has joined #ruby-lang
<wallerdev> lol
<wallerdev> just keep working at it
<wallerdev> you might have to take a step back and try to simplify the problem and solve the simplified version first
mikecmpbll has quit [Remote host closed the connection]
mikecmpbll has joined #ruby-lang
Averna has joined #ruby-lang
riotjones has quit [Ping timeout: 256 seconds]
<weaksauce> rbpd5015 what have you tried and what isn't working
<rbpd5015> ok i am so frustarated
<rbpd5015> all i want to do is split on a god dam space
<rbpd5015> sorry
<rbpd5015> just angry i have spent 2 days on this and trying to find someone to pay to do it
<weaksauce> rbpd5015 "something else".split(" ") ?
<rbpd5015> doesnt work
<rbpd5015> cause for some reason it is not really a space
<weaksauce> not descriptive
<rbpd5015> for what i seen
<rbpd5015> ok
<rbpd5015> weaksauce
<rbpd5015> this is what i got
<rbpd5015> my output looks like
cmisenas has quit [Ping timeout: 264 seconds]
<rbpd5015> the problem i am having is the bit of tet that is 2 pieces coming in 1 line
<rbpd5015> I am going to store it in a DB
<rbpd5015> and it cant be two pieces of infor
<weaksauce> those links don't work for me
<rbpd5015> no idea 1 sec
<rbpd5015> all my gists are gone?
<rbpd5015> no idea why
workmad3 has joined #ruby-lang
Antivan has joined #ruby-lang
cmisenas has joined #ruby-lang
charliesome has joined #ruby-lang
<rbpd5015> so i cant show you weaksauce
<rbpd5015> all my gists are unable to be accessed
workmad3 has quit [Client Quit]
workmad3 has joined #ruby-lang
<weaksauce> try logging out and gisting again
Antivan has quit [Remote host closed the connection]
<weaksauce> do it anonymously
<rbpd5015> ok
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bb010g has quit [Ping timeout: 245 seconds]
whippythellama has quit [Quit: whippythellama]
<rbpd5015> weaksauce above is my code
avdi has quit [Ping timeout: 252 seconds]
manveru has quit [Read error: Connection reset by peer]
<rbpd5015> that is my output
<rbpd5015> the problem i am having is my output
chrisseaton has quit [Read error: Connection reset by peer]
Antivan has joined #ruby-lang
ritek has quit [Read error: Connection reset by peer]
bryancp has quit [Ping timeout: 265 seconds]
poikon has quit [Ping timeout: 245 seconds]
<weaksauce> elaborate on the problem
AKASkip has quit [Ping timeout: 245 seconds]
adambeynon has quit [Ping timeout: 252 seconds]
<rbpd5015> ok Ok what I wat is the following
<rbpd5015> look at line 11
<rbpd5015> where it says -7 -110
<rbpd5015> I wants line 11 to say -7
<rbpd5015> I want line 12 to say -110
<rbpd5015> I want line 13 to say +7 and line 14 to say -110
<rbpd5015> and i will be happy doesnt look to damm hard but been stuck 3 days on this
havenwood has joined #ruby-lang
<weaksauce> that's a really long time
<rbpd5015> havenwood your back man
<rbpd5015> welcome back
<rbpd5015> my luck is so bad i go online to railsmentors to hire a mentor and the site has errors so i can not complete my profile so i cant even hire someone to help me
<rbpd5015> freaking crazy
<wallerdev> lol
<weaksauce> haha
<rbpd5015> yeah it was funny the first two days
<rbpd5015> not anymore i got to start storing this data
<weaksauce> what version of ruby are you using?
<rbpd5015> 2.1
Aova has quit [Read error: Connection reset by peer]
ritek has joined #ruby-lang
avdi has joined #ruby-lang
rikkipitt has joined #ruby-lang
solars has quit [Ping timeout: 245 seconds]
bryancp has joined #ruby-lang
<weaksauce> instead of begin rescue ... do a lines.scan do |x| puts x end
<weaksauce> that will do it
cmisenas has quit [Ping timeout: 264 seconds]
<weaksauce> but I suggest going through some ruby tutorials rbpd5015 because this shouldn't take 3 days.
ritek has joined #ruby-lang
ritek has quit [Changing host]
avdi has quit [Changing host]
avdi has joined #ruby-lang
bryancp has quit [Changing host]
bryancp has joined #ruby-lang
Aova has joined #ruby-lang
poikon has joined #ruby-lang
<weaksauce> rbpd5015 do you follow the solution?
<rbpd5015> yep and it worked
bb010g has joined #ruby-lang
tcopeland has joined #ruby-lang
twe4ked has quit [Ping timeout: 245 seconds]
<rbpd5015> weaksauce 1 mor ething sorry
manveru has joined #ruby-lang
<weaksauce> I guess I will take that as a thank you
<rbpd5015> you see i got the same problem with openenr
<rbpd5015> ?
<rbpd5015> opener
charliesome has quit [Quit: zzz]
<rbpd5015> No I do not have that in a block already where would i add the scan part?
<weaksauce> use this and see if you can't figure out how to coerce the data the way you want it on your own: puts "opener #{opener}"
<rbpd5015> also in the other part you have puts x
<rbpd5015> this prints all 4
<rbpd5015> if I want to just print the 3rd object which would be the home line puts x[3] doesnt work as it only print the 3rd character?
<rbpd5015> any ideas?
adambeynon has joined #ruby-lang
rikkipitt has quit [Quit: Leaving...]
chrisseaton has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
SuMo_D has quit [Remote host closed the connection]
<rbpd5015> weaksuace sorry i am a bit confused?
SuMo_D has joined #ruby-lang
mshieldsdunn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce> you should copy the code that you have there and open up irb
<weaksauce> paste it in and then play with it to see if you can't coerce the data how you want it
sonic_boom has joined #ruby-lang
<weaksauce> but instead of games.each do game = games[1]
twe4ked has joined #ruby-lang
setanta has quit [Quit: Leaving]
<weaksauce> what do you think opener is?
uberjar has quit [Quit: uberjar]
workmad3 has quit [Ping timeout: 245 seconds]
<rbpd5015> canti make that entire process a method weaksauce and just call it?
SuMo_D has quit [Ping timeout: 252 seconds]
<weaksauce> probably. try it out
ta_ has joined #ruby-lang
enebo has quit [Quit: enebo]
<rbpd5015> ok damm want to make a few dollars let me know
dzejrou has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
twe4ked has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby-lang
<weaksauce> how much?
<rbpd5015> dude i dont know just need to finsh this parser up you tell me
<rbpd5015> its 95% there
<weaksauce> what are you looking to have finished?
<rbpd5015> i just need this bit of ruby cleaned up so i can save it to a db in rails
<rbpd5015> right now i am parsing lines, i need to add the overunders, which is a different namespace same structure
<rbpd5015> then thats it.
<rbpd5015> these little issues are killing me
twe4ked has joined #ruby-lang
<weaksauce> where are the overunders?
ta_ has quit [Ping timeout: 252 seconds]
<rbpd5015> if you add totals/
<rbpd5015> to the url it works
<rbpd5015> and they are there
<rbpd5015> i just do not need to duplicate the first 14 lines
ta_ has joined #ruby-lang
chouhoulis has quit [Ping timeout: 265 seconds]
enebo has joined #ruby-lang
ta_ has quit [Ping timeout: 252 seconds]
mshieldsdunn has joined #ruby-lang