apeiros changed the topic of #ruby to: Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
nikeita has quit [Quit: sleep]
PSKOSINSKI has quit [Ping timeout: 240 seconds]
wmoxam has joined #ruby
queston has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
reset has joined #ruby
bklane has joined #ruby
nbouscal has joined #ruby
zastern_ has quit [Remote host closed the connection]
fomatin has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
bionoid has joined #ruby
heftig has quit [Quit: Quitting]
Es0teric has joined #ruby
Es0teric has quit [Client Quit]
heftig has joined #ruby
Inside has quit [Ping timeout: 246 seconds]
arya_ has quit [Ping timeout: 248 seconds]
fridim__ has joined #ruby
nomenkun has joined #ruby
arya_ has joined #ruby
nomenkun has quit [Ping timeout: 268 seconds]
Emmanuel_Chanel has quit [Ping timeout: 256 seconds]
bradhe has quit [Remote host closed the connection]
swordsmanz has quit [Quit: swordsmanz]
bradhe has joined #ruby
lutfidemirci has joined #ruby
pootler_ has quit [Quit: leaving]
pootler has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
generalissimo has joined #ruby
<popl> was it weird for anyone here that < is for subclassing in ruby?
devoldmx has joined #ruby
<dominikh> why?
GeissT has joined #ruby
zigomir_ has quit [Ping timeout: 276 seconds]
banjara has quit [Quit: Leaving.]
Emmanuel_Chanel has joined #ruby
<popl> Are you asking why I am asking?
generalissimo has quit [Remote host closed the connection]
<dominikh> yeah
havenwood has joined #ruby
<dominikh> or why you'd think it would be weird for anyone
<popl> I'm just wondering if I'm all alone.
<dominikh> why is it weird to you?
<havenwood> what would be weird, i'm curious?
bradhe has quit [Ping timeout: 256 seconds]
<dominikh> havenwood: popl │ was it weird for anyone here that < is for subclassing in ruby?
marr has quit [Ping timeout: 268 seconds]
<popl> Well, not weird in the sense that "someone picked that, how peculiar" because someone implementing a language could pick like § for the purpose (for all I care -- it's arbitrary)
<pontiki_> popl: i guess you have your answer
<popl> I guess I do pontiki_
<dominikh> < is an arrow
<popl> < is less than
vlad_starkov has quit [Ping timeout: 240 seconds]
Kruppe has joined #ruby
<dominikh> http://publib.boulder.ibm.com/infocenter/rsahelp/v7r0m0/index.jsp?topic=/com.ibm.xtools.viz.j2se.doc/topics/crealization.html
<dominikh> okay, wrong direction :>
<pontiki_> and << is a lot less than
<dominikh> nevertheless an arrow :P
jmimi1 has joined #ruby
wmoxam has quit [Ping timeout: 252 seconds]
brianherman has joined #ruby
<popl> dominikh: In what context?
jmimi has quit [Ping timeout: 256 seconds]
fenicks has quit [Remote host closed the connection]
sarkis has quit [Ping timeout: 260 seconds]
<pontiki_> < and > are used to imply directionality in a few different contexts
<popl> oh I guess I see your point
Kabaka has quit [Ping timeout: 240 seconds]
<pontiki_> there's the standard *nix suck and spew as well
DrCode has quit [Ping timeout: 240 seconds]
<popl> I guess < is very left-to-right-language-centric
ElderFain has joined #ruby
<popl> I got 15/280 for rubykoans so far
<pontiki_> i have no experience with rtl languages; you could very well be correct
arubin has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Kabaka has joined #ruby
<popl> well there's also >
<popl> so there's that
havenwood has quit [Ping timeout: 260 seconds]
<popl> but I mean conceptually, that one side is open and tapers down towards the other side
Lewis has quit [Remote host closed the connection]
<popl> but considering that so many people call / backslash, I don't know if it really means anything or I am just pontificating.
<pontiki_> really?
<dominikh> I have never seen anyone sane call / backslash.
<popl> sane
<popl> haha
scrollback has quit [Remote host closed the connection]
<pontiki_> i would believe they're doing the thing that happens with "their/there/they're" more than not
scrollback has joined #ruby
<popl> pontiki_: I used to work at a few different places doing technical support and experienced it more than once.
<pontiki_> interesting
FatalPriapism has quit []
blackmesa has quit [Quit: WeeChat 0.4.1]
<popl> I also heard it more than once in various recorded messages (once for a community college).
<cout> haha
DrCode has joined #ruby
<cout> so confused
<cout> I thought you meant "call/backslash" (as if backslash is a verb)
<cout> and that "sane call/backslash" was something different
zacts has quit [Ping timeout: 260 seconds]
<dominikh> heh, no.
momomomomo has joined #ruby
devoldmx3 has joined #ruby
ElderFain has quit [Ping timeout: 260 seconds]
Kruppe has quit [Remote host closed the connection]
ElderFain has joined #ruby
reset has quit [Quit: Leaving...]
robscomputer has joined #ruby
JimmyNeutron has joined #ruby
nomenkun has joined #ruby
JimmyNeutron has quit [Client Quit]
devoldmx has quit [Ping timeout: 246 seconds]
robscomputer_ has quit [Ping timeout: 276 seconds]
bradhe has joined #ruby
kayloos has quit [Remote host closed the connection]
sgkim126l has quit [Ping timeout: 240 seconds]
bionoid has quit [Remote host closed the connection]
x1337807x has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
nomenkun has quit [Ping timeout: 268 seconds]
chris_rb_ has quit [Quit: Ex-Chat]
cj3kim has joined #ruby
DonRichie has quit [Ping timeout: 246 seconds]
DonRichie has joined #ruby
dankest has quit [Quit: Leaving...]
x1337807x has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
kayloos has joined #ruby
sgkim126l has joined #ruby
_bart has quit [Remote host closed the connection]
pkrnj has joined #ruby
epochwolf has quit [Max SendQ exceeded]
bradhe has quit [Remote host closed the connection]
brotatos has quit [Quit: WeeChat 0.4.1]
epochwolf has joined #ruby
epochwolf has quit [Excess Flood]
kofno has joined #ruby
Kruppe has joined #ruby
epochwolf has joined #ruby
superscott[8] has quit [Quit: superscott[8]]
jonathanwallace has joined #ruby
robscomputer has quit [Remote host closed the connection]
robscomputer has joined #ruby
RORgasm has joined #ruby
Mattix has joined #ruby
wargasm1 has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
robscomputer has quit [Ping timeout: 260 seconds]
travisjeffery has joined #ruby
RORgasm has quit [Ping timeout: 256 seconds]
hydrozen has joined #ruby
wargasm has quit [Ping timeout: 268 seconds]
nomenkun has joined #ruby
Hanmac1 has joined #ruby
bigkm has joined #ruby
keanehsiao has joined #ruby
tylersmith has joined #ruby
blitz has quit [Quit: This computer has gone to sleep]
Hanmac has quit [Ping timeout: 276 seconds]
jimg has joined #ruby
haxrbyte has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 256 seconds]
haxrbyte has joined #ruby
sailias has joined #ruby
jduan1981 has quit [Ping timeout: 252 seconds]
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bricker is now known as bricker`away
diegoviola has quit [Ping timeout: 260 seconds]
tylersmith has quit [Ping timeout: 256 seconds]
kayloos has quit [Remote host closed the connection]
jim_ has joined #ruby
Solnse has quit [Quit: Leaving.]
philcrissman_ has quit [Read error: Connection reset by peer]
philcrissman_ has joined #ruby
keanehsiao has quit [Quit: Linkinus - http://linkinus.com]
DanKnox is now known as DanKnox_away
jim_ has quit [Remote host closed the connection]
jimg_ has joined #ruby
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
bklane_ has joined #ruby
jimg_ has quit [Remote host closed the connection]
dmiller has joined #ruby
kofno has quit [Remote host closed the connection]
jimg_ has joined #ruby
jimg has quit [Remote host closed the connection]
jimg_ has quit [Remote host closed the connection]
jimg has joined #ruby
`p has quit [Remote host closed the connection]
bklane has quit [Ping timeout: 276 seconds]
jimg_ has joined #ruby
jimg has quit [Remote host closed the connection]
jimg_ has quit [Remote host closed the connection]
jimg has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
kofno has joined #ruby
paissad has quit [Quit: This computer has gone to sleep]
tjbiddle has quit [Quit: tjbiddle]
jimg is now known as foo__
foo__ is now known as jimg_
paissad has joined #ruby
jimg_ is now known as jimg__
reindeerflotilla has quit [Quit: reindeerflotilla]
jimg__ is now known as jimg
reindeerflotilla has joined #ruby
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
jimg_ has joined #ruby
nomenkun has joined #ruby
jorge_ has joined #ruby
slash_nick is now known as slash_quit
nomenkun has quit [Ping timeout: 246 seconds]
jorge_ has quit [Ping timeout: 252 seconds]
huoxito has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
emmanuelux has quit [Remote host closed the connection]
`p has joined #ruby
echevemaster has quit [Ping timeout: 240 seconds]
pierre1 has joined #ruby
bulldawg has joined #ruby
pierre1 has quit [Max SendQ exceeded]
bklane_ has quit [Remote host closed the connection]
pierre1 has joined #ruby
ffranz has quit [Quit: Leaving]
dhruvasagar has joined #ruby
<bigmac> i foreget how to load ruby 1.9.2 . . . can i add something to irbrc to conferm what version to load at start?
vlad_sta_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
pierre1 has quit [Quit: Leaving]
pierre1 has joined #ruby
danslo has quit [Quit: danslo]
jimg_ has quit [Remote host closed the connection]
zastern has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
hydrozen has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
jimg_ has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
Davey has joined #ruby
mercwithamouth has quit [Read error: Operation timed out]
zastern has quit [Ping timeout: 268 seconds]
forced_request has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
arya_ has joined #ruby
mansi has joined #ruby
sambao21 has quit [Ping timeout: 268 seconds]
hydrozen has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
nomenkun has quit [Ping timeout: 246 seconds]
fridim__ has quit [Ping timeout: 256 seconds]
DanKnox_away is now known as DanKnox
wargasm has joined #ruby
banjara has joined #ruby
wargasm1 has quit [Ping timeout: 246 seconds]
banjara has quit [Client Quit]
gildo has joined #ruby
bulldawg_ has joined #ruby
bulldawg has quit [Ping timeout: 256 seconds]
marcgg has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
jimg has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
zastern has joined #ruby
marcgg has quit [Read error: No route to host]
bulldawg has joined #ruby
marcgg has joined #ruby
mary5030 has quit [Remote host closed the connection]
bulldawg_ has quit [Read error: Connection reset by peer]
pierre1 has quit [Ping timeout: 268 seconds]
bulldawg has quit [Client Quit]
Es0teric has joined #ruby
momomomomo has quit [Quit: momomomomo]
reset has joined #ruby
Columcil1e has joined #ruby
jimg_ has quit [Remote host closed the connection]
Columcille has quit [Ping timeout: 245 seconds]
splittingred has joined #ruby
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
DanKnox is now known as DanKnox_away
jorge has joined #ruby
nomenkun has joined #ruby
emptymag00 has quit [Ping timeout: 252 seconds]
thecommongeek has joined #ruby
epochwolf has quit [Max SendQ exceeded]
epochwolf has joined #ruby
epochwolf has quit [Excess Flood]
subbyyy has joined #ruby
epochwolf has joined #ruby
epochwolf has quit [Excess Flood]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
epochwolf has joined #ruby
splittingred has quit [Quit: splittingred]
epochwolf has quit [Excess Flood]
radic__ has quit [Read error: Operation timed out]
jorge has quit [Ping timeout: 256 seconds]
epochwolf has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
dgibson has joined #ruby
dgibson has quit [Client Quit]
emergion has joined #ruby
Vert has quit [Read error: Connection reset by peer]
Inside has joined #ruby
takezawa has joined #ruby
Astralum has joined #ruby
io_syl has joined #ruby
Astral_ has quit [Ping timeout: 264 seconds]
emptymag00 has joined #ruby
mahmoudimus has joined #ruby
jimg has joined #ruby
x1337807x has joined #ruby
RORgasm has joined #ruby
zastern_ has joined #ruby
Spooner_ has quit [Remote host closed the connection]
radic__ has joined #ruby
thecommongeek has quit [Quit: Leaving]
jbueza has quit [Quit: Leaving.]
zastern has quit [Ping timeout: 268 seconds]
pootler has quit [Quit: leaving]
RORgasm has quit [Ping timeout: 276 seconds]
pierre1 has joined #ruby
jimg has quit [Ping timeout: 246 seconds]
byprdct has joined #ruby
nbouscal has joined #ruby
reset has quit [Ping timeout: 276 seconds]
Dekade has quit [Quit: quit]
nomenkun has joined #ruby
Deele has quit [Ping timeout: 240 seconds]
Inside has quit [Ping timeout: 248 seconds]
nomenkun has quit [Ping timeout: 240 seconds]
zastern_ has quit []
zastern has joined #ruby
Guga_ has quit [Quit: ~]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rrva has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<rrva> Why does this yield "invalid byte sequence in UTF-8": total_lines = open(file_name).read.count("\n")
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
ivanoats_ has quit [Remote host closed the connection]
bionoid has joined #ruby
bionoid has quit [Remote host closed the connection]
banghouse has quit [Remote host closed the connection]
Guest45402 has joined #ruby
akashj87_ has joined #ruby
Guest45402 is now known as diegoviola
alx- has quit [Quit: alx-]
moos3 has joined #ruby
Astral_ has joined #ruby
charliesome has joined #ruby
bionoid has joined #ruby
Astralum has quit [Ping timeout: 264 seconds]
diegoviola has quit [Quit: WeeChat 0.4.1]
jimg has joined #ruby
heftig_ has joined #ruby
brianherman has quit [Quit: Leaving]
agjacome has quit [Quit: leaving]
heftig has quit [Ping timeout: 246 seconds]
jimg has quit [Ping timeout: 260 seconds]
dodosan has quit [Remote host closed the connection]
asteve has joined #ruby
sailias has quit [Read error: Operation timed out]
gildo has quit [Ping timeout: 260 seconds]
bionoid has quit [Remote host closed the connection]
jorge has joined #ruby
bubblehe_ has quit [Remote host closed the connection]
zeade has quit [Quit: Leaving.]
akashj87_ has quit [Ping timeout: 248 seconds]
nomenkun has joined #ruby
rsahae_ has joined #ruby
jorge has quit [Ping timeout: 256 seconds]
arya_ has quit [Ping timeout: 248 seconds]
sambao21 has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
fredjean has joined #ruby
banghouse has joined #ruby
NsOmNiAc has quit [Ping timeout: 240 seconds]
banghouse has quit [Remote host closed the connection]
NsOmNiAc has joined #ruby
zets2 is now known as zets
rsahae_ has quit [Quit: rsahae_]
bradhe has joined #ruby
arya_ has joined #ruby
lutfidemirci has quit [Remote host closed the connection]
lutfidemirci has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
lutfidemirci has quit [Read error: Connection reset by peer]
rsahae has joined #ruby
rsahae has quit [Client Quit]
browndawg has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
KhalilC has quit [Ping timeout: 246 seconds]
cofin has joined #ruby
rsahae_ has joined #ruby
fomatin has quit [Ping timeout: 260 seconds]
brianpWins has joined #ruby
milardovich has quit [Quit: Leaving]
huttan has quit [Ping timeout: 256 seconds]
eldariof has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
yacks has quit [Quit: Leaving]
nomenkun has joined #ruby
patronus has quit [Quit: leaving]
brianpWins has quit [Quit: brianpWins]
patronus has joined #ruby
bigkm has quit [Quit: Computer has gone to sleep.]
nomenkun has quit [Ping timeout: 246 seconds]
Kruppe has quit [Remote host closed the connection]
querymyquery has joined #ruby
querymyquery has left #ruby [#ruby]
jefflyne has joined #ruby
slyv has quit [Quit: Computer has gone to sleep.]
tomsthumb has joined #ruby
ivanoats_ has joined #ruby
brianpWins has joined #ruby
lindenle has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
Sambalero has quit [Remote host closed the connection]
rsahae_ has quit [Quit: rsahae_]
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
ivanoats_ has quit [Ping timeout: 252 seconds]
dawkirst has quit [Read error: Connection timed out]
reindeerflotilla has quit [Quit: reindeerflotilla]
sayan has joined #ruby
patronus has quit [Quit: Lost terminal]
ananthakumaran has joined #ruby
rsahae has joined #ruby
browndawg has quit [Quit: Leaving.]
nomenkun has joined #ruby
pothibo has quit [Quit: pothibo]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
nomenkun has quit [Ping timeout: 248 seconds]
hogeo has joined #ruby
subbyyy has quit [Ping timeout: 276 seconds]
icecandy has joined #ruby
browndawg has joined #ruby
dodosan has joined #ruby
lindenle has quit [Quit: This computer has gone to sleep]
cj3kim has quit [Remote host closed the connection]
pierre1_ has joined #ruby
pkill has joined #ruby
pierre1_ has quit [Client Quit]
Patchou has joined #ruby
ivanoats_ has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
RORgasm has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sprite-- has joined #ruby
brianpWins has quit [Quit: brianpWins]
<sprite--> Can someone please explain this to me? https://gist.github.com/anonymous/5889895
Tamae has quit [Ping timeout: 248 seconds]
sayan has quit [Ping timeout: 246 seconds]
<popl> Which part is unclear?
cj3kim has joined #ruby
<sprite--> popl: Why is my 2D array not containing the values 1..9?
jimg has joined #ruby
<pontiki_> you keep reassigning the value
RORgasm has quit [Ping timeout: 260 seconds]
ivanoats_ has quit [Ping timeout: 268 seconds]
mahmoudimus has joined #ruby
jimg has quit [Ping timeout: 246 seconds]
paissad has quit [Quit: This computer has gone to sleep]
gwillickers has joined #ruby
<sprite--> Ahh got it. When creating a I did Array.new(3, Array.new(3)) when I needed to do Array.new(3) { Array.new(3) }
mikepack has joined #ruby
<popl> you did Array.new(1..9)
<popl> er, Array(1..9)
<sprite--> popl: No for the variable 'a' that I was sitting. Array(1..9) was just for creating numbers to iterate over.
patronus has joined #ruby
<popl> I see.
mikepack has quit [Remote host closed the connection]
<popl> Well not really.
<sprite--> popl: https://gist.github.com/anonymous/5889928 working and non working....
mikepack has joined #ruby
<popl> so you asked us what behavior was happening without giving us all your code. what a prince. :P
<popl> "Here's a jigsaw puzzle with a couple pieces missing."
cj3kim has quit [Remote host closed the connection]
nomenkun has joined #ruby
<sprite--> popl: Yeah sorry I'm tired and fucked up creating the array, and thought the error was somewhere else. Anyways all good now :)
v0n has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
Shirakawasuna has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
sguselnikov has joined #ruby
sguselnikov has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
arietis has joined #ruby
marcgg has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
marcgg has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
wargasm has quit [Read error: Connection reset by peer]
pkill has quit [Quit: leaving]
krisfremen has quit [Ping timeout: 256 seconds]
mars__ has joined #ruby
tomzx_mac has quit [Ping timeout: 268 seconds]
badquanta has quit [Quit: Leaving]
kraljev1 has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
mansi has quit [Ping timeout: 246 seconds]
phrozensilver has joined #ruby
<phrozensilver> #rubyonrails
mansi has joined #ruby
arya_ has joined #ruby
jorge has joined #ruby
krisfremen has joined #ruby
krisfremen has joined #ruby
krisfremen has quit [Changing host]
rsahae has quit [Quit: rsahae]
mansi has quit [Ping timeout: 240 seconds]
yashshah has joined #ruby
jorge has quit [Ping timeout: 248 seconds]
BizarreCake has joined #ruby
nomenkun has joined #ruby
akashj87 has joined #ruby
kevinykchan has joined #ruby
takezawa has quit [Remote host closed the connection]
cofin has quit [Quit: cofin]
huoxito has quit [Quit: Leaving]
_Andres has joined #ruby
krisfremen has quit [Read error: Connection reset by peer]
krisfremen has joined #ruby
krisfremen has joined #ruby
krisfremen has quit [Changing host]
Zolo has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
Lewis has joined #ruby
<Lewis> hi
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
fixl has joined #ruby
cofin has joined #ruby
nomenkun has joined #ruby
yashshah has quit [Ping timeout: 276 seconds]
yashshah has joined #ruby
fgo has joined #ruby
byprdct has joined #ruby
gianlucadv has quit [Ping timeout: 260 seconds]
yashshah_ has joined #ruby
yashshah has quit [Client Quit]
sayan has joined #ruby
jimg has joined #ruby
wallerdev has quit [Quit: wallerdev]
Cyrus has joined #ruby
rsahae has joined #ruby
cj3kim has joined #ruby
jimg has quit [Ping timeout: 268 seconds]
fridim__ has joined #ruby
octaurine is now known as octarine
Mars___ has quit [Ping timeout: 252 seconds]
ivanoats_ has joined #ruby
<popl> what is operator<< called
<popl> ?
Mars` has quit [Ping timeout: 246 seconds]
ehaliewicz has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<r0bgleeson> popl: it can be a bit operator but it is a method in ruby, so the behavior depends on the receiver.
<popl> >> h = Hash.new([])[:one] << "blah"
<eval-in> popl => ["blah"] (https://eval.in/35610)
<popl> Ok r0bgleeson
<popl> why didn't I think of that
<popl> ?
<popl> Goddamnit. I hang out too much online with people who do not use punctuation. :P
<r0bgleeson> well, i dont know why you didnt think of it
sayan has quit [Ping timeout: 268 seconds]
<popl> r0bgleeson: why not?!
<popl> gosh
<r0bgleeson> because i dont have magic powers
macmartine has joined #ruby
<popl> r0bgleeson: bummer!
<r0bgleeson> i know
<r0bgleeson> sometimes i want to jump on my broomstick and fly into the night
<popl> Do you have a black pointy hat?
<popl> You need black pointy hat
<popl> .
<r0bgleeson> the magic is in the broomstick, i believe
<popl> Wait, which model are you working from?
<r0bgleeson> the model in my subconcious
<popl> According to the film Warlock in order to fly you need to drink the boiled fat of a virgin.
ivanoats_ has quit [Ping timeout: 264 seconds]
<r0bgleeson> well, thats for warlocks
<popl> He also flew without a broomstick. Good point.
<Hanmac1> popl: your line does not work as you excepted
Hanmac1 is now known as Hanmac
Lewis has quit [Read error: Connection reset by peer]
<r0bgleeson> thats an assumption =)
<popl> Hanmac: I did not expect it to work in any particular fashion.
Lewis has joined #ruby
<popl> I am working my way through ruby koans and << threw me
<r0bgleeson> popl: do you know the difference between Hash.new([]) and Hash.new { |h,k| h[k] = [] }
<popl> searching ruby-doc.org is useless
<popl> nope
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
<r0bgleeson> do you want to
<popl> I'm about to find out though.
zastern has quit [Remote host closed the connection]
<popl> I'm going to look it up now.
<popl> by hook or by crook
<r0bgleeson> not sure if the docs cover it, i hope so
zastern has joined #ruby
<popl> wouldn't << be in Hash documentation?
byprdct has joined #ruby
<r0bgleeson> no such method for hash
<popl> it'd be Hash#<< right?
<popl> argly bargle
<r0bgleeson> >> {} << {}
<eval-in> r0bgleeson => undefined method `<<' for {}:Hash (NoMethodError) ... (https://eval.in/35611)
<popl> zwounds
<popl> odin's beard
<r0bgleeson> in your example you call it on an array
<popl> oh shit that I do
zeromodulus has quit [Ping timeout: 264 seconds]
<r0bgleeson> and that array is shared by all key look ups that don't find a key
<popl> macmartine: thank you very much
<popl> oh my gosh I understand what's going on now
<popl> without looking at the documentation
<popl> let's see if I win a prize
* popl looks it up
zastern has quit [Read error: Operation timed out]
zeromodulus has joined #ruby
<popl> so Hash must need a method to add a key value pair rather than use the syntactic sugar
<r0bgleeson> << is an alias for push
<r0bgleeson> on Array
<r0bgleeson> it's not an operator, just a method, an alias. it adds an element to the array.
akashj87_ has joined #ruby
<popl> otherwise it will look up :one, find nothing, and push that value to the default []
<r0bgleeson> Hash has a method for that, its called []=, defined as def []=(key,value)
<popl> I was going to remark earlier how similar the behavior is to C++ vector
<r0bgleeson> just a method as well
<popl> with a C++ vector you can attempt to access a non-existant key and it will not throw an exception
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
<r0bgleeson> in ruby you can call a block for when a key look up that fails happens.
<popl> so you need to use the method to look it up instead
akashj87 has quit [Ping timeout: 240 seconds]
<r0bgleeson> you're passed the hash & the key.
<r0bgleeson> really useful, but i've rarely found myself using it to be honest.
<r0bgleeson> it seems to be a common pitfall for newcomers
<popl> that's probably why it's in ruby koans
<r0bgleeson> the two options, Hash.new([]) & the block form.
<r0bgleeson> this has nothing to do with << though
fredjean has quit [Ping timeout: 260 seconds]
nivoc has joined #ruby
akashj87_ has quit [Ping timeout: 264 seconds]
heftig_ is now known as heftig
micah` has joined #ruby
fredjean has joined #ruby
hamakn has joined #ruby
<popl> r0bgleeson: no, I see what you mean. thanksf or the advice.
macmartine has quit [Quit: Computer has gone to sleep.]
<popl> thanks macmartine, Hanmac
fridim__ has quit [Ping timeout: 252 seconds]
arya_ has quit [Ping timeout: 248 seconds]
MrZYX|off is now known as MrZYX
akashj87 has joined #ruby
tomsthumb has quit [Quit: Leaving.]
akashj87 has quit [Read error: Connection reset by peer]
yashshah_ has quit [Read error: Connection reset by peer]
yashshah_ has joined #ruby
phrozensilver has quit [Quit: Leaving]
rickmasta has joined #ruby
GeissT has quit [Ping timeout: 256 seconds]
jorge has joined #ruby
skasio has quit [Ping timeout: 240 seconds]
skasio has joined #ruby
RichardBaker has joined #ruby
jorge has quit [Ping timeout: 248 seconds]
arya_ has joined #ruby
RichardBaker has quit [Client Quit]
ffio_ has joined #ruby
ffio has quit [Ping timeout: 268 seconds]
RichardBaker has joined #ruby
mansi has joined #ruby
sgkim126l has quit [Ping timeout: 256 seconds]
sgkim126l has joined #ruby
mansi has quit [Ping timeout: 268 seconds]
agent_white has joined #ruby
cofin has quit [Quit: cofin]
freeayu has joined #ruby
ry4nn has quit [Remote host closed the connection]
ttt has joined #ruby
Mars____ has joined #ruby
Mars` has joined #ruby
Astral_ has quit [Ping timeout: 256 seconds]
vlad_sta_ has quit [Ping timeout: 256 seconds]
marr has joined #ruby
sevenseacat has joined #ruby
hamakn has quit [Remote host closed the connection]
Davey has joined #ruby
hamakn has joined #ruby
takezawa has joined #ruby
_s14_ has joined #ruby
Davey has quit [Max SendQ exceeded]
dmiller_ has joined #ruby
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
MrThePlague has joined #ruby
ayaz has joined #ruby
spacebug1 has joined #ruby
KarlHung1s has joined #ruby
hamakn has quit [Ping timeout: 256 seconds]
Davey has joined #ruby
marsLantern_ has joined #ruby
deavidsedice has joined #ruby
matchaw_ has joined #ruby
jibi has joined #ruby
yashshah_ has quit [Ping timeout: 256 seconds]
Mars` has quit [Read error: Connection reset by peer]
xavier23 has quit [Quit: xavier23]
is_null has joined #ruby
sami_ has joined #ruby
jnix_ has joined #ruby
DrForr_ has joined #ruby
ejnahc_ has joined #ruby
Mars____ has quit [Read error: Connection reset by peer]
justsee_ has joined #ruby
faulkner- has joined #ruby
ddd__ has joined #ruby
multi_io_ has joined #ruby
k3rn3lit1 has joined #ruby
asuka_ has joined #ruby
mksm has joined #ruby
adamholt_ has joined #ruby
cout_ has joined #ruby
Banistertab has quit [Ping timeout: 276 seconds]
s14 has quit [Ping timeout: 276 seconds]
byprdct has quit [Ping timeout: 276 seconds]
adamholt has quit [Ping timeout: 276 seconds]
autumn has quit [Ping timeout: 276 seconds]
canton7 has quit [Ping timeout: 276 seconds]
deadalus has quit [Ping timeout: 276 seconds]
is_null_ has quit [Ping timeout: 276 seconds]
sami has quit [Ping timeout: 276 seconds]
coaster has quit [Ping timeout: 276 seconds]
ejnahc has quit [Ping timeout: 276 seconds]
alex88 has quit [Ping timeout: 276 seconds]
jnix has quit [Ping timeout: 276 seconds]
spacebug_ has quit [Ping timeout: 276 seconds]
dmyers has quit [Ping timeout: 276 seconds]
araujo has quit [Ping timeout: 276 seconds]
dotemacs has quit [Ping timeout: 276 seconds]
justsee has quit [Ping timeout: 276 seconds]
fcoury__ has quit [Ping timeout: 276 seconds]
MrThePl__ has quit [Ping timeout: 276 seconds]
Akuma has quit [Ping timeout: 276 seconds]
Zelest has quit [Ping timeout: 276 seconds]
multi_io has quit [Ping timeout: 276 seconds]
jtperreault has quit [Ping timeout: 276 seconds]
k3rn3lito has quit [Ping timeout: 276 seconds]
KarlHungus has quit [Ping timeout: 276 seconds]
ddd has quit [Ping timeout: 276 seconds]
faulkner has quit [Ping timeout: 276 seconds]
cout has quit [Ping timeout: 276 seconds]
DrForr has quit [Ping timeout: 276 seconds]
matrixise has quit [Ping timeout: 276 seconds]
Guest4693 has quit [Ping timeout: 276 seconds]
dmiller has quit [Ping timeout: 276 seconds]
Alina-malina has quit [Ping timeout: 276 seconds]
matchaw has quit [Ping timeout: 276 seconds]
marsLantern has quit [Ping timeout: 276 seconds]
bigmac has quit [Ping timeout: 276 seconds]
asuka has quit [Ping timeout: 276 seconds]
mcpierce has quit [Ping timeout: 276 seconds]
deavid has quit [Ping timeout: 276 seconds]
ainame has quit [Ping timeout: 276 seconds]
anildigital has quit [Ping timeout: 276 seconds]
Zelest has joined #ruby
coaster has joined #ruby
matrixise has joined #ruby
kasper has joined #ruby
faulkner- is now known as faulkner
coaster has joined #ruby
coaster has quit [Changing host]
anildigital has joined #ruby
jnix_ has quit [Changing host]
jnix_ has joined #ruby
noxgirl has joined #ruby
mksm is now known as Guest30040
samuel02 has joined #ruby
ainame has joined #ruby
mcpierce has joined #ruby
jtperreault has joined #ruby
alex88 has joined #ruby
Alina-malina has joined #ruby
Akuma has joined #ruby
marsLantern_ is now known as marsLantern
patronus has quit [Excess Flood]
bigmac has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
patronus has joined #ruby
Mars` has joined #ruby
Roa has quit [Ping timeout: 240 seconds]
takezawa has quit [Remote host closed the connection]
rsahae has quit [Quit: rsahae]
deadalus has joined #ruby
timonv has joined #ruby
ttt has quit [Remote host closed the connection]
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
dmyers has joined #ruby
jnix_ is now known as jnix
BizarreCake has quit [Read error: Connection reset by peer]
popl has quit [Quit: I don't know why she swallowed the fly.]
Mars____ has joined #ruby
Astralum has joined #ruby
k3rn3lit1 has quit [Ping timeout: 260 seconds]
k3rn3lito has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Davey has quit [Ping timeout: 246 seconds]
RichardBaker has quit [Quit: RichardBaker]
fixl has quit [Read error: No route to host]
devyn has quit [Quit: Lost terminal]
devyn has joined #ruby
v0n has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
KRF has quit [Quit: No Ping reply in 180 seconds.]
KRF has joined #ruby
tkuchiki has joined #ruby
Davey has joined #ruby
devoldmx3 has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
tkuchiki has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 248 seconds]
devoldmx has quit [Ping timeout: 256 seconds]
jimg has joined #ruby
timonv has quit [Remote host closed the connection]
rickmasta has quit [Quit: Leaving...]
zigomir has joined #ruby
rezzack has quit [Quit: Leaving.]
rezzack has joined #ruby
<Mon_Ouie> Don't forget Hash.new([]) will use the same array for every key though
zeromodulus has quit [Ping timeout: 260 seconds]
<Mon_Ouie> >> h = Hash.new([]); h[:a] << "obj"; h[:b]
<eval-in> Mon_Ouie => ["obj"] (https://eval.in/35612)
decoponio has joined #ruby
zeromodulus has joined #ruby
zeromodulus has joined #ruby
zeromodulus has quit [Changing host]
jimg has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
timonv has joined #ruby
vlad_starkov has joined #ruby
Columcil1e is now known as Columcille
jorge has joined #ruby
Kelet has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<Kelet> Hi, assuming I have a relatively simple program, not needing to be 'deployed' or anything, is there any preferred directory structure? I've just been using file.rb and then running file.rb. I see a lot of people have a lib directory, etc.
<Mon_Ouie> A lot of Ruby stuff is distributed using gem, which has a standard project directory
predator117 has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
<Mon_Ouie> If it's just a single file I probably wouldn't bother though
<Kelet> No it is 3-4 files
<Kelet> I'll take a look though
<Kelet> It's the implementation of an algorithm which computes some geometrical stuff, and then draws an animated image using quick_magick
<Mars`> just put them in a lib folder. Made a module and you can put the executable in bin/ which will call the library.
tomsthumb has joined #ruby
jorge has quit [Ping timeout: 240 seconds]
<Kelet> Should my 'controller' file be in the lib folder?
<Kelet> For example, the actual file that I run?
<Kelet> Or should it be in the main folder?
<Kelet> I've seen it done both ways
<Mon_Ouie> The file you actually run is the executable, in the bin/ folder
akemrir has joined #ruby
<Mon_Ouie> Most of the time people tend to make it very trivial, e.g. require 'myapp/cli'; MyAPP::CLI.run(ARGV)
<Mon_Ouie> And have all the real code in lib
<Kelet> sometimes I see a 'test' folder and sometimes I see a 'spec' folder do they serve different purposes or is it the same?
<Mon_Ouie> They're the same, people who use libraries like RSpec sometimes call it spec rather than test
tomsthumb has quit [Client Quit]
statarb3 has joined #ruby
<Kelet> If I have a file in bin, and then a file in lib called 'calculator.rb', can I do require_relative 'calculator.rb' from the bin file? Or do I have to do require_relative '../lib/calculator.rb'
ntus1017 has joined #ruby
<Kelet> I see it done like the former sometimes but it's not working for me
<Kelet> think I'm doing something wrong
<Mon_Ouie> You don't need require_relative if you're using rubygems because it sets up your $LOAD_PATH properly
predator117 has joined #ruby
marr has quit [Ping timeout: 268 seconds]
timonv has quit [Remote host closed the connection]
statarb3 has quit [Ping timeout: 268 seconds]
viszu has joined #ruby
akemrir has quit [Quit: WeeChat 0.4.1]
jefflyne has joined #ruby
jefflyne has quit [Max SendQ exceeded]
jefflyne has joined #ruby
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
browndawg has joined #ruby
hogeo has quit [Remote host closed the connection]
jimg has joined #ruby
Banistertab has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
kasper has quit [Remote host closed the connection]
Spami has joined #ruby
pierre1 has quit [Quit: Leaving]
hogeo has joined #ruby
zodiak has quit [Ping timeout: 248 seconds]
kraljev1 has left #ruby [#ruby]
hamed_r has joined #ruby
hogeo has quit [Remote host closed the connection]
rezzack has quit [Ping timeout: 260 seconds]
hogeo has joined #ruby
sayan has joined #ruby
jimg has quit [Remote host closed the connection]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
hamakn has joined #ruby
hogeo has quit [Remote host closed the connection]
jimg has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
hamakn has quit [Ping timeout: 240 seconds]
marcgg has quit [Read error: No route to host]
timonv has joined #ruby
jbpros has joined #ruby
marcgg has joined #ruby
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
zastern has joined #ruby
jimg_ has joined #ruby
jbpros has quit [Client Quit]
mikewintermute has joined #ruby
jbpros has joined #ruby
krisfremen has quit [Quit: hmm]
krisfremen has joined #ruby
krisfremen has quit [Changing host]
krisfremen has joined #ruby
ffio_ is now known as ffio
greenarrow has joined #ruby
Es0teric has joined #ruby
Es0teric has quit [Client Quit]
emergion has joined #ruby
adambeynon has joined #ruby
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
zastern has quit [Ping timeout: 256 seconds]
Mars` has quit [Ping timeout: 256 seconds]
KRF has quit [Quit: No Ping reply in 180 seconds.]
Mars____ has quit [Ping timeout: 276 seconds]
KRF has joined #ruby
jbpros has quit [Quit: jbpros]
Jackneill has joined #ruby
BizarreCake has joined #ruby
spider-mario has joined #ruby
itsovar has joined #ruby
atno has quit [Read error: Connection reset by peer]
agent_white has quit [Quit: leaving]
<itsovar> class Foo; def initialize( bar ) ; @bar = bar ; end ; end
<itsovar> Shouldn't it pretty much always be "@bar = bar.dup"? Is there a best practice?
<r0bgleeson> itsovar: you should never mutate 'bar' thats for sure.
<r0bgleeson> if you dont mutate it there's no need to dup.
cj3kim has quit [Remote host closed the connection]
bionoid has joined #ruby
<itsovar> r0bgleeson: don't you think it's a trap waiting to happen when the class grows?
jimg_ has quit [Remote host closed the connection]
jorge has joined #ruby
<r0bgleeson> itsovar: there's also the issue that, the caller might mutate the argument later on (which would mutate the internal state of Foo)
<r0bgleeson> itsovar: i don't see it done often though
jds_ has joined #ruby
<itsovar> r0bgleeson: yeah
jimg_ has joined #ruby
lutfidemirci has joined #ruby
adamholt_ is now known as adamholt
<itsovar> That seems a big pitfall. I'm taking a look at Rail's source and it seems there isn't a standard guideline about that.
jorge has quit [Ping timeout: 246 seconds]
jds_ has quit [Remote host closed the connection]
<r0bgleeson> im sure there's a counter argument
<r0bgleeson> its common in rack middle to do a dup though, and a standard thing to do
<r0bgleeson> middleware*
Banistertab has quit [Ping timeout: 256 seconds]
<r0bgleeson> well, common but in a different way, you'd say dup.call(env)
<itsovar> r0bgleeson: nice, I didn't know.
jimg_ has quit [Remote host closed the connection]
jimg_ has joined #ruby
mercwithamouth has joined #ruby
ananthakumaran has quit [Ping timeout: 256 seconds]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
RORgasm has joined #ruby
ananthakumaran has joined #ruby
jimg_ has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 268 seconds]
jimg_ has joined #ruby
mneorr has joined #ruby
dotemacs has joined #ruby
RORgasm has quit [Ping timeout: 276 seconds]
eka has joined #ruby
fcoury__ has joined #ruby
bionoid has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
nikeita has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
Shirakawasuna has quit [Quit: Leaving]
zmike123 has joined #ruby
emergion has joined #ruby
sprite-- has quit [Ping timeout: 250 seconds]
kasper has joined #ruby
Roa has quit [Ping timeout: 246 seconds]
k3rn3lito has quit [Ping timeout: 246 seconds]
statarb3 has quit [Remote host closed the connection]
kasper has quit [Ping timeout: 256 seconds]
sayan has joined #ruby
arya_ has quit [Ping timeout: 246 seconds]
mikewintermute has quit [Quit: mikewintermute]
cj3kim has joined #ruby
sayan has quit [Read error: Connection reset by peer]
kayloos has joined #ruby
jimg_ has quit [Remote host closed the connection]
freeayu has quit [Read error: Connection reset by peer]
arya has joined #ruby
maetthew has joined #ruby
gianlucadv has joined #ruby
relix has joined #ruby
Roa has joined #ruby
Roa has joined #ruby
Roa has quit [Changing host]
k3rn3lito has joined #ruby
arya has quit [Ping timeout: 264 seconds]
yashshah has joined #ruby
nfisher has joined #ruby
Mars____ has joined #ruby
lutfidemirci has quit [Remote host closed the connection]
popl has joined #ruby
arya has joined #ruby
itsovar has quit [Quit: Page closed]
jimg has quit [Remote host closed the connection]
paissad has joined #ruby
Mars____ has quit [Ping timeout: 276 seconds]
jorge has joined #ruby
yashshah has quit [Ping timeout: 252 seconds]
jorge has quit [Ping timeout: 256 seconds]
arya has quit [Ping timeout: 256 seconds]
bionoid has joined #ruby
workmad3 has joined #ruby
dankest has joined #ruby
arya has joined #ruby
AlbireoX has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
browndawg has quit [Quit: Leaving.]
kayloos has quit [Remote host closed the connection]
marcgg has joined #ruby
hamed_r has quit [Quit: Leaving]
Trynemjoel has quit [Ping timeout: 245 seconds]
jds_ has joined #ruby
m8 has joined #ruby
akashj87 has joined #ruby
wesside has quit [Ping timeout: 260 seconds]
Kar- has joined #ruby
yashshah has joined #ruby
jds_ has quit [Ping timeout: 264 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
tonini has joined #ruby
tonini has quit [Client Quit]
yashshah has quit [Ping timeout: 246 seconds]
akashj87 has quit [Read error: Operation timed out]
bionoid has quit [Remote host closed the connection]
tonini has joined #ruby
dankest has quit [Quit: Leaving...]
Taranis has joined #ruby
Deele has joined #ruby
jimg has joined #ruby
icecandy has quit [Remote host closed the connection]
_daniel-s__ has joined #ruby
<Kelet> how come I implement enumerable, provide each, my collection type has <=>, i have sort but not sort!
<Kelet> what am I missing to get sort?
<Kelet> err
<Kelet> sort!
sepp2k has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
daniel-s__ has quit [Ping timeout: 256 seconds]
<Mon_Ouie> There's no automatic way of having sort! being defined
cj3kim has quit [Remote host closed the connection]
popl has quit [Quit: "People remain what they are even if their faces fall apart."]
<Mon_Ouie> Notice it would require a way of removing and adding items to your collection, which Enumerable doesn't know about (it just knows how to iterate)
AlSquire has quit [Ping timeout: 256 seconds]
BRMatt has joined #ruby
viszu has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
jimg has quit [Ping timeout: 268 seconds]
Speck has left #ruby ["Konversation terminated!"]
zmike123 has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 268 seconds]
boblu has joined #ruby
kevinykchan has joined #ruby
io_syl has joined #ruby
jimg has joined #ruby
arya has quit [Ping timeout: 256 seconds]
viszu has joined #ruby
jimg has quit [Ping timeout: 268 seconds]
zmike123 has joined #ruby
arya has joined #ruby
marcgg has quit [Ping timeout: 256 seconds]
jorge has joined #ruby
marcgg has joined #ruby
ntus1017 has quit [Remote host closed the connection]
idank has joined #ruby
<idank> in Python, if I call repr on a string with quotes, it escapes the quotes and wraps the result in another set of quotes, e.g. repr('"foo"') = '\'"foo"\''
<idank> what's the equivalent in Ruby?
slash_quit is now known as slash_nick
<heftig> inspect
<idank> heftig: thanks
jorge has quit [Ping timeout: 256 seconds]
<heftig> idank: depending on what you want to do with it, there's also shellescape
<idank> inspect seems to be what I want
msuszczy has joined #ruby
Spooner has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
postmodern has quit [Quit: Leaving]
zmike123 has quit [Ping timeout: 246 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
bubblehead has joined #ruby
r0bgleeson has quit [Ping timeout: 264 seconds]
kofno has quit [Remote host closed the connection]
kofno has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
bubblehead has quit [Ping timeout: 264 seconds]
ChristianS has quit [Excess Flood]
ChristianS has joined #ruby
jefflyne has joined #ruby
Spami has joined #ruby
arya has quit [Ping timeout: 264 seconds]
jds_ has joined #ruby
rrva has quit [Quit: Lost terminal]
Beoran_ has joined #ruby
arya has joined #ruby
jcarouth has quit [Ping timeout: 245 seconds]
canton7 has joined #ruby
yusup has joined #ruby
yusup has quit [Client Quit]
dodosan has quit [Remote host closed the connection]
zmike123 has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
Beoran__ has quit [Ping timeout: 248 seconds]
ananthakumaran has quit [Quit: Leaving.]
nikeita has quit [Ping timeout: 264 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
jcarouth has joined #ruby
apeiros has joined #ruby
nikeita has joined #ruby
niklasb has joined #ruby
PSKOSINSKI has joined #ruby
emmanuelux has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
robustus has joined #ruby
arya has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BRMatt has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
arya has joined #ruby
dawkirst has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
yoshie902a has joined #ruby
nfisher has quit [Ping timeout: 260 seconds]
redgirl has joined #ruby
Neomex has joined #ruby
ananthakumaran has joined #ruby
codecop has joined #ruby
statarb3 has joined #ruby
statarb3 has joined #ruby
nfisher has joined #ruby
_Andres has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Remote host closed the connection]
justsee_ has quit [Ping timeout: 248 seconds]
roadt has quit [Ping timeout: 256 seconds]
jorge has joined #ruby
dsafsdf has joined #ruby
<dsafsdf> what would be the best way to get everything in a sentence after a certain trigger word?
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
<dsafsdf> would it be to split it ?
<canton7> >> "this is a sentence"[/is\s+(.*)$/, 1]
<eval-in> canton7 => "is a sentence" (https://eval.in/35620)
<apeiros> eh
<canton7> oops
jorge has quit [Ping timeout: 256 seconds]
<apeiros> >> "this is a sentence"[/\bis\s+(.*)$/, 1]
<eval-in> apeiros => "a sentence" (https://eval.in/35621)
<canton7> >> "this is a sentence"[/\bis\b(.*)$/, 1]
<eval-in> canton7 => " a sentence" (https://eval.in/35622)
<apeiros> ^^
<canton7> or you can split, that works too
<canton7> >> "this is a sentence".split('is ', 2)[1]
<eval-in> canton7 => "is a sentence" (https://eval.in/35623)
<heftig> split on /\bis\b/
jmimi1 has quit [Quit: Leaving.]
railsbros_dirk has joined #ruby
<canton7> apeiros's \bis\s+ is the best of the bunch
jmimi has joined #ruby
<apeiros> hm, I think I'd actually prefer \bis\b
<apeiros> I didn't pay attention to the rhs of 'is' in your original regex and liked your second one
Neomex has quit [Quit: Neomex]
<canton7> The \s+ was to swallow the space after the trigger word, but yeah that fails if there's punctuation there instead...
fgo has quit [Remote host closed the connection]
viszu has quit [Quit: Leaving.]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
Lewis has quit [Remote host closed the connection]
jmimi has quit [Ping timeout: 246 seconds]
idank has left #ruby [#ruby]
<apeiros> canton7: hm, good point too. would depend then on what exactly "everything" means in "everything in a sentence after a certain trigger word"
yoshie902a has left #ruby [#ruby]
freeayu has joined #ruby
arya has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jmimi has joined #ruby
nettoweb has joined #ruby
moos3 has joined #ruby
xargoon has quit [Ping timeout: 256 seconds]
xargoon has joined #ruby
lutfidemirci has joined #ruby
<dsafsdf> im a bit confused about something. how do i check if a sentence contains a list of words (doesnt have ot be all of them) and which ones it contians
Mon_Ouie has quit [Ping timeout: 268 seconds]
<apeiros> dsafsdf: what did you try?
<apeiros> and what part are you confused about?
<dsafsdf> i tried putting an array after .include?
<dsafsdf> so sentence.include? ["word1", "word2"]
mengu has joined #ruby
<apeiros> String#include? doesn't accept an array as argument
<apeiros> but I guess you found that out too
<dsafsdf> yeah
<dsafsdf> so im not sure how to do that
<apeiros> you can iterate over your words
<heftig> ""If you keep anything long enough, you can throw it away.".downcase.scan(/\w+/) & ["away", "keep", "you", "bananas"]
<apeiros> and test each individual word whether it's included
<heftig> whoops
<heftig> "If you keep anything long enough, you can throw it away.".downcase.scan(/\w+/) & ["away", "keep", "you", "bananas"]
<heftig> and to demonstrate,
<heftig> >> "If you keep anything long enough, you can throw it away.".downcase.scan(/\w+/) & ["away", "keep", "you", "bananas"]
<eval-in> heftig => ["you", "keep", "away"] (https://eval.in/35628)
<apeiros> see Enumerable#any? to make it easy
<apeiros> you can also generate a regex, see Regexp.union
<dsafsdf> my regex skills is horribly shitty at best
nettoweb has quit [Quit: nettoweb]
<apeiros> time to learn then :-p
<dsafsdf> yeah i know i will
kasper has joined #ruby
<heftig> above code turns the sentence into an array of words, then intersects it with a given array of words
<dsafsdf> but what heftig did works
nfisher has quit [Quit: Good-bye all!]
<dsafsdf> one thing though
<dsafsdf> how do i check if any of htem matches though? i cant seem to do .size on it
nettoweb has joined #ruby
swistak35 has quit [Ping timeout: 264 seconds]
nettoweb has quit [Client Quit]
<heftig> remember to wrap it in parentheses, first
browndawg has joined #ruby
<dsafsdf> i did. hmm
<dsafsdf> downcase.scan((/\w+/) & ["play", "like", "similar"])
<dsafsdf> that?
dodosan has joined #ruby
swistak35 has joined #ruby
<Hanmac> look at my mighty regex
<Hanmac> >> "If you keep anything long enough, you can throw it away." =~ /\b#{Regexp.union(["away", "keep", "you", "bananas"])}\b/i
<eval-in> Hanmac => 3 (https://eval.in/35638)
<dsafsdf> i get cant convert fixnum to error
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
jibi has quit [Quit: .]
<heftig> dsafsdf: no the whole thing
maetthew has quit [Quit: maetthew]
<dsafsdf> ah
gildo has joined #ruby
<dsafsdf> thanks
<apeiros> in my toy language, I'll have the exceptions state: "I don't want to turn this array into a number"
<Hanmac> >> "keep away you".scan(/\b#{Regexp.union(["away", "keep", "you", "bananas"])}\b/i).size
<eval-in> Hanmac => 3 (https://eval.in/35640)
dodosan has quit [Ping timeout: 268 seconds]
Liothen has quit [Remote host closed the connection]
<Hanmac> apeiros: there are you again ... we all missed you (did you already updated the channel title?)
<apeiros> new rubies?
takezawa has joined #ruby
<Hanmac> yeah
<apeiros> Hanmac: I'll be less on irc the next few days/weeks, much work…
<Hanmac> apeiros: and the countdown is 2 days left ... ;P
jds_ has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
<apeiros> Hanmac: thanks!
<apeiros> what countdown?
lutfidemirci has quit [Remote host closed the connection]
<Hanmac> the final countdown until 1.8 is not official supported anymore
<apeiros> ah, heh
<apeiros> won't put that into the title, though
<dsafsdf> apeiros, you know rails as well righ?
<apeiros> yes
<dsafsdf> can i ask you a rails q?
<apeiros> over in #rubyonrails you can ask as many rails questions as you like…
<dsafsdf> ok
<sevenseacat> hah
<dsafsdf> cuz the ror chan is dead
<apeiros> at 600 people?
relix has joined #ruby
<sevenseacat> lol
<apeiros> zombie channel
<sevenseacat> braaaaains
* apeiros prefers meeeeeeeeeats
* apeiros is just waiting for his to finish cooking :D
<sevenseacat> omnomnom
mercwithamouth has quit [Ping timeout: 252 seconds]
denver has joined #ruby
wsterling has joined #ruby
nivoc has quit [Quit: nivoc]
nivoc has joined #ruby
motto has joined #ruby
wesside has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
m8 has quit [Ping timeout: 260 seconds]
jorge has joined #ruby
neektza1 has joined #ruby
jorge has quit [Ping timeout: 252 seconds]
kirun has joined #ruby
browndawg has quit [Quit: Leaving.]
forced_request has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
railsbros_dirk has quit [Ping timeout: 246 seconds]
pothibo has joined #ruby
choobie has quit [Read error: Operation timed out]
pothibo has quit [Client Quit]
nezumi has quit [Ping timeout: 248 seconds]
dsafsdf has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
hogeo has joined #ruby
RORgasm has joined #ruby
elaptics`away is now known as elaptics
roadt has joined #ruby
RegEchse has joined #ruby
RORgasm has quit [Ping timeout: 268 seconds]
choobie has joined #ruby
jpinnix has joined #ruby
kofno has quit [Remote host closed the connection]
mikewintermute has joined #ruby
cofin has joined #ruby
hogeo has quit [Remote host closed the connection]
jpinnix has left #ruby ["Linkinus - http://linkinus.com"]
devoldmx has joined #ruby
browndawg has joined #ruby
bionoid has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
emmanuelux has quit [Quit: emmanuelux]
nikeita has quit [Quit: sleep]
snearch has joined #ruby
ravster has joined #ruby
mercwithamouth has joined #ruby
nikeita has joined #ruby
JZTech101 has joined #ruby
denver has quit [Remote host closed the connection]
subbyyy has joined #ruby
alx- has joined #ruby
bionoid has quit [Remote host closed the connection]
ayaz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bionoid has joined #ruby
Zolo has quit [Remote host closed the connection]
kevinykchan has quit [Quit: Computer has gone to sleep.]
jds_ has joined #ruby
samuel02 has quit [Remote host closed the connection]
bionoid has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 276 seconds]
Kruppe has joined #ruby
nikeita has quit [Quit: sleep]
wsterling has quit [Remote host closed the connection]
KhalilC has joined #ruby
jds_ has quit [Ping timeout: 246 seconds]
ayaz has joined #ruby
reindeerflotilla has joined #ruby
splittingred has joined #ruby
reindeerflotilla has quit [Client Quit]
danslo has joined #ruby
jorge has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
hogeo has joined #ruby
Peej has quit [Ping timeout: 252 seconds]
DestinyAwaits has joined #ruby
jorge has quit [Ping timeout: 256 seconds]
Neomex has joined #ruby
Neomex has quit [Client Quit]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
threesome has joined #ruby
hogeo_ has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
lkba has joined #ruby
hogeo_ has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
icecandy has joined #ruby
nikeita has joined #ruby
simon__ has joined #ruby
fess has quit [Read error: Connection reset by peer]
jefflyne has joined #ruby
Zolo has joined #ruby
<simon__> Hello. In python i can do bool(a_string), which will return false if the string is empty and true otherwise. How can I do the same thing in ruby?
fess has joined #ruby
<apeiros> String#empty?
<apeiros> since global functions-- in OO
sailias has joined #ruby
<simon__> apeiros: Cool, thanks. But now imagine that the strings can be either nil or a string, how to do the same thing? I want to xor two strings, so I can validate that both strings are either set or unset.
<apeiros> simon__: a) normalize your data, b) str && !str.empty?, c) (in rails, but easy to add to plain ruby) str.blank?
<apeiros> note that rails' String#blank? is also true for whitespace-only strings
fridim__ has joined #ruby
<simon__> Cheers.
kaichanvong has left #ruby [#ruby]
AlbireoX has quit [Remote host closed the connection]
kofno has joined #ruby
wallerdev has joined #ruby
freeayu has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 276 seconds]
browndawg has quit [Quit: Leaving.]
teddyp1cker has joined #ruby
BizarreCake has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
alx- has quit [Quit: alx-]
arya has joined #ruby
MrZYX is now known as MrZYX|off
bionoid has joined #ruby
horrror has joined #ruby
<horrror> What's the fastest way to append a prefix + suffix to each item in an array?
<canton7> myarray.map{ |x| "prefix#{x}suffix" }
MrZYX|off is now known as MrZYX
nikeita has quit [Quit: bye bye]
wsterling has joined #ruby
<horrror> canton7: thanks
<horrror> just a small followup; is it much faster than array_to_search.each {|item| item = '"' + item '"@eng" }?
Kruppe has quit [Remote host closed the connection]
<canton7> apart from the fact that yours won't do anything?
<MrZYX> that simply wouldn't work
Kruppe has joined #ruby
zastern has joined #ruby
ferdev has quit [Ping timeout: 245 seconds]
ferdev_ has joined #ruby
<apeiros> horrror: ri Benchmark
bubblehead has joined #ruby
ffio has joined #ruby
wsterling has quit [Remote host closed the connection]
<apeiros> since the name 'tables' is already taken - any good name for reading csv/xls/xlsx files into a table datastructure and writing those files too?
zastern has quit [Ping timeout: 268 seconds]
<MrZYX> sheets ?
<apeiros> reminds me of beds :) ok, that's an option
<apeiros> already taken too
bionoid has quit [Remote host closed the connection]
<MrZYX> datasheets if you like it more explicit
<apeiros> nice, looks similar to what I did
kasper has quit [Remote host closed the connection]
<MrZYX> or tablesheets
jipp has joined #ruby
roadt has quit [Read error: Connection reset by peer]
roadt_ has joined #ruby
ferdev_ has quit [Ping timeout: 252 seconds]
justsee has quit [Ping timeout: 246 seconds]
jipp has quit [Remote host closed the connection]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
wallerdev has quit [Quit: wallerdev]
jorge_ has joined #ruby
nettoweb has joined #ruby
Davey has joined #ruby
Zolo has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
Asher1 has joined #ruby
jorge_ has quit [Ping timeout: 264 seconds]
Asher has quit [Ping timeout: 246 seconds]
Asher has joined #ruby
Asher1 has quit [Ping timeout: 248 seconds]
kasper has joined #ruby
bionoid has joined #ruby
nezumi has joined #ruby
nomenkun has quit [Remote host closed the connection]
Dekade has joined #ruby
arya has quit [Ping timeout: 248 seconds]
RORgasm has joined #ruby
alexwh has left #ruby [#ruby]
krisfremen has quit [Ping timeout: 248 seconds]
nettoweb has quit [Quit: nettoweb]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
RORgasm has quit [Ping timeout: 240 seconds]
lushious has quit [Remote host closed the connection]
ferdev has joined #ruby
krisfremen has joined #ruby
krisfremen has joined #ruby
krisfremen has quit [Changing host]
bionoid has quit [Remote host closed the connection]
browndawg has joined #ruby
Akuma has quit [Quit: So long sukkas!]
denver has joined #ruby
sevenseacat has quit [Quit: Leaving.]
simon__ has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
sailias has quit [Ping timeout: 256 seconds]
hogeo has quit [Remote host closed the connection]
wallerdev has joined #ruby
wallerdev has quit [Client Quit]
arya has joined #ruby
wmoxam has joined #ruby
nezumi has quit [Read error: Operation timed out]
horrror has quit [Quit: horrror]
Akuma has joined #ruby
Hanmac1 has joined #ruby
jbpros has joined #ruby
Neomex has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
horrror has joined #ruby
wallerdev has joined #ruby
msuszczy has quit [Ping timeout: 264 seconds]
horrror has quit [Client Quit]
arubin has joined #ruby
nettoweb has joined #ruby
james_ has joined #ruby
james_ is now known as Guest14800
bubblehead has quit [Read error: Connection reset by peer]
Guest14800 has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
james__ has joined #ruby
jbpros has quit [Quit: jbpros]
mansi has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
nithinbekal has joined #ruby
nithinbekal has left #ruby [#ruby]
nithinbekal has joined #ruby
mercwithamouth has joined #ruby
denver has quit [Remote host closed the connection]
viszu has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
nithinbekal has quit [Client Quit]
bubblehead has joined #ruby
jorge__ has joined #ruby
freerobby has quit [Quit: Leaving.]
mercwithamouth has quit [Ping timeout: 276 seconds]
icecandy has quit [Remote host closed the connection]
lindenle has joined #ruby
jbpros has joined #ruby
grillermo has joined #ruby
cads has joined #ruby
fuhgeddaboudit has joined #ruby
wsterling has joined #ruby
wmoxam has quit [Ping timeout: 252 seconds]
rickmasta has joined #ruby
arietis has joined #ruby
jbpros has quit [Ping timeout: 252 seconds]
boblu has quit [Ping timeout: 252 seconds]
axeman_ has joined #ruby
wsterling has quit [Ping timeout: 246 seconds]
cads has quit [Remote host closed the connection]
wobr_ has joined #ruby
ntus1017 has joined #ruby
wobr_ has quit [Client Quit]
tylersmith has joined #ruby
nomenkun has joined #ruby
Neomex has quit [Quit: Neomex]
echevemaster has joined #ruby
zastern has joined #ruby
lutfidemirci has joined #ruby
kevinykchan has joined #ruby
emmanuelux has joined #ruby
_maes_ has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
Neomex has joined #ruby
jbpros has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
jbpros has quit [Client Quit]
Flobin has joined #ruby
<Flobin> hey everyone
marcgg has quit [Read error: No route to host]
<Flobin> I have a question which I feel I should preface by saying I'm a total noob at this
<Flobin> so I'm using http://middlemanapp.com/ and I want to use its localization features (http://middlemanapp.com/advanced/localization/)
marcgg has joined #ruby
serp` has joined #ruby
<Flobin> in order to localize a string, you would put "<%= I18n.t(:hello) %> World"
<Flobin> and the hello would be translated
<Flobin> but also, it parses links that are written like this: "<%= link_to 'contact', 'contact.html' %>"
<Flobin> so my question is, how would I translate the 'contact' part?
mansi has quit [Ping timeout: 264 seconds]
<apeiros> I'd assume this is rails
<apeiros> so it'd be <%= link_to t('localization.key.for.contact'), …
<Flobin> oh, yes
<Flobin> not <%= link_to 'I18n.t(:contact)', 'contact.html' %> ?
wargasm has joined #ruby
kasper has quit [Remote host closed the connection]
<apeiros> 'I18n.t(:contact)' is a string containing I18n.t(:contact)
<apeiros> it won't do anything.
niklasb has quit [Ping timeout: 260 seconds]
Zolo has joined #ruby
ner0x has joined #ruby
<Flobin> right
<Flobin> in that case I'd expect it to be <%= link_to I18n.t(:contact), 'contact.html' %>
<apeiros> and usually you can omit the `I18n.` part in views.
emergion has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
<Flobin> aha
<Flobin> thanks, apeiros!
mahmoudimus has joined #ruby
DestinyAwaits has quit [Quit: Leaving]
jorge__ has quit [Remote host closed the connection]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
jorge_ has joined #ruby
tjbiddle has joined #ruby
serp` has quit [Quit: serp`]
fuhgeddaboudit has quit [Ping timeout: 260 seconds]
qohelet_ has joined #ruby
grillermo has quit [Quit: bandtastic.me]
JumpMast3r has quit [Quit: JumpMast3r]
jorge_ has quit [Ping timeout: 260 seconds]
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
redgirl has quit [Quit: This computer has gone to sleep]
redgirl has joined #ruby
sarkis has joined #ruby
zodiak has joined #ruby
bubblehe_ has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
pkrnj has joined #ruby
axeman_ has quit [Read error: Connection reset by peer]
danslo has quit [Quit: danslo]
Hanmac1 is now known as Hanmac
axeman_ has joined #ruby
redgirl has quit [Read error: Connection reset by peer]
dr_bob has joined #ruby
rickmasta has quit [Quit: Leaving...]
serp` has joined #ruby
veco has joined #ruby
veco has quit [Client Quit]
veco has joined #ruby
bubblehe_ has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
statarb3 has quit [Ping timeout: 245 seconds]
boblu has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
bubblehead has joined #ruby
mengu has quit [Quit: Leaving]
RegEchse has quit [Quit: <3 WeeChat (v0.4.2-dev)]
KarlHung1s is now known as KarlHungus
mikepack has joined #ruby
dragonfist has joined #ruby
alx- has joined #ruby
RobW_ has joined #ruby
boblu has quit [Read error: Connection reset by peer]
<RobW_> When would you use an instance variable as opposed to a regular variable?
<Hanmac> RobW_ when you use an variable inside an instance
<RobW_> Hanmac: In the code I'm looking at there are @instance variables and some non-instance variables.
<dr_bob> RobW_, what is a "regular variable"? In what ways is an instance variable not regular?
mixmix has joined #ruby
tomzx_mac has joined #ruby
<RobW_> Sorry, not a huge amount of Ruby knowledge here. Check out: https://github.com/imathis/octopress/blob/master/plugins/image_tag.rb
<RobW_> That's a liquid plugin. There's a bunch of instance variables, but also that attributes array.
* apeiros assumes that RobW_ means "local variable" by saying "regular variable"
* dr_bob assumes the same. ;-)
<RobW_> apeiros: Most likely, thanks.
<veco> attributes is scoped to initialize. it won't be available anywhere else in the class
<mixmix> How can I get the minimum of an array of numbers, when the array contains NaN? [2, 0.0/0.0, 5, 1].min gives an error.
lindenle has quit [Quit: This computer has gone to sleep]
lutfidemirci has quit [Remote host closed the connection]
<dr_bob> RobW_, you use instance variables if the data is part of the instance's state. Instance variables live longer than the method call - as opposed to local variables.
<RobW_> veco: Thanks. Ruby != javascript. Sometimes confusing.
<apeiros> mixmix: .select first or min_by
<RobW_> dr_bob: Thank you.
lutfidemirci has joined #ruby
swordsmanz has joined #ruby
<RobW_> Makes sense now.
decoponio has quit [Quit: Leaving...]
<Flobin> hey apeiros, about my previous question (although this question might be a YAML question): what if the string to be translated has a comma in it?
sarkis has quit [Quit: leaving]
<Flobin> does that matter? I'm using sublime text 2 and its syntax highlighting seems to indicate that it does
<apeiros> Flobin: shouldn't matter. and yes, read YAML specs.
<Flobin> okay thanks
<apeiros> if it complains about a syntax error, you can try quoting
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<Veejay> Yeah it doesn't matter, I do it all the time
<apeiros> also note that certain strings require quoting, since e.g. "No" is interpreted as boolean false in yaml.
<Hanmac> mixmix:
bubblehead has quit [Read error: Connection reset by peer]
<Hanmac> >> [2, 0.0/0.0, 5, 1].select{|f|f.to_f.finite?}.min
<apeiros> >> require 'yaml'; YAML.load('no')
<eval-in> Hanmac => 1 (https://eval.in/35649)
<eval-in> apeiros => (https://eval.in/35650)
<Flobin> oh right
statarb3 has joined #ruby
bubblehead has joined #ruby
dragonfist has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
danslo has joined #ruby
<mixmix> apeiros & Hanmac, thank you. It now works
mikepack has quit [Remote host closed the connection]
<apeiros> meh, why no Numeric#nan?
mikepack has joined #ruby
lutfidemirci has quit [Ping timeout: 268 seconds]
<apeiros> >> class Numeric; def nan?; false; end; end; [2, 0.0/0.0, 5, 1].reject(&:nan?)
<eval-in> apeiros => [2, 5, 1] (https://eval.in/35651)
pkrnj has quit [Ping timeout: 240 seconds]
dr_bob has quit [Quit: Leaving.]
bubblehead has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
srunni has joined #ruby
<srunni> is there a way within code blocks for 'each' or 'map to refer to the object 'each' or 'map is being called on?
<srunni> other than the explicit variable name
mikepack has quit [Ping timeout: 248 seconds]
<apeiros> srunni: no
denver has joined #ruby
echevemaster has quit [Ping timeout: 260 seconds]
mansi has joined #ruby
jefflyne has joined #ruby
<slash_nick> @enum.map {|x| @enum }
mansi_ has joined #ruby
jbpros has joined #ruby
james__ has quit [Ping timeout: 261 seconds]
JumpMast3r has joined #ruby
workmad3 has joined #ruby
<Hanmac> imo there should be an each_with_self in addion to each_with_index
samuel02 has joined #ruby
<slash_nick> I'm not sure I get why... if you're calling each/map on a variable... then can't you just use that variable in the block?
mansi has quit [Ping timeout: 246 seconds]
<apeiros> Hanmac: add .with_self to Enumerable
RORgasm has joined #ruby
generalissimo has joined #ruby
<Hanmac> hm it may not work nice with Enumerators
vigintas has joined #ruby
jbpros has quit [Client Quit]
<apeiros> hm, true
nettoweb has quit [Quit: nettoweb]
<Hanmac> i am also voting for count_by like a group_by function
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
<Hanmac> and an generic group function
Neomex has quit [Quit: Neomex]
<apeiros> you want relational algebra in core/stdlib? :)
<Hanmac> why not?
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
<Hanmac> i mean when an group_by exist, why not an normal group ?
RORgasm has quit [Ping timeout: 260 seconds]
mansi_ has quit [Remote host closed the connection]
guilleiguaran__ has quit [Ping timeout: 245 seconds]
geoffw8_ has quit [Ping timeout: 245 seconds]
<slash_nick> count_by(:fives)
randym_ has quit [Ping timeout: 264 seconds]
ToApolytoXaos has joined #ruby
jbpros has joined #ruby
guilleiguaran__ has joined #ruby
guilleiguaran__ is now known as guilleiguaran_
popl has joined #ruby
kyleisntwild has joined #ruby
jbpros has quit [Ping timeout: 264 seconds]
alx- has quit [Quit: alx-]
zastern has quit [Remote host closed the connection]
JZTech101 has quit [Ping timeout: 246 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
danslo has quit [Quit: danslo]
jimg has joined #ruby
mixmix has quit [Quit: Leaving]
tylersmith has quit [Remote host closed the connection]
serp` has quit [Quit: serp`]
aqil has joined #ruby
lindenle has joined #ruby
reset has joined #ruby
qohelet_ has quit [Quit: qohelet_]
greenarrow has quit [Quit: Leaving]
viszu has quit [Remote host closed the connection]
jimg has quit [Ping timeout: 246 seconds]
viszu has joined #ruby
freerobby has joined #ruby
viszu has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
rehat has joined #ruby
nomenkun has quit [Remote host closed the connection]
icecandy has joined #ruby
mercwithamouth has joined #ruby
zastern has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
vigintas has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
vigintas has joined #ruby
mcarron has joined #ruby
JZTech101 has joined #ruby
browndawg has left #ruby [#ruby]
mercwithamouth has quit [Ping timeout: 252 seconds]
airlok has joined #ruby
osvico has quit [Ping timeout: 256 seconds]
arya has quit [Ping timeout: 246 seconds]
srunni has quit [Quit: Leaving]
aqil has quit [Ping timeout: 246 seconds]
arya has joined #ruby
mityaz has joined #ruby
zastern has quit [Remote host closed the connection]
pithagorians has quit [Ping timeout: 252 seconds]
DaniG2k has joined #ruby
cofin has quit [Quit: cofin]
nivoc has quit [Quit: nivoc]
tjbiddle has joined #ruby
morf has joined #ruby
LnL has joined #ruby
vigintas has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
vigintas has joined #ruby
morf is now known as morf_
kasper has joined #ruby
mklappstuhl has joined #ruby
samuel02 has quit [Remote host closed the connection]
aqil has joined #ruby
arya has quit [Ping timeout: 268 seconds]
subbyyy has quit [Ping timeout: 276 seconds]
nettoweb has joined #ruby
arya has joined #ruby
serp` has joined #ruby
JZTech101 has quit [Ping timeout: 246 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dmiller_ has quit [Remote host closed the connection]
jds_ has joined #ruby
vigintas has quit [Remote host closed the connection]
dmiller has joined #ruby
goganchic has joined #ruby
vigintas has joined #ruby
james__ has joined #ruby
JZTech101 has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Mattix has joined #ruby
snearch has quit [Quit: Verlassend]
DaniG2k has quit [Quit: Leaving.]
vigintas has quit [Remote host closed the connection]
statarb3 has quit [Quit: Leaving]
vigintas has joined #ruby
ly- has joined #ruby
tjbiddle_ has joined #ruby
lindenle has quit [Quit: This computer has gone to sleep]
goganchic has quit []
jds_ has quit [Ping timeout: 268 seconds]
tjbiddle has quit [Ping timeout: 268 seconds]
tjbiddle_ is now known as tjbiddle
dmiller has quit [Remote host closed the connection]
jds_ has joined #ruby
ntus1017 has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
arya has quit [Ping timeout: 246 seconds]
sideshowcoder has quit [Read error: Operation timed out]
arya has joined #ruby
zmike123 has quit [Read error: Operation timed out]
wsterling has joined #ruby
v0n has joined #ruby
serp` has quit [Quit: serp`]
jds_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 246 seconds]
sideshowcoder has joined #ruby
choobie has quit [Ping timeout: 246 seconds]
dankest has joined #ruby
marcgg_ has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
cooldman224 has joined #ruby
r0bgleeson has joined #ruby
v0n has quit [Read error: Operation timed out]
rickruby has joined #ruby
IceDragon has joined #ruby
Liothen has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
wsterling has quit [Remote host closed the connection]
zmike123 has joined #ruby
subbyyy has joined #ruby
choobie has joined #ruby
choobie has joined #ruby
choobie has quit [Changing host]
wargasm has quit [Ping timeout: 268 seconds]
ananthakumaran has quit [Quit: Leaving.]
ner0x has quit [Quit: Leaving]
tonini has joined #ruby
icecandy has quit [Remote host closed the connection]
mikewintermute has quit [Quit: mikewintermute]
dmiller has joined #ruby
samuel02 has joined #ruby
cooldman224 has quit [Read error: Connection reset by peer]
vikhyat has joined #ruby
cooldman224 has joined #ruby
relix has joined #ruby
relix has quit [Max SendQ exceeded]
relix has joined #ruby
kasper has quit [Remote host closed the connection]
airlok has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 276 seconds]
freerobby has quit [Quit: Leaving.]
airlok has joined #ruby
pkrnj has joined #ruby
phrozensilver has joined #ruby
relix has quit [Ping timeout: 276 seconds]
kasper has joined #ruby
ly- has quit [Remote host closed the connection]
milardovich has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
vikhyat has quit [Ping timeout: 246 seconds]
jalcine has quit [Excess Flood]
wargasm has joined #ruby
nettoweb has quit [Quit: nettoweb]
icecandy has joined #ruby
sz has joined #ruby
sz is now known as sgz
lutfidemirci has joined #ruby
RORgasm has joined #ruby
vigintas has quit [Ping timeout: 246 seconds]
rickruby has quit [Remote host closed the connection]
<sgz> Hello, I want to match a a certain pattern, eg: everything that starts with 'match' and have the lines starting with one or more spaces being included to (see: http://pastie.org/8095099 ) - how can I do that in ruby?
geoffw8_ has joined #ruby
<Mon_Ouie> Regular expressions would probably be the solution here
<r0bgleeson> sgz: it seems like you have a little language there, where 'match' starts an expression, 'and' continues it, & anything else stops it.
rickruby has joined #ruby
<Mon_Ouie> I'm guessing the 'and' might just be from the example though
<r0bgleeson> oh
generali_ has joined #ruby
RORgasm has quit [Ping timeout: 276 seconds]
<r0bgleeson> Mon_Ouie: it even sounds like there is assignment in there though
<r0bgleeson> "a as" "b as"
<popl> it's alllll speculation
randym_ has joined #ruby
<sgz> r0bgleeson: trying to do it with a regex, but unable to get the right result.
<r0bgleeson> yeah i am probably wrong
<r0bgleeson> but it reminded me of gherkin
<popl> no, that wasn't what I was implying r0bgleeson
<popl> you could very well be entirely correct!
workmad3 has joined #ruby
generalissimo has quit [Ping timeout: 256 seconds]
<Mon_Ouie> You can easily find the match lines with /^match/, then look for the next line that doesn't start with a space with /^\S/ — all the lines in between would therefore start with a space
james__ has quit [Ping timeout: 248 seconds]
jmimi has left #ruby [#ruby]
_maes_ has quit [Read error: Connection reset by peer]
vikhyat has joined #ruby
james__ has joined #ruby
harrymoreno has joined #ruby
espinet has joined #ruby
<espinet> is there a way to get 2 ruby modules to inherit the parent module? similar to class inheritance
<davidcelis> espinet: use include and extend?
<sgz> Mon_Ouie: any example somehwere? or can you paste one?
araujo has quit [Ping timeout: 246 seconds]
<r0bgleeson> espinet: you include the module in the two other modules
<espinet> aye, thanks
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
<popl> sgz: there's http://rubular.com if you want to test a regular expression on the web.
<popl> you might find that useful. :)
<sgz> popl: that's what I'm doing right now, but stuck :)
axeman__ has joined #ruby
Kruppe has quit [Remote host closed the connection]
<popl> sgz: Well you're being really vague so that makes it hard to help you. Is that your real data?
Godricglow has joined #ruby
airlok has quit [Remote host closed the connection]
<Mon_Ouie> sgz: My idea is to just use /^match.*$/ and /^\S/, with String#match with an index from which to match
Kruppe has joined #ruby
axeman_ has quit [Ping timeout: 256 seconds]
Jackneill has quit [Remote host closed the connection]
Godricglow has left #ruby [#ruby]
<Mon_Ouie> so begin = str.match(/^match.*$/, i); end = str.match(/^\S/, i + 1)
wargasm1 has joined #ruby
wargasm has quit [Read error: No route to host]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 246 seconds]
zmike123 has quit [Quit: ~]
butblack has joined #ruby
rickruby has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
eldariof has quit [Ping timeout: 246 seconds]
kyleisntwild has quit [Quit: Leaving]
<RubyPanther> /(?:^match)|\s{2}/
<RubyPanther> oops maybe /^(?:match|\s+)/
Hanmac has quit [Ping timeout: 260 seconds]
<r0bgleeson> that's flawed
<r0bgleeson> because now it will match on spaces, even if a 'match' is not nesting
marcgg_ has quit [Read error: No route to host]
marcgg has joined #ruby
<popl> parsing with regex is hard
momomomomo has joined #ruby
jds_ has joined #ruby
mercwithamouth has joined #ruby
whowantstolivefo has joined #ruby
DenSchub has joined #ruby
<morf_> nothing is easy
<r0bgleeson> he has a little language from what I see, a regex is quick + works but if you look at the text it seems to have assignments & contexts (where "match
arya has quit []
dodosan has joined #ruby
<r0bgleeson> starts a context")
r0bgleeson has quit [Quit: WeeChat 0.3.8]
arya has joined #ruby
r0bgleeson has joined #ruby
jds_ has quit [Ping timeout: 256 seconds]
<popl> morf_: sorry. my implication was that regular expressions may not be the correct tool for this job.
mercwithamouth has quit [Ping timeout: 246 seconds]
<morf_> do you think i really care?
<popl> perhaps I was too subtle.
<popl> you commented, so I thought you might.
paissad has quit [Quit: This computer has gone to sleep]
mahmoudimus has joined #ruby
<r0bgleeson> did my last message get through?
<r0bgleeson> about his text
<Mon_Ouie> Last thing you said: <r0bgleeson> starts a context")
<popl> 12:45 < r0bgleeson> starts a context")
<r0bgleeson> yeah ok thanks
paissad has joined #ruby
<RubyPanther> yeah recursive descent is more appropriate than regex for multiline conditionals
<pontiki_> what about using a flip-flop? will that work there?
<pontiki_> sgz's problem
<Mon_Ouie> For the fun of it, my solution https://gist.github.com/5892414
tomlol has joined #ruby
<Mon_Ouie> (You can make it cleaner by defining an each_match method to iterate through them, but that's the idea)
<Mon_Ouie> Well, the early return isn't placed right though
jackal_af has quit [Read error: Operation timed out]
<DenSchub> ohai. I get a segfault at ethon's curl call. debian 6, ruby 1.9.3-p448, https://gist.github.com/denschub/eccaf8ae2b2293388470/raw/b0cada398b3220e35536d1ca291736b7b4d42c72/gistfile1.txt with curl 7.21.0 (debian repos...) any ideas?
axeman__ has quit [Ping timeout: 268 seconds]
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
axeman_ has joined #ruby
<popl> Mon_Ouie++
wsterling has joined #ruby
Davey has joined #ruby
mcarron has quit [Ping timeout: 256 seconds]
mklappstuhl has quit [Remote host closed the connection]
airlok has joined #ruby
arya has quit [Ping timeout: 256 seconds]
<r0bgleeson> Mon_Ouie: I hadn't even seen MatchData#end before
wsterling has quit [Ping timeout: 252 seconds]
marcgg has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
denver has quit [Remote host closed the connection]
RichardBaker has joined #ruby
jalcine- has joined #ruby
jalcine- has quit [Excess Flood]
jalcine- has joined #ruby
saarinen has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
Hanmac has joined #ruby
espinet has quit [Quit: espinet]
Thermo has joined #ruby
saarinen has quit [Quit: saarinen]
Hanmac1 has quit [Ping timeout: 264 seconds]
jbpros has joined #ruby
axeman_ has quit [Remote host closed the connection]
axeman_ has joined #ruby
JZTech101 has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
nbouscal has joined #ruby
axeman_ has quit [Ping timeout: 268 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
MrZYX|off is now known as MrZYX
<Veejay> Is it a good idea (or even possible) to completely remove the STUPID system Ruby on Mac OS X?
<Veejay> I hate even the idea of it
vlad_sta_ has joined #ruby
<Mon_Ouie> I doubt it's a good idea, some system code might rely on it being there
<Veejay> Thank you Mon_Ouie, will follow that piece of advice
<Veejay> Though I do wonder why Apple would lock us up like this
<Veejay> As long as a Ruby is installed, why should it matter?
yacks has joined #ruby
<Veejay> (Yes, I am being capricious)
<momomomomo> Veejay: the system ruby may be used for system things.
<Veejay> momomomomo: I totally understand that
<Veejay> But a Ruby is a Ruby, isn't it? Unless they rely on some older version of Ruby which features that have been deprecated since
<Mon_Ouie> You can change your environment variable so as to use whichever ruby version you want though
<Veejay> Which is possible
<Veejay> Mon_Ouie: Oh I have rbenv all set up
<Veejay> With JRuby, MRI 2.0, Rubinius and tons of other exotic Rubies
<momomomomo> No; just like anything, version management is essential because upgrades/downgrades can change expected functionality
vlad_starkov has quit [Ping timeout: 248 seconds]
<momomomomo> It's that simple.
ToApolytoXaos has quit [Quit: Leaving]
zz_pinage404 is now known as pinage404
blueBoxerWall has joined #ruby
brianherman has joined #ruby
blueBoxerWall has left #ruby [#ruby]
<r0bgleeson> Veejay: that apple ship ruby is a great, and they do use ruby in their own scripts, which are 1.8 for now
<r0bgleeson> so you cant just drop in any ruby
<r0bgleeson> and it wouldnt make sense for them to be expected to do that, just use one version & know it works
mars__ has quit [Ping timeout: 248 seconds]
<Veejay> r0bgleeson: Apple shipping Ruby is a great thing and all, word
<Veejay> But come on
<Veejay> In 2013 and with like 60 billions in the bank, they can't somehow manage to upgrade the version?
<r0bgleeson> Veejay: you can remove the system ruby, and make 'ruby' available, 1.9 or whatever you want, there's nothing to stop you, there's no assurance it'll continue to work though
<Veejay> Not that it matters then again, I was just wondering
<r0bgleeson> maverick has updated to 2.0.0
<r0bgleeson> and not updating to 1.9 is not so simple either
<r0bgleeson> macruby was their 1.9, but it is no longer under apples care
<Veejay> They're at 2.0?
<Veejay> Well, awesome then
<r0bgleeson> on maverick yeah
<Veejay> Well done Apple
<Veejay> I just got served
<r0bgleeson> and i think it was the intention for macruby to be the 1.9 implementation of ruby but the developer who worked at apple moved on and no one took it up from inside apple, so i think that's why the 1.9 series was missing
Dreamer3 has quit [Read error: Connection reset by peer]
<Veejay> Well, now I know
<Veejay> Thanks for the additional information, nice touch
<Veejay> Awesome that they'll be shipping 2.0
danneu has joined #ruby
blackmesa has joined #ruby
sgz has quit [Quit: Page closed]
allsystemsarego has quit [Quit: Leaving]
jimg has joined #ruby
pipework has joined #ruby
<pontiki_> so, no, flip-flop won't work in sgz's case
<pontiki_> my stupid hack: https://eval.in/35771
<pontiki_> it's so ugly
tomlol has quit []
<pontiki_> given the data
subbyyy has quit [Ping timeout: 246 seconds]
jimg has quit [Ping timeout: 256 seconds]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
Hanmac1 has joined #ruby
<pontiki_> this works too: https://eval.in/35773
Hanmac has quit [Ping timeout: 240 seconds]
teddyp1cker has quit [Remote host closed the connection]
milardovich has quit [Quit: Leaving]
momomomomo_ has joined #ruby
jbpros has quit [Quit: jbpros]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
butblack has left #ruby [#ruby]
phrozensilver has quit [Ping timeout: 246 seconds]
<Mon_Ouie> The problem with the second solution is that you don't know which match expression is associated with a line that begins with a space
ntus1017 has joined #ruby
<Mon_Ouie> There might in fact, as mentioned before, be none
<pontiki_> right, that's why i said "given the data"
momomomomo_ has quit [Ping timeout: 264 seconds]
<pontiki_> even at that, given the go in in order, they come out in the same order
Al__ has joined #ruby
Davey has joined #ruby
gadgetoid has quit [Read error: Connection reset by peer]
gadgetoid has joined #ruby
wargasm1 has quit [Read error: Connection reset by peer]
Thermo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 248 seconds]
Vert has joined #ruby
ggordan_ has quit [Remote host closed the connection]
Evixion has joined #ruby
ravster has quit [Quit: Leaving.]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Al__ has quit [Quit: Al__]
<momomomomo> pontiki_: what's your question?
<pontiki_> about?
zastern has joined #ruby
blast_hardcheese has joined #ruby
Al__ has joined #ruby
Thermo has joined #ruby
<Mon_Ouie> His code is answer to sgz's question
<momomomomo> Don't know, whatever bit of code you posted earlier
_Andres has joined #ruby
<momomomomo> oh ok
<pontiki_> this one does it with RE: https://eval.in/35782
<momomomomo> which was..?
Davey has quit [Quit: Computer has gone to sleep.]
<Mon_Ouie> <sgz> Hello, I want to match a a certain pattern, eg: everything that starts with 'match' and have the lines starting with one or more spaces being included to
Al__ has quit [Client Quit]
RobW_ has quit [Quit: RobW_]
<blast_hardcheese> Coming from a Python background here, please pardon my ignorance; I'm trying to use some software available via gem, but I am completely lost.
RobW_ has joined #ruby
PSKOSINSKI has quit [Remote host closed the connection]
<blast_hardcheese> I'm attempting to use gem in a standalone way in my own home directory,
<pontiki_> which gem
<blast_hardcheese> with its own version of ruby, independant of the system Ruby
<pontiki_> blast_hardcheese: do you know about rbenv or rvm?
PSKOSINSKI has joined #ruby
<blast_hardcheese> pontiki_: It should work with anything, right? The program I'm trying to use is called "cocoapods"
Deele has quit [Ping timeout: 240 seconds]
<popl> blast_hardcheese: are you the same blasthardcheese from #bash?
<blast_hardcheese> pontiki_: I have heard of rvm, but the last time I tried to use it didn't go too well.
<pontiki_> heh, that happens
<pontiki_> which OS do you run?
<popl> I was advised that rvm is very spaghetti and to avoid it.
<blast_hardcheese> popl: No, he started using my nick a couple years ago, unfortunately.
acook8103 has joined #ruby
<blast_hardcheese> pontiki_: Typically I run Debian, but I'm starting to do more iPhone development again, so I'm back on the Mac.
wargasm has joined #ruby
<pontiki_> it's funny, cause when i started, everyone said "USE RVM!! ALL THE RVM"
<pontiki_> there's also chruby
<blast_hardcheese> I'm really hoping for something like Python's virtualenv, which uses shell goodness to point all relevant environment vars at the right places, only when you need it though.
Myk267 has quit [Remote host closed the connection]
<pontiki_> that would be rvm :/
<blast_hardcheese> oh dear.
Liothen has quit [Remote host closed the connection]
<blast_hardcheese> What's the difference between rvm and chruby then?
<pontiki_> chruby is dead stupid
<pontiki_> you call it to change the ruby version
<blast_hardcheese> Oh, it just swaps the symlinks.
<pontiki_> nothing automatic, nothing remembered from login to login
<blast_hardcheese> Seems dangerous, switching the system Ruby version.
horofox_ has joined #ruby
<pontiki_> it's not
<pontiki_> it does run that early
<pontiki_> you run it in your term
<blast_hardcheese> Oh, that sounds like exactly what I want then
<pontiki_> but then -- if you have apps that launch from launchd, they only get system ruby
<pontiki_> so like say you're using subl or tm, the ruby they will run to do stuff is the system ruby
<blast_hardcheese> Fortunately I don't have any launchd needs for ruby
<blast_hardcheese> just in my shell.
<pontiki_> that means you can't run rake from them either
<pontiki_> and have it use the same ruby
<blast_hardcheese> sorry, from what?
<popl> rake is the ruby build systm
<pontiki_> from an editor like Sublime Text 2 or TextMate
<popl> *system
<blast_hardcheese> Fortunately I do not do such things
<blast_hardcheese> I seriously only need it for the terminal :)
RORgasm has joined #ruby
<popl> if you have ruby installed you have rake installed and should be able to read the man page
<pontiki_> good enough then
<popl> I haven't learned about it really.
nettoweb has joined #ruby
<pontiki_> you could stick a line in your .bash_profile to run it if you always want that particular version when you log in
<pontiki_> there's pro and con to that, of course
<blast_hardcheese> right
<blast_hardcheese> I've got that kind of stuff set up for other things
mikewintermute has joined #ruby
<pontiki_> anywho, chruby can be gotten from homebrew on the mac
<blast_hardcheese> Oh, sweet, chruby is available for homebrew
<pontiki_> ^^ :>
samuel02 has quit [Remote host closed the connection]
dodosan has quit [Remote host closed the connection]
RORgasm has quit [Ping timeout: 276 seconds]
<blast_hardcheese> This might actually be good
Zolo has quit [Remote host closed the connection]
Spami has joined #ruby
Spami has joined #ruby
TheDick has joined #ruby
Zolo has joined #ruby
ntus1017 has quit [Remote host closed the connection]
wmoxam has joined #ruby
generali_ has quit [Remote host closed the connection]
RORgasm has joined #ruby
airlok has quit [Remote host closed the connection]
Davey has joined #ruby
Zolo has quit [Ping timeout: 276 seconds]
Davey has quit [Client Quit]
tylersmith has joined #ruby
osvico has joined #ruby
swordsmanz_ has joined #ruby
swordsmanz has quit [Ping timeout: 260 seconds]
swordsmanz_ is now known as swordsmanz
RORgasm has quit [Ping timeout: 268 seconds]
phrozensilver has joined #ruby
marr has joined #ruby
nettoweb has quit [Quit: nettoweb]
erry is now known as zombierry
dmiller has joined #ruby
generalissimo has joined #ruby
Astralum has quit [Ping timeout: 256 seconds]
IceDragon has quit [Ping timeout: 268 seconds]
hadees has joined #ruby
ttyr3 has joined #ruby
kidoz has joined #ruby
_e_ has joined #ruby
Mars` has joined #ruby
aqil has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
icecandy has quit [Remote host closed the connection]
rehat has quit [Remote host closed the connection]
lindenle has joined #ruby
_e_ has quit [Client Quit]
Astralum has joined #ruby
icecandy has joined #ruby
mars__ has joined #ruby
daniel_hinojosa has joined #ruby
kirun has quit [Quit: Client exiting]
icecandy has quit [Remote host closed the connection]
postmodern has joined #ruby
havenwood has joined #ruby
ttyr3 has quit [Quit: leaving]
kidoz has quit [Quit: Ухожу я от вас]
<blast_hardcheese> It worked!
<blast_hardcheese> This is great!
<blast_hardcheese> pontiki_: Thanks a bunch
wmoxam has quit [Ping timeout: 260 seconds]
spider-mario has quit [Read error: Connection reset by peer]
codezombie has quit [Ping timeout: 248 seconds]
IceDragon has joined #ruby
JZTech101 has joined #ruby
Inside has joined #ruby
<Inside> heyo
<Inside> is there a gem for printing debug info to console?
<apeiros_> Inside: like Kernel#puts, #p, #pp?
<Inside> I guess I'm looking for something like debug_print(:some_section_name, stuff to pring here)
<Inside> and then at the start of the program you specify it the sections to print debug info from.. this way I'm not always putting puts everywhere and then sticking a # in front ;D
<Inside> Or.. something more fancy than that, I guess.
kasper has quit [Remote host closed the connection]
jefflyne has joined #ruby
kasper has joined #ruby
arya has quit [Ping timeout: 246 seconds]
morf_ has quit [Quit: A metaphysical dichotomy has caused this unit to overload and shut down.]
mikewintermute has quit [Quit: mikewintermute]
james__ has quit [Quit: Leaving]
arya has joined #ruby
jarin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
nbouscal has joined #ruby
devoldmx3 has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
mengu has joined #ruby
butblack has joined #ruby
ffio has quit [Read error: Operation timed out]
rickruby has joined #ruby
laitances14 has quit [Ping timeout: 240 seconds]
ffio_ has joined #ruby
arya has quit [Ping timeout: 276 seconds]
mikewintermute has joined #ruby
quazimodo has quit [Ping timeout: 264 seconds]
rickruby has quit [Remote host closed the connection]
rickruby has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
nfk has quit [Quit: yawn]
cads has joined #ruby
cads has quit [Max SendQ exceeded]
lutfidemirci has quit [Remote host closed the connection]
cads has joined #ruby
arya has joined #ruby
Thermo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cads has quit [Max SendQ exceeded]
<butblack> why does this only remove the first @ sign? https://gist.github.com/ebbflowgo/7f77254671983169a49c
vikhyat has quit [Read error: Connection reset by peer]
codecop has quit [Remote host closed the connection]
vikhyat has joined #ruby
zombierry is now known as erry
cads has joined #ruby
whowantstolivefo has quit [Ping timeout: 252 seconds]
<popl> butblack: no global flag?
brum has joined #ruby
<butblack> popl: how would I fix it?
<popl> hang on let me see
<apeiros_> butblack: because sub only replaces 1 occurrence
<apeiros_> use gsub for all
marcgg has quit [Ping timeout: 248 seconds]
Thermo has joined #ruby
<butblack> apeiros_: bingo, thanks
<popl> ah
TheDick has quit [Quit: TheDick]
<apeiros_> and @ popl - there's no global flag in ruby regex
<popl> apeiros_++
<popl> I just realized this looking at documentation
RichardBaker has quit [Quit: RichardBaker]
<apeiros_> globality of a regex is the duty of the applying method
<popl> I will have to check out the implementation
<popl> yeah
<popl> that's what I figured it was
RichardBaker has joined #ruby
whowantstolivefo has joined #ruby
devoldmx3 has quit [Read error: Connection reset by peer]
RichardBaker has quit [Client Quit]
marcgg has joined #ruby
RichardBaker has joined #ruby
RichardBaker has quit [Client Quit]
Thermo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RichardBaker has joined #ruby
pkrnj has joined #ruby
RichardBaker has quit [Read error: Connection reset by peer]
richiebkr has joined #ruby
richiebkr has quit [Client Quit]
monkegjinni has joined #ruby
cofin has joined #ruby
mengu_ has joined #ruby
mengu has quit [Ping timeout: 246 seconds]
Thermo has joined #ruby
mercwithamouth has joined #ruby
cooldman224 has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
laitances14 has joined #ruby
nezumi has joined #ruby
mengu__ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Thermo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
subbyyy has joined #ruby
mengu__ has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu_ has quit [Ping timeout: 248 seconds]
serp` has joined #ruby
serp` has quit [Client Quit]
peta_ has joined #ruby
paissad has quit [Quit: This computer has gone to sleep]
Inside has quit [Ping timeout: 256 seconds]
ner0x has joined #ruby
paissad has joined #ruby
subbyyy has quit [Read error: Connection reset by peer]
ChronocityLC has joined #ruby
yourmysin has joined #ruby
osvico has quit [Ping timeout: 246 seconds]
deadalus has quit [Excess Flood]
vikhyat has quit [Remote host closed the connection]
mityaz has quit [Quit: See ya!]
arya has quit [Ping timeout: 248 seconds]
lutfidemirci has joined #ruby
deadalus has joined #ruby
forced_request has quit [Ping timeout: 246 seconds]
vikhyat has joined #ruby
lindenle has quit [Quit: This computer has gone to sleep]
patteh_ is now known as Patteh
vikhyat has quit [Remote host closed the connection]
vikhyat has joined #ruby
thibauts_ has quit [Ping timeout: 268 seconds]
Silent__ has joined #ruby
mengu has quit [Ping timeout: 260 seconds]
thibauts has joined #ruby
milardovich has joined #ruby
passcod has quit [Remote host closed the connection]
passcod has joined #ruby
IcyDragon has joined #ruby
brianherman has quit [Read error: Connection reset by peer]
TheDick has joined #ruby
IceDragon has quit [Ping timeout: 252 seconds]
arya has joined #ruby
danslo has joined #ruby
Hobogrammer_ has quit [Ping timeout: 256 seconds]
cads has quit [Quit: Leaving]
mars__ has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
Mars` has quit [Ping timeout: 264 seconds]
Davey has joined #ruby
Davey has quit [Max SendQ exceeded]
lutfidemirci has quit [Ping timeout: 268 seconds]
subbyyy has joined #ruby
Davey has joined #ruby
Davey has quit [Max SendQ exceeded]
Davey has joined #ruby
Davey has quit [Max SendQ exceeded]
lindenle has joined #ruby
Davey has joined #ruby
kofno has joined #ruby
RobW_ has quit [Quit: RobW_]
vlad_starkov has joined #ruby
Mattix has quit [Ping timeout: 256 seconds]
Peej has joined #ruby
elaptics is now known as elaptics`away
azerton has joined #ruby
jalcine- is now known as jalcine
jalcine has quit [Changing host]
jalcine has joined #ruby
azerton has quit [Client Quit]
Davey has quit [Quit: Computer has gone to sleep.]
hadees has quit [Quit: hadees]
predator217 has joined #ruby
Dekade has quit [Ping timeout: 246 seconds]
arya has quit [Read error: Connection reset by peer]
eka has quit [Quit: Computer has gone to sleep.]
hamakn has joined #ruby
zastern has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 252 seconds]
arya has joined #ruby
zastern has joined #ruby
Spaceghost|work has joined #ruby
zastern has quit [Remote host closed the connection]
pipework has quit [Ping timeout: 248 seconds]
blitz has joined #ruby
TheDick has quit [Quit: TheDick]
Kar- has quit [Remote host closed the connection]
zigomir_ has joined #ruby
julweber has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
pinage404 is now known as zz_pinage404
Trynemjoel has joined #ruby
zigomir has quit [Ping timeout: 268 seconds]
RORgasm has joined #ruby
monkegjinni has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 260 seconds]
fgo has joined #ruby
mikepack has joined #ruby
Dekade has joined #ruby
TheDick has joined #ruby
RORgasm has quit [Ping timeout: 260 seconds]
vikhyat has quit [Remote host closed the connection]
motto has quit [Read error: Connection reset by peer]
wu_lmao has joined #ruby
lindenle has quit [Quit: This computer has gone to sleep]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
espinet has joined #ruby
zastern has joined #ruby
espinet has quit [Client Quit]
Flobin has quit [Read error: Connection reset by peer]
cofin has quit [Quit: cofin]
noxgirl is now known as autumn
sailias has joined #ruby
fuhgeddaboudit has joined #ruby
PSKOSINSKI has quit [Ping timeout: 240 seconds]
blitz has quit [Quit: This computer has gone to sleep]
choobie has quit [Ping timeout: 261 seconds]
Asher has quit [Ping timeout: 256 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
rickmasta has joined #ruby
lutfidemirci has joined #ruby
ShellFu_afk has quit [Remote host closed the connection]
Asher has joined #ruby
PSKOSINSKI has joined #ruby
agjacome has joined #ruby
brianherman has joined #ruby
JZTech101 has quit [Ping timeout: 268 seconds]
mars__ has joined #ruby
lutfidemirci has quit [Ping timeout: 268 seconds]
peta_ has quit [Quit: peta_]
Xeago has joined #ruby
RobW_ has joined #ruby
RobW_ has quit [Client Quit]
mars__ has quit [Ping timeout: 276 seconds]