ljarvis changed the topic of #ruby-lang to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p547: http://ruby-lang.org || Paste code on http://gist.github.com
symm- has quit [Quit: Leaving...]
|jemc| has quit [Ping timeout: 250 seconds]
dmitrykorotkov has joined #ruby-lang
sarkyniin has joined #ruby-lang
shinnya has quit [Ping timeout: 255 seconds]
ascarter has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
emmesswhy has quit [Quit: Leaving]
torrieri has quit [Quit: Leaving...]
pixelhandler has quit [Quit: pixelhandler]
vintik has quit [Remote host closed the connection]
ascarter_ has joined #ruby-lang
ascarter has quit [Ping timeout: 245 seconds]
ascarter_ has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
Jaood has left #ruby-lang [#ruby-lang]
ddv has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby-lang
kyy has joined #ruby-lang
tkuchiki has quit [Ping timeout: 264 seconds]
ddv has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
hahuang61 has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
centrx has joined #ruby-lang
mykoweb has joined #ruby-lang
marr has quit []
mykoweb has quit [Ping timeout: 260 seconds]
jamesfordummies has joined #ruby-lang
mistym has quit [Remote host closed the connection]
rmcafee has quit [Quit: rmcafee]
djbkd has quit [Quit: My people need me...]
sarkyniin has quit [Ping timeout: 250 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamesfor_ has joined #ruby-lang
jamesfordummies has quit [Read error: Connection reset by peer]
Mandros has left #ruby-lang [#ruby-lang]
|jemc| has joined #ruby-lang
Atttwww has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby-lang
jamesfor_ has quit [Ping timeout: 250 seconds]
elia has quit [Quit: Computer has gone to sleep.]
jamesfordummies has joined #ruby-lang
<cmhobbs> is there a good way to replace an error with another one? for example, i know that a method i'm calling might return NameError, but I'd like to wrap that error in an error object with a little more information
<cmhobbs> right now i've got it in a rescue block sort of like: begin; potentially_bad_method; rescue NameError; raise DecoratedError
<cmhobbs> ; end
<cmhobbs> though that feels kind of gross
<cmhobbs> it feels bad because it's hard to test
weems|mac has quit [Quit: weems|mac]
chouhoulis has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
palar has quit [Remote host closed the connection]
weems|mac has joined #ruby-lang
palar has joined #ruby-lang
dknox has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby-lang
lsegal has joined #ruby-lang
alexju has joined #ruby-lang
mistym has joined #ruby-lang
alexju has quit [Remote host closed the connection]
jmeeuwen has joined #ruby-lang
omosoj has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Ping timeout: 245 seconds]
ur5us has quit [Remote host closed the connection]
amclain has joined #ruby-lang
centrx has quit [Quit: Mead error: Connection reset by beer]
Miphix has joined #ruby-lang
vintik has joined #ruby-lang
s1kx has joined #ruby-lang
ur5us has joined #ruby-lang
emmesswhy has joined #ruby-lang
torrieri has joined #ruby-lang
agrinb has joined #ruby-lang
alexju has joined #ruby-lang
agrinb has quit [Ping timeout: 250 seconds]
jbardin has quit [Quit: jbardin]
nofxx_ has quit [Remote host closed the connection]
omosoj has joined #ruby-lang
emmesswhy has quit [Quit: Leaving]
emmesswhy has joined #ruby-lang
emmesswhy has quit [Client Quit]
sharpmachine has joined #ruby-lang
RobertBirnie has joined #ruby-lang
lcdhoffman has joined #ruby-lang
sharpmachine has quit [Ping timeout: 264 seconds]
emmesswhy has joined #ruby-lang
emmesswhy has quit [Client Quit]
lcdhoffman has quit [Client Quit]
hahuang61 has quit [Ping timeout: 255 seconds]
wallerdev has quit [Quit: wallerdev]
emmesswhy has joined #ruby-lang
emmesswhy has quit [Client Quit]
amystephen has quit [Quit: amystephen]
jamesfor_ has joined #ruby-lang
jamesfordummies has quit [Ping timeout: 250 seconds]
tlr_464 has quit [Remote host closed the connection]
johnpclaus has quit []
Cakey has joined #ruby-lang
agrinb has joined #ruby-lang
torrieri_ has joined #ruby-lang
InfraRuby has left #ruby-lang [#ruby-lang]
jgpawletko has quit [Quit: jgpawletko]
rmcafee has joined #ruby-lang
torrieri has quit [Ping timeout: 255 seconds]
vintik has quit [Remote host closed the connection]
rmcafee has quit [Client Quit]
emmesswhy has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 244 seconds]
dmitrykorotkov has quit [Remote host closed the connection]
emmesswhy has quit [Client Quit]
RobertBirnie has joined #ruby-lang
heavyhorse has joined #ruby-lang
emmesswhy has joined #ruby-lang
hgl has joined #ruby-lang
hahuang61 has joined #ruby-lang
spuk has quit [Ping timeout: 250 seconds]
heavyhorse has quit [Quit: Computer has gone to sleep]
heavyhorse has joined #ruby-lang
koderok has joined #ruby-lang
weems|mac has quit [Quit: weems|mac]
spuk has joined #ruby-lang
cmhobbs has quit [Quit: Leaving]
heavyhorse has quit [Ping timeout: 255 seconds]
bunk__ has quit [Remote host closed the connection]
bunk__ has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 255 seconds]
bunk__ has quit [Ping timeout: 250 seconds]
RobertBirnie has joined #ruby-lang
omosoj has quit [Quit: Leaving]
davispuh has quit [Ping timeout: 245 seconds]
kyy has quit [Ping timeout: 246 seconds]
jamesfor_ has quit []
bunk__ has joined #ruby-lang
Cakey has quit [Ping timeout: 255 seconds]
koderok has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby-lang
bunk___ has joined #ruby-lang
bunk__ has quit [Ping timeout: 255 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
bunk___ has quit []
Atttwww has joined #ruby-lang
emmesswhy has quit [Quit: Leaving]
weems|mac has joined #ruby-lang
sharpmachine has joined #ruby-lang
t_ has quit [Ping timeout: 250 seconds]
t_ has joined #ruby-lang
zz_anildigital is now known as anildigital
Cakey has joined #ruby-lang
sharpmachine has quit [Ping timeout: 244 seconds]
gix has quit [Ping timeout: 250 seconds]
gix has joined #ruby-lang
canton7 has quit [Ping timeout: 256 seconds]
MichD has quit [Ping timeout: 255 seconds]
marcel has quit [Ping timeout: 245 seconds]
lucas has quit [Ping timeout: 245 seconds]
henrikhodne has quit [Ping timeout: 256 seconds]
canton7 has joined #ruby-lang
marcel has joined #ruby-lang
lucas has joined #ruby-lang
EvilJStoker has quit [Ping timeout: 244 seconds]
_dyrim has quit [Ping timeout: 240 seconds]
JoL1hAHN has quit [Ping timeout: 240 seconds]
EvilJStoker has joined #ruby-lang
MichD has joined #ruby-lang
rcvalle has quit [Quit: rcvalle]
saarinen has joined #ruby-lang
agrinb has quit [Remote host closed the connection]
anildigital is now known as zz_anildigital
agrinb has joined #ruby-lang
palar has quit [Remote host closed the connection]
InfraRuby has joined #ruby-lang
james has joined #ruby-lang
james is now known as Guest48338
Guest48338 is now known as jamesfordummies
agrinb has quit [Ping timeout: 240 seconds]
kaiwren has joined #ruby-lang
emmesswhy has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
zz_anildigital is now known as anildigital
frank_o has joined #ruby-lang
JoL1hAHN has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anildigital is now known as zz_anildigital
agrinb has joined #ruby-lang
sent-hil has joined #ruby-lang
_whitelogger_ has joined #ruby-lang
canton7 has joined #ruby-lang
EvilJStoker has joined #ruby-lang
marcel has joined #ruby-lang
MichD has joined #ruby-lang
hgl has quit [Ping timeout: 255 seconds]
mbr__ has joined #ruby-lang
heftig has quit [Ping timeout: 250 seconds]
vintik has joined #ruby-lang
mbr has quit [Ping timeout: 256 seconds]
matti has quit [Ping timeout: 256 seconds]
matti has joined #ruby-lang
jxport_ has quit [Ping timeout: 260 seconds]
heftig has joined #ruby-lang
jxport has joined #ruby-lang
agrinb has quit [Remote host closed the connection]
cmhobbs has joined #ruby-lang
ascarter has joined #ruby-lang
bungoman has joined #ruby-lang
bungoman has quit [Client Quit]
JoL1hAHN has joined #ruby-lang
charliesome has joined #ruby-lang
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby-lang
RobertBirnie has joined #ruby-lang
cmhobbs has quit [Remote host closed the connection]
zz_anildigital is now known as anildigital
_ht has joined #ruby-lang
weems|mac has quit [Quit: weems|mac]
crdpink has left #ruby-lang ["p term"]
<imajes> any ruby peeps still awake? :)
apeiros has quit [Remote host closed the connection]
tkuchiki_ has joined #ruby-lang
apeiros has joined #ruby-lang
anildigital is now known as zz_anildigital
zz_anildigital is now known as anildigital
tkuchiki has quit [Ping timeout: 255 seconds]
apeiros has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #ruby-lang
wallerdev has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kyb3r_ has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
jhass|off has quit [Ping timeout: 250 seconds]
emmesswhy has joined #ruby-lang
anildigital is now known as zz_anildigital
cklee has quit [Quit: Connection closed for inactivity]
sharpmachine has joined #ruby-lang
sepp2k has joined #ruby-lang
amclain has quit [Quit: Leaving]
sharpmachine has quit [Ping timeout: 255 seconds]
zz_anildigital is now known as anildigital
seban has joined #ruby-lang
seban has left #ruby-lang [#ruby-lang]
apeiros has joined #ruby-lang
sebangdpl has joined #ruby-lang
vintik has quit [Remote host closed the connection]
<sebangdpl> Hi, I got a question. How I can override, redefine operator || (double pipe) for instances of String class?
henrikhodne has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
palar has joined #ruby-lang
anildigital is now known as zz_anildigital
mistym_ has joined #ruby-lang
tkuchiki_ has quit [Remote host closed the connection]
<apeiros> sebangdpl: you can't
_dyrim has joined #ruby-lang
<apeiros> || is syntax, not a method
yfeldblum has quit [Ping timeout: 240 seconds]
arBmind has joined #ruby-lang
tkuchiki has joined #ruby-lang
mistym has quit [Ping timeout: 240 seconds]
clauswitt has joined #ruby-lang
clauswitt has quit [Client Quit]
palar has quit [Ping timeout: 255 seconds]
<sebangdpl> apeiros: I can't? Why?
<apeiros> 08:02 apeiros: || is syntax, not a method
AKASkip has joined #ruby-lang
jamesfordummies has quit [Remote host closed the connection]
[spoiler] has joined #ruby-lang
jamesfordummies has joined #ruby-lang
jamesfordummies has quit [Client Quit]
<sebangdpl> apeiros: now I am sad. It is not good message to start a day. But I understand now. Before I thought it is from Kernel module or sth like that.
<sebangdpl> where I can find implementation of ||, does it have official name? :)
<apeiros> probably in parse.y
<apeiros> sebangdpl: why would you want to redefine || anyway?
RobertBirnie has joined #ruby-lang
mbr__ is now known as mbr
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
michaeldeol has joined #ruby-lang
skade has joined #ruby-lang
<sebangdpl> apeiros: I was just curious if it is possible. I saw code like a.present? ? a : b, where a = "" I wonder if it could be handled by || operator instead
maximeshr has joined #ruby-lang
hakunin_ has quit [Read error: Connection reset by peer]
hakunin has joined #ruby-lang
vintik has joined #ruby-lang
brianpWins has joined #ruby-lang
AKASkip has quit [Ping timeout: 264 seconds]
<apeiros> sebangdpl: you can use a.presence || b
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Missphoenix has joined #ruby-lang
tbuehlmann has joined #ruby-lang
Miphix has quit [Ping timeout: 264 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
worm` has joined #ruby-lang
frank_o has quit [Ping timeout: 250 seconds]
<worm`> hello, first time ruby user here... What would be a good resource to get me started? I have a background in java, php and js
frank_o has joined #ruby-lang
relix has joined #ruby-lang
<worm`> I mean something other than the official docs, like a book or somethin
vondruch has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
heftig has quit [Ping timeout: 250 seconds]
sMecKs has quit [Read error: Connection reset by peer]
sent-hil has quit [Quit: Connection closed for inactivity]
vintik has quit [Remote host closed the connection]
solars has joined #ruby-lang
Bwild has quit [Ping timeout: 245 seconds]
AKASkip has joined #ruby-lang
Bwild has joined #ruby-lang
|jemc| has quit [Ping timeout: 260 seconds]
clauswitt has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bougyman has quit [Read error: Connection reset by peer]
marcel has quit [Ping timeout: 260 seconds]
lucas has quit [Ping timeout: 260 seconds]
<maloik> worm`: there's tons of places, I don't know the best way though
vondruch has quit [Ping timeout: 260 seconds]
<maloik> there's codecademy, treehouse, tutorial sites like that
lucas has joined #ruby-lang
frank_o has quit [Ping timeout: 245 seconds]
<maloik> thoughtbot has (had?) a resource called Paths or something like that too
mistym_ has quit [Remote host closed the connection]
ta has joined #ruby-lang
yfeldblum has joined #ruby-lang
<maloik> trails! that's what it was called
vondruch has joined #ruby-lang
MichD has quit [Quit: Bai!]
MichD has joined #ruby-lang
marcel_ has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
bougyman has joined #ruby-lang
bougyman has quit [Changing host]
bougyman has joined #ruby-lang
marcel_ is now known as marcel
bffff_ has joined #ruby-lang
mikecmpbll has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brianpWins has quit [Ping timeout: 250 seconds]
dangerousdave has joined #ruby-lang
palar has joined #ruby-lang
ari-_-e has joined #ruby-lang
michaeldeol has joined #ruby-lang
sharpmachine has joined #ruby-lang
clauswit_ has joined #ruby-lang
palar has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
michaeldeol has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby-lang
chouhoul_ has joined #ruby-lang
sharpmachine has quit [Ping timeout: 255 seconds]
clauswitt has quit [Ping timeout: 250 seconds]
alexju_ has joined #ruby-lang
goatish_mound has joined #ruby-lang
skade has joined #ruby-lang
chouhoulis has quit [Read error: Connection reset by peer]
sepp2k has quit [Ping timeout: 264 seconds]
sepp2k1 has joined #ruby-lang
brixen has quit [Ping timeout: 264 seconds]
clauswit_ has quit [Ping timeout: 264 seconds]
rsl has quit [Ping timeout: 264 seconds]
tbuehlmann has quit [Ping timeout: 264 seconds]
vondruch has quit [Ping timeout: 255 seconds]
alexju has quit [Ping timeout: 265 seconds]
qba73 has joined #ruby-lang
clauswitt has joined #ruby-lang
brixen has joined #ruby-lang
mikecmpbll has joined #ruby-lang
tbuehlmann has joined #ruby-lang
banister has joined #ruby-lang
jhass|off has joined #ruby-lang
jhass|off is now known as jhass
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
elia has joined #ruby-lang
ironhide_604 has joined #ruby-lang
ur5us has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
alexju_ has quit [Remote host closed the connection]
_elia has joined #ruby-lang
elia has quit [Ping timeout: 244 seconds]
stardiviner has joined #ruby-lang
vondruch has joined #ruby-lang
Atttwwww has joined #ruby-lang
taiansu has joined #ruby-lang
Atttwww has quit [Ping timeout: 255 seconds]
dangerou_ has joined #ruby-lang
<yorickpeterse> morning
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
ssam2 has joined #ruby-lang
dangerou_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us_ has joined #ruby-lang
dangerou_ has joined #ruby-lang
marr has joined #ruby-lang
sepp2k has joined #ruby-lang
sepp2k1 has quit [Ping timeout: 264 seconds]
perry has quit [Ping timeout: 264 seconds]
ur5us has quit [Ping timeout: 264 seconds]
Kuukunen has quit [Ping timeout: 264 seconds]
aarellano has quit [Ping timeout: 264 seconds]
zenspider has quit [Ping timeout: 264 seconds]
thoolihan has quit [Ping timeout: 264 seconds]
stardiviner has quit [Ping timeout: 266 seconds]
jxie has quit [Ping timeout: 266 seconds]
existensil has quit [Ping timeout: 266 seconds]
Guest84431 has quit [Ping timeout: 266 seconds]
headius has quit [Ping timeout: 266 seconds]
neurodamage has quit [Ping timeout: 266 seconds]
Muz has quit [Ping timeout: 266 seconds]
dabradley has quit [Ping timeout: 266 seconds]
Abuh has quit [Ping timeout: 266 seconds]
zenspider has joined #ruby-lang
aarellano has joined #ruby-lang
`micro has joined #ruby-lang
neurodamage has joined #ruby-lang
Muz has joined #ruby-lang
jxie has joined #ruby-lang
existensil has joined #ruby-lang
`micro is now known as Guest23152
dabradley has joined #ruby-lang
Kuukunen has joined #ruby-lang
perry has joined #ruby-lang
Abuh has joined #ruby-lang
headius has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stardiviner has joined #ruby-lang
stardiviner has quit [Changing host]
stardiviner has joined #ruby-lang
InfraRuby has left #ruby-lang [#ruby-lang]
hgl has joined #ruby-lang
thoolihan has joined #ruby-lang
vondruch has quit [Ping timeout: 260 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
banister has joined #ruby-lang
dangerou_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arBmind has joined #ruby-lang
benlovell has joined #ruby-lang
workmad3 has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
Cakey has quit [Ping timeout: 255 seconds]
palar has joined #ruby-lang
benlovel1 has joined #ruby-lang
benlovell has quit [Ping timeout: 260 seconds]
palar has quit [Ping timeout: 260 seconds]
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 250 seconds]
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby-lang
taiansu has quit [Remote host closed the connection]
marr has quit [Ping timeout: 240 seconds]
MichD is now known as MichD
taiansu has joined #ruby-lang
vintik has joined #ruby-lang
cbreeze has joined #ruby-lang
vintik has quit [Remote host closed the connection]
sharpmachine has joined #ruby-lang
kyb3r_ has joined #ruby-lang
sharpmachine has quit [Ping timeout: 244 seconds]
palar has joined #ruby-lang
benlovel1 is now known as benlovell
hgl has quit [Quit: Computer has gone to sleep.]
hgl has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby-lang
ljarvis has quit [Ping timeout: 255 seconds]
hgl has quit [Ping timeout: 245 seconds]
skade has quit [Client Quit]
Missphoenix has quit [Quit: Leaving]
marr has joined #ruby-lang
<ddv> worm`: write stuff, do it often
<ddv> you can learn ruby in a day
<workmad3> ddv: for certain values of 'learn' ;)
<ddv> well the syntax, not the whole std lib, that can take years
<workmad3> ddv: heh :) I still find some bits of syntax that are new at times
<workmad3> ddv: or some edge-case weirdness
<workmad3> ddv: but I guess you're meaning 'enough syntax to be useful in the majority of cases'
dangerou_ has joined #ruby-lang
<ddv> of course
<workmad3> ddv: hence my 'for some values of learn' ;)
<ddv> unless you're a genius like me
kek has joined #ruby-lang
<workmad3> :P
* workmad3 goes back to configuring deployments
<ddv> Ok mr. Workman
<ddv> :P
<workmad3> *Mr.
<ddv> :)
taiansu has quit [Remote host closed the connection]
ruby-lang787 has joined #ruby-lang
s1kx has quit [Read error: Connection reset by peer]
stamina has joined #ruby-lang
s1kx has joined #ruby-lang
<ruby-lang787> i have an xml from http://msdn.microsoft.com/en-us/library/ms762271(v=vs.85).aspx and i am parsing the xml with http://pastebin.com/rrEe0A8q .if i replace elements["title"] with elements["//title"] then i have only the first title. Why is that, whatis the difference? does // indicate an XPath and so it shows only the first mmatch??
toretore has joined #ruby-lang
<ddv> ruby-lang787: use nokogiri or something happymapper-nokogiri
<ddv> +like
hgl has joined #ruby-lang
kyb3r_ has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
<ruby-lang787> what advantages to i have in nokogiri?
<ddv> ruby-lang787: happymapper-nokigir makes it more readable
<ruby-lang787> ok.. can i sort books by genre .
sebangdpl has quit [Quit: Page closed]
<ruby-lang787> or i am just over-fantasizing
<ddv> why not? sort_by works fine
<ruby-lang787> thats cool
<ruby-lang787> i will try it..
s1kx has quit [Read error: Connection reset by peer]
s1kx has joined #ruby-lang
<ruby-lang787> how can i signup herre?
<ruby-lang787> how can i signup here?
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has joined #ruby-lang
<jhass> ruby-lang787: here?
<jhass> you mean freenode?
bin7me has joined #ruby-lang
fullybaked has joined #ruby-lang
InfraRuby has joined #ruby-lang
InfraRuby has left #ruby-lang [#ruby-lang]
heavyhorse has joined #ruby-lang
dangerou_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hgl has quit [Remote host closed the connection]
hgl has joined #ruby-lang
taiansu has joined #ruby-lang
dangerou_ has joined #ruby-lang
kek has quit [Remote host closed the connection]
hgl_ has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
yatish27 has joined #ruby-lang
symm- has joined #ruby-lang
hgl has quit [Ping timeout: 240 seconds]
heavyhorse has quit [Quit: Computer has gone to sleep]
tkuchiki has quit [Ping timeout: 260 seconds]
heavyhorse has joined #ruby-lang
tkuchiki_ has quit [Ping timeout: 240 seconds]
heavyhorse has quit [Read error: Connection reset by peer]
heavyhorse has joined #ruby-lang
heavyhorse has quit [Client Quit]
heavyhorse has joined #ruby-lang
heavyhorse has quit [Read error: Connection reset by peer]
dangerou_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
heavyhorse has joined #ruby-lang
yatish27 has quit [Ping timeout: 240 seconds]
ur5us_ has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
_elia has quit [Quit: Computer has gone to sleep.]
kek has joined #ruby-lang
taiansu has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 260 seconds]
sarkyniin has joined #ruby-lang
tkuchiki has joined #ruby-lang
taiansu has joined #ruby-lang
heavyhorse has quit [Quit: Computer has gone to sleep]
heavyhorse has joined #ruby-lang
<ruby-lang787> <ddv> i cannot find the significance of using // in selecting xml parsing ..
thang has quit [Ping timeout: 240 seconds]
thang has joined #ruby-lang
heavyhorse has quit [Ping timeout: 260 seconds]
<ruby-lang787> thanks :)
palar has quit [Remote host closed the connection]
bffff_ has quit [Quit: Connection closed for inactivity]
stardiviner has joined #ruby-lang
bin7me has quit [Read error: Connection reset by peer]
<ruby-lang787> o , so //title returned the only one node that was a direct descendant of book!! yaay!!
<jhass> //title would return all title nodes anywhere below the node you call .at/.xpath on
<jhass> if you only want book titles //book/title would be safer
<yorickpeterse> jhass: neg, //title returns *all* title nodes *anywhere*
<yorickpeterse> Not just from the current context node
<matti> Ohai yorickpeterse
<yorickpeterse> matti: hai
<jhass> oh, // really evades current context too? hm
<ruby-lang787> :O but wait, then i my program , in ruby, i get the same title text if i use //, i either put simply title or .//title
<ruby-lang787> *in not i
clauswitt has joined #ruby-lang
<ruby-lang787> is it because i am doing it the DOM tree way and not the SAX way or like XPath.each way??
<ruby-lang787> such a mess, i am :
sharpmachine has joined #ruby-lang
<jhass> I don't know, I'd simply do something like xml.xpath('//book').map {|book| book.at('title').text }
<jhass> oh, you're using rexml?
<ruby-lang787> for now jhass, i will switch to nokogiri, but i only have an hour left
benlovell has quit [Ping timeout: 240 seconds]
<ruby-lang787> rexml' documentation is blurry
<jhass> so your code should work already, doesn't it?
sharpmachine has quit [Ping timeout: 256 seconds]
<ruby-lang787> yes it does, but i cannot understand why using elements['title'] works but elements["//title"] return the first title everytime
<jhass> because // evades context, as yorickpeterse said
<jhass> it start's searching at the document root again
<jhass> and since [] only returns the first result
<jhass> you only get the first title
Sgeo has quit [Read error: Connection reset by peer]
<ruby-lang787> i see.
dangerou_ has joined #ruby-lang
taiansu has quit [Remote host closed the connection]
elia has joined #ruby-lang
taiansu has joined #ruby-lang
<ruby-lang787> i now need to find a way to sort the results, if i do a sort! on elements.to_a() then it throws an error, so i guess i would need something like <=> , i read it this morning, although i am not sure
taiansu has quit [Remote host closed the connection]
<jhass> sort by what?
taiansu has joined #ruby-lang
<ruby-lang787> first character of the title text
<jhass> I'd do xml.elements.to_enum(:each, "//book").sort_by {|book| book.elements["title"].text[0] }.map {|book| "#{book.elements["title"].text} - by #{book.elements["author"].text}" } or something
<ruby-lang787> wow, although i don't understand .. to_enum i undrstand, what is that :each
miqui has quit [Remote host closed the connection]
<ruby-lang787> i mean is there a documentation where i can have the necessary knowledge to understand it
<jhass> it creates a Enumerator for the each method. The additional arguments ("//books" in this case) is passed to each
benlovell has joined #ruby-lang
amystephen has joined #ruby-lang
<jhass> since REXMLs each is incapable of not receiving a block I used that trick
palar has joined #ruby-lang
<ruby-lang787> sounds cool, i am yet to discover it..
<jhass> oh well, looks like you can also write xml.get_elements("//book").sort_by...
dangerousdave has quit []
<ruby-lang787> where did you look?
Forgetful_Lion has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
<stardiviner> How to define a singleton class?
<darix> stardiviner: why do you need one?
<jhass> ruby-lang787: just toyed around with pry
<stardiviner> darix: I found Ruby has singleton methods, I want to know about singleton class.
<ruby-lang787> you need something like a static variable boolean, after you create an object set its value to false, so that next time you want to instantaniate an object, you check if its value is true then instantaniate else don't
<jhass> stardiviner: you can't, ruby automatically creates them on access. You can get an objects singleton class with obj.singleton_class
<ruby-lang787> o
<darix> stardiviner: did you google for it? the answer is like in top 2 results
<darix> jhass: there is the singleton module ... which might be what he is after?
taiansu has quit [Remote host closed the connection]
alexju has joined #ruby-lang
<stardiviner> darix: there is singleton module ? never heard, what is that?
<jhass> okay, maybe we should find out if he's talking about the singleton pattern or the ruby detail
<jhass> "singleton method" kinda implied the later to me
<stardiviner> jhass: I just want to learn more metaprogramming about ruby
<jhass> so not the design pattern?
<jhass> good, as said .singleton_class gives you an objects singleton class
Maitiu has joined #ruby-lang
<jhass> you can get into a class definition for a singleton class with class << obj; end
<stardiviner> jhass: I see. what about singleton module?
<jhass> stardiviner: the singleton stdlib provides the Singleton module which you can mix into your class to implement the Singleton design pattern which has nothing to do with an objects singleton class which is also sometimes called metaclass or eigenclass
dwknoxy has joined #ruby-lang
<stardiviner> jhass: Oh, that's the singleton module (Singleton), I thought that it is something like singleton class. I checked on Singleton when learning singleton methods.
shinnya has joined #ruby-lang
vondruch has joined #ruby-lang
<[spoiler]> jhass, always found the word "eigenclass" weird lol
<jhass> well, for a german it kinda makes sense ;P
<jhass> I try to only use singleton class, since that's how core calls it now
elia has quit [Quit: Computer has gone to sleep.]
<stardiviner> singleton class is good.
<stardiviner> eigenclass make newbie don't know what it is.
imperator has joined #ruby-lang
<imperator> good morning
DivineEntity has quit [Quit: leaving]
yatish27 has quit []
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
igalic has quit [Remote host closed the connection]
benlovell has quit [Quit: leaving]
heavyhorse has joined #ruby-lang
<imperator> what's a good, automated way for users to be notified of a new release of a particular gem?
<imperator> rss subscription via rubygems.org?
<whitequark> gemnasium.com ? rubygems.org rss?
<imperator> ok, thanks
toertore has joined #ruby-lang
elia has joined #ruby-lang
toretore has quit [Ping timeout: 260 seconds]
_elia has joined #ruby-lang
taiansu has joined #ruby-lang
Miphix has joined #ruby-lang
elia has quit [Ping timeout: 255 seconds]
magikfx has joined #ruby-lang
karamazov has joined #ruby-lang
dangerou_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Ping timeout: 250 seconds]
<ruby-lang787> .text[0] is not possible i think, gives an error that not method is defined
source47 has joined #ruby-lang
<source47> hi. i was wondering if this would work in a .yml file? license_key: "<%=ENV['NEWRELIC_API_KEY']%>"
<yorickpeterse> source47: not unless you also parse the ERB in the YAMLfile
<yorickpeterse> * YAML file
<jhass> ruby-lang787: do I need to make a screenshot of my terminal showing it working? :P
taiansu has quit [Ping timeout: 264 seconds]
<darix> jhass: gist is a good enough screenshot for this ;)
<darix> source47: you can set that field in the hash after you loaded the config
chouhoul_ has quit [Remote host closed the connection]
<ruby-lang787> no, i am saying, i must be doing wrong..
vondruch has joined #ruby-lang
<darix> ruby-lang787: does it say .text[0] is not defined on nil?
jgpawletko has joined #ruby-lang
<darix> ruby-lang787: then title was not set
cbreeze has quit [Quit: Textual IRC Client: www.textualapp.com]
<ruby-lang787> what is meant by not-set, if u are implying that <title> attribute isn't there, then no, its not that case.
<jhass> ruby-lang787: you're iterating number of book's times over all elements
<jhass> I already gave you working code...
<ruby-lang787> yes. i mean i am thinking like this, for each book element , get the title and the author element
<jhass> xml.elements.each("//book") this line doesn't change xml or xml.elements
<jhass> it's still the same inside the block
<jhass> so calling it again will give you all elements, not just books
<jhass> which you then sort
<jhass> and some of these elements don't have a child element title
<jhass> so you get nil
<jhass> and I still don't get why you think you need to modify working code...
torrieri_ has quit [Quit: Leaving...]
<ruby-lang787> so |book| book == xml.elements?
<jhass> what? no
<ruby-lang787> ino , "{}" this part i didnot understand
<ruby-lang787> *no not ino
<ruby-lang787> sorry ignore the last messages
<jhass> xml.get_elements("//book").sort_by {|book| book.elements["title"].text[0] }.map {|book| "#{book.elements["title"].text} - by #{book.elements["author"].text}" } will return you an array of the strings you want in the order you want
<jhass> {|foo| } is the same as do |foo| end
<ruby-lang787> i undersatnd that , but "it's still the same inside the block" i don't get
<ruby-lang787> no ok i get it
<ruby-lang787> xml is same inside and outside the block
fullybaked has quit []
alexju has quit [Remote host closed the connection]
miqui has joined #ruby-lang
<ruby-lang787> oh now i understand
<ruby-lang787> so sort first returns an array which is mapped to another array, with that text bookname by- author . so i store it in an array , and do a simple .each
malconis has joined #ruby-lang
InfraRuby has joined #ruby-lang
<jhass> for example, you can save the map if all you do with it is an each in the method
dangerou_ has joined #ruby-lang
<ruby-lang787> yes i did that. :)
<ruby-lang787> thanks for bearing up with me, i am slow at understanding things..
<ruby-lang787> bye
kaiwren has quit [Quit: kaiwren]
taiansu has joined #ruby-lang
Guest23152 is now known as `micro
fullybaked has joined #ruby-lang
ruby-lang787 has quit [Ping timeout: 246 seconds]
diegoviola has joined #ruby-lang
hellangel7 has joined #ruby-lang
InfraRuby has left #ruby-lang [#ruby-lang]
frank_o has joined #ruby-lang
torrieri has joined #ruby-lang
ta has quit [Remote host closed the connection]
torrieri has quit [Read error: Connection reset by peer]
torrieri_ has joined #ruby-lang
benlovell has joined #ruby-lang
qba73 has quit []
hellangel7 has quit [Remote host closed the connection]
taiansu has quit [Ping timeout: 245 seconds]
hellangel7 has joined #ruby-lang
[spoiler] has quit [Quit: Leaving]
spastorino has joined #ruby-lang
hellangel7 has quit [Remote host closed the connection]
dangerou_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby-lang
momomomomo has joined #ruby-lang
thomasxie has joined #ruby-lang
dangerousdave has quit [Client Quit]
thomasxie has quit [Remote host closed the connection]
dangerousdave has joined #ruby-lang
charliesome has joined #ruby-lang
shinnya has quit [Ping timeout: 272 seconds]
loincloth has joined #ruby-lang
sharpmachine has joined #ruby-lang
chouhoulis has joined #ruby-lang
maximeshr has quit [Quit: Lost terminal]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sharpmachine has quit [Ping timeout: 240 seconds]
jds has joined #ruby-lang
ledestin_ has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
frank_o has quit [Ping timeout: 272 seconds]
btiefert has quit [Read error: Connection reset by peer]
ledestin has quit [Ping timeout: 250 seconds]
ledestin_ is now known as ledestin
taiansu has joined #ruby-lang
agrinb has joined #ruby-lang
imperator has quit [Quit: Valete!]
ldnunes has joined #ruby-lang
nathanstitt has joined #ruby-lang
yatish27 has joined #ruby-lang
momomomomo has quit [Ping timeout: 250 seconds]
InfraRuby has joined #ruby-lang
dangerousdave has joined #ruby-lang
taiansu has quit [Ping timeout: 272 seconds]
jsaak has joined #ruby-lang
ohsix has quit [Read error: Connection reset by peer]
taiansu has joined #ruby-lang
diegoviola has quit [Read error: Connection reset by peer]
diegovio1 has joined #ruby-lang
james has joined #ruby-lang
james is now known as jamesfordummies
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegovio1 is now known as diegoviola
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
cmhobbs has joined #ruby-lang
davispuh has joined #ruby-lang
toertore has quit [Quit: Leaving]
toretore has joined #ruby-lang
alexju has joined #ruby-lang
dangerousdave has quit [Ping timeout: 255 seconds]
goatish_mound is now known as rsl
djdeaf has joined #ruby-lang
source47 has quit [Ping timeout: 246 seconds]
<djdeaf> Hi Buddies, Any good source for implementing Youtube APIs using Ruby Code? I've looked over the google documentation but still having difficulties with getting started.
fullybaked has quit []
<djdeaf> 10x! looking into it
<djdeaf> It is way more complexed than I had in mind. I'm looking for the basics of getting started with the API. For example - how to access Youtube API and get a list of all popular videos. simople
<jamesfordummies> so you just want the youtube API docs?
mistym has joined #ruby-lang
<djdeaf> No, I went over them. But I cant seem to understand how to start working with it
<djdeaf> I wanna build a ruby (not rails) program that access Youtube with my DeveloperKey and use the API
<jamesfordummies> djdeaf: what didnt you understand?
<djdeaf> The initial configuration.
<djdeaf> I'm talking about the basics and every example I see has too much complications
<jamesfordummies> the configuration will probably necessary no matter what
<djdeaf> Configuratin => how to set up the call for the api
karamazov has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
<jamesfordummies> what do you mean by set up the call? the auth setup?
sharpmachine has joined #ruby-lang
taiansu has quit [Remote host closed the connection]
gpg_ has joined #ruby-lang
<gpg_> 1+1==2 ? puts "true": puts "false"
<gpg_> whats wrong with this
mistym has quit [Remote host closed the connection]
RobertBirnie has joined #ruby-lang
agrinb has quit [Remote host closed the connection]
<gpg_> hello
<canton7> it's not normally what you use a ternary operator for, but it should work
danijoo has quit [Read error: Connection reset by peer]
<jhass> I guess "true : puts "false" is parsed as an argument to puts
<canton7> you'd normally return a value from it, and puts the value - i.e. puts 1 + 1 == 2 ? "true" : "false"
<canton7> yeah, looks like it is
danijoo has joined #ruby-lang
<canton7> 1 + 1 == 2 ? (puts "true") : (puts "false")
<canton7> or 1 + 1 == 2 ? puts("true") : puts("false")
<canton7> but like I say - the better way is to return the string from the ternary, then puts it
<yorickpeterse> >> 1 + 1 == 2 ? puts 'true' : puts 'false'
<eval-in> yorickpeterse => /tmp/execpad-6d4c78d37684/source-6d4c78d37684:2: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' ... (https://eval.in/176195)
pixelhandler has joined #ruby-lang
<yorickpeterse> >> (1 + 1 == 2) ? puts 'true' : puts 'false'
<eval-in> yorickpeterse => /tmp/execpad-8f85b269ab16/source-8f85b269ab16:2: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' ... (https://eval.in/176196)
<yorickpeterse> oh
<yorickpeterse> derp
<serhart> puts 1+1 == 2 ? 'true' : 'false'
<serhart> is probably the more "proper" way
<yorickpeterse> >> 1 + 1 == 2 ? puts('true') : puts('false')
<eval-in> yorickpeterse => true ... (https://eval.in/176197)
<yorickpeterse> gpg_: ^
<gpg_> thanks guys
<yorickpeterse> if you leave out the parens Ruby parses it as following (most likely):
agrinb has joined #ruby-lang
<yorickpeterse> 1 + 1 == 2 ? (puts 'true' : puts 'false') where (...) is one expression
<yorickpeterse> so basically like
<yorickpeterse> >> puts 'true' : puts 'false'
<eval-in> yorickpeterse => /tmp/execpad-34cf9c17e232/source-34cf9c17e232:2: syntax error, unexpected ':', expecting keyword_end ... (https://eval.in/176198)
<yorickpeterse> which is invalid
<yorickpeterse> either way, you need the parenthesis :P
<gpg_> thanks man
<gpg_> :)
taiansu has joined #ruby-lang
JohnFord has joined #ruby-lang
jxpx777 has joined #ruby-lang
|jemc| has joined #ruby-lang
AKASkip has quit [Ping timeout: 256 seconds]
djdeaf has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<PaulePanter> Hi. I was looking for the documentation for the read method for a StringIO. http://www.ruby-doc.org/stdlib-1.9.3/libdoc/stringio/rdoc/StringIO.html#method-i-read
<PaulePanter> But from there I did only find <http://www.ruby-doc.org/stdlib-1.9.3/libdoc/stringio/rdoc/IO.html>.
<PaulePanter> Ruby 2.1.2 has it documented http://www.ruby-doc.org/core-2.1.2/IO.html .
sharpmachine has quit [Remote host closed the connection]
anjen has joined #ruby-lang
solars has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
vladgh has joined #ruby-lang
vladgh has quit [Client Quit]
<anjen> Hi all, I'm trying to debug a lib function that works with directory entries (ie, /lib/somename.rb), on my eww!Windows development system and have not figured out how to access the RAILS_ENV so I can easily switch between behavior for the local windows box and that of the linux server. Right now, I have to comment out "local" lines when deploying to staging, then once back swap the commenting from the local to linux-oriente
<anjen> d lines. Anyone have a simple solution (aside from "dump windows")?
<anjen> oops, sorry for long winded post
jamesfordummies has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby-lang
alexju has quit [Remote host closed the connection]
agrinb_ has joined #ruby-lang
qba73 has joined #ruby-lang
agrinb has quit [Ping timeout: 245 seconds]
skade has quit [Quit: Computer has gone to sleep.]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vondruch has quit [Ping timeout: 272 seconds]
<anjen> Oh well, thanks anyway.
anjen has quit [Quit: anjen]
vladgh has joined #ruby-lang
lcdhoffman has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rippa has joined #ruby-lang
vladgh has quit [Remote host closed the connection]
vladgh has joined #ruby-lang
vladgh has quit [Client Quit]
alexju has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
Miphix has quit [Quit: Leaving]
agrinb_ has quit [Remote host closed the connection]
emmesswhy has joined #ruby-lang
<gpg_> JSON.parse({"President": "Alan Isaac"})
<gpg_> i thought this is suppose t oreturn a hash?
<gpg_> thanks
vladgh has joined #ruby-lang
<gpg_> >> JSON.parse({"President": "Alan Isaac"})
<eval-in> gpg_ => /tmp/execpad-6da14e2446ef/source-6da14e2446ef:2: syntax error, unexpected ':', expecting => ... (https://eval.in/176218)
<gpg_> ?
<tbuehlmann> use a string as argument
vintik has joined #ruby-lang
clauswitt has joined #ruby-lang
hgl_ has quit [Quit: Computer has gone to sleep.]
<benlovell> >> JSON.parse("{\"President\": \"Alan Isaac\"}")
<eval-in> benlovell => uninitialized constant JSON (NameError) ... (https://eval.in/176219)
hgl_ has joined #ruby-lang
<benlovell> >> require "json"; JSON.parse("{\"President\": \"Alan Isaac\"}")
<eval-in> benlovell => {"President"=>"Alan Isaac"} (https://eval.in/176220)
agrinb has joined #ruby-lang
<gpg_> thanks
stamina has quit [Quit: WeeChat 0.4.3]
<gpg_> can i do this without escaping characters with backslash
<gpg_> ???
<|jemc|> surround the string with single quotes so that you won't have to escape double quotes
<apeiros> or use %{}
agrinb has quit [Read error: Connection reset by peer]
hgl_ has quit [Ping timeout: 256 seconds]
agrinb has joined #ruby-lang
<apeiros> >> require "json"; JSON.parse(%{{"President": "Alan Isaac"}})
<eval-in> apeiros => {"President"=>"Alan Isaac"} (https://eval.in/176222)
mykoweb has joined #ruby-lang
<gpg_> thanks guys
havenwood has joined #ruby-lang
agrinb has quit [Read error: Connection reset by peer]
james has joined #ruby-lang
agrinb has joined #ruby-lang
james is now known as Guest55167
InfraRuby has left #ruby-lang [#ruby-lang]
taiansu has quit [Remote host closed the connection]
<gpg_> convert 172 to bytes ?
qba73 has quit []
djdeaf has joined #ruby-lang
<apeiros> gpg_: too little specification
<apeiros> you can convert 172 to bytes in 1001 different ways.
<apeiros> (also, technically, 172 already *is* bytes)
<apeiros> (but I'll assume you mean a String in binary encoding)
<gpg_> ok
symm- has quit [Ping timeout: 250 seconds]
heavyhorse has quit [Ping timeout: 244 seconds]
agrinb has quit [Remote host closed the connection]
seamon has joined #ruby-lang
agrinb has joined #ruby-lang
<apeiros> gpg_: look into Array#pack, specifically into the formats using C, n and N
* apeiros off for commute
duper` has joined #ruby-lang
duper has quit [Ping timeout: 256 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
toastynerd has joined #ruby-lang
agrinb has quit [Ping timeout: 250 seconds]
michaeldeol has joined #ruby-lang
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ironhide_604 has quit [Ping timeout: 250 seconds]
apeiros has quit [Ping timeout: 240 seconds]
mistym has quit [Remote host closed the connection]
vintik has quit [Remote host closed the connection]
leandrosnunes has joined #ruby-lang
Guest55167 is now known as jamesfordummies
kek_ has joined #ruby-lang
sharpmachine has joined #ruby-lang
RobertBirnie has joined #ruby-lang
kek has quit [Ping timeout: 250 seconds]
closer has quit [Ping timeout: 272 seconds]
agrinb has joined #ruby-lang
kek_ has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agrinb has left #ruby-lang [#ruby-lang]
closer has joined #ruby-lang
sarkyniin has quit [Quit: Quitte]
hlowe has quit [Ping timeout: 255 seconds]
zz_anildigital is now known as anildigital
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
saarinen has joined #ruby-lang
banister has joined #ruby-lang
mistym has joined #ruby-lang
taiansu has joined #ruby-lang
vvikus has joined #ruby-lang
wallerdev has joined #ruby-lang
apeiros has joined #ruby-lang
amsi has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 260 seconds]
vvikus has quit [Client Quit]
matp has quit [Remote host closed the connection]
rsl has quit [Read error: Connection reset by peer]
benlovell has quit [Ping timeout: 250 seconds]
rsl has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
InfraRuby has joined #ruby-lang
mbj has joined #ruby-lang
seamon has quit [Quit: Zzzzzzz]
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
Macacity has joined #ruby-lang
mbj has quit [Client Quit]
seamon has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
yatish27 has quit [Ping timeout: 250 seconds]
seamon has quit [Client Quit]
seamon has joined #ruby-lang
mykoweb has quit [Ping timeout: 240 seconds]
seamon has quit [Client Quit]
saarinen has quit [Quit: saarinen]
ascarter has joined #ruby-lang
<gpg_> def multi_search(options={}, &block) does it mean first parameter must be a hash?
vintik has joined #ruby-lang
mikecmpbll has joined #ruby-lang
adphillips has joined #ruby-lang
AKASkip has joined #ruby-lang
JohnFord has joined #ruby-lang
symm- has joined #ruby-lang
seamon has joined #ruby-lang
seamon has quit [Client Quit]
seamon has joined #ruby-lang
maximeshr has joined #ruby-lang
wallerdev has joined #ruby-lang
seamon has quit [Client Quit]
vintik has quit [Remote host closed the connection]
<apeiros> gpg_: it means the first parameter will default to an empty hash
<apeiros> gpg_: but most likely it expects indeed a hash if you pass one
seamon has joined #ruby-lang
<gpg_> if you pass one
<gpg_> ok thanks
<apeiros> one -> an argument
lcdhoffman has quit [Quit: lcdhoffman]
seamon has quit [Client Quit]
<gpg_> yep got it man appreciate ur help
<apeiros> solved your integer -> bytes problem?
seamon has joined #ruby-lang
hellangel7 has joined #ruby-lang
charliesome has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 250 seconds]
adphillips has quit []
frank_o has joined #ruby-lang
seamon has quit [Quit: Bye]
seamon has joined #ruby-lang
djdeaf has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
wallerdev_ has joined #ruby-lang
wallerdev has quit [Ping timeout: 260 seconds]
wallerdev_ is now known as wallerdev
johnpclaus has joined #ruby-lang
dangerousdave has joined #ruby-lang
wallerdev has quit [Ping timeout: 244 seconds]
taiansu has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
Hinkdogg has joined #ruby-lang
<Hinkdogg> Hello World
Benstr has joined #ruby-lang
<Benstr> Hello Hinkdodo
Benstr has left #ruby-lang [#ruby-lang]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hinkdogg has quit [Client Quit]
Hinkdogg has joined #ruby-lang
workmad3 has quit [Ping timeout: 272 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
taiansu has joined #ruby-lang
seamon has quit [Quit: Zzzzzzz]
Hinkdogg has quit [Ping timeout: 255 seconds]
seamon has joined #ruby-lang
ssam2 has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
taiansu has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
closer has quit [Ping timeout: 252 seconds]
gpg_ has quit [Ping timeout: 246 seconds]
InfraRuby has left #ruby-lang [#ruby-lang]
closer has joined #ruby-lang
jamesfordummies has quit [Remote host closed the connection]
bunk__ has joined #ruby-lang
bunk__ has left #ruby-lang [#ruby-lang]
taiansu has joined #ruby-lang
luiz_lha has quit [Ping timeout: 250 seconds]
relix has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
banister has quit [Read error: Connection reset by peer]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
Mon_Ouie has joined #ruby-lang
banister has joined #ruby-lang
amerine has quit [Read error: Connection reset by peer]
amerine_ has joined #ruby-lang
InfraRuby has joined #ruby-lang
frank_o has left #ruby-lang [#ruby-lang]
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
michaeldeol has quit [Read error: Connection reset by peer]
_elia has quit [Quit: Computer has gone to sleep.]
michaeldeol has joined #ruby-lang
ascarter has quit [Ping timeout: 244 seconds]
davispuh has quit [Remote host closed the connection]
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
djbkd has joined #ruby-lang
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
mykoweb has joined #ruby-lang
esad has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
dangerousdave has joined #ruby-lang
vintik has joined #ruby-lang
jamesfordummies has joined #ruby-lang
ta has joined #ruby-lang
<dangerousdave> in sinatra you can have the following directly within a class "foo {}" what is this construct called please?
<darix> dangerousdave: depends on the context
<darix> (e.g. what foo is)
<dangerousdave> darix, i am sitting at my desk
alexju has quit [Ping timeout: 240 seconds]
<darix> good for you. better than sitting on it.
cschneid has quit [Ping timeout: 240 seconds]
<yorickpeterse> Not sure if that was the best joke of the year or serious
<dangerousdave> darix :-)
<yorickpeterse> also I'm so putting that on Twitter
<dangerousdave> yorickpeterse, then i'll take it as a complement!
CaptainJet has joined #ruby-lang
cschneid has joined #ruby-lang
<darix> you refer to the class eval stuff right?
<darix> that is a block that gets passed to class eval
seamon has quit [Quit: Zzzzzzz]
<yorickpeterse> dangerousdave: that's Sinatra specific
<yorickpeterse> Sinatra allows you to register hooks using before/after/etc
<yorickpeterse> so before { ... } registers a hook (the block that you pass it) to be execute before every reqyest
<yorickpeterse> * request
<dangerousdave> yorickpeterse, but it has to be valid ruby...
alexju has joined #ruby-lang
<darix> dangerousdave: it is a block :)
<yorickpeterse> dangerousdave: it is syntax wise
<yorickpeterse> and execution wise too because Sinatra defines those methods
<dangerousdave> yorickpeterse, so its essentially a rails before filter? and could also be written "before do ... end"
<dangerousdave> darix, thanks
<yorickpeterse> dangerousdave: yes
<dangerousdave> yorickpeterse, many thanks
davispuh has joined #ruby-lang
davispuh has quit [Remote host closed the connection]
davispuh has joined #ruby-lang
jbardin has joined #ruby-lang
davispuh has quit [Remote host closed the connection]
alexju has quit [Ping timeout: 255 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
InfraRuby has left #ruby-lang [#ruby-lang]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
benlovell has joined #ruby-lang
benlovell has quit [Client Quit]
mykoweb has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 0.4.3]
mykoweb has joined #ruby-lang
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brianpWins has joined #ruby-lang
sharpmachine has quit [Remote host closed the connection]
mykoweb has quit [Ping timeout: 240 seconds]
elia has joined #ruby-lang
elia has quit [Client Quit]
palar_ has joined #ruby-lang
vladgh has quit [Remote host closed the connection]
omosoj has joined #ruby-lang
vladgh has joined #ruby-lang
djbkd has joined #ruby-lang
palar has quit [Ping timeout: 250 seconds]
JohnFord has joined #ruby-lang
palar_ has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
esad has quit [Quit: Textual IRC Client: www.textualapp.com]
marr has quit [Ping timeout: 272 seconds]
Olipro has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 264 seconds]
_lexjm has joined #ruby-lang
alexju has joined #ruby-lang
djdeaf has joined #ruby-lang
djdeaf_ has joined #ruby-lang
djdeaf_ has left #ruby-lang [#ruby-lang]
vintik has quit [Remote host closed the connection]
djdeaf has quit [Client Quit]
djdeaf_ has joined #ruby-lang
djdeaf_ has left #ruby-lang [#ruby-lang]
djdeaf has joined #ruby-lang
dorei has joined #ruby-lang
lcdhoffman has joined #ruby-lang
yfeldblum has joined #ruby-lang
alexju has quit [Ping timeout: 245 seconds]
ti-wali has joined #ruby-lang
karamazov has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
djdeaf has quit [Quit: djdeaf]
karamazov has quit [Remote host closed the connection]
eeezkil has joined #ruby-lang
karamazov has joined #ruby-lang
seamon has joined #ruby-lang
pixelhandler has quit [Quit: pixelhandler]
pixelhandler has joined #ruby-lang
momomomomo has joined #ruby-lang
toastynerd has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sharpmachine has joined #ruby-lang
solars has joined #ruby-lang
AKASkip has quit [Read error: Connection reset by peer]
chouhoul_ has joined #ruby-lang
AKASkip has joined #ruby-lang
chouhoulis has quit [Ping timeout: 255 seconds]
davispuh has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
InfraRuby has joined #ruby-lang
NemesisD has joined #ruby-lang
<NemesisD> hard to google question. why is this a thing? ?" #=> "\""
arBmind1 has quit [Quit: Leaving.]
<jhass> 18>> ?"
<eval-in> jhass => 34 (https://eval.in/176261)
saarinen has joined #ruby-lang
mikecmpbll has quit [Quit: ciao.]
<jhass> it's a char literal. Heard it was useful once
waxjar has joined #ruby-lang
<jhass> 18>> "foo"[0]
<eval-in> jhass => 102 (https://eval.in/176262)
<jhass> for stuff like that
sharpmachine has quit [Remote host closed the connection]
<NemesisD> ah ok
<jhass> nowadays just ignore it
<NemesisD> a misquoted string actually caused a date to be ignored
tbuehlmann has quit [Remote host closed the connection]
<yxhuvud> it was the way to do it before 1.9 came around and changed string indexing.
<NemesisD> where("created on" > ?", 1.month.ago), queried for where(true, 1.month.ago), which was ignored
<jhass> lol
alexju has joined #ruby-lang
magikfx has quit [Quit: Computer has gone to sleep.]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
wallerdev has joined #ruby-lang
seamon has quit [Quit: Zzzzzzz]
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vintik has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
djbkd has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
michaeldeol has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
vintik has quit [Ping timeout: 240 seconds]
karamazov has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
alexju has quit [Ping timeout: 244 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
yfeldblum has quit [Ping timeout: 240 seconds]
taiansu has quit [Quit: Leaving...]
anildigital is now known as zz_anildigital
alexju has joined #ruby-lang
mykoweb has joined #ruby-lang
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
davispuh has quit [Ping timeout: 245 seconds]
lcdhoffman has joined #ruby-lang
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
mistym has quit [Remote host closed the connection]
ascarter has joined #ruby-lang
alexju_ has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
alexju has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby-lang
vintik has joined #ruby-lang
sharpmachine has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
lcdhoffman has joined #ruby-lang
alexju_ has quit [Read error: Connection reset by peer]
alexju has joined #ruby-lang
jamesfordummies has quit [Remote host closed the connection]
eeezkil has quit [Read error: No route to host]
jbardin has quit [Quit: jbardin]
ta_ has joined #ruby-lang
alexju has quit [Ping timeout: 264 seconds]
alexju has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
ta has quit [Ping timeout: 240 seconds]
CaptainJet has quit [Ping timeout: 240 seconds]
lcdhoffman has joined #ruby-lang
alexju_ has joined #ruby-lang
vintik has quit [Remote host closed the connection]
RobertBirnie has quit [Ping timeout: 240 seconds]
lcdhoffman has quit [Client Quit]
mistym has joined #ruby-lang
alexju has quit [Ping timeout: 245 seconds]
CaptainJet has joined #ruby-lang
seamon has joined #ruby-lang
_ht has quit [Read error: Connection reset by peer]
face has joined #ruby-lang
vintik has joined #ruby-lang
djdeaf has joined #ruby-lang
faces has quit [Ping timeout: 255 seconds]
RobertBirnie has joined #ruby-lang
workmad3 has joined #ruby-lang
hellangel7 has quit [Remote host closed the connection]
dangerousdave has joined #ruby-lang
symm- has quit [Ping timeout: 245 seconds]
symm- has joined #ruby-lang
centrx has joined #ruby-lang
momomomomo has joined #ruby-lang
MichD is now known as michd
djdeaf has quit [Quit: djdeaf]
sepp2k has quit [Read error: Connection reset by peer]
omosoj has quit [Ping timeout: 264 seconds]
jbardin has joined #ruby-lang
toastyne_ has joined #ruby-lang
maximeshr has quit [Ping timeout: 260 seconds]
chouhoul_ has quit [Remote host closed the connection]
frank_o has joined #ruby-lang
chouhoulis has joined #ruby-lang
toastynerd has quit [Ping timeout: 244 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<frank_o> Hello! I'm trying to parse this API using Hashie so I can do `hash.deep_fetch :product_image, :url` instead of `hash['productImage']['url']` -- https://gist.github.com/frankie-loves-jesus/11058955 -- but why am I getting `Could not fetch path (product_image > url) at product_image`?
DEac- has quit [Read error: Connection reset by peer]
DEac- has joined #ruby-lang
<centrx> frank_o, What does the hash actually look like?
<centrx> frank_o, If it is from this JSON, the JSON keys are in camelCase, while your fetches are in snake_case
dangerousdave has joined #ruby-lang
<frank_o> centrx: I thought the < Hashie::Trash would convert it though?
mikecmpbll has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
<centrx> frank_o, I gather Hashie::Trash is supposed to be inherited by the object in question itself
<centrx> frank_o, Also, for some reason your error message says "hash", but your code has "mash"
<centrx> frank_o, In any event, they are freshly created from:
<centrx> hashes = JSON.parse(response)
<centrx> mashes = Hashie::Mash.new(hashes)
dangerousdave has quit [Client Quit]
ti-wali has quit [Remote host closed the connection]
<frank_o> centrx: That error message might have been from before I renamed hash to mash
lcdhoffman has joined #ruby-lang
<frank_o> Sorry about that
miqui has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 264 seconds]
<frank_o> centrx: So something like `product = Product.new < Hashie::Trash`?
<centrx> frank_o, Probably yes
<centrx> Maybe <<
<centrx> or extend/include
omosoj has joined #ruby-lang
<frank_o> sounds good one sec
<frank_o> centrx: undefined method `<<' for #<Product:0x0000000227ce58> sadly
<frank_o> centrx: heres the live app: http://runnable.com/U9_l2G_kVhMa95cK/td
symm- has joined #ruby-lang
<frank_o> centrx: when I had < Hashie::Trash on the class, ` product.name = mash.deep_fetch :name` did seem to work though
ur5us has joined #ruby-lang
<centrx> frank_o, The Hashie examples for Trash seem to require a "property" declaration in the class
banister has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
<zenspider> rubygems-sandbox version 1.3.0 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2014/08/rubygems-sandbox-version-1-3-0-has-been-released.html
banister has joined #ruby-lang
<centrx> frank_o, Look at the documentation for Trash on the Hashie README, it says the translation name has to be defined in the property declartion
<frank_o> centrx: i see..
chrisseaton has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
workmad3 has quit [Ping timeout: 260 seconds]
<centrx> frank_o, I think you can set that as a custom reader in Hashie
symm- has quit [Read error: Connection reset by peer]
<centrx> frank_o, So if you are using ActiveSupport/Rails, it's just str.underscore
<frank_o> centrx: previously I was using https://github.com/tcocca/rash to automatically translate firstName to first_name, maybe i should go back to that
<frank_o> some dude however said i should look into trash instead, but if that means i actually have to include all those camel cased names in my model, id rather not
<frank_o> hold up lemme see
alexju_ has quit [Remote host closed the connection]
__butch__ has joined #ruby-lang
<frank_o> centrx: custom reader in Hashie? how so?
snsei has joined #ruby-lang
<centrx> frank_o, I don't know, I just found it in the docs somewhere
vintik has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
vintik has joined #ruby-lang
<frank_o> hmm
snsei has quit [Remote host closed the connection]
devgiant has joined #ruby-lang
<frank_o> centrx: maybe `property :id, transform_with: lambda { |v| v.underscore }` will suffice?
<frank_o> wait nevermind seems too much to have to include all those properties when i can just use tcocca's rash
<centrx> yeah I don't think it's designed for that. Maybe there is an easy way to do it with Hashie, but I don't know it
<frank_o> (which is different from the rash in hashie btw)
<frank_o> cool
mistym has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
leandrosnunes has quit [Quit: WeeChat 0.4.3]
snsei has joined #ruby-lang
banister_ has joined #ruby-lang
banister_ has quit [Max SendQ exceeded]
banister_ has joined #ruby-lang
ascarter has quit [Ping timeout: 264 seconds]
banister_ has quit [Max SendQ exceeded]
amsi has quit [Ping timeout: 260 seconds]
amsi has joined #ruby-lang
banister_ has joined #ruby-lang
banister_ has quit [Max SendQ exceeded]
sarpanch has joined #ruby-lang
banister has quit [Ping timeout: 255 seconds]
banister_ has joined #ruby-lang
banister_ has quit [Max SendQ exceeded]
seamon has quit [Quit: Zzzzzzz]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
<frank_o> centrx: after adding back tcocca's rash, DeepFetch seems to have stopped working: https://gist.github.com/frankie-loves-jesus/11058955
snsei has quit [Remote host closed the connection]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
<centrx> I don't konw
<centrx> Maybe they don't play well together
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
saarinen has quit [Quit: saarinen]
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> banister: fix your client
<frank_o> centrx: maybe
lcdhoffman has quit [Quit: lcdhoffman]
hrs has joined #ruby-lang
snsei has joined #ruby-lang
snsei has quit [Remote host closed the connection]
snsei has joined #ruby-lang
x0f has quit [Ping timeout: 250 seconds]
loincloth has quit [Remote host closed the connection]
x0f has joined #ruby-lang
snsei has quit [Ping timeout: 240 seconds]
vintik has quit [Remote host closed the connection]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cmhobbs has quit [Remote host closed the connection]
pixelhandler has quit [Quit: pixelhandler]
vintik has joined #ruby-lang
ohsix has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DivineEntity has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
omosoj has quit [Quit: Leaving]
apeiros has joined #ruby-lang
johnpclaus has quit []
hplar has quit [Ping timeout: 272 seconds]
AKASkip has quit [Ping timeout: 255 seconds]
jgpawletko has quit [Quit: jgpawletko]
djbkd has quit [Remote host closed the connection]
mistym_ has joined #ruby-lang
cklee has joined #ruby-lang
djbkd has joined #ruby-lang
hrs has quit [Quit: Textual IRC Client: www.textualapp.com]
mistym has quit [Ping timeout: 272 seconds]
banister has quit [Ping timeout: 240 seconds]
nathanstitt has quit [Quit: I growing sleepy]
centrx has quit [Quit: Mead error: Connection reset by beer]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
heftig has joined #ruby-lang
davispuh has joined #ruby-lang
emmesswhy has joined #ruby-lang
mistym_ is now known as mistym
solars has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby-lang
elia has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
RobertBirnie has quit [Ping timeout: 256 seconds]
sMecKs has joined #ruby-lang
Hinkdogg has joined #ruby-lang
jamesfor_ has joined #ruby-lang
jamesfor_ has quit [Remote host closed the connection]
RobertBirnie has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
davispuh has quit [Ping timeout: 245 seconds]
hplar has joined #ruby-lang
NemesisD has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
mykoweb has quit [Ping timeout: 240 seconds]
Sgeo has joined #ruby-lang
MikaAK has joined #ruby-lang
MikaAK has quit [Remote host closed the connection]
gnufied has quit [Ping timeout: 250 seconds]
Caius has quit [Ping timeout: 244 seconds]
GarethAdams has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
gnufied has joined #ruby-lang
Caius has joined #ruby-lang
GarethAdams has joined #ruby-lang
arBmind1 has joined #ruby-lang
<jbardin> heya all, what is the current school of though around RUBY_HEAP_MIN_SLOTS, RUBY_HEAP_SLOTS_INCREMENT, RUBY_HEAP_SLOTS_GROWTH_FACTOR, RUBY_GC_MALLOC_LIMIT settings… do they apply at all to mri-ruby-1.9.3?
Mon_Ouie has quit [Ping timeout: 250 seconds]
arBmind has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
jamesfordummies has joined #ruby-lang
danijoo has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamesfor_ has joined #ruby-lang
torrieri_ has quit [Quit: Leaving...]
jamesfordummies has quit [Ping timeout: 272 seconds]
toastyne_ has quit [Remote host closed the connection]
ter_464 has joined #ruby-lang
toastynerd has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
dorei has quit []
devgiant has quit [Quit: Leaving]
toastynerd has joined #ruby-lang
ssimpkin has joined #ruby-lang
heavyhorse has joined #ruby-lang
|jemc| has quit [Ping timeout: 250 seconds]
toastynerd has quit [Ping timeout: 240 seconds]
lcdhoffman has joined #ruby-lang
toastynerd has joined #ruby-lang
<Hinkdogg> Hello everybody, I am new to coding and I am wondering if anybody has a few minutes helping me solve some code
toastynerd has quit [Remote host closed the connection]
jhass is now known as jhass|off
<zenspider> Hinkdogg: just ask
mikecmpbll has quit [Quit: ciao.]
<Hinkdogg> I have an array of about 25 names and I need to break this array up into groups of 4
chichou has joined #ruby-lang
<jbardin> Enumerable#partition?
toastynerd has joined #ruby-lang
<Hinkdogg> I am trying to use array.each_slice(4).to_a but that is about as far as I got
<jbardin> sorry, each_slice is what you want
InfraRuby has left #ruby-lang [#ruby-lang]
<Hinkdogg> do I have to define something first?
mikecmpbll has joined #ruby-lang
<zenspider> you haven't said what the problem is
<zenspider> >> (1..8).each_slice(4).to_a
<zenspider> => [[1, 2, 3, 4], [5, 6, 7, 8]]
<eval-in> zenspider => [[1, 2, 3, 4], [5, 6, 7, 8]] (https://eval.in/176320)
<jbardin> yea… you can all_names.each_slice(4).each { |group_of_four| … }
<zenspider> forgot about him
<jbardin> => "no way"
<zenspider> Hinkdogg: ... what's the problem?
<Hinkdogg> ok so I was thinking that I need to do something like this array = [ alll the names in her]
<Hinkdogg> and then call it later like array.each_slice(4).to_a
<Hinkdogg> I am having trouble just getting the basic setup right
<zenspider> Hinkdogg: yes. trouble. which you're having a REALLY hard time describing to us
<zenspider> if you did, we could help
<zenspider> until then? not so much.
InfraRuby has joined #ruby-lang
<Hinkdogg> Yeah sorry this is my first time using this
snsei has joined #ruby-lang
<zenspider> it isn't a matter of using. it's a matter of communication
matp has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
matp has quit [Remote host closed the connection]
matp has joined #ruby-lang
corecode_ has joined #ruby-lang
<corecode_> hi
snsei has quit [Remote host closed the connection]
<Hinkdogg> hi
jamesfor_ has quit [Remote host closed the connection]
<corecode_> any suggestion how to do a non-blocking IOish read, without all that errno handling?
snsei has joined #ruby-lang
<corecode_> unfortunately StringIO does not have ready?
<corecode_> #ready?
<ohsix> hehhhhhhhhh
centrx has joined #ruby-lang
InfraRuby has left #ruby-lang [#ruby-lang]
<zenspider> non-blocking StringIO?
<corecode_> zenspider: well, IOish; i want to test with StringIO, instead of a serial port
snsei has quit [Read error: Connection reset by peer]
snsei has joined #ruby-lang
|jemc| has joined #ruby-lang
<corecode_> if !@f.respond_to? :ready? || @f.ready? || blocking