apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
reinaldob has quit [Remote host closed the connection]
troynt has quit [Quit: Leaving]
centrx has quit [Quit: In the beginning there was nothing, which exploded.]
zachrab has joined #ruby
dc has joined #ruby
funburn has joined #ruby
Ankhers has joined #ruby
reinaldob has joined #ruby
phoo1234567 has quit [Quit: Leaving]
djbkd_ has quit [Ping timeout: 245 seconds]
<mwlang> is it possible to include class-level methods into another class?
tokik has joined #ruby
<jhass> not really
<jhass> usually you would define an included hook that would the class by another module
roolo has joined #ruby
<jhass> *would extend
<havenwood> mwlang: just inheritance
<havenwood> mwlang: not modules
<havenwood> >> class X; def self.o; :xoxo end end; class Z < X; end; Z.o
<eval-in_> havenwood => :xoxo (https://eval.in/267618)
ddv_ has quit [Quit: Connection closed for inactivity]
maletor has quit [Quit: Computer has gone to sleep.]
reinaldob has quit [Ping timeout: 255 seconds]
Megtastique has joined #ruby
Megtastique has quit [Client Quit]
<jhass> mmh, why is that actually?
<jhass> does < make the singleton class of the child a child of the singleton class of the parent?
willgorman has joined #ruby
<mwlang> hmmm….what I was trying to do was define a self.process(params, soap_message) in a module/module Soap::ClassMethods and have that method in any Soap processing class I include/extend with Soap::ClassMethods
ghr has joined #ruby
shime has joined #ruby
<jhass> extends adds the module instance methods to the receiver as class methods
<jhass> actually there's no such thing as class and instance methods
<jhass> extend is an include into the receivers singleton class
<mwlang> jhass: I thought def self.blah is class level while def blah is instance level...
maximski has joined #ruby
<jhass> that's the effect
bryanculver has joined #ruby
<jhass> or what you call them usually
roolo has quit [Ping timeout: 252 seconds]
klmlfl has quit [Remote host closed the connection]
<jhass> but it's the same mechanism as when you do; o = Object.new; def o.singleton_method; end;
gr33n7007h has quit [Remote host closed the connection]
<mwlang> isn’t that an anonymous class method?
gr33n7007h has joined #ruby
<jhass> no, it's called a singleton method
<jhass> because it lives in the objects singleton class
maletor has joined #ruby
dc has quit [Remote host closed the connection]
<mwlang> hmmm…I’ll have to go google that…haven’t really explored singleton pattern with Ruby.
<jhass> looks like I'm right re. < making the childs singleton class inherit the parent's
fgo has joined #ruby
<jhass> >> class A; end; class B < A; end; B.singleton_class.superclass == A.singleton_class
<eval-in_> jhass => true (https://eval.in/267619)
ta_ has joined #ruby
<jhass> mwlang: if you want the detailed version: https://www.youtube.com/watch?v=by5fFOBhtPQ
Aova has quit [Read error: Connection reset by peer]
<mwlang> jhass: of course I want the detailed version…gotta learn this stuff sometime. :-)
vu has joined #ruby
dfinninger has joined #ruby
<jhass> well, it goes beyond what you need to use it ;)
ghr has quit [Ping timeout: 264 seconds]
fgo has quit [Ping timeout: 246 seconds]
openscript has quit [Ping timeout: 264 seconds]
jamto11_ has joined #ruby
sent1nel has quit [Remote host closed the connection]
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mwlang> yeah, I see that…skipping ahead a bit.
maximski has quit []
d10n-work has quit [Quit: Connection closed for inactivity]
ta_ has quit [Ping timeout: 276 seconds]
ghostmoth has joined #ruby
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
dfinninger has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 264 seconds]
jamto11_ has quit [Remote host closed the connection]
Aova has joined #ruby
jonr22 has joined #ruby
russt has quit [Ping timeout: 246 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
ta_ has joined #ruby
uri_ has joined #ruby
uri_ has quit [Client Quit]
pu22l3r_ has joined #ruby
dc has joined #ruby
havenwood has quit [Ping timeout: 250 seconds]
martin_work has joined #ruby
vu has quit [Quit: leaving]
dc has quit [Remote host closed the connection]
fryguy9 has quit [Quit: Leaving.]
bayed has quit [Quit: Connection closed for inactivity]
mburns has quit [Quit: ZNC - http://znc.in]
pu22l3r has quit [Ping timeout: 252 seconds]
ta_ has quit [Ping timeout: 256 seconds]
mburns has joined #ruby
JBreit has joined #ruby
dorei has quit []
Tuxero has quit [Read error: Connection reset by peer]
Rapier- has joined #ruby
russt has joined #ruby
nanoyak has joined #ruby
quimrstorres has quit [Remote host closed the connection]
oo_ has joined #ruby
bryanculver has quit [Remote host closed the connection]
bryanculver has joined #ruby
nii236|irssi has joined #ruby
Tuxero has joined #ruby
josephndenton has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ponga has joined #ruby
oo_ has quit [Remote host closed the connection]
kaspertidemann has quit []
oo_ has joined #ruby
<shadeslayer> hi, could someone explain how string interpolation works with yield?
<shadeslayer> so for example I have :
<shadeslayer> def magic
<shadeslayer> "#{yield} Magic!"
<shadeslayer> end
nateberkopec has quit [Quit: Leaving...]
<shadeslayer> I don't completly follow how that is interpolated and then the block is called after magic returns
<waxjar> the result of your block will be the return value of yield
adriancb has joined #ruby
harry_vp has joined #ruby
<shadeslayer> sorry, that doesn't really make sense from what I've read
nii236|irssi has quit [Quit: leaving]
<jhass> shadeslayer: you could imagine the last line of your block being inserted into the #{ }
<shadeslayer> doesn't the block get the values from yield
<harry_vp> Hi Guys, I'm using builder to generate XML. Is there someway to autogenerate comments into the exported XML?
<waxjar> >> def magic() "#{yield} Magic!"; end; magic { "Dark" }
<eval-in_> waxjar => "Dark Magic!" (https://eval.in/267662)
<shadeslayer> oh
<shadeslayer> ohhh
vaneda has quit [Quit: Computer has gone to sleep.]
<shadeslayer> jhass: waxjar thanks, that helps
<shadeslayer> still a bit mind blowing :3
<waxjar> ruby has implicit return values :)
stunder has quit [Remote host closed the connection]
<jhass> and every expression has a value
<shadeslayer> right, just couldn't understand how it worked with yield
gccostabr has joined #ruby
Aww has joined #ruby
russt has quit [Ping timeout: 256 seconds]
<waxjar> >> def magic(&block) "#{block.call} Magic!"; end; magic { "Dark" }
<eval-in_> waxjar => "Dark Magic!" (https://eval.in/267663)
adriancb has quit [Remote host closed the connection]
<waxjar> maybe that makes it clearer, the block is also implicit, kinda :p
DarthGandalf has joined #ruby
<harry_vp> Any ideas on generating XML comments through builder?
<shadeslayer> it's fine, I got it ^_^
sevenseacat has joined #ruby
hiyosi has joined #ruby
dc has joined #ruby
JStoker has quit [Quit: JStoker is gone :(]
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duncan_ has joined #ruby
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duncannz has quit [Ping timeout: 256 seconds]
dfinninger has joined #ruby
JStoker has joined #ruby
chrishough has joined #ruby
bklane has quit [Remote host closed the connection]
bronson has joined #ruby
mloveless has joined #ruby
bklane has joined #ruby
plashchynski has quit [Quit: plashchynski]
adriancb has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 264 seconds]
tylersmith has joined #ruby
mrmargolis has joined #ruby
plashchynski has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
BurningChrome has joined #ruby
adriancb has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
tylersmith has quit [Client Quit]
nii236|irssi has joined #ruby
Hijiri has joined #ruby
digdeep has joined #ruby
wallerdev has quit [Ping timeout: 255 seconds]
digdeep has quit [Changing host]
digdeep has joined #ruby
wallerdev has joined #ruby
bootstrappm has quit [Quit: bootstrappm]
Joufflu has joined #ruby
jonr22 has quit [Remote host closed the connection]
maximski has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
maximski has quit [Max SendQ exceeded]
<lupine> hrm, anyone familiar with openssl? I'm trying to set up a store + context that will allow me to verify that a certificate is exactly the certificate I expect
ki0 has joined #ruby
<lupine> so I have the cert on both sides, add it to my OpenSSL::X509::Store with #add_cert, put the store in my ctx with #cert_store= and use SSLSocket.new(sock, ctx).connect
<lupine> I know the server is presenting the right certificate. the client is ignoring it, probably because it's not a ca certificate
happyface has quit [Quit: Connection closed for inactivity]
SHyx0rmZ has joined #ruby
ki0 has quit [Ping timeout: 240 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
maximski has joined #ruby
fabrice31 has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
Aova has quit [Read error: Connection reset by peer]
digdeep has quit [Remote host closed the connection]
Ankhers has quit [Ping timeout: 250 seconds]
jerematic has quit [Remote host closed the connection]
lastk has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
beef-wellington has joined #ruby
<lastk> Hi, can someone explain me why when I do: [2] pry(#<DashboardController>)> hello= 'bleh\"'
<lastk> => "bleh\\\"" it displays 3 \ instead of just one ?
bklane has quit [Remote host closed the connection]
senayar has quit []
fgo has quit [Ping timeout: 272 seconds]
sent1nel has joined #ruby
x77686d has quit [Quit: x77686d]
goodenough has quit [Remote host closed the connection]
nii236|irssi is now known as nii236
Lingo_ has joined #ruby
x77686d has joined #ruby
bklane has joined #ruby
Aova has joined #ruby
diegoaguilar has joined #ruby
x77686d has quit [Client Quit]
<diegoaguilar> Hello, I just installed rvm and though to install ruby and rails
LetErikTry has joined #ruby
LetErikTry has quit [Changing host]
LetErikTry has joined #ruby
bklane has quit [Remote host closed the connection]
<diegoaguilar> but when I type either irb or rails at my console
<diegoaguilar> any command is known
certainty has quit [Ping timeout: 256 seconds]
<sevenseacat> ?
<diegoaguilar> how can I actually use them?
<sevenseacat> "any command is known"?
<diegoaguilar> get the command not found
sent1nel has quit [Ping timeout: 265 seconds]
<diegoaguilar> for both
<sevenseacat> gist your terminal logs?
devyn_ has quit [Quit: leaving]
razieliyo__ has quit [Quit: Saliendo]
devyn has joined #ruby
devyn has quit [Changing host]
devyn has joined #ruby
<diegoaguilar> sevenseacat, what should I gist
<sevenseacat> what you're seeing in the terminal
<diegoaguilar> its just command not found for either irb or rails
dspangenberg has joined #ruby
<diegoaguilar> I tried first with curl -sSL https://get.rvm.io | bash -s stable --rails
<diegoaguilar> and installed a lof of stuff
<sevenseacat> then i guess you didnt actually install ruby or rails
<Hijiri> maybe it's not in your path?
pdoherty has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
<lupine> stupid openssl. it works if you specify a file, not if you give it the cert directly
<diegoaguilar> path got home/diegoaguilar/.rvm/bin
<diegoaguilar> at last
dfinninger has joined #ruby
<sevenseacat> diegoaguilar: how did you install ruby and rails
<diegoaguilar> sevenseacat, I installed rvm
<sevenseacat> yes, rvm will let you manage rubies
<Hijiri> did you try listing the contents of .rvm/bin
<Hijiri> just to check it's there
<sevenseacat> did you actually use rvm to install a ruby?
kristian-aalborg has joined #ruby
<kristian-aalborg> cheers
<diegoaguilar> I thought it would be installed by the command i typed in before
<sevenseacat> no. that installs rvm.
<diegoaguilar> it outputed a lot of installation logs
<diegoaguilar> about ruby 2.2
<diegoaguilar> and rails
<kristian-aalborg> I get this error from jekyll-scholar: WARN -- : Lexer: unexpected token `̈' at 9341; brace level 1; mode :entry.
<sevenseacat> like i said, *gist them&.
<diegoaguilar> much ri docs at last
marr has quit [Ping timeout: 265 seconds]
<sevenseacat> we cannot see your screen.
<Hijiri> or lpaste
<kristian-aalborg> would anyone know where I should look?
<diegoaguilar> Im afraid I closed that terminal screen
mloveless has quit [Remote host closed the connection]
dspangenberg has quit [Ping timeout: 245 seconds]
<sevenseacat> you probably havent loaded rvm into your config, or set a default ruby, or something, who knows
certainty has joined #ruby
mloveless has joined #ruby
<sevenseacat> #rvm
jonr22 has joined #ruby
pdoherty has quit [Ping timeout: 244 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<GreatSUN> .
dfinninger has quit [Remote host closed the connection]
Rapier- has quit [Ping timeout: 265 seconds]
tkuchiki has joined #ruby
goodenough has joined #ruby
checkit has quit [Ping timeout: 244 seconds]
cantonic has joined #ruby
jonr22 has quit [Remote host closed the connection]
kenneth has quit [Quit: Bye.]
adriancb has joined #ruby
waynerade has quit [Ping timeout: 245 seconds]
thumpba has quit [Ping timeout: 256 seconds]
nfk has joined #ruby
plashchynski has quit [Quit: plashchynski]
ZoanthusR has quit [Read error: Connection reset by peer]
tvw has quit []
harry_vp has left #ruby [#ruby]
Sawbones has joined #ruby
DadoCe has quit [Remote host closed the connection]
metadave has joined #ruby
plashchynski has joined #ruby
juanpablo__ has quit [Quit: (null)]
ghostmoth has quit [Quit: ghostmoth]
jonmorehouse has joined #ruby
juanpablo__ has joined #ruby
mloveless has quit [Remote host closed the connection]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maximski has quit [Read error: Connection reset by peer]
it0a has joined #ruby
maximski has joined #ruby
jontmorehouse has quit [Ping timeout: 256 seconds]
djbkd_ has joined #ruby
maximski has quit [Max SendQ exceeded]
plashchynski has quit [Client Quit]
zachrab has quit [Remote host closed the connection]
maximski has joined #ruby
juanpablo__ has quit [Ping timeout: 255 seconds]
nb_bez___ has joined #ruby
atomical has joined #ruby
djbkd_ has quit [Ping timeout: 244 seconds]
nfk has quit [Quit: yawn]
<jhass> lastk: that's because inside single quotes the \ only acts for ' as escape
<jhass> in all other cases it's a literal \
<jhass> in double quote notation a literal \ is represented as \\
robustus has quit [Ping timeout: 255 seconds]
lastk has quit [Read error: Connection reset by peer]
reset has quit [Quit: Leaving...]
<nii236> Can someone please help me with my koan? http://pastebin.com/p8fQnKRA
<nii236> Line 5 is wrong, type mismatch as a string
<nii236> But exception.message class is a string
<nii236> So I dunno
jonr22 has joined #ruby
<sevenseacat> whats thefull error?
jonr22 has quit [Remote host closed the connection]
<nii236> The answers you seek... type mismatch: String given
martin_work has quit [Quit: martin_work]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
DadoCe has joined #ruby
<sevenseacat> how odd
martin_work has joined #ruby
zB0hs has joined #ruby
<jhass> nii236: can you make a gist with the full command output?
wallerdev has quit [Quit: wallerdev]
shime has quit [Remote host closed the connection]
wallerdev has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
bricker has quit [Ping timeout: 246 seconds]
athan has joined #ruby
<nii236> What does it mean when a string is surrounded /these/?
<nii236> jhass: Will do
<jhass> then it's a regex
<jhass> not a string
<nii236> Ah
<jhass> regular expression is the full term
<jhass> Regexp is the Ruby class
Fezzler has joined #ruby
<sevenseacat> oh assert_match duh
<sevenseacat> didnt even see that
<wallerdev> duhhh
<sevenseacat> match is for regexes, not strings
jenrzzz has joined #ruby
<nii236> Ah crap
<nii236> I didn't pay attention to the regex section
BurningChrome has quit [Ping timeout: 265 seconds]
jamto11 has joined #ruby
FooMunki has quit [Quit: FooMunki]
Sawbones has quit []
FooMunki_ has joined #ruby
postmodern has quit [Quit: Leaving]
Fezzler has quit [Client Quit]
<nii236> Sweet I got it, I just used /\wrong number of arguments/
coinrookie has joined #ruby
<wallerdev> lol
<nii236> I have a feeling I used it wrong tho
Olipro has joined #ruby
DarthGandalf has quit [Ping timeout: 276 seconds]
FooMunki_ has quit [Ping timeout: 255 seconds]
<jhass> nii236: \w is actually special
<nii236> -_-
<jhass> it matches a-z, A-Z, 0-9 and _
<nii236> Ok I'll go revise the regex section lol
DarthGandalf has joined #ruby
<jhass> so your regex matches for example "grong number of arguments, yo"
<nii236> Ah yes I got it
<nii236> hah!
<nii236> Yeah so simple match no '\' is needed
<nii236> All good
whatasunnyday has joined #ruby
fgo has joined #ruby
chipotle has quit [Quit: cheerio]
<whatasunnyday> I'm really dumb and I'm having problems with String#unpack. How can I convert the hexadecimal string "0x05" to its ascii value?
<whatasunnyday> or even its base 10
Aova has quit [Read error: Connection reset by peer]
<eam> >> [Integer("0x05"), Integer("0x05").chr]
<eval-in_> eam => [5, "\x05"] (https://eval.in/267806)
Hijiri has quit [Quit: WeeChat 1.0.1]
dfinninger has joined #ruby
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 245 seconds]
hgl has quit [Ping timeout: 264 seconds]
ValicekB has quit [Ping timeout: 244 seconds]
<whatasunnyday> eam, <3
<whatasunnyday> jefus, thanks too
kenneth has joined #ruby
jtdowney has joined #ruby
Aova has joined #ruby
Aww has left #ruby ["Beep Beep!"]
amclain has joined #ruby
<eam> whatasunnyday: I prefer Integer() as it raises an exception if it couldn't convert
<jefus> that's a useful note
<eam> >> [(Integer("j") rescue "couldn't convert"), "j".to_i(16)]
<eval-in_> eam => ["couldn't convert", 0] (https://eval.in/267808)
<eam> the conversion methods are a bit different too
<whatasunnyday> eam, how so?
fella5s has joined #ruby
hgl has joined #ruby
<whatasunnyday> i was about to ask if its possible for it to throw an exception if it fails
bronson has joined #ruby
splud has quit [Quit: splud]
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dspangenberg has joined #ruby
gtrak has quit [Ping timeout: 272 seconds]
fella6s has quit [Ping timeout: 244 seconds]
shum has joined #ruby
ValicekB has joined #ruby
hamakn has joined #ruby
<eam> >> ["10.0".to_i(16), (Integer("10.0", 16) rescue "couldn't convert")]
<eval-in_> eam => [16, "couldn't convert"] (https://eval.in/267810)
maletor has quit [Quit: Computer has gone to sleep.]
<eam> I don't remember all the differences, but one is how strict it is in terms of conversion
hamakn has quit [Read error: Connection reset by peer]
hamakn_ has joined #ruby
DadoCe has quit [Remote host closed the connection]
DadoCe has joined #ruby
<jefus> i imagine getting a 0 result from .hex could be rather ambiguous
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
shum has quit [Client Quit]
bronson has quit [Ping timeout: 264 seconds]
dspangenberg has quit [Ping timeout: 244 seconds]
yellowgh0st has joined #ruby
jonmorehouse has quit [Ping timeout: 256 seconds]
<eam> to_i behaves a lot like Perl's numeric contexts
chipotle has joined #ruby
<eam> aka $thing + 0
<jefus> hmm
kenneth has joined #ruby
<jefus> i've repressed my experiences with perl
shum has joined #ruby
hamakn_ has quit [Remote host closed the connection]
postmodern has joined #ruby
<eam> <-- loud and proud
adriancb has quit [Remote host closed the connection]
DadoCe has quit [Ping timeout: 245 seconds]
leonshalimov has joined #ruby
<jefus> hehehe
<jefus> with perl?
yellowgh0st has quit [Remote host closed the connection]
tjohnson has joined #ruby
shum is now known as sdothum
<eam> oh yeah
<jefus> everything has its place
<jefus> was my first encounter with a scripting language, i won't knock it
<sevenseacat> same.
<jefus> it's just not... so elegant now
<sevenseacat> hacking together perl to power a guestbook on my website in like 1998.
<eam> yeah. does help explain an incredible amount of ruby's behaviors though
<sevenseacat> \o/
<zenspider> I wouldn't call it an _incredible_ amount...
<zenspider> some globals and a bit of the global's semantics
<zenspider> and some methods on kernel
<eam> most of the methods on string
<jefus> ah like the builtin $ conveniences?
yellowgh0st has joined #ruby
<eam> array behavior is essentially list context with the bugs fixed
<zenspider> I would hesitate to say that the string methods are because of perl... so much as they are because of strings
<sevenseacat> at least ruby didnt pick up its string methods from php.
<zenspider> go look at strings in smalltalk... not THAT much different
<zenspider> (tho certainly more usuable in many areas)
<zenspider> array behavior is essentially smalltalk's... because arrays don't really differ that much
<jefus> i've been poking a bit at haskell and it's giving me greater appreciation of certain aspects of ruby
<eam> sevenseacat: http://frap.net/php.txt
bricker has joined #ruby
<jefus> but haven't fully wrapped my head around strict functional programming
<eam> zenspider: regex, hash, the io layer
vaneda has joined #ruby
pierre1_ has joined #ruby
leonshalimov has quit [Ping timeout: 256 seconds]
Musashi007 has joined #ruby
sdothum has quit [Quit: WeeChat 1.1.1]
Musashi007 has quit [Client Quit]
Lingo_ has quit [Quit: (null)]
deric_skibotn has quit [Ping timeout: 276 seconds]
<eam> the thing I miss most is probably Perl's vec()
shum has joined #ruby
centrx has joined #ruby
sent1nel has joined #ruby
<zenspider> eam: I ... think that postdates my perl experience... what is/was it?
ta_ has joined #ruby
<eam> ruby also doesn't have format(), but that's probably a good thing http://perldoc.perl.org/functions/format.html
<zenspider> oh... the cobol format thing
<zenspider> ah. we don't need vec because we have Integer#[] :P
<zenspider> I don't think that postdates me... I think I just never came across it
wallerdev has quit [Quit: wallerdev]
<jefus> never used it for much more than a shell script replacement
fgo has joined #ruby
shum has quit [Client Quit]
linojon has quit [Quit: enuf of this]
shum has joined #ruby
sent1nel has quit [Ping timeout: 265 seconds]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
jonr22 has joined #ruby
shum has quit [Client Quit]
ta_ has quit [Ping timeout: 272 seconds]
shum has joined #ruby
wookiehangover has quit [Ping timeout: 245 seconds]
<eam> Integer#[] is pretty sweet but I don't think it covers all the cases (like assignment)
<eam> not really complaining, easy to add this stuff
shum has quit [Client Quit]
<eam> I think there's a gem for it
<jefus> is that a tagline now, "there's a gem for that"? :)
nobitanobi has joined #ruby
<centrx> Would you like that bundled for you?
<jefus> hehehe
maletor has joined #ruby
DadoCe has joined #ruby
shum has joined #ruby
shum has quit [Client Quit]
shum has joined #ruby
dc has quit [Remote host closed the connection]
wookiehangover has joined #ruby
krz has joined #ruby
shum has quit [Client Quit]
patric100e99 has joined #ruby
martin_work has quit [Ping timeout: 240 seconds]
shum has joined #ruby
DadoCe has quit [Ping timeout: 264 seconds]
swgillespie has joined #ruby
sent1nel has joined #ruby
eka has joined #ruby
jonmorehouse has joined #ruby
<GreatSUN> what a day...
quazimodo has quit [Ping timeout: 264 seconds]
jenrzzz_ has joined #ruby
djbkd has quit [Remote host closed the connection]
<centrx> O GreatSUN, tell us of the Day
Sakens has joined #ruby
<GreatSUN> it's 4am
<centrx> The day begins, GreatSUN awakes!
<GreatSUN> just restarted server build cause we lost one server somehow during build
fabrice31 has joined #ruby
paulfm has joined #ruby
<GreatSUN> centrx: no... still awake
dc has joined #ruby
<GreatSUN> after day there comes the night
jtdowney has joined #ruby
<GreatSUN> anyhow
<GreatSUN> I did not sleep up to now
<GreatSUN> this day reminds me of a day some years ago
<GreatSUN> where I was working instead of celebrating
<centrx> There is nothing new under the GreatSUN
<GreatSUN> while that day in the past was new year
swgillespie has quit [Client Quit]
<GreatSUN> today is my day
jenrzzz has quit [Ping timeout: 264 seconds]
swgillespie has joined #ruby
_gautam_ has joined #ruby
<GreatSUN> need to be back at home at 6, so that we can get kids ready and so to get them to school/kindergarden
<GreatSUN> and then back to work
<GreatSUN> well... sounds more like sleepless night
Lingo_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 244 seconds]
nobitanobi has quit [Remote host closed the connection]
<centrx> The GreatSUN never sleeps
<whatasunnyday> eam, cool thanks
<GreatSUN> well
<GreatSUN> I really need some sleep
fabrice31 has quit [Ping timeout: 245 seconds]
quazimodo has joined #ruby
paulfm has quit [Ping timeout: 264 seconds]
vaneda has quit [Quit: Computer has gone to sleep.]
tus has quit []
apeiros has quit [Read error: Connection reset by peer]
jonr22 has quit [Remote host closed the connection]
paulfm has joined #ruby
apeiros__ has joined #ruby
vaneda has joined #ruby
<pontiki> go get some before more and possibly worse mistakes happen
timanema has quit [Ping timeout: 264 seconds]
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
tkuchiki has quit [Remote host closed the connection]
jackjackdrpr has quit [Ping timeout: 276 seconds]
<GreatSUN> pontiki: I have to wait for buildpipes
tkuchiki has joined #ruby
<GreatSUN> well this is not a very nice present anyhow for the one day in the year
* pipework works on them
renier_ has joined #ruby
renier has quit [Ping timeout: 276 seconds]
Aova has quit [Read error: Connection reset by peer]
davedev24_ has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
davedev24_ has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 246 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tiwillia has quit [Remote host closed the connection]
tacotaco_ has quit [Ping timeout: 272 seconds]
Aova has joined #ruby
djbkd has joined #ruby
tacotaco_ has joined #ruby
funburn has quit [Ping timeout: 256 seconds]
ta_ has quit [Ping timeout: 276 seconds]
davedev24_ has quit [Ping timeout: 240 seconds]
davedev2_ has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cpt_yossarian has quit [Read error: Connection reset by peer]
martin_work has joined #ruby
wallerdev has joined #ruby
pdoherty has joined #ruby
bricker has quit [Ping timeout: 264 seconds]
dfinninger has quit [Remote host closed the connection]
duncan_ has quit [Ping timeout: 245 seconds]
cpt_yossarian has joined #ruby
luriv_ has joined #ruby
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duncannz has joined #ruby
pdoherty has quit [Ping timeout: 244 seconds]
luriv has quit [Ping timeout: 244 seconds]
duncan_ has joined #ruby
bryanculver has quit [Quit: Connection closed for inactivity]
jimmyhoughjr has quit [Quit: Textual IRC Client: www.textualapp.com]
duncannz has quit [Ping timeout: 256 seconds]
uptownhr has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
ajaiswal has joined #ruby
shum has joined #ruby
shum has quit [Client Quit]
ponga has quit [Ping timeout: 264 seconds]
martin_work has quit [Quit: martin_work]
josephndenton has quit [Ping timeout: 265 seconds]
Prandium has joined #ruby
Prandium has left #ruby [#ruby]
josephndenton has joined #ruby
oo_ has quit [Remote host closed the connection]
klmlfl has joined #ruby
TrafficMan has quit [Quit: ZNC - http://znc.in]
beef-wellington has quit [Ping timeout: 276 seconds]
oo_ has joined #ruby
radic has quit [Ping timeout: 245 seconds]
weaksauce has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby
zwer_b is now known as zwer
radic has joined #ruby
djbkd has quit [Remote host closed the connection]
goodenough has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 255 seconds]
pierre1_ has quit [Quit: Leaving]
bitflipping is now known as newguise1234
newguise1234 is now known as bitflipping
paulfm has quit [Quit: Zzzzz...]
maletor has quit [Quit: Computer has gone to sleep.]
DadoCe has joined #ruby
jamto11 has quit [Remote host closed the connection]
jamto11 has joined #ruby
shum has joined #ruby
vaneda has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 256 seconds]
coinrookie has quit [Quit: Leaving]
shum has quit [Client Quit]
arup_r has joined #ruby
shum has joined #ruby
towski_ has quit [Remote host closed the connection]
beef-wellington has joined #ruby
arup_r_ has joined #ruby
DadoCe has quit [Ping timeout: 240 seconds]
arup_r_ has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Shidash has joined #ruby
Hijiri has joined #ruby
goodenough has joined #ruby
Takle has quit [Remote host closed the connection]
Areessell has joined #ruby
Takle has joined #ruby
lampd1 has joined #ruby
jenrzzz has joined #ruby
_maes_ has joined #ruby
josephndenton has quit [Ping timeout: 264 seconds]
LetErikTry has quit [Quit: sleep]
timanema has joined #ruby
braincrash has quit [Quit: bye bye]
Takle has quit [Ping timeout: 276 seconds]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roolo has joined #ruby
codeurge has joined #ruby
davedev2_ has quit [Ping timeout: 272 seconds]
davedev24_ has joined #ruby
dcarmich has joined #ruby
kristian-aalborg has quit [Quit: Leaving]
braincrash has joined #ruby
roolo has quit [Ping timeout: 264 seconds]
aagdbl has joined #ruby
arup_r has quit [Quit: Leaving.]
timanema has quit [Ping timeout: 272 seconds]
bronson has joined #ruby
V_Ve has joined #ruby
dspangenberg has joined #ruby
martin_work has joined #ruby
Megtastique has joined #ruby
Aova has quit [Read error: Connection reset by peer]
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atomical has joined #ruby
jerematic has joined #ruby
atomical has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
nobitanobi has joined #ruby
mrmargolis has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 244 seconds]
dspangenberg has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
uptownhr has quit [Quit: uptownhr]
Aova has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
yellowgh0st has quit [Remote host closed the connection]
jerematic has quit [Ping timeout: 245 seconds]
atomical has joined #ruby
yellowgh0st has joined #ruby
nb_bez___ has quit [Quit: Connection closed for inactivity]
atomical has quit [Client Quit]
uptownhr has joined #ruby
Channel6 has joined #ruby
dfinninger has joined #ruby
bricker has joined #ruby
nii236|irssi has joined #ruby
yfeldblum has quit [Remote host closed the connection]
shum has quit [Quit: WeeChat 1.1.1]
kyb3r_ has joined #ruby
Lingo_ has quit [Quit: (null)]
josephndenton has joined #ruby
craigp has quit [Remote host closed the connection]
<GreatSUN> n8
n008f4g_ has quit [Ping timeout: 265 seconds]
goodenough has quit [Remote host closed the connection]
yfeldblum has joined #ruby
maximski has quit []
ponga has joined #ruby
bdamos has quit [Remote host closed the connection]
thumpba has joined #ruby
ta_ has joined #ruby
martin_work has quit [Quit: martin_work]
decoponio has joined #ruby
atomical has joined #ruby
bdamos has joined #ruby
Musashi007 has joined #ruby
thumpba has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 246 seconds]
klmlfl has quit [Remote host closed the connection]
swgillespie has joined #ruby
_gautam_ has quit [Quit: Lingo: www.lingoirc.com]
<ericwood> hey ruby pals, anyone have any idea what's going on with this? (problem description in comments)
x77686d has joined #ruby
ChoiKyuSang has quit [Ping timeout: 265 seconds]
Mia has quit [Read error: Connection reset by peer]
kyb3r_ has quit [Read error: Connection reset by peer]
<ericwood> honestly I can't see any real difference between the two examples I've provided, but one works and the other doesn't............
postmodern has quit [Ping timeout: 245 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
kyb3r_ has joined #ruby
thatslifeson_ has joined #ruby
ponga has quit [Ping timeout: 276 seconds]
xcesariox has quit [Read error: Connection reset by peer]
yellowgh0st has quit [Read error: Connection reset by peer]
yellowgh0st has joined #ruby
avahey has joined #ruby
oo_ has joined #ruby
az7ar_away has quit [Ping timeout: 264 seconds]
danshultz has quit [Ping timeout: 264 seconds]
sptq has quit [Ping timeout: 264 seconds]
frem has quit [Quit: Connection closed for inactivity]
tkuchiki has joined #ruby
thatslifeson has quit [Ping timeout: 264 seconds]
danshultz has joined #ruby
sptq has joined #ruby
fabrice31 has joined #ruby
<ericwood> I'd avoid using threads and use something like a select loop, but a blocking call to gets is the only option for this lib
dseitz has joined #ruby
Audace has joined #ruby
BurningChrome has joined #ruby
ta_ has joined #ruby
jerikl has left #ruby [#ruby]
dseitz has quit [Client Quit]
tmk1108 has joined #ruby
oo_ has quit [Remote host closed the connection]
freerobby has joined #ruby
towski has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
Cache_Money has joined #ruby
az7ar_away has joined #ruby
jamto11 has quit [Remote host closed the connection]
fedexo has joined #ruby
towski has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
dseitz has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
martin_work has joined #ruby
nanoyak has joined #ruby
nanoyak has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 276 seconds]
nanoyak has joined #ruby
Kn|t3_ has joined #ruby
davedev2_ has joined #ruby
Takle has joined #ruby
Cache_Money has quit [Ping timeout: 244 seconds]
davedev24_ has quit [Ping timeout: 256 seconds]
jamto11 has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mia has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
troubadour has joined #ruby
<eam> ericwood: what platform? linux?
<ericwood> eam: OSX
yokel has quit [Ping timeout: 246 seconds]
ChoiKyuSang has joined #ruby
<ericwood> eam: here's an update:
<ericwood> first one works, second doesn't
Takle has quit [Ping timeout: 255 seconds]
<ericwood> (second one doesn't unblock after 2nd call to gets)
<Areessell> I might have to go get my midi keyboard
<ericwood> Areessell: if you can manage to get it working I'd be eternally grateful
<eam> I'm not great with osx, can you use dtruss -f to see what that misbehaving thread is doing?
<ericwood> Areessell: it's part of a bigger sequencer project I'm throwing together
arup_r has joined #ruby
<jefus> i woke up at "midi keyboard", what's going on?
djbkd has joined #ruby
<ericwood> eam: I'm afraid I'm about to go to bed...perhaps tomorrow...I'm not familiar with dtruss :\
<ericwood> jefus: I'm having threading issues: https://gist.github.com/eric-wood/6bfb4981297324a500eb
<ericwood> those are the descriptions of the problem
<eam> ericwood: do me a favor, switch it to @input = STDIN
<eam> does it still only read one line?
maletor has joined #ruby
<jefus> i wish i hadn't sold my keystation and axiom years ago
<ericwood> eam: same thing happens!
<ericwood> crazy...
<eam> yeah so, unrelated to midi :)
<ericwood> thankfully...
<eam> this is good news because now I can repro on linux with my proper debugging tools
<ericwood> the MIDI ties into some FFI shit I don't want to touch
<ericwood> awesome
davedev2_ has quit [Ping timeout: 265 seconds]
<ericwood> I'll brb...
krz has quit [Ping timeout: 245 seconds]
<jefus> not in proper headspace to help unfortunately but i'm curious
Cache_Money has joined #ruby
davedev24_ has joined #ruby
djbkd has quit [Ping timeout: 256 seconds]
astrobunny has joined #ruby
seitensei is now known as stnsi|sleep
<eam> that's what the thread in your simplified "doesn't work" example is doing
<eam> note the exit()
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
bluOxigen has joined #ruby
bronson has joined #ruby
Kn|t3_ has quit [Quit: Kn|t3_]
djbkd has joined #ruby
hfor has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
Megtastique has quit []
freerobby has quit [Quit: Leaving.]
hfor has joined #ruby
JBreit has left #ruby ["Leaving"]
arup_r has quit []
<ericwood> interesting
<eam> the problem is accessing note[:data]
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
<ericwood> hmm.
lolmaus has quit [Quit: Konversation terminated!]
bronson has quit [Ping timeout: 272 seconds]
<eam> because it raises?
<eam> I think an uncaught exception is killing your thread
Aova has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
<eam> at least it is in my naive STDIN version, where note = "\n"; note[:data] blows it up
<eam> which makes sense
<ericwood> yeah, for sure
ta_ has joined #ruby
<ericwood> so an exception in the thread won't print?
tkuchiki has quit [Ping timeout: 264 seconds]
<eam> ericwood: adding a begin/rescue/end fixes this
<eam> can't tell you why it's exiting without printing
jamto11 has quit []
<ericwood> it appears gets is returning an array. which I was not expecting this time around
<ericwood> I feel kinda dumb now; I was basing this off a prototype sequencer I built, which has this line:
<ericwood> note = @input.gets.first
<eam> aha
<eam> that'll do it
<ericwood> so, thank you a ton
<eam> np
<ericwood> I guess I was operating under the assumption that Ruby would blow up in this case rather than being silent about it
<eam> I don't do much with threads in ruby, no idea what to expect
<ericwood> same :P
Kn|t3_ has joined #ruby
tmk1108 has quit [Quit: Textual IRC Client: www.textualapp.com]
<ericwood> awesome, it's working now!
<ericwood> ...now to get playback working and I'm IN BUSINESS
<ericwood> the great thing is that playback is also in a thread so I'm sure it'll shit a brick on me eventually :D
tmk1108 has joined #ruby
<eam> :D
ta_ has quit [Ping timeout: 276 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
pdoherty has joined #ruby
goodenough has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
godd2 has quit [Ping timeout: 256 seconds]
thatslifeson_ is now known as thatslifeson
Musashi007 has joined #ruby
echevemaster has quit [Quit: Leaving]
pdoherty has quit [Ping timeout: 264 seconds]
JohnBat26 has joined #ruby
adriancb has joined #ruby
tkuchiki has joined #ruby
martin_work has quit [Quit: martin_work]
bronson has joined #ruby
Kn|t3_ has quit [Quit: Kn|t3_]
yfeldblum has quit [Remote host closed the connection]
V_Ve has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
nuck has quit [Remote host closed the connection]
Audace has quit [Ping timeout: 255 seconds]
krz has joined #ruby
adriancb has quit [Ping timeout: 265 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
rcoulman has joined #ruby
sent1nel has quit [Remote host closed the connection]
ponga has joined #ruby
arup_r has joined #ruby
rcoulman has quit [Client Quit]
zachrab has joined #ruby
craigp has joined #ruby
nanoyak has joined #ruby
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
cantonic has quit [Quit: cantonic]
ramfjord has joined #ruby
cantonic has joined #ruby
<arup_r> How to merge this rm ~/tmp/*.swp and rm ~/tmp/*.swo in a single line command ?
lance has joined #ruby
martin_work has joined #ruby
lance is now known as Guest713
<Guest713> Hi Guys! I just want to ask when do you use metaprogram in your program and why?
longfeet_ has joined #ruby
<Guest713> metaprogramming I mean
<sevenseacat> that depends on your definition of metaprogramming
<sevenseacat> given the question, its probably vastly different than mine.
<ericwood> arup_r: rm ~/tmp/*.{swp,swo}
<ericwood> I think thta'll work but I'm not awesome at bash
ponga has quit [Ping timeout: 252 seconds]
beef-wellington has quit [Ping timeout: 272 seconds]
<Guest713> can you give me an specific reason why you use it?
<arup_r> Ahh! that way... Thanks..
<ericwood> Guest713: it's best used sparingly, but essential for things like creating DSLs, dynamically dispatching methods, etc.
longfeet has quit [Ping timeout: 255 seconds]
bzeu has joined #ruby
<Guest713> ah I see..
<ericwood> I guess your definition of metaprogramming could be any sort of introspection, really
<centrx> When the code knows itself, the code becomes self-aware
<ericwood> sometimes it's nice to dynamically create methods from a list of something, for example
davedev24_ has quit [Read error: Connection reset by peer]
<ericwood> I really really do try to use it sparingly, at least in the Rails world...it makes problem code very tough to track down
davedev24_ has joined #ruby
<ericwood> people grep for a method definition but can't find it, etc.
<ericwood> but REALLY it's going to be most commonly used when you're building a "framework" for something
<ericwood> does that help?
<Guest713> ah great
<bzeu> If ruby doesn't have ++ or -- how do you increase or decrease a variable?
<ericwood> bzeu: += 1
<ericwood> >> a = 0; a += 1
<eval-in_> ericwood => 1 (https://eval.in/268112)
<ericwood> >> a = 0; a -= 1
<eval-in_> ericwood => -1 (https://eval.in/268113)
<bzeu> I see
<ericwood> us rubyists don't believe in a special operator for that sort of thing...it makes sense when you realize we don't write "for" loops really
greenbagels has joined #ruby
ChoiKyuSang has joined #ruby
<eam> ++ is super dangerous in every language that implements it
<sevenseacat> i dont think `for` loops should exist in ruby. but thats my opinion.
greenbagels has quit [Max SendQ exceeded]
<ericwood> sevenseacat: idk how the syntax for them even works
<ericwood> eam is also right, precedence takes hold and ++foo and foo++ are very different
zachrab has quit [Remote host closed the connection]
<ericwood> Ruby encourages more of a "functional programming" approach to things like iteration
martin_work has quit [Quit: martin_work]
whatasunnyday has quit [Quit: Leaving]
greenbagels has joined #ruby
greenbagels has quit [Max SendQ exceeded]
<Guest713> last question how to tell if your program has metaprogramming?
<ericwood> Guest713: metaprogramming isn't a well-defined concept
<eam> and multiple use in one expression is often undefined, for example http://c-faq.com/expr/evalorder4.html
greenbagels has joined #ruby
<ericwood> but if you see things like "define_method" or "method_missing" that's a good sign I suppose?
<Guest713> ah I see..
ta_ has joined #ruby
greenbagels has quit [Max SendQ exceeded]
Cache_Money has quit [Quit: Cache_Money]
<bzeu> I just installed ruby on Windows and it comes with a pdf called, bookofruby.pdf. What is this?
zachrab has joined #ruby
<ericwood> bzeu: open it and find out I guess
greenbagels has joined #ruby
<bzeu> It's some sort of "learn ruby" book
<ericwood> there's your answer
greenbagels has quit [Max SendQ exceeded]
greenbagels has joined #ruby
nuck has joined #ruby
greenbagels has quit [Max SendQ exceeded]
greenbagels has joined #ruby
greenbagels has quit [Max SendQ exceeded]
greenbagels has joined #ruby
greenbagels has quit [Max SendQ exceeded]
troubadour has quit [Quit: troubadour]
<eam> the original metaprogrammer: http://www.catb.org/jargon/html/story-of-mel.html
x77686d has quit [Quit: x77686d]
greenbagels has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
davedev2_ has joined #ruby
dspangenberg has joined #ruby
x77686d has joined #ruby
davedev24_ has quit [Ping timeout: 276 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
The_Phoenix has joined #ruby
deol has joined #ruby
dspangenberg has quit [Ping timeout: 264 seconds]
BurningChrome has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
AlexRussia has joined #ruby
shortdudey123 has quit [Read error: Connection reset by peer]
BurningChrome has joined #ruby
martin_work has joined #ruby
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonmorehouse has quit [Ping timeout: 252 seconds]
SpinningWheels has joined #ruby
tobago has joined #ruby
Aova has quit [Read error: Connection reset by peer]
towski_ has joined #ruby
tobago has quit [Remote host closed the connection]
uptownhr has quit [Quit: uptownhr]
dfinninger has quit [Remote host closed the connection]
tobago has joined #ruby
towncrierr has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
Aova has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 245 seconds]
quazimodo has quit [Ping timeout: 246 seconds]
thatslifeson is now known as zz_thatslifeson
tkuchiki has quit [Ping timeout: 265 seconds]
Pupeno has quit [Remote host closed the connection]
malcolmva has quit [Ping timeout: 245 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
shellox_ has joined #ruby
shellox_ is now known as dalailamer
oleo__ has quit [Quit: Verlassend]
<dalailamer> how to empty a CSV::table except the header?
Pupeno_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
goodenough has quit [Remote host closed the connection]
dimaursu16 has quit [Ping timeout: 276 seconds]
davedev24_ has joined #ruby
oo_ has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 265 seconds]
tagrudev has joined #ruby
keiserr has joined #ruby
davedev2_ has quit [Ping timeout: 272 seconds]
<keiserr> hi any idea about this error ? https://gist.github.com/anonymous/c5961bf57e9699cc2c35
Channel6 has quit [Quit: Leaving]
acangiano has quit [Ping timeout: 255 seconds]
astrobunny has quit [Remote host closed the connection]
shortdudey123 has joined #ruby
<keiserr> cannot load such file -- mocha/api (LoadError)
agrinb_ has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
fivetwentysix has joined #ruby
ohaibbq has joined #ruby
MrSamuel has joined #ruby
Pupeno has joined #ruby
fivetwentysix has quit [Client Quit]
aagdbl has quit [Quit: This computer has gone to sleep]
Pupeno_ has quit [Ping timeout: 265 seconds]
zachrab has quit [Remote host closed the connection]
roshanavand has joined #ruby
Pupeno_ has joined #ruby
malcolmva has joined #ruby
oo_ has joined #ruby
fabrice31 has joined #ruby
Pupeno has quit [Ping timeout: 245 seconds]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
bricker has quit [Quit: leaving]
fabrice31 has quit [Ping timeout: 264 seconds]
lolmaus has joined #ruby
hvxgr has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
Pupeno_ has quit [Ping timeout: 272 seconds]
michael_mbp has joined #ruby
tkuchiki has joined #ruby
josephndenton has quit [Ping timeout: 265 seconds]
ponga has joined #ruby
centrx has quit [Quit: In the beginning there was nothing, which exploded.]
nii236|irssi has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
<shevy> keiserr you must gem install mocha
<keiserr> did that already didn't work, i set changed required to false in the gemfile file and then required the mocha/api in the test_helper.rb file, it worked this way, thanks though
last_staff has joined #ruby
Takle has joined #ruby
djbkd has quit [Quit: My people need me...]
Jaevn has joined #ruby
apeiros_ has quit [Remote host closed the connection]
lkba has joined #ruby
apeiros_ has joined #ruby
delong_ has joined #ruby
martin_work has quit [Quit: martin_work]
noop has joined #ruby
astrobunny has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
supergiel has joined #ruby
ponga has quit [Ping timeout: 245 seconds]
ptrrr has joined #ruby
<certainty> moin
longfeet_ has quit [Read error: Connection reset by peer]
martin_work has joined #ruby
wallerdev has quit [Quit: wallerdev]
Takle has quit [Ping timeout: 276 seconds]
apeiros_ has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby
Spami has joined #ruby
Jarboe has quit []
neoxquick has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
nuck has quit [Quit: Textual IRC Client: www.textualapp.com]
agrinb has joined #ruby
jonmorehouse has joined #ruby
Audace has joined #ruby
Audace has quit [Max SendQ exceeded]
elaptics`away is now known as elaptics
hgl has quit [Ping timeout: 246 seconds]
Terens has quit []
agrinb has quit [Ping timeout: 246 seconds]
Morkel has joined #ruby
hgl has joined #ruby
bricker has joined #ruby
<bzeu> Hey. Currently starting learning Ruby. Previously coded in C/C++/PHP and ASM. Any books to recommend?
<sevenseacat> !twgr
<helpa> Learn Ruby by reading this book - http://manning.com/black3 - The Well-Grounded Rubyist by David A. Black
sent1nel has joined #ruby
x77686d has quit [Quit: x77686d]
Hijiri has joined #ruby
Guest713 has quit [Quit: Page closed]
<dalailamer> sevenseacat: can you give me a hint please?
<sevenseacat> ?
<dalailamer> i have a CSV::table with lots of rows
<dalailamer> how would i empty it?
<dalailamer> read the docs already, but can't get it working :/
<bzeu> sevenseacat: THanks
martin_work has quit [Quit: martin_work]
Deele has joined #ruby
<sevenseacat> dalailamer: delete all the rows?
<sevenseacat> make a new table and copy the headers?
ellisTAA has joined #ruby
<dalailamer> sevenseacat: i tried that too, but can't get it working either.
<sevenseacat> dalailamer: some code would be nice.
hvxgr has joined #ruby
<dalailamer> i tried products = CSV::Table.new(products.headers)
<sevenseacat> and?
<bzeu> sevenseacat: What's good with this book?
Pharaoh2 has joined #ruby
<sevenseacat> bzeu: it teaches ruby.
pgmcgee has quit [Read error: Connection reset by peer]
<dalailamer> sevenseacat: it returns undefined method `headers' for "Handle":String
sent1nel has quit [Ping timeout: 252 seconds]
Aova has quit [Read error: Connection reset by peer]
<bzeu> sevenseacat: Has it something extra or is it just a random book you picked?
<sevenseacat> then products isnt a CSV::Table, its a string
hgl has quit [Ping timeout: 245 seconds]
<sevenseacat> bzeu: seriously?
<bzeu> sevenseacat: What?
<sevenseacat> 'recommend me a book!' *gives book* 'no not that one!'
<bzeu> I didnt say not that just asked why that.
<certainty> give another one!
<sevenseacat> !r4ia
<helpa> Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Steve Klabnik, Ryan Bigg, Yehuda Katz
<bzeu> If you suggest a book you might want to tell why you suggest it, that's what I asked.
JohnBat26 has quit [Remote host closed the connection]
bal has joined #ruby
ptrrr has quit [Quit: ptrrr]
hgl has joined #ruby
_5kg has quit [Read error: Connection reset by peer]
_5kg has joined #ruby
tmk1108 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Aova has joined #ruby
riotjones has joined #ruby
codecop has joined #ruby
riotjone_ has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
SixiS has joined #ruby
Morkel has quit [Quit: Morkel]
martin_work has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
riotjones has quit [Client Quit]
anarang has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
MrSamuel has joined #ruby
porfa has quit [Quit: porfa]
pdoherty has joined #ruby
porfa has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
maletor has joined #ruby
coderhut has joined #ruby
tobago has quit [Remote host closed the connection]
pdoherty has quit [Ping timeout: 272 seconds]
yellowgh0st has quit [Remote host closed the connection]
martin_work has quit [Quit: martin_work]
AlexRussia has quit [Ping timeout: 245 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
nii236|irssi has joined #ruby
troubadour has joined #ruby
andikr has joined #ruby
oo_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
aganov has joined #ruby
AlexRussia has joined #ruby
terlar has joined #ruby
Macaveli has joined #ruby
tobago has joined #ruby
riotjones has joined #ruby
bitflipping has quit [Ping timeout: 246 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
AlexRussia has quit [Ping timeout: 240 seconds]
tobago has quit [Remote host closed the connection]
timanema has joined #ruby
yfeldblu_ has joined #ruby
tokik_ has joined #ruby
tokik_ has quit [Client Quit]
seal has joined #ruby
rdark has joined #ruby
amclain has quit [Quit: Leaving]
hgl has quit [Ping timeout: 272 seconds]
elaptics is now known as elaptics`away
yfeldblum has quit [Ping timeout: 255 seconds]
hgl has joined #ruby
ponga has joined #ruby
goodenough has joined #ruby
<dalailamer> sevenseacat: oh i guess i know why
yfeldblu_ has quit [Ping timeout: 265 seconds]
timanema has quit [Ping timeout: 256 seconds]
dspangenberg has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
dspangenberg has quit [Ping timeout: 255 seconds]
agrinb has joined #ruby
aganov has quit [Read error: Connection reset by peer]
ponga has quit [Ping timeout: 246 seconds]
ta_ has quit [Ping timeout: 246 seconds]
fedexo has quit [Ping timeout: 264 seconds]
fmcgeough has quit [Ping timeout: 245 seconds]
aganov has joined #ruby
ellisTAA has left #ruby [#ruby]
agrinb has quit [Ping timeout: 265 seconds]
zwer has quit [Ping timeout: 250 seconds]
nickenchuggets has joined #ruby
goodenough has quit []
kwd has joined #ruby
<nickenchuggets> Hi, I'm trying to strip some whitespace from the beginning of a string, using the .strip method, but it doesn't appear to be catching the extra space at the beginning, I was wondering if this might be because the space may be a Japanese space, typed from a Japanese keyboard, if that's the case, how might I be able to strip the character?
<nickenchuggets> And yes, Japanese spaces are different, they're much wider.
posixpascal has joined #ruby
sanguisdex has joined #ruby
moted has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
ascarter has joined #ruby
porfa has quit [Quit: porfa]
<nickenchuggets> I was thinking I might try some character analysis, figure out what code the character is associated with, and then using that to find it with gsub.
pasv__ has quit [Ping timeout: 276 seconds]
pasv_ has joined #ruby
roolo has joined #ruby
ki0 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
shime has joined #ruby
sent1nel has joined #ruby
jimms has joined #ruby
delong_ has quit [Ping timeout: 246 seconds]
MrSamuel has quit [Quit: MrSamuel]
aganov has quit [Remote host closed the connection]
LouisRoR has joined #ruby
aswen has joined #ruby
JohnBat26 has joined #ruby
roolo has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Ping timeout: 246 seconds]
Pharaoh2_ has joined #ruby
Aova has quit [Read error: Connection reset by peer]
hs366 has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
fgo has quit [Ping timeout: 264 seconds]
hgl has quit [Ping timeout: 276 seconds]
vdamewood has joined #ruby
sent1nel has quit [Ping timeout: 276 seconds]
aganov has joined #ruby
hgl has joined #ruby
cantonic has quit [Quit: cantonic]
Pharaoh2 has quit [Ping timeout: 240 seconds]
troubadour has quit [Read error: Connection reset by peer]
troubadour has joined #ruby
arup_r has quit [Remote host closed the connection]
Aova has joined #ruby
jack_rabbit has joined #ruby
troubadour has quit [Client Quit]
<nickenchuggets> .strip is not working with Japanese text.
ascarter has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
<nickenchuggets> ah, I got it, it was a non-breaking space.
coderhut has quit [Quit: Page closed]
Hobogrammer_ has joined #ruby
Joufflu has quit [Quit: Peace]
einarj has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
cantonic has joined #ruby
Hobogrammer has quit [Ping timeout: 245 seconds]
Areessell has quit [Quit: sleeeep]
hmsimha has joined #ruby
Jaevn is now known as Mr_Ratha
SpinningWheels has quit [Quit: Leaving.]
cherwin has quit [Ping timeout: 245 seconds]
nii236|irssi has quit [Quit: leaving]
_blackjid has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
Xiti has quit [Read error: Connection reset by peer]
_blackjid has joined #ruby
posixpascal has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
Mr_Ratha is now known as Shida
cherwin has joined #ruby
posixpascal has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
Xiti has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
ponga has joined #ruby
apeiros_ has joined #ruby
dc has quit [Read error: Connection reset by peer]
posixpascal has quit [Read error: Connection reset by peer]
dc has joined #ruby
posixpascal has joined #ruby
livathinos has joined #ruby
Takle has joined #ruby
Hobogrammer_ has quit [Ping timeout: 264 seconds]
ellisTAA has joined #ruby
antgel has joined #ruby
PaulCapestany has quit [Read error: Connection reset by peer]
tobago has joined #ruby
deepy has quit [Changing host]
deepy has joined #ruby
arup_r has joined #ruby
shredding has joined #ruby
PaulCapestany has joined #ruby
matrixise has joined #ruby
ta_ has joined #ruby
Takle has quit [Ping timeout: 246 seconds]
kamilc__ has joined #ruby
djbkd has joined #ruby
antgel has quit [Read error: No route to host]
ohaibbq has quit [Quit: Leaving...]
ypasmk has joined #ruby
<ypasmk> is there a ruby thingy that can compare a list of values in a sequence .. for example the list has numbers or dates and it checks the first with the second then the second with the third etc ..
<ypasmk> ?
<apeiros_> ypasmk: each_cons(2)
<apeiros_> you can chain your comparison iterator on that.
<ypasmk> apeiros_: cool thx apeire
Shida is now known as Jejaka
fgo has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
djbkd has quit [Ping timeout: 244 seconds]
<apeiros_> another day, another way to mutilate my nick. fascinating.
<apeiros_> you'd think after 10y you've seen it all.
LouisRoR has quit [Ping timeout: 255 seconds]
agrinb has joined #ruby
<ypasmk> apeiros is a greek word :)
mikecmpbll has quit [Quit: ciao.]
<ypasmk> it means infinity
<apeiros_> yes, that's one of the translations
supergiel has quit [Ping timeout: 276 seconds]
reinaldob has joined #ruby
fgo has quit [Ping timeout: 276 seconds]
ellisTAA has quit [Quit: ellisTAA]
CustosL1men has joined #ruby
kenneth has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
juni0r has quit [Ping timeout: 272 seconds]
reinaldob has quit [Ping timeout: 256 seconds]
hfor has quit [Remote host closed the connection]
ghr has joined #ruby
AFKGeek has joined #ruby
hfor has joined #ruby
rdark has quit [Quit: leaving]
AFKGeek has quit [Max SendQ exceeded]
AFKGeek has joined #ruby
rdark has joined #ruby
gawaine has joined #ruby
tokik has quit [Ping timeout: 272 seconds]
joonty has joined #ruby
josephndenton has joined #ruby
chthon has joined #ruby
tesuji has joined #ruby
tuxdna has joined #ruby
tuxdna has quit [Client Quit]
Aova has quit [Read error: Connection reset by peer]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
josephndenton has quit [Ping timeout: 256 seconds]
Takle has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
astrobunny has quit [Remote host closed the connection]
sevenseacat has left #ruby [#ruby]
astrobunny has joined #ruby
Aova has joined #ruby
juni0r has joined #ruby
LouisRoR has joined #ruby
jonmorehouse has quit [Ping timeout: 276 seconds]
<certainty> nice the reference to the rules in #ruby-pro 404s on me. I'm interpreting that as "there is no official way to get voice" :)
dalailamer has quit [Quit: leaving]
<apeiros_> yeah, I should fix that. but I should revive ruby-pro in general.
mikecmpbll has joined #ruby
<certainty> possibly :)
<apeiros_> lack of time doesn't help, though. and not knowing in which of my 20 backups the old website is situated doesn't help either :-|
dspangenberg has joined #ruby
shredding has quit [Quit: shredding]
pallavsharma_ps has joined #ruby
elaptics`away is now known as elaptics
shime has quit [Ping timeout: 264 seconds]
<apeiros_> certainty: anyway, to get voice: get somebody already having voice to vouch for you.
iamninja has quit [Remote host closed the connection]
olivier_bK has joined #ruby
iamninja has joined #ruby
<apeiros_> certainty: also your nick must be registered
dspangenberg has quit [Ping timeout: 240 seconds]
<certainty> apeiros_: alright. My nick is registered. Let's see if i actually need voice. I'm ok with reading for now
yfeldblum has joined #ruby
marr has joined #ruby
<apeiros_> chanserv says you're not :)
<apeiros_> oh
<certainty> liar
<apeiros_> misread its message
knut has quit [Ping timeout: 252 seconds]
<apeiros_> it helps using the flag command correctly :-S
<certainty> apeiros_: thanks
pdoherty has joined #ruby
roolo has joined #ruby
ponga has quit [Remote host closed the connection]
troulouliou_dev has joined #ruby
<apeiros_> well, since I'm waiting for our servers to set up sh…tuff, I'll regenerate a skeleton ruby-pro app in the mean time :)
ponga has joined #ruby
<certainty> heh, have fun
<apeiros_> oh, nice, there's an almost empty github repo :D
bricker has quit [Quit: leaving]
blackmes1 has quit [Quit: WeeChat 1.1]
<apeiros_> hm, I guess I can set up a server with those static html files.
froots_0xff has joined #ruby
konsolebox has joined #ruby
roshanavand has quit [Ping timeout: 265 seconds]
pdoherty has quit [Ping timeout: 272 seconds]
timanema has joined #ruby
Pupeno has quit [Quit: Leaving...]
astrobunny has quit [Remote host closed the connection]
guardian has quit [Quit: Coyote finally caught me]
ponga has quit [Ping timeout: 252 seconds]
timanema has quit [Ping timeout: 276 seconds]
gawaine has quit [Quit: Leaving]
Dr3amc0dz has quit [Quit: ZNC - http://znc.in]
guardian has joined #ruby
keen__________46 has joined #ruby
keen__________45 has quit [Ping timeout: 276 seconds]
timonv_ has joined #ruby
yeticry has quit [Ping timeout: 265 seconds]
Dr3amc0d3r|away has joined #ruby
Dr3amc0d3r|away is now known as Dr3amc0d3r
agrinb has joined #ruby
armpitsmell has joined #ruby
<armpitsmell> america's first slave owner was black
rmoriz has joined #ruby
<apeiros_> good thing I saved how I set up my last servers
<armpitsmell> should we go against black people for starting the trend?
yeticry has joined #ruby
<apeiros_> armpitsmell: you're off topic
<armpitsmell> how many years will it take for negroes to become civilized?
armpitsmell was kicked from #ruby by apeiros_ [you're not welcome]
it0a has quit [Ping timeout: 272 seconds]
lampd1 has quit [Remote host closed the connection]
livathinos has quit [Ping timeout: 276 seconds]
<rmoriz> Chanserv's welcome message still contains http://www.modruby.net/ :)
<apeiros_> I know. I wish I could change it.
speaking1ode has joined #ruby
hgl has quit [Ping timeout: 255 seconds]
fgo has joined #ruby
jenrzzz has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
AlexRussia has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
yeticry has quit [Ping timeout: 272 seconds]
fgo has quit [Ping timeout: 264 seconds]
speaking1ode has quit [Ping timeout: 264 seconds]
leafybasil has quit [Remote host closed the connection]
hgl has joined #ruby
yeticry has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
MrSamuel has joined #ruby
lea has joined #ruby
openscript has joined #ruby
sent1nel has joined #ruby
livathinos has joined #ruby
Timgauthier has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
ponga has joined #ruby
ypasmk has quit [Quit: ypasmk]
arup_r has quit [Remote host closed the connection]
sent1nel has quit [Ping timeout: 272 seconds]
quimrstorres has joined #ruby
JohnBat26 has joined #ruby
arup_r has joined #ruby
sonOfRa has quit [Quit: Bye!]
quazimodo has joined #ruby
ypasmk has joined #ruby
sonOfRa has joined #ruby
fg has joined #ruby
aagdbl has joined #ruby
jenrzzz has joined #ruby
bronson has quit [Remote host closed the connection]
keiserr has quit [Ping timeout: 245 seconds]
MrSamuel has quit [Ping timeout: 240 seconds]
<Xeago> anyone using gnu parallel?
Jejaka has quit [Ping timeout: 246 seconds]
livathinos has quit [Remote host closed the connection]
livathinos has joined #ruby
Aova has quit [Read error: Connection reset by peer]
jimms has quit [Remote host closed the connection]
MrSamuel has joined #ruby
niko has quit [Quit: leaving]
jimms has joined #ruby
Aova has joined #ruby
leafybasil has joined #ruby
postmodern has joined #ruby
siso has joined #ruby
niko has joined #ruby
gccostabr has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.1.1]
fgo has joined #ruby
Pharaoh2_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has joined #ruby
timonv_ has joined #ruby
Patteh has joined #ruby
colli5ion has joined #ruby
rodfersou has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Patteh has quit [Remote host closed the connection]
Patteh has joined #ruby
fg is now known as keiserr
<quazimodo> hello all
keiserr has quit [Changing host]
keiserr has joined #ruby
Patteh has quit [Client Quit]
<ypasmk> is is possible to add dynamically an comparison operator .. for example #{value1 @operator value2} ?
Patteh has joined #ruby
<certainty> ypasmk: how do you mean?
Patteh has left #ruby [#ruby]
ta_ has joined #ruby
<ypasmk> @operator = ‘<‘ ; puts “#{3 @operator 4}” => “true”
<apeiros_> ypasmk: they are methods, you can use send
<waxjar> somthing like value1.public_send(:<, value2)
djbkd has joined #ruby
<apeiros_> >> x = 2; y = 4; op = :<; x.public_send op, y
<eval-in_> apeiros_ => true (https://eval.in/268617)
<ypasmk> cools works with public send
msgodf has joined #ruby
artmann_ has quit [Quit: http://quassel-irc.org - Chatta smidigt. Överallt.]
Timgauthier has quit [Read error: Connection reset by peer]
Timgauthier has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
ta_ has quit [Ping timeout: 276 seconds]
djbkd has quit [Ping timeout: 264 seconds]
shime has joined #ruby
agrinb has joined #ruby
ldnunes has joined #ruby
AlexRussia has quit [Ping timeout: 276 seconds]
reinaldob has joined #ruby
knut has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
mofai has joined #ruby
mofai has left #ruby [#ruby]
antgel has joined #ruby
Timgauthier has quit [Max SendQ exceeded]
senayar has joined #ruby
withnale_ has joined #ruby
dumdedum has joined #ruby
ta_ has joined #ruby
Timgauthier has joined #ruby
knut has quit [Ping timeout: 256 seconds]
banister has joined #ruby
Pharaoh2 has joined #ruby
duncan__ has joined #ruby
duncan__ has quit [Max SendQ exceeded]
duncan__ has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
duncan_ has quit [Ping timeout: 276 seconds]
tvw has joined #ruby
ta_ has joined #ruby
knut has joined #ruby
josephndenton has joined #ruby
psy_ has quit [Ping timeout: 272 seconds]
chthon has quit [Ping timeout: 244 seconds]
WhereIsMySpoon has quit [Disconnected by services]
bal has quit [Ping timeout: 272 seconds]
WhereIsMySpoon_ has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
sankaber has joined #ruby
josephndenton has quit [Ping timeout: 265 seconds]
psy_ has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
Morkel has joined #ruby
withnale_ has quit [Remote host closed the connection]
nickenchuggets has quit [Ping timeout: 272 seconds]
withnale_ has joined #ruby
dspangenberg has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby
ixti has quit [Ping timeout: 265 seconds]
tkuchiki has joined #ruby
Aova has quit [Read error: Connection reset by peer]
n008f4g_ has joined #ruby
senayar has quit [Remote host closed the connection]
dspangenberg has quit [Ping timeout: 272 seconds]
senayar has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
Aova has joined #ruby
ta_ has joined #ruby
SpinningWheels has joined #ruby
yfeldblum has quit [Remote host closed the connection]
shime_ has joined #ruby
shime has quit [Read error: Connection reset by peer]
senayar has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 244 seconds]
MrSamuel has joined #ruby
workmad3 has quit [Quit: Lost terminal]
ixti has joined #ruby
workmad3 has joined #ruby
<workmad3> oops, accidentally closed irssi
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ddv> sad
<workmad3> and yeah, ω is small omega
<ddv> no vps, or bouncer workmad3?
<workmad3> ddv: no, not bothered setting one up yet
<workmad3> probably should
<ddv> elite people use tmux + irssi or something like that
<waxjar> wrong channel workmad3 :p
<workmad3> waxjar: bah :)
<ddv> are you elite workmad3?
<ddv> 1337 $ELITE$ skills?
<workmad3> ddv: obviously not :P
<ddv> :(((
<workmad3> ddv: otherwise I wouldn't have closed down iterm when trying to close the character window...
<ddv> ah lol
pdoherty has joined #ruby
<workmad3> ddv: and then forget which channel I was talking in on reconnect
<ddv> probably wasn't important
aagdbl has quit [Ping timeout: 245 seconds]
<workmad3> probably not :)
ramfjord has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
openscript has quit [Ping timeout: 264 seconds]
roshanavand has joined #ruby
borel has joined #ruby
nickenchuggets has joined #ruby
agrinb has joined #ruby
pdoherty has quit [Ping timeout: 272 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
jack_rabbit has quit [Ping timeout: 246 seconds]
dredozub- is now known as dredozubov
dimaursu16 has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
duncan__ has quit [Remote host closed the connection]
lessless has joined #ruby
ajaiswal has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 255 seconds]
sent1nel has joined #ruby
sheepman has joined #ruby
<sheepman> hi guys, anyone know the ruby openssl equivalent of this: openssl x509 -in file.crt ?
<sheepman> can't seem to get it to output just the Base64 endocded data
<sheepman> *encoded
<workmad3> sheepman: you want to encode the file contents with base64?
<sheepman> no, i want to read just the base64 encoded certificate part of the file
<workmad3> ah, ok
ta_ has quit [Ping timeout: 252 seconds]
sent1nel has quit [Ping timeout: 265 seconds]
<sheepman> im sure i must be being silly but i can't figure it out :/
ypasmk has quit [Quit: ypasmk]
chinmay_dd has joined #ruby
<sheepman> ah got it
<sheepman> :)
<sheepman> nm
<workmad3> sheepman: OpenSSL::X509::Certificate.new(File.read("file.crt")).public_key.to_s ?
MrSamuel has quit [Quit: MrSamuel]
<sheepman> nope, .to_pem
<sheepman> nearly
<workmad3> sheepman: was gonna say... that's just the entire file contents again
banister has joined #ruby
<sheepman> no, my certificates have lots of information at the top including fingerprint info etc.
<sheepman> before the contents
<sheepman> well, encoded part
x3cion has quit [Ping timeout: 245 seconds]
learner has quit [Quit: Leaving]
michael_mbp has quit [Excess Flood]
knut has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby
<workmad3> sheepman: hmm... so before the BEGIN CERTIFICATE line?
x3cion has joined #ruby
<sheepman> yes
<sheepman> must be a different format, these certs im looking at are for openvpn if that makes any difference
<sheepman> i'm no expert on anything ,especially cert file formats
<sheepman> :)
<workmad3> sheepman: could be they're a different format, could be it's just explanatory text there that replicates stuff from doing 'openssl x509 -in file.crt -text'
<sheepman> maybe
<sheepman> let me check
<sheepman> yup, its all that text i didn't want
<sheepman> your right
<sheepman> so when i generate a user cert i get the text followed by the base64 stuff, just wanted the base64 bit
wald0 has joined #ruby
<workmad3> how are you generating the cert?
<sheepman> easy-rsa generates it
<sheepman> it gets done outside of my ruby script
<workmad3> hmm... ok... I've tended to just use openssl directly to generate certs
<workmad3> which didn't put those headers in... they're all there in the certificate anyway, it just makes it marginally easier for a human to see that info (assuming it's not been tampered with)
<sheepman> i see
<workmad3> hence why I was wondering if you just wanted the public key from the certificate :)
<sheepman> no i get it :)
<workmad3> but yeah... you could load up and dump the file out again with to_pem then
<sheepman> maybe in the future I'll get the certs generated and signed all in one script but for now i'm plugging into to some existing setup
<workmad3> yeah, I tend to shell-out to openssl rather than do it in ruby atm
<workmad3> should probably figure out doing it in-ruby at some point :)
<sheepman> yeah i started to for kicks then realised i'm running out of time on this as it is, no excuse i know! But i will come back to it at some point :)
<sheepman> thanks for your help workmad3
rdark has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 244 seconds]
<workmad3> np
<atmosx> workmad3: if yu do that, please share the code.
<workmad3> atmosx: hehe :)
<workmad3> atmosx: 'ruby-ca' eh? :)
<atmosx> I know of at least 2 companies who have some internal ruby/python automatic openvpn-key generator, but IIRC they had to do the routing manually.
josephndenton has joined #ruby
<atmosx> workmad3: yeah, anything would work, pack a gem will take a hash with values and spit out the files you need for client.
rdark has joined #ruby
<atmosx> hm, then a web interface to handle routing would be good too.
<workmad3> atmosx: well, I wasn't talking about vpn stuff, tbh
<atmosx> pf/iptables/ipfw rules, etc.
<atmosx> aaaaaaaaaah you were talking about openssl
<workmad3> yeah
<atmosx> well that would benefit nearly everyone too, given that it sucks so much
<atmosx> the syntax and all
<atmosx> anyway, gonna get something to eat! cya later
<workmad3> I've figured out the stuff I need to shell out for to turn a chef-node into a certificate authority that publishes certificates as node data
<workmad3> still need to sort it out so that it lets the client publish its own CSR for the certifcate and manage a revokation list though...
<workmad3> at some point I want/need to figure out an openvpn setup managed by chef too though... so I'll probably investigate that at some point :)
knut has joined #ruby
josephndenton has quit [Ping timeout: 240 seconds]
<certainty> workmad3: nifty, but that way you don't have control over the certificates, do you? i mean in the pki sense
ta_ has joined #ruby
plashchynski has joined #ruby
<workmad3> certainty: would need to double-check... but I think it fits the idea in a PKI sense
FooMunki has joined #ruby
<certainty> workmad3: depends how you actually did it, but that sounds as if ops that are allowed to apply chef recipes are also allowed to generate certificates
<certainty> which would otherwise probably be a seperate role
<certainty> but i know too little about that stuff, so don't take me too serious
Takle has quit [Remote host closed the connection]
CamonZ has joined #ruby
<workmad3> certainty: not quite... it would only be an op that has access to the central CA server that would be able to generate certificates... nodes would only be able to generate a CSR... so very much along the lines of a normal CA
ypasmk has joined #ruby
<workmad3> certainty: the validation checks may be a little looser... but at the same time, the node needs to have the validation pem to connect to the server initially to get the info to generate and publish a CSR and make the server aware of it, so maybe not
<certainty> workmad3: ok, that's nifty
joonty has quit [Quit: joonty]
andikr has quit [Remote host closed the connection]
<apeiros_> anybody got the link to ruby resources for websites? like ruby logo etc.?
<workmad3> certainty: I use that to generate SSL certs for our internal server communications :)
<workmad3> certainty: and then startssl for our outward-facing certs
ypasmk has quit [Client Quit]
joonty has joined #ruby
Aova has quit [Read error: Connection reset by peer]
ypasmk has joined #ruby
St_Marx has quit [Ping timeout: 250 seconds]
Timgauthier has quit [Read error: Connection reset by peer]
Timgauthier has joined #ruby
St_Marx has joined #ruby
<certainty> apeiros_: the ruby logo kit is available on ruby-lang.org but i think you mean something else?
qdaupx has joined #ruby
<apeiros_> was just writing that I found the logo kit :D
<apeiros_> I think that's actually sufficient
borel has quit [Ping timeout: 264 seconds]
konsolebox has quit [Read error: Connection reset by peer]
knut has quit [Ping timeout: 252 seconds]
EvanFreeman has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 245 seconds]
Aova has joined #ruby
elabs-developer has joined #ruby
vt102 has joined #ruby
djbkd has joined #ruby
yfeldblum has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
plashchynski has quit [Quit: plashchynski]
plashchynski has joined #ruby
dimaursu16 has quit [Ping timeout: 246 seconds]
dspangenberg has joined #ruby
djbkd has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
agrinb has joined #ruby
psy_ has quit [Read error: Connection reset by peer]
crazydiamond has quit [Ping timeout: 276 seconds]
dspangenberg has quit [Ping timeout: 245 seconds]
psy_ has joined #ruby
avril14th has quit [Remote host closed the connection]
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
shum has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
roshanavand has joined #ruby
shazaum has joined #ruby
AlexRussia has joined #ruby
knut has joined #ruby
konsolebox has joined #ruby
dblessing has joined #ruby
<quazimodo> so
<quazimodo> making a long story short
freerobby has joined #ruby
siso has quit [Quit: siso]
<quazimodo> i know an app that creates an api_key, an api_secret, and an auth_token
<quazimodo> then it takes these 3 and saves them in the database
<quazimodo> then it displays all 3 to the user
<quazimodo> then it allows you to auth using the api_key + api_secret, or the auth_token
<bzeu> What is nil used for?
<quazimodo> bzeu: as a value that means nothing
colli5ion has quit []
<quazimodo> and, by crappy programmers, for when they don't know how to raise exceptions or return a more 'sane' value
<quazimodo> it's not a good idea to actually go and use nil for everything, try to raise exceptions or to use a null value object, a particularly useful programming pattern
dimaursu16 has joined #ruby
knut has quit [Ping timeout: 256 seconds]
yeticry has quit [Ping timeout: 240 seconds]
shum has quit [Quit: WeeChat 1.1.1]
yeticry has joined #ruby
jimms has quit [Remote host closed the connection]
shum has joined #ruby
<bzeu> Why use to_i if you can assign integers directly..
VBlizzard has joined #ruby
<quazimodo> ?
konsolebox has quit [Read error: Connection reset by peer]
Takle has joined #ruby
<quazimodo> to_i converts things to integer
shum has quit [Client Quit]
<bzeu> is there anything like to_s or to_c?
thsig has joined #ruby
<quazimodo> every time someone wants to learn on OO language I kinda wanna make them go learn a functional language first
<bzeu> for string/character?
shum has joined #ruby
<quazimodo> probably, ruby's very consistent
<bzeu> quazimodo: I'm C/C++ developer
thsig has quit [Remote host closed the connection]
<quazimodo> neither of those are functional
ta_ has quit [Ping timeout: 276 seconds]
<bzeu> C is
<quazimodo> no, c is very much imperative
<quazimodo> c defines imperative
troubadour has joined #ruby
<bzeu> What?
blizzy has quit [Ping timeout: 264 seconds]
<quazimodo> bzeu: try haskell, you'll see what i mean :)
<quazimodo> c has functions, but it's not a functional language in the least :)
Timgauthier has quit [Max SendQ exceeded]
<bzeu> I have done haskell aswell, math student :)
ta_ has joined #ruby
cpt_yossarian has quit [Ping timeout: 246 seconds]
colli5ion has joined #ruby
<quazimodo> ok, then you know C isn't functional :/
<quazimodo> (what???)
<quazimodo> lol
shum has quit [Client Quit]
shum has joined #ruby
freerobby has quit [Quit: Leaving.]
abuzze_ has quit [Remote host closed the connection]
<bzeu> quazimodo: I misunderstood what you meant
<quazimodo> lol
<quazimodo> that's cool
pallavsharma_ps has quit [Read error: Connection reset by peer]
hgl has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
shime_ has quit [Read error: Connection reset by peer]
spider-mario has joined #ruby
knut has joined #ruby
shime has joined #ruby
beef-wellington has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krz has quit [Quit: WeeChat 1.0.1]
abuzze has joined #ruby
hgl has joined #ruby
yeticry has quit [Ping timeout: 256 seconds]
ponga has quit [Quit: Leaving...]
bal has joined #ruby
yeticry has joined #ruby
ta_ has quit [Ping timeout: 256 seconds]
Takle_ has joined #ruby
MrSamuel has joined #ruby
Takle has quit [Ping timeout: 276 seconds]
sambao21 has joined #ruby
konsolebox has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
Takle has joined #ruby
shum has joined #ruby
shum has quit [Client Quit]
pika_pika has joined #ruby
Timgauthier has joined #ruby
shum has joined #ruby
abuzze has quit [Remote host closed the connection]
knut has quit [Ping timeout: 272 seconds]
Takle_ has quit [Ping timeout: 276 seconds]
metadave has joined #ruby
pallavsharma_ps has joined #ruby
aclearman037 has joined #ruby
abuzze has joined #ruby
livathin_ has joined #ruby
ta_ has joined #ruby
senayar_ has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
sevenseacat has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
livathinos has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
knut has joined #ruby
Sakens has quit [Ping timeout: 272 seconds]
ta_ has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
antgel has quit [Ping timeout: 246 seconds]
yeticry has quit [Ping timeout: 256 seconds]
Aova has quit [Read error: Connection reset by peer]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
yeticry has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
jimms has joined #ruby
keiserr has quit [Quit: Leaving]
arya_ching has joined #ruby
quazimodo has quit [Ping timeout: 256 seconds]
ta_ has joined #ruby
sankaber has joined #ruby
Aova has joined #ruby
nfk has joined #ruby
pallavsharma_ps has quit [Ping timeout: 264 seconds]
shum has quit [Quit: WeeChat 1.1.1]
pontiki has quit [Quit: off to work]
Timgauthier is now known as timgauthier_away
shum has joined #ruby
agrinb has joined #ruby
maximski has joined #ruby
livathin_ has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
jerematic has joined #ruby
yfeldblum has joined #ruby
livathinos has joined #ruby
asmodlol has quit [Ping timeout: 276 seconds]
agrinb has quit [Ping timeout: 272 seconds]
dspangenberg has joined #ruby
sent1nel has joined #ruby
nrsk has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
MrSamuel has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
ta_ has joined #ruby
waynerade has joined #ruby
pdoherty has joined #ruby
paradoja has joined #ruby
chthon has joined #ruby
quarcu has joined #ruby
dspangenberg has quit [Ping timeout: 264 seconds]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sent1nel has quit [Ping timeout: 276 seconds]
PrimeCl0ver has quit [Quit: Leaving]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
abuzze has quit [Remote host closed the connection]
pallavsharma_ps has joined #ruby
paulfm has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
paradoja has left #ruby [#ruby]
<hs366> what does this part of code means in ruby ? foo[:a] = request[:a] if request[:a]
pdoherty has quit [Ping timeout: 255 seconds]
shadeslayer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
grzesieq has joined #ruby
<tobiasvl> it sets foo[:a] to request[:a] if request[:a] is not falsey, ie. if it's not nil or undefined
<tobiasvl> not sure how much ruby you know but foo and request are likely Hash and :a is a symbol used as a Hash key…
<hs366> i know hash
abuzze has joined #ruby
abuzze has quit [Remote host closed the connection]
<hs366> k => v
<tobiasvl> yes
<hs366> great
<hs366> thx
abuzze has joined #ruby
abuzze has quit [Remote host closed the connection]
_2_krissy has joined #ruby
abuzze has joined #ruby
Timgauthier has joined #ruby
quimrstorres has quit [Remote host closed the connection]
pu22l3r_ has quit [Ping timeout: 244 seconds]
jimms has quit [Remote host closed the connection]
ta_ has joined #ruby
hiyosi has joined #ruby
Guest31 has joined #ruby
pkrzywicki has quit [Ping timeout: 255 seconds]
spyderman4g63 has joined #ruby
pkrzywicki has joined #ruby
knut has quit [Ping timeout: 264 seconds]
atomical has joined #ruby
avril14th has joined #ruby
<hs366> in this case options[:name] = request[:name] if request[:name] can i say, if i have valid and defined name, it will set it as an array to option ?
kaspertidemann has joined #ruby
<avril14th> morning
<hs366> evening avril14th
<oddmunds> tobiasvl: request[:a] is also falsey if it is false
josephndenton has joined #ruby
<tobiasvl> haha. true
<tobiasvl> hs366: set it as an array to option? what does that mean?
<hs366> here is the code
fmcgeough has joined #ruby
<tobiasvl> well the code is straight forward, I'm just wondering what you mean. there are no arrays there
jerematic has quit []
<hs366> or line 44 and 45
<oddmunds> hs366: it will set options[:name] to whatever request[:name] is (as long as it is not falsey)
bzeu has quit [Ping timeout: 240 seconds]
<hs366> i c
gdd229 has joined #ruby
<hs366> thx !
<oddmunds> np
ta_ has quit [Ping timeout: 276 seconds]
triple_b has joined #ruby
krz has joined #ruby
_2_krissy has quit [Remote host closed the connection]
ta_ has joined #ruby
ght_ has quit [Ping timeout: 256 seconds]
josephndenton has quit [Ping timeout: 276 seconds]
eregon has quit [Ping timeout: 244 seconds]
arup_r has quit [Remote host closed the connection]
quazimodo has joined #ruby
maximski has quit []
eregon has joined #ruby
shime has quit [Remote host closed the connection]
brb3 has joined #ruby
craigp has quit []
EvanFreeman has joined #ruby
gdd229 has quit [Quit: Leaving.]
jerematic has joined #ruby
ght has joined #ruby
DaniG2k has joined #ruby
konsolebox has quit [Ping timeout: 246 seconds]
shadeslayer has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
EvanFreeman has quit [Ping timeout: 244 seconds]
tier has joined #ruby
tier has quit [Read error: Connection reset by peer]
posixpascal has joined #ruby
AlexRussia has joined #ruby
tier has joined #ruby
tier_ has joined #ruby
codehotter has quit [Ping timeout: 252 seconds]
joonty has quit [Quit: joonty]
aclearma_ has joined #ruby
zwer has joined #ruby
maximski has joined #ruby
knut has joined #ruby
andikr has joined #ruby
it0a has joined #ruby
zenith_ has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
aclearman037 has quit [Ping timeout: 256 seconds]
tier has quit [Ping timeout: 272 seconds]
tiwillia has joined #ruby
djbkd has joined #ruby
ta_ has joined #ruby
lessless has joined #ruby
dEPy has joined #ruby
bronson has joined #ruby
timanema has joined #ruby
kaspertidemann has quit []
agrinb has joined #ruby
knut has quit [Ping timeout: 246 seconds]
juanpablo__ has joined #ruby
Aova has quit [Read error: Connection reset by peer]
whoisjake has joined #ruby
adriancb has joined #ruby
djbkd has quit [Ping timeout: 252 seconds]
hgl has quit [Ping timeout: 252 seconds]
ta_ has quit [Ping timeout: 276 seconds]
bronson has quit [Ping timeout: 255 seconds]
ta_ has joined #ruby
JDiPierro has joined #ruby
hgl has joined #ruby
n008f4g_ has quit [Ping timeout: 246 seconds]
ixti has joined #ruby
DaniG2k has quit [Ping timeout: 256 seconds]
lxsameer has quit [Quit: Leaving]
jmcharnes has joined #ruby
Aova has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
porfa has joined #ruby
Parker0 has joined #ruby
pallavsharma_ps has quit [Ping timeout: 276 seconds]
avril14th has quit [Ping timeout: 276 seconds]
paulfm has quit [Read error: Connection reset by peer]
grzesieq has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
paulfm has joined #ruby
joonty has joined #ruby
sent1nel has joined #ruby
ta_ has joined #ruby
josephndenton has joined #ruby
knut has joined #ruby
iamjarvo has joined #ruby
aclearma_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
avril14th has joined #ruby
plashchynski has quit [Quit: plashchynski]
troulouliou_dev has quit [Quit: Leaving]
mrmargolis has joined #ruby
shime has joined #ruby
sent1nel has quit [Ping timeout: 276 seconds]
ta_ has quit [Ping timeout: 276 seconds]
aclearman037 has joined #ruby
fryguy9 has joined #ruby
MrSamuel has quit [Ping timeout: 245 seconds]
waynerade has quit [Ping timeout: 255 seconds]
quimrstorres has joined #ruby
x77686d has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
ypasmk has quit [Quit: ypasmk]
marr has quit [Ping timeout: 245 seconds]
danshultz has joined #ruby
shum1 has joined #ruby
last_staff has quit [Quit: last_staff]
dfinninger has joined #ruby
MrSamuel has joined #ruby
zB0hs has joined #ruby
maximski has quit [Ping timeout: 245 seconds]
Olipro has quit [Ping timeout: 245 seconds]
devdazed has joined #ruby
codehotter has joined #ruby
iLike has joined #ruby
delianides has joined #ruby
maximski has joined #ruby
livathinos has quit [Remote host closed the connection]
livathinos has joined #ruby
<guardian> what ruby book would you recommend for an experienced programmer?
plashchynski has joined #ruby
<apeiros_> guardian: "eloquent ruby" probably
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmolina has joined #ruby
zenith_ has quit [Ping timeout: 264 seconds]
metadave has quit [Ping timeout: 255 seconds]
seal has quit [Quit: Ex-Chat]
timonv_ has quit [Remote host closed the connection]
angryzor_ is now known as angryzor
AlexRussia has quit [Ping timeout: 246 seconds]
werelivinginthef has joined #ruby
codeurge has joined #ruby
n008f4g_ has joined #ruby
pdoherty has joined #ruby
ypasmk has joined #ruby
<ddv> guardian: experienced programmer or experienced ruby programmer?
dANOKELOFF has joined #ruby
Olipro has joined #ruby
enebo has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chinmay_dd has quit [Quit: Connection closed for inactivity]
leonshalimov has joined #ruby
timonv_ has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
ta_ has joined #ruby
mrmargolis has quit [Remote host closed the connection]
freezey has joined #ruby
freezey has quit [Remote host closed the connection]
oleo has joined #ruby
chthon has quit [Remote host closed the connection]
DaniG2k has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
centrx has joined #ruby
timonv_ has quit [Remote host closed the connection]
chthon has joined #ruby
ta_ has joined #ruby
cphrmky has joined #ruby
jerius has joined #ruby
<ypasmk> I have an array filled with true, false as strings [‘false’,’true’,’false’,’false’] I want to evaluate it like for example data.join(“ || “) and get true back or data.join(“ && “) and get false back …
<ypasmk> any idea how?
hanmac1 has joined #ruby
<apeiros_> ypasmk: two steps, map it to real booleans, then use inject
bal has quit [Quit: bal]
<zipkid> Can anyone help me understand why simplecov adds (some of) my test files in the coverage report?
xaxisx has joined #ruby
rvchangue has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 246 seconds]
lolmaus has quit [Quit: Konversation terminated!]
chinmay_dd has joined #ruby
bal has joined #ruby
timonv has joined #ruby
maximski has quit [Read error: Connection reset by peer]
rvchangue has joined #ruby
maximski has joined #ruby
<BuGo> ypasmk: in plain ruby or in RoR?
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<BuGo> Ah id actually doesnt matter
<BuGo> ['false','true','false','false'].all?{|it| it == 'true'}
<BuGo> any? for || operation
malcolmva has quit [Ping timeout: 245 seconds]
ych4k3r has joined #ruby
paulfm_ has joined #ruby
<waxjar> eval array.join(" && ")
<waxjar> muhahahaha
paulfm has quit [Ping timeout: 255 seconds]
<BuGo> waxjar: ['rm -rf /'] :D
Channel6 has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
<BuGo> thats how bumblbees are born...
Tuxero has quit [Quit: Tuxero]
<hanmac1> BuGo: or you can use Steam for that too
<ypasmk> apeiros_: inject doesn’t work with || or &&
yfeldblum has joined #ruby
Tuxero has joined #ruby
waynerade has joined #ruby
<BuGo> Offtopic - is there a clean way to see how many objects are being created for specifil line of code for example testing how many objects are being created by ['false','true','false','false'].all?{|it| it == 'true'}
<ericwood> >> ['false', 'true', 'false', 'false'].all? { |i| i == 'true' }
<eval-in_> ericwood => false (https://eval.in/269145)
snath has quit [Ping timeout: 265 seconds]
ta_ has joined #ruby
Aova has quit [Read error: Connection reset by peer]
Tuxero has quit [Remote host closed the connection]
Tuxero has joined #ruby
Timgauthier has joined #ruby
<BuGo> better way maybe would be any? { |it| it == 'false' } with early termination and sh...
jobewan has joined #ruby
<waxjar> BuGo, you can do GC.stat(:total_allocated_objects) before and after, then check the difference
dspangenberg has joined #ruby
tus has joined #ruby
<canton7> all?{ |x| x == 'true' } and any?{ |x| x == 'false' } will do the same number of iterations
<centrx> all? will still cut out if it finds a false
<canton7> yeah - all? cuts out if it finds a single element not fulfilling the criterion. any? cuts out as soon as it finds an element fulfilling the criterion
jimms has joined #ruby
paulfm_ has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 264 seconds]
<BuGo> oh yea... sorry
tobago has quit [Remote host closed the connection]
<ericwood> honestly I wouldn't worry too much about the perf of that
<ericwood> it's so innocuous, you've got better things to optimize
ta_ has quit [Ping timeout: 276 seconds]
<BuGo> waxjar ArgumentError: unknown key: total_allocated_objects
dspangenberg has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
* zipkid must be asking the wrong question.... :-(
djcp has joined #ruby
Aova has joined #ruby
pallavsharma_ps has joined #ruby
Timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
<BuGo> zipkid: well maybe something loads your test files so they are included :)
EvanFreeman has joined #ruby
<BuGo> what is their coverage ? 0 ?
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<BuGo> just check calller.join('\n') and see what loads these files if i understand your issue right
zenith_ has joined #ruby
malcolmva has joined #ruby
fantazo has joined #ruby
konsolebox has joined #ruby
lmickh has joined #ruby
<BuGo> :total_allocated_object < its singular :|
paulfm has joined #ruby
konsolebox has quit [Max SendQ exceeded]
anarang has quit [Quit: Leaving]
droidburgundy has joined #ruby
tagrudev has quit [Remote host closed the connection]
thumpba has joined #ruby
konsolebox has joined #ruby
ta_ has joined #ruby
gtrak has joined #ruby
rippa has joined #ruby
lightstalker has joined #ruby
rvchangue has quit [Ping timeout: 245 seconds]
einarj has quit [Remote host closed the connection]
lampd1 has joined #ruby
lampd1 has quit [Client Quit]
thumpba has quit [Read error: Connection reset by peer]
anarang has joined #ruby
Pharaoh2 has quit [Ping timeout: 272 seconds]
thumpba has joined #ruby
rvchangue has joined #ruby
mrmargolis has joined #ruby
sent1nel has joined #ruby
JimmyNeutron has quit [Ping timeout: 255 seconds]
Pharaoh2 has joined #ruby
sevenseacat has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 276 seconds]
zenith_ has quit [Ping timeout: 272 seconds]
timonv has quit [Ping timeout: 255 seconds]
Jackneill has joined #ruby
JimmyNeutron has joined #ruby
ypasmk has quit [Quit: ypasmk]
sent1nel has quit [Ping timeout: 272 seconds]
noop has quit [Ping timeout: 246 seconds]
SpinningWheels has quit [Read error: Connection reset by peer]
timonv has joined #ruby
_yinzer has joined #ruby
ta_ has joined #ruby
wald0 has quit [Ping timeout: 265 seconds]
crazydiamond has joined #ruby
josephnd1nton has joined #ruby
_yinzer has quit [Max SendQ exceeded]
hanmac1 has quit [Quit: Leaving.]
aagdbl has joined #ruby
maximski has quit [Ping timeout: 240 seconds]
maximski has joined #ruby
<waxjar> hmm, that's unfortunate BuGo. i looked the key up in the docs :/
tvw has quit []
AFKGeek has quit [Quit: Fades into the shadows]
ta_ has quit [Ping timeout: 276 seconds]
josephnd1nton has quit [Ping timeout: 264 seconds]
ta_ has joined #ruby
timanema has quit [Ping timeout: 264 seconds]
x77686d has quit [Quit: x77686d]
shazaum has quit [Ping timeout: 272 seconds]
<zipkid> BuGo: their coverage is 100% ....
anarang has quit [Quit: Leaving]
<centrx> >> (0.99 + 1.10) / 2
<eval-in_> centrx => 1.045 (https://eval.in/269209)
ta_ has quit [Ping timeout: 265 seconds]
keen__________47 has joined #ruby
<zipkid> BuGo: i'm using bundle exec rake test...
hs366 has quit [Quit: Leaving]
icedp has joined #ruby
icedp has joined #ruby
keen__________46 has quit [Ping timeout: 252 seconds]
icedp has quit [Remote host closed the connection]
jhass has quit [Quit: Bye]
<apeiros_> 16:13 ypasmk: apeiros_: inject doesn’t work with || or &&
<apeiros_> oh, he's gone
<apeiros_> of course it's nonsense. of course inject works with || and &&
swgillespie has joined #ruby
shazaum has joined #ruby
paulfm has quit [Read error: Connection reset by peer]
senayar_ has quit [Remote host closed the connection]
fgo has quit [Read error: No route to host]
uptownhr has joined #ruby
oleo has quit [Remote host closed the connection]
<BuGo> zipkid: well you are calling this code so natural its included in coverage report. There is a way to configure simplecov to exclude certain files/paths from report tho but you will have to find it yourself
Morkel has quit [Quit: Morkel]
jhass has joined #ruby
bal has quit [Quit: bal]
uptownhr has quit [Read error: Connection reset by peer]
<zipkid> BuGo: thx for the hint :-)
bronson has joined #ruby
oleo has joined #ruby
oleo has quit [Changing host]
oleo has joined #ruby
uptownhr has joined #ruby
nanoyak has joined #ruby
cpt_yossarian has joined #ruby
ta_ has joined #ruby
djbkd has joined #ruby
bootstrappm has joined #ruby
arup_r has joined #ruby
paulfm has joined #ruby
apeiros_ has joined #ruby
fryguy9 has quit [Quit: Leaving.]
fryguy9 has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
ursooperduper has joined #ruby
senayar has joined #ruby
kwd has quit [Quit: kwd]
sent1nel has joined #ruby
snath has joined #ruby
kwd has joined #ruby
kwd has quit [Client Quit]
willgorman is now known as willgorman|away
djbkd has quit [Ping timeout: 255 seconds]
JayOvarb has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 244 seconds]
sent1nel has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
dumdedum has quit [Quit: foo]
thiagovsk has joined #ruby
aagdbl0 has joined #ruby
gbonfant has joined #ruby
tier_ has quit [Remote host closed the connection]
uptownhr has quit [Ping timeout: 240 seconds]
troubadour has quit [Ping timeout: 240 seconds]
uptownhr has joined #ruby
aagdbl has quit [Ping timeout: 255 seconds]
dANOKELOFF has quit [Quit: Quitte]
dspangenberg has joined #ruby
Pharaoh2 has quit [Ping timeout: 245 seconds]
nobitanobi has joined #ruby
cajone has quit [Remote host closed the connection]
chthon has quit [Ping timeout: 245 seconds]
Pharaoh2 has joined #ruby
iLike has quit [Read error: Connection reset by peer]
wald0 has joined #ruby
aagdbl0 has quit [Quit: This computer has gone to sleep]
thumpba has quit [Remote host closed the connection]
cajone has joined #ruby
waynerade has quit [Quit: WeeChat 1.1]
waynerade has joined #ruby
Aova has quit [Read error: Connection reset by peer]
crueber has joined #ruby
tier has joined #ruby
rvchangue has quit [Ping timeout: 240 seconds]
JayOvarb has quit [Quit: Page closed]
shellfu has joined #ruby
<gregf_> hi, does Ruby have any good REST framework? (i'm doing a POC and based on this we choose if we go with ruby or python(which looks hopeless atm) )
rvchangue has joined #ruby
OrbitalKitten has joined #ruby
rvchangue has quit [Changing host]
rvchangue has joined #ruby
<gregf_> i mean an MVC REST framework
aswen has quit [Ping timeout: 245 seconds]
<cphrmky> Rails bro
<gregf_> oh really?
fabrice31 has joined #ruby
<gregf_> Django does not seem to have. django-rest looks awful?
<cphrmky> yes
pu22l3r has joined #ruby
<gregf_> cphrmky: you mean RoR provides me with boilerplate code for REST controllers etc etc?
nanoyak has quit [Quit: Computer has gone to sleep.]
Aova has joined #ruby
livathin_ has joined #ruby
livathin_ has quit [Remote host closed the connection]
<jhass> there's also stuff like rails-api
<centrx> gregf_, in a manner of speaking, it minimizes the boilerplate that has to be written at all
astrobunny has joined #ruby
sudog has quit [Ping timeout: 272 seconds]
<cphrmky> gregf_ http://bit.ly/1cnqAsd
supergiel has joined #ruby
plashchynski has quit [Quit: plashchynski]
<gregf_> jhass: ok, i'll take a look at rails-api as well. i'm hoping i get auth/authorization plugins as well
Megtastique has joined #ruby
<jhass> gregf_: https://www.ruby-toolbox.com/categories/API_Builders might be worth looking through
cphrmky has quit [Quit: Textual IRC Client: www.textualapp.com]
sambao21 has quit [Quit: Computer has gone to sleep.]
<gregf_> cphrmky++
shum has quit [Quit: WeeChat 1.1.1]
<gregf_> oh he's left ;). btw, for helping me howto google ;)
shum has joined #ruby
<gregf_> centrx: thats because i dont think Django has anything like REST controllers
plashchynski has joined #ruby
havenwood has joined #ruby
konsolebox has joined #ruby
<gregf_> Perl, Catalyst has and if my boss would allow i would've used it :/. but its python or ruby. python to be specific
fabrice31 has quit [Ping timeout: 272 seconds]
livathinos has quit [Ping timeout: 255 seconds]
<gregf_> jhass: thanks
<centrx> Ruby is a better choice as language, but there might be fewer experienced developers at your company
<gregf_> just dev ops. i'm the only dev that writes ruby code :/
jhass has quit [Quit: Bye]
iamninja has quit [Ping timeout: 250 seconds]
jhass has joined #ruby
thumpba has joined #ruby
msgodf has quit [Ping timeout: 246 seconds]
jerius has quit []
plashchynski has quit [Quit: plashchynski]
iamninja has joined #ruby
aganov has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 264 seconds]
<DaniG2k> hello guys
<DaniG2k> I have a call this afternoon with a recruiter looking for a devops guy
thumpba has quit [Remote host closed the connection]
blackmesa has joined #ruby
xaxisx has quit [Quit: xaxisx]
<DaniG2k> can someone give me an idea of what skills devops recruiters are looking for?
sambao21 has joined #ruby
<DaniG2k> I'm currently a ruby/rails enthusiast and junior sys-admin
<DaniG2k> do you think that's enough?
xaxisx has joined #ruby
<centrx> it covers the ground
<centrx> network administration is another area of IT of course
<terrellt> Ruby helps. Important is experience with system installs, managing updates, using tools like Puppet/Chef/Ansible, configuring CI environments, network setup, yada yada.
<havenwood> DaniG2k: Are you familiar at all with Chef, Puppet, Ansible or SaltStack?
thumpba has joined #ruby
<DaniG2k> I am going through some Puppet training but I don't have extensive experience with it
Megtastique has quit [Ping timeout: 240 seconds]
<DaniG2k> but I see it's like a glorified hash with a master that controlls all the workers
<DaniG2k> and I'm quite familiar with linux systems
<DaniG2k> networking not so much
<DaniG2k> i know the basics of firewalls, iptables
<DaniG2k> i use nginx/openresty
mloveless has joined #ruby
SixiS has quit [Quit: SixiS]
<terrellt> To be perfectly honest then, only if you're coming in as a junior-level devops with a significant amount of on-site training being available.
siaw has joined #ruby
<DaniG2k> hmm ok
<DaniG2k> yeah thats what I thought
andikr has quit [Remote host closed the connection]
<DaniG2k> I probably need more training in Puppet/Chef
xaxisx has quit [Client Quit]
<DaniG2k> to be convincing
<DaniG2k> terrellt: are you a devops engineer?
Megtastique has joined #ruby
<terrellt> Nope. I've just done enough of it to know what I'd want.
gsd has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<DaniG2k> terrellt: got it
chrishough has joined #ruby
Pharaoh2 has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
danjordan has quit [Quit: danjordan]
timonv has quit [Quit: WeeChat 1.1.1]
apeiros_ has joined #ruby
Pharaoh2 has joined #ruby
dmolina has quit [Ping timeout: 264 seconds]
konsolebox has quit [Remote host closed the connection]
thumpba_ has joined #ruby
JDiPierro has joined #ruby
timonv_ has joined #ruby
uptownhr has quit [Quit: uptownhr]
knut has quit [Quit: Verlassend]
thumpba has quit [Ping timeout: 264 seconds]
GaryOak_ has joined #ruby
shum1 has quit [Quit: WeeChat 1.1.1]
CustosL1men has quit [Ping timeout: 256 seconds]
Xeago has quit [Remote host closed the connection]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quimrstorres has quit [Remote host closed the connection]
n1lo has joined #ruby
adamjleonard has joined #ruby
klmlfl has joined #ruby
graft is now known as Guest94125
elabs-developer has quit [Quit: elabs-developer]
crazydiamond has quit [Ping timeout: 245 seconds]
shum1 has joined #ruby
ta_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
godd2 has joined #ruby
timonv has joined #ruby
thumpba has joined #ruby
einarj has joined #ruby
leonshalimov has quit [Ping timeout: 265 seconds]
josephnd1nton has joined #ruby
dspangenberg has quit [Ping timeout: 256 seconds]
ta_ has quit [Ping timeout: 276 seconds]
antgel has joined #ruby
niko has quit [Ping timeout: 619 seconds]
thumpba__ has joined #ruby
d10n-work has joined #ruby
thumpba_ has quit [Ping timeout: 244 seconds]
<klmlfl> I made a Slack team for Rails devs / beginners who want to share information, pair program: https://rails-fb.herokuapp.com/
<klmlfl> I started it two days ago and there are over 75 members already :)
scripore has joined #ruby
adamjleonard has quit [Quit: Leaving...]
thumpba has quit [Ping timeout: 245 seconds]
<centrx> neato
niko has joined #ruby
josephnd1nton has quit [Ping timeout: 240 seconds]
chthon has joined #ruby
senayar has quit [Ping timeout: 256 seconds]
nb_bez___ has joined #ruby
kenneth has joined #ruby
plashchynski has joined #ruby
multi_io_ has joined #ruby
Grumelo has joined #ruby
joonty has quit [Quit: joonty]
gsd has quit [Ping timeout: 240 seconds]
athan has quit [Read error: Connection reset by peer]
senayar has joined #ruby
yfeldblum has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
antgel has quit [Ping timeout: 246 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
astrobunny has joined #ruby
gsd has joined #ruby
spider-mario has quit [Ping timeout: 244 seconds]
multi_io has quit [Ping timeout: 264 seconds]
Zai00 has quit [Quit: Zai00]
SixiS has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
<apeiros_> arup_r: you forgot to splat in the constructor.
<arup_r> Yes yes
<arup_r> thanks
<arup_r> ohh... i=one more issue
<arup_r> it is giving only one diagoanl value
<arup_r> how to get both ?
yfeldblum has quit [Ping timeout: 244 seconds]
tier has quit [Remote host closed the connection]
pandaant has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
DaniG2k has quit [Quit: leaving]
sambao21 has joined #ruby
wallerdev has joined #ruby
uptownhr has joined #ruby
stunder has joined #ruby
sent1nel has joined #ruby
<canton7> because 2, 4, 6 isn't a matrix diagonal :P
Channel6 has quit [Quit: Leaving]
nobitanobi has quit [Remote host closed the connection]
<centrx> arup_r, it's probably the diagonal of the inverse or something
shime has quit [Read error: Connection reset by peer]
niko has quit [Ping timeout: 624 seconds]
uptownhr has quit [Client Quit]
rippa has quit [Ping timeout: 245 seconds]
<arup_r> ok
shum has quit [Client Quit]
shum has joined #ruby
xaxisx has joined #ruby
patric100e99 has quit [Ping timeout: 256 seconds]
<arup_r> inverse didn't work
astrobunny has quit [Remote host closed the connection]
<arup_r> thrwoing error
wald0 has quit [Quit: Lost terminal]
willgorman|away is now known as willgorman
wald0 has joined #ruby
shum has quit [Client Quit]
shum has joined #ruby
bronson has joined #ruby
zz_thatslifeson is now known as thatslifeson
shum has quit [Client Quit]
Aova has quit [Read error: Connection reset by peer]
shum has joined #ruby
<mikecmpbll> not come across the matrix stdlib before.
Guest31 has quit [Quit: Textual IRC Client: www.textualapp.com]
shum has quit [Client Quit]
shum has joined #ruby
tesuji has quit [Ping timeout: 265 seconds]
shum has quit [Client Quit]
shum has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dEPy has quit [Quit: (null)]
Xeago has joined #ruby
<arup_r> mikecmpbll: :)
sent1nel has quit [Remote host closed the connection]
deol has joined #ruby
<mikecmpbll> tbf there's loads of stdlib stuff i've never used.
leonshalimov has joined #ruby
<centrx> arup_r, ok it's the transpose probably not the inverse
bronson has quit [Read error: Connection reset by peer]
<mikecmpbll> i should make a point of looking through it all one day
Xeago_ has joined #ruby
bronson has joined #ruby
<centrx> arup_r, or not
skinux has joined #ruby
<skinux> Having a problem with CHRuby: https://gist.github.com/skinuxgeek/95c65d41b2173c9b5c8e
msgodf has joined #ruby
thumpba has joined #ruby
thumpba__ has quit [Ping timeout: 264 seconds]
<havenwood> skinux: what's the full command you're running?
<havenwood> skinux: what shell?
<apeiros_> best markdown parser?
<skinux> bash shell, ./chruby
niko has joined #ruby
<mikecmpbll> arup_r: you'll have to construct a new matrix by the looks of it.
Aova has joined #ruby
timmmaaaayyy has left #ruby ["Textual IRC Client: www.textualapp.com"]
withnale_ has quit [Ping timeout: 255 seconds]
thumpba_ has joined #ruby
sent1nel has joined #ruby
Xeago has quit [Ping timeout: 244 seconds]
maletor has joined #ruby
knut has joined #ruby
Xeago_ has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 276 seconds]
bricker has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
<apeiros_> speaking of matrix stdlib - just skimmed a source file of the old ruby pro website which uses it :D
thumpba has quit [Ping timeout: 255 seconds]
<havenwood> skinux: Hop over to the #chruby channel?
senayar has quit []
Hobogrammer has joined #ruby
<mikecmpbll> >> require 'matrix'; m = Matrix[[1,2],[3,4]]; Matrix.rows(m.to_a.map(&:reverse)).each(:diagonal).to_a.inspect
<eval-in_> mikecmpbll => "[2, 3]" (https://eval.in/269345)
agrinb has quit [Remote host closed the connection]
<mikecmpbll> :d
ta_ has joined #ruby
agrinb has joined #ruby
<mikecmpbll> apeiros_: i don't even know what you'd use matrices for.
<workmad3> mikecmpbll: linear algebra
<mikecmpbll> doing maths and stuff, right.
<mikecmpbll> ah okay.
<apeiros_> couple of things. in ruby-pro, it was a variant of googles pagerank
<workmad3> mikecmpbll: transformations and the like
agrinb_ has joined #ruby
<workmad3> but you can do plenty of other stuff with matrices too :)
<mikecmpbll> i have vague recollections of them from a-level maths :p
<workmad3> (just look at matlab)
<mikecmpbll> and matlab, yeah ..
asmodlol has joined #ruby
<workmad3> mikecmpbll: yeah, a-level maths was shitty if you wanted to know anything about matrices :P
<apeiros_> in gaming you'd use matrices to calculate all kinds of transformations (scale, rotate, translate)
<workmad3> ^^
<knut> Hey guys, I'm trying to read binary data with SerialPort, using the readpartial method. It seems that readpartial throws an EOF error, when reading a byte with value 0, which is normal data too. Any suggestions how to avoid this?
<apeiros_> nice thing is - you can do all those transformations in one go
agrinb_ has quit [Remote host closed the connection]
<mikecmpbll> i did a computer graphics module at uni and they used 'em iirc
<mikecmpbll> but i failed that one, so
<mikecmpbll> that says it all really.
<knut> The problem is I don't know how much data will arrive, so I want to use readpartial, which blocks until any data is readable. But 0-bytes are also acceptable
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<workmad3> apeiros_: rotations can be a little problematic if you work purely in matrices... but otherwise yeah :)
bronson has joined #ruby
<workmad3> apeiros_: if you use affine co-ordinates, you can combine all your transformations using just matrix multiplication too :)
<apeiros_> workmad3: sure? I didn't do much, but I didn't notice any problem? only specific cases?
chthon has quit [Ping timeout: 264 seconds]
klmlfl has left #ruby [#ruby]
<workmad3> apeiros_: it's not a problem for any specific rotation, but it's problematic if you want to smoothly transition from 1 rotation to another
<workmad3> apeiros_: you can get into problems with gimbal lock, and it's difficult to work out the interpolation when dealing just with matrices
noop has joined #ruby
klmlfl has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
<apeiros_> I'd love to pretend I understand what you're talking about :D
<workmad3> apeiros_: but that's not too problematic though, as you can turn the start and the end into quaternions, which do sensibly interpolate, and turn the result back into a single rotation matrix again :)
agrinb has quit [Ping timeout: 272 seconds]
<mikecmpbll> ah, the ol' gimbal lock.
<mikecmpbll> bain of apeiros_'s life.
<apeiros_> I'll just accept that you have more experience with that and that there are problems
<mikecmpbll> bane*
<workmad3> apeiros_: gimbal lock is when one of your axes lines up with another during a rotation, and you lose a degree of freedom ;)
<epitron> yield returns the value of the block
<epitron> oops, i was scrolled back
<banister> workmad3 is it quaternions that avoid that? or am i confusing it with something else?
<epitron> :D
<workmad3> banister: yes... as already said :P
<epitron> QUATERNIONS
<banister> oh i didn't read sorry bb
<workmad3> banister: but yeah... I think all problems should be solved by simply translating them into spherical interpolation on a 4-dimensional complex hypersphere :)
<banister> epitron quaternions are exciting, aren't they? i once tried to understand them but they were too subtle for me.
waynerade has quit [Remote host closed the connection]
colli5ion has quit []
raphaelss has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
roolo has quit [Remote host closed the connection]
<epitron> meee tooo
<epitron> well, i got the general idea i think
<banister> workmad3 lol, hvae you seen fractals made with quaternions? :)
<epitron> rotation without gimball lock
<epitron> some euler-based math
roolo has joined #ruby
<epitron> 4d vectors
<epitron> didn't really grok why/how they worked though
dc has quit [Remote host closed the connection]
<workmad3> banister: I find it kinda interesting that for the 2d case, you can represent rotations with a complex number... but for the 3d case, you can't use a complex number with only 3 values... you need to have a complex number with 4 values (1 real and 3 imaginary components)
tkuchiki has quit [Remote host closed the connection]
<banister> workmad3 ya, that's what did hamilton's head in too
<banister> workmad3 he was trying to make a 3d version of complex numbers, but couldn't, then he went up to 4D and everything worked
uptownhr has joined #ruby
tkuchiki has joined #ruby
wallerdev has quit [Quit: wallerdev]
<workmad3> epitron: it's not really a 4d vector, in the same way that a complex number isn't really a 2d vector
mikecmpbll has quit [Ping timeout: 252 seconds]
<epitron> workmad3: it's not a spatial dimension, but it's a dimension :)
<epitron> it's a number dimension
<workmad3> epitron: complex numbers are regarded as single-dimensional in most cases ;)
<epitron> and yet we always plot them in 2d
<banister> nerd fight
shellfu has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
rippa has joined #ruby
<workmad3> epitron: regarding them as 2 dimensions makes the two parts of the complex number seem separate, when it's fundamentally a single number
<epitron> a single number that cannot be computed
<workmad3> epitron: admittedly, some operations on complex numbers (namely complex conjugation) do treat it as a 2d value in some sense
roolo has quit [Ping timeout: 256 seconds]
<godd2> epitron what do you mean "cannot be computed"
<epitron> and in some sense a 2D spatial coordinate is fundamentally a single point in space
<godd2> 2 + i is the computed result
tkuchiki has quit [Ping timeout: 265 seconds]
Hobogrammer has quit [Ping timeout: 265 seconds]
<godd2> or do you mean "cannot be computed as a unique real number"
shellfu has joined #ruby
<workmad3> well yeah, you can't compute it as a real number... in the same way that you can't compute all real numbers as integers...
<workmad3> different number system
<godd2> but the set of complex numbers are closed over all the operations just like real numbers are
<godd2> workmad3 one difference there is that integers aren't closed over division
<workmad3> godd2: heh :) how about rationals?
<godd2> yes, rationals are a field :P
Ankhers has joined #ruby
<workmad3> godd2: ok, s/integers/rationals ;)
<workmad3> the comparison still works :)
dspangenberg has joined #ruby
<godd2> i agree. and an interesting tidbit of history is that it used to be believed that irrational numbers didn't exist. only the rationals did
phoo1234567 has joined #ruby
timanema has joined #ruby
<eam> numbers don't exist, they're just a concept
<godd2> 2edgy4me
<workmad3> eam: you'd probably need to take that one up with quantum physicists
<eam> zero is about as real as a unicorn. Such a thing has never existed by definition
phoo1234567 has quit [Max SendQ exceeded]
<epitron> eam: unless you think of zero as the absence of something
<epitron> "this room contains 0 cows"
pdoherty has quit [Remote host closed the connection]
<eam> epitron: it also contains zero unicorns
vakor has joined #ruby
<godd2> eam then zero unicorns exist, no?
<workmad3> eam: electric charge has a real concept of 0 ;)
<eam> or any other imaginary thing which doesn't exist :)
phoo1234567 has joined #ruby
<klmlfl> Numbers don't exist in and of themselves. But things exists in numbers.
<epitron> eam: well, sure... you can apply it to imaginary units
<havenwood> To have zero of something does the something have to exist?
<klmlfl> you can have 2 cows (1 brown and 1 black)
spyderma_ has joined #ruby
<epitron> havenwood: i don't think so :)
<epitron> there are 0 <any nonexistent thing> in the universe
standingcloud has joined #ruby
whoisjake has quit []
<havenwood> epitron: So I have an infinite amount of zero things!
<epitron> YEPP
<godd2> epitron well duh, only existent things exist
<epitron> well, infinity minus <all things that exist>
<epitron> which is "still infinity" according to some
<havenwood> One of many infinities.
leafybasil has quit [Remote host closed the connection]
<klmlfl> this conversation belongs in #philosophy or #math lol
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3> eam: the electric charge of a neutron is 0... the electric charge of an electron is -1 (and it makes sense to think of that as a 'pure number' in some sense, as it currently appears it can't be made smaller in any meaningful sense that has an independent existance)
ursooperduper has quit [Quit: Textual IRC Client: www.textualapp.com]
spyderma_ has quit [Read error: Connection reset by peer]
spyderma_ has joined #ruby
<banister> workmad3 would have been better if they decided charge of electron is +1
<banister> so stupid to make it negative
<eam> such arbitrary and imaginary concepts
<workmad3> banister: then the electric charge of a proton would be -1
spyderman4g63 has quit [Read error: Connection reset by peer]
<godd2> klmlfl here's a fun article to read through: http://plato.stanford.edu/entries/computer-science/
<workmad3> banister: doesn't really make much difference
timanema has quit [Ping timeout: 244 seconds]
<havenwood> klmlfl: 0.upto(Float::INFINITY).lazy &:unicorns
<klmlfl> thanks
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3> eam: what's an arbitrary and imaginary concept? the charge of an electron?
<godd2> well eam I'd say that either numbers dont exist, and therefore any reasoning about them is irrelevant, or they do, and reasoning about them in the way we do is valid. So if they don't exist, it wouldn't matter that we're wasting time.
<banister> workmad3 ya, it does, cos the current situation is counter-intuitive. When you ADD an electron to an atom you make the charge -1, lul. If they had decided electrons had +1 charge, then adding more electrons would INCREASE the total positive charge of the atom rather than making it negative, which is silly
SixiS has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<epitron> banister: did you ever read about how that -1 thing came about?
<eam> workmad3: Baudrillard would say that numbers are merely a simulacra which hides reality
<banister> epitron yeah i read it somewhere, it was based on a misunderstanding of what was happening iirc
<havenwood> eam: reality is simlacra that hides numbers
djbkd has joined #ruby
spyderman4g63 has joined #ruby
<banister> epitron if he had the proper mental model he would have decided electrons were positive instead
<epitron> banister: yeppp
<havenwood> simulacra*
<epitron> of course, our model of electrons is still a bit weird
<workmad3> banister: you could always run the process with adding a proton too ;)
<epitron> we know more, but there's still some bits missing
<workmad3> banister: admittedly, adding electrons to atoms is easy than adding protons
deric_skibotn has joined #ruby
josephndenton has quit [Ping timeout: 246 seconds]
* epitron gives workmad3 a cup of water, resulting in him having -1 cups of water
zachrab has joined #ruby
* epitron notices that workmad3 drinks all the water, resulting in him having 0 cups of water
mikecmpbll has quit [Quit: i've nodded off.]
* godd2 takes the square root of workmad3's cups of water, and opens a wormhole
standingcloud has quit [Ping timeout: 264 seconds]
spyderma_ has quit [Ping timeout: 256 seconds]
<workmad3> epitron: sure... but cups of water are an inherently scalar quantity... there isn't really a concept of '-1 cup of water'
<eam> anyway the bank doesn't believe me either when I say numbers aren't real
<epitron> workmad3 filled the cup with air by means of his aesophagus, neutralizing the cup's charge
mikecmpbll has joined #ruby
<Cope> Obv. ENV['PATH'] exists, but if I want to add something to it, is there something that handles this for me, or should I just construct the string and assign it?
danman has joined #ruby
<Cope> What I'm wondering is if there's some add to path function
xaxisx has quit [Quit: xaxisx]
<godd2> workmad3 what if I owe someone a beer?
Luyt_ has quit [Ping timeout: 246 seconds]
<workmad3> epitron: sorry... not scalar... not sure what the right term is... but my point is that electric charge is fundamentally different to 'number of objects' in that there really is a 'same amount but opposite' for it
<eam> Cope: only ever seen direct manipulation of it
mloveless has quit []
<workmad3> godd2: then you're into economics, barter and currency, and again there is a well-defined (but human) construct of 'negative' there, which gets interpreted as 'debt'
pallavsharma_ps has quit [Quit: Leaving]
<eam> workmad3: certainly, but the conceptual (aka imaginary) notion of counting through symbols is distinct from the tangible reality which is being counted
djbkd has quit [Ping timeout: 265 seconds]
mrmargolis has quit [Remote host closed the connection]
<eam> unless I suppose we consider that thoughts and concepts have a tangible, material structure as well
mrmargolis has joined #ruby
sent1nel has quit [Remote host closed the connection]
nobitanobi has joined #ruby
josephndenton has joined #ruby
<workmad3> eam: IMO they do, in the form of observable (if you had the right equipment) electrical and chemical interactions in the brain
<eam> workmad3: so perhaps the true lesson here is that there's no such thing as imaginary. Everything exists.
jonmorehouse has joined #ruby
arup_r_ has joined #ruby
<workmad3> eam: my concept of a unicorn does indeed exist... in the form of electrochemical signals in my mind :)
<eam> I have to agree
<workmad3> eam: a physical being that matches my concept of a unicorn probably doesn't exist
sent1nel has joined #ruby
<eam> is one any more substantial than the other?
qdaupx has quit [Remote host closed the connection]
<Cope> eam: ok cool
<workmad3> eam: I'd argue that one made out of more 'stuff' than the chemicals in my chunk of grey matter is more tangible
<workmad3> eam: if only because then another being could also interact with it
<eam> on a side note I didn't get enough sleep last night. Probably unrelated to this conversation
<mikecmpbll> my grey matter is intangible even to me.
mrmargolis has quit [Ping timeout: 245 seconds]
<godd2> little sleep + beer == philosophy
* workmad3 gets the bone saw
<workmad3> mikecmpbll: want to test that? :)
paulfm has quit [Read error: Connection reset by peer]
<mikecmpbll> :D
<godd2> workmad3 I'll just do end to end testing. ask me a math question
josephndenton has quit [Ping timeout: 264 seconds]
<eam> a stone in a box is just as tangible as a stone in my hand, I think
rvchangue has quit [Ping timeout: 244 seconds]
paulfm has joined #ruby
<workmad3> godd2: ok... can you give me a good, intuitive interpretation of holomorphic functions or path and surface integrals?
arup_r_ has quit [Ping timeout: 245 seconds]
gbonfant has quit [Remote host closed the connection]
rvchangue has joined #ruby
<workmad3> eam: how about a photon that has just passed beyond the observable edge of the universe?
<mikecmpbll> is the answer gimbal lock
<godd2> holomorphic functions are bendy and stretchy! just not infinitely bendy
timanema has joined #ruby
n1lo has quit [Ping timeout: 255 seconds]
tlarevo has joined #ruby
tlarevo has quit [Remote host closed the connection]
wallerdev has joined #ruby
<workmad3> godd2: bah, I'm going to have to go to wiki to try and see if your answer fits :(
<mikecmpbll> a more important question is .. who will win the 19:10 at wolverhampton.
waynerade has joined #ruby
<workmad3> godd2: it took me quite a while to figure out how path and surface integrals could arise, but I've really not got a good grasp on what they *are*
<godd2> path integrals work because it's one less dimension than the manifold you're on, but you have to account for the function that specifies the path. Otherwise, you have to integrate with respect to that last dimension as well, which isn't as fun for 3d
Patteh has joined #ruby
dmolina has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
spookah has joined #ruby
iamjarvo has joined #ruby
<workmad3> godd2: at least, not in the same sense as 1-dimensional calculus, where the natural starting point for differentiation and integration is 'rate of change of the curve' and 'area under the curve'
davedev2_ has joined #ruby
nanoyak has joined #ruby
<godd2> workmad3 right. ordinary differential and integral calculus is introduced with 2d functions
<godd2> but of course, there's a holomorphism between curvy areas and curvy line segments
gtrak has quit [Ping timeout: 240 seconds]
davedev24_ has quit [Ping timeout: 264 seconds]
<workmad3> godd2: and I kinda understand that path integrals don't arise in calculus with 2d real functions because there's only 1 'path' that you can take from source to destination in the mapping
ta_ has joined #ruby
dimaursu16 has quit [Ping timeout: 246 seconds]
linuxer1 has joined #ruby
paulfm has quit [Ping timeout: 255 seconds]
<godd2> workmad3 if you want a more precise description of a holomorphic function, it's a function whose power series converges to the function about a neighborhood of every point.
<linuxer1> Any idea why the hell calling .destroy on an instance object of an active record model that has a primary key would delete ALL the models? version 3.0.20
<workmad3> godd2: heh :) I was looking for more intuitive than precise :)
towski_ has joined #ruby
<linuxer1> This just bit us in the ass big time. It looks to me like destroy shouldn't do that?
fabrice31 has joined #ruby
<wasamasa> D-D-D-DESTROY EVERYTHING
<godd2> linuxer1 try over at #rubyonrails
gtrak has joined #ruby
<spookah> I'm a total noob to ruby (sorry for my ignorance). I'm working on a virtual appliance and getting the error "Net::HTTP::Persistent:Error: too many connection resets (due to end of file reached - EOFError) after 14 requests on 31954780, last used 0.102921356 seconds ago.". I've googled around but am struggling to understand what the error stems from. Can anyone provide some insight?
Pharaoh2 has joined #ruby
<workmad3> godd2: maybe move this to PM then? (I'm guessing most people here don't care what holomorphic functions are :) )
jenrzzz has joined #ruby
<godd2> workmad3 sure!
djbkd has joined #ruby
terlar has quit [Ping timeout: 252 seconds]
Patteh has left #ruby [#ruby]
posixpascal has joined #ruby
<epitron> banana + strawberry + raspberry + blackberry + blueberry + avocado + cranberry juice + peanut butter smoothie == tasty
ta_ has quit [Ping timeout: 265 seconds]
<mikecmpbll> 'nuff fruit?
fabrice31 has quit [Ping timeout: 246 seconds]
paulfm has joined #ruby
<epitron> it should last me for the next 12 hours :D
<epitron> (fruitwise)
mark___ has joined #ruby
mark___ has quit [Client Quit]
Aova has quit [Read error: Connection reset by peer]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SixiS has quit [Quit: SixiS]
n1lo has joined #ruby
athan has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
adamjleonard has joined #ruby
tkuchiki has joined #ruby
GreatSUN has quit [Ping timeout: 246 seconds]
quimrstorres has joined #ruby
paulfm_ has joined #ruby
Aova has joined #ruby
ptrrr has joined #ruby
thumpba has joined #ruby
athan has quit [Ping timeout: 256 seconds]
ghostmoth has joined #ruby
_honning_ has joined #ruby
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
paulfm has quit [Ping timeout: 276 seconds]
Pharaoh2 has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
<banister> epitron do u think stevie nicks looks like carrie fisher
sent1nel has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
kenneth has joined #ruby
quimrstorres has quit [Ping timeout: 264 seconds]
Pharaoh2 has quit [Max SendQ exceeded]
sent1nel has joined #ruby
Pharaoh2 has joined #ruby
Pharaoh2 has quit [Client Quit]
kirun has joined #ruby
nobitanobi has quit [Remote host closed the connection]
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maximski has quit []
ramfjord has joined #ruby
thumpba_ has quit [Ping timeout: 276 seconds]
wallerdev has quit [Quit: wallerdev]
freerobby has joined #ruby
n1lo has quit [Ping timeout: 244 seconds]
Stichoza has joined #ruby
jimms has quit [Remote host closed the connection]
<epitron> old stevie nicks looks more like old carrie fisher than young stevie nicks looks like young carrie fisher
<epitron> there is a fair bit of similarity though
astrobunny has quit [Ping timeout: 256 seconds]
_maes_ has joined #ruby
adamjleonard has quit [Quit: Leaving...]
hmsimha has quit [Ping timeout: 252 seconds]
freerobby has quit [Client Quit]
SixiS has joined #ruby
nobitanobi has joined #ruby
tier has joined #ruby
Tuxero has quit [Quit: Tuxero]
Tuxero has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sent1nel has quit [Remote host closed the connection]
anarang has joined #ruby
sent1nel has joined #ruby
LouisRoR has quit [Ping timeout: 265 seconds]
kaspertidemann has joined #ruby
<d10n-work> What is a way to store an uncalled function in a variable and then call it later? In python you can do this by not calling it with ()
werelivinginthef has quit [Ping timeout: 246 seconds]
<yxhuvud> method(:foo)
<yxhuvud> however, usually you will end up using a block and convert it to (and from) a proc with & instead.
dc has joined #ruby
duncannz has joined #ruby
djbkd has quit [Remote host closed the connection]
dc_ has joined #ruby
dc has quit [Read error: Connection reset by peer]
j0n3 has joined #ruby
blackoperat has joined #ruby
m8 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
aclearman037 has joined #ruby
hmsimha has joined #ruby
nobitanobi has joined #ruby
blackmesa has joined #ruby
SixiS_ has joined #ruby
<d10n-work> yxhuvud: thanks
SixiS has quit [Read error: Connection reset by peer]
SixiS_ is now known as SixiS
reset has joined #ruby
sent1nel has quit [Remote host closed the connection]
tier has quit [Read error: Connection reset by peer]
workmad3 is now known as wm3|away
fandi has joined #ruby
tier has joined #ruby
wallerdev has joined #ruby
Darryl___ has joined #ruby
fryguy9 has quit [Quit: Leaving.]
elaptics is now known as elaptics`away
swgillespie has joined #ruby
iamjarvo has joined #ruby
djbkd has joined #ruby
zB0hs has joined #ruby
davedev24_ has joined #ruby
davedev2_ has quit [Ping timeout: 246 seconds]
klmlfl has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
gccostabr has joined #ruby
ellisTAA has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
jmcharnes has quit [Quit: Textual IRC Client: www.textualapp.com]
gtrak has quit [Quit: No Ping reply in 180 seconds.]
sambao21 has joined #ruby
zachrab has quit [Read error: No route to host]
<ellisTAA> can someone help me understand what this line is saying. the code is an rspec test, line 5 says attr_accessor :calculator. does that mean i have to include that in my code or is the test creating that when it starts the test?
zachrab has joined #ruby
sent1nel has joined #ruby
sambao21 has quit [Client Quit]
ghr has quit [Ping timeout: 264 seconds]
gtrak has joined #ruby
tmk1108 has joined #ruby
uptownhr has quit [Quit: uptownhr]
shime has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
dmolina has quit [Quit: Leaving.]
nanoyak has joined #ruby
helpa has quit [Remote host closed the connection]
timmmaaaayyy has joined #ruby
helpa has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
swgilles_ has joined #ruby
swgilles_ has quit [Client Quit]
klmlfl has joined #ruby
swgillespie has quit [Ping timeout: 264 seconds]
scripore has joined #ruby
<timmmaaaayyy> can anyone help me figure this script out: https://gist.github.com/anonymous/38eafd897b5690e1b182 -- i'm trying to send a POST, but it errors out with https://gist.github.com/anonymous/38e7aa36cd4701c4fd2a
fryguy9 has joined #ruby
sambao21 has joined #ruby
<timmmaaaayyy> i think it might be becuase i'm sending an array or something when it wasnts a string. but i have no idea what i can do to resolve that situation
sent1nel has quit [Read error: Connection reset by peer]
happyface has joined #ruby
sent1nel has joined #ruby
<atmosx> timmmaaaayyy: is there any reason you're not using an ORM?
AlSquire has joined #ruby
ki0 has quit [Ping timeout: 240 seconds]
<timmmaaaayyy> to be completely honest. i'm a complete ruby newb and i don't know what that even means
<atmosx> timmmaaaayyy: I figured
cjim has joined #ruby
shime has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
nobitanobi has quit [Remote host closed the connection]
arup_r has quit [Read error: Connection reset by peer]
aswen has joined #ruby
Xeago has joined #ruby
mrmargolis has joined #ruby
arup_r has joined #ruby
Xeago_ has joined #ruby
<timmmaaaayyy> does that disqualify me from getting help?
agent_white has joined #ruby
<atmosx> timmmaaaayyy: no absolutely not
<agent_white> Afternoon folks
tkuchiki has joined #ruby
<centrx> timmmaaaayyy, The first thing I see with your code is "params" is undefined, but that should give a different error message.
<timmmaaaayyy> oh shoot. i pasted the wrong thing.
<centrx> timmmaaaayyy, An ORM enables interacting with the DB in an easier, more secure, featureful, etc. way
<timmmaaaayyy> on second
dfinninger has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 240 seconds]
<ellisTAA> anyone know why i’m getting an error message that says << is an undefined method? https://gist.github.com/ellisTAA/9da3ac90c7abec46dfc6
<atmosx> timmmaaaayyy: https://gist.github.com/atmosx/6af69ab7bff7655514aa give it a shot
Aova has quit [Read error: Connection reset by peer]
<atmosx> timmmaaaayyy: changed lines 27-30
<timmmaaaayyy> ok i'll try that. here's what i actually had. my first gitst was an old script - https://gist.github.com/anonymous/6dc3d61e43c34cd72401
<timmmaaaayyy> trying yours now
<arup_r> timmmaaaayyy: Refactor your m, a, y
elaptics`away is now known as elaptics
<arup_r> I am not able to type it with correct counts of m, a, y
agent_white has quit [Client Quit]
<atmosx> ellisTAA: Itg's pretty clear, you're trying add items to an array that doesn't exist.
<arup_r> I need to use mouse to copy/paste
agent_white has joined #ruby
<ellisTAA> atmosx: that’s what i don’t get i created the arrray …
mitt3ns has joined #ruby
<atmosx> arup_r: what IRC client do you use? usually you type ti-<tab>
mitt3ns has left #ruby [#ruby]
<atmosx> ellisTAA: show me the line of code
lkba has joined #ruby
<arup_r> I'm using pidgin
<atmosx> ellisTAA: it's not being creatged for some reason then
<atmosx> arup_r: oh well.
<ellisTAA> atmosx: line 3 of code.rbhttps://gist.github.com/ellisTAA/9da3ac90c7abec46dfc6
hfor has quit [Remote host closed the connection]
<atmosx> arup_r: try a real client, will help u
<atmosx> ellisTAA: yes, click on the line, give me a clear URL I can click on
<arup_r> Opps.. If I try tab in pidgin it is flooding the IRC itself
<atmosx> ellisTAA: make my life easy :-)
<arup_r> so bad
<ellisTAA> haha i dont know how to do that
hfor has joined #ruby
<ellisTAA> oh nvm
<arup_r> atmosx: name please ?
delianides has quit []
<atmosx> arup_r: you familiar with command line?
<arup_r> humm
<timmmaaaayyy> thank you atmosx! now i'm getting: #<Net::HTTPBadRequest:0x00000002428180> which i believe is something with the site hopefully
pdoherty has joined #ruby
zB0hs has quit [Quit: Textual IRC Client: www.textualapp.com]
quimrstorres has joined #ruby
<atmosx> timmmaaaayyy: Hm, it's a bard request. We're not quite there yet but... basically you need to format your data before sending a 'post'
Aova has joined #ruby
zB0hs has joined #ruby
<atmosx> timmmaaaayyy: also, try to use 'sequel' gem for SQL if you have heavy SQL usage and might be optimal to use nokogiri or faraday for HTTP post requests.
<timmmaaaayyy> ok thats what i'm thinking it might be. they just said i needed to include a token and a estimate_id....htey didn't give me any clarification as to how i do that
djbkd_ has joined #ruby
Apocalypse has quit [Ping timeout: 276 seconds]
nobitanobi has joined #ruby
dimaursu16 has joined #ruby
zB0hs has quit [Client Quit]
<timmmaaaayyy> when i switch the url to http i get a different error: #<Net::HTTPInternalServerError:0x00000002564bc0>
zB0hs has joined #ruby
<timmmaaaayyy> i'll read up on the sequel gem. but for now i'd like to get the post thing working. is there a difference between a post and a post form?
<timmmaaaayyy> is every post a form?
tkuchiki has quit [Ping timeout: 272 seconds]
<atmosx> timmmaaaayyy: hm, not sure what you mean but the way I understand this no.
<ellisTAA> atmosx: i think my array @calculator = [] isn’t being created because rspec creates @calculator = RPNCalculator.new before it begins the tests. do u think this is right? https://gist.github.com/ellisTAA/9da3ac90c7abec46dfc6#file-rpn_calc-rb-L8
mLF has joined #ruby
<atmosx> arup_r: try X-Chat
nobitanobi has quit [Remote host closed the connection]
<timmmaaaayyy> yea i'm not sure how to ask that question :) so back to the formatting thing. what do we have to do there?
quimrstorres has quit [Ping timeout: 256 seconds]
<arup_r> need to check is for SUSE it is available or not
nobitanobi has joined #ruby
ghr has joined #ruby
djbkd_ has quit [Ping timeout: 276 seconds]
chipotle has joined #ruby
pu22l3r has quit [Ping timeout: 246 seconds]
josephndenton has joined #ruby
paulfm_ has quit [Quit: Goodbye]
spider-mario has joined #ruby
<atmosx> timmmaaaayyy: generally speaking convert hash to string and the post
siaw has quit [Quit: siaw]
<timmmaaaayyy> am i calling that variable incorrectly? line 28....eid. should that be #{eid} or something?
<timmmaaaayyy> its defined a few lines up
Grumelo has quit []
<atmosx> guys brb, got go eat something.
<adnauseaum> so im doing a ruby tutorial. why in the world did they use puts instead of print
<atmosx> timmmaaaayyy: I think you're fine as far as variables are concernet
paulfm has joined #ruby
<timmmaaaayyy> ok cool. thanks for the help so far! lunch sounds wonderful
<GaryOak_> adnauseaum: it actually sounds like 'putz' and it's matz's way of telling you you're a putz
josephndenton has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
<atmosx> ellisTAA: you need to initialize @calculator somehow
<adnauseaum> lol
<atmosx> you're using it but without initializing it
athan has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
<ellisTAA> atmosx: should i intiialize it with attr_accesor or def initialize
<atmosx> same
<ellisTAA> same thing?
Apocalypse has joined #ruby
<atmosx> ah no
<atmosx> \initialize
<ellisTAA> ?
Kruppe has quit [Quit: ZNC - http://znc.in]
pavelz has quit [Remote host closed the connection]
<ellisTAA> i used def initialize, @calculator = [], end and that seems to work
beanHolez has joined #ruby
<ellisTAA> atmosx: thanks for the help, i really appreciate it
nb_bez___ has quit [Quit: Connection closed for inactivity]
crazydiamond has joined #ruby
yeticry has quit [Ping timeout: 244 seconds]
robustus has joined #ruby
<atmosx> ellisTAA: yw
Kruppe has joined #ruby
yeticry has joined #ruby
<wallerdev> i hate java mac apps
<wallerdev> grrrr
<GaryOak_> Only the guy who wrote Java Swing likes java mac apps
nobitanobi has quit []
<wallerdev> manged to break cmd+a to select all
<wallerdev> since they implemented it their own way
<wallerdev> lol
<GaryOak_> you need to use apple-key+a lolz
robustus has quit [Ping timeout: 255 seconds]
endless_walrus has joined #ruby
endless_walrus has quit [Client Quit]
fantazo has quit [Quit: Verlassend]
danjordan has joined #ruby
robustus has joined #ruby
whoisjake has joined #ruby
<wallerdev> apple-key = cmd
dspangenberg has quit [Ping timeout: 265 seconds]
codeurge has joined #ruby
frem has joined #ruby
LouisRoR has joined #ruby
Stoge88 has joined #ruby
vadmin has joined #ruby
spyderman4g63 has quit [Ping timeout: 264 seconds]
vadmin has quit [Client Quit]
<wallerdev> omg
<wallerdev> they broke pasting too
<wallerdev> kill me now haha
JBreit has joined #ruby
<centrx> Apple iOS 8 and Yosemite quality is shockingly bad
bluOxigen has joined #ruby
postmodern has quit [Quit: Leaving]
motto has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Azure has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
tier has quit [Read error: Connection reset by peer]
arup_r has quit [Quit: Leaving.]
skj3gg has joined #ruby
tier has joined #ruby
momomomomo has joined #ruby
TripTastic has joined #ruby
s_e_ has joined #ruby
russt has joined #ruby
shellox_ has joined #ruby
werelivinginthef has joined #ruby
aclearma_ has joined #ruby
cephalostrum_ has joined #ruby
certaint1 has joined #ruby
weaksauce has joined #ruby
mclee_ has joined #ruby
Parker0 has quit [Ping timeout: 256 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
jbw_ has joined #ruby
miah_ has joined #ruby
Azure has joined #ruby
riotjone_ has joined #ruby
wald0 has quit [Quit: Lost terminal]
<spookah> I'm a total noob to ruby (sorry for my ignorance). I'm working on a virtual appliance and getting the error "Net::HTTP::Persistent:Error: too many connection resets (due to end of file reached - EOFError) after 14 requests on 31954780, last used 0.102921356 seconds ago.". I've googled around but am struggling to understand what the error stems from. Can anyone provide some insight?
scripore has joined #ruby
lorn_ has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
sent1nel has quit [Remote host closed the connection]
slash_ni1k has joined #ruby
<weaksauce> spookah can you gist.github.com your stacktrace and the code you are trying to call?
aclearma_ has quit [Client Quit]
sent1nel has joined #ruby
dhruvasagar_ has joined #ruby
sambao21 has joined #ruby
Fraeon has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
max96atg has joined #ruby
timmow_ has joined #ruby
mischief_ has joined #ruby
max96atg is now known as max96at
dimaursu16 has quit [Quit: Leaving]
<ellisTAA> how do i convert “+” to + ?
crazydiamond_ has joined #ruby
dimaursu16 has joined #ruby
jmdade has joined #ruby
<wallerdev> in what context
LouisRoR1 has joined #ruby
ramfjord_ has joined #ruby
_reset has joined #ruby
<wallerdev> if input == '+'; return x + x; end
<ellisTAA> mmm i have an array … calculator = [3, 4, 5, “+”]
sumark_ has joined #ruby
ragingcake has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
<wallerdev> you could convert it to a symbol or use a symbol in the first place
uxp has joined #ruby
<apeiros_> >> 3.public_send("+", 4)
genpaku_ has joined #ruby
<weaksauce> you can use send
<eval-in_> apeiros_ => 7 (https://eval.in/269575)
<ellisTAA> ok ill try to_sym
<wallerdev> ah yeah you can use send with strings forgot
<ellisTAA> what is send?
wmoxam_ has joined #ruby
lele` has joined #ruby
s_e has quit [Ping timeout: 264 seconds]
cephalostrum has quit [Ping timeout: 264 seconds]
wmoxam has quit [Ping timeout: 264 seconds]
Lorn has quit [Ping timeout: 264 seconds]
mclee has quit [Ping timeout: 264 seconds]
shellox has quit [Ping timeout: 264 seconds]
froots_0xff has quit [Read error: Connection reset by peer]
JBreit has quit [Ping timeout: 264 seconds]
m8 has quit [Ping timeout: 264 seconds]
certainty has quit [Ping timeout: 264 seconds]
Vile` has quit [Ping timeout: 264 seconds]
jbw has quit [Ping timeout: 264 seconds]
lamasnik has quit [Ping timeout: 264 seconds]
lkba has quit [Ping timeout: 264 seconds]
aclearman037 has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
juni0r has quit [Ping timeout: 264 seconds]
slash_nick has quit [Ping timeout: 264 seconds]
miah has quit [Ping timeout: 264 seconds]
psy_ has quit [Ping timeout: 264 seconds]
lele has quit [Ping timeout: 264 seconds]
timmow has quit [Ping timeout: 264 seconds]
FifthWall has quit [Max SendQ exceeded]
kenneth has quit [Max SendQ exceeded]
max96at|off has quit [Ping timeout: 264 seconds]
crazydiamond has quit [Ping timeout: 264 seconds]
riotjones has quit [Ping timeout: 264 seconds]
codecop has quit [Ping timeout: 264 seconds]
Freijo has quit [Ping timeout: 264 seconds]
mischief has quit [Ping timeout: 264 seconds]
pizzaops has quit [Ping timeout: 264 seconds]
_br_- has quit [Ping timeout: 264 seconds]
codehotter has quit [Ping timeout: 264 seconds]
mahlon has quit [Ping timeout: 264 seconds]
daynaskully has quit [Ping timeout: 264 seconds]
urtokk has quit [Ping timeout: 264 seconds]
jouty has quit [Ping timeout: 264 seconds]
adeponte has quit [Ping timeout: 264 seconds]
LouisRoR has quit [Ping timeout: 264 seconds]
_maes_ has quit [Ping timeout: 264 seconds]
sumark has quit [Ping timeout: 264 seconds]
SHyx0rmZ has quit [Ping timeout: 264 seconds]
reset has quit [Ping timeout: 264 seconds]
uxp_ has quit [Remote host closed the connection]
genpaku has quit [Remote host closed the connection]
<apeiros_> invokes methods by name
<godd2> ellisTAA it calls the given method
s_e_ is now known as s_e
genpaku_ is now known as genpaku
<ellisTAA> oh gotcha.
codecop_ has joined #ruby
<godd2> >> "hello".send(:upcase)
<eval-in_> godd2 => "HELLO" (https://eval.in/269576)
mischief_ is now known as mischief
fabrice31 has joined #ruby
psy_ has joined #ruby
<apeiros_> use public_send, not send.
FifthWall has joined #ruby
sptq has quit [Ping timeout: 264 seconds]
_br_ has joined #ruby
adeponte has joined #ruby
sent1nel has quit [Ping timeout: 265 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
Stoge88 has joined #ruby
jouty has joined #ruby
juni0r has joined #ruby
<weaksauce> interesting. does ri public_send segfault ruby for anyone else?
sptq has joined #ruby
lamasnik has joined #ruby
<apeiros_> doesn't for me.
daynaskully has joined #ruby
<leonshalimov> nope
<weaksauce> using 2.2.0p0
dspangenberg has joined #ruby
<godd2> I just get "Nothing known about .public_send"
VBlizzard is now known as blizzy
<godd2> how do I fix that, btw?
daynaskully is now known as Guest8426
Vile` has joined #ruby
<apeiros_> install the core docs
<apeiros_> with rvm: rvm docs generate
<weaksauce> so it doesn't segfault 2.1.3's version of ri
<weaksauce> curious
Guest8426 has quit [Changing host]
Guest8426 has joined #ruby
pu22l3r has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
tmk1108 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ndjaja has joined #ruby
rodfersou has quit [Quit: leaving]
fabrice31 has quit [Ping timeout: 265 seconds]
Guest8426 is now known as guyz
vakor is now known as kobain
kobain has quit [Changing host]
kobain has joined #ruby
C1V0 has joined #ruby
aclearman037 has joined #ruby
<leonshalimov> I'm on 2.1 it works
<leonshalimov> 2.1.0p0
maximski has joined #ruby
cjim has quit [Quit: (null)]
uptownhr has joined #ruby
shazaum has quit [Quit: Leaving]
aswen has quit [Ping timeout: 245 seconds]
agent_white has quit [Disconnected by services]
agjacome has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
agent_white has joined #ruby
Morkel has joined #ruby
Stoge88 has quit [Ping timeout: 265 seconds]
Parker0 has joined #ruby
ellisTAA has quit [Quit: ellisTAA]
rdark has quit [Quit: leaving]
supergiel has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
acangiano has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
multi_io has joined #ruby
kalusn has joined #ruby
Eiam has joined #ruby
ldnunes has quit [Quit: Leaving]
Aova has quit [Read error: Connection reset by peer]
Takle has joined #ruby
Xeago_ has quit [Remote host closed the connection]
dspangenberg has quit [Ping timeout: 244 seconds]
ragingcake has quit [Quit: ragingcake]
ElderFain has joined #ruby
multi_io_ has quit [Ping timeout: 264 seconds]
djbkd has quit [Remote host closed the connection]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skj3gg has joined #ruby
kasperti_ has joined #ruby
tier has quit [Read error: Connection reset by peer]
pizzaops has joined #ruby
okic has quit [Remote host closed the connection]
tier has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
Stany has joined #ruby
kaspertidemann has quit [Ping timeout: 272 seconds]
Aova has joined #ruby
gsd has joined #ruby
openscript has joined #ruby
djcp has quit [Ping timeout: 255 seconds]
urtokk has joined #ruby
mahlon has joined #ruby
Xeago has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
nanoyak has quit [Quit: Computer has gone to sleep.]
gattie has joined #ruby
scripore has joined #ruby
Tamae has quit [Ping timeout: 256 seconds]
Tuxero has quit [Quit: Tuxero]
gr33n7007h has joined #ruby
Tuxero has joined #ruby
miah_ has quit [Quit: DevOps? DerpOps maybe!]
whoisjake has quit []
<postmodern> how would you remove ANSI codes from a String?
gsd has quit [Client Quit]
<postmodern> causing issues with ASCII-8Bit -> UTF-8 conversion
scripore has quit [Client Quit]
<apeiros_> delete or gsub
KanKava has joined #ruby
Xeago_ has joined #ruby
scripore has joined #ruby
dfinninger has joined #ruby
miah has joined #ruby
Nahra has joined #ruby
jonmorehouse has quit [Ping timeout: 255 seconds]
Xeago has quit [Ping timeout: 264 seconds]
arya_ching has quit []
SixiS has quit [Quit: SixiS]
lkba has joined #ruby
msgodf has quit [Ping timeout: 245 seconds]
TripTastic has left #ruby ["Leaving"]
mLF has quit [Remote host closed the connection]
ndjaja has quit [Quit: ndjaja]
tjohnson has joined #ruby
lmickh has quit [Remote host closed the connection]
Soda has joined #ruby
spyderman4g63 has joined #ruby
djcp has joined #ruby
zachrab has quit [Remote host closed the connection]
spyderma_ has joined #ruby
tylersmith has joined #ruby
zachrab has joined #ruby
gawd has joined #ruby
shum has quit [Quit: WeeChat 1.1.1]
asmodchan has joined #ruby
flak has joined #ruby
cjim has joined #ruby
spyderman4g63 has quit [Ping timeout: 264 seconds]
zachrab has quit [Ping timeout: 246 seconds]
asmodlol has quit [Ping timeout: 244 seconds]
MuffinPimp has quit [Remote host closed the connection]
rcoulman has joined #ruby
ta_ has joined #ruby
atomical has joined #ruby
rippa has quit [Ping timeout: 246 seconds]
noop has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
flak has quit [Ping timeout: 246 seconds]
<rcoulman> zenspider: ping?
yfeldblum has joined #ruby
thumpba has quit [Remote host closed the connection]
thumpba has joined #ruby
gsd has joined #ruby
asmodchan has quit [Quit: Leaving]
Morkel has quit [Quit: Morkel]
cjim has quit [Quit: (null)]
devdazed has quit [Ping timeout: 272 seconds]
cphrmky has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
devdazed has joined #ruby
shellfu is now known as shellfood
thumpba has quit [Ping timeout: 245 seconds]
Stichoza has quit [Quit: Lingo: www.lingoirc.com]
leonshalimov is now known as tunaCanBruh
<tunaCanBruh> test
wallerdev has quit [Quit: wallerdev]
pu22l3r has quit [Remote host closed the connection]
kalusn has quit [Read error: Connection reset by peer]
shum has joined #ruby
kalusn has joined #ruby
sent1nel has joined #ruby
KanKava has quit [Remote host closed the connection]
oleo is now known as Guest36174
oleo__ has joined #ruby
Guest36174 has quit [Ping timeout: 245 seconds]
FooMunki has quit [Quit: FooMunki]
freerobby has joined #ruby
shum has quit [Client Quit]
shum has joined #ruby
shum has quit [Client Quit]
shum has joined #ruby
<weaksauce> test failed in .022 seconds
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
adamjleonard has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
kasperti_ has quit []
shum has quit [Client Quit]
mitchellhenke has joined #ruby
sambao21 has joined #ruby
shum has joined #ruby
Xeago_ has quit [Remote host closed the connection]
shum has quit [Client Quit]
mikecmpbll has quit [Quit: ciao.]
shum has joined #ruby
_blackjid has quit [Ping timeout: 245 seconds]
waynerade has quit [Ping timeout: 245 seconds]
ellisTAA has joined #ruby
Jake232 has joined #ruby
Jake232 has quit [Max SendQ exceeded]
Jake232 has joined #ruby
Pharaoh2 has joined #ruby
reinaldob has quit [Remote host closed the connection]
anarang has quit [Quit: Leaving]
djbkd_ has joined #ruby
reinaldob has joined #ruby
pu22l3r has joined #ruby
ellisTAA has quit [Read error: Connection reset by peer]
vt102 has quit [Quit: Leaving]
dspangenberg has joined #ruby
spyderma_ has quit [Ping timeout: 245 seconds]
nanoyak has joined #ruby
alex88 has joined #ruby
<alex88> hi guys, I've switched an implementation of a class from Array to Set
nunayerBeezwax has joined #ruby
reinaldob has quit [Ping timeout: 240 seconds]
<alex88> changing from "@elements +=" to "@elements.merge" gives some spec failures about values propagating to parent classes
fmcgeough has quit [Quit: fmcgeough]
<alex88> imho, += and .merge should be the same thing, in fact in irb, Set.new.merge([1,2]) === (Set.new([]) + [1,2]) is true
codeurge has joined #ruby
wallerdev has joined #ruby
josephndenton has joined #ruby
djbkd_ has quit [Ping timeout: 272 seconds]
<apeiros_> alex88: + returns a new Set, merge mutates the existing object
karmatr0n has joined #ruby
<apeiros_> also you're using === wrong. you want == there.
Aova has quit [Read error: Connection reset by peer]
kamilc__ has quit [Ping timeout: 245 seconds]
<alex88> apeiros_: += so re-writes the variable using a new set instead of modifying in place?
<alex88> == is true too
djcp has quit [Ping timeout: 245 seconds]
<alex88> let me link you the spec that fails
Takle has joined #ruby
kamilc__ has joined #ruby
cjim has joined #ruby
<alex88> this one for example
ellisTAA has joined #ruby
<apeiros_> TL;DR atm, sorry.
mwlang has quit [Quit: mwlang]
<alex88> np, was just trying to figure out what's the difference that could make those tests fails
tkuchiki has joined #ruby
josephndenton has quit [Ping timeout: 255 seconds]
momomomomo has quit [Quit: momomomomo]
npgm has joined #ruby
<nunayerBeezwax> hi everybody, i have a question about rails ENV variables... i want to use CONSTANT['pwd'] etc in action_mailer.smtp_settings so passwords are protected... so i made a file config/gmail.yml which reads 'development: username: 'my_username', password: 'my_password'... then i made a file config/initializers/01_gmail.rb which reads 'GMAIL_CONFIG = YAML.load_file("#{::Rails.root}/config/gmail.yml")[::Rails.env]' and final
blackmesa has quit [Ping timeout: 264 seconds]
<nunayerBeezwax> ly a file config/initializers/mail_stmp.rb which reads 'Rails.application.config.action_mailer.smtp_settings = { user_name: GMAIL_CONFIG["username"] } etc. (all the other settings we need)... then when i open rails console (no errors) and type GMAIL_CONFIG["username"] it returns "username" instead of my actual username. any ideas?
Aova has joined #ruby
ndjaja has joined #ruby
blackmesa has joined #ruby
sent1nel has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 276 seconds]
lidaaa has joined #ruby
dspangenberg has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Ping timeout: 272 seconds]
sent1nel_ has joined #ruby
nateberkopec has joined #ruby
shellfood is now known as shellfu
jonmorehouse has joined #ruby
wallerdev has quit [Quit: wallerdev]
Darryl___ has quit [Quit: Connection closed for inactivity]
wallerdev has joined #ruby
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nuck has joined #ruby
freerobby has quit [Quit: Leaving.]
aclearman037 has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
leafybasil has joined #ruby
_honning_ has quit [Ping timeout: 255 seconds]
<rcoulman> @nunayerBeezwax What does GMAIL_CONFIG look like in the console? Does it have the right keys and values in it?
jlast has joined #ruby
momomomomo has joined #ruby
djcp has joined #ruby
freerobby has joined #ruby
cjim has quit [Quit: (null)]
gsd has joined #ruby
paulfm has quit [Ping timeout: 240 seconds]
werelivinginthef has quit [Read error: Connection reset by peer]
freerobby has quit [Client Quit]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
werelivinginthef has joined #ruby
pglombardo has joined #ruby
sent1nel_ has quit [Ping timeout: 244 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
roolo has joined #ruby
pu22l3r has quit [Ping timeout: 256 seconds]
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
mrmargolis has quit [Remote host closed the connection]
cphrmky has quit [Read error: Connection reset by peer]
zachrab has joined #ruby
Rollabunna has joined #ruby
openscript has quit [Read error: Connection reset by peer]
<ellisTAA> my method is getting a strange result of a bunch of nils. can someone take a look at this https://gist.github.com/ellisTAA/9da3ac90c7abec46dfc6#file-code-rb-L19-L29
zachrab has quit [Read error: No route to host]
mleone has joined #ruby
roolo has quit [Ping timeout: 265 seconds]
zachrab has joined #ruby
ponga has joined #ruby
<gr33n7007h> ellisTAA, where is the idx coming from?
<gr33n7007h> ignore
<ellisTAA> ignore the question?
EvanFreeman has quit [Ping timeout: 244 seconds]
<gr33n7007h> yes
last_staff has joined #ruby
slash_ni1k is now known as slash_nick
<havenwood> Indentation..
dpritchett has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
<havenwood> ellisTAA: fix your indents!
thumpba has joined #ruby
<ellisTAA> havenwood: can you recommend source on how to indent? i know its 2 spaces but not sure how to indent nested stuff
waynerade has joined #ruby
russt_ has joined #ruby
<havenwood> ellisTAA: note how you indented methods other than #value
shum has quit [Quit: WeeChat 1.1.1]
paulfm has joined #ruby
<ellisTAA> ah i see
ndjaja has quit [Quit: ndjaja]
<Crazy_Atheist> was just about to say, the stuff after def wasn't indented right
<ellisTAA> ty
russt has quit [Ping timeout: 264 seconds]
russt_ is now known as russt
<Crazy_Atheist> funny how it was the stuff out of the highlighted things :P
decoponio has quit [Quit: Leaving...]
shredding has joined #ruby
EvanFreeman has joined #ruby
<ellisTAA> i think the problem might be my code in relation to the spec https://gist.github.com/ellisTAA/9da3ac90c7abec46dfc6#file-rpn_calc_spec-rb-L15
chipotle has quit [Quit: cheerio]
thumpba_ has joined #ruby
ta_ has joined #ruby
dspangenberg has joined #ruby
nfk has quit [Quit: yawn]
<havenwood> ellisTAA: then the nested `class` should be indented. if you have two `end`s at the same level of indentation... something likely is amiss.
<havenwood> two `end`s on top of each other at the same level of indentation*
<havenwood> ellisTAA: though i guess those aren't nested classes, just a double paste >.>
roshanavand has quit [Read error: No route to host]
michael_mbp has quit [Excess Flood]
thumpba has quit [Ping timeout: 272 seconds]
roshanavand has joined #ruby
<zenspider> 3rd day in a row of telling ellisTAA to fix their indentation. *sigh* good to know.
<havenwood> ellisTAA: Seems you're returning `@calculator` from #value when you mean to be returning `idx`.
codehotter has joined #ruby
<havenwood> ellisTAA: Fix the gist then report back1
<ellisTAA> havenwood: i think ur right
michael_mbp has joined #ruby
<dpritchett> is it possible to specify a ruby version in a gemfile on a per-system basis
<dpritchett> I am trying to use 2.1.5 and another dev wants to use 2.1.5
<dpritchett> err he wants 2.1.4
<havenwood> ellisTAA: Use the String literal, so `string = ''` instead of `string = String.new`.
chinmay_dd has quit [Quit: Connection closed for inactivity]
recurrence has joined #ruby
<havenwood> dpritchett: Don't specify the version in the `Gemfile` and instead each use a `.ruby-version` file with your preferred Ruby.
recurrence has left #ruby [#ruby]
ta_ has quit [Ping timeout: 276 seconds]
<dpritchett> yeah i guess that'll have to do, thanks havenwood
<dpritchett> Oh I forgot to mention the real problem is when it gets to circleCI
<dpritchett> and circle does a bundle install off of a VM running 1.9.3
fryguy9 has quit [Quit: Leaving.]
<havenwood> dpritchett: Looks like that's CircleCI's default, but you can choose whatever Ruby you'd like by specifying it in the .ruby-version file.
testcore has quit [Remote host closed the connection]
shellfu has quit [Read error: Connection reset by peer]
testcore has joined #ruby
<zenspider> dpritchett: you can prolly specify ~> 2.1.0 and have at it
djbkd has quit [Remote host closed the connection]
adamjleonard has quit [Ping timeout: 246 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
<dpritchett> I tried that zenspider, didn't seem to work---- poked around in the bundler source for a while to see if i could figure that part out
<zenspider> *shrug* I don't actually use bundler... I would think that'd have to be above
<zenspider> but it could at least enforce it and bow out
aapole has joined #ruby
russt has quit [Quit: russt]
spectre256 has quit [Quit: leaving]
<dpritchett> Yeah havenwood I would be happy with a circle.yml file
<dpritchett> Doesn't look like we have one yet, I'm clicking through trying to find a default file to tweak
<havenwood> dpritchett: A `.ruby-version` file with `ruby-2.1` should work as an alternative.
<havenwood> dpritchett: RVM or chruby will select the latest Ruby 2.1.
aclearman037 has quit [Quit: I'm out!]
<dpritchett> echo ruby-2.1 > .ruby-version seems like a winner thanks havenwood
russt has joined #ruby
djcp has quit [Ping timeout: 246 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JDiPierro has quit [Remote host closed the connection]
<havenwood> dpritchett: you're welcome
skj3gg has quit [Quit: ZZZzzz…]
djbkd has joined #ruby
fantazo has joined #ruby
<havenwood> ellisTAA: Fix your indentation. Hint: https://gist.github.com/ellisTAA/9da3ac90c7abec46dfc6#file-code-rb-L16-L17
baroquebobcat has quit [Quit: baroquebobcat]
dseitz has joined #ruby
fryguy9 has joined #ruby
baroquebobcat has joined #ruby
shredding has quit [Quit: shredding]
sambao21 has joined #ruby
aboudreault has quit [Excess Flood]
paulfm has quit [Quit: Zzzzz...]
timanema has quit [Ping timeout: 244 seconds]
elaptics is now known as elaptics`away
<ellisTAA> havenwood. thtanks for the hint.
_gautam_ has joined #ruby
russt has quit [Quit: russt]
<havenwood> ellisTAA: Code that isn't interpolated inside a String doesn't get run. It's just characters. `x.to_sym` isn't being run here: https://gist.github.com/ellisTAA/9da3ac90c7abec46dfc6#file-code-rb-L26
alex88 has quit []
chrishough has joined #ruby
ndjaja has joined #ruby
timonv has quit [Ping timeout: 244 seconds]
cjim has joined #ruby
bricker has quit [Ping timeout: 255 seconds]
ta_ has joined #ruby
<ellisTAA> thanks … still dont get why the string returned is basicall blank …
tier has quit [Read error: Connection reset by peer]
tier has joined #ruby
<havenwood> ellisTAA: I'd guess `string` is an empty String and `x[idx - 3]` is `nil`.
<havenwood> >> nil.to_s
<eval-in_> havenwood => "" (https://eval.in/269761)
diegoviola has joined #ruby
aboudreault has joined #ruby
<havenwood> ellisTAA: Study up on local variable scoping and Array index bounds.
<ellisTAA> ok i will
tkuchiki has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
P-NuT has joined #ruby
diegoviola has quit [Client Quit]
waynerade has quit [Quit: WeeChat 1.1]
waynerade has joined #ruby
<P-NuT> Hi all, are there any stats on ruby framework popularity?
ki0 has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
Aova has quit [Read error: Connection reset by peer]
josephndenton has joined #ruby
russt has joined #ruby
timanema has joined #ruby
Takle has joined #ruby
ramfjord_ has quit [Ping timeout: 240 seconds]
pglombardo has quit []
LouisRoR1 has quit [Ping timeout: 272 seconds]
lessless has joined #ruby
bricker has joined #ruby
tiwillia has quit [Remote host closed the connection]
devdazed has quit [Quit: Computer has gone to sleep.]
EvanFreeman has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
AlSquire has quit [Quit: This computer has gone to sleep]
EvanFreeman has joined #ruby
xp_prg has joined #ruby
Aova has joined #ruby
<xp_prg> wow is ruby the new perl?
EvanFreeman has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 276 seconds]
russt has quit [Ping timeout: 246 seconds]
<xp_prg> I was trying to do something in perl, tried to load a module, cpan went crazy, did the same with gem and it worked 99.9% easier than cpan
<xp_prg> I am new to ruby, but wow
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snockerton has joined #ruby
deconfigured has joined #ruby
timanema has quit [Ping timeout: 276 seconds]
athan has quit [Ping timeout: 276 seconds]
MrSamuel has joined #ruby
ta_ has joined #ruby
tier has quit [Remote host closed the connection]
russt has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ZoanthusR has joined #ruby
<Crazy_Atheist> If I were to say 'placeholder for a image to move around a background' for a game, would any of you understand me?
codecop_ has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 264 seconds]
<xp_prg> I kind of do
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brb3 has quit [Quit: <.<]
<apeiros_> I don't. I don't understand how an image moves around a background.
<apeiros_> maybe move around in the background?
cphrmky has joined #ruby
<Crazy_Atheist> ok, say I have a image of a single cell organism that I want to be able to move around on another image, say 'primordial goop' image, I'm just stuck on where to start
nanoyak has joined #ruby
FooMunki_ has joined #ruby
last_staff has quit [Quit: last_staff]
thiagovsk has quit [Quit: Connection closed for inactivity]
<apeiros_> Crazy_Atheist: so you have a foreground and a background image? and what's your problem with that?
<apeiros_> I think most if not all game frameworks support Z axis for images.
<Crazy_Atheist> I'm just stuck on how to do it :(
<Crazy_Atheist> I've literally done nothing of the sort before and don't know where to start
<apeiros_> well, can you draw and move around a single image?
marr has joined #ruby
ramfjord has joined #ruby
<d10n-work> In Sinatra when I use request.body.read, subsequent calls to request.body.read return "". What is a good way to make the body accessible to other parts of the program? It feels tedious to pass a body variable around everywhere that I pass the request, but it also feels messy to put the body on the request object.
roshanavand has quit [Quit: roshanavand]
<apeiros_> d10n-work: you can probably rewind the body
kirun has quit [Quit: Client exiting]
<d10n-work> oh cool, thanks apeiros_
<apeiros_> but I don't know what the preferred sharing pattern is in sinatra for request data. #sinatra might help better.
bootstrappm has quit [Remote host closed the connection]
<snockerton> which is better, grape or rocket_pants?
<centrx> which is better, wine or space?
triple_b has quit [Ping timeout: 264 seconds]
<centrx> snockerton, rocket_pants looks like a near-dead project
werelivinginthef has quit [Remote host closed the connection]
<centrx> based on github
<centrx> but I haven't used either, grape is certainly more popular
Soda has quit [Remote host closed the connection]
davedev2_ has joined #ruby
bootstrappm has joined #ruby
nanoyak has quit [Remote host closed the connection]
ptrrr has quit [Quit: ptrrr]
it0a has quit [Quit: WeeChat 1.1.1]
davedev24_ has quit [Ping timeout: 245 seconds]
Guest5221 has joined #ruby
<snockerton> centrx: thx for link
Guest5221 has quit [Client Quit]
<skinux> Anyone use CHRuby??
tkuchiki has joined #ruby
nanoyak has joined #ruby
<skinux> Or even ruby-install? I installed later version of Ruby using ruby-install, but I can't figure out how to actually use the later version. Instead, I can only access 1.9 which is provided by Ubuntu repositories.
pdoherty has quit [Remote host closed the connection]
thumpba has joined #ruby
ta_ has joined #ruby
thumpba_ has quit [Ping timeout: 246 seconds]
mrmargolis has joined #ruby
Alina-malina has quit [Ping timeout: 252 seconds]
dpritchett has left #ruby [#ruby]
snockerton has quit [Quit: leaving]
diegoviola has joined #ruby
motto has quit [Quit: Sto andando via]
gawd has quit [Quit: Leaving]
diegoviola has quit [Read error: Connection timed out]
shum has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
EvanFreeman has joined #ruby
diegoviola has joined #ruby
C1V0 has quit []
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
luriv_ has quit [Read error: Connection reset by peer]
MartinCleaver has joined #ruby
guyz is now known as daynaskully
<ellisTAA> i’m getting closer … https://gist.github.com/ellisTAA/9da3ac90c7abec46dfc6#file-failed_test-rb-L6 any ideas on why string is blank?
tkuchiki has quit [Remote host closed the connection]
ezra has joined #ruby
tkuchiki has joined #ruby
EvanFreeman has quit [Ping timeout: 244 seconds]
tmk1108 has joined #ruby
posixpascal has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
blackoperat has quit [Ping timeout: 264 seconds]
kalusn has quit [Remote host closed the connection]
zachrab has quit [Remote host closed the connection]
jenrzzz_ has joined #ruby
russt has quit [Ping timeout: 264 seconds]
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
zachrab has joined #ruby
nunayerBeezwax has quit []
einarj has quit [Remote host closed the connection]
posixpascal has quit [Max SendQ exceeded]
posixpascal has joined #ruby
josephndenton has joined #ruby
jaequery has joined #ruby
tkuchiki has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
coderhs has joined #ruby
vjt has quit [Ping timeout: 272 seconds]
coderhs has quit [Client Quit]
linuxer1 has quit [Quit: linuxer1]
pandaant has quit [Remote host closed the connection]
fryguy9 has quit [Quit: Leaving.]
shime has joined #ruby
zachrab has quit [Ping timeout: 255 seconds]
pandaant has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
jenrzzz_ has quit [Ping timeout: 245 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
josephndenton has quit [Ping timeout: 264 seconds]
scripore has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
<skinux> What is this error trying to tell me? https://gist.github.com/skinuxgeek/d82474d7eed3b1e71d3e
diegoviola has quit [Quit: WeeChat 1.1.1]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Soliah has joined #ruby
ascarter has joined #ruby
<MartinCleaver> Question re: strftime @tzformat = "%F,%l:00 %p": I want exactly one space between the comma and the hour. But %l gives no space for 10, 11 and 12 whereas if I put “ %l” I get two spaces for 0-9 (one from the padding and another from the space I add).
gilest has joined #ruby
scripore has joined #ruby
<MartinCleaver> month has no-padding option. I don’t see the same for hour
deol has quit [Quit: Textual IRC Client: www.textualapp.com]
jonmorehouse has quit [Quit: WeeChat 0.4.3]
checkit has joined #ruby
DEA7TH has joined #ruby
adnauseaum is now known as AdNoosim
Hijiri has joined #ruby
scripore has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
<DEA7TH> Is there a shorthand for array.map{ |e| puts(e) } ? I want something like array.map(puts), similar to what we do in many functional languages
momomomomo has quit [Quit: momomomomo]
mmoretti has joined #ruby
DadoCe has joined #ruby
MartinCleaver has left #ruby [#ruby]
Aova has quit [Read error: Connection reset by peer]
deconfigured is now known as athan
d1n has joined #ruby
AdNoosim is now known as Adnoseum
x77686d has joined #ruby
tokik has joined #ruby
riotjones has joined #ruby
freerobby has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
freerobby has quit [Client Quit]
towski_ has quit [Quit: Leaving...]
Takle has quit [Remote host closed the connection]
zachrab has joined #ruby
adamjleonard has joined #ruby
<gr33n7007h> was MartinCleaver for real?
ghostmoth has quit [Quit: ghostmoth]
riotjone_ has quit [Ping timeout: 256 seconds]
Aova has joined #ruby
chipotle has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
dc_ has quit [Remote host closed the connection]
ta_ has joined #ruby
adriancb has quit [Remote host closed the connection]
snath has quit [Ping timeout: 255 seconds]
d1n has quit [Quit: Leaving]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
Mia has quit [Ping timeout: 255 seconds]
ki0 has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
phoo1234567 has quit [Quit: Leaving]
crueber has quit [Quit: Leaving.]
marr has quit [Ping timeout: 264 seconds]
netuoso has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Alina-malina has joined #ruby
Hijiri has quit [Ping timeout: 245 seconds]
echevemaster has joined #ruby
<netuoso> guys i am having a weird ass problem when working with Exercism.IO -- the test is using MiniTest to import my class and call a self method on itself. When I run the tests myself, I get the expected output. When run thru the MiniTest I get odd errors.
<netuoso> Please. If anyone can let me know if I am making an error or if the problem is somehow with MiniTest ?
LudicrousMango has joined #ruby
_maes_ has joined #ruby
fabrice31 has joined #ruby
Hijiri has joined #ruby
<weaksauce> netuoso why are you checking for str_1.length == 1
dspangenberg has quit [Ping timeout: 272 seconds]
<weaksauce> that looks like c code instead of ruby code.
<skinux> Could someone please help me with this error /usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find railties (>= 0) amongst
<skinux> [minitest-5.4.3, power_assert-0.2.2, test-unit-3.0.8] (Gem::LoadError)
<skinux> from /usr/lib/ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
<skinux> from /usr/lib/ruby/1.9.1/rubygems.rb:1231:in `gem'
<skinux> from /usr/local/bin/rails:22:in `<main>'
<skinux> Oops
davedev2_ has quit [Ping timeout: 276 seconds]
<netuoso> weaksauce: im new to ruby
<weaksauce> ah ok
<netuoso> weaksauce: i checked for one to ensure the test was handled in case the .split didnt like a single char
<weaksauce> netuoso it works fine on one char
<netuoso> excellent ill remove that nonsense. weaksauce: why is my output getting 19 when run thru MiniTest and 9 when run normall :( ?
davedev24_ has joined #ruby
<weaksauce> netuoso look at the times method on fixnum. and the count method on enumerable.
diegoviola has joined #ruby
<ellisTAA> does anyone see anything wrong with these two lines?? https://gist.github.com/ellisTAA/9da3ac90c7abec46dfc6#file-code-rb-L24-L25 i’m not getting the result i want
<weaksauce> and note that you can access characters by using str_1[index]
<weaksauce> or "string"[index]
_maes_ has quit [Ping timeout: 240 seconds]
<netuoso> i used pop to access the char and test it then remove it at once
<netuoso> how would you do that using an [index]
shime has quit [Ping timeout: 245 seconds]
<weaksauce> you can do all of this with one line of code
* netuoso take a seat.
<netuoso> im in a ruby class, thankfully
<weaksauce> open up irb and type 5.times do |x| puts x end
fabrice31 has quit [Ping timeout: 256 seconds]
<netuoso> right
<weaksauce> open up irb and type 5.times do |x| str_1[x] end
<weaksauce> 5.times do |x| puts str_1[x] end
<netuoso> ah
<netuoso> i see
<weaksauce> :)
shime has joined #ruby
<weaksauce> look up the block form of array#count
<netuoso> noted
beanHolez has quit [Ping timeout: 264 seconds]
<netuoso> i guess it kind of seems like the problem is my code?
<netuoso> not the MiniTest suite
<netuoso> even if the code is ugly and poorly factored, shouldnt it return the same output anyway
<weaksauce> probably. I didn't bother to trace down exactly what you are doing wrong
cphrmky has quit [Quit: Textual IRC Client: www.textualapp.com]
ta_ has joined #ruby
<netuoso> puts Hamming.compute('GGACGGATTCTG', 'AGGACGGATTCT')
<netuoso> gives me 9
<weaksauce> but you should never use $count
AlexRussia has joined #ruby
<netuoso> MiniTest told me it gave 19
P-NuT has quit [Quit: Leaving]
<weaksauce> that's a global variable
<weaksauce> @count is an instance variable
blackmesa has quit [Ping timeout: 246 seconds]
<weaksauce> and count is a local variable
ponga has quit [Remote host closed the connection]
MrSamuel has joined #ruby
<netuoso> would the instance variable be more fitting ?
ponga has joined #ruby
Rollabunna has quit [Quit: Leaving...]
juanpablo__ has quit [Quit: (null)]
<netuoso> so i can call it outside the recursive func
ferr has joined #ruby
juanpablo__ has joined #ruby
jottr has joined #ruby
iamjarvo has joined #ruby
<weaksauce> netuoso that's not a recursive function
<netuoso> ugh weaksauce you did it
<netuoso> lol it was my code
<weaksauce> ;)
<netuoso> im guessing the variable
<weaksauce> yes. you were calling self.compute more than once in the tests and kept adding to $count
thumpba has quit [Read error: Connection reset by peer]
<netuoso> AHHHHH
<netuoso> lol!
x77686d has quit [Quit: x77686d]
<netuoso> ding!
<weaksauce> netuoso pretty much never type $
<netuoso> thank you kind sir
<netuoso> i come from python and not even experienced in it
<weaksauce> unless you KNOW for sure that you need global state
thumpba has joined #ruby
ARCADIVS has joined #ruby
<netuoso> so my tests passed cause i called it once, they called it many times
<ellisTAA> i think my code isn’t being executed because it is being evaluated as not a fixnum … but it is … anyone know why my code isn’t working: https://gist.github.com/ellisTAA/9da3ac90c7abec46dfc6#file-code-rb-L24-L25
<weaksauce> use @ if you know that you will need the variable inside other methods in the class.
klmlfl has quit [Remote host closed the connection]
<weaksauce> try rewriting it using times and count netuoso
<weaksauce> then ping me
lepht has quit []
ta_ has quit [Ping timeout: 276 seconds]
ponga has quit [Ping timeout: 265 seconds]
lepht has joined #ruby
juanpablo__ has quit [Ping timeout: 246 seconds]
<netuoso> weaksauce: will do
blackmesa has joined #ruby
jpinnix______ has quit []
jpinnix______ has joined #ruby
apeiros_ has quit [Remote host closed the connection]
hmsimha has joined #ruby
gsd has joined #ruby
Adnoseum has quit []
stnsi|sleep is now known as seitensei
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce> ellisTAA like I said before. you should try the codeacademy courses so you understand ruby.
apeiros_ has joined #ruby
<ellisTAA> weaksauce: what do u think i dont understand?
BurningChrome_ has joined #ruby
<weaksauce> based on the code you keep posting; most of how ruby works.
snath has joined #ruby
<weaksauce> for instance why are you using map there?
incomprehensibly has quit []
<ellisTAA> is the problem with the code the syntax or is it the logic or something else?
incomprehensibly has joined #ruby
livingstn has joined #ruby
<weaksauce> fundamental concepts, logic
<weaksauce> syntax sometimes
stunder has quit [Remote host closed the connection]
<ellisTAA> what’s wrong with the logic?
BurningChrome has quit [Ping timeout: 256 seconds]
<weaksauce> you are trying to write a calculator that should calculate something.
Landshark753 has joined #ruby
<weaksauce> you are returning a string
cbetta has quit []
jenrzzz has quit [Ping timeout: 264 seconds]
jhass has quit [Quit: Bye]
<ellisTAA> yeah i’m going to convert the string afterwards
cbetta has joined #ruby
<weaksauce> why are you using map?
nanoyak has quit [Quit: Computer has gone to sleep.]
jhass has joined #ruby
<weaksauce> what does map do?
<ellisTAA> because i have an array with values and based on the tpye of element and position i’m doing different things
zachrab has quit [Remote host closed the connection]
<ellisTAA> i’m trying to create an RPN calculator
djbkd_ has joined #ruby
<netuoso> weaksauce: works great. looks a bit more ruby-like ?
jhass has quit [Client Quit]
zachrab has joined #ruby
x77686d has joined #ruby
jhass has joined #ruby
x77686d has quit [Client Quit]
ta_ has joined #ruby
Landshark753 has quit [Client Quit]
ramfjord has joined #ruby
sambao21 has joined #ruby
djbkd has quit [Remote host closed the connection]
<weaksauce> netuoso closer warmer