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
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]
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]
<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.
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]
<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]
<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]
<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?
<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'}
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
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
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.]
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
<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]
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)
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 :) )
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]
<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]
<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>
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?
<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]
<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]
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>
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>
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
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.
<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