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 || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<xibalba> I'm not sure I get Array.Each. Is there any point to calling each() without an associated block?
<volty> freezey_: for me it works
<xibalba> i did puts my_array.each and just returned an Enumerator and a hex address
baroquebobcat has quit [Quit: baroquebobcat]
scarolan has joined #ruby
<freezey_> volty: ok
<freezey_> not 100% sure howto
<freezey_> but
<freezey_> i will check
ItSANgo has quit [Quit: Leaving...]
<volty> freezey_: I mean your example works
<freezey_> command line and ruby yield different results
hogeo has quit [Ping timeout: 245 seconds]
<volty> though I cannot test it since hostname it returns only one word string for me
<PPH> Hi, how can I map a hash to a new hash but with keys switched to downcase?
<volty> PPH: with inject, or with each
hiroyuki has quit [Read error: Connection reset by peer]
Guest90037 has quit [Ping timeout: 252 seconds]
ner0x has joined #ruby
<PPH> ok so inject is changing the current hash and with each I must create a hash to populate before?
mikepack has quit [Remote host closed the connection]
<xibalba> whats the avg age of you guys in here?
mikepack has joined #ruby
<havenwood> 33.33 repeating of course
<PPH> well I think I don't get how inject is working... I'll take a look about it.
<volty> >> { 'A' => 2, 'B' => 3 }.inject({}) { |t, (k, v)| t[k.downcase] = v; t }
<eval-in> volty => {"a"=>2, "b"=>3} (https://eval.in/66796)
<xibalba> lol havenwood
<volty> i'm 17
<freezey_> volty: yeah it works but when you execute it with ruby you get different results
<freezey_> which is kinda odd
<xibalba> havenwood, mind helping me out w/a trivial newb Q. Looking over Array.Each() and wondering if there is any sense in ever using that method w/out a code block
<freezey_> i was wondering why that would be happening
<nobitanobi> PPH, try this: myhash.each_pair do |k,v| new_hash.merge!({k.downcase => v}) end
<volty> freezey_: where differ?
weszlem has quit []
<havenwood> Or another way:
x1337807x has joined #ruby
<havenwood> >> hash = {'YELLING' => 1, 'ANOTHER' => 2}; Hash[hash.map { |k, v| [k, v] }]
<freezey_> so when you execute it from cli on the actual linux machine it removes either the word node or nas.. when you execute it in ruby it keeps the word node or nas in the result
<eval-in> havenwood => {"YELLING"=>1, "ANOTHER"=>2} (https://eval.in/66797)
<havenwood> >> hash = {'YELLING' => 1, 'ANOTHER' => 2}; Hash[hash.map { |k, v| [k.downcase, v] }]
<eval-in> havenwood => {"yelling"=>1, "another"=>2} (https://eval.in/66798)
ItSANgo has joined #ruby
<joshu> hey havenwood
<havenwood> hey
<PPH> volty's inject is doing perfect thank you
mklappstuhl has quit [Remote host closed the connection]
<volty> xibalba: as long as you use (later) the returned enumerator
<havenwood> PPH: Or: require 'hashy'; hash.map_key &:downcase
<xibalba> volty, what can i do with the returned enumerator?
<xibalba> is this returned enumerator, #<Enumerator:0x00000001ce63b8>
<xibalba> , basically the memory address of the array i just called each() on ?
<joshu> havenwood do you know of any existing ruby scripts, projects that can be used to a) save new tweets that show up on your home timeline and b) that i can use to view tweets i've missed the past two weeks on my home timeline?
<volty> xibalba: whatever you want, iterate, to_a, map
mikepack has quit [Ping timeout: 245 seconds]
jhulten has quit [Remote host closed the connection]
<volty> no no, the number is the address of the returned object (the enumerator itself)
<volty> ops, not address but ID
lmadrigal has joined #ruby
srji has quit [Ping timeout: 264 seconds]
<havenwood> joshu: tried the twitter gem?
<joshu> someone else suggested it and i was trying just nu with a simple script but i was hoping there might be something ready made so i don't have to build it
<xibalba> volty, thanks
<freezey_> volty: ^^
carif has joined #ruby
<volty> freezey_: your hostname could be aliased
<joshu> havenwood yeah that's what i've been trying to use
<volty> try using full params
<havenwood> joshu: Does stuff like `Twitter.user_timeline('somebody')` return what you'd expect?
johnnyfuchs has quit [Quit: Leaving.]
<havenwood> joshu: Or `Twitter.home_timeline` if you've authenticated?
Guest37962 has joined #ruby
Guest37962 is now known as parduse
<joshu> havenwood i tested with this https://gist.github.com/anonymous/718c5582677e85e1b725 but every time I run it I get this error "Twitter::REST (NameError)
samuel02 has joined #ruby
<freezey_> volty: yeah i used full paths and still yields different results the sed doesnt actually get executed is what it looks like
parduse is now known as Guest41833
<joshu> but i get that error which I don't understand as the gem is installed and i've copied that code from the github readme
Guedes0 has quit [Ping timeout: 240 seconds]
threesome has joined #ruby
<havenwood> joshu: i've never really worked with this gem, looks like elsewhere in the docs REST is oft removed, just: Twitter.configure do |config|
nateberkopec has joined #ruby
<freezey_> volty: yeah i dunno man its odd that ruby sends different results
<freezey_> trying to figure out why
<havenwood> joshu: ahh, the syntax you mention is 'new in version 5'
mklappstuhl has joined #ruby
tharindu has joined #ruby
<havenwood> joshu: So the disconnect is that the Github docs are 5.0.0.rc1.
vlad_starkov has joined #ruby
<havenwood> joshu: But if you gem install, without --pre, you'll get 4.8.1.
<havenwood> joshu: Docs that ship with gem are correct for 4.8.1.
<joshu> i tried both ways i.e. without REST but that still didn't work. never mind I wasn't keen on building something as I just wanted to save tweets as soon as possible and possibly retrieve ones i've missed. it's not the end of the world.
<joshu> the version i have installed is 4.8.1.
samuel02 has quit [Ping timeout: 245 seconds]
<havenwood> joshu: Well, just only use 4 docs then, don't at all use the Github ones, they aren't compatible.
__zxq9__ has quit [Quit: Konversation terminated!]
<havenwood> joshu: Or do use the Github docs and: gem install twitter --pre
jbw has quit [Read error: Operation timed out]
<joshu> havenwood ah didn't see that I'll try with the old syntax
<freezey_> volty: yeah its not executing the sed which is what i just found
jbw has joined #ruby
zaargy has quit [Ping timeout: 246 seconds]
zaargy has joined #ruby
<joshu> thanks havenwood ;)
<havenwood> joshu: np, happy hacking!
Guest41833 has quit [Remote host closed the connection]
lfox has joined #ruby
phinfonet has joined #ruby
tharindu has quit [Ping timeout: 240 seconds]
parduse has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
parduse is now known as Guest28221
VTLob has quit [Quit: VTLob]
lfox has quit [Client Quit]
mlpinit has quit [Remote host closed the connection]
nanoyak has quit [Ping timeout: 272 seconds]
mlpinit has joined #ruby
banjara has quit [Quit: Leaving.]
vlad_starkov has quit [Ping timeout: 246 seconds]
banjara has joined #ruby
mlpinit_ has joined #ruby
banjara has quit [Client Quit]
<volty> freezey_: I was just suspecting something like that
lmadrigal has quit [Quit: Computer has gone to sleep.]
banjara has joined #ruby
baumax has joined #ruby
tharindu has joined #ruby
<freezey_> yeah got it
<freezey_> nice
jalcine has quit [Excess Flood]
kofno has quit [Ping timeout: 246 seconds]
marr has quit [Ping timeout: 240 seconds]
mlpinit has quit [Ping timeout: 272 seconds]
Guest28221 has quit [Read error: Operation timed out]
banjara has quit [Client Quit]
parduse has joined #ruby
nfk has quit [Quit: yawn]
zz_karupanerura is now known as karupanerura
parduse is now known as Guest92221
banjara has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
Guest12534 has joined #ruby
<baumax> golf competition: split a string into space-delimited words, reverse the words, join the string with spaces, print it
hogeo has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
Advocation has joined #ruby
werdnativ has quit [Ping timeout: 245 seconds]
<volty> >> "How are you?".split(/\s+/).map(&:reverse).reverse.join(' ')
<eval-in> volty => "?uoy era woH" (https://eval.in/66800)
Guest92221 has quit [Remote host closed the connection]
Paradox has joined #ruby
<baumax> nice
<jblack> you reversed the letter too
<jblack> "How are you?".split.reverse.join " "
Guest12534 is now known as jacky
<volty> i presumed they had to be reversed too
jacky has quit [Changing host]
jacky has joined #ruby
hogeo has quit [Remote host closed the connection]
<sam113101> >> "How are you?".reverse
<eval-in> sam113101 => "?uoy era woH" (https://eval.in/66801)
<sam113101> much simpler
<volty> (I fix the questions)
<volty> ???
jacky is now known as jalcine
Guest37962 has joined #ruby
Guest37962 is now known as parduse
hogeo has joined #ruby
<volty> ???"How are you?".reverse
<volty> >> "How are you?".reverse
<eval-in> volty => "?uoy era woH" (https://eval.in/66802)
nateberkopec has quit [Quit: Leaving...]
wildroman2 has joined #ruby
parduse is now known as Guest91973
<volty> question of extra :)
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
capicue has joined #ruby
hogeo_ has joined #ruby
<sam113101> >> "How are you?".gsub(/\s+/, ' ').reverse
<eval-in> sam113101 => "?uoy era woH" (https://eval.in/66803)
<baumax> nice examples!
vx9r has joined #ruby
pel_daniel has left #ruby [#ruby]
hogeo has quit [Read error: Connection reset by peer]
Advocation has quit [Ping timeout: 264 seconds]
<volty> golf is golf
<volty> golf question -> golf answer
<havenwood> >> puts'golf is golf'.split.map &:reverse
<eval-in> havenwood => flog ... (https://eval.in/66804)
<havenwood> Well, i didn't join, fine:
<havenwood> >> 'golf is golf'.split.map(&:reverse)*' '
<eval-in> havenwood => "flog si flog" (https://eval.in/66805)
<sam113101> the question wasn't KISS
iliketurtles has joined #ruby
gustavo__ has joined #ruby
wildroman2 has quit [Ping timeout: 248 seconds]
<sam113101> it had redundant steps
Guest91973 has quit [Remote host closed the connection]
<havenwood> not much golf to be had in that one
<sam113101> exactly
snuffeluffegus has quit [Remote host closed the connection]
<volty> i'm a bit frightened of the new world, i see more and more robots around :)
baroquebobcat has joined #ruby
jlast has joined #ruby
mlpinit_ has quit [Quit: Leaving...]
jlast_ has quit [Read error: Connection reset by peer]
Guest37962 has joined #ruby
Guest37962 is now known as parduse
parduse is now known as Guest57992
Guest57992 has quit [Read error: Connection reset by peer]
mklappstuhl has quit [Remote host closed the connection]
<volty> ok: the guy is learning, so I see (so: imho) no sense in giving pedantic exact answers counting the steps
predator117 has quit [Ping timeout: 246 seconds]
scarolan has quit [Ping timeout: 244 seconds]
<volty> I'm sure that baumax is happy with all these answer, with all of them
predator117 has joined #ruby
larissa has quit [Quit: Leaving]
baroquebobcat has quit [Ping timeout: 272 seconds]
frx has joined #ruby
parduse has joined #ruby
tomzx_mac has quit [Quit: return 0;]
<frx> what GUI library do you guys usually use? Gtk/Qt? or is there any high level?
parduse is now known as Guest6164
<volty> Which server (the most simple) should I use for serving just (only) rss feeds?
benlieb has joined #ruby
<volty> i'm with Qt
mlpinit has joined #ruby
Guest6164 has quit [Read error: Connection reset by peer]
RaCx has joined #ruby
Monie has joined #ruby
robustus has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
srji has joined #ruby
Guest37962 has joined #ruby
Guest37962 is now known as parduse
parduse is now known as Guest67691
Monie has quit [Client Quit]
<volty> I'm the only left with unanswered questions :(
froy has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robustus has joined #ruby
ravster has left #ruby [#ruby]
<sam113101> lighttpd
vx9r has quit [Quit: leaving]
nisstyre has quit [Quit: Leaving]
wesside has joined #ruby
tomzx_mac has joined #ruby
kofno has joined #ruby
tomzx_mac has left #ruby [#ruby]
<sam113101> I try to use gtk apps, because I find qt apps ugly (although they could *technically* look the same), but if I had to code a graphical app I'd probably like qt better as a programmer
ephemerian has quit [Quit: Leaving.]
iliketurtles has quit [Quit: zzzzz…..]
<volty> thx sam113101
* coldmethod completely agrees with sam113101, at looks so ugly on Linux
existensil has joined #ruby
Guest67691 has quit [Remote host closed the connection]
<volty> Qt with ruby is amazing. // As for the ugliness I think that the KDE makes them look ugly - I find qt applications to be much nicer than gtk's
RaCx has quit [Quit: Computer has gone to sleep.]
ukd1_ has joined #ruby
sailias has joined #ruby
btanaka has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
jrhorn424 is now known as zz_jrhorn424
parduse has joined #ruby
kofno has quit [Ping timeout: 272 seconds]
parduse is now known as Guest79778
srji has quit [Ping timeout: 264 seconds]
asteros has quit [Ping timeout: 244 seconds]
mikepack has joined #ruby
Aryasam has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
ukd1 has quit [Ping timeout: 272 seconds]
sevenseacat has joined #ruby
srji has joined #ruby
mixel has quit [Quit: mixel]
sambao21 has joined #ruby
Aryasam has joined #ruby
Guest79778 has quit [Read error: Connection reset by peer]
mikepack has quit [Ping timeout: 245 seconds]
timonv has quit [Ping timeout: 264 seconds]
parduse has joined #ruby
parduse is now known as Guest44896
tkuchiki has joined #ruby
sambao21 has quit [Ping timeout: 244 seconds]
jlast has quit [Remote host closed the connection]
rdalin has joined #ruby
banjara has quit [Quit: Leaving.]
mrj has joined #ruby
banjara has joined #ruby
jonathanwallace has joined #ruby
Guest44896 has quit [Ping timeout: 240 seconds]
freezey_ has quit [Remote host closed the connection]
jlast has joined #ruby
<superscott[8]> Following the ruby docs, and i keep getting 'implicit conversion of object into string' when running --$ digest = OpenSSL::Digest::SHA1.new
jlast has quit [Remote host closed the connection]
lukec has quit [Quit: lukec]
taternuts has joined #ruby
parduse has joined #ruby
Kricir has joined #ruby
jlast has joined #ruby
parduse is now known as Guest26618
<superscott[8]> nevermind, i think i'm getting it because i'm running in rails console
volty has quit [Quit: Konversation terminated!]
TheMoonMaster has quit [Remote host closed the connection]
flaccid_ has joined #ruby
jhulten has joined #ruby
banjara has quit [Quit: Leaving.]
Aryasam has quit [Ping timeout: 245 seconds]
jb41 has quit [Ping timeout: 260 seconds]
banjara has joined #ruby
misutowolf has joined #ruby
Guest26618 has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
jjbohn has joined #ruby
vlad_starkov has joined #ruby
tharindu has quit [Quit: Leaving...]
Aryasam has joined #ruby
Guest37962 has joined #ruby
Guest37962 is now known as parduse
jhulten has quit [Ping timeout: 248 seconds]
parduse is now known as Guest21022
<flaccid_> i do create() and default_task :create and still get Attempted to create command "create" without usage or description. Call desc if you want this method to be available as command or declare it inside a no_commands{} block.
kitak has joined #ruby
zeade has quit [Quit: Leaving.]
gustavo__ has quit [Quit: This computer has gone to sleep]
randomnick_ has quit [Quit: Leaving]
maletor has quit [Quit: Computer has gone to sleep.]
asteros has joined #ruby
<sn0wb1rd> flaccid_: give it a description and you should be good.It is required I guess
dmiller has joined #ruby
Lewix has quit [Remote host closed the connection]
Guest21022 has quit [Remote host closed the connection]
Guest37962 has joined #ruby
Guest37962 is now known as parduse
parduse is now known as Guest28872
yfeldblu_ has joined #ruby
DarthGandalf has quit [Ping timeout: 264 seconds]
Jeticus has joined #ruby
CaptainJet has quit [Disconnected by services]
Jeticus has quit [Client Quit]
bronson_ has joined #ruby
CaptainJet has joined #ruby
srji has quit [Ping timeout: 264 seconds]
CreativeEmbassy has joined #ruby
Mars__ has quit [Remote host closed the connection]
<flaccid_> sn0wb1rd: thanks mate. it seems with :desc i give it "" for param 1 in this case
kcombs has joined #ruby
Mars__ has joined #ruby
thelorax123 has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
thelorax123 has joined #ruby
Kricir has joined #ruby
yfeldblu_ has quit [Ping timeout: 240 seconds]
Guest28872 has quit [Remote host closed the connection]
misutowolf has quit [Ping timeout: 248 seconds]
RichardBaker has quit [Quit: RichardBaker]
tsykoduk is now known as zz_tsykoduk
Mars__ has quit [Ping timeout: 246 seconds]
iliketurtles has joined #ruby
duggiefresh has joined #ruby
banjara has quit [Quit: Leaving.]
Spami has joined #ruby
kofno has joined #ruby
DropsOfSerenity has joined #ruby
failshell has joined #ruby
huttan has quit [Ping timeout: 240 seconds]
Guedes0 has joined #ruby
sambao21 has joined #ruby
<flaccid_> hmm i need to work out how to define an option in format --foo-bar
parduse has joined #ruby
parduse is now known as Guest18632
<flaccid_> oh right, thats built in it seems with boolean
gstamp has quit [Ping timeout: 256 seconds]
tvw has quit []
Kricir has quit [Remote host closed the connection]
gstamp has joined #ruby
bronson_ has quit [Quit: bronson_]
diegoviola has joined #ruby
tylersmith has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 272 seconds]
tharindu has joined #ruby
Targen_ has quit [Ping timeout: 246 seconds]
failshell has quit []
Guest18632 has quit [Remote host closed the connection]
parduse has joined #ruby
heidi has quit [Quit: Leaving.]
jaimef has quit [Excess Flood]
parduse is now known as Guest72993
Davey has quit [Quit: Computer has gone to sleep.]
Guest72993 has quit [Read error: Connection reset by peer]
Hobogrammer has quit [Ping timeout: 240 seconds]
Hobogrammer has joined #ruby
Guest37962 has joined #ruby
Guest37962 is now known as parduse
parduse is now known as Guest59750
TheMoonMaster has joined #ruby
baroquebobcat has joined #ruby
bronson_ has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
DonRichie has quit [Ping timeout: 246 seconds]
DonRichie has joined #ruby
x1337807x has joined #ruby
gstamp_ has joined #ruby
x1337807x has quit [Client Quit]
srji has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
<flaccid_> sn0wb1rd: hmm problem doing this method is that foo help cannot be mapped to foo help default
Guest59750 has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 240 seconds]
bricker has joined #ruby
Davey has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<flaccid_> if i use default_task :create, the user has to know to get help, foo help create
<sn0wb1rd> flaccid_: pastebin?
Guest37962 has joined #ruby
Guest37962 is now known as parduse
DropsOfSerenity has quit [Quit: Peace.]
parduse is now known as Guest79278
jaimef has joined #ruby
rjhunter has joined #ruby
<flaccid_> sn0wb1rd: https://dpaste.de/vcOX
gstamp has quit [Ping timeout: 256 seconds]
gstamp_ is now known as gstamp
<sn0wb1rd> I think foo help just displays the top level help. Is that what you are saying?
jamblack has joined #ruby
johnnyfuchs has joined #ruby
johnnyfuchs has quit [Client Quit]
<flaccid_> sn0wb1rd: yeah they have to know the default command is to get its help
<flaccid_> and in turn create isn't actually a command you supply anyway
pixelgremlins_ba has joined #ruby
Guest79278 has quit [Remote host closed the connection]
<flaccid_> need to somehow map help create to help as there isn't commands
Guest37962 has joined #ruby
Guest37962 is now known as parduse
vlad_starkov has joined #ruby
tomzx_mac has joined #ruby
x1337807x has joined #ruby
parduse is now known as Guest78772
kenneth has joined #ruby
Guest78772 has quit [Client Quit]
pixelgremlins has quit [Ping timeout: 240 seconds]
Voodoofish430 has quit [Quit: Leaving.]
samuel02 has joined #ruby
parduse has joined #ruby
SirFunk_ has quit [Read error: Connection reset by peer]
parduse is now known as Guest96601
agent_white has quit [Quit: brb]
mikepack has joined #ruby
Aryasam has quit [Ping timeout: 248 seconds]
tharindu has quit [Quit: Leaving...]
samuel02 has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
<flaccid_> i think that is the only blocking caveat atm
<flaccid_> also trying to work out how to make it mandatory to supply one of two options
Guest96601 has quit [Remote host closed the connection]
<flaccid_> you must specify --foo or --bar
srji has quit [Ping timeout: 264 seconds]
tomzx_mac has quit [Quit: return 0;]
mikepack has quit [Ping timeout: 245 seconds]
<flaccid_> right, i probably will just need to make all options class_option for it to come out in the default help
yannucci has joined #ruby
Kricir has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
Guest83759 has joined #ruby
Guest83759 has left #ruby ["Leaving"]
wildroman2 has joined #ruby
ehc has quit [Quit: ehc]
Guest83759 has joined #ruby
SirFunk has joined #ruby
<nobitanobi> see u guys l8!
nobitanobi has left #ruby ["Leaving"]
mattattaque has joined #ruby
eeriegeek has quit [Ping timeout: 240 seconds]
Guest72347 has joined #ruby
Guest72347 is now known as parduse
coderhs has quit [Ping timeout: 264 seconds]
parduse is now known as Guest9004
eeriegeek has joined #ruby
kitak_ has joined #ruby
kitak has quit [Read error: Connection reset by peer]
mrsolo has joined #ruby
jlast has quit [Remote host closed the connection]
banjara has joined #ruby
ukd1_ has quit [Quit: Leaving...]
Hanmac1 has joined #ruby
mrsolo has left #ruby [#ruby]
vlad_starkov has quit [Ping timeout: 272 seconds]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
jjbohn is now known as jjbohn|afk
Guest9004 has quit [Client Quit]
Hanmac has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
CreativeEmbassy has joined #ruby
kenneth has quit [Quit: kenneth]
CaptainJet has quit []
Boohbah has left #ruby [#ruby]
Guest2399 has joined #ruby
sayan has joined #ruby
CaptainJet has joined #ruby
Guest2399 has quit [Read error: Connection reset by peer]
GrantKH_ has quit [Remote host closed the connection]
parduse has joined #ruby
GrantKH has joined #ruby
digital-ghost has quit [Remote host closed the connection]
pothibo has joined #ruby
parduse is now known as Guest15558
banjara has quit [Quit: Leaving.]
nwertman has quit [Ping timeout: 272 seconds]
Guest15558 is now known as parduse
parduse has quit []
io_syl has quit [Ping timeout: 240 seconds]
GrantKH has quit [Ping timeout: 264 seconds]
heidi has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
aspires has quit [Quit: sudo making a sandwich]
Spami has quit [Quit: This computer has gone to sleep]
p-arduse has joined #ruby
p-arduse is now known as parduse
Jetchisel has joined #ruby
parduse is now known as Guest58532
Advocation has joined #ruby
Bry8Star{T2 has joined #ruby
michael_mbp is now known as zz_michael_mbp
d2dchat has joined #ruby
p-arduse has joined #ruby
p-arduse is now known as parduse
JonahR has joined #ruby
parduse is now known as Guest23766
jaimef has quit [Excess Flood]
endash has quit [Quit: endash]
ryanstout has joined #ruby
Guest58532 has quit [Ping timeout: 248 seconds]
IceDragon has quit [Quit: Space~~~]
Advocation has quit [Ping timeout: 272 seconds]
ryanstout has left #ruby [#ruby]
thelorax123 has quit [Remote host closed the connection]
jjbohn|afk is now known as jjbohn
jaimef has joined #ruby
heidi has quit [Quit: Leaving.]
Guest59632 has joined #ruby
thelorax123 has joined #ruby
Bry8Star{T2_ has joined #ruby
diegoviola is now known as Guest27397
Guest59632 is now known as diegoviola
Mars__ has joined #ruby
jamesaanderson has joined #ruby
Guest27397 has quit [Ping timeout: 246 seconds]
Kricir has joined #ruby
zz_michael_mbp is now known as michael_mbp
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
superscott[8] has quit [Quit: superscott[8]]
Es0teric has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
falood has joined #ruby
nisstyre has joined #ruby
capicue has quit [Quit: Leaving...]
Mars__ has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
<bahar> hi.... n00b question here
<Kiba> bahar: ask away!
<bahar> i'm trying to write some simple code defining weekday and weekend
<bahar> rubymine keeps throwing errors at the 'else do' line - says 'else' is unexpected
<bahar> what am i missing?
<jblack> use between?(1,5)
DanKnox is now known as DanKnox_away
bronson_ has quit [Quit: bronson_]
<bahar> thanks jblack. rubymine says unexpected: else, unexpected: do, etc
jrhe has quit [Quit: jrhe]
<bahar> should i just ignore that?
<jblack> Try this in irb:
timonv has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
<jblack> 5.include?(3,6) 5.include?(1,4)
<jblack> >> 5.include?(3,4); 5.include?(1,4)
<eval-in> jblack => undefined method `include?' for 5:Fixnum (NoMethodError) ... (https://eval.in/66814)
Kricir has quit [Remote host closed the connection]
<jblack> pardon, not include.
<jblack> >> 5.between?(1,6); 5.between?(2,4)
<eval-in> jblack => false (https://eval.in/66815)
<jblack> >> 5.between?(1,6)
<eval-in> jblack => true (https://eval.in/66816)
Guest23766 has left #ruby [#ruby]
<rjhunter> bahar: those `do`..`end` sections are called "blocks" and different from the expressions that go between `if` and `else` code
<rjhunter> bahar: if you're new to Ruby (or programming) you may not have encountered blocks yet
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<bahar> i've just started learning, yeah
Bry8Star{T2 has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 252 seconds]
<rjhunter> bahar: try replacing `do |weekday|` with `puts "HELLO"`
kenneth has joined #ruby
dhruvasagar has joined #ruby
Bry8Star{T2_ has quit [Ping timeout: 240 seconds]
parduse has joined #ruby
nisstyre has quit [Disconnected by services]
nisstyre has joined #ruby
yugui_zzz is now known as yugui
jlast has joined #ruby
<bahar> i think i got it....
varfoo has joined #ruby
banghouse2 has joined #ruby
earthquake has joined #ruby
jamesaanderson has joined #ruby
toddpickell has joined #ruby
parduse has quit [Read error: Connection reset by peer]
<rjhunter> bahar: :-)
banghouse2 is now known as banghouse
<bahar> i feel dumb asking n00b questions :)
<rjhunter> bahar: everyone has to start somewhere
banghouse is now known as Guest81619
<bahar> i thought puts (or print) just printed a word - rather than creating a variable
phinfonet has quit [Quit: exitiing]
<eshy> puts = 'put string'
parduse has joined #ruby
Guest81619 is now known as banghouse
<eshy> or print string ;-)
<rjhunter> bahar, your intuition was correct -- puts doesn't create a variable
knigitz has quit []
amacgregor has joined #ruby
<bahar> i'm trying to create a variable i can refer to later and play with
<rjhunter> bahar: the code you pasted earlier creates two variables -- `time` and `day`
Lewix has joined #ruby
mikepack has joined #ruby
jamblack has quit [Quit: jamblack]
<rjhunter> if you want a third variable, called `weekday`, you'll need `weekday = ...` as well
werdnativ has joined #ruby
MrThePlague has joined #ruby
<rjhunter> The harder part will be figuring out what to put on the right-hand side of the = sign, but it looks like you've got most of what you need
Monie has joined #ruby
i_s has quit [Remote host closed the connection]
<bahar> weekday = day.between?(1,5) ?
Monie has quit [Max SendQ exceeded]
<rjhunter> perfect
i_s has joined #ruby
<rjhunter> then the `weekday` variable will contain either `true` or `false`
Monie has joined #ruby
jamblack has joined #ruby
MrThePla_ has joined #ruby
MrThePlague has quit [Read error: Connection reset by peer]
MrThePla_ has quit [Remote host closed the connection]
TheMoonMaster has quit [Remote host closed the connection]
<rjhunter> of course, if you want to see the result you'll need to do something like print it
kcombs has quit [Ping timeout: 245 seconds]
heath has quit [Ping timeout: 240 seconds]
wildroman2 has quit [Remote host closed the connection]
heath has joined #ruby
whunt has quit [Quit: Computer has gone to sleep.]
Guest99488 has joined #ruby
mikepack has quit [Ping timeout: 244 seconds]
Guest83759 has quit [Quit: Leaving]
diegoviola has quit [Ping timeout: 246 seconds]
<bahar> got it
<bahar> i'm trying to create a ruby script to control my HUE lights
pothibo has quit [Quit: pothibo]
<rjhunter> what are HUE lights?
<bahar> with the HUEY gem... basically put it on different schedules if it's a weekday vs weekend
* rjhunter searches the web for "HUE lights"
<bahar> they're LED lights that are controllable via the network
i_s has quit [Ping timeout: 240 seconds]
<rjhunter> Oh, cool
<bahar> so basically a script that says if it's a weekday turn on the lights at 6:30am, if it's weekend turn on the lights at 8am :)
<bahar> i figured i'd start somewhere
<rjhunter> nice
diego1 has joined #ruby
Guedes0 has quit [Ping timeout: 244 seconds]
Guest99488 has quit [Ping timeout: 245 seconds]
nwertman has joined #ruby
vlad_starkov has joined #ruby
RORgasm has joined #ruby
<CreativeEmbassy> I'm trying to remember the name of that ruby gem
diego1 is now known as diegoviola
<CreativeEmbassy> that adds more model-like stuff to plain old ruby objects
<CreativeEmbassy> like validations on variables
bugsinlights has quit [Remote host closed the connection]
<CreativeEmbassy> wasn't there something other than activemodel?
carif has quit [Ping timeout: 244 seconds]
<sevenseacat> virtus?
SirFunk has quit [Remote host closed the connection]
RORgasm has quit [Read error: Operation timed out]
<sevenseacat> i dont think it has validations though
toddpickell has quit [Quit: WeeChat 0.4.2]
<CreativeEmbassy> ah
<CreativeEmbassy> that was the library I was thinking of
<CreativeEmbassy> and you're right, totally doesn't do validations
SirFunk has joined #ruby
<CreativeEmbassy> I'm trying to do a very plain ruby exercise for an interview, and trying to minimize the amount of external libraries I'm pulling in
Aryasam has joined #ruby
<CreativeEmbassy> aaaaand not doing well. I've been using activemodel and activesupport as crutches for years.
<jrobeson> crutches?
evanvarvell has joined #ruby
<sevenseacat> nothing wrong with that
<CreativeEmbassy> probably the wrong word
<sevenseacat> i got what you meant
<CreativeEmbassy> bionic legs, maybe
jerius has joined #ruby
<jrobeson> that's why we use them..
dhruvasagar has quit [Ping timeout: 272 seconds]
<sevenseacat> relying on them
nwertman has quit [Ping timeout: 246 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
i_s has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
gazoombo has quit [Ping timeout: 264 seconds]
CaptainJet has quit []
gazoombo has joined #ruby
kmurph has joined #ruby
yellowfish has joined #ruby
<yellowfish> just started using ruby
<yellowfish> what editor do you guys use to edit ruby on rails apps?
<yellowfish> and should I use Ruby 3 or 4?
kaspergrubbe has quit [Ping timeout: 252 seconds]
radic has quit [Disconnected by services]
radic_ has joined #ruby
jerius has quit []
amacgregor_ has joined #ruby
<sevenseacat> give ruby 3 and 4 don't exist
<sevenseacat> given
<sevenseacat> start with ruby 2
baumax has quit [Quit: IRCGate CGI:IRC User (Ping timeout)]
amacgregor has quit [Ping timeout: 246 seconds]
<yellowfish> what's the difference between ruby on rails, and ruby?
<yellowfish> it's so confusing
Aryasam has quit [Read error: Connection reset by peer]
Aryasam has joined #ruby
<sevenseacat> ruby is the language, ruby on rails is the web application framework written in ruby
Advocation has joined #ruby
rrichardsr3 has joined #ruby
vlad_sta_ has joined #ruby
<jrobeson> s/the/a/
jjbohn has quit [Quit: Leaving...]
<coldmethod> sevenseacat: the whole "Ruby on Rails" term is confusing.. should have been "Rails written in Ruby" .. does that make any sense ;)?
vlad_st__ has joined #ruby
<sevenseacat> no.
<sevenseacat> 'ruby on rails' is the name of the framework.
closures999 has joined #ruby
Solnse has joined #ruby
danshultz has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
aagdbl has joined #ruby
<jrobeson> when i saw say PHPNuke back in the day i didn't think anything but a framework written in php..
Aryasam has quit [Read error: Connection reset by peer]
Aryasam has joined #ruby
unRealElite has joined #ruby
Advocation has quit [Ping timeout: 240 seconds]
vlad_sta_ has quit [Ping timeout: 240 seconds]
stkowski has quit [Quit: stkowski]
jamblack has quit [Quit: jamblack]
platypine has quit [Ping timeout: 264 seconds]
aagdbl has quit [Client Quit]
blarghmatey has joined #ruby
toddpickell has joined #ruby
TheHodge has quit [Ping timeout: 264 seconds]
geoffw8_ has quit [Ping timeout: 264 seconds]
kapowaz has quit [Ping timeout: 264 seconds]
SirFunk has quit [Read error: Connection reset by peer]
mmitchell has quit [Remote host closed the connection]
carif has joined #ruby
DarthGandalf has joined #ruby
toddpickell is now known as myappleguy
earthquake has quit [Quit: earthquake]
Ox6abe has joined #ruby
Solnse has quit [Quit: Leaving.]
kapowaz has joined #ruby
TheHodge has joined #ruby
geoffw8_ has joined #ruby
yfeldblu_ has joined #ruby
TheMoonMaster has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
banjara has joined #ruby
pu22l3r has joined #ruby
vlad_st__ has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Ping timeout: 245 seconds]
samuel02 has joined #ruby
sailias has quit [Ping timeout: 264 seconds]
peterdecroos has joined #ruby
hiyosi has quit [Ping timeout: 245 seconds]
samuel02 has quit [Ping timeout: 272 seconds]
flaccid_ has left #ruby ["Konversation terminated!"]
graydot has joined #ruby
Aryasam_ has joined #ruby
Aryasam has quit [Read error: No route to host]
diego1 has joined #ruby
MattStratton has joined #ruby
aspires has joined #ruby
gianlucadv has joined #ruby
diegoviola has quit [Ping timeout: 244 seconds]
diego1 is now known as diegoviola
Aryasam_ has quit [Client Quit]
Aryasam has joined #ruby
Aryasam has quit [Client Quit]
<CreativeEmbassy> classic object oriented programming dilemma
dnyy has quit []
<CreativeEmbassy> if I'm keeping track of things in space
aapzak has quit [Ping timeout: 240 seconds]
musty has joined #ruby
<CreativeEmbassy> what's responsible for the location of each thing? the thing itself? or space?
JonahR has quit [Quit: jonahR]
<CreativeEmbassy> I assume each thing should track its position
Ox6abe has quit [Remote host closed the connection]
graydot has quit [Quit: graydot]
<CreativeEmbassy> but if I need to make sure that things don't collide
<CreativeEmbassy> is that a function of space?
<CreativeEmbassy> or of the "parent Thing class"?
JonahR has joined #ruby
Ox6abe has joined #ruby
jmimi1 has joined #ruby
i_s has quit []
<CreativeEmbassy> I'm confused about propertly separating concerns
jmimi1 has quit [Client Quit]
aapzak has joined #ruby
sbos99 has joined #ruby
diegoviola has quit [Ping timeout: 246 seconds]
<myappleguy> it depends on what you are trying to implement
geoffw8_ has quit [Quit: Connection closed for inactivity]
jmimi has quit [Ping timeout: 246 seconds]
thelorax123 has quit [Remote host closed the connection]
<jrobeson> CreativeEmbassy, well i'd say track the space separate from the thing
<myappleguy> in game development you can have the objects keep track of their own location
<myappleguy> but have the space check objects in the space for collision
thelorax123 has joined #ruby
Guest65320 has joined #ruby
Guest65320 is now known as diegoviola
Ox6abe has quit [Ping timeout: 264 seconds]
d2dchat has quit [Remote host closed the connection]
mikepack has joined #ruby
musty has quit [Ping timeout: 252 seconds]
capicue has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
asteros has quit [Quit: asteros]
ananthakumaran has joined #ruby
<CreativeEmbassy> so I'd have the space object ping each thing for their coordinates, and ensure they don't conflict?
danshultz has quit [Remote host closed the connection]
myappleguy has quit [Ping timeout: 244 seconds]
danshultz has joined #ruby
alekst has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Ping timeout: 245 seconds]
rrichardsr3 has quit [Quit: -- I'm out --]
michael_mbp is now known as zz_michael_mbp
jlast has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
s3itz has joined #ruby
amacgregor has joined #ruby
amacgregor_ has quit [Ping timeout: 245 seconds]
hiyosi has joined #ruby
SirFunk has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
lukec has joined #ruby
wildroman2 has joined #ruby
rezzack has quit [Quit: Leaving.]
gianlucadv_ has joined #ruby
guns has quit [Quit: guns]
lmickh has quit [Quit: lmickh]
basmoura has quit [Quit: Computer has gone to sleep.]
dweeb has quit [Quit: Computer has gone to sleep.]
hiyosi has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
sputnik13 has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wildroman2 has quit [Ping timeout: 248 seconds]
gianlucadv_ has quit [Ping timeout: 260 seconds]
gianlucadv has quit [Ping timeout: 260 seconds]
zz_tsykoduk is now known as tsykoduk
pu22l3r has joined #ruby
ckinni has joined #ruby
digital-ghost has joined #ruby
kmurph has quit [Quit: kmurph]
nobitanobi has joined #ruby
<nobitanobi> night
soba has joined #ruby
Aryasam has joined #ruby
<yellowfish> what is this command dong?
<yellowfish> get '/' do
<yellowfish> "Hello, world"
<yellowfish> end
<sevenseacat> defining a sinatra action
echevemaster has quit [Quit: Leaving]
flowerhack has quit [Ping timeout: 245 seconds]
mattyohe has quit [Ping timeout: 245 seconds]
diegoviola has quit [Ping timeout: 272 seconds]
dekz has quit [Ping timeout: 245 seconds]
flowerhack has joined #ruby
kaspergrubbe has joined #ruby
Shidash has joined #ruby
diegoviola has joined #ruby
dekz has joined #ruby
mattyohe has joined #ruby
tsykoduk is now known as zz_tsykoduk
Shidash has quit [Client Quit]
Shidash has joined #ruby
ehc has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
Aryasam has quit [Ping timeout: 246 seconds]
kaspergrubbe has quit [Ping timeout: 240 seconds]
end_guy has joined #ruby
timonv has joined #ruby
Soda has quit [Read error: Connection reset by peer]
bassclef has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
<shevy> yellowfish it should happen when you call the base path of a web app
mudmaster has quit [Read error: Connection reset by peer]
<shevy> whereas if you would do get '/music' would find at URL+'/music' area
mudmaster has joined #ruby
ner0x has quit [Quit: Leaving]
amacgregor has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
Bira has quit []
amacgregor_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
vlad_starkov has joined #ruby
Kricir has joined #ruby
Clooth has joined #ruby
<yellowfish> I see
gustavo__ has joined #ruby
io_syl has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
jamesaanderson has joined #ruby
carif has quit [Ping timeout: 244 seconds]
<PPH> Is there an object other than hash and array I can create on the fly to store data and retreive it through instance_variables?
<bnagy> an infinite amount of them
<PPH> lol
io_syl has quit [Client Quit]
jlast has joined #ruby
<PPH> I mean one I dont have to declare the class myself
<bnagy> what are you actually trying to do?
sergicles has joined #ruby
JonahR has quit [Quit: jonahR]
thesheff17 has joined #ruby
<PPH> well actually to create a hash... lol but to be able to access data like this object.variable instead of this object[:variable]
<PPH> maybe I should just stick with hashes... lol
vlad_starkov has quit [Ping timeout: 240 seconds]
<bnagy> ruby has a stdlib class called openstruct that does that
<bnagy> >> require 'ostruct'; OpenStruct.new(cat: 'mew').cat
<eval-in> bnagy => "mew" (https://eval.in/66826)
<PPH> bnagy ah thx :)
tharindu has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
taternuts has quit []
davidboy has quit [Ping timeout: 245 seconds]
sandeepk has joined #ruby
davidboy has joined #ruby
thumpba_ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duggiefresh has quit [Ping timeout: 240 seconds]
achru has joined #ruby
theRoUS has quit [Ping timeout: 245 seconds]
rjhunter has quit [Remote host closed the connection]
thumpba_ has quit [Remote host closed the connection]
aagdbl has joined #ruby
rjhunter has joined #ruby
Tamae has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
blarghmatey has quit [Ping timeout: 246 seconds]
aspires has joined #ruby
sandeepk has left #ruby ["Linkinus - http://linkinus.com"]
sbos99 has quit [Quit: Leaving]
Aryasam has joined #ruby
xcess_denied has joined #ruby
tylersmith has joined #ruby
kmurph has joined #ruby
sandeepk has joined #ruby
tylersmith has quit [Remote host closed the connection]
Aryasam has quit [Ping timeout: 246 seconds]
Guest74408 has joined #ruby
RORgasm has joined #ruby
Guest74408 is now known as diegoviola
TheHodge has quit [Quit: Connection closed for inactivity]
iliketurtles has joined #ruby
hiyosi has joined #ruby
robbyoconnor has joined #ruby
phansch has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
RORgasm has quit [Ping timeout: 248 seconds]
danshultz has joined #ruby
mercwithamouth has joined #ruby
RORgasm has joined #ruby
hiyosi has quit [Ping timeout: 244 seconds]
Fezzler has joined #ruby
sergicles has quit [Quit: sergicles]
danshultz has quit [Ping timeout: 272 seconds]
ananthakumaran has quit [Quit: Leaving.]
EvanR_ has joined #ruby
sevenseacat has quit [Ping timeout: 240 seconds]
Liothen has quit [Quit: System of a down……]
Fezzler has quit [Client Quit]
Deele has joined #ruby
lukec has quit [Quit: lukec]
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
Advocation has joined #ruby
zarul has joined #ruby
jjbohn has joined #ruby
Monie has joined #ruby
<nobitanobi> Why am I able to do load "myfile.rb" even though when doing $: I don't see "." in the load path?
samuel02 has joined #ruby
noop has joined #ruby
Spami has joined #ruby
<shevy> well
Advocation has quit [Ping timeout: 245 seconds]
ewnd9 has joined #ruby
<shevy> nobitanobi, one reason could be that it sits directly in your SITE_DIR directory
<shevy> like when you have a project foobar, and you do require 'foobar', it will load the file foobar.rb in SITE_DIR, which then loads other files under foobar/ directory usually
<shevy> if in doubt you can always search all files called that way on your linux system :D
jjbohn has quit [Ping timeout: 245 seconds]
Lewix has quit [Remote host closed the connection]
<nobitanobi> shevy, I am surprised because with require 'myfile' it hangs. But not when doing load 'myfile.rb'
Shidash1 has joined #ruby
<nobitanobi> shevy, what is the SITE_DIR?
<shevy> nobitanobi your main path where all installed ruby files reside
Kricir has quit [Remote host closed the connection]
<shevy> for instance
Shidash has quit [Read error: Connection reset by peer]
<shevy> on my system it is currently at /Programs/Ruby/Current/lib/ruby/site_ruby/1.9.1/
<shevy> on your system it possibly is at /usr/lib/ruby/site_ruby/1.9.1/
zz_michael_mbp is now known as michael_mbp
dhruvasagar has joined #ruby
<shevy> nobitanobi yeah sounds odd, if I were you I would first search for all myfile.rb files there
samuel02 has quit [Ping timeout: 272 seconds]
<nobitanobi> just that one :)
<shevy> I give you an example
<shevy> in 1.9.1/ I have a directory called vte/ and a file called vte.rb
<shevy> now I change to the root dir at /
<shevy> I start irb
<shevy> I do this:
<shevy> require 'vte.rb'
<shevy> and it works, even though there is no file called /vte.rb
OdNairy has joined #ruby
<shevy> it loads the SITE_DIR vte.rb one
<shevy> that's one reason why modifying the LOAD_PATH isn't needed!
yfeldblu_ has quit [Remote host closed the connection]
<nobitanobi> shevy, I understand that
<nobitanobi> but I think what I am asking here is a little bit different
<shevy> is it?
<nobitanobi> if I create a project in a folder say /Projects
<nobitanobi> and I have
<shevy> ok so outside your SITE_DIR
<nobitanobi> yes
<nobitanobi> completely out
<nobitanobi> :P
<shevy> yeah that is indeed different
<nobitanobi> and I don't see "." in my load path
<shevy> then require 'foo' won't work unless you have modified the list of loaded paths
thesheff17 has quit [Quit: Leaving]
<nobitanobi> right
<nobitanobi> require 'foo' doesn't work
<nobitanobi> but
<nobitanobi> load 'foo.rb' does
jlast has quit [Remote host closed the connection]
sevenseacat has joined #ruby
<shevy> but only if you are in the same directory?
Clooth has quit [Quit: Leaving...]
<shevy> what if you go to another dir and specify the absolute path to it
<nobitanobi> correct
<nobitanobi> ah let me doo that...
<shevy> I usually write tiny ruby scripts and call them directly via aliases on the commandline
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
<nobitanobi> shevy, it works too
<shevy> hmm
<nobitanobi> I am surprised that doing load 'myfile.rb' works.
krz has joined #ruby
<nobitanobi> because as I said, in my load path there is no "."
<nobitanobi> can you do that?
<nobitanobi> like basic structure
nateberkopec has joined #ruby
<shevy> hmm
<shevy> moment
<shevy> yeah
<shevy> I can do: load 'bla.rb' just fine
nobitanobi has quit [Read error: Connection reset by peer]
<shevy> my $: does not include '.' either
nobitanobi has joined #ruby
<nobitanobi> shevy, sorry got discon
<shevy> yeah
<shevy> <shevy> I can do: load 'bla.rb' just fine
<shevy> <shevy> my $: does not include '.' either
<nobitanobi> ha
<nobitanobi> that's interesting
<nobitanobi> so I guess load might work different than require
vlad_starkov has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<shevy> hmm
<shevy> yeah
<shevy> with require it does not work
<nobitanobi> they took out "." from the load path in 1.9.2 I think
<shevy> I just tested
<nobitanobi> yup, here same
pu22l3r has joined #ruby
<shevy> but when I do
<shevy> $: << '.'
<shevy> require works
<nobitanobi> yup
<shevy> we are like sherlock holmes and dr. watson
<nobitanobi> hahaha
<sam113101> load doesn't check .
<nobitanobi> sam113101, why not?
mlpinit has quit [Remote host closed the connection]
* shevy notices the long pause ...
<shevy> :-)
<shevy> nobitanobi the more important question is... why was require changed compared to 1.8.x
mlpinit has joined #ruby
<sam113101> but it will check current $PWD, try cd ..; ruby dir/script.rb and it won't work
apeiros has quit [Remote host closed the connection]
<nobitanobi> 'security risk'
vlad_starkov has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
DanKnox_away is now known as DanKnox
Jetchisel has joined #ruby
<shevy> what does security risk mean
robbyoconnor has joined #ruby
<sam113101> nobitanobi: have you tried it?
robbyoconnor has quit [Client Quit]
<nobitanobi> sam113101, yup of course. That's why I got confused
<shevy> "Suppose your current directory is a publically- writable one"
<shevy> well I dont have publically writable ones in my $:
aspires has quit [Quit: sudo making a sandwich]
<shevy> hmm but I think I understand what they mean
<shevy> it's aimed for server-like computers, not home users
iliketurtles has quit [Quit: zzzzz…..]
pu22l3r has quit [Ping timeout: 268 seconds]
mrj has quit [Read error: Connection reset by peer]
coldmethod has quit [Ping timeout: 246 seconds]
diegoviola has quit [Quit: WeeChat 0.4.2]
Clooth has joined #ruby
<shevy> like when anyone is able to sneak in replacement files
frx has left #ruby [#ruby]
<shevy> EVIL PEOPLE OUT THERE
<nobitanobi> hehehe
<nobitanobi> yeah
<shevy> export RUBYLIB="."
mlpinit has quit [Ping timeout: 245 seconds]
<nobitanobi> actually check this out:
<nobitanobi> it first looks for an absolute path, and then looks in $:
<nobitanobi> If the filename does not resolve to an absolute path, the file is searched for in the library directories listed in $:
apeiros has quit [Ping timeout: 248 seconds]
sevenseacat has quit [Ping timeout: 245 seconds]
aspires has joined #ruby
timonv has joined #ruby
<shevy> ok I am confused
ananthakumaran has joined #ruby
<shevy> why do the two behave differently nobitanobi?
artm has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nobitanobi> no idea :P
<sam113101> two what?
<nobitanobi> require and load
<shevy> most of the time I use require
<sam113101> what do you mean they behave differently?
<nobitanobi> sam113101, load checks the absolute path first and then goes into the Array of $: - require just checks $:
<bnagy> uh
<bnagy> no?
<sam113101> "If the filename does not resolve to an absolute path, it will be searched for in the directories listed in $LOAD_PATH ($:)."
<bnagy> I mean they do behave differently
mercwithamouth has quit [Quit: leaving]
jbsnake has joined #ruby
sayan has joined #ruby
<nobitanobi> sam113101, that's for load. But require doesn't look at the absolute path at all.
darobin has joined #ruby
<sam113101> no, it's for require
<nobitanobi> really?
<sam113101> yes
<bnagy> yeah it does
<bnagy> just test it :)
<nobitanobi> well, actually yes. I guess for 'load' it should be 'relative path'.
<nobitanobi> if you write load 'myfile.rb'
<nobitanobi> and myfile.rb is in the current directory, it gets loaded correctly.
<nobitanobi> not with require
ehaliewicz has quit [Remote host closed the connection]
<sam113101> nobitanobi: it doesn't work this way
jbpros has joined #ruby
<nobitanobi> sam113101, what do you mean?
<sam113101> if you want to look a file in the same folder, use require_relative
Monie has joined #ruby
<sam113101> because it won't always work
darobin has left #ruby ["Leaving..."]
sandeepk has quit [Quit: Leaving...]
<nobitanobi> sam113101, I know.
<sam113101> to load*
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nobitanobi> what I am trying to understand is why load 'file.rb' will work but require 'file.rb' - Why did they choose to make load work differently
<nobitanobi> is not a big deal, just curious :P
ayaz has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
rjhunter has quit [Remote host closed the connection]
jbpros has quit [Client Quit]
<sam113101> well, I guess the strange thing is that load looks inside the working directory, I don't think it should
<bnagy> probably cause load is used way less frequently
<nobitanobi> yup...
rickmasta has quit [Quit: Be back later]
rickmasta has joined #ruby
rickmasta has quit [Client Quit]
lukec has joined #ruby
rickmasta has joined #ruby
hukendo has quit [Quit: Leaving...]
aspires has joined #ruby
sevenseacat has joined #ruby
lukec has quit [Ping timeout: 245 seconds]
hiyosi has joined #ruby
s3itz has joined #ruby
ewnd9 has quit [Ping timeout: 240 seconds]
<shevy> how do they python guys solve that?
<shevy> they use only one way, import?
nateberkopec has quit [Quit: Leaving...]
funburn has quit [Quit: funburn]
sandeepk has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
huttan has joined #ruby
tylersmith has joined #ruby
tonni has quit [Remote host closed the connection]
yellowfish has quit [Quit: Leaving]
tonni has joined #ruby
basil_kurian_ has joined #ruby
<nobitanobi> >> puts "test"
<eval-in> nobitanobi => test ... (https://eval.in/66851)
kevinykchan has quit [Quit: Computer has gone to sleep.]
huttan has quit [Ping timeout: 245 seconds]
tylersmith has quit [Ping timeout: 246 seconds]
Clooth has quit [Quit: Leaving...]
kloeri has quit [Remote host closed the connection]
tonni has quit [Ping timeout: 252 seconds]
kloeri has joined #ruby
dmiller has quit [Quit: Leaving...]
yfeldblum has joined #ruby
zipper has joined #ruby
jjbohn has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
mercwithamouth has joined #ruby
tagrudev has joined #ruby
`MArceLL` has quit [Ping timeout: 246 seconds]
DanBoy has joined #ruby
jjbohn has quit [Ping timeout: 245 seconds]
timonv has quit [Ping timeout: 272 seconds]
DanBoy has quit [Remote host closed the connection]
DanBoy has joined #ruby
ehc has quit [Quit: ehc]
Es0teric has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
apeiros has joined #ruby
camilasan has joined #ruby
yacks has quit [Quit: Leaving]
vlad_starkov has joined #ruby
muzammilr has joined #ruby
gstamp has quit [Read error: No route to host]
mlpinit has joined #ruby
<nobitanobi> ok, night guys
<muzammilr> i dont have much knowledge on ruby. i am trying to write a custom logstash filter. input is a json stream but i am not able to parse this json. events comes in the form of {:event=>#<LogStash::Event:0x29cd761a @data={"message"=>"{\"exceptionChain\":null,\"header\":{\"EventHeader\":{\"container\":\"java-tomcat\",\"environment\":\"PROD\",\"eventType\":\"log_event\",\"eventVersion\":4,\"guid\":\"guid-1234\",\"instance\":\"1\",\"nano\":4177214706043820
<nobitanobi> shevy, take care!
<muzammilr> 0,\"server\":\"server1234\",\"service\":\"test\",\"time\":1384320822046,\"version\":\"0.0.1\"}}}}} , how can i extract the data of of this ?
DanKnox is now known as DanKnox_away
mikepack has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
<nobitanobi> muzammilr, you want to parse @data ?
jhaals has joined #ruby
<muzammilr> yes
<nobitanobi> JSON.parse(@data)
dangerousdave has joined #ruby
digital-ghost has quit [Remote host closed the connection]
gstamp has joined #ruby
virtual|a has joined #ruby
peterdecroos has quit [Remote host closed the connection]
peterdecroos has joined #ruby
<muzammilr> nobitanobi: i am getting nil
<muzammilr> input is like this event = '{:event=>#<LogStash::Event:0x29cd761a @data={"message"=>"{\"exceptionChain\":null,\"header\":{\"EventHeader\":{\"container\":\"java-tomcat\",\"environment\":\"PROD\",\"eventType\":\"log_event\",\"eventVersion\":4,\"guid\":\"guid-1234\",\"instance\":\"1\",\"nano\":41772147060438200,\"server\":\"server1234\",\"service\":\"test\",\"time\":1384320822046,\"version\":\"0.0.1\"}}}}}'
virtualize has quit [Ping timeout: 252 seconds]
<muzammilr> i am want to do something like JSON.parse(event.???)
<nobitanobi> event.data?
asteros has joined #ruby
<muzammilr> it says data is undefined
<nobitanobi> where do you get this from ? {:event=>#<LogStash::Even.....
<nobitanobi> ?
<nobitanobi> try doing this event.to_hash
coderhs has joined #ruby
SirFunk has quit [Remote host closed the connection]
<nobitanobi> I am guessing you are using this: https://github.com/logstash/logstash/blob/master/lib/logstash/event.rb
<muzammilr> from logstash pipe input
zipper has quit [Quit: leaving]
<muzammilr> let me try that
<nobitanobi> yeah
mlpinit has quit [Ping timeout: 248 seconds]
Spami has quit [Quit: This computer has gone to sleep]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aspires has quit [Quit: sudo making a sandwich]
SirFunk has joined #ruby
camilasan has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
andrewstewart has quit [Quit: Connection closed for inactivity]
camilasan has joined #ruby
yfeldblum has quit [Remote host closed the connection]
tjad has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
rellin has quit [Read error: Connection reset by peer]
niop has joined #ruby
camilasan has quit [Ping timeout: 240 seconds]
`MArceLL` has joined #ruby
nobitanobi has quit [Quit: Leaving]
jxw1024 has left #ruby [#ruby]
<niop> hi, doing the Hartl rails tute, and it says to install ruby use flag --with-openssl-dir=$HOME/.rvm/opt/openssl. but there's no subfolder of .rvm by the name of opt. nor is there a subfolder use as another possible openssl directory suggested. where is openssl? it was installed using brew install openssl.
Rix has joined #ruby
<niop> *another subfolder usr
mengu has joined #ruby
SirFunk has quit [Remote host closed the connection]
mengu has quit [Changing host]
mengu has joined #ruby
JohnBat26 has joined #ruby
tharindu has quit [Quit: Leaving...]
EvanR_ has quit [Ping timeout: 248 seconds]
<s3itz> niop: check with #rvm
<niop> ok ta
Mon_Ouie has quit [Ping timeout: 246 seconds]
Mars___ has joined #ruby
<s3itz> I'd help, but I cannot recall why you were overriding openssl
<PPH> Anyone using syntastic with vim?
yannucci has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
aganov has joined #ruby
panko has joined #ruby
<niop> s3itz: just following the tute, and the command it asks you to run is... $ brew install libtool libxslt libksba openssl
weszlem has joined #ruby
<niop> i think it's being installed to /etc/bin, but not sure. there's a full openssl install there, but it may be part of the ruby that's inbuilt to mac, rather than rvm.
hiyosi has joined #ruby
phansch has quit [Remote host closed the connection]
<s3itz> it's just a suggestion
<niop> oops, /etc/openssl
<s3itz> you installed openssl via brew, you just need to build a version of ruby you want
<niop> so why use a flag specifying the openssl directory?
<niop> that implies that brew installs openssl somewhere under .rvm?
<s3itz> I think RVM can build openssl locally to it
<niop> so, secret location?
samuel02 has joined #ruby
<niop> if that's the case, and the tutorial writer would know this stuff, why would he bother stipulating that the directory be specified.
<niop> i've used /etc/openssl, and it seems to pick up stuff in there for openssl compile, but an error results at some point.
<niop> that's during ruby install
<niop> hence why i'm going back trying to determine which openssl directory should be specified.
hiyosi has quit [Ping timeout: 245 seconds]
david2 has joined #ruby
david2 has quit [Client Quit]
robbyoconnor has joined #ruby
zoee has joined #ruby
<s3itz> What system are you using?
Mars___ has quit [Remote host closed the connection]
<niop> mac
<s3itz> ML or MAV?
LarsSmit has joined #ruby
<niop> mav, i think, the latest.
Mars___ has joined #ruby
<niop> it's not my mac
<s3itz> ok
<s3itz> remove openssl from brew
<s3itz> build ruby from rvm using rvm's documentations
david2 has joined #ruby
<s3itz> rvm implode to start over; maybe research using rbenv
david2 has quit [Client Quit]
<niop> that might be an approach, i don't quite know what these install tools are doing, but the tute is probably the best known, or one of them. what they're saying should work. using brew.
noname001__ has quit [Ping timeout: 244 seconds]
<niop> maybe command in the tute needs modification for some reason, just of finding out what it should be.
<s3itz> Well, the author tries to hint that he only promotes RVM because it is what he knows :)
<niop> i'd be happy to chop and change the current install, but it's someone else's. so more looking to get info, rather than make substantial changes to the install.
rellin has joined #ruby
<niop> sure but i'd be surprised if his approach is one that wouldn't work.
<niop> it's just a matter of.. knowing where ssl is
Mars___ has quit [Ping timeout: 240 seconds]
mattattaque has quit [Ping timeout: 246 seconds]
<niop> and then if it doesn't work, well, maybe can give his suggestion the toss. but it wouldn't seem unreasonable to try to locate openssl, or at least get some comment as to what to do about the openssl dir that the author has suggested needs to be specified.
tharindu has joined #ruby
peterdecroos has quit [Remote host closed the connection]
Advocation has joined #ruby
jjbohn has joined #ruby
<niop> it's remarkable how much time can be wasted on these things
<bnagy> things change.
peterdecroos has joined #ruby
<niop> my friend, just specified the .rvm/opt directory, and though the directory doesn't exist, was happy to proceed because that's what the tute said, there were no error msgs, and it was quick.
<bnagy> fwiw rvm is, imho, a steaming pile
srajan has joined #ruby
srajan has quit [Max SendQ exceeded]
<bnagy> and installing openssl into opt in your rvm is .. suboptimal
srajan has joined #ruby
srajan has quit [Max SendQ exceeded]
<niop> who's opinion should one follow, the guru behind one of the best know tutus for rails around, or... anonymous.
skaflem has joined #ruby
threesome has quit [Ping timeout: 245 seconds]
funburn has joined #ruby
<niop> there may be something to the opinion you have of rvm.. but that shouldn't be reason for rvm not to work. installing ssl probably isn't one of the most one off type things that might happen in the process of ruby rails install.
<niop> as in people generally don't do it, and that's why it's broken perhaps.
<sevenseacat> it may be the best known tutorial, but that doesnt make it good
samuel02 has quit []
<sevenseacat> people still insist on reading agile web dev with rails too, even after we tell them its a horrible book
Advocation has quit [Ping timeout: 272 seconds]
<s3itz> I do not understand why you are upset by our suggestions
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xcess_denied has quit [Quit: Leaving...]
<s3itz> We are suggesting rbenv because it is better
<s3itz> Not because we hate you and RVM
peterdecroos has quit [Ping timeout: 252 seconds]
jjbohn has quit [Ping timeout: 272 seconds]
end_guy has quit [Ping timeout: 240 seconds]
xcess_denied has joined #ruby
<s3itz> You're going to have to have the same experience irregardless; I simply said ditch the openssl directives and build like normal
kobain has quit [Ping timeout: 240 seconds]
<niop> knowing where an install is... isn't exactly rocket science. so i guess there was presumption that location might not be too difficult to find. using methods, with rvm, that obviously many have employed.
sandeepk has quit [Quit: Leaving...]
<niop> but if there's a dead end with rvm. sure, will give the other tool a try. just wary of interfering with the install on this machine. prefer to abide the instructions in the tute, assuming that would be the path of least resistance
danguita has joined #ruby
<s3itz> create your own environment
<s3itz> are you doing rvm in your user directory as well?
cool has quit [Quit: Connection closed for inactivity]
<sevenseacat> you think thats the path of least resistance? i cant wait until you get to the bootstrap and spork section of the tutorial
<s3itz> lol
DouweM has quit [Ping timeout: 245 seconds]
sayan has quit [Read error: Connection reset by peer]
<niop> about ditching the directory specification.. my concern with that is.. if the author knows what he's doing, he's probably put the directory in there for a reason, not just to make it look cool. if i omit something.. it may cause problems down the track. often more painful to solve than the cause had it been dealt with at the outset.
weszlem has quit []
<niop> yeah, that's a point, possible to do different environments as you say
<s3itz> This may be more concise for your environment: http://dean.io/setting-up-a-ruby-on-rails-development-environment-on-mavericks/
<niop> well, if i'm using the other tool you mentioned, and the author is using a set of commands that don't relate to it, in itself that could be resistance.
jprovazn has joined #ruby
Monie has joined #ruby
<niop> with some searching around for cmdx, doable, but tutee are often best digested without too much customisation.
<s3itz> naturally ignore the coach to install gcc if you don't need to
jrhe has joined #ruby
david2 has joined #ruby
vpretzel has quit [Remote host closed the connection]
Clooth has joined #ruby
<niop> that's virtually what i've done, it just doesn't specify the openssl dir
<s3itz> and it has installed just fine?
sandeepk has joined #ruby
h_kon has joined #ruby
<niop> an idea i might try is uninstalling openssl with brew... and then installing again. i think, maybe, when it's installing, it gives the install directory.
<niop> well.. it does.. yes. as in no error msgs. but the directory specified for openssl, /.rvm/opt, doesn't exist. so it's no wonder there's no error msg. unless it resorts to some default.
mikepack has joined #ruby
ezkl has joined #ruby
sayan has joined #ruby
SirFunk has joined #ruby
<niop> just got a msg on #rvm.. and they said there's no need for that openssl flag any more. has been so for the last 6 months.
<s3itz> hehehe
<bnagy> 15:35 < bnagy> things change.
andikr has joined #ruby
sandeepk has left #ruby [#ruby]
<s3itz> RVM install is simply, get rvm, knit it in, start a new session, maybe run rvm packages autolib and start installing
<s3itz> rehash if you need and go
<niop> well, that solves the problem really. good to know. don't want the ship to have technical problems later on.
fgo has joined #ruby
<s3itz> but rbenv is still worth looking into down the road
vlad_starkov has joined #ruby
<niop> ok, sure.. sounds promising. thanks for the advice.
<s3itz> autolibs*
david2 has quit [Quit: WeeChat 0.4.0]
<bnagy> chruby is probably a better bet these days
<s3itz> things change :D
<bnagy> seems to have the momentum
predator217 has joined #ruby
jrhe has quit [Quit: jrhe]
coderhs has quit [Quit: Leaving]
<s3itz> seems nice and simple
david2 has joined #ruby
mikepack has quit [Ping timeout: 272 seconds]
noname001__ has joined #ruby
predator117 has quit [Ping timeout: 248 seconds]
dagobah has joined #ruby
zigomir has joined #ruby
corehook has joined #ruby
vlad_starkov has quit [Ping timeout: 272 seconds]
mlpinit has joined #ruby
basil_kurian_ has left #ruby [#ruby]
relix has joined #ruby
camilasan has joined #ruby
kcombs has joined #ruby
Al_ has joined #ruby
corehook has quit [Client Quit]
lukec has joined #ruby
thelorax123 has quit [Remote host closed the connection]
jhaals has joined #ruby
banjara has joined #ruby
niop has quit [Quit: niop]
panko has quit [Remote host closed the connection]
claymore has joined #ruby
david2 has quit [Quit: WeeChat 0.4.0]
thelorax123 has joined #ruby
david2 has joined #ruby
jhaals has quit [Read error: Operation timed out]
gianlucadv has joined #ruby
banghouse has quit [Remote host closed the connection]
lukec has quit [Ping timeout: 248 seconds]
mlpinit has quit [Ping timeout: 252 seconds]
xerxas has joined #ruby
kcombs has quit [Ping timeout: 246 seconds]
bianchini has joined #ruby
workmad3 has joined #ruby
david2 has quit [Client Quit]
david2 has joined #ruby
fightback has joined #ruby
weszlem has joined #ruby
jhaals has joined #ruby
einarj has joined #ruby
huttan has joined #ruby
weszlem has quit [Client Quit]
banjara has quit [Ping timeout: 244 seconds]
peterdecroos has joined #ruby
bianchini has quit [Remote host closed the connection]
weszlem has joined #ruby
threesome has joined #ruby
sandeepk has joined #ruby
Xeago has joined #ruby
huttan has quit [Ping timeout: 248 seconds]
dusseault has joined #ruby
asteros has quit [Quit: asteros]
peterdecroos has quit [Ping timeout: 246 seconds]
hiyosi has joined #ruby
drumusician has joined #ruby
david2 has quit [Quit: WeeChat 0.4.0]
mercwithamouth has quit [Quit: leaving]
alup has joined #ruby
hiyosi has quit [Ping timeout: 248 seconds]
mrfoto has joined #ruby
blaxter_ has joined #ruby
phansch has joined #ruby
batman has quit [Quit: leaving]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
ahawkins has joined #ruby
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
khushildep has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
tesuji has joined #ruby
timonv has joined #ruby
d45h has joined #ruby
weszlem has quit []
Aryasam has joined #ruby
Aryasam has quit [Client Quit]
weszlem has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
shvelo has joined #ruby
Advocation has joined #ruby
khushildep has quit [Ping timeout: 240 seconds]
obs has joined #ruby
jjbohn has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
VTLob has joined #ruby
olivier_bK has joined #ruby
fgo has quit [Remote host closed the connection]
jbpros has joined #ruby
Mars___ has joined #ruby
Advocation has quit [Ping timeout: 245 seconds]
funburn has quit [Quit: funburn]
jjbohn has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
nonamehero has quit [Ping timeout: 240 seconds]
Mars___ has quit [Ping timeout: 245 seconds]
sandeepk has quit [Quit: Leaving...]
shvelo has quit [Ping timeout: 272 seconds]
shvelo has joined #ruby
olivier_bK1 has joined #ruby
Es0teric has joined #ruby
buscon has joined #ruby
shevy has joined #ruby
allsystemsarego has joined #ruby
Es0teric has quit [Client Quit]
olivier_bK1 has quit [Client Quit]
olivier_bK has quit [Quit: Quitte]
tjad has quit [Quit: No Ping reply in 180 seconds.]
olivier_bK has joined #ruby
marr has joined #ruby
daxroc has joined #ruby
daxroc has quit [Client Quit]
ewnd9 has joined #ruby
daxroc has joined #ruby
jbpros has quit [Quit: jbpros]
tjad has joined #ruby
mikepack has joined #ruby
niop has joined #ruby
nonamehero has joined #ruby
nonamehero has joined #ruby
nonamehero has quit [Changing host]
icecandy has joined #ruby
vlad_starkov has joined #ruby
dweeb has joined #ruby
fightbac_ has joined #ruby
fightbac_ has quit [Remote host closed the connection]
fightback has quit [Read error: Connection reset by peer]
sandeepk has joined #ruby
nvrch has joined #ruby
Clooth has quit [Quit: Linkinus - http://linkinus.com]
vlad_starkov has quit [Read error: Connection reset by peer]
mikepack has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
niop has quit [Ping timeout: 246 seconds]
rellin has quit [Read error: Connection reset by peer]
srji has joined #ruby
newbiehacker_ has joined #ruby
rellin has joined #ruby
DanBoy has quit [Remote host closed the connection]
lxsameer has joined #ruby
DanBoy has joined #ruby
<lxsameer> hi guys, i'm looking for a template generator system which work like a template engine in development and an static page generator in production
mlpinit has joined #ruby
timonv has quit [Remote host closed the connection]
Mars___ has joined #ruby
icecandy has quit [Quit: Going offline, see ya! (www.adiirc.com)]
Xeago has joined #ruby
kaspergrubbe has joined #ruby
banjara has joined #ruby
icecandy has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 264 seconds]
kaspergrubbe has joined #ruby
mlpinit has quit [Ping timeout: 245 seconds]
<jrobeson> lxsameer, jekyll?
choobie has joined #ruby
hogeo_ has quit [Remote host closed the connection]
hogeo has joined #ruby
ghr has joined #ruby
andikr has quit [Read error: Operation timed out]
hogeo has quit [Ping timeout: 245 seconds]
banjara has quit [Ping timeout: 248 seconds]
andikr has joined #ruby
Mars___ has quit [Remote host closed the connection]
Mars___ has joined #ruby
kcombs has joined #ruby
user258467 has joined #ruby
hogeo has joined #ruby
icedp has quit [Ping timeout: 240 seconds]
shaunbaker has joined #ruby
shaunbak_ has joined #ruby
Mars___ has quit [Ping timeout: 245 seconds]
mattattaque has joined #ruby
icedp has joined #ruby
lacko has joined #ruby
AlSquire has joined #ruby
icecandy has quit [Quit: Going offline, see ya! (www.adiirc.com)]
TMM has joined #ruby
timonv has joined #ruby
Blaze_Boy has joined #ruby
krandi has joined #ruby
sbos99 has joined #ruby
andikr has quit [Ping timeout: 264 seconds]
shaunbaker has quit [Ping timeout: 272 seconds]
kcombs has quit [Ping timeout: 245 seconds]
h_kon has quit [Remote host closed the connection]
h_kon has joined #ruby
yjmsf20 has joined #ruby
krandi has quit [Ping timeout: 245 seconds]
andikr has joined #ruby
BlazeeBoy has joined #ruby
BlazeeBoy has quit [Client Quit]
v0n has joined #ruby
aagdbl has quit [Read error: Connection reset by peer]
aagdbl has joined #ruby
einarj has quit [Remote host closed the connection]
wildroman2 has joined #ruby
einarj has joined #ruby
lacko has quit [Quit: Lost terminal]
funburn has joined #ruby
adambeynon has joined #ruby
ephemerian has joined #ruby
sayan has quit [Ping timeout: 272 seconds]
sayan has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
Advocation has joined #ruby
jjbohn has joined #ruby
Squarepy has joined #ruby
rdark has joined #ruby
hamakn_ has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
Rollabunna has joined #ruby
Advocation has quit [Ping timeout: 246 seconds]
jjbohn has quit [Ping timeout: 246 seconds]
GreatSUN has joined #ruby
<GreatSUN> Hi all
<GreatSUN> I have some small problem...
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<GreatSUN> I want to create some function to convert unix mode 0700 or equal to windows setup
<GreatSUN> but whenever I look what is in the parameter I get sth. else
<GreatSUN> for 0700 for example it is 448
kalleth_ is now known as kalleth
<GreatSUN> does someone of you know how I can get the 0700 back?
<GreatSUN> means how to convert decimal back to octal
sevenseacat has quit [Quit: Leaving.]
<apeiros> .to_s(8)
<apeiros> or "0%O" % num (iirc)
<apeiros> >> [0700.to_s(8), "0%03O" % num]
<eval-in> apeiros => undefined local variable or method `num' for main:Object (NameError) ... (https://eval.in/66914)
<apeiros> >> [0700.to_s(8), "0%03O" % 0700]
<eval-in> apeiros => malformed format string - %O (ArgumentError) ... (https://eval.in/66915)
newbiehacker_ has quit [Read error: Connection reset by peer]
<apeiros> >> [0700.to_s(8), "0%03o" % 0700]
<eval-in> apeiros => ["700", "0700"] (https://eval.in/66916)
Rollabunna has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
nanothief_ has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
wildroman2 has joined #ruby
karupanerura is now known as zz_karupanerura
<GreatSUN> apeiros: great
<GreatSUN> thanks
Xeago_ has joined #ruby
<GreatSUN> "0%03o" % myval does the job in a perfect way
tharindu has quit [Quit: Leaving...]
blaxter_ is now known as blaxter
shvelo has quit [Ping timeout: 272 seconds]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
mikepack has joined #ruby
Deele has joined #ruby
kmurph has quit [Quit: kmurph]
Xeago has quit [Ping timeout: 245 seconds]
wildroman2 has quit [Ping timeout: 272 seconds]
nanothief has joined #ruby
jbpros has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
shredding has joined #ruby
SirFunk has quit [Remote host closed the connection]
Mars___ has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 248 seconds]
srji has quit [Quit: leaving]
marcgg has joined #ruby
Mars___ has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 272 seconds]
Mars___ has joined #ruby
einarj has joined #ruby
tharindu has joined #ruby
zipper has joined #ruby
jlebrech has joined #ruby
huttan has joined #ruby
tjad has quit [Ping timeout: 264 seconds]
Mars___ has quit [Ping timeout: 240 seconds]
tonni has joined #ruby
zipper has quit [Client Quit]
Mars___ has joined #ruby
huttan has quit [Read error: Operation timed out]
mlpinit has joined #ruby
ua has quit [Ping timeout: 244 seconds]
buscon has quit [Remote host closed the connection]
tjad has joined #ruby
colonolGron has joined #ruby
ephemerian has quit [Quit: Leaving.]
jb41 has joined #ruby
banjara has joined #ruby
icecandy has joined #ruby
Alina-malina has joined #ruby
mlpinit has quit [Ping timeout: 248 seconds]
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
banjara has quit [Ping timeout: 252 seconds]
mklappstuhl has joined #ruby
ua has joined #ruby
icecandy has quit [Read error: Connection reset by peer]
icecandy has joined #ruby
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
Mars___ has quit [Remote host closed the connection]
Mars___ has joined #ruby
jibi has joined #ruby
mengu has quit [Ping timeout: 246 seconds]
fysaen_ has joined #ruby
hogeo has quit [Remote host closed the connection]
fysaen_ has quit [Remote host closed the connection]
mattattaque has quit [Ping timeout: 245 seconds]
hogeo has joined #ruby
predator117 has joined #ruby
mattattaque has joined #ruby
muzammilr has quit [Quit: Leaving...]
Alina-malina has quit [Quit: Leaving]
closures999 has quit []
Mars___ has quit [Ping timeout: 248 seconds]
Mars___ has joined #ruby
fysaen has quit [Ping timeout: 264 seconds]
predator217 has quit [Ping timeout: 245 seconds]
Alina-malina has joined #ruby
huttan has joined #ruby
colonolGron has quit [Quit: leaving]
hiyosi has joined #ruby
hogeo_ has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 245 seconds]
predator117 has quit [Ping timeout: 240 seconds]
Mars___ has quit [Remote host closed the connection]
Mars___ has joined #ruby
h_kon has quit [Remote host closed the connection]
hogeo_ has quit [Remote host closed the connection]
SirFunk has joined #ruby
hogeo has joined #ruby
nomenkun has joined #ruby
hiyosi has quit [Ping timeout: 248 seconds]
Mars___ has quit [Ping timeout: 240 seconds]
hogeo has quit [Ping timeout: 246 seconds]
predator117 has joined #ruby
kcombs has joined #ruby
fysaen has joined #ruby
tjad has quit [Remote host closed the connection]
zz_karupanerura is now known as karupanerura
karupanerura is now known as zz_karupanerura
falood has quit [Remote host closed the connection]
falood has joined #ruby
predator217 has joined #ruby
DouweM has joined #ruby
ldnunes has joined #ruby
predator117 has quit [Ping timeout: 248 seconds]
timonv has quit [Read error: Connection reset by peer]
jjbohn has joined #ruby
sepp2k has joined #ruby
timonv has joined #ruby
Macaveli has joined #ruby
davidboy has quit [Quit: Connection closed for inactivity]
mattattaque has quit [Read error: Connection reset by peer]
gustavo__ has quit [Quit: This computer has gone to sleep]
falood has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
mattattaque has joined #ruby
vlad_starkov has joined #ruby
kitak_ has quit [Remote host closed the connection]
jibi has quit [Quit: .]
wildroman has quit []
jjbohn has quit [Ping timeout: 272 seconds]
fysaen_ has joined #ruby
mengu has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
lukec has joined #ruby
drumusician has quit [Ping timeout: 272 seconds]
mattattaque has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
jbpros has quit [Quit: jbpros]
h_kon has joined #ruby
dhruvasagar has joined #ruby
colonolGron has joined #ruby
fysaen has quit [Ping timeout: 240 seconds]
fysaen_ has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
nfk has quit [Quit: yawn]
lukec has quit [Ping timeout: 264 seconds]
carif has joined #ruby
jamblack has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
hamakn has joined #ruby
carif has quit [Max SendQ exceeded]
dhruvasagar has quit [Ping timeout: 248 seconds]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
carif has joined #ruby
mengu has quit [Ping timeout: 264 seconds]
zarubin has quit [Ping timeout: 272 seconds]
shvelo has joined #ruby
dhruvasagar has joined #ruby
mikepack has joined #ruby
hamakn has quit [Ping timeout: 244 seconds]
Mars___ has joined #ruby
mengu has joined #ruby
havenwood has joined #ruby
gener1c has joined #ruby
sergicles has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
<gener1c> can anyone recommend a book for cpp that is like the pickaxe? in the sense of how things are shown and explained
<gener1c> i really liked it
mikepack has quit [Ping timeout: 272 seconds]
werdnativ has quit [Quit: werdnativ]
dhruvasagar has quit [Ping timeout: 252 seconds]
Rollabunna has joined #ruby
dhruvasagar has joined #ruby
ananthakumaran1 has joined #ruby
ananthakumaran1 has quit [Max SendQ exceeded]
ananthakumaran1 has joined #ruby
ananthakumaran1 has quit [Max SendQ exceeded]
ananthakumaran1 has joined #ruby
ananthakumaran1 has quit [Max SendQ exceeded]
ananthakumaran1 has joined #ruby
sayan has joined #ruby
ananthakumaran1 has quit [Max SendQ exceeded]
ananthakumaran1 has joined #ruby
ananthakumaran1 has quit [Max SendQ exceeded]
ananthakumaran1 has joined #ruby
sambao21 has joined #ruby
<havenwood> gener1c: cpp?
shvelo_ has joined #ruby
shvelo has quit [Ping timeout: 272 seconds]
bassclef has joined #ruby
kizzx2 has quit [Quit: Leaving.]
bassclef is now known as Guest35312
Mars___ has quit [Ping timeout: 240 seconds]
ananthakumaran has quit [Ping timeout: 244 seconds]
mlpinit has joined #ruby
shvelo_ has quit [Remote host closed the connection]
shvelo__ has joined #ruby
banjara has joined #ruby
yfeldblum has joined #ruby
himsin has joined #ruby
mlpinit has quit [Ping timeout: 248 seconds]
jamblack has quit [Quit: jamblack]
sandeepk has quit [Quit: Leaving...]
hiall has joined #ruby
LnL has joined #ruby
banjara has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
havenwood has quit []
ananthakumaran1 has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
graydot has joined #ruby
samuel02 has joined #ruby
shvelo__ has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
graydot has quit [Client Quit]
ananthakumaran has joined #ruby
jamblack has joined #ruby
graydot has joined #ruby
<mrfoto> how can I refactor correct_text method for better defaults? https://github.com/mrfoto/slovenstina/blob/master/app/models/checker.rb
vlad_starkov has quit [Read error: Connection reset by peer]
colonolGron has quit [Quit: Lost terminal]
<mrfoto> now i have a default block but all it does is that it just yields the var back
brtdv has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
fastred has joined #ruby
sambao21 has quit [Ping timeout: 246 seconds]
kaspergrubbe has quit [Remote host closed the connection]
7CBAAD1YO has joined #ruby
jprovazn has quit [Quit: Leaving]
<Hanmac1> mrfoto: isnt that what you want? "-> (c){ c }" is a dummy proc
Hanmac1 is now known as Hanmac
cek has joined #ruby
vlad_starkov has joined #ruby
hiyosi has joined #ruby
<Hanmac> mrfoto: look also at /[[:upper:]]/ and /[[:lower:]]/
<mrfoto> yeah, but im wondering if there is another (better) way to do that if there is no block
camilasan has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
<mrfoto> ive tried with block_given but that just complicates more
mephux has quit [Quit: w0ots...]
cek has left #ruby [#ruby]
<Hanmac> i also tryed "def correct_text(&block = -> (c){ c })" but it does not work :/
VTLob has quit [Quit: VTLob]
funburn has quit [Quit: funburn]
dweeb has quit [Quit: Textual IRC Client: www.textualapp.com]
mephux has joined #ruby
neonlex has joined #ruby
hiyosi has quit [Ping timeout: 244 seconds]
<mrfoto> yeah me too :P
<mrfoto> basically what I need (and I thought there is some shorthand for that) is if block_given? yield(value) else value
dhruvasagar has quit [Read error: Connection reset by peer]
lxsameer has quit [Quit: Leaving]
ananthakumaran has quit [Read error: Connection reset by peer]
7CBAAD1YO has quit [Quit: Leaving...]
ananthakumaran has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
atmosx has joined #ruby
ewnd9 has quit [Ping timeout: 244 seconds]
<mrfoto> this could work i guess block_given? ? yeild(value) : value
zoee has joined #ruby
sambao21 has joined #ruby
eka has joined #ruby
camilasan has joined #ruby
dhruvasagar has joined #ruby
err_ok has quit [Ping timeout: 245 seconds]
Advocation has joined #ruby
jjbohn has joined #ruby
sambao21 has quit [Ping timeout: 245 seconds]
Advocation has quit [Ping timeout: 245 seconds]
<mrfoto> yup, that works :P Hanmac
funburn has joined #ruby
jjbohn has quit [Ping timeout: 240 seconds]
<mrfoto> i guess I need a duck to talk to :D
drumusician has joined #ruby
vlad_starkov has joined #ruby
rickmasta has quit [Quit: Leaving...]
jprovazn has joined #ruby
torzech has joined #ruby
torzech has left #ruby [#ruby]
wallerdev has quit [Quit: wallerdev]
obs has quit [Ping timeout: 244 seconds]
fgo has quit [Remote host closed the connection]
happydude has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
fgo has joined #ruby
kaspergrubbe has joined #ruby
ananthakumaran has joined #ruby
barratt has joined #ruby
tonni has quit [Remote host closed the connection]
Speed has joined #ruby
tonni has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 248 seconds]
fgo has quit [Ping timeout: 272 seconds]
vlad_sta_ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
tonni has quit [Ping timeout: 272 seconds]
mikepack has quit [Ping timeout: 252 seconds]
Mars___ has joined #ruby
dhruvasagar has joined #ruby
kaspergrubbe has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Ping timeout: 248 seconds]
Mars___ has quit [Ping timeout: 240 seconds]
nanothief has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
mlpinit has joined #ruby
banjara has joined #ruby
timonv has quit [Remote host closed the connection]
carif has quit [Ping timeout: 244 seconds]
timonv has joined #ruby
mklappstuhl has joined #ruby
mlpinit has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
yfeldblum has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
Emmanuel_Chanel has joined #ruby
banjara has quit [Ping timeout: 246 seconds]
larissa has joined #ruby
xpirator has quit [Quit: Connection closed for inactivity]
weszlem has quit []
chuk has quit [Quit: Connection closed for inactivity]
timonv has quit [Ping timeout: 248 seconds]
shredding has quit [Quit: shredding]
yfeldblum has quit [Ping timeout: 240 seconds]
hiyosi has joined #ruby
weszlem has joined #ruby
srji has joined #ruby
mostlybadfly has quit [Read error: Connection reset by peer]
mostlybadfly has joined #ruby
peterdecroos has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
jamblack has quit [Quit: jamblack]
nfk has quit [Quit: yawn]
timonv has joined #ruby
platypine has joined #ruby
platypine has joined #ruby
platypine has quit [Changing host]
danshultz has joined #ruby
Astral_ has joined #ruby
ewnd9 has joined #ruby
joshu_ has joined #ruby
Astralum has quit [Ping timeout: 264 seconds]
peterdecroos has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
basmoura has joined #ruby
weszlem has quit []
joshu has quit [Ping timeout: 252 seconds]
fgo has quit [Read error: No route to host]
fgo_ has joined #ruby
gasbakid has joined #ruby
kaspergrubbe has joined #ruby
alekst has joined #ruby
funburn has quit [Quit: funburn]
leonidlm has joined #ruby
fgo_ has quit [Ping timeout: 246 seconds]
soba has quit [Ping timeout: 272 seconds]
skoovdebo has joined #ruby
binaryplease has joined #ruby
jbpros has joined #ruby
leonidlm has quit [Ping timeout: 252 seconds]
codenapper has quit [Ping timeout: 264 seconds]
shvelo__ has joined #ruby
RaCx has joined #ruby
Hanmac1 has joined #ruby
jjbohn has joined #ruby
Advocation has joined #ruby
mlpinit has joined #ruby
platypine has quit [Ping timeout: 246 seconds]
Guest51393 has joined #ruby
tharindu is now known as tharindu|away
weszlem has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
obs has joined #ruby
jjbohn has quit [Ping timeout: 245 seconds]
Advocation has quit [Ping timeout: 272 seconds]
parduse has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
mlpinit has quit [Ping timeout: 272 seconds]
parduse has joined #ruby
tharindu|away is now known as tharindu
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jjbohn has joined #ruby
jjbohn has quit [Read error: Connection reset by peer]
jjbohn_ has joined #ruby
lessless has quit [Ping timeout: 240 seconds]
forced_request has joined #ruby
xk_id has quit [Quit:
fastred has quit [Quit: fastred]
varfoo has quit [Quit: WeeChat 0.4.0]
graydot has quit [Quit: graydot]
LnL has quit [Quit: LnL]
heftig has quit [Ping timeout: 245 seconds]
dEPy has joined #ruby
mikecmpbll has joined #ruby
mikepack has joined #ruby
tonni has joined #ruby
jjbohn_ has quit [Read error: Connection reset by peer]
heftig has joined #ruby
jjbohn has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
fysaen has joined #ruby
jamblack has joined #ruby
varfoo has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Remote host closed the connection]
Kricir has joined #ruby
jamesaanderson has joined #ruby
tkuchiki has joined #ruby
Mars__ has joined #ruby
fysaen has quit [Ping timeout: 246 seconds]
BigBlueBacon has joined #ruby
goto has joined #ruby
noop has quit [Ping timeout: 240 seconds]
vpretzel has joined #ruby
jjbohn has quit [Ping timeout: 272 seconds]
Kricir has quit [Remote host closed the connection]
zoee has joined #ruby
sambao21 has joined #ruby
noop has joined #ruby
lessless has joined #ruby
anderson has quit [Ping timeout: 240 seconds]
_maes_ has joined #ruby
goto is now known as anderson
ravster has joined #ruby
fightback has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
polaco_zZz is now known as polaco
fightback has quit [Max SendQ exceeded]
Mars__ has quit [Ping timeout: 240 seconds]
ringaroses has joined #ruby
tkuchiki has quit [Ping timeout: 245 seconds]
xcess_denied has quit [Quit: Leaving...]
joshu has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
shvelo__ is now known as shvelo
shvelo has quit [Changing host]
shvelo has joined #ruby
ffranz has joined #ruby
joshu_ has quit [Ping timeout: 264 seconds]
varfoo has quit [Quit: WeeChat 0.4.0]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
shredding has joined #ruby
gasbakid_ has joined #ruby
_HolyCow has quit [Quit: Leaving.]
RaCx has quit [Ping timeout: 272 seconds]
RaCx_ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
theRoUS has joined #ruby
guns has joined #ruby
gasbakid has quit [Ping timeout: 245 seconds]
varfoo has joined #ruby
varfoo has quit [Client Quit]
jamesaanderson has joined #ruby
weszlem has quit []
varfoo has joined #ruby
breakingthings has joined #ruby
shvelo has quit [Quit: Ex-Chat]
weszlem has joined #ruby
olivier_bK has quit [Remote host closed the connection]
jjbohn has joined #ruby
GreatSUN has quit [Ping timeout: 250 seconds]
habanany has joined #ruby
fightback has joined #ruby
yacks has joined #ruby
habanany has quit [Read error: Connection reset by peer]
ehc has joined #ruby
mark_locklear has joined #ruby
habanany has joined #ruby
fgo has joined #ruby
Squarepy has quit [Ping timeout: 240 seconds]
lukec has joined #ruby
IceDragon has joined #ruby
ehc has quit [Ping timeout: 272 seconds]
Macaveli has quit [Quit: Computer has gone to sleep.]
jwest has quit [Quit: WeeChat 0.4.1]
ringaroses has quit [Quit: Leaving]
jwest has joined #ruby
rickmasta has joined #ruby
jjbohn has quit [Quit: Leaving...]
Macaveli has joined #ruby
LarsSmit has quit [Quit: Leaving.]
lkba has quit [Read error: Connection reset by peer]
Aryasam has joined #ruby
lkba has joined #ruby
mklappstuhl has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
RaCx_ has quit [Quit: Computer has gone to sleep.]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lukec has quit [Ping timeout: 272 seconds]
TheHodge has joined #ruby
atmosx has quit [Quit: Lost in trance]
fightback has quit [Read error: Connection reset by peer]
mklappst_ has joined #ruby
lfox has joined #ruby
RaCx has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 244 seconds]
marcgg has quit [Read error: Connection reset by peer]
cody-- has joined #ruby
marcgg has joined #ruby
kaspergrubbe has joined #ruby
sailias has joined #ruby
kaldrenon has joined #ruby
zoee has joined #ruby
Squarepy has joined #ruby
RaCx has quit [Ping timeout: 244 seconds]
MattStratton has joined #ruby
RaCx has joined #ruby
krawchyk has joined #ruby
jamesaanderson has joined #ruby
drag00n has joined #ruby
asteros has joined #ruby
ephemerian has joined #ruby
jkamenik has joined #ruby
Aryasam has quit [Ping timeout: 264 seconds]
jetblack has joined #ruby
hiroyuki has joined #ruby
Squarepy has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
testslave has joined #ruby
Squarepy has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
weszlem has quit []
mlpinit has joined #ruby
dkamioka has joined #ruby
joast has quit [Quit: Leaving.]
mary5030 has joined #ruby
kcombs has quit [Ping timeout: 245 seconds]
rdalin has quit []
gasbakid_ has quit [Quit: Quitte]
gasbakid has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
joast has joined #ruby
gianlucadv_ has joined #ruby
mikepack has joined #ruby
kreantos has joined #ruby
nateberkopec has joined #ruby
krawchyk_ has joined #ruby
gasbakid_ has joined #ruby
rvchangue has quit [Ping timeout: 268 seconds]
burlyscudd has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
gasbakid has quit [Ping timeout: 245 seconds]
dzan has quit [Ping timeout: 246 seconds]
_serial_ has joined #ruby
dzan has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
krawchyk has quit [Ping timeout: 272 seconds]
^Chris^ has joined #ruby
Mars__ has joined #ruby
CreativeEmbassy has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rickmasta has quit [Quit: Leaving...]
stringoO has joined #ruby
VTLob has joined #ruby
ephemerian has quit [Quit: Leaving.]
jonathanwallace has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
Aryasam has joined #ruby
Mars__ has quit [Ping timeout: 240 seconds]
shevy has quit [Ping timeout: 246 seconds]
dusseault has quit [Remote host closed the connection]
ephemerian has joined #ruby
jonathanwallace has quit [Client Quit]
dkamioka has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
dkamioka has joined #ruby
Macaveli has quit [Quit: Computer has gone to sleep.]
ananthakumaran has quit [Quit: Leaving.]
banjara has joined #ruby
Macaveli has joined #ruby
_serial_ has quit [Quit: Ex-Chat]
Aryasam has quit [Ping timeout: 264 seconds]
BizarreCake has joined #ruby
lfox has quit [Quit: ZZZzzz…]
gasbakid_ has quit [Quit: Quitte]
jerius has joined #ruby
gasbakid has joined #ruby
jonathanwallace has joined #ruby
dkamioka has quit [Ping timeout: 240 seconds]
hamakn has joined #ruby
banjara has quit [Ping timeout: 244 seconds]
SteveBenner9 has quit [Ping timeout: 246 seconds]
Shidash1 has quit [Ping timeout: 248 seconds]
wesside has joined #ruby
xk_id has joined #ruby
tiglog has joined #ruby
xk_id has quit [Client Quit]
BizarreCake has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 252 seconds]
lfox has joined #ruby
happydude has quit [Quit: Leaving]
ehc has joined #ruby
tharindu has quit [Quit: Leaving...]
ExCa|iBuR has joined #ruby
decoponio has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smigg has joined #ruby
nfk has quit [Quit: yawn]
shevy has joined #ruby
gstamp_ has joined #ruby
smigg has quit [Remote host closed the connection]
ckinni has joined #ruby
gianlucadv_ has quit [Ping timeout: 260 seconds]
gstamp has quit [Read error: Connection reset by peer]
gstamp_ is now known as gstamp
tonni has quit [Remote host closed the connection]
tonni has joined #ruby
h_kon has quit [Remote host closed the connection]
gstamp_ has joined #ruby
fgo has joined #ruby
h_kon has joined #ruby
himsin has quit [Quit: himsin]
danguita has quit [Ping timeout: 272 seconds]
srji_ has joined #ruby
MattStratton has quit [Quit: Textual IRC Client: www.textualapp.com]
_Andres has joined #ruby
YaNakilon has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
duggiefresh has joined #ruby
gstamp has quit [Ping timeout: 256 seconds]
gstamp_ is now known as gstamp
TigerWolf has joined #ruby
icecandy has quit [Quit: Going offline, see ya! (www.adiirc.com)]
srji has quit [Ping timeout: 264 seconds]
mmitchell has joined #ruby
tonni has quit [Ping timeout: 272 seconds]
danshult_ has joined #ruby
h_kon has quit [Ping timeout: 248 seconds]
fgo has quit [Ping timeout: 246 seconds]
danshultz has quit [Ping timeout: 264 seconds]
zoee has joined #ruby
RaCx has joined #ruby
kobain has joined #ruby
BizarreCake has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
Guest24707 has joined #ruby
skoovdebo has quit [Quit: Textual IRC Client: www.textualapp.com]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aagdbl has quit [Quit: Leaving.]
xcess_denied has joined #ruby
zipper has joined #ruby
aagdbl has joined #ruby
JonahR has joined #ruby
<Guest24707> Anyone can give me a hint of why this piece of code doesn't work: https://github.com/cinchrb/cinch/blob/master/examples/basic/seen.rb ?
rdark has quit [Ping timeout: 246 seconds]
ehc has quit [Quit: ehc]
<_br_> Guest24707: what error do you get ?
Spami has joined #ruby
zodiak has quit [Ping timeout: 272 seconds]
<Guest24707> _br_, No errors, it just doesn't do what it's supposed to do. It works just fine if you except the use of the hash.
rdark has joined #ruby
<Guest24707> _br_, never gets to the "else" part either.
achru has quit [Remote host closed the connection]
sayan has quit [Remote host closed the connection]
achru has joined #ruby
tonni has joined #ruby
aagdbl has quit [Ping timeout: 246 seconds]
myappleguy has joined #ruby
cody-- has quit [Quit: derp]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<_br_> Guest24707: Maybe you use it wrong. Check manual, otherwise use e.g. pry ot set a breakpoint to check values
NotreDev has joined #ruby
burlyscudd has quit [Quit: Leaving.]
<Guest24707> _br_, cheers.
<_br_> Syntax wise its ok, maybe wrong regex?
<Guest24707> The regex is alright as well.
rickmasta has joined #ruby
<tobiasvl> what are you trying to do, what do you expect to happen, and what actually happens?
<_br_> Not quite sure, maybe someone else knows cinch gem
Advocation has joined #ruby
rickmasta has quit [Client Quit]
hamakn has quit [Remote host closed the connection]
jlast has joined #ruby
<Guest24707> It's supposed to store whatever someone says, and since it uses a hash, it keeps only the last thing that that person said.
rickmasta has joined #ruby
hamakn has joined #ruby
achru has quit [Ping timeout: 272 seconds]
srji has joined #ruby
jbsnake has quit [Read error: Connection reset by peer]
Aryasam has joined #ruby
gcds has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
allsystemsarego has quit [Quit: Leaving]
<gcds> hello, maybe someone has http response regex?
tannerburson has joined #ruby
mephux has quit [Quit: w0ots...]
mephux has joined #ruby
srji_ has quit [Ping timeout: 264 seconds]
asteros has quit [Quit: asteros]
Advocation has quit [Ping timeout: 248 seconds]
<waxjar> there are plenty of libraries that deal with http requests and responses. don't use a regexp for that :/
zeeraw has joined #ruby
olivier_bK has joined #ruby
hamakn has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
nfk has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
danguita has joined #ruby
tkuchiki has joined #ruby
zodiak has joined #ruby
<gcds> waxjar: I am writting my own http proxy server and libs is not an option
<gcds> i have regex but current also returns \r\n on the message
camilasan has quit [Remote host closed the connection]
<waxjar> well, good luck then ;)
ffranz has quit [Quit: Leaving]
camilasan has joined #ruby
Rollabunna has joined #ruby
<gcds> waxjar: then going for performance another lib could make everything really slow :)
Mon_Ouie has quit [Ping timeout: 246 seconds]
<_br_> you write that in ruby?
rellin has quit [Read error: Connection reset by peer]
shaunbak_ has quit [Remote host closed the connection]
<waxjar> some libs have a parser written in C. Regexpes will be significantly slower
<gcds> it's only one line :)
<gcds> parser
shaunbaker has joined #ruby
<gcds> to extract version code and message
<gcds> _br_: Because of need to parse html manipulate request & responses I choose ruby
<gcds> it works really fast with multi worker topology :)
mklappst_ has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lukec has joined #ruby
jbpros has quit [Quit: jbpros]
<gcds> can handle about 100 connections without any problems on my netbook :)
mklappstuhl has joined #ruby
<gcds> Bye :)
camilasan has quit [Read error: No route to host]
<gcds> everyone
gcds has quit [Quit: gcds]
gasbakid has quit [Ping timeout: 240 seconds]
<fbernier> >> BigDecimal(10).round.class
<eval-in> fbernier => undefined method `BigDecimal' for main:Object (NoMethodError) ... (https://eval.in/67060)
camilasan has joined #ruby
<fbernier> => Fixnum
nateberkopec has quit [Quit: Leaving...]
<fbernier> BigDecimal(10).round(0).class
<fbernier> => BigDecimal
<fbernier> wtf
Aryasam has quit [Ping timeout: 240 seconds]
jerius has quit [Ping timeout: 244 seconds]
mikepack has joined #ruby
<waxjar> BigDecimal.new ?
danguita has quit [Ping timeout: 244 seconds]
Macaveli has quit [Quit: Computer has gone to sleep.]
aryaching has joined #ruby
<fbernier> waxjar: Same thing
<waxjar> apparantly not ;)
shaunbaker has quit [Ping timeout: 245 seconds]
<fbernier> ?
<waxjar> ah, you gotta require it first. nvm
yfeldblum has joined #ruby
<fbernier> ah yeah that repl error
mary5030 has joined #ruby
<fbernier> I wasn't expecting a bot to eval ...
mary5030 has quit [Remote host closed the connection]
bean has joined #ruby
mary5030 has joined #ruby
shaunbaker has joined #ruby
nwertman has joined #ruby
platzhirsch has joined #ruby
jerius has joined #ruby
<Hanmac1> >> require "bigdecimal"; [BigDecimal(10).round,BigDecimal(10).round.class]
<eval-in> Hanmac1 => (https://eval.in/67063)
<Hanmac1> it returns for me: => [10, Fixnum]
NotreDev has quit [Quit: NotreDev]
<platzhirsch> so, what's going on here
Mars__ has joined #ruby
mikepack has quit [Ping timeout: 246 seconds]
Hanmac1 is now known as Hanmac
vlad_starkov has joined #ruby
<fbernier> Hamnac: what about round(0)
<Hanmac> but [BigDecimal(10).round(0),BigDecimal(10).round(0).class] #=> [#<BigDecimal:1d62b98,'0.1E2',9(27)>, BigDecimal]
<fbernier> yep
<fbernier> from the ruby-doc
<fbernier> "Round to the nearest 1 (by default), returning the result as a BigDecimal."
yfeldblum has quit [Read error: Connection reset by peer]
Czupa has joined #ruby
<Hanmac> hm okay maybe there is something fishy about that
thedonvaughn has quit [Read error: Operation timed out]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
sbos99 has quit [Quit: Leaving]
drumsrgr8forn8 has joined #ruby
Mars__ has quit [Ping timeout: 240 seconds]
mary5030 has quit [Read error: Connection reset by peer]
<fbernier> from the ruby source:
<fbernier> if (argc == 0) {
<fbernier> return BigDecimal_to_i(ToValue(c));
<fbernier> }
mary5030_ has joined #ruby
ffranz has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
ce_afk is now known as cescalante
habanany has quit [Read error: Connection reset by peer]
aspiers has joined #ruby
buscon has joined #ruby
elux has joined #ruby
kcombs has joined #ruby
burlyscudd has joined #ruby
AltGrendel has joined #ruby
asobrasil has joined #ruby
petey has joined #ruby
thesheff17 has joined #ruby
<zipper> How do I split a string on each letter?
thedonvaughn has joined #ruby
DouweM has joined #ruby
<Hanmac> zipper: str.chars or str.each_char ... depending if you want to interate or not
GrantKH has joined #ruby
larissa has quit [Quit: Leaving]
<Hanmac> (chars may return an Array and each_char returns an Enumerator)
Ox6abe has joined #ruby
burlyscudd has quit [Ping timeout: 245 seconds]
jbsnake has joined #ruby
tharindu has joined #ruby
mojjojo has joined #ruby
jibi has joined #ruby
basmoura has quit [Quit: Computer has gone to sleep.]
<Hanmac> apeiros: did you know about the magic from String#split comined with an array with group capture? ;P
deception has joined #ruby
<shevy> Hanmac's code is scary
Es0teric has joined #ruby
<shevy> zipper
<shevy> >> "abc".split(//)
<eval-in> shevy => ["a", "b", "c"] (https://eval.in/67073)
<Hanmac> >> "abc".chars
<eval-in> Hanmac => ["a", "b", "c"] (https://eval.in/67074)
jjbohn has joined #ruby
Guest35312 has quit [Ping timeout: 245 seconds]
<zipper> shevy: I was looking for a regex thanks
Guest24707 has left #ruby [#ruby]
typicalbender has joined #ruby
cody-- has joined #ruby
<Hanmac> shevy you can also look at this:
<Hanmac> >> "this is good".split(/i/)
<eval-in> Hanmac => ["th", "s ", "s good"] (https://eval.in/67075)
jamblack has quit [Quit: jamblack]
<Hanmac> >> "this is good".split(/(i)/)
<eval-in> Hanmac => ["th", "i", "s ", "i", "s good"] (https://eval.in/67076)
mikecmpbll has joined #ruby
<Hanmac> shevy: and if you want split why not use:
<Hanmac> >> "abc".split('')
<eval-in> Hanmac => ["a", "b", "c"] (https://eval.in/67077)
krawchyk has joined #ruby
krawchyk has quit [Remote host closed the connection]
<DouweM> Hanmac: #split with capture groups is news to me, thanks :)
johnnyfuchs has joined #ruby
tharindu has quit [Ping timeout: 252 seconds]
benwoody has joined #ruby
<Hanmac> DouweM: 5 minutes ago it was new for me too ;D
heftig has quit [Quit: Quitting]
krawchyk has joined #ruby
<DouweM> that's why I love this channel
krobinson has joined #ruby
Ox6abe has quit [Remote host closed the connection]
Ox6abe has joined #ruby
danguita has joined #ruby
jrhe has joined #ruby
<Hanmac> wtf ... and this special case is also documented: http://www.ruby-doc.org/core-2.0.0/String.html#method-i-split "If pattern contains groups, the respective matches will be returned in the array as well."
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<shevy> Hanmac hmm .split('') reads strangely to me
thelorax123 has quit [Remote host closed the connection]
dEPy has quit [Quit: Computer has gone to sleep.]
falten has quit [Ping timeout: 264 seconds]
fgo has joined #ruby
krobinson has quit [Client Quit]
dEPy has joined #ruby
OdNairy has joined #ruby
falten has joined #ruby
rippa has joined #ruby
alo1 has quit [Ping timeout: 272 seconds]
petey has quit [Remote host closed the connection]
alo1 has joined #ruby
mary5030_ has quit [Remote host closed the connection]
tylersmith has joined #ruby
petey has joined #ruby
thelorax123 has joined #ruby
tylersmith has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ox6abe has quit [Ping timeout: 264 seconds]
tylersmith has joined #ruby
thumpba_ has joined #ruby
Guedes0 has joined #ruby
mj12albert has quit [Quit: Textual IRC Client: www.textualapp.com]
lfox has quit [Ping timeout: 252 seconds]
dEPy has quit [Ping timeout: 245 seconds]
GrantKH has quit [Remote host closed the connection]
GrantKH has joined #ruby
sandeepk has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
mj12albert has joined #ruby
Ox6abe has joined #ruby
RaCx has joined #ruby
jamesaanderson has joined #ruby
<Hanmac> shevy: do you want something to lol about? http://bugs.ruby-lang.org/issues/9107 << " Introduce YES and NO as aliases of true and false " ;P
mj12albert has quit [Max SendQ exceeded]
mj12albert has joined #ruby
GrantKH has quit [Read error: Connection reset by peer]
andrewstewart has joined #ruby
GrantKH has joined #ruby
GrantKH has quit [Read error: Connection reset by peer]
_maes_ has joined #ruby
jamesaanderson has quit [Client Quit]
GrantKH has joined #ruby
jamblack has joined #ruby
jamblack has quit [Client Quit]
banjara has joined #ruby
thumpba_ has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
banghouse2 has joined #ruby
raphaelivan has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
mary5030 has joined #ruby
<shevy> hmm
ehc has joined #ruby
<shevy> he has a point though
<shevy> there is indeed the constant TRUE
tagrudev has quit [Quit: Me = Awesome]
<shevy> it seems unnecessary though
zipper has quit [Quit: leaving]
banghouse2 is now known as banghouse
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
Kricir has joined #ruby
binaryplease has quit [Ping timeout: 248 seconds]
banjara has quit [Quit: Leaving.]
<DouweM> I don't see the point of the TRUE/FALSE constants either
NotreDev has joined #ruby
burlyscudd has joined #ruby
banjara has joined #ruby
<Hanmac> >> NIL
<eval-in> Hanmac => nil (https://eval.in/67078)
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
<DouweM> ...nor that one
jamblack has joined #ruby
Advocation has joined #ruby
<Hanmac> what me more confuse is that:
<Hanmac> >> Float::INFINITY
<eval-in> Hanmac => Infinity (https://eval.in/67079)
sandeepk has quit [Quit: Leaving...]
<Hanmac> the constant is in scream_case, but the to_s / inspect is different ./
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
<DouweM> >> Float::NAN
<eval-in> DouweM => NaN (https://eval.in/67080)
IcyDragon has joined #ruby
<DouweM> doesn't seem that weird. constants are all-caps, #to_s/#inspect is how you'd express them in output
lmickh has joined #ruby
gianlucadv has quit [Read error: Connection reset by peer]
rickmasta has quit [Quit: Leaving...]
nateberkopec has joined #ruby
dp has joined #ruby
weszlem has joined #ruby
himsin has joined #ruby
himsin has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
Advocation has quit [Ping timeout: 245 seconds]
IceDragon has quit [Ping timeout: 272 seconds]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
jdguzman has joined #ruby
tonni has quit [Remote host closed the connection]
thumpba_ has joined #ruby
jrhe has quit [Quit: jrhe]
tonni has joined #ruby
weszlem has quit [Client Quit]
Monie has joined #ruby
ExCa|iBuR has quit [Ping timeout: 245 seconds]
znode has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
thumpba_ has quit [Remote host closed the connection]
sandeepk has joined #ruby
dp has left #ruby [#ruby]
echevemaster has joined #ruby
artm has quit [Ping timeout: 240 seconds]
gyre007 has joined #ruby
Ox6abe has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
jjbohn is now known as jjbohn|afk
tonni has quit [Ping timeout: 246 seconds]
mrfoto has quit [Remote host closed the connection]
Ox6abe has joined #ruby
srji has quit [Ping timeout: 264 seconds]
<Hanmac> DouweM: look at this difference:
<Hanmac> >> [[Float::NAN].pack("g"), [0.0/0.0].pack("g")]
<eval-in> Hanmac => ["\x7F\xC0\0\0", "\xFF\xC0\0\0"] (https://eval.in/67081)
Spami has joined #ruby
Guedes0 has quit [Ping timeout: 252 seconds]
<DouweM> that's... strange. at least in Rubinius, Float::NAN is defined as `NAN = 0.0/0.0` exactly
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d45h has quit []
achru has joined #ruby
<gyre007> gents anyone here using Octopress ?
jrhe has joined #ruby
camilasan has quit [Remote host closed the connection]
jjbohn|afk is now known as jjbohn
shaunbaker has quit [Remote host closed the connection]
<Hanmac> DouweM: that is a difference between quiet and loud NaN's ... i maked a ticket about that to make it more clear http://bugs.ruby-lang.org/issues/8994
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
camilasan has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
shaunbaker has joined #ruby
jrhe has quit [Client Quit]
Liquid-- has joined #ruby
<DouweM> I didn't even know about quiet and loud NaNs
habanany has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
habanany has quit [Max SendQ exceeded]
rickmasta has joined #ruby
camilasan has joined #ruby
<DouweM> but if it's just a constant assignment in Rubinius, does Rubinius do loud/quiet NaN wrong?
Ox6abe has quit [Ping timeout: 246 seconds]
fgo has quit [Ping timeout: 252 seconds]
jrhe has joined #ruby
habanany has joined #ruby
maletor has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
mikepack has joined #ruby
<Hanmac> hm i dont know ... ruby itself does not very differ between them ... (so you cant check with methods if a NaN is quiet or not) ... neigher you can create NaNs for your functions which are your wanted type ... also the -@ method on NaN may be implemented wrong (it changes the NaN type, not the sign)
maletor has quit [Client Quit]
habanany has quit [Max SendQ exceeded]
<Hanmac> thats why i maked this ticket
RaCx_ has joined #ruby
<DouweM> yeah, I read the ticket
<cout> nan is never equal to nan
maletor has joined #ruby
maletor has quit [Client Quit]
zarubin has joined #ruby
shaunbaker has quit [Ping timeout: 240 seconds]
RaCx has quit [Ping timeout: 240 seconds]
RaCx_ is now known as RaCx
<cout> and there are a gazillion bit representations of nan
Liquid-- has quit [Client Quit]
habanany has joined #ruby
mengu has quit []
<Hanmac> cout yeah, but as you see there are still different types of NaN
NotreDev has quit [Quit: NotreDev]
<cout> Hanmac: I don't see why that's a "but"
Monie has joined #ruby
maletor has joined #ruby
simplyaubs has joined #ruby
jrhe has quit [Client Quit]
JonahR has quit [Quit: jonahR]
blackmesa has joined #ruby
Mars__ has joined #ruby
srji has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
Spami has joined #ruby
<Hanmac> for sample in my ticket there is also an quiet_nan + loud_nan, loud_nan + quiet_nan ... both ignore the 2nd object and return self, but it should take care that if you combine a quiet_nan and a loud_nan, indepent from the order, loud_nan should returned (because loud should has more priority than quiet)
shaunbaker has joined #ruby
heidi has joined #ruby
pel_daniel has joined #ruby
tharindu has joined #ruby
weszlem has joined #ruby
Kricir has quit []
AleksEst has quit [Ping timeout: 268 seconds]
Mars__ has quit [Ping timeout: 240 seconds]
PPH has quit [Quit: leaving]
AleksEst has joined #ruby
tesuji has quit [Ping timeout: 246 seconds]
kpshek has joined #ruby
threesome has quit [Ping timeout: 264 seconds]
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
MrThePlague has joined #ruby
iamjarvo has joined #ruby
sergicles has quit [Quit: sergicles]
Liothen has joined #ruby
shaunbak_ has joined #ruby
mojjojo has quit [Quit: mojjojo]
crus has quit [Read error: Connection reset by peer]
ahawkins has quit [Quit: leaving]
shaunbaker has quit [Ping timeout: 245 seconds]
platzhirsch has quit [Quit: Leaving.]
weszlem has quit []
Variantdataaa has joined #ruby
Squarepy has quit [Quit: Leaving]
pskosinski has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
graydot has joined #ruby
Fire-Dragon-DoL has joined #ruby
sergicles has joined #ruby
burlyscudd has quit [Quit: Leaving.]
jibi has quit [Read error: Operation timed out]
aspires has joined #ruby
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
rickmasta has quit [Read error: Connection reset by peer]
Megtastique has joined #ruby
rickmasta has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
fgo has joined #ruby
failshell has joined #ruby
jibi has joined #ruby
saarinen has joined #ruby
rudisimo has joined #ruby
kaspergr_ has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
freezey has joined #ruby
yfeldblum has joined #ruby
bluehavana has quit [Read error: Connection reset by peer]
bluehavana has joined #ruby
sandeepk_ has joined #ruby
sandeepk has quit [Read error: Connection reset by peer]
Morrolan has quit [Quit: ZNC - http://znc.in]
jb41 has quit [Quit: leaving]
fgo has quit [Ping timeout: 246 seconds]
kreantos has quit [Ping timeout: 245 seconds]
<myappleguy> gyre007: I use it for my blog
kaspergrubbe has quit [Ping timeout: 272 seconds]
St_Marx has joined #ruby
tomasso has joined #ruby
vince_prignano has joined #ruby
andikr has quit [Read error: Connection reset by peer]
saarinen has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
cburyta has joined #ruby
yacks has quit [Ping timeout: 245 seconds]
CaptainJet has joined #ruby
AleksEst has quit [Ping timeout: 272 seconds]
noname001__ has quit [Read error: Operation timed out]
AleksEst has joined #ruby
bronson_ has joined #ruby
dmyers has joined #ruby
Variantdataaa has quit [Ping timeout: 246 seconds]
jjbohn is now known as jjbohn|afk
zz_tsykoduk is now known as tsykoduk
Variantdataaa has joined #ruby
jjbohn|afk is now known as jjbohn
ggordan has joined #ruby
xcess_denied has quit [Read error: Connection reset by peer]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
xcess_denied has joined #ruby
axl_ has joined #ruby
rdark has quit [Ping timeout: 246 seconds]
leonidlm has joined #ruby
danshult_ has quit [Remote host closed the connection]
Targen has joined #ruby
danshultz has joined #ruby
RichardBaker has joined #ruby
relix has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
tiglog has quit [Quit: Leaving]
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
BigBlueBacon has quit [Ping timeout: 264 seconds]
DaniG2k has joined #ruby
BigBlueBacon has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
raphaelivan1 has joined #ruby
raphaelivan has quit [Quit: Leaving.]
newbiehacker has joined #ruby
habanany has quit [Quit: Leaving.]
dkamioka has joined #ruby
brtdv has quit []
yfeldblum has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
varfoo has joined #ruby
yfeldblum has joined #ruby
heftig has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Astral_ has quit [Read error: Connection timed out]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Variantdataaa has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
saarinen has quit [Read error: Connection reset by peer]
threesome has joined #ruby
gyre007 has quit [Remote host closed the connection]
saarinen has joined #ruby
neonlex has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
camilasan has quit [Remote host closed the connection]
phansch has quit [Remote host closed the connection]
camilasan has joined #ruby
mrfoto has joined #ruby
jjbohn is now known as jjbohn|afk
varfoo has quit [Quit: WeeChat 0.4.0]
tylersmith has quit [Remote host closed the connection]
krz has quit [Quit: krz]
yfeldblum has joined #ruby
aganov has quit [Quit: aganov]
ewnd9 has quit [Ping timeout: 245 seconds]
nobitanobi has joined #ruby
<nobitanobi> morning guys
lessless has quit [Remote host closed the connection]
typicalbender has quit [Quit: Leaving.]
cascalheira has joined #ruby
camilasan has quit [Ping timeout: 264 seconds]
Macaveli has quit [Ping timeout: 264 seconds]
TMM has quit [Quit: Ex-Chat]
Macaveli has joined #ruby
deception has quit [Read error: No route to host]
tylersmith has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
echevemaster has quit [Quit: Leaving]
digital-ghost has joined #ruby
mrfoto has quit []
Macaveli has quit [Read error: Connection reset by peer]
mlpinit has quit [Remote host closed the connection]
Macaveli has joined #ruby
jjbohn|afk is now known as jjbohn
dkamioka has quit [Remote host closed the connection]
dkamioka has joined #ruby
znode has quit [Quit: Lingo - http://www.lingoirc.com]
Macaveli has quit [Client Quit]
Ox6abe has joined #ruby
znode has joined #ruby
Mars__ has joined #ruby
znode has quit [Client Quit]
heidi has quit [Quit: Leaving.]
relix has joined #ruby
Macaveli has joined #ruby
Macaveli has quit [Remote host closed the connection]
endash has joined #ruby
typicalbender has joined #ruby
Macaveli has joined #ruby
burlyscudd has joined #ruby
thesheff17 has quit [Remote host closed the connection]
aagdbl has joined #ruby
Macaveli has quit [Client Quit]
relix has quit [Read error: Connection reset by peer]
Spami has quit [Quit: This computer has gone to sleep]
dagobah has quit [Remote host closed the connection]
dkamioka has quit [Ping timeout: 245 seconds]
Ox6abe has quit [Ping timeout: 252 seconds]
Mars__ has quit [Ping timeout: 240 seconds]
saarinen has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
GrantKH has quit []
eka has joined #ruby
sepp2k has quit [Quit: Konversation terminated!]
eka has quit [Max SendQ exceeded]
myappleguy has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
GrantKH has joined #ruby
srji has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
eka has joined #ruby
GrantKH has left #ruby [#ruby]
thesheff17 has joined #ruby
raphaelivan1 has quit [Quit: Leaving.]
yacks has joined #ruby
pixelgremlins_ba is now known as pixelgremlins
myappleguy has joined #ruby
<myappleguy> hello
joshu has quit [Ping timeout: 245 seconds]
d45h has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
<apeiros> Hanmac: yes
<apeiros> Hanmac: do you know the magic of .split(regex, -1) ?
vlad_starkov has quit [Remote host closed the connection]
<Hanmac> yeah ,P
timonv has quit [Ping timeout: 264 seconds]
burlyscudd has quit [Ping timeout: 264 seconds]
kevinykchan has joined #ruby
joshu has joined #ruby
bootcoder has quit [Read error: Connection reset by peer]
bootcoder has joined #ruby
danshult_ has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<nobitanobi> love this: if puts "You'll see this"; puts "but not this"; end
RaCx has joined #ruby
coldmethod has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
typicalbender has quit [Quit: Leaving.]
ephemerian has quit [Quit: Leaving.]
einarj has quit [Remote host closed the connection]
MrZYX|off is now known as MrZYX
vlad_starkov has joined #ruby
RaCx has quit [Client Quit]
weszlem has joined #ruby
zipper_ has joined #ruby
capicue has quit [Quit: Leaving...]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sambao21 has quit [Quit: Computer has gone to sleep.]
<zipper_> Uh doesn't ruby have a destroy method when one wants to delete an array?
fgo has joined #ruby
yjmsf20 has quit [Quit: Lost terminal]
<Hanmac> zipper_: clear ?
Solnse has joined #ruby
xk_id has joined #ruby
mojjojo has joined #ruby
Deele has quit [Quit: User excited]
<zipper_> Hanmac: no not that
<zipper_> Like you create an array with array = Array.new
relix has joined #ruby
<zipper_> There should be a way to destroy this, no?
<DouweM> zipper_: Ruby is garbage collected. just let the var go out of scope or set it to nil
<zipper_> I am coming from a C memory management standpoint
relix has quit [Max SendQ exceeded]
nomenkun has quit [Ping timeout: 246 seconds]
<nobitanobi> zipper_, you want to call the GC yourself or...?
<DouweM> if you want to force a GC sweep, call GC.start
<zipper_> nobitanobi: sorta
<nobitanobi> ^ DouweM
mikecmpbll has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<nobitanobi> but not recommended way of doing things in Ruby. Let the GC do its job :P
RaCx has joined #ruby
<zipper_> GC.start? Let me google that
<lupine> in fairness, ruby's GC is terrible
<zipper_> I want to run a recursive function and...
psyprus has quit [Changing host]
psyprus has joined #ruby
<lupine> but typically because too much GC, not because not enough
vlad_starkov has joined #ruby
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<zipper_> I want to destroy the variables that I don't need
<zipper_> Like the temp ones
mlpinit has joined #ruby
<lupine> zipper_, then you need to introduce scope
<lupine> once the variable is out of scope, it is destroyed
DaniG2k has quit [Quit: leaving]
mikecmpbll has quit [Client Quit]
mikepack has joined #ruby
<lupine> or rather, some time after it goes out of scope
<zipper_> lupine: Introduce scope? It's recursive so it doesn't go out of scope until it it runs halfway.
<zipper_> I don't know if you getmy point
Voodoofish430 has joined #ruby
<lupine> well, I don't know what the code is at this moment
<DouweM> lupine: koichi's new GC implementation in 2.1 will be better
<lupine> aye. jruby does a decent job too
nvrch has quit [Quit: nvrch]
<lupine> but I don't think any of them come with a mechanism to hint to the GC that an in-scope object can be destroyed safely
<lupine> you'd have to be insane to add that
mikepack has quit [Client Quit]
<DouweM> setting the var to nil wouldn't do the trick?
relix has joined #ruby
<DouweM> if there's no reference anymore, the gc will sweep it
tylersmith has quit [Remote host closed the connection]
newbiehacker has quit [Ping timeout: 240 seconds]
* lupine doesn't know enough to know if that would actually work
<lupine> testable, though
<DouweM> fwiw, about the new GC in 2.1: http://www.atdot.net/~ko1/activities/Euruko2013-ko1.pdf
relix has quit [Max SendQ exceeded]
Spami has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
hiroyuki_ has joined #ruby
zipper_____ has joined #ruby
daxroc has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
<zipper_____> pastebin.com/REJDzF8i
Astralum has joined #ruby
mikepack has joined #ruby
olivier_bK has quit [Ping timeout: 272 seconds]
jlast has quit [Read error: Connection reset by peer]
<zipper_> This was the infinite recursive function that I wanted to run: pastebin.com/REJDzF8i
jlast has joined #ruby
<DouweM> what's with the multiple nicks?
axl_ has quit [Quit: axl_]
mephux has quit [Quit: w0ots...]
<zipper_> I wonder how far it can go if all the variables are destroyed before the function calls itself
hiroyuki_ has quit [Remote host closed the connection]
<zipper_> DouweM: One is me on mobile
<DouweM> and also, setting array to nil should kill the reference, calling GC.start manually will perform the sweep
wallerdev has joined #ruby
<DouweM> otherwise, just wait for the GC to kick in automatically
relix has joined #ruby
<zipper_> DouweM: I wrote it on my way from school then I ran out if charge
hiroyuki_ has joined #ruby
saarinen has quit [Quit: saarinen]
hiroyuki has quit [Read error: Connection reset by peer]
kevinykchan has quit [Ping timeout: 252 seconds]
<zipper_> DouweM: so after it's nil for ling enough it get's garbage collected?
<zipper_> *long
<DouweM> zipper_: it breaks autocomplete in my client, because tabbing from `zip` will alternate between both niks
Guest28163 has joined #ruby
<DouweM> pretty much
<zipper_> DouweM: let me exit the phone
freezey has quit [Remote host closed the connection]
zipper_____ has quit [Client Quit]
kevinykchan has joined #ruby
freezey has joined #ruby
<zipper_> DouweM: hey what do you think of that code btw? Is there a better way to write it?
classix has quit [Ping timeout: 248 seconds]
heidi has joined #ruby
<DouweM> zipper_: to judge on that, I'll need the actual code. not a weird YAML example
tharindu has quit [Quit: Leaving...]
kaspergrubbe has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
blaxter has quit [Quit: foo]
nhmood has quit [Remote host closed the connection]
cody-- has quit [Quit: derp]
joshu has quit [Remote host closed the connection]
nhmood has joined #ruby
nhmood has quit [Max SendQ exceeded]
havenwood has joined #ruby
kenneth has quit [Quit: kenneth]
nhmood has joined #ruby
nhmood has quit [Max SendQ exceeded]
MrThePlague has quit [Remote host closed the connection]
axl_ has joined #ruby
nhmood has joined #ruby
nhmood has quit [Max SendQ exceeded]
rellin has joined #ruby
tkuchiki has quit [Remote host closed the connection]
nhmood has joined #ruby
nhmood has quit [Max SendQ exceeded]
MrThePlague has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
myappleguy has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
dkamioka has joined #ruby
evanvarvell has quit [Ping timeout: 252 seconds]
sputnik13 has quit [Read error: Operation timed out]
werdnativ has joined #ruby
freezey has quit [Ping timeout: 240 seconds]
nhmood has joined #ruby
nhmood has quit [Max SendQ exceeded]
<zipper_> DouweM: that is the whole thing. Since yaml is a recursive acronym it was the point.
nhmood has joined #ruby
nhmood has quit [Max SendQ exceeded]
kaspergrubbe has quit [Ping timeout: 246 seconds]
<DouweM> is that the actual method you're trying to write?
ehc has quit [Quit: ehc]
burlyscudd has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
nhmood has joined #ruby
nhmood has quit [Max SendQ exceeded]
nhmood has joined #ruby
nhmood has quit [Max SendQ exceeded]
nhmood has joined #ruby
nhmood has quit [Max SendQ exceeded]
danshult_ has quit [Remote host closed the connection]
nhmood has joined #ruby
nhmood has quit [Max SendQ exceeded]
srji has joined #ruby
nhmood has joined #ruby
nhmood has quit [Max SendQ exceeded]
danshultz has joined #ruby
nhmood has joined #ruby
nhmood has quit [Max SendQ exceeded]
MrZYX is now known as MrZYX|off
Advocation has joined #ruby
nhmood has joined #ruby
timonv_ has joined #ruby
typicalbender has joined #ruby
jjbohn has quit [Quit: Leaving...]
joshu has joined #ruby
joshu has quit [Client Quit]
MrZYX|off is now known as MrZYX
Czupa has quit [Remote host closed the connection]
cescalante is now known as ce_afk
<zipper_> DouweM: yes it is
burlyscudd has quit [Ping timeout: 272 seconds]
brtdv has joined #ruby
shredding has quit [Quit: shredding]
jjbohn has joined #ruby
<DouweM> well, in that case: I really don't see the point and you need some spaves around those operators, but otherwise this is the way recursion works
timonv has quit [Ping timeout: 264 seconds]
aspires has quit [Quit: sudo making a sandwich]
myappleguy has joined #ruby
buscon has quit [Ping timeout: 240 seconds]
<zipper_> DouweM: spaves? Never heard of those.
<DouweM> *spaces ;)
Advocation has quit [Ping timeout: 245 seconds]
danshultz has quit [Ping timeout: 245 seconds]
aspires has joined #ruby
<zipper_> DouweM: spaces between what? You're talking readability now, no?
<zipper_> You made me google spaves bro :D
jjbohn has quit [Client Quit]
relix has quit [Read error: Connection reset by peer]
DanKnox_away is now known as DanKnox
jjbohn has joined #ruby
<DouweM> yeah, spaces around << and +
classix has joined #ruby
newbiehacker has joined #ruby
<zipper_> SLOW INTERNET IS FROM HELL!!!
<zipper_> I'll be back
Chris-_ has joined #ruby
Soliah has quit [Ping timeout: 244 seconds]
mmitchell has quit [Remote host closed the connection]
mmitchell has joined #ruby
Rollabunna has quit [Remote host closed the connection]
lukec has quit [Quit: lukec]
burlyscudd has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby
zipper has joined #ruby
jamblack has quit [Quit: jamblack]
aspiers has quit [Ping timeout: 264 seconds]
daxroc has joined #ruby
phansch has joined #ruby
apeiros has quit [Remote host closed the connection]
barratt has quit [Ping timeout: 245 seconds]
zxq9 has joined #ruby
newbiehacker has quit [Ping timeout: 240 seconds]
pel_daniel has quit [Ping timeout: 246 seconds]
whunt has joined #ruby
apeiros has joined #ruby
jibi has quit [Ping timeout: 246 seconds]
zipper_ has quit [Ping timeout: 264 seconds]
m8 has joined #ruby
cody-- has joined #ruby
fysaen has joined #ruby
camilasan has joined #ruby
danguita has quit [Ping timeout: 244 seconds]
jhulten has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
fgo has quit [Ping timeout: 241 seconds]
shaunbak_ has quit [Remote host closed the connection]
mmitchell has quit [Ping timeout: 272 seconds]
stkowski has joined #ruby
shaunbaker has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
relix has joined #ruby
mlpinit has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 246 seconds]
jamblack has joined #ruby
mary5030 has quit [Remote host closed the connection]
kenneth has joined #ruby
superscott[8] has joined #ruby
mary5030 has joined #ruby
ner0x has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
pskosinski has quit [Quit: Til rivido Idisti!]
zipper has quit [Quit: leaving]
sambao21 has joined #ruby
aagdbl has quit [Quit: Leaving.]
heidi has quit [Quit: Leaving.]
kpshek has quit []
pixelgremlins has quit [Ping timeout: 272 seconds]
mary5030 has quit [Ping timeout: 252 seconds]
ckinni has joined #ruby
Mars__ has joined #ruby
freezey has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Guest28163 has quit [Quit: w0ots...]
mephux_ has joined #ruby
mephux_ has quit [Changing host]
mephux_ has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
jcarouth has left #ruby ["Linkinus - http://linkinus.com"]
petey has quit [Remote host closed the connection]
MrThePlague has quit []
petey has joined #ruby
jjbohn has quit [Quit: Leaving...]
myappleguy has quit [Ping timeout: 252 seconds]
lukec has joined #ruby
mlpinit has joined #ruby
blackmesa has joined #ruby
edwardly has quit [Quit: ZNC - http://znc.in]
Mars__ has quit [Ping timeout: 246 seconds]
myappleguy has joined #ruby
sandeepk_ has quit [Ping timeout: 246 seconds]
Tarential has quit [Excess Flood]
Tarential has joined #ruby
MadDog31 has joined #ruby
CreativeEmbassy has joined #ruby
petey has quit [Ping timeout: 240 seconds]
Columcille has quit [Ping timeout: 272 seconds]
nanoyak has joined #ruby
Columcille has joined #ruby
timonv_ has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
heidi has joined #ruby
burlyscudd has quit [Quit: Leaving.]
freezey has joined #ruby
ExCa|iBuR has joined #ruby
brianpWins has joined #ruby
ExCa|iBuR has quit [Client Quit]
jxcl has joined #ruby
iliketurtles has joined #ruby
ggordan has quit [Remote host closed the connection]
sepp2k has joined #ruby
edwardly has joined #ruby
vlad_starkov has joined #ruby
jbpros has joined #ruby
maycon_ has quit [Ping timeout: 260 seconds]
mlpinit has quit [Remote host closed the connection]
RaCx has joined #ruby
maycon_ has joined #ruby
jerius has quit [Ping timeout: 245 seconds]
weirdpercent has joined #ruby
freezey has quit [Ping timeout: 246 seconds]
angusigu1ss has joined #ruby
sayan has joined #ruby
<weirdpercent> I have an array of URIs with http and https, I'm trying to replace each occurence of https with http but no matter how I loop it it doesn't seem to work. I've tried links.each, links.map...any ideas?
<DouweM> post your code
mklappstuhl has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
angusiguess has quit [Ping timeout: 245 seconds]
jerius has joined #ruby
drumusician has quit [Read error: Operation timed out]
<MrZYX> map yields the object, not an index
nanoyak has quit [Quit: Computer has gone to sleep.]
daxroc has quit [Quit: Leaving.]
<weirdpercent> does each also yield the object?
fgo has joined #ruby
<DouweM> also, why do you want this?
<MrZYX> yes
dkamioka has quit [Remote host closed the connection]
<MrZYX> https_links = links.map {|link| link.sub(/^http:/, 'https:') }
sambao21 has joined #ruby
hiall has quit [Quit: hiall]
danguita has joined #ruby
dkamioka has joined #ruby
mlpinit has joined #ruby
<weirdpercent> thanks guys, that answered my question
<DouweM> but still, I'm curious, why?
<weirdpercent> I didn't want any https urls
<DouweM> why?
<weirdpercent> I'm screen scraping forum links
freezey has joined #ruby
<weirdpercent> and some of them come out http, some come out https. I'm kind of OCD like that
camilasan has quit [Remote host closed the connection]
jxcl has quit [Quit: Leaving]
<shevy> is google still considered to not do evil?
camilasan has joined #ruby
<DouweM> weirdpercent: all right
hiyosi has quit [Ping timeout: 264 seconds]
jjbohn has joined #ruby
MadDog31 has quit [Quit: Leaving]
<DouweM> shevy: I think their toc now states they can do *some* evil
<MrZYX> shevy: don't think so
<DouweM> but they promise they try to keep it to a minimum
fgo has quit [Ping timeout: 272 seconds]
cody-- has quit [Quit: derp]
danguita has quit [Ping timeout: 244 seconds]
dkamioka has quit [Ping timeout: 252 seconds]
daxroc has joined #ruby
jibi has joined #ruby
mephux_ is now known as mephux
<weirdpercent> the way I look at it, if the fed is gonna use my own data against me, then it's a fascist dictatorship nightmare anyway, there's nothing I can do about it
dkamioka has joined #ruby
angusigu1ss is now known as angusiguess
Al_ has quit [Quit: Al_]
apeiros has joined #ruby
camilasan has quit [Ping timeout: 246 seconds]
<rdark> quit
rdark has quit [Quit: leaving]
<Hanmac> shevy: you mean because of this stuff? https://blog.fefe.de/?ts=ac7da56f
rickmasta has quit [Quit: Leaving...]
einarj has joined #ruby
duggiefresh has quit [Remote host closed the connection]
luxor has joined #ruby
duggiefresh has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mlpinit has quit [Remote host closed the connection]
yfeldblu_ has quit [Remote host closed the connection]
carraroj has joined #ruby
yfeldblum has joined #ruby
luxor has quit [Client Quit]
burlyscudd has joined #ruby
petey has joined #ruby
Mars__ has joined #ruby
decoponio has quit [Quit: Leaving...]
iamjarvo_ has joined #ruby
mlpinit has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
platypine has joined #ruby
platypine has joined #ruby
platypine has quit [Changing host]
zeade has joined #ruby
kmurph has joined #ruby
duggiefresh has quit [Ping timeout: 272 seconds]
weirdpercent has quit [Quit: Leaving]
kmurph has quit [Client Quit]
nanoyak has joined #ruby
hukl has joined #ruby
DrShoggoth has joined #ruby
Mars__ has quit [Ping timeout: 240 seconds]
SteveBenner9 has joined #ruby
platypine has quit [Ping timeout: 246 seconds]
lodestone has joined #ruby
lodestone is now known as Guest3041
tylersmith has joined #ruby
saarinen has joined #ruby
Guest3041 has quit [Client Quit]
daxroc has quit [Quit: Leaving.]
mikeg has joined #ruby
drumsrgr8forn8 has quit [Remote host closed the connection]
Advocation has joined #ruby
JonahR has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
tylersmith has quit [Remote host closed the connection]
heftig has quit [Ping timeout: 264 seconds]
tylersmith has joined #ruby
<mikeg> I need to iterate over a list of variables. best way I can come up with is %W(#{var1} #{var2}).each do |blah|
bricker has quit [Ping timeout: 248 seconds]
rezzack has joined #ruby
<mikeg> is there another way. seems like maybe I'm not doing it right
<MrZYX> [var1, var2].each
<MrZYX> but where do var1 and var2 come from in the first place?
jbpros has quit [Quit: jbpros]
<mikeg> it's in chef. they're created earlier in the script. the vars are set to directory paths. then I iterate over them to create each
aryaching has quit [Ping timeout: 240 seconds]
chomskiii has quit [Read error: Connection reset by peer]
<havenwood> mikeg: So they're Strings I take it?
mary5030 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<mikeg> yes
chomskiii has joined #ruby
drumsrgr_ has joined #ruby
<MrZYX> do you need them separate at any time?
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has quit [Read error: Connection reset by peer]
scarolan has joined #ruby
<havenwood> mikeg: Can you show a Gist or no?
Advocation has quit [Ping timeout: 264 seconds]
aryaching has joined #ruby
<mikeg> they're used throughout the script for other things. and separately. this is just early on when the paths are created on the file system
<mikeg> sure. 1 sec
bricker`work has quit [Read error: Operation timed out]
sepp2k has joined #ruby
zmattpetty has joined #ruby
<havenwood> (i'd presume MrZYX's suggestion of `[vars, here].each` is what you're looking for)
vlad_starkov has joined #ruby
<havenwood> Aka calling the #each method with a block on an Array literal containing a comma delimited list of your variables.
<mikeg> something like this: https://gist.github.com/Maniacal/7454360
hiyosi has joined #ruby
<mikeg> havenwood: yeah, I'm guessing that that sugguestion will work as well
ckinni has joined #ruby
jhulten has quit [Remote host closed the connection]
<mikeg> I learned quickly that %w is the same as single quotes
<mikeg> so that code I posted is the failed code
<shevy> Hanmac yeah
timonv has joined #ruby
<mikeg> so I went with %W but that looked kinda lame
<havenwood> mikeg: if var1 is already a string it doesn't make sense to interpolate it or use %w
danshultz has joined #ruby
<shevy> Hanmac google keeps on annoying me on youtube, since a week I no longer login to youtube but gmail automatically wants to log me in. I will have to find replacements for all google services :(
<havenwood> mikeg: do as MrZYX suggests
<mikeg> yeah. trying that now. thanks
mary5030 has quit [Remote host closed the connection]
Guest51393 has quit []
benwoody has quit [Quit: benwoody]
mary5030 has joined #ruby
gstamp has quit [Ping timeout: 256 seconds]
alvaro_o has joined #ruby
sambao21 has joined #ruby
kirun has joined #ruby
bricker has joined #ruby
<mikeg> yep. that worked. thanks again MrZYX and havenwood
bricker`work has joined #ruby
zmattpetty has quit [Ping timeout: 272 seconds]
olivier_bK has joined #ruby
BigBlueBacon has quit []
jbpros has joined #ruby
gstamp has joined #ruby
CaptainJet has quit []
danshultz has quit [Ping timeout: 252 seconds]
scarolan has quit [Ping timeout: 245 seconds]
hiyosi has quit [Ping timeout: 264 seconds]
iliketurtles has joined #ruby
typicalbender has quit [Quit: Leaving.]
benwoody has joined #ruby
Ox6abe has joined #ruby
artm has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
ce_afk is now known as cescalante
gr33n7007h has joined #ruby
mojjojo has quit [Quit: mojjojo]
Morrolan has joined #ruby
jamblack has quit [Quit: jamblack]
sputnik13 has joined #ruby
sputnik13 has quit [Max SendQ exceeded]
Kamuela has joined #ruby
sputnik13 has joined #ruby
scarolan has joined #ruby
freezey has quit [Remote host closed the connection]
duggiefresh has joined #ruby
freezey has joined #ruby
colonolGron has joined #ruby
kpshek has joined #ruby
wallerdev has quit [Quit: wallerdev]
capicue has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
fysaen_ has joined #ruby
pel_daniel has joined #ruby
iamjarvo_ has quit []
iamjarvo_ has joined #ruby
typicalbender has joined #ruby
Mars__ has joined #ruby
scarolan has quit [Ping timeout: 245 seconds]
codeFiend has joined #ruby
momomomomo has joined #ruby
freezey has quit [Ping timeout: 245 seconds]
brianpWins has quit [Quit: brianpWins]
scarolan has joined #ruby
bricker`work has quit [Ping timeout: 244 seconds]
bricker`work has joined #ruby
fysaen has quit [Ping timeout: 264 seconds]
burlyscudd has quit [Quit: Leaving.]
graydot has quit [Quit: graydot]
mikepack has quit [Remote host closed the connection]
iniusman has joined #ruby
duggiefresh has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
jhulten has joined #ruby
cascalheira has quit [Quit: Leaving...]
jonathanwallace has quit [Quit: WeeChat 0.4.1]
jhulten has quit [Excess Flood]
cody-- has joined #ruby
jhulten has joined #ruby
jonathanwallace has joined #ruby
Aryasam has joined #ruby
Solnse has quit [Quit: Leaving.]
joshu has joined #ruby
CaptainJet has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
ghr has joined #ruby
Aryasam has quit [Ping timeout: 248 seconds]
Solnse has joined #ruby
Aryasam has joined #ruby
Targen has quit [Remote host closed the connection]
jhaals has joined #ruby
jhulten has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
wallerdev has joined #ruby
danguita has joined #ruby
kpshek has quit []
skaflem has quit [Quit: Leaving]
jjbohn has quit [Quit: Leaving...]
jbpros has quit [Quit: jbpros]
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
kpshek has joined #ruby
jbpros has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
<nhmood> I foolishly ended up using Config as the name for one of my classes and now when I reference just Config (include MyModule, Config.new) in an RSpec test I see Use RbConfig instead of obsolete and deprecated Config
alekst has quit [Quit: Computer has gone to sleep.]
Aryasam has quit [Ping timeout: 248 seconds]
pu22l3r has joined #ruby
fysaen_ has quit [Quit: Linkinus - http://linkinus.com]
<nhmood> Is there any way I can avoid this error from popping up and not have to explicitly define what module I'm using Config from? (MyModule::Config doesn't cause these problems)
pu22l3r has quit [Remote host closed the connection]
danguita has quit [Ping timeout: 252 seconds]
jhulten has joined #ruby
Monie has joined #ruby
Monie has quit [Client Quit]
Aryasam has joined #ruby
jbpros has quit [Client Quit]
Ox6abe has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 248 seconds]
Ox6abe has joined #ruby
<MrZYX> the clean solution is to use MyModule::Config
ExCa|iBuR has joined #ruby
<MrZYX> the not so clean is remove_const :Config before you include
jbpros has joined #ruby
jbpros has quit [Client Quit]
<nhmood> Would the "correct" way to approach this (if starting from scratch lets say) to not name my Config class Config?
cgore has joined #ruby
<MrZYX> I'd say the correct way is to use the full qualifier and not do include MyModule
ExCa|iBuR has quit [Quit: I was using serenepIRCh http://www.serenity-irc.net/ :-]
alekst has joined #ruby
<nhmood> Interesting
<nhmood> It seems like it would be a pain to have to include MyModule:: if you are only working in your module?
aapzak has quit [Ping timeout: 246 seconds]
jbpros has joined #ruby
jbpros has quit [Client Quit]
jbpros has joined #ruby
<MrZYX> doing an include defeats the purpose of not polluting the global namespace in the first place
burlyscudd has joined #ruby
Ox6abe has quit [Ping timeout: 240 seconds]
<nhmood> Does an include append to the global namespace? or the topmost Module namespace?
benwoody has quit [Quit: benwoody]
nanoyak has quit [Quit: Computer has gone to sleep.]
<MrZYX> it adds to the namespace you're doing the include in
lkba has quit [Ping timeout: 272 seconds]
aapzak has joined #ruby
<nhmood> So then does it not make sense to include MyModule inside all the components of MyModule?
<MrZYX> so if you do it at the top level of a script you include it into "main" which is an Object -> the root namespace
Mars__ has quit [Read error: Connection reset by peer]
<MrZYX> oh, that anyway not
pbae_ has joined #ruby
<nhmood> Oh ok you mean at the script level
Mars has joined #ruby
<MrZYX> module MyModule; class Config; end; class Another; Config.something; end; end; should work
<nhmood> Ok yeah, I can see why that would be a bad idea
codeFiend has quit [Quit: codeFiend]
Mars is now known as Guest78439
fysaen has joined #ruby
Trudko_ has joined #ruby
<nhmood> Ok yeah that makes sense
benwoody has joined #ruby
elux has quit [Quit: Bye!]
<nhmood> Is it a bad idea to encapsulate the RSpec tests into MyModule?
Ox6abe has joined #ruby
<Trudko_> Guys what easy way how to use , instead of . in decimal numbers -> 2,22 instead of 2.22
mmcdaris has joined #ruby
<MrZYX> so you do module MyModule; describe Config ... ?
mklappstuhl has joined #ruby
madhatter has quit [Ping timeout: 246 seconds]
kayloos has joined #ruby
zigomir has quit [Quit: zigomir]
alekst has quit [Quit: Computer has gone to sleep.]
<MrZYX> Trudko_: you can't
<nhmood> MrZYX: Yeah, I guess? That solves my problem with the RbConfig error
jbpros has quit [Ping timeout: 245 seconds]
<MrZYX> try describe MyModule; describe Config; iirc that works
<nhmood> Ok I'll give that a shot
<havenwood> MrZYX: well... you **could** maybe with frozen_core hacks from the pit of hell
pbae_ has quit [Quit: pbae_]
<MrZYX> havenwood: you could patch ruby and compile your own
shaunbaker has joined #ruby
<havenwood> ^ that too :P
<MrZYX> there's always a weird way
<MrZYX> I don't think Trudko_ asked for a weird way though
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> MrZYX: Have you seen charliesome's MRI magic tricks talk? I watched that last night and was highly amused.
<MrZYX> hm, not that I remember
<Trudko_> i guess it is only for view so i can just switch to string and replace , with .
<Hanmac> havenwood: i hate it when charliesome is not online in this channel :(
<havenwood> Hanmac: unnacceptabru!!
obs has quit [Remote host closed the connection]
<Hanmac> yeah!
scarolan has quit [Ping timeout: 245 seconds]
<DouweM> havenwood: thanks, gonna check that out
Ox6abe has quit [Ping timeout: 264 seconds]
speakingcode-wor has quit [Quit: Lost terminal]
shaunbaker has quit [Client Quit]
mmcdaris has quit [Quit: mmcdaris]
asteros has joined #ruby
speakingcode-wor has joined #ruby
raddazong has joined #ruby
duggiefresh has joined #ruby
momomomomo has quit [Quit: momomomomo]
Czupa has joined #ruby
colonolGron has quit [Read error: Connection reset by peer]
<havenwood> the gist of it is pretty insane, finding the forbidden frozen core of Ruby by scanning memory:
jamblack has joined #ruby
<havenwood> >> FrozenCore = (-1024..1024).map { |offset| RubyVM.object_id + offset }.map { |id| ObjectSpace._id2ref id rescue nil }.compact.grep(Class).find { |obj| obj.instance_methods.include? :'core#define_method' }
<eval-in> havenwood => #<Class:#<Class:0x41156774>> (https://eval.in/67173)
dnyy has joined #ruby
jibi has quit [Quit: .]
kpshek has quit []
asteros has quit [Ping timeout: 246 seconds]
BizarreCake has quit [Ping timeout: 246 seconds]
heftig has joined #ruby
lkba has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
Jdubs has joined #ruby
zarubin has quit [Ping timeout: 240 seconds]
Trudko_ is now known as Trudko
<Trudko> MrZYX, i could o 2.35.to_s.sub! '.',','
<MrZYX> to you do calculations with 2.35?
<MrZYX> *do
AltGrendel has left #ruby [#ruby]
<Trudko> no i have rails application and only nix to fix the view
hiyosi has joined #ruby
<MrZYX> is it always 2.35 or some variable/attribute?
axl_ has quit [Quit: axl_]
<Trudko> attribute
<MrZYX> and correctly setup your locale
<MrZYX> but we're getting int #rubyonrails topics here ;)
<Trudko> yeah
postmodern has joined #ruby
<Trudko> but I doesnt like that one , the one above is easier
<Trudko> at least shorther imo
RaCx has joined #ruby
<MrZYX> and a pain in the ass if you ever going to support more than one locale ;)
Briareos1 has joined #ruby
nisstyre has quit [Quit: Leaving]
blaxter_ has joined #ruby
achru has quit [Remote host closed the connection]
achru has joined #ruby
<Trudko> MrZYX, for sure :)
hiyosi has quit [Ping timeout: 240 seconds]
sailias has quit [Ping timeout: 245 seconds]
momomomomo has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
cburyta has quit [Remote host closed the connection]
aspires has quit [Quit: sudo making a sandwich]
ArchBeOS has joined #ruby
binaryplease has joined #ruby
<ArchBeOS> I have two loops, one inside the other. If a condition is hit within the inner loop I want to break it, but continue the outer loop. break just kills both loops. is there another way of doing this?
<MrZYX> what kind of loops? using blocks or true loops?
<Hanmac> then you may do the loops wrong
<ArchBeOS> true loops. let me get a code example for you
achru has quit [Ping timeout: 272 seconds]
* Hanmac 's true loops are more true than your true loops ,P
jamblack has quit [Quit: jamblack]
nicar has joined #ruby
barratt has joined #ruby
ldnunes has quit [Quit: Leaving]
Jabberish has quit [Remote host closed the connection]
thelorax123 has quit [Remote host closed the connection]
<MrZYX> so using a block
err_ok has joined #ruby
mojjojo has joined #ruby
<MrZYX> works for me though
vince_prignano has quit []
<MrZYX> do you have a executable example?
thelorax123 has joined #ruby
superscott[8] has quit [Ping timeout: 264 seconds]
RaCx has quit [Ping timeout: 240 seconds]
vince_prignano has joined #ruby
mengu has joined #ruby
vince_prignano has quit [Client Quit]
sailias has joined #ruby
<ArchBeOS> im cleaning it up
tvw has quit [Ping timeout: 272 seconds]
breakingthings has quit [Ping timeout: 246 seconds]
vince_prignano has joined #ruby
vince_prignano has quit [Client Quit]
watermel0n has joined #ruby
RaCx has joined #ruby
<ArchBeOS> it's tough because there is a lot of company-sensitive crap in here.
_Andres has joined #ruby
watermel0n has quit [Client Quit]
<MrZYX> maybe try to recreate a minimal example demonstrating your problem
<MrZYX> that often already helps to discover the error in the real code
timonv has joined #ruby
watermel0n has joined #ruby
<ArchBeOS> im trying MrZYX . let me try surrounding the break in puts just to see whats going on. it really sucks being the only rubyist in my company sometimes...
<apeiros> ArchBeOS: break definitively doesn't break out of two blocks
jbpros has joined #ruby
breakingthings has joined #ruby
dangerousdave has joined #ruby
<apeiros> ArchBeOS: what break does is: return directly from the yielding method (the yielding method does not get control back) and lets the method return the value passed to break
<apeiros> (nil by default)
<ArchBeOS> so it acts like a return?
mikepack has joined #ruby
<apeiros> no
<apeiros> return returns from a method
<ArchBeOS> ok, sorry. my brain is farting
<apeiros> well, if you mean "break is to a block what return is to a method", then somewhat, yes
sailias has quit [Ping timeout: 252 seconds]
<apeiros> but it's not really comparable due to that "method which yields" thing
filipe_ has joined #ruby
<apeiros> with `def foo; yield; puts "reached"; "quuz"; end`, the code `x = foo { break "bar" }` will not print "reached", and x is "bar"
vlad_starkov has joined #ruby
<apeiros> the code `x = foo { next "bar" }` will print "reached" and x will be "quuz"
simplyaubs has quit [Quit: simplyaubs]
<ArchBeOS> ok, the data is finally getting munged...(parsing 20 meg excel files suck)
randomnick_ has joined #ruby
jrhe has joined #ruby
jamblack has joined #ruby
brandonblack has joined #ruby
<ArchBeOS> same damn issue. i really should have picked another profession like rodeo clown or ventriloquist. im just gonna refactor the damn thing instead.
barratt has quit [Quit: Leaving...]
mikepack has quit [Ping timeout: 272 seconds]
sailias has joined #ruby
jjbohn has joined #ruby
ckinni_ has joined #ruby
myappleguy has quit [Ping timeout: 272 seconds]
ckinni has quit [Read error: Connection reset by peer]
heidi has quit [Quit: Leaving.]
benlieb has joined #ruby
<MrZYX> yeah, try to filter down the data beforehand instead of breaking out
danshultz has joined #ruby
mikepack has joined #ruby
noop has quit [Ping timeout: 246 seconds]
colonolGron has joined #ruby
Guest78439 has quit [Remote host closed the connection]
<ArchBeOS> MrZYX: found a better way of doing it. break was just gonna force me to do a next on the outer loop anyway, so i extracted that inner loop to a seperate method, returning nil if it encounters the condition then the outter loop will call that method and if nil will next.
cek has joined #ruby
Monie has joined #ruby
<cek> my rdebug is not stopping on breakpoint I issue via b file:line
<ArchBeOS> stupid? yes. cumbersome? yup. do i wish i can do it a better way? hell yeah. but i have no time to figure out why break is breaking through to the outter loop
pothibo has joined #ruby
<cek> it breaks if I explicitly put a "debugger" method there
<MrZYX> I think I'd still try to filter it out
sambao21 has joined #ruby
blaxter_ has quit [Quit: foo]
barratt has joined #ruby
<MrZYX> cek: most people tend to use pry, pry-byebug, pry-rescue etc. as debugger these days
<ArchBeOS> MrZYX: this script has to be ready to run in about 1.5 hours. i live in an enterprise .NET shop where they are strict on deadlines.
<ArchBeOS> a work around is a work around is a work around
wfht has joined #ruby
newbiehacker has joined #ruby
<MrZYX> ArchBeOS: just sayin' :P
<ArchBeOS> lol
<MrZYX> and I'm sorry for you ;P
<ArchBeOS> i will look into it after this script runs. then i will kick my own ass for making it so cumbersome later
pixelgremlins has joined #ruby
barratt has quit [Client Quit]
Hobogrammer has quit [Read error: Connection reset by peer]
capicue has quit [Quit: Leaving...]
jamblack has quit [Quit: jamblack]
hukl has quit [Read error: Permission denied]
hukl has joined #ruby
<cek> i dont' like somethign that requires incode patching. I want to debug like with gcc
<cek> so that i don't have to modify code
<cek> gdb i mean
elux has joined #ruby
benlieb has quit [Quit: benlieb]
jprovazn has quit [Quit: Odcházím]
<cek> pry was cumbersome last time i checked
kpshek has joined #ruby
Jetchisel has joined #ruby
<MrZYX> hm I think with pry-byebug you could start a pry load your code set breakpoints with the break command and make that code run
dnyy has quit []
vlad_starkov has quit [Remote host closed the connection]
baordog has joined #ruby
RORgasm has quit [Remote host closed the connection]
<MrZYX> given you can load your code in a way that doesn't run it yet
ckinni_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
samuel02 has quit []
anderson has quit [Quit: Leaving]
pothibo has quit [Quit: pothibo]
<cek> rdebug script just stops on first line
funburn has joined #ruby
vlad_starkov has joined #ruby
drag00n has quit [Ping timeout: 240 seconds]
<lolmaus> Please suggest a shorter / more elegant way to say this: `item_is_current = defined? current_item ? item.id == current_item : false`
wfht has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Banistergalaxy has quit [Ping timeout: 272 seconds]
Banistergalaxy has joined #ruby
<apeiros> lolmaus: aaaaah!
<apeiros> lolmaus: why on earth do you use `defined?`?
jrhe has quit [Quit: jrhe]
<cek> he redefined it
<apeiros> are you unable to read the code of your method to determine whether it's defined?
* Morrolan is still busy trying to parse it
<lolmaus> apeiros, because it says "undefined local variable or method `current_item'"
<apeiros> ok, unable indeed then
<cek> obviously
<lolmaus> apeiros, that's a Middleman partial's local variable. It may or may not be passed.
jrhe has joined #ruby
<apeiros> lolmaus: a local variable does not "maybe not exist"
<lolmaus> apeiros, huh?
<apeiros> oh, unless you're having a fugly templating system which is all eval'ed
drag00n has joined #ruby
<apeiros> that's the only reason for dynamically (non-)existing lvars.
<apeiros> s/reason/possibility/
ckinni has joined #ruby
<MrZYX> s/possibility/bad design reason/
<lolmaus> apeiros, i'm using this: http://middlemanapp.com/templates/#toc_6 (see bottom of the Partials section)
zeropx has quit [Read error: Connection reset by peer]
<apeiros> MrZYX: bad design reason is on another level. I'm talking about technical possibility.
<lolmaus> `partial(:paypal_donate_button, :locals => { :amount => 2, :amount_text => "Pay $2" })`
DanBoy has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
<apeiros> non-evaled code can't have an lvar once defined and once not
<lolmaus> this creates an `amount` local variable in the partial.
ckinni has quit [Client Quit]
<apeiros> yeah, evaled code. fucking template systems… never do it right.
DanBoy has joined #ruby
<lolmaus> Oh wait
<apeiros> lolmaus: normalize. always pass a value for current_item - nil if none is there.
<lolmaus> I do not need `defined?`
Mars has joined #ruby
<apeiros> (since that's what nil exists for)
danguita has joined #ruby
<apeiros> lolmaus: not in a sane world.
<lolmaus> Or do i? :confused"
Mars is now known as Guest17043
nanoyak has joined #ruby
<lolmaus> Yes i do. It produces "undefined local variable or method `current_item'" if i evaluate a non-passed variable.
Ox6abe has joined #ruby
err_ok has quit [Ping timeout: 248 seconds]
<Morrolan> Pass 'nil' instead of not passing a variable at all.
Hobogrammer has joined #ruby
<MrZYX> I tend to declare defaults at the top of such partials with ||= default
<MrZYX> I know logic in views and all that
<MrZYX> but there are just too many people who can't figure out how to use that partial stuff properly :P
danguita has quit [Client Quit]
<lolmaus> Morrolan, apeiros, nope, i'm not manually passing defaults for EACH partial usage. MrZYX's idear is quite more sane.
burlyscudd has quit [Quit: Leaving.]
<Morrolan> Then do that.
<Morrolan> Or, *cough*, use a sane system. :P
<apeiros> +1
* apeiros still wants a sane templating system
iliketurtles has joined #ruby
<apeiros> rails being among the most horrible examples.
<apeiros> "oh yes, lets 'magically' share random stuff from the controller"
burlyscudd has joined #ruby
barratt has joined #ruby
Advocation has joined #ruby
<Morrolan> It's doing a bit much magic for my taste, yea.
wfht has joined #ruby
_serial_ has joined #ruby
Ox6abe has quit [Ping timeout: 264 seconds]
scarolan has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
Tarential has quit [Excess Flood]
<apeiros> also same mistake as almost all template engines - no clean API
freezey has joined #ruby
Tarential has joined #ruby
heidi has joined #ruby
<apeiros> i.e., a template should be more like a class, with rendering it being a method call with clearly defined arguments to be passed
iniusman has quit [Ping timeout: 272 seconds]
JimmyNeutron has joined #ruby
anderson has joined #ruby
Apane has joined #ruby
<Apane> hey guys, how do i check if an integer is between 1 and 5? i've tried using a range i.e. if integer == 1..5
cburyta has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<Apane> which isn't working, what might be the most efficient way to do this?
Zespre has quit [Quit: Connection closed for inactivity]
<MrZYX> n.between? 1, 5
<Apane> between is a method in ruby?
<Apane> let's try
<apeiros> no
<apeiros> between? is, between is not
bradsmith has joined #ruby
Advocation has quit [Ping timeout: 272 seconds]
<apeiros> ;-)
<cgore> also (1..5).include? n
<bradsmith> join #sensu
dangerousdave has quit [Read error: Connection reset by peer]
mojjojo has quit [Quit: mojjojo]
<yxhuvud> or (1..5) === 4
dangerousdave has joined #ruby
<yxhuvud> or #cover?
<apeiros> for numeric values, Range#cover? is actually identical to Range#include?
<Apane> MrZYX, thanks, and that only works if the number is 5, or 1 the numbers in between are false
<yxhuvud> apeiros: no, it is shorter to type!
<MrZYX> >> 2.between? 1, 5
<eval-in> MrZYX => true (https://eval.in/67213)
<MrZYX> Apane: ^
<Apane> Oops sry, you're right MrZYX had to re-run it.
<Apane> Thanks
xcess_denied has quit [Quit: Leaving...]
<MrZYX> you're welcome ;)
hiyosi has joined #ruby
sailias has joined #ruby
Blaze_Boy has quit [Quit: Leaving]
mojjojo has joined #ruby
xk_id has quit [Quit:
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kpshek has quit []
freezey has quit [Remote host closed the connection]
bassclef has joined #ruby
zoee has joined #ruby
hiyosi has quit [Ping timeout: 264 seconds]
bassclef is now known as Guest21880
phansch has quit [Remote host closed the connection]
Es0teric has joined #ruby
jrhe has quit [Quit: jrhe]
<ArchBeOS> how do i exit a pry session without executing anymroe code?
kpshek has joined #ruby
tomasso has quit [Ping timeout: 250 seconds]
<MrZYX> Ctrl+D for example
<MrZYX> ah you mean like abort the program
<MrZYX> hm, does ctrl+c work?
brianpWins has joined #ruby
VTLob has quit [Quit: VTLob]
<Apane> i guess between? doesn't work in a case, when scenerio, but yet it seems cumbersome to write out the numbers individually
<ArchBeOS> MrZYX: that just acts like exit, continuing the codeblock
<Apane> what sort of range would work in this context? thanks in advanced guys
<Apane> i.e. "when integer.between? 1, 4 " returns yntax error, unexpected tINTEGER, expecting keyword_then or ','\
<Apane> | or ';' or '\n'
<Apane> |when integer.between? 1, 4
<Apane> sorry for the block of code :(
wfht has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
pel_daniel has quit [Ping timeout: 245 seconds]
jhulten has quit [Ping timeout: 246 seconds]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<DouweM> havenwood: that charliesome ruby magic tricks video was cool, thanks :)
<ArchBeOS> MrZYX: either !!! or exit !
<Apane> havenwood, awesome
<havenwood> DouweM: de nada, yeah gave me some crazy ideas for stuff to play with (and kinda blew my mind)
<MrZYX> Apane: case integer; when 1..4 then action_a; when 4..8 then action_b; else action_c; end;
claymore has quit [Quit: Leaving]
timonv has quit [Remote host closed the connection]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_HolyCow has joined #ruby
_HolyCow has left #ruby [#ruby]
timonv has joined #ruby
aspires has joined #ruby
mmitchell has joined #ruby
err_ok has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
Ripp__ has joined #ruby
Clooth has joined #ruby
_serial_ has quit [Ping timeout: 240 seconds]
cody-- has quit [Quit: derp]
Ripp__ has quit [Client Quit]
freezey has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
xk_id has joined #ruby
drumusician has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
raddazong has quit [Ping timeout: 245 seconds]
m8 has quit [Quit: Sto andando via]
Jabberish has joined #ruby
madhatter has joined #ruby
momomomomo has quit [Quit: momomomomo]
iajrz has joined #ruby
mark_locklear has quit [Ping timeout: 252 seconds]
artm has quit [Ping timeout: 245 seconds]
Grantlyk has joined #ruby
err_ok has quit [Ping timeout: 246 seconds]
iamjarvo_ has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
RaCx has joined #ruby
funburn has quit [Quit: funburn]
zoee has quit [Quit: This computer has gone to sleep]
Soda has joined #ruby
Grantlyk has quit [Ping timeout: 246 seconds]
<iajrz> hello, there
pskosinski has joined #ruby
<iajrz> anyone here done the ruby koans?
<havenwood> iajrz: yup, enjoyed it
<Kamuela> iajrz, I gave up
wildroman2 has joined #ruby
<iajrz> I'm confused on something
<iajrz> I'm halfway through... but I'm seeing they ask for
<iajrz> assert_match(/__/, exception.message)
<iajrz> a match
<havenwood> iajrz: whatcha got? Gist it?
nanothief has joined #ruby
<iajrz> I could /\w+/ it
<iajrz> but I wonder whether that's what I'm supposed to do
<iajrz> I'm totally new to ruby, havenwood. I'll look up what is "gist" and how to use it.
rickmasta has joined #ruby
<iajrz> ah, it's for github.
<havenwood> iajrz: https://gist.github.com/
<havenwood> iajrz: For little snippets of code.
<iajrz> there I am
err_ok has joined #ruby
<iajrz> there you go
fgo has joined #ruby
<iajrz> what am I supposed to match? I could \w+ it, as I said earlier, but I'm not quite certain that's the intent
<havenwood> iajrz: So an error has a class (like `NoMethodError`) and an optional `#message` like `undefined local variable or method `united_lemming_front' for main:Object`
Xeago has joined #ruby
<iajrz> yeah, I understood that... and I've been running the test, so I can get to see the messages
einarj has joined #ruby
atmosx has joined #ruby
<iajrz> but ... well, I'm just insecure about the regex they ask for.
<havenwood> iajrz: ahh, put part of the text
<havenwood> iajrz: a word, a partial sentence, they're not asking you to learn regex
Liothen has quit [Ping timeout: 264 seconds]
<iajrz> you think it's there just so we can see the error messages?
<DouweM> should I do the koans even if I think I know Ruby well?
Czupa has quit [Ping timeout: 245 seconds]
<havenwood> iajrz: for example: true if 'this message'[/mess/] #=> true
drim has joined #ruby
<iajrz> DouweM: they are _very_ enjoyable. if I knew ruby, i'd do them just for the kicks anyway.
<iajrz> havenwood: I could /\w+/ it, I did it with others... just thought there might be some deeper truth to the excercise
io_syl has joined #ruby
<havenwood> DouweM: Sure, maybe use an artificial constraint. Only monkeypatch to solve. Or only use lambda expressions. Hrm.
<DouweM> iajrz: all right, I'll put it on my todo list :)
<DouweM> havenwood: hah, that would be fun
DrShoggoth has quit [Read error: Connection reset by peer]
hukl_ has joined #ruby
mengu has quit [Remote host closed the connection]
benlieb has joined #ruby
Monie has joined #ruby
mengu has joined #ruby
<benlieb> when I do `gem list -l` is there a way to also show WHERE the gem is being found?
Al_ has joined #ruby
<havenwood> benlieb: gem list -dl
<benlieb> havenwood: awesome thanks!
<iajrz> how long did it take you from first touching ruby to first finished (enough) (serious) project?
hukl has quit [Ping timeout: 252 seconds]
<benlieb> havenwood: been wanting that for years
<havenwood> benlieb: I'd usually assume same GEM_ROOT and just check: gem env gemdir
<bricker> Okay, I know that these two are essentially the same. The first defines the method on the Article Class, the second defines the method on the Article Class's Singleton class, right? So my question is - what difference does that really make, in a practical sense? https://gist.github.com/bricker/7456781
Solnse has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 245 seconds]
iamjarvo_ has joined #ruby
<benlieb> havenwood: me too, but I just inherited a project (OLD) with frozen gems in it. Turns out the gems that are frozen aren't being used (it seems), based on the flag you just showed me.
Grantlyk has joined #ruby
<havenwood> benlieb: aha
<apeiros> bradsmith: the first defines it on the Article's singleton class too
<apeiros> gah
<apeiros> bricker: : the first defines it on the Article's singleton class too
<havenwood> bricker: they are very very the same
<apeiros> bricker: practical difference - the first one is easier to grep
Grantlyk has quit [Client Quit]
<havenwood> bricker: `class Article; def Article.plural` would be the same too
<bricker> apeiros: ah - so these are just alternate syntaxes for the literal, exact same thing
<benlieb> havenwood: and I might be the cause ;) ahhh
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
<apeiros> bricker: yes
<benlieb> I've never used frozen gems. Not really sure how that works.
<bricker> apeiros: phew! thanks.
<bricker> havenwood: thank you too
RaCx has quit [Quit: Computer has gone to sleep.]
<apeiros> `class << obj; def foo; end end` is identical to `def obj.foo; …; end`
<havenwood> bricker: or `class << Article` is same too, but nicer to use `self` so you can change the Class name without breaking stuff
nanoyak has quit [Ping timeout: 245 seconds]
<apeiros> it's not limited to classes either
<bricker> Is there a preference in the ruby community? I think I remember seeing that Rails prefers class << self syntax
<havenwood> bricker: If you have accessors or multiple methods, i'd use `class << self`. One or two, i think self.method is nice.
<apeiros> bricker: as said, self.foo is easier to grep
<apeiros> which is why I prefer it
<bricker> ah
<apeiros> I only use class << self for things where self.foo can't be used (as havenwood said - e.g. for attr_* stuff)
jhulten_ has joined #ruby
nanoyak has joined #ruby
<bricker> Okay last question on this subject: In this case, are there any methods defined on the Article class itself? Or are there *only* methods in its singleton class?
<havenwood> bricker: There are class instance methods on the class, but not instance methods.
maletor has joined #ruby
<havenwood> `class instance method` aka `class method`
sergicles has quit [Quit: sergicles]
<havenwood> the naming makes it a little hard to talk about this stuff >.>
<bricker> havenwood: oh, I thought `def self.foo()` went into the singleton.
<apeiros> havenwood: does it help if I tell you that the only kind of method that exists are instance methods? :)
<bricker> apeiros: I understand that fully
barratt has quit [Quit: Leaving...]
<apeiros> bricker: there are no methods defined in the Article class in your gist
<apeiros> bricker: all methods are defined in the singleton class of Article
<apeiros> where `all` is `twice the same "plural" method`
<apeiros> does that answer your question?
<havenwood> apeiros: now if you could just tell me that `class variables` and `global variables` were a bad dream and the only kind that exists are `instance variables` :P
michael_mbp is now known as zz_michael_mbp
Fire-Dragon-DoL has quit [Quit: Leaving.]
<apeiros> havenwood: just pretend it was
* havenwood pretends will all his might...
<apeiros> until some badly written code lifts my delusion, I can live very well with that :)
<bricker> apeiros: Okay, so when is a method *actually* defined on a class? How do you even do that? I can see that `Array.methods - Array.singleton_class.methods` returns two results: `:[]` and `:try_convert`
jkamenik has quit [Quit: Leaving.]
<bricker> Is that something you can even do with Ruby itself, or would it have to be done with an extension?
<apeiros> bricker: Array.methods lists all methods which are defined in Array.singleton_class, Array.class and Array.class' ancestors and included modules
gener1c has quit [Disconnected by services]
<apeiros> bricker: as said, there's only instance methods.
gener1c_ has joined #ruby
<apeiros> and what do you consider "defined on a class"?
<iajrz> it seems
<iajrz> you can have class methods
<iajrz> it's what in Java we'd call static methods, innit?
<apeiros> I consider Foo#bar in `class Foo; def bar; end; end` as bar defined on class Foo
<bricker> apeiros: but *really* it's defined on a different class
danshultz has quit [Remote host closed the connection]
<apeiros> iajrz: yeah, point is that "class method" is a convenience term for "instance method in the singleton class"
<bricker> apeiros: I am not confused about the different between class and instance methods
<bricker> I'm just asking about this specific thing out of curiosity
<apeiros> bricker: no, Foo#bar is really defined in Foo
<bricker> difference*
shanlar- has quit [Quit: Be back later]
danshultz has joined #ruby
mercwithamouth has joined #ruby
endash has quit [Read error: Connection reset by peer]
<apeiros> and Foo.methods won't list it because it's not a method callable on Foo, only on Foo's instances.
<apeiros> Foo.instance_methods lists those.
<bricker> I know that
Trudko has quit [Remote host closed the connection]
<apeiros> bricker: then I don't understand what you're asking
<iajrz> but if you have a singleton
<iajrz> it makes no sense
<iajrz> to have class methods/variables
<bricker> apeiros: I guess I don't understand the difference between a Class and its Singleton class
<apeiros> iajrz: singleton_class != singleton pattern
<iajrz> oh, well, now I know I should stay quiet a bit more
<apeiros> bricker: a class - like any other object - is an instance of its singleton class
Advocation has joined #ruby
<havenwood> i kinda like the word `eigenclass`
<havenwood> reminds me of switzerland
<apeiros> the singleton class sits "virtually" between the "actual" class of the object and the object, if you want
thelorax123 has quit [Read error: Connection reset by peer]
<bricker> apeiros: Ah - so singleton class is *above* the class (if you imagine it as a vertical flow chart)
<apeiros> I'd phrase it as "in front of", not "above" :)
endash has joined #ruby
<apeiros> foo.bar -> method `bar` is lookup up in foo.singleton_class -> foo.class -> foo.class.superclass -> …
<apeiros> (not quite correct as included/extending modules are considered too)
thelorax123 has joined #ruby
<apeiros> >> Array.is_a?(Array.singleton_class)
<eval-in> apeiros => true (https://eval.in/67264)
<apeiros> >> Array.is_a?(Class)
<eval-in> apeiros => true (https://eval.in/67265)
<havenwood> >> Array.is_a? Module
<eval-in> havenwood => true (https://eval.in/67266)
<havenwood> This Array thing is suspiciously many things. :P
mary5030 has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 272 seconds]
<apeiros> havenwood: want to start the circle of confusion?
<havenwood> hehe
Es0teric has quit [Quit: Computer has gone to sleep.]
vlad_sta_ has joined #ruby
<havenwood> snake eating itself time?
<apeiros> ^^
mary5030 has joined #ruby
shanlar has joined #ruby
<apeiros> damit! sc2 stream died :(
Advocation has quit [Read error: Operation timed out]
dnyy has joined #ruby
nanothief has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
ehc has joined #ruby
Al_ has quit [Quit: Al_]
nanothief has joined #ruby
<bricker> apeiros: That clears it up for me. I was thinking about it backwards.
<bricker> apeiros: so... an I hesitate to say this, but here goes... would you say a singleton class is a sort of "prototype" in the javascript sense of the word?
gajon has joined #ruby
<bricker> and*
<apeiros> no
<bricker> shit
vlad_starkov has quit [Ping timeout: 246 seconds]
<iajrz> hey, in the koans I only saw a "for item in array" kind of for... are there no other forms of 'for' in ruby?
<apeiros> it's a virtual class between object and object's class
<DouweM> `for item in array` is usually bad practice. use #each on your enumerable
Ox6abe has joined #ruby
<MrZYX> iajrz: don't really care and always use the block forms for all your iterating needs
<DouweM> bad practice as in non-conventional
<iajrz> ok
<iajrz> :)
<iajrz> the blocks confuse me, still
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<iajrz> thanks for the pointers :)
<bricker> apeiros: oh wait, nevermind then, I did not have it backwards before
<DouweM> iajrz: just think of them as lambdas, that's what they basically are after all
myappleguy has joined #ruby
<myappleguy> hello
<iajrz> so I'd do array.each { |a| result+=a} or something similar
agjacome has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
gr33n7007h has quit [Ping timeout: 272 seconds]
<havenwood> iajrz: You're trying to get the sum of the elements of the array?
krawchyk has quit []
<iajrz> that'd be the idea :)
<DouweM> iajrz: that's how #each works, yeah, but for sums there are better options
<havenwood> >> [1,2,3].inject :+
<eval-in> havenwood => 6 (https://eval.in/67267)
jhulten_ has quit [Remote host closed the connection]
<DouweM> >> [1,2,3].sum
<eval-in> DouweM => undefined method `sum' for [1, 2, 3]:Array (NoMethodError) ... (https://eval.in/67268)
kpshek has quit []
<DouweM> :O
<DouweM> well, too bad
<iajrz> lol, this reminds me of perl...
<iajrz> so many ways to do things
<havenwood> >> class Array; def sum; inject :+ end end; [1, 2, 3].sum
<eval-in> havenwood => 6 (https://eval.in/67269)
gr33n7007h has joined #ruby
<apeiros> DouweM: railsism
<DouweM> apeiros: ah yes
kaspergrubbe has joined #ruby
<apeiros> havenwood: aw come on, Enumerable, not Array
<havenwood> ha
<DouweM> apeiros: I've got a lot of those
<iajrz> >> [1,2,3].each { |a| result+=a}
<eval-in> iajrz => undefined method `+' for nil:NilClass (NoMethodError) ... (https://eval.in/67270)
<drim> why when using imap.fetch(data, ['RFC822', 'UID']) Im getting could not parse command, but it's working when Im only specifing RFC8222 for example
hiyosi has joined #ruby
jbpros has quit [Quit: jbpros]
<bricker> apeiros: in foo.bar, why is method `bar` looked up in the Article class at all, if it's already looking in the singleton class?
<iajrz> >> result=0;[1,2,3].each { |a| result+=a}
<eval-in> iajrz => [1, 2, 3] (https://eval.in/67273)
<havenwood> iajrz: sum = 0; [1, 2, 3].each { |i| sum += i }; sum #=> 6
sailias has quit [Ping timeout: 245 seconds]
fgo has quit [Ping timeout: 252 seconds]
<iajrz> ah, great, I think I got it... back to the koans.
<apeiros> bricker: that's called inheritance :)
<iajrz> you're a friendly bunch :)
nanoyak has quit [Quit: Computer has gone to sleep.]
ner0x has quit [Quit: Leaving]
<bricker> apeiros: but why is it looking, if it knows it won't find anything different?
<apeiros> bricker: huh?
vlad_starkov has joined #ruby
<apeiros> bricker: "know"?
<apeiros> it knows *by looking*
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros> ruby doesn't magically know anything
<bricker> apeiros: hold on
<DouweM> bricker: if it finds #bar in the singleton class, it won't check the class
<apeiros> ^
<bricker> hold on hold on
<apeiros> unless you call super in foo.singleton_class#foo
<apeiros> err
<apeiros> unless you call super in foo.singleton_class#bar
<havenwood> kinda like cascading style sheets
* havenwood ducks
mengu has joined #ruby
ephemerian has joined #ruby
* apeiros cascades haven's wood
scarolan has quit [Ping timeout: 248 seconds]
<apeiros> no, no, don't hold your breath for me to make sense
sambao21 has joined #ruby
<bricker> apeiros: Singleton class is an instance of its parent class, correct?
* Nilium looks up
* Nilium shanks havenwood
* Nilium goes back to doing things that don't involve shanking
<apeiros> bricker: now you're confusing things
<apeiros> *parent* means inheritance
kaldrenon has quit [Remote host closed the connection]
<apeiros> *instance* means instantiation/class relationship
vlad_sta_ has quit [Ping timeout: 240 seconds]
<apeiros> two entirely different things
<apeiros> ary = Array.new # ary is an instance of Array. Array is NOT ary's parent.
<bricker> apeiros: yes, that's what I meant
<bricker> ugh
aryaching has quit [Ping timeout: 246 seconds]
<apeiros> ok, rephrase your question?
kaldrenon has joined #ruby
hiyosi has quit [Ping timeout: 248 seconds]
<apeiros> >> Array.singleton_class < Array.class
jjbohn has quit [Quit: Leaving...]
<eval-in> apeiros => true (https://eval.in/67278)
<bricker> Article.singleton_class is an instance of Class
aley has joined #ruby
RaCx has joined #ruby
<apeiros> bricker: being a class - yes, of course. all classes are an instance of Class.
gajon has quit []
<apeiros> >> x = String.new; x.singleton_class < String
<eval-in> apeiros => true (https://eval.in/67279)
Aryasam has quit [Ping timeout: 272 seconds]
<bricker> apeiros: How is Article.singleton_class built?
<apeiros> the singleton class of an object is a subclass of the object's class
<apeiros> bricker: it's virtual. (almost) every object has its own singleton_class.
<apeiros> (almost) because there are some rare exceptions
carraroj has quit [Quit: Konversation terminated!]
kpshek has joined #ruby
ismaelrb has joined #ruby
<bricker> apeiros: What is the purpose of String.new.singleton_class , for example?
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
<apeiros> bricker: define methods on a single object
dkamioka has quit [Read error: Connection reset by peer]
dkamioka_ has joined #ruby
<apeiros> that's the (one) purpose of all singleton classes
<apeiros> >> x = "foo"; def x.bar; self+"bar"; end; x.bar
<eval-in> apeiros => "foobar" (https://eval.in/67280)
<apeiros> >> x = "foo"; def x.bar; self+"bar"; end; "hello".bar
<eval-in> apeiros => undefined method `bar' for "hello":String (NoMethodError) ... (https://eval.in/67281)
kaldrenon has quit [Ping timeout: 252 seconds]
drag00n has quit [Ping timeout: 240 seconds]
<apeiros> that's what you do with class methods - you define a method for a single instance of Class
<apeiros> (your class methods are not shared with other classes)
<bricker> apeiros: okay okay okay
<bricker> stop
<bricker> hold on
nazty has quit [Read error: No route to host]
<bricker> apeiros: "you define a method for a single instance of Class". I completely get that. So then why does the lookup chain look in both Article.singleton_class, *and* Article ?
crus has joined #ruby
kobain has quit [Remote host closed the connection]
<apeiros> bricker: now you're confusing things
jhulten has joined #ruby
<apeiros> calling a method in an instance of Article will NOT lookup in Article.singleton_class
kobain has joined #ruby
<bricker> I know
<bricker> I am not talking about an Instance of Article
jonathanwallace has quit [Ping timeout: 246 seconds]
cburyta has quit [Remote host closed the connection]
<apeiros> calling a method on Article itself will NOT lookup in Article
cescalante is now known as ce_afk
Hanmac1 has joined #ruby
<apeiros> as with all objects, it will look up in Article.singleton_class, then Article.class
<apeiros> and Article.class is NOT Article.
<havenwood> >> [*Class <=> Module..Module <=> Class]
<eval-in> havenwood => [-1, 0, 1] (https://eval.in/67282)
benzrf has joined #ruby
<benzrf> hi
<apeiros> (there's only one class where obj.class == obj - and that's Class)
Guest21880 is now known as bassclef
scarolan has joined #ruby
<benzrf> does anybody know where eval-in came from and if I can get a copy??
<bricker> apeiros: Ah, I misread your example earlier, that had me confused
<apeiros> benzrf: ask charliesome
<benzrf> thx
<benzrf> for that matter, does eval.in have an api
<apeiros> benzrf: no idea
<benzrf> huh
<havenwood> benzrf: ya charliesome, but he keeps the source private for various and sundry reasons
<benzrf> lame
<shevy> I wanna talk to charliethreesome
mojjojo has quit [Quit: mojjojo]
<iajrz> else _demands_ a newline?
gajon has joined #ruby
<apeiros> benzrf: wtf?
Hanmac has quit [Ping timeout: 272 seconds]
<benzrf> do you know if therere any APIs I can call to evaluate code in multiple languages?
<havenwood> shevy: charlielonesome
mojjojo has joined #ruby
typicalbender has quit [Quit: Leaving.]
<shevy> lol
<shevy> well the bot rocks, no doubt about it
fysaen has quit [Read error: Connection reset by peer]
bronson_ has quit [Quit: bronson_]
<apeiros> benzrf: lame that you don't know yourself… srsly…
cek has quit [Ping timeout: 246 seconds]
<benzrf> >:I
<ismaelrb> charliesome
angusiguess has quit [Ping timeout: 245 seconds]
<shevy> benzrf I remember the days when we had no bot here
<havenwood> beetlejuice
<shevy> benzrf these were days of horror and bloodshed
<DouweM> helpa over in #RubyOnRails is a fun bot too
<apeiros> yeah, nowadays it's "think of the bots!" all the time when we want to shed blood :(
<shevy> that's an odd name for a bot
<bricker> apeiros: So what is the purpose of a class, say Article? If the methods are defined in its singleton class, and the lookup chain skips it... and calling `Article.some_method` actually looks into its singleton class... Is it just there to sort-of house the singleton class?
<apeiros> bricker: for all the things you claim to know you're confusing quite a few :)
<DouweM> okay wtf I only just realized charliesome is 19 years old
Es0teric has joined #ruby
<apeiros> the purpose of class Article is to hold instance methods
<havenwood> uhh, okay - so a couple days ago they announced a Beetlejuice 2 is coming out...
<shevy> DouweM young geniuses everywhere out there
<DouweM> I'm 19 as well. I'm jealous
<shevy> DouweM don't worry
<shevy> DouweM you both will get older
<DouweM> hah
<apeiros> bricker: `If the methods are defined in its singleton class` - again, methods defined in the singleton class of Article are NOT relevant for instances of Article.
rudisimo has quit [Quit: Leaving.]
asobrasil has left #ruby [#ruby]
<apeiros> classes exist to be able to make instances of those classes.
thelorax123 has quit [Remote host closed the connection]
<bricker> apeiros: I think I just have this mental image of the relationship of a Class to its singleton class that has been in my head for like 6 years... can't teach an old dog new tricks, etc.
<bricker> apeiros: I understand now though, thank you
interactionjaxsn has quit [Remote host closed the connection]
amacgregor_ has quit [Ping timeout: 246 seconds]
<apeiros> bricker: I'll try to put it differently once more, though
interactionjaxsn has joined #ruby
thelorax123 has joined #ruby
<apeiros> bricker: as I said, there's only instance methods. in order to call an instance method, you need an instance.
kayloos has quit [Remote host closed the connection]
<bricker> I know that
<apeiros> now if you have Article and define instance method `foo`, it's trivial. you do Article.new to get an Article instance. you then do that_article.foo
<bricker> yes
<apeiros> but if you want to do Article.some_method, and there's only instance methods - where should that some_method be defined?
<apeiros> obviously it can't be in Article, since Article is not an instance of Article.
scarolan has quit [Ping timeout: 245 seconds]
<bricker> That is a helpful way to put it
<Kamuela> hey, i was 19 five years ago, i think i can play this game
<apeiros> so we need a class which Article is an instance of
Monie has joined #ruby
cburyta has joined #ruby
<apeiros> Article's class is Class
<DouweM> Kamuela: :)
<apeiros> we could put the method there (really)
<apeiros> but then *all* classes would have that some_method
AlSquire has quit [Quit: This computer has gone to sleep]
mmcdaris has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> and that's where singleton_class comes into play. it's a class which belongs only to a single object. Article.singleton_class is the class which belongs only and only to Article.
Monie has quit [Client Quit]
<apeiros> so we put an instance method `some_method` there. Article being an instance of Article.singleton_class can now have `Article.some_method` called on it. and we don't disturb any other class.
<bricker> apeiros: That is helpful. Does something like `String.new.singleton_class` ever get used?
fomatin has joined #ruby
<apeiros> and because this concept is universal, it works for non-class objects too.
scarolan has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<apeiros> bricker: yes. everytime you use extend f.ex.
thelorax123 has quit [Remote host closed the connection]
<apeiros> `obj.extend Mod` is almost the same as using include in obj.singleton_class
interactionjaxsn has quit [Ping timeout: 240 seconds]
<apeiros> I also use it in testing
<apeiros> other than that I haven't used it much I think. I'd have to go through the source.
<Kamuela> DouweM, quit school, just k0de, never look back ;)
<apeiros> it somewhat goes against reuse patterns to create methods on the singleton class.
AlSquire has joined #ruby
benzrf has left #ruby [#ruby]
stringoO has quit [Quit: stringoO]
thelorax123 has joined #ruby
asteros has joined #ruby
cburyta has quit [Ping timeout: 240 seconds]
ffranz has quit [Quit: Leaving]
gverri_ has joined #ruby
failshell has quit []
<DouweM> Kamuela: it's tempting, but I like what I learn at uni too much, and I'm getting enough coding in through my job anyway. not complaining at all, just holy fuck charliesome is awesome
<bricker> apeiros: okay lat question
<apeiros> bricker: don't make promises you can't hold :-p
<bricker> last*
fgo has joined #ruby
i_s has joined #ruby
mixel has joined #ruby
<iajrz> >> [2,3,1].sort
<eval-in> iajrz => [1, 2, 3] (https://eval.in/67304)
<iajrz> aha... ascending...
<apeiros> iajrz: please use eval-in only for demonstration purposes. use your own irb/pry for experiments. thank you.
kirun has quit [Quit: Client exiting]
<iajrz> whoops, sorry :)
<iajrz> got excited
gr33n7007h has quit [Ping timeout: 245 seconds]
mattias__ is now known as shaquile
<Kamuela> DouweM, what country?
<DouweM> Kamuela: Netherlands
neonlex has joined #ruby
vlad_sta_ has joined #ruby
<Kamuela> ah, very little point in not going to school then. the system is pretty self-serving so you may as well self-serve
<Kamuela> sounds good that you're also working a coding job, too, though
fgo has quit [Ping timeout: 245 seconds]
<DouweM> Kamuela: my own company, even ;)
darkskiez has quit [Ping timeout: 245 seconds]
neonlex has quit [Client Quit]
<Kamuela> DouweM, fishing ;) can't be that jealous of this other dude
<bricker> apeiros: sorry, trying to figure out how to ask this without you having to repeat yourself
vlad_starkov has quit [Ping timeout: 264 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
benzrf has joined #ruby
<benzrf> >> $&
<eval-in> benzrf => nil (https://eval.in/67307)
<benzrf> what is $&
leonidlm has quit [Ping timeout: 248 seconds]
jamblack has joined #ruby
vlad_starkov has joined #ruby
TigerWolf has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
<DouweM> Kamuela: I'm just hella impressed because I've known about charliesome for a while, I just figured he was a 20-something guy like the rest of the Ruby world. To see much he's accomplished w/ Ruby, GitHub etc while he's the same age as I am is always humbling. But yeah; didn't mean to fish, but I can see how it could come off that way
cburyta has joined #ruby
<benzrf> DouweM: what did he do thats so great?
<bricker> benzrf: it's the match
<benzrf> ?
<bricker> >> "abc" =~ /b/; $&
<eval-in> bricker => "b" (https://eval.in/67308)
<DouweM> benzrf: wrote a couple of cool gems, works on Ruby, works at GitHub. but mostly I've known about him as a name for so long, and I only now realize he's so young.
<benzrf> ah
<benzrf> i only wish i'd written anything other people use
<benzrf> :D
kcombs has quit [Remote host closed the connection]
ssvo has joined #ruby
<bricker> benzrf: as opposed to:
RaCx has joined #ruby
<bricker> >> "abc" =~ /b/; $^
<eval-in> bricker => /tmp/execpad-e175cb1ae483/source-e175cb1ae483:2: syntax error, unexpected $undefined, expecting keyword_end ... (https://eval.in/67309)
<bricker> >> "abc" =~ /b/; $'
<eval-in> bricker => "c" (https://eval.in/67310)
<bricker> >> "abc" =~ /b/; $`
<eval-in> bricker => "a" (https://eval.in/67311)
Xeago has quit [Remote host closed the connection]
<benzrf> o:
<benzrf> how perlish
<bricker> it is perl!
<benzrf> im aware, that's why i said it
<benzrf> ;p
vlad_sta_ has quit [Ping timeout: 252 seconds]
ewnd9 has joined #ruby
<shevy> how ugly
<shevy> now someone has to chime it
<shevy> "it is perl!"
<benzrf> har
threesome has quit [Ping timeout: 245 seconds]
larissa has joined #ruby
newbiehacker has quit [Ping timeout: 240 seconds]
amacgregor has joined #ruby
hiall has joined #ruby
<bricker> apeiros: actually I'm going to sit on this for a while, let the visual image form in my head, see if it sticks, and come back if I need more clarification. Thank you :)
hukl_ has quit [Quit: Leaving...]
mattattaque has joined #ruby
<apeiros> yw
colonolGron has quit [Quit: leaving]
fomatin has quit [Quit: Computer has gone to sleep.]
hiall has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
darkskiez has joined #ruby
darkskiez has joined #ruby
darkskiez has quit [Changing host]
kaspergrubbe has quit [Remote host closed the connection]
hiall has joined #ruby
ngoldman has joined #ruby
jhulten has quit [Remote host closed the connection]
myappleguy has left #ruby ["WeeChat 0.4.2"]
nhhagen_ has joined #ruby
mmcdaris has quit [Ping timeout: 264 seconds]
agjacome has quit [Quit: leaving]
pbae has joined #ruby
<shevy> he falls asleep
IcyDragon is now known as IceDragon
nhhagen has quit [Disconnected by services]
nhhagen_ is now known as nhhagen
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
AlSquire has quit [Quit: This computer has gone to sleep]
pbae has quit [Client Quit]
<benzrf> shevy: via land of lisp: http://benzrf.com/misc/fp.pdf
srji has quit [Quit: leaving]
kevind_ has joined #ruby
<benzrf> RubyPanther: if you have not read land of lisp you might appreciate it too
<benzrf> :-D
kevind_ has left #ruby [#ruby]
<Kamuela> vi/vim = no
<benzrf> Kamuela: u wot
<Kamuela> can't... not enough leet
gr33n7007h has quit [Ping timeout: 248 seconds]
drumusician has quit [Ping timeout: 248 seconds]
platypine has joined #ruby
platypine has joined #ruby
platypine has quit [Changing host]
<benzrf> Kamuela: it really is not so hard
<Kamuela> benzrf, for the physical, yes, the soul realm is different
<benzrf> uh huh
<benzrf> what you do not comprehend is the nature of leetness
<shevy> vim stinks
<benzrf> leetness is not an inborn part of your soul
<benzrf> rather, leetness is attained through diligent study
ner0x has joined #ruby
<benzrf> :B
<shevy> and beer
<benzrf> using vim is what makes you leet, not vice versa
<shevy> that's the shortcut
<shevy> vim alters your brain immensely
<shevy> like beer except that beer is more fun
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
<benzrf> fun fact: xkcd's ballmer peak is at .1337
platzhirsch has joined #ruby
apeiros has quit [Remote host closed the connection]
ismaelrb has quit [Quit: Textual IRC Client: www.textualapp.com]
<Kamuela> i only know a steve balmer and i think he's getting fired
<shevy> benzrf do you also learn go?
apeiros has joined #ruby
<nobitanobi> who uses vim here?
<benzrf> i have not
<benzrf> it looks boring
<benzrf> nobitanobi: me
<nobitanobi> me too
<nobitanobi> (Y)
<platzhirsch> How would you name a module containing methods that involve HTTP? I am looking for a word like Enumerable or Runnable...
<DouweM> platzhirsch: what kinds of methods?
<shevy> nobitanobi I stopped using it about 8 years ago
Bira has joined #ruby
<nobitanobi> shevy, yeah? why?
<platzhirsch> DouweM: I just want to encapsulate some utility methods
gverri_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DouweM> platzhirsch: like?
<benzrf> shevy: did you start 8 years + 1 day ago
<platzhirsch> one converts a Curb response object into a string message
soba has joined #ruby
gajon has quit []
<shevy> nobitanobi a multitude of reasons. a big one is that I hate the way you extend it with this specific let bla be bla function style. another was that there is always more and more to learn. another was that the brain associates actions with certain keystroke combinations - which I dont want to allow any editor to do
nhhagen has quit []
<shevy> benzrf nah, somewhen in 2002 when I moved to linux
<shevy> ruby in ... 2004 I think
nhhagen has joined #ruby
<nobitanobi> shevy, another was that there is always more and more to learn -> this is good no?
<shevy> nobitanobi is it? :)
RaCx has quit [Quit: Computer has gone to sleep.]
<platzhirsch> DouweM: another one returns a boolean, whether the response was successful or not, based on the HTTP code
<nobitanobi> shevy, well, you can always say.. I don't wanna learn more
<nobitanobi> :P
<nobitanobi> at least you have the chance to learn more
Apane has quit [Ping timeout: 246 seconds]
<shevy> nobitanobi if you would become more productive perhaps, but I noticed a flat curve if at all, and a much higher curve to forget things I knew
<Kamuela> I need to work backwards already with Rails, i need to just clone working apps or something
<DouweM> platzhirsch: Not sure this needs an Xable name. if it's just utility methods, do you really need them encluded into other classes? why not just call them on the util module?
<nobitanobi> shevy, I agree with that.
sambao21 has joined #ruby
<nobitanobi> shevy, what do you use now, Sublime?
<shevy> nobitanobi I'd rather fill my brain with more ruby knowledge. but the main gripe I have is with how you add to vim, those functions are so awful, it looks like 1970 era
<platzhirsch> DouweM: you mean just call it module SomethingUtil?
<DouweM> platzhirsch: yeah
<platzhirsch> yes, you are right. Just thought it would be fancy, but I agree, it's not the right place
<nobitanobi> hehe, that's true. config looks old
Xeago has joined #ruby
sambao21 has quit [Client Quit]
<shevy> nobitanobi nah, really notepad-editor styles. bluefish 1.0.7 usually, other gtk-based ones sometimes. sublime is cool but I dont have a real need to switch. most actions I want to do I do with ruby scripts anyway, so I dont have a big need for superawesome editors
burlyscudd has joined #ruby
<Kamuela> My lief is subliem
<benzrf> >> 2013 - 8
<eval-in> benzrf => 2005 (https://eval.in/67320)
<shevy> btu nto to splel
petey has quit []
<DouweM> "subliem" happens to be the Dutch spelling of "sublime"
<nobitanobi> shevy, sounds great :) I guess it's a matter of taste
<nobitanobi> as everything in this liiiiife
<shevy> benzrf I kept on using vim for a longer while even when it was no longer my main editor!
<benzrf> o:
<DouweM> and "lief" is Dutch and probably Afrikaans for "love" as in "my love". So I think that might actually be a correct Afrikaans sentence
<benzrf> well ive only used vim for like
<shevy> I actually still use vim when I use bash/konsole
<benzrf> 1 year
<benzrf> 2 years
<benzrf> maybe ill yet leave
pragmatism has joined #ruby
<benzrf> probably for emacs if anything
<benzrf> :p
<shevy> you dont need a religion
<pragmatism> is it possible to use floast as the keys in a hash?
<benzrf> pffft
<shevy> floast your boat?
<Kamuela> my dutch pidgin impresses?
<benzrf> >> {1.3 => "foo"}
<eval-in> benzrf => {1.3=>"foo"} (https://eval.in/67322)
sergicles has joined #ruby
<shevy> pragmatism ^^^ there benzrf answered it!
<pragmatism> Thanks all!
drumsrgr_ has quit [Remote host closed the connection]
<pragmatism> You guys are magic.
kaspergrubbe has joined #ruby
<shevy> cool
<benzrf> pfft
<benzrf> magic is dumb
<Kamuela> pragmatism, The power is yours!
<shevy> benzrf, you are magic
<benzrf> nooo
<shevy> benzrf can I rub you?
timonv has joined #ruby
<benzrf> im going to quote you on that when the police show up
funburn has joined #ruby
danshultz has joined #ruby
<nobitanobi> shevy, btw, where r u from?
<shevy> we need a merger of bash and xkcd
<benzrf> shevy: is that the one with the tight clothing line
pskosinski has quit [Quit: Til rivido Idisti!]
<shevy> nobitanobi central europe, austria, vienna, close to center there
<nobitanobi> oh beautiful
<benzrf> ah
<benzrf> shevy: did you read http://benzrf.com/misc/fp.pdf
<benzrf> :)
<shevy> nobitanobi it's raining and it is cold :(
<DouweM> shevy: nice
<nobitanobi> I like it
<shevy> is "fp" for "functional programming"?
benlieb has quit [Quit: benlieb]
<shevy> the monad brain?
newbiehacker has joined #ruby
<benzrf> o:
<shevy> man
<shevy> do you know _why's old cartoon benzrf?
hiyosi has joined #ruby
<shevy> the two foxes
postmodern has quit [Ping timeout: 264 seconds]
Monie has joined #ruby
d45h has quit []
gverri has joined #ruby
<Kamuela> i think everything is pointing me to just do it and ask questions as i screw up
<Kamuela> guides are really rough, i'm just learning that everyone has his own style
MrZYX is now known as MrZYX|off
nanoyak has joined #ruby
<shevy> Kamuela true
<shevy> Kamuela it means you must find your own style
<Kamuela> i'm gonna have to respect that ruby is all about how you personally solve stuff
<shevy> yeah
dkamioka_ has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 272 seconds]
<shevy> it's one part of there-is-more-than-one-way
scarolan has quit [Ping timeout: 245 seconds]
<benzrf> Kamuela: this is why i like python
<benzrf> :{
<benzrf> shevy: yes
<shevy> :D
<benzrf> shevy: i read most of it
<Kamuela> i just figured since rails said convention over configuration, there'd be more... convention. lol
<shevy> benzrf we should create a language that combines the best features of languages
<benzrf> but i stopped about halfway through downtown
<benzrf> shevy: but we disagree what those are!
<benzrf> :D
danshultz has quit [Ping timeout: 244 seconds]
<shevy> Kamuela, rails kinda does things in a very specific way, including on their ruby code
jerius has quit [Ping timeout: 246 seconds]
<shevy> they use things that I dont see often used outside rails
<shevy> like
adambeynon has joined #ruby
<shevy> has_many :cheese
<atmosx> shevvyyyyyy
<shevy> atmosxxxxxx
Voodoofish430 has quit [Ping timeout: 248 seconds]
<atmosx> shevy: one_to_many :asses
<shevy> lol
<Kamuela> yeah but when it comes down to it
<atmosx> are you 'railing'?
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Kamuela> everyone still approaches crap so differently in rails
<Kamuela> it kinda drives me nuts
<shevy> Kamuela the idea is that when you use specific rails-centric code parts, you can be more productive
Voodoofish430 has joined #ruby
<atmosx> Kamuela: tell me about it.
<shevy> atmosx still not :(
maletor has quit [Quit: Computer has gone to sleep.]
<benzrf> i refuse to learn rails
<Kamuela> like what the hell! i'm still confused about fat models skinny controllers
<benzrf> im far too much of a hipster
<benzrf> :D
<Kamuela> because the model is EMPTY by default
<Kamuela> WHAT THE F
<benzrf> Kamuela: what's confusing about this
<benzrf> Kamuela: models should be highly custom
einarj has quit [Remote host closed the connection]
<shevy> I have not even reached that part
Monie has quit [Ping timeout: 245 seconds]
<atmosx> Kamuela: I'm building an app on Sinatra and everytime I look for a sample code online (SO or otherwise) I crash a guy who use a completely different approach os structure. Sometimes I get the idea that either me or the other guy don't know what is doing.
<DouweM> Kamuela: well duh... you need to add your own domain/business logic
<DouweM> Kamuela: rails can't really make that up for you and pre-fill the model
<atmosx> benzrf: what do dyou do for a living?
<benzrf> atmosx: im 16
_Andres has quit [Quit: jazz]
<benzrf> that need is filled for me atm
<benzrf> :D
<shevy> atmosx gas stations weekend robbery ;)
<Kamuela> DouweM, so help me then, how does the view implicitly decide what happens in the model? because that's what i'm seeing
<atmosx> benzrf: Lean rails and JS, it will serve you. Althourh you're young you can do anything
<benzrf> shevy: that too
<platzhirsch> benzrf: hahaha, that comic strip is superb
<shevy> yes
<DouweM> Kamuela: wait what?
<atmosx> shevy: lol
<benzrf> atmosx: i know js & try not to
<shevy> benzrf, you have an excuse there
<benzrf> atmosx: livescript is pretty coo
<shevy> benzrf you can say you had to learn rails and JS because you were young and needed the money :>
<benzrf> atmosx: it's like coffeescript with extra haskell and more sugar
<benzrf> shevy: hmm
<benzrf> a good excuse indeed
<benzrf> i'd rather learn django
<benzrf> :D
<shevy> it is like haskell? with monads?
tobiasvl has quit [Ping timeout: 245 seconds]
<atmosx> haskell? unknown languages
<Kamuela> DouweM, a model will be empty, but still have storage capability for both username and email, for example, after you just ran a scaffold. and it'll happen through the form but the model is... empty. i don't get that
<atmosx> lol
<benzrf> shevy: no it's still a 1:1 JS mapping
<benzrf> mostly
<shevy> atmosx see, benzrf can not decide what language to use
<Kamuela> DouweM, i'm looking for something to be "caught" in the model
<benzrf> shevy: but it has crazy ass sugar
kpshek has quit []
<benzrf> atmosx: do you not know of haskell?
<atmosx> shevy: I see, he's got too much time to loose
myappleguy has joined #ruby
tvl has joined #ruby
<shevy> atmosx knows a lot, not only about programming but also about biology
nateberkopec has quit [Quit: Leaving...]
<atmosx> benzrf: not really, I don't know neither haskell or lisp
tvl is now known as tobiasvl
<DouweM> Kamuela: well, the model is hooked up to the database table by the same name (pluralized), which is where its knowledge about fields comes from. all of its other functionality comes from AR::Base, which it extends
<benzrf> oh man haskell is super neat
<shevy> lispell
<DouweM> benzrf: true dat. I love haskell
benlieb has joined #ruby
<atmosx> shevy: When I'm done with this project of mine and the rails book, I'll go with Go!
* benzrf fistbumps DouweM
<shevy> right... benzrf taught me that haskell accepts only one argument in a function
<atmosx> shevy: it's easy.
<Kamuela> DouweM, so how is it that it knows how to deal with a form without any code?
breakingthings has quit []
<shevy> atmosx really? I am trying to convince myself to go with ... java :(
<benzrf> shevy: haskell curry
<benzrf> so cool he got two things named after him
<shevy> indian curry!
<atmosx> shevy: java? why java?
<atmosx> shevy: are you taking any online course?
fomatin has joined #ruby
<benzrf> shevy: good lord java
<DouweM> Kamuela: in your view, you use form_for @some_instance_of_that_model. form_for has a bunch of methods like form.text_field :field_name that correspond to the field_name field on @that_model_I_just_mentioned
<shevy> atmosx I kinda need a language in addition to ruby
<atmosx> all these use jv
lkba has quit [Ping timeout: 240 seconds]
<benzrf> shevy: i hear c# is much better
<DouweM> Kamuela: form_for does all of the heavy lifting of rendering the form
<atmosx> shevy: JavaScript
<benzrf> shevy: use mono
<benzrf> atmosx: u wat
<shevy> atmosx not really, I still lack time... but I need to use an additional language
<benzrf> weak typing D:
<atmosx> shevy: or Clojure
<shevy> I hate javascript
<DouweM> Kamuela: the form's values is then sent to the create action on your controller via params, which it sets on the model instance
<benzrf> i should learn scala
<benzrf> ajd clojure
thesheff17 has quit [Quit: Leaving]
lkba has joined #ruby
<DouweM> Kamuela: the model instance then does database-y stuff with it
watermel0n has quit []
<atmosx> benzrf: what exactly to you mean by learn?
<Kamuela> DouweM, so controllers are the ones deciding the form elements?
<atmosx> because we're throwing laguages here random, you happen to know all of them... I'ms scared.
<DouweM> Kamuela: the code in your view determines what fields to show, check your new.html.erb
<DouweM> Kamuela: the controller grabs all posted info from params and passes it to the model
benwoody has quit [Quit: benwoody]
<atmosx> DouweM: do you happen to know how can I create a multilanguage website using sinatra?
hiall has quit [Quit: hiall]
mercwithamouth has quit [Ping timeout: 272 seconds]
<DouweM> atmosx: I do not. Have no experience with Sinatra
<atmosx> DouweM: How would you do that in rails?
<Kamuela> DouweM, the fact you just said "code in your view" confuses the hell out of me, MVC down the drain?
<benzrf> atmosx: what is unclear about the word?
<benzrf> O:
<atmosx> I'm usinv MVC actually, manually heh
<shevy> atmosx it's the youth, they wanna learn. once they get older, they settle for beer instead
<benzrf> by learn i mean learn
ewnd9 has quit [Ping timeout: 272 seconds]
<benzrf> i know OF clojure, and I know scala up to hello world
<DouweM> Kamuela: your view is your views/controller_name/new.html.erb file. of course there's HTML in there, and some Ruby for loops and stuff and for rendering the form, which is a very view-y thing
<DouweM> Kamuela: Rails has its own interpretation of MVC, but I don't think this is a good example of where it misses it
<benzrf> anyway righ now im reading land of lisp, so once i finish that maybe ill look into clojure
<benzrf> does it have macros? it cant be much of a lisp without macros ..?
<DouweM> atmosx: multilingual site on Rails depends on whether you want localized models or views or messages or whatever
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<atmosx> benzrf: the level of knowledge actually. Knowing could mean "I can understand a code-snippet when I see it" or I can write an entire app by heart and I understand how to use all the perks that come with the lang properly.
<Kamuela> DouweM, give me a second, i'll try to see if i can make a new project and g scaffold Users username:string email:string
<DouweM> atmosx: in all cases: check out the i18n gem
ce_afk is now known as cescalante
baordog has quit [Remote host closed the connection]
<Kamuela> DouweM, or is it User
<atmosx> shevy: beer!!!!
<shevy> :D
<DouweM> Kamuela: bad example, because you have certain expectations about usernames and passwords and authentcation etc. try a Post with title:string and body:string, for example
_maes_ has joined #ruby
<atmosx> DouweM: jus messages (meaning the views/ directory)
<DouweM> Kamuela: and yeah, the model is singular
<atmosx> the rest don't need any ocalization
<DouweM> atmosx: in which case, use i18n
<benzrf> atmosx: well when i learn a lang i like to learn it enough that i really undestand it
<atmosx> DouweM: k, I'll check it out
<benzrf> otherwise it bugs me that i dont know how everything works
<Kamuela> ok DouweM i'll do that one sec
<DouweM> atmosx: it allows you to specify messages in yaml files and then reference them from the views. you can set I18n.locale which it will use to pick the right localization file
<benzrf> not memorizing the spec, necessarily, nor the stdlib
<benzrf> but like the basic semantics &c
<DouweM> atmosx: http_accept_language is a gem which will help you get that locale info from the request header
_zxq9_ has joined #ruby
<atmosx> DouweM: awesome. I'll just use flags or a drop down menu
<atmosx> to set localization
<DouweM> atmosx: good too, as long as you set I18n.locale :)
ngoldman has quit [Remote host closed the connection]
<atmosx> DouweM: I can do that in rails out of the box using params
duggiefresh has quit [Remote host closed the connection]
<atmosx> okay
Ox6abe has quit [Remote host closed the connection]
<atmosx> err no rails sorry sinatra.
<atmosx> hm, cool.
<DouweM> atmosx: right, if you want like a dropdown or links. but http_accept_language is neat if you want to anticipate the user's language
aarkerio has joined #ruby
duggiefresh has joined #ruby
<Kamuela> DouweM, rails g scaffold Post title:string body:string, so we're on the same page
<atmosx> I also need to start my other project...
ngoldman has joined #ruby
sambao21 has joined #ruby
<atmosx> and my thesis
<DouweM> Kamuela: yeah
<atmosx> fuck
<atmosx> too much code, too litle time all of them web-apps
<benzrf> web apps r lame
<benzrf> random screwing around ftl
<benzrf> *ftw
* atmosx and my FreeBSD friends do not consier ruby or anything web-related a computer programming language
<Kamuela> atmosx, haha. all i have to do is make a coming soon mailing list page, and i spend all day hiding from the guy and learning railzz :)
<benzrf> atmosx: in what way is ruby webrelated
<DouweM> atmosx: :|
<benzrf> it is commonly used for that sure
<atmosx> DouweM: poor me :-(
<DouweM> Kamuela: your Rails stuff may be better suited for #RubyOnRails btw
zxq9 has quit [Read error: Operation timed out]
<DouweM> Kamuela: because I gotta go in a minute, class in the morning and it's 12:15 am
mikepack has quit [Remote host closed the connection]
<aarkerio> hi! in this line : def topic_admin?; role_is_topic?(:topic_admin); end
<aarkerio> why is a ";" after "?"
<Kamuela> DouweM, if you personally don't have time right now to help me, that's cool
<atmosx> Kamuela: hehe smart.
<Kamuela> DouweM, yeah no problem though
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
<DouweM> Kamuela: got a couple of mins left
<Kamuela> DouweM, they are stuffy in there :(
<aarkerio> is not a regular method?
<atmosx> aarkerio: ; = end f line
<nobitanobi> http://stackoverflow.com/questions/8894194/retrieving-the-hex-code-of-the-color-of-a-given-pixel -- Anybody can see what 'escaped_path' is in this answer? :/
<benzrf> aarkerio: they both work
<benzrf> \n is basically equivalent to ;
<atmosx> aarkerio: def shit; puts "shit happens"; end
<Kamuela> DouweM, ok, well models is empty, let me check the views
<RubyPanther> benzrf: lol awesome
_maes_ has quit [Ping timeout: 246 seconds]
<aarkerio> mmmm, great! thanks guys!
<atmosx> aarkerio: you're welcome
<DouweM> atmosx: forgive me my stalking, but I like greek names and you have an awesome sounding one
<Kamuela> DouweM, i'm seeing in the _form.html.erb f.label :title, f.txt_field :title, and for_for @post, so @post is the current instance of the post model?
RichardBaker has quit [Quit: RichardBaker]
<atmosx> DouweM: no worries, I'd be using an alias and Tor if I didn't want you to find my ID ;-)
zz_scottstamp is now known as scottstamp
<benzrf> RubyPanther: from Land of Lisp
duggiefresh has quit [Ping timeout: 248 seconds]
<DouweM> Kamuela: yup, it's set in your controller's #new method
<atmosx> DouweM: thanks btw, for the compliment! (Which brings to the point where I feel that is a good time to mention that I have a gf!)
<DouweM> Kamuela: controllers and views share instance vars
<benzrf> [it goes on to say that FP is pretty cool but they think side fx should be allowed if you want]
<DouweM> atmosx: lol
<atmosx> hahah
yfeldblu_ has joined #ruby
lolmaus has quit []
ckinni has joined #ruby
<Kamuela> DouweM, does only a controller have access to the Models?
<DouweM> atmosx: something about how you can know if a programmer has a girlfriend, yada yada, because they'll tell you
<atmosx> DouweM: interesting profile http://www.douwemaan.com/
DrShoggoth has joined #ruby
<atmosx> shevy: all this kids today, make you feel illeterate
<benzrf> my website is clearly the best http://benzrf.com
<DouweM> Kamuela: views do too, but it's bad practice to talk to models from the view
<atmosx> illiterate idem
<DouweM> Kamuela: set up models in the controller, reference their ivars from the view
<DouweM> atmosx: :)
yfeldblu_ has quit [Remote host closed the connection]
<DouweM> benzrf: mine is clearly the most original
<atmosx> benzrf: wow, that's full of content
<benzrf> DouweM: nice design though o:
<benzrf> pretty clever
<DouweM> :)
yfeldblu_ has joined #ruby
<atmosx> DouweM: I have a pebble.. hehe
cescalante is now known as ce_afk
<benzrf> DouweM: you used to do php?
Bira has quit [Remote host closed the connection]
<DouweM> atmosx: ever seen the Revolution watchface?
<DouweM> benzrf: sure did
<benzrf> :/
<atmosx> DouweM: no I don't use it anymore to tell you the truth http://www.convalesco.org/blog/2013/03/05/the-pebble-experience/
Bira has joined #ruby
<atmosx> DouweM: my iPhone got stolen recently and I'm waiting for the police to help, but I'm not hopeful anymore...
<benzrf> DouweM: mmm pressing space on your site misaligns ItSANgo
yfeldblum has quit [Ping timeout: 240 seconds]
<benzrf> *it
<DouweM> atmosx: ah... the sdk's gotten a lot better recently btw
<benzrf> DouweM: maybe you can somehow actually restrict scrolling instead of capturing up/down
<DouweM> benzrf: how do you suggest I handle space?
<Kamuela> DouweM, is this magic in post_params?!?!
<benzrf> dunno
daxroc has joined #ruby
kitak has joined #ruby
havenwood has quit [Remote host closed the connection]
<DouweM> benzrf: and nah, I'd hate restricting scrolling
<DouweM> benzrf: I do capture option+up/down as wlel
<benzrf> DouweM: no i meant like
<benzrf> wait hmm
<DouweM> Kamuela: that's getting the params from the form
<benzrf> is there an onScroll event or something?
iamjarvo_ has quit [Ping timeout: 245 seconds]
<benzrf> If so, you could capture that instead of up/down
<iajrz> DouweM: you could make space jump you to the next title?
<benzrf> and modulo
<iajrz> thats what I was expecting when I pressed it
<DouweM> benzrf: there is, what'd you want to do?
<Kamuela> DouweM, but basically this is what passes it to your model, because your model is straight DB about things?
myappleguy has quit [Ping timeout: 245 seconds]
<DouweM> iajrz: I could. you can send me a pull request :P
olivier_bK has quit [Quit: Quitte]
olivier_bK has joined #ruby
<DouweM> Kamuela: post_params just gets a Hash with all form values, inside #create it's passed to the model, inside Model#save it's saved to the DB
<DouweM> iajrz: I never use space to navigate, so I didn't think of that. will look into it tho
mikepack has joined #ruby
<benzrf> DouweM: module man!
<benzrf> *modulo
<Kamuela> DouweM, so once it gets into your model, is Model#save where the business logic is applied?
<DouweM> benzrf: ?
<Kamuela> DouweM, and then helper methods from within the model?
Clooth has quit [Quit: Leaving...]
<DouweM> Kamuela: business logic is all of your own methods, validation etc. your own methods you'll need to call, validation is applied on #save, yeah
sambao21 has quit [Quit: Computer has gone to sleep.]
<Kamuela> DouweM, wow, i think i'm getting it somewhat
asteros has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
RTG` has quit []
<benzrf> DouweM: i know, capture scrolling, then shift the position of the text so that it always lines up
<Kamuela> DouweM, but how is a scaffold able to automatically save to the DB? is it because Save is a method that we overload?
<benzrf> :D
asteros has joined #ruby
daxroc1 has joined #ruby
<DouweM> benzrf: ew :P
zz_michael_mbp is now known as michael_mbp
RTG` has joined #ruby
<benzrf> DouweM: aw
<DouweM> Kamuela: "the scaffold" just sets up a bunch of controllers and views. the view shows form fields, when you hit [Save] it's posted to #create, create gets the params via post_params, it's passed to the model, which is then #save'd
<benzrf> you could trap the event and modify it so that scrolling moves in discrete amounts
<DouweM> benzrf: feel very free to post a pull request
<DouweM> benzrf: I'd hate it if a website were to hijack my scrolling
<benzrf> hmm
Astralum has quit [Ping timeout: 245 seconds]
benlieb has quit [Quit: benlieb]
RichardBaker has joined #ruby
<benzrf> i guess having a pull request accepted even just once would look good on my resume
<benzrf> :B
_zxq9_ has quit [Quit: Konversation terminated!]
<Kamuela> DouweM, post_params is a params object that is passed to the Post model constructor?
<DouweM> benzrf: haha
daxroc has quit [Ping timeout: 272 seconds]
<DouweM> Kamuela: a params object is just a Hash with [form field name]=>[form field value]
<DouweM> Kamuela: but yeah, that hash is passed to the Post constructor
<Kamuela> DouweM, what is the post constructor's method called? is it new like you jsut said?
<DouweM> Kamuela: in ruby, Class.new is the constructor, yeah
simplyaubs has joined #ruby
<Kamuela> DouweM, so if i went into my model and said
<DouweM> Kamuela: it calls #initialize where initial setup is performed
<Kamuela> DouweM, so would i overload initialize or new?
<DouweM> Kamuela: you wouldn't either, but if you were so inclined, you'd override #initialize
michael_mbp is now known as zz_michael_mbp
<DouweM> Kamuela: you shouldn't touch .new unless you know what you're doing
<Kamuela> DouweM, it's better practice to manipulate instance variables outside of the constructor?
<DouweM> with activerecord, you really don't ever need to override #initialize though
Banistergalaxy has quit [Ping timeout: 248 seconds]
<DouweM> Kamuela: what kinds of ivars would you want to use on the model?
mlpinit has quit [Remote host closed the connection]
<DouweM> benzrf: LiveScript looks nice btw. Like like like the functional influences
mlpinit has joined #ruby
<benzrf> yeah
<benzrf> the recommended stdlib is actually called prelude.ls
<Kamuela> DouweM, when we have @post.title and @post.body, these are all given access_attr because of the activerecord default constructor?
<benzrf> =]
<iajrz> DouweM: I forked and changed the code
<iajrz> how do I submit the pull request?
<iajrz> noticed you'd done the same thing for alt+down
<iajrz> never thought of pressing alt+key on browser
<DouweM> iajrz: if you go to the compare view for your branch, there should be a Add Pull Request button
DonRichie has quit [Quit: Verlassend]
<DouweM> Kamuela: access_attr ?
jblack has quit [Quit: Lost terminal]
tonni has joined #ruby
<DouweM> iajrz: make changes in the .coffee version, compile to .js, submit both
<Kamuela> DouweM, i could be using the wrong terminology, but basically the accessor methods are generated by default because of what was passed to the constructor
<DouweM> iajrz: don't touch .js manuyally ;)
<iajrz> ahhh, coffeee :'(
<iajrz> lol, I know not coffee, did it in js
newbiehacker has quit [Ping timeout: 245 seconds]
tharindu has joined #ruby
<iajrz> well, learning day I guess.
<iajrz> brb
<DouweM> Kamuela: the Post model knows it has fields title and post because it has access to the DB tables. it will then create getters and setters for those fields, yeah
scarolan has joined #ruby
<DouweM> iajrz: your changes should be pretty straightforward based on the existing code
<atmosx> interesting
<iajrz> I sure hope so :)
<Kamuela> DouweM, so Post model reads the database, and Rails internally deals with what it knows, and everything else is an override? which is why nothing can be done until a db:migrate?
mercwithamouth has joined #ruby
<DouweM> Kamuela: pretty much
<DouweM> atmosx: cool
<Kamuela> DouweM, if I didn't use a scaffold, would I have had to code a migration?
<atmosx> DouweM: yea you could get names like one77.bit
mlpinit has quit [Ping timeout: 245 seconds]
<DouweM> Kamuela: yup
ngoldman has quit [Remote host closed the connection]
<Kamuela> DouweM, i'm GETTING it!
elux has quit [Quit: Bye!]
<atmosx> or maybe evenprime.bit
jhulten has joined #ruby
<atmosx> hehe
sambao21 has joined #ruby
christopherdupon has joined #ruby
<DouweM> Kamuela: :D
<Kamuela> DouweM, so what is the absolute most RESTful way to deal with your root?
<DouweM> whatcha wanna show there?
nanothief has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
jamblack has quit [Quit: jamblack]
<Kamuela> DouweM, i guess that's a good question, haha, but what if you want to show just like an intro page or something. should you have a pages controller for your non-appy stuff?
xk_id has quit [Quit:
ner0x has quit [Quit: Leaving]
<DouweM> iajrz: not that I wasn't going to accept that piece of code anyway, too much duplication with the up/down thing. you could extract it into a goToNextSection() method or something
<DouweM> Kamuela: that's the convention yeah, so a PagesController with #home, #contact, #about etc
^Chris^ has quit [Ping timeout: 245 seconds]
<iajrz> aye, I could, but I tend to get overexcited
<iajrz> now looking at how to compile coffeescript
<DouweM> iajrz: I expect an awesome pull request in the morning
<Kamuela> DouweM, and then once you get down to your social/dynamic stuff, that's when you scaffold for that other stuff and try to keep it RESTful?
<DouweM> and now, I'm gonna catch some sleep
<DouweM> Kamuela: I never scaffold, I just write the controllers, views an models myself
<DouweM> Kamuela: but yeah, what I'd write myself would pretty much match what scaffolding sets up for you
carif has joined #ruby
<Kamuela> DouweM, you've helped me immeasurably :D
<DouweM> Kamuela: also, are you learning Rails through a book or by yourself? because most of what you've asked should've been explained to you
<DouweM> Kamuela: I can recommend railstutorial.org
<Kamuela> DouweM, i'm reading many books and watching a lot of things, i'll admit that maybe i've just missed these things that i'm asking, but i really think they leave them out for some reason
<DouweM> Kamuela: np. if you have any more questions, there's always #ruby and #RubyOnRails. and if you don't trust them, I'm online most of the time as well
<DouweM> Kamuela: yeah, I don't really like the shotgun approach. just go with one good book, as I said, going through railstutorial.org from start to finish should be sufficient
<DouweM> Kamuela: that's what I used
<Kamuela> i've never seen the connection from post_params explained and the migration code being explained as the way your database gets set up
<Kamuela> and the fact that your model reads from the db
<DouweM> iajrz: so I'm gonna get some sleep, if you message me I'll see it in the morning :) looking forward to your pr
mikeg has quit [Remote host closed the connection]
<iajrz> ok, let's see if I can figure it out
<DouweM> Kamuela: railstutorialrailstutorialrailstutorial
<iajrz> rest well, DouweM
<DouweM> cheers all
Xeago_ has joined #ruby
<Kamuela> late
scottstamp is now known as zz_scottstamp
atno has quit [Remote host closed the connection]
fomatin has quit [Quit: Computer has gone to sleep.]
pw3 has joined #ruby
havenwood has joined #ruby
mary5030 has joined #ruby
Monie has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
fgo has quit [Remote host closed the connection]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
jonathanwallace has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ngoldman has joined #ruby
<atmosx> nigh all
atmosx has quit [Quit: Lost in trance]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
marr has quit [Ping timeout: 245 seconds]
christopherdupon has quit [Read error: Connection reset by peer]
^Chris^ has joined #ruby
end_guy has joined #ruby
<nobitanobi> just found out we can use $1 as the last regex match. Dayum
<DanBoy> perl :(
<benzrf> nobitanobi: IT'S PERL
<nobitanobi> hum
<DanBoy> haha
<Kamuela> just dawned on me that rails is a gem... doh
<nobitanobi> I was like... where the hell this comes from.
rjhunter has joined #ruby
mmitchell has quit [Remote host closed the connection]
<Kamuela> i'm back to the rails tutorial because DouweM has done the most to help me and is convinced that it will make me a smarter human being
<nobitanobi> Kamuela, gogo!
mary5030 has quit [Ping timeout: 264 seconds]
SirFunk has quit [Remote host closed the connection]
relix has joined #ruby
relix has quit [Client Quit]
yfeldblum has joined #ruby
Vivekananda has joined #ruby
<nobitanobi> What's an elegant way of testing if 4 strings are the same?
<benzrf> nobitanobi: you could inject ==
<benzrf> oh wait
<benzrf> that's dump
<benzrf> *dumb
<Kamuela> there's no identical? or same? built-in library test?
nateberkopec has joined #ruby
olivier_bK has quit [Ping timeout: 252 seconds]