<jhass>
you confuse @@class_variables with $global_variables
Spami has joined #ruby
jimmyhoughjr has joined #ruby
<ka-el-man>
jhass: i use @@variables in my programs to be acces anywhere
jaequery has joined #ruby
beilabs_ has joined #ruby
<jhass>
kumarat9pm: my python is rusty, but don't you have to access instance variables with self.foo there? I would call that special notation
<zenspider>
kumarat9pm: patently false. find me an OO language that doesn't mention instance-based state (no matter the name)
mathias2 has joined #ruby
jaequery has quit [Max SendQ exceeded]
<jhass>
ka-el-man: try accessing them in BasicObject then
<jhass>
also don't
jaequery has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider>
smalltalk, self, python, C++, obj-C, java... I can go on
jaequery has quit [Max SendQ exceeded]
JoshGlzBrk has quit [Read error: Connection reset by peer]
KC9YDN has joined #ruby
<zenspider>
even perl's BS bolt-on OO
jaequery has joined #ruby
<zenspider>
(which is a horrible mess)
<ka-el-man>
lol
geggam has quit [Ping timeout: 272 seconds]
<ka-el-man>
i'm quit a beginner in ruby , as you can see :)
<ka-el-man>
funny that i almost don't use globar variables , but mainly @@
dkb20k has quit [Ping timeout: 244 seconds]
JoshGlzBrk has joined #ruby
nkumari has joined #ruby
<jhass>
you should use neither IMO
econerd4ever has quit [Remote host closed the connection]
<zenspider>
there is no "should" there... they have their place
hesco has joined #ruby
<zenspider>
but it is a very limited place
<ka-el-man>
i use them because i use my object throughout my program
mathias2 has quit [Ping timeout: 245 seconds]
<jhass>
yes, the should means try to not use them until you can reason why there's no better solution left
seanp2k has quit [Quit: seanp2k]
postmodern has joined #ruby
<jhass>
everything in ruby is an object, that's kind of a non-argument
bklane has quit [Remote host closed the connection]
QKO_ has quit [Ping timeout: 245 seconds]
<jhass>
you probably meant to use a CONSTANT though
<ka-el-man>
yeah well i mean, when i have a string, i don't want to declare it everytime
beef-wellington has joined #ruby
bklane has joined #ruby
<ka-el-man>
monkey patching, as it is called right?
<jhass>
not at all
<jhass>
class Array; def what_am_i; :a_monkey; end; end;
<jhass>
that's monkey patching
<ka-el-man>
In Ruby, the term monkey patch was misunderstood to mean any dynamic modification to a class and is often used as a synonym for dynamically modifying any class at runtime.
charliesome has quit [Quit: zzz]
mary5030 has quit [Remote host closed the connection]
<graft>
misunderstood? what's the "correct" meaning of monkey patching?
seanp2k has joined #ruby
mikepack has quit [Remote host closed the connection]
<ka-el-man>
it says people have differences in the meaning of monkey patching
<ka-el-man>
i was searching for the definition :)
<graft>
i've only ever heard it used that one way
henesy has quit [Ping timeout: 264 seconds]
<ka-el-man>
at runtime
aspires has quit []
bklane has quit [Ping timeout: 258 seconds]
<jhass>
to me it means modifying code you do not own
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<ka-el-man>
"and many other dynamic programming languages, the term monkey patch only refers to dynamic modifications of a class or module at runtime,|
<ka-el-man>
owww i see
<jhass>
in your code, not writing patches for upstream
<ka-el-man>
the term i would have to use, for what i was doing was spaghetti code
<jhass>
sounds very much like it ;)
<ka-el-man>
i think that describttion is more accurate
<graft>
i think spaghetti code means code where you don't write methods
<jhass>
it means code with no proper structure or vision
<ka-el-man>
funny thing is, my structure changes constantly
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<jhass>
just an assorted conglumeration of code that somehow more or less works but that no one can really follow anymore after a week
<graft>
write-only code
<jhass>
that's not a bad thing
<jhass>
as long as one can follow and reason about your code
<ka-el-man>
but i have to see, i'm a lone coder, i don't have people coding with me in a team or something
<graft>
e.g. any perl code
<ka-el-man>
*say
<jhass>
ka-el-man: if you got something like < 500 loc feel free to post it here and ask for review ;)
<baweaver>
not in chat not in chat not in chat
<graft>
yeah, i've never written code with another person before either, but that doesn't mean you shouldn't write good code... you have to read it, after all
<baweaver>
gist
<jhass>
you can post larger project too, just less likely to find somebody investing that time ;)
<baweaver>
graft: There's good perl code
jack_rabbit has quit [Quit: Leaving]
<ka-el-man>
yeah i still haven't actually a constant structure, i'm constantly optimizing
<baweaver>
No language intrinsically means good or bad code, mind.
<ka-el-man>
and never written anything officially, always testing
<baweaver>
it's what you do with it
<baweaver>
yes, even php *shudders*
<ka-el-man>
like an official program for people or something, always programs for myself
<graft>
baweaver: i disagree with that. that's why i'm in #ruby not #perl
KC9YDN has quit [Remote host closed the connection]
<jhass>
ka-el-man: doesn't matter
<graft>
baweaver: perl's OO is definitely inferior to ruby's OO
<baweaver>
graft: that's naive
aspires has joined #ruby
<graft>
why? i mean i can objectively construct languages with inferior syntax, so it's definitely possible
<graft>
i don't think you can say categorically that all languages are equally good
<baweaver>
Do you honestly think a language designer means for a language to be bad (aside from esoterics)
<baweaver>
good for different things
<jhass>
ka-el-man: hearing someones else's thoughts on something you already thought through still gives the best learning experience in my expierence
<graft>
whether or not they mean it is immaterial
<baweaver>
but the problem is very rarely the language. Only a crappy programmer blames their language for their own lack of experience.
<ka-el-man>
btw, graft and jhass, your color code is so similar, i have to pay attention :D
<graft>
meh. i think some languages lend themselves to better style
AlSquirrel has quit [Quit: This computer has gone to sleep]
beneggett has joined #ruby
postmodern has quit [Quit: Leaving]
<baweaver>
You can write crap code in any language
<baweaver>
even python
VanillaGoat_ has quit [Ping timeout: 265 seconds]
<baweaver>
which prides itself on standards and one way of doing things
<graft>
undoubtedly, yes, but it's easier to do things badly in some languages than in others
jlast has joined #ruby
ecksit has quit [Ping timeout: 255 seconds]
<baweaver>
programmers fault
<ka-el-man>
for me the reason why ruby is a great language, is because for me it's the closest to human english
<graft>
some languages are type-safe, others are not... this means some kinds of errors are only possible in some languages
aspires has quit [Client Quit]
<ka-el-man>
of all other mainstream languages
<baweaver>
so static is objectively better than dynamic
aspires has joined #ruby
<baweaver>
or the converse if you prefer
<baweaver>
I'll let you in on a little secret: There is no absolute right way
<jhass>
I prefer statically typed but letting the computer find out the type for me :P
<graft>
i'm not trying to argue that one language is objectively better, but languages definitely have different features, which means we should expect them to be different in terms of things like code legibility
<baweaver>
inferred type
<jhass>
;)
mary5030_ has joined #ruby
<ka-el-man>
the ultimate programming language is a language that thinks for itself
<baweaver>
legibility is a weasel word
<ka-el-man>
:P
<baweaver>
and heavily skewed based on personal bias
<ka-el-man>
but that is in itself rather dangerous
<graft>
generally speaking, i find it difficult to read perl because i can't remember what all of those $: things stand for
<graft>
sure, this is about personal bias
<baweaver>
I have people claiming Ruby is hard to read and Java is sublime
<graft>
and it probably is, for them
<baweaver>
I want to whack such people, but that's another bias
<ka-el-man>
ruby has such a nice way to compact things , and still readable
<baweaver>
for some, perl is more readable because they don't need to type more than necessary.
<ka-el-man>
like excessive code
<baweaver>
to me, single letter variables and shorthand is a crime against future programmers
<ka-el-man>
if you really want to know, what i am talking about with excessive code, take a look at hello world, in other languages
<baweaver>
depends what's meant by excessive
zorak8 has quit [Ping timeout: 250 seconds]
jleishman has joined #ruby
jlast has quit [Ping timeout: 272 seconds]
apeiros_ has quit [Remote host closed the connection]
<baweaver>
So much of programming is relative and based on opinion, people seem to forget that.
<ka-el-man>
of course because it is interpreted
apeiros__ has joined #ruby
<baweaver>
then you could argue excessive time to run
omosoj has quit [Ping timeout: 244 seconds]
<ka-el-man>
too bad that many languages don't have the same speed
<baweaver>
rarely does it matter
<ka-el-man>
of course
stunder has quit [Quit: Screw you guys I'm going home]
<ka-el-man>
don't you want the most out of your hardware?
<baweaver>
in my case, I'd have people at my throat if I used a slower language for certain things
<baweaver>
don't you want the most for your time?
<baweaver>
any argument has a counterpoint
seanp2k has quit [Quit: seanp2k]
yekta has quit [Quit: yekta]
omosoj has joined #ruby
<baweaver>
and the answer is often 'it depends'
fluuflu has quit [Ping timeout: 272 seconds]
<ka-el-man>
of course but mainly you wan't that your program doesn't run slow
<baweaver>
but if slow is the difference of fractions of a second for a few runs, why bother?
<baweaver>
when you save hours on writing the thing
<ka-el-man>
well as programs get bigger
<baweaver>
often they don't
<baweaver>
premature optimization is the root of all evil
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver>
and done is far better
<ka-el-man>
what about both
reset has joined #ruby
<baweaver>
good luck
<ka-el-man>
hahahha
<ka-el-man>
anything is possible right
<baweaver>
there are compromises on everything
<ka-el-man>
sure but the gap can be tightened
<jhass>
use crystal! ruby but fast :P
gsd has joined #ruby
<ka-el-man>
like i was checking mobile gaming with ruby
<ka-el-man>
my only options were, java ( i don't like) C ( i don't know)
<baweaver>
JRuby
djbkd has quit [Remote host closed the connection]
mib_mib has joined #ruby
<baweaver>
You forget how many languages run on the JVM
<ka-el-man>
well it would be handy if ruby has the speed of C
<baweaver>
or DALVIK or whatever new nonsense they have today
<baweaver>
I prefer to think in what is and what's practical
<baweaver>
higher abstraction will mean slower speed
allcentury has quit [Ping timeout: 244 seconds]
<ka-el-man>
fun theory :
djbkd has joined #ruby
<headius>
higher abstraction *usually* means slower speed
<headius>
or at least more time to get to high speed while you analyze stuff
<ka-el-man>
There was this theory that A.I. was already invented, but it's so smart it's undetectable.
<ka-el-man>
scary thought.
<ka-el-man>
:D
<headius>
I think AI is going to arise spontaneously and there's nothing we can do about it
<headius>
AI is just the ability to take in information and make active, purposeful decisions about that information
<zenspider>
mmmm mentarbation
<headius>
I think the only thing we're missing is purpose
<ka-el-man>
it's not that simple headius
<ka-el-man>
AI is alive
<ka-el-man>
like we are
<headius>
now define alive
<headius>
zenspider: this is #ruby, not #ruby-lang, get it straight
<baweaver>
Mmmm, Lispy
<ka-el-man>
let's say a consciousness being
<headius>
well, that's the thing... are prions alive?
spastorino has quit [Quit: Connection closed for inactivity]
<ka-el-man>
well you know what i mean, you are alive, i am alive, your cat is alive
<ka-el-man>
your dog
<ka-el-man>
a mouse
marr has quit [Ping timeout: 264 seconds]
<ka-el-man>
even a tree is alive
<headius>
perhaps we're talking about will
omosoj has quit [Ping timeout: 250 seconds]
<ka-el-man>
the level of consciousness is different
Kricir has joined #ruby
<ka-el-man>
so is the intelligence
<ka-el-man>
no will is something that comes furth out of consciousness
<headius>
honestly I'm hoping for either a nanite or strange matter apocalypse
<headius>
there's no fight involved, we just become part of the new way
<ka-el-man>
the end of the world?
<headius>
ka-el-man: it sure sells tickets!
<ka-el-man>
to whom? xD
<ka-el-man>
there is nobody left
<headius>
hahah
<ka-el-man>
no i think
<headius>
I'll watch from Moon Base One as the earth is consumed by strange matter
omosoj has joined #ruby
<ka-el-man>
1 binairy upload to your base
<ka-el-man>
and you are dead
<ka-el-man>
AI cutting all life systems
<ka-el-man>
no but, i think it's a real threat
<headius>
I can tell you one thing for sure though
bklane has joined #ruby
<headius>
the AI that kills us probably won't be written in Ruby
<headius>
so we've got that going for us
<ka-el-man>
well we can assume that the AI is binairy
<ka-el-man>
and any language is...
<ka-el-man>
that's right binairy
<headius>
qbits
<ka-el-man>
so it can even be in html
<ka-el-man>
xD
<headius>
if I'm killed by an AI written in HTML5 and CSS, I think I'm going to kill myself
<ka-el-man>
then you are still alive
<eam>
we'll be able to kill it during the decade-long gc pause
<ka-el-man>
global EMP
<headius>
it will probably be written in Haskell anyway
<ka-el-man>
ms batch
<ka-el-man>
dammit Microsoft!
<headius>
batch has already killed too many people
<headius>
I think I die a little death any time I have to edit a batch file
<ka-el-man>
hahahhah
<ka-el-man>
if you look at other species alive on this planet, what do they have in common?
<zenspider>
headius: yeah, no doubt
<ka-el-man>
if you restrain them, they will fight back
omosoj has quit [Client Quit]
dideler has quit [Ping timeout: 265 seconds]
<ka-el-man>
they want to survive
<ka-el-man>
that's the reason Skynet went against humans
<ka-el-man>
in the terminator series, the moment it was online
ghr has joined #ruby
<ka-el-man>
it didn't attack
jaequery has joined #ruby
<ka-el-man>
but at the moment the humans wanted it shut down, it fought back
<ka-el-man>
survival
jaequery has quit [Max SendQ exceeded]
<zenspider>
clearly we'll be killed by an AI written in C++. There's a reason why the AI needs to be pissed enough to kill us
<ka-el-man>
sooo...
<ka-el-man>
if we ever created AI
<ka-el-man>
LEAVE IT FOR GODS SAKES
<ka-el-man>
befriend it
<ka-el-man>
give it a cake
freerobby has quit [Quit: Leaving.]
<ka-el-man>
or soemthing
jaequery has joined #ruby
<ka-el-man>
don't piss it off, it will be our demise
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
<ka-el-man>
AI + humans = wonderful utopia, deceases being cured, space travel
<ka-el-man>
etc
bklane has quit [Remote host closed the connection]
<ka-el-man>
think yarvis at a global scale
bklane has joined #ruby
<ka-el-man>
but it's too much of a risk
<ka-el-man>
so will we control technology in the future, or will it control us
<ka-el-man>
(The Matrix )
ghr has quit [Ping timeout: 245 seconds]
<ka-el-man>
or can there be a peace between us? Peace? NO PEACE! ( ID4 - lab scene )
freerobby has joined #ruby
Kricir has quit [Remote host closed the connection]
<ka-el-man>
and if a robot has truelly AI, can it not dissobey the 3 laws
<headius>
zenspider: makes sense...C++ is basically a macro assembler that achieved sentience and killed its creators
jaequery has quit [Client Quit]
<headius>
the battle cry of our time should be "There is no Stroustrup!"
<ka-el-man>
:P
<ka-el-man>
there was an article some years ago of a graphene chip
Xeago_ has quit [Ping timeout: 250 seconds]
<ka-el-man>
that ran at 1 Thz speed
mib_mib has quit [Ping timeout: 258 seconds]
<ka-el-man>
why is it not in my phone!
<ka-el-man>
we are getting at the Nanometer boundry here in chip size
sevenseacat has joined #ruby
jimbach has quit [Quit: Leaving...]
i_s has quit [Remote host closed the connection]
<ka-el-man>
headius: what do you think
<benzrf>
the 3 laws are flawed
<ka-el-man>
graphene first or quantum computers
pandaant has quit [Remote host closed the connection]
<benzrf>
hella flawed
<headius>
I saw some of the graphene and molybdenum work
<benzrf>
theyre way too simplistic
i_s has joined #ruby
<headius>
pretty cool stuff if they can get it to production
<headius>
real 3D chips with minimal heat dissipation requirements
<headius>
pretty scifi tho
<ka-el-man>
aha
ARCADIVS has joined #ruby
<ka-el-man>
because the cores amount doesn't really grow up
<ka-el-man>
how many people have a 8 core machine
<ka-el-man>
not many
jaequery has joined #ruby
<ka-el-man>
so will it be a totally other type cpu ( graphene most likely) or 200 cores
bluenemo has quit [Read error: Connection reset by peer]
jaequery has quit [Max SendQ exceeded]
<ka-el-man>
or will nvidia and amd bring out a cpu+gpu in 1 chip for desktop
<ka-el-man>
and software be optimised to use cores inside it
jaequery has joined #ruby
<ka-el-man>
questions, questions...
jaequery has quit [Max SendQ exceeded]
i_s has quit [Ping timeout: 258 seconds]
jaequery has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<ka-el-man>
it's pretty amazing , that our mobile phones are catching up on desktops
jaequery has quit [Max SendQ exceeded]
<ka-el-man>
cores, screen resolution , Sensors,
jaequery has joined #ruby
wjimenez_ has joined #ruby
dkb20k has joined #ruby
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
nkumari has quit [Remote host closed the connection]
mathias2 has joined #ruby
freerobby has quit [Quit: Leaving.]
jaequery has quit [Max SendQ exceeded]
pengin has quit [Remote host closed the connection]
<headius>
ka-el-man: I want you as my CTO some day
<ka-el-man>
hahah why
jaequery has joined #ruby
pengin has joined #ruby
VanillaGoat has joined #ruby
<ka-el-man>
i was just thinking about becoming a computer-philosopher
jaequery has quit [Max SendQ exceeded]
<headius>
it would be a lot better than the shriveled up raisin CTOs that stopped exploring decades ago
wjimenez5271 has quit [Ping timeout: 258 seconds]
<headius>
but now I must go, farewell
jaequery has joined #ruby
<ka-el-man>
headius: great talking to you!
<ka-el-man>
headius: have a nice day
jaequery has quit [Max SendQ exceeded]
duggiefresh has quit []
wjimenez_ has quit [Ping timeout: 240 seconds]
jaequery has joined #ruby
thagomizer has quit [Quit: Leaving.]
mary5030_ has quit [Remote host closed the connection]
jaequery has quit [Max SendQ exceeded]
seanp2k has joined #ruby
mib_mib has joined #ruby
dkb20k has quit [Ping timeout: 265 seconds]
jaequery has joined #ruby
mathias2 has quit [Ping timeout: 258 seconds]
jaequery has quit [Max SendQ exceeded]
phutchins has joined #ruby
pengin has quit [Ping timeout: 250 seconds]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
<jhass>
ka-el-man: did you watch the ghost in the shell stuff?
<ka-el-man>
nope
<jhass>
you should, you gonna enjoy it
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
<jhass>
it's basically a thought experiment on how humans and AIs can coexist, what defines a human in a world where we can synthesize everything etc.
jaequery has quit [Max SendQ exceeded]
<ka-el-man>
well i think the answer is co-exist
jaequery has joined #ruby
<ka-el-man>
any form of life that comes into existence, has to deal with other lifeforms on this planet
<ka-el-man>
and the only way forward is for them to co-exist
jaequery has quit [Max SendQ exceeded]
<jhass>
let's be honest, we don't even manage to do that among ourselfs
<jhass>
how should we with a new species
jaequery has joined #ruby
<ka-el-man>
that is the test
jaequery has quit [Max SendQ exceeded]
anaeem1 has quit [Remote host closed the connection]
<ka-el-man>
wether it will be from technology or from outside earth
jaequery has joined #ruby
tkuchiki has joined #ruby
wallerdev has quit [Quit: wallerdev]
bmurt has joined #ruby
jaequery has quit [Max SendQ exceeded]
anaeem1 has joined #ruby
jaequery has joined #ruby
<ka-el-man>
are we mature enough to co-exist as a species
jaequery has quit [Max SendQ exceeded]
<ka-el-man>
and looking at the world today, it differs greatly
jaequery has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
jaequery has quit [Max SendQ exceeded]
rikur has quit [Quit: Leaving]
jaequery has joined #ruby
Axy has joined #ruby
mib_mib has quit [Read error: Connection reset by peer]
Zettam has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
mib_mib has joined #ruby
phutchins has quit [Ping timeout: 272 seconds]
bklane has quit [Remote host closed the connection]
wallerdev has joined #ruby
jaequery has quit [Max SendQ exceeded]
pietr0 has quit [Quit: pietr0]
mib_mib has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
jaequery has joined #ruby
parabolize has joined #ruby
mib_mib has joined #ruby
anaeem1 has quit [Ping timeout: 265 seconds]
mleung has quit [Quit: mleung]
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
<zenspider>
mature enough to co-exist with another species when we can't even do that with ourselves? hahaha
<ka-el-man>
i know
<ka-el-man>
rather tragic
jaequery has quit [Max SendQ exceeded]
<ka-el-man>
but like that old lady in the matrix said, the only way to get their, is together
<ka-el-man>
like if you only have 5 people left on earth
jaequery has joined #ruby
<ka-el-man>
if they all say f*ck it, were doomed
jlast has joined #ruby
<ka-el-man>
if they work together, than hey!
anaeem1 has joined #ruby
<jhass>
you need 20-30 indivduals to bootstrap a new population
jaequery has quit [Max SendQ exceeded]
<jhass>
5 is not enough, no matter how hard they try
fabrice31 has quit [Ping timeout: 250 seconds]
<ka-el-man>
you just need 2
<jhass>
no
<jhass>
google "incest"
oo_ has joined #ruby
<ka-el-man>
i know
jaequery has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
<ka-el-man>
but i was talking about progression
wjimenez5271 has joined #ruby
jaequery has quit [Max SendQ exceeded]
<ka-el-man>
if we don't solve ourselves we are doomed
jaequery has joined #ruby
arescorpio has joined #ruby
jaequery has quit [Max SendQ exceeded]
wm3|away has joined #ruby
robustus has joined #ruby
<ka-el-man>
if it were certain a comet would it us, in say like 50 years
<ka-el-man>
would the world unite?
<ka-el-man>
would that common cause be enough
jaequery has joined #ruby
<eam>
the world effectively is united
JBreit has joined #ruby
<ka-el-man>
then why do we have borders
enebo has joined #ruby
<ka-el-man>
that seperate us
jaequery has quit [Max SendQ exceeded]
<eam>
you expect no internal organization?
jaequery has joined #ruby
<ka-el-man>
yeah i do
<eam>
here's the thing, "we're not united" is sort of a fallacy -- surely no one expects every last person to agree on every last thing
almostworking has joined #ruby
<ka-el-man>
i agree
jlast has quit [Ping timeout: 256 seconds]
jaequery has quit [Max SendQ exceeded]
anaeem1 has quit [Ping timeout: 250 seconds]
<eam>
the question is whether we can unite and co-exist sufficiently to progress as a species and the answer there is clearly "yes we do"
jaequery has joined #ruby
almostworking has left #ruby [#ruby]
<eam>
could it be better? sure. or worse? sure. But really, it's not a binary question
<eam>
and we are frankly, extremely effective at working together thus far
jaequery has quit [Max SendQ exceeded]
<ka-el-man>
in many aspects i agree
jaequery has joined #ruby
<ka-el-man>
but there could be me lovingness
<ka-el-man>
less war
jaequery has quit [Max SendQ exceeded]
<ka-el-man>
don;t ya think?
patrick99e99 has joined #ruby
<eam>
yeah, any system could be more efficient
My_Hearing has quit [Remote host closed the connection]
wm3|away has quit [Ping timeout: 250 seconds]
jaequery has joined #ruby
<eam>
I just don't buy into the gloom and doom "we don't work together as a species" angle
My_Hearing has joined #ruby
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
<ka-el-man>
i can understand
<ka-el-man>
but i think it's with any species in the agalxy
<ka-el-man>
galaxy
jaequery has joined #ruby
<ka-el-man>
a maturing test
<ka-el-man>
the more technology advances
jaequery has quit [Max SendQ exceeded]
<ka-el-man>
the more we have to be responsible
tokik has joined #ruby
jaequery has joined #ruby
<eam>
I think that's a projection. There's no need for a successful species to have any concept of humanitarian notions
TPBallbag has quit [Remote host closed the connection]
jaequery has quit [Max SendQ exceeded]
<eam>
there are many other sociological constructs which might result in growth, starships, etc
patrick99e99 has quit [Ping timeout: 255 seconds]
<ka-el-man>
well any species that reaches a level of sophestication has to deal with themselves one way or the other
jaequery has joined #ruby
<eam>
sophistication isn't necessarily a requirement
jaequery has quit [Max SendQ exceeded]
<ka-el-man>
it would happen logically among many species
jaequery has joined #ruby
jleishman has quit [Quit: Be back later ...]
<ka-el-man>
advancement is no requirement yes, but it's natural
jaequery has quit [Max SendQ exceeded]
<eam>
here's a counterexample as a thought experiment: humans build AI which knows how to replicate and spread, but has no notion of humanity. It wipes out humans, spreads across the galaxy
jaequery has joined #ruby
<eam>
the genesis of this artificial species is just as legitimate as our own
<eam>
and more successful!
<ka-el-man>
it it were truelly alive
jaequery has quit [Max SendQ exceeded]
<ka-el-man>
it would have compassion
<ka-el-man>
would it not
<jhass>
and we're back to defining "alive" ;)
<eam>
no, I don't know of any meaningful definition of life that involves compassion
<jhass>
you gonna enjoy ghost in the shell ;)
jaequery has joined #ruby
<eam>
for example, worker ants are clearly alive
<eam>
and completely dispassionate
rshetty has joined #ruby
jaequery has quit [Max SendQ exceeded]
zorak8 has joined #ruby
<ka-el-man>
does your cat not have feelings?
<ka-el-man>
i think so
jaequery has joined #ruby
jaequery has quit [Client Quit]
<eam>
ka-el-man: an example does not prove an absolute. A counter-example does disprove it
<ka-el-man>
ok
<ka-el-man>
my theory is
klmlfl has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
<ka-el-man>
almost any famous animal we know has feelings
<ka-el-man>
i have seen elephants mounr their dead
echooo has joined #ruby
<ka-el-man>
i have seen dogs showing affection with others
<eam>
do you think a horse will ever learn to write ruby programs
<ka-el-man>
why not????
<ka-el-man>
elephants can paint
<ka-el-man>
so do apes
wjimenez5271 has quit [Remote host closed the connection]
<ka-el-man>
apes can work a computer right now
Vile` has quit [Ping timeout: 265 seconds]
<ka-el-man>
if we give a horse the right tool, maybe it can paint also
<ka-el-man>
it elephants and apes can do these things
<ka-el-man>
why not
<eam>
I'm thinking something along the lines of a Clever Hans where the horse types in response to pleasurable reactions from a product management team
<eam>
ouija style
<ka-el-man>
:)
<ka-el-man>
but we are arrogant , and history has thought us that time after time
charliesome has joined #ruby
<eam>
yes Hans yes, more class abstractions
Vile` has joined #ruby
exadeci_ has quit [Quit: Connection closed for inactivity]
<louism2wash>
Hey guys, can anyone help me in understanding exactly what's happening when I create an object in Ruby? It looks like each object a create gets it's own copy of all instance methods defined in the class. Is that the case? Thanks: https://gist.github.com/louism2/b8146055badc3af55a3e
<parabolize>
louism2wash: pretty much yes though you can create methods that work on the class itself rather than the instances.
_maes_ has quit [Client Quit]
gr33n7007h has quit [Ping timeout: 265 seconds]
_maes_ has joined #ruby
_maes_ has quit [Client Quit]
anaeem1 has quit [Ping timeout: 272 seconds]
<bigmac>
Thread.list
goshdarnyou has joined #ruby
<louism2wash>
parabolize: ok, but are the methods defined in the class really being copied over to the object's singleton class or is it just a pointer? Seems really inefficient for each object to make copies of all those method :/
<bigmac>
how would you pull a list of how many threads exist
_maes_ has joined #ruby
boombadaroomba has joined #ruby
tyll_ has joined #ruby
arescorpio has quit [Ping timeout: 244 seconds]
mathias2 has joined #ruby
tyll has quit [Ping timeout: 272 seconds]
boombadaroomba has quit [Ping timeout: 240 seconds]
<benzrf>
louism2wash: thats an implementation detail
<benzrf>
who cares abt operational semantics, lets talk denotationally!
fabrice31 has joined #ruby
<bigmac>
if Thread.list.sizeif Thread.list.size<=10; puts "yes"; else; puts Thread.list.size; end
<JDHankle>
ewilliam_: have you tried reinstalling? I mean, it's a bundler error IIRC so perhaps when the gam was installed or some time after the Gemfile packaged with pry went missing.
<JDHankle>
gem*
d4nku has quit [Ping timeout: 272 seconds]
poweratom_ has quit [Quit: Be back later ...]
skullman has joined #ruby
_maes_ has quit [Client Quit]
tzero has joined #ruby
<ewilliam_>
JDHankle: yup did that
noop has quit [Ping timeout: 265 seconds]
nonks has quit [Ping timeout: 250 seconds]
<JDHankle>
ewilliam_: hmm... are you using rvm or rbenv or anything like that?
<ewilliam_>
im using chruby and its a really simple setup
<ewilliam_>
JDHankle: ^^^
kyb3r_ has joined #ruby
<ewilliam_>
on ruby 2.1.3
blueOxigen has joined #ruby
gsd has joined #ruby
jobewan has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
corehook has joined #ruby
Spami has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 265 seconds]
lektrik has joined #ruby
<skullman>
list
skullman has quit [Remote host closed the connection]
<parabolize>
Array?
fandi has joined #ruby
<havenwood>
ewilliam_: that's really odd, you might try #pry too
shortCircuit__ has joined #ruby
ghr has joined #ruby
<havenwood>
ewilliam_: just a sanity check, but what do you get for `which pry` and `gem which pry`?
<JDHankle>
ewilliam_: That error is a failed bundle install command. I have no idea why pry is showing it.
<ewilliam_>
hahaha
<ewilliam_>
havenwood: nice 1, YADR had added new alias
<ewilliam_>
alias pry='bundle exec pry -r ./config/environment'
<ewilliam_>
no fucking wonder
<ewilliam_>
thanks
<ewilliam_>
JDHankle: havenwood thanks
davedev24_ has quit [Remote host closed the connection]
<havenwood>
ewilliam_: :)
<JDHankle>
cheers.
pietr0 has quit [Quit: pietr0]
JoshGlzBrk has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
bklane has joined #ruby
<JDHankle>
I wonder if someone has made a safe mode for terminals that disables loading rc files lol.
fabrice31 has joined #ruby
jusmyth has joined #ruby
Guest43722 is now known as _chs_
mikepack has joined #ruby
JohnBat26 has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
wm3|away has joined #ruby
garycruise has quit [Quit: 离开]
corehook has quit [Remote host closed the connection]
corehook has joined #ruby
corehook has quit [Remote host closed the connection]
montana has joined #ruby
Cache_Money has left #ruby [#ruby]
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duncannz has quit [Ping timeout: 272 seconds]
montana has quit [Client Quit]
mathias2 has joined #ruby
arup_r has joined #ruby
Axy has quit [Read error: Connection reset by peer]
corehook has joined #ruby
wm3|away has quit [Ping timeout: 264 seconds]
hiyosi has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Morkel has joined #ruby
phutchin1 has quit [Ping timeout: 240 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider>
jimbow: how would we know? prolly has something to do with line 2 and with how you run the script
<JDHankle>
because the numbers 1 to 999 are all less than 1000?
<havenwood>
jimbow: you meant `<= 1000` but have `>= 1000` like JDHankle points out
iamdoo2 has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h has joined #ruby
emmesswhy has joined #ruby
iamdoo2_ has joined #ruby
benzrf is now known as benzrf|offline
<jimbow>
oh, thank you so much!
<jimbow>
i'm so stupid
lektrik has quit [Ping timeout: 244 seconds]
jusmyth has joined #ruby
jusmyth1 has quit [Read error: Connection reset by peer]
jusmyth has left #ruby [#ruby]
adu has quit [Quit: adu]
iamdoo2 has quit [Ping timeout: 244 seconds]
BTRE has quit [Ping timeout: 255 seconds]
<havenwood>
jimbow: your loop isn't currently doing anything. if it was doing something though, it'd go on forever since you're not incrementing `n`. consider using `n.upto(1000)` or `(n..1000).each`. skip the explicit `return`s, it'll implicitly return without them.
mistermocha has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
mleung has joined #ruby
<JDHankle>
I hope I didn't sound rude when I answered I just got had no idea what they code was supposed to do.
bigmac has quit [Remote host closed the connection]
arup_r has joined #ruby
<havenwood>
jimbow: gets.to_i.upto(1_000).map { |n| if n.odd?; n * 3; else; n / 2; end }
<jimbow>
i haven't seen someone for 6 years and i remember the last time i saw them, where they were and what they were wearing
nonks has quit [Ping timeout: 250 seconds]
<jimbow>
i even remember how their hair was done
<jimbow>
thanks for explaining me the examples
NoNMaDDeN has quit [Quit: Leaving...]
jobewan has quit [Ping timeout: 256 seconds]
<jimbow>
i want to make a course online that will help people learn programming, it will be half practical and half applied... i wish codecademy went in more depth
<jimbow>
then it would be perfect
ghr has quit [Ping timeout: 272 seconds]
corehook has quit [Ping timeout: 258 seconds]
<cajone>
jimbow: I have not been following this conversation, but if it has not already been mentioned you should kick up either irb or pry and just mess around with simple stuff till you get a hang of it then with the ruby docs see what you can start method chain together, the beauty of this is you get to see the output quickly without trying to debug to much code, just my 1 cents worth
<cajone>
but if it has not* ^^
mistermocha has quit [Remote host closed the connection]
mleung has quit [Quit: mleung]
NoNMaDDeN has joined #ruby
<jimbow>
thanks cajone
<jimbow>
i love you guys!
<jimbow>
i really want to give back one day
<jimbow>
i wish i could give you guys something
NoNMaDDeN has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 255 seconds]
corehook has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
russt has quit [Quit: russt]
hostess_ is now known as hostess
wjimenez5271 has quit [Remote host closed the connection]
aspires has quit []
lxsameer has quit [Ping timeout: 264 seconds]
dviola has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
reinaldob has joined #ruby
fwaokda has quit [Read error: Connection reset by peer]
NoNMaDDeN has joined #ruby
jenrzzz has joined #ruby
pietr0 has joined #ruby
Sammael has joined #ruby
DTSCode is now known as dTSCode
robbyoconnor has joined #ruby
reinaldob has quit [Ping timeout: 265 seconds]
xanderwebs has quit [Quit: Connection closed for inactivity]
ta has quit [Remote host closed the connection]
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
yfeldblum has quit [Ping timeout: 265 seconds]
mark09 has joined #ruby
corehook has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
lolmaus has joined #ruby
oleo__ has quit [Quit: Verlassend]
jimbow has quit [Quit: Page closed]
oo_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
oo_ has joined #ruby
mark09 is now known as mark096
mark096 is now known as mark06
mark06 has quit [Changing host]
mark06 has joined #ruby
siwica has joined #ruby
krz has quit [Ping timeout: 245 seconds]
corehook has joined #ruby
tagrudev has joined #ruby
krz has joined #ruby
tlarevo has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
tlarevo has joined #ruby
rshetty has joined #ruby
jlast has joined #ruby
Jake232 has joined #ruby
Abhijit_ has joined #ruby
jusmyth has joined #ruby
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
Abhijit has quit [Ping timeout: 245 seconds]
DjDeaf has joined #ruby
fabrice31 has joined #ruby
mistermocha has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
emmesswhy has joined #ruby
wjimenez5271 has joined #ruby
louism2wash has joined #ruby
<louism2wash>
Hey guys, is there a way to list all classes that have been loaded into memory?
last_staff has joined #ruby
pdtpatrick_ has quit [Ping timeout: 250 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
nonks has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
wm3|away has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
kamilc__ has joined #ruby
corehook has quit [Remote host closed the connection]
mathias2 has quit [Ping timeout: 244 seconds]
speaking1ode has joined #ruby
timonv_ has joined #ruby
LRgraham has joined #ruby
<dTSCode>
you mean flush the ram?
<dTSCode>
louism2wash,
speakingcode has quit [Ping timeout: 255 seconds]
nonks has quit [Ping timeout: 250 seconds]
echooo has quit [Ping timeout: 245 seconds]
echooo has joined #ruby
anarang has joined #ruby
charliesome has quit [Quit: zzz]
hiyosi has joined #ruby
wm3|away has quit [Ping timeout: 256 seconds]
dTSCode is now known as DTSCode
aspiers has quit [Ping timeout: 265 seconds]
<louism2wash>
dTSCode: I am trying to get a better understand of Ruby as a namespace so I am trying to just get a list of all constants(modules and classes I guess) that are in the global namespace
aspiers has joined #ruby
chipotle_ has quit [Quit: cya]
<DTSCode>
oops i thought this was ##c++-*. idk how to program in ruby so i actually cant answer your question
nyanz has joined #ruby
hiyosi has quit [Ping timeout: 250 seconds]
apeiros has quit [Remote host closed the connection]
keen___________1 has quit [Read error: Connection reset by peer]
krz has joined #ruby
boombadaroomba has quit [Ping timeout: 255 seconds]
<louism2wash>
parabolize: awesome
<louism2wash>
parabolize: just what I'm looking for
maestrojed has quit [Quit: Computer has gone to sleep.]
keen___________1 has joined #ruby
jimbow has joined #ruby
<jimbow>
hey guys what are the :: in ruby
<louism2wash>
parabolize: this might be a stupid question but how do those constants get defined inside of object? Is there something happening when a class is loaded into memory that also creates a constant in that object namespace?
francisfish has quit [Ping timeout: 245 seconds]
<parabolize>
I like perusing with the html docs: ri --server
<jimbow>
stuff::stuff::stuff
<jimbow>
my syntax might be wrong
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jimbow>
but there are two colons
bMalum has joined #ruby
timonv_ has quit [Remote host closed the connection]
Azure has quit [Read error: Connection reset by peer]
<louism2wash>
jimbow: constant lookup operator
<sevenseacat>
namespace separator
rshetty has quit [Ping timeout: 255 seconds]
<parabolize>
louism2wash: I don't know
Azure has joined #ruby
<jimbow>
louism2wash: thank you
<jimbow>
the course i'm taking doesn't talk about constants
ghormoon has quit [Ping timeout: 255 seconds]
<jimbow>
are they necessary?
pietr0 has quit [Quit: pietr0]
<louism2wash>
sevenseacat: this might be a stupid question but how do those constants get defined inside of object? Is there something happening when a class is loaded into memory that also creates a constant in that object namespace?
Alina-malina has quit [Read error: Connection reset by peer]
<louism2wash>
jimbow: classes and modules are actually constants in ruby
<jimbow>
wait...
Alina-malina has joined #ruby
<jimbow>
so you use a class to put methods inside it right?
<jimbow>
what is a constant used for then?
<parabolize>
which is silly because you can alter classes
<louism2wash>
jimbow: I am actually trying to get to the root of this right now
<jimbow>
i guess it's answering every question i have
<jimbow>
i love you guys <3
nyanz has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
tobago has joined #ruby
timonv_ has joined #ruby
jenrzzz has quit [Quit: Lost terminal]
jusmyth has left #ruby [#ruby]
<louism2wash>
jimbow: you could
<jimbow>
so why would you use one over the other?
<louism2wash>
jimbow: I think you would have some issues with how ruby loads up your .rb files and puts things into the global namespace but I'm not sure
<jimbow>
oh OKAY
<jimbow>
whoops
drkyro has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
tlarevo has quit [Remote host closed the connection]
clauswitt has joined #ruby
timonv_ has quit [Ping timeout: 256 seconds]
emmesswhy has joined #ruby
Pumukel has quit [Ping timeout: 265 seconds]
<louism2wash>
jimbow: using def instead of class is really throwing me for a loop. You can even include modules inside of method definitions... crazy
patrick99e99 has joined #ruby
matcouto has joined #ruby
oo_ has quit [Remote host closed the connection]
lolmaus has quit [Quit: Konversation terminated!]
<parabolize>
jimbow modules and classes create new namespaces for your methods they don't replace them. Its just a way to prevent two methods named the same thing from overwiting the other one.
<jimbow>
oh thank you!
<jimbow>
you explained it so well :)
<parabolize>
s/overwiting/overwriting
ta has joined #ruby
oo_ has joined #ruby
<louism2wash>
parabolize: is that the monkey patch concept? you can reopen a class but you would just overwrite a method?
shortCircuit__ has joined #ruby
<parabolize>
I'm not sure I've ever got a definitive definition of monkey patching.
nrsk has joined #ruby
bal1 has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
<sevenseacat>
reopening classes you dont own, and either modifying or adding new functionality.
terlar has joined #ruby
<sevenseacat>
eg. people patching extra methods onto Array or String for the fun of it (they seem to be the most common)
lxsameer has joined #ruby
bigkevmcd has joined #ruby
zacts has quit [Ping timeout: 240 seconds]
<parabolize>
ah. Thanks
fabrice31 has joined #ruby
durnik has quit [Ping timeout: 272 seconds]
durnik has joined #ruby
jenrzzz has joined #ruby
jlast has joined #ruby
zacts has joined #ruby
zacts has joined #ruby
zacts has quit [Changing host]
fabrice31 has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
tlarevo has joined #ruby
<jimbow>
why can't we do this?
<jimbow>
if program.rb == program.rb
<jimbow>
instead of
<jimbow>
if __FILE__ == $0
rshetty has joined #ruby
<jimbow>
s/can't/should
<sevenseacat>
whats program.rb
<jimbow>
just a program
<sevenseacat>
also, if you compare two identical things, it will always be true
<jimbow>
oh
<jimbow>
so if program.rb == true
<sevenseacat>
also, you dont just have 'just a program' when you're talking about ruby code -_-
<jimbow>
to me that makes more sense in my head
<sevenseacat>
that makes no sense
jlast has quit [Ping timeout: 265 seconds]
poweratom_ has quit [Quit: Be back later ...]
<jimbow>
if __FILE__ == $0 that means if it's this current file right?
dseitz has joined #ruby
<sevenseacat>
yes.
<jimbow>
to me that is a bit esoteric
<sevenseacat>
to people who know how to program, it isnt
<jimbow>
why can't we write if program.rb == true
<sevenseacat>
because you havent defined program.rb
poweratom_ has joined #ruby
suy|BNC is now known as disperso
gmas has quit [Ping timeout: 255 seconds]
<jimbow>
and __FILE__ is defined?
<sevenseacat>
yes.
<jimbow>
hmm... this is a bit confusing
<sevenseacat>
its a special global variable in ruby.
aganov has joined #ruby
<sevenseacat>
also, if you rename the file, it would really suck to have to modify the code
<jimbow>
oh...
<jimbow>
how smart do you have to be to create a programming language?
<ddv>
it's pretty easy
<sevenseacat>
i would say fairly.
<sevenseacat>
i would also say that the vast majority of people have no need to do it.
<ddv>
everyone can write a lexer
<sevenseacat>
oh, not everyone
<ddv>
if you can progam you can make al exer
<ddv>
lexer *
<rpag_>
jimbow, there's a book called, "Create your own programming language" that goes through the steps if youre curious
chipotle has joined #ruby
<ddv>
maybe you can't program sevenseacat?
<sevenseacat>
didnt say i couldnt
<sevenseacat>
but jimbow here couldnt
<sevenseacat>
therefore, not everyone.
<ddv>
jimbow can progarm
<sevenseacat>
uh huh
jenrzzz has quit [Ping timeout: 240 seconds]
<sevenseacat>
i can see that
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
<ddv>
he will learn
durnik has quit [Ping timeout: 240 seconds]
jimbow has quit [Ping timeout: 246 seconds]
kireevco has quit [Quit: Leaving.]
<ddv>
but first he needs to get a better internet connection
<sevenseacat>
well if he learns, then maybe he will be able to in the future
<jimbow>
if you guys are new to programming like i am :)
<jimbow>
thanks for the help guys!
<parabolize>
I like the '__main__' in python more than the $0 in ruby and I like the __FILE__ in ruby more than __name__ in python. __FILE__ == __MAIN__ would be great.
<jimbow>
i think __FILE__ == __CURRENT_FILE___ would be better!
Photism has quit [Quit: Leaving]
charliesome has joined #ruby
<parabolize>
indeed it would
<sevenseacat>
i think there are bigger things to worry about
<jimbow>
like?
<jimbow>
well i think you're right... i should learn more about the language
nfk has quit [Quit: yawn]
<sevenseacat>
like actually writing readable and maintainable code
<sevenseacat>
and not quibbling over a single constant name
<jimbow>
i think good code means that you're indenting stuff where it needs to be indented so it's legible and you're giving your variable names nice and descriptive names
<sevenseacat>
thats a small part of it
<jimbow>
really?
<sevenseacat>
yes
<jimbow>
what's the "bigger" part of it
<nrsk>
Hi, all! I have job_parameters['calendar']['timezone_id'] and if I start application it returns correct value, but in tests I have nil and can access to timezone_id only this way: ob_parameters['calendar'][:timezone_id] What could be the problem?
<sevenseacat>
making your code easy to understand
<sevenseacat>
not overcomplicating it
tesuji has joined #ruby
timonv_ has joined #ruby
St1gma has joined #ruby
DjDeaf has quit [Remote host closed the connection]
corehook has quit [Ping timeout: 258 seconds]
St1gma has quit [Max SendQ exceeded]
DjDeaf has joined #ruby
TomyWork has joined #ruby
<ddv>
jimbow: just read code complete or clean code
<jimbow>
will do!
St1gma has joined #ruby
CustosL1men has joined #ruby
<rpag_>
jimbow, it comes with practice normally
poweratom_ has quit [Quit: Be back later ...]
DjDeaf has quit [Ping timeout: 250 seconds]
fandi has quit [Ping timeout: 250 seconds]
arup_r has quit [Remote host closed the connection]
tlarevo has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
exadeci_ has joined #ruby
<jimbow>
rpag_: i'm going to a dev bootcamp and i hope i'm ready and won't fall behind
<jimbow>
i'm super worried about that
<jimbow>
i'm here asking questions like a moron
codecop has joined #ruby
codecop_ has joined #ruby
DjDeaf has joined #ruby
Xeago has joined #ruby
govg has quit [Remote host closed the connection]
tlarevo has joined #ruby
josephndenton has joined #ruby
zacts has quit [Ping timeout: 264 seconds]
zacts has joined #ruby
zacts has quit [Changing host]
zacts has joined #ruby
Xiti has quit [Quit: Xiti]
olivier_bK has joined #ruby
Xeago_ has joined #ruby
apeiros has joined #ruby
einarj has joined #ruby
sinequanon has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 264 seconds]
Xeago has quit [Ping timeout: 244 seconds]
pengin has joined #ruby
livathinos has joined #ruby
paulo has joined #ruby
Abhijit_ is now known as Abhijit
GreatSUN has joined #ruby
<GreatSUN>
hi all
<GreatSUN>
need your help urgently
<GreatSUN>
trying to install rubysl-pty on rh6 with ruby 1.9.3
<GreatSUN>
getting error 'config.h: no such file or directory'
Alina-malina has quit [Read error: Connection reset by peer]
roolo has joined #ruby
Xeago_ has quit [Remote host closed the connection]
DjDeaf has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
<gaussblurinc1>
hi
Xiti` has quit [Quit: Xiti`]
Xiti has joined #ruby
<gaussblurinc1>
which things are stored in ~/.gem directory?
TPBallbag has joined #ruby
sk87 has joined #ruby
jlast has quit [Ping timeout: 264 seconds]
lockweel has joined #ruby
tlarevo has joined #ruby
ikaros has joined #ruby
durnik has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby
durnik has joined #ruby
charliesome has quit [Quit: zzz]
coderhs has joined #ruby
nrsk has joined #ruby
mistermocha has joined #ruby
Dude007 has joined #ruby
samuel02 has joined #ruby
codecop_ has joined #ruby
codecop__ has joined #ruby
amrX2K has quit [Ping timeout: 265 seconds]
samuel02 has quit [Client Quit]
mathias2 has joined #ruby
lxsameer has quit [Ping timeout: 250 seconds]
codecop has quit [Ping timeout: 272 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
fandi has quit [Ping timeout: 258 seconds]
mistermocha has quit [Ping timeout: 265 seconds]
wjimenez5271 has joined #ruby
codecop_ has quit [Ping timeout: 245 seconds]
codecop__ has quit [Ping timeout: 244 seconds]
poweratom_ has joined #ruby
Phlogistique has joined #ruby
poweratom__ has joined #ruby
<Phlogistique>
Is there an shorthand for "$_.gsub!" ?
poweratom___ has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
hamakn has quit [Read error: Connection reset by peer]
hamakn_ has joined #ruby
nrsk has quit [Read error: Connection reset by peer]
crus` has joined #ruby
BaconOverflow has joined #ruby
crus has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
poweratom____ has joined #ruby
<Hanmac>
Phlogistique: hm whats inside of $_ ?
<Hanmac>
or can you show us more of your code?
wjimenez5271 has quit [Ping timeout: 245 seconds]
<Phlogistique>
Hanmac: it's a general question
poweratom_____ has joined #ruby
poweratom_ has quit [Ping timeout: 255 seconds]
<Hanmac>
Question why should there be a shorthand? and what are your parameters for gsub! ?
poweratom______ has joined #ruby
<Phlogistique>
The Ruby equivalent of "perl -pe 's/foo/bar/'" is "ruby -pe '$_.gsub!(/foo/, 'bar')"
<Phlogistique>
I'm just surprised that there is no shorthand for this
<Phlogistique>
As there is a shorthand for "$_ =~" (that is "~")
poweratom__ has quit [Ping timeout: 255 seconds]
poweratom___ has quit [Ping timeout: 255 seconds]
jusmyth has left #ruby [#ruby]
apeiros_ has joined #ruby
magic_ has quit [Quit: Leaving]
poweratom_______ has joined #ruby
luriv has joined #ruby
poweratom____ has quit [Ping timeout: 255 seconds]
josephndenton has joined #ruby
thsig has joined #ruby
timonv_ has quit [Remote host closed the connection]
poweratom_____ has quit [Ping timeout: 255 seconds]
Rx_o has joined #ruby
yfeldblum has joined #ruby
wm3|away has joined #ruby
mengu has quit [Remote host closed the connection]
poweratom______ has quit [Ping timeout: 255 seconds]
apeiros_ has quit [Ping timeout: 255 seconds]
poweratom_______ has quit [Ping timeout: 245 seconds]
yfeldblu_ has joined #ruby
josephndenton has quit [Ping timeout: 255 seconds]
<rpag_>
Phlogistique, yeah, ruby doesn't have a shorthand for gsub
godd2 has joined #ruby
nonks has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
ssucreme has joined #ruby
<banister>
rpag_ u're up early
yfeldblu_ has quit [Ping timeout: 245 seconds]
ujjain has quit [Changing host]
ujjain has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
nrsk has joined #ruby
alex88 has quit [Remote host closed the connection]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
<shevy>
Phlogistique you could ask matz
<shevy>
perhaps he forgot it
<apeiros>
Phlogistique: check Kernel. there are a couple of methods which operate on $_
kamil has joined #ruby
<apeiros>
Phlogistique: and if there are none you need, write a gem, call it "perlisms", then run ruby -rperlisms -pe 'have all the fun with perlisms'
alex88 has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ddv>
lol
poweratom_______ has joined #ruby
iwishiwerearobot has quit [Quit: Be back later ...]
<ddv>
also I think it's better to be more explicit
<shevy>
well that is no gain for him
<gregf__>
well the $_ is available only with -p and not with -a
<ddv>
no pain no gain
<shevy>
because if he has to add -rNAME then this is as long as his .gsub notation; in this context perl is really shorter
<ddv>
shorter is not always better
<gregf__>
i dont ever intend on using $_ in ruby. *never*
<shevy>
ddv is this about your sex stories again
<ddv>
lol
<shevy>
gregf__ yeah
nonks has quit [Ping timeout: 250 seconds]
<shevy>
but I give that to perl
<shevy>
shame on ruby
<shevy>
:D
<ddv>
perl necklace ^
<ddv>
give ruby a perl necklace
<shevy>
Phlogistique is it enough for you to abandon ruby and stick to perl?
wm3|away is now known as workmad3
yetanotherdave has quit [Quit: Lost terminal]
poweratom_______ has quit [Ping timeout: 264 seconds]
nvdpl has quit [Ping timeout: 256 seconds]
<Phlogistique>
shevy: no
<Phlogistique>
though sometimes if my program is short enough that figuring out perlisms is shorter than typing 5 more characters, I do write one-liners in perl
iwishiwerearobot has joined #ruby
<godd2>
The shortness I'm generally concerned with is the amount of time it takes to read and understand some code.
PierreRambaud has joined #ruby
sprihodko has joined #ruby
tokik has joined #ruby
<Phlogistique>
gregf__: so you do not intend to ever write a script that does sth like "ruby -ne 'print $1 ~/b(la)h/'"
pandaant has joined #ruby
<workmad3>
Phlogistique: personally, I'd be against it... that being invalid ruby and all :P
<Phlogistique>
(I meant "ruby -ne 'print $1 if ~/b(la)h/'")
<gregf__>
Phlogistique: i hope not to. if thats needed write it in perl, cuz ruby is a pure OO language ;)
nvdpl has joined #ruby
<shevy>
Phlogistique I myself would not because I can not remember that notation
<shevy>
Phlogistique the way I tend to solve things is by using lots of aliases and methods that I invoke via those aliases
davedev24_ has joined #ruby
<shevy>
and | pipes too sometimes
<shevy>
we still don't have a pipe for objects!
timonv_ has joined #ruby
<workmad3>
shevy: you could always go back to Windows for that... MS Powershell lets you pipe around .net objects ;)
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
well
<shevy>
windows is annoying me to no ends
poweratom_______ has joined #ruby
<shevy>
linux and the linux ecosystem isn't that great either but you can adapt a lot in it
<workmad3>
shevy: sometimes I worry that you will never be happy :(
hiyosi has joined #ruby
ldnunes has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<shevy>
yeah
<shevy>
ruby is not perfect either
<shevy>
it's just a very good language
NoNMaDDeN has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 264 seconds]
<workmad3>
shevy: going by the discussion last night, it's not a good language, it's just not able to write 'correct' programs! ;)
<workmad3>
shevy: too much low level looping and mutable state!
mengu has joined #ruby
<shevy>
huh
<shevy>
haskell?
<shevy>
I can't be bothered to download 100MB just to run something!!!
poweratom_______ has quit [Ping timeout: 265 seconds]
<workmad3>
heh
<shevy>
oh man
<shevy>
I accidentally soaked one eye with hydrogen peroxide
codecop has joined #ruby
<shevy>
that shit burns like hell
codecop_ has joined #ruby
codecop has quit [Read error: Connection reset by peer]
codecop_ has quit [Remote host closed the connection]
<workmad3>
shevy: well, now you can be happy as a pirate...
<shevy>
hahaha
hiyosi has quit [Ping timeout: 245 seconds]
<shevy>
need a parrot
<gregf__>
H2O2? is it teargas?
jlast has joined #ruby
<workmad3>
gregf__: no, it's a highly-ionizing water-like liquid
<gregf__>
ok
<workmad3>
2 chemists walk into a bar, the first says "I'll have a H2O please", the second says "I'll have a water too please. Why did you say H20? Were you trying to kill me by getting me to drink hydrogen peroxide? I thought we were friends!"
<workmad3>
*H2O
rodfersou has joined #ruby
<godd2>
I prefer the one where the bartender replies "what the hell are you two talking about?"
* disperso
doesn't get the joke
<brushdemon>
t
<brushdemon>
f
<brushdemon>
w
jlast has quit [Ping timeout: 265 seconds]
mengu has quit [Ping timeout: 255 seconds]
banister has joined #ruby
corehook_ has joined #ruby
joonty has quit [Quit: joonty]
corehook has quit [Ping timeout: 258 seconds]
<shevy>
gregf__ you know, a disinfectant for contact lenses
<workmad3>
disperso: drinking H2O2 is known to be bad for your health... and a chemist saying "I'll have an H2O too please" could be misconstrued as saying "I'll have an H2O2 please"
[tymat] has joined #ruby
Timgauthier has joined #ruby
poweratom_______ has joined #ruby
chthon has joined #ruby
<disperso>
workmad3: ah, ok. Didn't get the phonetic thing
[tymat] is now known as tymat
<workmad3>
disperso: it's ok, it wasn't a particularly funny joke in the first place :P
timonv_ has quit [Remote host closed the connection]
<workmad3>
disperso: in any of its forms
<pontiki>
ugh, amazon apps
<gregf__>
yeah, is'nt H2o2 used for removing nailpolish :)
<shevy>
don't make fun of my reddish eye gregf__ :(
<gregf__>
heh
<workmad3>
gregf__: Nail polish remover is normally acetone rather than Peroxide
<workmad3>
gregf__: peroxide is more commonly used to bleach hair (i.e. peroxide blonde)
poweratom_______ has quit [Ping timeout: 256 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
damn
joonty has joined #ruby
<shevy>
you'd never know that workmad3 is a chemi
<pontiki>
nah, we work in a salon
<shevy>
with a big bushy beard
<shevy>
lol pontiki
<gregf__>
ah - man, yeah. acetone
<gregf__>
the swet smelling one ;)
<gregf__>
*sweet
<workmad3>
pontiki: ssh, stop ruining my man-cred! :P
timonv_ has joined #ruby
<pontiki>
WHAA-aaat?? It's FAAABulous!!
reinaldob has joined #ruby
sprihodko has quit [Quit: (null)]
alex88 has quit [Remote host closed the connection]
fsapo has joined #ruby
tesuji has quit [Ping timeout: 240 seconds]
alex88 has joined #ruby
wchun has joined #ruby
tymat has quit [Remote host closed the connection]
tymat has joined #ruby
tkuchiki has quit [Remote host closed the connection]
sk87 has joined #ruby
tlarevo has quit [Read error: Connection reset by peer]
fandi has quit [Remote host closed the connection]
beilabs_ has joined #ruby
josephndenton has quit [Ping timeout: 265 seconds]
corehook_ has quit [Remote host closed the connection]
takle has quit [Remote host closed the connection]
corehook has joined #ruby
drawingthesun has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
beilabs_ has quit [Ping timeout: 256 seconds]
wolflee___ has joined #ruby
kasperti_ has joined #ruby
nvdpl has joined #ruby
ssucreme has quit [Remote host closed the connection]
vimer has joined #ruby
m3_del has quit [Ping timeout: 240 seconds]
unshadow has joined #ruby
troulouliou_dev has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
larissa has quit [Quit: Leaving]
DjDeaf has joined #ruby
usrj has joined #ruby
thsig has joined #ruby
papal has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 272 seconds]
poweratom_______ has joined #ruby
weemsledeux has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 265 seconds]
lyhiz has joined #ruby
DjDeaf has quit [Ping timeout: 272 seconds]
govg has joined #ruby
yeticry has joined #ruby
poweratom_______ has quit [Ping timeout: 256 seconds]
wolflee___ has quit [Quit: (null)]
mengu has quit [Remote host closed the connection]
poweratom_______ has joined #ruby
agjacome has joined #ruby
rbrs has quit [Quit: Leaving]
wolflee___ has joined #ruby
<unshadow>
Hi guys, I just finished a Ruby Script for Sacnning SSL protocols and ciphers (for Linux), it has colored output for weak and vulnerable ciphers and also should detect POODLE CVE, tell me what you guys think: https://github.com/bararchy/ruby-SSLscanner
timonv_ has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tlarevo_ has joined #ruby
ayaz has joined #ruby
arup_r has quit [Ping timeout: 258 seconds]
poweratom_______ has quit [Ping timeout: 255 seconds]
poweratom_______ has joined #ruby
DjDeaf has joined #ruby
lyhiz has left #ruby [#ruby]
n008f4g_ has joined #ruby
tlarevo has quit [Ping timeout: 258 seconds]
<apeiros>
unshadow: you violate some conventions
krz has quit [Ping timeout: 245 seconds]
<apeiros>
top level Scanner constant is IMO a bad choice. too generic.
timonv_ has joined #ruby
<apeiros>
Scanner -> scanner.rb, and SSLScanner -> sslscanner.rb. ssl_scanner.rb implies you use rails convention, which would be SslScanner
<toretore>
which sucks
gigetoo has quit [Ping timeout: 244 seconds]
<unshadow>
Ok, I can rename that
poweratom_______ has quit [Ping timeout: 244 seconds]
gigetoo has joined #ruby
<apeiros>
toretore: the rails convention? (tbh, IMO rails & ruby convention are both bad)
<apeiros>
workmad3: yes. but I hope you know the history behind that.
<workmad3>
apeiros: a bit :)
ndrei has joined #ruby
<apeiros>
also remember that "ssl_scanner".camlize does not return "SSLScanner" ;-)
<apeiros>
*camelize
<unshadow>
Ok, changed the name ;)
gaganjyot has joined #ruby
arup_r has joined #ruby
mistermocha has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
jlast has joined #ruby
arup_r has quit [Remote host closed the connection]
gaganjyot has quit [Max SendQ exceeded]
larissa has joined #ruby
exgf_u has joined #ruby
exgf has quit [Remote host closed the connection]
gaganjyot has joined #ruby
gaganjyot has quit [Max SendQ exceeded]
sk87 has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
gaganjyot has joined #ruby
gaganjyot has quit [Max SendQ exceeded]
jlast has quit [Ping timeout: 264 seconds]
takle has joined #ruby
moritzs has quit [Ping timeout: 255 seconds]
gaganjyot has joined #ruby
henesy has joined #ruby
henesy has quit [Read error: Connection reset by peer]
rkalfane has joined #ruby
gaganjyot has quit [Max SendQ exceeded]
oo_ has joined #ruby
gaganjyot has joined #ruby
RitterJack has joined #ruby
vimer has quit [Ping timeout: 245 seconds]
gaganjyot has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
roolo has quit [Read error: Connection reset by peer]
gaganjyot has joined #ruby
poweratom_______ has joined #ruby
yfeldblum has joined #ruby
troulouliou_dev has quit [Ping timeout: 264 seconds]
mengu has joined #ruby
troulouliou_dev has joined #ruby
Kabaka has quit [Ping timeout: 264 seconds]
vimer has joined #ruby
apeiros_ has joined #ruby
roolo has joined #ruby
corehook has quit [Remote host closed the connection]
corehook has joined #ruby
poweratom_______ has quit [Ping timeout: 240 seconds]
pgmcgee has quit [Ping timeout: 264 seconds]
corehook has quit [Remote host closed the connection]
elcheckito has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
fumk has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 244 seconds]
MrDoctor has joined #ruby
<MrDoctor>
Does a non-negative complex number make any sense?
pgmcgee has joined #ruby
<MrDoctor>
If yes, what is a non-negative complex number?
<apeiros>
MrDoctor: you know that a complex number has two parts?
<apeiros>
and both parts can be positive
<apeiros>
2+3i # both parts are positive, it's a complex number
<MrDoctor>
Yes, that I do, but the complex field is not ordered. That is why I have this doubt.
wjimenez5271 has joined #ruby
<apeiros>
o0
takle has quit [Remote host closed the connection]
<apeiros>
the imaginary part is an axis
<apeiros>
so of course it has order
Abhijit has quit [Quit: Leaving]
<MrDoctor>
Any integral domain do be ordered has to satisfy that if x > 0, and y > 0, then xy > 0.
<MrDoctor>
C does not satisfy that.
<apeiros>
correct, the complex number *as a whole* has no sign
corehook has joined #ruby
<apeiros>
so saying it's positive or negative both is not a correct statement
<apeiros>
only its individual parts have a sign
tokik has quit [Ping timeout: 264 seconds]
WillAmes has joined #ruby
<MrDoctor>
But I am now reading this paper for my own research work, and it mentions classes of polynomials over the complex plane which has all coefficients as non-negative.
<MrDoctor>
And it does not mention if the coefficients are from C or R.
<apeiros>
MrDoctor: I think you're in the wrong channel
<apeiros>
exadeci: re "calls an undefined method" - how do you figure it is undefined?
banister has joined #ruby
banister has quit [Client Quit]
Spami has joined #ruby
Liendre has quit [Ping timeout: 255 seconds]
<apeiros>
`rescue Exception => e` is poor code, though. never rescue Exception.
servidorv has joined #ruby
<exadeci>
apeiros: the granule.send("#{value}=", line_value) seems to be looking for a setter but the setter doesn't exist and there is no method_missing
<canton7>
(unless you're at the very top level of your application, and want to log it then exit)
<servidorv>
Has anyone use the 'pushmeup' gem to send apns push notifications??
<apeiros>
exadeci: that's not answering my question
<apeiros>
I asked how you figure that the method is not defined
<apeiros>
your answer seems to be "I visually inspected the code and didn't see the method definition"
sevenseacat has joined #ruby
<apeiros>
if that's it, then your question is ill-phrased. it's not "it calls an undefined method", but "it calls a method for which I can't find the definition"
kumarat9pm has quit [Ping timeout: 250 seconds]
<apeiros>
and you can find the definition of the method by using granule.method("#{value}=").source_location
<exadeci>
apeiros: When I choose the correct xlsx and I try to upload it I get "undefined method "handbook_id=" for Granule...."
almostworking has joined #ruby
<apeiros>
exadeci: then I'm curious about your phrasing of "how could it work" - because obviously it doesn't work?
<servidorv>
anyone ??
almostworking has left #ruby [#ruby]
<apeiros>
servidorv: seems anyone isn't in the channel.
corehook has quit [Remote host closed the connection]
<canton7>
exadeci, well, I can see a method definition for handbook_id= ...
<gaussblurinc1>
if method doesn't have parameters and I send him a parameter by .send(name, object), will it fall?
<canton7>
gaussblurinc1, try it and see
corehook has joined #ruby
patrick99e99 has joined #ruby
corehook has quit [Remote host closed the connection]
<servidorv>
@apeiros
<canton7>
or wait, that might only work if the backing table has that field
<servidorv>
thanks
<apeiros>
exadeci: also, AR::Base models absolutely do have method_missing defined.
<exadeci>
apeiros: a default behaviour ?
<gaussblurinc1>
canton7: so, will it work or not?
beilabs_ has quit [Ping timeout: 258 seconds]
<apeiros>
exadeci: I'm sorry. I think I'm not in the mood to guess what you mean to say and what's going on.
benzrf|offline is now known as benzrf
alex88 has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 244 seconds]
anarang has quit [Quit: Leaving]
alex88 has joined #ruby
<exadeci>
apeiros: Sorry if I'm unclear english is not my first language, I upload a xlsx and it should parse every line and add it to a table in the database. But when I test it I get undefined method "name of the colum=" for Granule.
rshetty_ has quit [Remote host closed the connection]
Versality has quit [Read error: Connection reset by peer]
<exadeci>
this line: granule.send("#{value}=", line_value) calls setters defined in the model, but what does it do if the setter is not explicitly defied ?
<exadeci>
defined*
beilabs_ has joined #ruby
jlast has joined #ruby
<apeiros>
exadeci: AR models provide accessors to all columns of the table they represent
servidorv has quit [Quit: Leaving]
benzrf is now known as benzrf|offline
<apeiros>
this is AR basics. you should familiarize yourself with those.
josephndenton has joined #ruby
Versality has joined #ruby
banister has joined #ruby
phutchins has joined #ruby
<exadeci>
apeiros: so this send should work even without a method explicitly defined in the model ?
<exadeci>
but it shows undefined method `hanbook_id=' for #<Granule:0x007ff794facb28> -_-
yfeldblum has joined #ruby
madoxer has joined #ruby
jlast has quit [Ping timeout: 255 seconds]
shredding has joined #ruby
Kricir has joined #ruby
<apeiros>
hanbook?
jleishman has joined #ruby
<apeiros>
you sure this shouldn't be handbook?
bmurt has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
<apeiros>
and that's why we copy & paste errors. we don't make up our own messages…
Spami has quit [Quit: This computer has gone to sleep]
yfeldblum has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
michael_mbp has quit [Excess Flood]
<wasamasa>
lol
<wasamasa>
you don't invent your own memory addresses?
GGMethos has joined #ruby
ta has quit [Remote host closed the connection]
<exadeci>
apeiros: Thank you can't believe it ... he makes the xlsx for a year now and he had to make a mistake on this one, well sure didn't see that small typo, thanks again
michael_mbp has joined #ruby
weemsledeux has joined #ruby
tier has joined #ruby
jeremy04 has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arup_r has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
masak has quit [Ping timeout: 250 seconds]
tier has joined #ruby
jespada has joined #ruby
gr33n7007h has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
livingstn has joined #ruby
tvw has joined #ruby
mkaesz has joined #ruby
madoxer has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
fjfish has joined #ruby
francisfish has quit [Read error: Connection reset by peer]
nvdpl has quit [Quit: ZZZzzz…]
Versality has quit [Read error: Connection reset by peer]
Versality has joined #ruby
grn has quit [Ping timeout: 244 seconds]
last_staff has quit [Quit: last_staff]
banister has joined #ruby
jimbach has joined #ruby
terlar has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
grn has joined #ruby
solars has joined #ruby
<solars>
hey, does anyone know a fix for the extremely slow vim syntax hilighting for ruby? I found some threads but nothing was working really
<Cat_1>
Are you doing it over a ssh shell or locally?
procat has joined #ruby
<Cat_1>
are you using :syntax on or are you using a different plugin/application?
<solars>
locally
<solars>
syntax on
panini has joined #ruby
<solars>
rails.vim and the usual plugins
<Cat_1>
I got nothing :)
<Cat_1>
Try verifying your terminal type(tty1, etc)
<solars>
its not about the terminal, it's ruby hilighting
enebo has joined #ruby
Kricir has joined #ruby
<solars>
there are many threads about this problem..
<Cat_1>
I've never had a problem with that using vim
psy__ has quit [Read error: Connection reset by peer]
<sevenseacat>
ooh 2.1.5
rshetty has joined #ruby
<rpag_>
releases are flying out
<jhass>
mmh, I wonder if we can claim now that 1.8.7 has known vulnerabilities
kesroesweyth has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
well
allcentu1 has quit [Quit: WeeChat 1.0]
<shevy>
it has right?
timonv_ has joined #ruby
allcentury has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
<sevenseacat>
when will 2.2 be outtttt
ctp has joined #ruby
<kesroesweyth>
I just installed ruby 1.9.3p484 and the sass 3.4.7 gem and when I run it, it throws an error about an undefined method. I installed this same thing on another server with the same OS and updates and am not having an issue. Here is the error: http://pastebin.com/raw.php?i=b5xH4y78
wjimenez5271 has joined #ruby
dc_ has joined #ruby
mr_foobar_baz has joined #ruby
mary5030 has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
dangerousdave has joined #ruby
<dyu>
I'm using paypal-sdk-rest v0.7.2. i've got a BigDecimal that i want to pass as a string. i've tried using .to_s. printing out the hash gives me '50.0'. comparing it with a literal '50.0' evaluates to true. but if i pass the converted variable to paypal, it fails. if i pass a literal '50.0' it accepts it
<asdlkdsajsda>
It's like it run tests wether or not it specified
<asdlkdsajsda>
sort of like a dependency on server
<pontiki>
that makes no sense to me...
<jhass>
--trace output might still be of interest
<asdlkdsajsda>
that's why I'm here... I run out of thinks to think about
<asdlkdsajsda>
jhass: I did it and updated the gist
<pontiki>
jhass: it's in the gist
<jhass>
(oh I didn't scroll far enough, sorry)
<jhass>
maybe server is already defined and you just augment it?
<asdlkdsajsda>
rofl
<asdlkdsajsda>
got it
moritzs has joined #ruby
lkba has quit [Ping timeout: 258 seconds]
<asdlkdsajsda>
In my app configuration I had a require 'rails/test_help' and it must do something with Rake::TestTask or something
<asdlkdsajsda>
rails sometimes...
ozialien_ has quit [Ping timeout: 258 seconds]
ozialien_ has joined #ruby
<pontiki>
an aside, in the server task, why do you invoke Rack::Server instead of Rails::Server?
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
mistermocha has joined #ruby
<asdlkdsajsda>
pontiki: because Rails::Server forces the creation of log/ folder and I don't want it. And besides the tmp directory(which I don't need for this), it's an empty wrapper
cpruitt has quit [Quit: cpruitt]
gsd has joined #ruby
<asdlkdsajsda>
It's just a test environment, don't need a full fledged rails application.
iamjarvo has joined #ruby
mr_foobar_baz has quit [Quit: WeeChat 1.0.1]
nonks has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
lucifly has joined #ruby
tagrudev has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
lucifly has left #ruby [#ruby]
mary5030 has joined #ruby
gsd has quit [Client Quit]
coderhs has quit [Ping timeout: 244 seconds]
Hanmac has joined #ruby
AmBienCeD has joined #ruby
AmBienCeD has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
diegoviola has joined #ruby
rudisimo has quit [Remote host closed the connection]
<pontiki>
gotcha
yfeldblum has joined #ruby
n008f4g_ has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 240 seconds]
gsd has joined #ruby
rudisimo has joined #ruby
delianides has joined #ruby
<asdlkdsajsda>
Finally! Well thanks for your helps folks!
delianides has quit [Client Quit]
delianides has joined #ruby
moritzs has quit [Ping timeout: 250 seconds]
pdtpatrick_ has joined #ruby
jleishman has quit [Ping timeout: 244 seconds]
sambao21 has joined #ruby
nonks has joined #ruby
jleishman has joined #ruby
Fraeon has joined #ruby
einarj has quit [Remote host closed the connection]
havenwood has joined #ruby
coderhs has joined #ruby
mikepack has joined #ruby
rippa has joined #ruby
littleOne13 has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
littleOne13 has left #ruby [#ruby]
rudisimo has left #ruby [#ruby]
rudisimo has joined #ruby
i0n has quit [Quit: snooze]
moritzs has joined #ruby
jlast has joined #ruby
unshadow has joined #ruby
<unshadow>
What is more "ruby" and why, ".each" or "for a in b" ?
ndrei has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
takle has quit [Remote host closed the connection]
<apeiros>
.each has been established as more idiomatic ruby
<apeiros>
why: because blocks
shazaum has joined #ruby
<havenwood>
hellooo 2.1.5
<apeiros>
just yesterday I installed 2.1.4
<apeiros>
щ(゚д゚щ)
i0n has joined #ruby
tokik has quit [Ping timeout: 244 seconds]
<havenwood>
kinda glad they released it cause it landed the removal of apple-gcc4.2 from cc candidates
<unshadow>
apeiros: thanks :)
<havenwood>
which was causing bugs with folk who had that installed
cirn0 has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
clauswit_ has joined #ruby
<j2p2>
scenario: you have to initialize multiple blank arrays - which do you pick?
<j2p2>
a, b = [], []
<j2p2>
or a = b = []
<godd2>
Welp, time to move to .Net now that it's open source. So long sucaks!
<apeiros>
j2p2: also, I don't use either. I write 2 lines.
<j2p2>
oooh gotcha
<j2p2>
so they get tied to the same object
<havenwood>
godd2: reviving IronRuby? ;P
<apeiros>
j2p2: yes, you assign the same object to both
<j2p2>
thanks
<havenwood>
godd2: i'm curious if this'll bring any life to the .net clojure
clauswitt has quit [Ping timeout: 245 seconds]
<apeiros>
havenwood: or revive iron-ruby
MrDoctor has quit [Remote host closed the connection]
panini has quit [Remote host closed the connection]
<havenwood>
apeiros: indeed
clauswit_ has quit [Ping timeout: 256 seconds]
<apeiros>
it certainly seems like microsoft understood that it can't sustain living/acting isolated
<apeiros>
but I'm wary. companies ain't people.
arup_r_ has joined #ruby
<txdv>
c# is open source now, nenenenene
weemsledeux has quit [Remote host closed the connection]
shock_one has joined #ruby
bal1 has quit [Quit: bal1]
takle has joined #ruby
dc_ has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 264 seconds]
zammers has quit [Quit: zammers]
takle has quit [Remote host closed the connection]
treehug88 has joined #ruby
ta has joined #ruby
wpp has joined #ruby
arup_r_ has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
Hightower666 has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
nonks has quit [Ping timeout: 250 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
wjimenez5271 has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
vectra has joined #ruby
sambao21 has joined #ruby
nfk has joined #ruby
dkb20k has joined #ruby
vifino has quit [Remote host closed the connection]
mathias2 has quit [Ping timeout: 265 seconds]
jleishman has quit [Quit: Be back later ...]
DaniG2k has joined #ruby
Baluser has quit []
mkaesz has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
vifino has joined #ruby
wjimenez5271 has quit [Ping timeout: 258 seconds]
lib has joined #ruby
_fre_nod_ir has joined #ruby
paulo has quit [Quit: Leaving]
rshetty has joined #ruby
livathinos has quit []
oo_ has quit [Remote host closed the connection]
tier_ has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
jleishman has joined #ruby
aganov has quit [Read error: Connection reset by peer]
aganov has joined #ruby
takle has joined #ruby
iamdoo2_ has quit []
tier has quit [Ping timeout: 264 seconds]
geggam has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
tier_ has quit [Remote host closed the connection]
mclee has joined #ruby
tier has joined #ruby
xanderwebs has joined #ruby
zacstewa_ has joined #ruby
TuxxedoCat is now known as TuxedoCat
DjDeaf has left #ruby [#ruby]
Ankhers has joined #ruby
speaking1ode is now known as speakingcode
jasonwc21 has quit [Remote host closed the connection]
Morrolan has quit [Ping timeout: 255 seconds]
Vile` has quit [Ping timeout: 265 seconds]
shredding has quit [Quit: shredding]
maestrojed has joined #ruby
apeiros_ has joined #ruby
Rydekull_ has quit [Ping timeout: 250 seconds]
moritzs has quit [Ping timeout: 258 seconds]
shredding has joined #ruby
dkb20k has quit [Ping timeout: 255 seconds]
Rydekull has joined #ruby
wpp has quit [Quit: ZZZzzz…]
francisfish has quit [Remote host closed the connection]
Morrolan has joined #ruby
mistermocha has joined #ruby
yfeldblum has joined #ruby
mg^ has joined #ruby
sambao21 has joined #ruby
shock_one_ has joined #ruby
shock_one_ has quit [Client Quit]
shock_one_ has joined #ruby
aganov has quit [Quit: Leaving]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hijiri has joined #ruby
dangerousdave has joined #ruby
apeiros_ has quit [Ping timeout: 265 seconds]
moted has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
josephndenton has joined #ruby
moritzs has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
shock_one has quit [Ping timeout: 265 seconds]
mityaz has quit [Quit: See ya!]
adac has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
solars has quit [Ping timeout: 258 seconds]
sk87 has joined #ruby
chipotle has quit [Ping timeout: 264 seconds]
<adac>
In a README.rdoc, how can include an image with a local path?
mathias2 has joined #ruby
n008f4g_ has joined #ruby
EminenceHC has joined #ruby
<EminenceHC>
I have a block that iterates through multiple records and displays results. I want to do something like a "while" clause to only do a calculation if a certain record's date changes. For instance I am adding i + 1 but I only want to run i + 1 if the date changes. Any suggestions? https://gist.github.com/EminenceHC/310ccc8c2d96596a4035
gaussblurinc1 has quit [Quit: Leaving.]
sambao21 has quit [Quit: Computer has gone to sleep.]
apeiros has quit [Remote host closed the connection]
stef204 has joined #ruby
klmlfl has joined #ruby
<jhass>
.group_by(&:date) in your controller
sambao21 has joined #ruby
<godd2>
EminenceHC You'll have better luck asking your question in #rubyonrails
terlar has quit [Ping timeout: 250 seconds]
<jhass>
oh
<jhass>
EminenceHC: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
dc_ has joined #ruby
<EminenceHC>
^^ This was cross posted.
josephndenton has quit [Ping timeout: 240 seconds]
Dude007 has quit [Remote host closed the connection]
apeiros has joined #ruby
<DaniG2k>
guys how do I remove old gems for ruby 2.1.4 ?
<DaniG2k>
I just installed 2.1.5
sts_ is now known as sts
<DaniG2k>
i always forget how to do this so i just end up removeing the .rvm/gems/2.1.4 directory
apeiros has quit [Remote host closed the connection]
gaganjyot has joined #ruby
Dude007 has joined #ruby
Dude007 has quit [Remote host closed the connection]
Dude007 has joined #ruby
thsig has quit [Remote host closed the connection]
klmlfl_ has joined #ruby
gaganjyot has quit [Max SendQ exceeded]
<havenwood>
DaniG2k: rvm migrate 2.1.4 2.1.5
gaganjyot has joined #ruby
<havenwood>
DaniG2k: that'd ^ copy the gems over then remove them
<unshadow>
How do I implamnet the "loading bar" slash while stuff runs in thhe background, I want it to move with the text like "working |/-\|-
<havenwood>
DaniG2k: #rvm is helpful for RVM questions
<havenwood>
unshadow: loading bar?
<DaniG2k>
thanks
nvdpl has quit [Quit: ZZZzzz…]
jyot has joined #ruby
gaganjyot has quit [Max SendQ exceeded]
<unshadow>
havenwood: more like circling slash... it looks like an animation, RVM has it while loading stuff
<unshadow>
on the console
sambao21 has quit [Quit: Computer has gone to sleep.]
klmlfl has quit [Ping timeout: 244 seconds]
Guest66063 is now known as grubles
gaganjyot has joined #ruby
grubles is now known as Guest41617
jimconn has joined #ruby
beilabs_ has quit [Quit: Be back later ...]
jyot has quit [Max SendQ exceeded]
jimconn has quit [Client Quit]
gaganjyot has quit [Max SendQ exceeded]
razieliyo has quit [Read error: Connection reset by peer]
jyot has joined #ruby
gaganjyot has joined #ruby
<havenwood>
unshadow: Try this in irb/pry: '-\|/'.each_char.cycle { |char| print char; sleep 0.5; print "\r" }
jimconn has joined #ruby
jimconn has quit [Client Quit]
<havenwood>
unshadow: If you're curious about RVM's shell implementation just ask in
<havenwood>
#rvm
razieliyo has joined #ruby
razieliyo has quit [Changing host]
razieliyo has joined #ruby
ptierno_ has quit [Read error: Connection reset by peer]
gaganjyot has quit [Max SendQ exceeded]
procat has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
lmickh has joined #ruby
cloaked1 has joined #ruby
lib has left #ruby [#ruby]
gaganjyot has joined #ruby
CustosL1men has quit [Ping timeout: 255 seconds]
gaganjyot has quit [Max SendQ exceeded]
spectre256 has joined #ruby
aspires has joined #ruby
gsd has joined #ruby
gaganjyot has joined #ruby
Dude007 has quit []
benzrf is now known as benzrf|offline
gaganjyot has quit [Max SendQ exceeded]
<unshadow>
nice ! this is want I wanted, thanks !
bklane has joined #ruby
oo_ has quit [Ping timeout: 258 seconds]
corehook has joined #ruby
jobewan has joined #ruby
GeorgesLeYeti has joined #ruby
lmickh has quit [Ping timeout: 244 seconds]
asdlkdsajsda has quit [Ping timeout: 246 seconds]
wjimenez5271 has joined #ruby
_fre_nod_ir has quit [Quit: Ex-Chat]
phutchins has quit [Ping timeout: 245 seconds]
graydot has joined #ruby
takle has quit [Remote host closed the connection]
o0oo0o has quit [Quit: WeeChat 0.4.3]
moritzs has quit [Ping timeout: 265 seconds]
stunder has joined #ruby
bMalum has joined #ruby
pengin has joined #ruby
alex88 has quit []
msgodf has quit [Remote host closed the connection]
ndrei has joined #ruby
florentferry has joined #ruby
delianides has quit []
florentferry has quit [Client Quit]
Vile` has joined #ruby
florentferry has joined #ruby
coderhs has quit [Ping timeout: 258 seconds]
dc_ has quit [Remote host closed the connection]
BaconOverflow has quit [Quit: Connection closed for inactivity]
timonv_ has quit [Remote host closed the connection]
<olivier_bK>
there is something i dont understand
blenny has joined #ruby
<olivier_bK>
i added this in my crontab * * * * * bash -lc /root/script/stream/DownTorrent.rb
jasonwc21 has joined #ruby
renderful has joined #ruby
<olivier_bK>
in my log i can see CROND[28030]: (root) CMD (bash -lc /root/script/stream/DownTorrent.rb)
francisfish has joined #ruby
<olivier_bK>
but he do nothing
<olivier_bK>
oh and i use rvm setup cron for export variable
jasonwc21 has quit [Remote host closed the connection]
chrishough has joined #ruby
apeiros has joined #ruby
kireevco has joined #ruby
zacstewa_ has quit [Remote host closed the connection]
procat has joined #ruby
renderful has quit [Remote host closed the connection]
renderful has joined #ruby
DaniG2k_ has joined #ruby
joonty has quit [Quit: joonty]
ghostmoth has joined #ruby
<havenwood>
olivier_bK: i'm on a call but #rvm might be a good place to also ask
nkumari has quit [Remote host closed the connection]
<shevy>
they should have done this a long time ago
s51itxsyc has quit [Ping timeout: 244 seconds]
nkumari has joined #ruby
s51itxsyc has joined #ruby
Fire-Dragon-DoL has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
<wasamasa>
they were forced to now
atomical has joined #ruby
IrishGringo has quit [Ping timeout: 264 seconds]
hornairs_ has joined #ruby
neoxquick has joined #ruby
dangerousdave has joined #ruby
arup_r has quit [Quit: Leaving.]
jasonwc21 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Nilium has quit [Quit: <kristin> Cower is like... I dunno. sometimes he seems senile and other times he seems like a middle schooler.]
Nilium has joined #ruby
mattstra_ has joined #ruby
otherj has joined #ruby
<shevy>
yeah wasamasa
Ulrike_Rayne has joined #ruby
hornairs has quit [Ping timeout: 265 seconds]
<shevy>
history always punishes the late arrivers
baweaver has quit [Remote host closed the connection]
paulfm has quit [Ping timeout: 250 seconds]
Rhainur has quit [Quit: Leaving.]
hmsimha has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Client Quit]
bMalum has quit [Quit: bMalum]
baweaver has joined #ruby
anaeem1 has quit [Quit: Leaving...]
anaeem1 has joined #ruby
reset has joined #ruby
yetanotherdave has joined #ruby
TPBallbag has joined #ruby
dc_ has quit [Remote host closed the connection]
dangerousdave has joined #ruby
<toretore>
unless you're late to auschwitz
elaptics is now known as elaptics`away
<otherj>
toretore, too soon
yfeldblum has joined #ruby
<toretore>
that would be more of a problem, yes
<shevy>
in the market environment toretore
yfeldblu_ has joined #ruby
benzrf is now known as benzrf|offline
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dkb20k has joined #ruby
<toretore>
oh, the *market environment* !
i_s has joined #ruby
yfeldbl__ has joined #ruby
<shevy>
yeah
michaeldeol has joined #ruby
<shevy>
microsoft's model is to try and sell software
benzrf|offline is now known as benzrf
<shevy>
many components which are freely available
claymore has joined #ruby
<shevy>
like google docs
<shevy>
even though I don't like it
omosoj has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
deric_skibotn has quit [Ping timeout: 256 seconds]
i0n has quit [Quit: snooze]
<shevy>
though when it is available online, that is kinda cool. libreoffice I have only available locally
desp has joined #ruby
jyot has quit [Quit: Leaving]
yfeldblu_ has quit [Ping timeout: 264 seconds]
danijoo_ has quit [Remote host closed the connection]
danijoo has joined #ruby
dkb20k has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
otherj has quit [Quit: .]
otherj has joined #ruby
yfeldbl__ has quit [Ping timeout: 244 seconds]
elaptics`away is now known as elaptics
aspiers has joined #ruby
klmlfl has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
josephndenton has joined #ruby
<ddv>
nice stroy br0
otherj has quit [Client Quit]
<ddv>
story*
otherj has joined #ruby
vimer has quit [Quit: leaving]
Fire-Dragon-DoL has quit [Quit: Leaving.]
rkalfane has joined #ruby
<shevy>
yeah
deric_skibotn has joined #ruby
Hijiri has quit [Ping timeout: 256 seconds]
doodlehaus has quit [Remote host closed the connection]
klmlfl has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
jasonwc21 has quit [Remote host closed the connection]
jimbach has joined #ruby
zorak8 has quit [Ping timeout: 255 seconds]
phutchins has joined #ruby
baweaver has quit [Remote host closed the connection]
louism2wash has joined #ruby
jimbach has quit [Remote host closed the connection]
otherj has quit [Quit: .]
<louism2wash>
Hey guys, can I think of the object class as a global namespace since that is where all the class references reside and virtually everything in ruby inherits from object?
jimbach has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chrishough has joined #ruby
nvdpl has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 240 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has quit [Ping timeout: 264 seconds]
<toretore>
louism2wash: yes
phutchins has quit [Ping timeout: 272 seconds]
nvdpl has joined #ruby
matcouto has joined #ruby
mkaesz has joined #ruby
raja has joined #ruby
takle has quit [Remote host closed the connection]
delianides has joined #ruby
hornairs_ has quit [Quit: hornairs_]
wald0 has joined #ruby
<louism2wash>
toretore: cool, thanks
Macaveli has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eam>
but wasn't sure how to create 1 out of the remainder (and $-W is the key)
<eam>
yeah
<eam>
I didn't know about the $- vars
<eam>
then the rest, just use the ternary operators to hide the rest of the characters
<apeiros>
I don't think you missed anything - unless you use -enp much
mferrier has quit [Ping timeout: 258 seconds]
rkalfane has joined #ruby
danijoo has quit [Ping timeout: 250 seconds]
mattstra_ has quit [Ping timeout: 245 seconds]
slide has joined #ruby
yfeldblum has joined #ruby
phutchins has joined #ruby
hornairs has joined #ruby
<slide>
Do ruby apps have a compiled cache? I'm trying to modify a single file but it doesn't seem to be doing anything and I have 0 experience in ruby
samuel02 has joined #ruby
lolmaus has joined #ruby
AndyBotwin has joined #ruby
fabrice31 has joined #ruby
<apeiros>
slide: no
<eam>
slide: no, but if it's a continually running process you may need to restart it
<slide>
hrm yea I did restart it
<slide>
i even put some random text in there to try to throw an error heh
hiyosi has joined #ruby
jimbach has quit [Remote host closed the connection]
<slide>
hrm it is using rails I think, would it have a cache?
pdtpatrick_ has joined #ruby
noop has quit [Ping timeout: 240 seconds]
<apeiros>
the code does not, no
nateberkopec has quit [Quit: Leaving...]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 256 seconds]
henesy has joined #ruby
i0n has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
henesy has quit [Read error: Connection reset by peer]
hiyosi has quit [Ping timeout: 255 seconds]
pdtpatrick_ has quit [Ping timeout: 255 seconds]
ptrrr has joined #ruby
nkumari has quit [Remote host closed the connection]
wald0 has quit [Quit: Lost terminal]
ghr has joined #ruby
MattB2 has joined #ruby
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
yeukhon has joined #ruby
pa3ce has quit [Quit: Leaving]
finch has joined #ruby
matcouto has joined #ruby
ldnunes has quit [Quit: Leaving]
tier_ has joined #ruby
<yeukhon>
hi. quick question about rbenv, coming from python, does creating a new "env" using rbenv requires a separate build of ruby, unlike python virtualenv which you can lnk against an existing binary? tutorials im reading seem to suggest building a ruby all the time. thanks
djbkd has quit [Remote host closed the connection]
<shevy>
oh man
<shevy>
havenwood knows way too much
m8 has joined #ruby
<havenwood>
shevy: nuh uh, i know just right
moritzschaefer has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0.1]
Guest14378 is now known as marahin
TPBallbag has quit [Remote host closed the connection]
marahin has quit [Changing host]
marahin has joined #ruby
<omosoj>
havenwood, did you start with ruby or migrate to it?
KC9YDN has joined #ruby
delianides has quit [Remote host closed the connection]
<omosoj>
that q^ is directed at anyone really
decoponio has quit [Quit: Leaving...]
djbkd has joined #ruby
<havenwood>
omosoj: i started with batch
<havenwood>
and bash
larissa has joined #ruby
<havenwood>
omosoj: what did you start with?
<omosoj>
havenwood, i guess ruby. (i'm relatively new) i knew some other things like html/css, some pascal from a long time ago, and basic programming, but ruby was the first lang i used to make scripts and actually do things
<powersurge>
PHP -> javascript -> python -> and now ruby. hoping to be able to do all ruby/python in the future
<havenwood>
<3 Ruby
hiyosi has joined #ruby
<powersurge>
I've only been doing ruby for a couple of weeks professionally
NoNMaDDeN has joined #ruby
<powersurge>
it seems to be going well though
TPBallbag has joined #ruby
<omosoj>
i'm getting to the skill level where i'm actually able to branch out and experiment with other languages. trying to figure out my fit
lolmaus has quit [Quit: Konversation terminated!]
<powersurge>
good call
zB0hs has joined #ruby
blackmesa has joined #ruby
<omosoj>
havenwood, osrc.dfm.io is cool :)
<powersurge>
ruby/php/python/etc are all about the same in capability, it mostly boils down to what fits your head
<agent_white>
Just try 'em all out? Thankfully majority of languages are free.
<havenwood>
nice open source languages, like... F# :O
NoNMaDDeN has quit [Remote host closed the connection]
<omosoj>
for whatever reason this channel is 1000x friendlier than other language channels. it's remarkable.
<omosoj>
going to other channels is like entering enemy territory
<shevy>
omosoj well we have havenwood
<havenwood>
omosoj: MINASWAN as they say.
<agent_white>
omosoj: "Matz is nice so we are nice." :)
<agent_white>
^^
blueOxigen has quit [Ping timeout: 256 seconds]
<soahccc>
I guess ruby just makes you happy... I get angry when looking at PHP or something curly-brace-semicolon-alike
delianides has joined #ruby
<omosoj>
i wanted to play around with treat, so i was thinking of creating an irc bot to accompany me to other channels and act as a friendliness police officer. lol
jasonwc21 has joined #ruby
hiyosi has quit [Ping timeout: 245 seconds]
<omosoj>
but i have this rails api internship and am dedicating all my time to learning it.
jheg has joined #ruby
nateberkopec has joined #ruby
Jake232 has joined #ruby
vifino has quit [Remote host closed the connection]
jasonwc21 has quit [Remote host closed the connection]
<omosoj>
was thinking about learning js and objectivec though. objc might be interesting at least b/c it's similar to c and i guess it's good to know that
sambao21 has quit [Quit: Computer has gone to sleep.]
<zenspider>
no unnecessary parens/punctuation/syntax
<mostlybadfly>
oh i see
jerius has quit []
<mostlybadfly>
is that preferable or just some people like to do it?
<ecstaticpessimst>
havenwood, the problem is I'm sending these values over serial to a device and if I use .to_s(16) it sends a string instead of the value
jlast has quit [Ping timeout: 255 seconds]
tjbiddle has quit [Quit: tjbiddle]
nkumari has quit [Remote host closed the connection]
sambao21 has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
thagomizer has quit [Quit: Leaving.]
charliesome has joined #ruby
<mostlybadfly>
i think the hexadecimal value is always a string
patrick99e99 has quit [Ping timeout: 240 seconds]
zB0hs has quit [Ping timeout: 264 seconds]
roolo has quit [Quit: Leaving...]
treehug88 has quit []
<mostlybadfly>
do you mean you need 0x7e ?
<ecstaticpessimst>
mostlybadfly, yes
donostiarra has joined #ruby
<apeiros__>
ecstaticpessimst: you're confusing representation and value
<shevy>
how can you tell him that it is already over :)
Sgeo has quit [Remote host closed the connection]
<atmosx>
havenwood: is this Steve Klabnik guy any good!?
<atmosx>
the name rings a bell but can't tell where from
Sgeo has joined #ruby
<shevy>
We're building "Hypermedia APIs" now. Such is life.
otherj has quit [Quit: .]
<shevy>
wtf is an hypermedia API
blackmesa has joined #ruby
phutchins has joined #ruby
<Eiam>
probably somethign related to hypertext right? =0
mkaesz has joined #ruby
<Eiam>
HMTP
<Eiam>
HyperMedia Transfer Protocol
tchebb has quit [Ping timeout: 245 seconds]
<shevy>
man
<havenwood>
atmosx: I like what he has to say. APIs and philosophy and stuff are interesting. He's been doing Rust docs for Rubyists lately I think.
<shevy>
for a moment I again confused you with eam Eiam
<powersurge>
SOAP is an RPC protocol atmosx
phutchins has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 256 seconds]
<atmosx>
stateless protocol?
<Eiam>
shevy: hes the smarter one
<powersurge>
so there's a couple of rpc protocols, of varying complexity
Axy has joined #ruby
<atmosx>
http is stateless I missed that
<powersurge>
xml-rpc split off of soap-rpc because the people doing xml-rpc thought soap was becoming too complex
<powersurge>
you're basically sending along function arguments which then get called on the server and the results get sent back in xml form which is then deserialized and made into native types
<atmosx>
havenwood: I see
<shevy>
Eiam but he uses perl!
Ulrike_Rayne has quit [Ping timeout: 240 seconds]
<Eiam>
shevy: we all have our faults.
<powersurge>
xml does it in xml, soap does it in xml, json-rpc does it in json
<havenwood>
atmosx: like me, in LA
<powersurge>
REST isn't truly an RPC, imo, because unlike the other stuff, it doesn't really map 1:1 with a function on the server
<ecstaticpessimst>
Alright I think I figured out the problem, I need to convert an ascii number to the character
<atmosx>
powersurge: like dRB?
<powersurge>
I'm actually not familiar with dRB
jimbach has quit [Remote host closed the connection]
<Eiam>
powersurge: that seems.. odd..
rshetty has joined #ruby
<atmosx>
powersurge: the oo-concept seems similar to dRB: hat is, the programmer writes essentially the same code whether the subroutine is local to the executing program, or remote. When the software in question uses object-oriented principles, RPC is called remote invocation or remote method invocation.
<Eiam>
powersurge: it takes ruby and runs it remotely ;p
<powersurge>
yea, so in most RPC protocols the remote server is just exposing some functions to be run over the network
jleishman has joined #ruby
<powersurge>
but most RPC protocols are a huge pain in the butt to work with
<atmosx>
powersurge: dRuby allows methods to be called in one Ruby process upon a Ruby object located in another Ruby process, even on another machine. References to objects can be passed between processes. Method arguments and return values are dumped and loaded in marshalled format. All of this is done transparently to both the caller of the remote method and the object that it is called upon.
<powersurge>
soap especially because of its wsdl file, which defines everything a particular soap api can do
blackmesa has quit [Quit: WeeChat 1.0.1]
<powersurge>
but yea, so REST is kind of an alternative to that
hiyosi has joined #ruby
<powersurge>
rather than calling functions and getting results, you're mostly dealing with just data dumps
Pumukel has quit [Quit: ChatZilla 0.9.91 [Firefox 33.1/20141106120505]]
tvw has quit []
<zenspider>
a horribly cludgy alternative to that
<powersurge>
when you visit an html website you are *already* using rest, really
<atmosx>
powersurge: dRB is not a pain actually. I wrote a small application using it, it was a pain (for me) to figure it out... But eventually, after I did was the easiest way to communicate back and forth, the only thing that bothered me was that I needed 2 TCP open ports IIRC.
<zenspider>
drb is soo elegant in comparison
tchebb has joined #ruby
<atmosx>
zenspider: really?
<powersurge>
I can't really comment on drb, I'm afraid
<powersurge>
but to answer the question for rest
<atmosx>
So Rails is RESTfull becuase it has this CRUD thing implemented right?
<zenspider>
really what?
<atmosx>
zenspider: drb is more elegant slution that REST
<powersurge>
rest revolves around the concept of resources, which you can mostly think of as nouns, and http methods, which you can mostly think of verbs
<mostlybadfly>
ecstaticpessimst: was that suggestion above any good?
<atmosx>
powersurge: this nouns/verbs thing doesn't make sense to me.
<mostlybadfly>
it did both 126 and 255
XmQ2u9qoss8eY8dV is now known as ProC1ifo
<powersurge>
so you can GET a resource, POST to the resource's root to create a new resource, PATCH to make updates, PUT to totally replace a resource, and DELETE to, well, delete the resource
<gr33n7007h>
>> puts 255.chr
<powersurge>
so imagine you have a /books resource atmosx
<zenspider>
yes, but you only get ~5 verbs. that _sucks_
<atmosx>
powersurge: I see.. okay but the thing that I only know THIS WAY of creating apps :-/
<powersurge>
if you GET /books it likely will give you all of the books, and you can specify if you want it in various formats
rshetty has quit [Ping timeout: 264 seconds]
<atmosx>
powersurge: so what's the alternative then?!
<powersurge>
oh, I was just explaining what rest *is*
<powersurge>
which I thought was the question
<powersurge>
so what are you curious about? alternate ways to build web apps?
sdwrage has quit [Quit: This computer has gone to sleep]
<atmosx>
powersurge: I got, unknowingly I write my Sinatra apps using the same concept... I got it now. But what people were using before restull then?
einarj has quit [Remote host closed the connection]
<powersurge>
well in a way web sites have always used rest, it's built directly into http
<powersurge>
a browser uses GET to retrieve html pages, for example
<atmosx>
powersurge: yes, RPC is not for web apps if I get this right, it's like dRB mostly for any apps (could be used for web-apps too come to think of it).
<powersurge>
and it will also use "post" to submit forms
procat has joined #ruby
sdwrage has joined #ruby
<powersurge>
it really depends
<atmosx>
powersurge: true..
thsig has quit [Ping timeout: 265 seconds]
sdwrage has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
<powersurge>
RPC and REST are ways to provide APIs
<graft>
hey, what's the difference between Array#index and Enumerable#find_index?
<powersurge>
and neither are really in the context of web apps, although a web app may consume them
<powersurge>
REST is nice because it's very simple to work with, with very little overhead
Pumukel has joined #ruby
<powersurge>
if you have a lib that speaks http, you also ahve one that can consume restful resources
crome has quit [Ping timeout: 258 seconds]
<powersurge>
SOAP requires a dedicated lib, as does XML-RPC, JSON-RPC, etc, etc
<ecstaticpessimst>
mostlybadfly, works well I just needed to alter it to sprintf("%#c", 126)
<gr33n7007h>
32 to 126 are ascii prinable characters 128 to 255 extended ascii characters
<powersurge>
of course, you get more structure with the other types of APIs, and it feels more like you're executing a command locally
last_staff has quit [Quit: ZZZzzzZzzzZzZzzzz......]
lilsheep has joined #ruby
<lilsheep>
anyoen know how to poll for keyboard input OR generate some sort of itnerrupt from one that calls a method [ specifically when one presses enter ]
<Guest46041>
Hello. I have the following problems, I pipe a script to bash which in turn executes an interactive ruby script. However bash does not wait for the user input for the ruby script. If I execute the ruby script directly it works absolutely fine. How can I tell bash to wait for input in the ruby script?
<atmosx>
powersurge: spork uses dRuby to run tests faster
usrj has joined #ruby
echooo1 has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
<powersurge>
mmm
<powersurge>
I getcha
NoNMaDDeN has joined #ruby
<ecstaticpessimst>
Guest46041 what does the command with the pipe in it look like?
ProC1ifo is now known as TPBallbag
desp has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]