apeiros changed the topic of #ruby to: Ruby 2.1.4; 2.0.0-p594; 1.9.3-p550: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
VanillaGoat has quit [Ping timeout: 265 seconds]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jenrzzz> WhereIsMySpoon: unary & calls #to_proc on an object. so &:+ is the equivalent of :+.to_proc
<WhereIsMySpoon> jenrzzz: im afraid i dont remember what to_proc does, been too long since i programmed in ruby
<jenrzzz> Symbol#to_proc returns a proc that taks an object and sends the symbol to that object
ki0 has joined #ruby
<jhass> porfa: okay, first of all note that '\\n' == "\\\\n"
<jhass> porfa: then explain me what tr does
<jenrzzz> &:name # => proc {|obj| obj.send(:name) }
mary5030 has joined #ruby
<WhereIsMySpoon> jenrzzz: so then that line is the equivalent of doing myArray = []; votes.each |vote| { myArray.add vote }
sinkensabe has joined #ruby
<porfa> i have been using tr to replace text, blabla.tr(‘Yousuck’ , ‘youhot’)
<WhereIsMySpoon> syntax may not be 100% correct but u get the idea
<porfa> when it sees Yousuck it changes to youhot
<jhass> porfa: that's not what it does
<porfa> *shoots himself*
<wm3|away> porfa: tr != gsub ;)
<jhass> >> "foobar".tr('fb', 'ac')
<eval-in__> jhass => "aoocar" (https://eval.in/218017)
<WhereIsMySpoon> porfa: :(
wm3|away is now known as workmad3
<jhass> tr replaces characters, not substrings
<jhass> "abc".tr('a-c', 'd')
<jhass> >> "abc".tr('a-c', 'd')
<eval-in__> jhass => "ddd" (https://eval.in/218018)
Blizzy has joined #ruby
<jenrzzz> WhereIsMySpoon: not quite... that is the equivalent of myArray = votes.dup
<jenrzzz> it's more useful when you want to replace the objects in a collection with the result of calling a method on each
<WhereIsMySpoon> jenrzzz: converting inject into add was probably my mistake :)
<WhereIsMySpoon> wa sjust an assumption on my part
<jenrzzz> they are very different. and there is no such method Array#add
iwishiwerearobot has joined #ruby
<Rapier-> any good screenshot of webpage scripts floating around, non PhantomJS
Sgeo has joined #ruby
geggam has quit [Ping timeout: 264 seconds]
sinkensabe has quit [Ping timeout: 250 seconds]
icarus has quit [Remote host closed the connection]
<jenrzzz> >> ('a'..'z').collect(&:upcase)
<eval-in__> jenrzzz => ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] (https://eval.in/218019)
<porfa> thanks, im looking into .sub
<WhereIsMySpoon> >> "asd".inject(0, :+)
<eval-in__> WhereIsMySpoon => undefined method `inject' for "asd":String (NoMethodError) ... (https://eval.in/218020)
<jhass> porfa: you probably want the .gsub variant
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<porfa> hmm o
<porfa> ok
<WhereIsMySpoon> >> ["asd"].inject(0, :+)
<eval-in__> WhereIsMySpoon => String can't be coerced into Fixnum (TypeError) ... (https://eval.in/218021)
<jenrzzz> WhereIsMySpoon: what are you trying to do there?
<WhereIsMySpoon> eh im not gonna spam the channel with my guesswork
<WhereIsMySpoon> get what inject does :P
adriancb has quit [Remote host closed the connection]
<jenrzzz> oh
<Blizzy> ('a'..'z').map{|x| x.upcase }
<jenrzzz> it reduces a collection into a single value
aspires has quit []
<Blizzy> oh, lol.
<Blizzy> >>('a'..'z').map{|x| x.upcase }
<eval-in__> Blizzy => ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] (https://eval.in/218022)
<workmad3> WhereIsMySpoon: inject calls the block with each item in the array and the result from the previous run of the block
<jenrzzz> >> (1..10).inject(0, &:+)
<eval-in__> jenrzzz => 55 (https://eval.in/218023)
jdj_dk has quit [Ping timeout: 245 seconds]
<apeiros> guys. use your own irb for personal tests
<WhereIsMySpoon> apeiros: yea, thats why I stopped :)
<workmad3> WhereIsMySpoon: first param to inject will be passed into the first block
Areessell has joined #ruby
aspires has joined #ruby
<WhereIsMySpoon> jenrzzz: so :+ is a reference to 'add' and &:+ converts that into a proc?
<jenrzzz> :+ is a symbol
Sgeo_ has quit [Ping timeout: 245 seconds]
<workmad3> WhereIsMySpoon: semantically, inject is as jenrzzz said - reduces a collection to a single value (and inject is also aliased as reduce)
iwishiwerearobot has quit [Ping timeout: 260 seconds]
<jenrzzz> same as '+'.to_sym
Sgeo_ has joined #ruby
<jenrzzz> also, I should probably clarify that unary & calls #to_proc, and then passes that proc as a block. it only works in method calls
<workmad3> :+.to_proc = proc{|caller, *args, **kwargs, &blk| caller.send(:+, *args, **kwargs, &blk)}
VanillaGoat has joined #ruby
troyready has joined #ruby
<WhereIsMySpoon> ok, cheers guys :)
Sgeo has quit [Ping timeout: 245 seconds]
Areessell has quit [Ping timeout: 250 seconds]
mib_mib has joined #ruby
JohnBat26 has quit [Ping timeout: 265 seconds]
mib_mib has quit [Remote host closed the connection]
SCHAAP137 has quit [Quit: Leaving]
mib_mib has joined #ruby
i_s has quit [Remote host closed the connection]
i_s has joined #ruby
ki0 has quit [Remote host closed the connection]
<porfa> in irb it outputs fine, i dont know why it breaks the script though
nfk has quit [Quit: yawn]
siaw has quit [Quit: siaw]
davasaurous has quit [Remote host closed the connection]
mib_mib has quit [Ping timeout: 250 seconds]
klaut has quit [Remote host closed the connection]
i_s has quit [Ping timeout: 255 seconds]
mib_mib has joined #ruby
<jhass> porfa: "breaks"?
Sgeo has joined #ruby
<jhass> also you should work ony our formatting
<jhass> you don't indent at all and your lines are way too long on average
<jhass> and paste as foo.rb so we get syntax highlighting :)
aspires has quit []
agrinb has joined #ruby
Sgeo_ has quit [Ping timeout: 244 seconds]
<porfa> there thank you
davispuh has quit [Remote host closed the connection]
KC9YDN has joined #ruby
sevvie has joined #ruby
sevvie has quit [Client Quit]
davasaurous has joined #ruby
aspires has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
dkb20k has joined #ruby
mary5030 has quit [Remote host closed the connection]
Sgeo_ has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
bmurt has joined #ruby
kotk has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
Spami has joined #ruby
mkaesz has joined #ruby
jasooon has joined #ruby
gr33n7007h has joined #ruby
maestrojed has joined #ruby
unclouded has joined #ruby
Channel6 has joined #ruby
st1gma has joined #ruby
st1gma has quit [Max SendQ exceeded]
kotk_ has quit [Ping timeout: 258 seconds]
Sgeo has quit [Ping timeout: 245 seconds]
dkb20k has quit [Ping timeout: 245 seconds]
st1gma has joined #ruby
Sgeo_ has quit [Ping timeout: 245 seconds]
st1gma has quit [Max SendQ exceeded]
x1337807x has joined #ruby
Insanity133 has joined #ruby
st1gma has joined #ruby
st1gma has quit [Changing host]
st1gma has joined #ruby
ki0 has joined #ruby
st1gma has quit [Max SendQ exceeded]
jdj_dk has joined #ruby
Takle has quit [Remote host closed the connection]
moritzs has joined #ruby
mkaesz has quit [Ping timeout: 258 seconds]
jtdowney has joined #ruby
st1gma has joined #ruby
st1gma has quit [Max SendQ exceeded]
jtdowney has quit [Max SendQ exceeded]
<jhass> porfa: http://paste.mrzyx.de/p7ejckskt see how I do not hide important code at the end of a very long line?
jasooon has quit [Ping timeout: 265 seconds]
jtdowney has joined #ruby
st1gma has joined #ruby
st1gma has quit [Max SendQ exceeded]
Rapier-_ has joined #ruby
jtdowney has quit [Max SendQ exceeded]
havenwood has quit [Remote host closed the connection]
st1gma has joined #ruby
Rapier- has quit [Read error: Connection reset by peer]
st1gma has quit [Max SendQ exceeded]
sevenseacat has joined #ruby
jtdowney has joined #ruby
Insanity133 has quit [Ping timeout: 255 seconds]
jtdowney has quit [Max SendQ exceeded]
jtdowney has joined #ruby
moeSeth_ has joined #ruby
jtdowney has quit [Max SendQ exceeded]
jdj_dk has quit [Ping timeout: 265 seconds]
jtdowney has joined #ruby
Rapier-_ has quit [Client Quit]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jtdowney has quit [Max SendQ exceeded]
jenrzzz has joined #ruby
jtdowney has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
Musashi007 has joined #ruby
beef-wellington has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
spastorino has quit [Quit: Connection closed for inactivity]
crocket has joined #ruby
michael4 has quit [Ping timeout: 244 seconds]
jtdowney has quit [Client Quit]
<crocket> I need to write a java web app with database schema versioning. I found https://github.com/thuss/standalone-migrations, and it is based on rails 3.
lw has quit [Quit: s]
<crocket> Is it ok to just use rails 4 active migration?
<crocket> Or is it better to use https://github.com/thuss/standalone-migrations ?
emmesswhy has quit [Quit: This computer has gone to sleep]
vectra has joined #ruby
icole has quit [Ping timeout: 265 seconds]
<rpag> would it not be easier to use a java equivalent?
triple_b has joined #ruby
Soda has joined #ruby
<crocket> rpag, like liquibase and flyway?
<rpag> no idea, i don't do java
emmesswhy has joined #ruby
<rpag> i just thought it'd be easier to use one language
ephemerian has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
mary5030 has joined #ruby
User458764 has quit [Ping timeout: 265 seconds]
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
Pupeno has joined #ruby
weemsledeux has joined #ruby
weemsledeux has joined #ruby
aspires has quit []
<crocket> rpag, I guess
stunder has quit [Quit: Screw you guys I'm going home]
aspires has joined #ruby
crocket has left #ruby ["Leaving"]
workmad3 has quit [Ping timeout: 244 seconds]
<jhass> porfa: or with some helper methods http://paste.mrzyx.de/psrw1tlrg
da_goat_milker has joined #ruby
<da_goat_milker> does anyone know of a step by step guide to writing a smiple ruby program?
nateberkopec has quit [Quit: Leaving...]
echooo has joined #ruby
<jhass> da_goat_milker: wouldn't that lead to always the same program?
nickjj has quit [Ping timeout: 244 seconds]
<jhass> try tryruby.org
<da_goat_milker> ya i've tried that
<da_goat_milker> im thinking like a hangman game
<da_goat_milker> something that uses classes
st1gma has joined #ruby
mary5030 has quit [Remote host closed the connection]
<da_goat_milker> i can't find anything taht will walk you through a programmers through process on making somethign like that
<da_goat_milker> thought* process
tkuchiki has joined #ruby
<jhass> I think that's because that process is something rather personal
dorei has quit []
<jhass> you don't ask for a writers thought process or a composers thought process
Lewix has quit [Quit: Leaving...]
<jhass> programming often involves a lot of creativity too
jtdowney has joined #ruby
jtdowney has quit [Max SendQ exceeded]
danman has quit [Quit: danman]
jtdowney has joined #ruby
lmickh has quit [Remote host closed the connection]
michael4 has joined #ruby
yfeldblum has joined #ruby
skolman_ has quit [Remote host closed the connection]
lw has joined #ruby
machete has quit [Ping timeout: 272 seconds]
<da_goat_milker> i guess what i mean is...the first thing we need to do is setup a class because xyz
adriancb has joined #ruby
<da_goat_milker> more of a thought process
<rpag> yeah, i don't think anything like that exists, most people experiment by themselves and refactor as they go along
jenrzzz has quit [Quit: MTLOV]
machete has joined #ruby
jenrzzz has joined #ruby
eka_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sgeo has joined #ruby
nickjj has joined #ruby
eka has joined #ruby
<jhass> da_goat_milker: you only learn that by experience
<jhass> not by trying to retrofit someones thought process into your brain
<da_goat_milker> okay
<jhass> go, try to solve your ideas your way, if it's small enough post it here, once you thought it through, and ask for hints or other versions
<jhass> you can then ask why someone made that specific decisions and in my experience, since you already thought through it yourself, gain a lot more from that
davasaurous has quit [Remote host closed the connection]
skolman_ has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
baroquebobcat has quit [Quit: baroquebobcat]
da_goat_milker has quit [Quit: Page closed]
eka has quit [Ping timeout: 244 seconds]
rshetty has joined #ruby
<rpag> iterate until you hit perfection ;p
agrinb has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
eka has joined #ruby
hamakn has joined #ruby
danman has joined #ruby
marr has quit [Ping timeout: 265 seconds]
aspires has quit []
aspires has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
rshetty has quit [Ping timeout: 265 seconds]
Joufflu has quit [Quit: Leaving]
boombadaroomba has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago_ has quit [Remote host closed the connection]
it0a has quit [Ping timeout: 258 seconds]
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkb20k has joined #ruby
nickjj has quit [Ping timeout: 244 seconds]
skolman_ has quit [Remote host closed the connection]
x1337807x has joined #ruby
mkaesz has joined #ruby
Hobogrammer has joined #ruby
jasooon has joined #ruby
dkb20k has quit [Ping timeout: 244 seconds]
thagomizer has quit [Quit: Leaving.]
bricker`work has quit [Ping timeout: 244 seconds]
baroquebobcat has joined #ruby
Hobogrammer has quit [Client Quit]
Takle has joined #ruby
twistedpixels is now known as zz_twistedpixels
Hobogrammer has joined #ruby
mkaesz has quit [Ping timeout: 245 seconds]
skolman has joined #ruby
echooo1 has joined #ruby
renderful has joined #ruby
luckyruby has quit [Remote host closed the connection]
luckyruby has joined #ruby
luckyruby has quit [Remote host closed the connection]
luckyruby has joined #ruby
Soda has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 265 seconds]
jasooon has quit [Ping timeout: 245 seconds]
mib_mib has quit [Ping timeout: 250 seconds]
Wolland_ has joined #ruby
echooo has quit [Ping timeout: 272 seconds]
mib_mib has joined #ruby
renderful has quit [Ping timeout: 244 seconds]
skolman has quit [Ping timeout: 264 seconds]
Xaitec has joined #ruby
nickjj has joined #ruby
Xaitec has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 264 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
jtdowney has joined #ruby
zB0hs has joined #ruby
hamakn has quit [Remote host closed the connection]
jtdowney has quit [Max SendQ exceeded]
jtdowney has joined #ruby
siwica has quit [Ping timeout: 256 seconds]
tyll_ has quit [Ping timeout: 265 seconds]
zz_twistedpixels is now known as twistedpixels
tyll has joined #ruby
robustus|Off has quit [Ping timeout: 250 seconds]
<porfa> jhass: sorry i wasn’t here, im looking at http://paste.mrzyx.de/psrw1tlrg
jasooon has joined #ruby
<porfa> that looks so clean! and more easy to read even for me, i’ve seen all theese ruby examples online on that stye of formating but didn’t knew how to use it
robustus has joined #ruby
Vile` has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
Vile` has joined #ruby
Areessell has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
dkb20k has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
pietr0 has quit [Quit: pietr0]
emmesswhy has quit [Quit: Leaving]
hamakn has joined #ruby
Areessell has quit [Ping timeout: 255 seconds]
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has quit []
jtdowney has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has quit []
jtdowney has quit [Max SendQ exceeded]
jtdowney has joined #ruby
jtdowney has quit [Max SendQ exceeded]
jtdowney has joined #ruby
mib_mib has quit [Ping timeout: 250 seconds]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_djbkd has quit [Quit: My people need me...]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
owen2 has quit [Ping timeout: 258 seconds]
skolman has joined #ruby
jimmyhoughjr has joined #ruby
tchebb has quit [Ping timeout: 245 seconds]
cpruitt has quit [Quit: cpruitt]
agrinb has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
michael4 has quit [Ping timeout: 240 seconds]
skolman has quit [Ping timeout: 250 seconds]
zB0hs has joined #ruby
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tier has joined #ruby
rkalfane has joined #ruby
tchebb has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has joined #ruby
davasaurous has joined #ruby
poweratom_ has joined #ruby
JaMz has quit []
eka has joined #ruby
arescorpio has joined #ruby
davasaurous has quit [Remote host closed the connection]
melik has quit [Quit: (null)]
davasaurous has joined #ruby
pen has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
Insanity133 has joined #ruby
Spami has joined #ruby
<porfa> i can’t remove quotation marks from my output :(
<porfa> specs3 = "#{specs2}".gsub(/",/, '\\n•') when i put the first “ the whole syntax changes, how can i pass the “ with a code/charcode ?
arup_r has joined #ruby
<Cat_1_> What do you want to remove?
<porfa> “ <— this
xanderwebs has quit [Quit: Connection closed for inactivity]
<Cat_1_> why don't you just do specs2.gsub?
<Cat_1_> Is specs2 a string?
<porfa> gsub(/160.chr/) ?
fandi has joined #ruby
<Cat_1_> you want to remove the " contained in the variable specs2?
bmurt has joined #ruby
<Cat_1_> like
<porfa> yes
lampd1 has joined #ruby
Insanity133 has quit [Ping timeout: 258 seconds]
<porfa> remove ", and replace with newline and bulletdot
patrick99e99 has quit [Ping timeout: 256 seconds]
<Cat_1_> can you give me a sample of what specs2 would contain?
<porfa> yes
<tmoore> >> 'quote"mark'.gsub(/"/,"\n*")
<eval-in__> tmoore => "quote\n*mark" (https://eval.in/218072)
yfeldblum has quit [Remote host closed the connection]
<Cat_1_> something like specs2 = "This is a \" Test"
ki0 has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 260 seconds]
siwica has joined #ruby
balazs has joined #ruby
joast has quit [Ping timeout: 240 seconds]
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker`work has joined #ruby
nickenchuggets has joined #ruby
<Cat_1_> specs2.gsub(/\"/,'\\n•')
dseitz has joined #ruby
freerobby has joined #ruby
<Cat_1_> although I think tehre's an extra \ in your escaping for
<Cat_1_> it should just be \n(dot)
<tmoore> that would substitute it with a literal \n
<tmoore> you want double quotes
Juanchito has quit [Quit: Connection closed for inactivity]
<nickenchuggets> Is a 256MB VM not enough for Ruby?
<nickenchuggets> I keep getting ‘cannot allocate memory’ errors
<tmoore> depends on what you're doing with it
<nickenchuggets> it happens when I run rails generate controller
Insanity133 has joined #ruby
<sevenseacat> its not enough for rails, no.
<Senjai> nickenchuggets: No, the VM uses ram too
<sevenseacat> its fine for ruby.
<nickenchuggets> hmm
mkaesz has joined #ruby
<Senjai> is 256 mb enough for a non prod rails setup, sure, but the VM is eating away at that too
<nickenchuggets> I can’t see how rails could take up so much memory
<sevenseacat> i can
<sevenseacat> its a big framework, and 256mb isnt a lot
<rpag> rails is a big thing
ericli has joined #ruby
owen2 has joined #ruby
<nickenchuggets> I’m guessing all of rails is loading even with generators
enebo has joined #ruby
dkb20k has quit []
<sevenseacat> yep.
doritostains has joined #ruby
<nickenchuggets> can it be solved with swap files?
<nickenchuggets> hahaha
<Senjai> I don't think you understand how swap works
<Senjai> :P
quikole has joined #ruby
<nickenchuggets> probably not
<Senjai> give the VM more ram
<Senjai> at least a gig or two
dkb20k has joined #ruby
<nickenchuggets> well, I wanted to go with the cheap option
<nickenchuggets> otherwise I would
<sevenseacat> and now you know why its cheap
<rpag> you could most likely fit a sinatra application on 256MB
<sevenseacat> because its severely underpowered
<nickenchuggets> hmm, looking at htop, I’m using 180/245MB
msx has quit [Quit: WeeChat 1.0.1]
<nickenchuggets> it’s a VPS
<nickenchuggets> so I thought… that the RAM would be like, all free for me to use
<nickenchuggets> but the VM itself is using up the RAM that I’m paying for?
<sevenseacat> well yeah
<sevenseacat> the OS uses RAM
mkaesz has quit [Ping timeout: 256 seconds]
elemenopy has joined #ruby
<elemenopy> hmm im stuck on something and new to ruby
<nickenchuggets> oy, totally forgot how to F6 on a mac
<nickenchuggets> in terminal
<rpag> F6?
owen2 has quit [Ping timeout: 265 seconds]
<elemenopy> i need to find a way to parse out the ~b/o between the div elements here https://gist.github.com/anonymous/d362c435e3ab6e569059
<nickenchuggets> yeah, I’m trying to press F6, through tmux, and the terminal
<nickenchuggets> on a mac
<nickenchuggets> I thought it was alt, because my macbook air by default uses function keys for other things
viet_power has quit [Ping timeout: 265 seconds]
<nickenchuggets> like F1 turns down the brightness on a macbook air
<nickenchuggets> so if I wanted F1 instead of turning down the brightness, I’d have to press like alt+F1… or so I thought
<elemenopy> do i need to use regular expressions?
msx has joined #ruby
tier has quit []
<nickenchuggets> ahhh, it’s the fn key
<nickenchuggets> and aha, I have a ruby server running already
poweratom_ has quit [Remote host closed the connection]
emmesswhy has joined #ruby
poweratom_ has joined #ruby
IrishGringo has joined #ruby
<nickenchuggets> except it says spring app
<nickenchuggets> O.o
<bricker`work> elemenopy: depends what you mean by "parse out"
moritzs has quit [Remote host closed the connection]
<jenrzzz> anybody want to speculate how Module#prepend is implemented in MRI?
<elemenopy> so i just need to tie the items index to a buyout or ~b/o somehow in a hash table
<bricker`work> elemenopy: use Nokogiri, regex is not good at HTML parsing
phutchins has quit [Ping timeout: 245 seconds]
<elemenopy> im using nokogiri to get the text to that point right now. any ideas on how to get the middle text part tho? i can get all the divs already in a hash
<bricker`work> elemenopy: text is represented in a nokogiri NodeSet as a special type of node
msmith_ has joined #ruby
<bricker`work> elemenopy: you'd just have to iterate and check something like, if node.type == "text" && node.content.match(/~b\/o/) or whatever
msmith_ has quit [Read error: Connection reset by peer]
jaequery has joined #ruby
<elemenopy> gotcha, thx!
msmith_ has joined #ruby
jaequery has quit [Max SendQ exceeded]
mary5030 has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
it0a has joined #ruby
Musashi007_ has joined #ruby
Musashi007 has quit [Read error: Connection reset by peer]
Musashi007_ is now known as Musashi007
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
Soda has joined #ruby
gsd has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
moeSeth_ has quit [Quit: Connection closed for inactivity]
twistedpixels is now known as zz_twistedpixels
<nickenchuggets> heheh, got my memory down to 43MB
<rpag> how?
jaequery has quit [Max SendQ exceeded]
zz_twistedpixels is now known as twistedpixels
<nickenchuggets> hooray, it works now
<nickenchuggets> I had an old mosh session that was lingering
siwica has quit [Ping timeout: 264 seconds]
jaequery has joined #ruby
<nickenchuggets> and I had an instance of the rails server running
<sevenseacat> its a temporary fix.
jaequery has quit [Max SendQ exceeded]
Cat_1_ has quit []
robbyoconnor has joined #ruby
msx has quit [Quit: WeeChat 1.0.1]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
<nickenchuggets> hmm, I see I’m back up to 140MB
jtdowney has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
troyready has quit [Ping timeout: 250 seconds]
jtdowney has quit [Max SendQ exceeded]
jaequery has joined #ruby
tyll has quit [Ping timeout: 272 seconds]
<sevenseacat> a) don't development on a crappy remote vps and b) get a better vps to serve your apps on.
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
tyll has joined #ruby
D9 has joined #ruby
jtdowney has joined #ruby
jaequery has joined #ruby
jtdowney has quit [Max SendQ exceeded]
jaequery has quit [Max SendQ exceeded]
<Senjai> nickenchuggets: Install linux
<Senjai> :P
<Senjai> fixed forver
<nickenchuggets> I am on Linux
<nickenchuggets> >.>
<nickenchuggets> I’m on a 256MB VPS
jaequery has joined #ruby
<nickenchuggets> with no swap file
jtdowney has joined #ruby
<sevenseacat> -_-
mib_mib has joined #ruby
<nickenchuggets> :D
jenrzzz has quit [Ping timeout: 245 seconds]
<lampd1> Senjai: unless you ever want to use photoshop
<lampd1> ;)
<sevenseacat> have fun with that
<Senjai> nickenchuggets: On your computer?
jaequery has quit [Max SendQ exceeded]
<nickenchuggets> VPS
jtdowney has quit [Max SendQ exceeded]
<Senjai> lampd1: Real men get other men to do photoshop things. *sticks to coding*
<Senjai> :P
<sevenseacat> you've been told what to do
jaequery has joined #ruby
twistedpixels is now known as zz_twistedpixels
jaequery has quit [Max SendQ exceeded]
pen has joined #ruby
<lampd1> Senjai: or they use ImageMagick programmatically ;)
jaequery has joined #ruby
agrinb has joined #ruby
jtdowney has joined #ruby
<Senjai> lampd1: #likeaboss
<jayne> there is gimp, but whether it's an adequate substitute depends a lot on what you use photoshop for (if you do)
<Senjai> nickenchuggets: Dont use a VPS
<Senjai> :P
jaequery has quit [Max SendQ exceeded]
<nickenchuggets> too late
<nickenchuggets> :)
jtdowney has quit [Max SendQ exceeded]
enebo has quit [Quit: enebo]
jaequery has joined #ruby
<Senjai> sevenseacat: You have oper here?
<Senjai> banisterfiend: Around?
<sevenseacat> nope
<Senjai> quikole: is a porn spambot
jaequery has quit [Max SendQ exceeded]
<Senjai> Reported in #freenode but yea
<sevenseacat> awesome
poweratom_ has quit [Quit: poweratom_]
mozzarella has quit [Quit: WeeChat 1.1-dev]
mib_mib has quit [Ping timeout: 250 seconds]
jaequery has joined #ruby
quikole has quit [K-Lined]
jaequery has quit [Max SendQ exceeded]
aspires has joined #ruby
jaequery has joined #ruby
__MysT has quit [Ping timeout: 256 seconds]
agrinb has quit [Ping timeout: 264 seconds]
St_Marx has quit [Ping timeout: 250 seconds]
<nickenchuggets> muahahahaha
<Senjai> Well, that was expediant
<nickenchuggets> success
<Senjai> nickenchuggets: At what?
kaspergrubbe has quit [Remote host closed the connection]
<nickenchuggets> creating a swap file
mozzarella has joined #ruby
<nickenchuggets> for a 256MB VPS
mozzarella is now known as Guest52396
jtdowney has joined #ruby
<jimmyhoughjr> is there a jetbrains irc channel on freenode?
jtdowney has quit [Max SendQ exceeded]
Guest52396 has quit [Client Quit]
<nickenchuggets> a 1GB swap file :)
jhonnyboy has joined #ruby
mozzarel1 has joined #ruby
duncannz has joined #ruby
coderhs has quit [Ping timeout: 250 seconds]
<sevenseacat> and the point of that is....?
jtdowney has joined #ruby
carif has joined #ruby
jaequery has quit [Ping timeout: 256 seconds]
melik has joined #ruby
yetanotherdave has quit [Quit: Lost terminal]
tratrala has joined #ruby
<Senjai> jimmyhoughjr: Is there? Idk, type /join #jetbrains and find out
<Senjai> nickenchuggets: Just install linux on your home pc
wallerdev has quit [Quit: wallerdev]
<jimmyhoughjr> i found one that it supposedly for their IDEs
<jimmyhoughjr> im working on an app that needs to script them, but they are java apps and not cocoa apps
a13x212 has left #ruby [#ruby]
<nickenchuggets> eh, don’t really want to
krz has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joast has joined #ruby
Musashi007 has quit [Quit: Musashi007]
magic_ has joined #ruby
St_Marx has joined #ruby
ClarusCogitatio has quit [Ping timeout: 258 seconds]
mib_mib has joined #ruby
tratrala has quit [Ping timeout: 250 seconds]
beef-wellington has quit [Ping timeout: 244 seconds]
tratrala has joined #ruby
ClarusCogitatio has joined #ruby
bricker`work has quit [Quit: leaving]
Takle has joined #ruby
coderhs has joined #ruby
luriv has quit [Ping timeout: 264 seconds]
boombadaroomba has joined #ruby
snovity has quit [Ping timeout: 258 seconds]
poweratom_ has joined #ruby
Takle has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
sambao21 has joined #ruby
boombadaroomba has quit [Ping timeout: 260 seconds]
ki0 has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
mary5030 has quit [Remote host closed the connection]
agrinb has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
mkaesz has joined #ruby
<elemenopy> i guess im not getting this... so how can i create a new hash and then later on add items into it?
ClarusCogitatio has quit [Ping timeout: 250 seconds]
ki0 has quit [Ping timeout: 265 seconds]
<godd2> elemenopy similar to how you make an array and add things later
aewffwea has joined #ruby
<godd2> except instead of putting a number in the brackets, you put a symbol (or other object, but just stick to symbols for now)
<godd2> >> my_hash = {}; my_hash[:blah] = "hello"; my_hash
<eval-in__> godd2 => {:blah=>"hello"} (https://eval.in/218123)
ClarusCogitatio has joined #ruby
<godd2> imagine a file cabinet where the folders have names on them. in that example hash, a folder was named :blah and had contents that were the string "hello"
<elemenopy> so if i needed two keys perrow it would be like? my_hash = {}; my_hash[:index,:buyout] = "0,32ex"
wallerdev has joined #ruby
<godd2> no, you don't reference more than one key at a time like that
<elemenopy> should i be using an array then?
<godd2> probably
<elemenopy> okey dokey thx!
<godd2> arrays are useful when you want things in order
<godd2> hashes are useful when you want to name things.
<godd2> (among other tradeoffs)
jenrzzz has joined #ruby
tratrala has quit [K-Lined]
mkaesz has quit [Ping timeout: 272 seconds]
SpikeMaster has joined #ruby
wallerdev has quit [Client Quit]
xenomorph is now known as {xenomorph}
yfeldblum has joined #ruby
emmesswhy has quit [Quit: Leaving]
linojon has quit [Quit: linojon]
wallerdev has joined #ruby
{xenomorph} is now known as xenomorph
sambao21 has quit [Ping timeout: 260 seconds]
ixti has quit [Ping timeout: 260 seconds]
aewffwea has quit []
aewffwea has joined #ruby
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
koderok has joined #ruby
lw has quit [Quit: s]
aspires has quit []
mocchi has joined #ruby
SpikeMaster has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
owen2 has joined #ruby
arup_r1 has joined #ruby
aspires has joined #ruby
MrDoctor has quit [Remote host closed the connection]
koderok has quit [Client Quit]
Areessell has joined #ruby
MrDoctor has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drexxler has joined #ruby
drexxler has quit [Client Quit]
ClarusCogitatio has quit [Ping timeout: 265 seconds]
marcdel has joined #ruby
mediachicken has joined #ruby
<elemenopy> this is odd
caveat- has quit [Ping timeout: 260 seconds]
<mediachicken> Hey, I'm new to ruby and was wondering if anybody would be willing to take a glance at the very short source of my project and maybe give me some pointers/criticism? https://github.com/mediachicken/420
<elemenopy> i would expect a two column array of length = 16 but i get this https://gist.github.com/anonymous/d0dfb6248a6e089a1629
owen2 has quit [Ping timeout: 264 seconds]
ClarusCogitatio has joined #ruby
Areessell has quit [Ping timeout: 256 seconds]
Joufflu has joined #ruby
baroquebobcat has joined #ruby
oo_ has quit [Remote host closed the connection]
marcdel has quit [Ping timeout: 245 seconds]
bluOxigen has joined #ruby
lw has joined #ruby
<godd2> mediachicken it is customary to wrap all of the functionality in your gem inside some namespace
radic has quit [Disconnected by services]
<mediachicken> godd2: Are you referring to the weirdness between 420 and FourTwenty?
radic_ has joined #ruby
bmurt has quit []
<godd2> elemenopy when you do Array#push and pass more than one argument, it just pushes each argument as if you pushed separately
<godd2> mediachicken yes, specifically line 20 in lib/420.rb
caveat- has joined #ruby
<elemenopy> so based on what we're looking for where would you recommend i look into? we are trying to create an array of two columns. then later in the code we simply want to add rows to aforementioned array
davedev24_ has quit [Remote host closed the connection]
Insanity144 has joined #ruby
mib_mib has quit [Ping timeout: 250 seconds]
<godd2> elemenopy what you may want to try is pushing arrays into your buyout array.
ClarusCogitatio has quit [Ping timeout: 250 seconds]
<mediachicken> I was running into issues using a pure numerical name, this was of course after I wanted to call it simply 420, so I was forced to write out an alpha string. Is there no way around this?
caveat- has quit [Read error: Connection reset by peer]
ClarusCogitatio has joined #ruby
<mediachicken> godd2: Gotcha, I'm not sure why I decided it should have been left outside of a class (or a module?)
Soda has quit [Remote host closed the connection]
<elemenopy> iok let me check that out
<godd2> >> some_array = []; some_array.push([1,2]); some_array.push([3,2]); some_array
<eval-in__> godd2 => [[1, 2], [3, 2]] (https://eval.in/218125)
caveat- has joined #ruby
rshetty has joined #ruby
<elemenopy> ahh yes that worked
<elemenopy> oh i did it differentlyy, yours looks nicer
KC9YDN has quit [Remote host closed the connection]
Insanity133 has quit [Ping timeout: 244 seconds]
<godd2> mediachicken yea I would generally expect your timeUntil method to be inside the FourTwenty module. then, from the oustide, you'd call FourTwenty.timeUntil(some_time)
lw has quit [Read error: Connection reset by peer]
<godd2> mediachicken my other criticism is of your choice of method name there. It seems like timeUntil is going to tell you how long until the time that you pass it, NOT the time between the time you pass and 04:20
lw_ has joined #ruby
<godd2> but that's a naming issue
<mediachicken> godd2: What would you suggest for naming?
zachrab has joined #ruby
nahtnam has joined #ruby
ClarusCogitatio has quit [Ping timeout: 255 seconds]
marcdel has joined #ruby
wallerdev has quit [Quit: wallerdev]
<mediachicken> I seem to struggle with naming quite often. Is there some sort of cheat-sheet for naming, or recommended reading?
<godd2> timeUntil420 perhaps?
braincrash has quit [Quit: bye bye]
<nahtnam> Anyone know of a tutorial that shows how to setup testing when creating a gem?
<mediachicken> godd2: Ah, I gotcha. That makes sense
<godd2> mediachicken Chapter 2 of Clean Code by Bob Martin
<godd2> the chapter is titled Meaningful Names
<godd2> nahtnam which testing framework?
<mediachicken> godd2: Thank's a lot! I'll check it out
<nahtnam> godd2: It doesnt really matter to me. I just need some place to get started at. I can learn the rest
benzrf is now known as benzrf|offline
<jhonnyboy> hey guys, I'm trying to figure out the best way to interact with spreadsheets. I want to be able to read their content and replace the text in certain cells. Any advice? I heard breaking it down to XML is an option
zwer_x has joined #ruby
<jhonnyboy> spreadsheets = xlsx, slx
<jhonnyboy> xls*
mediachicken has quit []
poweratom_ has quit [Quit: poweratom_]
braincrash has joined #ruby
zwer has quit [Ping timeout: 250 seconds]
<nahtnam> godd2: Thanks. Ill check it out
<godd2> jhonnyboy if I'm not mistaken, excel sheets can be converted to cvs files? I guess formulas are an issue there though, but I haven't looked into it
benzrf|offline is now known as benzrf
<jhonnyboy> yeah, trying to keep a template together and just modify certain parts of it
<godd2> nahtnam also, if you're in for the long haul, check out The RSpec Book by the Pragmatic Programmers
Vivekananda has joined #ruby
ClarusCogitatio has joined #ruby
<nahtnam> godd2: Will do. Im really just making one gem to make life a little easier. I dont expect to make more
oo_ has joined #ruby
Musashi007 has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
<godd2> well he's not here anymore, but here's a guideline for naming things in programming: https://gist.github.com/nicklink483/52d9fbcec1cf361f6340
davedev24_ has joined #ruby
oleo__ has joined #ruby
jimms has joined #ruby
<Toba> don't pun??????
jimms has quit [Client Quit]
<godd2> lol don't forget the last rule
<Toba> I will forget exactly what I like!
oleo is now known as Guest1825
hmsimha has quit [Ping timeout: 255 seconds]
adriancb has quit [Remote host closed the connection]
Joufflu has quit [Read error: Connection reset by peer]
Guest1825 has quit [Ping timeout: 244 seconds]
mattmcclure has quit [Quit: Connection closed for inactivity]
Joufflu has joined #ruby
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
echooo has joined #ruby
echooo1 has quit [Ping timeout: 255 seconds]
danman has quit [Quit: danman]
nahtnam has quit [Quit: Page closed]
aspires has quit []
aspires has joined #ruby
arup_r1 has quit [Quit: Leaving.]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
danman has joined #ruby
rshetty has quit [Remote host closed the connection]
atmosx has quit [Ping timeout: 250 seconds]
magic has joined #ruby
Aldo has joined #ruby
chipotle has joined #ruby
Aldo has left #ruby [#ruby]
atmosx has joined #ruby
kyb3r_ has joined #ruby
viet_power has joined #ruby
Takle has joined #ruby
aspires has quit []
danman_ has joined #ruby
aspires has joined #ruby
<elemenopy> weird error
<zenspider> don't pun. please.
<zenspider> I work with tenderlove. there are too many puns in this world because of him.
<zenspider> nothing wierd about that error
mkaesz has joined #ruby
<zenspider> remove line 16 & 18 to make it work
D9 has quit [Quit: Leaving]
<zenspider> or pass buyouts into the method
<zenspider> and don't camel case the method
aspires has quit [Client Quit]
jhonnyboy has left #ruby [#ruby]
<zenspider> and don't use Array.new
<elemenopy> i need to be able to retrieve the second column of that array by its index
danman has quit [Ping timeout: 264 seconds]
danman_ is now known as danman
benzrf is now known as benzrf|offline
<zenspider> and don't put block args on the next line
<zenspider> I understand what the code is trying to do. I'm telling you what's wrong with it.
<zenspider> don't use return when you don't need it
<zenspider> don't leave the closing brace indented
echooo1 has joined #ruby
<zenspider> (line 8, but oddly not line 15)
Takle has quit [Ping timeout: 256 seconds]
echooo has quit [Ping timeout: 256 seconds]
<elemenopy> im new :) is there a better way to access say , the second index of that array's second column?
<zenspider> buyouts is a local variable. GetBuyoutByIndex is a method. These things don't cross.
<zenspider> ary[1][1], assuming I'm parsing your english correctly
echooo has joined #ruby
<zenspider> given ary = [[...],[x,y,...],...]
rshetty has joined #ruby
<zenspider> you'll get y
<elemenopy> okey, lemme try that
maestrojed has joined #ruby
mkaesz has quit [Ping timeout: 258 seconds]
ericli has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
aspires has joined #ruby
coderhs has joined #ruby
echooo1 has quit [Ping timeout: 264 seconds]
MattB2 has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
ericli has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
coderhs has quit [Ping timeout: 245 seconds]
sinkensabe has joined #ruby
michael_mbp has quit [Excess Flood]
carif has quit [Remote host closed the connection]
davasaurous has quit [Remote host closed the connection]
davasaurous has joined #ruby
michael_mbp has joined #ruby
michael_mbp has quit [Excess Flood]
x1337807x has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
ptrrr has joined #ruby
Darryl_ has joined #ruby
Morkel has joined #ruby
mikeg has quit [Ping timeout: 250 seconds]
<godd2> I do get the hypocricy of telling people not to pun but then helping them with ruby gems
michael_mbp has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rockdon_ has joined #ruby
aspires has quit []
ndrei has joined #ruby
msx has joined #ruby
backsorry has joined #ruby
gsd has joined #ruby
pietr0 has joined #ruby
<tmoore> godd2: I once worked with someone who named variables after Lord of the Rings characters
sepp2k has joined #ruby
rshetty has quit [Remote host closed the connection]
coderhs has joined #ruby
rshetty has joined #ruby
nahtnam has joined #ruby
zz_twistedpixels is now known as twistedpixels
yfeldblum has quit [Ping timeout: 245 seconds]
<rpag> lol
<nahtnam> Hey! I am working on creating a new gem, but im stuck. This is the main file I have in my lib folder. https://gist.github.com/nahtnam/7e1cfbced95e42a0d623 When I try doing Straight.new though https://gist.github.com/nahtnam/c5db7a368904ef18fd92 I get an error saying `undefined method `new' for Straight:Module` I can provide more info if you need. Thanks!
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
keen____________ has joined #ruby
pietr0 has quit [Quit: pietr0]
keen___________ has quit [Ping timeout: 244 seconds]
chipotle has quit [Max SendQ exceeded]
agrinb has quit [Ping timeout: 265 seconds]
ClarusCogitatio has quit [Ping timeout: 255 seconds]
<nahtnam> Anyone?
<Radar> No.
<Radar> nahtnam: Please learn the difference between a module and a class.
omosoj has joined #ruby
ClarusCogitatio has joined #ruby
chipotle has joined #ruby
<nahtnam> Radar: I also tried this: https://gist.github.com/nahtnam/7e1cfbced95e42a0d623 which is what Stripe does with their gem but that didnt work either.
<Radar> [16:16:39] <Radar>nahtnam: Please learn the difference between a module and a class.
<nahtnam> Radar: Ok, thanks
<sevenseacat> trying to initialize a module o.O
danman has quit [Quit: danman]
msmith_ has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
danman has joined #ruby
jrvlima has joined #ruby
arrubin has quit []
Eiam_ has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
sambao21 has joined #ruby
Channel6 has quit [Quit: Leaving]
ClarusCogitatio has quit [Ping timeout: 258 seconds]
jrvlima has quit [Max SendQ exceeded]
<nahtnam> So how would I make it so that I can do Straight.new instead of something like Straight::Client.new?
chipotle has quit [Max SendQ exceeded]
rshetty has quit [Remote host closed the connection]
ClarusCogitatio has joined #ruby
sambao21 has quit [Ping timeout: 258 seconds]
romistrub has quit [Ping timeout: 246 seconds]
chipotle has joined #ruby
davasaurous has quit [Remote host closed the connection]
balazs has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: zzz]
viet_power has quit [Ping timeout: 272 seconds]
<Radar> [16:19:13] <Radar>[16:16:39] <Radar> nahtnam: Please learn the difference between a module and a class.
<Radar> nahtnam: Seriously.
<Radar> nahtnam: You're using a module and treating it like a class. What on earth do you expect to happen?
D9 has joined #ruby
rpag has left #ruby [#ruby]
rpag has joined #ruby
ptrrr has quit [Quit: ptrrr]
iwishiwerearobot has joined #ruby
tlarevo has joined #ruby
Paramore has quit [Ping timeout: 244 seconds]
rockdon_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Musashi007 has quit [Quit: Musashi007]
danman has quit [Quit: danman]
Areessell has joined #ruby
oo_ has quit [Remote host closed the connection]
echooo1 has joined #ruby
arup_r has joined #ruby
echooo has quit [Ping timeout: 265 seconds]
iwishiwerearobot has quit [Ping timeout: 260 seconds]
chipotle has quit [Ping timeout: 265 seconds]
rshetty has joined #ruby
Eiam has quit [Disconnected by services]
Eiam_ is now known as Eiam
sigurding has joined #ruby
mkaesz has joined #ruby
arup_r has quit [Remote host closed the connection]
<nahtnam> Radar: When I change it to class, I get an error saying `Straight is not a class`
<nahtnam> On line 3
<Radar> nahtnam: Show us the new code plz.
<nahtnam> Radar: Updated the gist: https://gist.github.com/nahtnam/7e1cfbced95e42a0d623
Insanity133 has joined #ruby
<Radar> nahtnam: So straight is a module still
<Radar> nahtnam: Probably defined in straight/version
<Radar> Define that module as a class too
<Radar> and anywhere else in your app
<Radar> s/app/gem
<nahtnam> Radar: Good catch. Thanks.
Areessell has quit [Ping timeout: 258 seconds]
<nahtnam> Works now! Thanks a lot!
sinequanon has joined #ruby
zachrab has quit []
viet_power has joined #ruby
govg has joined #ruby
Insanity144 has quit [Ping timeout: 244 seconds]
parabolize has joined #ruby
emmesswhy has joined #ruby
mkaesz has quit [Ping timeout: 245 seconds]
ClarusCogitatio has quit [Ping timeout: 265 seconds]
ClarusCogitatio has joined #ruby
davasaurous has joined #ruby
arup_r has joined #ruby
jarto has joined #ruby
jenrzzz has joined #ruby
cschneid has quit [Ping timeout: 272 seconds]
jarto has quit [Client Quit]
Y_Ichiro has quit [Read error: Connection reset by peer]
Eiam has quit [Read error: Connection reset by peer]
Y_Ichiro has joined #ruby
oo_ has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Y_Ichiro has joined #ruby
Y_Ichiro has quit [Changing host]
Eiam has joined #ruby
byprdct_ has quit []
cschneid has joined #ruby
arup_r_ has joined #ruby
arup_r_ has quit [Client Quit]
arescorpio has quit [Excess Flood]
arup_r_ has joined #ruby
arup_r has quit [Ping timeout: 272 seconds]
arup_r_ has quit [Client Quit]
arup_r has joined #ruby
sigurding has quit [Read error: Connection reset by peer]
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
sigurding has joined #ruby
chipotle has joined #ruby
coderhs has quit [Ping timeout: 265 seconds]
oleo__ has quit [Quit: Verlassend]
agrinb has joined #ruby
pen has quit [Remote host closed the connection]
davasaurous has quit [Remote host closed the connection]
pen has joined #ruby
Lucky__ has joined #ruby
russt has quit [Quit: russt]
chipotle has quit [Ping timeout: 245 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agrinb has quit [Ping timeout: 245 seconds]
noop has joined #ruby
rockdon_ has joined #ruby
pen has quit [Ping timeout: 255 seconds]
sigurding has quit [Quit: sigurding]
rockdon_ has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
davedev24_ has quit []
levity_island has joined #ruby
st1gma has quit [Quit: Leaving]
st1gma has joined #ruby
pizzahead has joined #ruby
<pizzahead> I'm trying to quickly get yesterday date at 00:00:00 and eventually converting to_i for epoch by doing start_time = Time.new((Time.now - 86400).strftime('%Y,%m,%d'))
<pizzahead> unfortunately the date is fed with quotes which gives back 2014-01-01
poweratom_ has joined #ruby
<pizzahead> what's the ideal way to do what I'm trying to do?
lxsameer has joined #ruby
lxsameer has joined #ruby
it0a has quit [Ping timeout: 255 seconds]
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
t_mmyv has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<st1gma> start_time = Time.new - 86400
<st1gma> start_epoc = start_time.to_i
<st1gma> Not tested it but I believe it should do what you want
pietr0 has joined #ruby
aganov has joined #ruby
Morkel_ has joined #ruby
t_mmyv has joined #ruby
t_mmyv has quit [Client Quit]
Morkel has quit [Ping timeout: 265 seconds]
Morkel_ is now known as Morkel
emmesswhy has quit [Quit: This computer has gone to sleep]
coderhs has joined #ruby
patrick99e99 has joined #ruby
oo_ has quit [Remote host closed the connection]
Flyingdog has joined #ruby
<pizzahead> st1gma: so the issue with that is I'm not sure how to round down to midnight
<pizzahead> st1gma: that's why I was trying to pass just the year,month,date to time.new because it will set time to 00:00:00
sepp2k has quit [Read error: Connection reset by peer]
<shevy> pizzahead!
<shevy> you make me hungry
<pizzahead> shevy!
<pizzahead> I get that a... bit
<rockdon> good god, i'm trying to write python to use frida for some things
<shevy> better than php
D9 has quit [Ping timeout: 260 seconds]
oo_ has joined #ruby
<rockdon> something as simple as running Array.map{|x| puts if x =~ /this/} makes head explode
michaeldeol has joined #ruby
<rockdon> its like 10 lines
<rockdon> haha
<shevy> hmm
<st1gma> python way or the hard way
<st1gma> high way*
<shevy> but python has regexes as well
<st1gma> good god.. I think I need to sleep
charliesome has joined #ruby
<st1gma> So the one thing that drives me mad about Python is the no "end"
<st1gma> Everything else I'm ok with
tagrudev has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
<st1gma> pizzahead, your stuff seems to work just fine for me.
<st1gma> 2.1.3 :010 > Time.new((Time.now - 86400).strftime('%Y,%m,%d'))
<st1gma> 2.1.3 :011 > Time.new((Time.now - 86400).strftime('%Y,%m,%d')).to_i
<st1gma> => 2014-01-01 00:00:00 -0500
<st1gma> => 1388552400
<pizzahead> yea but 2014-01-01 isn't the right day and it's because of the 's aroudn 2014,11,06
<pizzahead> I think it treats it like just 2014 and decides to go with 2014-01-01
<shevy> hmm rand(256) returns 0 up to 255, right ?
<pizzahead> I added .split(",")) and it works
CustosLimen has joined #ruby
supermanBlack has joined #ruby
supermanBlack is now known as shortCircuit__
viet_power has quit [Ping timeout: 265 seconds]
neoxquick has quit [Read error: Connection reset by peer]
Deele has joined #ruby
mikepack has quit [Remote host closed the connection]
pizzahead has quit [Quit: EPIC5-1.1.6[1693] - amnesiac : I'm outta here...]
ClarusCogitatio has quit [Ping timeout: 265 seconds]
mkaesz has joined #ruby
charliesome has quit [Quit: zzz]
ClarusCogitatio has joined #ruby
maestrojed has joined #ruby
aewffwea has quit [Ping timeout: 256 seconds]
levity_island has quit [Quit: levity_island]
mkaesz has quit [Ping timeout: 245 seconds]
terlar has joined #ruby
Joufflu has quit [Quit: Leaving]
techsethi has joined #ruby
elemenopy has quit [Quit: Leaving...]
coderhs has quit [Ping timeout: 250 seconds]
anarang has joined #ruby
agrinb has joined #ruby
speaking1ode has joined #ruby
speakingcode has quit [Ping timeout: 250 seconds]
ndrei has quit [Ping timeout: 265 seconds]
User458764 has joined #ruby
ValicekB has quit []
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
arup_r has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 265 seconds]
techsethi has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
viet_power has joined #ruby
techsethi has joined #ruby
techsethi has quit [Client Quit]
poweratom_ has quit [Quit: poweratom_]
coderhs has joined #ruby
arup_r has joined #ruby
__MysT has joined #ruby
qba73 has joined #ruby
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
sepp2k has joined #ruby
Brothmars has joined #ruby
poweratom_ has joined #ruby
advorak has joined #ruby
pen has joined #ruby
ta has quit [Remote host closed the connection]
bal has joined #ruby
mengu has joined #ruby
bigkevmcd has joined #ruby
ValicekB has joined #ruby
nrsk has joined #ruby
bal has quit [Quit: bal]
mkaesz has joined #ruby
adriancb has joined #ruby
bal has joined #ruby
mkaesz has quit [Remote host closed the connection]
ksinkar has joined #ruby
ctp has joined #ruby
adriancb has quit [Ping timeout: 250 seconds]
levity_island has joined #ruby
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
mikecmpbll has quit [Quit: ciao.]
ephemerian has joined #ruby
nfk has joined #ruby
apeiros has quit [Remote host closed the connection]
Areessell has joined #ruby
apeiros has joined #ruby
coderhs has quit [Ping timeout: 260 seconds]
AlexRussia has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<parabolize> rockdon: print('\n'.join(x for x in blah if 'this' in x))
<parabolize> best I could think of
Insanity144 has joined #ruby
<rockdon> parabolize: whoa, thanks!
yfeldblum has joined #ruby
boombadaroomba has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
Areessell has quit [Ping timeout: 245 seconds]
apeiros has quit [Ping timeout: 264 seconds]
Insanity133 has quit [Ping timeout: 272 seconds]
josephndenton has quit [Ping timeout: 260 seconds]
boombadaroomba has quit [Ping timeout: 258 seconds]
andrewlio has joined #ruby
nfk has quit [Quit: yawn]
timonv_ has joined #ruby
fabrice31 has joined #ruby
coderhs has joined #ruby
mikepack has joined #ruby
fandi has quit [Quit: Leaving]
viet_power has quit [Ping timeout: 255 seconds]
rshetty has quit [Remote host closed the connection]
hsps_ has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
godd2 has quit [Ping timeout: 256 seconds]
olivier_bK has joined #ruby
mkaesz has joined #ruby
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
mikepack has quit [Ping timeout: 250 seconds]
ValicekB has quit []
govg has quit [Quit: leaving]
agrinb has joined #ruby
duncannz has quit [Remote host closed the connection]
andikr has joined #ruby
doev has joined #ruby
hsps_ has quit [Quit: Leaving]
rbrs has joined #ruby
sinkensabe has quit [Remote host closed the connection]
duncannz has joined #ruby
arup_r has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
agrinb has quit [Ping timeout: 265 seconds]
omosoj has quit [Quit: leaving]
danijoo has joined #ruby
Xeago has joined #ruby
Eiam has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
ClarusCogitatio has quit [Ping timeout: 272 seconds]
sinkensabe has joined #ruby
Xeago_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
ValicekB has joined #ruby
sinkensabe has joined #ruby
ClarusCogitatio has joined #ruby
User458764 has quit [Ping timeout: 272 seconds]
Xeago has quit [Ping timeout: 260 seconds]
kwd has joined #ruby
timonv_ has quit [Remote host closed the connection]
klaut has joined #ruby
olivier_bK has quit [Quit: Quitte]
olivier_bK has joined #ruby
rippa has joined #ruby
xenomorph has quit [Ping timeout: 260 seconds]
<DefV> r/5
kaspergrubbe has joined #ruby
moritzs has joined #ruby
timonv_ has joined #ruby
agrinb has joined #ruby
timonv_ has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
govg has joined #ruby
krz has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
nrsk has quit [Ping timeout: 256 seconds]
TomyWork has joined #ruby
diegoviola has joined #ruby
poweratom_ has quit [Quit: Be back later ...]
Musashi007 has joined #ruby
timonv_ has joined #ruby
lolmaus has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
emmesswhy has joined #ruby
emmesswhy has quit [Client Quit]
ferr has joined #ruby
mityaz has joined #ruby
<diegoviola> hola
decoponio has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atraylen has joined #ruby
melik has quit [Quit: (null)]
Brothmars has quit [Quit: Be back later ...]
advorak has quit [Remote host closed the connection]
_d has joined #ruby
rshetty has joined #ruby
spider-mario has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
govg has quit [Quit: leaving]
timonv_ has quit [Remote host closed the connection]
BTRE has quit [Ping timeout: 244 seconds]
Meeh has quit [Ping timeout: 240 seconds]
patrick99e99 has joined #ruby
josephndenton has joined #ruby
ClarusCogitatio has quit [Ping timeout: 244 seconds]
tesuji has joined #ruby
arup_r has joined #ruby
ta has joined #ruby
kaspergrubbe has quit [Ping timeout: 255 seconds]
atomi has quit [Ping timeout: 265 seconds]
viet_power has joined #ruby
ClarusCogitatio has joined #ruby
nrsk has joined #ruby
Meeh has joined #ruby
livathinos has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
josephndenton has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
poulet_a has joined #ruby
t_p has joined #ruby
Musashi007 has quit [Quit: Musashi007]
ksinkar has quit [Quit: Konversation terminated!]
krz has joined #ruby
shredding has joined #ruby
ClarusCogitatio has quit [Ping timeout: 256 seconds]
_d has left #ruby [#ruby]
ClarusCogitatio has joined #ruby
BTRE has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
sinequanon has quit []
chishiki has quit [Ping timeout: 256 seconds]
iwishiwerearobot has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
ctp has joined #ruby
MrDoctor has quit [Remote host closed the connection]
Musashi007 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
dumdedum has joined #ruby
tvw has joined #ruby
__MysT has quit [Quit: Leaving]
spider-mario has quit [Remote host closed the connection]
danjordan has joined #ruby
luckyruby has quit [Quit: Leaving...]
timonv_ has joined #ruby
Wolland_ has quit [Remote host closed the connection]
Wolland has joined #ruby
<rpag> hey diegoviola
Spami has joined #ruby
Tab__ has joined #ruby
chishiki has joined #ruby
bigkevmcd has quit [Ping timeout: 264 seconds]
rshetty has quit [Ping timeout: 255 seconds]
Wolland has quit [Ping timeout: 255 seconds]
marcdel has quit []
ephemerian is now known as ijdickinson
alex88 has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
elaptics`away is now known as elaptics
ozialien has quit [Ping timeout: 240 seconds]
chthon has joined #ruby
Musashi007 has quit [Quit: Musashi007]
ozialien has joined #ruby
hamakn has joined #ruby
agrinb has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
Tab__ has quit [Quit: This computer has gone to sleep]
hamakn has joined #ruby
dumdedum has quit [Quit: foo]
linduxed has quit [Ping timeout: 265 seconds]
sk87 has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
_lexjm has quit [Ping timeout: 264 seconds]
baash05 has joined #ruby
kaspergrubbe has joined #ruby
baash05 has left #ruby [#ruby]
WhereIsMySpoon has quit [Disconnected by services]
agrinb has quit [Ping timeout: 244 seconds]
naftilos76 has joined #ruby
WhereIsMySpoon_ has joined #ruby
ijdickinson has quit [Quit: Leaving.]
Hightower666 has joined #ruby
jrvlima has joined #ruby
yfeldblum has joined #ruby
Musashi007 has joined #ruby
ijdickinson has joined #ruby
vyorkin has joined #ruby
ClarusCogitatio has quit [Ping timeout: 260 seconds]
tokik has quit [Ping timeout: 255 seconds]
arup_r has quit [Remote host closed the connection]
Areessell has joined #ruby
arup_r has joined #ruby
bigkevmcd has joined #ruby
ClarusCogitatio has joined #ruby
monsieurp has quit [Quit: leaving]
sevenseacat has quit [Remote host closed the connection]
monsieurp has joined #ruby
monsieurp has quit [Changing host]
monsieurp has joined #ruby
emmesswhy has joined #ruby
ki0 has joined #ruby
Areessell has quit [Ping timeout: 264 seconds]
rshetty has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
Tab__ has joined #ruby
levity_island has quit [Quit: levity_island]
vyorkin has quit [Ping timeout: 265 seconds]
marr has joined #ruby
urtokk has joined #ruby
urtokk has quit [Client Quit]
abuzze has quit [Ping timeout: 245 seconds]
joonty has joined #ruby
Wolland has joined #ruby
ijdickinson has quit [Quit: Leaving.]
tokik has joined #ruby
Takle has joined #ruby
backsorry has quit [Quit: Leaving]
<jenrzzz> it almost sort of makes sense!
Takle has quit [Read error: Connection reset by peer]
<jenrzzz> this was a worthwhile use of my time and energy
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
timonv_ has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 240 seconds]
mityaz has quit [Quit: Leaving]
arup_r has quit [Remote host closed the connection]
bayed has joined #ruby
Snowstormer has joined #ruby
tokik has quit [Ping timeout: 264 seconds]
Insanity144 has quit [Remote host closed the connection]
arup_r has joined #ruby
jgrevich has quit [Quit: jgrevich]
Snowstormer is now known as Paramore
Spami has quit [Quit: This computer has gone to sleep]
tlarevo_ has joined #ruby
irk has quit [Quit: Lost terminal]
irk has joined #ruby
blueOxigen has joined #ruby
ptrrr has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
tlarevo has quit [Ping timeout: 244 seconds]
cassianoleal has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
shevy has quit [Ping timeout: 245 seconds]
lkba has quit [Ping timeout: 240 seconds]
rdark has joined #ruby
dumdedum has joined #ruby
RitterJack has joined #ruby
Insanity133 has joined #ruby
ptrrr has quit [Ping timeout: 245 seconds]
ki0 has quit [Remote host closed the connection]
ki0 has joined #ruby
Juanchito has joined #ruby
jrvlima has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TripTastic has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
mile has joined #ruby
nrsk has quit [Remote host closed the connection]
skolman has joined #ruby
PotatoChipz has joined #ruby
linduxed has joined #ruby
kaspergrubbe has quit [Ping timeout: 250 seconds]
mile has quit [Quit: 离开]
decoponyo has joined #ruby
Timgauthier has joined #ruby
skolman has quit [Ping timeout: 264 seconds]
<PotatoChipz> Hello! I'm making an API using Rails and I need help on proper implementation...
abuzze has joined #ruby
decoponio has quit [Ping timeout: 264 seconds]
shevy has joined #ruby
<PotatoChipz> So...for example I have a general handler for general exceptions...
abuzze has quit [Remote host closed the connection]
<PotatoChipz> for an activerecord exception it can either be password should be 8 chars above.... and must be equal the password confirmation etc...
qba73 has quit []
<PotatoChipz> what should i do to differentiate them? the errors...it has no error codes..
abuzze has joined #ruby
<zenspider> PotatoChipz: #rubyonrails
<PotatoChipz> Oh
<PotatoChipz> I see. alright. thank you
timonv_ has joined #ruby
Wolland has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
abuzze has joined #ruby
mile has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0.1]
agrinb_ has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
Takle has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 244 seconds]
Tab__ has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
siwica has joined #ruby
maasha has joined #ruby
Takle has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
agrinb has quit [Ping timeout: 265 seconds]
wald0 has joined #ruby
abuzze has quit [Ping timeout: 260 seconds]
bMalum has joined #ruby
hmsimha has joined #ruby
<maasha> delicate problem: I purged macports in favor of homebrew. However, purging macports broke homebrew. To fix this I need to recompile my ruby, but that errors: bison: error: unable to find utility "bison", not a developer tool or in PATH
<maasha> hen/egg problem
<maasha> paradox
<maasha> c22
agrinb_ has quit [Ping timeout: 265 seconds]
vyorkin has joined #ruby
abuzze has joined #ruby
kaspergrubbe has joined #ruby
luisalima has joined #ruby
JohnBat26 has joined #ruby
wald0 has quit [Client Quit]
<zenspider> maasha: you have ruby in /usr/bin/ruby as well
<zenspider> and bison is also in /usr/bin/
<zenspider> so either it's just a pathing issue, or something like not having dev cmdline tools installed?
<maasha> zenspider: was purged long time ago to try and fix that nasty gem version bug to install inline.
t_p has quit [Quit: Computer has gone to sleep.]
<zenspider> sudo xcode-select --install
mile has quit [Quit: 离开]
<zenspider> purged?
jenrzzz has quit [Ping timeout: 256 seconds]
<zenspider> don't mess with your base install
jenrzzz_ has joined #ruby
<maasha> zenspider: I removed the systems ruby
shredding has quit [Quit: shredding]
robustus is now known as robustus|Off
<zenspider> don't do that
<maasha> somehow having multiple version of ruby on you machine screws things up.
<zenspider> inline?
<maasha> the rubyinline gem
<zenspider> I'm the author
<zenspider> I know of no such problem
<maasha> I know. Luve that gem!!!
josephndenton has joined #ruby
<zenspider> if you have a problem, please file a bug BEFORE you obliterate your base install
<zenspider> do you have /usr/bin/bison?
<maasha> zenspider: yes I have /usr/bin/bison
mile has joined #ruby
<zenspider> ok. so that's good. `which bison` comes up fine?
bMalum has quit [Quit: bMalum]
mile is now known as garycruise
bMalum has joined #ruby
<maasha> it does
<zenspider> kk. that's good
lxsameer has quit [Ping timeout: 255 seconds]
garycruise is now known as garycrusie
rodfersou has joined #ruby
josephndenton has quit [Ping timeout: 240 seconds]
<zenspider> so, you can hand build / install ruby using --prefix /usr/local/Cellar/ruby/1.2.3
<zenspider> then use that to bootstrap into the real thing
<maasha> zenspider: if I run bison --version it says: bison: error: unable to find utility "bison", not a developer tool or in PATH
garycrusie has quit [Client Quit]
<zenspider> but I highly recommend you reinstall the base ruby package
<zenspider> huh... ok.
<zenspider> then run the xcode-select line from above
Insanity133 has quit [Remote host closed the connection]
<maasha> I did this already, but that was before purging macports
<maasha> possibly also before purging the system's ruby
<zenspider> so try it again
<zenspider> sudo xcode-select --install
<maasha> Yeah, it fails, it says its not available from the update server.
reinaldob has joined #ruby
<zenspider> sudo xcode-select --reset
<zenspider> wtf did you do?
chiel has joined #ruby
Insanity133 has joined #ruby
chiel has joined #ruby
<maasha> Methinks Apple hates me :o)
einarj has joined #ruby
<zenspider> you broke some fundamental stuff. dunno how or why
garycruise has joined #ruby
<zenspider> I suggest reinstalling the OS to try to fix the base problems
wald0 has joined #ruby
TPBallbag has joined #ruby
<zenspider> should go quick
Hightower666 has quit [Ping timeout: 255 seconds]
TPBallbag is now known as TPSchoolBag
<maasha> Right, ready for battle
<zenspider> good luck
lxsameer has joined #ruby
Insti has joined #ruby
<maasha> The Yosemite update is due anyway
<zenspider> don't change EVERYTHING all at once
Insanity133 has quit [Read error: Connection reset by peer]
<zenspider> if you do the yosemite update tho, move /usr/local to your home folder first
<zenspider> then move it back after
Insanity133 has joined #ruby
<maasha> good advice
<maasha> and I do have backup
maasha has quit [Quit: Page closed]
siwica has quit [Ping timeout: 245 seconds]
siwica1 has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ohcibi_ is now known as ohcibi
<pontiki> zenspider: is that general advice for all doing the yosemite update, or only for this particular case?
TPSchoolBag is now known as JessyS
JessyS is now known as TPBallbag
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
heftig_ has joined #ruby
heftig has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
zwer_x has quit [Remote host closed the connection]
kaspergr_ has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
Takle_ has joined #ruby
terlar has quit [Quit: WeeChat 1.0.1]
Takle has quit [Read error: Connection reset by peer]
zwer has joined #ruby
moritzs has quit [Remote host closed the connection]
robustus|Off is now known as robustus
oo_ has quit [Remote host closed the connection]
terlar has joined #ruby
bMalum has quit [Quit: bMalum]
garycruise has quit [Quit: 离开]
godd2 has joined #ruby
ctp has joined #ruby
larsam has left #ruby [#ruby]
garycruise has joined #ruby
ldnunes has joined #ruby
TPBallbag is now known as JessyS
JessyS is now known as TPBallbag
AlexRussia has joined #ruby
mikepack has joined #ruby
terlar has quit [Quit: WeeChat 1.0.1]
garycruise has quit [Client Quit]
frivoal has joined #ruby
terlar has joined #ruby
rshetty has quit [Ping timeout: 244 seconds]
<shevy> took me a while to find out why this was an error! http://pastie.org/9699843
<shevy> I need better eyes
Baluse has quit [Ping timeout: 255 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
frivoal has quit [Quit: Textual IRC Client: www.textualapp.com]
mikepack has quit [Ping timeout: 258 seconds]
fsapo has joined #ruby
robustus is now known as robustus|Off
sk87 has joined #ruby
bMalum has joined #ruby
luisalima has quit [Ping timeout: 255 seconds]
rshetty has joined #ruby
Insanity133 has quit [Remote host closed the connection]
ringarin has joined #ruby
mrfoto has joined #ruby
agrinb has joined #ruby
terlar has quit [Quit: WeeChat 1.0.1]
terlar has joined #ruby
otherj has joined #ruby
ctp has left #ruby ["Connection reset by peer... Isn't he that short little Mexican with the wire cutters heading your way?"]
PotatoChipz has quit [Quit: Page closed]
bMalum has quit [Quit: bMalum]
robustus|Off is now known as robustus
DrCode has quit [Remote host closed the connection]
garycruise has joined #ruby
Wolland has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
rpag has quit [Ping timeout: 240 seconds]
DrCode has joined #ruby
Wolland has quit [Ping timeout: 244 seconds]
moritzs has joined #ruby
Spami has joined #ruby
Areessell has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
vifino has quit [Read error: Connection reset by peer]
Morkel_ has joined #ruby
vifino- has joined #ruby
<godd2> rgb_to_rgb should be a fairly simple method
Morkel has quit [Ping timeout: 240 seconds]
Morkel_ is now known as Morkel
Mattias has quit [Ping timeout: 244 seconds]
Areessell has quit [Ping timeout: 260 seconds]
vyorkin has quit [Ping timeout: 272 seconds]
<Timgauthier> lol
vyorkin has joined #ruby
moritzs has quit [Ping timeout: 245 seconds]
garycruise has quit [Quit: 离开]
poweratom_ has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
MattB2 has joined #ruby
nrsk has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<zenspider> pontiki: any dev. upgrade time is proportional to the amount of shit you have in /usr/local for some reason. move it out and it is much faster
tkuchiki has joined #ruby
bMalum has joined #ruby
poweratom_ has quit [Ping timeout: 245 seconds]
dc has joined #ruby
drawingthesun has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
MattB2 has quit []
tkuchiki has quit [Ping timeout: 255 seconds]
arup_r has quit [Remote host closed the connection]
Mattias has joined #ruby
shortCircuit__ is now known as nuts
nuts is now known as shortCircuit__
<pontiki> thanks, zenspider
toretore has joined #ruby
mskaesz has joined #ruby
mkaesz has quit [Ping timeout: 272 seconds]
wallerdev has joined #ruby
weaksauce has quit [Ping timeout: 244 seconds]
otherj has quit [Quit: .]
wallerdev has quit [Client Quit]
jtdowney has joined #ruby
hanmac1 has joined #ruby
nrsk has quit [Ping timeout: 256 seconds]
jtdowney has quit [Max SendQ exceeded]
jtdowney has joined #ruby
<Takumo> anyone kow why Sidekiq never shuts down when I ^C?
echooo1 has quit [Quit: echooo1]
DrCode has quit [Remote host closed the connection]
DrCode has joined #ruby
boombadaroomba has joined #ruby
<Takumo> nvm, bug in Sidekiq 3.2.4
rbrs has quit [Ping timeout: 256 seconds]
DarthGandalf has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
DrCode has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
DrCode has joined #ruby
noop has quit [Ping timeout: 244 seconds]
rbrs has joined #ruby
rbrs has quit [Remote host closed the connection]
noop has joined #ruby
boombadaroomba has quit [Ping timeout: 255 seconds]
snovity has joined #ruby
<krz> Takumo: my sidekiq gets stuck every so often, nothing useful in logs
<krz> as in jobs dont get processed, they are "stuck" in the queue
Xeago_ has quit [Ping timeout: 244 seconds]
<Takumo> only had that when sidekiq isn't listening to the queue
Xeago_ has joined #ruby
larsam has joined #ruby
tkuchiki has joined #ruby
mtakkman has joined #ruby
Takle_ has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
User458764 has joined #ruby
Xeago has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
Areessell has joined #ruby
vyorkin has quit [Ping timeout: 250 seconds]
doev has quit [Ping timeout: 250 seconds]
renderful has joined #ruby
yfeldblu_ has quit [Ping timeout: 250 seconds]
mikepack has joined #ruby
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
nrsk has joined #ruby
yeticry has quit [Ping timeout: 258 seconds]
agrinb has joined #ruby
ClarusCogitatio has quit [Ping timeout: 265 seconds]
mikepack has quit [Ping timeout: 265 seconds]
renderful has quit [Ping timeout: 256 seconds]
ClarusCogitatio has joined #ruby
yeticry has joined #ruby
robustus is now known as robustus|Off
luisalima has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
vyorkin has joined #ruby
mtakkman has quit [Remote host closed the connection]
max96at|off is now known as max96at
Fire-Dragon-DoL has joined #ruby
josephndenton has joined #ruby
Wolland has joined #ruby
Fire-Dragon-DoL has quit [Client Quit]
Fire-Dragon-DoL has joined #ruby
jespada has joined #ruby
josephndenton has quit [Ping timeout: 255 seconds]
jtdowney has joined #ruby
jtdowney has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
jtdowney has quit [Client Quit]
matchaw_ has joined #ruby
vifino- has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
mrfoto has quit []
matchaw has quit [Ping timeout: 255 seconds]
kp666 has joined #ruby
vifino has joined #ruby
moritzs has joined #ruby
Takle has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
noop has quit [Ping timeout: 250 seconds]
noop has joined #ruby
rpag has joined #ruby
apeiros has joined #ruby
agrinb has joined #ruby
DarthGandalf has joined #ruby
bMalum has quit [Quit: bMalum]
tkuchiki has quit [Ping timeout: 255 seconds]
mikecmpbll has joined #ruby
VanillaGoat_ has joined #ruby
ferr has quit [Quit: Lost terminal]
exadeci has quit [Ping timeout: 260 seconds]
machty has quit [Ping timeout: 260 seconds]
knotty66 has joined #ruby
noop has quit [Ping timeout: 272 seconds]
<knotty66> Is there a ruby method to remove an element of an array by index and return the array?
moritzs has quit [Ping timeout: 250 seconds]
vyorkin has quit [Quit: WeeChat 1.0.1]
exadeci has joined #ruby
<jhass> .tap {|ary| ary.delete_at(n) }
VanillaGoat has quit [Ping timeout: 250 seconds]
quimrstorres has joined #ruby
machty has joined #ruby
krandi has joined #ruby
rshetty_ has joined #ruby
andikr has quit [Ping timeout: 272 seconds]
<knotty66> jhass: Thanks. Not considered tap.
Vile` has quit [Ping timeout: 256 seconds]
rshetty has quit [Ping timeout: 265 seconds]
larsam has quit [Read error: Connection reset by peer]
arup_r has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.0.1]
phutchins has joined #ruby
dangerousdave has joined #ruby
shiru has joined #ruby
spacemud has quit [Ping timeout: 245 seconds]
krandi has quit [Quit: No Ping reply in 180 seconds.]
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
oliver3 has joined #ruby
Soda has joined #ruby
andikr has joined #ruby
hoffmanc has joined #ruby
spacemud has joined #ruby
<gr33n7007h> >> [1,2,3,4,5].tap { |n| n.delete_at(2) }
<eval-in__> gr33n7007h => [1, 2, 4, 5] (https://eval.in/218287)
<gr33n7007h> ah cool
patrick99e99 has joined #ruby
krz has joined #ruby
arup_r has joined #ruby
ndrei has joined #ruby
luisalima has quit [Quit: WeeChat 0.4.3]
shiru has quit [Ping timeout: 255 seconds]
benzrf is now known as benzrf|offline
ixti has joined #ruby
kobain has joined #ruby
<hoffmanc> hello; has anyone run into a situation where thor does not honor quoted strings in options? like thor --some-opt="a quoted string" fails, indicating that it tried to interpret "quoted" and "string" as additional arguments
yfeldblum has joined #ruby
linduxed has quit [Ping timeout: 265 seconds]
<hoffmanc> but something like ruby -e "puts 'hello'" works fine, so I don't think it is something odd with my shell environment
patrick99e99 has quit [Ping timeout: 245 seconds]
krz has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
sk87 has joined #ruby
heftig_ is now known as heftig
dc has quit [Remote host closed the connection]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 258 seconds]
<shevy> hello world!
<shevy> hello hoffmanc!
<shevy> might be a shell oddity perhaps
<shevy> I have had problems with shell filenames including ' ' and '(' characters
davidhq has joined #ruby
<hoffmanc> @shevy thanks for the thought - yeah it seemed to just started happening, and I'm trying to pinpoint the offender
spacemud has quit [Ping timeout: 256 seconds]
davidhq has quit [Read error: Connection reset by peer]
davidhq has joined #ruby
agrinb has quit [Remote host closed the connection]
nrsk has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
mengu has quit [Remote host closed the connection]
arup_r has joined #ruby
Takle has joined #ruby
IrishGringo has quit [Ping timeout: 264 seconds]
ardianta has joined #ruby
spacemud has joined #ruby
davidhq has quit [Ping timeout: 255 seconds]
andikr has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
dc has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<toretore> anyone know how zips work?
renier_ is now known as renier
vifino has quit [Quit: Oh, what does this button do?]
vifino has joined #ruby
larsam has joined #ruby
kamilc__ has joined #ruby
<tobiasvl> toretore: what do you mean? the algorithm?
IrishGringo has joined #ruby
<tobiasvl> or the gem?
<apeiros> zip drives, the storage system from the 90's
techsethi has joined #ruby
<jhass> maybe zip codes?
<apeiros> the stuff in the trousers
<tmoore> zippers on pants or a jacket surely
<tmoore> heh
<apeiros> ^5
<toretore> i just wanted to know if it's possible to stream a file from a zip coming in on a socket
<toretore> that is, without seeking
spyderman4g63 has quit [Read error: Connection reset by peer]
<tobiasvl> toretore: sure, isn't that exactly what rubyzip and zip do
spyderman4g63 has joined #ruby
<toretore> no, they need a seekable file
<tmoore> I know you can with gzip, but I'm not sure if the pk zip format allows it
Wolland has joined #ruby
<apeiros> you mean you have a zip archive, possibly containing multiple files, which is streamed to you and you wish to "forward" a single file from it?
workmad3 has joined #ruby
<hanmac1> shevy sorry if you are waiting about rwx ... currently i have 20-30 commits pending at home ... i did some massive rewrite again ... replacing macros with templates ;P
<apeiros> i.e. forward -> push to another stream/IO
<toretore> apeiros: exactly
pwestlun1 has joined #ruby
alem0lar_ has joined #ruby
<shevy> hanmac1 nah I am not waiting right now - I am more waiting towards the long distant future where gstreamer + wxwidgets will give me zero problems ;D
<toretore> 1) start reading io; 2) skip file unless target 3) when target, forward to other io
<toretore> s/skip/ignore/
kobain has quit [Ping timeout: 272 seconds]
<tmoore> the index is at the end of the file!
agrinb has joined #ruby
pwestlund has quit [Ping timeout: 258 seconds]
<toretore> tmoore: yeah, that's exactly what i want to do
<toretore> but i can't "seek" like they do on s3
<tmoore> sounds like a pain
alem0lar_ has quit [Client Quit]
<toretore> i guess i'll have to buffer to disk or mem :/
moritzs has joined #ruby
ardianta has quit [Ping timeout: 265 seconds]
rshetty_ has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 256 seconds]
<toretore> it's not really a problem, i just wanted to avoid it if possible
<tmoore> "Tools that correctly read .ZIP archives must scan for the end of central directory record signature, and then, as appropriate, the other, indicated, central directory records. They must not scan for entries from the top of the ZIP file, because only the central directory specifies where a file chunk starts."
<apeiros> sounds like zips design works against that
<toretore> yeah
<apeiros> probably been designed with the zipfile writer in mind, not reader or streaming
<tmoore> what a terrible format :-P
<jhass> "originally created in 1989"
<apeiros> iirc ID3 tags had the same issue in the first version :)
<jhass> so maybe try something from this century
<toretore> like.. gzip? ;)
<apeiros> jhass: *millenium
fandi has joined #ruby
<apeiros> zip… so yestermillenial
Tuxero has joined #ruby
<tmoore> I'm pretty sure tar is older, and it didn't make that mistake
codecop has joined #ruby
<tmoore> "Most modern tar programs read and write archives in the UStar (Uniform Standard Tape ARchive) format, introduced by the POSIX IEEE P1003.1 standard from 1988." http://en.wikipedia.org/wiki/Tar_(computing)
<apeiros> yeah. but tar has other funny design decisions. based on being mostly used on tapes at that time.
Takle has quit [Remote host closed the connection]
<apeiros> like e.g. padding everything to 512 bytes or somesuch
mattstratton has joined #ruby
robustus|Off is now known as robustus
mattstratton has quit [Max SendQ exceeded]
<tmoore> separation of concerns between archiving and compression seems like a good thing, though
<apeiros> yes
mattstratton has joined #ruby
<apeiros> overall, tar is one of the better though through things in computing.
<toretore> thinking through your solution is for suckers
<toretore> no time to pivot that way
<apeiros> less opportunities to charge for updates
tesuji has quit [Ping timeout: 272 seconds]
dkphenom has joined #ruby
govg has joined #ruby
poulet_a has left #ruby ["Quitte"]
Takle has joined #ruby
einarj has quit [Remote host closed the connection]
ardianta has joined #ruby
kobain has joined #ruby
arup_r has quit [Remote host closed the connection]
spyderman4g63 has quit []
mattstratton has quit [Ping timeout: 265 seconds]
razieliyo has joined #ruby
razieliyo has joined #ruby
robustus is now known as robustus|Off
<shevy> hmmm
<shevy> should the top namespace be a module
<shevy> or a class
<apeiros> you know the answer :-p
<shevy> no
ferr has joined #ruby
<shevy> I have just put up everything so neatly into a module
<shevy> now I realized that I can not do Foo.new
<apeiros> shevy: what can a class do what a module can't?
<shevy> not much!
sevenseacat has joined #ruby
<apeiros> correct, not much. but there is this one little but crucial thing!
<shevy> don't know of one
<shevy> one can store state in module constants
<apeiros> come on shevy, I know that you know it
<shevy> subclassing!
dorei has joined #ruby
<apeiros> hm, ok, not what I meant
<apeiros> instantiation
<shevy> aaaah
<apeiros> a class can create instances of itself
russt has joined #ruby
russt has quit [Client Quit]
tobago has joined #ruby
<apeiros> so the question is reeeeally simple: do you need instances of whatever your toplevel namespace is? if not -> module (common case), if yes -> class (less common case)
<rpag> shevy, i think its common to use a module but i've seen a class used as well (for example pry uses a class)
triple_b has joined #ruby
<shevy> yeah I need instances of my toplevel namespace but I also need it to retain its ability to mix it into other classes :(
ardianta is now known as iyan
havenwood has joined #ruby
<rpag> 'bundle gem xxx' defaults to a module though
larissa has joined #ruby
<shevy> I want features!
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<shevy> well I could put it into Foo::Foo.new and leave the toplevel Foo alone
triple_b has quit [Client Quit]
<toretore> def Foo.new; Foo.new; end
<shevy> oh dear
spyderman4g63 has joined #ruby
robustus|Off is now known as robustus
anarang has quit [Quit: Leaving]
<toretore> if you have a module with a class with the same name, i'd say that's a code smell
yfeldblum has joined #ruby
triple_b has joined #ruby
kobain has joined #ruby
<jhass> class Foo; include ThingsYouWantToBeIncludable; module ThingsYouWantToBeIncludable; end; end
kobain has quit [Max SendQ exceeded]
* apeiros dislikes `def Foo.new; Foo::Foo.new; end`
kobain has joined #ruby
<apeiros> Mail gem does that
benzrf|offline is now known as benzrf
<shevy> toretore and if you have the top namespace as a class, you can not include it anywhere else
Hightower666 has joined #ruby
kobain has quit [Max SendQ exceeded]
<apeiros> IMO `obj.new` should fulfill the contract `obj.new.instance_of?(obj) # => true`
kobain has joined #ruby
<benzrf> apeiros: in a typed language you could do that
<benzrf> ( ͡° ͜ʖ ͡°)
kobain has quit [Max SendQ exceeded]
ferr has quit [Ping timeout: 250 seconds]
ndrei has quit [Ping timeout: 255 seconds]
kobain has joined #ruby
<max96at> since class extends module, you should be able to have the class as a mix in as well
yfeldblum has quit [Ping timeout: 264 seconds]
<toretore> >> class Klass; end; module Bobandy; include Klass; end
<eval-in__> toretore => wrong argument type Class (expected Module) (TypeError) ... (https://eval.in/218317)
matchaw_ has quit [Ping timeout: 260 seconds]
<max96at> awww
<shevy> max96at if only we could!
quimrstorres has quit [Remote host closed the connection]
<toretore> >> Class.new.is_a?(Module)
<eval-in__> toretore => true (https://eval.in/218318)
<toretore> it wouldn't make sense; methods in a class assume an instance
matchaw has joined #ruby
<apeiros> benzrf: dude, in ruby, you can do that
Takle has quit [Remote host closed the connection]
<apeiros> benzrf: just that ruby doesn't force-choke-hold you
dc has quit [Remote host closed the connection]
User458764 has joined #ruby
moritzs has quit [Ping timeout: 272 seconds]
<apeiros> toretore: methods in a module assume an instance too ;-)
jasooon has quit [Read error: No route to host]
<apeiros> in fact: *all* methods assume an instance. there's nothing else than instance methods in ruby.
charliesome has quit [Quit: zzz]
oo_ has joined #ruby
ctp has joined #ruby
Vile` has joined #ruby
benzrf is now known as benzrf|offline
Takle has joined #ruby
<hanmac1> yeah class methods are instance methods in the singleton class ;P
jottr has quit [Ping timeout: 255 seconds]
<apeiros> precisely
<hanmac1> thats true for the class methods of the singleton class too ;D
pandaant has joined #ruby
josephndenton has joined #ruby
jottr has joined #ruby
atomical has joined #ruby
moritzs has joined #ruby
max96at is now known as max96at|off
anaeem1_ has joined #ruby
max96at|off is now known as max96at
anaeem1_ has quit [Remote host closed the connection]
sepp2k has quit [Quit: Konversation terminated!]
lemur has quit [Read error: Connection reset by peer]
<toretore> apeiros: yeah. i can't really think of a reason why you shouldn't be able to include a class
lemur has joined #ruby
<gr33n7007h> dave thomas explains that concept incredibly
josephndenton has quit [Ping timeout: 244 seconds]
noop has joined #ruby
byprdct has joined #ruby
ericli has quit [Quit: This computer has gone to sleep]
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<apeiros> toretore: I think it was mostly a decision of having conceptually different things. but no idea what really was the motivation.
<toretore> implementation details perhaps..
<shevy> matz' C++ past must have shaped his decision
<apeiros> personally I dislike the concept of inheritance by now. I think it leads to bad solutions and there are better mechanisms for functionality-sharing
TPBallbag is now known as aDuude
<apeiros> toretore: I doubt, given that modules just end up in the ancestry too
<apeiros> but maybe
<shevy> just as hanmac1's code becomes progressively stranger
<max96at> maybe the fact that modules don't have constructors you inherit?
<hanmac1> shevy newest code will it make even more strange when i try to use more templates than macros to make the code more nicer ... (but like i said its not pushed yet)
Wolland has joined #ruby
<toretore> i think inheritance can still be a useful way to model things
last_staff has quit [Quit: last_staff]
aDuude is now known as TPBallbag
blueOxigen has quit [Ping timeout: 250 seconds]
roolo has quit [Ping timeout: 265 seconds]
<toretore> who was it that implemented transducers in ruby?
hoffmanc has quit []
<hanmac1> hm what are transducers? or do i need them for my spacecraft? ;P
<toretore> google clojure hickey transducers
<shevy> lol
<toretore> should give you the information
Wolland has quit [Ping timeout: 255 seconds]
<toretore> it's basically an abstraction of stream processing functionality that doesn't depend on the implementation
<toretore> like map or inject
enebo has joined #ruby
fsapo has quit [Remote host closed the connection]
tlarevo_ has quit [Remote host closed the connection]
jerius has joined #ruby
sambao21 has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Soda has quit [Remote host closed the connection]
banister has joined #ruby
<hanmac1> toretore: google did find me this: https://gist.github.com/ecmendenhall/d7393bbc965ce6862324
banister has quit [Max SendQ exceeded]
banister has joined #ruby
lxsameer has quit [Quit: Leaving]
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
shortCircuit__ has quit [Remote host closed the connection]
banister has joined #ruby
djbkd_ has joined #ruby
banister has quit [Max SendQ exceeded]
sepp2k has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
kaspergr_ is now known as kaspergrubbe
banister has joined #ruby
djbkd has quit [Ping timeout: 244 seconds]
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jerematic has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
droidburgundy has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jimbach has joined #ruby
banister has joined #ruby
<hanmac1> apeiros: banister does have MaxSendQ problems again
banister has quit [Max SendQ exceeded]
bmurt has joined #ruby
arup_r has joined #ruby
banister has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
psyprus has joined #ruby
banister has quit [Max SendQ exceeded]
<hanmac1> ;P
banister has joined #ruby
gr33n7007h has quit [Ping timeout: 260 seconds]
livingstn has joined #ruby
cassianoleal has quit [Quit: (null)]
cassianoleal has joined #ruby
beef-wellington has joined #ruby
yfeldblum has joined #ruby
bmurt has quit []
Jackneill has joined #ruby
mary5030 has joined #ruby
bmurt has joined #ruby
allcentury has joined #ruby
Takle has quit [Remote host closed the connection]
msmith_ has joined #ruby
oleo has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
jhwhite has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
Channel6 has joined #ruby
krank has joined #ruby
Takle has joined #ruby
lw_ has quit [Quit: s]
adriancb has joined #ruby
ta has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
badhatter has quit [Read error: Connection reset by peer]
Xiti` has quit [Quit: Leaving]
Soda has joined #ruby
lu_ has joined #ruby
rshetty has joined #ruby
cassianoleal has quit [Quit: (null)]
Xiti has joined #ruby
mattstratton has joined #ruby
lu_ has quit [Client Quit]
patrick99e99 has joined #ruby
siwica has joined #ruby
jimbach has quit [Remote host closed the connection]
krank has quit [Quit: Wychodzi]
lu1 has joined #ruby
siwica1 has quit [Ping timeout: 255 seconds]
lu1 has quit [Client Quit]
quimrstorres has joined #ruby
samuel02 has joined #ruby
siwica has quit [Remote host closed the connection]
siwica has joined #ruby
patrick99e99 has quit [Ping timeout: 258 seconds]
tadassce has joined #ruby
tier has joined #ruby
russt has joined #ruby
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
ed_t has joined #ruby
duggiefresh has joined #ruby
Sgeo has quit [Read error: Connection reset by peer]
Sgeo has joined #ruby
<ed_t> beginner question: I am missing something basic. I create a hash: {:cow=>200, :pig=>23, :rat=>5123, :mouse=>1389}
_maes_ has joined #ruby
<ed_t> then do: a = rat
mkrank has joined #ruby
Tuxero has quit [Ping timeout: 265 seconds]
<ed_t> why does farm[a] get nil ?
jgrevich has joined #ruby
<ed_t> where farm is the hash
<tadassce> what is rat?
<ccooke> ed_t: what did you set a to, exactly?
<ed_t> a string
<ccooke> ed_t: is it set to 'rat'?
<tadassce> it should be :rat
<ccooke> ed_t: right. you need to set it to :rat
ctp has joined #ruby
<ccooke> which is a Symbol - think of them as lightweight immutable strings
nahtnam has quit [Ping timeout: 246 seconds]
<ed_t> irb(main):048:0* a = ':rat'
<ed_t> ":rat"
<ed_t> farm[a]
<apeiros> not ':rat'
<apeiros> just :rat
<ed_t> => nil
<apeiros> >> a = :rat; farm = {:cow=>200, :pig=>23, :rat=>5123, :mouse=>1389}; farm[a]
<eval-in__> apeiros => 5123 (https://eval.in/218342)
<apeiros> >> :rat == "rat"
<eval-in__> apeiros => false (https://eval.in/218343)
Tuxero has joined #ruby
<apeiros> symbols and strings are two different kind of objects. just as `"1" != 1`
benzrf|offline is now known as benzrf
<ed_t> thats what I missed
<ed_t> thanks
mistermocha has joined #ruby
tadassce has quit []
linduxed has joined #ruby
<ed_t> learning a new lang is a pita. There are all sorts of little assumptions that u need to understand.
rshetty has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
<ccooke> ed_t: what languages do you know?
baroquebobcat has joined #ruby
moritzs has quit [Ping timeout: 258 seconds]
<benzrf> strings are for text, symbols are for identifiers
<ed_t> many assemblers, forth, c, cobol, abap, modula II, pascal, java, netrexx, rexx - i've probably forgotten others
Channel6 has quit [Quit: Leaving]
Xeago_ has quit [Remote host closed the connection]
Tuxero has quit [Ping timeout: 264 seconds]
pasties has quit [Ping timeout: 250 seconds]
jobewan has joined #ruby
mkrank has quit [Quit: Wychodzi]
mkrank has joined #ruby
ki0 has quit [Remote host closed the connection]
dc_ has joined #ruby
benzrf is now known as benzrf|offline
it0a has joined #ruby
ki0 has joined #ruby
mary5030 has quit [Remote host closed the connection]
Timgauthier is now known as timgauthier_away
exgf has quit [Remote host closed the connection]
balazs has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
michael_mbp has quit [Excess Flood]
nateberkopec has joined #ruby
<ed_t> ccooke I find that when learning a new lang the hardest part is understand the _detailed_ syntax. Then you need to learn the libraries which is a long process - you never stop learning them
ghr has joined #ruby
timgauthier_away is now known as Timgauthier
zz_jrhorn424 is now known as jrhorn424
jimbach has joined #ruby
michael_mbp has joined #ruby
<apeiros> ed_t: ruby's syntax is luckily comparatively small. at least if you glance over all the edge cases (which usually will not tangent you - unless you write a ruby parser)
ericli has joined #ruby
<apeiros> same for its core set of idioms
iamjarvo has joined #ruby
davidhq_ has joined #ruby
mary5030 has joined #ruby
Brothmars has joined #ruby
Wolland has joined #ruby
viet_power has quit [Ping timeout: 260 seconds]
agrinb has joined #ruby
doev has joined #ruby
andikr has joined #ruby
zB0hs has joined #ruby
<ccooke> ed_t: One thing that might help with Strings and Symbols - Strings are like java Stringbuffers, while Symbols are more like java strings
mary5030 has quit [Remote host closed the connection]
jenrzzz_ has quit [Ping timeout: 265 seconds]
siwica has quit [Ping timeout: 250 seconds]
treehug88 has joined #ruby
tobago has quit [Remote host closed the connection]
AnonGuy has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
agrinb_ has joined #ruby
<ccooke> ed_t: Symbols are immediate, immutable and memory efficient. They're used a lot to refer to other things by name - you can call methods on an object by sending a symbol named after the method you want, for instance. Or get and set constants and instance variables by using symbols to refer to them
<ed_t> I've got the difference now. As I said it was a beginner question. I knew I was missing something very very basic
jrhorn424 is now known as zz_jrhorn424
<ccooke> good, good
lw has joined #ruby
momomomomo has joined #ruby
Takle has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 265 seconds]
agrinb has joined #ruby
mengu has quit []
godd2 has quit [Ping timeout: 258 seconds]
<AnonGuy> Hello Guys , I wanna learn Ruby and i am a beginner to programming. Any suggestions where I can start. I have done basic python
sepp2k has quit [Read error: Connection reset by peer]
<AnonGuy> Also , can any one tell what exactly ruby is used for ?
zz_jrhorn424 is now known as jrhorn424
Wolland has quit [Ping timeout: 255 seconds]
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doev has quit [Ping timeout: 245 seconds]
josephndenton has joined #ruby
<balazs> AnonGuy: ruby is used for the same kinds of things python is. There is plenty of documentation online.
agrinb_ has quit [Ping timeout: 272 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Soda has quit [Remote host closed the connection]
Timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
<ed_t> which syntax is now perfered: farm.each do |a, b| puts b end or farm.each { |a, b| puts b }
aganov has quit [Remote host closed the connection]
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Timgauthier has joined #ruby
zarubin has joined #ruby
* ed_t is looking at pseudo bnf definition of ruby
sk87 has joined #ruby
Takle has joined #ruby
<hanmac1> ed_t: think about symbols like the Enum values in C which are also uniq
agrinb has quit [Ping timeout: 265 seconds]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> ed_t: there are two schools for blocks. A) use do/end for side-effect, use {} for return value
AnonGuy has left #ruby [#ruby]
<apeiros> ed_t: B) use {} for single-line, do/end for multiline
<ccooke> ed_t: depends on context. {} is better for one liners or if you're chaining the results
<apeiros> personally, I follow A)
zarubin has quit [Client Quit]
amigo99 has joined #ruby
axl_ has joined #ruby
<apeiros> ed_t: note that do/end has different precedence than {}. `foo bar {}` is `foo(bar {})`, i.e. the block belongs to bar. `foo bar do; end` is `foo(bar) do; end`, i.e. the block belongs to foo
wald0 has quit [Quit: Lost terminal]
josephndenton has quit [Ping timeout: 244 seconds]
msmith__ has joined #ruby
Takle_ has joined #ruby
<apeiros> of course, if you always parenthesize your methods, you won't note that difference :)
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergr_ has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrhorn424 is now known as zz_jrhorn424
Takle has quit [Read error: Connection reset by peer]
<ed_t> apeiros thanks. Was wondering if one syntax replaced the other and its not the case. precedence maters - especially when you do not expect it to be different
iwishiwerearobot has quit [Remote host closed the connection]
sdegutis has joined #ruby
<apeiros> ed_t: well then: and/or have different precedence than &&/||
<hanmac1> ed_t: same difference for && and "and"
<apeiros> since that trips up people too :)
<sdegutis> What's a good simple static site generator that allows me to generate 1:N pages and supports Sass and Slim?
troulouliou_dev has joined #ruby
Pupeno_ has joined #ruby
<workmad3> sdegutis: jekyll, middleman...
quimrstorres has quit [Remote host closed the connection]
zarubin has joined #ruby
lw has quit [Quit: s]
<sdegutis> Jekyll doesn't support N:1 pages, does it?
<ed_t> thanks those little details are the things that trip you up flipping langs
* ed_t takes notes
msmith_ has quit [Ping timeout: 265 seconds]
haroldwu has quit [Ping timeout: 245 seconds]
<apeiros> ed_t: google for "zenspiders quickref"
<apeiros> contains almost, if not all of ruby's syntax condensed
haroldwu has joined #ruby
<hanmac1> ed_t: also there is an interesting difference between "-1" and "- 1" ... the second one is a method call, so you might get syntax errors if you do spaces wrong
Pupeno has quit [Ping timeout: 250 seconds]
AnonGuy has joined #ruby
arup_r has quit [Quit: Leaving.]
TPBallbag has quit [Remote host closed the connection]
AnonGuy has left #ruby [#ruby]
<ed_t> zenspiders looks good
<hanmac1> ed_t:
<hanmac1> >> a = 1; a-2
<eval-in__> hanmac1 => -1 (https://eval.in/218347)
<hanmac1> >> a = 1; a - 2
<eval-in__> hanmac1 => -1 (https://eval.in/218348)
<hanmac1> >> a = 1; a -2
<eval-in__> hanmac1 => -1 (https://eval.in/218349)
roolo has joined #ruby
quimrstorres has joined #ruby
<hanmac1> hmok it works, but i did a crash for that similar some time ago ...
sailias has joined #ruby
zz_jrhorn424 is now known as jrhorn424
yfeldblum has joined #ruby
<ed_t> Thanks. The help is very much appreciated. Off to study/play/learn.
kedare has quit [Quit: WeeChat 1.0.1]
axl_ has quit [Quit: axl_]
axl_ has joined #ruby
Timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
tagrudev has quit [Remote host closed the connection]
iyan has quit [Remote host closed the connection]
Pupeno_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
failshell has joined #ruby
arrubin has joined #ruby
sinkensabe has quit [Remote host closed the connection]
mary5030 has joined #ruby
Takle_ has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
sdegutis has quit [Quit: Leaving...]
elaptics is now known as elaptics`away
failshell has quit [Client Quit]
ki0 has quit [Remote host closed the connection]
ki0 has joined #ruby
moritzs has joined #ruby
almostworking has quit [Ping timeout: 255 seconds]
Timgauthier has joined #ruby
davedev24_ has joined #ruby
pasties has joined #ruby
robustus is now known as robustus|Off
troulouliou_dev has quit [Remote host closed the connection]
Hightower666 has quit [Ping timeout: 265 seconds]
djstorm has joined #ruby
Timgauthier has quit [Max SendQ exceeded]
luckyruby has joined #ruby
freerobby has joined #ruby
spastorino has joined #ruby
livathinos has quit []
Takle has joined #ruby
TPBallbag has joined #ruby
terlar has quit [Read error: Connection reset by peer]
boombadaroomba has joined #ruby
moritzs has quit [Ping timeout: 255 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
AnonGuy has joined #ruby
livathinos has joined #ruby
TPBallbag has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
Fractional has joined #ruby
ta has joined #ruby
AnonGuy has quit []
Takle has quit [Remote host closed the connection]
hanmac1 has quit [Quit: Leaving.]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
boombadaroomba has quit [Ping timeout: 244 seconds]
pwestlun1 has quit [Ping timeout: 255 seconds]
Macaveli has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Takle has joined #ruby
xanderwebs has joined #ruby
Xeago_ has joined #ruby
cassianoleal has joined #ruby
larissa has quit [Quit: Leaving]
gsd has joined #ruby
CustosLimen has quit [Ping timeout: 244 seconds]
iwishiwerearobot has joined #ruby
failshell has joined #ruby
weemsledeux has joined #ruby
Xeago has quit [Ping timeout: 244 seconds]
sk87 has joined #ruby
sinkensabe has joined #ruby
_maes_ has joined #ruby
oo_ has quit [Remote host closed the connection]
mikepack has joined #ruby
quimrstorres has quit [Remote host closed the connection]
samuel02 has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
sigurding has joined #ruby
jimbach has quit [Remote host closed the connection]
oo_ has joined #ruby
lampd1 has quit []
mikepack has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
bal has quit [Quit: bal]
rshetty has joined #ruby
moritzs has joined #ruby
ericli has quit [Quit: Leaving]
samuel02 has joined #ruby
Hijiri has joined #ruby
agrinb has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
dc_ has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 264 seconds]
Xeago_ has quit [Remote host closed the connection]
Wolland has joined #ruby
sevenseacat has quit [Remote host closed the connection]
ndrei has joined #ruby
sambao21 has joined #ruby
kobain has quit [Ping timeout: 256 seconds]
techsethi has quit [Ping timeout: 250 seconds]
mozzarel1 is now known as mozzarella
davidhq_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thezanke has joined #ruby
robustus|Off is now known as robustus
gregf has quit [Quit: WeeChat 1.0.1]
agrinb has quit [Ping timeout: 272 seconds]
arup_r has joined #ruby
Wolland has quit [Ping timeout: 244 seconds]
techsethi has joined #ruby
fsapo has joined #ruby
mistermocha has joined #ruby
quimrstorres has joined #ruby
rkalfane has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hijiri has quit [Ping timeout: 265 seconds]
lolmaus has quit [Quit: Konversation terminated!]
tadassce has joined #ruby
Trynemjoel has quit [Ping timeout: 265 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
lolmaus has joined #ruby
samuel02 has quit []
nrsk has joined #ruby
dkb20k has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mkrank has quit [Read error: Connection reset by peer]
Pupeno has quit [Remote host closed the connection]
beneggett has joined #ruby
nfk has joined #ruby
yfeldblum has joined #ruby
Flyingdog has quit [Ping timeout: 260 seconds]
beneggett has quit [Client Quit]
jrhorn424 is now known as zz_jrhorn424
Takle has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
oo_ has joined #ruby
sk87 has joined #ruby
robustus is now known as robustus|Off
sambao21 has joined #ruby
sigurding has quit [Quit: sigurding]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sk87 has quit [Client Quit]
iceden has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
tadassce has quit [Quit: leaving]
sk87 has joined #ruby
kobain has joined #ruby
freerobby has joined #ruby
Trynemjoel has quit [Ping timeout: 265 seconds]
govg has quit [Quit: leaving]
Takle has joined #ruby
Trynemjoel has joined #ruby
timonv_ has quit [Remote host closed the connection]
tadassce has joined #ruby
dangerousdave has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jimbach has joined #ruby
dangerousdave has quit [Client Quit]
treehug88 has quit []
fabrice31 has quit [Remote host closed the connection]
renderful has joined #ruby
lolmaus_ has joined #ruby
dangerousdave has joined #ruby
Luser_ has joined #ruby
oo_ has quit [Ping timeout: 245 seconds]
speaking1ode is now known as speakingcode
lxsameer has joined #ruby
<Luser_> Hey guys. I've got a for loop which takes two integers as arguments eg: for num in a..b and inside it i want to check if square root of num is 'integer', but i dont know how to do it because Math.sqrt(num) converts it to float even if its 4.0 for example
<Luser_> Any ideas how to solve it?
dangerousdave has quit [Client Quit]
<Luser_> Forcing it .to_i doesn't help either obviously.
lolmaus has quit [Ping timeout: 240 seconds]
livathin_ has joined #ruby
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
phrozen77 has joined #ruby
phrozen77 has quit [Changing host]
<Luser_> if Math.sqrt(num) % 1 == 0 is that a good way to solve it?
moted has quit []
mistermocha has quit [Remote host closed the connection]
larissa has joined #ruby
<crome> >> 4.1.integer?
<eval-in__> crome => false (https://eval.in/218360)
mostlybadfly is now known as jade_jolie
<crome> >> 4.0.integer?
<eval-in__> crome => false (https://eval.in/218361)
<crome> oh well
<Luser_> Yeah.
jade_jolie is now known as mostlybadfly
mikepack has joined #ruby
<apeiros> Luser_: a) .round it, square it, and compare to original value
siwica has joined #ruby
zz_jrhorn424 is now known as jrhorn424
<apeiros> Luser_: b) .round it and compare difference to unrounded number. note that small deviations are possible, so you should make a delta comparison
livathinos has quit [Ping timeout: 255 seconds]
Hightower_ has quit [Ping timeout: 245 seconds]
Trynemjoel has quit [Ping timeout: 265 seconds]
livathin_ has quit [Ping timeout: 244 seconds]
pwestlun1 has joined #ruby
moritzs has quit [Ping timeout: 245 seconds]
<tercenya> _luser: if you know that the item is always Float, you could check #denominator == 1
abuzze has quit [Remote host closed the connection]
kobain has quit [Read error: Connection timed out]
moted has joined #ruby
kobain has joined #ruby
abuzze has joined #ruby
<tercenya> not sure if modulo is faster or not
<apeiros> tercenya: not reliable
<apeiros> >> Math.sin(Math::PI).denominator
<eval-in__> apeiros => 18446744073709551616 (https://eval.in/218366)
<apeiros> sin(π) is zero
Kricir has joined #ruby
kobain has quit [Max SendQ exceeded]
<tercenya> that's only because Math::PI != π
<apeiros> floats are inaccurate. testing them for perfect accuracy is futile.
Hightower666 has joined #ruby
<apeiros> 17:32 tercenya: that's only because Math::PI != π # same applies to most float operations
kobain has joined #ruby
<apeiros> hence futile/misguided to try to make absolute tests against them
<havenwood> So let
<siwica> How do I pass a function to a self defined method?
* apeiros afk, back in 30
apeiros has quit [Remote host closed the connection]
<havenwood> *So let's switch to Rationals. ;)
kobain has quit [Max SendQ exceeded]
aspires has joined #ruby
TomyWork has quit [Ping timeout: 250 seconds]
patrick99e99 has joined #ruby
kobain has joined #ruby
apeiros has joined #ruby
<tercenya> ok, an improvement would be to check if (Math.sqrt(num).to_i)^2 == num, which would prove that e==0
<tercenya> meaning the conversion to float had no effect on the calculation
kobain has quit [Max SendQ exceeded]
abuzze has quit [Ping timeout: 245 seconds]
kobain has joined #ruby
TPBallbag has joined #ruby
kobain has quit [Max SendQ exceeded]
mistermocha has joined #ruby
kobain has joined #ruby
dseitz has joined #ruby
Brothmars has quit [Quit: Be back later ...]
<tercenya> >> Math::PI.finite?
<eval-in__> tercenya => true (https://eval.in/218376)
<tercenya> ORLY
sinkensabe has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 244 seconds]
patrick99e99 has quit [Ping timeout: 244 seconds]
beneggett has joined #ruby
loc22 has joined #ruby
TPBallbag has quit [Ping timeout: 240 seconds]
<benzrf> >> Math.sin(Math::PI)
<eval-in__> benzrf => 1.2246063538223773e-16 (https://eval.in/218378)
loc22 has quit [Client Quit]
<benzrf> dang thats tinhy
dangerousdave has joined #ruby
almostworking has joined #ruby
benzrf is now known as benzrf|offline
jrhorn424 is now known as zz_jrhorn424
almostworking has left #ruby [#ruby]
geggam has joined #ruby
<siwica> How can I pass a function as an argument to another function?
tadassce has quit [Read error: Connection reset by peer]
mpistone has joined #ruby
tadassce has joined #ruby
<beneggett> siwica: pass it as a block
oo_ has joined #ruby
<siwica> beneggett: ok, so how can I call the function of the block?
Pumukel has joined #ruby
<siwica> assuming that I dont know its name
jimmyhoughjr has joined #ruby
gsd has joined #ruby
skolman_ has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ankhers has joined #ruby
<beneggett> siwica: &block.call within the method you are passing the block to
<siwica> ok
rshetty has quit [Remote host closed the connection]
<beneggett> siwica: I'm not exactly sure what you're trying to do, but this might help: http://www.skorks.com/2013/04/ruby-ampersand-parameter-demystified/
<siwica> can I also pass multiple functions that way?
tlarevo has joined #ruby
<beneggett> siwica: it's all about passing blocks to methods, etc..
<siwica> ok, I will do some reading
aspiers has joined #ruby
<beneggett> siwica: good luck, if you care to show code, I might actually be able to help, rather than pointing at references
red_horned_rihno has joined #ruby
<siwica> beneggett: thank you
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<siwica> are u gonna be around for a while?
<beneggett> I'm pretty much always on, but not necessarily staring at the channel
<siwica> Ok, sounds good. I might ocme back to you later
<beneggett> if I'm around, I'll respond, if not I'll get back to you when i am
<beneggett> sure thing
DTSCode has joined #ruby
treehug88 has joined #ruby
gaganjyot has joined #ruby
skolman_ has quit [Ping timeout: 256 seconds]
oo_ has quit [Ping timeout: 245 seconds]
Trynemjoel has joined #ruby
red_horned_rihno has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
mistermocha has quit [Ping timeout: 265 seconds]
joonty has quit [Quit: Leaving]
gaganjyot has quit [Ping timeout: 256 seconds]
i_s has joined #ruby
josephndenton has joined #ruby
freerobby has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
IrishGringo has quit [Ping timeout: 256 seconds]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
moritzs has joined #ruby
cantonic has joined #ruby
Trynemjoel has quit [Ping timeout: 265 seconds]
sk87 has joined #ruby
stunder has joined #ruby
danjordan has quit [Quit: danjordan]
Wolland has joined #ruby
josephndenton has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
danjordan has joined #ruby
oo_ has joined #ruby
enebo has quit [Quit: enebo]
triple_b has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
benzrf|offline is now known as benzrf
rkalfane has joined #ruby
sailias1 has joined #ruby
timonv_ has quit [Remote host closed the connection]
sailias has quit [Read error: Connection reset by peer]
ghostmoth has joined #ruby
poweratom_ has joined #ruby
luksaur has joined #ruby
Pupeno_ has joined #ruby
apeiros has joined #ruby
timonv_ has joined #ruby
EminenceHC has joined #ruby
<EminenceHC> I am using the roo gem to parse an imported excel file and create records in the DB. My excel file has a lot of columns I would like to simply ignore. What is the best approach to do this? https://gist.github.com/EminenceHC/cd0fc16d20baea2f941c
Wolland has quit [Ping timeout: 255 seconds]
sdegutis has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
<sdegutis> Is it possible to use variables inside a Middleman frontmatter?
Pupeno has quit [Ping timeout: 265 seconds]
yelluke has joined #ruby
gaganjyot has joined #ruby
Brothmars has joined #ruby
timonv_ has quit [Remote host closed the connection]
gaganjyot has quit [Remote host closed the connection]
D9 has joined #ruby
gaganjyot has joined #ruby
Pupeno_ has quit [Remote host closed the connection]
poweratom_ has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
Hijiri has joined #ruby
Trynemjoel has joined #ruby
Morkel has quit [Quit: Morkel]
lolmaus_ has quit [Quit: Konversation terminated!]
yelluke has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
yfeldblum has joined #ruby
baroquebobcat has joined #ruby
poweratom_ has joined #ruby
aspires has quit []
yelluke has joined #ruby
ramfjord has joined #ruby
danjordan has quit [Quit: danjordan]
Brothmars has quit [Quit: Be back later ...]
danjordan has joined #ruby
wallerdev has joined #ruby
moritzs has quit [Ping timeout: 272 seconds]
dkb20k has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
Luser_ has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
Trynemjoel has quit [Ping timeout: 265 seconds]
* lupine still uses system ruby religiously
yfeldblum has quit [Ping timeout: 258 seconds]
<lupine> it's nice to be able to lean on debian for patches
Takle has quit [Read error: Connection reset by peer]
klaut_ has joined #ruby
Takle_ has joined #ruby
cpruitt has joined #ruby
klaut has quit [Ping timeout: 264 seconds]
joshua__ has joined #ruby
iamjarvo has joined #ruby
it0a has quit [Quit: WeeChat 1.0.1]
<joshua__> Hey guys, I have an array and want to instantiate a new empty array for each of those objects. e.g. ['a', 'b'].each { |x| x = Array.new }
it0a has joined #ruby
yelluke has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<joshua__> I know I'm doing something stupid...
elaptics is now known as elaptics`away
<jhass> joshua__: Array.new(array.size) { [] }, but this doesn't sound like your actual problem
it0a has quit [Client Quit]
kaspergrubbe has quit [Ping timeout: 245 seconds]
it0a has joined #ruby
<joshua__> jhass: not following you there..
oleo__ has joined #ruby
skolman_ has joined #ruby
Trynemjoel has joined #ruby
SCHAAP137 has joined #ruby
<jhass> you described a solution you think you need, not its underlying problem
Takle_ has quit [Ping timeout: 255 seconds]
<apeiros> tercenya: should not use .to_i there. to_i truncates.
<apeiros> >> 5.9999.to_i
<eval-in__> apeiros => 5 (https://eval.in/218387)
zz_jrhorn424 is now known as jrhorn424
<apeiros> delta comparisons of x with int x always: (x.round-x).abs <= EPSILON
<apeiros> where you choose a proper value for your use-case for epsilon
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<Hanmac> joshua__: oO ae you try to asign local variables?
jwang__ has quit [Ping timeout: 244 seconds]
<joshua__> Hanmac: yes
<apeiros> joshua__: local variables are not a hash. use a hash.
<Hanmac> joshua__: i just say: DONT
<joshua__> lol, ok
oleo is now known as Guest82659
<joshua__> my ruby is very very rusty
tier has quit [Remote host closed the connection]
<apeiros> I know of precisely one use case where dynamically assigning locals is remotely acceptable: template engines.
dkb20k has quit [Ping timeout: 258 seconds]
jxf has quit [Ping timeout: 260 seconds]
Guest82659 has quit [Ping timeout: 245 seconds]
<apeiros> and there you'd use local_variable_set on the binding object you use to eval the compiled template (newer rubies only - dirty tricks necessary for older rubies)
neoxquick has joined #ruby
DrCode has quit [Remote host closed the connection]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
oo_ has joined #ruby
Trynemjoel has quit [Ping timeout: 265 seconds]
bricker`work has joined #ruby
lw has joined #ruby
lw has quit [Remote host closed the connection]
sk87 has joined #ruby
User458764 has quit [Ping timeout: 255 seconds]
yelluke has joined #ruby
tvw has quit []
alex88 has quit []
tvw has joined #ruby
klaas has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
maestrojed has joined #ruby
sk87 has quit [Client Quit]
spyderman4g63 has joined #ruby
Trynemjoel has joined #ruby
DrCode has joined #ruby
DrCode has quit [Remote host closed the connection]
yelluke has left #ruby [#ruby]
oo_ has quit [Ping timeout: 244 seconds]
ctp has quit [Quit: Connection reset by peer... Isn't he that short little Mexican with the wire cutters heading your way?]
DrCode has joined #ruby
roolo has quit [Remote host closed the connection]
<amigo99> hi all, i wrote a gem that shows you the exact file:line of an ERB/haml template that rendered a DOM element - https://github.com/redgetan/view_inspect
<amigo99> feedback welcome
troyready has joined #ruby
_maes_ has joined #ruby
allcentury has quit [Ping timeout: 272 seconds]
roolo has joined #ruby
viet_power has joined #ruby
spyderman4g63 has quit [Ping timeout: 256 seconds]
DrCode has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 245 seconds]
<EminenceHC> I am using the roo gem to parse an imported excel file and create records in the DB. My excel file has a lot of columns I would like to simply ignore. What is the best approach to do this? https://gist.github.com/EminenceHC/cd0fc16d20baea2f941c
axl_ has quit [Quit: axl_]
joshua__ has quit [Quit: Page closed]
freerobby has quit [Quit: Leaving.]
jwang__ has joined #ruby
dopie has joined #ruby
Trynemjoel has quit [Ping timeout: 265 seconds]
bMalum has joined #ruby
DrCode has joined #ruby
drawingthesun has quit [Ping timeout: 245 seconds]
dc_ has joined #ruby
govg has joined #ruby
Hightower_ has joined #ruby
marcdel has joined #ruby
mskaesz has quit [Quit: Leaving...]
marcdel has quit [Client Quit]
spyderman4g63 has joined #ruby
Trynemjoel has joined #ruby
mikecmpbll has quit [Ping timeout: 258 seconds]
DrCode has quit [Remote host closed the connection]
tadassce_ has joined #ruby
jrhorn424 is now known as zz_jrhorn424
thagomizer has joined #ruby
patrick99e99 has joined #ruby
timonv_ has joined #ruby
ndrei has joined #ruby
tadassce has quit [Ping timeout: 245 seconds]
DrCode has joined #ruby
mtakkman has joined #ruby
sdegutis has quit [Quit: Leaving...]
D9 has quit [Ping timeout: 255 seconds]
abuzze has joined #ruby
andikr has quit [Remote host closed the connection]
thezanke has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
ql6wlld has quit [Read error: Connection reset by peer]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abuzze has quit [Ping timeout: 265 seconds]
<mary5030> i had a quick question how can i wrap this in #any? : get_some_device(device_number.to_i).include?(some_array_of_numbers)
Spami has quit [Quit: This computer has gone to sleep]
chthon has quit [Ping timeout: 265 seconds]
<mary5030> so basically how can i wrap this include in an Enumerable#any?
<apeiros> mary5030: why?
oo_ has quit [Ping timeout: 255 seconds]
<mary5030> because include? won't work
boombadaroomba has joined #ruby
<apeiros> and why does include? not work?
<mary5030> because i am passing array
viet_power has quit [Ping timeout: 264 seconds]
<apeiros> sure that's the only reason? what does get_some_device(device_number.to_i) return?
Trynemjoel has quit [Ping timeout: 265 seconds]
Gadgetoid has quit [Ping timeout: 245 seconds]
<mary5030> ['products']['subattributes'].map { |attr| attr['id'] }.map(&:to_i)
<apeiros> I'll translate that answer to: "an array of integers". correct?
flobin has joined #ruby
<mary5030> yes
<flobin> hi everyone
<apeiros> mary5030: so what do you want? check if all integers of some_array_of_numbers occur in the result? or only if some occur?
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mary5030> if any
<flobin> so I have a bunch of .less files that I’d like to convert to .scss, and as far as I could see, this rakefile is the only automated solution to doing that: https://gist.github.com/rosskevin/ddfe895091de2ca5f931
<mary5030> as long as any of them is in the array i am good
Eiam has joined #ruby
<flobin> however, I don’t know Ruby, so I was wondering if someone would mind walking me through using this rakefile
<apeiros> mary5030: use Array's set methods then. O(n) instead of O(n^2)
tier has joined #ruby
Trynemjoel has joined #ruby
<apeiros> !(ary1 & ary2).empty? # <-- shares values
allcentury has joined #ruby
<mary5030> sadly i don't understand this
<kenichi> apeiros: nice
diegoviola has joined #ruby
<apeiros> mary5030: if you ask a qualified question, I'll try to answer it
Hobogrammer has joined #ruby
<kenichi> irb
<apeiros> >> [1,2,3,4] & [2,4,6]
<eval-in__> apeiros => [2, 4] (https://eval.in/218392)
beneggett has joined #ruby
Gadgetoid has joined #ruby
<mary5030> !(get_some_device(device_number.to_i)&(some_array_of_numbers))
<mary5030> ?
<mary5030> !(get_some_device(device_number.to_i)&(some_array_of_numbers)).empty?
<apeiros> yes
<mary5030> is this what you suggest
<mary5030> okay
jthomp has joined #ruby
Hightower_ has quit [Ping timeout: 265 seconds]
<apeiros> I prefer some whitespace around &, but that's just personal preference
sambao21 has quit [Quit: Computer has gone to sleep.]
<mary5030> okay, so you think that might look better then using any
<mary5030> ?
<apeiros> it's also more efficient.
momomomomo has quit [Quit: momomomomo]
<mary5030> i see
razieliyo_ has joined #ruby
freerobby has joined #ruby
_d has joined #ruby
<apeiros> if you didn't understand the "O(n) vs. O(n^2)" I'd advise to read up on big-o notation
Hightower_ has joined #ruby
<apeiros> it's a valuable tool in comparing complexity of different approaches
<mary5030> okay
<mary5030> thanks very much
Wolland has joined #ruby
<apeiros> yw
Trynemjoel has quit [Ping timeout: 265 seconds]
<mary5030> apeiros: out of curiosity how would this look like if i wrapped it with any?
<mary5030> because a friend suggested but i didn't know where and how this could be wrapped with any?
<apeiros> ary.any? { |item| other_ary.include?(item) }
rshetty has joined #ruby
<gregf__> >> [1,2,3,4].select { |val| [2,4,6].include?(val) }
<eval-in__> gregf__ => [2, 4] (https://eval.in/218398)
razieliyo has quit [Read error: Connection reset by peer]
<gregf__> ah nevrmind, & is better :/
tadassce_ has quit [Quit: leaving]
yfeldblum has joined #ruby
Soda has joined #ruby
Trynemjoel has joined #ruby
lkba has joined #ruby
cassianoleal has quit [Quit: (null)]
oo_ has joined #ruby
mpistone has quit [Read error: Connection reset by peer]
troyready has quit [Ping timeout: 255 seconds]
thezanke has joined #ruby
Wolland has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
mpistone has joined #ruby
<mary5030> thanks so much apeiros :)
agrinb has joined #ruby
livathinos has joined #ruby
maoko has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
sambao21 has quit [Client Quit]
maoko has quit [Client Quit]
livathinos has quit [Remote host closed the connection]
sk87 has joined #ruby
rshetty has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 244 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sk87 has quit [Client Quit]
agrinb has quit [Ping timeout: 255 seconds]
ghr has joined #ruby
davy_ has joined #ruby
sambao21 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
owen2 has joined #ruby
levity_island has joined #ruby
yelluke has joined #ruby
freerobby has quit [Quit: Leaving.]
clarkk has joined #ruby
Trynemjoel has quit [Ping timeout: 265 seconds]
econerd4ever has joined #ruby
cndiv has joined #ruby
yelluke has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
Pumukel has quit [Ping timeout: 272 seconds]
ta has quit [Ping timeout: 258 seconds]
dkb20k has joined #ruby
beneggett has joined #ruby
Trynemjoel has joined #ruby
troyready has joined #ruby
jarjar_prime has joined #ruby
altamic has joined #ruby
jespada has quit [Ping timeout: 264 seconds]
jarjar_prime has quit [Client Quit]
<siwica> using blocks I understand it is possible to pass a function to another function like here: https://gist.github.com/anonymous/8732155a6c1323fc5e6c
<siwica> Is it also possible to pass multiple functions? If yes, how?
ki0 has quit [Ping timeout: 264 seconds]
<siwica> In my case I want to pass "add" to "foo" aswell
Mohan__ is now known as Mohan
mattstratton has joined #ruby
cpruitt has quit [Quit: cpruitt]
Mohan has quit [Changing host]
Mohan has joined #ruby
Mohan is now known as Guest87696
paulfm has joined #ruby
dkb20k has quit [Ping timeout: 264 seconds]
dumdedum has quit [Ping timeout: 250 seconds]
Guest87696 is now known as Mohan
ta has joined #ruby
emmesswhy has joined #ruby
cpruitt has joined #ruby
Hightower666 has quit [Ping timeout: 258 seconds]
haylon_ has joined #ruby
<eam> >> def foo(array, a, b, c) array.map { |e| [a.call(e), b.call(e), c.call(e)] } end; foo([1,2,3], Proc.new {|x| x*x}, Proc.new {|x| x+x}, Proc.new {|x| x+1})
<eval-in__> eam => [[1, 2, 2], [4, 4, 3], [9, 6, 4]] (https://eval.in/218401)
aspiers has quit [Quit: dinner time]
<eam> siwica: you can freely reference and pass around functions
bMalum_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
<siwica> eam: ah, ok. I thought this would only be possible using blocks
<siwica> this is much better and easier
mtakkman has quit [Remote host closed the connection]
wallerdev has joined #ruby
JohnBat26 has joined #ruby
bMalum has quit [Ping timeout: 244 seconds]
bMalum_ is now known as bMalum
kireevco has joined #ruby
clarkk has quit [Quit: Leaving.]
<eam> >> def foo(values, functions) values.map {|e| functions.map {|f| f.call(e)}} end; foo([1,2,3],[Proc.new {|x| x+x}, Proc.new {|x| x+1}])
<eval-in__> eam => [[2, 2], [4, 3], [6, 4]] (https://eval.in/218404)
Trynemjoel has quit [Ping timeout: 265 seconds]
weaksauce has joined #ruby
mtakkman has joined #ruby
rpag has quit [Ping timeout: 245 seconds]
poulet_a has joined #ruby
Trynemjoel has joined #ruby
fr1eza has joined #ruby
ptrrr has joined #ruby
pandaant has quit [Quit: Lost terminal]
pandaant has joined #ruby
melik has joined #ruby
haylon_ has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
cndiv has quit [Ping timeout: 272 seconds]
jheg has joined #ruby
mpistone has quit [Read error: No route to host]
mpistone has joined #ruby
claymore has joined #ruby
m8 has joined #ruby
dkphenom has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
abuzze has joined #ruby
gr33n7007h has joined #ruby
jimmyhoughjr has quit [Quit: Textual IRC Client: www.textualapp.com]
<siwica> having an object how can I get an array of all methods that can be called on it?
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> .methods
<gr33n7007h> obj.public_methods
<siwica> ok, thanks :)
ghr has quit [Ping timeout: 244 seconds]
clauswitt has joined #ruby
<tier> hey, hopefully a simple ruby question here. if i have a version #, like 2.2.x and want to strip off the .x to just get 2.2, what's the simplest way to do that
<tier> do a split on . then rejoin?
altamic has quit [Quit: altamic]
<bricker`work> tier: Why?
<bricker`work> tier: you should use Gem::Version, it's intelligent about version numbers
<bricker`work> Gem::Version.new("2.2.x").segments, for example
<tier> i should have been more specific, the 2.2.x is actually just an attribute in chef so really it's a string i'm trying to split so i can pass it back into a url
jimmyhoughjr has joined #ruby
bMalum has quit [Quit: bMalum]
zz_jrhorn424 is now known as jrhorn424
clauswitt has quit [Client Quit]
clauswitt has joined #ruby
<tier> ah i think i got it
<tier> byteslice method will easily hack up a string
dseitz has joined #ruby
timonv_ has quit [Remote host closed the connection]
kireevco has quit [Quit: Leaving.]
Takle has joined #ruby
<apeiros> tier: you use byteslice instead of normal slice (or []) because…?
oo_ has joined #ruby
dumdedum has joined #ruby
Soda has quit [Remote host closed the connection]
dangerousdave has joined #ruby
<shevy> guys let's kick some ass
larissa has quit [Ping timeout: 264 seconds]
<tier> good question, probably because it's the first thing i found in the documentation :)
CustosLimen has joined #ruby
<tier> foo[0,3] gets the same thing eh
<apeiros> only partially true
cndiv has joined #ruby
aspires has joined #ruby
<apeiros> [] operates on characters
<apeiros> byteslice operates on bytes
<ericwood> hey what's the cool HTTP lib to use these days that does session/cookie management?
<ericwood> mechanize?
oo_ has quit [Ping timeout: 245 seconds]
knotty66 has left #ruby [#ruby]
Trynemjoel has quit [Quit: Quitting]
larissa has joined #ruby
TPBallbag has joined #ruby
djbkd has joined #ruby
<apeiros> no idea about "cool", but mechanize does that. yes.
<ericwood> basically I want to authenticate and hold onto the session for subsequent requests
<toretore> the cool one would be proxygen
Trynemjoel has joined #ruby
<toretore> sessions aren't that complicated.. it's just a header sent back and forth
sinequanon has joined #ruby
hamakn has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<ericwood> yeah, but if someone did a good job with a lib for it I don't want to reinvent it for the dumb stuff I'm about to write :)
hamakn has joined #ruby
<siwica> I want to have a function foo(a,f) with f being an optional argument that by default is a method that always returns true. How can I do this?
ctp has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
<toretore> siwica: gist your real code
rdark has quit [Quit: leaving]
<siwica> toretore: there is no real code yet
x1337807x has joined #ruby
klaut_ has quit [Remote host closed the connection]
<toretore> so your function is actually going to be called "foo" with arguments "a" and "f"?
<benzrf> foo as fuck
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Wolland has joined #ruby
abuzze has quit [Remote host closed the connection]
<siwica> toretore: I will make a gist, one moment
abuzze has joined #ruby
<sinequanon> siwica: so if "f" is provided, what do you do with it?
<apeiros> siwica: f? not &f?
<apeiros> what type is `f`? instance of Method?
agrinb has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
hamakn has quit [Ping timeout: 255 seconds]
<toretore> def foo(a, &f); f ||= ->{ true } end; probably
<apeiros> siwica: pass in an object which defines call and returns true
<apeiros> but why you're not using a block is beyond me
<toretore> you'd be better off using a separate branch for that case
<apeiros> +1
TPBallbag has quit [Ping timeout: 272 seconds]
<toretore> instead of calling the block n times when it's not necessary
<siwica> apeiros: I want to be able to call foo([1,2,3,4,5]) and get returned all values of the array
mikecmpbll has joined #ruby
<apeiros> siwica: is that supposed to be the answer to "why aren't you using a block?"?
<toretore> if block_given?; use block; else; dont use block; end
<apeiros> because if so - it's not.
bayed has quit [Quit: Connection closed for inactivity]
<siwica> apeiros: no it is not
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<toretore> i think it's not
<siwica> apeiros: because I might want to further abstract it do actually do this with two methods that I pass to foo
abuzze has quit [Ping timeout: 264 seconds]
<siwica> *do -> to
cantonic has quit [Quit: cantonic]
agrinb has quit [Ping timeout: 244 seconds]
Wolland has quit [Ping timeout: 258 seconds]
<banister> apeiros i bought mario 3d world
<apeiros> banister: worth it?
<banister> apeiros idk bought it 2 weeks ago and haven't played it yet
<apeiros> lol
claw has joined #ruby
<banister> apeiros i tried to play it with my woman but she didn't really dig it
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DrCode has quit [Remote host closed the connection]
x1337807x has joined #ruby
Trynemjoel has quit [Ping timeout: 265 seconds]
x1337807x has quit [Max SendQ exceeded]
jrhorn424 is now known as zz_jrhorn424
ptrrr has quit [Quit: ptrrr]
sambao21 has quit [Quit: Computer has gone to sleep.]
abuzze has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
codezomb has joined #ruby
x1337807x has joined #ruby
aspires has quit []
Trynemjoel has joined #ruby
DrCode has joined #ruby
oo_ has joined #ruby
Soda has joined #ruby
beneggett has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 256 seconds]
beneggett has joined #ruby
dangerousdave has joined #ruby
mtakkman has quit [Remote host closed the connection]
aspires has joined #ruby
zz_jrhorn424 is now known as jrhorn424
oo_ has quit [Ping timeout: 256 seconds]
lolmaus has joined #ruby
BadQuanta has joined #ruby
chiel has quit [Ping timeout: 264 seconds]
<toretore> anyone know a good way to remove/ignore duplicates in a stream of values?
j416 is now known as noshi
<yxhuvud> duplicates as in identical objects following each other or removing any object that is recognized?
kaspergrubbe has joined #ruby
quimrstorres has quit [Remote host closed the connection]
DrCode has quit [Remote host closed the connection]
<toretore> any value that's equal to another that's been seen previously
claw_ has joined #ruby
<yxhuvud> store everything you have seen in a set. (or at least store enough to recognize it)
<toretore> i understand that i'm going to have to keep track of them, but i'm looking for an efficient way to do so
Insanity133 has joined #ruby
<apeiros> set/hash, as yxhuvud already said
<toretore> i'm doing that now, but it's slow (unsurprisingly)
<yxhuvud> yes, hash also works (of course, as sets are implemented using hashes)
claw has quit [Ping timeout: 272 seconds]
<apeiros> toretore: then profile
iamjarvo has joined #ruby
DrCode has joined #ruby
<apeiros> you won't get anything faster than O(1). the only things you can optimize is your use-case and your specific implementation.
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<toretore> i know why it's slow, it's because it's checking for duplicates every time it emits
DrCode has quit [Remote host closed the connection]
ptrrr has joined #ruby
<apeiros> toretore: did you profile it? because if not, you only *think* you know.
Insanity133 has quit [Remote host closed the connection]
<apeiros> also, the use-case you describe asks for testing each incoming element separately. if you can bundle up a couple, Array's set operations might become faster.
<toretore> if hsh.include?(obj); emit; end
<apeiros> I thought you wanted to remove them?
Soda has quit [Remote host closed the connection]
<toretore> that's the emit part (not being emitted)
<apeiros> which would be `unless`, not `if`
poulet_a has quit [Quit: Quitte]
<toretore> it's a lazy sequence
DrCode has joined #ruby
lemur has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 265 seconds]
<toretore> generator, whatever you want to call it
<EminenceHC> I am using the roo gem to parse an excel file. .row(1)[0] returns the first value of the first row. However I cant change the value by simply doing foo.row(1)[0] = 'New Value'. What am I doing wrong?
dc_ has quit [Remote host closed the connection]
elcheckito has quit [Quit: WeeChat 1.0.1]
DrCode has quit [Remote host closed the connection]
lemur has joined #ruby
<apeiros> EminenceHC: what did the manual say about changing values?
abuzze has quit [Remote host closed the connection]
<EminenceHC> apeiros: The manual is shit I didnt see it in there.
abuzze has joined #ruby
<apeiros> ok. then I can't help. as I'd go to the manual and read there.
noshi is now known as j416
jenrzzz has joined #ruby
DrCode has joined #ruby
DrCode has quit [Remote host closed the connection]
t_mmyv has joined #ruby
<EminenceHC> apeiros: Manual is not extensive enough :(
moritzs has joined #ruby
Trynemjoel has joined #ruby
DrCode has joined #ruby
<siwica> I understand that I can create an anonymous function like this "f = -> { true }"
momomomomo has joined #ruby
<siwica> how can I create one that accepts an argument?
<toretore> i showed you above
mpistone has quit [Remote host closed the connection]
<apeiros> f = ->(args) { val }
<siwica> toretore: your example was without arguments
lemur has quit [Ping timeout: 265 seconds]
DrCode has quit [Remote host closed the connection]
<toretore> oh
Brothmars has joined #ruby
DrCode has joined #ruby
jottr_ has joined #ruby
DrCode has quit [Remote host closed the connection]
<siwica> apeiros: thanks!
abuzze has quit [Ping timeout: 265 seconds]
j416 is now known as j416_
St_Marx has quit [Ping timeout: 250 seconds]
j416_ is now known as j416
jrhorn424 is now known as zz_jrhorn424
jonathanwallace has quit [Ping timeout: 244 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
moritzs has quit [Ping timeout: 260 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Brothmars has quit [Read error: Connection reset by peer]
larissa has quit [Ping timeout: 258 seconds]
nettoweb_ has joined #ruby
Brothmars has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
levity_island has quit [Quit: levity_island]
skolman_ has quit [Remote host closed the connection]
jimmyhoughjr has joined #ruby
DrCode has joined #ruby
DrCode has quit [Remote host closed the connection]
atomi has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chrishough has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
skolman_ has joined #ruby
dangerousdave has joined #ruby
wallerdev has quit [Quit: wallerdev]
nateberkopec has quit [Quit: Leaving...]
poulet_a has joined #ruby
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
beneggett has quit [Ping timeout: 258 seconds]
zz_jrhorn424 is now known as jrhorn424
kaspergrubbe has joined #ruby
fsapo has quit [Remote host closed the connection]
beneggett has joined #ruby
oo_ has quit [Ping timeout: 258 seconds]
arup_r has quit [Quit: Leaving.]
kaspergrubbe has quit [Remote host closed the connection]
TripTastic is now known as JBreit
dc has joined #ruby
beef-wellington has quit [Ping timeout: 265 seconds]
kaspergrubbe has joined #ruby
St_Marx has joined #ruby
moritzs has joined #ruby
glanotte has joined #ruby
wallerdev has joined #ruby
nateberkopec has joined #ruby
DrCode has joined #ruby
DrCode has quit [Remote host closed the connection]
<siwica> so would that be considered "good" ruby code: https://gist.github.com/anonymous/593599647617a96c8c3a ?
workmad3 has quit [Ping timeout: 255 seconds]
<apeiros> no
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Wolland has joined #ruby
<siwica> ^^
DrCode has joined #ruby
Soda has joined #ruby
<apeiros> a) pseudo function (no use of self), b) superfluous use of lambda construct in `&(->(a) {a == 5}`, c) potential N times calling of a void block, d) use of .call instead of yield (though, required by the way it's currently implemented)
wldcordeiro_ has joined #ruby
DrCode has quit [Remote host closed the connection]
Brothmars has quit [Quit: Be back later ...]
poulet_a has quit [Ping timeout: 258 seconds]
DrCode has joined #ruby
moritzschaefer has joined #ruby
o0oo0o has joined #ruby
<siwica> how would you implement it?
<apeiros> I think toretore already explained it
ChoiKyuSang has quit [Quit: Going offline, see ya! ( www.adiirc.com]
gaganjyot has quit [Quit: Leaving]
noop has quit [Ping timeout: 265 seconds]
DrCode has quit [Remote host closed the connection]
<siwica> I didnt understand "you'd be better off using a separate branch for that case"
ChoiKyuSang has joined #ruby
pyon has quit [Ping timeout: 240 seconds]
o0oo0o has quit [Client Quit]
Junaos has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
o0oo0o has joined #ruby
<apeiros> oh, missed an indent and thus an end. updating…
sambao21 has joined #ruby
<apeiros> updated.
balazs has quit [Ping timeout: 258 seconds]
DrCode has joined #ruby
balazs has joined #ruby
<apeiros> you could argue about the whole block handling logic being an unnecessary replication of .select, or .lazy.select
triple_b has joined #ruby
tier_ has joined #ruby
DrCode has quit [Remote host closed the connection]
<siwica> apeiros: hm ok...
ton31337 has joined #ruby
skolman_ has quit [Remote host closed the connection]
tlarevo has quit [Remote host closed the connection]
<apeiros> also monkey patching Enumerable can be frowned upon. can be lessened by using refinements.
<siwica> In my special case I have defined a number of relations rel1(a,b), rel2(a,b), ... that either return true or false
<ton31337> Any ideas why c.gets is empty always?
<ton31337> I have the same script in another location and it works
sambao21 has quit [Client Quit]
tlarevo has joined #ruby
DrCode has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DrCode has quit [Remote host closed the connection]
tier has quit [Ping timeout: 256 seconds]
dangerousdave has joined #ruby
Soda has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
stunder has quit [Remote host closed the connection]
sambao21 has joined #ruby
DrCode has joined #ruby
<siwica> To foo I want to pass an array of elements and do something with each element if the passed relation holds true for each element of the array and a *special*element
momomomomo has quit [Ping timeout: 272 seconds]
lolmaus has quit [Quit: Konversation terminated!]
momomomomo_ has joined #ruby
EminenceHC has quit [Remote host closed the connection]
agrinb has joined #ruby
spider-mario has joined #ruby
max96at is now known as max96at|off
tlarevo has quit [Ping timeout: 244 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has quit []
wallerdev has quit [Quit: wallerdev]
sinkensabe has joined #ruby
jrhorn424 is now known as zz_jrhorn424
spyderman4g63 has quit []
andrewlio has quit [Quit: Leaving.]
robustus|Off is now known as robustus
agrinb has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
iwishiwerearobot has quit [Read error: Connection reset by peer]
emmesswhy has quit [Quit: This computer has gone to sleep]
sambao21 has quit [Quit: Computer has gone to sleep.]
iwishiwerearobot has joined #ruby
Musashi007 has joined #ruby
econerd4ever has quit [Read error: Connection reset by peer]
atomical has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
RitterJack has quit [Remote host closed the connection]
spider-mario has joined #ruby
tier_ has quit [Ping timeout: 260 seconds]
<siwica> apeiros: Would you consider that ok? https://gist.github.com/anonymous/9d9f527682b595f45b8a
tier has joined #ruby
AmBienCeD has joined #ruby
AmBienCeD has joined #ruby
dkb20k has joined #ruby
timonv_ has joined #ruby
ramfjord has joined #ruby
nrsk has quit [Remote host closed the connection]
yfeldblum has joined #ruby
sambao21 has joined #ruby
<toretore> apeiros, yxhuvud this reduced it to an acceptable level: `seen = Set.new; prev_size = seen.size; while val = get; seen << val.hash; emit if seen.size > prev_size; end`
<yxhuvud> so << is faster than inclusion check? *sceptical*
<toretore> well, i have to << anyway
<toretore> otherwise the check wouldn't work
<toretore> the faster bit is comparing the size instead of include? and using hash values instead of the actual objects
nrsk has joined #ruby
<apeiros> toretore: adding val.hash instead of val sets you up for false positives.
dkb20k has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
chrishou_ has joined #ruby
<toretore> yes
<apeiros> and if false positives are ok, a bloom filter might be worth a consideration. depends on the details. (bloom filter is O(1) too with a potentially higher constant cost, but lower memory requirements)
chrishough has quit [Ping timeout: 260 seconds]
aspires has quit []
chrishou_ has quit [Client Quit]
<toretore> wait, how does it mean more chance of false positives?
aspires has joined #ruby
<apeiros> not "more". hash doesn't have false positives.
chrishough has joined #ruby
<toretore> then i'm not understanding what you're saying
<apeiros> you're only adding the hash value to your set. hash values can collide. different objects can have the same hash value.
<apeiros> 21:10 apeiros: not "more". hash doesn't have false positives. # <-- Hash, the class
<toretore> doesn't Hash use #hash ?
alvaro_o has joined #ruby
<apeiros> yes. to find the bucket.
<toretore> oh wait
<apeiros> it uses eql? to check for equality.
<toretore> i've been here before
<toretore> yes
<toretore> i remember now
graydot has joined #ruby
<toretore> do you know what the chances of collision are for #hash ?
MattB2 has joined #ruby
<apeiros> impossible to tell
beef-wellington has joined #ruby
<apeiros> for the simple reason that it depends on multiple factors. one of them being the actual implementation of #hash for the given object.
<toretore> sure
<toretore> nm i asked that
triple_b_ has joined #ruby
<apeiros> assuming a perfectly distributed hash value, you can use pidgeon hole algorithm (aka birthday paradoxon) to figure out probability
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
<apeiros> hash value is iirc 32bit
<toretore> but that's the best case
<apeiros> correct
iamjarvo has joined #ruby
zz_jrhorn424 is now known as jrhorn424
aspires has quit [Client Quit]
triple_b has quit [Read error: Connection reset by peer]
jrhorn424 is now known as zz_jrhorn424
spider-mario has quit [Ping timeout: 265 seconds]
emmesswhy has joined #ruby
govg has quit [Read error: Connection reset by peer]
ldnunes has quit [Quit: Leaving]
<apeiros> err, remove "pidgeon hole problem" from above. birthday paradoxon is correct
chrishough has quit [Ping timeout: 244 seconds]
aspires has joined #ruby
jimmyhoughjr has quit [Quit: Textual IRC Client: www.textualapp.com]
skolman has joined #ruby
Guest82 has joined #ruby
rodfersou has quit [Quit: leaving]
<toretore> this is one of those times when i wish i could math
Guest82 has quit [Client Quit]
psyprus has quit [Ping timeout: 258 seconds]
<toretore> or basic algorithms and data structures
<apeiros> all you have to do is go to wikipedia, find the formula, insert the numbers :-p
benzrf is now known as benzrf|offline
<toretore> hah
Guest82 has joined #ruby
<toretore> that's like saying "all you have to do is go to github, find the program and insert the values"
<apeiros> ok, granted, for a couple of calculations, math helps, as you'll need to rearrange the formula to better suit how computer aided calculation works.
psyprus has joined #ruby
Guest82 has quit [Client Quit]
<apeiros> otherwise you'll get no good result due to numeric stability (too small/large floats)
Soda has joined #ruby
chrishough has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
skolman has quit [Ping timeout: 255 seconds]
<apeiros> *numerical
spider-mario has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
<apeiros> fuck, I'm tired. why does this stupid meat machine suffer such bad deterioration?
spider-mario has quit [Remote host closed the connection]
<mozzarella> guys (  ;____;)
ferr has joined #ruby
<apeiros> 1/3 of the time is maintenance time… :-S
<toretore> apeiros: who produced it? maybe ask them
<toretore> ask for a refund
<apeiros> flying spaghetti monster never answered my questions :-|
<apeiros> replacement bodies aren't yet available =(
<jhass> eris did it on "purpose" this way ;)
<toretore> those corporate idiots with their sucky customer service
sinkensabe has quit [Remote host closed the connection]
<toretore> i'd go to a competitor
<apeiros> seems to be a world wide monopoly atm :-<
<toretore> it's all a scam
afhammad has joined #ruby
kedare has joined #ruby
skolman_ has joined #ruby
msmith__ has quit [Ping timeout: 240 seconds]
<apeiros> indeed. no matter what you do, the ultimate achievement is always death.
<siwica> apeiros: just a last question, would you consider that ok? https://gist.github.com/anonymous/9d9f527682b595f45b8a
robustus is now known as robustus|Off
<apeiros> siwica: I don't see the point of doing it that way
spider-mario has joined #ruby
<apeiros> siwica: but as far as I understood, you're only showing part of your real problem. so I don't see the point of talking about it either.
<siwica> There is too much code for the real problem
<apeiros> well, that's your problem.
viet_power has joined #ruby
andrewlio has joined #ruby
<siwica> apeiros: I am aware of using a block for this, but what would be the downside for this solution I gisted?
<apeiros> unnecessary construction of a Hash and a Proc. unnecessary N checks of an if clause.
<apeiros> aside from the already mentioned style issue.
DLSteve has joined #ruby
quimrstorres has joined #ruby
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
<toretore> also, don't call your methods foo
patrick99e99 has quit [Ping timeout: 256 seconds]
quimrstorres has quit [Remote host closed the connection]
<siwica> why not?
<toretore> it doesn't mean anything
<toretore> use a descriptive name
owen2 has quit [Ping timeout: 264 seconds]
<siwica> ok
<siwica> apeiros: but I dont understand "unnecessary N checks of an if clause"
<apeiros> in case of the default value for relation, you check the if on every iteration
godd2 has joined #ruby
<apeiros> and I think this is the third or even fourth time we explain this
cpruitt has quit [Quit: cpruitt]
<siwica> ok, thats true
larissa has joined #ruby
owen2 has joined #ruby
weaksauce has joined #ruby
<siwica> but I thought the time that could be saved by N times "if true" would be neglectible
govg has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
cndiv has quit [Ping timeout: 258 seconds]
chrishough has joined #ruby
<apeiros> you do more than just `if true`
viet_power has quit [Ping timeout: 250 seconds]
lxsameer has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 256 seconds]
Hijiri has quit [Ping timeout: 265 seconds]
<siwica> I dont know how ruby is implemented, but actually it could be just 'if true' in case relation is not passed?!
cpruitt has joined #ruby
chrishough has quit [Client Quit]
Hijiri has joined #ruby
pyon has joined #ruby
atraylen has quit [Ping timeout: 256 seconds]
jhwhite has quit [Quit: jhwhite]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jimmyhoughjr has joined #ruby
jerius has quit [Remote host closed the connection]
Busstech has joined #ruby
<shevy> what is it
<shevy> why are you using if true
jerius has joined #ruby
Trynemjoel has quit [Ping timeout: 265 seconds]
TPBallbag has joined #ruby
<Busstech> Hi all, does anyone know which gems can be used for push notification on Android, Windows phone, Adobe Air clients?
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
<Busstech> I know apn_on_rails covers iOS
decoponyo has quit [Quit: Leaving...]
djbkd has quit [Remote host closed the connection]
D9 has joined #ruby
D9 has quit [Remote host closed the connection]
owen2 has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
User458764 has joined #ruby
josephndenton has joined #ruby
jheg has quit [Quit: jheg]
Vile` has quit [Quit: .]
mbwe has quit [Quit: WeeChat 0.4.2]
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
chrishough has joined #ruby
sigurding has joined #ruby
agrinb has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
Jackneill has quit [Remote host closed the connection]
dc has quit [Remote host closed the connection]
paulfm has quit []
Hobogrammer_ has joined #ruby
maletor has joined #ruby
JBreit has left #ruby ["Leaving"]
siemasieam has joined #ruby
momomomomo_ has quit [Ping timeout: 265 seconds]
Soda has quit [Remote host closed the connection]
siemasieam has quit [Client Quit]
Lewix has joined #ruby
axl_ has joined #ruby
agrinb has quit [Ping timeout: 264 seconds]
emmesswhy has quit [Quit: Leaving]
Hobogrammer has quit [Ping timeout: 260 seconds]
owen2 has joined #ruby
magic_ has quit [Read error: Connection timed out]
Soda has joined #ruby
magic_ has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
larissa has quit [Ping timeout: 245 seconds]
boombadaroomba has joined #ruby
sepp2k has joined #ruby
Hobogrammer_ has quit [Read error: Connection reset by peer]
stunder has joined #ruby
Hobogrammer_ has joined #ruby
Joufflu has joined #ruby
Soda has quit [Remote host closed the connection]
owen2 has quit [Ping timeout: 244 seconds]
sigurding has quit [Quit: sigurding]
djbkd has joined #ruby
jenrzzz has joined #ruby
TPBallbag has quit [Remote host closed the connection]
Soda has joined #ruby
poulet_a has joined #ruby
acidrainfall has joined #ruby
<acidrainfall> Hello!
kedare has quit [Remote host closed the connection]
x1337807x has joined #ruby
<acidrainfall> I'm a total n00b to Ruby, and I'm trying to translate a perl function to a ruby function
x1337807x has quit [Max SendQ exceeded]
<acidrainfall> In perl I can concat string values
ferr has quit [Ping timeout: 265 seconds]
<acidrainfall> like $myfile = '/opt/source/' . $sourcedir . '/filename.txt';
x1337807x has joined #ruby
<acidrainfall> Can I do that in Ruby? I found something that said to use '+'
tvw has quit []
<sinequanon> my_file = "/opt/source/#{source_dir}/filename.txt"
KC9YDN has joined #ruby
<acidrainfall> Ok so now it gets more complicated
<poulet_a> oO
<acidrainfall> This is in a .erb type file
<poulet_a> source += string
cpruitt has quit [Quit: cpruitt]
<acidrainfall> or it is a .erb file
tier has quit [Remote host closed the connection]
<poulet_a> where source and string are String
silkfox has joined #ruby
<acidrainfall> here's the example
poulet_a has quit [Client Quit]
<acidrainfall> <%= snippet('c5-dev-pkg-installs') %>
Morkel has joined #ruby
<shevy> acidrainfall var1 = 'foo'; var1 << ' hey' <-- var1 will now be 'foo hey'
Busstech has quit []
<acidrainfall> I need to change out 'dev' with a different flavor based on a value that can be found in @host.params['flavor']
<shevy> acidrainfall that looks like a method invocation
Pumukel has joined #ruby
<shevy> come again?
<acidrainfall> Right so I want to know if I can use a concat in that way
<shevy> concat on what
<shevy> the string "c5-dev-pkg-installs" ?
tier has joined #ruby
_maes_ has quit [Ping timeout: 240 seconds]
beef-wellington has quit [Read error: Connection reset by peer]
21WAAGIJS has joined #ruby
<acidrainfall> like this: <%= snippet(c5-#{@host.params['flavor
<shevy> btw all perl can do can be done in ruby as well
<shevy> yeah
<shevy> via "#{}"
<acidrainfall> REALLY?!
BTRE has quit [Quit: Leaving]
<acidrainfall> Maybe this transition will be easier than I thought.
<shevy> all #{} in "" will be replaced
<shevy> but only in "" not in ''
cpruitt has joined #ruby
<acidrainfall> that's slick
<acidrainfall> I'll give it a shot
<sinequanon> note that double quotes are required for interpolation
<acidrainfall> Right
BTRE has joined #ruby
<acidrainfall> Righto
<shevy> in your example above <acidrainfall> like this: <%= snippet(c5-#{@host.params['flavor <-- you did not use any ""
chrishough has joined #ruby
<acidrainfall> Yeah I messed up typing
<acidrainfall> also hit enter too early haha
<shevy> that is bound to happen if you let your cat do the typing
<acidrainfall> So snippet("c5-#{@host.params['flavor']}-pkg-installs")
n_blownapart has joined #ruby
<shevy> that should work
<acidrainfall> I wish I had my cat right now, I'm stuck in the office
<sinequanon> that'll work, but it's a little weird to be calling params in your view
paulfm has joined #ruby
<shevy> provided that @host.params['flavor'] provides something sensible :)
<acidrainfall> Have you heard of a project called The Foreman?
nettoweb_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> I only know George Foreman
<acidrainfall> It's a system provisioning / ENC system
<sweeper> mmm
<acidrainfall> So these are for linux kickstarts
<sweeper> I use foreman
<sinequanon> i've heard of Foreman the gem, but not The Foreman
<acidrainfall> and this is a kickstart snippet
<acidrainfall> Well
<acidrainfall> it's theforeman.org
<acidrainfall> maybe they put 'the' on it because of george
<acidrainfall> I use the RPM for install, not the gem, but same thing
dc has joined #ruby
Eiam has quit [Ping timeout: 256 seconds]
<n_blownapart> << can't learn ruby. blocked.
<acidrainfall> Not allowed?
owen2 has joined #ruby
<acidrainfall> sinequanon: So the reason I'm calling @host.params[''] is because I have that defined on a host group / per node basis, each one gets 'flavor' defined
<n_blownapart> http://pastie.org/9701226 just always confused. here line 15 of a rubykoan lesson
<acidrainfall> it's for an old system that I haven't been able to bring up to modern standards yet haha
<acidrainfall> note that it's on centos5
21WAAGIJS has quit [Ping timeout: 265 seconds]
aspires has quit []
Insanity133 has joined #ruby
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
siwica has quit [Remote host closed the connection]
<n_blownapart> why do they name that method like that? ^
siwica has joined #ruby
<sinequanon> n_blownapart: it's a clue
Soda has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
skolman_ has quit [Remote host closed the connection]
tier has quit [Read error: Connection reset by peer]
<n_blownapart> sinequanon: please explain
tier has joined #ruby
Trynemjoel has quit [Ping timeout: 265 seconds]
failshell has quit []
<sinequanon> n_blownapart: it's a clue as to what type of error the assertion will raise
<sinequanon> (the ___ part you're supposed to fill in)
nickjj has quit [Quit: WeeChat 1.0.1]
jdj_dk has joined #ruby
<n_blownapart> sinequanon: I know thanks, but why do they set the name within a method def. it is confusing to me.
Insanity133 has quit [Ping timeout: 245 seconds]
cpruitt has quit [Quit: cpruitt]
JohnBat26 has joined #ruby
<n_blownapart> oh i.e. you cannot set the name in a method definition? sinequanon
<sinequanon> it's perfectly acceptable to call methods from inside other methods
ProductionBeast has joined #ruby
Trynemjoel has joined #ruby
aspires has joined #ruby
skolman_ has joined #ruby
owen2 has quit [Ping timeout: 264 seconds]
<n_blownapart> why do they use 'variables cannot be accessed outside the class' as the name?
<sinequanon> cause that's the name of the test/method, and it's also a clue as to why that test will fail
timonv_ has quit [Remote host closed the connection]
thezanke has left #ruby [#ruby]
thezanke has joined #ruby
<sinequanon> n_blownapart: fido.name will call the instance method #name on the fido object....do you see def name...end anywhere in the class definition?
KC9YDN has quit [Ping timeout: 245 seconds]
<n_blownapart> oh yeah sinequanon so you need attr_accessor :name in the class def... to have it work from within a method.
<n_blownapart> ?
<sinequanon> yeah
<n_blownapart> excellent thanks sinequanon
<sinequanon> np
jxf has joined #ruby
<sinequanon> i think the point that test is trying to make is that fido.name != @name
doritostains has quit [Quit: doritostains]
aclearman037 has quit [Quit: I'm out!]
doritostains has joined #ruby
<apeiros> n_blownapart: pull yourself together! ;-p
kaspergrubbe has quit [Remote host closed the connection]
<n_blownapart> sinequanon: one thing, wouldn't it better to call the method on 15 something else? it seems like it doesn't quite describe the transgression well. apeiros too late for that I'm a geezer.
govg has quit [Quit: leaving]
Takle has joined #ruby
<sinequanon> n_blownapart: i'm not understanding why you're getting hung up on the method name
<apeiros> n_blownapart: in that case - rest in pieces :D
Trynemjoel has quit [Ping timeout: 265 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<apeiros> sorry, couldn't resist
<n_blownapart> apeiros: np !
DLSteve has quit [Quit: Leaving]
DLSteve has joined #ruby
nickjj has joined #ruby
Brothmars has joined #ruby
Trynemjoel has joined #ruby
<n_blownapart> sinequanon: it's fido.name !=name because the lack of the getter/setter, so in the set_name method it is merely a container that cannot be accessed. that is my understanding of it..
tesaf has joined #ruby
<sinequanon> right
jottr_ has quit [Ping timeout: 258 seconds]
<sinequanon> slight correction: it's just the missing getter
<n_blownapart> cool I get it thanks sinequanon << good moniker
<sinequanon> haha thanks
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
momomomomo has joined #ruby
n_blownapart has quit [Remote host closed the connection]
levity_island has joined #ruby
jxf has quit [Ping timeout: 260 seconds]
coderhs has joined #ruby
andrewlio has quit [Quit: Leaving.]
Trynemjoel has quit [Ping timeout: 265 seconds]
coderhs has quit [Client Quit]
ringarin has quit [Ping timeout: 255 seconds]
ctp has joined #ruby
aclearman037 has joined #ruby
Trynemjoel has joined #ruby
riceandbeans has quit [Quit: leaving]
aspires has quit []
aspires has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nettoweb_ has joined #ruby
nettoweb_ has quit [Max SendQ exceeded]
kaspergrubbe has joined #ruby
nettoweb_ has joined #ruby
riceandbeans has joined #ruby
riceandbeans has quit [Changing host]
riceandbeans has joined #ruby
Morkel has quit [Quit: Morkel]
amigo99 has quit [Quit: Leaving]
wallerdev has joined #ruby
djbkd has quit [Remote host closed the connection]
agrinb has joined #ruby
davidhq has joined #ruby
josephndenton has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
tier has quit [Remote host closed the connection]
jdj_dk has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 255 seconds]
jxf has joined #ruby
djbkd has joined #ruby
hakunin has quit [Remote host closed the connection]
tvw has joined #ruby
hakunin has joined #ruby
josephndenton has quit [Ping timeout: 256 seconds]
levity_island has quit [Quit: levity_island]
ndrei has joined #ruby
Pupeno has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
dkb20k has joined #ruby
jottr_ has joined #ruby
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 250 seconds]
momomomomo_ is now known as momomomomo
t_mmyv has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
hakunin has quit [Ping timeout: 258 seconds]
paulfm has quit []
aclearman037 has quit [Quit: I'm out!]
Hijiri has quit [Quit: WeeChat 1.0.1]
allcentury has quit [Ping timeout: 258 seconds]
isaick has joined #ruby
Trynemjoel has quit [Ping timeout: 265 seconds]
dkb20k has quit [Ping timeout: 250 seconds]
robustus|Off is now known as robustus
Eiam has joined #ruby
Trynemjoel has joined #ruby
<mozzarella> can I find every repeating substrings that are longer than 2 characters long inside a string using regexes?
afhammad has quit []
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tier has joined #ruby
luksaur has quit [Quit: gone]
freerobby has joined #ruby
bmurt has quit []
tier has quit [Remote host closed the connection]
Pupeno_ has joined #ruby
techsethi has quit [Quit: techsethi]
freerobby has quit [Client Quit]
jimmyhoughjr has joined #ruby
Pupeno has quit [Ping timeout: 265 seconds]
TPBallbag has joined #ruby
allcentury has joined #ruby
it0a has quit [Quit: WeeChat 1.0.1]
djbkd has quit [Remote host closed the connection]
Ankhers has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
iamjarvo has joined #ruby
robustus is now known as robustus|Off
patrick99e99 has joined #ruby
levity_island has joined #ruby
robbyoconnor has joined #ruby
glanotte has quit [Quit: Textual IRC Client: www.textualapp.com]
Lewix has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has joined #ruby
duggiefresh has quit [Remote host closed the connection]
duggiefresh has joined #ruby
nettoweb_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claymore has quit [Quit: Leaving]
n008f4g_ has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
klaut has joined #ruby
duggiefresh has quit [Ping timeout: 264 seconds]
levity_island has quit [Quit: levity_island]
tesaf has quit [Quit: Lost terminal]
jimms has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beneggett has quit [Ping timeout: 250 seconds]
CustosLimen has quit [Ping timeout: 265 seconds]
beneggett has joined #ruby
thezanke has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Areessell has quit [Quit: (null)]
spacemud has quit [Ping timeout: 256 seconds]
Fractional has quit [Quit: Leaving]
spacemud has joined #ruby
ptrrr has quit [Quit: ptrrr]
tercenya has quit [Read error: Connection reset by peer]
jthomp has quit [Ping timeout: 264 seconds]
fr1eza has quit []
BTRE has quit [Quit: Leaving]
BTRE has joined #ruby
benzrf is now known as benzrf|offline
MattB2_ has joined #ruby
tercenya has joined #ruby
jthomp has joined #ruby
axl_ has quit [Quit: axl_]
MattB2 has quit [Ping timeout: 265 seconds]
n_blownapart has joined #ruby
agrinb has joined #ruby
larsam has quit [Quit: No Ping reply in 60 seconds.]
davy_ has quit [Quit: Leaving...]
s00pcan has quit [Ping timeout: 250 seconds]
axl_ has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n008f4g_ has quit [Quit: leaving]
govg has joined #ruby
MattB2_ has quit []
MattB2 has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
boombadaroomba has quit [Remote host closed the connection]
skolman_ has quit [Remote host closed the connection]
jerius has quit []
allcentury has quit [Ping timeout: 260 seconds]
duncannz has quit [Remote host closed the connection]
olivier_bK has quit [Ping timeout: 260 seconds]
cpruitt has joined #ruby
ProductionBeast has quit [Ping timeout: 255 seconds]
boombadaroomba has joined #ruby
livingstn has quit []
<MattB2> mozzarella: example?
<siwica> what is a good zipping gem for ruby?
skolman_ has joined #ruby
cpruitt has quit [Quit: cpruitt]
<toretore> rubyzip
Pumukel has quit [Ping timeout: 264 seconds]
KC9YDN has joined #ruby
freerobby has joined #ruby
jtdowney has joined #ruby
<daxroc> What's the best way to run your own gem server ?
nfk has quit [Quit: yawn]
ProductionBeast has joined #ruby
doritostains has quit [Quit: doritostains]
doritostains has joined #ruby
renderfu_ has joined #ruby
Insanity133 has joined #ruby
Vile` has joined #ruby
renderf__ has joined #ruby
Brothmars has quit [Quit: Be back later ...]
KC9YDN has quit [Quit: ☭ Karl Marx & Friedrich Engels, Vladimir Lenin, Josef Stalin, Mao Tse-Tung, Kim Il Sung, Ho Chi Minh, Fidel Castro & Ernesto Guevara ☭]
dkphenom has joined #ruby
pietr0 has joined #ruby
sailias1 has quit [Quit: Leaving.]
KC9YDN has joined #ruby
renderful has quit [Ping timeout: 240 seconds]
roolo has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
silkfox has quit [Ping timeout: 245 seconds]
m8 has quit [Quit: Sto andando via]
renderfu_ has quit [Ping timeout: 260 seconds]
Insanity133 has quit [Ping timeout: 260 seconds]
sts has joined #ruby
nateberkopec has quit [Quit: Leaving...]
disKounted has joined #ruby
<sts> what would be a nice pattern to define a object with methods which are executed sequentially?
gsd has joined #ruby
<sts> the methods don't even need to return something its they just split up functionality.
Lewix has joined #ruby
reinaldob has quit [Remote host closed the connection]
nateberkopec has joined #ruby
Lewix has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
govg has quit [Ping timeout: 256 seconds]
<gr33n7007h> How do you surpress output of `^C` when trapping a signal, `trap(2) { exit }` to stdout?
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
<gr33n7007h> is even possible?
allcentury has joined #ruby
jtdowney has joined #ruby
jtdowney has quit [Changing host]
jtdowney has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
isaick has quit [Quit: isaick]
zwer_i has joined #ruby
jheg has joined #ruby
jxf has quit [Ping timeout: 258 seconds]
<n_blownapart> more drama : http://pastie.org/9701489 I left my error on line 25 so some kind person would explain what is happening with inspect.
zwer has quit [Ping timeout: 250 seconds]
<jhass> n_blownapart: this has nothing to do with the inspect yet
oo_ has quit [Ping timeout: 256 seconds]
Kricir has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
josephndenton has joined #ruby
charliesome has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
Cheezebox has joined #ruby
thagomizer has quit [Quit: Leaving.]
<tmoore> n_blownapart: could you explain what you're trying to do in that code?
wldcordeiro_ has quit [Quit: Leaving]
<n_blownapart> jhass: tmoore its a tutorial. apparently line 25 should read <Dog named 'Fido'>
<jhass> n_blownapart: no
<n_blownapart> ^ instead of the array
benzrf|offline is now known as benzrf
<jhass> the error uses inspect to describe what it's inspecting
jheg has quit [Ping timeout: 264 seconds]
<jhass> it doesn't actually expect inspects output here
<jhass> the question you need to ask is, "what is this trying to teach me?"
<jhass> (try to answer it for yourself first)
josephndenton has quit [Ping timeout: 250 seconds]
Joufflu has quit [Quit: Leaving]
byprdct has quit [Ping timeout: 250 seconds]
<n_blownapart> line 21 has the hint 'self refers to the containing object, so I thought self would return the container [:@name].
<n_blownapart> jhass: ^
byprdct has joined #ruby
<jhass> [:@name] is the Symbol :@name inside an array. I don't see any connection to "container" or "containing object"
<tmoore> n_blownapart: can you link us to the tutorial... there's a lot of weird stuff happening in that code
Trynemjoel has quit [Ping timeout: 265 seconds]
<jhass> tmoore: it's the koans
phutchins has quit [Ping timeout: 260 seconds]
jimms has quit [Remote host closed the connection]
<jhass> n_blownapart: the question you need to answer is what get_self returns
momomomomo has quit [Ping timeout: 244 seconds]
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
<n_blownapart> yeah tmoore complicated. before line 16 there was no mention, instruction re: inspect at all anywhere preceding.
nb_bez___ has joined #ruby
<jhass> the koans aren't exactly meant for somebody who's new to programming btw
<n_blownapart> nothing is jhass that I've seen.
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> I don't think the RUBY koans are bad for new programmers... but I def start ppl on chris pine's book first
Trynemjoel has joined #ruby
alvaro_o has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
<n_blownapart> but how does line 25 relate to inspect method on 16 ?
mistermocha has quit [Remote host closed the connection]
Tab__ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jtdowney has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mg^> Writing tests reminds me why I didn't want to become a professional programmer.
<mg^> but my professional programmer colleagues bullied me into it so frustration ensues.
<tmoore> as a professional programmer, dealing untested code is what makes me sometimes want to change careers ;-)
<jhass> n_blownapart: it doesn't in a way you need to care about yet
<tmoore> s/dealing/dealing with/
djstorm has quit [Ping timeout: 264 seconds]
agrinb has joined #ruby
jtdowney has quit [Client Quit]
vinleod has joined #ruby
<mg^> Yeah well as a sysadmin I prefer making stuff work and moving on :)
<zenspider> tmoore: exactly
Axy has joined #ruby
Axy has joined #ruby
<zenspider> and time and time again I find that sysadmins make the worst programmers. :/
<mg^> But no, we want to release my /internal/ project to the /public/ now
<n_blownapart> jhass but is it that complicated?
oo_ has joined #ruby
<zenspider> halfassed programs held together with duct tape and twine. ready to break once a single thing changes but you can never tell where unless you run the whole thing... why? no tests.
<jhass> n_blownapart: no, it's fairly simple if you got how object oriented programming works
acidrainfall has left #ruby [#ruby]
cantonic has joined #ruby
workmad3 is now known as wm3|away
<mg^> zenspider: I'll try not to be personally offended by the generalization
Mia has quit [Ping timeout: 255 seconds]
roolo has joined #ruby
charliesome has quit [Quit: zzz]
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jenrzzz has quit [Ping timeout: 244 seconds]
MrDoctor has joined #ruby
Tab__ has quit [Read error: Connection reset by peer]
agrinb has quit [Ping timeout: 244 seconds]
nateberkopec has quit [Quit: Leaving...]
axl_ has quit [Quit: axl_]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<mg^> rspec is annoying me. If I have a test fail, it gives me the expected results. If all the tests are in a passing state, it throws a NameError.
levity_island has joined #ruby
<zenspider> mg^: learn your testing and youll out code every sysadmin you come across
<mg^> I already outcode every sysadmin
oo_ has quit [Ping timeout: 256 seconds]
<zenspider> I doubt it
adriancb has quit [Remote host closed the connection]
<zenspider> NameError? where does the name error come from?
jimms has joined #ruby
<mg^> Let me refine my statement, I do plenty of testing, but normally I create my own validations rather than using various frameworks
x1337807x has joined #ruby
jthomp has quit [Quit: Textual IRC Client: www.textualapp.com]
<mg^> Mainly because most of my code has to be maintained by other sysadmins
jobewan has quit [Quit: Leaving]
<mg^> and 99% of the time they will change something that breaks the tests
<mg^> and not know how to fix them
<mg^> It comes from require
<mg^> Anyway, since I just started learning rspec today, I am sure I will have my problem figured out shortly
User458764 has quit [Ping timeout: 265 seconds]
<sinequanon> humblebrag
<mg^> I'm just at the point where I'd rather be doing than reading
Cheezebox has quit []
triple_b_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
bMalum has joined #ruby
dc has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
<n_blownapart> jhass: well in the dark. so shouldn't self return the object_id or just the name attribute at this point? I read inspect docs but don't see how inspect is called when self is returned.
<jimms> Hey everyone! Is there a quick ruby way to duplicate an array member? like to make [1, 2, 3, 4, 5] into [1, 2, 2, 2, 3, 4, 5]?
dkb20k has joined #ruby
mary5030 has joined #ruby
s00pcan has joined #ruby
jack_rabbit has joined #ruby
<jhass> n_blownapart: the thing that generates the error message calls inspect. Stop carying about that fact
atomi has quit [Remote host closed the connection]
<dopie> jhass, is ruby gangster :)
<jhass> and no, self does not return object_id or an abitrary instance variable
<sinequanon> (but you're close)
<n_blownapart> jhass: ok many thanks I can work with that.
mib_mib has joined #ruby
<mg^> and also, I really want to write a test that starts with it "puts the lotion on its skin or else it gets the hose again"
<wm3|away> mg^: that should be two tests ;)
<mg^> yeah probably
oo_ has joined #ruby
<mg^> I will find a way to hide that somewhere
<mg^> To be found years later by zenspider and submitted to thedailywtf
<wm3|away> mg^: it "gets the hose when it doesn't put the lotion on its skin" and it "doesn't get the hose when it puts the lotion on its skin"
<sinequanon> n_blownapart: pm
<n_blownapart> alright thanks
<mg^> yeah but that doesn't quote the movie accurately :)
dkb20k has quit [Ping timeout: 250 seconds]
mary5030 has quit [Ping timeout: 245 seconds]
Spami has joined #ruby
Spami has quit [Client Quit]
duggiefresh has joined #ruby
robustus|Off has quit [Ping timeout: 255 seconds]
levity_island has quit [Quit: levity_island]
DTSCode has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
oo_ has quit [Ping timeout: 264 seconds]
rkalfane has joined #ruby
robustus has joined #ruby
Spami has joined #ruby
SloggerKhan has joined #ruby
levity_island has joined #ruby
gregf has joined #ruby
coderhs has joined #ruby
<SloggerKhan> I came across code where initialize is given as `def initialize(*)` Is there a default name for an arguments array? Normally you'd see `def initialize(*args)`, right?
duggiefresh has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
<zenspider> SloggerKhan: that's for when you want to throw them away
<zenspider> (or are always calling super w/ no args, so they just get passed up as-is
<zenspider> )
<SloggerKhan> Ah, so if calling super without args, then I have to look at the code for the super class to know what to do, I suppose.
treehug88 has quit []
beneggett has quit [Ping timeout: 250 seconds]
beneggett has joined #ruby
oo_ has quit [Ping timeout: 264 seconds]
postmodern has joined #ruby
josephndenton has joined #ruby
reinaldob has joined #ruby