apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<banisterfiend> well there's many use cases for tap, only a few of them legitimate
BLUE_FIN_TUNA has quit [Quit: Page closed]
<banisterfiend> another use is when you have a fluid interface
<banisterfiend> but you want to call one method on it that doesn't return self
<banisterfiend> wrap it in a tap and you can keep it fluid
<benzrf> fluid interface?
bugsinlights has joined #ruby
<banisterfiend> benzrf google it ;)
<benzrf> .>.
<benzrf> oops that got inverted
<RedNifre> I don't understand the two examples. What exactly happens in the line blahblah(xxx).done ->(result) { }.fail ->(error) { } ?
CreativeEmbassy has joined #ruby
<benzrf> also check out this feature that I think is neat http://livescript.net/#cascades
<benzrf> RedNifre: those are stabby lambdas
<benzrf> ->(result){} is a lambda
Bira has quit [Remote host closed the connection]
coca_rails has quit [Read error: Connection reset by peer]
<benzrf> they are being passed as args to the .done and the .fail methods
<benzrf> presumably as callbacks
Hanmac has quit [Quit: Leaving.]
<RedNifre> I know, but maybe I'm confused by the abstraction of the example... one sec...
coca_rails has joined #ruby
coca_rails has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
<RedNifre> So it would be like load_something(user_credentials).done ->(result) { puts "looks fine }.fail ->(error) { puts "check your internet connection because of " +error } ?
mrsolo has quit [Quit: This computer has gone to sleep]
<benzrf> RedNifre: sure
yfeldblum has joined #ruby
<RedNifre> But can it be done prettier?
<benzrf> wrapping the \s in parens might clarify it
coca_rails has joined #ruby
<banisterfiend> RedNifre you have to put () around the done argument
p4tux has joined #ruby
workmad3 has quit [Ping timeout: 259 seconds]
<banisterfiend> done(->(result {}).
<banisterfiend> or
<banisterfiend> you could have: done { |result| }.fail { |error| }
Bira has joined #ruby
<benzrf> this is why i appreciate haskell, m8
starchild_ has quit [Ping timeout: 264 seconds]
n88 has quit [Changing host]
n88 has joined #ruby
psyl0n has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 272 seconds]
Ziarkaen` has joined #ruby
<RedNifre> I guess I can cut the "done", but can I cut the "fail"? I mean like load_something { puts "it worked" }.{ puts "it failed"}
ukd1 has joined #ruby
ehaliewicz has quit [Ping timeout: 245 seconds]
motto has quit [Quit: Sto andando via]
Bira has quit [Remote host closed the connection]
caveat- has joined #ruby
drag00n has quit [Ping timeout: 240 seconds]
kitak has quit [Read error: Connection reset by peer]
Ziarkaen has quit [Ping timeout: 272 seconds]
kitak has joined #ruby
nateberkopec has joined #ruby
Bira has joined #ruby
<RedNifre> hmmmmm....
<banisterfiend> RedNifre if you use -> instead u can
<banisterfiend> RedNifre as i showed u in 'then'
pel_daniel1 has left #ruby [#ruby]
<ravster> Hey, how do I make one method in a module call another method in the same module?
<RedNifre> You mean "blahblah(xx).then ->(result) { }, ->(error) { }"? But that's still a lot of code, how would you cut that down?
Geniack has joined #ruby
randomnick_ has quit [Quit: Leaving]
<RedNifre> or did you mean a different 'then'?
kaldrenon has quit [Remote host closed the connection]
kaldrenon has joined #ruby
<RedNifre> I guess "}.{" is impossible because you always need a method name, so the bare minimum would be "}.else {", right?
bluefintuna has joined #ruby
<bluefintuna> what would be the most efficient way to scrape the descriptions off these links? https://weworkremotely.com/categories/2/jobs
<bluefintuna> I was thinking of using nokogiri
<bluefintuna> however, I'm concerned that looping through each one might be slwo
<bluefintuna> slow*
Liquid-- has quit [Quit: Computer has gone to sleep.]
<benzrf> hey
joshu has quit [Ping timeout: 264 seconds]
Geniack_ has quit [Ping timeout: 268 seconds]
<benzrf> if I do 'attr_setter :foo', but dont call whatever.foo, @foo inside whatever will not exist right
i_s has quit [Remote host closed the connection]
<benzrf> i.e. it is not nil or anything
i_s has joined #ruby
joshu has joined #ruby
mrsolo has joined #ruby
kaldrenon has quit [Ping timeout: 260 seconds]
<benzrf> hey is there a way to pass in a block object as a block arg
niklasb_ has quit [Ping timeout: 260 seconds]
thesheff17 has quit [Read error: Connection reset by peer]
Aryasam has joined #ruby
nhhagen has quit [Remote host closed the connection]
indigo has joined #ruby
bigoldrock has quit [Ping timeout: 240 seconds]
<banisterfiend> benzrf huh?
<banisterfiend> benzrf &block u probably want
joelteon has left #ruby ["bye"]
i_s has quit [Ping timeout: 272 seconds]
ner0x has quit [Quit: Leaving]
<benzrf> ah, thanks
<benzrf> oh its symmetrical
<benzrf> like *
<benzrf> ok that makes sense
<benzrf> does ruby use ** for kwargs like python
TripleDES has quit [Quit: leaving]
<banisterfiend> i think so, but that's a ruby 2.0 thing
larissa has quit [Ping timeout: 245 seconds]
<benzrf> ok
TripleDES has joined #ruby
bugsinlights has quit [Ping timeout: 272 seconds]
<benzrf> can you not soak up kwargs at all <2?
larissa has joined #ruby
aryaching has quit []
ephemerian has left #ruby [#ruby]
<a1ph4g33k> >> RUBY_VERSION
<eval-in> a1ph4g33k => "2.0.0" (https://eval.in/60695)
<benzrf> >> cool
<eval-in> benzrf => undefined local variable or method `cool' for main:Object (NameError) ... (https://eval.in/60696)
<benzrf> >> def n; 3; end; n
<eval-in> benzrf => 3 (https://eval.in/60697)
<benzrf> ok
<benzrf> well that's ONE thing you cant do in python
<benzrf> :B
hogeo has joined #ruby
carif_ has quit [Quit: Ex-Chat]
wildroman2 has joined #ruby
<benzrf> >> {}.is? Hash
<eval-in> benzrf => undefined method `is?' for {}:Hash (NoMethodError) ... (https://eval.in/60699)
<benzrf> >> {}.is_a? Hash
<eval-in> benzrf => true (https://eval.in/60700)
<benzrf> ok
wesside has joined #ruby
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
hashpuppy has quit [Quit: Computer has gone to sleep.]
earthquake has quit [Quit: earthquake]
jkhwan_ has quit [Remote host closed the connection]
pragmatism has quit [Quit: Leaving...]
pitzips has quit [Ping timeout: 260 seconds]
jkhwan has joined #ruby
<a1ph4g33k> >> "#{ RUBY_VERSION }-p#{ RUBY_PATCHLEVEL }"
<eval-in> a1ph4g33k => "2.0.0-p0" (https://eval.in/60702)
pragmatism has joined #ruby
<benzrf> does attr_writer works with block args
<benzrf> is there a block attr writer
<a1ph4g33k> benzrf, no.
jkhwan_ has joined #ruby
jkhwan has quit [Read error: Connection reset by peer]
<a1ph4g33k> attr_foo takes only a symbol argument.
<benzrf> i mean allowing you to call the generated args with a block
x1337807x has joined #ruby
wildroman2 has quit [Ping timeout: 240 seconds]
<benzrf> *generated meth
bugsinlights has joined #ruby
zastern_ has quit []
<a1ph4g33k> the generated methods only wrap assignment & retrieval of an instance variable, they ignore blocks.
<benzrf> alright
<benzrf> so if I want to take a block and store it in @something, i need to manually write it?
<benzrf> lame
<a1ph4g33k> if you want a writer style function, write one ... def foo=( new_value, &block ) ... end
coca_rails has quit [Remote host closed the connection]
<benzrf> oh wait ugh
<benzrf> i feel silly
<benzrf> that's for attr-like stuff
ravster has left #ruby [#ruby]
<a1ph4g33k> the attr_foo is purely a bit of syntax candy to save people from writing the boring getter/setter loops themselves over and over.
<benzrf> ik
ehc has quit [Ping timeout: 265 seconds]
<benzrf> is there something that generates methods for setting that are not foo= but just foo
coca_rails has joined #ruby
<a1ph4g33k> beyond just writing a function ?
<benzrf> buh
<a1ph4g33k> there is define_method
<benzrf> ok whatever
<benzrf> its just 3 lines i guess
lnormous has quit [Ping timeout: 272 seconds]
idiocrash has joined #ruby
einarj has joined #ruby
TripleDES has quit [Remote host closed the connection]
allaire has quit []
SevenWolf has left #ruby ["Leaving"]
marr has quit [Ping timeout: 246 seconds]
mojjojo has quit [Remote host closed the connection]
Apane has quit [Ping timeout: 246 seconds]
pu22l3r has joined #ruby
Ziarkaen` has quit [Ping timeout: 264 seconds]
einarj has quit [Ping timeout: 272 seconds]
Bira has quit [Remote host closed the connection]
hashpuppy has joined #ruby
Foredoomed has joined #ruby
<a1ph4g33k> g'nite folks ... catch you t'morrow.
<benzrf> see you
a1ph4g33k has quit [Quit: Leaving]
freezey has quit [Remote host closed the connection]
thams has joined #ruby
robonerd is now known as testr0n
freezey has joined #ruby
<shevy> he will never catch me
threesome has joined #ruby
jkline has joined #ruby
allaire has joined #ruby
freezey has quit [Ping timeout: 265 seconds]
bluefintuna has quit [Quit: Page closed]
coca_rails has quit [Remote host closed the connection]
Bira has joined #ruby
dEPy has joined #ruby
glaksmono_ has joined #ruby
<benzrf> is there a way to pass a method as a block if its not a method on the block arg
jibi has quit [Quit: .]
<glaksmono_> how do you add attribute dynamically to an object?
Astral_ has quit [Ping timeout: 252 seconds]
<shevy> glaksmono_ what do you mean with "attribute"
nhhagen has joined #ruby
jonathanwallace has joined #ruby
<shevy> if you mean an @ivar, you could do this:
<shevy> object.instance_variable_set(:@c, 'cat')
pragmatism has quit [Quit: Leaving...]
nhhagen_ has joined #ruby
dEPy has quit [Ping timeout: 240 seconds]
marcdel has joined #ruby
Liothen has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
predator117 has quit [Ping timeout: 241 seconds]
thams has quit [Quit: thams]
blackmesa has quit [Ping timeout: 240 seconds]
c0rn has quit [Ping timeout: 246 seconds]
nhhagen_ has quit [Ping timeout: 245 seconds]
whunt has quit [Quit: Computer has gone to sleep.]
freakazoid0223 has quit [Read error: Connection reset by peer]
whunt has joined #ruby
<benzrf> does ruby not have ?:
tommyvy__ has joined #ruby
c0rn has joined #ruby
Aryasam has quit [Read error: Connection reset by peer]
jkhwan_ has quit [Remote host closed the connection]
<shevy> what does that mean
jkhwan has joined #ruby
<shevy> ruby has the ? ternary operator and you can use ? as part of a method name
<benzrf> ok
<benzrf> [the former]
<shevy> I was unsure about your ':' character
<shevy> I could even make a smiley with that!
<shevy> :?
<shevy> which is valid ruby too :-)
<benzrf> heh
<shevy> nope... I was wrong
<shevy> >> :?
<benzrf> >> :?
<eval-in> shevy => /tmp/execpad-aed6157cae15/source-aed6157cae15:2: warning: invalid character syntax; use ?\n ... (https://eval.in/60717)
<eval-in> benzrf => /tmp/execpad-57d67dee3450/source-57d67dee3450:2: warning: invalid character syntax; use ?\n ... (https://eval.in/60718)
<shevy> >> :>
<eval-in> shevy => :> (https://eval.in/60719)
<shevy> ok
<shevy> so :> is a valid smiley... but not :?
joelroa has joined #ruby
fschuindt has quit [Quit: Textual IRC Client: www.textualapp.com]
r0bby_ has joined #ruby
Aryasam has joined #ruby
<glaksmono_> shevy, and you have to use instance_variable_get to retrive it?
predator117 has joined #ruby
<glaksmono_> there's nothing like
<glaksmono_> just obj.attribute_name ?
<benzrf> glaksmono_: are you trying to use this like a JS or Python obj
<shevy> glaksmono_ you can do that
<benzrf> glaksmono_: what languages are you familiar with
<glaksmono_> yes.. benzrf shevy
<glaksmono_> JS
<benzrf> use a hash
<glaksmono_> and java and php
<benzrf> or an openstruct or something
<benzrf> if you want a java field use attr_accessor
Bira has quit [Remote host closed the connection]
<shevy> glaksmono_, look at these: .instance_variable_set instance_variable_defined? and also instance_variable_get
<benzrf> shevy: glaksmono_ does not understand instance vars vs methods and so on
<shevy> and inside your class you can use remove_instance_var
<shevy> yeah
<shevy> but he will learn eventually
<benzrf> well this is an xy problem
<benzrf> and you are catering to the y
<benzrf> ;p
<shevy> glaksmono_ in ruby, you call methods on your object, so when you do: obj.attribute_name this is not an attribute name
<glaksmono_> shevy, i can't seem to use . notation..
<shevy> this is just a method called attribute_name
<shevy> and it could do anything
<benzrf> glaksmono_: foo.bar is calling the method bar on the object foo
<shevy> what does that mean?
<shevy> glaksmono_ if there is an error, please show the error
<benzrf> glaksmono_: in javascript, everything is an attribute including methods, and you call the attribute
<benzrf> glaksmono_: ruby works different
<benzrf> glaksmono_: methods in ruby are 'messages'
jkhwan has quit [Ping timeout: 272 seconds]
<benzrf> foo.bar 'sends the message bar to foo'
<glaksmono_> the error is just that method undefined
<benzrf> glaksmono_: yes
<shevy> glacius good, that means your method is not existing
<benzrf> when you say foo.bar = baz, that's calling the method foo.bar=
<glaksmono_> but i want to just access the attribute :-/
<benzrf> glaksmono_: you do not understand how ruby works
<shevy> glaksmono_ no, you can not directly access anything, you must use methods to access internal data
<benzrf> sorry if that came off as rude
marcdel has quit [Quit: Textual IRC Client: www.textualapp.com]
<benzrf> glaksmono_: objects in ruby are more like objects in java than in javascript
<shevy> .instance_variable_get() is also a method
<benzrf> glaksmono_: basically..
<benzrf> glaksmono_: ruby objects look like java objects from the outside, but also js objects on the inside. sorta
justsee has quit [Ping timeout: 272 seconds]
<shevy> he'll understand it eventually
<benzrf> glaksmono_: from outside an object you can only call predefined methods on the object, like in java if you didn't have fields
<benzrf> glaksmono_: from inside an object, you can do that but you can also set arbitrary instance vars, which are like attributes in javascript
<shevy> glaksmono_ repeat after me ... "if I want to access @ivars, I must use method calls"
<benzrf> glaksmono_: if you want a key-value store, use a hash
Mitchellvanw has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
Mitchellvanw has quit [Client Quit]
lyanchih has joined #ruby
tkuchiki has joined #ruby
kitak has quit [Read error: Connection reset by peer]
<benzrf> crud
<glaksmono_> benzrf, hmmm
kitak has joined #ruby
<glaksmono_> sooo u're sugesting for me to have a hash within the object?
<glaksmono_> thjat's accessible?
<benzrf> glaksmono_: why use the object
<benzrf> just make a hash
<shevy> hehe
<benzrf> hashes are objects
<banisterfiend> gianlucadv uniform access -- the only way you can interact with an object is via methods
<banisterfiend> gianlucadv python and some other languages allow other kind of access, but in ruby you must use methods, i like that.
<benzrf> glaksmono_: forget all the terms you know, please
<benzrf> consider this
<benzrf> glaksmono_: from the outside, a ruby object is a metal box with levers on it
<benzrf> you cannot reshape it, because it's made of metal
<benzrf> you can pull the levers if you want
jkhwan has joined #ruby
<benzrf> a javascript object is more like a filing cabinet
segv has left #ruby ["Leaving"]
<benzrf> you can open it up and move things around and add new files or remove them
linojon has quit [Ping timeout: 245 seconds]
<benzrf> a ruby object has a filing cabinet on the inside, but you cannot reach it from outside
coca_rails has joined #ruby
justsee has joined #ruby
<benzrf> more or less...
tylersmith has quit [Remote host closed the connection]
bigoldrock has joined #ruby
mixel has quit [Quit: mixel]
DanBoy has joined #ruby
jberlinsky has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> am I wrong in wanting to hate java?
timonv has joined #ruby
<DanBoy> all i know is the jvm is supposed to be quite fast now
<benzrf> shevy: as a lang?
jlast_ has joined #ruby
<benzrf> java isn't worthy of hatred
<benzrf> it's not bad, really, just tedious
<benzrf> direct your hate at php
<shevy> benzrf yeah, as a lang
linojon has joined #ruby
DonRichie has quit [Ping timeout: 252 seconds]
falood has joined #ruby
DonRichie has joined #ruby
Monie has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 260 seconds]
aspires has quit [Quit: aspires]
jlast_ has quit [Ping timeout: 272 seconds]
nari has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
mikesplain has joined #ruby
saarinen has quit [Quit: saarinen]
<benzrf> ok guys
<benzrf> im still super new to ruby and dont know a lot about actually using it so
felixjet has quit [Quit: felixjet]
<benzrf> can you look over this code i wrote for a challenge and tell me what i couldve done better?
Apane has joined #ruby
<DanBoy> 836 people here someone will have a comment
earthquake has joined #ruby
<benzrf> hah
<benzrf> here is this challenge http://bpaste.net/raw/147149/
Aryasam has quit [Ping timeout: 240 seconds]
graydot has quit [Ping timeout: 265 seconds]
x1337807x has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
ewnd9 has joined #ruby
<jblack> Java was an important step.
psyl0n has joined #ruby
bigoldrock has quit [Ping timeout: 246 seconds]
mikesplain has quit [Ping timeout: 246 seconds]
<benzrf> also how is dunder send different from send
saarinen has joined #ruby
<shevy> dunder?
<shevy> some parts I hate in your code
<shevy> attr_reader
<shevy> I keep it close to the top
<benzrf> ok
<shevy> I also don't like that you indent after private
<benzrf> dunder foo == __foo__
<benzrf> double underscore
<benzrf> python :p
whunt has quit [Quit: Computer has gone to sleep.]
<shevy> ah
<shevy> I dont see any __
Aryasam has joined #ruby
<shevy> ah you mean, in __send__ ?
<benzrf> yea
soheil has quit [Remote host closed the connection]
<shevy> I think it is internal use only
<benzrf> thanks
<shevy> I never had to use __send__
<shevy> but sometimes I use .send
soheil has joined #ruby
<benzrf> also id like to note that using dunder instead of glyphs allows a less funky grammar
<benzrf> ruby's funky grammar causes problems doesn't it?
<benzrf> :]
<shevy> dunder?
<benzrf> 20:32 < benzrf> dunder foo == __foo__
<shevy> the ruby parser has to keep in mind a lot of syntax ambiguity
<benzrf> yeah
<benzrf> I keep seeing people who look at python metaprogramming and complain about all the dunders
<shevy> man
<benzrf> oh if you are not familiar, python special methods are all dunders to prevent collisions
<benzrf> i.e. __call__, __getitem__
<shevy> if someone uses the word dunder alone that makes me an archenemy
<benzrf> ha
<shevy> well
<shevy> ruby has a few of these too
<shevy> so we can't complain really :\
<benzrf> yeah?
<shevy> yeah
<shevy> look:
<shevy> >> def foo; puts __method__; end; foo
kevind has quit [Quit: kevind]
<eval-in> shevy => foo ... (https://eval.in/60733)
<benzrf> yes but only for double super mega metaprogramming generally
<shevy> and some ... constants...
<shevy> >> puts __FILE__
<eval-in> shevy => /tmp/execpad-3e278790eea5/source-3e278790eea5 ... (https://eval.in/60734)
<benzrf> i.e. def * instead of def __mul__
<shevy> eval-in, you cheat!
<benzrf> anyway continue yelling about my code, please
iliketurtles has joined #ruby
<shevy> ok, def __mul__ is odd
<benzrf> how so?
<benzrf> it keeps identifiers less special-casey
<shevy> well I would assume that there is a reason for whoever uses that to use 4 _
allaire has quit []
<benzrf> it makes it jump out
<benzrf> :P
<shevy> hehe
<benzrf> and honestly how often do you do operator overloading
x1337807x has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
<shevy> only when I have a need to do so
<benzrf> there you go
<shevy> really, I think you can use like only 5% of what ruby offers and be fine with that
<DanBoy> in ruby overloading?
<benzrf> but yeah so far i think i like ruby more than py
<shevy> I am not even using lambdas and I am perfectly happy with that
<benzrf> maybe
<benzrf> ugh ruby lambdas
<DanBoy> in ruby you always got the splat argument to check you don't have to do traditional overloading
<shevy> benzrf I think one thing that people should keep in mind is that they should use things that solve a given problem, and if possible, do so elegantly or by being terse/short
c0rn has quit [Quit: Computer has gone to sleep.]
soheil has quit [Ping timeout: 260 seconds]
<shevy> like, you could have an array, use .each on it, and put certain matches into a new array
<shevy> or
<shevy> you just use .select directly
<shevy> and I think using .select is much better than the .each way even if it is a "there is more than one way to do it"
baroquebobcat has joined #ruby
<benzrf> shevy: i instinctually went to haskell mode when I started doing mild FP since haskell is basically the only language where ive used it
<shevy> benzrf, if you are curious about more __ stuff
<benzrf> note the same? method
<shevy> >> BasicObject.new.__id__
<eval-in> shevy => 546097530 (https://eval.in/60737)
dmyers has quit [Quit: dmyers]
<shevy> >> puts __ENCODING__
<eval-in> shevy => UTF-8 ... (https://eval.in/60740)
duggiefresh has joined #ruby
<benzrf> I started writing it without thinking and planned to do 'any $ map (same? item) processed_items'
banjara has quit [Quit: Leaving.]
<shevy> also ... Kernel.__method__ and Kernel.__callee__
<benzrf> :p
<benzrf> currying is nice
<shevy> but you can avoid typing Kernel
<shevy> and just use __method__ and __callee__
<shevy> or caller()
<benzrf> uh huh
<shevy> but these are rarely used really
banjara has joined #ruby
coca_rails has quit [Remote host closed the connection]
nwertman_ has quit [Ping timeout: 246 seconds]
<shevy> benzrf, one thing that I find not so easy
banjara has quit [Client Quit]
<shevy> the same? part there
coca_rails has joined #ruby
<shevy> items.reject! do |item|; @processed_items.any? {|p_item| same? item, p_item}
zarubin has quit [Ping timeout: 260 seconds]
<shevy> dunno how your brain is wired but when I see this, I have to know what same? does
banjara has joined #ruby
<banisterfiend> benzrf i wrote a ruby lib that brings some haskellisms to ruby
<benzrf> banisterfiend: nice
duggiefresh has quit [Remote host closed the connection]
<banisterfiend> benzrf primarily just composition and currying
<benzrf> ha
banjara has quit [Client Quit]
<shevy> btw
<shevy> is items.select! &@should_process unless @should_process.nil? valid syntax?
<benzrf> yes, it passes the tests
<benzrf> *the whole thing
<banisterfiend> benzrf there are some libraries out there for monadic do syntax, but they're a bit weird
<shevy> hmm
<shevy> I dont think I have seen &@ before
<benzrf> banisterfiend: why would I want to use monads in an imperative language
hogeo has quit [Remote host closed the connection]
<benzrf> shevy: it's just passing a block object as a block arg
banjara has joined #ruby
<benzrf> @should_process
momomomomo has quit [Quit: momomomomo]
banjara has quit [Client Quit]
<banisterfiend> benzrf monadic design pattern is more general than just avoiding mutation/side-effects
Nowaker has left #ruby [#ruby]
Aryasam has quit [Ping timeout: 265 seconds]
banjara has joined #ruby
<benzrf> i guess
<banisterfiend> benzrf for example, promises are monads, and using a monadic do syntax they become really syntactically light weight
<benzrf> oh true
banjara has quit [Client Quit]
<benzrf> banisterfiend: have you seen LiveScript?
banjara has joined #ruby
<banisterfiend> benzrf nah but i've seen tasks.js
<banisterfiend> that's a kind of monadic do syntax for promises
<benzrf> livescript is pretty neat
banjara has quit [Client Quit]
<banisterfiend> benzrf http://taskjs.org/
threesome has quit [Ping timeout: 264 seconds]
<benzrf> livescript is like coffeescript + some haskell + a truckload more sugar
<benzrf> also it fixes CS shadowing issues
<benzrf> = vs :=
coca_rails has quit [Ping timeout: 245 seconds]
<benzrf> it has 'backcalls'
banjara has joined #ruby
<benzrf> which are basically exactly like <- in do-notation
Davey has joined #ruby
<banisterfiend> benzrf there's a version of haskell that compiles down to js
<benzrf> nice
Aryasam has joined #ruby
duggiefr_ has joined #ruby
banjara has quit [Client Quit]
sergicles has quit [Changing host]
sergicles has joined #ruby
<benzrf> task.js looks kinda like icedcoffeescript's stuff in normal js
near89 has joined #ruby
banjara has joined #ruby
<near89> hiiiii
<near89> how is everyone?
banjara has quit [Client Quit]
<benzrf> near89: p. good
jkline has quit [Quit: jkline]
<benzrf> do you have time to criticize my code?
banjara has joined #ruby
<benzrf> it is relatively short
banjara has quit [Changing host]
banjara has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
dEPy has joined #ruby
<banisterfiend> benzrf live script looks pretty nice
oxtub has joined #ruby
nfk has quit [Quit: yawn]
<benzrf> banisterfiend: ikr
<benzrf> banisterfiend: how far are you into the docs?
<banisterfiend> just skimmed the first page
<benzrf> eh
<banisterfiend> but it's nice
reset has quit [Quit: Leaving...]
<benzrf> wait, first page?
<benzrf> you mean like first scrollthru
<benzrf> *page of scrolling
<benzrf> because the homepage is the entire docs/site
<benzrf> like CS
<near89> im trying to develop an application
<near89> it should be able to receive petitions from serveral other applications
<near89> but only answer in order
<near89> does this make sense?
snuffeluffegus has joined #ruby
<near89> im not sure if I should run it as an http service for example, a binary, etc
<banisterfiend> benzrf i would have preferred * for composition though
<banisterfiend> near89 try and fit more than a few words on one line then u won't have to type so much
hogeo has joined #ruby
yfeldblu_ has joined #ruby
<near89> haha ok
<near89> any ideas?
nhhagen has joined #ruby
Seich_ has quit [Ping timeout: 265 seconds]
oxtub has quit [Client Quit]
<benzrf> near89: use a queue?
<near89> what kind of queue?
<benzrf> idk
<benzrf> im super new to java
<near89> i mean, this should be really easy to deploy
banjara has quit [Quit: Leaving.]
<benzrf> id tell you to import collections if this were python
<benzrf> ;p
dEPy has quit [Ping timeout: 246 seconds]
CaptainJet has joined #ruby
<benzrf> oh wait pythons queue is in the queue module for some reason
<benzrf> wtf python
banjara has joined #ruby
banjara has quit [Client Quit]
soheil has joined #ruby
banjara has joined #ruby
<near89> I want to develop the app in ruby..
Seich_ has joined #ruby
banjara has quit [Client Quit]
mmitchell has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
Aryasam has quit [Ping timeout: 264 seconds]
<benzrf> near89: im not recommending you switch
banjara has joined #ruby
<benzrf> im learning ruby precisely because it looks like something id prefer to python
<benzrf> maybe
yfeldblu_ has quit [Ping timeout: 245 seconds]
banjara has quit [Client Quit]
<benzrf> it seems a bit flakier
nhhagen has quit [Ping timeout: 252 seconds]
jhulten_ has quit [Remote host closed the connection]
freakazoid0223 has joined #ruby
banjara has joined #ruby
bugsinlights has quit [Remote host closed the connection]
banjara has quit [Client Quit]
brianpWins has quit [Quit: brianpWins]
jhulten has joined #ruby
bugsinlights has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
banjara has joined #ruby
banjara has quit [Changing host]
banjara has joined #ruby
near89 has quit [Changing host]
near89 has joined #ruby
near89 has joined #ruby
<jblack> I love ruby -far- over python
<jblack> I just couldn't get past the indentation defining flow
<banisterfiend> benzrf how's it flaky?
mlpinit has joined #ruby
<benzrf> banisterfiend: i dunno its just a general feeling
<benzrf> maybe its just timtowtdi
mlpinit has quit [Client Quit]
<benzrf> jblack: really
<benzrf> i like fioc
<benzrf> ends clutter my eyes
<benzrf> & i like not typing brackets and/or ends
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
jhulten has quit [Ping timeout: 240 seconds]
<banisterfiend> benzrf wtfs is fioc
kitak has quit [Read error: Connection reset by peer]
<jblack> different strokes for different folks. =)
kitak has joined #ruby
<benzrf> banisterfiend: forced indentation of code
<benzrf> haskell does it best tho
<benzrf> as always
ZenGuy311 has quit [Ping timeout: 245 seconds]
<banisterfiend> benzrf isn't it a complete pain in the ass when refactoring and moving chunks of code around?
<benzrf> banisterfiend: not if your editor is awesome
<benzrf> but yes because i have failed to configure my editor awesomely
raphaelivan has joined #ruby
<banisterfiend> hehe
fuhgeddaboudit has joined #ruby
sjuxax has joined #ruby
<benzrf> you need to redo the indentation when you move it in ruby, too
<jblack> it's just one of those things some people swear by and others swear at.
<benzrf> eh
<benzrf> funnily i never even thought it was weird when i saw it
<benzrf> i just looked at it and thought 'im home'
<benzrf> well ok maybe not that
<jblack> is there some reason you decided to discusss python indentation in #ruby?
<benzrf> yes
<benzrf> i have an OT quota
ZenGuy311 has joined #ruby
<sjuxax> Hi all. I need help understanding http://ruby-doc.org/stdlib-2.0.0/libdoc/optparse/rdoc/OptionParser.html. Seems most stuff happens through on, which mostly wraps make_switch. make_switch lists several potential options, but how do I know the order these options are accepted in? I see people using on(x,y,z) that doesn't match the order listed there. Also, those options don't seem to specify option key names, so if I want to specify something as mandatory, h
banjara1 has joined #ruby
<benzrf> sjuxax: your message cut off at 'as mandatory, h'
<benzrf> jblack: but more specifically im currently into python so i feel the need to compare everything
<benzrf> anyway, can you look at my code and tell me what im showing a lack of understanding in?
_5kg has quit [Ping timeout: 260 seconds]
Aryasam has joined #ruby
<jblack> I missed your link
<benzrf> oh sorry
<benzrf> i was waiting for a 'no'
<benzrf> :p
<Methylated> guys
<benzrf> http://bpaste.net/raw/147149/ is the challenge i attempted
<sjuxax> benzrf: so if I want to specify something as mandatory, how do I know if I should say :argumentType = "mandatory" or :argument_type = "mandatory"?
<Methylated> I need advice. I'm working with a huge legacy app
<sjuxax> thanks for the heads up
<Methylated> 6000 ruby file written by a perl developer
<benzrf> christ
<benzrf> sjuxax: dunno, i dont know ruby good
banjara has quit [Ping timeout: 245 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<benzrf> oh wait
<benzrf> ignore the showterm link i was dicking around with it
<jblack> I'm in the middle of a dota2 game. I'll look at it as soon as I'm done
<benzrf> the links looked the same in glipper
<Methylated> It's running on an old mod_ruby 1.8.7 - I would like to profile it. what would be the best bet? gperftools?
duggiefr_ has quit [Remote host closed the connection]
CaptainJet has quit []
tommyvy__ has quit [Ping timeout: 272 seconds]
lukec has quit [Quit: lukec]
banjara1 has quit [Ping timeout: 240 seconds]
Aryasam has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
trusktr has joined #ruby
brianpWins has joined #ruby
psyl0n has quit [Quit: psyl0n]
reset has joined #ruby
vpretzel has quit [Quit: Adios!]
ZenGuy311 has quit [Ping timeout: 265 seconds]
Aryasam has joined #ruby
dhruvasagar has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
baroquebobcat has quit [Quit: baroquebobcat]
Shellcat has quit [Remote host closed the connection]
allaire has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
Seich_ has quit [Read error: Connection reset by peer]
jonahR has joined #ruby
ZenGuy311 has joined #ruby
Seich has joined #ruby
soheil has quit [Ping timeout: 272 seconds]
hashpuppy has quit [Quit: Computer has gone to sleep.]
Aryasam has quit [Ping timeout: 264 seconds]
Targen has quit [Ping timeout: 265 seconds]
Aryasam has joined #ruby
saarinen has quit [Quit: saarinen]
jlast has joined #ruby
failshell has joined #ruby
baroquebobcat has joined #ruby
gyre007 has joined #ruby
maurogoncalo has quit [Quit: Leaving...]
iliketurtles has joined #ruby
pen has joined #ruby
digital-ghost has quit [Remote host closed the connection]
divi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Soda has quit [Read error: Connection reset by peer]
ZenGuy311 has quit [Ping timeout: 264 seconds]
jlast has quit [Ping timeout: 245 seconds]
r0bby_ has quit [Ping timeout: 245 seconds]
danshultz has joined #ruby
hashpuppy has joined #ruby
lukec has joined #ruby
burgess has joined #ruby
near89 has quit [Quit: Page closed]
__LX__ has joined #ruby
bugsinlights has quit [Remote host closed the connection]
ZenGuy311 has joined #ruby
ukd1 has quit [Quit: Leaving...]
earthquake has quit [Quit: earthquake]
reset has quit [Quit: Leaving...]
reset has joined #ruby
ch0mskiii has quit [Ping timeout: 272 seconds]
rickruby has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rickruby> Hi, I don't know why but I keep getting speed = 2 on this fragment of code: https://gist.github.com/rickarubio/4b3cbf63e9c443274472
RedNifre has quit [Remote host closed the connection]
<DanBoy> you should return after setting speed
dhruvasagar has quit [Ping timeout: 260 seconds]
hashpuppy has quit [Quit: Computer has gone to sleep.]
<DanBoy> anything >= 50 will keep going down to where you set speed = 2
reset has quit [Ping timeout: 272 seconds]
io_syl has quit [Ping timeout: 272 seconds]
<DanBoy> test it, 49 should return 2.5
<DanBoy> anything above that or equal to it will be 2
mary5030 has joined #ruby
tylersmith has joined #ruby
<rickruby> OH
<rickruby> thanks!
<rickruby> that was it :) ty DanBoy
vlad_starkov has quit [Ping timeout: 240 seconds]
<DanBoy> just return after setting speed :P
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
lfox has joined #ruby
ZenGuy311 has quit [Ping timeout: 240 seconds]
heidi has quit [Quit: Leaving.]
dEPy has joined #ruby
mmitchell has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
platypine has quit [Ping timeout: 245 seconds]
taternuts has joined #ruby
nhhagen has joined #ruby
tommyvyo has joined #ruby
dEPy has quit [Ping timeout: 240 seconds]
ZenGuy311 has joined #ruby
sjuxax has left #ruby [#ruby]
fijimunkii has quit [Ping timeout: 246 seconds]
hashpuppy has joined #ruby
nhhagen has quit [Ping timeout: 260 seconds]
ukd1 has joined #ruby
aryaching has joined #ruby
hashpuppy has quit [Client Quit]
Voodoofish430 has quit [Quit: Leaving.]
eka has quit [Quit: Computer has gone to sleep.]
raphaelivan has quit [Quit: Leaving.]
leeurooi has joined #ruby
brianpWins has quit [Quit: brianpWins]
psyprus has quit [Read error: Connection reset by peer]
psyprus has joined #ruby
Aryasam has quit [Ping timeout: 264 seconds]
Aryasam has joined #ruby
timonv has joined #ruby
<shevy> all power to the people
<shevy> all power to ruby!
alekst has quit [Quit: Computer has gone to sleep.]
ewnd9 has quit [Remote host closed the connection]
jhulten has joined #ruby
zz_jrhorn424 is now known as jrhorn424
<benzrf> whats the best way to check equality against 2-3 items
<benzrf> in python id do 'foo in 1, 2, 3'
polaco is now known as polaco_zZz
Aryasam has quit [Ping timeout: 264 seconds]
<shevy> id?
<shevy> x == y
<benzrf> *I'd
timonv has quit [Ping timeout: 272 seconds]
<benzrf> ??
zeade has joined #ruby
<benzrf> is there a more concise version of 'a == b or a == c'
<jblack> you want to see if X is in [X,Y,Z] ?
<benzrf> i guess
<benzrf> what i just said basically
<jblack> [1,3,4].include?(3)
<benzrf> alright
<benzrf> seems nearly as wordy
jhulten has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
<jblack> If you don't like ruby, then don't write ruby.
<jblack> There's exactly 23,412 languages to choose from. I counted.
<benzrf> i thought one of the points of ruby was to be concise
leeurooi has quit [Quit: I'm outta here]
<benzrf> :P
<benzrf> i guess i will just stick with a == b or a == c
<jblack> myarray.include?(val) seems rather concise to me
jonathanwallace has quit [Read error: Operation timed out]
<benzrf> well i dont care about array inclusion
<benzrf> it just happened to be concise in python
DanKnox is now known as DanKnox_away
<DanBoy> fuck it
<DanBoy> im learning fortran
Targen has joined #ruby
<jblack> ok, [b,c].include?(a)
<shevy> benzrf well you could alias to include?
<shevy> alias i include?
<benzrf> w/ever its not a huge dea
<benzrf> l
jlast has joined #ruby
<shevy> %w( abc bcc ccb ).i? 'b'
<shevy> I am not sure how you want to make it more concise
<shevy> do you want to reduce it to 0 characters? :D
<shevy> or mind reading
r0bby_ has joined #ruby
<jblack> trolling?
<shevy> question?
jlast has quit [Remote host closed the connection]
<DanBoy> lol wtf is going on
<prophile> swarms of killer bees?
<jblack> "Python is so much better because you can do two comparisons in 6 characters instead of 9 characters!"
<shevy> AND
<shevy> you don't have to type end
sevenseacat has joined #ruby
<DanBoy> well
<benzrf> it is not that much better
<DanBoy> you guys are all lost
<shevy> but I hate the : part
<DanBoy> fortran is where its at
<benzrf> I am just picky
<benzrf> :P
<shevy> def foo():
<jblack> screw you all. I'm going back to quickbasic.
<shevy> no wait... that's actually 3 chars
<shevy> if () is mandatory
<shevy> AND
<benzrf> & im not trying to compare them, im trying to find out how to do it in ruby
<benzrf> >_>
<shevy> indent
<shevy> we could strip ruby code of ' ', but not python code
<jblack> benzrf: You can try [b,c].include?(a) if you want to compare two at once
<prophile> wadler's law
<jblack> or, perhaps... (a==b || a==c)
<prophile> in action
<shevy> who is wadler and why do we have to know that person
<jblack> did he waddle?
<shevy> lol
<prophile> philip wadler is an academic
<jblack> Lol, I like that
<prophile> did a load of stuff about programming language design
<shevy> wadler's law: if you waddle you are never going to win in a 100 metres run!
sepp2k has quit [Quit: Leaving.]
<shevy> academic waddling
<shevy> that's like... what's this sport where you have to just walk...
<prophile> wadler's law is that people argue more about the syntax and other trivial things in programming language design
<prophile> rather than the actual semantics
silent_root has joined #ruby
<shevy> prophile jblack spoiled me, now I can only think about waddling :(
<prophile> like the idea that the big difference between ruby is whitespace or colons :)
<prophile> *between ruby and python
<benzrf> bikeshedding woo
varfoo has joined #ruby
<benzrf> my fave sort
<prophile> precisely
<shevy> well python needs indent!
zz_tsykoduk is now known as tsykoduk
<benzrf> *sport
<benzrf> shevy: why
<jblack> There should be a waddler's law...
<shevy> benzrf because it won't run otherwise
hogeo has quit [Remote host closed the connection]
<prophile> if python swapped out indentation and colons for curly brackets it really wouldn't make much difference
<prophile> if python swapped to, say, static typing it would be a completely different language
<prophile> even if it looked similar
<jblack> does assignment in python work the same as ruby?
<shevy> "IndentationError: expected an indented block"
<shevy> it tells me I must indent :(
<shevy> but I dont wanna!
kobain has quit []
hogeo has joined #ruby
<prophile> jblack: in what sense?
silent_r1ot has joined #ruby
<benzrf> prophile: python cant have static typing without a major change in semantics
<jblack> never mind.
<prophile> benzrf: yes, that's my point
<benzrf> prophile: like ridiculously major
<shevy> jblack not sure about scoping... ruby must have more complicated rules because it allows variable assignments in blocks
<prophile> semantics are the important thing in programming language design
<shevy> but python has other strange things like those decorator thingies
<prophile> syntax is just trivial sugar on top
<benzrf> prophile: how would you even get static typing with prototype-based stuff
<benzrf> shevy: decorators are just sugar
<benzrf> @foo
_5kg has joined #ruby
<benzrf> def bar
<benzrf> is the same as
<benzrf> def bar
<benzrf> bar = foo(bar)
pdimitrov has quit [Read error: Operation timed out]
<prophile> benzrf: it was only an example
<benzrf> ok
freerobby has joined #ruby
pen has quit []
freerobby has quit [Read error: Connection reset by peer]
<benzrf> actually though now that i think about it\
TheShaun is now known as TheShaun|AFK
<benzrf> COULD you meaningfully have both static typing & prototype-based oop
<benzrf> it doesnt seem possible to me
Flashmasterson has joined #ruby
<Flashmasterson> how much Ruby knowledge should be involved in creating a website that uploads/downloads + edits audio + allows other people to register?
jonathanwallace has joined #ruby
pdimitrov has joined #ruby
<DanBoy> did you finish pickaxe dude
<prophile> benzrf: an interesting thought
<benzrf> python is nearly proto based anyway
<benzrf> sort of
pr0ggie has quit [Ping timeout: 246 seconds]
<prophile> eh, I don't think it does really?
hogeo has quit [Ping timeout: 260 seconds]
<prophile> I don't think this is a discussion for #ruby anyway :)
<DanBoy> Flashmasterson, finish the pickaxe book then goto rails
xk_id has quit [Quit:
<benzrf> DanBoy: goto considered harmful
<shevy> hey Flashmasterson didn't you have this question like 3 weeks ago alread
<DanBoy> yah yah ;P
<DanBoy> i learned that with C
<Flashmasterson> shevy: i did but it was phrased differently + i just got a new answer from a new person, so that was helpful
htns12 has joined #ruby
<Flashmasterson> DanBoy: i didn't finish it yet, not even close - i've been studying more javascript and html/css lately
htns12 has left #ruby [#ruby]
<DanBoy> Flashmasterson, didn't i get you to setup sublime?
Aryasam has joined #ruby
<Flashmasterson> DanBoy: yeah! man it's great
rickruby has quit [Remote host closed the connection]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Flashmasterson> DanBoy: and free damnit
btanaka has joined #ruby
<DanBoy> honestly
rickruby has joined #ruby
<DanBoy> your going to use rails right im guessing
<DanBoy> for the site
<DanBoy> ask that exact question in #rubyonrails
<Flashmasterson> DanBoy: i think i'll end up having to, based on popular response to that question. ok i'll ask there now
benzrf has quit [Quit: sleep is important]
TheShaun|AFK is now known as TheShaun
<sevenseacat> dont send him to us >_>
<DanBoy> lol
Aryasam has quit [Ping timeout: 272 seconds]
r0bby_ has quit [Quit: Konversation terminated!]
rickruby has quit [Ping timeout: 260 seconds]
r0bby_ has joined #ruby
<DanBoy> lol
<shevy> nah, send him over
jkline has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
glaksmono_ has quit [Quit: This computer has gone to sleep]
r0bby_ has quit [Ping timeout: 260 seconds]
pr0ggie has joined #ruby
Biohazard has quit [Ping timeout: 245 seconds]
fijimunkii has joined #ruby
bio has joined #ruby
tjad has joined #ruby
saarinen has joined #ruby
Guest14134 is now known as rodan-
idiocrash has quit []
tommyvyo has quit [Read error: No route to host]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
soba has joined #ruby
sn0wb1rd has quit [Quit: See ya]
sn0wb1rd has joined #ruby
Monie has joined #ruby
nhhagen has joined #ruby
jonahR has left #ruby [#ruby]
ananthakumaran has joined #ruby
nateberkopec has quit [Quit: Leaving...]
danshult_ has joined #ruby
hogeo has joined #ruby
xk_id has joined #ruby
trusktr has quit [Quit: Leaving]
trusktr has joined #ruby
nhhagen has quit [Ping timeout: 246 seconds]
saarinen has quit [Quit: saarinen]
saarinen has joined #ruby
failshell has quit []
saarinen has quit [Client Quit]
bklane has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
trusktr has quit [Read error: Connection reset by peer]
hiyosi has quit [Ping timeout: 260 seconds]
x1337807x has joined #ruby
danshult_ has quit [Ping timeout: 240 seconds]
SE7EN-X has joined #ruby
SE7EN-X has left #ruby [#ruby]
jonathanwallace has quit [Ping timeout: 272 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
aapzak has quit [Ping timeout: 272 seconds]
aapzak has joined #ruby
s3itz has joined #ruby
brianpWins has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
nkts has quit [Quit: xy]
IceDragon has quit [Quit: Space~~~]
Jazz has joined #ruby
iliketurtles has joined #ruby
hogeo has quit [Ping timeout: 272 seconds]
mary5030 has quit [Remote host closed the connection]
iamjarvo has joined #ruby
rodan- has quit [Remote host closed the connection]
rodan- has joined #ruby
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
aspires has joined #ruby
Soliah has joined #ruby
ewnd9 has joined #ruby
pixelgremlins_ba has joined #ruby
rodan- has quit [Ping timeout: 241 seconds]
_HolyCow1 has joined #ruby
BraddBitt has joined #ruby
vlad_starkov has joined #ruby
Guest27184 has joined #ruby
tkuchiki_ has joined #ruby
Methylated has quit [Ping timeout: 264 seconds]
ukd1 has quit [Remote host closed the connection]
robonerd has joined #ruby
ItSAN____ has joined #ruby
yfeldblum has joined #ruby
ukd1 has joined #ruby
ehaliewicz has joined #ruby
sergicles_ has joined #ruby
withnale has joined #ruby
octarine_ has joined #ruby
vadviktor__ has joined #ruby
Coolhand_ has joined #ruby
pdimitrov has quit [Read error: Operation timed out]
tylersmi_ has joined #ruby
eval-in_ has joined #ruby
iaj_ has joined #ruby
deanrock0__ has joined #ruby
wmoxam_ has joined #ruby
StanleyD has joined #ruby
pdimitrov has joined #ruby
mattias__ has joined #ruby
kke_ has joined #ruby
cwarner_ has joined #ruby
likemike_ has joined #ruby
fijimunk1i has joined #ruby
irated has joined #ruby
peterwal1er78 has joined #ruby
Mohan__ has joined #ruby
QKO_ has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
p4tux_ has joined #ruby
iamjarvo has joined #ruby
pr0ggie has quit [Ping timeout: 272 seconds]
maroloccio2 has joined #ruby
ukd1 has quit [Ping timeout: 264 seconds]
DanKnoxz has joined #ruby
machuga_ has joined #ruby
machuga_ has quit [Excess Flood]
germanstudent_ has joined #ruby
KernelPone has joined #ruby
crazed- has joined #ruby
scottstamp_ has joined #ruby
DanKnoxz is now known as DanKnox
orionstez has joined #ruby
orionstez is now known as orionstein
the_ment- has joined #ruby
OdNairy has joined #ruby
fijimunkii has quit [*.net *.split]
tylersmith has quit [*.net *.split]
lfox has quit [*.net *.split]
Apane has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
Liothen has quit [*.net *.split]
p4tux has quit [*.net *.split]
sergicles has quit [*.net *.split]
Catie has quit [*.net *.split]
p8952 has quit [*.net *.split]
BraddPitt has quit [*.net *.split]
RTG` has quit [*.net *.split]
cwarner has quit [*.net *.split]
ItSANgo_ has quit [*.net *.split]
pryorda has quit [*.net *.split]
rclements has quit [*.net *.split]
octarine has quit [*.net *.split]
mattias_ has quit [*.net *.split]
darrik has quit [*.net *.split]
the_mentat has quit [*.net *.split]
eval-in has quit [*.net *.split]
testr0n has quit [*.net *.split]
iaj has quit [*.net *.split]
maroloccio has quit [*.net *.split]
scottstamp has quit [*.net *.split]
_HolyCow has quit [*.net *.split]
Mohan has quit [*.net *.split]
pixelgremlins has quit [*.net *.split]
nw has quit [*.net *.split]
crazedpsyc has quit [*.net *.split]
withnale_ has quit [*.net *.split]
germanstudent has quit [*.net *.split]
Coolhand has quit [*.net *.split]
vadviktor_ has quit [*.net *.split]
QKO has quit [*.net *.split]
likemike has quit [*.net *.split]
deanrock0 has quit [*.net *.split]
bahar has quit [*.net *.split]
DanKnox_away has quit [*.net *.split]
orionstein_away has quit [*.net *.split]
onewheelskyward has quit [*.net *.split]
machuga has quit [*.net *.split]
peterwalker78 has quit [*.net *.split]
Douglish has quit [*.net *.split]
wmoxam has quit [*.net *.split]
kke has quit [*.net *.split]
krz has joined #ruby
sergicles_ is now known as sergicles
scottstamp_ is now known as scottstamp
onewheelskyward_ has joined #ruby
machuga_ has joined #ruby
machuga_ is now known as machuga
KernelPone is now known as Catie
freezey has joined #ruby
bahar has joined #ruby
octarine_ is now known as octarine
silent_r1ot has quit [Read error: Operation timed out]
nw has joined #ruby
Apane has joined #ruby
crazed- is now known as crazedpsyc
niftylettuce has quit [Ping timeout: 264 seconds]
lyanchih has quit [Quit: lyanchih]
tsykoduk is now known as zz_tsykoduk
silent_root has quit [Ping timeout: 272 seconds]
priyam_ has quit [Ping timeout: 264 seconds]
zero7 has quit [Ping timeout: 264 seconds]
<allaire> I thought this kind of error was solved with ruby 2.0, any ideas why I still get it? https://gist.github.com/allaire/db3eadb3d5f8c0d392a0
hogeo has joined #ruby
dekz has quit [Ping timeout: 245 seconds]
nateberkopec has joined #ruby
jamblack has joined #ruby
xk_id has quit [Quit:
dekz has joined #ruby
priyam_ has joined #ruby
hiyosi has joined #ruby
zero7 has joined #ruby
jonathanwallace has joined #ruby
p8952 has joined #ruby
zz_tsykoduk is now known as tsykoduk
darrik has joined #ruby
rclements has joined #ruby
brianpWins has quit [Quit: brianpWins]
hiyosi has quit [Ping timeout: 264 seconds]
niftylettuce has joined #ruby
nwertman has quit [Ping timeout: 256 seconds]
pr0ggie has joined #ruby
CreativeEmbassy has joined #ruby
sevenseacat has quit [Ping timeout: 260 seconds]
nateberkopec has quit [Ping timeout: 272 seconds]
decoponio has joined #ruby
Seich has quit [Quit: Computer has gone to sleep.]
stkowski has quit [Quit: stkowski]
jonathanwallace has quit [Ping timeout: 240 seconds]
Seich has joined #ruby
drumsrgr8forn8 has joined #ruby
Targen has quit [Ping timeout: 260 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jkline has quit [Quit: jkline]
iliketurtles has quit [Quit: zzzzz…..]
pranny has joined #ruby
caleb_io has joined #ruby
Seich has quit [Ping timeout: 240 seconds]
aagdbl has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
justsee has quit [Ping timeout: 245 seconds]
larissa has quit [Quit: Leaving]
silent_root has joined #ruby
silent_r1ot has joined #ruby
tsykoduk is now known as zz_tsykoduk
bklane has quit [Quit: Leaving...]
brennanMKE has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
godd2 has quit [Ping timeout: 250 seconds]
Seich has joined #ruby
foredoomed_ has joined #ruby
drumsrgr_ has joined #ruby
simplyaubs has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 241 seconds]
gyre007 has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
Foredoomed has quit [Ping timeout: 265 seconds]
tommyvyo has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nhhagen has joined #ruby
hogeo has quit [Remote host closed the connection]
timonv has joined #ruby
nwertman has joined #ruby
snuffeluffegus has quit [Quit: Leaving]
timonv has quit [Ping timeout: 246 seconds]
nhhagen has quit [Ping timeout: 252 seconds]
drumsrgr8forn8 has joined #ruby
s2013 has joined #ruby
r0bby_ has joined #ruby
funburn has quit [Read error: No route to host]
thams has joined #ruby
bluOxigen has joined #ruby
funburn has joined #ruby
drumsrgr_ has quit [Ping timeout: 240 seconds]
mudmaste_ has quit [Read error: Connection reset by peer]
caleb_io has quit [Quit: caleb_io]
caleb_io has joined #ruby
caleb_io has quit [Client Quit]
mudmaster has joined #ruby
caleb_io has joined #ruby
ukd1 has joined #ruby
octarine has quit []
octarine has joined #ruby
Monie has joined #ruby
lyanchih has joined #ruby
hogeo has joined #ruby
sevenseacat has joined #ruby
justsee has quit [Ping timeout: 272 seconds]
lotion has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
lotion has left #ruby [#ruby]
danshultz has joined #ruby
ukd1 has quit [Ping timeout: 260 seconds]
aagdbl has quit [Quit: This computer has gone to sleep]
simplyaubs has quit [Quit: simplyaubs]
yfeldblum has quit [Ping timeout: 272 seconds]
dhruvasagar has joined #ruby
epichero has joined #ruby
danshultz has quit [Ping timeout: 260 seconds]
allaire has quit []
vasilakisFiL has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
jamblack has quit [Quit: jamblack]
awarner has quit [Ping timeout: 272 seconds]
brennanMKE has joined #ruby
pu22l3r has quit [Remote host closed the connection]
iamjarvo has quit []
pu22l3r has joined #ruby
iliketurtles has joined #ruby
iliketurtles has quit [Max SendQ exceeded]
foredoomed_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
s2013 has quit [Ping timeout: 260 seconds]
lotharn has joined #ruby
jaimef has quit [Excess Flood]
brennanMKE has quit [Ping timeout: 245 seconds]
Deele has joined #ruby
osvico has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
jamblack has joined #ruby
freezey has quit [Remote host closed the connection]
epichero has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
freezey has joined #ruby
aagdbl has joined #ruby
jaimef has joined #ruby
nateberkopec has joined #ruby
hiyosi has joined #ruby
freezey has quit [Ping timeout: 245 seconds]
c0rn has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
iliketurtles has joined #ruby
vasilakisFiL has joined #ruby
iliketurtles has quit [Max SendQ exceeded]
s2013 has joined #ruby
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
nateberkopec has quit [Ping timeout: 260 seconds]
hiyosi has quit [Ping timeout: 246 seconds]
iliketurtles has joined #ruby
taternuts has quit []
jmimi has joined #ruby
foredoomed_ has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
thams has quit [Quit: thams]
jkhwan has quit [Remote host closed the connection]
jamblack has quit [Quit: jamblack]
jkhwan has joined #ruby
yfeldblum has joined #ruby
linojon has quit [Quit: linojon]
dhruvasagar has quit [Read error: Connection reset by peer]
mrsolo has left #ruby ["Leaving"]
dhruvasagar has joined #ruby
GudRiddanz has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
jamblack has joined #ruby
lukec has quit [Quit: lukec]
Flashmasterson has left #ruby [#ruby]
sjuxax has joined #ruby
awarner has joined #ruby
bio is now known as Biohazard
GudRiddanz has left #ruby [#ruby]
<sjuxax> Hi. Getting undefined method `json_create' for Date:Class (NoMethodError) when I try to call Date::json_create on a string, but the method exists in documentation. I'm using ruby 1.9.3-p448.
GudRiddanz has joined #ruby
GudRiddanz has left #ruby [#ruby]
vlad_starkov has quit [Read error: Connection reset by peer]
czsr has joined #ruby
caleb_io has quit [Quit: caleb_io]
nisstyre has quit [Quit: Leaving]
nisstyre has joined #ruby
mj12albert has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
bean__ has joined #ruby
tommyvyo has quit [Read error: No route to host]
jamblack has quit [Quit: jamblack]
havenwood has joined #ruby
nhhagen has joined #ruby
apeiros_ has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
<sevenseacat> Date.json_create ?
mercwithamouth has quit [Quit: Lost terminal]
<sjuxax> sevenseacat: undefined method `json_create' for Date:Class (NoMethodError)
<sevenseacat> have you required date?
<sjuxax> No.
jamblack has joined #ruby
<sjuxax> Thanks!
<sevenseacat> :)
Foredoomed has joined #ruby
io_syl has joined #ruby
timonv has joined #ruby
<sjuxax> Hmm, it still doesn't seem to work. http://dpaste.com/1444426/
ukd1 has joined #ruby
<sjuxax> sevenseacat: ^
foredoomed_ has quit [Ping timeout: 246 seconds]
fridim_ has quit [Ping timeout: 260 seconds]
<sevenseacat> interesting
mercwithamouth has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
nisstyre has quit [Quit: Leaving]
dhruvasagar has joined #ruby
ukd1 has quit [Ping timeout: 260 seconds]
<sevenseacat> im seeing the same behaviour but i cant work out a cause for it
<sevenseacat> must be missing something
rezzack has quit [Ping timeout: 245 seconds]
Soliah has quit [Quit: Soliah]
<sevenseacat> http://stackoverflow.com/a/4569403/560215 would imply its not something you call directly
jamblack has quit [Quit: jamblack]
dhruvasagar has quit [Read error: Connection reset by peer]
artm has joined #ruby
<sjuxax> yeah, it looks like it's part of the JSON module or something, the URL is json/rdoc/Date.html. require 'json/date' doesn't work either.
<apeiros_> sevenseacat, sjuxax - seems like you have to require it explicitly
<sjuxax> I saw those answers and assumed they were just prior to this implementation
<sevenseacat> yeah i tried requiring json and json/date and a bunch of diff things
<apeiros_> >> require 'date'; require 'json'; require 'json/add/core'; Date.today.to_json
<eval-in_> apeiros_ => (https://eval.in/60858)
<sevenseacat> ah hah
<apeiros_> blerp, what's wrong with eval-in?
<apeiros_> "Forbidden access to file `/'"
vlad_starkov has joined #ruby
<apeiros_> anyway, above code works for me on 2.0
burgess has quit [Quit: ^zzz]
<sevenseacat> works for me in 1.9.3 as well
<sjuxax> Thank you apeiros_. That seems pretty weird. Why does that behave that way?
iliketurtles has joined #ruby
tomzx_mac has quit [Ping timeout: 245 seconds]
<apeiros_> sjuxax: I have no insights into the decision reasoning of ruby core devs.
brennanMKE has joined #ruby
<apeiros_> I'd assume that they wanted changes to how core serializes as json to be optional
ananthakumaran has quit [Ping timeout: 246 seconds]
ananthakumaran has joined #ruby
dhruvasagar has joined #ruby
weems has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
earthquake has joined #ruby
brennanMKE has quit [Ping timeout: 240 seconds]
aspires has quit [Quit: aspires]
noop has joined #ruby
justsee has joined #ruby
hogeo has quit [Remote host closed the connection]
jkhwan has joined #ruby
hogeo has joined #ruby
postmodern has quit [Quit: Leaving]
onewheelskyward_ is now known as onewheelskyward
mercwithamouth has quit [Quit: Lost terminal]
Es0teric has joined #ruby
thecopy has joined #ruby
apeiros_ has quit [Remote host closed the connection]
hogeo_ has joined #ruby
apeiros has joined #ruby
nateberkopec has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
aryaching has quit [Read error: Connection reset by peer]
havenwood has quit []
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiyosi has joined #ruby
weems has joined #ruby
silent_root has quit [Quit: Lost terminal]
silent_r1ot has quit [Quit: Lost terminal]
mercwithamouth has joined #ruby
varfoo has quit [Ping timeout: 272 seconds]
Seich has quit [Quit: Computer has gone to sleep.]
yacks has quit [Ping timeout: 268 seconds]
unstable has left #ruby [#ruby]
dhruvasagar has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Read error: Connection reset by peer]
apeiros has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Ping timeout: 246 seconds]
varfoo has joined #ruby
nateberkopec has quit [Ping timeout: 265 seconds]
frustrum has quit [Ping timeout: 245 seconds]
sayan has joined #ruby
nisstyre has joined #ruby
ananthakumaran has joined #ruby
dEPy has joined #ruby
rickruby has joined #ruby
fuhgeddaboudit has quit [Read error: Operation timed out]
hiyosi has quit [Ping timeout: 260 seconds]
t_p has joined #ruby
dhruvasagar has joined #ruby
dEPy has quit [Ping timeout: 260 seconds]
jrhorn424 is now known as zz_jrhorn424
starchild_ has joined #ruby
s3itz has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
jkhwan has quit [Remote host closed the connection]
joelroa has quit [Quit: Computer has gone to sleep.]
ananthakumaran has joined #ruby
Guest22459 is now known as raar
raar has quit [Changing host]
raar has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
funburn has quit [Quit: funburn]
mr_red has quit [Quit: Bye :)]
tagrudev has joined #ruby
mr_red has joined #ruby
dhruvasagar has joined #ruby
funburn has joined #ruby
pranny has quit [Remote host closed the connection]
thecopy has quit [Quit: thecopy]
threesome has joined #ruby
JohnBat26 has joined #ruby
pranny has joined #ruby
timonv has quit [Remote host closed the connection]
pranny1 has joined #ruby
funburn has quit [Quit: funburn]
justsee has quit [Ping timeout: 246 seconds]
sevenseacat has quit [Quit: Leaving.]
AndChat- has quit [Quit: Bye]
justsee has joined #ruby
lxsameer has joined #ruby
lkba has joined #ruby
Ripp__ has joined #ruby
zipper has joined #ruby
<lxsameer> does tomdoc supports javascript files too ?
pranny has quit [Ping timeout: 264 seconds]
sevenseacat has joined #ruby
oz` has joined #ruby
sergicles has quit [Quit: sergicles]
Seich has joined #ruby
diegok has joined #ruby
bakedb has joined #ruby
tewmten_ has joined #ruby
wereHams1er has joined #ruby
XenoWolf_ has joined #ruby
oz has quit [Ping timeout: 272 seconds]
tewmten has quit [Ping timeout: 272 seconds]
diego_k has quit [Ping timeout: 272 seconds]
bakedb_ has quit [Ping timeout: 272 seconds]
darkc0met has quit [Ping timeout: 272 seconds]
wereHamster has quit [Ping timeout: 272 seconds]
XenoWolf has quit [Ping timeout: 272 seconds]
oz` is now known as oz
atno__ has joined #ruby
kaspergrubbe has joined #ruby
kevinykchan has joined #ruby
tjad has quit [Ping timeout: 246 seconds]
atno has quit [Ping timeout: 245 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
r0bby_ has quit [Read error: No route to host]
nhhagen has joined #ruby
robbyoconnor has joined #ruby
darkc0met has joined #ruby
Kabaka has quit [Ping timeout: 240 seconds]
lewis has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
jaimef has quit [Excess Flood]
varfoo has quit [Ping timeout: 272 seconds]
lewis has joined #ruby
yfeldblu_ has joined #ruby
krz has quit [Ping timeout: 246 seconds]
t_p has quit [Quit: Computer has gone to sleep.]
nhhagen has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
sbos99 has joined #ruby
<lxsameer> i need a document generator which support ruby and javascript?
dhruvasagar has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Read error: Connection reset by peer]
lewis has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
ananthakumaran has joined #ruby
<Kamuela> Could someone take a look at this and explain to me what's going on? http://d.pr/i/IuEc Why isn't my mixed-type array working as the video says it should?
jaimef has joined #ruby
derebos has joined #ruby
<s2013> Kamuela, did you try puts
<Kamuela> s2013: just did, nothing
<s2013> restart irb
<s2013> and do a simple array like arr = [1,2]
<s2013> then arr.inspect
dabos has joined #ruby
<Kamuela> s2013: weird, yeah a restart fixed it
<s2013> cool
<s2013> when in doubt, restart
<Kamuela> weird approach with interpeters lol
mercwithamouth has quit [Quit: Lost terminal]
<s2013> its just approach in life in general
sectionme has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
dEPy has joined #ruby
sbos99 has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
tylersmi_ has quit [Remote host closed the connection]
thecopy has joined #ruby
dmyers has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<Kamuela> class.method(a,b) equivalent to class.method a, b ?
WillAmes has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
myth17 has joined #ruby
brennanMKE has joined #ruby
Apane has quit [Ping timeout: 246 seconds]
WillAmes has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
justsee has quit [Ping timeout: 240 seconds]
brennanMKE has quit [Ping timeout: 246 seconds]
tjad has joined #ruby
derebos has quit [Ping timeout: 240 seconds]
ananthakumaran has quit [Read error: Connection reset by peer]
s2013 has quit [Ping timeout: 272 seconds]
iliketurtles has quit [Quit: zzzzz…..]
myth17 has quit [Quit: Bye Bye...]
Guest66421 has quit [Ping timeout: 264 seconds]
michael_mbp is now known as zz_michael_mbp
ananthakumaran has joined #ruby
BraddBitt is now known as BradPitt
mj12albert has quit [Ping timeout: 260 seconds]
BradPitt is now known as BraddPitt
zipper has quit [Ping timeout: 246 seconds]
nateberkopec has joined #ruby
simplex_ has joined #ruby
zz_tsykoduk is now known as tsykoduk
zz_michael_mbp is now known as michael_mbp
jkhwan has joined #ruby
krz has joined #ruby
krz has quit [Client Quit]
earthquake has quit [Quit: earthquake]
DanKnox is now known as DanKnox_away
wildroman has joined #ruby
hiyosi has joined #ruby
Ripp__ has quit []
pyrac has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
wildroman has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
wildroman has joined #ruby
JimmyAtCMU has joined #ruby
dhruvasagar has joined #ruby
nateberkopec has quit [Ping timeout: 264 seconds]
<JimmyAtCMU> In my code, I used "result=`./some-script.sh`", and the output seems to be cut off at some point.
ananthakumaran has quit [Read error: Connection reset by peer]
<JimmyAtCMU> Does anyone know why it happens? Thanks!
simplex_ has quit [Ping timeout: 245 seconds]
hiyosi has quit [Ping timeout: 264 seconds]
ananthakumaran has joined #ruby
Ripp__ has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
wildroman has quit [Ping timeout: 260 seconds]
varfoo has joined #ruby
kaspergrubbe has quit [Ping timeout: 265 seconds]
codenapper has joined #ruby
Kneferilis has joined #ruby
krz has joined #ruby
tonni has joined #ruby
hogeo_ has quit [Remote host closed the connection]
<Kamuela> I'm going through the Lynda Kevin Skoglund tutorial. Ruby is so beautiful.
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
funburn has joined #ruby
dagobah has joined #ruby
wildroman2 has joined #ruby
ahawkins has joined #ruby
skaflem has joined #ruby
jwang has quit [Ping timeout: 252 seconds]
wchun has joined #ruby
i_s has joined #ruby
vlad_starkov has joined #ruby
relix has joined #ruby
nhhagen has joined #ruby
threesome has quit [Ping timeout: 246 seconds]
drumusician has joined #ruby
JimmyAtCMU has quit [Remote host closed the connection]
hogeo has joined #ruby
JimmyAtCMU has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
tonni has quit [Read error: Connection reset by peer]
JimmyAtCMU has quit [Client Quit]
h_kon has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ananthakumaran has quit [Read error: Connection reset by peer]
joelroa has joined #ruby
Lewix has joined #ruby
lewis has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
ananthakumaran has joined #ruby
codecop has joined #ruby
TheShaun is now known as TheShaun|AFK
preller has joined #ruby
pyrac has quit [Quit: pyrac]
jkhwan has quit [Remote host closed the connection]
Seich has quit [Quit: Computer has gone to sleep.]
jkhwan has joined #ruby
Seich has joined #ruby
nhhagen_ has joined #ruby
zipper has joined #ruby
luckyruby has joined #ruby
<Kamuela> timtowtdi as f
lotharn has quit [Ping timeout: 246 seconds]
ehaliewicz has quit [Ping timeout: 246 seconds]
ananthakumaran has quit [Read error: Connection reset by peer]
lnormous has joined #ruby
i_s has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
i_s has joined #ruby
tonni has joined #ruby
Seich has quit [Ping timeout: 240 seconds]
Bofu2U has quit [Read error: Connection reset by peer]
raar has quit [Ping timeout: 252 seconds]
aspiers has quit [Ping timeout: 245 seconds]
nhhagen_ has quit [Ping timeout: 252 seconds]
jkhwan has quit [Remote host closed the connection]
banjara has joined #ruby
wildroman2 has quit [Remote host closed the connection]
jkhwan has joined #ruby
raar has joined #ruby
raar is now known as Guest18364
andikr has joined #ruby
i_s has quit [Ping timeout: 240 seconds]
zigomir has joined #ruby
nari has quit [Ping timeout: 245 seconds]
Kneferilis has quit [Ping timeout: 264 seconds]
tsykoduk is now known as zz_tsykoduk
aganov has joined #ruby
Astralum has joined #ruby
wallerdev has quit [Quit: wallerdev]
jkhwan has quit [Ping timeout: 272 seconds]
tonni has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
colonolGron has joined #ruby
lnormous has quit [Ping timeout: 272 seconds]
coca_rails has joined #ruby
Astralum has quit [Ping timeout: 264 seconds]
Astralum has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
tonni has joined #ruby
dhruvasagar has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
coca_rails has quit []
tylersmith has joined #ruby
n4dir has joined #ruby
dmyers has quit [Quit: dmyers]
ananthakumaran has joined #ruby
lsmola has joined #ruby
n4dir has left #ruby [#ruby]
<krz> if foo is a var string
vlad_starkov has quit [Remote host closed the connection]
d45h has joined #ruby
<krz> how can i do something like %w(foo bar)
<krz> i.e. evaluate foo in the array
vlad_starkov has joined #ruby
brennanMKE has joined #ruby
metallisto has quit [Quit: ZNC - http://znc.in]
<tobiasvl> krz: what?
osvico has quit [Ping timeout: 272 seconds]
<tobiasvl> do [foo, 'bar'] instead
vlad_starkov has quit [Read error: Connection reset by peer]
<krz> kk
brtdv has joined #ruby
noname001 has joined #ruby
io_syl has quit []
Astralum has quit [Read error: Connection reset by peer]
jwang has joined #ruby
<tobiasvl> %w(foo bar) is syntactic sugar for ['foo', 'bar']
brennanMKE has quit [Ping timeout: 240 seconds]
<tobiasvl> but the latter is the normal array syntax and should be used for anything else than string arrays
tylersmith has quit [Ping timeout: 265 seconds]
zipper has quit [Ping timeout: 246 seconds]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
<krz> tobiasvl: how can i do something similar to: 'z foobar'.include? ['z','sdf']
<krz> basically check if the string containts any of the elements in the array
<tobiasvl> ['z', 'sdf'].each {|s| 'z foobar'.include? s }
<tobiasvl> maybe?
Azulinho has joined #ruby
<krz> ah or any witha block
drumusician has quit [Ping timeout: 272 seconds]
sparq_ has joined #ruby
nateberkopec has joined #ruby
Seich has joined #ruby
sayan has quit [Ping timeout: 272 seconds]
colonolGron has quit [Read error: Connection reset by peer]
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
Seich has quit [Read error: Connection reset by peer]
Seich has joined #ruby
jxw1024 has joined #ruby
zz_tsykoduk is now known as tsykoduk
hiyosi has joined #ruby
sparq_ has quit [Ping timeout: 264 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
nateberkopec has quit [Ping timeout: 256 seconds]
<krz> any way to write this better: https://gist.github.com/7332764
yfeldblu_ has quit [Ping timeout: 246 seconds]
tonni has quit [Read error: Connection reset by peer]
alup has joined #ruby
einarj has joined #ruby
yfeldblum has joined #ruby
Xeago has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
Seich has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
ephemerian has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
Astral_ has joined #ruby
claymore has joined #ruby
tsykoduk is now known as zz_tsykoduk
sayan has joined #ruby
sayan has quit [Remote host closed the connection]
camilasan has joined #ruby
djd has quit [Ping timeout: 250 seconds]
thecopy has quit [Quit: thecopy]
tonni has joined #ruby
djd has joined #ruby
sergicles has joined #ruby
timonv has joined #ruby
newbiehacker has joined #ruby
c0rn has quit []
Hanmac has joined #ruby
lsmola has quit [Quit: Leaving]
lsmola has joined #ruby
pdimitrov has quit [Ping timeout: 260 seconds]
sectionme has quit [Read error: Connection reset by peer]
LarsSmit has joined #ruby
pdimitrov has joined #ruby
ayaz has joined #ruby
platypine has joined #ruby
pr0ggie has quit [Ping timeout: 246 seconds]
vasilakisFiL has quit [Remote host closed the connection]
jhaals has joined #ruby
vasilakisFiL has joined #ruby
pr0ggie has joined #ruby
jhaals has quit [Client Quit]
sectionme has joined #ruby
Bira has joined #ruby
tonni has quit [Remote host closed the connection]
jhaals has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Read error: Connection reset by peer]
tonni has joined #ruby
dhruvasagar has joined #ruby
ananthakumaran has joined #ruby
solars has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
platypine has quit [Ping timeout: 264 seconds]
ananthakumaran has joined #ruby
drumusician has joined #ruby
tonni has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
mengu has quit [Remote host closed the connection]
nhhagen_ has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has quit [Read error: Connection reset by peer]
obs has joined #ruby
threesome has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
krandi has joined #ruby
<krz> ive got a string: 'foo_bar_cover_art.jpg' i need to check if the string has the any of the items in this array: %w(_cover_art _banner _original). at the same time. if th item exists in the string. i need to return the item. in this case. _cover_art will be returned
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
andikr has quit [Ping timeout: 272 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
nhhagen_ has quit [Ping timeout: 252 seconds]
Ripp__ has quit []
robustus has quit [Ping timeout: 264 seconds]
nvrch has joined #ruby
dhruvasagar has joined #ruby
robustus has joined #ruby
__LX__ has quit [Read error: Connection reset by peer]
chomskiii has joined #ruby
joost_like_toast has joined #ruby
chinychinchin has joined #ruby
apeiros has joined #ruby
derebos has joined #ruby
pranny1 has quit [Quit: Leaving.]
barratt has joined #ruby
tesuji has joined #ruby
<jblack> krz: Look at the select method of array
pranny has joined #ruby
Kneferilis has joined #ruby
_Bravado has left #ruby [#ruby]
adambeynon has joined #ruby
tonni has joined #ruby
marcgg_ has quit [Read error: Connection reset by peer]
drumsrgr8forn8 has quit [Remote host closed the connection]
marcgg has joined #ruby
banjara has quit [Quit: Leaving.]
fijimunk1i has quit [Ping timeout: 264 seconds]
marcgg has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
olivier_bK has joined #ruby
_5kg has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
brennanMKE has joined #ruby
tylersmith has joined #ruby
Jazz has quit [Disconnected by services]
ewnd9 has quit [Ping timeout: 245 seconds]
Bira has quit [Remote host closed the connection]
Xykon has joined #ruby
marcgg has quit [Remote host closed the connection]
<krz> jblack: i cant split the string though
<krz> if i split by _. it also splits 'cover_art'
phantummm_ has joined #ruby
justsee has quit [Ping timeout: 265 seconds]
phantummm has quit [Ping timeout: 260 seconds]
phantummm_ is now known as phantummm
brennanMKE has quit [Ping timeout: 245 seconds]
barratt has quit [Quit: Linkinus - http://linkinus.com]
TMM has joined #ruby
TMM has joined #ruby
TMM has quit [Changing host]
marr has joined #ruby
coderhs has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
coderhs has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
sarlalian has quit [Ping timeout: 260 seconds]
sarlalian has joined #ruby
nateberkopec has joined #ruby
ananthakumaran has joined #ruby
barratt has joined #ruby
tylersmith has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
<krz> its too bad, split doesnt accept a block
<krz> then you could just split by multiple keywords
<apeiros> krz: errr? just use a regex
<apeiros> split(/a|b|c/)
Seich has joined #ruby
<apeiros> splits by a, b and c
sectionme has quit [Read error: Connection reset by peer]
zz_tsykoduk is now known as tsykoduk
<krz> scan looks interesting
<krz> 'foo_bar_cover_art.jpg'.scan(/cover_art|banner|original/)
<krz> voila
hiyosi has joined #ruby
ItSAN____ has quit [Ping timeout: 272 seconds]
nateberkopec has quit [Ping timeout: 245 seconds]
<apeiros> scanning is quite different from splitting…
<apeiros> almost opposite. scan gives you the matches, split gives you the stuff between the matches.
marcgg has joined #ruby
d45h has quit [Ping timeout: 246 seconds]
kevinykchan has joined #ruby
Seich has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
<krz> yea i need the matches
<krz> if there are any
sectionme has joined #ruby
hiyosi has quit [Read error: Operation timed out]
TheNumb has quit [Ping timeout: 296 seconds]
simplex_ has joined #ruby
timonv has joined #ruby
TheShaun|AFK is now known as TheShaun
TheNumb has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
kaspergr_ has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
tsykoduk is now known as zz_tsykoduk
lmmx_ has joined #ruby
ananthakumaran has joined #ruby
yfeldblum has joined #ruby
banisterfiend has joined #ruby
patteh has quit [Ping timeout: 245 seconds]
pr0ggie has quit [Ping timeout: 260 seconds]
kaspergrubbe has quit [Ping timeout: 260 seconds]
pdimitrov has quit [Ping timeout: 272 seconds]
eightbitraptor has joined #ruby
pr0ggie has joined #ruby
pdimitrov has joined #ruby
patteh has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
joelroa has quit [Quit: Computer has gone to sleep.]
nism has joined #ruby
andikr has joined #ruby
krandi has quit [Ping timeout: 260 seconds]
zipper has joined #ruby
blaxter_ has joined #ruby
zarubin has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
karupanerura is now known as zz_karupanerura
pyrac has joined #ruby
jlebrech has joined #ruby
<lmmx_> not sure if this is more of an XML question but the method itself relates to ruby (using the multi_xml library) - how do I specify the directory to go "up a level" from xref => contrib (using "../contrib") and back into the tree (to extract the name) http://pastie.org/8459202
ananthakumaran has quit [Read error: Connection reset by peer]
<workmad3> lmmx_: sounds like an xpath question
reset has joined #ruby
<lmmx_> alas the xml room is dead so early in the morning.. sorry to bother
kevinykchan has quit [Quit: Computer has gone to sleep.]
<workmad3> lmmx_: how good are you with xpath?
<Hanmac> lmmx_ use nokogiri when working with ruby + xml
luckyruby has quit [Remote host closed the connection]
<workmad3> hanmac: can't the multi_xml lib use nokogiri as a backend? :)
<Hanmac> i dont know multi_xml
<lmmx_> i can't load nokogiri due to incompatibility with google_drive gem -_-
popl has joined #ruby
popl has joined #ruby
funburn has quit [Quit: funburn]
<lmmx_> by "backend" that just means it requires the library without me seeing it, right? so the incompatibility still stands
<Hanmac> oO
<lmmx_> (◠△◠)
ItSANgo has joined #ruby
<Hanmac> i wonder how can google_drive gem has a problem with nokogiri … i mean does it break when you require nokogiri too? or what do you mean with "incompatibility" ?
krandi has joined #ruby
<lmmx_> literally can't load both of them
<lmmx_> stackoverflow.com/questions/10539516/google-drive-0-3-0-conflicts-with-nokogiri
andikr has quit [Ping timeout: 246 seconds]
shaunbaker has joined #ruby
<lmmx_> all I need to work out though is how to change directory for my .attributes method and it'll work
<Hanmac> facepalm … okay that means that google_drive gem is to shitty/ to old to work with newer nokogiri (currently 1.6.0 is noko's version)
end_guy has quit [Ping timeout: 240 seconds]
<workmad3> hanmac: no, it just has specific incompatibilities with 1.5.1 and 1.5.2
ananthakumaran has joined #ruby
<workmad3> http://rubygems.org/gems/google_drive <-- can't use 1.5.1 or 1.5.2 but otherwise just needs > 1.4.4
kevinfagan has joined #ruby
<lmmx_> no wayyyyyy
<krz> puts file_name.scan(/_banner#{extension}|_cover_art#{extension}/).first
<krz> that works as expected
<Hanmac> hm ok … lmmx_ it should work with newer noko … (or you ruby itself is to old)
<krz> puts file_name.scan(/["_banner#{extension}", "_cover_art#{extension}"]/).first
<krz> doesnt work
dhruvasagar has quit [Read error: Connection reset by peer]
<krz> returns 'n'
dhruvasagar has joined #ruby
<lmmx_> na my ruby's brand new hanmac, will retry with noko ! thanks
<workmad3> lmmx_: or just use 1.5.0 specifically ;)
nhhagen_ has joined #ruby
<workmad3> lmmx_: also, use bundler :)
<lmmx_> bundlewhatnow?
<krz> file_name = 'mEPnlFkQmSwjO61qiFVH_test_banner.jpg'
nisstyre has quit [Quit: Leaving]
<krz> any how i can throw in an array
<lmmx_> it's just a little script, is that overkill?
<Hanmac> krz you can try: puts file_name.scan(/[_banner|_cover_art]#{extension}/).first
brtdv has quit []
<krz> sweet
<krz> wait
<workmad3> lmmx_: a Gemfile that just had 'gem "google_drive"; gem "nokogiri"' would have done decent dependency resolution and not gotten confused
<krz> needs to be [foo|bar] ?
ewnd9 has joined #ruby
<workmad3> lmmx_: you have dependencies, therefore it makes sense to have a Gemfile that declares them, surely?
<workmad3> lmmx_: ;)
<lmmx_> ahh smart
rickruby has quit [Remote host closed the connection]
SUIHDNSJADFDFKMF has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
pyrac has quit [Quit: pyrac]
end_guy has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
<krz> hanmac: it now returns r.jpg
SUIHDNSJADFDFKMF has quit [Client Quit]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
nhhagen_ has quit [Ping timeout: 252 seconds]
ananthakumaran has joined #ruby
<krz> dont think you can use []
<Hanmac> mom
<krz> mom?
<Hanmac> moment … from the string "file_name = 'mEPnlFkQmSwjO61qiFVH_test_banner.jpg'" what part of the file name do you want as return?
soba has quit [Ping timeout: 240 seconds]
nism has quit [Ping timeout: 250 seconds]
d45h has joined #ruby
<krz> _banner.jpg hanmac
<Hanmac> >> file_name = 'mEPnlFkQmSwjO61qiFVH_test_cover_art.jpg'; file_name[/_(banner|cover_art)#{extension}/]
<eval-in_> Hanmac => undefined local variable or method `extension' for main:Object (NameError) ... (https://eval.in/60934)
<krz> extension = '.jpg'
<Hanmac> yeah i forgot
<krz> well put it in
<krz> :-P
<Hanmac> >> file_name = 'mEPnlFkQmSwjO61qiFVH_test_cover_art.jpg'; extension = ".jpg"; file_name[/_(banner|cover_art)#{extension}/]
<eval-in_> Hanmac => "_cover_art.jpg" (https://eval.in/60936)
dhruvasagar has joined #ruby
<krz> ok well lets assume i have this array predefined: %w(banner cover_art)
<krz> would it be possible to throw it in there?
psyl0n has joined #ruby
<Hanmac> >>types = %w(banner cover_art); file_name = 'mEPnlFkQmSwjO61qiFVH_test_banner.jpg'; extension = ".jpg"; file_name[/_(#{types.join('|')})#{extension}/]
blaxter_ has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
<eval-in_> Hanmac => "_banner.jpg" (https://eval.in/60937)
<Hanmac> >>types = %w(banner cover_art); file_name = 'mEPnlFkQmSwjO61qiFVH_test_banner.jpg'; extension = ".jpg"; file_name[/_(#{types.join('|')})#{extension}/,1]
<eval-in_> Hanmac => "banner" (https://eval.in/60938)
<krz> oh wow. so you dont need to use a scan as well?
ananthakumaran has quit [Read error: Connection reset by peer]
<Hanmac> i dont think why i should need to do
plotter has quit [Ping timeout: 245 seconds]
stunthamster has joined #ruby
apeiros has quit [Remote host closed the connection]
Kabaka has joined #ruby
ananthakumaran has joined #ruby
apeiros has joined #ruby
Macaveli has joined #ruby
habanany has joined #ruby
banjara has joined #ruby
Foredoomed has quit [Quit: Going offline, see ya! (www.adiirc.com)]
thecopy has joined #ruby
rickruby has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
habanany has quit [Quit: Bye]
habanany has joined #ruby
brennanMKE has joined #ruby
habanany has quit [Client Quit]
cads has quit [Ping timeout: 252 seconds]
habanany has joined #ruby
funburn has joined #ruby
habanany has quit [Client Quit]
pyrac has joined #ruby
tvw has joined #ruby
cads has joined #ruby
_5kg has joined #ruby
banjara has quit [Ping timeout: 246 seconds]
rdark has joined #ruby
tylersmith has joined #ruby
ewnd9 has quit [Ping timeout: 272 seconds]
brennanMKE has quit [Ping timeout: 260 seconds]
ananthakumaran has quit [Read error: Connection reset by peer]
Elhu has joined #ruby
lkba has joined #ruby
ananthakumaran has joined #ruby
_HolyCow has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
d45h has quit [Ping timeout: 265 seconds]
nateberkopec has joined #ruby
<krz> i have the following array: %w(banner cover_art original). how can i gsub each element of the array instead of doing: basename.gsub('banner', '').gsub('original', '').gsub('cover_art', '')
dhruvasagar has quit [Read error: Connection reset by peer]
_HolyCow1 has quit [Ping timeout: 246 seconds]
<krz> basename = "fooobar_cover_art.jpg"
tylersmith has quit [Ping timeout: 272 seconds]
dhruvasagar has joined #ruby
zz_tsykoduk is now known as tsykoduk
<krz> make sense?
Seich has joined #ruby
plotter has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
reset has quit [Quit: Leaving...]
oie has joined #ruby
simoz has joined #ruby
<krz> nvm
ldnunes has joined #ruby
Seich has quit [Ping timeout: 246 seconds]
<oie> i'm using ubuntu, can someone tell me what i am missing here please? https://gist.github.com/anonymous/7334008
d45h has joined #ruby
<hoelzro> you're missing eventmachine
<oie> i'm installing ruby1.9.1-full
<oie> thanks
tsykoduk is now known as zz_tsykoduk
includex has joined #ruby
user258467 has quit [Remote host closed the connection]
drumusician has quit [Ping timeout: 260 seconds]
simplex_ has quit [Ping timeout: 265 seconds]
greenrose has joined #ruby
sayan has joined #ruby
pranny has quit [Ping timeout: 240 seconds]
justsee has joined #ruby
pyrac has quit [Ping timeout: 260 seconds]
greenrose1 has quit [Ping timeout: 246 seconds]
shaunbaker has quit [Remote host closed the connection]
shaunbaker has joined #ruby
d45h has quit [Ping timeout: 260 seconds]
andikr has joined #ruby
krandi has quit [Ping timeout: 246 seconds]
lyanchih has quit [Read error: Operation timed out]
ananthakumaran has quit [Read error: Connection reset by peer]
klaut has joined #ruby
jaimef has quit [Remote host closed the connection]
cba has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
shaunbaker has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
eka has joined #ruby
pranny has joined #ruby
Banistergalaxy has quit [Ping timeout: 272 seconds]
funburn has quit [Quit: funburn]
Banistergalaxy has joined #ruby
h_kon has quit [Remote host closed the connection]
h_kon_ has joined #ruby
nhhagen_ has joined #ruby
kaspergrubbe has joined #ruby
Ivo has quit [Quit: WeeChat 0.4.2]
hiyosi has joined #ruby
kaspergr_ has quit [Ping timeout: 257 seconds]
wildroman2 has joined #ruby
nhhagen_ has quit [Ping timeout: 252 seconds]
kiri has quit [Ping timeout: 246 seconds]
kiri has joined #ruby
tvw has quit []
kaspergr_ has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
sergicles has quit [Quit: sergicles]
kaspergrubbe has joined #ruby
kaspergr_ has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Remote host closed the connection]
ananthakumaran has quit [Read error: Connection reset by peer]
funburn has joined #ruby
Guest27184 is now known as RTG
dhruvasagar has quit [Read error: Connection reset by peer]
RTG is now known as RTG`
dhruvasagar has joined #ruby
ananthakumaran has joined #ruby
Geniack_ has joined #ruby
allsystemsarego has joined #ruby
<Geniack_> hello, i need some help with simplecov... i am doing a ruby project without any rails stuff and i am calling SimpleCov.do before any requires but the coverage still shows that 0.00 % of code is covered, i cant find a solution on the net... any help?
d45h has joined #ruby
BizarreCake has joined #ruby
ItSANgo has quit [Ping timeout: 264 seconds]
d45h has quit [Max SendQ exceeded]
banisterfiend has quit [Quit: Computer has gone to sleep.]
Soda has joined #ruby
zarubin has quit [Ping timeout: 246 seconds]
wildroman2 has quit [Remote host closed the connection]
banjara has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ewnd9 has joined #ruby
d45h has joined #ruby
simoz has quit [Ping timeout: 245 seconds]
nomenkun has joined #ruby
thecopy has quit [Quit: thecopy]
banjara has quit [Ping timeout: 260 seconds]
krz has quit [Ping timeout: 260 seconds]
brennanMKE has joined #ruby
banisterfiend has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
sergicles has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
tjad_ has joined #ruby
tjad has quit [Ping timeout: 240 seconds]
wildroman has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
tylersmith has joined #ruby
limak has joined #ruby
ananthakumaran has joined #ruby
wildroman has quit [Remote host closed the connection]
limak has left #ruby ["Textual IRC Client: www.textualapp.com"]
brennanMKE has quit [Ping timeout: 260 seconds]
wildroman has joined #ruby
wildroman has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
wildroman has joined #ruby
dhruvasagar has joined #ruby
germanstudent_ has quit [Ping timeout: 260 seconds]
jcromart_ has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
tylersmith has quit [Ping timeout: 240 seconds]
allanm has quit [Read error: Connection reset by peer]
zz_tsykoduk is now known as tsykoduk
Es0teric has joined #ruby
germanstudent has joined #ruby
Es0teric has quit [Client Quit]
Soda has quit [Remote host closed the connection]
noname001 has quit [Read error: Connection reset by peer]
Seich has joined #ruby
nateberkopec has quit [Ping timeout: 260 seconds]
noname001 has joined #ruby
reset has joined #ruby
dsferreira has joined #ruby
kaspergrubbe has joined #ruby
<dsferreira> Hi guys. About design patterns
eightbitraptor has quit [Quit: eightbitraptor]
Macaveli has quit [Quit: Computer has gone to sleep.]
<Hanmac> the only patterns i care, are on my shorts ;P
<dsferreira> I'm righting this gem that needs to use input from the application side
srji has joined #ruby
_reset has joined #ruby
reset has quit [Read error: Connection reset by peer]
germanstudent has quit [Ping timeout: 246 seconds]
bassclef has joined #ruby
<dsferreira> The way I'm considering doing this is by overriding a certain gem class in the application before calling the gem actions
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<dsferreira> What name would have this pattern if any?
Seich has quit [Ping timeout: 246 seconds]
bassclef is now known as Guest97047
germanstudent has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
xk_id has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
Stygia has joined #ruby
reset has joined #ruby
_reset has quit [Read error: Connection reset by peer]
tsykoduk is now known as zz_tsykoduk
sepp2k has joined #ruby
d45h has quit []
drumusician has joined #ruby
rickmasta has quit [Quit: Leaving...]
reset has quit [Ping timeout: 264 seconds]
jaimef has joined #ruby
mercwithamouth has joined #ruby
theRoUS has quit [Ping timeout: 245 seconds]
shaunbaker has joined #ruby
Macaveli has joined #ruby
shaunbaker has quit [Remote host closed the connection]
shaunbaker has joined #ruby
falood has quit [Remote host closed the connection]
pyrac has joined #ruby
Tarential has quit [Excess Flood]
Tarential has joined #ruby
Macaveli_ has joined #ruby
nhhagen_ has joined #ruby
shaunbaker has quit [Ping timeout: 265 seconds]
Macaveli has quit [Ping timeout: 264 seconds]
pranny has quit [Quit: Leaving.]
nateberkopec has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
osvico has joined #ruby
nateberkopec has quit [Client Quit]
chinychinchin has quit [Read error: No route to host]
chinychinchin has joined #ruby
nhhagen_ has quit [Ping timeout: 272 seconds]
rickruby has quit [Remote host closed the connection]
pranny has joined #ruby
rickruby has joined #ruby
rickruby has quit [Read error: Connection reset by peer]
Hanmac has quit [Quit: Leaving.]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
bluenemo has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
dsferreira has quit [Ping timeout: 250 seconds]
ananthakumaran has joined #ruby
lstefani has quit [Ping timeout: 245 seconds]
larissa has joined #ruby
ddpunk has joined #ruby
pyrac has quit [Quit: pyrac]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
osvico has quit [Ping timeout: 272 seconds]
pranny has quit [Quit: Leaving.]
aapzak has quit [Ping timeout: 246 seconds]
ffranz has joined #ruby
banjara has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
aapzak has joined #ruby
thecopy has joined #ruby
banisterfiend has joined #ruby
Beoran__ has joined #ruby
banjara has quit [Ping timeout: 262 seconds]
kitak has quit [Remote host closed the connection]
brennanMKE has joined #ruby
Beoran_ has quit [Ping timeout: 245 seconds]
jonathanwallace has joined #ruby
justsee has quit [Ping timeout: 272 seconds]
tylersmith has joined #ruby
Hanmac has joined #ruby
brennanMKE has quit [Ping timeout: 245 seconds]
ewnd9 has quit [Ping timeout: 264 seconds]
jibi has joined #ruby
rellin has quit [Read error: Connection reset by peer]
patteh has quit [Remote host closed the connection]
Bry8Star{T2 has joined #ruby
thedonvaughn has quit [Ping timeout: 264 seconds]
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mon_Ouie has joined #ruby
funburn has quit [Quit: funburn]
blackmesa has quit [Ping timeout: 240 seconds]
tylersmith has quit [Ping timeout: 272 seconds]
zz_tsykoduk is now known as tsykoduk
IceDragon has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
patteh has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
varfoo has quit [Quit: WeeChat 0.4.0]
Seich has joined #ruby
osvico has joined #ruby
DouweM has joined #ruby
vasilakisFiL has quit [Ping timeout: 246 seconds]
seynb has joined #ruby
thedonvaughn has joined #ruby
xk_id has quit [Quit:
_maes_ has joined #ruby
Seich has quit [Ping timeout: 272 seconds]
danshultz has joined #ruby
rellin has joined #ruby
kaspergrubbe has quit [Ping timeout: 246 seconds]
tsykoduk is now known as zz_tsykoduk
reset has joined #ruby
raphaelivan has joined #ruby
yacks has joined #ruby
kaspergrubbe has joined #ruby
khushildep has joined #ruby
yacks has quit [Max SendQ exceeded]
yacks has joined #ruby
maurogoncalo has joined #ruby
way2go__ has joined #ruby
reset has quit [Ping timeout: 264 seconds]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
xk_id has joined #ruby
pranny has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
marr has quit [Ping timeout: 272 seconds]
vasilakisFiL has joined #ruby
reset has joined #ruby
hogeo has quit [Ping timeout: 272 seconds]
gasbakid has joined #ruby
klaut has quit [Ping timeout: 246 seconds]
klaut has joined #ruby
railsmagnet has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
reset has quit [Ping timeout: 260 seconds]
yacks has quit [Quit: Leaving]
dkamioka has joined #ruby
nateberkopec has joined #ruby
ringtiny has joined #ruby
gasbakid_ has joined #ruby
platypine has joined #ruby
platypine has quit [Changing host]
platypine has joined #ruby
nhhagen_ has joined #ruby
gasbakid has quit [Ping timeout: 272 seconds]
nateberkopec has quit [Ping timeout: 264 seconds]
ahawkins has quit [Read error: Connection reset by peer]
ahawkins has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nonamehero has quit [Ping timeout: 245 seconds]
OdNairy has joined #ruby
Macaveli_ has quit [Ping timeout: 264 seconds]
platypine has quit [Ping timeout: 265 seconds]
tjad_ has quit [Read error: Connection reset by peer]
railsmagnet has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
gasbakid_ has quit [Max SendQ exceeded]
kevinfagan has quit [Read error: Operation timed out]
sectionme has quit [Ping timeout: 272 seconds]
nateberkopec has joined #ruby
nhhagen_ has quit [Ping timeout: 252 seconds]
gasbakid_ has joined #ruby
pu22l3r has joined #ruby
tjad has joined #ruby
xk_id has quit [Quit:
gasbakid_ has quit [Max SendQ exceeded]
zipper has quit [Ping timeout: 246 seconds]
gasbakid_ has joined #ruby
jonahR has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
pu22l3r has quit [Remote host closed the connection]
platypine has joined #ruby
pu22l3r has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
gasbakid_ has quit [Max SendQ exceeded]
osvico has quit []
ItSANgo has joined #ruby
gasbakid_ has joined #ruby
ahawkins has quit [Ping timeout: 260 seconds]
gasbakid_ has quit [Client Quit]
marr has joined #ruby
Clooth has joined #ruby
gasbakid has joined #ruby
joost_like_toast has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Monie has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
gasbakid has quit [Max SendQ exceeded]
banjara has joined #ruby
sergicles has quit [Quit: sergicles]
gasbakid has joined #ruby
vlad_starkov has joined #ruby
platypine has quit [Ping timeout: 260 seconds]
jonathanwallace has quit [Ping timeout: 265 seconds]
sergicles has joined #ruby
allanm has joined #ruby
Monie has quit [Ping timeout: 272 seconds]
SteveBenner9 has quit [Quit: Leaving]
SteveBenner9 has joined #ruby
mlpinit has joined #ruby
gasbakid has quit [Max SendQ exceeded]
banjara has quit [Ping timeout: 240 seconds]
nonamehero has joined #ruby
vasilakisFiL has quit [Read error: No route to host]
Dave has joined #ruby
gasbakid has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Dave is now known as Guest83814
oie has quit [Ping timeout: 250 seconds]
brennanMKE has joined #ruby
jamblack has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Elhu has joined #ruby
blackmesa has joined #ruby
ArchBeOS has joined #ruby
kobain has joined #ruby
shadoi has quit [Read error: Connection timed out]
gasbakid has quit [Max SendQ exceeded]
shadoi has joined #ruby
gasbakid has joined #ruby
tylersmith has joined #ruby
nateberkopec has quit [Quit: Leaving...]
tvw has joined #ruby
jonahR has quit [Quit: jonahR]
brennanMKE has quit [Ping timeout: 272 seconds]
OdNairy has joined #ruby
jonahR has joined #ruby
zz_tsykoduk is now known as tsykoduk
gasbakid has quit [Max SendQ exceeded]
polaco_zZz is now known as polaco
maurogoncalo has quit [Quit: Leaving...]
mark_locklear has joined #ruby
tylersmith has quit [Ping timeout: 245 seconds]
jonahR has quit [Client Quit]
gasbakid has joined #ruby
sectionme has joined #ruby
pranny has quit [Ping timeout: 260 seconds]
Soda has joined #ruby
bklane has joined #ruby
Seich has joined #ruby
<ArchBeOS> who's going to rubyconf this weekend?
ljj has joined #ruby
gasbakid has quit [Max SendQ exceeded]
sectionme has quit [Ping timeout: 246 seconds]
gasbakid has joined #ruby
rickruby has joined #ruby
Seich has quit [Ping timeout: 240 seconds]
vpretzel has joined #ruby
OdNairy has quit [Ping timeout: 265 seconds]
brennanMKE has joined #ruby
breakingthings has joined #ruby
<_br_> I wish
OdNairy has joined #ruby
tsykoduk is now known as zz_tsykoduk
stringoO has joined #ruby
<cout> ArchBeOS: it's this weekend? :(
<cout> I'm going to miss it again this year
<Geniack_> \o/
grzywacz has joined #ruby
LMolr has joined #ruby
<sevenseacat> im going to rubyconf au, does that count?
<ArchBeOS> cout: :(
<cout> 2009 was the last time I was able to go
<ArchBeOS> sevenseacat: only if there are koalas
Monie has joined #ruby
shaunbaker has joined #ruby
<sevenseacat> unlikely.
<ArchBeOS> then no. koalas are a must. (au is australia right? not austria...)
<ArchBeOS> right?
<sevenseacat> it is australia, yeah
atmosx has joined #ruby
hogeo has joined #ruby
colonolGron has joined #ruby
colonolGron has quit [Client Quit]
Ivo has joined #ruby
duggiefresh has joined #ruby
kaldrenon has joined #ruby
sputnik13 has quit [Ping timeout: 246 seconds]
shaunbaker has quit [Ping timeout: 243 seconds]
sputnik13 has joined #ruby
ljj has left #ruby ["WeeChat 0.3.8"]
duggiefresh has quit [Remote host closed the connection]
yalue has joined #ruby
sergicles has quit [Quit: sergicles]
duggiefresh has joined #ruby
fijimunkii has joined #ruby
reset has joined #ruby
lxsameer has quit [Quit: Leaving]
<ArchBeOS> sevenseacat: you guys are like florida, but bigger
tomzx_mac has joined #ruby
<sevenseacat> but more awesome.
<ArchBeOS> idk...i mean, the worst kind of death we get here is gators and pythons. you have spiders the size of a dog...
<ArchBeOS> spider_death > gator_python_death
RaCx has joined #ruby
<sevenseacat> i think if i ever saw a spider the size of a dog, i would shit my pants
mansi has joined #ruby
duggiefresh has quit [Ping timeout: 246 seconds]
* Hanmac would be interested how many gator_pythons are killed by spiders
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dhruvasagar has joined #ruby
reset has quit [Ping timeout: 245 seconds]
<nvrch> oké
jkamenik has joined #ruby
<nvrch> sorry :)
fella6s has quit [Read error: Connection reset by peer]
jibi has quit [Ping timeout: 245 seconds]
yacks has joined #ruby
Monie has joined #ruby
jibi has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
knigitz has quit [Ping timeout: 245 seconds]
OdNairy has joined #ruby
nhhagen_ has joined #ruby
graydot has joined #ruby
graydot has quit [Client Quit]
OdNairy has quit [Client Quit]
dkamioka has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
jkamenik has quit [Quit: Leaving.]
ewnd9 has joined #ruby
<stringoO> How do I do the opposite of (0..3).each
jbpros has joined #ruby
dkamioka has joined #ruby
jkamenik has joined #ruby
<stringoO> (3..0).each doesn't seem to work :(
tonni has quit [Remote host closed the connection]
<waxjar> 3.downto(1) { ... }
smigg has joined #ruby
<stringoO> sounds good, thanks! :)
El_Dood has quit []
mercwithamouth has joined #ruby
devoldmx has joined #ruby
jerius has joined #ruby
<Morrolan> (0..3).reverse, if you find it more readable.
solars has left #ruby ["WeeChat 0.4.0"]
brandon_ has quit [Ping timeout: 248 seconds]
<Morrolan> Eh, you might have to convert it to an array first, come to think of it.
<Morrolan> >> (0..3).reverse
<eval-in_> Morrolan => undefined method `reverse' for 0..3:Range (NoMethodError) ... (https://eval.in/60989)
<Morrolan> Yea.
nhhagen_ has quit [Ping timeout: 252 seconds]
ananthakumaran has quit [Quit: Leaving.]
<DouweM> Morrolan: you'll regret that when you're dealing with larger ranges
dkamioka has quit [Ping timeout: 272 seconds]
<Morrolan> 3..0 is hardly large.
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
allaire has joined #ruby
dmyers has joined #ruby
sectionme has joined #ruby
<waxjar> hence the "when you're dealing with larger ranges" part :P
sambao21 has joined #ruby
<DouweM> ;)
timonv has quit [Remote host closed the connection]
<Morrolan> Worrying about large ranges when being asked about 0..3 seems a tad odd.
<allaire> I thought this kind of error was solved with ruby 2.0 and it was not UTF-8 by default? It looks it still check for LANG and LC_ALL? https://gist.github.com/allaire/db3eadb3d5f8c0d392a0
timonv has joined #ruby
<allaire> and it was utf8*
<DouweM> Morrolan: I'm here to teach people stuff, not just to provide a working code sample. They should be aware of the limitations of .to_a.reverse
<DouweM> I'm actually pretty surprised that Range doesn't support large-to-small ranges out of the box. should be easy enough to support
<sevenseacat> i was surprised when i learnt it, too
phantasm66 has joined #ruby
<waxjar> what do you mean?
aryaching has joined #ruby
jonathanwallace has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
<DouweM> (5..1).to_a == [], but I'd expect [5,4,3,2,1]
kaspergrubbe has joined #ruby
<waxjar> i think it's because any object can be used to create a range
d45h has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<waxjar> as long as pred and next are defined (something like that)?
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
devoldmx has quit [Ping timeout: 272 seconds]
<DouweM> #succ actually, but if there was a #pred too, it would work for both directions
timonv has quit [Ping timeout: 264 seconds]
nari has joined #ruby
Olipro has quit [Ping timeout: 246 seconds]
<waxjar> how would you know which one to call?
<Hanmac> there might be "pred" or "prev" but Range does ignore it
banjara has joined #ruby
<DouweM> waxjar: the objects need #<=> too, so you can check which to use based on first <=> last
linojon has joined #ruby
zz_tsykoduk is now known as tsykoduk
Olipro has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
tesuji has joined #ruby
<waxjar> i guess.
<waxjar> there's also a #reverse_each in Enumerable i just noticed
rickruby has joined #ruby
<sevenseacat> thats kinda cool
banjara has quit [Ping timeout: 260 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
ItSANgo has quit [Ping timeout: 246 seconds]
tonni has joined #ruby
<Hanmac> hm but there is not a reverse_sort :(
wmoxam_ has quit [Quit: leaving]
wmoxam has joined #ruby
wmoxam has quit [Changing host]
wmoxam has joined #ruby
codezomb has joined #ruby
Olipro has quit [Ping timeout: 246 seconds]
Guest83814 has quit [Read error: Connection reset by peer]
pixelgremlins_ba has quit [Ping timeout: 246 seconds]
dangerousdave has joined #ruby
_1_Jodavid has joined #ruby
Monie has joined #ruby
starchild_ has quit [Ping timeout: 260 seconds]
yfeldblu_ has joined #ruby
<tobiasvl> sort { |a, b| b <=> a } ?
angusiguess has joined #ruby
nari has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
niklasb_ has joined #ruby
pixelgremlins_ba has joined #ruby
tylersmith has joined #ruby
sevenseacat has quit [Quit: Leaving.]
jonathanwallace has quit [Ping timeout: 260 seconds]
fuhgeddaboudit has joined #ruby
io_syl has joined #ruby
rickruby has quit [Remote host closed the connection]
_1_Jodavid has quit []
<Hanmac> tobiasvl: yeah but i also want a reverse_sort_by
tkuchiki_ has quit [Remote host closed the connection]
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
tkuchiki has joined #ruby
Dave is now known as Guest90425
tylersmith has quit [Ping timeout: 265 seconds]
Geniack_ has quit [Ping timeout: 272 seconds]
hogeo has quit [Remote host closed the connection]
Geniack_ has joined #ruby
flops has joined #ruby
Seich has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
tsykoduk is now known as zz_tsykoduk
flops has quit [Client Quit]
Geniack_ has quit [Client Quit]
Apane has joined #ruby
Geniack_ has joined #ruby
mmitchell has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
ch0mskiii has joined #ruby
flops has joined #ruby
codecop has quit [Quit: Išeinu]
nari has joined #ruby
Seich has quit [Ping timeout: 246 seconds]
Coolhand_ is now known as Coolhand
momomomomo has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
rickruby has joined #ruby
flops has quit [Client Quit]
VTLob has joined #ruby
lukec has joined #ruby
flops has joined #ruby
chomskiii has quit [Ping timeout: 272 seconds]
yfeldblu_ has quit [Remote host closed the connection]
lmmx_ has quit [Quit: Page closed]
sailias has joined #ruby
yfeldblum has joined #ruby
duggiefresh has joined #ruby
tonni has quit [Read error: Connection reset by peer]
timonv has joined #ruby
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
klaas has joined #ruby
nateberkopec has joined #ruby
Stygia has quit [Quit: Changing systems]
ananthakumaran has joined #ruby
way2go__ has quit [Ping timeout: 250 seconds]
dkamioka has joined #ruby
gasbakid has quit [Read error: Operation timed out]
gasbakid_ has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
pixelgremlins_ba has quit [Ping timeout: 272 seconds]
jamblack has quit [Quit: jamblack]
pu22l3r has joined #ruby
ananthakumaran has joined #ruby
nari has quit [Ping timeout: 272 seconds]
ananthakumaran has quit [Max SendQ exceeded]
zarubin has joined #ruby
drumsrgr8forn8 has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ehc has joined #ruby
ananthakumaran has joined #ruby
justsee has quit [Ping timeout: 272 seconds]
rickmasta has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
frustrum has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
Elhu has joined #ruby
reset has joined #ruby
tonni has joined #ruby
dEPy has quit [Quit: Lingo - http://www.lingoirc.com]
Mon_Ouie has quit [Ping timeout: 272 seconds]
jonahR has joined #ruby
pdimitrov has quit [Ping timeout: 246 seconds]
pr0ggie has quit [Ping timeout: 272 seconds]
pr0ggie has joined #ruby
zz_tsykoduk is now known as tsykoduk
platzhirsch has joined #ruby
reset has quit [Ping timeout: 240 seconds]
aryaching_ has joined #ruby
Guest97047 has quit [Ping timeout: 265 seconds]
mary5030 has joined #ruby
Stygia has joined #ruby
mary5030 has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 265 seconds]
jonahR has quit [Quit: jonahR]
freezey has joined #ruby
GudRiddanz has joined #ruby
mary5030 has joined #ruby
timonv has quit [Remote host closed the connection]
GudRiddanz has left #ruby [#ruby]
timonv has joined #ruby
Apane has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
Apane has joined #ruby
nhhagen_ has joined #ruby
GudRiddanz has joined #ruby
randomnick_ has joined #ruby
GudRiddanz has left #ruby [#ruby]
h_kon_ has quit [Remote host closed the connection]
lstefani has joined #ruby
brandon_ has joined #ruby
tonni has quit [Read error: Connection reset by peer]
cody-- has joined #ruby
pyrac has joined #ruby
johnnyfuchs has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
iamjarvo has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
kevind has joined #ruby
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
MrThePlague has joined #ruby
nhhagen_ has quit [Ping timeout: 252 seconds]
pdimitrov has joined #ruby
tomzx_mac has quit [Ping timeout: 264 seconds]
dabos has quit [Quit: Leaving]
jbpros has quit [Quit: jbpros]
blaxter_ has joined #ruby
jamblack has joined #ruby
robbyoconnor has quit [Ping timeout: 246 seconds]
rickmasta has quit [Quit: Leaving...]
blaxter_ has left #ruby [#ruby]
dcope has joined #ruby
<dcope> hey all
io_syl has quit []
Speed has joined #ruby
elux has joined #ruby
bklane has quit [Quit: Leaving...]
xk_id has joined #ruby
Apane has quit [Ping timeout: 246 seconds]
visof has joined #ruby
<visof> hi
axl_ has joined #ruby
<dcope> hello visof
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<visof> i tried to create rpm package using ruby script; but i do `rpmbuild -ba FOO.spec` ; but get me corrupted file
<visof> i guess it's because rpm need ENV VAR
<visof> what you guys think about this?
ShellFu has joined #ruby
user258467 has joined #ruby
tonni has joined #ruby
tziOm has quit [Remote host closed the connection]
Kneferilis has quit [Ping timeout: 245 seconds]
ddpunk has quit [Remote host closed the connection]
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
<mikecmpbll> visof: pretty sure there's info out there on how to do that.
banjara has joined #ruby
<visof> mikecmpbll: where?
iamjarvo has quit [Remote host closed the connection]
lfox has joined #ruby
<mikecmpbll> are you trying to package a ruby gem for rpm?
<momomomomo> is this the type of thing you're looking for visof : https://coderwall.com/p/imsoha
rippa has joined #ruby
<visof> mikecmpbll: no i'm tryting to pacakge rails app as war and then war as rpm
acrussell has joined #ruby
p8952 has quit [Ping timeout: 264 seconds]
<mikecmpbll> i have no idea, never done anything to do with packages outside of rubygems. i just remember reading something like what momomomomo just posted.
<momomomomo> mikecmpbll: same haha
Ripp__ has joined #ruby
p8952 has joined #ruby
Liothen has joined #ruby
<ShellFu> visof i wouldnt pollute your pkg db like that. Im my opinion id package with something portable like epm, and keep your custom packages separated from the os
<ShellFu> im no pro programmer, but this is how I handle it everyday as a unix admin
divi has joined #ruby
banjara has quit [Ping timeout: 265 seconds]
sayan has quit [Ping timeout: 265 seconds]
<visof> `rpmbuild -ba app.spec` will inherite all ENV?
drumusician has quit [Read error: Connection reset by peer]
<mikecmpbll> :/
drumusician has joined #ruby
lukec has quit [Quit: lukec]
elux_ has joined #ruby
elux has quit [Read error: No route to host]
larissa has quit [Ping timeout: 272 seconds]
g0bl1n has joined #ruby
elux_ has quit [Client Quit]
maletor has joined #ruby
Bira has joined #ruby
<visof> mikecmpbll: ?
RaCx has joined #ruby
<mikecmpbll> visof: nothing :)
noop has quit [Ping timeout: 272 seconds]
baroquebobcat has joined #ruby
tonni has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
ffranz has quit [Remote host closed the connection]
jerius has quit [Ping timeout: 272 seconds]
<dcope> why is the book_id always nil when i call payload_object? payload_object just loads as ymal
<dcope> yaml
lmickh has joined #ruby
<Hanmac> dcope: #rubyonrails
tagrudev has quit [Quit: Me = Awesome]
bean___ has joined #ruby
tylersmith has quit [Ping timeout: 244 seconds]
timonv has joined #ruby
ffranz has joined #ruby
wallerdev has joined #ruby
tsykoduk is now known as zz_tsykoduk
jerius has joined #ruby
wallerdev has quit [Client Quit]
wallerdev has joined #ruby
shaunbaker has joined #ruby
asobrasil has joined #ruby
tonni has joined #ruby
starchild_ has joined #ruby
Seich has joined #ruby
vlad_starkov has joined #ruby
elux has joined #ruby
tonni has quit [Read error: Connection reset by peer]
Targen has joined #ruby
Elhu has joined #ruby
LMolr has quit [Read error: Operation timed out]
MrThePlague has quit []
shaunbaker has quit [Ping timeout: 260 seconds]
jbpros has joined #ruby
Seich has quit [Ping timeout: 248 seconds]
dv__ has joined #ruby
dv_ has quit [Ping timeout: 248 seconds]
mikesplain has joined #ruby
larissa has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
dv__ is now known as dv_
soulcake has joined #ruby
jbpros has quit [Client Quit]
maletor has quit [Ping timeout: 272 seconds]
rickruby has quit [Remote host closed the connection]
neonlex has joined #ruby
thecopy has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
maletor has joined #ruby
Czupa has joined #ruby
wildroman has quit [Remote host closed the connection]
raphaelivan has quit [Quit: Leaving.]
verto has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
pyrac has quit [Ping timeout: 250 seconds]
vlad_starkov has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
zeade has quit [Quit: Leaving.]
platzhirsch has left #ruby [#ruby]
dEPy has joined #ruby
heftig has quit [Quit: Quitting]
timonv has quit [Ping timeout: 264 seconds]
m8 has joined #ruby
jbpros has joined #ruby
kcombs has joined #ruby
fridim_ has joined #ruby
reset has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
typicalbender has joined #ruby
pyrac has joined #ruby
cpruitt has quit [Read error: Connection reset by peer]
mlpinit has quit [Remote host closed the connection]
timonv has joined #ruby
cpruitt has joined #ruby
tsykoduk is now known as zz_tsykoduk
iamjarvo has joined #ruby
Stygia has quit [Quit: Leaving]
mlpinit_ has joined #ruby
Liquid-- has joined #ruby
tomasso has joined #ruby
Bira has joined #ruby
d45h has quit []
<tomasso> im running a process and it does http requests, in one of them I get 404 => Net::HTTPNotFound , and the process stops. I handled that exception by doing begin rescue, but the process continue to stop. Is there some way to make it continue doing other requests?
reset has quit [Ping timeout: 260 seconds]
mikesplain1 has joined #ruby
bluenemo has quit [Remote host closed the connection]
<hoelzro> tomasso: would you mind pasting some code on a pastebin and sending us a link?
usrnix has joined #ruby
mikesplain has quit [Ping timeout: 246 seconds]
<usrnix> Hi, what templating systems are there for ruby? like python's jinja
tjad has quit [Ping timeout: 260 seconds]
Ripp__ has quit []
<Hanmac> usrnix depends what you want … the % method is very powerful
<krz> is it possible to use gsub,to replace only the first occurrence?
mikesplain1 has quit [Client Quit]
<Hanmac> krz #sub
mikesplain has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tomasso> hoelzro: sure, its a short and simple method http://pastebin.com/VLuFrPWx
<usrnix> hanmac: Oh, I'll look into it
<typicalbender> I've never used jinja but maybe something like ERB or slim
<hoelzro> tomasso: and do you call crawl again?
theRoUS has quit [Ping timeout: 246 seconds]
<hoelzro> rescue won't magically restart your method
baroquebobcat has quit [Quit: baroquebobcat]
drag00n has joined #ruby
BigBlueBacon has joined #ruby
<Hanmac> krz you can also use []= it works also like sub wen used an regex
<tomasso> hoelzro: nope.. but in the recursion there should be other sibbling calls on the stack
g0bl1n has quit [Quit: g0bl1n]
g0bl1n_ has quit [Quit: Ex-Chat]
<hoelzro> tomasso: could you paste the *entire* code?
<tomasso> that do not run
<Hanmac> tomasso: try "retry" inside rescue clause
nhhagen_ has joined #ruby
Seich has joined #ruby
<tomasso> mmm le me check
<krz> thanks hanmac
kaspergrubbe has quit [Read error: Operation timed out]
lfox has quit [Ping timeout: 272 seconds]
<hoelzro> hanmac: if the link is 404'ing, won't that just cause an infinite loop?
<tomasso> hoelzro: the other code is simply a large xpath processing , the getDataFrom
threesome has quit [Ping timeout: 264 seconds]
pitzips has joined #ruby
gyre007 has joined #ruby
platzhirsch has joined #ruby
gasbakid__ has joined #ruby
nhhagen_ has quit [Ping timeout: 248 seconds]
gasbakid_ has quit [Ping timeout: 260 seconds]
neonlex has quit []
rickruby has joined #ruby
jbpros has quit [Quit: jbpros]
larissa has quit [Quit: Leaving]
sectionme has quit [Ping timeout: 260 seconds]
btanaka has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 260 seconds]
tesuji has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
enebo has joined #ruby
jonathanwallace has joined #ruby
grzywacz has quit [Quit: :wq]
theRoUS has joined #ruby
xk_id has quit [Quit:
xk_id has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
cads has quit [Ping timeout: 260 seconds]
benzrf has joined #ruby
<benzrf> >> ["foo", "bar", "baz"][10]
<eval-in_> benzrf => nil (https://eval.in/61047)
<benzrf> ^wtf
alex69 has joined #ruby
<benzrf> why isn't that an error?
<alex69> !lista
niklasb_ has quit [Ping timeout: 246 seconds]
<benzrf> ?
alex69 has left #ruby [#ruby]
<Hanmac> benzrf: why should it?
<benzrf> hanmac: well, pretty much every other language ive used makes it an error
<waxjar> you can use #fetch if you want it to raise an exception
<benzrf> i guess the wtf was a gut reaction :p
wildroman has joined #ruby
camilasan has quit [Remote host closed the connection]
<Hanmac> >> a= [1,2,3]; a[5] ||= "x"; a
<eval-in_> Hanmac => [1, 2, 3, nil, nil, "x"] (https://eval.in/61050)
<Hanmac> benzrf: thats why it does not raise
hashpuppy has joined #ruby
camilasan has joined #ruby
jbpros has joined #ruby
<benzrf> oh, neat I gues
<benzrf> d
camilasan has quit [Remote host closed the connection]
camilasa_ has joined #ruby
robbyoconnor has joined #ruby
Liquid-- has quit [Quit: Computer has gone to sleep.]
joast has quit [Quit: Leaving.]
mansi has quit [Remote host closed the connection]
fridim_ has quit [Read error: Operation timed out]
xk_id has quit [Quit:
mansi has joined #ruby
jbpros has quit [Client Quit]
thesheff17 has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
jonathanwallace has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
stringoO has quit [Read error: No route to host]
gcds has joined #ruby
jlast has quit [Read error: Connection reset by peer]
<Hanmac> hmmm i wonder if it would be better when the array is splitted stored … like when you do a= [1,2,3];  a[5]; then its stored like {0=> [1,2,3], 5=>[4]} but iterates as [1,2,3,nil,nil,4] it would be fun to play with
mansi_ has joined #ruby
jlast has joined #ruby
dawkirst has quit [Ping timeout: 246 seconds]
gcds has quit [Read error: Connection reset by peer]
joast has joined #ruby
mansi has quit [Read error: Connection reset by peer]
gcds has joined #ruby
chinychinchin has quit [Quit: Konversation terminated!]
<Hanmac> or something like a splitted Range, that is stored like [1,5,3,6] and is turned into 1.upto(5) + 5.downto(3) + 3.upto(6) ;P
chinychinchin has joined #ruby
thepumpkin has joined #ruby
thepumpkin has quit [Remote host closed the connection]
ewnd9 has quit [Read error: Operation timed out]
thepumpkin has joined #ruby
shredding has joined #ruby
ShellFu is now known as ShellFu_coffee
einarj has quit [Remote host closed the connection]
freakazoid0223 has quit [Read error: Connection reset by peer]
maletor has joined #ruby
d2dchat has joined #ruby
TheShaun is now known as TheShaun|AFK
andikr has quit [Remote host closed the connection]
failshell has joined #ruby
AndChat| has joined #ruby
lfox has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
newbiehacker_ has joined #ruby
<benzrf> ok, what am I missing with this code: http://bpaste.net/show/147332/
thams has joined #ruby
<benzrf> *i wrote it, im asking what I can do better
<benzrf> sorry bad phrasing
Apane has joined #ruby
sambao21 has joined #ruby
stringoO has joined #ruby
jbpros has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
nhhagen_ has joined #ruby
xtristan has joined #ruby
idiocrash has joined #ruby
noname001 has quit [Ping timeout: 272 seconds]
idiocrash has quit [Client Quit]
newbiehacker has quit [Ping timeout: 245 seconds]
includex has quit [Read error: Connection reset by peer]
io_syl has joined #ruby
sectionme has joined #ruby
baroquebobcat has joined #ruby
dawkirst has joined #ruby
i_s has joined #ruby
ShellFu_coffee is now known as ShellFu
chinychinchin has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
kiri has quit [Quit: Leaving]
chinychinchin has joined #ruby
aganov has quit [Remote host closed the connection]
flops has quit [Ping timeout: 246 seconds]
<waxjar> benzrf: you could use each_with_object instead of awkwardly building an Array that you're gonna join anyway
<waxjar> something like title.split.each_with_object("") { |word, memo| memo << "#{word.capitalize} " }
io_syl has quit [Ping timeout: 245 seconds]
deception has joined #ruby
sectionme has quit [Ping timeout: 244 seconds]
ssvo has joined #ruby
dEPy has quit [Quit: Computer has gone to sleep.]
LarsSmit has quit [Quit: Leaving.]
dEPy has joined #ruby
<benzrf> waxjar: each_with_object?
vince_prignano has joined #ruby
<benzrf> also isn't `word.capitalize + ' '` shorter than that
kiri has joined #ruby
Azulinho has quit [Ping timeout: 246 seconds]
dEPy has quit [Client Quit]
jerius has quit [Ping timeout: 248 seconds]
<waxjar> String#+ returns a new string, String#<< modifies the String
dEPy has joined #ruby
<waxjar> you want it to modify the String in this case
<Xeago> title.split.map(&:capatalize).join(" ")
nhhagen has quit [Disconnected by services]
Shidash has joined #ruby
nhhagen_ is now known as nhhagen
<Sou|cutter> honestly I would not sweat about that method
<workmad3> title.split.map{|w| exceptions.include?(w) ? w : w.capitalize}.join(' ').capitalize
<benzrf> Sou|cutter: it's not part of a bigger thing
<benzrf> its practice
* Sou|cutter shrugs
<benzrf> waxjar: I know, I was saying for the space addition
pel_daniel has joined #ruby
vlad_starkov has joined #ruby
<waxjar> ah, i see. it doesn't really matter. i prefer to interpolate :)
zigomir has quit [Quit: zigomir]
dEPy has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
aspiers has joined #ruby
<enebo> In this case bare word.capitalize is fine without interpolation too
<typicalbender> I believe interpolation is in general faster than concatenation for strings
schickung has joined #ruby
robbyoconnor has quit [Ping timeout: 248 seconds]
<typicalbender> looks like the << is actually the fastest. According to this super scientific blog post: http://blog.codahale.com/2006/04/18/ever-wonder-which-is-the-fastest-way-to-concatenate-strings-in-ruby/
lewis has quit []
jlebrech has quit [Quit: Konversation terminated!]
CaptainJet has joined #ruby
<Xeago> that slution will have a trailing spaces
<Xeago> -s
pel_daniel has quit [Ping timeout: 245 seconds]
<SteveBenner9> interpolation is fastest in that post
<enebo> workmad3 solution is faster than concat'ing or interpolation.
jaimef has quit [Read error: Connection reset by peer]
reset has joined #ruby
<Hanmac> workmad3: if it could be called on each word (because of split) woulnt an gsub not faster? ;P
<SteveBenner9> personally I like using << in most cases since its redonkulously readable
<SteveBenner9> and I learned on c++ like most people in college I guess
<SteveBenner9> so << makes my brain feel smart
<typicalbender> SteveBenner9: it is in the case of only doing 1 thing but in the case where three things are interpolated the shovel operator is faster
lnormous has joined #ruby
<SteveBenner9> typicalbender: oh ok :)
elux has quit [Quit: Leaving...]
<typicalbender> :)
<typicalbender> Personally I like reading the interpolation better and then leaving the shovel for things like arrays but thats the power of ruby :)
<Hanmac> hm what about that? (its different but maybe also what he wants) title.gsub(/\w+/){|w| exceptions.include?(w) ? w : w.capitalize}.capitalize
<SteveBenner9> of course when you're using an incredible IDE like Rubymine it's super easy to type out the #{}
jerius has joined #ruby
<typicalbender> #vim
<SteveBenner9> and convert selected text to be interpolated
<workmad3> hanmac: hmm, good point :) I forget about gsub with a block most of the time
<enebo> fwiw, JRuby does #{} faster than <<
whunt has joined #ruby
<benzrf> VIM WOO
<typicalbender> interesting, good to know
<enebo> I would not really consider using one over the other for perf considerations unless it was dire
pyrac has quit [Quit: pyrac]
<SteveBenner9> yes, but I'm lazy like Larry Wall says we should be ;)
<xtristan> Can anyone point me in the right direction to leaving net/ssh connections open while an object is in scope? I see that channels are the way to go, but I need the 'master' connection to stay open to use it N seconds later (where N is nondeterministic)
vlad_starkov has quit [Remote host closed the connection]
<enebo> And using Array.join like Xeago and workmad3 will beat string building since it happens in impl of join
lukec has joined #ruby
<visof> `rpmbuild -ba file.spec`, from inside ruby code didn't give me the write rpmpackage, but if i run rpmbuild -ba file.spec in the shell it gave me the right prm
pel_daniel has joined #ruby
<visof> how can i fix this?
juarlex_ has joined #ruby
<typicalbender> FWIW these are the results of that script with jruby-1.7.6
<typicalbender> user system total real
<typicalbender> << 0.660000 0.010000 0.670000 ( 0.378000)
<typicalbender> #{one}#{two}#{three} 0.190000 0.000000 0.190000 ( 0.148000)
<typicalbender> + 0.310000 0.010000 0.320000 ( 0.210000)
<typicalbender> one#{two}#{three} 0.160000 0.000000 0.160000 ( 0.131000)
<typicalbender> onetwo#{three} 0.120000 0.010000 0.130000 ( 0.102000)
<typicalbender> emebo: looks like your claims hold up :)
<Hanmac> workmad3: "what about Hanmac? what happend to him? " - "yeah he fell into an cauldron of liquid ri/rdoc documentation"
reset has quit [Ping timeout: 245 seconds]
<enebo> typicalbender: yeah it should :)
aagdbl has joined #ruby
<Hanmac> typicalbender: just for cuious what happend with "#{"one"}#{"two"}#{"three"}" ?
<typicalbender> what do you mean what happened with it?
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Hanmac> i mean what are time for that?
deception has quit [Ping timeout: 248 seconds]
danshultz has quit [Remote host closed the connection]
<benzrf> does ruby have something like pythons help()
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CreativeEmbassy has joined #ruby
digital-ghost has joined #ruby
danshultz has joined #ruby
bluOxigen has joined #ruby
user258467 has quit [Quit: Quitte]
aspires has joined #ruby
jerius has quit [Ping timeout: 272 seconds]
jkhwan has joined #ruby
dEPy has joined #ruby
<benzrf> ...??
juarlex has quit [Ping timeout: 272 seconds]
ewnd9 has joined #ruby
yojimbo_ has quit [Ping timeout: 246 seconds]
braincrash has quit [Quit: bye bye]
maletor has joined #ruby
<typicalbender> benzrf: not that I know of
mikeg has joined #ruby
<Hanmac> benzrf: ruby not but irb has ;D
<benzrf> hanmac: how?
<Hanmac> (but i didnt know it before yet ;D )
<typicalbender> hanmac: I copy/pasted the timings for all the for the run with jruby. Can you not see the output?
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Hanmac> benzrf: i typed "help" inside irb
<benzrf> is jruby faster than MRI or something
<Kamuela> Does Ruby ignore whitespace?
<havenwood> benzrf: Type `help` in irb, but use Pry instead! :)
<benzrf> hanmac: oh that is just ri
<havenwood> Kamuela: no
<Hanmac> typicalbender: yeah, i wanted you to do the same with my string
<SteveBenner9> benzrf: its called pry
<Kamuela> havenwood: Then why does it have the "end" keyword?
<benzrf> SteveBenner9: thanks
<havenwood> Kamuela: well, sometimes not
<typicalbender> benzrf: It's faster in some cases, there are optomizations you can do because it runs on the JVM
<SteveBenner9> :)
<workmad3> Kamuela: it doesn't use whitespace to define blocks
<Kamuela> havenwood: also, are the tabs supposed to be spaces in my editor?
<enebo> typicalbender: I will point out another issue with the bench for JRuby though (besides being a bit short). profiled optimizations will be performed throughout whole run so some earlier operations will be punished a little bit
jaimef has joined #ruby
atno__ has quit [Read error: Connection reset by peer]
<benzrf> hanmac: python has a built in callable called 'help' where you can pass in an object or function or module or whatever and it analyzes it and gives you docs
<Kamuela> workmad3: ah ok, but certain lines of text do need whitespace?
sambao21 has quit [Quit: Computer has gone to sleep.]
<havenwood> Kamuela: some whitespace matters, some does not, it isn't whitespace sensitive as a method of closing blocks
danshultz has quit [Read error: Operation timed out]
axl_ has quit [Quit: axl_]
<workmad3> Kamuela: whitespace can change the meaning in significant ways at times, yes :)
<workmad3> Kamuela: e.g. 'some_obj["foo"]' vs 'some_obj ["foo"] '
<havenwood> Kamuela: Whitespace is meaningful, but not for that meaning.
<typicalbender> enebo: yeah I just copied that benchmark from a blog post. Not super scientific
pragmatism has joined #ruby
<typicalbender> but ok for back of the envelope i guess
threesome has joined #ruby
mikecmpbll has joined #ruby
<havenwood> Kamuela: Like here is some valid Ruby that is full-justified to 80 characters: https://gist.github.com/havenwood/7309953
<Kamuela> workmad3: I'm still trying to figure out hello.method('test') versus hello.method test
<SteveBenner9> in Pry I type 'show-doc' or 'show-source'
<workmad3> Kamuela: do you meant 'hello.method test' or 'hello.method "test" '?
huttan has quit [Ping timeout: 272 seconds]
mmcdaris has joined #ruby
braincrash has joined #ruby
<workmad3> Kamuela: because those are 2 *very* different lines :) but
yojimbo_ has joined #ruby
<Kamuela> workmad3: right, the exact equivalent WOULD be hello.method 'test'
<SteveBenner9> havenwood you made my eyes bleed lol
<Kamuela> workmad3: because test would refer to a variable identifier
zz_tsykoduk is now known as tsykoduk
<workmad3> Kamuela: yup
<Kamuela> I decided I wanted to go back and get a pretty good foundation before dealing with Rails just yet
<Kamuela> I have a feeling when I go back, things are gonna be even easier
maniacal_ has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
<enebo> Kamuela: Have you done Ruby Koans yet?
<SteveBenner9> workmad3 also, when you have multi-line strings things can get weird, you use '\' to continue a regular string but some people prefer just using the %q syntax altogether
<Kamuela> enebo: Koans? No, I'm listening to Kevin Skoglund on Lynda
<workmad3> SteveBenner9: I prefer to use a heredoc on multi-line strings
<SteveBenner9> well I meant to say to Kamuela
<SteveBenner9> not workmad3
<workmad3> :)
<enebo> Kamuela: http://rubykoans.com/
<SteveBenner9> yes thats common I hate the sytnax though haha
<havenwood> workmad3: i often find I use %||
<workmad3> SteveBenner9: not spent enough time in bash? :)
<enebo> Kamuela: Lots of practice working through all core libs and some amount of small programs to write like your snippet above
<Kamuela> SteveBenner9: lol, thank you. i got that
<Hanmac> SteveBenner9: what about "this" "kind" "of" "strings" "?" ? :D
axl_ has joined #ruby
JamesLever has joined #ruby
<havenwood> i was pleased yesterday when i discovered i'd written a monkey face: inject(:|)
timonv has quit [Remote host closed the connection]
dagobah has quit [Remote host closed the connection]
atmosx has quit [Quit: Lost in trance]
<workmad3> havenwood: :D
divi has joined #ruby
<workmad3> havenwood: monkey inject!
<typicalbender> At my previous employer we adopted the github ruby style guide which was nice as a beginner for learning the "common" way of doing this. https://github.com/styleguide/ruby
dangerousdave has joined #ruby
Guest90425 has quit [Read error: Connection reset by peer]
<Hanmac> havenwood: "monkeyface for monkey patching" ;D
TehCraw has joined #ruby
timonv has joined #ruby
<SteveBenner9> hanmac: yeah "quotes" are awesome!
<TehCraw> Ah heck, only 906 people here. I was hoping to find a channel that was not quite so small.
<workmad3> havenwood: from now on 'do the monkey' can refer to assembling a set of bit-flags into a bitmask :D
mikesplain1 has joined #ruby
<Hanmac> >> "this" "kind" "of" "strings"
<eval-in_> Hanmac => "thiskindofstrings" (https://eval.in/61062)
iliketurtles has joined #ruby
benwoody has joined #ruby
intuxicated has joined #ruby
drag00n has quit [Ping timeout: 248 seconds]
<TehCraw> Oh that is cool.
rickmasta has joined #ruby
<enebo> That is done by parser so it has no runtime overhead in things like loops
<Kamuela> enebo: This koans thing is mindblowing. I still don't get it but I feel like I'm being awakened
d45h has joined #ruby
mikesplain has quit [Ping timeout: 264 seconds]
TMM has quit [Quit: Ex-Chat]
<enebo> Kamuela: I have been doing Ruby for a long time and I still had fun going through them
kaspergrubbe has joined #ruby
<typicalbender> Karmuela: You should try http://clojurekoans.com/
brianpWins has quit [Quit: brianpWins]
<enebo> Kamuela: I think it is good to get introduced to methods you might not otherwise see
IcyDragon has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
freakazoid0223 has joined #ruby
diegoviola has quit [Ping timeout: 248 seconds]
visof has quit [Changing host]
visof has joined #ruby
thumpba_ has joined #ruby
IceDragon has quit [Ping timeout: 265 seconds]
tsykoduk is now known as zz_tsykoduk
kevind_ has joined #ruby
<benzrf> ive been practicing my basic ruby with http://www.codewars.com/
zz_tsykoduk is now known as tsykoduk
vlad_starkov has joined #ruby
<benzrf> most of the code ive been asking about has been exercises from there
<benzrf> exercizes?
atno has joined #ruby
arietis has joined #ruby
visof has quit [Quit: leaving]
<benzrf> it has silly martial-arts theming but is pretty cool
jbpros has quit [Quit: jbpros]
DanKnox_away is now known as DanKnox
sambao21 has joined #ruby
jerius has joined #ruby
IcyDragon is now known as IceDragon
aagdbl has quit [Quit: This computer has gone to sleep]
nbrock_ has joined #ruby
dEPy has quit [Quit: Computer has gone to sleep.]
kevind has quit [Ping timeout: 272 seconds]
venkat has joined #ruby
kevind_ is now known as kevind
dEPy has joined #ruby
shredding has quit [Quit: shredding]
venkat has quit [Remote host closed the connection]
venkat has joined #ruby
sepp2k has quit [Quit: Konversation terminated!]
edwardly has quit [Ping timeout: 245 seconds]
Voodoofish430 has joined #ruby
alup has quit [Quit: Leaving]
coderhs has joined #ruby
<benzrf> >> [1, 2, 3].fetch 5, "no"
<eval-in_> benzrf => "no" (https://eval.in/61064)
nbrock_ has left #ruby [#ruby]
bluOxigen has quit [Read error: Connection reset by peer]
<Hanmac> >> [1,2,3].fetch(5) {|i| i * 2 }
<eval-in_> Hanmac => 10 (https://eval.in/61065)
bluOxigen has joined #ruby
geggam has joined #ruby
DrShoggoth has joined #ruby
aa47f8 has joined #ruby
shaunbaker has joined #ruby
s2013 has joined #ruby
DanBoy has quit [Remote host closed the connection]
dEPy has quit [Ping timeout: 272 seconds]
DanBoy has joined #ruby
aspiers has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
AndChat| has quit [Ping timeout: 246 seconds]
dEPy has joined #ruby
Banistergalaxy has joined #ruby
kevinykchan has joined #ruby
dEPy has quit [Client Quit]
mlpinit_ has quit [Remote host closed the connection]
banjara has joined #ruby
juarlex_ has quit [Remote host closed the connection]
dEPy has joined #ruby
nonamehero has quit [Ping timeout: 260 seconds]
heftig has joined #ruby
shaunbaker has quit [Ping timeout: 260 seconds]
thumpba_ has quit [Remote host closed the connection]
nvrch has quit [Quit: nvrch]
srji has quit [Ping timeout: 264 seconds]
srji has joined #ruby
Azulinho has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
vlad_starkov has joined #ruby
glaksmono_ has joined #ruby
pyrac has joined #ruby
tsykoduk is now known as zz_tsykoduk
danshultz has joined #ruby
mlpinit has joined #ruby
<benzrf> does ruby have any form of hash unpaclng?
<benzrf> *unpacking
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
glaksmono_ has quit [Client Quit]
derebos has quit [Ping timeout: 264 seconds]
glaksmono has joined #ruby
dEPy has quit [Ping timeout: 264 seconds]
Speed has left #ruby ["WeeChat 0.4.2"]
rickmasta has quit [Quit: Be back later]
<benzrf> >> {a: 1, b: 2}[:a, :b]
<eval-in_> benzrf => wrong number of arguments (2 for 1) (ArgumentError) ... (https://eval.in/61066)
<benzrf> huh
<benzrf> >> {a: 1, b: 2}[:a :b]
<eval-in_> benzrf => /tmp/execpad-1cc79e6e4dd5/source-1cc79e6e4dd5:2: syntax error, unexpected ':', expecting ']' ... (https://eval.in/61067)
<benzrf> :|
lukec has quit [Quit: lukec]
TehCraw has left #ruby ["Leaving"]
iliketurtles has joined #ruby
<Hanmac> >> {a: 1, b: 2}.values_at :a, :b
<eval-in_> Hanmac => [1, 2] (https://eval.in/61068)
<benzrf> oh, thanks
rickmasta has joined #ruby
Czupa has quit [Remote host closed the connection]
a1ph4g33k has joined #ruby
lfox has left #ruby [#ruby]
Dreamer3 has quit [Quit: Leaving...]
ananthakumaran has quit [Quit: Leaving.]
randomnick_ has quit [Quit: Leaving]
pel_daniel has quit [Read error: Connection reset by peer]
schickung has quit [Quit: schickung]
ce_afk is now known as cescalante
JamesLever has quit [Quit: Verlassend]
randomnick_ has joined #ruby
stunthamster has quit [Quit: Linkinus - http://linkinus.com]
typicalbender has quit [Quit: Leaving.]
timonv has joined #ruby
<a1ph4g33k> good morning folks.
Azulinho has quit [Ping timeout: 265 seconds]
yfeldblu_ has joined #ruby
pel_daniel has joined #ruby
camilasa_ has quit [Remote host closed the connection]
iliketurtles has quit [Ping timeout: 260 seconds]
benzrf has quit [Read error: No route to host]
camilasan has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
olivier_bK has quit [Ping timeout: 260 seconds]
timonv has quit [Read error: Connection reset by peer]
<_br_> obligatory question. Anyone managed to get rack-livereload, guard-livereload working with Slim & Sinatra ? Haml ?
s2013 has quit [Ping timeout: 244 seconds]
timonv has joined #ruby
Banistergalaxy has quit [Ping timeout: 244 seconds]
einarj has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
timonv has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby
cody-- has quit [Quit: derp]
zeade has joined #ruby
timonv has joined #ruby
Geniack_ has quit [Quit: leaving]
Tuxist has joined #ruby
atno__ has joined #ruby
<allaire> Ruby 2.0 is said to be UTF-8 by default, but I just debugged my server because LANG wasnt set and ruby was falling back to ASCII, is this normal?
jhulten has joined #ruby
caleb_io has joined #ruby
<havenwood> took me a sec to realize that wasn't meant to be liver_e_load, i need coffee
SteveBenner9 has quit [Ping timeout: 272 seconds]
Spami has joined #ruby
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gcds has quit [Remote host closed the connection]
atno has quit [Ping timeout: 245 seconds]
Mon_Ouie has joined #ruby
ddpunk has joined #ruby
<havenwood> allaire: The default encoding is indeed UTF-8 in Ruby 2.0+.
barratt has quit [Ping timeout: 246 seconds]
pushpak has joined #ruby
jonahR has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
heidi has joined #ruby
<havenwood> allaire: What do you get for?: locale
Elhu has quit [Quit: Computer has gone to sleep.]
<allaire> havenwood: what do you mean?
banjara has quit [Quit: Leaving.]
<allaire> havenwood: when I type `locale` in my shell?
<havenwood> allaire: If you type `locale` at the command line, what is echoed?
<havenwood> allaire: yup yup
obs has quit [Quit: ChatZilla 0.9.87 [Iceape 2.7.12/20130119095535]]
zeropx has joined #ruby
<allaire> havenwood: Now it's is correctly set to LANG="en_CA.UTF-8", so it's all good
<havenwood> allaire: Are your LC_'s all UTF-*?
<allaire> but on my server, it wasnt set at all
<allaire> it was echoing to LANG= and LC_ALL=
jonahR is now known as jonahoffline
mark_locklear has quit [Ping timeout: 272 seconds]
<allaire> so my question is, if ruby 2.0 is utf-8 by default, why, even if LANG and LC_ALL wasnt set, was still getting 'invalid byte sequence in US-ASCII' error
apeiros has joined #ruby
<allaire> now that these two constants are set, everything's fine, but it wasnt prior to that
stringoO has quit [Ping timeout: 248 seconds]
<allaire> havenwood: I had to use the same weird hack I used to have with ruby 1.9 like that: http://stackoverflow.com/questions/13650562/invalid-byte-sequence-in-us-ascii-when-trying-to-start-rails-app-with-phusion-pa (I simply removed the if =~)
stringoO has joined #ruby
<Mon_Ouie> That's the default encoding for your source code and for literals in your code
<Mon_Ouie> It doesn't affect the default encoding for external inputs (e.g. files), which still depends on locales
camilasan has quit []
bigoldrock has joined #ruby
<havenwood> allaire: You're positive you're actually running Ruby 2.0.0? (Unless like Mon_Ouie mentions you're reading a file encoded as US-ASCII, as it's still going to be that no matter what Ruby's internals are.)
<allaire> havenwood: yes, positive I'm running 2.0
lukec has joined #ruby
ananthakumaran has joined #ruby
<allaire> Mon_Ouie havenwood : https://gist.github.com/allaire/db3eadb3d5f8c0d392a0 — that was the error
gyre007 has quit [Remote host closed the connection]
dzan has quit [Quit: ZNC - http://znc.sourceforge.net]
<allaire> as you can see by the path that I'm on 2.0
edwardly has joined #ruby
gyre007 has joined #ruby
reset has joined #ruby
dzan has joined #ruby
brianpWins has joined #ruby
cody-- has joined #ruby
brianpWins has quit [Client Quit]
<allaire> Mon_Ouie: So you're explanation is right in my case? could you detail it a bit more? It still sound a bit confused :)
RaCx_ has joined #ruby
pyrac has quit [Quit: pyrac]
ch___ has joined #ruby
RaCx has quit [Ping timeout: 260 seconds]
RaCx_ is now known as RaCx
gyre007 has quit [Ping timeout: 260 seconds]
reset has quit [Ping timeout: 248 seconds]
typicalbender has joined #ruby
<Mon_Ouie> I'm not sure whether or not it is.
ch___ has quit [Remote host closed the connection]
<Mon_Ouie> Oh, actually it might well be. The code that loads the gemspec probably does something like eval(File.read(…))
ch___ has joined #ruby
<Mon_Ouie> And File.read returns a string whose encoding is Encoding.default_external (which depends on your locales)
<ch___> connect
ch___ has quit [Remote host closed the connection]
elux has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
ch___ has joined #ruby
ch___ has quit [Remote host closed the connection]
ghr has quit [Quit: Computer has gone to sleep.]
typicalbender has quit [Client Quit]
banjara has joined #ruby
<Mon_Ouie> So when that string gets eval'd ruby thinks it's ascii because that's the encoding it was marked with
zigomir has joined #ruby
iliketurtles has joined #ruby
mfoo has joined #ruby
aapzak has quit [Ping timeout: 264 seconds]
<mfoo> Hi, is it possible to identify what library support Ruby was compiled with at runtime? In this case I am interested if ruby was compiled with readline support
typicalbender has joined #ruby
<havenwood> allaire: well, you don't need the link >.> but for others
Stygia has joined #ruby
<cout> mfoo: I don't think the ruby binary itself gets linked directly to readline
czsr has quit [Remote host closed the connection]
koalallama has joined #ruby
<cout> mfoo: so you should be able to just require 'readline' and see if it raises an exception
aapzak has joined #ruby
<mfoo> cout << I'll try that, thanks
czsr has joined #ruby
srji has quit [Quit: Lost terminal]
davividal has joined #ruby
maurogoncalo has joined #ruby
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
<allaire> mfoo: I see what you did there
n4dir has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
<allaire> brb later
n4dir has left #ruby [#ruby]
allaire has quit []
earthquake has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
bigoldrock has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
chineduu has joined #ruby
Methylated has joined #ruby
freerobby has joined #ruby
freakazoid0223 has quit [Read error: Connection reset by peer]
chinychinchin has quit [Ping timeout: 244 seconds]
bigoldrock has joined #ruby
tylersmith has joined #ruby
wildroman has quit [Remote host closed the connection]
Es0teric has joined #ruby
wildroman has joined #ruby
tylersmith has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
havenwood has quit []
pyrac has joined #ruby
tylersmith has joined #ruby
wildroman has quit [Read error: Operation timed out]
Bira has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
ddpunk has quit [Remote host closed the connection]
lfox has joined #ruby
krz has quit [Quit: krz]
ddpunk has joined #ruby
banisterfiend has joined #ruby
JimmyAtCMU has joined #ruby
jaimef has quit [Remote host closed the connection]
mansi_ has quit [Remote host closed the connection]
ssvo has quit [Remote host closed the connection]
mansi has joined #ruby
<JimmyAtCMU> When I do "result = `./script.sh`", apparently the string is cut off when the output is long.
<JimmyAtCMU> How should I deal with the issue?
chineduu has quit [Read error: Connection reset by peer]
chineduu has joined #ruby
<cout> use IO.popen
joelroa has joined #ruby
rndstr has quit [Remote host closed the connection]
davidboy has quit [Remote host closed the connection]
chuk has quit [Remote host closed the connection]
heidar has quit [Remote host closed the connection]
akhkharu has quit [Remote host closed the connection]
ziyadb has quit [Remote host closed the connection]
tommyvyo_ has quit [Remote host closed the connection]
zero7 has quit [Remote host closed the connection]
pipecloud has quit [Remote host closed the connection]
andrewstewart has quit [Remote host closed the connection]
im0b has quit [Remote host closed the connection]
rubyguy has quit [Remote host closed the connection]
kapowaz has quit [Remote host closed the connection]
xerxas has quit [Remote host closed the connection]
zpinter has quit [Remote host closed the connection]
randym_ has quit [Remote host closed the connection]
lectrick has quit [Remote host closed the connection]
sec_ has quit [Remote host closed the connection]
guilleiguaran_ has quit [Remote host closed the connection]
bluehavana has quit [Remote host closed the connection]
Guest85414___ has quit [Write error: Broken pipe]
mattyohe has quit [Write error: Broken pipe]
dnyy has quit [Write error: Broken pipe]
<cout> whoa
petey has joined #ruby
ddpunk has quit [Ping timeout: 244 seconds]
<tylersmith> i have a resque question and am wondering if there's a more specific channel i should ask in than here
<tylersmith> me and google can't find any
<JimmyAtCMU> cout: What is IO.popen?
joshwines has quit [Remote host closed the connection]
mroth has quit [Remote host closed the connection]
dziga has quit [Remote host closed the connection]
dekz has quit [Remote host closed the connection]
Domon_ has quit [Remote host closed the connection]
strax has quit [Remote host closed the connection]
geoffw8_ has quit [Remote host closed the connection]
flowerhack has quit [Remote host closed the connection]
Zespre has quit [Remote host closed the connection]
[Neurotic] has quit [Remote host closed the connection]
TheHodge has quit [Remote host closed the connection]
djd has quit [Remote host closed the connection]
Bira has joined #ruby
Naeblis has quit [Remote host closed the connection]
karnowski has quit [Remote host closed the connection]
caleb_io has quit [Quit: caleb_io]
JoeTheGuest has quit [Remote host closed the connection]
ckrailo has quit [Remote host closed the connection]
blooberr_ has quit [Remote host closed the connection]
octarine has quit [Remote host closed the connection]
<cout> jimmyatcmu: IO.popen('./foo.sh') { |file| file.each_line { |line| ... } }
momomomomo has joined #ruby
mansi has quit [Ping timeout: 272 seconds]
nhhagen has quit [Remote host closed the connection]
chineduu has quit [Ping timeout: 248 seconds]
nhhagen has joined #ruby
nhhagen_ has joined #ruby
<JimmyAtCMU> cout: Thanks!
divi has joined #ruby
drag00n has joined #ruby
klaut has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
Liquid-- has joined #ruby
RaCx has quit [Ping timeout: 260 seconds]
moeSeth has quit [Remote host closed the connection]
gilesw_ has quit [Remote host closed the connection]
priyam_ has quit [Remote host closed the connection]
cam`_ has quit [Remote host closed the connection]
notbrent__ has quit [Remote host closed the connection]
shaileshg_ has quit [Remote host closed the connection]
mostlybadfly has quit [Remote host closed the connection]
jpinnix has quit [Remote host closed the connection]
[0x1a]_ has quit [Remote host closed the connection]
gazoombo has quit [Remote host closed the connection]
niftylettuce has quit [Remote host closed the connection]
xpirator has quit [Remote host closed the connection]
cool has quit [Remote host closed the connection]
ggherdov has quit [Remote host closed the connection]
drumusician has quit [Ping timeout: 264 seconds]
jonathanwallace has joined #ruby
rickmasta has quit [Quit: Leaving...]
hashpuppy has quit [Quit: Computer has gone to sleep.]
mansi has joined #ruby
<JimmyAtCMU> cout: Do you know how I could get an array of all the lines?
<cout> file.readlines
sepp2k has joined #ruby
hashpuppy has joined #ruby
OdNairy has joined #ruby
nhhagen_ has quit [Ping timeout: 252 seconds]
allaire has joined #ruby
<waxjar> the whole file's gonna be in memory that way, tho. if your output is very big that might be a problem
silur has joined #ruby
<silur> Hello all
banisterfiend has quit [Quit: Computer has gone to sleep.]
khushildep has quit [Quit: khushildep]
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
<silur> Can I somehow retrieve e.message in this one-liner: JSON.parse("") rescue {:msg => "error"}
noop has joined #ruby
banisterfiend has joined #ruby
dekz has joined #ruby
mikesplain1 has quit [Quit: WeeChat 0.4.2]
mikesplain has joined #ruby
<typicalbender> JSON.parse(nil) rescue puts "foo"
<typicalbender> that works as a 1 liner
hiyosi has joined #ruby
mroth has joined #ruby
<silur> typicalbender, but i want to retrieve message that is within Exception
<typicalbender> ah
<Hanmac> typicalbender: did you know that you can use "raise" as default parameter ? ;D
<JimmyAtCMU> cout: Oh okay, thanks!
MrZYX|off is now known as MrZYX
<typicalbender> hanmac: that certainly would have made more sense :)
pyrac has quit [Quit: pyrac]
<Hanmac> >> def abc(val = raise "MyError");end; abc
<eval-in_> Hanmac => /tmp/execpad-7ad1bbdde0f1/source-7ad1bbdde0f1:2: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' ... (https://eval.in/61106)
<Hanmac> hm something like that
anderse has joined #ruby
moeSeth has joined #ruby
ckrailo has joined #ruby
nobitanobi has joined #ruby
wald0 has joined #ruby
<wald0> what is your* favorite vim colorscheme for Ruby syntax ?
mark_locklear has joined #ruby
alvaro_o has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
<wald0> im searching for a friend/nicest one to use
<wald0> friendly*
pyrac has joined #ruby
<typicalbender> wald0: I used distinguished which I like, currently using wombat
Guest85414___ has joined #ruby
kapowaz has joined #ruby
SHyx0rmZ has joined #ruby
jpinnix has joined #ruby
<typicalbender> silur: I don't think you can make it one line and still graph the exception object. At least as far as i know
huttan has joined #ruby
tsykoduk is now known as zz_tsykoduk
m4rcu5 has quit [Ping timeout: 260 seconds]
ssvo has joined #ruby
<typicalbender> silur: sorry I lied. Found this:
<typicalbender> JSON.parse(nil) rescue puts $!.inspect, $@
zz_tsykoduk is now known as tsykoduk
huttan has quit [Read error: Operation timed out]
<typicalbender> $! is the exception $@ is the backtrace
replay has joined #ruby
Monie has joined #ruby
dexec has joined #ruby
RaCx has joined #ruby
RaCx has quit [Remote host closed the connection]
heidar has joined #ruby
heftig has quit [Quit: Quitting]
RaCx has joined #ruby
m4rcu5 has joined #ruby
momomomomo has quit [Quit: momomomomo]
octarine has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
djd has joined #ruby
<allaire> Mon_Ouie: Are you still around?
RaCx has quit [Client Quit]
niftylettuce has joined #ruby
yfeldblum has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
dnyy has joined #ruby
cool has joined #ruby
strax has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
JimmyAtCMU has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
Ripp__ has joined #ruby
bluehavana has joined #ruby
soheil has joined #ruby
guilleiguaran_ has joined #ruby
banjara has quit [Client Quit]
TheHodge has joined #ruby
banjara has joined #ruby
c0rn has joined #ruby
davidboy has joined #ruby
stkowski has joined #ruby
SevenWolf has joined #ruby
blooberr_ has joined #ruby
allaire has quit []
ddpunk has joined #ruby
typicalbender has quit [Quit: Leaving.]
lectrick has joined #ruby
xerxas has joined #ruby
silur has quit []
geoffw8_ has joined #ruby
notbrent__ has joined #ruby
<Mon_Ouie> allanm: Yes?
ziyadb has joined #ruby
chuk has joined #ruby
<allanm> Mon_Ouie, sorry ?>
<Mon_Ouie> Oh, allaire left
<Mon_Ouie> allanm: nvm
karnowski has joined #ruby
<allanm> kk
tommyvyo_ has joined #ruby
pipecloud has joined #ruby
flowerhack has joined #ruby
gstamp has quit [Ping timeout: 256 seconds]
cam`_ has joined #ruby
im0b has joined #ruby
nhhagen_ has joined #ruby
mattyohe has joined #ruby
skaflem has quit [Quit: Leaving]
randym_ has joined #ruby
sec_ has joined #ruby
gazoombo has joined #ruby
Seich has quit [Ping timeout: 245 seconds]
Naeblis has joined #ruby
priyam_ has joined #ruby
BigBlueBacon has quit [Read error: Operation timed out]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
[0x1a]_ has joined #ruby
rdnsget has joined #ruby
platzhirsch has quit [Quit: Leaving.]
rdnsget has left #ruby [#ruby]
[Neurotic] has joined #ruby
RichardBaker has joined #ruby
mansi has quit [Remote host closed the connection]
lfox has quit [Quit: ZZZzzz…]
gstamp has joined #ruby
mostlybadfly has joined #ruby
mansi has joined #ruby
reset has joined #ruby
Seich has joined #ruby
mansi has quit [Read error: Connection reset by peer]
allaire has joined #ruby
sayd has joined #ruby
thesheff17 has quit [Remote host closed the connection]
pyrac has quit [Quit: pyrac]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<sayd> having some trouble with octopress i think : /opt/boxen/rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to generate an executable file. (RuntimeError)
<sayd> You have to install development tools first.
mansi has joined #ruby
joshwines has joined #ruby
typicalbender has joined #ruby
zero7 has joined #ruby
rdark has quit [Quit: leaving]
banjara has quit [Client Quit]
sambao21 has joined #ruby
typicalbender has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
banjara has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ddpunk has quit [Remote host closed the connection]
ddpunk has joined #ruby
JoeTheGuest has joined #ruby
btanaka has joined #ruby
dziga has joined #ruby
sambao21 has quit [Client Quit]
ggherdov has joined #ruby
Domon_ has joined #ruby
rubyguy has joined #ruby
gilesw_ has joined #ruby
sailias has quit [Ping timeout: 272 seconds]
lfox has joined #ruby
denysonique has quit [Remote host closed the connection]
pkondzior___ has quit [Remote host closed the connection]
banisterfiend has quit [Quit: Computer has gone to sleep.]
geekbri has joined #ruby
rndstr has joined #ruby
ShellFu has quit [Remote host closed the connection]
mfoo has quit [Read error: Operation timed out]
sambao21 has joined #ruby
banisterfiend has joined #ruby
pkondzior___ has joined #ruby
ShellFu has joined #ruby
ewnd9 has quit [Ping timeout: 244 seconds]
ddpunk has quit [Ping timeout: 272 seconds]
ShellFu has left #ruby [#ruby]
ShellFu has joined #ruby
timonv has joined #ruby
<_br_> Interesting theoretical question. If I provide a utf-8 input in ruby is it possible to guard it agains XSS by e.g. whitelisting certain characters? (this being a multi-lingual string)
akhkharu has joined #ruby
<sayd> i dont suppose anyone coudl help me troubleshoot #boxen? its dead in their support channel
maletor has joined #ruby
shaileshg_ has joined #ruby
<sayd> im confused about the install. it gets a repo put in /opt/boxen/repo and also there is a checkout of the repo in ~/src/out-repo
andrewstewart has joined #ruby
<sayd> do i edit in the src dir and run script/boxen or run the /opt/boxen/bin/boxen hmm its a mystery
Zespre has joined #ruby
<apeiros> _br_: that depends on more than just that. e.g. on where and how you use that whitelisted string.
Guest26798 has joined #ruby
Seich has quit [Quit: Computer has gone to sleep.]
banjara has quit [Quit: Leaving.]
<apeiros> _br_: also you'd have to remember to verify the string is indeed valid utf-8, otherwise your whitelisting can have undesired side-effects
jaimef has joined #ruby
banjara has joined #ruby
Seich has joined #ruby
<_br_> apeiros: that makes sense yes, I was just wondering how one would go in "whitelisting" only wanted chars on a multi-lingual input
<apeiros> Seich: you don't happen to be swiss?
<_br_> (against malicious use)
Azulinho has joined #ruby
LMolr has joined #ruby
FastestMilkman has joined #ruby
<apeiros> _br_: \p{Letter} might help
zpinter has joined #ruby
lfox has quit [Ping timeout: 248 seconds]
platypine has joined #ruby
platypine has joined #ruby
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
sngeth has joined #ruby
xpirator has joined #ruby
Seich has quit [Read error: Connection reset by peer]
<_br_> apeiros: What does \p{} do ?
Seich has joined #ruby
<_br_> ah posix match, never mind
platzhirsch has joined #ruby
<_br_> apeiros: thanks :)
<apeiros> no, not posix match
<apeiros> those are unicode character classes
jbpros has joined #ruby
<_br_> eh? ok, reading manual on that now :]
pel_daniel has quit [Ping timeout: 272 seconds]
mercwithamouth has joined #ruby
deanrock0__ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
banjara has quit [Quit: Leaving.]
hugoleodev has joined #ruby
banjara has joined #ruby
platzhirsch has quit [Client Quit]
<apeiros> ri Regexp lists them
platypine has quit [Ping timeout: 272 seconds]
decoponio has quit [Quit: Leaving...]
kaldrenon has quit [Read error: Connection reset by peer]
sailias has joined #ruby
kaldrenon has joined #ruby
deanrock0 has joined #ruby
jbpros has quit [Client Quit]
<_br_> oh now I understand properly, that is neat
<davividal> can I use xinetd to manage my rails server?
segv has joined #ruby
<davividal> (by rails I mean rails/unicorn/puma/whatever)
havenwood has joined #ruby
<davividal> I'm trying with puma but I keep getting connection refused with xinetd, but if I run manually, it works.
segv has left #ruby ["Linkinus - http://linkinus.com"]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
czsr has quit [Remote host closed the connection]
mikesplain has quit [Quit: WeeChat 0.4.2]
vlad_starkov has joined #ruby
efrainolivares_ has joined #ruby
EHLOVader has joined #ruby
<nobitanobi> Is there any way to give String#include? more than one string to compare too? So, my_base_string.include?(substring1, substring2,...) ?
efrainolivares has quit [Ping timeout: 245 seconds]
vlad_sta_ has joined #ruby
<nobitanobi> I am currently doing my_base.include? subs || my_base.include? subs2 || ..
<EHLOVader> Hello, I was looking into the mailcatcher project ( from here http://mailcatcher.me/ ) they explicitly state that you shouldn't put the mailcatcher into the gemfile...
bluOxigen has quit [Ping timeout: 244 seconds]
braincrash has quit [Ping timeout: 248 seconds]
ddpunk has joined #ruby
<Hanmac> nobitanobi: [substring1,substring2].any? {|s| my_base_string.include?(s)}
momomomomo has joined #ruby
braincra- has joined #ruby
<EHLOVader> I am trying to automate a vagrantfile and wanted to know why? or if there was a huge difference in the gemfile and gem install
mikesplain has joined #ruby
<Hanmac> nobitanobi: or try this: my_base_string =~ /(substring1|substring2)/
platzhirsch has joined #ruby
<jblack> nobitanobi: You could each it.
shaunbaker has joined #ruby
<Hanmac> apeiros: what do you think? which one of this two forms are better?
flops has joined #ruby
<jblack> nobitanobi: Are you trying to find out if an array of strings contains anoter array of strings?
wald0 has quit [Quit: Lost terminal]
<nobitanobi> ok, nice thanks guys
gasbakid__ has quit [Read error: Operation timed out]
cpruitt has quit [Quit: cpruitt]
vlad_starkov has quit [Ping timeout: 245 seconds]
tsykoduk is now known as zz_tsykoduk
jaimef has quit [Remote host closed the connection]
<havenwood> EHLOVader: Looks like the `mailcatcher` gem itself has a variety of dependencies including parts of a specific version of Rails and Sinatra. I guess they figure that the gem requiring such a mishmash of gems that are also likely required in different version by the app itself (if it has a Gemfile).
gasbakid__ has joined #ruby
atno__ is now known as atno
<havenwood> oh, if forgot to end my sentence: is a bad idea...
<EHLOVader> ah, so that would be the version requirements itself.
<EHLOVader> that cause conflicts
<EHLOVader> gotcha, thanks, that makes sense
mroth has quit [Read error: Connection reset by peer]
<EHLOVader> I think through putty or maybe even vagrant itself I can accomplish something to install it outside of gemfiles
<EHLOVader> not putty puppet
<EHLOVader> my brain isn't working either
mroth has joined #ruby
lcf has joined #ruby
shaunbaker has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
<lcf> can you use more than 1 elsif in an if statement ?
<EHLOVader> so ruby... if it wasn't apparent, I am not well versed in it... but I keep running into it being used for provisioning, build scripting, and other utility stuff...
<MrZYX> lcf: yes
shaunbaker has joined #ruby
kaspergrubbe has joined #ruby
<lcf> super
<EHLOVader> Where would you all recommend I get started, if I wanted to learn more than I needed to manage those sorts of things?
lcf has quit [Client Quit]
<Hanmac> lcf but you can look if a case when is not better for your case
sambao21 has quit [Quit: Computer has gone to sleep.]
<MrZYX> too slow ;)
jaimef has joined #ruby
<havenwood> EHLOVader: If you're fairly new to programming, Chris Pine's Learn to Program is a nice intro in Ruby. If you want to jump straight in the deep end, The Ruby Programming Language is a great book.
benwoody has quit [Quit: benwoody]
<havenwood> EHLOVader: Some good (not system programming specific) resources here: https://www.ruby-lang.org/en/documentation/
<EHLOVader> nice, the latter would probably suit me better. I also thought of the progomofo.com as a decent way to get my hands dirty with ruby
hiyosi has joined #ruby
<EHLOVader> I need to find projects I can use these on, looking into ruby, python, node.js etc... previously I had only worked with php, vbs, .net stuff and other proprietary ERP reporting languages...
jonahoffline has quit [Ping timeout: 246 seconds]
<havenwood> EHLOVader: I think Jesse Storimer's books make great, short reads and references: http://www.jstorimer.com/pages/books
sambao21 has joined #ruby
tvw has quit [Read error: Operation timed out]
<EHLOVader> I have seen all of these languages take over the mainstream but haven't had a use for them where I work
<havenwood> EHLOVader: I have the Processes, Sockets, and Threads books and need to re-read all three.
<EHLOVader> ooh, nice havenwood, thanks, those look like just the thing, more about the details
<havenwood> using this iBooks, kinda like it for laptop reading
kaspergrubbe has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
jkhwan has quit [Remote host closed the connection]
weszlem has joined #ruby
jkhwan has joined #ruby
<EHLOVader> well maybe I will lurk some
thepumpkin has quit [Ping timeout: 272 seconds]
<EHLOVader> may come up with some good project ideas to kick the ruby wheels a bit, see how she drives
hugoleodev has quit [Remote host closed the connection]
<havenwood> EHLOVader: Easy to cut a `gem`. RubyGems is nice.
hiyosi has quit [Ping timeout: 248 seconds]
mlpinit has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
pel_daniel has joined #ruby
jonahoffline has joined #ruby
robbyoconnor has joined #ruby
vince_prignano has quit []
Liquid-- has quit [Quit: Computer has gone to sleep.]
jonahoffline has quit [Client Quit]
wildroman has joined #ruby
Clooth has quit [Quit: Leaving...]
aspires has quit [Quit: Adios]
Stygia has quit [Read error: Operation timed out]
maurogoncalo has quit [Quit: Leaving...]
RaCx has joined #ruby
noop has quit [Ping timeout: 248 seconds]
<platzhirsch> What's a good picture to symbolize data harvesting?
aspires has joined #ruby
<platzhirsch> hay silo? :P
<apeiros> a pig feasting
Azulinho has quit [Ping timeout: 264 seconds]
colonolGron has joined #ruby
ddpunk has quit [Remote host closed the connection]
<platzhirsch> \o\
mlpinit has joined #ruby
<MrZYX> a monkey in front of a computer?
reset has quit [Quit: Leaving...]
sambao21 has quit [Quit: Computer has gone to sleep.]
zigomir_ has joined #ruby
<platzhirsch> that would make quite a show for my presentation
mercwithamouth has quit [Ping timeout: 244 seconds]
<platzhirsch> EHLOVader: gross
maletor has quit [Quit: Computer has gone to sleep.]
sngeth has quit [Ping timeout: 250 seconds]
brianpWins has joined #ruby
Apane has quit [Ping timeout: 246 seconds]
r0bby_ has joined #ruby
venkat has quit []
acrussell has quit [Quit: Leaving.]
mansi has quit [Remote host closed the connection]
carraroj has joined #ruby
wildroman has quit []
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
braincrash has joined #ruby
shadoi1 has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
shadoi has quit [Read error: No route to host]
robbyoconnor has quit [Ping timeout: 260 seconds]
banjara has quit [Quit: Leaving.]
breakingthings has quit []
SHyx0rmZ has joined #ruby
banjara has joined #ruby
kirun has joined #ruby
mercwithamouth has joined #ruby
saarinen has joined #ruby
mansi has joined #ruby
shaunbaker has quit []
deanrock0__ has joined #ruby
bigoldrock has quit [Ping timeout: 272 seconds]
<platzhirsch> okay, I will shoot a photo of the gasometer in Berlin for this http://upload.wikimedia.org/wikipedia/commons/f/fa/Gasometer-hyblerpark-2001.jpg less scary ^^
barratt has joined #ruby
samfisher has joined #ruby
bean___ has quit [Remote host closed the connection]
<platzhirsch> actually that's the one of Vienna
<platzhirsch> EHLOVader: it's really for a landing page not some dark hats presentation slide :P
d2dchat_ has joined #ruby
<EHLOVader> haha
Azulinho has joined #ruby
mikesplain1 has joined #ruby
<samfisher> hello. I have a small script with 2 parts, one parses a daily-changed XML one parsing a minutely-changed XML. how can I make first instruction to be run just once?
d2dchat has quit [Read error: Connection reset by peer]
maurogoncalo has joined #ruby
<EHLOVader> almost a data silo.. but a bit square http://www.customercentric.info/wp-content/uploads/2013/05/Big-Data.jpg
<MrZYX> samfisher: make two scripts, extract the common functionality into a library
sindork_ has joined #ruby
LBRapid_ has joined #ruby
<samfisher> MrZYX: but I want only one script...
<MrZYX> because...?
rickmasta has joined #ruby
jhaals has joined #ruby
axl_ has quit [Quit: axl_]
sumark_ has joined #ruby
<ycy> there's something strange in your neighborhood, who you gonna call?
rtl_ has joined #ruby
<platzhirsch> ycy: depends.. 911
<ycy> ghostbusters.
carraroj has quit [Quit: Konversation terminated!]
<Hanmac> ping apeiros
<apeiros> pong
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
thesheff17 has joined #ruby
banjara has quit [Client Quit]
peterhu_ has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
carraroj has joined #ruby
banjara has joined #ruby
JesseH2 has joined #ruby
<Hanmac> apeiros: have you seen my question? what is besser? [str1,str2].any? {|s| str3.include?(s)} or str3 =~ /(str1|str2)/ ?
<Hanmac> i mean "better"
<apeiros> the regex is probably faster
<apeiros> and you don't need the capturing group
maloik_ has joined #ruby
rickruby has quit [Remote host closed the connection]
<samfisher> assuming I have a script that prints "Current time is: #{time}", how can I make it not print a new line each time?
<samfisher> using print "\e[2J\e[f" to clear the console but it's kinda dirty
<MrZYX> use print instead of puts
ix0071 has joined #ruby
heftig has joined #ruby
<Hanmac> apeiros: even if its generated like /(#{strs.join('|')})/ ? ;P
burgess has joined #ruby
<apeiros> hanmac: again, no capturing group needed. and I'd use Regexp.union
alo1_ has joined #ruby
<apeiros> if it's generated - not sure
<apeiros> bench it?
maurogoncalo has quit [Quit: Leaving...]
kaichanvong___ has joined #ruby
<Hanmac> nobitanobi: did you hear that?
<samfisher> MrZYX: same thing, I get the flashing because of console clear
RedNifre has joined #ruby
Azulinho has quit [Ping timeout: 260 seconds]
<RedNifre> Hey there!
platzhirsch has left #ruby [#ruby]
<Hanmac> nobitanobi: my_base_string =~ Regexp.union(substring1,substring2,substring3) may be the bestestest variant ;P
<MrZYX> samfisher: iirc there's an ansi code to clear the current line, google it
aspires has quit [Quit: sudo making a sandwich]
Liquid-- has joined #ruby
Freijo has joined #ruby
platzhirsch has joined #ruby
<RedNifre> I know so little about ruby that I don't even know what to google for. What's it called if I want to add a method to Object that takes a string and some other parameters as input and then adds a new method with that name to the caller?
colonolG1on has joined #ruby
reset has joined #ruby
<nobitanobi> hanmac: thank you :)
elux has quit [Quit: Leaving...]
spacebug has joined #ruby
<RedNifre> All I find are static method additions in the style of "def object.methodname...", but how to do this dynamically?
Ripp__ has quit []
Tobarja_yikes has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
banjara has quit [Client Quit]
jbpros has joined #ruby
braincra- has quit [Ping timeout: 240 seconds]
kenichi has quit [Ping timeout: 240 seconds]
Fuzai has quit [Quit: No Ping reply in 180 seconds.]
deanrock0 has quit [Quit: No Ping reply in 180 seconds.]
Fuzai has joined #ruby
LBRapid has quit [Ping timeout: 240 seconds]
mikesplain has quit [Ping timeout: 240 seconds]
kenichi has joined #ruby
anderson has quit [Quit: Leaving]
LBRapid_ is now known as LBRapid
Y_Ichiro has quit [Quit: No Ping reply in 180 seconds.]
Y_Ichiro has joined #ruby
anderson has joined #ruby
nonamehero has joined #ruby
Fuzai has quit [Client Quit]
Y_Ichiro has quit [Changing host]
Fuzai has joined #ruby
sumark has quit [Ping timeout: 240 seconds]
Y_Ichiro has joined #ruby
sindork has quit [Quit: No Ping reply in 180 seconds.]
rtl has quit [Ping timeout: 240 seconds]
anderson has quit [Max SendQ exceeded]
kenichi has quit [Client Quit]
<apeiros> RedNifre: all method definitions are "dynamic", given that they're at runtime. do you mean with a variable method name?
psyprus has quit [Ping timeout: 240 seconds]
Y_Ichiro has quit [Quit: No Ping reply in 180 seconds.]
Fuzai has quit [Remote host closed the connection]
ix007 has quit [Ping timeout: 240 seconds]
JesseH has quit [Ping timeout: 240 seconds]
peterhu has quit [Ping timeout: 240 seconds]
Fuzai has joined #ruby
Y_Ichiro has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
maloik has quit [Ping timeout: 240 seconds]
epic has quit [Ping timeout: 240 seconds]
kaichanvong has quit [Quit: _]
alo1 has quit [Ping timeout: 240 seconds]
kenichi has joined #ruby
psyprus has joined #ruby
Y_Ichiro has quit [Client Quit]
Guest88548 has quit [Ping timeout: 240 seconds]
Y_Ichiro has joined #ruby
Fraeon has quit [Ping timeout: 240 seconds]
nonamehero has quit [Ping timeout: 240 seconds]
colonolGron has quit [Ping timeout: 240 seconds]
Tobarja has quit [Ping timeout: 240 seconds]
psyprus has quit [Ping timeout: 240 seconds]
spacebug_ has quit [Remote host closed the connection]
mvangala has quit [Ping timeout: 240 seconds]
nonamehero has joined #ruby
mvangala has joined #ruby
psyprus has joined #ruby
Tobarja_yikes is now known as Tobarja
kaichanvong___ is now known as kaichanvong
Y_Ichiro has quit [Changing host]
Y_Ichiro has joined #ruby
<apeiros> fuuu
shevy has joined #ruby
<apeiros> holy splitted nets…
nonamehero has quit [Changing host]
nonamehero has joined #ruby
BizarreCake has quit [Ping timeout: 260 seconds]
<RedNifre> yay, I'm on the same side than the person with the answer :)
<RedNifre> Yes, dynamically.
<apeiros> RedNifre: take a look at Object#define_singleton_method
banjara has joined #ruby
banjara has quit [Client Quit]
aspiers has joined #ruby
hashpuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
banjara has joined #ruby
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mksm has joined #ruby
Seich has quit [Quit: Computer has gone to sleep.]
<shevy> hmm
<shevy> define_singleton_method is the same as cat = Cat.new; def cat.test;puts 'hi';end ?
<RedNifre> thanks, but how to do parameters with that?
Seich has joined #ruby
<apeiros> obj.define_singleton_method do |arg1, arg2, …|
<apeiros> don't the docs have examples?
freakazoid0223 has joined #ruby
anderson has joined #ruby
pyrac has joined #ruby
<shevy> at least not http://apidock.com/ruby/Object/define_singleton_method not with arguments
<shevy> RedNifre, even this here works: A.define_singleton_method(:test2) {|i='hi'|
<apeiros> :(
<RedNifre> Hm, I guess the old Ruby 1.8 that comes with Ubuntu simply doesn't cut it ... :/
ldnunes has quit [Quit: Leaving]
<apeiros> eh, 1.8 is EOL
<apeiros> no support
<apeiros> dead
<apeiros> gone
<RedNifre> The thing is that I want to write a method that allows me to declare other methods.
<apeiros> 1.9 is already >5y old
<momomomomo> You could say that 1.8 just doesn't cut the gems of today
<apeiros> 2.0 >1y (maybe even >2y - I lose track of time…)
* momomomomo puts on sunglasses
Seich has quit [Ping timeout: 260 seconds]
<shevy> RedNifre why don't you use define_method()
<RedNifre> Yeah, I don't understand why 1.8 is used in Ubuntu :/
<apeiros> I think apt by now has 1.9 and maybe even 2.0 packages
<shevy> because this way they want to tell you to use something better than ubuntu
<apeiros> just either named differently or with some flag/option (I don't use apt - #ubuntu or #debian for that)
<RedNifre> I don't know that method, but what I want to do is this: The method I define using my method method first does some things and after that executes the block I passed to it.
<Hanmac> RedNifre: depends how outdated your ubuntu is
<shevy> method method first? :)
<RedNifre> E.g. I might declace a method like this: to :say_hello { puts "hello" }
<shevy> what means this
<shevy> what means "to :say_hello"
<shevy> define_method(:say_hello) { puts 'hello' }
<shevy> I don't know what the "to" means
<RedNifre> "to" would be the name of the method that generates methods. ":say_hello" would be the method name of the method to be generated.
simoz has joined #ruby
<shevy> ok
<RedNifre> "Define_method" is probably a method from the standard lib that doesn't add any code around it.
<shevy> ?
<apeiros> define_method is the same as define_singleton_method
<apeiros> just that it's for instance methods
<RedNifre> The method declared via "to" should do more than just execute what I write.
<shevy> ?!?
<apeiros> i.e., define_method --> def foo
<apeiros> define_singleton_method --> def obj.foo
<RedNifre> Please note that I'm a total beginner so I might missunderstand you a lot :)
allaire has quit []
jalcine has quit [Excess Flood]
<shevy> this is a mutual feeling
r0bby_ has quit [Read error: Connection reset by peer]
<RedNifre> I'll read some more about define_method, maybe it's exactly what I need. I'll be back in a few minutes...
<shevy> "do more than just execute what I write" ... fetch you some coffee or read the mind, I am not sure. You need to tell it what to do. You can generate methods dynamically in ruby just fine, even on 1.8
divi has joined #ruby
JesseH2 has quit [Quit: Leaving]
JesseH has joined #ruby
<shevy> I am still unsure about the problem description, I let apeiros take over ;)
jalcine has joined #ruby
<apeiros> I'm off watching SC2, though
<shevy> hehehe
<shevy> this channel is filled with geeks
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
<platzhirsch> geek sauce
banjara has quit [Client Quit]
<platzhirsch> apeiros and shevy have always the same color in my IRC client
carraroj has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
<usrnix> Hmm, I want to start trying out sinatra for making simple web programs, anyone know of some sort of skeleton defaults I can generate? I think rails might do this where the directories and template files are presetup?
<RedNifre> okay, maybe I should give a crazy example. Imagine you would want to start every method you write with puts "a method was called!". When using def you would have to write that at the start of every method? So you declare (pseudocode): def2(name,*params) { puts "a method..."; yield *params}...
Authenticator has quit [Remote host closed the connection]
andredublin has joined #ruby
ivanoats is now known as codefellowsbot
banjara has joined #ruby
andredublin has quit [Remote host closed the connection]
<RedNifre> What I'm looking for is a way to declare a method in such a way that when I write the first line of the method body, some things have already happened to the parameters.
andredublin has joined #ruby
puppeh has joined #ruby
simoz2 has joined #ruby
dkamioka has quit [Remote host closed the connection]
__eka__ has joined #ruby
Elhu has joined #ruby
tsykoduk is now known as zz_tsykoduk
colonolG1on has quit [Quit: Lost terminal]
<RedNifre> So my thinking was to add a method to Object that adds a method to the receiver(?) that first wrangles the parameter and then yields the block of the ... something something.
maletor has joined #ruby
andredublin has left #ruby [#ruby]
simoz has quit [Ping timeout: 272 seconds]
eka has quit [Ping timeout: 272 seconds]
fijimunkii has quit [Quit: leaving]
aspires has joined #ruby
mikesplain2 has joined #ruby
Bosox20051 has quit [Ping timeout: 246 seconds]
axl_ has joined #ruby
simoz2 has quit [Ping timeout: 248 seconds]
shadoi1 is now known as shadoi
codefellowsbot is now known as ivanoats
mikesplain1 has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikesplain3 has joined #ruby
banjara has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<stonecolddevin> I'm trying to connect to an sql server 2008 database through ODBC. The connection string I have is from a C# program, and I"m not entirely sure what to do with it: http://pastie.org/8460783. Does anyone have any advice/examples of connecting to an sql server 2008 database using a dsn?
joelroa has quit [Quit: Computer has gone to sleep.]
lastk has joined #ruby
bootcoder has joined #ruby
<lastk> someone knows a nice gem to parse logs?
aspires has quit [Client Quit]
yfeldblum has quit [Ping timeout: 260 seconds]
banjara has quit [Client Quit]
mikesplain2 has quit [Ping timeout: 240 seconds]
<waxjar> RedNifre: can't you use a "proxy object" that performs the action (puts "a method was called!") and which then calls the method on another object?
banjara has joined #ruby
allaire has joined #ruby
banjara has quit [Client Quit]
Apane has joined #ruby
__eka__ is now known as eka
banjara has joined #ruby
sambao21 has joined #ruby
fijimunkii has joined #ruby
derebos has joined #ruby
<RedNifre> how would that work for all methods? And how would a method declaration look?
drumusician has joined #ruby
LMolr has quit [Quit: Leaving]
hiyosi has joined #ruby
maurogoncalo has joined #ruby
saarinen has quit [Quit: saarinen]
r0bby_ has joined #ruby
<RedNifre> Hm, I just noticed that my idea results in ugly () placement. "deff :say_something, parameter do" doesn't look that weird (except for the comma), but "deff(:method_name,params)" is just weird. Maybe it's a silly idea to begin with.
Elhu has quit [Quit: Computer has gone to sleep.]
visof has joined #ruby
<waxjar> ugh, i'm using tabs :(
<visof> i tried to run system("rpmbuild -ba file.spec") but with it got the wrong rpm, but if i execute rpmbuild -ba file.spec from the shell directly it got the right rpm
<visof> is system or `` or exec need some kind of env to add or what's going on
dangerousdave has quit [Read error: Connection reset by peer]
funburn has joined #ruby
dangerousdave has joined #ruby
<RedNifre> I don't think proxy.rb helps here...
zarubin has quit [Ping timeout: 272 seconds]
benwoody has joined #ruby
Raimondi has joined #ruby
peterhu_ is now known as peterhu
<RedNifre> What originally brought me to the idea is python's named parameters and that the ruby idea seems to be to use a hash for this like def bla (name: "bob", id: 2). While this looks nice for the callers, I found it very ugly in the method.
<waxjar> Ruby has keyword arguments since 2.0
hiyosi has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
<RedNifre> Guess I'll should read everything about ruby before I get any silly ideas then :)
<RedNifre> btw, what way would you guys recommend to learn the language?
enebo has quit [Quit: enebo]
r0bby_ has quit [Ping timeout: 272 seconds]
saarinen has joined #ruby
<RedNifre> I have a lot of fun in irb at the moment and googling stuff when i need them, but that might be the wrong way to learn it. I also have an old pickaxe 1.9, but maybe that's too old by now?
ddpunk has joined #ruby
axl_ has quit [Quit: axl_]
<shevy> RedNifre you could always use method_missing() too
<DanBoy> no
<DanBoy> that pickaxe is fine
Speed has joined #ruby
momomomomo has quit [Quit: momomomomo]
mark_locklear has quit [Quit: Leaving]
fuhgeddaboudit has quit [Quit: Ex-Chat]
<platzhirsch> Would you format this one differently? https://gist.github.com/platzhirsch/437df26c95db12772f2e
ddpunk has quit [Remote host closed the connection]
<RedNifre> has anyone here tried ruby on android for anything serious?
maurogoncalo has quit [Quit: Leaving...]
<RedNifre> Writing scripts on the device is fun, but I'm not sure if full apps are worth it.
zigomir_ has quit [Quit: zigomir_]
jerius has quit [Ping timeout: 265 seconds]
<platzhirsch> RedNifre: something like Ruboto?
aspires has joined #ruby
<RedNifre> yes. are there others?
zarubin has joined #ruby
<RedNifre> Fascinating. How does this compare to Ruboto?
iliketurtles has joined #ruby
jerius has joined #ruby
mooru has joined #ruby
benwoody has quit [Quit: benwoody]
Soda has quit [Read error: Connection reset by peer]
mooru has left #ruby ["Textual IRC Client: www.textualapp.com"]
mlpinit has quit [Read error: No route to host]
nwertman has quit [Quit: leaving]
maurogoncalo has joined #ruby
zz_tsykoduk is now known as tsykoduk
Bira has quit [Remote host closed the connection]
Elhu has joined #ruby
Bira has joined #ruby
Soda has joined #ruby
benwoody has joined #ruby
dexec has quit [Quit: dexec]
zarubin has quit [Ping timeout: 240 seconds]
<TorpedoSkyline> hey guys, is it possible for me to render an ERB template and store the resulting HTML into a variable?
robbyoconnor has quit [Ping timeout: 260 seconds]
reset has quit [Quit: Leaving...]
ArchBeOS has quit [Quit: ChatZilla 0.9.90.1 [Firefox 25.0/20131025151332]]
felixjet_ has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
carraroj has joined #ruby
mmcdaris has quit [Quit: mmcdaris]
Stygia has joined #ruby
ozzloy has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
breakingthings has joined #ruby
hashpuppy has joined #ruby
vlad_starkov has joined #ruby
yalue has quit [Quit: Leaving]
alpha123 has joined #ruby
tsykoduk is now known as zz_tsykoduk
Banistergalaxy has quit [Remote host closed the connection]
<ged> Does anyone know who maintains Rubyforge nowadays?
visof has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
<ged> It appears to be down.
<apeiros> TorpedoSkyline: of course.
axl_ has joined #ruby
Banistergalaxy has joined #ruby
Shidash has quit [Ping timeout: 272 seconds]
<TorpedoSkyline> apeiros: ERB.new right?
<TorpedoSkyline> first time I've used ERB ;P
<apeiros> TorpedoSkyline: then read the docs. that's why somebody spend a shitload of time.
<shevy> and those docs suck
derebos has quit [Ping timeout: 272 seconds]
<apeiros> shevy: fork, improve, send pull request. zzak is a great help with improving docs.
r0bby_ has joined #ruby
simoz has joined #ruby
elux has joined #ruby
axl__ has joined #ruby
funburn has quit [Quit: funburn]
<TorpedoSkyline> apeiros: so ERB.new? =
<TorpedoSkyline> =P
robbyoconnor has quit [Ping timeout: 268 seconds]
visof has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
<apeiros> TorpedoSkyline: seriously, I'm not going to read the docs to you
<TorpedoSkyline> apeiros: the docs suck
cody-- has quit [Quit: derp]
<ged> TorpedoSkyline: Erubis is an alternative ERb implementation which is quite well-documented: http://www.kuwata-lab.com/erubis/users-guide.html
<TorpedoSkyline> I crap you not
pyrac has quit [Quit: pyrac]
axl_ has quit [Ping timeout: 265 seconds]
axl__ is now known as axl_
<TorpedoSkyline> ah cool, I'll check it out. thanks ged
<apeiros> TorpedoSkyline: if you have troubles with the docs, then *ask specific questions* about sections you don't understand.
<apeiros> and no, the docs don't suck.
<shevy> yeah, it's best to avoid projects where the original author was too lazy to invest his time
<platzhirsch> RedNifre: I have no idea, just googled it from SO
heftig has quit [Quit: Quitting]
mooru has joined #ruby
<platzhirsch> and to answer your question: I have no idea what Ruby could be of use on Android
<ged> TorpedoSkyline: You can glean some general knowledge about how ERb works from the guide, but just be aware that it includes Erubis-only features.
mooru has left #ruby ["Textual IRC Client: www.textualapp.com"]
<platzhirsch> I mean, Java is the native language I don't see much point on using Android there instead
mansi has quit [Remote host closed the connection]
<ged> shevy: Or the original author didn't speak English as his first language. :/
<TorpedoSkyline> apeiros: I did ask a specific question, you just were not willing to answer. Sorry.
mikepack has joined #ruby
mmcdaris has joined #ruby
heftig has joined #ruby
mansi has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
<apeiros> TorpedoSkyline: no. "how do I build a car" is not a specific question.
dhruvasagar has quit [Ping timeout: 260 seconds]
<shevy> a car would have a better manual than ERB
<TorpedoSkyline> is it possible for me to render an ERB template and store the resulting HTML into a variable? <-- specific question
<apeiros> and "so ERB.new? =" is not even a question at all.
<apeiros> TorpedoSkyline: that question I answered you: yes, it is.
c0rn has quit [Quit: Computer has gone to sleep.]
Liquid-- has quit [Quit: Computer has gone to sleep.]
<TorpedoSkyline> apeiros: I asked you if I was correct in that ERB.new was the way to do it, because the docs aren't clear =P
momomomomo has joined #ruby
<TorpedoSkyline> sorry for upsetting you
Liquid-- has joined #ruby
<apeiros> TorpedoSkyline: ok, then: no.
nwertman has joined #ruby
<apeiros> how about you say what's not clear about the docs? they give a rather comprehensive example.
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
<apeiros> a) you do know how to store a string in a variable?
<apeiros> b) you do know how to render an ERB template?
AFKGeek has joined #ruby
<TorpedoSkyline> apeiros: yes, and depends on what you mean by render. I can render the template in sinatra
mansi has quit [Ping timeout: 240 seconds]
allaire has quit []
<apeiros> render commonly means get a string back
bassclef has joined #ruby
<apeiros> what you do in sinatra is a lot more than just render
<TorpedoSkyline> right
bassclef is now known as Guest97848
r0bby_ has quit [Ping timeout: 246 seconds]
allaire has joined #ruby
anderson has quit [Ping timeout: 240 seconds]
Seich has joined #ruby
mansi has joined #ruby
coderhs has quit [Ping timeout: 248 seconds]
barratt has quit [Quit: Leaving...]
iamjarvo_ has joined #ruby
<Methylated> anyone familiar with perftools.rb?
iamjarvo_ has quit [Remote host closed the connection]
AFKGeek has quit [Client Quit]
yfeldblum has joined #ruby
<Methylated> I'm trying to use it with mod_ruby
mansi has quit [Read error: Connection reset by peer]
banjara has quit [Client Quit]
banjara has joined #ruby
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> hanmac I think that was mentioned a few times already even before that. it's as if you have bad quality information repeated until it seems factual. (I never visit aljazeera btw)
divi has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
<Hanmac> yeah, but it seems now they have a proof
derebos has joined #ruby
anderson has joined #ruby
Seich has quit [Ping timeout: 244 seconds]
gasbakid__ has quit [Read error: Connection reset by peer]
banjara has quit [Client Quit]
allaire has quit [Ping timeout: 245 seconds]
banjara has joined #ruby
<shevy> and that takes 9 years? :D
Stygia has quit [Ping timeout: 240 seconds]
banjara has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
banjara has joined #ruby
banjara has quit [Changing host]
banjara has joined #ruby
Monie has joined #ruby
MiguelGD has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
ravster has joined #ruby
freakazoid0223 has quit [Read error: Connection reset by peer]
simoz2 has joined #ruby
zz_tsykoduk is now known as tsykoduk
simoz has quit [Ping timeout: 265 seconds]
Bira has quit [Remote host closed the connection]
Bira has joined #ruby
simoz2 has quit [Ping timeout: 246 seconds]
hiyosi has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
johnnyfuchs has quit [Quit: Leaving.]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
divi has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
yfeldblum has joined #ruby
aa47f8 has quit [Quit: aa47f8]
coderhs has joined #ruby
allsystemsarego has quit [Quit: Leaving]
Bosox20051 has joined #ruby
lmxxml has joined #ruby
hiyosi has quit [Ping timeout: 246 seconds]
<lmxxml> hey all, I've got an output from xml that sometimes provides more than one result, but there's no splitting of them so 2 emails just get concatenated - how can I delimit them?
Bira has joined #ruby
ddpunk has joined #ruby
yfeldblu_ has joined #ruby
<SloggerKhan> lmxxml: are you using Nokogiri?
<lmxxml> I am
<lmxxml> puts corremail.xpath("..//email").text => mxue@ee.ucla.eduwang@ee.ucla.edu should be ["mxue@ee.ucla.edu","wang@ee.ucla.edu"]
<SloggerKhan> Then your selector is probably wrong if it's giving you 2 results without splitting unless in the actual xml they're both the content of the same tag
<lmxxml> my selector is a tag called <email> which is repeated in the same branch of the tree
<SloggerKhan> have you tried corremail.xpath("..//email")[0].text ?
<lmxxml> I want both though...
<SloggerKhan> then you just do a loop
<Hanmac> when you want both, why do you call "text"?
<SloggerKhan> corremail.xpath("..//email").each
yfeldblum has quit [Ping timeout: 240 seconds]
<lmxxml> ooh each sounds good
<lmxxml> erm I'm just mutating an example for many different uses
<lmxxml> is the .text superfluous?
robertjpayne has joined #ruby
<Hanmac> lmxxml: use this: xpath("..//email").map(&:text)
yfeldblu_ has quit [Remote host closed the connection]
<lmxxml> fantastic!
Banistergalaxy has quit [Ping timeout: 244 seconds]
<robonerd> anyone worked with libuv (C) or webmachine (ruby) ?
mlpinit has joined #ruby
<lmxxml> (◕‿◕)
iliketurtles has quit [Quit: zzzzz…..]
Banistergalaxy has joined #ruby
sepp2k has joined #ruby
lmxxml has quit [Quit: Page closed]
Stygia has joined #ruby
felixjet_ has quit [Quit: Leaving]
zeade has quit [Quit: Leaving.]
felixjet has joined #ruby
Underbyte has joined #ruby
Seich has joined #ruby
ddpunk has quit [Remote host closed the connection]
artm has quit [Ping timeout: 246 seconds]
dexec has joined #ruby
c0rn has joined #ruby
dexec has quit [Client Quit]
bean___ has joined #ruby
Bosox20051 has quit [Ping timeout: 246 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
phantasm66 has quit [Quit: *sleeeep….]
freerobby has quit [Quit: Leaving.]
platypine has joined #ruby
smigg has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
geekbri_ has joined #ruby
geekbri_ has quit [Remote host closed the connection]
puppeh has quit [Quit: Leaving...]
tonni has joined #ruby
workmad3 has joined #ruby
iliketurtles has joined #ruby
UForgotten has quit [Ping timeout: 245 seconds]
geekbri has quit [Read error: Operation timed out]
rodan- has joined #ruby
<sayd> anyone familiar with boxen know why this would happen when i try to run boxen? https://gist.github.com/marr/7e3ab6cf4686e09d3c65
bootcoder has quit [Read error: Connection reset by peer]
bootcoder has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
jenrzzz has joined #ruby
<sayd> sorry that is during a bundle install inside my boxen dir
nico has joined #ruby
yfeldblum has joined #ruby
dmerrick has joined #ruby
nico is now known as Guest43509
samfisher has quit [Ping timeout: 248 seconds]
mikesplain3 has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Client Quit]
zigomir has quit [Ping timeout: 272 seconds]
frustrum has quit [Quit: WeeChat 0.4.2]
<canton7> sayd, looks like you don't have bundler installed?
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
heidi has quit [Read error: Connection reset by peer]
heidi has joined #ruby
fijimunkii has quit [Ping timeout: 244 seconds]
Bira has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
<sayd> canton7: hmm i will try installing it thanks
<canton7> gem install bundler
<sayd> i must have changed my GEM_HOME to ~/.gem
<sayd> how do i find the GEM_HOME? it doesnt show up in gem env
yfeldblum has joined #ruby
pu22l3r has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
pu22l3r has joined #ruby
yfeldblum has joined #ruby
mlpinit has quit [Remote host closed the connection]
<sayd> valid question right?
fijimunkii has joined #ruby
someish has joined #ruby
saarinen has quit [Quit: saarinen]
verto has quit [Ping timeout: 240 seconds]
<someish> I need to dynamically create an html file inline a method. I'm using &Q{} for the multiline code, but I need to through a loop in the middle of it. What's the best way to go about that?
justsee has joined #ruby
Seich has quit [Ping timeout: 246 seconds]
RichardBaker has quit [Quit: RichardBaker]
yfeldblum has quit [Ping timeout: 240 seconds]
d45h has quit []
yfeldblu_ has joined #ruby
johnnyfuchs has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
drag00n has quit [Ping timeout: 264 seconds]
<sayd> im not sure why gems would be going here since im on 1.9.2: /opt/boxen/repo/.bundle/ruby/1.9.1/gems/json-1.8.1/ext/json/ext/generator/gem_make.out
kaldrenon has quit [Remote host closed the connection]
rubx has joined #ruby
ddpunk has joined #ruby
Tuxist has quit [Remote host closed the connection]
<sayd> seems like no gems will install because of that
larissa has joined #ruby
soheil has quit [Remote host closed the connection]
Hanmac has quit [Quit: Leaving.]
Seich has joined #ruby
soheil has joined #ruby
huttan has joined #ruby
mrsolo has joined #ruby
<rubx> I'm in an irb on win7 and can't figure out how to shush my shell up
<workmad3> rubx: bash != irb
derebos has quit [Ping timeout: 245 seconds]
visof has quit [Ping timeout: 268 seconds]
<rubx> scriptname >/dev/null gives a syntax error, unexpected tINTEGER, expecting keyword_do or '{' or '('
jkamenik has quit [Quit: Leaving.]
joelio has quit [Ping timeout: 260 seconds]
ekarlso- has quit [Ping timeout: 260 seconds]
<rubx> workmad3 *vacant glazed look*...
<rubx> I can't access this here lol?
joelio has joined #ruby
banisterfiend has joined #ruby
<rubx> never used bash to code before is that bad...
ekarlso has joined #ruby
<workmad3> rubx: that SO answer is regarding redirecting output in a bash shell on linux/unix
tomaw has quit [Quit: Quitting]
<workmad3> rubx: it's completely useless for irb on windows
sergicles has joined #ruby
duggiefresh has quit [Remote host closed the connection]
<workmad3> rubx: hell, it's completely useless for irb on linux
duggiefresh has joined #ruby
<rubx> ohhhh just noticed the question says "with Bash scripting"
<rubx> will I have a bash installed on my computer with the regular ruby?
<workmad3> bash is nothing to do with ruby
<rubx> all I can see is Interactive Ruby, RubyGems Doc. Server and cmd prompt with ruby
bigoldrock has joined #ruby
<rubx> oh :|
osvico has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
visof has joined #ruby
<rubx> cringe..
soheil has quit [Ping timeout: 272 seconds]
<rubx> is Bash what you get when you run a command prompt in ubuntu / linux ?
huttan has quit [Ping timeout: 248 seconds]
CAP7017 has joined #ruby
<rubx> $ curl etc. ...
<workmad3> rubx: by default in many distros, yes
<rubx> is it available for win7?
<workmad3> probably not :)
kaspergrubbe has joined #ruby
<workmad3> it also wouldn't help with your problem most likely...
<rubx> haha ah right
<workmad3> echoing stuff out is kinda central to IRB... turning that off would be weird :)
bret has quit [Remote host closed the connection]
<rubx> i have this huge output from one of my commands though
<rubx> it pulls in a big file but feels the need to show it all
<rubx> guessing I wouldn't be able to speed things up by switching off the display...?
<workmad3> ah... then do '<command that does big output>; false'
Speed has left #ruby ["WeeChat 0.4.2"]
<workmad3> hehe, no :P
MiguelGD has quit [Ping timeout: 245 seconds]
<rubx> haha worth a try
einarj has joined #ruby
<rubx> what will '<black hole>; false' do ?
staafl has quit [Ping timeout: 272 seconds]
adambeynon has joined #ruby
duggiefresh has quit [Ping timeout: 248 seconds]
MiguelGD has joined #ruby
MiguelGD has quit [Client Quit]
<workmad3> rubx: well, what IRB does is echo out the result of the last expression each time you hit 'return'
<rubx> ya
<workmad3> rubx: <whatever>; false; will mean that IRB echos out 'false' after running <whatever>
bret has joined #ruby
<rubx> 'suppressing' the output of <whatever>?
<workmad3> in essence, yes :)
<rubx> hmmm.......
<rubx> thanks workmad3 :D
c0rn has quit [Remote host closed the connection]
<workmad3> but only in the sense that the IRB repl doesn't see the result of <whatever>, it only sees 'false' and so spits that out
yfeldblu_ has quit [Remote host closed the connection]
maletor has joined #ruby
c0rn has joined #ruby
CAP7017 has quit [Ping timeout: 245 seconds]
<rubx> "doesn't see" == "doesn't perform" ?
yfeldblum has joined #ruby
bret has left #ruby [#ruby]
rellin has quit [Read error: Connection reset by peer]
breakingthings has quit []
<rubx> what's the right syntax here? <> and ' ... ' aren't giving me the results I was expecting...
soheil has joined #ruby
<rubx> oh wait no, got it
jamblack has quit [Quit: jamblack]
<rubx> cool!
<rubx> that's actually really useful as it wasn't the processing time that stopped me running through the code it was the time it took to render so much text, thanks a lot
m8 has quit [Quit: Sto andando via]
RichardBaker has joined #ruby
<sayd> shoudl I still be using GEM_HOME if I am using rbenv?
rellin has joined #ruby
samfisher has joined #ruby
samfisher has quit [Changing host]
samfisher has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
Gerente has joined #ruby
<sayd> or can someoen point me to docs explaining GEM_HOME
tomaw has joined #ruby
asteros has joined #ruby
tkuchiki has joined #ruby
derebos has joined #ruby
a1ph4g33k has quit [Quit: Leaving]
elnormous has joined #ruby
elnormous has quit [Client Quit]
randomnick_ has quit [Read error: Connection reset by peer]
JesseH has quit [Quit: Leaving]
asteros has quit [Client Quit]
iliketurtles has quit [Ping timeout: 265 seconds]
vt102 has quit [Ping timeout: 246 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elux has quit [Quit: Bye!]
Trynemjoel has quit [Ping timeout: 245 seconds]
verto has joined #ruby
failshel_ has joined #ruby
jkline has joined #ruby
iliketurtles has joined #ruby
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
thesheff17 has quit [Ping timeout: 245 seconds]
kcombs has quit [Remote host closed the connection]
atno has quit [Read error: No route to host]
failshell has quit [Ping timeout: 245 seconds]
nhhagen has quit [Disconnected by services]
nhhagen_ is now known as nhhagen
jamblack has joined #ruby
jlast has quit [Remote host closed the connection]
failshel_ has quit [Ping timeout: 265 seconds]
bean___ is now known as julian-delphiki
julian-delphiki has quit [Changing host]
julian-delphiki has joined #ruby
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
Monie has joined #ruby
d2dchat_ has quit [Remote host closed the connection]
Xeago has joined #ruby
atno has joined #ruby
divi has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
xk_id has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
Xeago has quit [Ping timeout: 272 seconds]
anderse has quit [Quit: anderse]
freakazoid0223 has joined #ruby
DonRichie has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #ruby
einarj has quit [Remote host closed the connection]
ccolorado has joined #ruby
DonRichie has joined #ruby
claymore has quit [Quit: Leaving]
<ccolorado> What does {...} means when using pp? ( I am getting {"key"=>{...}} out of pp myshash[somekey] )
gyre007 has joined #ruby
Bira has joined #ruby
<MrZYX> it denotes a hash
jerius has quit [Ping timeout: 245 seconds]
sailias has quit [Quit: Leaving.]
tsykoduk is now known as zz_tsykoduk
randomnick_ has joined #ruby
RedNifre has quit [Quit: Verlassend]
<ccolorado> MrZYX: thanks
Jdubs has joined #ruby
relix has quit [Ping timeout: 244 seconds]
ffranz has quit [Quit: Leaving]
Seich has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
Seich has joined #ruby
zz_tsykoduk is now known as tsykoduk
pushpak has quit [Quit: Linkinus - http://linkinus.com]
brtdv has joined #ruby
TheShaun|AFK is now known as TheShaun
theRoUS has quit [Ping timeout: 272 seconds]
Bira has quit [Remote host closed the connection]
Gerente has quit [Quit: Gerente]
yfeldblum has joined #ruby
maurogoncalo has quit [Quit: Linkinus - http://linkinus.com]
nwertman has quit [Quit: Lost terminal]
nateberkopec has quit [Quit: Leaving...]
cescalante is now known as ce_afk
tkuchiki has quit [Remote host closed the connection]
nwertman has joined #ruby
julian-delphiki has quit [Quit: Textual IRC Client: www.textualapp.com]
Bira has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
Liquid-- has quit [Ping timeout: 272 seconds]
mrsolo has quit [Read error: Connection reset by peer]
mrsolo has joined #ruby
jamblack has quit [Quit: jamblack]
FastestMilkman has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xtristan has quit [Remote host closed the connection]
Gerente has joined #ruby
bootcoder has quit [Quit: Konversation terminated!]
bootcoder has joined #ruby
iliketur_ has joined #ruby
iliketurtles has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 245 seconds]
flops has quit [Quit: leaving]
jbpros has quit [Quit: jbpros]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gstamp has quit [Ping timeout: 256 seconds]
samfisher has quit [Ping timeout: 244 seconds]
hippyphysicist has joined #ruby
gstamp has joined #ruby
sepp2k has quit [Quit: Leaving.]
MrZYX is now known as MrZYX|off
hippyphysicist has quit [Read error: Connection reset by peer]
usrnix has quit [Quit: Leaving.]
Liquid-- has joined #ruby
lucio56 has joined #ruby
divi has joined #ruby
<lucio56> sole a catinelle
rubx_ has joined #ruby
Bira has quit [Remote host closed the connection]
<rubx_> should I terminate an if statement as soon as possible or as late as possible?
barratt has joined #ruby
<DouweM> show us an example
<rubx_> 1 moment plz...
funburn has joined #ruby
lucio56 has left #ruby [#ruby]
barratt has quit [Client Quit]
freezey has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
freezey has joined #ruby
apeiros has joined #ruby
tvw has joined #ruby
<rubx_> see lines 49 - 53
Bira has joined #ruby
mmitchel_ has joined #ruby
<rubx_> should I withold that end until the end like the others? it's just a small check but it feels like I should end it there... the code should still continue running, right?
jonathanwallace has quit [Read error: Operation timed out]
Underbyte has quit [Quit: Leaving...]
kitak has joined #ruby
rickruby has joined #ruby
lfox has joined #ruby
freezey has quit [Ping timeout: 240 seconds]
kcombs has joined #ruby
<rubx_> whatcha think DouweM ?
<DouweM> lemme check
_Bravado has joined #ruby
jkline has quit [Quit: jkline]
mmitchell has quit [Ping timeout: 272 seconds]
<rubx_> \(◠‿◠)/
mmitchel_ has quit [Ping timeout: 248 seconds]
<DouweM> rubx_: I'm not quite sure what you would like to change about that, looks fine to me. the code is a bit messy overall, but I don't see anything wrong with the if/else on lines 49-53
<rubx_> yeah, it's the first code / program I've ever written so kinda to be expected :/
Fire-Dragon-DoL has joined #ruby
<rubx_> I looked at the ways to use unless etc. to clean things up
<DouweM> want me to clean it up a bit?
<rubx_> I need to add a load more of those if .kind_of?(Array) bits now
marr has quit [Ping timeout: 246 seconds]
<rubx_> I was wondering could I set up a "method" to do that rather than copy and paste and just change "surname" to "email" etc..?
<rubx_> that'd be v v kind!
<DouweM> yeah, making a method for that is probably better
<DouweM> I'll clean up the overall structure and we'll see about extracting that stuff later
<rubx_> awesome thankyou
kirun has quit [Quit: Client exiting]
joelteon has joined #ruby
El_Dood has joined #ruby
<joelteon> anybody with ruby and mac osx fancy helping me figure out why this is happening? https://gist.github.com/joelteon/7346081
<someish> Is it possible to do something like this. Look within the %Q block. https://gist.github.com/saturday/2297b4bc2684ea965182
<someish> Better, what is the way to do something like that?
kaspergrubbe has quit [Remote host closed the connection]
<joelteon> someish: just use map
kaspergrubbe has joined #ruby
<joelteon> mq.map{|k,v|...}.join("")
nwertman has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 268 seconds]
<someish> joelteon: what does the chained join("") do?
drag00n has joined #ruby
justsee has quit [Ping timeout: 272 seconds]
<joelteon> turns the array into a string
banjara has quit [Quit: Leaving.]
<joelteon> you should probably be using a templating language for this, like haml
banjara has joined #ruby
<joelteon> haml has loops and so on built in
jmimi1 has joined #ruby
lfox has quit [Quit: ZZZzzz…]
earthquake has quit [Quit: earthquake]
<someish> joelteon: I see. I'll check out HAML. thanks!
jmimi is now known as Guest36931
Guest36931 has quit [Killed (cameron.freenode.net (Nickname regained by services))]
jmimi1 is now known as jmimi
<joelteon> no problem
<someish> joelteon: I just wanted to clarify that I'm doing this inline for a reason. I can't use erb or haml because I need to generate the html on the spot.
<someish> ..I think
phantummm has quit [Quit: phantummm]
matchaw has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
<joelteon> Why can't you do that with haml?
<joelteon> looks like the document structure is fixed
havenwood has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
DrShoggoth has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 272 seconds]
<someish> joelteon: let me post all the code, and an explanation.
kaspergrubbe has quit [Ping timeout: 268 seconds]
threesome has quit [Ping timeout: 245 seconds]
banjara has quit [Quit: Leaving.]
nwertman has joined #ruby
<someish> joelteon: I'm trying to build a pdf from dynamic data via pdfkit.
havenn has joined #ruby
banjara has joined #ruby
freakazoid0223 has quit [Read error: Connection reset by peer]
zarubin has joined #ruby
panaggio has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
randomnick_ has quit [Ping timeout: 246 seconds]
nfk has quit [Quit: yawn]
<DouweM> rubx_: this is about the best I can do without knowing the format of the actual data: https://gist.github.com/DouweM/9837fdb3e31b65ec80d4
banjara has quit [Client Quit]
banjara has joined #ruby
<rubx_> !! ]
<rubx_> oh my god
<rubx_> thankyou so much that's amazing
blaxter has quit [Ping timeout: 264 seconds]
<DouweM> rubx_: a couple of things: use better variable names, doesn't xpath(///).amp(&:text) *always* return an array? what do you want to do with email?
alvaro_o has quit [Read error: Connection reset by peer]
<DouweM> rubx_: to provide any more help, I'd need to know the actual expected input and output formats
<rubx_> @DouweM can you start a private conversation I don't know how to
Jdubs has quit [Remote host closed the connection]
<someish> joelteon: I'll try that out. Thanks.
alvaro_o has joined #ruby
hiyosi has joined #ruby
<DouweM> rubx_: sure
panaggio is now known as ISF
Jdubs has joined #ruby
VTLob has quit [Quit: VTLob]
Seich has quit [Ping timeout: 248 seconds]
blaxter has joined #ruby
SteveBenner9 has joined #ruby
justsee has joined #ruby
darkskiez has quit [Ping timeout: 245 seconds]
Seich has joined #ruby
Jdubs has quit [Ping timeout: 240 seconds]
hiyosi has quit [Read error: Operation timed out]
larissa has quit [Ping timeout: 245 seconds]
larissa has joined #ruby
timonv has joined #ruby
derebos has quit [Ping timeout: 248 seconds]
visof has quit [Ping timeout: 272 seconds]
stringoO has quit [Quit: stringoO]
timonv has quit [Read error: Operation timed out]
stringoO has joined #ruby
nwertman has quit [Quit: Lost terminal]
nwertman has joined #ruby
stringoO has quit [Read error: Connection reset by peer]
pitzips has quit [Read error: No route to host]
stringoO has joined #ruby
brtdv has quit []
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
nhhagen_ has joined #ruby
zipper has joined #ruby
<someish> joelteon: unexpected end of input...
<someish> joelteon: I can't see what's wrong with your code either.
eyckelboom has joined #ruby
zeade has joined #ruby
bugsinlights has joined #ruby
mikepack has quit [Remote host closed the connection]
<joelteon> mine?
mikepack has joined #ruby
stringoO has quit [Read error: Operation timed out]
DonRichie has quit [Ping timeout: 245 seconds]
DonRichie has joined #ruby
nhhagen_ has quit [Ping timeout: 245 seconds]
darkskiez has joined #ruby
darkskiez has quit [Changing host]
darkskiez has joined #ruby
mixel has joined #ruby
Jdubs has joined #ruby
tsykoduk is now known as zz_tsykoduk
benwoody has quit [Quit: benwoody]
Liquid-- has quit [Quit: Computer has gone to sleep.]
mlpinit has joined #ruby
ShellFu has quit [Quit: Leaving]
Geniack has quit [Ping timeout: 264 seconds]
<someish> joelteon: "indenting at the beginning of document is illegal"
Bosox20051 has joined #ruby
larissa has quit [Ping timeout: 265 seconds]
rickruby has quit [Remote host closed the connection]
Jdubs has quit [Ping timeout: 245 seconds]
<joelteon> oh, remove two spaces from the front of each line
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
nkts has joined #ruby
nkts has quit [Max SendQ exceeded]
geggam has quit [Remote host closed the connection]